From 5c2a3178f14ec78bd0d7387b66a82c629a4df18d Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Wed, 25 Mar 2026 21:27:49 +0000 Subject: [PATCH 1/4] feat: publish client batch config schema feat: publish new error reasons docs: fix documentation formatting docs: update various comments docs: update license year PiperOrigin-RevId: 889289393 Source-Link: https://github.com/googleapis/googleapis/commit/94bc991b3f1df58bc841801631715894a7ac5e28 Source-Link: https://github.com/googleapis/googleapis-gen/commit/db7143a338a7c75839b4698cb3ea6f1013b4c3c7 Copy-Tag: eyJwIjoiQ29tbW9uUHJvdG9zLy5Pd2xCb3QueWFtbCIsImgiOiJkYjcxNDNhMzM4YTdjNzU4MzliNDY5OGNiM2VhNmYxMDEzYjRjM2M3In0= --- .../GPBMetadata/Google/Api/Annotations.php | 25 + .../proto/src/GPBMetadata/Google/Api/Auth.php | 24 + .../src/GPBMetadata/Google/Api/Backend.php | 24 + .../src/GPBMetadata/Google/Api/Billing.php | 24 + .../src/GPBMetadata/Google/Api/Client.php | 26 + .../GPBMetadata/Google/Api/ConfigChange.php | 24 + .../src/GPBMetadata/Google/Api/Consumer.php | 24 + .../src/GPBMetadata/Google/Api/Context.php | 24 + .../src/GPBMetadata/Google/Api/Control.php | 25 + .../GPBMetadata/Google/Api/Distribution.php | 26 + .../GPBMetadata/Google/Api/Documentation.php | 24 + .../src/GPBMetadata/Google/Api/Endpoint.php | 24 + .../GPBMetadata/Google/Api/ErrorReason.php | 24 + .../GPBMetadata/Google/Api/FieldBehavior.php | 24 + .../src/GPBMetadata/Google/Api/FieldInfo.php | 24 + .../proto/src/GPBMetadata/Google/Api/Http.php | 24 + .../src/GPBMetadata/Google/Api/Httpbody.php | 25 + .../src/GPBMetadata/Google/Api/Label.php | 24 + .../GPBMetadata/Google/Api/LaunchStage.php | 24 + .../proto/src/GPBMetadata/Google/Api/Log.php | 25 + .../src/GPBMetadata/Google/Api/Logging.php | 24 + .../src/GPBMetadata/Google/Api/Metric.php | 27 + .../Google/Api/MonitoredResource.php | 27 + .../src/GPBMetadata/Google/Api/Monitoring.php | 24 + .../src/GPBMetadata/Google/Api/Policy.php | 24 + .../src/GPBMetadata/Google/Api/Quota.php | 24 + .../src/GPBMetadata/Google/Api/Resource.php | 24 + .../src/GPBMetadata/Google/Api/Routing.php | 24 + .../src/GPBMetadata/Google/Api/Service.php | 45 + .../src/GPBMetadata/Google/Api/SourceInfo.php | 25 + .../Google/Api/SystemParameter.php | 24 + .../src/GPBMetadata/Google/Api/Usage.php | 24 + .../src/GPBMetadata/Google/Api/Visibility.php | 24 + .../api/proto/src/Google/Api/Advice.php | 72 + .../api/proto/src/Google/Api/AuthProvider.php | 419 ++++++ .../proto/src/Google/Api/AuthRequirement.php | 159 +++ .../proto/src/Google/Api/Authentication.php | 120 ++ .../src/Google/Api/AuthenticationRule.php | 197 +++ .../api/proto/src/Google/Api/Backend.php | 71 + .../api/proto/src/Google/Api/BackendRule.php | 592 ++++++++ .../Api/BackendRule/PathTranslation.php | 92 ++ .../src/Google/Api/BatchingConfigProto.php | 121 ++ .../Google/Api/BatchingDescriptorProto.php | 157 +++ .../src/Google/Api/BatchingSettingsProto.php | 337 +++++ .../api/proto/src/Google/Api/Billing.php | 107 ++ .../Google/Api/Billing/BillingDestination.php | 118 ++ .../api/proto/src/Google/Api/ChangeType.php | 72 + .../Google/Api/ClientLibraryDestination.php | 63 + .../Google/Api/ClientLibraryOrganization.php | 97 ++ .../src/Google/Api/ClientLibrarySettings.php | 499 +++++++ .../src/Google/Api/CommonLanguageSettings.php | 156 +++ .../api/proto/src/Google/Api/ConfigChange.php | 251 ++++ .../api/proto/src/Google/Api/Context.php | 98 ++ .../api/proto/src/Google/Api/ContextRule.php | 228 +++ .../api/proto/src/Google/Api/Control.php | 112 ++ .../api/proto/src/Google/Api/CppSettings.php | 77 + .../src/Google/Api/CustomHttpPattern.php | 101 ++ .../api/proto/src/Google/Api/Distribution.php | 390 ++++++ .../Google/Api/Distribution/BucketOptions.php | 154 ++ .../Distribution/BucketOptions/Explicit.php | 74 + .../BucketOptions/Exponential.php | 141 ++ .../Api/Distribution/BucketOptions/Linear.php | 141 ++ .../src/Google/Api/Distribution/Exemplar.php | 177 +++ .../src/Google/Api/Distribution/Range.php | 101 ++ .../proto/src/Google/Api/Documentation.php | 362 +++++ .../src/Google/Api/DocumentationRule.php | 171 +++ .../proto/src/Google/Api/DotnetSettings.php | 307 ++++ .../api/proto/src/Google/Api/Endpoint.php | 231 +++ .../api/proto/src/Google/Api/ErrorReason.php | 895 ++++++++++++ .../proto/src/Google/Api/FieldBehavior.php | 133 ++ .../api/proto/src/Google/Api/FieldInfo.php | 117 ++ .../proto/src/Google/Api/FieldInfo/Format.php | 89 ++ .../api/proto/src/Google/Api/FieldPolicy.php | 181 +++ .../FlowControlLimitExceededBehaviorProto.php | 68 + .../api/proto/src/Google/Api/GoSettings.php | 139 ++ .../api/proto/src/Google/Api/Http.php | 123 ++ .../api/proto/src/Google/Api/HttpBody.php | 168 +++ .../api/proto/src/Google/Api/HttpRule.php | 651 +++++++++ .../api/proto/src/Google/Api/JavaSettings.php | 225 +++ .../api/proto/src/Google/Api/JwtLocation.php | 199 +++ .../proto/src/Google/Api/LabelDescriptor.php | 135 ++ .../Google/Api/LabelDescriptor/ValueType.php | 61 + .../api/proto/src/Google/Api/LaunchStage.php | 118 ++ .../proto/src/Google/Api/LogDescriptor.php | 203 +++ .../api/proto/src/Google/Api/Logging.php | 151 ++ .../Google/Api/Logging/LoggingDestination.php | 122 ++ .../api/proto/src/Google/Api/MethodPolicy.php | 121 ++ .../proto/src/Google/Api/MethodSettings.php | 321 +++++ .../Google/Api/MethodSettings/LongRunning.php | 223 +++ .../api/proto/src/Google/Api/Metric.php | 114 ++ .../proto/src/Google/Api/MetricDescriptor.php | 831 +++++++++++ .../MetricDescriptorMetadata.php | 224 +++ .../TimeSeriesResourceHierarchyLevel.php | 68 + .../Api/MetricDescriptor/MetricKind.php | 74 + .../Google/Api/MetricDescriptor/ValueType.php | 91 ++ .../api/proto/src/Google/Api/MetricRule.php | 126 ++ .../src/Google/Api/MonitoredResource.php | 147 ++ .../Api/MonitoredResourceDescriptor.php | 309 ++++ .../Google/Api/MonitoredResourceMetadata.php | 148 ++ .../api/proto/src/Google/Api/Monitoring.php | 190 +++ .../Api/Monitoring/MonitoringDestination.php | 118 ++ .../api/proto/src/Google/Api/NodeSettings.php | 77 + .../src/Google/Api/OAuthRequirements.php | 96 ++ .../api/proto/src/Google/Api/Page.php | 200 +++ .../api/proto/src/Google/Api/PhpSettings.php | 147 ++ .../src/Google/Api/ProjectProperties.php | 80 ++ .../api/proto/src/Google/Api/Property.php | 142 ++ .../src/Google/Api/Property/PropertyType.php | 75 + .../api/proto/src/Google/Api/Publishing.php | 453 ++++++ .../proto/src/Google/Api/PythonSettings.php | 121 ++ .../PythonSettings/ExperimentalFeatures.php | 173 +++ .../api/proto/src/Google/Api/Quota.php | 144 ++ .../api/proto/src/Google/Api/QuotaLimit.php | 527 +++++++ .../src/Google/Api/ResourceDescriptor.php | 495 +++++++ .../Google/Api/ResourceDescriptor/History.php | 65 + .../Google/Api/ResourceDescriptor/Style.php | 59 + .../src/Google/Api/ResourceReference.php | 190 +++ .../proto/src/Google/Api/RoutingParameter.php | 281 ++++ .../api/proto/src/Google/Api/RoutingRule.php | 356 +++++ .../api/proto/src/Google/Api/RubySettings.php | 77 + .../Google/Api/SelectiveGapicGeneration.php | 126 ++ .../api/proto/src/Google/Api/Service.php | 1242 +++++++++++++++++ .../api/proto/src/Google/Api/SourceInfo.php | 67 + .../proto/src/Google/Api/SystemParameter.php | 145 ++ .../src/Google/Api/SystemParameterRule.php | 130 ++ .../proto/src/Google/Api/SystemParameters.php | 155 ++ .../proto/src/Google/Api/TypeReference.php | 91 ++ .../api/proto/src/Google/Api/Usage.php | 191 +++ .../api/proto/src/Google/Api/UsageRule.php | 175 +++ .../api/proto/src/Google/Api/Visibility.php | 88 ++ .../proto/src/Google/Api/VisibilityRule.php | 150 ++ .../Google/Cloud/ExtendedOperations.php | 24 + .../Google/Cloud/OperationResponseMapping.php | 86 ++ .../GPBMetadata/Google/Iam/V1/IamPolicy.php | 31 + .../Google/Iam/V1/Logging/AuditData.php | 25 + .../src/GPBMetadata/Google/Iam/V1/Options.php | 24 + .../src/GPBMetadata/Google/Iam/V1/Policy.php | 25 + .../Google/Iam/V1/ResourcePolicyMember.php | 25 + .../src/Google/Cloud/Iam/V1/AuditConfig.php | 155 ++ .../Google/Cloud/Iam/V1/AuditConfigDelta.php | 202 +++ .../Cloud/Iam/V1/AuditConfigDelta/Action.php | 61 + .../Google/Cloud/Iam/V1/AuditLogConfig.php | 129 ++ .../Cloud/Iam/V1/AuditLogConfig/LogType.php | 69 + .../proto/src/Google/Cloud/Iam/V1/Binding.php | 301 ++++ .../src/Google/Cloud/Iam/V1/BindingDelta.php | 200 +++ .../Cloud/Iam/V1/BindingDelta/Action.php | 61 + .../Cloud/Iam/V1/GetIamPolicyRequest.php | 119 ++ .../Google/Cloud/Iam/V1/GetPolicyOptions.php | 119 ++ .../proto/src/Google/Cloud/Iam/V1/Policy.php | 377 +++++ .../src/Google/Cloud/Iam/V1/PolicyDelta.php | 101 ++ .../Cloud/Iam/V1/ResourcePolicyMember.php | 142 ++ .../Cloud/Iam/V1/SetIamPolicyRequest.php | 183 +++ .../Iam/V1/TestIamPermissionsRequest.php | 117 ++ .../Iam/V1/TestIamPermissionsResponse.php | 71 + .../src/Google/Iam/V1/Logging/AuditData.php | 79 ++ .../Google/Iam/V1/Logging/AuditData.php | 25 + .../src/Google/Iam/V1/Logging/AuditData.php | 79 ++ .../Google/Cloud/Location/Locations.php | 27 + .../Cloud/Location/GetLocationRequest.php | 67 + .../Cloud/Location/ListLocationsRequest.php | 169 +++ .../Cloud/Location/ListLocationsResponse.php | 101 ++ .../src/Google/Cloud/Location/Location.php | 229 +++ .../Google/Logging/Type/HttpRequest.php | 25 + .../Google/Logging/Type/LogSeverity.php | 24 + .../Google/Cloud/Logging/Type/HttpRequest.php | 627 +++++++++ .../Google/Cloud/Logging/Type/LogSeverity.php | 119 ++ .../proto/src/GPBMetadata/Google/Rpc/Code.php | 24 + .../Google/Rpc/Context/AttributeContext.php | 28 + .../Google/Rpc/Context/AuditContext.php | 25 + .../GPBMetadata/Google/Rpc/ErrorDetails.php | 25 + .../src/GPBMetadata/Google/Rpc/Status.php | 25 + .../rpc/proto/src/Google/Rpc/BadRequest.php | 68 + .../Google/Rpc/BadRequest/FieldViolation.php | 315 +++++ .../rpc/proto/src/Google/Rpc/Code.php | 243 ++++ .../Google/Rpc/Context/AttributeContext.php | 419 ++++++ .../Rpc/Context/AttributeContext/Api.php | 195 +++ .../Rpc/Context/AttributeContext/Auth.php | 355 +++++ .../Rpc/Context/AttributeContext/Peer.php | 222 +++ .../Rpc/Context/AttributeContext/Request.php | 507 +++++++ .../Rpc/Context/AttributeContext/Resource.php | 613 ++++++++ .../Rpc/Context/AttributeContext/Response.php | 248 ++++ .../src/Google/Rpc/Context/AuditContext.php | 247 ++++ .../rpc/proto/src/Google/Rpc/DebugInfo.php | 101 ++ .../rpc/proto/src/Google/Rpc/ErrorInfo.php | 217 +++ .../rpc/proto/src/Google/Rpc/Help.php | 70 + .../rpc/proto/src/Google/Rpc/Help/Link.php | 101 ++ .../proto/src/Google/Rpc/LocalizedMessage.php | 110 ++ .../src/Google/Rpc/PreconditionFailure.php | 70 + .../Rpc/PreconditionFailure/Violation.php | 159 +++ .../rpc/proto/src/Google/Rpc/QuotaFailure.php | 75 + .../src/Google/Rpc/QuotaFailure/Violation.php | 500 +++++++ .../rpc/proto/src/Google/Rpc/RequestInfo.php | 110 ++ .../rpc/proto/src/Google/Rpc/ResourceInfo.php | 205 +++ .../rpc/proto/src/Google/Rpc/RetryInfo.php | 87 ++ .../rpc/proto/src/Google/Rpc/Status.php | 160 +++ .../Google/Type/CalendarPeriod.php | 24 + .../src/GPBMetadata/Google/Type/Color.php | 25 + .../src/GPBMetadata/Google/Type/Date.php | 24 + .../src/GPBMetadata/Google/Type/Datetime.php | 25 + .../src/GPBMetadata/Google/Type/Dayofweek.php | 24 + .../src/GPBMetadata/Google/Type/Decimal.php | 24 + .../src/GPBMetadata/Google/Type/Expr.php | 24 + .../src/GPBMetadata/Google/Type/Fraction.php | 24 + .../src/GPBMetadata/Google/Type/Interval.php | 25 + .../src/GPBMetadata/Google/Type/Latlng.php | 24 + .../GPBMetadata/Google/Type/LocalizedText.php | 24 + .../src/GPBMetadata/Google/Type/Money.php | 24 + .../src/GPBMetadata/Google/Type/Month.php | 24 + .../GPBMetadata/Google/Type/PhoneNumber.php | 24 + .../GPBMetadata/Google/Type/PostalAddress.php | 24 + .../GPBMetadata/Google/Type/Quaternion.php | 24 + .../src/GPBMetadata/Google/Type/Timeofday.php | 24 + .../proto/src/Google/Type/CalendarPeriod.php | 102 ++ .../type/proto/src/Google/Type/Color.php | 360 +++++ .../type/proto/src/Google/Type/Date.php | 161 +++ .../type/proto/src/Google/Type/DateTime.php | 393 ++++++ .../type/proto/src/Google/Type/DayOfWeek.php | 96 ++ .../type/proto/src/Google/Type/Decimal.php | 244 ++++ .../type/proto/src/Google/Type/Expr.php | 210 +++ .../type/proto/src/Google/Type/Fraction.php | 105 ++ .../type/proto/src/Google/Type/Interval.php | 141 ++ .../type/proto/src/Google/Type/LatLng.php | 105 ++ .../proto/src/Google/Type/LocalizedText.php | 109 ++ .../type/proto/src/Google/Type/Money.php | 159 +++ .../type/proto/src/Google/Type/Month.php | 131 ++ .../proto/src/Google/Type/PhoneNumber.php | 230 +++ .../src/Google/Type/PhoneNumber/ShortCode.php | 124 ++ .../proto/src/Google/Type/PostalAddress.php | 628 +++++++++ .../type/proto/src/Google/Type/Quaternion.php | 211 +++ .../type/proto/src/Google/Type/TimeOfDay.php | 180 +++ .../type/proto/src/Google/Type/TimeZone.php | 102 ++ 231 files changed, 34538 insertions(+) create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Annotations.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Auth.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Backend.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Billing.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Client.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/ConfigChange.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Consumer.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Context.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Control.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Distribution.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Documentation.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Endpoint.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/ErrorReason.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/FieldBehavior.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/FieldInfo.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Http.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Httpbody.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Label.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/LaunchStage.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Log.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Logging.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Metric.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/MonitoredResource.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Monitoring.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Policy.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Quota.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Resource.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Routing.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Service.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/SourceInfo.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/SystemParameter.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Usage.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Visibility.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Advice.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/AuthProvider.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/AuthRequirement.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Authentication.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/AuthenticationRule.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Backend.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/BackendRule.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/BackendRule/PathTranslation.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/BatchingConfigProto.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/BatchingDescriptorProto.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/BatchingSettingsProto.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Billing.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Billing/BillingDestination.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ChangeType.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ClientLibraryDestination.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ClientLibraryOrganization.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ClientLibrarySettings.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/CommonLanguageSettings.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ConfigChange.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Context.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ContextRule.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Control.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/CppSettings.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/CustomHttpPattern.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/BucketOptions.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/BucketOptions/Explicit.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/BucketOptions/Exponential.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/BucketOptions/Linear.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/Exemplar.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/Range.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Documentation.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/DocumentationRule.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/DotnetSettings.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Endpoint.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ErrorReason.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/FieldBehavior.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/FieldInfo.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/FieldInfo/Format.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/FieldPolicy.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/FlowControlLimitExceededBehaviorProto.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/GoSettings.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Http.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/HttpBody.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/HttpRule.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/JavaSettings.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/JwtLocation.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/LabelDescriptor.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/LabelDescriptor/ValueType.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/LaunchStage.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/LogDescriptor.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Logging.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Logging/LoggingDestination.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MethodPolicy.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MethodSettings.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MethodSettings/LongRunning.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Metric.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricDescriptor.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricDescriptor/MetricDescriptorMetadata.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricDescriptor/MetricDescriptorMetadata/TimeSeriesResourceHierarchyLevel.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricDescriptor/MetricKind.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricDescriptor/ValueType.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricRule.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MonitoredResource.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MonitoredResourceDescriptor.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MonitoredResourceMetadata.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Monitoring.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Monitoring/MonitoringDestination.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/NodeSettings.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/OAuthRequirements.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Page.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/PhpSettings.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ProjectProperties.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Property.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Property/PropertyType.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Publishing.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/PythonSettings.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/PythonSettings/ExperimentalFeatures.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Quota.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/QuotaLimit.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ResourceDescriptor.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ResourceDescriptor/History.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ResourceDescriptor/Style.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ResourceReference.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/RoutingParameter.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/RoutingRule.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/RubySettings.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/SelectiveGapicGeneration.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Service.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/SourceInfo.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/SystemParameter.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/SystemParameterRule.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/SystemParameters.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/TypeReference.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Usage.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/UsageRule.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Visibility.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/VisibilityRule.php create mode 100644 owl-bot-staging/CommonProtos/extendedoperations/proto/src/GPBMetadata/Google/Cloud/ExtendedOperations.php create mode 100644 owl-bot-staging/CommonProtos/extendedoperations/proto/src/Google/Cloud/OperationResponseMapping.php create mode 100644 owl-bot-staging/CommonProtos/iam/proto/src/GPBMetadata/Google/Iam/V1/IamPolicy.php create mode 100644 owl-bot-staging/CommonProtos/iam/proto/src/GPBMetadata/Google/Iam/V1/Logging/AuditData.php create mode 100644 owl-bot-staging/CommonProtos/iam/proto/src/GPBMetadata/Google/Iam/V1/Options.php create mode 100644 owl-bot-staging/CommonProtos/iam/proto/src/GPBMetadata/Google/Iam/V1/Policy.php create mode 100644 owl-bot-staging/CommonProtos/iam/proto/src/GPBMetadata/Google/Iam/V1/ResourcePolicyMember.php create mode 100644 owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/AuditConfig.php create mode 100644 owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/AuditConfigDelta.php create mode 100644 owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/AuditConfigDelta/Action.php create mode 100644 owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/AuditLogConfig.php create mode 100644 owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/AuditLogConfig/LogType.php create mode 100644 owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/Binding.php create mode 100644 owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/BindingDelta.php create mode 100644 owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/BindingDelta/Action.php create mode 100644 owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/GetIamPolicyRequest.php create mode 100644 owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/GetPolicyOptions.php create mode 100644 owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/Policy.php create mode 100644 owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/PolicyDelta.php create mode 100644 owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/ResourcePolicyMember.php create mode 100644 owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/SetIamPolicyRequest.php create mode 100644 owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/TestIamPermissionsRequest.php create mode 100644 owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/TestIamPermissionsResponse.php create mode 100644 owl-bot-staging/CommonProtos/iam/proto/src/Google/Iam/V1/Logging/AuditData.php create mode 100644 owl-bot-staging/CommonProtos/iamlogging/proto/src/GPBMetadata/Google/Iam/V1/Logging/AuditData.php create mode 100644 owl-bot-staging/CommonProtos/iamlogging/proto/src/Google/Iam/V1/Logging/AuditData.php create mode 100644 owl-bot-staging/CommonProtos/location/proto/src/GPBMetadata/Google/Cloud/Location/Locations.php create mode 100644 owl-bot-staging/CommonProtos/location/proto/src/Google/Cloud/Location/GetLocationRequest.php create mode 100644 owl-bot-staging/CommonProtos/location/proto/src/Google/Cloud/Location/ListLocationsRequest.php create mode 100644 owl-bot-staging/CommonProtos/location/proto/src/Google/Cloud/Location/ListLocationsResponse.php create mode 100644 owl-bot-staging/CommonProtos/location/proto/src/Google/Cloud/Location/Location.php create mode 100644 owl-bot-staging/CommonProtos/logging/proto/src/GPBMetadata/Google/Logging/Type/HttpRequest.php create mode 100644 owl-bot-staging/CommonProtos/logging/proto/src/GPBMetadata/Google/Logging/Type/LogSeverity.php create mode 100644 owl-bot-staging/CommonProtos/logging/proto/src/Google/Cloud/Logging/Type/HttpRequest.php create mode 100644 owl-bot-staging/CommonProtos/logging/proto/src/Google/Cloud/Logging/Type/LogSeverity.php create mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/GPBMetadata/Google/Rpc/Code.php create mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/GPBMetadata/Google/Rpc/Context/AttributeContext.php create mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/GPBMetadata/Google/Rpc/Context/AuditContext.php create mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/GPBMetadata/Google/Rpc/ErrorDetails.php create mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/GPBMetadata/Google/Rpc/Status.php create mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/BadRequest.php create mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/BadRequest/FieldViolation.php create mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Code.php create mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext.php create mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Api.php create mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Auth.php create mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Peer.php create mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Request.php create mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Resource.php create mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Response.php create mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AuditContext.php create mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/DebugInfo.php create mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/ErrorInfo.php create mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Help.php create mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Help/Link.php create mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/LocalizedMessage.php create mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/PreconditionFailure.php create mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/PreconditionFailure/Violation.php create mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/QuotaFailure.php create mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/QuotaFailure/Violation.php create mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/RequestInfo.php create mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/ResourceInfo.php create mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/RetryInfo.php create mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Status.php create mode 100644 owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/CalendarPeriod.php create mode 100644 owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Color.php create mode 100644 owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Date.php create mode 100644 owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Datetime.php create mode 100644 owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Dayofweek.php create mode 100644 owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Decimal.php create mode 100644 owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Expr.php create mode 100644 owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Fraction.php create mode 100644 owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Interval.php create mode 100644 owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Latlng.php create mode 100644 owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/LocalizedText.php create mode 100644 owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Money.php create mode 100644 owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Month.php create mode 100644 owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/PhoneNumber.php create mode 100644 owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/PostalAddress.php create mode 100644 owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Quaternion.php create mode 100644 owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Timeofday.php create mode 100644 owl-bot-staging/CommonProtos/type/proto/src/Google/Type/CalendarPeriod.php create mode 100644 owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Color.php create mode 100644 owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Date.php create mode 100644 owl-bot-staging/CommonProtos/type/proto/src/Google/Type/DateTime.php create mode 100644 owl-bot-staging/CommonProtos/type/proto/src/Google/Type/DayOfWeek.php create mode 100644 owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Decimal.php create mode 100644 owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Expr.php create mode 100644 owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Fraction.php create mode 100644 owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Interval.php create mode 100644 owl-bot-staging/CommonProtos/type/proto/src/Google/Type/LatLng.php create mode 100644 owl-bot-staging/CommonProtos/type/proto/src/Google/Type/LocalizedText.php create mode 100644 owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Money.php create mode 100644 owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Month.php create mode 100644 owl-bot-staging/CommonProtos/type/proto/src/Google/Type/PhoneNumber.php create mode 100644 owl-bot-staging/CommonProtos/type/proto/src/Google/Type/PhoneNumber/ShortCode.php create mode 100644 owl-bot-staging/CommonProtos/type/proto/src/Google/Type/PostalAddress.php create mode 100644 owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Quaternion.php create mode 100644 owl-bot-staging/CommonProtos/type/proto/src/Google/Type/TimeOfDay.php create mode 100644 owl-bot-staging/CommonProtos/type/proto/src/Google/Type/TimeZone.php diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Annotations.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Annotations.php new file mode 100644 index 000000000000..a700b2da7a2a --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Annotations.php @@ -0,0 +1,25 @@ +internalAddGeneratedFile( + "\x0A\xC4\x01\x0A\x1Cgoogle/api/annotations.proto\x12\x0Agoogle.api\x1A google/protobuf/descriptor.protoBn\x0A\x0Ecom.google.apiB\x10AnnotationsProtoP\x01ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\xA2\x02\x04GAPIb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Auth.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Auth.php new file mode 100644 index 000000000000..24d567740772 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Auth.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\x99\x06\x0A\x15google/api/auth.proto\x12\x0Agoogle.api\"l\x0A\x0EAuthentication\x12-\x0A\x05rules\x18\x03 \x03(\x0B2\x1E.google.api.AuthenticationRule\x12+\x0A\x09providers\x18\x04 \x03(\x0B2\x18.google.api.AuthProvider\"\xA9\x01\x0A\x12AuthenticationRule\x12\x10\x0A\x08selector\x18\x01 \x01(\x09\x12,\x0A\x05oauth\x18\x02 \x01(\x0B2\x1D.google.api.OAuthRequirements\x12 \x0A\x18allow_without_credential\x18\x05 \x01(\x08\x121\x0A\x0Crequirements\x18\x07 \x03(\x0B2\x1B.google.api.AuthRequirement\"^\x0A\x0BJwtLocation\x12\x10\x0A\x06header\x18\x01 \x01(\x09H\x00\x12\x0F\x0A\x05query\x18\x02 \x01(\x09H\x00\x12\x10\x0A\x06cookie\x18\x04 \x01(\x09H\x00\x12\x14\x0A\x0Cvalue_prefix\x18\x03 \x01(\x09B\x04\x0A\x02in\"\x9A\x01\x0A\x0CAuthProvider\x12\x0A\x0A\x02id\x18\x01 \x01(\x09\x12\x0E\x0A\x06issuer\x18\x02 \x01(\x09\x12\x10\x0A\x08jwks_uri\x18\x03 \x01(\x09\x12\x11\x0A\x09audiences\x18\x04 \x01(\x09\x12\x19\x0A\x11authorization_url\x18\x05 \x01(\x09\x12.\x0A\x0Djwt_locations\x18\x06 \x03(\x0B2\x17.google.api.JwtLocation\"-\x0A\x11OAuthRequirements\x12\x18\x0A\x10canonical_scopes\x18\x01 \x01(\x09\"9\x0A\x0FAuthRequirement\x12\x13\x0A\x0Bprovider_id\x18\x01 \x01(\x09\x12\x11\x0A\x09audiences\x18\x02 \x01(\x09Bk\x0A\x0Ecom.google.apiB\x09AuthProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xA2\x02\x04GAPIb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Backend.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Backend.php new file mode 100644 index 000000000000..9808979ecdbc --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Backend.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\xA5\x06\x0A\x18google/api/backend.proto\x12\x0Agoogle.api\"1\x0A\x07Backend\x12&\x0A\x05rules\x18\x01 \x03(\x0B2\x17.google.api.BackendRule\"\xD1\x04\x0A\x0BBackendRule\x12\x10\x0A\x08selector\x18\x01 \x01(\x09\x12\x0F\x0A\x07address\x18\x02 \x01(\x09\x12\x10\x0A\x08deadline\x18\x03 \x01(\x01\x12\x18\x0A\x0Cmin_deadline\x18\x04 \x01(\x01B\x02\x18\x01\x12\x1A\x0A\x12operation_deadline\x18\x05 \x01(\x01\x12A\x0A\x10path_translation\x18\x06 \x01(\x0E2'.google.api.BackendRule.PathTranslation\x12\x16\x0A\x0Cjwt_audience\x18\x07 \x01(\x09H\x00\x12\x16\x0A\x0Cdisable_auth\x18\x08 \x01(\x08H\x00\x12\x10\x0A\x08protocol\x18\x09 \x01(\x09\x12^\x0A\x1Doverrides_by_request_protocol\x18\x0A \x03(\x0B27.google.api.BackendRule.OverridesByRequestProtocolEntry\x12\x1D\x0A\x15load_balancing_policy\x18\x0B \x01(\x09\x1AZ\x0A\x1FOverridesByRequestProtocolEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12&\x0A\x05value\x18\x02 \x01(\x0B2\x17.google.api.BackendRule:\x028\x01\"e\x0A\x0FPathTranslation\x12 \x0A\x1CPATH_TRANSLATION_UNSPECIFIED\x10\x00\x12\x14\x0A\x10CONSTANT_ADDRESS\x10\x01\x12\x1A\x0A\x16APPEND_PATH_TO_ADDRESS\x10\x02B\x10\x0A\x0EauthenticationBn\x0A\x0Ecom.google.apiB\x0CBackendProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xA2\x02\x04GAPIb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Billing.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Billing.php new file mode 100644 index 000000000000..0bfe90cbb1b2 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Billing.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\xB4\x02\x0A\x18google/api/billing.proto\x12\x0Agoogle.api\"\x93\x01\x0A\x07Billing\x12E\x0A\x15consumer_destinations\x18\x08 \x03(\x0B2&.google.api.Billing.BillingDestination\x1AA\x0A\x12BillingDestination\x12\x1A\x0A\x12monitored_resource\x18\x01 \x01(\x09\x12\x0F\x0A\x07metrics\x18\x02 \x03(\x09Bn\x0A\x0Ecom.google.apiB\x0CBillingProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xA2\x02\x04GAPIb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Client.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Client.php new file mode 100644 index 000000000000..40704b602b2f --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Client.php @@ -0,0 +1,26 @@ +internalAddGeneratedFile( + "\x0A\x95!\x0A\x17google/api/client.proto\x12\x0Agoogle.api\x1A google/protobuf/descriptor.proto\x1A\x1Egoogle/protobuf/duration.proto\"\xBE\x01\x0A\x16CommonLanguageSettings\x12\x1E\x0A\x12reference_docs_uri\x18\x01 \x01(\x09B\x02\x18\x01\x12:\x0A\x0Cdestinations\x18\x02 \x03(\x0E2\$.google.api.ClientLibraryDestination\x12H\x0A\x1Aselective_gapic_generation\x18\x03 \x01(\x0B2\$.google.api.SelectiveGapicGeneration\"\xFB\x03\x0A\x15ClientLibrarySettings\x12\x0F\x0A\x07version\x18\x01 \x01(\x09\x12-\x0A\x0Claunch_stage\x18\x02 \x01(\x0E2\x17.google.api.LaunchStage\x12\x1A\x0A\x12rest_numeric_enums\x18\x03 \x01(\x08\x12/\x0A\x0Djava_settings\x18\x15 \x01(\x0B2\x18.google.api.JavaSettings\x12-\x0A\x0Ccpp_settings\x18\x16 \x01(\x0B2\x17.google.api.CppSettings\x12-\x0A\x0Cphp_settings\x18\x17 \x01(\x0B2\x17.google.api.PhpSettings\x123\x0A\x0Fpython_settings\x18\x18 \x01(\x0B2\x1A.google.api.PythonSettings\x12/\x0A\x0Dnode_settings\x18\x19 \x01(\x0B2\x18.google.api.NodeSettings\x123\x0A\x0Fdotnet_settings\x18\x1A \x01(\x0B2\x1A.google.api.DotnetSettings\x12/\x0A\x0Druby_settings\x18\x1B \x01(\x0B2\x18.google.api.RubySettings\x12+\x0A\x0Bgo_settings\x18\x1C \x01(\x0B2\x16.google.api.GoSettings\"\xA8\x03\x0A\x0APublishing\x123\x0A\x0Fmethod_settings\x18\x02 \x03(\x0B2\x1A.google.api.MethodSettings\x12\x15\x0A\x0Dnew_issue_uri\x18e \x01(\x09\x12\x19\x0A\x11documentation_uri\x18f \x01(\x09\x12\x16\x0A\x0Eapi_short_name\x18g \x01(\x09\x12\x14\x0A\x0Cgithub_label\x18h \x01(\x09\x12\x1E\x0A\x16codeowner_github_teams\x18i \x03(\x09\x12\x16\x0A\x0Edoc_tag_prefix\x18j \x01(\x09\x12;\x0A\x0Corganization\x18k \x01(\x0E2%.google.api.ClientLibraryOrganization\x12;\x0A\x10library_settings\x18m \x03(\x0B2!.google.api.ClientLibrarySettings\x12)\x0A!proto_reference_documentation_uri\x18n \x01(\x09\x12(\x0A rest_reference_documentation_uri\x18o \x01(\x09\"\xE3\x01\x0A\x0CJavaSettings\x12\x17\x0A\x0Flibrary_package\x18\x01 \x01(\x09\x12L\x0A\x13service_class_names\x18\x02 \x03(\x0B2/.google.api.JavaSettings.ServiceClassNamesEntry\x122\x0A\x06common\x18\x03 \x01(\x0B2\".google.api.CommonLanguageSettings\x1A8\x0A\x16ServiceClassNamesEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"A\x0A\x0BCppSettings\x122\x0A\x06common\x18\x01 \x01(\x0B2\".google.api.CommonLanguageSettings\"Z\x0A\x0BPhpSettings\x122\x0A\x06common\x18\x01 \x01(\x0B2\".google.api.CommonLanguageSettings\x12\x17\x0A\x0Flibrary_package\x18\x02 \x01(\x09\"\x9B\x02\x0A\x0EPythonSettings\x122\x0A\x06common\x18\x01 \x01(\x0B2\".google.api.CommonLanguageSettings\x12N\x0A\x15experimental_features\x18\x02 \x01(\x0B2/.google.api.PythonSettings.ExperimentalFeatures\x1A\x84\x01\x0A\x14ExperimentalFeatures\x12\x1D\x0A\x15rest_async_io_enabled\x18\x01 \x01(\x08\x12'\x0A\x1Fprotobuf_pythonic_types_enabled\x18\x02 \x01(\x08\x12\$\x0A\x1Cunversioned_package_disabled\x18\x03 \x01(\x08\"B\x0A\x0CNodeSettings\x122\x0A\x06common\x18\x01 \x01(\x0B2\".google.api.CommonLanguageSettings\"\xAA\x03\x0A\x0EDotnetSettings\x122\x0A\x06common\x18\x01 \x01(\x0B2\".google.api.CommonLanguageSettings\x12I\x0A\x10renamed_services\x18\x02 \x03(\x0B2/.google.api.DotnetSettings.RenamedServicesEntry\x12K\x0A\x11renamed_resources\x18\x03 \x03(\x0B20.google.api.DotnetSettings.RenamedResourcesEntry\x12\x19\x0A\x11ignored_resources\x18\x04 \x03(\x09\x12 \x0A\x18forced_namespace_aliases\x18\x05 \x03(\x09\x12\x1E\x0A\x16handwritten_signatures\x18\x06 \x03(\x09\x1A6\x0A\x14RenamedServicesEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\x1A7\x0A\x15RenamedResourcesEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"B\x0A\x0CRubySettings\x122\x0A\x06common\x18\x01 \x01(\x0B2\".google.api.CommonLanguageSettings\"\xBF\x01\x0A\x0AGoSettings\x122\x0A\x06common\x18\x01 \x01(\x0B2\".google.api.CommonLanguageSettings\x12E\x0A\x10renamed_services\x18\x02 \x03(\x0B2+.google.api.GoSettings.RenamedServicesEntry\x1A6\x0A\x14RenamedServicesEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"\x82\x03\x0A\x0EMethodSettings\x12\x10\x0A\x08selector\x18\x01 \x01(\x09\x12<\x0A\x0Clong_running\x18\x02 \x01(\x0B2&.google.api.MethodSettings.LongRunning\x12\x1D\x0A\x15auto_populated_fields\x18\x03 \x03(\x09\x121\x0A\x08batching\x18\x04 \x01(\x0B2\x1F.google.api.BatchingConfigProto\x1A\xCD\x01\x0A\x0BLongRunning\x125\x0A\x12initial_poll_delay\x18\x01 \x01(\x0B2\x19.google.protobuf.Duration\x12\x1D\x0A\x15poll_delay_multiplier\x18\x02 \x01(\x02\x121\x0A\x0Emax_poll_delay\x18\x03 \x01(\x0B2\x19.google.protobuf.Duration\x125\x0A\x12total_poll_timeout\x18\x04 \x01(\x0B2\x19.google.protobuf.Duration\"Q\x0A\x18SelectiveGapicGeneration\x12\x0F\x0A\x07methods\x18\x01 \x03(\x09\x12\$\x0A\x1Cgenerate_omitted_as_internal\x18\x02 \x01(\x08\"\x8B\x01\x0A\x13BatchingConfigProto\x125\x0A\x0Athresholds\x18\x01 \x01(\x0B2!.google.api.BatchingSettingsProto\x12=\x0A\x10batch_descriptor\x18\x02 \x01(\x0B2#.google.api.BatchingDescriptorProto\"\xEB\x02\x0A\x15BatchingSettingsProto\x12\x1F\x0A\x17element_count_threshold\x18\x01 \x01(\x05\x12\x1E\x0A\x16request_byte_threshold\x18\x02 \x01(\x03\x122\x0A\x0Fdelay_threshold\x18\x03 \x01(\x0B2\x19.google.protobuf.Duration\x12\x1B\x0A\x13element_count_limit\x18\x04 \x01(\x05\x12\x1A\x0A\x12request_byte_limit\x18\x05 \x01(\x05\x12\"\x0A\x1Aflow_control_element_limit\x18\x06 \x01(\x05\x12\x1F\x0A\x17flow_control_byte_limit\x18\x07 \x01(\x05\x12_\x0A\$flow_control_limit_exceeded_behavior\x18\x08 \x01(\x0E21.google.api.FlowControlLimitExceededBehaviorProto\"i\x0A\x17BatchingDescriptorProto\x12\x15\x0A\x0Dbatched_field\x18\x01 \x01(\x09\x12\x1C\x0A\x14discriminator_fields\x18\x02 \x03(\x09\x12\x19\x0A\x11subresponse_field\x18\x03 \x01(\x09*\xA3\x01\x0A\x19ClientLibraryOrganization\x12+\x0A'CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED\x10\x00\x12\x09\x0A\x05CLOUD\x10\x01\x12\x07\x0A\x03ADS\x10\x02\x12\x0A\x0A\x06PHOTOS\x10\x03\x12\x0F\x0A\x0BSTREET_VIEW\x10\x04\x12\x0C\x0A\x08SHOPPING\x10\x05\x12\x07\x0A\x03GEO\x10\x06\x12\x11\x0A\x0DGENERATIVE_AI\x10\x07*g\x0A\x18ClientLibraryDestination\x12*\x0A&CLIENT_LIBRARY_DESTINATION_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06GITHUB\x10\x0A\x12\x13\x0A\x0FPACKAGE_MANAGER\x10\x14*g\x0A%FlowControlLimitExceededBehaviorProto\x12\x12\x0A\x0EUNSET_BEHAVIOR\x10\x00\x12\x13\x0A\x0FTHROW_EXCEPTION\x10\x01\x12\x09\x0A\x05BLOCK\x10\x02\x12\x0A\x0A\x06IGNORE\x10\x03Bi\x0A\x0Ecom.google.apiB\x0BClientProtoP\x01ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\xA2\x02\x04GAPIb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/ConfigChange.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/ConfigChange.php new file mode 100644 index 000000000000..82abb6653244 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/ConfigChange.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\xB1\x03\x0A\x1Egoogle/api/config_change.proto\x12\x0Agoogle.api\"\x97\x01\x0A\x0CConfigChange\x12\x0F\x0A\x07element\x18\x01 \x01(\x09\x12\x11\x0A\x09old_value\x18\x02 \x01(\x09\x12\x11\x0A\x09new_value\x18\x03 \x01(\x09\x12+\x0A\x0Bchange_type\x18\x04 \x01(\x0E2\x16.google.api.ChangeType\x12#\x0A\x07advices\x18\x05 \x03(\x0B2\x12.google.api.Advice\"\x1D\x0A\x06Advice\x12\x13\x0A\x0Bdescription\x18\x02 \x01(\x09*O\x0A\x0AChangeType\x12\x1B\x0A\x17CHANGE_TYPE_UNSPECIFIED\x10\x00\x12\x09\x0A\x05ADDED\x10\x01\x12\x0B\x0A\x07REMOVED\x10\x02\x12\x0C\x0A\x08MODIFIED\x10\x03Bq\x0A\x0Ecom.google.apiB\x11ConfigChangeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/api/configchange;configchange\xA2\x02\x04GAPIb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Consumer.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Consumer.php new file mode 100644 index 000000000000..3e59e137926a --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Consumer.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\x87\x03\x0A\x19google/api/consumer.proto\x12\x0Agoogle.api\"=\x0A\x11ProjectProperties\x12(\x0A\x0Aproperties\x18\x01 \x03(\x0B2\x14.google.api.Property\"\xAC\x01\x0A\x08Property\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12/\x0A\x04type\x18\x02 \x01(\x0E2!.google.api.Property.PropertyType\x12\x13\x0A\x0Bdescription\x18\x03 \x01(\x09\"L\x0A\x0CPropertyType\x12\x0F\x0A\x0BUNSPECIFIED\x10\x00\x12\x09\x0A\x05INT64\x10\x01\x12\x08\x0A\x04BOOL\x10\x02\x12\x0A\x0A\x06STRING\x10\x03\x12\x0A\x0A\x06DOUBLE\x10\x04Bh\x0A\x0Ecom.google.apiB\x0DConsumerProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfigb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Context.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Context.php new file mode 100644 index 000000000000..b06c93bd719f --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Context.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\xE1\x02\x0A\x18google/api/context.proto\x12\x0Agoogle.api\"1\x0A\x07Context\x12&\x0A\x05rules\x18\x01 \x03(\x0B2\x17.google.api.ContextRule\"\x8D\x01\x0A\x0BContextRule\x12\x10\x0A\x08selector\x18\x01 \x01(\x09\x12\x11\x0A\x09requested\x18\x02 \x03(\x09\x12\x10\x0A\x08provided\x18\x03 \x03(\x09\x12\"\x0A\x1Aallowed_request_extensions\x18\x04 \x03(\x09\x12#\x0A\x1Ballowed_response_extensions\x18\x05 \x03(\x09Bn\x0A\x0Ecom.google.apiB\x0CContextProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xA2\x02\x04GAPIb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Control.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Control.php new file mode 100644 index 000000000000..ae0f4142baea --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Control.php @@ -0,0 +1,25 @@ +internalAddGeneratedFile( + "\x0A\xF1\x01\x0A\x18google/api/control.proto\x12\x0Agoogle.api\"Q\x0A\x07Control\x12\x13\x0A\x0Benvironment\x18\x01 \x01(\x09\x121\x0A\x0Fmethod_policies\x18\x04 \x03(\x0B2\x18.google.api.MethodPolicyBn\x0A\x0Ecom.google.apiB\x0CControlProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xA2\x02\x04GAPIb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Distribution.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Distribution.php new file mode 100644 index 000000000000..90f51fe3e87c --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Distribution.php @@ -0,0 +1,26 @@ +internalAddGeneratedFile( + "\x0A\xA3\x08\x0A\x1Dgoogle/api/distribution.proto\x12\x0Agoogle.api\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xD9\x06\x0A\x0CDistribution\x12\x0D\x0A\x05count\x18\x01 \x01(\x03\x12\x0C\x0A\x04mean\x18\x02 \x01(\x01\x12 \x0A\x18sum_of_squared_deviation\x18\x03 \x01(\x01\x12-\x0A\x05range\x18\x04 \x01(\x0B2\x1E.google.api.Distribution.Range\x12>\x0A\x0Ebucket_options\x18\x06 \x01(\x0B2&.google.api.Distribution.BucketOptions\x12\x15\x0A\x0Dbucket_counts\x18\x07 \x03(\x03\x124\x0A\x09exemplars\x18\x0A \x03(\x0B2!.google.api.Distribution.Exemplar\x1A!\x0A\x05Range\x12\x0B\x0A\x03min\x18\x01 \x01(\x01\x12\x0B\x0A\x03max\x18\x02 \x01(\x01\x1A\xB5\x03\x0A\x0DBucketOptions\x12G\x0A\x0Elinear_buckets\x18\x01 \x01(\x0B2-.google.api.Distribution.BucketOptions.LinearH\x00\x12Q\x0A\x13exponential_buckets\x18\x02 \x01(\x0B22.google.api.Distribution.BucketOptions.ExponentialH\x00\x12K\x0A\x10explicit_buckets\x18\x03 \x01(\x0B2/.google.api.Distribution.BucketOptions.ExplicitH\x00\x1AC\x0A\x06Linear\x12\x1A\x0A\x12num_finite_buckets\x18\x01 \x01(\x05\x12\x0D\x0A\x05width\x18\x02 \x01(\x01\x12\x0E\x0A\x06offset\x18\x03 \x01(\x01\x1AO\x0A\x0BExponential\x12\x1A\x0A\x12num_finite_buckets\x18\x01 \x01(\x05\x12\x15\x0A\x0Dgrowth_factor\x18\x02 \x01(\x01\x12\x0D\x0A\x05scale\x18\x03 \x01(\x01\x1A\x1A\x0A\x08Explicit\x12\x0E\x0A\x06bounds\x18\x01 \x03(\x01B\x09\x0A\x07options\x1As\x0A\x08Exemplar\x12\x0D\x0A\x05value\x18\x01 \x01(\x01\x12-\x0A\x09timestamp\x18\x02 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12)\x0A\x0Battachments\x18\x03 \x03(\x0B2\x14.google.protobuf.AnyBq\x0A\x0Ecom.google.apiB\x11DistributionProtoP\x01ZCgoogle.golang.org/genproto/googleapis/api/distribution;distribution\xA2\x02\x04GAPIb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Documentation.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Documentation.php new file mode 100644 index 000000000000..a83176a54c3e --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Documentation.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\x90\x04\x0A\x1Egoogle/api/documentation.proto\x12\x0Agoogle.api\"\xBB\x01\x0A\x0DDocumentation\x12\x0F\x0A\x07summary\x18\x01 \x01(\x09\x12\x1F\x0A\x05pages\x18\x05 \x03(\x0B2\x10.google.api.Page\x12,\x0A\x05rules\x18\x03 \x03(\x0B2\x1D.google.api.DocumentationRule\x12\x1E\x0A\x16documentation_root_url\x18\x04 \x01(\x09\x12\x18\x0A\x10service_root_url\x18\x06 \x01(\x09\x12\x10\x0A\x08overview\x18\x02 \x01(\x09\"[\x0A\x11DocumentationRule\x12\x10\x0A\x08selector\x18\x01 \x01(\x09\x12\x13\x0A\x0Bdescription\x18\x02 \x01(\x09\x12\x1F\x0A\x17deprecation_description\x18\x03 \x01(\x09\"I\x0A\x04Page\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12\x0F\x0A\x07content\x18\x02 \x01(\x09\x12\"\x0A\x08subpages\x18\x03 \x03(\x0B2\x10.google.api.PageBt\x0A\x0Ecom.google.apiB\x12DocumentationProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xA2\x02\x04GAPIb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Endpoint.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Endpoint.php new file mode 100644 index 000000000000..1e4fb87a4de6 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Endpoint.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\xEF\x01\x0A\x19google/api/endpoint.proto\x12\x0Agoogle.api\"M\x0A\x08Endpoint\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12\x0F\x0A\x07aliases\x18\x02 \x03(\x09\x12\x0E\x0A\x06target\x18e \x01(\x09\x12\x12\x0A\x0Aallow_cors\x18\x05 \x01(\x08Bo\x0A\x0Ecom.google.apiB\x0DEndpointProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xA2\x02\x04GAPIb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/ErrorReason.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/ErrorReason.php new file mode 100644 index 000000000000..d38f6fcc5c41 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/ErrorReason.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\xBA\x0B\x0A\x1Dgoogle/api/error_reason.proto\x12\x0Agoogle.api*\x92\x0A\x0A\x0BErrorReason\x12\x1C\x0A\x18ERROR_REASON_UNSPECIFIED\x10\x00\x12\x14\x0A\x10SERVICE_DISABLED\x10\x01\x12\x14\x0A\x10BILLING_DISABLED\x10\x02\x12\x13\x0A\x0FAPI_KEY_INVALID\x10\x03\x12\x1B\x0A\x17API_KEY_SERVICE_BLOCKED\x10\x04\x12!\x0A\x1DAPI_KEY_HTTP_REFERRER_BLOCKED\x10\x07\x12\x1E\x0A\x1AAPI_KEY_IP_ADDRESS_BLOCKED\x10\x08\x12\x1F\x0A\x1BAPI_KEY_ANDROID_APP_BLOCKED\x10\x09\x12\x1B\x0A\x17API_KEY_IOS_APP_BLOCKED\x10\x0D\x12\x17\x0A\x13RATE_LIMIT_EXCEEDED\x10\x05\x12\x1B\x0A\x17RESOURCE_QUOTA_EXCEEDED\x10\x06\x12 \x0A\x1CLOCATION_TAX_POLICY_VIOLATED\x10\x0A\x12\x17\x0A\x13USER_PROJECT_DENIED\x10\x0B\x12\x16\x0A\x12CONSUMER_SUSPENDED\x10\x0C\x12\x14\x0A\x10CONSUMER_INVALID\x10\x0E\x12\x1C\x0A\x18SECURITY_POLICY_VIOLATED\x10\x0F\x12\x18\x0A\x14ACCESS_TOKEN_EXPIRED\x10\x10\x12#\x0A\x1FACCESS_TOKEN_SCOPE_INSUFFICIENT\x10\x11\x12\x19\x0A\x15ACCOUNT_STATE_INVALID\x10\x12\x12!\x0A\x1DACCESS_TOKEN_TYPE_UNSUPPORTED\x10\x13\x12\x17\x0A\x13CREDENTIALS_MISSING\x10\x14\x12\x1C\x0A\x18RESOURCE_PROJECT_INVALID\x10\x15\x12\x1A\x0A\x16SESSION_COOKIE_INVALID\x10\x17\x12\x19\x0A\x15USER_BLOCKED_BY_ADMIN\x10\x18\x12'\x0A#RESOURCE_USAGE_RESTRICTION_VIOLATED\x10\x19\x12 \x0A\x1CSYSTEM_PARAMETER_UNSUPPORTED\x10\x1A\x12\x1D\x0A\x19ORG_RESTRICTION_VIOLATION\x10\x1B\x12\"\x0A\x1EORG_RESTRICTION_HEADER_INVALID\x10\x1C\x12\x17\x0A\x13SERVICE_NOT_VISIBLE\x10\x1D\x12\x11\x0A\x0DGCP_SUSPENDED\x10\x1E\x12\x1C\x0A\x18LOCATION_POLICY_VIOLATED\x10\x1F\x12\x12\x0A\x0EMISSING_ORIGIN\x10!\x12\x1A\x0A\x16OVERLOADED_CREDENTIALS\x10\"\x12 \x0A\x1CLOCATION_ORG_POLICY_VIOLATED\x10#\x12\x1B\x0A\x17TLS_ORG_POLICY_VIOLATED\x10\$\x12\x1B\x0A\x17EMULATOR_QUOTA_EXCEEDED\x10&\x12\"\x0A\x1ECREDENTIAL_ANDROID_APP_INVALID\x10'\x12\x19\x0A\x15IAM_PERMISSION_DENIED\x10)\x12\x15\x0A\x11JWT_TOKEN_INVALID\x10*\x12\x1F\x0A\x1BCREDENTIAL_TYPE_UNSUPPORTED\x10+\x12\x1C\x0A\x18ACCOUNT_TYPE_UNSUPPORTED\x10,\x12'\x0A#ENDPOINT_USAGE_RESTRICTION_VIOLATED\x10-\x12#\x0A\x1FTLS_CIPHER_RESTRICTION_VIOLATED\x10.\x12\x17\x0A\x13MCP_SERVER_DISABLED\x10/Bp\x0A\x0Ecom.google.apiB\x10ErrorReasonProtoP\x01ZCgoogle.golang.org/genproto/googleapis/api/error_reason;error_reason\xA2\x02\x04GAPIb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/FieldBehavior.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/FieldBehavior.php new file mode 100644 index 000000000000..72cc2439c61f --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/FieldBehavior.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\x82\x03\x0A\x1Fgoogle/api/field_behavior.proto\x12\x0Agoogle.api\x1A google/protobuf/descriptor.proto*\xB6\x01\x0A\x0DFieldBehavior\x12\x1E\x0A\x1AFIELD_BEHAVIOR_UNSPECIFIED\x10\x00\x12\x0C\x0A\x08OPTIONAL\x10\x01\x12\x0C\x0A\x08REQUIRED\x10\x02\x12\x0F\x0A\x0BOUTPUT_ONLY\x10\x03\x12\x0E\x0A\x0AINPUT_ONLY\x10\x04\x12\x0D\x0A\x09IMMUTABLE\x10\x05\x12\x12\x0A\x0EUNORDERED_LIST\x10\x06\x12\x15\x0A\x11NON_EMPTY_DEFAULT\x10\x07\x12\x0E\x0A\x0AIDENTIFIER\x10\x08Bp\x0A\x0Ecom.google.apiB\x12FieldBehaviorProtoP\x01ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\xA2\x02\x04GAPIb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/FieldInfo.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/FieldInfo.php new file mode 100644 index 000000000000..b699c4dcd537 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/FieldInfo.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\xA9\x03\x0A\x1Bgoogle/api/field_info.proto\x12\x0Agoogle.api\x1A google/protobuf/descriptor.proto\"\xC1\x01\x0A\x09FieldInfo\x12,\x0A\x06format\x18\x01 \x01(\x0E2\x1C.google.api.FieldInfo.Format\x123\x0A\x10referenced_types\x18\x02 \x03(\x0B2\x19.google.api.TypeReference\"Q\x0A\x06Format\x12\x16\x0A\x12FORMAT_UNSPECIFIED\x10\x00\x12\x09\x0A\x05UUID4\x10\x01\x12\x08\x0A\x04IPV4\x10\x02\x12\x08\x0A\x04IPV6\x10\x03\x12\x10\x0A\x0CIPV4_OR_IPV6\x10\x04\"\"\x0A\x0DTypeReference\x12\x11\x0A\x09type_name\x18\x01 \x01(\x09Bl\x0A\x0Ecom.google.apiB\x0EFieldInfoProtoP\x01ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\xA2\x02\x04GAPIb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Http.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Http.php new file mode 100644 index 000000000000..2798dde48900 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Http.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\x9F\x04\x0A\x15google/api/http.proto\x12\x0Agoogle.api\"T\x0A\x04Http\x12#\x0A\x05rules\x18\x01 \x03(\x0B2\x14.google.api.HttpRule\x12'\x0A\x1Ffully_decode_reserved_expansion\x18\x02 \x01(\x08\"\x81\x02\x0A\x08HttpRule\x12\x10\x0A\x08selector\x18\x01 \x01(\x09\x12\x0D\x0A\x03get\x18\x02 \x01(\x09H\x00\x12\x0D\x0A\x03put\x18\x03 \x01(\x09H\x00\x12\x0E\x0A\x04post\x18\x04 \x01(\x09H\x00\x12\x10\x0A\x06delete\x18\x05 \x01(\x09H\x00\x12\x0F\x0A\x05patch\x18\x06 \x01(\x09H\x00\x12/\x0A\x06custom\x18\x08 \x01(\x0B2\x1D.google.api.CustomHttpPatternH\x00\x12\x0C\x0A\x04body\x18\x07 \x01(\x09\x12\x15\x0A\x0Dresponse_body\x18\x0C \x01(\x09\x121\x0A\x13additional_bindings\x18\x0B \x03(\x0B2\x14.google.api.HttpRuleB\x09\x0A\x07pattern\"/\x0A\x11CustomHttpPattern\x12\x0C\x0A\x04kind\x18\x01 \x01(\x09\x12\x0C\x0A\x04path\x18\x02 \x01(\x09Bg\x0A\x0Ecom.google.apiB\x09HttpProtoP\x01ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\xA2\x02\x04GAPIb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Httpbody.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Httpbody.php new file mode 100644 index 000000000000..414f11115319 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Httpbody.php @@ -0,0 +1,25 @@ +internalAddGeneratedFile( + "\x0A\xF0\x01\x0A\x19google/api/httpbody.proto\x12\x0Agoogle.api\"X\x0A\x08HttpBody\x12\x14\x0A\x0Ccontent_type\x18\x01 \x01(\x09\x12\x0C\x0A\x04data\x18\x02 \x01(\x0C\x12(\x0A\x0Aextensions\x18\x03 \x03(\x0B2\x14.google.protobuf.AnyBe\x0A\x0Ecom.google.apiB\x0DHttpBodyProtoP\x01Z;google.golang.org/genproto/googleapis/api/httpbody;httpbody\xA2\x02\x04GAPIb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Label.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Label.php new file mode 100644 index 000000000000..d076fa333968 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Label.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\xA9\x02\x0A\x16google/api/label.proto\x12\x0Agoogle.api\"\x9C\x01\x0A\x0FLabelDescriptor\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x129\x0A\x0Avalue_type\x18\x02 \x01(\x0E2%.google.api.LabelDescriptor.ValueType\x12\x13\x0A\x0Bdescription\x18\x03 \x01(\x09\",\x0A\x09ValueType\x12\x0A\x0A\x06STRING\x10\x00\x12\x08\x0A\x04BOOL\x10\x01\x12\x09\x0A\x05INT64\x10\x02B\\\x0A\x0Ecom.google.apiB\x0ALabelProtoP\x01Z5google.golang.org/genproto/googleapis/api/label;label\xA2\x02\x04GAPIb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/LaunchStage.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/LaunchStage.php new file mode 100644 index 000000000000..6fd92a165718 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/LaunchStage.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\x9E\x02\x0A\x1Dgoogle/api/launch_stage.proto\x12\x0Agoogle.api*\x8C\x01\x0A\x0BLaunchStage\x12\x1C\x0A\x18LAUNCH_STAGE_UNSPECIFIED\x10\x00\x12\x11\x0A\x0DUNIMPLEMENTED\x10\x06\x12\x0D\x0A\x09PRELAUNCH\x10\x07\x12\x10\x0A\x0CEARLY_ACCESS\x10\x01\x12\x09\x0A\x05ALPHA\x10\x02\x12\x08\x0A\x04BETA\x10\x03\x12\x06\x0A\x02GA\x10\x04\x12\x0E\x0A\x0ADEPRECATED\x10\x05BZ\x0A\x0Ecom.google.apiB\x10LaunchStageProtoP\x01Z-google.golang.org/genproto/googleapis/api;api\xA2\x02\x04GAPIb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Log.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Log.php new file mode 100644 index 000000000000..5f7c45af5ae5 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Log.php @@ -0,0 +1,25 @@ +internalAddGeneratedFile( + "\x0A\x8D\x02\x0A\x14google/api/log.proto\x12\x0Agoogle.api\"u\x0A\x0DLogDescriptor\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12+\x0A\x06labels\x18\x02 \x03(\x0B2\x1B.google.api.LabelDescriptor\x12\x13\x0A\x0Bdescription\x18\x03 \x01(\x09\x12\x14\x0A\x0Cdisplay_name\x18\x04 \x01(\x09Bj\x0A\x0Ecom.google.apiB\x08LogProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xA2\x02\x04GAPIb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Logging.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Logging.php new file mode 100644 index 000000000000..921a88c8432e --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Logging.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\xF8\x02\x0A\x18google/api/logging.proto\x12\x0Agoogle.api\"\xD7\x01\x0A\x07Logging\x12E\x0A\x15producer_destinations\x18\x01 \x03(\x0B2&.google.api.Logging.LoggingDestination\x12E\x0A\x15consumer_destinations\x18\x02 \x03(\x0B2&.google.api.Logging.LoggingDestination\x1A>\x0A\x12LoggingDestination\x12\x1A\x0A\x12monitored_resource\x18\x03 \x01(\x09\x12\x0C\x0A\x04logs\x18\x01 \x03(\x09Bn\x0A\x0Ecom.google.apiB\x0CLoggingProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xA2\x02\x04GAPIb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Metric.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Metric.php new file mode 100644 index 000000000000..bac797115c35 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Metric.php @@ -0,0 +1,27 @@ +internalAddGeneratedFile( + "\x0A\xF3\x0A\x0A\x17google/api/metric.proto\x12\x0Agoogle.api\x1A\x1Dgoogle/api/launch_stage.proto\x1A\x1Egoogle/protobuf/duration.proto\"\xAC\x08\x0A\x10MetricDescriptor\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12\x0C\x0A\x04type\x18\x08 \x01(\x09\x12+\x0A\x06labels\x18\x02 \x03(\x0B2\x1B.google.api.LabelDescriptor\x12<\x0A\x0Bmetric_kind\x18\x03 \x01(\x0E2'.google.api.MetricDescriptor.MetricKind\x12:\x0A\x0Avalue_type\x18\x04 \x01(\x0E2&.google.api.MetricDescriptor.ValueType\x12\x0C\x0A\x04unit\x18\x05 \x01(\x09\x12\x13\x0A\x0Bdescription\x18\x06 \x01(\x09\x12\x14\x0A\x0Cdisplay_name\x18\x07 \x01(\x09\x12G\x0A\x08metadata\x18\x0A \x01(\x0B25.google.api.MetricDescriptor.MetricDescriptorMetadata\x12-\x0A\x0Claunch_stage\x18\x0C \x01(\x0E2\x17.google.api.LaunchStage\x12 \x0A\x18monitored_resource_types\x18\x0D \x03(\x09\x1A\xBD\x03\x0A\x18MetricDescriptorMetadata\x121\x0A\x0Claunch_stage\x18\x01 \x01(\x0E2\x17.google.api.LaunchStageB\x02\x18\x01\x120\x0A\x0Dsample_period\x18\x02 \x01(\x0B2\x19.google.protobuf.Duration\x12/\x0A\x0Cingest_delay\x18\x03 \x01(\x0B2\x19.google.protobuf.Duration\x12\x84\x01\x0A\$time_series_resource_hierarchy_level\x18\x04 \x03(\x0E2V.google.api.MetricDescriptor.MetricDescriptorMetadata.TimeSeriesResourceHierarchyLevel\"\x83\x01\x0A TimeSeriesResourceHierarchyLevel\x124\x0A0TIME_SERIES_RESOURCE_HIERARCHY_LEVEL_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07PROJECT\x10\x01\x12\x10\x0A\x0CORGANIZATION\x10\x02\x12\x0A\x0A\x06FOLDER\x10\x03\"O\x0A\x0AMetricKind\x12\x1B\x0A\x17METRIC_KIND_UNSPECIFIED\x10\x00\x12\x09\x0A\x05GAUGE\x10\x01\x12\x09\x0A\x05DELTA\x10\x02\x12\x0E\x0A\x0ACUMULATIVE\x10\x03\"q\x0A\x09ValueType\x12\x1A\x0A\x16VALUE_TYPE_UNSPECIFIED\x10\x00\x12\x08\x0A\x04BOOL\x10\x01\x12\x09\x0A\x05INT64\x10\x02\x12\x0A\x0A\x06DOUBLE\x10\x03\x12\x0A\x0A\x06STRING\x10\x04\x12\x10\x0A\x0CDISTRIBUTION\x10\x05\x12\x09\x0A\x05MONEY\x10\x06\"u\x0A\x06Metric\x12\x0C\x0A\x04type\x18\x03 \x01(\x09\x12.\x0A\x06labels\x18\x02 \x03(\x0B2\x1E.google.api.Metric.LabelsEntry\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01B_\x0A\x0Ecom.google.apiB\x0BMetricProtoP\x01Z7google.golang.org/genproto/googleapis/api/metric;metric\xA2\x02\x04GAPIb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/MonitoredResource.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/MonitoredResource.php new file mode 100644 index 000000000000..e7cb60fa0e10 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/MonitoredResource.php @@ -0,0 +1,27 @@ +internalAddGeneratedFile( + "\x0A\x8C\x06\x0A#google/api/monitored_resource.proto\x12\x0Agoogle.api\x1A\x1Dgoogle/api/launch_stage.proto\x1A\x1Cgoogle/protobuf/struct.proto\"\xC0\x01\x0A\x1BMonitoredResourceDescriptor\x12\x0C\x0A\x04name\x18\x05 \x01(\x09\x12\x0C\x0A\x04type\x18\x01 \x01(\x09\x12\x14\x0A\x0Cdisplay_name\x18\x02 \x01(\x09\x12\x13\x0A\x0Bdescription\x18\x03 \x01(\x09\x12+\x0A\x06labels\x18\x04 \x03(\x0B2\x1B.google.api.LabelDescriptor\x12-\x0A\x0Claunch_stage\x18\x07 \x01(\x0E2\x17.google.api.LaunchStage\"\x8B\x01\x0A\x11MonitoredResource\x12\x0C\x0A\x04type\x18\x01 \x01(\x09\x129\x0A\x06labels\x18\x02 \x03(\x0B2).google.api.MonitoredResource.LabelsEntry\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"\xCA\x01\x0A\x19MonitoredResourceMetadata\x12.\x0A\x0Dsystem_labels\x18\x01 \x01(\x0B2\x17.google.protobuf.Struct\x12J\x0A\x0Buser_labels\x18\x02 \x03(\x0B25.google.api.MonitoredResourceMetadata.UserLabelsEntry\x1A1\x0A\x0FUserLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01Bv\x0A\x0Ecom.google.apiB\x16MonitoredResourceProtoP\x01ZCgoogle.golang.org/genproto/googleapis/api/monitoredres;monitoredres\xA2\x02\x04GAPIb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Monitoring.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Monitoring.php new file mode 100644 index 000000000000..4c70cb0defc8 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Monitoring.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\x93\x03\x0A\x1Bgoogle/api/monitoring.proto\x12\x0Agoogle.api\"\xEC\x01\x0A\x0AMonitoring\x12K\x0A\x15producer_destinations\x18\x01 \x03(\x0B2,.google.api.Monitoring.MonitoringDestination\x12K\x0A\x15consumer_destinations\x18\x02 \x03(\x0B2,.google.api.Monitoring.MonitoringDestination\x1AD\x0A\x15MonitoringDestination\x12\x1A\x0A\x12monitored_resource\x18\x01 \x01(\x09\x12\x0F\x0A\x07metrics\x18\x02 \x03(\x09Bq\x0A\x0Ecom.google.apiB\x0FMonitoringProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xA2\x02\x04GAPIb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Policy.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Policy.php new file mode 100644 index 000000000000..5d6bd055727b --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Policy.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\xE8\x02\x0A\x17google/api/policy.proto\x12\x0Agoogle.api\x1A google/protobuf/descriptor.proto\"S\x0A\x0BFieldPolicy\x12\x10\x0A\x08selector\x18\x01 \x01(\x09\x12\x1B\x0A\x13resource_permission\x18\x02 \x01(\x09\x12\x15\x0A\x0Dresource_type\x18\x03 \x01(\x09\"S\x0A\x0CMethodPolicy\x12\x10\x0A\x08selector\x18\x09 \x01(\x09\x121\x0A\x10request_policies\x18\x02 \x03(\x0B2\x17.google.api.FieldPolicyBm\x0A\x0Ecom.google.apiB\x0BPolicyProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xA2\x02\x04GAPIb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Quota.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Quota.php new file mode 100644 index 000000000000..4f0eded77a02 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Quota.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\xA5\x05\x0A\x16google/api/quota.proto\x12\x0Agoogle.api\"]\x0A\x05Quota\x12&\x0A\x06limits\x18\x03 \x03(\x0B2\x16.google.api.QuotaLimit\x12,\x0A\x0Cmetric_rules\x18\x04 \x03(\x0B2\x16.google.api.MetricRule\"\x91\x01\x0A\x0AMetricRule\x12\x10\x0A\x08selector\x18\x01 \x01(\x09\x12=\x0A\x0Cmetric_costs\x18\x02 \x03(\x0B2'.google.api.MetricRule.MetricCostsEntry\x1A2\x0A\x10MetricCostsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x03:\x028\x01\"\x95\x02\x0A\x0AQuotaLimit\x12\x0C\x0A\x04name\x18\x06 \x01(\x09\x12\x13\x0A\x0Bdescription\x18\x02 \x01(\x09\x12\x15\x0A\x0Ddefault_limit\x18\x03 \x01(\x03\x12\x11\x0A\x09max_limit\x18\x04 \x01(\x03\x12\x11\x0A\x09free_tier\x18\x07 \x01(\x03\x12\x10\x0A\x08duration\x18\x05 \x01(\x09\x12\x0E\x0A\x06metric\x18\x08 \x01(\x09\x12\x0C\x0A\x04unit\x18\x09 \x01(\x09\x122\x0A\x06values\x18\x0A \x03(\x0B2\".google.api.QuotaLimit.ValuesEntry\x12\x14\x0A\x0Cdisplay_name\x18\x0C \x01(\x09\x1A-\x0A\x0BValuesEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x03:\x028\x01Bl\x0A\x0Ecom.google.apiB\x0AQuotaProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xA2\x02\x04GAPIb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Resource.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Resource.php new file mode 100644 index 000000000000..06f145e91841 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Resource.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\xE6\x04\x0A\x19google/api/resource.proto\x12\x0Agoogle.api\x1A google/protobuf/descriptor.proto\"\xEE\x02\x0A\x12ResourceDescriptor\x12\x0C\x0A\x04type\x18\x01 \x01(\x09\x12\x0F\x0A\x07pattern\x18\x02 \x03(\x09\x12\x12\x0A\x0Aname_field\x18\x03 \x01(\x09\x127\x0A\x07history\x18\x04 \x01(\x0E2&.google.api.ResourceDescriptor.History\x12\x0E\x0A\x06plural\x18\x05 \x01(\x09\x12\x10\x0A\x08singular\x18\x06 \x01(\x09\x123\x0A\x05style\x18\x0A \x03(\x0E2\$.google.api.ResourceDescriptor.Style\"[\x0A\x07History\x12\x17\x0A\x13HISTORY_UNSPECIFIED\x10\x00\x12\x1D\x0A\x19ORIGINALLY_SINGLE_PATTERN\x10\x01\x12\x18\x0A\x14FUTURE_MULTI_PATTERN\x10\x02\"8\x0A\x05Style\x12\x15\x0A\x11STYLE_UNSPECIFIED\x10\x00\x12\x18\x0A\x14DECLARATIVE_FRIENDLY\x10\x01\"5\x0A\x11ResourceReference\x12\x0C\x0A\x04type\x18\x01 \x01(\x09\x12\x12\x0A\x0Achild_type\x18\x02 \x01(\x09Bk\x0A\x0Ecom.google.apiB\x0DResourceProtoP\x01ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\xA2\x02\x04GAPIb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Routing.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Routing.php new file mode 100644 index 000000000000..8146395c2b21 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Routing.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\xBF\x02\x0A\x18google/api/routing.proto\x12\x0Agoogle.api\x1A google/protobuf/descriptor.proto\"G\x0A\x0BRoutingRule\x128\x0A\x12routing_parameters\x18\x02 \x03(\x0B2\x1C.google.api.RoutingParameter\"8\x0A\x10RoutingParameter\x12\x0D\x0A\x05field\x18\x01 \x01(\x09\x12\x15\x0A\x0Dpath_template\x18\x02 \x01(\x09Bj\x0A\x0Ecom.google.apiB\x0CRoutingProtoP\x01ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\xA2\x02\x04GAPIb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Service.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Service.php new file mode 100644 index 000000000000..93c4c518f2a0 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Service.php @@ -0,0 +1,45 @@ +internalAddGeneratedFile( + "\x0A\xC9\x0D\x0A\x18google/api/service.proto\x12\x0Agoogle.api\x1A\x18google/api/backend.proto\x1A\x18google/api/billing.proto\x1A\x17google/api/client.proto\x1A\x18google/api/context.proto\x1A\x18google/api/control.proto\x1A\x1Egoogle/api/documentation.proto\x1A\x19google/api/endpoint.proto\x1A\x15google/api/http.proto\x1A\x14google/api/log.proto\x1A\x18google/api/logging.proto\x1A\x17google/api/metric.proto\x1A#google/api/monitored_resource.proto\x1A\x1Bgoogle/api/monitoring.proto\x1A\x16google/api/quota.proto\x1A\x1Cgoogle/api/source_info.proto\x1A!google/api/system_parameter.proto\x1A\x16google/api/usage.proto\x1A\x19google/protobuf/api.proto\x1A\x1Agoogle/protobuf/type.proto\x1A\x1Egoogle/protobuf/wrappers.proto\"\x82\x08\x0A\x07Service\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12\x0D\x0A\x05title\x18\x02 \x01(\x09\x12\x1B\x0A\x13producer_project_id\x18\x16 \x01(\x09\x12\x0A\x0A\x02id\x18! \x01(\x09\x12\"\x0A\x04apis\x18\x03 \x03(\x0B2\x14.google.protobuf.Api\x12\$\x0A\x05types\x18\x04 \x03(\x0B2\x15.google.protobuf.Type\x12\$\x0A\x05enums\x18\x05 \x03(\x0B2\x15.google.protobuf.Enum\x120\x0A\x0Ddocumentation\x18\x06 \x01(\x0B2\x19.google.api.Documentation\x12\$\x0A\x07backend\x18\x08 \x01(\x0B2\x13.google.api.Backend\x12\x1E\x0A\x04http\x18\x09 \x01(\x0B2\x10.google.api.Http\x12 \x0A\x05quota\x18\x0A \x01(\x0B2\x11.google.api.Quota\x122\x0A\x0Eauthentication\x18\x0B \x01(\x0B2\x1A.google.api.Authentication\x12\$\x0A\x07context\x18\x0C \x01(\x0B2\x13.google.api.Context\x12 \x0A\x05usage\x18\x0F \x01(\x0B2\x11.google.api.Usage\x12'\x0A\x09endpoints\x18\x12 \x03(\x0B2\x14.google.api.Endpoint\x12\$\x0A\x07control\x18\x15 \x01(\x0B2\x13.google.api.Control\x12'\x0A\x04logs\x18\x17 \x03(\x0B2\x19.google.api.LogDescriptor\x12-\x0A\x07metrics\x18\x18 \x03(\x0B2\x1C.google.api.MetricDescriptor\x12D\x0A\x13monitored_resources\x18\x19 \x03(\x0B2'.google.api.MonitoredResourceDescriptor\x12\$\x0A\x07billing\x18\x1A \x01(\x0B2\x13.google.api.Billing\x12\$\x0A\x07logging\x18\x1B \x01(\x0B2\x13.google.api.Logging\x12*\x0A\x0Amonitoring\x18\x1C \x01(\x0B2\x16.google.api.Monitoring\x127\x0A\x11system_parameters\x18\x1D \x01(\x0B2\x1C.google.api.SystemParameters\x12+\x0A\x0Bsource_info\x18% \x01(\x0B2\x16.google.api.SourceInfo\x12*\x0A\x0Apublishing\x18- \x01(\x0B2\x16.google.api.Publishing\x124\x0A\x0Econfig_version\x18\x14 \x01(\x0B2\x1C.google.protobuf.UInt32ValueBn\x0A\x0Ecom.google.apiB\x0CServiceProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xA2\x02\x04GAPIb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/SourceInfo.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/SourceInfo.php new file mode 100644 index 000000000000..f22fde7c287a --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/SourceInfo.php @@ -0,0 +1,25 @@ +internalAddGeneratedFile( + "\x0A\xDF\x01\x0A\x1Cgoogle/api/source_info.proto\x12\x0Agoogle.api\"8\x0A\x0ASourceInfo\x12*\x0A\x0Csource_files\x18\x01 \x03(\x0B2\x14.google.protobuf.AnyBq\x0A\x0Ecom.google.apiB\x0FSourceInfoProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xA2\x02\x04GAPIb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/SystemParameter.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/SystemParameter.php new file mode 100644 index 000000000000..cc85b39549d8 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/SystemParameter.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\xA0\x03\x0A!google/api/system_parameter.proto\x12\x0Agoogle.api\"B\x0A\x10SystemParameters\x12.\x0A\x05rules\x18\x01 \x03(\x0B2\x1F.google.api.SystemParameterRule\"X\x0A\x13SystemParameterRule\x12\x10\x0A\x08selector\x18\x01 \x01(\x09\x12/\x0A\x0Aparameters\x18\x02 \x03(\x0B2\x1B.google.api.SystemParameter\"Q\x0A\x0FSystemParameter\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12\x13\x0A\x0Bhttp_header\x18\x02 \x01(\x09\x12\x1B\x0A\x13url_query_parameter\x18\x03 \x01(\x09Bv\x0A\x0Ecom.google.apiB\x14SystemParameterProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xA2\x02\x04GAPIb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Usage.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Usage.php new file mode 100644 index 000000000000..82f244faa367 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Usage.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\xE5\x02\x0A\x16google/api/usage.proto\x12\x0Agoogle.api\"j\x0A\x05Usage\x12\x14\x0A\x0Crequirements\x18\x01 \x03(\x09\x12\$\x0A\x05rules\x18\x06 \x03(\x0B2\x15.google.api.UsageRule\x12%\x0A\x1Dproducer_notification_channel\x18\x07 \x01(\x09\"]\x0A\x09UsageRule\x12\x10\x0A\x08selector\x18\x01 \x01(\x09\x12 \x0A\x18allow_unregistered_calls\x18\x02 \x01(\x08\x12\x1C\x0A\x14skip_service_control\x18\x03 \x01(\x08Bl\x0A\x0Ecom.google.apiB\x0AUsageProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xA2\x02\x04GAPIb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Visibility.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Visibility.php new file mode 100644 index 000000000000..b1f2fa0b6ccb --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Visibility.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\xB2\x02\x0A\x1Bgoogle/api/visibility.proto\x12\x0Agoogle.api\x1A google/protobuf/descriptor.proto\"7\x0A\x0AVisibility\x12)\x0A\x05rules\x18\x01 \x03(\x0B2\x1A.google.api.VisibilityRule\"7\x0A\x0EVisibilityRule\x12\x10\x0A\x08selector\x18\x01 \x01(\x09\x12\x13\x0A\x0Brestriction\x18\x02 \x01(\x09Bk\x0A\x0Ecom.google.apiB\x0FVisibilityProtoP\x01Z?google.golang.org/genproto/googleapis/api/visibility;visibility\xA2\x02\x04GAPIb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Advice.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Advice.php new file mode 100644 index 000000000000..5db1462592bd --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Advice.php @@ -0,0 +1,72 @@ +google.api.Advice + */ +class Advice extends \Google\Protobuf\Internal\Message +{ + /** + * Useful description for why this advice was applied and what actions should + * be taken to mitigate any implied risks. + * + * Generated from protobuf field string description = 2; + */ + protected $description = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $description + * Useful description for why this advice was applied and what actions should + * be taken to mitigate any implied risks. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\ConfigChange::initOnce(); + parent::__construct($data); + } + + /** + * Useful description for why this advice was applied and what actions should + * be taken to mitigate any implied risks. + * + * Generated from protobuf field string description = 2; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Useful description for why this advice was applied and what actions should + * be taken to mitigate any implied risks. + * + * Generated from protobuf field string description = 2; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/AuthProvider.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/AuthProvider.php new file mode 100644 index 000000000000..4241a3eea8a5 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/AuthProvider.php @@ -0,0 +1,419 @@ +google.api.AuthProvider + */ +class AuthProvider extends \Google\Protobuf\Internal\Message +{ + /** + * The unique identifier of the auth provider. It will be referred to by + * `AuthRequirement.provider_id`. + * Example: "bookstore_auth". + * + * Generated from protobuf field string id = 1; + */ + protected $id = ''; + /** + * Identifies the principal that issued the JWT. See + * https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1 + * Usually a URL or an email address. + * Example: https://securetoken.google.com + * Example: 1234567-compute\@developer.gserviceaccount.com + * + * Generated from protobuf field string issuer = 2; + */ + protected $issuer = ''; + /** + * URL of the provider's public key set to validate signature of the JWT. See + * [OpenID + * Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata). + * Optional if the key set document: + * - can be retrieved from + * [OpenID + * Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html) + * of the issuer. + * - can be inferred from the email domain of the issuer (e.g. a Google + * service account). + * Example: https://www.googleapis.com/oauth2/v1/certs + * + * Generated from protobuf field string jwks_uri = 3; + */ + protected $jwks_uri = ''; + /** + * The list of JWT + * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3). + * that are allowed to access. A JWT containing any of these audiences will + * be accepted. When this setting is absent, JWTs with audiences: + * - "https://[service.name]/[google.protobuf.Api.name]" + * - "https://[service.name]/" + * will be accepted. + * For example, if no audiences are in the setting, LibraryService API will + * accept JWTs with the following audiences: + * - + * https://library-example.googleapis.com/google.example.library.v1.LibraryService + * - https://library-example.googleapis.com/ + * Example: + * audiences: bookstore_android.apps.googleusercontent.com, + * bookstore_web.apps.googleusercontent.com + * + * Generated from protobuf field string audiences = 4; + */ + protected $audiences = ''; + /** + * Redirect URL if JWT token is required but not present or is expired. + * Implement authorizationUrl of securityDefinitions in OpenAPI spec. + * + * Generated from protobuf field string authorization_url = 5; + */ + protected $authorization_url = ''; + /** + * Defines the locations to extract the JWT. For now it is only used by the + * Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations] + * (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations) + * JWT locations can be one of HTTP headers, URL query parameters or + * cookies. The rule is that the first match wins. + * If not specified, default to use following 3 locations: + * 1) Authorization: Bearer + * 2) x-goog-iap-jwt-assertion + * 3) access_token query parameter + * Default locations can be specified as followings: + * jwt_locations: + * - header: Authorization + * value_prefix: "Bearer " + * - header: x-goog-iap-jwt-assertion + * - query: access_token + * + * Generated from protobuf field repeated .google.api.JwtLocation jwt_locations = 6; + */ + private $jwt_locations; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $id + * The unique identifier of the auth provider. It will be referred to by + * `AuthRequirement.provider_id`. + * Example: "bookstore_auth". + * @type string $issuer + * Identifies the principal that issued the JWT. See + * https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1 + * Usually a URL or an email address. + * Example: https://securetoken.google.com + * Example: 1234567-compute\@developer.gserviceaccount.com + * @type string $jwks_uri + * URL of the provider's public key set to validate signature of the JWT. See + * [OpenID + * Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata). + * Optional if the key set document: + * - can be retrieved from + * [OpenID + * Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html) + * of the issuer. + * - can be inferred from the email domain of the issuer (e.g. a Google + * service account). + * Example: https://www.googleapis.com/oauth2/v1/certs + * @type string $audiences + * The list of JWT + * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3). + * that are allowed to access. A JWT containing any of these audiences will + * be accepted. When this setting is absent, JWTs with audiences: + * - "https://[service.name]/[google.protobuf.Api.name]" + * - "https://[service.name]/" + * will be accepted. + * For example, if no audiences are in the setting, LibraryService API will + * accept JWTs with the following audiences: + * - + * https://library-example.googleapis.com/google.example.library.v1.LibraryService + * - https://library-example.googleapis.com/ + * Example: + * audiences: bookstore_android.apps.googleusercontent.com, + * bookstore_web.apps.googleusercontent.com + * @type string $authorization_url + * Redirect URL if JWT token is required but not present or is expired. + * Implement authorizationUrl of securityDefinitions in OpenAPI spec. + * @type \Google\Api\JwtLocation[] $jwt_locations + * Defines the locations to extract the JWT. For now it is only used by the + * Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations] + * (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations) + * JWT locations can be one of HTTP headers, URL query parameters or + * cookies. The rule is that the first match wins. + * If not specified, default to use following 3 locations: + * 1) Authorization: Bearer + * 2) x-goog-iap-jwt-assertion + * 3) access_token query parameter + * Default locations can be specified as followings: + * jwt_locations: + * - header: Authorization + * value_prefix: "Bearer " + * - header: x-goog-iap-jwt-assertion + * - query: access_token + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Auth::initOnce(); + parent::__construct($data); + } + + /** + * The unique identifier of the auth provider. It will be referred to by + * `AuthRequirement.provider_id`. + * Example: "bookstore_auth". + * + * Generated from protobuf field string id = 1; + * @return string + */ + public function getId() + { + return $this->id; + } + + /** + * The unique identifier of the auth provider. It will be referred to by + * `AuthRequirement.provider_id`. + * Example: "bookstore_auth". + * + * Generated from protobuf field string id = 1; + * @param string $var + * @return $this + */ + public function setId($var) + { + GPBUtil::checkString($var, True); + $this->id = $var; + + return $this; + } + + /** + * Identifies the principal that issued the JWT. See + * https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1 + * Usually a URL or an email address. + * Example: https://securetoken.google.com + * Example: 1234567-compute\@developer.gserviceaccount.com + * + * Generated from protobuf field string issuer = 2; + * @return string + */ + public function getIssuer() + { + return $this->issuer; + } + + /** + * Identifies the principal that issued the JWT. See + * https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1 + * Usually a URL or an email address. + * Example: https://securetoken.google.com + * Example: 1234567-compute\@developer.gserviceaccount.com + * + * Generated from protobuf field string issuer = 2; + * @param string $var + * @return $this + */ + public function setIssuer($var) + { + GPBUtil::checkString($var, True); + $this->issuer = $var; + + return $this; + } + + /** + * URL of the provider's public key set to validate signature of the JWT. See + * [OpenID + * Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata). + * Optional if the key set document: + * - can be retrieved from + * [OpenID + * Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html) + * of the issuer. + * - can be inferred from the email domain of the issuer (e.g. a Google + * service account). + * Example: https://www.googleapis.com/oauth2/v1/certs + * + * Generated from protobuf field string jwks_uri = 3; + * @return string + */ + public function getJwksUri() + { + return $this->jwks_uri; + } + + /** + * URL of the provider's public key set to validate signature of the JWT. See + * [OpenID + * Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata). + * Optional if the key set document: + * - can be retrieved from + * [OpenID + * Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html) + * of the issuer. + * - can be inferred from the email domain of the issuer (e.g. a Google + * service account). + * Example: https://www.googleapis.com/oauth2/v1/certs + * + * Generated from protobuf field string jwks_uri = 3; + * @param string $var + * @return $this + */ + public function setJwksUri($var) + { + GPBUtil::checkString($var, True); + $this->jwks_uri = $var; + + return $this; + } + + /** + * The list of JWT + * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3). + * that are allowed to access. A JWT containing any of these audiences will + * be accepted. When this setting is absent, JWTs with audiences: + * - "https://[service.name]/[google.protobuf.Api.name]" + * - "https://[service.name]/" + * will be accepted. + * For example, if no audiences are in the setting, LibraryService API will + * accept JWTs with the following audiences: + * - + * https://library-example.googleapis.com/google.example.library.v1.LibraryService + * - https://library-example.googleapis.com/ + * Example: + * audiences: bookstore_android.apps.googleusercontent.com, + * bookstore_web.apps.googleusercontent.com + * + * Generated from protobuf field string audiences = 4; + * @return string + */ + public function getAudiences() + { + return $this->audiences; + } + + /** + * The list of JWT + * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3). + * that are allowed to access. A JWT containing any of these audiences will + * be accepted. When this setting is absent, JWTs with audiences: + * - "https://[service.name]/[google.protobuf.Api.name]" + * - "https://[service.name]/" + * will be accepted. + * For example, if no audiences are in the setting, LibraryService API will + * accept JWTs with the following audiences: + * - + * https://library-example.googleapis.com/google.example.library.v1.LibraryService + * - https://library-example.googleapis.com/ + * Example: + * audiences: bookstore_android.apps.googleusercontent.com, + * bookstore_web.apps.googleusercontent.com + * + * Generated from protobuf field string audiences = 4; + * @param string $var + * @return $this + */ + public function setAudiences($var) + { + GPBUtil::checkString($var, True); + $this->audiences = $var; + + return $this; + } + + /** + * Redirect URL if JWT token is required but not present or is expired. + * Implement authorizationUrl of securityDefinitions in OpenAPI spec. + * + * Generated from protobuf field string authorization_url = 5; + * @return string + */ + public function getAuthorizationUrl() + { + return $this->authorization_url; + } + + /** + * Redirect URL if JWT token is required but not present or is expired. + * Implement authorizationUrl of securityDefinitions in OpenAPI spec. + * + * Generated from protobuf field string authorization_url = 5; + * @param string $var + * @return $this + */ + public function setAuthorizationUrl($var) + { + GPBUtil::checkString($var, True); + $this->authorization_url = $var; + + return $this; + } + + /** + * Defines the locations to extract the JWT. For now it is only used by the + * Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations] + * (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations) + * JWT locations can be one of HTTP headers, URL query parameters or + * cookies. The rule is that the first match wins. + * If not specified, default to use following 3 locations: + * 1) Authorization: Bearer + * 2) x-goog-iap-jwt-assertion + * 3) access_token query parameter + * Default locations can be specified as followings: + * jwt_locations: + * - header: Authorization + * value_prefix: "Bearer " + * - header: x-goog-iap-jwt-assertion + * - query: access_token + * + * Generated from protobuf field repeated .google.api.JwtLocation jwt_locations = 6; + * @return RepeatedField<\Google\Api\JwtLocation> + */ + public function getJwtLocations() + { + return $this->jwt_locations; + } + + /** + * Defines the locations to extract the JWT. For now it is only used by the + * Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations] + * (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations) + * JWT locations can be one of HTTP headers, URL query parameters or + * cookies. The rule is that the first match wins. + * If not specified, default to use following 3 locations: + * 1) Authorization: Bearer + * 2) x-goog-iap-jwt-assertion + * 3) access_token query parameter + * Default locations can be specified as followings: + * jwt_locations: + * - header: Authorization + * value_prefix: "Bearer " + * - header: x-goog-iap-jwt-assertion + * - query: access_token + * + * Generated from protobuf field repeated .google.api.JwtLocation jwt_locations = 6; + * @param \Google\Api\JwtLocation[] $var + * @return $this + */ + public function setJwtLocations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\JwtLocation::class); + $this->jwt_locations = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/AuthRequirement.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/AuthRequirement.php new file mode 100644 index 000000000000..01f92d53818b --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/AuthRequirement.php @@ -0,0 +1,159 @@ +google.api.AuthRequirement + */ +class AuthRequirement extends \Google\Protobuf\Internal\Message +{ + /** + * [id][google.api.AuthProvider.id] from authentication provider. + * Example: + * provider_id: bookstore_auth + * + * Generated from protobuf field string provider_id = 1; + */ + protected $provider_id = ''; + /** + * NOTE: This will be deprecated soon, once AuthProvider.audiences is + * implemented and accepted in all the runtime components. + * The list of JWT + * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3). + * that are allowed to access. A JWT containing any of these audiences will + * be accepted. When this setting is absent, only JWTs with audience + * "https://[Service_name][google.api.Service.name]/[API_name][google.protobuf.Api.name]" + * will be accepted. For example, if no audiences are in the setting, + * LibraryService API will only accept JWTs with the following audience + * "https://library-example.googleapis.com/google.example.library.v1.LibraryService". + * Example: + * audiences: bookstore_android.apps.googleusercontent.com, + * bookstore_web.apps.googleusercontent.com + * + * Generated from protobuf field string audiences = 2; + */ + protected $audiences = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $provider_id + * [id][google.api.AuthProvider.id] from authentication provider. + * Example: + * provider_id: bookstore_auth + * @type string $audiences + * NOTE: This will be deprecated soon, once AuthProvider.audiences is + * implemented and accepted in all the runtime components. + * The list of JWT + * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3). + * that are allowed to access. A JWT containing any of these audiences will + * be accepted. When this setting is absent, only JWTs with audience + * "https://[Service_name][google.api.Service.name]/[API_name][google.protobuf.Api.name]" + * will be accepted. For example, if no audiences are in the setting, + * LibraryService API will only accept JWTs with the following audience + * "https://library-example.googleapis.com/google.example.library.v1.LibraryService". + * Example: + * audiences: bookstore_android.apps.googleusercontent.com, + * bookstore_web.apps.googleusercontent.com + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Auth::initOnce(); + parent::__construct($data); + } + + /** + * [id][google.api.AuthProvider.id] from authentication provider. + * Example: + * provider_id: bookstore_auth + * + * Generated from protobuf field string provider_id = 1; + * @return string + */ + public function getProviderId() + { + return $this->provider_id; + } + + /** + * [id][google.api.AuthProvider.id] from authentication provider. + * Example: + * provider_id: bookstore_auth + * + * Generated from protobuf field string provider_id = 1; + * @param string $var + * @return $this + */ + public function setProviderId($var) + { + GPBUtil::checkString($var, True); + $this->provider_id = $var; + + return $this; + } + + /** + * NOTE: This will be deprecated soon, once AuthProvider.audiences is + * implemented and accepted in all the runtime components. + * The list of JWT + * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3). + * that are allowed to access. A JWT containing any of these audiences will + * be accepted. When this setting is absent, only JWTs with audience + * "https://[Service_name][google.api.Service.name]/[API_name][google.protobuf.Api.name]" + * will be accepted. For example, if no audiences are in the setting, + * LibraryService API will only accept JWTs with the following audience + * "https://library-example.googleapis.com/google.example.library.v1.LibraryService". + * Example: + * audiences: bookstore_android.apps.googleusercontent.com, + * bookstore_web.apps.googleusercontent.com + * + * Generated from protobuf field string audiences = 2; + * @return string + */ + public function getAudiences() + { + return $this->audiences; + } + + /** + * NOTE: This will be deprecated soon, once AuthProvider.audiences is + * implemented and accepted in all the runtime components. + * The list of JWT + * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3). + * that are allowed to access. A JWT containing any of these audiences will + * be accepted. When this setting is absent, only JWTs with audience + * "https://[Service_name][google.api.Service.name]/[API_name][google.protobuf.Api.name]" + * will be accepted. For example, if no audiences are in the setting, + * LibraryService API will only accept JWTs with the following audience + * "https://library-example.googleapis.com/google.example.library.v1.LibraryService". + * Example: + * audiences: bookstore_android.apps.googleusercontent.com, + * bookstore_web.apps.googleusercontent.com + * + * Generated from protobuf field string audiences = 2; + * @param string $var + * @return $this + */ + public function setAudiences($var) + { + GPBUtil::checkString($var, True); + $this->audiences = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Authentication.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Authentication.php new file mode 100644 index 000000000000..608c6fb23bd0 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Authentication.php @@ -0,0 +1,120 @@ +google.api.Authentication + */ +class Authentication extends \Google\Protobuf\Internal\Message +{ + /** + * A list of authentication rules that apply to individual API methods. + * **NOTE:** All service configuration rules follow "last one wins" order. + * + * Generated from protobuf field repeated .google.api.AuthenticationRule rules = 3; + */ + private $rules; + /** + * Defines a set of authentication providers that a service supports. + * + * Generated from protobuf field repeated .google.api.AuthProvider providers = 4; + */ + private $providers; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Api\AuthenticationRule[] $rules + * A list of authentication rules that apply to individual API methods. + * **NOTE:** All service configuration rules follow "last one wins" order. + * @type \Google\Api\AuthProvider[] $providers + * Defines a set of authentication providers that a service supports. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Auth::initOnce(); + parent::__construct($data); + } + + /** + * A list of authentication rules that apply to individual API methods. + * **NOTE:** All service configuration rules follow "last one wins" order. + * + * Generated from protobuf field repeated .google.api.AuthenticationRule rules = 3; + * @return RepeatedField<\Google\Api\AuthenticationRule> + */ + public function getRules() + { + return $this->rules; + } + + /** + * A list of authentication rules that apply to individual API methods. + * **NOTE:** All service configuration rules follow "last one wins" order. + * + * Generated from protobuf field repeated .google.api.AuthenticationRule rules = 3; + * @param \Google\Api\AuthenticationRule[] $var + * @return $this + */ + public function setRules($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\AuthenticationRule::class); + $this->rules = $arr; + + return $this; + } + + /** + * Defines a set of authentication providers that a service supports. + * + * Generated from protobuf field repeated .google.api.AuthProvider providers = 4; + * @return RepeatedField<\Google\Api\AuthProvider> + */ + public function getProviders() + { + return $this->providers; + } + + /** + * Defines a set of authentication providers that a service supports. + * + * Generated from protobuf field repeated .google.api.AuthProvider providers = 4; + * @param \Google\Api\AuthProvider[] $var + * @return $this + */ + public function setProviders($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\AuthProvider::class); + $this->providers = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/AuthenticationRule.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/AuthenticationRule.php new file mode 100644 index 000000000000..3abcb6dec118 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/AuthenticationRule.php @@ -0,0 +1,197 @@ +google.api.AuthenticationRule + */ +class AuthenticationRule extends \Google\Protobuf\Internal\Message +{ + /** + * Selects the methods to which this rule applies. + * Refer to [selector][google.api.DocumentationRule.selector] for syntax + * details. + * + * Generated from protobuf field string selector = 1; + */ + protected $selector = ''; + /** + * The requirements for OAuth credentials. + * + * Generated from protobuf field .google.api.OAuthRequirements oauth = 2; + */ + protected $oauth = null; + /** + * If true, the service accepts API keys without any other credential. + * This flag only applies to HTTP and gRPC requests. + * + * Generated from protobuf field bool allow_without_credential = 5; + */ + protected $allow_without_credential = false; + /** + * Requirements for additional authentication providers. + * + * Generated from protobuf field repeated .google.api.AuthRequirement requirements = 7; + */ + private $requirements; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $selector + * Selects the methods to which this rule applies. + * Refer to [selector][google.api.DocumentationRule.selector] for syntax + * details. + * @type \Google\Api\OAuthRequirements $oauth + * The requirements for OAuth credentials. + * @type bool $allow_without_credential + * If true, the service accepts API keys without any other credential. + * This flag only applies to HTTP and gRPC requests. + * @type \Google\Api\AuthRequirement[] $requirements + * Requirements for additional authentication providers. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Auth::initOnce(); + parent::__construct($data); + } + + /** + * Selects the methods to which this rule applies. + * Refer to [selector][google.api.DocumentationRule.selector] for syntax + * details. + * + * Generated from protobuf field string selector = 1; + * @return string + */ + public function getSelector() + { + return $this->selector; + } + + /** + * Selects the methods to which this rule applies. + * Refer to [selector][google.api.DocumentationRule.selector] for syntax + * details. + * + * Generated from protobuf field string selector = 1; + * @param string $var + * @return $this + */ + public function setSelector($var) + { + GPBUtil::checkString($var, True); + $this->selector = $var; + + return $this; + } + + /** + * The requirements for OAuth credentials. + * + * Generated from protobuf field .google.api.OAuthRequirements oauth = 2; + * @return \Google\Api\OAuthRequirements|null + */ + public function getOauth() + { + return $this->oauth; + } + + public function hasOauth() + { + return isset($this->oauth); + } + + public function clearOauth() + { + unset($this->oauth); + } + + /** + * The requirements for OAuth credentials. + * + * Generated from protobuf field .google.api.OAuthRequirements oauth = 2; + * @param \Google\Api\OAuthRequirements $var + * @return $this + */ + public function setOauth($var) + { + GPBUtil::checkMessage($var, \Google\Api\OAuthRequirements::class); + $this->oauth = $var; + + return $this; + } + + /** + * If true, the service accepts API keys without any other credential. + * This flag only applies to HTTP and gRPC requests. + * + * Generated from protobuf field bool allow_without_credential = 5; + * @return bool + */ + public function getAllowWithoutCredential() + { + return $this->allow_without_credential; + } + + /** + * If true, the service accepts API keys without any other credential. + * This flag only applies to HTTP and gRPC requests. + * + * Generated from protobuf field bool allow_without_credential = 5; + * @param bool $var + * @return $this + */ + public function setAllowWithoutCredential($var) + { + GPBUtil::checkBool($var); + $this->allow_without_credential = $var; + + return $this; + } + + /** + * Requirements for additional authentication providers. + * + * Generated from protobuf field repeated .google.api.AuthRequirement requirements = 7; + * @return RepeatedField<\Google\Api\AuthRequirement> + */ + public function getRequirements() + { + return $this->requirements; + } + + /** + * Requirements for additional authentication providers. + * + * Generated from protobuf field repeated .google.api.AuthRequirement requirements = 7; + * @param \Google\Api\AuthRequirement[] $var + * @return $this + */ + public function setRequirements($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\AuthRequirement::class); + $this->requirements = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Backend.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Backend.php new file mode 100644 index 000000000000..6ffebebbf701 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Backend.php @@ -0,0 +1,71 @@ +google.api.Backend + */ +class Backend extends \Google\Protobuf\Internal\Message +{ + /** + * A list of API backend rules that apply to individual API methods. + * **NOTE:** All service configuration rules follow "last one wins" order. + * + * Generated from protobuf field repeated .google.api.BackendRule rules = 1; + */ + private $rules; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Api\BackendRule[] $rules + * A list of API backend rules that apply to individual API methods. + * **NOTE:** All service configuration rules follow "last one wins" order. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Backend::initOnce(); + parent::__construct($data); + } + + /** + * A list of API backend rules that apply to individual API methods. + * **NOTE:** All service configuration rules follow "last one wins" order. + * + * Generated from protobuf field repeated .google.api.BackendRule rules = 1; + * @return RepeatedField<\Google\Api\BackendRule> + */ + public function getRules() + { + return $this->rules; + } + + /** + * A list of API backend rules that apply to individual API methods. + * **NOTE:** All service configuration rules follow "last one wins" order. + * + * Generated from protobuf field repeated .google.api.BackendRule rules = 1; + * @param \Google\Api\BackendRule[] $var + * @return $this + */ + public function setRules($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\BackendRule::class); + $this->rules = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/BackendRule.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/BackendRule.php new file mode 100644 index 000000000000..63770f4953b8 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/BackendRule.php @@ -0,0 +1,592 @@ +google.api.BackendRule + */ +class BackendRule extends \Google\Protobuf\Internal\Message +{ + /** + * Selects the methods to which this rule applies. + * Refer to [selector][google.api.DocumentationRule.selector] for syntax + * details. + * + * Generated from protobuf field string selector = 1; + */ + protected $selector = ''; + /** + * The address of the API backend. + * The scheme is used to determine the backend protocol and security. + * The following schemes are accepted: + * SCHEME PROTOCOL SECURITY + * http:// HTTP None + * https:// HTTP TLS + * grpc:// gRPC None + * grpcs:// gRPC TLS + * It is recommended to explicitly include a scheme. Leaving out the scheme + * may cause constrasting behaviors across platforms. + * If the port is unspecified, the default is: + * - 80 for schemes without TLS + * - 443 for schemes with TLS + * For HTTP backends, use [protocol][google.api.BackendRule.protocol] + * to specify the protocol version. + * + * Generated from protobuf field string address = 2; + */ + protected $address = ''; + /** + * The number of seconds to wait for a response from a request. The default + * varies based on the request protocol and deployment environment. + * + * Generated from protobuf field double deadline = 3; + */ + protected $deadline = 0.0; + /** + * Deprecated, do not use. + * + * Generated from protobuf field double min_deadline = 4 [deprecated = true]; + * @deprecated + */ + protected $min_deadline = 0.0; + /** + * The number of seconds to wait for the completion of a long running + * operation. The default is no deadline. + * + * Generated from protobuf field double operation_deadline = 5; + */ + protected $operation_deadline = 0.0; + /** + * Path translation specifies how to combine the backend address with the + * request path in order to produce the appropriate forwarding URL for the + * request. See [PathTranslation][google.api.BackendRule.PathTranslation] for + * more details. + * + * Generated from protobuf field .google.api.BackendRule.PathTranslation path_translation = 6; + */ + protected $path_translation = 0; + /** + * The protocol used for sending a request to the backend. + * The supported values are "http/1.1" and "h2". + * The default value is inferred from the scheme in the + * [address][google.api.BackendRule.address] field: + * SCHEME PROTOCOL + * http:// http/1.1 + * https:// http/1.1 + * grpc:// h2 + * grpcs:// h2 + * For secure HTTP backends (https://) that support HTTP/2, set this field + * to "h2" for improved performance. + * Configuring this field to non-default values is only supported for secure + * HTTP backends. This field will be ignored for all other backends. + * See + * https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids + * for more details on the supported values. + * + * Generated from protobuf field string protocol = 9; + */ + protected $protocol = ''; + /** + * The map between request protocol and the backend address. + * + * Generated from protobuf field map overrides_by_request_protocol = 10; + */ + private $overrides_by_request_protocol; + /** + * The load balancing policy used for connection to the application backend. + * Defined as an arbitrary string to accomondate custom load balancing + * policies supported by the underlying channel, but suggest most users use + * one of the standard policies, such as the default, "RoundRobin". + * + * Generated from protobuf field string load_balancing_policy = 11; + */ + protected $load_balancing_policy = ''; + protected $authentication; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $selector + * Selects the methods to which this rule applies. + * Refer to [selector][google.api.DocumentationRule.selector] for syntax + * details. + * @type string $address + * The address of the API backend. + * The scheme is used to determine the backend protocol and security. + * The following schemes are accepted: + * SCHEME PROTOCOL SECURITY + * http:// HTTP None + * https:// HTTP TLS + * grpc:// gRPC None + * grpcs:// gRPC TLS + * It is recommended to explicitly include a scheme. Leaving out the scheme + * may cause constrasting behaviors across platforms. + * If the port is unspecified, the default is: + * - 80 for schemes without TLS + * - 443 for schemes with TLS + * For HTTP backends, use [protocol][google.api.BackendRule.protocol] + * to specify the protocol version. + * @type float $deadline + * The number of seconds to wait for a response from a request. The default + * varies based on the request protocol and deployment environment. + * @type float $min_deadline + * Deprecated, do not use. + * @type float $operation_deadline + * The number of seconds to wait for the completion of a long running + * operation. The default is no deadline. + * @type int $path_translation + * Path translation specifies how to combine the backend address with the + * request path in order to produce the appropriate forwarding URL for the + * request. See [PathTranslation][google.api.BackendRule.PathTranslation] for + * more details. + * @type string $jwt_audience + * The JWT audience is used when generating a JWT ID token for the backend. + * This ID token will be added in the HTTP "authorization" header, and sent + * to the backend. + * @type bool $disable_auth + * When disable_auth is true, a JWT ID token won't be generated and the + * original "Authorization" HTTP header will be preserved. If the header is + * used to carry the original token and is expected by the backend, this + * field must be set to true to preserve the header. + * @type string $protocol + * The protocol used for sending a request to the backend. + * The supported values are "http/1.1" and "h2". + * The default value is inferred from the scheme in the + * [address][google.api.BackendRule.address] field: + * SCHEME PROTOCOL + * http:// http/1.1 + * https:// http/1.1 + * grpc:// h2 + * grpcs:// h2 + * For secure HTTP backends (https://) that support HTTP/2, set this field + * to "h2" for improved performance. + * Configuring this field to non-default values is only supported for secure + * HTTP backends. This field will be ignored for all other backends. + * See + * https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids + * for more details on the supported values. + * @type array|\Google\Protobuf\Internal\MapField $overrides_by_request_protocol + * The map between request protocol and the backend address. + * @type string $load_balancing_policy + * The load balancing policy used for connection to the application backend. + * Defined as an arbitrary string to accomondate custom load balancing + * policies supported by the underlying channel, but suggest most users use + * one of the standard policies, such as the default, "RoundRobin". + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Backend::initOnce(); + parent::__construct($data); + } + + /** + * Selects the methods to which this rule applies. + * Refer to [selector][google.api.DocumentationRule.selector] for syntax + * details. + * + * Generated from protobuf field string selector = 1; + * @return string + */ + public function getSelector() + { + return $this->selector; + } + + /** + * Selects the methods to which this rule applies. + * Refer to [selector][google.api.DocumentationRule.selector] for syntax + * details. + * + * Generated from protobuf field string selector = 1; + * @param string $var + * @return $this + */ + public function setSelector($var) + { + GPBUtil::checkString($var, True); + $this->selector = $var; + + return $this; + } + + /** + * The address of the API backend. + * The scheme is used to determine the backend protocol and security. + * The following schemes are accepted: + * SCHEME PROTOCOL SECURITY + * http:// HTTP None + * https:// HTTP TLS + * grpc:// gRPC None + * grpcs:// gRPC TLS + * It is recommended to explicitly include a scheme. Leaving out the scheme + * may cause constrasting behaviors across platforms. + * If the port is unspecified, the default is: + * - 80 for schemes without TLS + * - 443 for schemes with TLS + * For HTTP backends, use [protocol][google.api.BackendRule.protocol] + * to specify the protocol version. + * + * Generated from protobuf field string address = 2; + * @return string + */ + public function getAddress() + { + return $this->address; + } + + /** + * The address of the API backend. + * The scheme is used to determine the backend protocol and security. + * The following schemes are accepted: + * SCHEME PROTOCOL SECURITY + * http:// HTTP None + * https:// HTTP TLS + * grpc:// gRPC None + * grpcs:// gRPC TLS + * It is recommended to explicitly include a scheme. Leaving out the scheme + * may cause constrasting behaviors across platforms. + * If the port is unspecified, the default is: + * - 80 for schemes without TLS + * - 443 for schemes with TLS + * For HTTP backends, use [protocol][google.api.BackendRule.protocol] + * to specify the protocol version. + * + * Generated from protobuf field string address = 2; + * @param string $var + * @return $this + */ + public function setAddress($var) + { + GPBUtil::checkString($var, True); + $this->address = $var; + + return $this; + } + + /** + * The number of seconds to wait for a response from a request. The default + * varies based on the request protocol and deployment environment. + * + * Generated from protobuf field double deadline = 3; + * @return float + */ + public function getDeadline() + { + return $this->deadline; + } + + /** + * The number of seconds to wait for a response from a request. The default + * varies based on the request protocol and deployment environment. + * + * Generated from protobuf field double deadline = 3; + * @param float $var + * @return $this + */ + public function setDeadline($var) + { + GPBUtil::checkDouble($var); + $this->deadline = $var; + + return $this; + } + + /** + * Deprecated, do not use. + * + * Generated from protobuf field double min_deadline = 4 [deprecated = true]; + * @return float + * @deprecated + */ + public function getMinDeadline() + { + if ($this->min_deadline !== 0.0) { + @trigger_error('min_deadline is deprecated.', E_USER_DEPRECATED); + } + return $this->min_deadline; + } + + /** + * Deprecated, do not use. + * + * Generated from protobuf field double min_deadline = 4 [deprecated = true]; + * @param float $var + * @return $this + * @deprecated + */ + public function setMinDeadline($var) + { + @trigger_error('min_deadline is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkDouble($var); + $this->min_deadline = $var; + + return $this; + } + + /** + * The number of seconds to wait for the completion of a long running + * operation. The default is no deadline. + * + * Generated from protobuf field double operation_deadline = 5; + * @return float + */ + public function getOperationDeadline() + { + return $this->operation_deadline; + } + + /** + * The number of seconds to wait for the completion of a long running + * operation. The default is no deadline. + * + * Generated from protobuf field double operation_deadline = 5; + * @param float $var + * @return $this + */ + public function setOperationDeadline($var) + { + GPBUtil::checkDouble($var); + $this->operation_deadline = $var; + + return $this; + } + + /** + * Path translation specifies how to combine the backend address with the + * request path in order to produce the appropriate forwarding URL for the + * request. See [PathTranslation][google.api.BackendRule.PathTranslation] for + * more details. + * + * Generated from protobuf field .google.api.BackendRule.PathTranslation path_translation = 6; + * @return int + */ + public function getPathTranslation() + { + return $this->path_translation; + } + + /** + * Path translation specifies how to combine the backend address with the + * request path in order to produce the appropriate forwarding URL for the + * request. See [PathTranslation][google.api.BackendRule.PathTranslation] for + * more details. + * + * Generated from protobuf field .google.api.BackendRule.PathTranslation path_translation = 6; + * @param int $var + * @return $this + */ + public function setPathTranslation($var) + { + GPBUtil::checkEnum($var, \Google\Api\BackendRule\PathTranslation::class); + $this->path_translation = $var; + + return $this; + } + + /** + * The JWT audience is used when generating a JWT ID token for the backend. + * This ID token will be added in the HTTP "authorization" header, and sent + * to the backend. + * + * Generated from protobuf field string jwt_audience = 7; + * @return string + */ + public function getJwtAudience() + { + return $this->readOneof(7); + } + + public function hasJwtAudience() + { + return $this->hasOneof(7); + } + + /** + * The JWT audience is used when generating a JWT ID token for the backend. + * This ID token will be added in the HTTP "authorization" header, and sent + * to the backend. + * + * Generated from protobuf field string jwt_audience = 7; + * @param string $var + * @return $this + */ + public function setJwtAudience($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(7, $var); + + return $this; + } + + /** + * When disable_auth is true, a JWT ID token won't be generated and the + * original "Authorization" HTTP header will be preserved. If the header is + * used to carry the original token and is expected by the backend, this + * field must be set to true to preserve the header. + * + * Generated from protobuf field bool disable_auth = 8; + * @return bool + */ + public function getDisableAuth() + { + return $this->readOneof(8); + } + + public function hasDisableAuth() + { + return $this->hasOneof(8); + } + + /** + * When disable_auth is true, a JWT ID token won't be generated and the + * original "Authorization" HTTP header will be preserved. If the header is + * used to carry the original token and is expected by the backend, this + * field must be set to true to preserve the header. + * + * Generated from protobuf field bool disable_auth = 8; + * @param bool $var + * @return $this + */ + public function setDisableAuth($var) + { + GPBUtil::checkBool($var); + $this->writeOneof(8, $var); + + return $this; + } + + /** + * The protocol used for sending a request to the backend. + * The supported values are "http/1.1" and "h2". + * The default value is inferred from the scheme in the + * [address][google.api.BackendRule.address] field: + * SCHEME PROTOCOL + * http:// http/1.1 + * https:// http/1.1 + * grpc:// h2 + * grpcs:// h2 + * For secure HTTP backends (https://) that support HTTP/2, set this field + * to "h2" for improved performance. + * Configuring this field to non-default values is only supported for secure + * HTTP backends. This field will be ignored for all other backends. + * See + * https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids + * for more details on the supported values. + * + * Generated from protobuf field string protocol = 9; + * @return string + */ + public function getProtocol() + { + return $this->protocol; + } + + /** + * The protocol used for sending a request to the backend. + * The supported values are "http/1.1" and "h2". + * The default value is inferred from the scheme in the + * [address][google.api.BackendRule.address] field: + * SCHEME PROTOCOL + * http:// http/1.1 + * https:// http/1.1 + * grpc:// h2 + * grpcs:// h2 + * For secure HTTP backends (https://) that support HTTP/2, set this field + * to "h2" for improved performance. + * Configuring this field to non-default values is only supported for secure + * HTTP backends. This field will be ignored for all other backends. + * See + * https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids + * for more details on the supported values. + * + * Generated from protobuf field string protocol = 9; + * @param string $var + * @return $this + */ + public function setProtocol($var) + { + GPBUtil::checkString($var, True); + $this->protocol = $var; + + return $this; + } + + /** + * The map between request protocol and the backend address. + * + * Generated from protobuf field map overrides_by_request_protocol = 10; + * @return \Google\Protobuf\Internal\MapField + */ + public function getOverridesByRequestProtocol() + { + return $this->overrides_by_request_protocol; + } + + /** + * The map between request protocol and the backend address. + * + * Generated from protobuf field map overrides_by_request_protocol = 10; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setOverridesByRequestProtocol($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\BackendRule::class); + $this->overrides_by_request_protocol = $arr; + + return $this; + } + + /** + * The load balancing policy used for connection to the application backend. + * Defined as an arbitrary string to accomondate custom load balancing + * policies supported by the underlying channel, but suggest most users use + * one of the standard policies, such as the default, "RoundRobin". + * + * Generated from protobuf field string load_balancing_policy = 11; + * @return string + */ + public function getLoadBalancingPolicy() + { + return $this->load_balancing_policy; + } + + /** + * The load balancing policy used for connection to the application backend. + * Defined as an arbitrary string to accomondate custom load balancing + * policies supported by the underlying channel, but suggest most users use + * one of the standard policies, such as the default, "RoundRobin". + * + * Generated from protobuf field string load_balancing_policy = 11; + * @param string $var + * @return $this + */ + public function setLoadBalancingPolicy($var) + { + GPBUtil::checkString($var, True); + $this->load_balancing_policy = $var; + + return $this; + } + + /** + * @return string + */ + public function getAuthentication() + { + return $this->whichOneof("authentication"); + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/BackendRule/PathTranslation.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/BackendRule/PathTranslation.php new file mode 100644 index 000000000000..366c5496d121 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/BackendRule/PathTranslation.php @@ -0,0 +1,92 @@ +google.api.BackendRule.PathTranslation + */ +class PathTranslation +{ + /** + * Generated from protobuf enum PATH_TRANSLATION_UNSPECIFIED = 0; + */ + const PATH_TRANSLATION_UNSPECIFIED = 0; + /** + * Use the backend address as-is, with no modification to the path. If the + * URL pattern contains variables, the variable names and values will be + * appended to the query string. If a query string parameter and a URL + * pattern variable have the same name, this may result in duplicate keys in + * the query string. + * # Examples + * Given the following operation config: + * Method path: /api/company/{cid}/user/{uid} + * Backend address: https://example.cloudfunctions.net/getUser + * Requests to the following request paths will call the backend at the + * translated path: + * Request path: /api/company/widgetworks/user/johndoe + * Translated: + * https://example.cloudfunctions.net/getUser?cid=widgetworks&uid=johndoe + * Request path: /api/company/widgetworks/user/johndoe?timezone=EST + * Translated: + * https://example.cloudfunctions.net/getUser?timezone=EST&cid=widgetworks&uid=johndoe + * + * Generated from protobuf enum CONSTANT_ADDRESS = 1; + */ + const CONSTANT_ADDRESS = 1; + /** + * The request path will be appended to the backend address. + * # Examples + * Given the following operation config: + * Method path: /api/company/{cid}/user/{uid} + * Backend address: https://example.appspot.com + * Requests to the following request paths will call the backend at the + * translated path: + * Request path: /api/company/widgetworks/user/johndoe + * Translated: + * https://example.appspot.com/api/company/widgetworks/user/johndoe + * Request path: /api/company/widgetworks/user/johndoe?timezone=EST + * Translated: + * https://example.appspot.com/api/company/widgetworks/user/johndoe?timezone=EST + * + * Generated from protobuf enum APPEND_PATH_TO_ADDRESS = 2; + */ + const APPEND_PATH_TO_ADDRESS = 2; + + private static $valueToName = [ + self::PATH_TRANSLATION_UNSPECIFIED => 'PATH_TRANSLATION_UNSPECIFIED', + self::CONSTANT_ADDRESS => 'CONSTANT_ADDRESS', + self::APPEND_PATH_TO_ADDRESS => 'APPEND_PATH_TO_ADDRESS', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/BatchingConfigProto.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/BatchingConfigProto.php new file mode 100644 index 000000000000..a89814d51f0e --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/BatchingConfigProto.php @@ -0,0 +1,121 @@ +google.api.BatchingConfigProto + */ +class BatchingConfigProto extends \Google\Protobuf\Internal\Message +{ + /** + * The thresholds which trigger a batched request to be sent. + * + * Generated from protobuf field .google.api.BatchingSettingsProto thresholds = 1; + */ + protected $thresholds = null; + /** + * The request and response fields used in batching. + * + * Generated from protobuf field .google.api.BatchingDescriptorProto batch_descriptor = 2; + */ + protected $batch_descriptor = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Api\BatchingSettingsProto $thresholds + * The thresholds which trigger a batched request to be sent. + * @type \Google\Api\BatchingDescriptorProto $batch_descriptor + * The request and response fields used in batching. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Client::initOnce(); + parent::__construct($data); + } + + /** + * The thresholds which trigger a batched request to be sent. + * + * Generated from protobuf field .google.api.BatchingSettingsProto thresholds = 1; + * @return \Google\Api\BatchingSettingsProto|null + */ + public function getThresholds() + { + return $this->thresholds; + } + + public function hasThresholds() + { + return isset($this->thresholds); + } + + public function clearThresholds() + { + unset($this->thresholds); + } + + /** + * The thresholds which trigger a batched request to be sent. + * + * Generated from protobuf field .google.api.BatchingSettingsProto thresholds = 1; + * @param \Google\Api\BatchingSettingsProto $var + * @return $this + */ + public function setThresholds($var) + { + GPBUtil::checkMessage($var, \Google\Api\BatchingSettingsProto::class); + $this->thresholds = $var; + + return $this; + } + + /** + * The request and response fields used in batching. + * + * Generated from protobuf field .google.api.BatchingDescriptorProto batch_descriptor = 2; + * @return \Google\Api\BatchingDescriptorProto|null + */ + public function getBatchDescriptor() + { + return $this->batch_descriptor; + } + + public function hasBatchDescriptor() + { + return isset($this->batch_descriptor); + } + + public function clearBatchDescriptor() + { + unset($this->batch_descriptor); + } + + /** + * The request and response fields used in batching. + * + * Generated from protobuf field .google.api.BatchingDescriptorProto batch_descriptor = 2; + * @param \Google\Api\BatchingDescriptorProto $var + * @return $this + */ + public function setBatchDescriptor($var) + { + GPBUtil::checkMessage($var, \Google\Api\BatchingDescriptorProto::class); + $this->batch_descriptor = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/BatchingDescriptorProto.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/BatchingDescriptorProto.php new file mode 100644 index 000000000000..96179ad0f31e --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/BatchingDescriptorProto.php @@ -0,0 +1,157 @@ +google.api.BatchingDescriptorProto + */ +class BatchingDescriptorProto extends \Google\Protobuf\Internal\Message +{ + /** + * The repeated field in the request message to be aggregated by batching. + * + * Generated from protobuf field string batched_field = 1; + */ + protected $batched_field = ''; + /** + * A list of the fields in the request message. Two requests will be batched + * together only if the values of every field specified in + * `request_discriminator_fields` is equal between the two requests. + * + * Generated from protobuf field repeated string discriminator_fields = 2; + */ + private $discriminator_fields; + /** + * Optional. When present, indicates the field in the response message to be + * used to demultiplex the response into multiple response messages, in + * correspondence with the multiple request messages originally batched + * together. + * + * Generated from protobuf field string subresponse_field = 3; + */ + protected $subresponse_field = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $batched_field + * The repeated field in the request message to be aggregated by batching. + * @type string[] $discriminator_fields + * A list of the fields in the request message. Two requests will be batched + * together only if the values of every field specified in + * `request_discriminator_fields` is equal between the two requests. + * @type string $subresponse_field + * Optional. When present, indicates the field in the response message to be + * used to demultiplex the response into multiple response messages, in + * correspondence with the multiple request messages originally batched + * together. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Client::initOnce(); + parent::__construct($data); + } + + /** + * The repeated field in the request message to be aggregated by batching. + * + * Generated from protobuf field string batched_field = 1; + * @return string + */ + public function getBatchedField() + { + return $this->batched_field; + } + + /** + * The repeated field in the request message to be aggregated by batching. + * + * Generated from protobuf field string batched_field = 1; + * @param string $var + * @return $this + */ + public function setBatchedField($var) + { + GPBUtil::checkString($var, True); + $this->batched_field = $var; + + return $this; + } + + /** + * A list of the fields in the request message. Two requests will be batched + * together only if the values of every field specified in + * `request_discriminator_fields` is equal between the two requests. + * + * Generated from protobuf field repeated string discriminator_fields = 2; + * @return RepeatedField + */ + public function getDiscriminatorFields() + { + return $this->discriminator_fields; + } + + /** + * A list of the fields in the request message. Two requests will be batched + * together only if the values of every field specified in + * `request_discriminator_fields` is equal between the two requests. + * + * Generated from protobuf field repeated string discriminator_fields = 2; + * @param string[] $var + * @return $this + */ + public function setDiscriminatorFields($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->discriminator_fields = $arr; + + return $this; + } + + /** + * Optional. When present, indicates the field in the response message to be + * used to demultiplex the response into multiple response messages, in + * correspondence with the multiple request messages originally batched + * together. + * + * Generated from protobuf field string subresponse_field = 3; + * @return string + */ + public function getSubresponseField() + { + return $this->subresponse_field; + } + + /** + * Optional. When present, indicates the field in the response message to be + * used to demultiplex the response into multiple response messages, in + * correspondence with the multiple request messages originally batched + * together. + * + * Generated from protobuf field string subresponse_field = 3; + * @param string $var + * @return $this + */ + public function setSubresponseField($var) + { + GPBUtil::checkString($var, True); + $this->subresponse_field = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/BatchingSettingsProto.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/BatchingSettingsProto.php new file mode 100644 index 000000000000..35716d7235ba --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/BatchingSettingsProto.php @@ -0,0 +1,337 @@ +google.api.BatchingSettingsProto + */ +class BatchingSettingsProto extends \Google\Protobuf\Internal\Message +{ + /** + * The number of elements of a field collected into a batch which, if + * exceeded, causes the batch to be sent. + * + * Generated from protobuf field int32 element_count_threshold = 1; + */ + protected $element_count_threshold = 0; + /** + * The aggregated size of the batched field which, if exceeded, causes the + * batch to be sent. This size is computed by aggregating the sizes of the + * request field to be batched, not of the entire request message. + * + * Generated from protobuf field int64 request_byte_threshold = 2; + */ + protected $request_byte_threshold = 0; + /** + * The duration after which a batch should be sent, starting from the addition + * of the first message to that batch. + * + * Generated from protobuf field .google.protobuf.Duration delay_threshold = 3; + */ + protected $delay_threshold = null; + /** + * The maximum number of elements collected in a batch that could be accepted + * by server. + * + * Generated from protobuf field int32 element_count_limit = 4; + */ + protected $element_count_limit = 0; + /** + * The maximum size of the request that could be accepted by server. + * + * Generated from protobuf field int32 request_byte_limit = 5; + */ + protected $request_byte_limit = 0; + /** + * The maximum number of elements allowed by flow control. + * + * Generated from protobuf field int32 flow_control_element_limit = 6; + */ + protected $flow_control_element_limit = 0; + /** + * The maximum size of data allowed by flow control. + * + * Generated from protobuf field int32 flow_control_byte_limit = 7; + */ + protected $flow_control_byte_limit = 0; + /** + * The behavior to take when the flow control limit is exceeded. + * + * Generated from protobuf field .google.api.FlowControlLimitExceededBehaviorProto flow_control_limit_exceeded_behavior = 8; + */ + protected $flow_control_limit_exceeded_behavior = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $element_count_threshold + * The number of elements of a field collected into a batch which, if + * exceeded, causes the batch to be sent. + * @type int|string $request_byte_threshold + * The aggregated size of the batched field which, if exceeded, causes the + * batch to be sent. This size is computed by aggregating the sizes of the + * request field to be batched, not of the entire request message. + * @type \Google\Protobuf\Duration $delay_threshold + * The duration after which a batch should be sent, starting from the addition + * of the first message to that batch. + * @type int $element_count_limit + * The maximum number of elements collected in a batch that could be accepted + * by server. + * @type int $request_byte_limit + * The maximum size of the request that could be accepted by server. + * @type int $flow_control_element_limit + * The maximum number of elements allowed by flow control. + * @type int $flow_control_byte_limit + * The maximum size of data allowed by flow control. + * @type int $flow_control_limit_exceeded_behavior + * The behavior to take when the flow control limit is exceeded. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Client::initOnce(); + parent::__construct($data); + } + + /** + * The number of elements of a field collected into a batch which, if + * exceeded, causes the batch to be sent. + * + * Generated from protobuf field int32 element_count_threshold = 1; + * @return int + */ + public function getElementCountThreshold() + { + return $this->element_count_threshold; + } + + /** + * The number of elements of a field collected into a batch which, if + * exceeded, causes the batch to be sent. + * + * Generated from protobuf field int32 element_count_threshold = 1; + * @param int $var + * @return $this + */ + public function setElementCountThreshold($var) + { + GPBUtil::checkInt32($var); + $this->element_count_threshold = $var; + + return $this; + } + + /** + * The aggregated size of the batched field which, if exceeded, causes the + * batch to be sent. This size is computed by aggregating the sizes of the + * request field to be batched, not of the entire request message. + * + * Generated from protobuf field int64 request_byte_threshold = 2; + * @return int|string + */ + public function getRequestByteThreshold() + { + return $this->request_byte_threshold; + } + + /** + * The aggregated size of the batched field which, if exceeded, causes the + * batch to be sent. This size is computed by aggregating the sizes of the + * request field to be batched, not of the entire request message. + * + * Generated from protobuf field int64 request_byte_threshold = 2; + * @param int|string $var + * @return $this + */ + public function setRequestByteThreshold($var) + { + GPBUtil::checkInt64($var); + $this->request_byte_threshold = $var; + + return $this; + } + + /** + * The duration after which a batch should be sent, starting from the addition + * of the first message to that batch. + * + * Generated from protobuf field .google.protobuf.Duration delay_threshold = 3; + * @return \Google\Protobuf\Duration|null + */ + public function getDelayThreshold() + { + return $this->delay_threshold; + } + + public function hasDelayThreshold() + { + return isset($this->delay_threshold); + } + + public function clearDelayThreshold() + { + unset($this->delay_threshold); + } + + /** + * The duration after which a batch should be sent, starting from the addition + * of the first message to that batch. + * + * Generated from protobuf field .google.protobuf.Duration delay_threshold = 3; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setDelayThreshold($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->delay_threshold = $var; + + return $this; + } + + /** + * The maximum number of elements collected in a batch that could be accepted + * by server. + * + * Generated from protobuf field int32 element_count_limit = 4; + * @return int + */ + public function getElementCountLimit() + { + return $this->element_count_limit; + } + + /** + * The maximum number of elements collected in a batch that could be accepted + * by server. + * + * Generated from protobuf field int32 element_count_limit = 4; + * @param int $var + * @return $this + */ + public function setElementCountLimit($var) + { + GPBUtil::checkInt32($var); + $this->element_count_limit = $var; + + return $this; + } + + /** + * The maximum size of the request that could be accepted by server. + * + * Generated from protobuf field int32 request_byte_limit = 5; + * @return int + */ + public function getRequestByteLimit() + { + return $this->request_byte_limit; + } + + /** + * The maximum size of the request that could be accepted by server. + * + * Generated from protobuf field int32 request_byte_limit = 5; + * @param int $var + * @return $this + */ + public function setRequestByteLimit($var) + { + GPBUtil::checkInt32($var); + $this->request_byte_limit = $var; + + return $this; + } + + /** + * The maximum number of elements allowed by flow control. + * + * Generated from protobuf field int32 flow_control_element_limit = 6; + * @return int + */ + public function getFlowControlElementLimit() + { + return $this->flow_control_element_limit; + } + + /** + * The maximum number of elements allowed by flow control. + * + * Generated from protobuf field int32 flow_control_element_limit = 6; + * @param int $var + * @return $this + */ + public function setFlowControlElementLimit($var) + { + GPBUtil::checkInt32($var); + $this->flow_control_element_limit = $var; + + return $this; + } + + /** + * The maximum size of data allowed by flow control. + * + * Generated from protobuf field int32 flow_control_byte_limit = 7; + * @return int + */ + public function getFlowControlByteLimit() + { + return $this->flow_control_byte_limit; + } + + /** + * The maximum size of data allowed by flow control. + * + * Generated from protobuf field int32 flow_control_byte_limit = 7; + * @param int $var + * @return $this + */ + public function setFlowControlByteLimit($var) + { + GPBUtil::checkInt32($var); + $this->flow_control_byte_limit = $var; + + return $this; + } + + /** + * The behavior to take when the flow control limit is exceeded. + * + * Generated from protobuf field .google.api.FlowControlLimitExceededBehaviorProto flow_control_limit_exceeded_behavior = 8; + * @return int + */ + public function getFlowControlLimitExceededBehavior() + { + return $this->flow_control_limit_exceeded_behavior; + } + + /** + * The behavior to take when the flow control limit is exceeded. + * + * Generated from protobuf field .google.api.FlowControlLimitExceededBehaviorProto flow_control_limit_exceeded_behavior = 8; + * @param int $var + * @return $this + */ + public function setFlowControlLimitExceededBehavior($var) + { + GPBUtil::checkEnum($var, \Google\Api\FlowControlLimitExceededBehaviorProto::class); + $this->flow_control_limit_exceeded_behavior = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Billing.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Billing.php new file mode 100644 index 000000000000..860acaf9891e --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Billing.php @@ -0,0 +1,107 @@ +google.api.Billing + */ +class Billing extends \Google\Protobuf\Internal\Message +{ + /** + * Billing configurations for sending metrics to the consumer project. + * There can be multiple consumer destinations per service, each one must have + * a different monitored resource type. A metric can be used in at most + * one consumer destination. + * + * Generated from protobuf field repeated .google.api.Billing.BillingDestination consumer_destinations = 8; + */ + private $consumer_destinations; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Api\Billing\BillingDestination[] $consumer_destinations + * Billing configurations for sending metrics to the consumer project. + * There can be multiple consumer destinations per service, each one must have + * a different monitored resource type. A metric can be used in at most + * one consumer destination. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Billing::initOnce(); + parent::__construct($data); + } + + /** + * Billing configurations for sending metrics to the consumer project. + * There can be multiple consumer destinations per service, each one must have + * a different monitored resource type. A metric can be used in at most + * one consumer destination. + * + * Generated from protobuf field repeated .google.api.Billing.BillingDestination consumer_destinations = 8; + * @return RepeatedField<\Google\Api\Billing\BillingDestination> + */ + public function getConsumerDestinations() + { + return $this->consumer_destinations; + } + + /** + * Billing configurations for sending metrics to the consumer project. + * There can be multiple consumer destinations per service, each one must have + * a different monitored resource type. A metric can be used in at most + * one consumer destination. + * + * Generated from protobuf field repeated .google.api.Billing.BillingDestination consumer_destinations = 8; + * @param \Google\Api\Billing\BillingDestination[] $var + * @return $this + */ + public function setConsumerDestinations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\Billing\BillingDestination::class); + $this->consumer_destinations = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Billing/BillingDestination.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Billing/BillingDestination.php new file mode 100644 index 000000000000..1075320bd76d --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Billing/BillingDestination.php @@ -0,0 +1,118 @@ +google.api.Billing.BillingDestination + */ +class BillingDestination extends \Google\Protobuf\Internal\Message +{ + /** + * The monitored resource type. The type must be defined in + * [Service.monitored_resources][google.api.Service.monitored_resources] + * section. + * + * Generated from protobuf field string monitored_resource = 1; + */ + protected $monitored_resource = ''; + /** + * Names of the metrics to report to this billing destination. + * Each name must be defined in + * [Service.metrics][google.api.Service.metrics] section. + * + * Generated from protobuf field repeated string metrics = 2; + */ + private $metrics; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $monitored_resource + * The monitored resource type. The type must be defined in + * [Service.monitored_resources][google.api.Service.monitored_resources] + * section. + * @type string[] $metrics + * Names of the metrics to report to this billing destination. + * Each name must be defined in + * [Service.metrics][google.api.Service.metrics] section. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Billing::initOnce(); + parent::__construct($data); + } + + /** + * The monitored resource type. The type must be defined in + * [Service.monitored_resources][google.api.Service.monitored_resources] + * section. + * + * Generated from protobuf field string monitored_resource = 1; + * @return string + */ + public function getMonitoredResource() + { + return $this->monitored_resource; + } + + /** + * The monitored resource type. The type must be defined in + * [Service.monitored_resources][google.api.Service.monitored_resources] + * section. + * + * Generated from protobuf field string monitored_resource = 1; + * @param string $var + * @return $this + */ + public function setMonitoredResource($var) + { + GPBUtil::checkString($var, True); + $this->monitored_resource = $var; + + return $this; + } + + /** + * Names of the metrics to report to this billing destination. + * Each name must be defined in + * [Service.metrics][google.api.Service.metrics] section. + * + * Generated from protobuf field repeated string metrics = 2; + * @return RepeatedField + */ + public function getMetrics() + { + return $this->metrics; + } + + /** + * Names of the metrics to report to this billing destination. + * Each name must be defined in + * [Service.metrics][google.api.Service.metrics] section. + * + * Generated from protobuf field repeated string metrics = 2; + * @param string[] $var + * @return $this + */ + public function setMetrics($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->metrics = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ChangeType.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ChangeType.php new file mode 100644 index 000000000000..e39ab1bd2132 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ChangeType.php @@ -0,0 +1,72 @@ +google.api.ChangeType + */ +class ChangeType +{ + /** + * No value was provided. + * + * Generated from protobuf enum CHANGE_TYPE_UNSPECIFIED = 0; + */ + const CHANGE_TYPE_UNSPECIFIED = 0; + /** + * The changed object exists in the 'new' service configuration, but not + * in the 'old' service configuration. + * + * Generated from protobuf enum ADDED = 1; + */ + const ADDED = 1; + /** + * The changed object exists in the 'old' service configuration, but not + * in the 'new' service configuration. + * + * Generated from protobuf enum REMOVED = 2; + */ + const REMOVED = 2; + /** + * The changed object exists in both service configurations, but its value + * is different. + * + * Generated from protobuf enum MODIFIED = 3; + */ + const MODIFIED = 3; + + private static $valueToName = [ + self::CHANGE_TYPE_UNSPECIFIED => 'CHANGE_TYPE_UNSPECIFIED', + self::ADDED => 'ADDED', + self::REMOVED => 'REMOVED', + self::MODIFIED => 'MODIFIED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ClientLibraryDestination.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ClientLibraryDestination.php new file mode 100644 index 000000000000..81aee7774f4e --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ClientLibraryDestination.php @@ -0,0 +1,63 @@ +google.api.ClientLibraryDestination + */ +class ClientLibraryDestination +{ + /** + * Client libraries will neither be generated nor published to package + * managers. + * + * Generated from protobuf enum CLIENT_LIBRARY_DESTINATION_UNSPECIFIED = 0; + */ + const CLIENT_LIBRARY_DESTINATION_UNSPECIFIED = 0; + /** + * Generate the client library in a repo under github.com/googleapis, + * but don't publish it to package managers. + * + * Generated from protobuf enum GITHUB = 10; + */ + const GITHUB = 10; + /** + * Publish the library to package managers like nuget.org and npmjs.com. + * + * Generated from protobuf enum PACKAGE_MANAGER = 20; + */ + const PACKAGE_MANAGER = 20; + + private static $valueToName = [ + self::CLIENT_LIBRARY_DESTINATION_UNSPECIFIED => 'CLIENT_LIBRARY_DESTINATION_UNSPECIFIED', + self::GITHUB => 'GITHUB', + self::PACKAGE_MANAGER => 'PACKAGE_MANAGER', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ClientLibraryOrganization.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ClientLibraryOrganization.php new file mode 100644 index 000000000000..bbb985f6ae85 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ClientLibraryOrganization.php @@ -0,0 +1,97 @@ +google.api.ClientLibraryOrganization + */ +class ClientLibraryOrganization +{ + /** + * Not useful. + * + * Generated from protobuf enum CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED = 0; + */ + const CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED = 0; + /** + * Google Cloud Platform Org. + * + * Generated from protobuf enum CLOUD = 1; + */ + const CLOUD = 1; + /** + * Ads (Advertising) Org. + * + * Generated from protobuf enum ADS = 2; + */ + const ADS = 2; + /** + * Photos Org. + * + * Generated from protobuf enum PHOTOS = 3; + */ + const PHOTOS = 3; + /** + * Street View Org. + * + * Generated from protobuf enum STREET_VIEW = 4; + */ + const STREET_VIEW = 4; + /** + * Shopping Org. + * + * Generated from protobuf enum SHOPPING = 5; + */ + const SHOPPING = 5; + /** + * Geo Org. + * + * Generated from protobuf enum GEO = 6; + */ + const GEO = 6; + /** + * Generative AI - https://developers.generativeai.google + * + * Generated from protobuf enum GENERATIVE_AI = 7; + */ + const GENERATIVE_AI = 7; + + private static $valueToName = [ + self::CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED => 'CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED', + self::CLOUD => 'CLOUD', + self::ADS => 'ADS', + self::PHOTOS => 'PHOTOS', + self::STREET_VIEW => 'STREET_VIEW', + self::SHOPPING => 'SHOPPING', + self::GEO => 'GEO', + self::GENERATIVE_AI => 'GENERATIVE_AI', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ClientLibrarySettings.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ClientLibrarySettings.php new file mode 100644 index 000000000000..b4b81075cd82 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ClientLibrarySettings.php @@ -0,0 +1,499 @@ +google.api.ClientLibrarySettings + */ +class ClientLibrarySettings extends \Google\Protobuf\Internal\Message +{ + /** + * Version of the API to apply these settings to. This is the full protobuf + * package for the API, ending in the version element. + * Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1". + * + * Generated from protobuf field string version = 1; + */ + protected $version = ''; + /** + * Launch stage of this version of the API. + * + * Generated from protobuf field .google.api.LaunchStage launch_stage = 2; + */ + protected $launch_stage = 0; + /** + * When using transport=rest, the client request will encode enums as + * numbers rather than strings. + * + * Generated from protobuf field bool rest_numeric_enums = 3; + */ + protected $rest_numeric_enums = false; + /** + * Settings for legacy Java features, supported in the Service YAML. + * + * Generated from protobuf field .google.api.JavaSettings java_settings = 21; + */ + protected $java_settings = null; + /** + * Settings for C++ client libraries. + * + * Generated from protobuf field .google.api.CppSettings cpp_settings = 22; + */ + protected $cpp_settings = null; + /** + * Settings for PHP client libraries. + * + * Generated from protobuf field .google.api.PhpSettings php_settings = 23; + */ + protected $php_settings = null; + /** + * Settings for Python client libraries. + * + * Generated from protobuf field .google.api.PythonSettings python_settings = 24; + */ + protected $python_settings = null; + /** + * Settings for Node client libraries. + * + * Generated from protobuf field .google.api.NodeSettings node_settings = 25; + */ + protected $node_settings = null; + /** + * Settings for .NET client libraries. + * + * Generated from protobuf field .google.api.DotnetSettings dotnet_settings = 26; + */ + protected $dotnet_settings = null; + /** + * Settings for Ruby client libraries. + * + * Generated from protobuf field .google.api.RubySettings ruby_settings = 27; + */ + protected $ruby_settings = null; + /** + * Settings for Go client libraries. + * + * Generated from protobuf field .google.api.GoSettings go_settings = 28; + */ + protected $go_settings = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $version + * Version of the API to apply these settings to. This is the full protobuf + * package for the API, ending in the version element. + * Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1". + * @type int $launch_stage + * Launch stage of this version of the API. + * @type bool $rest_numeric_enums + * When using transport=rest, the client request will encode enums as + * numbers rather than strings. + * @type \Google\Api\JavaSettings $java_settings + * Settings for legacy Java features, supported in the Service YAML. + * @type \Google\Api\CppSettings $cpp_settings + * Settings for C++ client libraries. + * @type \Google\Api\PhpSettings $php_settings + * Settings for PHP client libraries. + * @type \Google\Api\PythonSettings $python_settings + * Settings for Python client libraries. + * @type \Google\Api\NodeSettings $node_settings + * Settings for Node client libraries. + * @type \Google\Api\DotnetSettings $dotnet_settings + * Settings for .NET client libraries. + * @type \Google\Api\RubySettings $ruby_settings + * Settings for Ruby client libraries. + * @type \Google\Api\GoSettings $go_settings + * Settings for Go client libraries. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Client::initOnce(); + parent::__construct($data); + } + + /** + * Version of the API to apply these settings to. This is the full protobuf + * package for the API, ending in the version element. + * Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1". + * + * Generated from protobuf field string version = 1; + * @return string + */ + public function getVersion() + { + return $this->version; + } + + /** + * Version of the API to apply these settings to. This is the full protobuf + * package for the API, ending in the version element. + * Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1". + * + * Generated from protobuf field string version = 1; + * @param string $var + * @return $this + */ + public function setVersion($var) + { + GPBUtil::checkString($var, True); + $this->version = $var; + + return $this; + } + + /** + * Launch stage of this version of the API. + * + * Generated from protobuf field .google.api.LaunchStage launch_stage = 2; + * @return int + */ + public function getLaunchStage() + { + return $this->launch_stage; + } + + /** + * Launch stage of this version of the API. + * + * Generated from protobuf field .google.api.LaunchStage launch_stage = 2; + * @param int $var + * @return $this + */ + public function setLaunchStage($var) + { + GPBUtil::checkEnum($var, \Google\Api\LaunchStage::class); + $this->launch_stage = $var; + + return $this; + } + + /** + * When using transport=rest, the client request will encode enums as + * numbers rather than strings. + * + * Generated from protobuf field bool rest_numeric_enums = 3; + * @return bool + */ + public function getRestNumericEnums() + { + return $this->rest_numeric_enums; + } + + /** + * When using transport=rest, the client request will encode enums as + * numbers rather than strings. + * + * Generated from protobuf field bool rest_numeric_enums = 3; + * @param bool $var + * @return $this + */ + public function setRestNumericEnums($var) + { + GPBUtil::checkBool($var); + $this->rest_numeric_enums = $var; + + return $this; + } + + /** + * Settings for legacy Java features, supported in the Service YAML. + * + * Generated from protobuf field .google.api.JavaSettings java_settings = 21; + * @return \Google\Api\JavaSettings|null + */ + public function getJavaSettings() + { + return $this->java_settings; + } + + public function hasJavaSettings() + { + return isset($this->java_settings); + } + + public function clearJavaSettings() + { + unset($this->java_settings); + } + + /** + * Settings for legacy Java features, supported in the Service YAML. + * + * Generated from protobuf field .google.api.JavaSettings java_settings = 21; + * @param \Google\Api\JavaSettings $var + * @return $this + */ + public function setJavaSettings($var) + { + GPBUtil::checkMessage($var, \Google\Api\JavaSettings::class); + $this->java_settings = $var; + + return $this; + } + + /** + * Settings for C++ client libraries. + * + * Generated from protobuf field .google.api.CppSettings cpp_settings = 22; + * @return \Google\Api\CppSettings|null + */ + public function getCppSettings() + { + return $this->cpp_settings; + } + + public function hasCppSettings() + { + return isset($this->cpp_settings); + } + + public function clearCppSettings() + { + unset($this->cpp_settings); + } + + /** + * Settings for C++ client libraries. + * + * Generated from protobuf field .google.api.CppSettings cpp_settings = 22; + * @param \Google\Api\CppSettings $var + * @return $this + */ + public function setCppSettings($var) + { + GPBUtil::checkMessage($var, \Google\Api\CppSettings::class); + $this->cpp_settings = $var; + + return $this; + } + + /** + * Settings for PHP client libraries. + * + * Generated from protobuf field .google.api.PhpSettings php_settings = 23; + * @return \Google\Api\PhpSettings|null + */ + public function getPhpSettings() + { + return $this->php_settings; + } + + public function hasPhpSettings() + { + return isset($this->php_settings); + } + + public function clearPhpSettings() + { + unset($this->php_settings); + } + + /** + * Settings for PHP client libraries. + * + * Generated from protobuf field .google.api.PhpSettings php_settings = 23; + * @param \Google\Api\PhpSettings $var + * @return $this + */ + public function setPhpSettings($var) + { + GPBUtil::checkMessage($var, \Google\Api\PhpSettings::class); + $this->php_settings = $var; + + return $this; + } + + /** + * Settings for Python client libraries. + * + * Generated from protobuf field .google.api.PythonSettings python_settings = 24; + * @return \Google\Api\PythonSettings|null + */ + public function getPythonSettings() + { + return $this->python_settings; + } + + public function hasPythonSettings() + { + return isset($this->python_settings); + } + + public function clearPythonSettings() + { + unset($this->python_settings); + } + + /** + * Settings for Python client libraries. + * + * Generated from protobuf field .google.api.PythonSettings python_settings = 24; + * @param \Google\Api\PythonSettings $var + * @return $this + */ + public function setPythonSettings($var) + { + GPBUtil::checkMessage($var, \Google\Api\PythonSettings::class); + $this->python_settings = $var; + + return $this; + } + + /** + * Settings for Node client libraries. + * + * Generated from protobuf field .google.api.NodeSettings node_settings = 25; + * @return \Google\Api\NodeSettings|null + */ + public function getNodeSettings() + { + return $this->node_settings; + } + + public function hasNodeSettings() + { + return isset($this->node_settings); + } + + public function clearNodeSettings() + { + unset($this->node_settings); + } + + /** + * Settings for Node client libraries. + * + * Generated from protobuf field .google.api.NodeSettings node_settings = 25; + * @param \Google\Api\NodeSettings $var + * @return $this + */ + public function setNodeSettings($var) + { + GPBUtil::checkMessage($var, \Google\Api\NodeSettings::class); + $this->node_settings = $var; + + return $this; + } + + /** + * Settings for .NET client libraries. + * + * Generated from protobuf field .google.api.DotnetSettings dotnet_settings = 26; + * @return \Google\Api\DotnetSettings|null + */ + public function getDotnetSettings() + { + return $this->dotnet_settings; + } + + public function hasDotnetSettings() + { + return isset($this->dotnet_settings); + } + + public function clearDotnetSettings() + { + unset($this->dotnet_settings); + } + + /** + * Settings for .NET client libraries. + * + * Generated from protobuf field .google.api.DotnetSettings dotnet_settings = 26; + * @param \Google\Api\DotnetSettings $var + * @return $this + */ + public function setDotnetSettings($var) + { + GPBUtil::checkMessage($var, \Google\Api\DotnetSettings::class); + $this->dotnet_settings = $var; + + return $this; + } + + /** + * Settings for Ruby client libraries. + * + * Generated from protobuf field .google.api.RubySettings ruby_settings = 27; + * @return \Google\Api\RubySettings|null + */ + public function getRubySettings() + { + return $this->ruby_settings; + } + + public function hasRubySettings() + { + return isset($this->ruby_settings); + } + + public function clearRubySettings() + { + unset($this->ruby_settings); + } + + /** + * Settings for Ruby client libraries. + * + * Generated from protobuf field .google.api.RubySettings ruby_settings = 27; + * @param \Google\Api\RubySettings $var + * @return $this + */ + public function setRubySettings($var) + { + GPBUtil::checkMessage($var, \Google\Api\RubySettings::class); + $this->ruby_settings = $var; + + return $this; + } + + /** + * Settings for Go client libraries. + * + * Generated from protobuf field .google.api.GoSettings go_settings = 28; + * @return \Google\Api\GoSettings|null + */ + public function getGoSettings() + { + return $this->go_settings; + } + + public function hasGoSettings() + { + return isset($this->go_settings); + } + + public function clearGoSettings() + { + unset($this->go_settings); + } + + /** + * Settings for Go client libraries. + * + * Generated from protobuf field .google.api.GoSettings go_settings = 28; + * @param \Google\Api\GoSettings $var + * @return $this + */ + public function setGoSettings($var) + { + GPBUtil::checkMessage($var, \Google\Api\GoSettings::class); + $this->go_settings = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/CommonLanguageSettings.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/CommonLanguageSettings.php new file mode 100644 index 000000000000..2a3ad65deaf8 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/CommonLanguageSettings.php @@ -0,0 +1,156 @@ +google.api.CommonLanguageSettings + */ +class CommonLanguageSettings extends \Google\Protobuf\Internal\Message +{ + /** + * Link to automatically generated reference documentation. Example: + * https://cloud.google.com/nodejs/docs/reference/asset/latest + * + * Generated from protobuf field string reference_docs_uri = 1 [deprecated = true]; + * @deprecated + */ + protected $reference_docs_uri = ''; + /** + * The destination where API teams want this client library to be published. + * + * Generated from protobuf field repeated .google.api.ClientLibraryDestination destinations = 2; + */ + private $destinations; + /** + * Configuration for which RPCs should be generated in the GAPIC client. + * + * Generated from protobuf field .google.api.SelectiveGapicGeneration selective_gapic_generation = 3; + */ + protected $selective_gapic_generation = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $reference_docs_uri + * Link to automatically generated reference documentation. Example: + * https://cloud.google.com/nodejs/docs/reference/asset/latest + * @type int[] $destinations + * The destination where API teams want this client library to be published. + * @type \Google\Api\SelectiveGapicGeneration $selective_gapic_generation + * Configuration for which RPCs should be generated in the GAPIC client. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Client::initOnce(); + parent::__construct($data); + } + + /** + * Link to automatically generated reference documentation. Example: + * https://cloud.google.com/nodejs/docs/reference/asset/latest + * + * Generated from protobuf field string reference_docs_uri = 1 [deprecated = true]; + * @return string + * @deprecated + */ + public function getReferenceDocsUri() + { + if ($this->reference_docs_uri !== '') { + @trigger_error('reference_docs_uri is deprecated.', E_USER_DEPRECATED); + } + return $this->reference_docs_uri; + } + + /** + * Link to automatically generated reference documentation. Example: + * https://cloud.google.com/nodejs/docs/reference/asset/latest + * + * Generated from protobuf field string reference_docs_uri = 1 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setReferenceDocsUri($var) + { + @trigger_error('reference_docs_uri is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->reference_docs_uri = $var; + + return $this; + } + + /** + * The destination where API teams want this client library to be published. + * + * Generated from protobuf field repeated .google.api.ClientLibraryDestination destinations = 2; + * @return RepeatedField + */ + public function getDestinations() + { + return $this->destinations; + } + + /** + * The destination where API teams want this client library to be published. + * + * Generated from protobuf field repeated .google.api.ClientLibraryDestination destinations = 2; + * @param int[] $var + * @return $this + */ + public function setDestinations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Api\ClientLibraryDestination::class); + $this->destinations = $arr; + + return $this; + } + + /** + * Configuration for which RPCs should be generated in the GAPIC client. + * + * Generated from protobuf field .google.api.SelectiveGapicGeneration selective_gapic_generation = 3; + * @return \Google\Api\SelectiveGapicGeneration|null + */ + public function getSelectiveGapicGeneration() + { + return $this->selective_gapic_generation; + } + + public function hasSelectiveGapicGeneration() + { + return isset($this->selective_gapic_generation); + } + + public function clearSelectiveGapicGeneration() + { + unset($this->selective_gapic_generation); + } + + /** + * Configuration for which RPCs should be generated in the GAPIC client. + * + * Generated from protobuf field .google.api.SelectiveGapicGeneration selective_gapic_generation = 3; + * @param \Google\Api\SelectiveGapicGeneration $var + * @return $this + */ + public function setSelectiveGapicGeneration($var) + { + GPBUtil::checkMessage($var, \Google\Api\SelectiveGapicGeneration::class); + $this->selective_gapic_generation = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ConfigChange.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ConfigChange.php new file mode 100644 index 000000000000..95968e096f0d --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ConfigChange.php @@ -0,0 +1,251 @@ +google.api.ConfigChange + */ +class ConfigChange extends \Google\Protobuf\Internal\Message +{ + /** + * Object hierarchy path to the change, with levels separated by a '.' + * character. For repeated fields, an applicable unique identifier field is + * used for the index (usually selector, name, or id). For maps, the term + * 'key' is used. If the field has no unique identifier, the numeric index + * is used. + * Examples: + * - visibility.rules[selector=="google.LibraryService.ListBooks"].restriction + * - quota.metric_rules[selector=="google"].metric_costs[key=="reads"].value + * - logging.producer_destinations[0] + * + * Generated from protobuf field string element = 1; + */ + protected $element = ''; + /** + * Value of the changed object in the old Service configuration, + * in JSON format. This field will not be populated if ChangeType == ADDED. + * + * Generated from protobuf field string old_value = 2; + */ + protected $old_value = ''; + /** + * Value of the changed object in the new Service configuration, + * in JSON format. This field will not be populated if ChangeType == REMOVED. + * + * Generated from protobuf field string new_value = 3; + */ + protected $new_value = ''; + /** + * The type for this change, either ADDED, REMOVED, or MODIFIED. + * + * Generated from protobuf field .google.api.ChangeType change_type = 4; + */ + protected $change_type = 0; + /** + * Collection of advice provided for this change, useful for determining the + * possible impact of this change. + * + * Generated from protobuf field repeated .google.api.Advice advices = 5; + */ + private $advices; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $element + * Object hierarchy path to the change, with levels separated by a '.' + * character. For repeated fields, an applicable unique identifier field is + * used for the index (usually selector, name, or id). For maps, the term + * 'key' is used. If the field has no unique identifier, the numeric index + * is used. + * Examples: + * - visibility.rules[selector=="google.LibraryService.ListBooks"].restriction + * - quota.metric_rules[selector=="google"].metric_costs[key=="reads"].value + * - logging.producer_destinations[0] + * @type string $old_value + * Value of the changed object in the old Service configuration, + * in JSON format. This field will not be populated if ChangeType == ADDED. + * @type string $new_value + * Value of the changed object in the new Service configuration, + * in JSON format. This field will not be populated if ChangeType == REMOVED. + * @type int $change_type + * The type for this change, either ADDED, REMOVED, or MODIFIED. + * @type \Google\Api\Advice[] $advices + * Collection of advice provided for this change, useful for determining the + * possible impact of this change. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\ConfigChange::initOnce(); + parent::__construct($data); + } + + /** + * Object hierarchy path to the change, with levels separated by a '.' + * character. For repeated fields, an applicable unique identifier field is + * used for the index (usually selector, name, or id). For maps, the term + * 'key' is used. If the field has no unique identifier, the numeric index + * is used. + * Examples: + * - visibility.rules[selector=="google.LibraryService.ListBooks"].restriction + * - quota.metric_rules[selector=="google"].metric_costs[key=="reads"].value + * - logging.producer_destinations[0] + * + * Generated from protobuf field string element = 1; + * @return string + */ + public function getElement() + { + return $this->element; + } + + /** + * Object hierarchy path to the change, with levels separated by a '.' + * character. For repeated fields, an applicable unique identifier field is + * used for the index (usually selector, name, or id). For maps, the term + * 'key' is used. If the field has no unique identifier, the numeric index + * is used. + * Examples: + * - visibility.rules[selector=="google.LibraryService.ListBooks"].restriction + * - quota.metric_rules[selector=="google"].metric_costs[key=="reads"].value + * - logging.producer_destinations[0] + * + * Generated from protobuf field string element = 1; + * @param string $var + * @return $this + */ + public function setElement($var) + { + GPBUtil::checkString($var, True); + $this->element = $var; + + return $this; + } + + /** + * Value of the changed object in the old Service configuration, + * in JSON format. This field will not be populated if ChangeType == ADDED. + * + * Generated from protobuf field string old_value = 2; + * @return string + */ + public function getOldValue() + { + return $this->old_value; + } + + /** + * Value of the changed object in the old Service configuration, + * in JSON format. This field will not be populated if ChangeType == ADDED. + * + * Generated from protobuf field string old_value = 2; + * @param string $var + * @return $this + */ + public function setOldValue($var) + { + GPBUtil::checkString($var, True); + $this->old_value = $var; + + return $this; + } + + /** + * Value of the changed object in the new Service configuration, + * in JSON format. This field will not be populated if ChangeType == REMOVED. + * + * Generated from protobuf field string new_value = 3; + * @return string + */ + public function getNewValue() + { + return $this->new_value; + } + + /** + * Value of the changed object in the new Service configuration, + * in JSON format. This field will not be populated if ChangeType == REMOVED. + * + * Generated from protobuf field string new_value = 3; + * @param string $var + * @return $this + */ + public function setNewValue($var) + { + GPBUtil::checkString($var, True); + $this->new_value = $var; + + return $this; + } + + /** + * The type for this change, either ADDED, REMOVED, or MODIFIED. + * + * Generated from protobuf field .google.api.ChangeType change_type = 4; + * @return int + */ + public function getChangeType() + { + return $this->change_type; + } + + /** + * The type for this change, either ADDED, REMOVED, or MODIFIED. + * + * Generated from protobuf field .google.api.ChangeType change_type = 4; + * @param int $var + * @return $this + */ + public function setChangeType($var) + { + GPBUtil::checkEnum($var, \Google\Api\ChangeType::class); + $this->change_type = $var; + + return $this; + } + + /** + * Collection of advice provided for this change, useful for determining the + * possible impact of this change. + * + * Generated from protobuf field repeated .google.api.Advice advices = 5; + * @return RepeatedField<\Google\Api\Advice> + */ + public function getAdvices() + { + return $this->advices; + } + + /** + * Collection of advice provided for this change, useful for determining the + * possible impact of this change. + * + * Generated from protobuf field repeated .google.api.Advice advices = 5; + * @param \Google\Api\Advice[] $var + * @return $this + */ + public function setAdvices($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\Advice::class); + $this->advices = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Context.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Context.php new file mode 100644 index 000000000000..a8fb3dcba8c6 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Context.php @@ -0,0 +1,98 @@ +-bin” and + * “x-goog-ext--jspb” format. For example, list any service + * specific protobuf types that can appear in grpc metadata as follows in your + * yaml file: + * Example: + * context: + * rules: + * - selector: "google.example.library.v1.LibraryService.CreateBook" + * allowed_request_extensions: + * - google.foo.v1.NewExtension + * allowed_response_extensions: + * - google.foo.v1.NewExtension + * You can also specify extension ID instead of fully qualified extension name + * here. + * + * Generated from protobuf message google.api.Context + */ +class Context extends \Google\Protobuf\Internal\Message +{ + /** + * A list of RPC context rules that apply to individual API methods. + * **NOTE:** All service configuration rules follow "last one wins" order. + * + * Generated from protobuf field repeated .google.api.ContextRule rules = 1; + */ + private $rules; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Api\ContextRule[] $rules + * A list of RPC context rules that apply to individual API methods. + * **NOTE:** All service configuration rules follow "last one wins" order. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Context::initOnce(); + parent::__construct($data); + } + + /** + * A list of RPC context rules that apply to individual API methods. + * **NOTE:** All service configuration rules follow "last one wins" order. + * + * Generated from protobuf field repeated .google.api.ContextRule rules = 1; + * @return RepeatedField<\Google\Api\ContextRule> + */ + public function getRules() + { + return $this->rules; + } + + /** + * A list of RPC context rules that apply to individual API methods. + * **NOTE:** All service configuration rules follow "last one wins" order. + * + * Generated from protobuf field repeated .google.api.ContextRule rules = 1; + * @param \Google\Api\ContextRule[] $var + * @return $this + */ + public function setRules($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\ContextRule::class); + $this->rules = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ContextRule.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ContextRule.php new file mode 100644 index 000000000000..669b1af4a0e1 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ContextRule.php @@ -0,0 +1,228 @@ +google.api.ContextRule + */ +class ContextRule extends \Google\Protobuf\Internal\Message +{ + /** + * Selects the methods to which this rule applies. + * Refer to [selector][google.api.DocumentationRule.selector] for syntax + * details. + * + * Generated from protobuf field string selector = 1; + */ + protected $selector = ''; + /** + * A list of full type names of requested contexts, only the requested context + * will be made available to the backend. + * + * Generated from protobuf field repeated string requested = 2; + */ + private $requested; + /** + * A list of full type names of provided contexts. It is used to support + * propagating HTTP headers and ETags from the response extension. + * + * Generated from protobuf field repeated string provided = 3; + */ + private $provided; + /** + * A list of full type names or extension IDs of extensions allowed in grpc + * side channel from client to backend. + * + * Generated from protobuf field repeated string allowed_request_extensions = 4; + */ + private $allowed_request_extensions; + /** + * A list of full type names or extension IDs of extensions allowed in grpc + * side channel from backend to client. + * + * Generated from protobuf field repeated string allowed_response_extensions = 5; + */ + private $allowed_response_extensions; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $selector + * Selects the methods to which this rule applies. + * Refer to [selector][google.api.DocumentationRule.selector] for syntax + * details. + * @type string[] $requested + * A list of full type names of requested contexts, only the requested context + * will be made available to the backend. + * @type string[] $provided + * A list of full type names of provided contexts. It is used to support + * propagating HTTP headers and ETags from the response extension. + * @type string[] $allowed_request_extensions + * A list of full type names or extension IDs of extensions allowed in grpc + * side channel from client to backend. + * @type string[] $allowed_response_extensions + * A list of full type names or extension IDs of extensions allowed in grpc + * side channel from backend to client. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Context::initOnce(); + parent::__construct($data); + } + + /** + * Selects the methods to which this rule applies. + * Refer to [selector][google.api.DocumentationRule.selector] for syntax + * details. + * + * Generated from protobuf field string selector = 1; + * @return string + */ + public function getSelector() + { + return $this->selector; + } + + /** + * Selects the methods to which this rule applies. + * Refer to [selector][google.api.DocumentationRule.selector] for syntax + * details. + * + * Generated from protobuf field string selector = 1; + * @param string $var + * @return $this + */ + public function setSelector($var) + { + GPBUtil::checkString($var, True); + $this->selector = $var; + + return $this; + } + + /** + * A list of full type names of requested contexts, only the requested context + * will be made available to the backend. + * + * Generated from protobuf field repeated string requested = 2; + * @return RepeatedField + */ + public function getRequested() + { + return $this->requested; + } + + /** + * A list of full type names of requested contexts, only the requested context + * will be made available to the backend. + * + * Generated from protobuf field repeated string requested = 2; + * @param string[] $var + * @return $this + */ + public function setRequested($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->requested = $arr; + + return $this; + } + + /** + * A list of full type names of provided contexts. It is used to support + * propagating HTTP headers and ETags from the response extension. + * + * Generated from protobuf field repeated string provided = 3; + * @return RepeatedField + */ + public function getProvided() + { + return $this->provided; + } + + /** + * A list of full type names of provided contexts. It is used to support + * propagating HTTP headers and ETags from the response extension. + * + * Generated from protobuf field repeated string provided = 3; + * @param string[] $var + * @return $this + */ + public function setProvided($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->provided = $arr; + + return $this; + } + + /** + * A list of full type names or extension IDs of extensions allowed in grpc + * side channel from client to backend. + * + * Generated from protobuf field repeated string allowed_request_extensions = 4; + * @return RepeatedField + */ + public function getAllowedRequestExtensions() + { + return $this->allowed_request_extensions; + } + + /** + * A list of full type names or extension IDs of extensions allowed in grpc + * side channel from client to backend. + * + * Generated from protobuf field repeated string allowed_request_extensions = 4; + * @param string[] $var + * @return $this + */ + public function setAllowedRequestExtensions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->allowed_request_extensions = $arr; + + return $this; + } + + /** + * A list of full type names or extension IDs of extensions allowed in grpc + * side channel from backend to client. + * + * Generated from protobuf field repeated string allowed_response_extensions = 5; + * @return RepeatedField + */ + public function getAllowedResponseExtensions() + { + return $this->allowed_response_extensions; + } + + /** + * A list of full type names or extension IDs of extensions allowed in grpc + * side channel from backend to client. + * + * Generated from protobuf field repeated string allowed_response_extensions = 5; + * @param string[] $var + * @return $this + */ + public function setAllowedResponseExtensions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->allowed_response_extensions = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Control.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Control.php new file mode 100644 index 000000000000..834a57015bf6 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Control.php @@ -0,0 +1,112 @@ +google.api.Control + */ +class Control extends \Google\Protobuf\Internal\Message +{ + /** + * The service controller environment to use. If empty, no control plane + * features (like quota and billing) will be enabled. The recommended value + * for most services is servicecontrol.googleapis.com. + * + * Generated from protobuf field string environment = 1; + */ + protected $environment = ''; + /** + * Defines policies applying to the API methods of the service. + * + * Generated from protobuf field repeated .google.api.MethodPolicy method_policies = 4; + */ + private $method_policies; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $environment + * The service controller environment to use. If empty, no control plane + * features (like quota and billing) will be enabled. The recommended value + * for most services is servicecontrol.googleapis.com. + * @type \Google\Api\MethodPolicy[] $method_policies + * Defines policies applying to the API methods of the service. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Control::initOnce(); + parent::__construct($data); + } + + /** + * The service controller environment to use. If empty, no control plane + * features (like quota and billing) will be enabled. The recommended value + * for most services is servicecontrol.googleapis.com. + * + * Generated from protobuf field string environment = 1; + * @return string + */ + public function getEnvironment() + { + return $this->environment; + } + + /** + * The service controller environment to use. If empty, no control plane + * features (like quota and billing) will be enabled. The recommended value + * for most services is servicecontrol.googleapis.com. + * + * Generated from protobuf field string environment = 1; + * @param string $var + * @return $this + */ + public function setEnvironment($var) + { + GPBUtil::checkString($var, True); + $this->environment = $var; + + return $this; + } + + /** + * Defines policies applying to the API methods of the service. + * + * Generated from protobuf field repeated .google.api.MethodPolicy method_policies = 4; + * @return RepeatedField<\Google\Api\MethodPolicy> + */ + public function getMethodPolicies() + { + return $this->method_policies; + } + + /** + * Defines policies applying to the API methods of the service. + * + * Generated from protobuf field repeated .google.api.MethodPolicy method_policies = 4; + * @param \Google\Api\MethodPolicy[] $var + * @return $this + */ + public function setMethodPolicies($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\MethodPolicy::class); + $this->method_policies = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/CppSettings.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/CppSettings.php new file mode 100644 index 000000000000..d19648352d9f --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/CppSettings.php @@ -0,0 +1,77 @@ +google.api.CppSettings + */ +class CppSettings extends \Google\Protobuf\Internal\Message +{ + /** + * Some settings. + * + * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; + */ + protected $common = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Api\CommonLanguageSettings $common + * Some settings. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Client::initOnce(); + parent::__construct($data); + } + + /** + * Some settings. + * + * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; + * @return \Google\Api\CommonLanguageSettings|null + */ + public function getCommon() + { + return $this->common; + } + + public function hasCommon() + { + return isset($this->common); + } + + public function clearCommon() + { + unset($this->common); + } + + /** + * Some settings. + * + * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; + * @param \Google\Api\CommonLanguageSettings $var + * @return $this + */ + public function setCommon($var) + { + GPBUtil::checkMessage($var, \Google\Api\CommonLanguageSettings::class); + $this->common = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/CustomHttpPattern.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/CustomHttpPattern.php new file mode 100644 index 000000000000..2cd8d9658420 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/CustomHttpPattern.php @@ -0,0 +1,101 @@ +google.api.CustomHttpPattern + */ +class CustomHttpPattern extends \Google\Protobuf\Internal\Message +{ + /** + * The name of this custom HTTP verb. + * + * Generated from protobuf field string kind = 1; + */ + protected $kind = ''; + /** + * The path matched by this custom verb. + * + * Generated from protobuf field string path = 2; + */ + protected $path = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $kind + * The name of this custom HTTP verb. + * @type string $path + * The path matched by this custom verb. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Http::initOnce(); + parent::__construct($data); + } + + /** + * The name of this custom HTTP verb. + * + * Generated from protobuf field string kind = 1; + * @return string + */ + public function getKind() + { + return $this->kind; + } + + /** + * The name of this custom HTTP verb. + * + * Generated from protobuf field string kind = 1; + * @param string $var + * @return $this + */ + public function setKind($var) + { + GPBUtil::checkString($var, True); + $this->kind = $var; + + return $this; + } + + /** + * The path matched by this custom verb. + * + * Generated from protobuf field string path = 2; + * @return string + */ + public function getPath() + { + return $this->path; + } + + /** + * The path matched by this custom verb. + * + * Generated from protobuf field string path = 2; + * @param string $var + * @return $this + */ + public function setPath($var) + { + GPBUtil::checkString($var, True); + $this->path = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution.php new file mode 100644 index 000000000000..21d1527b3020 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution.php @@ -0,0 +1,390 @@ +google.api.Distribution + */ +class Distribution extends \Google\Protobuf\Internal\Message +{ + /** + * The number of values in the population. Must be non-negative. This value + * must equal the sum of the values in `bucket_counts` if a histogram is + * provided. + * + * Generated from protobuf field int64 count = 1; + */ + protected $count = 0; + /** + * The arithmetic mean of the values in the population. If `count` is zero + * then this field must be zero. + * + * Generated from protobuf field double mean = 2; + */ + protected $mean = 0.0; + /** + * The sum of squared deviations from the mean of the values in the + * population. For values x_i this is: + * Sum[i=1..n]((x_i - mean)^2) + * Knuth, "The Art of Computer Programming", Vol. 2, page 232, 3rd edition + * describes Welford's method for accumulating this sum in one pass. + * If `count` is zero then this field must be zero. + * + * Generated from protobuf field double sum_of_squared_deviation = 3; + */ + protected $sum_of_squared_deviation = 0.0; + /** + * If specified, contains the range of the population values. The field + * must not be present if the `count` is zero. + * + * Generated from protobuf field .google.api.Distribution.Range range = 4; + */ + protected $range = null; + /** + * Defines the histogram bucket boundaries. If the distribution does not + * contain a histogram, then omit this field. + * + * Generated from protobuf field .google.api.Distribution.BucketOptions bucket_options = 6; + */ + protected $bucket_options = null; + /** + * The number of values in each bucket of the histogram, as described in + * `bucket_options`. If the distribution does not have a histogram, then omit + * this field. If there is a histogram, then the sum of the values in + * `bucket_counts` must equal the value in the `count` field of the + * distribution. + * If present, `bucket_counts` should contain N values, where N is the number + * of buckets specified in `bucket_options`. If you supply fewer than N + * values, the remaining values are assumed to be 0. + * The order of the values in `bucket_counts` follows the bucket numbering + * schemes described for the three bucket types. The first value must be the + * count for the underflow bucket (number 0). The next N-2 values are the + * counts for the finite buckets (number 1 through N-2). The N'th value in + * `bucket_counts` is the count for the overflow bucket (number N-1). + * + * Generated from protobuf field repeated int64 bucket_counts = 7; + */ + private $bucket_counts; + /** + * Must be in increasing order of `value` field. + * + * Generated from protobuf field repeated .google.api.Distribution.Exemplar exemplars = 10; + */ + private $exemplars; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $count + * The number of values in the population. Must be non-negative. This value + * must equal the sum of the values in `bucket_counts` if a histogram is + * provided. + * @type float $mean + * The arithmetic mean of the values in the population. If `count` is zero + * then this field must be zero. + * @type float $sum_of_squared_deviation + * The sum of squared deviations from the mean of the values in the + * population. For values x_i this is: + * Sum[i=1..n]((x_i - mean)^2) + * Knuth, "The Art of Computer Programming", Vol. 2, page 232, 3rd edition + * describes Welford's method for accumulating this sum in one pass. + * If `count` is zero then this field must be zero. + * @type \Google\Api\Distribution\Range $range + * If specified, contains the range of the population values. The field + * must not be present if the `count` is zero. + * @type \Google\Api\Distribution\BucketOptions $bucket_options + * Defines the histogram bucket boundaries. If the distribution does not + * contain a histogram, then omit this field. + * @type int[]|string[] $bucket_counts + * The number of values in each bucket of the histogram, as described in + * `bucket_options`. If the distribution does not have a histogram, then omit + * this field. If there is a histogram, then the sum of the values in + * `bucket_counts` must equal the value in the `count` field of the + * distribution. + * If present, `bucket_counts` should contain N values, where N is the number + * of buckets specified in `bucket_options`. If you supply fewer than N + * values, the remaining values are assumed to be 0. + * The order of the values in `bucket_counts` follows the bucket numbering + * schemes described for the three bucket types. The first value must be the + * count for the underflow bucket (number 0). The next N-2 values are the + * counts for the finite buckets (number 1 through N-2). The N'th value in + * `bucket_counts` is the count for the overflow bucket (number N-1). + * @type \Google\Api\Distribution\Exemplar[] $exemplars + * Must be in increasing order of `value` field. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Distribution::initOnce(); + parent::__construct($data); + } + + /** + * The number of values in the population. Must be non-negative. This value + * must equal the sum of the values in `bucket_counts` if a histogram is + * provided. + * + * Generated from protobuf field int64 count = 1; + * @return int|string + */ + public function getCount() + { + return $this->count; + } + + /** + * The number of values in the population. Must be non-negative. This value + * must equal the sum of the values in `bucket_counts` if a histogram is + * provided. + * + * Generated from protobuf field int64 count = 1; + * @param int|string $var + * @return $this + */ + public function setCount($var) + { + GPBUtil::checkInt64($var); + $this->count = $var; + + return $this; + } + + /** + * The arithmetic mean of the values in the population. If `count` is zero + * then this field must be zero. + * + * Generated from protobuf field double mean = 2; + * @return float + */ + public function getMean() + { + return $this->mean; + } + + /** + * The arithmetic mean of the values in the population. If `count` is zero + * then this field must be zero. + * + * Generated from protobuf field double mean = 2; + * @param float $var + * @return $this + */ + public function setMean($var) + { + GPBUtil::checkDouble($var); + $this->mean = $var; + + return $this; + } + + /** + * The sum of squared deviations from the mean of the values in the + * population. For values x_i this is: + * Sum[i=1..n]((x_i - mean)^2) + * Knuth, "The Art of Computer Programming", Vol. 2, page 232, 3rd edition + * describes Welford's method for accumulating this sum in one pass. + * If `count` is zero then this field must be zero. + * + * Generated from protobuf field double sum_of_squared_deviation = 3; + * @return float + */ + public function getSumOfSquaredDeviation() + { + return $this->sum_of_squared_deviation; + } + + /** + * The sum of squared deviations from the mean of the values in the + * population. For values x_i this is: + * Sum[i=1..n]((x_i - mean)^2) + * Knuth, "The Art of Computer Programming", Vol. 2, page 232, 3rd edition + * describes Welford's method for accumulating this sum in one pass. + * If `count` is zero then this field must be zero. + * + * Generated from protobuf field double sum_of_squared_deviation = 3; + * @param float $var + * @return $this + */ + public function setSumOfSquaredDeviation($var) + { + GPBUtil::checkDouble($var); + $this->sum_of_squared_deviation = $var; + + return $this; + } + + /** + * If specified, contains the range of the population values. The field + * must not be present if the `count` is zero. + * + * Generated from protobuf field .google.api.Distribution.Range range = 4; + * @return \Google\Api\Distribution\Range|null + */ + public function getRange() + { + return $this->range; + } + + public function hasRange() + { + return isset($this->range); + } + + public function clearRange() + { + unset($this->range); + } + + /** + * If specified, contains the range of the population values. The field + * must not be present if the `count` is zero. + * + * Generated from protobuf field .google.api.Distribution.Range range = 4; + * @param \Google\Api\Distribution\Range $var + * @return $this + */ + public function setRange($var) + { + GPBUtil::checkMessage($var, \Google\Api\Distribution\Range::class); + $this->range = $var; + + return $this; + } + + /** + * Defines the histogram bucket boundaries. If the distribution does not + * contain a histogram, then omit this field. + * + * Generated from protobuf field .google.api.Distribution.BucketOptions bucket_options = 6; + * @return \Google\Api\Distribution\BucketOptions|null + */ + public function getBucketOptions() + { + return $this->bucket_options; + } + + public function hasBucketOptions() + { + return isset($this->bucket_options); + } + + public function clearBucketOptions() + { + unset($this->bucket_options); + } + + /** + * Defines the histogram bucket boundaries. If the distribution does not + * contain a histogram, then omit this field. + * + * Generated from protobuf field .google.api.Distribution.BucketOptions bucket_options = 6; + * @param \Google\Api\Distribution\BucketOptions $var + * @return $this + */ + public function setBucketOptions($var) + { + GPBUtil::checkMessage($var, \Google\Api\Distribution\BucketOptions::class); + $this->bucket_options = $var; + + return $this; + } + + /** + * The number of values in each bucket of the histogram, as described in + * `bucket_options`. If the distribution does not have a histogram, then omit + * this field. If there is a histogram, then the sum of the values in + * `bucket_counts` must equal the value in the `count` field of the + * distribution. + * If present, `bucket_counts` should contain N values, where N is the number + * of buckets specified in `bucket_options`. If you supply fewer than N + * values, the remaining values are assumed to be 0. + * The order of the values in `bucket_counts` follows the bucket numbering + * schemes described for the three bucket types. The first value must be the + * count for the underflow bucket (number 0). The next N-2 values are the + * counts for the finite buckets (number 1 through N-2). The N'th value in + * `bucket_counts` is the count for the overflow bucket (number N-1). + * + * Generated from protobuf field repeated int64 bucket_counts = 7; + * @return RepeatedField|RepeatedField + */ + public function getBucketCounts() + { + return $this->bucket_counts; + } + + /** + * The number of values in each bucket of the histogram, as described in + * `bucket_options`. If the distribution does not have a histogram, then omit + * this field. If there is a histogram, then the sum of the values in + * `bucket_counts` must equal the value in the `count` field of the + * distribution. + * If present, `bucket_counts` should contain N values, where N is the number + * of buckets specified in `bucket_options`. If you supply fewer than N + * values, the remaining values are assumed to be 0. + * The order of the values in `bucket_counts` follows the bucket numbering + * schemes described for the three bucket types. The first value must be the + * count for the underflow bucket (number 0). The next N-2 values are the + * counts for the finite buckets (number 1 through N-2). The N'th value in + * `bucket_counts` is the count for the overflow bucket (number N-1). + * + * Generated from protobuf field repeated int64 bucket_counts = 7; + * @param int[]|string[] $var + * @return $this + */ + public function setBucketCounts($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT64); + $this->bucket_counts = $arr; + + return $this; + } + + /** + * Must be in increasing order of `value` field. + * + * Generated from protobuf field repeated .google.api.Distribution.Exemplar exemplars = 10; + * @return RepeatedField<\Google\Api\Distribution\Exemplar> + */ + public function getExemplars() + { + return $this->exemplars; + } + + /** + * Must be in increasing order of `value` field. + * + * Generated from protobuf field repeated .google.api.Distribution.Exemplar exemplars = 10; + * @param \Google\Api\Distribution\Exemplar[] $var + * @return $this + */ + public function setExemplars($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\Distribution\Exemplar::class); + $this->exemplars = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/BucketOptions.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/BucketOptions.php new file mode 100644 index 000000000000..9592cb4b7671 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/BucketOptions.php @@ -0,0 +1,154 @@ + 0) is the + * same as the upper bound of bucket i - 1. The buckets span the whole range + * of finite values: lower bound of the underflow bucket is -infinity and the + * upper bound of the overflow bucket is +infinity. The finite buckets are + * so-called because both bounds are finite. + * + * Generated from protobuf message google.api.Distribution.BucketOptions + */ +class BucketOptions extends \Google\Protobuf\Internal\Message +{ + protected $options; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Api\Distribution\BucketOptions\Linear $linear_buckets + * The linear bucket. + * @type \Google\Api\Distribution\BucketOptions\Exponential $exponential_buckets + * The exponential buckets. + * @type \Google\Api\Distribution\BucketOptions\Explicit $explicit_buckets + * The explicit buckets. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Distribution::initOnce(); + parent::__construct($data); + } + + /** + * The linear bucket. + * + * Generated from protobuf field .google.api.Distribution.BucketOptions.Linear linear_buckets = 1; + * @return \Google\Api\Distribution\BucketOptions\Linear|null + */ + public function getLinearBuckets() + { + return $this->readOneof(1); + } + + public function hasLinearBuckets() + { + return $this->hasOneof(1); + } + + /** + * The linear bucket. + * + * Generated from protobuf field .google.api.Distribution.BucketOptions.Linear linear_buckets = 1; + * @param \Google\Api\Distribution\BucketOptions\Linear $var + * @return $this + */ + public function setLinearBuckets($var) + { + GPBUtil::checkMessage($var, \Google\Api\Distribution\BucketOptions\Linear::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * The exponential buckets. + * + * Generated from protobuf field .google.api.Distribution.BucketOptions.Exponential exponential_buckets = 2; + * @return \Google\Api\Distribution\BucketOptions\Exponential|null + */ + public function getExponentialBuckets() + { + return $this->readOneof(2); + } + + public function hasExponentialBuckets() + { + return $this->hasOneof(2); + } + + /** + * The exponential buckets. + * + * Generated from protobuf field .google.api.Distribution.BucketOptions.Exponential exponential_buckets = 2; + * @param \Google\Api\Distribution\BucketOptions\Exponential $var + * @return $this + */ + public function setExponentialBuckets($var) + { + GPBUtil::checkMessage($var, \Google\Api\Distribution\BucketOptions\Exponential::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * The explicit buckets. + * + * Generated from protobuf field .google.api.Distribution.BucketOptions.Explicit explicit_buckets = 3; + * @return \Google\Api\Distribution\BucketOptions\Explicit|null + */ + public function getExplicitBuckets() + { + return $this->readOneof(3); + } + + public function hasExplicitBuckets() + { + return $this->hasOneof(3); + } + + /** + * The explicit buckets. + * + * Generated from protobuf field .google.api.Distribution.BucketOptions.Explicit explicit_buckets = 3; + * @param \Google\Api\Distribution\BucketOptions\Explicit $var + * @return $this + */ + public function setExplicitBuckets($var) + { + GPBUtil::checkMessage($var, \Google\Api\Distribution\BucketOptions\Explicit::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * @return string + */ + public function getOptions() + { + return $this->whichOneof("options"); + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/BucketOptions/Explicit.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/BucketOptions/Explicit.php new file mode 100644 index 000000000000..5921bd98dfbb --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/BucketOptions/Explicit.php @@ -0,0 +1,74 @@ +google.api.Distribution.BucketOptions.Explicit + */ +class Explicit extends \Google\Protobuf\Internal\Message +{ + /** + * The values must be monotonically increasing. + * + * Generated from protobuf field repeated double bounds = 1; + */ + private $bounds; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type float[] $bounds + * The values must be monotonically increasing. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Distribution::initOnce(); + parent::__construct($data); + } + + /** + * The values must be monotonically increasing. + * + * Generated from protobuf field repeated double bounds = 1; + * @return RepeatedField + */ + public function getBounds() + { + return $this->bounds; + } + + /** + * The values must be monotonically increasing. + * + * Generated from protobuf field repeated double bounds = 1; + * @param float[] $var + * @return $this + */ + public function setBounds($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::DOUBLE); + $this->bounds = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/BucketOptions/Exponential.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/BucketOptions/Exponential.php new file mode 100644 index 000000000000..58e67685834c --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/BucketOptions/Exponential.php @@ -0,0 +1,141 @@ +google.api.Distribution.BucketOptions.Exponential + */ +class Exponential extends \Google\Protobuf\Internal\Message +{ + /** + * Must be greater than 0. + * + * Generated from protobuf field int32 num_finite_buckets = 1; + */ + protected $num_finite_buckets = 0; + /** + * Must be greater than 1. + * + * Generated from protobuf field double growth_factor = 2; + */ + protected $growth_factor = 0.0; + /** + * Must be greater than 0. + * + * Generated from protobuf field double scale = 3; + */ + protected $scale = 0.0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $num_finite_buckets + * Must be greater than 0. + * @type float $growth_factor + * Must be greater than 1. + * @type float $scale + * Must be greater than 0. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Distribution::initOnce(); + parent::__construct($data); + } + + /** + * Must be greater than 0. + * + * Generated from protobuf field int32 num_finite_buckets = 1; + * @return int + */ + public function getNumFiniteBuckets() + { + return $this->num_finite_buckets; + } + + /** + * Must be greater than 0. + * + * Generated from protobuf field int32 num_finite_buckets = 1; + * @param int $var + * @return $this + */ + public function setNumFiniteBuckets($var) + { + GPBUtil::checkInt32($var); + $this->num_finite_buckets = $var; + + return $this; + } + + /** + * Must be greater than 1. + * + * Generated from protobuf field double growth_factor = 2; + * @return float + */ + public function getGrowthFactor() + { + return $this->growth_factor; + } + + /** + * Must be greater than 1. + * + * Generated from protobuf field double growth_factor = 2; + * @param float $var + * @return $this + */ + public function setGrowthFactor($var) + { + GPBUtil::checkDouble($var); + $this->growth_factor = $var; + + return $this; + } + + /** + * Must be greater than 0. + * + * Generated from protobuf field double scale = 3; + * @return float + */ + public function getScale() + { + return $this->scale; + } + + /** + * Must be greater than 0. + * + * Generated from protobuf field double scale = 3; + * @param float $var + * @return $this + */ + public function setScale($var) + { + GPBUtil::checkDouble($var); + $this->scale = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/BucketOptions/Linear.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/BucketOptions/Linear.php new file mode 100644 index 000000000000..ca602bd7463c --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/BucketOptions/Linear.php @@ -0,0 +1,141 @@ +google.api.Distribution.BucketOptions.Linear + */ +class Linear extends \Google\Protobuf\Internal\Message +{ + /** + * Must be greater than 0. + * + * Generated from protobuf field int32 num_finite_buckets = 1; + */ + protected $num_finite_buckets = 0; + /** + * Must be greater than 0. + * + * Generated from protobuf field double width = 2; + */ + protected $width = 0.0; + /** + * Lower bound of the first bucket. + * + * Generated from protobuf field double offset = 3; + */ + protected $offset = 0.0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $num_finite_buckets + * Must be greater than 0. + * @type float $width + * Must be greater than 0. + * @type float $offset + * Lower bound of the first bucket. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Distribution::initOnce(); + parent::__construct($data); + } + + /** + * Must be greater than 0. + * + * Generated from protobuf field int32 num_finite_buckets = 1; + * @return int + */ + public function getNumFiniteBuckets() + { + return $this->num_finite_buckets; + } + + /** + * Must be greater than 0. + * + * Generated from protobuf field int32 num_finite_buckets = 1; + * @param int $var + * @return $this + */ + public function setNumFiniteBuckets($var) + { + GPBUtil::checkInt32($var); + $this->num_finite_buckets = $var; + + return $this; + } + + /** + * Must be greater than 0. + * + * Generated from protobuf field double width = 2; + * @return float + */ + public function getWidth() + { + return $this->width; + } + + /** + * Must be greater than 0. + * + * Generated from protobuf field double width = 2; + * @param float $var + * @return $this + */ + public function setWidth($var) + { + GPBUtil::checkDouble($var); + $this->width = $var; + + return $this; + } + + /** + * Lower bound of the first bucket. + * + * Generated from protobuf field double offset = 3; + * @return float + */ + public function getOffset() + { + return $this->offset; + } + + /** + * Lower bound of the first bucket. + * + * Generated from protobuf field double offset = 3; + * @param float $var + * @return $this + */ + public function setOffset($var) + { + GPBUtil::checkDouble($var); + $this->offset = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/Exemplar.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/Exemplar.php new file mode 100644 index 000000000000..4c28e48e173f --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/Exemplar.php @@ -0,0 +1,177 @@ +google.api.Distribution.Exemplar + */ +class Exemplar extends \Google\Protobuf\Internal\Message +{ + /** + * Value of the exemplar point. This value determines to which bucket the + * exemplar belongs. + * + * Generated from protobuf field double value = 1; + */ + protected $value = 0.0; + /** + * The observation (sampling) time of the above value. + * + * Generated from protobuf field .google.protobuf.Timestamp timestamp = 2; + */ + protected $timestamp = null; + /** + * Contextual information about the example value. Examples are: + * Trace: type.googleapis.com/google.monitoring.v3.SpanContext + * Literal string: type.googleapis.com/google.protobuf.StringValue + * Labels dropped during aggregation: + * type.googleapis.com/google.monitoring.v3.DroppedLabels + * There may be only a single attachment of any given message type in a + * single exemplar, and this is enforced by the system. + * + * Generated from protobuf field repeated .google.protobuf.Any attachments = 3; + */ + private $attachments; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type float $value + * Value of the exemplar point. This value determines to which bucket the + * exemplar belongs. + * @type \Google\Protobuf\Timestamp $timestamp + * The observation (sampling) time of the above value. + * @type \Google\Protobuf\Any[] $attachments + * Contextual information about the example value. Examples are: + * Trace: type.googleapis.com/google.monitoring.v3.SpanContext + * Literal string: type.googleapis.com/google.protobuf.StringValue + * Labels dropped during aggregation: + * type.googleapis.com/google.monitoring.v3.DroppedLabels + * There may be only a single attachment of any given message type in a + * single exemplar, and this is enforced by the system. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Distribution::initOnce(); + parent::__construct($data); + } + + /** + * Value of the exemplar point. This value determines to which bucket the + * exemplar belongs. + * + * Generated from protobuf field double value = 1; + * @return float + */ + public function getValue() + { + return $this->value; + } + + /** + * Value of the exemplar point. This value determines to which bucket the + * exemplar belongs. + * + * Generated from protobuf field double value = 1; + * @param float $var + * @return $this + */ + public function setValue($var) + { + GPBUtil::checkDouble($var); + $this->value = $var; + + return $this; + } + + /** + * The observation (sampling) time of the above value. + * + * Generated from protobuf field .google.protobuf.Timestamp timestamp = 2; + * @return \Google\Protobuf\Timestamp|null + */ + public function getTimestamp() + { + return $this->timestamp; + } + + public function hasTimestamp() + { + return isset($this->timestamp); + } + + public function clearTimestamp() + { + unset($this->timestamp); + } + + /** + * The observation (sampling) time of the above value. + * + * Generated from protobuf field .google.protobuf.Timestamp timestamp = 2; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setTimestamp($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->timestamp = $var; + + return $this; + } + + /** + * Contextual information about the example value. Examples are: + * Trace: type.googleapis.com/google.monitoring.v3.SpanContext + * Literal string: type.googleapis.com/google.protobuf.StringValue + * Labels dropped during aggregation: + * type.googleapis.com/google.monitoring.v3.DroppedLabels + * There may be only a single attachment of any given message type in a + * single exemplar, and this is enforced by the system. + * + * Generated from protobuf field repeated .google.protobuf.Any attachments = 3; + * @return RepeatedField<\Google\Protobuf\Any> + */ + public function getAttachments() + { + return $this->attachments; + } + + /** + * Contextual information about the example value. Examples are: + * Trace: type.googleapis.com/google.monitoring.v3.SpanContext + * Literal string: type.googleapis.com/google.protobuf.StringValue + * Labels dropped during aggregation: + * type.googleapis.com/google.monitoring.v3.DroppedLabels + * There may be only a single attachment of any given message type in a + * single exemplar, and this is enforced by the system. + * + * Generated from protobuf field repeated .google.protobuf.Any attachments = 3; + * @param \Google\Protobuf\Any[] $var + * @return $this + */ + public function setAttachments($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Any::class); + $this->attachments = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/Range.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/Range.php new file mode 100644 index 000000000000..7446a794ed9f --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/Range.php @@ -0,0 +1,101 @@ +google.api.Distribution.Range + */ +class Range extends \Google\Protobuf\Internal\Message +{ + /** + * The minimum of the population values. + * + * Generated from protobuf field double min = 1; + */ + protected $min = 0.0; + /** + * The maximum of the population values. + * + * Generated from protobuf field double max = 2; + */ + protected $max = 0.0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type float $min + * The minimum of the population values. + * @type float $max + * The maximum of the population values. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Distribution::initOnce(); + parent::__construct($data); + } + + /** + * The minimum of the population values. + * + * Generated from protobuf field double min = 1; + * @return float + */ + public function getMin() + { + return $this->min; + } + + /** + * The minimum of the population values. + * + * Generated from protobuf field double min = 1; + * @param float $var + * @return $this + */ + public function setMin($var) + { + GPBUtil::checkDouble($var); + $this->min = $var; + + return $this; + } + + /** + * The maximum of the population values. + * + * Generated from protobuf field double max = 2; + * @return float + */ + public function getMax() + { + return $this->max; + } + + /** + * The maximum of the population values. + * + * Generated from protobuf field double max = 2; + * @param float $var + * @return $this + */ + public function setMax($var) + { + GPBUtil::checkDouble($var); + $this->max = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Documentation.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Documentation.php new file mode 100644 index 000000000000..6d84f784c333 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Documentation.php @@ -0,0 +1,362 @@ +documentation: + * summary: > + * The Google Calendar API gives access + * to most calendar features. + * pages: + * - name: Overview + * content: (== include google/foo/overview.md ==) + * - name: Tutorial + * content: (== include google/foo/tutorial.md ==) + * subpages: + * - name: Java + * content: (== include google/foo/tutorial_java.md ==) + * rules: + * - selector: google.calendar.Calendar.Get + * description: > + * ... + * - selector: google.calendar.Calendar.Put + * description: > + * ... + * + * Documentation is provided in markdown syntax. In addition to + * standard markdown features, definition lists, tables and fenced + * code blocks are supported. Section headers can be provided and are + * interpreted relative to the section nesting of the context where + * a documentation fragment is embedded. + * Documentation from the IDL is merged with documentation defined + * via the config at normalization time, where documentation provided + * by config rules overrides IDL provided. + * A number of constructs specific to the API platform are supported + * in documentation text. + * In order to reference a proto element, the following + * notation can be used: + *
[fully.qualified.proto.name][]
+ * To override the display text used for the link, this can be used: + *
[display text][fully.qualified.proto.name]
+ * Text can be excluded from doc using the following notation: + *
(-- internal comment --)
+ * A few directives are available in documentation. Note that + * directives must appear on a single line to be properly + * identified. The `include` directive includes a markdown file from + * an external source: + *
(== include path/to/file ==)
+ * The `resource_for` directive marks a message to be the resource of + * a collection in REST view. If it is not specified, tools attempt + * to infer the resource from the operations in a collection: + *
(== resource_for v1.shelves.books ==)
+ * The directive `suppress_warning` does not directly affect documentation + * and is documented together with service config validation. + * + * Generated from protobuf message google.api.Documentation + */ +class Documentation extends \Google\Protobuf\Internal\Message +{ + /** + * A short description of what the service does. The summary must be plain + * text. It becomes the overview of the service displayed in Google Cloud + * Console. + * NOTE: This field is equivalent to the standard field `description`. + * + * Generated from protobuf field string summary = 1; + */ + protected $summary = ''; + /** + * The top level pages for the documentation set. + * + * Generated from protobuf field repeated .google.api.Page pages = 5; + */ + private $pages; + /** + * A list of documentation rules that apply to individual API elements. + * **NOTE:** All service configuration rules follow "last one wins" order. + * + * Generated from protobuf field repeated .google.api.DocumentationRule rules = 3; + */ + private $rules; + /** + * The URL to the root of documentation. + * + * Generated from protobuf field string documentation_root_url = 4; + */ + protected $documentation_root_url = ''; + /** + * Specifies the service root url if the default one (the service name + * from the yaml file) is not suitable. This can be seen in any fully + * specified service urls as well as sections that show a base that other + * urls are relative to. + * + * Generated from protobuf field string service_root_url = 6; + */ + protected $service_root_url = ''; + /** + * Declares a single overview page. For example: + *
documentation:
+     *   summary: ...
+     *   overview: (== include overview.md ==)
+     * 
+ * This is a shortcut for the following declaration (using pages style): + *
documentation:
+     *   summary: ...
+     *   pages:
+     *   - name: Overview
+     *     content: (== include overview.md ==)
+     * 
+ * Note: you cannot specify both `overview` field and `pages` field. + * + * Generated from protobuf field string overview = 2; + */ + protected $overview = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $summary + * A short description of what the service does. The summary must be plain + * text. It becomes the overview of the service displayed in Google Cloud + * Console. + * NOTE: This field is equivalent to the standard field `description`. + * @type \Google\Api\Page[] $pages + * The top level pages for the documentation set. + * @type \Google\Api\DocumentationRule[] $rules + * A list of documentation rules that apply to individual API elements. + * **NOTE:** All service configuration rules follow "last one wins" order. + * @type string $documentation_root_url + * The URL to the root of documentation. + * @type string $service_root_url + * Specifies the service root url if the default one (the service name + * from the yaml file) is not suitable. This can be seen in any fully + * specified service urls as well as sections that show a base that other + * urls are relative to. + * @type string $overview + * Declares a single overview page. For example: + *
documentation:
+     *             summary: ...
+     *             overview: (== include overview.md ==)
+     *           
+ * This is a shortcut for the following declaration (using pages style): + *
documentation:
+     *             summary: ...
+     *             pages:
+     *             - name: Overview
+     *               content: (== include overview.md ==)
+     *           
+ * Note: you cannot specify both `overview` field and `pages` field. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Documentation::initOnce(); + parent::__construct($data); + } + + /** + * A short description of what the service does. The summary must be plain + * text. It becomes the overview of the service displayed in Google Cloud + * Console. + * NOTE: This field is equivalent to the standard field `description`. + * + * Generated from protobuf field string summary = 1; + * @return string + */ + public function getSummary() + { + return $this->summary; + } + + /** + * A short description of what the service does. The summary must be plain + * text. It becomes the overview of the service displayed in Google Cloud + * Console. + * NOTE: This field is equivalent to the standard field `description`. + * + * Generated from protobuf field string summary = 1; + * @param string $var + * @return $this + */ + public function setSummary($var) + { + GPBUtil::checkString($var, True); + $this->summary = $var; + + return $this; + } + + /** + * The top level pages for the documentation set. + * + * Generated from protobuf field repeated .google.api.Page pages = 5; + * @return RepeatedField<\Google\Api\Page> + */ + public function getPages() + { + return $this->pages; + } + + /** + * The top level pages for the documentation set. + * + * Generated from protobuf field repeated .google.api.Page pages = 5; + * @param \Google\Api\Page[] $var + * @return $this + */ + public function setPages($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\Page::class); + $this->pages = $arr; + + return $this; + } + + /** + * A list of documentation rules that apply to individual API elements. + * **NOTE:** All service configuration rules follow "last one wins" order. + * + * Generated from protobuf field repeated .google.api.DocumentationRule rules = 3; + * @return RepeatedField<\Google\Api\DocumentationRule> + */ + public function getRules() + { + return $this->rules; + } + + /** + * A list of documentation rules that apply to individual API elements. + * **NOTE:** All service configuration rules follow "last one wins" order. + * + * Generated from protobuf field repeated .google.api.DocumentationRule rules = 3; + * @param \Google\Api\DocumentationRule[] $var + * @return $this + */ + public function setRules($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\DocumentationRule::class); + $this->rules = $arr; + + return $this; + } + + /** + * The URL to the root of documentation. + * + * Generated from protobuf field string documentation_root_url = 4; + * @return string + */ + public function getDocumentationRootUrl() + { + return $this->documentation_root_url; + } + + /** + * The URL to the root of documentation. + * + * Generated from protobuf field string documentation_root_url = 4; + * @param string $var + * @return $this + */ + public function setDocumentationRootUrl($var) + { + GPBUtil::checkString($var, True); + $this->documentation_root_url = $var; + + return $this; + } + + /** + * Specifies the service root url if the default one (the service name + * from the yaml file) is not suitable. This can be seen in any fully + * specified service urls as well as sections that show a base that other + * urls are relative to. + * + * Generated from protobuf field string service_root_url = 6; + * @return string + */ + public function getServiceRootUrl() + { + return $this->service_root_url; + } + + /** + * Specifies the service root url if the default one (the service name + * from the yaml file) is not suitable. This can be seen in any fully + * specified service urls as well as sections that show a base that other + * urls are relative to. + * + * Generated from protobuf field string service_root_url = 6; + * @param string $var + * @return $this + */ + public function setServiceRootUrl($var) + { + GPBUtil::checkString($var, True); + $this->service_root_url = $var; + + return $this; + } + + /** + * Declares a single overview page. For example: + *
documentation:
+     *   summary: ...
+     *   overview: (== include overview.md ==)
+     * 
+ * This is a shortcut for the following declaration (using pages style): + *
documentation:
+     *   summary: ...
+     *   pages:
+     *   - name: Overview
+     *     content: (== include overview.md ==)
+     * 
+ * Note: you cannot specify both `overview` field and `pages` field. + * + * Generated from protobuf field string overview = 2; + * @return string + */ + public function getOverview() + { + return $this->overview; + } + + /** + * Declares a single overview page. For example: + *
documentation:
+     *   summary: ...
+     *   overview: (== include overview.md ==)
+     * 
+ * This is a shortcut for the following declaration (using pages style): + *
documentation:
+     *   summary: ...
+     *   pages:
+     *   - name: Overview
+     *     content: (== include overview.md ==)
+     * 
+ * Note: you cannot specify both `overview` field and `pages` field. + * + * Generated from protobuf field string overview = 2; + * @param string $var + * @return $this + */ + public function setOverview($var) + { + GPBUtil::checkString($var, True); + $this->overview = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/DocumentationRule.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/DocumentationRule.php new file mode 100644 index 000000000000..d6c654532551 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/DocumentationRule.php @@ -0,0 +1,171 @@ +google.api.DocumentationRule + */ +class DocumentationRule extends \Google\Protobuf\Internal\Message +{ + /** + * The selector is a comma-separated list of patterns for any element such as + * a method, a field, an enum value. Each pattern is a qualified name of the + * element which may end in "*", indicating a wildcard. Wildcards are only + * allowed at the end and for a whole component of the qualified name, + * i.e. "foo.*" is ok, but not "foo.b*" or "foo.*.bar". A wildcard will match + * one or more components. To specify a default for all applicable elements, + * the whole pattern "*" is used. + * + * Generated from protobuf field string selector = 1; + */ + protected $selector = ''; + /** + * Description of the selected proto element (e.g. a message, a method, a + * 'service' definition, or a field). Defaults to leading & trailing comments + * taken from the proto source definition of the proto element. + * + * Generated from protobuf field string description = 2; + */ + protected $description = ''; + /** + * Deprecation description of the selected element(s). It can be provided if + * an element is marked as `deprecated`. + * + * Generated from protobuf field string deprecation_description = 3; + */ + protected $deprecation_description = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $selector + * The selector is a comma-separated list of patterns for any element such as + * a method, a field, an enum value. Each pattern is a qualified name of the + * element which may end in "*", indicating a wildcard. Wildcards are only + * allowed at the end and for a whole component of the qualified name, + * i.e. "foo.*" is ok, but not "foo.b*" or "foo.*.bar". A wildcard will match + * one or more components. To specify a default for all applicable elements, + * the whole pattern "*" is used. + * @type string $description + * Description of the selected proto element (e.g. a message, a method, a + * 'service' definition, or a field). Defaults to leading & trailing comments + * taken from the proto source definition of the proto element. + * @type string $deprecation_description + * Deprecation description of the selected element(s). It can be provided if + * an element is marked as `deprecated`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Documentation::initOnce(); + parent::__construct($data); + } + + /** + * The selector is a comma-separated list of patterns for any element such as + * a method, a field, an enum value. Each pattern is a qualified name of the + * element which may end in "*", indicating a wildcard. Wildcards are only + * allowed at the end and for a whole component of the qualified name, + * i.e. "foo.*" is ok, but not "foo.b*" or "foo.*.bar". A wildcard will match + * one or more components. To specify a default for all applicable elements, + * the whole pattern "*" is used. + * + * Generated from protobuf field string selector = 1; + * @return string + */ + public function getSelector() + { + return $this->selector; + } + + /** + * The selector is a comma-separated list of patterns for any element such as + * a method, a field, an enum value. Each pattern is a qualified name of the + * element which may end in "*", indicating a wildcard. Wildcards are only + * allowed at the end and for a whole component of the qualified name, + * i.e. "foo.*" is ok, but not "foo.b*" or "foo.*.bar". A wildcard will match + * one or more components. To specify a default for all applicable elements, + * the whole pattern "*" is used. + * + * Generated from protobuf field string selector = 1; + * @param string $var + * @return $this + */ + public function setSelector($var) + { + GPBUtil::checkString($var, True); + $this->selector = $var; + + return $this; + } + + /** + * Description of the selected proto element (e.g. a message, a method, a + * 'service' definition, or a field). Defaults to leading & trailing comments + * taken from the proto source definition of the proto element. + * + * Generated from protobuf field string description = 2; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Description of the selected proto element (e.g. a message, a method, a + * 'service' definition, or a field). Defaults to leading & trailing comments + * taken from the proto source definition of the proto element. + * + * Generated from protobuf field string description = 2; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * Deprecation description of the selected element(s). It can be provided if + * an element is marked as `deprecated`. + * + * Generated from protobuf field string deprecation_description = 3; + * @return string + */ + public function getDeprecationDescription() + { + return $this->deprecation_description; + } + + /** + * Deprecation description of the selected element(s). It can be provided if + * an element is marked as `deprecated`. + * + * Generated from protobuf field string deprecation_description = 3; + * @param string $var + * @return $this + */ + public function setDeprecationDescription($var) + { + GPBUtil::checkString($var, True); + $this->deprecation_description = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/DotnetSettings.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/DotnetSettings.php new file mode 100644 index 000000000000..3f94ff3a94e5 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/DotnetSettings.php @@ -0,0 +1,307 @@ +google.api.DotnetSettings + */ +class DotnetSettings extends \Google\Protobuf\Internal\Message +{ + /** + * Some settings. + * + * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; + */ + protected $common = null; + /** + * Map from original service names to renamed versions. + * This is used when the default generated types + * would cause a naming conflict. (Neither name is + * fully-qualified.) + * Example: Subscriber to SubscriberServiceApi. + * + * Generated from protobuf field map renamed_services = 2; + */ + private $renamed_services; + /** + * Map from full resource types to the effective short name + * for the resource. This is used when otherwise resource + * named from different services would cause naming collisions. + * Example entry: + * "datalabeling.googleapis.com/Dataset": "DataLabelingDataset" + * + * Generated from protobuf field map renamed_resources = 3; + */ + private $renamed_resources; + /** + * List of full resource types to ignore during generation. + * This is typically used for API-specific Location resources, + * which should be handled by the generator as if they were actually + * the common Location resources. + * Example entry: "documentai.googleapis.com/Location" + * + * Generated from protobuf field repeated string ignored_resources = 4; + */ + private $ignored_resources; + /** + * Namespaces which must be aliased in snippets due to + * a known (but non-generator-predictable) naming collision + * + * Generated from protobuf field repeated string forced_namespace_aliases = 5; + */ + private $forced_namespace_aliases; + /** + * Method signatures (in the form "service.method(signature)") + * which are provided separately, so shouldn't be generated. + * Snippets *calling* these methods are still generated, however. + * + * Generated from protobuf field repeated string handwritten_signatures = 6; + */ + private $handwritten_signatures; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Api\CommonLanguageSettings $common + * Some settings. + * @type array|\Google\Protobuf\Internal\MapField $renamed_services + * Map from original service names to renamed versions. + * This is used when the default generated types + * would cause a naming conflict. (Neither name is + * fully-qualified.) + * Example: Subscriber to SubscriberServiceApi. + * @type array|\Google\Protobuf\Internal\MapField $renamed_resources + * Map from full resource types to the effective short name + * for the resource. This is used when otherwise resource + * named from different services would cause naming collisions. + * Example entry: + * "datalabeling.googleapis.com/Dataset": "DataLabelingDataset" + * @type string[] $ignored_resources + * List of full resource types to ignore during generation. + * This is typically used for API-specific Location resources, + * which should be handled by the generator as if they were actually + * the common Location resources. + * Example entry: "documentai.googleapis.com/Location" + * @type string[] $forced_namespace_aliases + * Namespaces which must be aliased in snippets due to + * a known (but non-generator-predictable) naming collision + * @type string[] $handwritten_signatures + * Method signatures (in the form "service.method(signature)") + * which are provided separately, so shouldn't be generated. + * Snippets *calling* these methods are still generated, however. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Client::initOnce(); + parent::__construct($data); + } + + /** + * Some settings. + * + * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; + * @return \Google\Api\CommonLanguageSettings|null + */ + public function getCommon() + { + return $this->common; + } + + public function hasCommon() + { + return isset($this->common); + } + + public function clearCommon() + { + unset($this->common); + } + + /** + * Some settings. + * + * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; + * @param \Google\Api\CommonLanguageSettings $var + * @return $this + */ + public function setCommon($var) + { + GPBUtil::checkMessage($var, \Google\Api\CommonLanguageSettings::class); + $this->common = $var; + + return $this; + } + + /** + * Map from original service names to renamed versions. + * This is used when the default generated types + * would cause a naming conflict. (Neither name is + * fully-qualified.) + * Example: Subscriber to SubscriberServiceApi. + * + * Generated from protobuf field map renamed_services = 2; + * @return \Google\Protobuf\Internal\MapField + */ + public function getRenamedServices() + { + return $this->renamed_services; + } + + /** + * Map from original service names to renamed versions. + * This is used when the default generated types + * would cause a naming conflict. (Neither name is + * fully-qualified.) + * Example: Subscriber to SubscriberServiceApi. + * + * Generated from protobuf field map renamed_services = 2; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setRenamedServices($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->renamed_services = $arr; + + return $this; + } + + /** + * Map from full resource types to the effective short name + * for the resource. This is used when otherwise resource + * named from different services would cause naming collisions. + * Example entry: + * "datalabeling.googleapis.com/Dataset": "DataLabelingDataset" + * + * Generated from protobuf field map renamed_resources = 3; + * @return \Google\Protobuf\Internal\MapField + */ + public function getRenamedResources() + { + return $this->renamed_resources; + } + + /** + * Map from full resource types to the effective short name + * for the resource. This is used when otherwise resource + * named from different services would cause naming collisions. + * Example entry: + * "datalabeling.googleapis.com/Dataset": "DataLabelingDataset" + * + * Generated from protobuf field map renamed_resources = 3; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setRenamedResources($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->renamed_resources = $arr; + + return $this; + } + + /** + * List of full resource types to ignore during generation. + * This is typically used for API-specific Location resources, + * which should be handled by the generator as if they were actually + * the common Location resources. + * Example entry: "documentai.googleapis.com/Location" + * + * Generated from protobuf field repeated string ignored_resources = 4; + * @return RepeatedField + */ + public function getIgnoredResources() + { + return $this->ignored_resources; + } + + /** + * List of full resource types to ignore during generation. + * This is typically used for API-specific Location resources, + * which should be handled by the generator as if they were actually + * the common Location resources. + * Example entry: "documentai.googleapis.com/Location" + * + * Generated from protobuf field repeated string ignored_resources = 4; + * @param string[] $var + * @return $this + */ + public function setIgnoredResources($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->ignored_resources = $arr; + + return $this; + } + + /** + * Namespaces which must be aliased in snippets due to + * a known (but non-generator-predictable) naming collision + * + * Generated from protobuf field repeated string forced_namespace_aliases = 5; + * @return RepeatedField + */ + public function getForcedNamespaceAliases() + { + return $this->forced_namespace_aliases; + } + + /** + * Namespaces which must be aliased in snippets due to + * a known (but non-generator-predictable) naming collision + * + * Generated from protobuf field repeated string forced_namespace_aliases = 5; + * @param string[] $var + * @return $this + */ + public function setForcedNamespaceAliases($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->forced_namespace_aliases = $arr; + + return $this; + } + + /** + * Method signatures (in the form "service.method(signature)") + * which are provided separately, so shouldn't be generated. + * Snippets *calling* these methods are still generated, however. + * + * Generated from protobuf field repeated string handwritten_signatures = 6; + * @return RepeatedField + */ + public function getHandwrittenSignatures() + { + return $this->handwritten_signatures; + } + + /** + * Method signatures (in the form "service.method(signature)") + * which are provided separately, so shouldn't be generated. + * Snippets *calling* these methods are still generated, however. + * + * Generated from protobuf field repeated string handwritten_signatures = 6; + * @param string[] $var + * @return $this + */ + public function setHandwrittenSignatures($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->handwritten_signatures = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Endpoint.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Endpoint.php new file mode 100644 index 000000000000..694c63a577b4 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Endpoint.php @@ -0,0 +1,231 @@ +google.api.Endpoint + */ +class Endpoint extends \Google\Protobuf\Internal\Message +{ + /** + * The canonical name of this endpoint. + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * Aliases for this endpoint, these will be served by the same UrlMap as the + * parent endpoint, and will be provisioned in the GCP stack for the Regional + * Endpoints. + * + * Generated from protobuf field repeated string aliases = 2; + */ + private $aliases; + /** + * The specification of an Internet routable address of API frontend that will + * handle requests to this [API + * Endpoint](https://cloud.google.com/apis/design/glossary). It should be + * either a valid IPv4 address or a fully-qualified domain name. For example, + * "8.8.8.8" or "myservice.appspot.com". + * + * Generated from protobuf field string target = 101; + */ + protected $target = ''; + /** + * Allowing + * [CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing), aka + * cross-domain traffic, would allow the backends served from this endpoint to + * receive and respond to HTTP OPTIONS requests. The response will be used by + * the browser to determine whether the subsequent cross-origin request is + * allowed to proceed. + * + * Generated from protobuf field bool allow_cors = 5; + */ + protected $allow_cors = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * The canonical name of this endpoint. + * @type string[] $aliases + * Aliases for this endpoint, these will be served by the same UrlMap as the + * parent endpoint, and will be provisioned in the GCP stack for the Regional + * Endpoints. + * @type string $target + * The specification of an Internet routable address of API frontend that will + * handle requests to this [API + * Endpoint](https://cloud.google.com/apis/design/glossary). It should be + * either a valid IPv4 address or a fully-qualified domain name. For example, + * "8.8.8.8" or "myservice.appspot.com". + * @type bool $allow_cors + * Allowing + * [CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing), aka + * cross-domain traffic, would allow the backends served from this endpoint to + * receive and respond to HTTP OPTIONS requests. The response will be used by + * the browser to determine whether the subsequent cross-origin request is + * allowed to proceed. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Endpoint::initOnce(); + parent::__construct($data); + } + + /** + * The canonical name of this endpoint. + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The canonical name of this endpoint. + * + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Aliases for this endpoint, these will be served by the same UrlMap as the + * parent endpoint, and will be provisioned in the GCP stack for the Regional + * Endpoints. + * + * Generated from protobuf field repeated string aliases = 2; + * @return RepeatedField + */ + public function getAliases() + { + return $this->aliases; + } + + /** + * Aliases for this endpoint, these will be served by the same UrlMap as the + * parent endpoint, and will be provisioned in the GCP stack for the Regional + * Endpoints. + * + * Generated from protobuf field repeated string aliases = 2; + * @param string[] $var + * @return $this + */ + public function setAliases($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->aliases = $arr; + + return $this; + } + + /** + * The specification of an Internet routable address of API frontend that will + * handle requests to this [API + * Endpoint](https://cloud.google.com/apis/design/glossary). It should be + * either a valid IPv4 address or a fully-qualified domain name. For example, + * "8.8.8.8" or "myservice.appspot.com". + * + * Generated from protobuf field string target = 101; + * @return string + */ + public function getTarget() + { + return $this->target; + } + + /** + * The specification of an Internet routable address of API frontend that will + * handle requests to this [API + * Endpoint](https://cloud.google.com/apis/design/glossary). It should be + * either a valid IPv4 address or a fully-qualified domain name. For example, + * "8.8.8.8" or "myservice.appspot.com". + * + * Generated from protobuf field string target = 101; + * @param string $var + * @return $this + */ + public function setTarget($var) + { + GPBUtil::checkString($var, True); + $this->target = $var; + + return $this; + } + + /** + * Allowing + * [CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing), aka + * cross-domain traffic, would allow the backends served from this endpoint to + * receive and respond to HTTP OPTIONS requests. The response will be used by + * the browser to determine whether the subsequent cross-origin request is + * allowed to proceed. + * + * Generated from protobuf field bool allow_cors = 5; + * @return bool + */ + public function getAllowCors() + { + return $this->allow_cors; + } + + /** + * Allowing + * [CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing), aka + * cross-domain traffic, would allow the backends served from this endpoint to + * receive and respond to HTTP OPTIONS requests. The response will be used by + * the browser to determine whether the subsequent cross-origin request is + * allowed to proceed. + * + * Generated from protobuf field bool allow_cors = 5; + * @param bool $var + * @return $this + */ + public function setAllowCors($var) + { + GPBUtil::checkBool($var); + $this->allow_cors = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ErrorReason.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ErrorReason.php new file mode 100644 index 000000000000..5457fb4ca9bf --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ErrorReason.php @@ -0,0 +1,895 @@ +google.api.ErrorReason + */ +class ErrorReason +{ + /** + * Do not use this default value. + * + * Generated from protobuf enum ERROR_REASON_UNSPECIFIED = 0; + */ + const ERROR_REASON_UNSPECIFIED = 0; + /** + * The request is calling a disabled service for a consumer. + * Example of an ErrorInfo when the consumer "projects/123" contacting + * "pubsub.googleapis.com" service which is disabled: + * { "reason": "SERVICE_DISABLED", + * "domain": "googleapis.com", + * "metadata": { + * "consumer": "projects/123", + * "service": "pubsub.googleapis.com" + * } + * } + * This response indicates the "pubsub.googleapis.com" has been disabled in + * "projects/123". + * + * Generated from protobuf enum SERVICE_DISABLED = 1; + */ + const SERVICE_DISABLED = 1; + /** + * The request whose associated billing account is disabled. + * Example of an ErrorInfo when the consumer "projects/123" fails to contact + * "pubsub.googleapis.com" service because the associated billing account is + * disabled: + * { "reason": "BILLING_DISABLED", + * "domain": "googleapis.com", + * "metadata": { + * "consumer": "projects/123", + * "service": "pubsub.googleapis.com" + * } + * } + * This response indicates the billing account associated has been disabled. + * + * Generated from protobuf enum BILLING_DISABLED = 2; + */ + const BILLING_DISABLED = 2; + /** + * The request is denied because the provided [API + * key](https://cloud.google.com/docs/authentication/api-keys) is invalid. It + * may be in a bad format, cannot be found, or has been expired). + * Example of an ErrorInfo when the request is contacting + * "storage.googleapis.com" service with an invalid API key: + * { "reason": "API_KEY_INVALID", + * "domain": "googleapis.com", + * "metadata": { + * "service": "storage.googleapis.com", + * } + * } + * + * Generated from protobuf enum API_KEY_INVALID = 3; + */ + const API_KEY_INVALID = 3; + /** + * The request is denied because it violates [API key API + * restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_api_restrictions). + * Example of an ErrorInfo when the consumer "projects/123" fails to call the + * "storage.googleapis.com" service because this service is restricted in the + * API key: + * { "reason": "API_KEY_SERVICE_BLOCKED", + * "domain": "googleapis.com", + * "metadata": { + * "consumer": "projects/123", + * "service": "storage.googleapis.com" + * } + * } + * + * Generated from protobuf enum API_KEY_SERVICE_BLOCKED = 4; + */ + const API_KEY_SERVICE_BLOCKED = 4; + /** + * The request is denied because it violates [API key HTTP + * restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_http_restrictions). + * Example of an ErrorInfo when the consumer "projects/123" fails to call + * "storage.googleapis.com" service because the http referrer of the request + * violates API key HTTP restrictions: + * { "reason": "API_KEY_HTTP_REFERRER_BLOCKED", + * "domain": "googleapis.com", + * "metadata": { + * "consumer": "projects/123", + * "service": "storage.googleapis.com", + * } + * } + * + * Generated from protobuf enum API_KEY_HTTP_REFERRER_BLOCKED = 7; + */ + const API_KEY_HTTP_REFERRER_BLOCKED = 7; + /** + * The request is denied because it violates [API key IP address + * restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_application_restrictions). + * Example of an ErrorInfo when the consumer "projects/123" fails to call + * "storage.googleapis.com" service because the caller IP of the request + * violates API key IP address restrictions: + * { "reason": "API_KEY_IP_ADDRESS_BLOCKED", + * "domain": "googleapis.com", + * "metadata": { + * "consumer": "projects/123", + * "service": "storage.googleapis.com", + * } + * } + * + * Generated from protobuf enum API_KEY_IP_ADDRESS_BLOCKED = 8; + */ + const API_KEY_IP_ADDRESS_BLOCKED = 8; + /** + * The request is denied because it violates [API key Android application + * restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_application_restrictions). + * Example of an ErrorInfo when the consumer "projects/123" fails to call + * "storage.googleapis.com" service because the request from the Android apps + * violates the API key Android application restrictions: + * { "reason": "API_KEY_ANDROID_APP_BLOCKED", + * "domain": "googleapis.com", + * "metadata": { + * "consumer": "projects/123", + * "service": "storage.googleapis.com" + * } + * } + * + * Generated from protobuf enum API_KEY_ANDROID_APP_BLOCKED = 9; + */ + const API_KEY_ANDROID_APP_BLOCKED = 9; + /** + * The request is denied because it violates [API key iOS application + * restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_application_restrictions). + * Example of an ErrorInfo when the consumer "projects/123" fails to call + * "storage.googleapis.com" service because the request from the iOS apps + * violates the API key iOS application restrictions: + * { "reason": "API_KEY_IOS_APP_BLOCKED", + * "domain": "googleapis.com", + * "metadata": { + * "consumer": "projects/123", + * "service": "storage.googleapis.com" + * } + * } + * + * Generated from protobuf enum API_KEY_IOS_APP_BLOCKED = 13; + */ + const API_KEY_IOS_APP_BLOCKED = 13; + /** + * The request is denied because there is not enough rate quota for the + * consumer. + * Example of an ErrorInfo when the consumer "projects/123" fails to contact + * "pubsub.googleapis.com" service because consumer's rate quota usage has + * reached the maximum value set for the quota limit + * "ReadsPerMinutePerProject" on the quota metric + * "pubsub.googleapis.com/read_requests": + * { "reason": "RATE_LIMIT_EXCEEDED", + * "domain": "googleapis.com", + * "metadata": { + * "consumer": "projects/123", + * "service": "pubsub.googleapis.com", + * "quota_metric": "pubsub.googleapis.com/read_requests", + * "quota_limit": "ReadsPerMinutePerProject" + * } + * } + * Example of an ErrorInfo when the consumer "projects/123" checks quota on + * the service "dataflow.googleapis.com" and hits the organization quota + * limit "DefaultRequestsPerMinutePerOrganization" on the metric + * "dataflow.googleapis.com/default_requests". + * { "reason": "RATE_LIMIT_EXCEEDED", + * "domain": "googleapis.com", + * "metadata": { + * "consumer": "projects/123", + * "service": "dataflow.googleapis.com", + * "quota_metric": "dataflow.googleapis.com/default_requests", + * "quota_limit": "DefaultRequestsPerMinutePerOrganization" + * } + * } + * + * Generated from protobuf enum RATE_LIMIT_EXCEEDED = 5; + */ + const RATE_LIMIT_EXCEEDED = 5; + /** + * The request is denied because there is not enough resource quota for the + * consumer. + * Example of an ErrorInfo when the consumer "projects/123" fails to contact + * "compute.googleapis.com" service because consumer's resource quota usage + * has reached the maximum value set for the quota limit "VMsPerProject" + * on the quota metric "compute.googleapis.com/vms": + * { "reason": "RESOURCE_QUOTA_EXCEEDED", + * "domain": "googleapis.com", + * "metadata": { + * "consumer": "projects/123", + * "service": "compute.googleapis.com", + * "quota_metric": "compute.googleapis.com/vms", + * "quota_limit": "VMsPerProject" + * } + * } + * Example of an ErrorInfo when the consumer "projects/123" checks resource + * quota on the service "dataflow.googleapis.com" and hits the organization + * quota limit "jobs-per-organization" on the metric + * "dataflow.googleapis.com/job_count". + * { "reason": "RESOURCE_QUOTA_EXCEEDED", + * "domain": "googleapis.com", + * "metadata": { + * "consumer": "projects/123", + * "service": "dataflow.googleapis.com", + * "quota_metric": "dataflow.googleapis.com/job_count", + * "quota_limit": "jobs-per-organization" + * } + * } + * + * Generated from protobuf enum RESOURCE_QUOTA_EXCEEDED = 6; + */ + const RESOURCE_QUOTA_EXCEEDED = 6; + /** + * The request whose associated billing account address is in a tax restricted + * location, violates the local tax restrictions when creating resources in + * the restricted region. + * Example of an ErrorInfo when creating the Cloud Storage Bucket in the + * container "projects/123" under a tax restricted region + * "locations/asia-northeast3": + * { "reason": "LOCATION_TAX_POLICY_VIOLATED", + * "domain": "googleapis.com", + * "metadata": { + * "consumer": "projects/123", + * "service": "storage.googleapis.com", + * "location": "locations/asia-northeast3" + * } + * } + * This response indicates creating the Cloud Storage Bucket in + * "locations/asia-northeast3" violates the location tax restriction. + * + * Generated from protobuf enum LOCATION_TAX_POLICY_VIOLATED = 10; + */ + const LOCATION_TAX_POLICY_VIOLATED = 10; + /** + * The request is denied because the caller does not have required permission + * on the user project "projects/123" or the user project is invalid. For more + * information, check the [userProject System + * Parameters](https://cloud.google.com/apis/docs/system-parameters). + * Example of an ErrorInfo when the caller is calling Cloud Storage service + * with insufficient permissions on the user project: + * { "reason": "USER_PROJECT_DENIED", + * "domain": "googleapis.com", + * "metadata": { + * "consumer": "projects/123", + * "service": "storage.googleapis.com" + * } + * } + * + * Generated from protobuf enum USER_PROJECT_DENIED = 11; + */ + const USER_PROJECT_DENIED = 11; + /** + * The request is denied because the consumer "projects/123" is suspended due + * to Terms of Service(Tos) violations. Check [Project suspension + * guidelines](https://cloud.google.com/resource-manager/docs/project-suspension-guidelines) + * for more information. + * Example of an ErrorInfo when calling Cloud Storage service with the + * suspended consumer "projects/123": + * { "reason": "CONSUMER_SUSPENDED", + * "domain": "googleapis.com", + * "metadata": { + * "consumer": "projects/123", + * "service": "storage.googleapis.com" + * } + * } + * + * Generated from protobuf enum CONSUMER_SUSPENDED = 12; + */ + const CONSUMER_SUSPENDED = 12; + /** + * The request is denied because the associated consumer is invalid. It may be + * in a bad format, cannot be found, or have been deleted. + * Example of an ErrorInfo when calling Cloud Storage service with the + * invalid consumer "projects/123": + * { "reason": "CONSUMER_INVALID", + * "domain": "googleapis.com", + * "metadata": { + * "consumer": "projects/123", + * "service": "storage.googleapis.com" + * } + * } + * + * Generated from protobuf enum CONSUMER_INVALID = 14; + */ + const CONSUMER_INVALID = 14; + /** + * The request is denied because it violates [VPC Service + * Controls](https://cloud.google.com/vpc-service-controls/docs/overview). + * The 'uid' field is a random generated identifier that customer can use it + * to search the audit log for a request rejected by VPC Service Controls. For + * more information, please refer [VPC Service Controls + * Troubleshooting](https://cloud.google.com/vpc-service-controls/docs/troubleshooting#unique-id) + * Example of an ErrorInfo when the consumer "projects/123" fails to call + * Cloud Storage service because the request is prohibited by the VPC Service + * Controls. + * { "reason": "SECURITY_POLICY_VIOLATED", + * "domain": "googleapis.com", + * "metadata": { + * "uid": "123456789abcde", + * "consumer": "projects/123", + * "service": "storage.googleapis.com" + * } + * } + * + * Generated from protobuf enum SECURITY_POLICY_VIOLATED = 15; + */ + const SECURITY_POLICY_VIOLATED = 15; + /** + * The request is denied because the provided access token has expired. + * Example of an ErrorInfo when the request is calling Cloud Storage service + * with an expired access token: + * { "reason": "ACCESS_TOKEN_EXPIRED", + * "domain": "googleapis.com", + * "metadata": { + * "service": "storage.googleapis.com", + * "method": "google.storage.v1.Storage.GetObject" + * } + * } + * + * Generated from protobuf enum ACCESS_TOKEN_EXPIRED = 16; + */ + const ACCESS_TOKEN_EXPIRED = 16; + /** + * The request is denied because the provided access token doesn't have at + * least one of the acceptable scopes required for the API. Please check + * [OAuth 2.0 Scopes for Google + * APIs](https://developers.google.com/identity/protocols/oauth2/scopes) for + * the list of the OAuth 2.0 scopes that you might need to request to access + * the API. + * Example of an ErrorInfo when the request is calling Cloud Storage service + * with an access token that is missing required scopes: + * { "reason": "ACCESS_TOKEN_SCOPE_INSUFFICIENT", + * "domain": "googleapis.com", + * "metadata": { + * "service": "storage.googleapis.com", + * "method": "google.storage.v1.Storage.GetObject" + * } + * } + * + * Generated from protobuf enum ACCESS_TOKEN_SCOPE_INSUFFICIENT = 17; + */ + const ACCESS_TOKEN_SCOPE_INSUFFICIENT = 17; + /** + * The request is denied because the account associated with the provided + * access token is in an invalid state, such as disabled or deleted. + * For more information, see https://cloud.google.com/docs/authentication. + * Warning: For privacy reasons, the server may not be able to disclose the + * email address for some accounts. The client MUST NOT depend on the + * availability of the `email` attribute. + * Example of an ErrorInfo when the request is to the Cloud Storage API with + * an access token that is associated with a disabled or deleted [service + * account](http://cloud/iam/docs/service-accounts): + * { "reason": "ACCOUNT_STATE_INVALID", + * "domain": "googleapis.com", + * "metadata": { + * "service": "storage.googleapis.com", + * "method": "google.storage.v1.Storage.GetObject", + * "email": "user\@123.iam.gserviceaccount.com" + * } + * } + * + * Generated from protobuf enum ACCOUNT_STATE_INVALID = 18; + */ + const ACCOUNT_STATE_INVALID = 18; + /** + * The request is denied because the type of the provided access token is not + * supported by the API being called. + * Example of an ErrorInfo when the request is to the Cloud Storage API with + * an unsupported token type. + * { "reason": "ACCESS_TOKEN_TYPE_UNSUPPORTED", + * "domain": "googleapis.com", + * "metadata": { + * "service": "storage.googleapis.com", + * "method": "google.storage.v1.Storage.GetObject" + * } + * } + * + * Generated from protobuf enum ACCESS_TOKEN_TYPE_UNSUPPORTED = 19; + */ + const ACCESS_TOKEN_TYPE_UNSUPPORTED = 19; + /** + * The request is denied because the request doesn't have any authentication + * credentials. For more information regarding the supported authentication + * strategies for Google Cloud APIs, see + * https://cloud.google.com/docs/authentication. + * Example of an ErrorInfo when the request is to the Cloud Storage API + * without any authentication credentials. + * { "reason": "CREDENTIALS_MISSING", + * "domain": "googleapis.com", + * "metadata": { + * "service": "storage.googleapis.com", + * "method": "google.storage.v1.Storage.GetObject" + * } + * } + * + * Generated from protobuf enum CREDENTIALS_MISSING = 20; + */ + const CREDENTIALS_MISSING = 20; + /** + * The request is denied because the provided project owning the resource + * which acts as the [API + * consumer](https://cloud.google.com/apis/design/glossary#api_consumer) is + * invalid. It may be in a bad format or empty. + * Example of an ErrorInfo when the request is to the Cloud Functions API, + * but the offered resource project in the request in a bad format which can't + * perform the ListFunctions method. + * { "reason": "RESOURCE_PROJECT_INVALID", + * "domain": "googleapis.com", + * "metadata": { + * "service": "cloudfunctions.googleapis.com", + * "method": + * "google.cloud.functions.v1.CloudFunctionsService.ListFunctions" + * } + * } + * + * Generated from protobuf enum RESOURCE_PROJECT_INVALID = 21; + */ + const RESOURCE_PROJECT_INVALID = 21; + /** + * The request is denied because the provided session cookie is missing, + * invalid or failed to decode. + * Example of an ErrorInfo when the request is calling Cloud Storage service + * with a SID cookie which can't be decoded. + * { "reason": "SESSION_COOKIE_INVALID", + * "domain": "googleapis.com", + * "metadata": { + * "service": "storage.googleapis.com", + * "method": "google.storage.v1.Storage.GetObject", + * "cookie": "SID" + * } + * } + * + * Generated from protobuf enum SESSION_COOKIE_INVALID = 23; + */ + const SESSION_COOKIE_INVALID = 23; + /** + * The request is denied because the user is from a Google Workspace customer + * that blocks their users from accessing a particular service. + * Example scenario: https://support.google.com/a/answer/9197205?hl=en + * Example of an ErrorInfo when access to Google Cloud Storage service is + * blocked by the Google Workspace administrator: + * { "reason": "USER_BLOCKED_BY_ADMIN", + * "domain": "googleapis.com", + * "metadata": { + * "service": "storage.googleapis.com", + * "method": "google.storage.v1.Storage.GetObject", + * } + * } + * + * Generated from protobuf enum USER_BLOCKED_BY_ADMIN = 24; + */ + const USER_BLOCKED_BY_ADMIN = 24; + /** + * The request is denied because the resource service usage is restricted + * by administrators according to the organization policy constraint. + * For more information see + * https://cloud.google.com/resource-manager/docs/organization-policy/restricting-services. + * Example of an ErrorInfo when access to Google Cloud Storage service is + * restricted by Resource Usage Restriction policy: + * { "reason": "RESOURCE_USAGE_RESTRICTION_VIOLATED", + * "domain": "googleapis.com", + * "metadata": { + * "consumer": "projects/project-123", + * "service": "storage.googleapis.com" + * } + * } + * + * Generated from protobuf enum RESOURCE_USAGE_RESTRICTION_VIOLATED = 25; + */ + const RESOURCE_USAGE_RESTRICTION_VIOLATED = 25; + /** + * Unimplemented. Do not use. + * The request is denied because it contains unsupported system parameters in + * URL query parameters or HTTP headers. For more information, + * see https://cloud.google.com/apis/docs/system-parameters + * Example of an ErrorInfo when access "pubsub.googleapis.com" service with + * a request header of "x-goog-user-ip": + * { "reason": "SYSTEM_PARAMETER_UNSUPPORTED", + * "domain": "googleapis.com", + * "metadata": { + * "service": "pubsub.googleapis.com" + * "parameter": "x-goog-user-ip" + * } + * } + * + * Generated from protobuf enum SYSTEM_PARAMETER_UNSUPPORTED = 26; + */ + const SYSTEM_PARAMETER_UNSUPPORTED = 26; + /** + * The request is denied because it violates Org Restriction: the requested + * resource does not belong to allowed organizations specified in + * "X-Goog-Allowed-Resources" header. + * Example of an ErrorInfo when accessing a GCP resource that is restricted by + * Org Restriction for "pubsub.googleapis.com" service. + * { + * reason: "ORG_RESTRICTION_VIOLATION" + * domain: "googleapis.com" + * metadata { + * "consumer":"projects/123456" + * "service": "pubsub.googleapis.com" + * } + * } + * + * Generated from protobuf enum ORG_RESTRICTION_VIOLATION = 27; + */ + const ORG_RESTRICTION_VIOLATION = 27; + /** + * The request is denied because "X-Goog-Allowed-Resources" header is in a bad + * format. + * Example of an ErrorInfo when + * accessing "pubsub.googleapis.com" service with an invalid + * "X-Goog-Allowed-Resources" request header. + * { + * reason: "ORG_RESTRICTION_HEADER_INVALID" + * domain: "googleapis.com" + * metadata { + * "consumer":"projects/123456" + * "service": "pubsub.googleapis.com" + * } + * } + * + * Generated from protobuf enum ORG_RESTRICTION_HEADER_INVALID = 28; + */ + const ORG_RESTRICTION_HEADER_INVALID = 28; + /** + * Unimplemented. Do not use. + * The request is calling a service that is not visible to the consumer. + * Example of an ErrorInfo when the consumer "projects/123" contacting + * "pubsub.googleapis.com" service which is not visible to the consumer. + * { "reason": "SERVICE_NOT_VISIBLE", + * "domain": "googleapis.com", + * "metadata": { + * "consumer": "projects/123", + * "service": "pubsub.googleapis.com" + * } + * } + * This response indicates the "pubsub.googleapis.com" is not visible to + * "projects/123" (or it may not exist). + * + * Generated from protobuf enum SERVICE_NOT_VISIBLE = 29; + */ + const SERVICE_NOT_VISIBLE = 29; + /** + * The request is related to a project for which GCP access is suspended. + * Example of an ErrorInfo when the consumer "projects/123" fails to contact + * "pubsub.googleapis.com" service because GCP access is suspended: + * { "reason": "GCP_SUSPENDED", + * "domain": "googleapis.com", + * "metadata": { + * "consumer": "projects/123", + * "service": "pubsub.googleapis.com" + * } + * } + * This response indicates the associated GCP account has been suspended. + * + * Generated from protobuf enum GCP_SUSPENDED = 30; + */ + const GCP_SUSPENDED = 30; + /** + * The request violates the location policies when creating resources in + * the restricted region. + * Example of an ErrorInfo when creating the Cloud Storage Bucket by + * "projects/123" for service storage.googleapis.com: + * { "reason": "LOCATION_POLICY_VIOLATED", + * "domain": "googleapis.com", + * "metadata": { + * "consumer": "projects/123", + * "service": "storage.googleapis.com", + * } + * } + * This response indicates creating the Cloud Storage Bucket in + * "locations/asia-northeast3" violates at least one location policy. + * The troubleshooting guidance is provided in the Help links. + * + * Generated from protobuf enum LOCATION_POLICY_VIOLATED = 31; + */ + const LOCATION_POLICY_VIOLATED = 31; + /** + * The request is denied because origin request header is missing. + * Example of an ErrorInfo when + * accessing "pubsub.googleapis.com" service with an empty "Origin" request + * header. + * { + * reason: "MISSING_ORIGIN" + * domain: "googleapis.com" + * metadata { + * "consumer":"projects/123456" + * "service": "pubsub.googleapis.com" + * } + * } + * + * Generated from protobuf enum MISSING_ORIGIN = 33; + */ + const MISSING_ORIGIN = 33; + /** + * The request is denied because the request contains more than one credential + * type that are individually acceptable, but not together. The customer + * should retry their request with only one set of credentials. + * Example of an ErrorInfo when + * accessing "pubsub.googleapis.com" service with overloaded credentials. + * { + * reason: "OVERLOADED_CREDENTIALS" + * domain: "googleapis.com" + * metadata { + * "consumer":"projects/123456" + * "service": "pubsub.googleapis.com" + * } + * } + * + * Generated from protobuf enum OVERLOADED_CREDENTIALS = 34; + */ + const OVERLOADED_CREDENTIALS = 34; + /** + * The request whose associated location violates the location org policy + * restrictions when creating resources in the restricted region. + * Example of an ErrorInfo when creating the Cloud Storage Bucket in the + * container "projects/123" under a restricted region + * "locations/asia-northeast3": + * { + * "reason": "LOCATION_ORG_POLICY_VIOLATED", + * "domain": "googleapis.com", + * "metadata": { + * "resource": "projects/123", + * "location": "locations/asia-northeast3" + * } + * } + * This response indicates creating the Cloud Storage Bucket in + * "locations/asia-northeast3" violates the location org policy restriction. + * + * Generated from protobuf enum LOCATION_ORG_POLICY_VIOLATED = 35; + */ + const LOCATION_ORG_POLICY_VIOLATED = 35; + /** + * The request is denied because it access data of regulated customers using + * TLS 1.0 and 1.1. + * Example of an ErrorInfo when accessing a GCP resource "projects/123" that + * is restricted by TLS Version Restriction for "pubsub.googleapis.com" + * service. + * { + * "reason": "TLS_ORG_POLICY_VIOLATED", + * "domain": "googleapis.com", + * "metadata": { + * "service": "pubsub.googleapis.com" + * "resource": "projects/123", + * "policyName": "constraints/gcp.restrictTLSVersion", + * "tlsVersion": "TLS_VERSION_1" + * } + * } + * + * Generated from protobuf enum TLS_ORG_POLICY_VIOLATED = 36; + */ + const TLS_ORG_POLICY_VIOLATED = 36; + /** + * The request is denied because the associated project has exceeded the + * emulator quota limit. + * Example of an ErrorInfo when the associated "projects/123" has exceeded the + * emulator quota limit. + * { + * "reason": "EMULATOR_QUOTA_EXCEEDED", + * "domain": "googleapis.com", + * "metadata": { + * "service": "pubsub.googleapis.com" + * "consumer": "projects/123" + * } + * } + * + * Generated from protobuf enum EMULATOR_QUOTA_EXCEEDED = 38; + */ + const EMULATOR_QUOTA_EXCEEDED = 38; + /** + * The request is denied because the associated application credential header + * is invalid for an Android applications. + * Example of an ErrorInfo when the request from an Android application to the + * "pubsub.googleapis.com" with an invalid application credential header. + * { + * "reason": "CREDENTIAL_ANDROID_APP_INVALID", + * "domain": "googleapis.com", + * "metadata": { + * "service": "pubsub.googleapis.com" + * } + * } + * + * Generated from protobuf enum CREDENTIAL_ANDROID_APP_INVALID = 39; + */ + const CREDENTIAL_ANDROID_APP_INVALID = 39; + /** + * The request is denied because IAM permission on resource is denied. + * Example of an ErrorInfo when the IAM permission `aiplatform.datasets.list` + * is denied on resource `projects/123`. + * { + * "reason": "IAM_PERMISSION_DENIED", + * "domain": "googleapis.com", + * "metadata": { + * "resource": "projects/123" + * "permission": "aiplatform.datasets.list" + * } + * } + * + * Generated from protobuf enum IAM_PERMISSION_DENIED = 41; + */ + const IAM_PERMISSION_DENIED = 41; + /** + * The request is denied because it contains the invalid JWT token. + * Example of an ErrorInfo when the request contains an invalid JWT token for + * service `storage.googleapis.com`. + * { + * "reason": "JWT_TOKEN_INVALID", + * "domain": "googleapis.com", + * "metadata": { + * "service": "storage.googleapis.com" + * } + * } + * + * Generated from protobuf enum JWT_TOKEN_INVALID = 42; + */ + const JWT_TOKEN_INVALID = 42; + /** + * The request is denied because it contains credential with type that is + * unsupported. + * Example of an ErrorInfo when the request contains an unsupported credential + * type for service `storage.googleapis.com`. + * { + * "reason": "CREDENTIAL_TYPE_UNSUPPORTED", + * "domain": "googleapis.com", + * "metadata": { + * "service": "storage.googleapis.com" + * } + * } + * + * Generated from protobuf enum CREDENTIAL_TYPE_UNSUPPORTED = 43; + */ + const CREDENTIAL_TYPE_UNSUPPORTED = 43; + /** + * The request is denied because it contains unsupported account type. + * Example of an ErrorInfo when the request contains an unsupported account + * type for service `storage.googleapis.com`. + * { + * "reason": "ACCOUNT_TYPE_UNSUPPORTED", + * "domain": "googleapis.com", + * "metadata": { + * "service": "storage.googleapis.com" + * } + * } + * + * Generated from protobuf enum ACCOUNT_TYPE_UNSUPPORTED = 44; + */ + const ACCOUNT_TYPE_UNSUPPORTED = 44; + /** + * The request is denied because the API endpoint is restricted by + * administrators according to the organization policy constraint. + * For more information see + * https://cloud.google.com/assured-workloads/docs/restrict-endpoint-usage. + * Example of an ErrorInfo when access to Google Cloud Storage service is + * restricted by Restrict Endpoint Usage policy: + * { + * "reason": "ENDPOINT_USAGE_RESTRICTION_VIOLATED", + * "domain": "googleapis.com/policies/endpointUsageRestriction", + * "metadata": { + * "policy_name": "constraints/gcp.restrictEndpointUsage", + * "checked_value": "storage.googleapis.com" + * "consumer": "organization/123" + * "service": "storage.googleapis.com" + * } + * } + * + * Generated from protobuf enum ENDPOINT_USAGE_RESTRICTION_VIOLATED = 45; + */ + const ENDPOINT_USAGE_RESTRICTION_VIOLATED = 45; + /** + * The request is denied because the TLS Cipher Suite is restricted by + * administrators according to the organization policy constraint. + * For more information see + * https://cloud.google.com/assured-workloads/docs/restrict-tls-cipher-suites + * Example of an ErrorInfo when access to Google Cloud BigQuery service is + * restricted by Restrict TLS Cipher Suites policy: + * { + * "reason": "TLS_CIPHER_RESTRICTION_VIOLATED", + * "domain": "googleapis.com/policies/tlsCipherRestriction", + * "metadata": { + * "policy_name": "constraints/gcp.restrictTLSCipherSuites", + * "checked_value": "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 + * "consumer": "organization/123" + * "service": "bigquery.googleapis.com" + * } + * } + * + * Generated from protobuf enum TLS_CIPHER_RESTRICTION_VIOLATED = 46; + */ + const TLS_CIPHER_RESTRICTION_VIOLATED = 46; + /** + * The request is denied because the MCP activation check fails. + * Example of an ErrorInfo when the container "projects/123" contacting + * "pubsub.googleapis.com" service which is disabled by MCP: + * { "reason": "MCP_SERVER_DISABLED", + * "domain": "googleapis.com", + * "metadata": { + * "consumer": "projects/123", + * "service": "pubsub.googleapis.com" + * } + * } + * This response indicates the "pubsub.googleapis.com" has been disabled in + * "projects/123" for MCP. + * + * Generated from protobuf enum MCP_SERVER_DISABLED = 47; + */ + const MCP_SERVER_DISABLED = 47; + + private static $valueToName = [ + self::ERROR_REASON_UNSPECIFIED => 'ERROR_REASON_UNSPECIFIED', + self::SERVICE_DISABLED => 'SERVICE_DISABLED', + self::BILLING_DISABLED => 'BILLING_DISABLED', + self::API_KEY_INVALID => 'API_KEY_INVALID', + self::API_KEY_SERVICE_BLOCKED => 'API_KEY_SERVICE_BLOCKED', + self::API_KEY_HTTP_REFERRER_BLOCKED => 'API_KEY_HTTP_REFERRER_BLOCKED', + self::API_KEY_IP_ADDRESS_BLOCKED => 'API_KEY_IP_ADDRESS_BLOCKED', + self::API_KEY_ANDROID_APP_BLOCKED => 'API_KEY_ANDROID_APP_BLOCKED', + self::API_KEY_IOS_APP_BLOCKED => 'API_KEY_IOS_APP_BLOCKED', + self::RATE_LIMIT_EXCEEDED => 'RATE_LIMIT_EXCEEDED', + self::RESOURCE_QUOTA_EXCEEDED => 'RESOURCE_QUOTA_EXCEEDED', + self::LOCATION_TAX_POLICY_VIOLATED => 'LOCATION_TAX_POLICY_VIOLATED', + self::USER_PROJECT_DENIED => 'USER_PROJECT_DENIED', + self::CONSUMER_SUSPENDED => 'CONSUMER_SUSPENDED', + self::CONSUMER_INVALID => 'CONSUMER_INVALID', + self::SECURITY_POLICY_VIOLATED => 'SECURITY_POLICY_VIOLATED', + self::ACCESS_TOKEN_EXPIRED => 'ACCESS_TOKEN_EXPIRED', + self::ACCESS_TOKEN_SCOPE_INSUFFICIENT => 'ACCESS_TOKEN_SCOPE_INSUFFICIENT', + self::ACCOUNT_STATE_INVALID => 'ACCOUNT_STATE_INVALID', + self::ACCESS_TOKEN_TYPE_UNSUPPORTED => 'ACCESS_TOKEN_TYPE_UNSUPPORTED', + self::CREDENTIALS_MISSING => 'CREDENTIALS_MISSING', + self::RESOURCE_PROJECT_INVALID => 'RESOURCE_PROJECT_INVALID', + self::SESSION_COOKIE_INVALID => 'SESSION_COOKIE_INVALID', + self::USER_BLOCKED_BY_ADMIN => 'USER_BLOCKED_BY_ADMIN', + self::RESOURCE_USAGE_RESTRICTION_VIOLATED => 'RESOURCE_USAGE_RESTRICTION_VIOLATED', + self::SYSTEM_PARAMETER_UNSUPPORTED => 'SYSTEM_PARAMETER_UNSUPPORTED', + self::ORG_RESTRICTION_VIOLATION => 'ORG_RESTRICTION_VIOLATION', + self::ORG_RESTRICTION_HEADER_INVALID => 'ORG_RESTRICTION_HEADER_INVALID', + self::SERVICE_NOT_VISIBLE => 'SERVICE_NOT_VISIBLE', + self::GCP_SUSPENDED => 'GCP_SUSPENDED', + self::LOCATION_POLICY_VIOLATED => 'LOCATION_POLICY_VIOLATED', + self::MISSING_ORIGIN => 'MISSING_ORIGIN', + self::OVERLOADED_CREDENTIALS => 'OVERLOADED_CREDENTIALS', + self::LOCATION_ORG_POLICY_VIOLATED => 'LOCATION_ORG_POLICY_VIOLATED', + self::TLS_ORG_POLICY_VIOLATED => 'TLS_ORG_POLICY_VIOLATED', + self::EMULATOR_QUOTA_EXCEEDED => 'EMULATOR_QUOTA_EXCEEDED', + self::CREDENTIAL_ANDROID_APP_INVALID => 'CREDENTIAL_ANDROID_APP_INVALID', + self::IAM_PERMISSION_DENIED => 'IAM_PERMISSION_DENIED', + self::JWT_TOKEN_INVALID => 'JWT_TOKEN_INVALID', + self::CREDENTIAL_TYPE_UNSUPPORTED => 'CREDENTIAL_TYPE_UNSUPPORTED', + self::ACCOUNT_TYPE_UNSUPPORTED => 'ACCOUNT_TYPE_UNSUPPORTED', + self::ENDPOINT_USAGE_RESTRICTION_VIOLATED => 'ENDPOINT_USAGE_RESTRICTION_VIOLATED', + self::TLS_CIPHER_RESTRICTION_VIOLATED => 'TLS_CIPHER_RESTRICTION_VIOLATED', + self::MCP_SERVER_DISABLED => 'MCP_SERVER_DISABLED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/FieldBehavior.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/FieldBehavior.php new file mode 100644 index 000000000000..4c57c5080055 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/FieldBehavior.php @@ -0,0 +1,133 @@ +google.api.FieldBehavior + */ +class FieldBehavior +{ + /** + * Conventional default for enums. Do not use this. + * + * Generated from protobuf enum FIELD_BEHAVIOR_UNSPECIFIED = 0; + */ + const FIELD_BEHAVIOR_UNSPECIFIED = 0; + /** + * Specifically denotes a field as optional. + * While all fields in protocol buffers are optional, this may be specified + * for emphasis if appropriate. + * + * Generated from protobuf enum OPTIONAL = 1; + */ + const OPTIONAL = 1; + /** + * Denotes a field as required. + * This indicates that the field **must** be provided as part of the request, + * and failure to do so will cause an error (usually `INVALID_ARGUMENT`). + * + * Generated from protobuf enum REQUIRED = 2; + */ + const REQUIRED = 2; + /** + * Denotes a field as output only. + * This indicates that the field is provided in responses, but including the + * field in a request does nothing (the server *must* ignore it and + * *must not* throw an error as a result of the field's presence). + * + * Generated from protobuf enum OUTPUT_ONLY = 3; + */ + const OUTPUT_ONLY = 3; + /** + * Denotes a field as input only. + * This indicates that the field is provided in requests, and the + * corresponding field is not included in output. + * + * Generated from protobuf enum INPUT_ONLY = 4; + */ + const INPUT_ONLY = 4; + /** + * Denotes a field as immutable. + * This indicates that the field may be set once in a request to create a + * resource, but may not be changed thereafter. + * + * Generated from protobuf enum IMMUTABLE = 5; + */ + const IMMUTABLE = 5; + /** + * Denotes that a (repeated) field is an unordered list. + * This indicates that the service may provide the elements of the list + * in any arbitrary order, rather than the order the user originally + * provided. Additionally, the list's order may or may not be stable. + * + * Generated from protobuf enum UNORDERED_LIST = 6; + */ + const UNORDERED_LIST = 6; + /** + * Denotes that this field returns a non-empty default value if not set. + * This indicates that if the user provides the empty value in a request, + * a non-empty value will be returned. The user will not be aware of what + * non-empty value to expect. + * + * Generated from protobuf enum NON_EMPTY_DEFAULT = 7; + */ + const NON_EMPTY_DEFAULT = 7; + /** + * Denotes that the field in a resource (a message annotated with + * google.api.resource) is used in the resource name to uniquely identify the + * resource. For AIP-compliant APIs, this should only be applied to the + * `name` field on the resource. + * This behavior should not be applied to references to other resources within + * the message. + * The identifier field of resources often have different field behavior + * depending on the request it is embedded in (e.g. for Create methods name + * is optional and unused, while for Update methods it is required). Instead + * of method-specific annotations, only `IDENTIFIER` is required. + * + * Generated from protobuf enum IDENTIFIER = 8; + */ + const IDENTIFIER = 8; + + private static $valueToName = [ + self::FIELD_BEHAVIOR_UNSPECIFIED => 'FIELD_BEHAVIOR_UNSPECIFIED', + self::OPTIONAL => 'OPTIONAL', + self::REQUIRED => 'REQUIRED', + self::OUTPUT_ONLY => 'OUTPUT_ONLY', + self::INPUT_ONLY => 'INPUT_ONLY', + self::IMMUTABLE => 'IMMUTABLE', + self::UNORDERED_LIST => 'UNORDERED_LIST', + self::NON_EMPTY_DEFAULT => 'NON_EMPTY_DEFAULT', + self::IDENTIFIER => 'IDENTIFIER', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/FieldInfo.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/FieldInfo.php new file mode 100644 index 000000000000..71cf35a1027a --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/FieldInfo.php @@ -0,0 +1,117 @@ +google.api.FieldInfo + */ +class FieldInfo extends \Google\Protobuf\Internal\Message +{ + /** + * The standard format of a field value. This does not explicitly configure + * any API consumer, just documents the API's format for the field it is + * applied to. + * + * Generated from protobuf field .google.api.FieldInfo.Format format = 1; + */ + protected $format = 0; + /** + * The type(s) that the annotated, generic field may represent. + * Currently, this must only be used on fields of type `google.protobuf.Any`. + * Supporting other generic types may be considered in the future. + * + * Generated from protobuf field repeated .google.api.TypeReference referenced_types = 2; + */ + private $referenced_types; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $format + * The standard format of a field value. This does not explicitly configure + * any API consumer, just documents the API's format for the field it is + * applied to. + * @type \Google\Api\TypeReference[] $referenced_types + * The type(s) that the annotated, generic field may represent. + * Currently, this must only be used on fields of type `google.protobuf.Any`. + * Supporting other generic types may be considered in the future. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\FieldInfo::initOnce(); + parent::__construct($data); + } + + /** + * The standard format of a field value. This does not explicitly configure + * any API consumer, just documents the API's format for the field it is + * applied to. + * + * Generated from protobuf field .google.api.FieldInfo.Format format = 1; + * @return int + */ + public function getFormat() + { + return $this->format; + } + + /** + * The standard format of a field value. This does not explicitly configure + * any API consumer, just documents the API's format for the field it is + * applied to. + * + * Generated from protobuf field .google.api.FieldInfo.Format format = 1; + * @param int $var + * @return $this + */ + public function setFormat($var) + { + GPBUtil::checkEnum($var, \Google\Api\FieldInfo\Format::class); + $this->format = $var; + + return $this; + } + + /** + * The type(s) that the annotated, generic field may represent. + * Currently, this must only be used on fields of type `google.protobuf.Any`. + * Supporting other generic types may be considered in the future. + * + * Generated from protobuf field repeated .google.api.TypeReference referenced_types = 2; + * @return RepeatedField<\Google\Api\TypeReference> + */ + public function getReferencedTypes() + { + return $this->referenced_types; + } + + /** + * The type(s) that the annotated, generic field may represent. + * Currently, this must only be used on fields of type `google.protobuf.Any`. + * Supporting other generic types may be considered in the future. + * + * Generated from protobuf field repeated .google.api.TypeReference referenced_types = 2; + * @param \Google\Api\TypeReference[] $var + * @return $this + */ + public function setReferencedTypes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\TypeReference::class); + $this->referenced_types = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/FieldInfo/Format.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/FieldInfo/Format.php new file mode 100644 index 000000000000..88fc61c69d22 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/FieldInfo/Format.php @@ -0,0 +1,89 @@ +google.api.FieldInfo.Format + */ +class Format +{ + /** + * Default, unspecified value. + * + * Generated from protobuf enum FORMAT_UNSPECIFIED = 0; + */ + const FORMAT_UNSPECIFIED = 0; + /** + * Universally Unique Identifier, version 4, value as defined by + * https://datatracker.ietf.org/doc/html/rfc4122. The value may be + * normalized to entirely lowercase letters. For example, the value + * `F47AC10B-58CC-0372-8567-0E02B2C3D479` would be normalized to + * `f47ac10b-58cc-0372-8567-0e02b2c3d479`. + * + * Generated from protobuf enum UUID4 = 1; + */ + const UUID4 = 1; + /** + * Internet Protocol v4 value as defined by [RFC + * 791](https://datatracker.ietf.org/doc/html/rfc791). The value may be + * condensed, with leading zeros in each octet stripped. For example, + * `001.022.233.040` would be condensed to `1.22.233.40`. + * + * Generated from protobuf enum IPV4 = 2; + */ + const IPV4 = 2; + /** + * Internet Protocol v6 value as defined by [RFC + * 2460](https://datatracker.ietf.org/doc/html/rfc2460). The value may be + * normalized to entirely lowercase letters with zeros compressed, following + * [RFC 5952](https://datatracker.ietf.org/doc/html/rfc5952). For example, + * the value `2001:0DB8:0::0` would be normalized to `2001:db8::`. + * + * Generated from protobuf enum IPV6 = 3; + */ + const IPV6 = 3; + /** + * An IP address in either v4 or v6 format as described by the individual + * values defined herein. See the comments on the IPV4 and IPV6 types for + * allowed normalizations of each. + * + * Generated from protobuf enum IPV4_OR_IPV6 = 4; + */ + const IPV4_OR_IPV6 = 4; + + private static $valueToName = [ + self::FORMAT_UNSPECIFIED => 'FORMAT_UNSPECIFIED', + self::UUID4 => 'UUID4', + self::IPV4 => 'IPV4', + self::IPV6 => 'IPV6', + self::IPV4_OR_IPV6 => 'IPV4_OR_IPV6', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/FieldPolicy.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/FieldPolicy.php new file mode 100644 index 000000000000..3600a2de91b8 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/FieldPolicy.php @@ -0,0 +1,181 @@ +google.api.FieldPolicy + */ +class FieldPolicy extends \Google\Protobuf\Internal\Message +{ + /** + * Selects one or more request or response message fields to apply this + * `FieldPolicy`. + * When a `FieldPolicy` is used in proto annotation, the selector must + * be left as empty. The service config generator will automatically fill + * the correct value. + * When a `FieldPolicy` is used in service config, the selector must be a + * comma-separated string with valid request or response field paths, + * such as "foo.bar" or "foo.bar,foo.baz". + * + * Generated from protobuf field string selector = 1; + */ + protected $selector = ''; + /** + * Specifies the required permission(s) for the resource referred to by the + * field. It requires the field contains a valid resource reference, and + * the request must pass the permission checks to proceed. For example, + * "resourcemanager.projects.get". + * + * Generated from protobuf field string resource_permission = 2; + */ + protected $resource_permission = ''; + /** + * Specifies the resource type for the resource referred to by the field. + * + * Generated from protobuf field string resource_type = 3; + */ + protected $resource_type = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $selector + * Selects one or more request or response message fields to apply this + * `FieldPolicy`. + * When a `FieldPolicy` is used in proto annotation, the selector must + * be left as empty. The service config generator will automatically fill + * the correct value. + * When a `FieldPolicy` is used in service config, the selector must be a + * comma-separated string with valid request or response field paths, + * such as "foo.bar" or "foo.bar,foo.baz". + * @type string $resource_permission + * Specifies the required permission(s) for the resource referred to by the + * field. It requires the field contains a valid resource reference, and + * the request must pass the permission checks to proceed. For example, + * "resourcemanager.projects.get". + * @type string $resource_type + * Specifies the resource type for the resource referred to by the field. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Policy::initOnce(); + parent::__construct($data); + } + + /** + * Selects one or more request or response message fields to apply this + * `FieldPolicy`. + * When a `FieldPolicy` is used in proto annotation, the selector must + * be left as empty. The service config generator will automatically fill + * the correct value. + * When a `FieldPolicy` is used in service config, the selector must be a + * comma-separated string with valid request or response field paths, + * such as "foo.bar" or "foo.bar,foo.baz". + * + * Generated from protobuf field string selector = 1; + * @return string + */ + public function getSelector() + { + return $this->selector; + } + + /** + * Selects one or more request or response message fields to apply this + * `FieldPolicy`. + * When a `FieldPolicy` is used in proto annotation, the selector must + * be left as empty. The service config generator will automatically fill + * the correct value. + * When a `FieldPolicy` is used in service config, the selector must be a + * comma-separated string with valid request or response field paths, + * such as "foo.bar" or "foo.bar,foo.baz". + * + * Generated from protobuf field string selector = 1; + * @param string $var + * @return $this + */ + public function setSelector($var) + { + GPBUtil::checkString($var, True); + $this->selector = $var; + + return $this; + } + + /** + * Specifies the required permission(s) for the resource referred to by the + * field. It requires the field contains a valid resource reference, and + * the request must pass the permission checks to proceed. For example, + * "resourcemanager.projects.get". + * + * Generated from protobuf field string resource_permission = 2; + * @return string + */ + public function getResourcePermission() + { + return $this->resource_permission; + } + + /** + * Specifies the required permission(s) for the resource referred to by the + * field. It requires the field contains a valid resource reference, and + * the request must pass the permission checks to proceed. For example, + * "resourcemanager.projects.get". + * + * Generated from protobuf field string resource_permission = 2; + * @param string $var + * @return $this + */ + public function setResourcePermission($var) + { + GPBUtil::checkString($var, True); + $this->resource_permission = $var; + + return $this; + } + + /** + * Specifies the resource type for the resource referred to by the field. + * + * Generated from protobuf field string resource_type = 3; + * @return string + */ + public function getResourceType() + { + return $this->resource_type; + } + + /** + * Specifies the resource type for the resource referred to by the field. + * + * Generated from protobuf field string resource_type = 3; + * @param string $var + * @return $this + */ + public function setResourceType($var) + { + GPBUtil::checkString($var, True); + $this->resource_type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/FlowControlLimitExceededBehaviorProto.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/FlowControlLimitExceededBehaviorProto.php new file mode 100644 index 000000000000..a1457d9f7e47 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/FlowControlLimitExceededBehaviorProto.php @@ -0,0 +1,68 @@ +google.api.FlowControlLimitExceededBehaviorProto + */ +class FlowControlLimitExceededBehaviorProto +{ + /** + * Default behavior, system-defined. + * + * Generated from protobuf enum UNSET_BEHAVIOR = 0; + */ + const UNSET_BEHAVIOR = 0; + /** + * Stop operation, raise error. + * + * Generated from protobuf enum THROW_EXCEPTION = 1; + */ + const THROW_EXCEPTION = 1; + /** + * Pause operation until limit clears. + * + * Generated from protobuf enum BLOCK = 2; + */ + const BLOCK = 2; + /** + * Continue operation, disregard limit. + * + * Generated from protobuf enum IGNORE = 3; + */ + const IGNORE = 3; + + private static $valueToName = [ + self::UNSET_BEHAVIOR => 'UNSET_BEHAVIOR', + self::THROW_EXCEPTION => 'THROW_EXCEPTION', + self::BLOCK => 'BLOCK', + self::IGNORE => 'IGNORE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/GoSettings.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/GoSettings.php new file mode 100644 index 000000000000..2a406b74d478 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/GoSettings.php @@ -0,0 +1,139 @@ +google.api.GoSettings + */ +class GoSettings extends \Google\Protobuf\Internal\Message +{ + /** + * Some settings. + * + * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; + */ + protected $common = null; + /** + * Map of service names to renamed services. Keys are the package relative + * service names and values are the name to be used for the service client + * and call options. + * Example: + * publishing: + * go_settings: + * renamed_services: + * Publisher: TopicAdmin + * + * Generated from protobuf field map renamed_services = 2; + */ + private $renamed_services; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Api\CommonLanguageSettings $common + * Some settings. + * @type array|\Google\Protobuf\Internal\MapField $renamed_services + * Map of service names to renamed services. Keys are the package relative + * service names and values are the name to be used for the service client + * and call options. + * Example: + * publishing: + * go_settings: + * renamed_services: + * Publisher: TopicAdmin + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Client::initOnce(); + parent::__construct($data); + } + + /** + * Some settings. + * + * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; + * @return \Google\Api\CommonLanguageSettings|null + */ + public function getCommon() + { + return $this->common; + } + + public function hasCommon() + { + return isset($this->common); + } + + public function clearCommon() + { + unset($this->common); + } + + /** + * Some settings. + * + * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; + * @param \Google\Api\CommonLanguageSettings $var + * @return $this + */ + public function setCommon($var) + { + GPBUtil::checkMessage($var, \Google\Api\CommonLanguageSettings::class); + $this->common = $var; + + return $this; + } + + /** + * Map of service names to renamed services. Keys are the package relative + * service names and values are the name to be used for the service client + * and call options. + * Example: + * publishing: + * go_settings: + * renamed_services: + * Publisher: TopicAdmin + * + * Generated from protobuf field map renamed_services = 2; + * @return \Google\Protobuf\Internal\MapField + */ + public function getRenamedServices() + { + return $this->renamed_services; + } + + /** + * Map of service names to renamed services. Keys are the package relative + * service names and values are the name to be used for the service client + * and call options. + * Example: + * publishing: + * go_settings: + * renamed_services: + * Publisher: TopicAdmin + * + * Generated from protobuf field map renamed_services = 2; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setRenamedServices($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->renamed_services = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Http.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Http.php new file mode 100644 index 000000000000..2f7542b434f6 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Http.php @@ -0,0 +1,123 @@ +google.api.Http + */ +class Http extends \Google\Protobuf\Internal\Message +{ + /** + * A list of HTTP configuration rules that apply to individual API methods. + * **NOTE:** All service configuration rules follow "last one wins" order. + * + * Generated from protobuf field repeated .google.api.HttpRule rules = 1; + */ + private $rules; + /** + * When set to true, URL path parameters will be fully URI-decoded except in + * cases of single segment matches in reserved expansion, where "%2F" will be + * left encoded. + * The default behavior is to not decode RFC 6570 reserved characters in multi + * segment matches. + * + * Generated from protobuf field bool fully_decode_reserved_expansion = 2; + */ + protected $fully_decode_reserved_expansion = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Api\HttpRule[] $rules + * A list of HTTP configuration rules that apply to individual API methods. + * **NOTE:** All service configuration rules follow "last one wins" order. + * @type bool $fully_decode_reserved_expansion + * When set to true, URL path parameters will be fully URI-decoded except in + * cases of single segment matches in reserved expansion, where "%2F" will be + * left encoded. + * The default behavior is to not decode RFC 6570 reserved characters in multi + * segment matches. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Http::initOnce(); + parent::__construct($data); + } + + /** + * A list of HTTP configuration rules that apply to individual API methods. + * **NOTE:** All service configuration rules follow "last one wins" order. + * + * Generated from protobuf field repeated .google.api.HttpRule rules = 1; + * @return RepeatedField<\Google\Api\HttpRule> + */ + public function getRules() + { + return $this->rules; + } + + /** + * A list of HTTP configuration rules that apply to individual API methods. + * **NOTE:** All service configuration rules follow "last one wins" order. + * + * Generated from protobuf field repeated .google.api.HttpRule rules = 1; + * @param \Google\Api\HttpRule[] $var + * @return $this + */ + public function setRules($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\HttpRule::class); + $this->rules = $arr; + + return $this; + } + + /** + * When set to true, URL path parameters will be fully URI-decoded except in + * cases of single segment matches in reserved expansion, where "%2F" will be + * left encoded. + * The default behavior is to not decode RFC 6570 reserved characters in multi + * segment matches. + * + * Generated from protobuf field bool fully_decode_reserved_expansion = 2; + * @return bool + */ + public function getFullyDecodeReservedExpansion() + { + return $this->fully_decode_reserved_expansion; + } + + /** + * When set to true, URL path parameters will be fully URI-decoded except in + * cases of single segment matches in reserved expansion, where "%2F" will be + * left encoded. + * The default behavior is to not decode RFC 6570 reserved characters in multi + * segment matches. + * + * Generated from protobuf field bool fully_decode_reserved_expansion = 2; + * @param bool $var + * @return $this + */ + public function setFullyDecodeReservedExpansion($var) + { + GPBUtil::checkBool($var); + $this->fully_decode_reserved_expansion = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/HttpBody.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/HttpBody.php new file mode 100644 index 000000000000..36b78af6f17f --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/HttpBody.php @@ -0,0 +1,168 @@ +google.api.HttpBody + */ +class HttpBody extends \Google\Protobuf\Internal\Message +{ + /** + * The HTTP Content-Type header value specifying the content type of the body. + * + * Generated from protobuf field string content_type = 1; + */ + protected $content_type = ''; + /** + * The HTTP request/response body as raw binary. + * + * Generated from protobuf field bytes data = 2; + */ + protected $data = ''; + /** + * Application specific response metadata. Must be set in the first response + * for streaming APIs. + * + * Generated from protobuf field repeated .google.protobuf.Any extensions = 3; + */ + private $extensions; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $content_type + * The HTTP Content-Type header value specifying the content type of the body. + * @type string $data + * The HTTP request/response body as raw binary. + * @type \Google\Protobuf\Any[] $extensions + * Application specific response metadata. Must be set in the first response + * for streaming APIs. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Httpbody::initOnce(); + parent::__construct($data); + } + + /** + * The HTTP Content-Type header value specifying the content type of the body. + * + * Generated from protobuf field string content_type = 1; + * @return string + */ + public function getContentType() + { + return $this->content_type; + } + + /** + * The HTTP Content-Type header value specifying the content type of the body. + * + * Generated from protobuf field string content_type = 1; + * @param string $var + * @return $this + */ + public function setContentType($var) + { + GPBUtil::checkString($var, True); + $this->content_type = $var; + + return $this; + } + + /** + * The HTTP request/response body as raw binary. + * + * Generated from protobuf field bytes data = 2; + * @return string + */ + public function getData() + { + return $this->data; + } + + /** + * The HTTP request/response body as raw binary. + * + * Generated from protobuf field bytes data = 2; + * @param string $var + * @return $this + */ + public function setData($var) + { + GPBUtil::checkString($var, False); + $this->data = $var; + + return $this; + } + + /** + * Application specific response metadata. Must be set in the first response + * for streaming APIs. + * + * Generated from protobuf field repeated .google.protobuf.Any extensions = 3; + * @return RepeatedField<\Google\Protobuf\Any> + */ + public function getExtensions() + { + return $this->extensions; + } + + /** + * Application specific response metadata. Must be set in the first response + * for streaming APIs. + * + * Generated from protobuf field repeated .google.protobuf.Any extensions = 3; + * @param \Google\Protobuf\Any[] $var + * @return $this + */ + public function setExtensions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Any::class); + $this->extensions = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/HttpRule.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/HttpRule.php new file mode 100644 index 000000000000..c7cf45ce1476 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/HttpRule.php @@ -0,0 +1,651 @@ +google.api.HttpRule + */ +class HttpRule extends \Google\Protobuf\Internal\Message +{ + /** + * Selects a method to which this rule applies. + * Refer to [selector][google.api.DocumentationRule.selector] for syntax + * details. + * + * Generated from protobuf field string selector = 1; + */ + protected $selector = ''; + /** + * The name of the request field whose value is mapped to the HTTP request + * body, or `*` for mapping all request fields not captured by the path + * pattern to the HTTP body, or omitted for not having any HTTP request body. + * NOTE: the referred field must be present at the top-level of the request + * message type. + * + * Generated from protobuf field string body = 7; + */ + protected $body = ''; + /** + * Optional. The name of the response field whose value is mapped to the HTTP + * response body. When omitted, the entire response message will be used + * as the HTTP response body. + * NOTE: The referred field must be present at the top-level of the response + * message type. + * + * Generated from protobuf field string response_body = 12; + */ + protected $response_body = ''; + /** + * Additional HTTP bindings for the selector. Nested bindings must + * not contain an `additional_bindings` field themselves (that is, + * the nesting may only be one level deep). + * + * Generated from protobuf field repeated .google.api.HttpRule additional_bindings = 11; + */ + private $additional_bindings; + protected $pattern; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $selector + * Selects a method to which this rule applies. + * Refer to [selector][google.api.DocumentationRule.selector] for syntax + * details. + * @type string $get + * Maps to HTTP GET. Used for listing and getting information about + * resources. + * @type string $put + * Maps to HTTP PUT. Used for replacing a resource. + * @type string $post + * Maps to HTTP POST. Used for creating a resource or performing an action. + * @type string $delete + * Maps to HTTP DELETE. Used for deleting a resource. + * @type string $patch + * Maps to HTTP PATCH. Used for updating a resource. + * @type \Google\Api\CustomHttpPattern $custom + * The custom pattern is used for specifying an HTTP method that is not + * included in the `pattern` field, such as HEAD, or "*" to leave the + * HTTP method unspecified for this rule. The wild-card rule is useful + * for services that provide content to Web (HTML) clients. + * @type string $body + * The name of the request field whose value is mapped to the HTTP request + * body, or `*` for mapping all request fields not captured by the path + * pattern to the HTTP body, or omitted for not having any HTTP request body. + * NOTE: the referred field must be present at the top-level of the request + * message type. + * @type string $response_body + * Optional. The name of the response field whose value is mapped to the HTTP + * response body. When omitted, the entire response message will be used + * as the HTTP response body. + * NOTE: The referred field must be present at the top-level of the response + * message type. + * @type \Google\Api\HttpRule[] $additional_bindings + * Additional HTTP bindings for the selector. Nested bindings must + * not contain an `additional_bindings` field themselves (that is, + * the nesting may only be one level deep). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Http::initOnce(); + parent::__construct($data); + } + + /** + * Selects a method to which this rule applies. + * Refer to [selector][google.api.DocumentationRule.selector] for syntax + * details. + * + * Generated from protobuf field string selector = 1; + * @return string + */ + public function getSelector() + { + return $this->selector; + } + + /** + * Selects a method to which this rule applies. + * Refer to [selector][google.api.DocumentationRule.selector] for syntax + * details. + * + * Generated from protobuf field string selector = 1; + * @param string $var + * @return $this + */ + public function setSelector($var) + { + GPBUtil::checkString($var, True); + $this->selector = $var; + + return $this; + } + + /** + * Maps to HTTP GET. Used for listing and getting information about + * resources. + * + * Generated from protobuf field string get = 2; + * @return string + */ + public function getGet() + { + return $this->readOneof(2); + } + + public function hasGet() + { + return $this->hasOneof(2); + } + + /** + * Maps to HTTP GET. Used for listing and getting information about + * resources. + * + * Generated from protobuf field string get = 2; + * @param string $var + * @return $this + */ + public function setGet($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Maps to HTTP PUT. Used for replacing a resource. + * + * Generated from protobuf field string put = 3; + * @return string + */ + public function getPut() + { + return $this->readOneof(3); + } + + public function hasPut() + { + return $this->hasOneof(3); + } + + /** + * Maps to HTTP PUT. Used for replacing a resource. + * + * Generated from protobuf field string put = 3; + * @param string $var + * @return $this + */ + public function setPut($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Maps to HTTP POST. Used for creating a resource or performing an action. + * + * Generated from protobuf field string post = 4; + * @return string + */ + public function getPost() + { + return $this->readOneof(4); + } + + public function hasPost() + { + return $this->hasOneof(4); + } + + /** + * Maps to HTTP POST. Used for creating a resource or performing an action. + * + * Generated from protobuf field string post = 4; + * @param string $var + * @return $this + */ + public function setPost($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * Maps to HTTP DELETE. Used for deleting a resource. + * + * Generated from protobuf field string delete = 5; + * @return string + */ + public function getDelete() + { + return $this->readOneof(5); + } + + public function hasDelete() + { + return $this->hasOneof(5); + } + + /** + * Maps to HTTP DELETE. Used for deleting a resource. + * + * Generated from protobuf field string delete = 5; + * @param string $var + * @return $this + */ + public function setDelete($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(5, $var); + + return $this; + } + + /** + * Maps to HTTP PATCH. Used for updating a resource. + * + * Generated from protobuf field string patch = 6; + * @return string + */ + public function getPatch() + { + return $this->readOneof(6); + } + + public function hasPatch() + { + return $this->hasOneof(6); + } + + /** + * Maps to HTTP PATCH. Used for updating a resource. + * + * Generated from protobuf field string patch = 6; + * @param string $var + * @return $this + */ + public function setPatch($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(6, $var); + + return $this; + } + + /** + * The custom pattern is used for specifying an HTTP method that is not + * included in the `pattern` field, such as HEAD, or "*" to leave the + * HTTP method unspecified for this rule. The wild-card rule is useful + * for services that provide content to Web (HTML) clients. + * + * Generated from protobuf field .google.api.CustomHttpPattern custom = 8; + * @return \Google\Api\CustomHttpPattern|null + */ + public function getCustom() + { + return $this->readOneof(8); + } + + public function hasCustom() + { + return $this->hasOneof(8); + } + + /** + * The custom pattern is used for specifying an HTTP method that is not + * included in the `pattern` field, such as HEAD, or "*" to leave the + * HTTP method unspecified for this rule. The wild-card rule is useful + * for services that provide content to Web (HTML) clients. + * + * Generated from protobuf field .google.api.CustomHttpPattern custom = 8; + * @param \Google\Api\CustomHttpPattern $var + * @return $this + */ + public function setCustom($var) + { + GPBUtil::checkMessage($var, \Google\Api\CustomHttpPattern::class); + $this->writeOneof(8, $var); + + return $this; + } + + /** + * The name of the request field whose value is mapped to the HTTP request + * body, or `*` for mapping all request fields not captured by the path + * pattern to the HTTP body, or omitted for not having any HTTP request body. + * NOTE: the referred field must be present at the top-level of the request + * message type. + * + * Generated from protobuf field string body = 7; + * @return string + */ + public function getBody() + { + return $this->body; + } + + /** + * The name of the request field whose value is mapped to the HTTP request + * body, or `*` for mapping all request fields not captured by the path + * pattern to the HTTP body, or omitted for not having any HTTP request body. + * NOTE: the referred field must be present at the top-level of the request + * message type. + * + * Generated from protobuf field string body = 7; + * @param string $var + * @return $this + */ + public function setBody($var) + { + GPBUtil::checkString($var, True); + $this->body = $var; + + return $this; + } + + /** + * Optional. The name of the response field whose value is mapped to the HTTP + * response body. When omitted, the entire response message will be used + * as the HTTP response body. + * NOTE: The referred field must be present at the top-level of the response + * message type. + * + * Generated from protobuf field string response_body = 12; + * @return string + */ + public function getResponseBody() + { + return $this->response_body; + } + + /** + * Optional. The name of the response field whose value is mapped to the HTTP + * response body. When omitted, the entire response message will be used + * as the HTTP response body. + * NOTE: The referred field must be present at the top-level of the response + * message type. + * + * Generated from protobuf field string response_body = 12; + * @param string $var + * @return $this + */ + public function setResponseBody($var) + { + GPBUtil::checkString($var, True); + $this->response_body = $var; + + return $this; + } + + /** + * Additional HTTP bindings for the selector. Nested bindings must + * not contain an `additional_bindings` field themselves (that is, + * the nesting may only be one level deep). + * + * Generated from protobuf field repeated .google.api.HttpRule additional_bindings = 11; + * @return RepeatedField<\Google\Api\HttpRule> + */ + public function getAdditionalBindings() + { + return $this->additional_bindings; + } + + /** + * Additional HTTP bindings for the selector. Nested bindings must + * not contain an `additional_bindings` field themselves (that is, + * the nesting may only be one level deep). + * + * Generated from protobuf field repeated .google.api.HttpRule additional_bindings = 11; + * @param \Google\Api\HttpRule[] $var + * @return $this + */ + public function setAdditionalBindings($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\HttpRule::class); + $this->additional_bindings = $arr; + + return $this; + } + + /** + * @return string + */ + public function getPattern() + { + return $this->whichOneof("pattern"); + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/JavaSettings.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/JavaSettings.php new file mode 100644 index 000000000000..7b05e0750051 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/JavaSettings.php @@ -0,0 +1,225 @@ +google.api.JavaSettings + */ +class JavaSettings extends \Google\Protobuf\Internal\Message +{ + /** + * The package name to use in Java. Clobbers the java_package option + * set in the protobuf. This should be used **only** by APIs + * who have already set the language_settings.java.package_name" field + * in gapic.yaml. API teams should use the protobuf java_package option + * where possible. + * Example of a YAML configuration:: + * publishing: + * library_settings: + * java_settings: + * library_package: com.google.cloud.pubsub.v1 + * + * Generated from protobuf field string library_package = 1; + */ + protected $library_package = ''; + /** + * Configure the Java class name to use instead of the service's for its + * corresponding generated GAPIC client. Keys are fully-qualified + * service names as they appear in the protobuf (including the full + * the language_settings.java.interface_names" field in gapic.yaml. API + * teams should otherwise use the service name as it appears in the + * protobuf. + * Example of a YAML configuration:: + * publishing: + * java_settings: + * service_class_names: + * - google.pubsub.v1.Publisher: TopicAdmin + * - google.pubsub.v1.Subscriber: SubscriptionAdmin + * + * Generated from protobuf field map service_class_names = 2; + */ + private $service_class_names; + /** + * Some settings. + * + * Generated from protobuf field .google.api.CommonLanguageSettings common = 3; + */ + protected $common = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $library_package + * The package name to use in Java. Clobbers the java_package option + * set in the protobuf. This should be used **only** by APIs + * who have already set the language_settings.java.package_name" field + * in gapic.yaml. API teams should use the protobuf java_package option + * where possible. + * Example of a YAML configuration:: + * publishing: + * library_settings: + * java_settings: + * library_package: com.google.cloud.pubsub.v1 + * @type array|\Google\Protobuf\Internal\MapField $service_class_names + * Configure the Java class name to use instead of the service's for its + * corresponding generated GAPIC client. Keys are fully-qualified + * service names as they appear in the protobuf (including the full + * the language_settings.java.interface_names" field in gapic.yaml. API + * teams should otherwise use the service name as it appears in the + * protobuf. + * Example of a YAML configuration:: + * publishing: + * java_settings: + * service_class_names: + * - google.pubsub.v1.Publisher: TopicAdmin + * - google.pubsub.v1.Subscriber: SubscriptionAdmin + * @type \Google\Api\CommonLanguageSettings $common + * Some settings. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Client::initOnce(); + parent::__construct($data); + } + + /** + * The package name to use in Java. Clobbers the java_package option + * set in the protobuf. This should be used **only** by APIs + * who have already set the language_settings.java.package_name" field + * in gapic.yaml. API teams should use the protobuf java_package option + * where possible. + * Example of a YAML configuration:: + * publishing: + * library_settings: + * java_settings: + * library_package: com.google.cloud.pubsub.v1 + * + * Generated from protobuf field string library_package = 1; + * @return string + */ + public function getLibraryPackage() + { + return $this->library_package; + } + + /** + * The package name to use in Java. Clobbers the java_package option + * set in the protobuf. This should be used **only** by APIs + * who have already set the language_settings.java.package_name" field + * in gapic.yaml. API teams should use the protobuf java_package option + * where possible. + * Example of a YAML configuration:: + * publishing: + * library_settings: + * java_settings: + * library_package: com.google.cloud.pubsub.v1 + * + * Generated from protobuf field string library_package = 1; + * @param string $var + * @return $this + */ + public function setLibraryPackage($var) + { + GPBUtil::checkString($var, True); + $this->library_package = $var; + + return $this; + } + + /** + * Configure the Java class name to use instead of the service's for its + * corresponding generated GAPIC client. Keys are fully-qualified + * service names as they appear in the protobuf (including the full + * the language_settings.java.interface_names" field in gapic.yaml. API + * teams should otherwise use the service name as it appears in the + * protobuf. + * Example of a YAML configuration:: + * publishing: + * java_settings: + * service_class_names: + * - google.pubsub.v1.Publisher: TopicAdmin + * - google.pubsub.v1.Subscriber: SubscriptionAdmin + * + * Generated from protobuf field map service_class_names = 2; + * @return \Google\Protobuf\Internal\MapField + */ + public function getServiceClassNames() + { + return $this->service_class_names; + } + + /** + * Configure the Java class name to use instead of the service's for its + * corresponding generated GAPIC client. Keys are fully-qualified + * service names as they appear in the protobuf (including the full + * the language_settings.java.interface_names" field in gapic.yaml. API + * teams should otherwise use the service name as it appears in the + * protobuf. + * Example of a YAML configuration:: + * publishing: + * java_settings: + * service_class_names: + * - google.pubsub.v1.Publisher: TopicAdmin + * - google.pubsub.v1.Subscriber: SubscriptionAdmin + * + * Generated from protobuf field map service_class_names = 2; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setServiceClassNames($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->service_class_names = $arr; + + return $this; + } + + /** + * Some settings. + * + * Generated from protobuf field .google.api.CommonLanguageSettings common = 3; + * @return \Google\Api\CommonLanguageSettings|null + */ + public function getCommon() + { + return $this->common; + } + + public function hasCommon() + { + return isset($this->common); + } + + public function clearCommon() + { + unset($this->common); + } + + /** + * Some settings. + * + * Generated from protobuf field .google.api.CommonLanguageSettings common = 3; + * @param \Google\Api\CommonLanguageSettings $var + * @return $this + */ + public function setCommon($var) + { + GPBUtil::checkMessage($var, \Google\Api\CommonLanguageSettings::class); + $this->common = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/JwtLocation.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/JwtLocation.php new file mode 100644 index 000000000000..9bd8ac73cc48 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/JwtLocation.php @@ -0,0 +1,199 @@ +google.api.JwtLocation + */ +class JwtLocation extends \Google\Protobuf\Internal\Message +{ + /** + * The value prefix. The value format is "value_prefix{token}" + * Only applies to "in" header type. Must be empty for "in" query type. + * If not empty, the header value has to match (case sensitive) this prefix. + * If not matched, JWT will not be extracted. If matched, JWT will be + * extracted after the prefix is removed. + * For example, for "Authorization: Bearer {JWT}", + * value_prefix="Bearer " with a space at the end. + * + * Generated from protobuf field string value_prefix = 3; + */ + protected $value_prefix = ''; + protected $in; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $header + * Specifies HTTP header name to extract JWT token. + * @type string $query + * Specifies URL query parameter name to extract JWT token. + * @type string $cookie + * Specifies cookie name to extract JWT token. + * @type string $value_prefix + * The value prefix. The value format is "value_prefix{token}" + * Only applies to "in" header type. Must be empty for "in" query type. + * If not empty, the header value has to match (case sensitive) this prefix. + * If not matched, JWT will not be extracted. If matched, JWT will be + * extracted after the prefix is removed. + * For example, for "Authorization: Bearer {JWT}", + * value_prefix="Bearer " with a space at the end. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Auth::initOnce(); + parent::__construct($data); + } + + /** + * Specifies HTTP header name to extract JWT token. + * + * Generated from protobuf field string header = 1; + * @return string + */ + public function getHeader() + { + return $this->readOneof(1); + } + + public function hasHeader() + { + return $this->hasOneof(1); + } + + /** + * Specifies HTTP header name to extract JWT token. + * + * Generated from protobuf field string header = 1; + * @param string $var + * @return $this + */ + public function setHeader($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * Specifies URL query parameter name to extract JWT token. + * + * Generated from protobuf field string query = 2; + * @return string + */ + public function getQuery() + { + return $this->readOneof(2); + } + + public function hasQuery() + { + return $this->hasOneof(2); + } + + /** + * Specifies URL query parameter name to extract JWT token. + * + * Generated from protobuf field string query = 2; + * @param string $var + * @return $this + */ + public function setQuery($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Specifies cookie name to extract JWT token. + * + * Generated from protobuf field string cookie = 4; + * @return string + */ + public function getCookie() + { + return $this->readOneof(4); + } + + public function hasCookie() + { + return $this->hasOneof(4); + } + + /** + * Specifies cookie name to extract JWT token. + * + * Generated from protobuf field string cookie = 4; + * @param string $var + * @return $this + */ + public function setCookie($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * The value prefix. The value format is "value_prefix{token}" + * Only applies to "in" header type. Must be empty for "in" query type. + * If not empty, the header value has to match (case sensitive) this prefix. + * If not matched, JWT will not be extracted. If matched, JWT will be + * extracted after the prefix is removed. + * For example, for "Authorization: Bearer {JWT}", + * value_prefix="Bearer " with a space at the end. + * + * Generated from protobuf field string value_prefix = 3; + * @return string + */ + public function getValuePrefix() + { + return $this->value_prefix; + } + + /** + * The value prefix. The value format is "value_prefix{token}" + * Only applies to "in" header type. Must be empty for "in" query type. + * If not empty, the header value has to match (case sensitive) this prefix. + * If not matched, JWT will not be extracted. If matched, JWT will be + * extracted after the prefix is removed. + * For example, for "Authorization: Bearer {JWT}", + * value_prefix="Bearer " with a space at the end. + * + * Generated from protobuf field string value_prefix = 3; + * @param string $var + * @return $this + */ + public function setValuePrefix($var) + { + GPBUtil::checkString($var, True); + $this->value_prefix = $var; + + return $this; + } + + /** + * @return string + */ + public function getIn() + { + return $this->whichOneof("in"); + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/LabelDescriptor.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/LabelDescriptor.php new file mode 100644 index 000000000000..ac1aa409607f --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/LabelDescriptor.php @@ -0,0 +1,135 @@ +google.api.LabelDescriptor + */ +class LabelDescriptor extends \Google\Protobuf\Internal\Message +{ + /** + * The label key. + * + * Generated from protobuf field string key = 1; + */ + protected $key = ''; + /** + * The type of data that can be assigned to the label. + * + * Generated from protobuf field .google.api.LabelDescriptor.ValueType value_type = 2; + */ + protected $value_type = 0; + /** + * A human-readable description for the label. + * + * Generated from protobuf field string description = 3; + */ + protected $description = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $key + * The label key. + * @type int $value_type + * The type of data that can be assigned to the label. + * @type string $description + * A human-readable description for the label. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Label::initOnce(); + parent::__construct($data); + } + + /** + * The label key. + * + * Generated from protobuf field string key = 1; + * @return string + */ + public function getKey() + { + return $this->key; + } + + /** + * The label key. + * + * Generated from protobuf field string key = 1; + * @param string $var + * @return $this + */ + public function setKey($var) + { + GPBUtil::checkString($var, True); + $this->key = $var; + + return $this; + } + + /** + * The type of data that can be assigned to the label. + * + * Generated from protobuf field .google.api.LabelDescriptor.ValueType value_type = 2; + * @return int + */ + public function getValueType() + { + return $this->value_type; + } + + /** + * The type of data that can be assigned to the label. + * + * Generated from protobuf field .google.api.LabelDescriptor.ValueType value_type = 2; + * @param int $var + * @return $this + */ + public function setValueType($var) + { + GPBUtil::checkEnum($var, \Google\Api\LabelDescriptor\ValueType::class); + $this->value_type = $var; + + return $this; + } + + /** + * A human-readable description for the label. + * + * Generated from protobuf field string description = 3; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * A human-readable description for the label. + * + * Generated from protobuf field string description = 3; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/LabelDescriptor/ValueType.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/LabelDescriptor/ValueType.php new file mode 100644 index 000000000000..42ec76a25a43 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/LabelDescriptor/ValueType.php @@ -0,0 +1,61 @@ +google.api.LabelDescriptor.ValueType + */ +class ValueType +{ + /** + * A variable-length string. This is the default. + * + * Generated from protobuf enum STRING = 0; + */ + const STRING = 0; + /** + * Boolean; true or false. + * + * Generated from protobuf enum BOOL = 1; + */ + const BOOL = 1; + /** + * A 64-bit signed integer. + * + * Generated from protobuf enum INT64 = 2; + */ + const INT64 = 2; + + private static $valueToName = [ + self::STRING => 'STRING', + self::BOOL => 'BOOL', + self::INT64 => 'INT64', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/LaunchStage.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/LaunchStage.php new file mode 100644 index 000000000000..766aa7903470 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/LaunchStage.php @@ -0,0 +1,118 @@ +google.api.LaunchStage + */ +class LaunchStage +{ + /** + * Do not use this default value. + * + * Generated from protobuf enum LAUNCH_STAGE_UNSPECIFIED = 0; + */ + const LAUNCH_STAGE_UNSPECIFIED = 0; + /** + * The feature is not yet implemented. Users can not use it. + * + * Generated from protobuf enum UNIMPLEMENTED = 6; + */ + const UNIMPLEMENTED = 6; + /** + * Prelaunch features are hidden from users and are only visible internally. + * + * Generated from protobuf enum PRELAUNCH = 7; + */ + const PRELAUNCH = 7; + /** + * Early Access features are limited to a closed group of testers. To use + * these features, you must sign up in advance and sign a Trusted Tester + * agreement (which includes confidentiality provisions). These features may + * be unstable, changed in backward-incompatible ways, and are not + * guaranteed to be released. + * + * Generated from protobuf enum EARLY_ACCESS = 1; + */ + const EARLY_ACCESS = 1; + /** + * Alpha is a limited availability test for releases before they are cleared + * for widespread use. By Alpha, all significant design issues are resolved + * and we are in the process of verifying functionality. Alpha customers + * need to apply for access, agree to applicable terms, and have their + * projects allowlisted. Alpha releases don't have to be feature complete, + * no SLAs are provided, and there are no technical support obligations, but + * they will be far enough along that customers can actually use them in + * test environments or for limited-use tests -- just like they would in + * normal production cases. + * + * Generated from protobuf enum ALPHA = 2; + */ + const ALPHA = 2; + /** + * Beta is the point at which we are ready to open a release for any + * customer to use. There are no SLA or technical support obligations in a + * Beta release. Products will be complete from a feature perspective, but + * may have some open outstanding issues. Beta releases are suitable for + * limited production use cases. + * + * Generated from protobuf enum BETA = 3; + */ + const BETA = 3; + /** + * GA features are open to all developers and are considered stable and + * fully qualified for production use. + * + * Generated from protobuf enum GA = 4; + */ + const GA = 4; + /** + * Deprecated features are scheduled to be shut down and removed. For more + * information, see the "Deprecation Policy" section of our [Terms of + * Service](https://cloud.google.com/terms/) + * and the [Google Cloud Platform Subject to the Deprecation + * Policy](https://cloud.google.com/terms/deprecation) documentation. + * + * Generated from protobuf enum DEPRECATED = 5; + */ + const DEPRECATED = 5; + + private static $valueToName = [ + self::LAUNCH_STAGE_UNSPECIFIED => 'LAUNCH_STAGE_UNSPECIFIED', + self::UNIMPLEMENTED => 'UNIMPLEMENTED', + self::PRELAUNCH => 'PRELAUNCH', + self::EARLY_ACCESS => 'EARLY_ACCESS', + self::ALPHA => 'ALPHA', + self::BETA => 'BETA', + self::GA => 'GA', + self::DEPRECATED => 'DEPRECATED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/LogDescriptor.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/LogDescriptor.php new file mode 100644 index 000000000000..6973e8d0f56c --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/LogDescriptor.php @@ -0,0 +1,203 @@ +google.api.LogDescriptor + */ +class LogDescriptor extends \Google\Protobuf\Internal\Message +{ + /** + * The name of the log. It must be less than 512 characters long and can + * include the following characters: upper- and lower-case alphanumeric + * characters [A-Za-z0-9], and punctuation characters including + * slash, underscore, hyphen, period [/_-.]. + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * The set of labels that are available to describe a specific log entry. + * Runtime requests that contain labels not specified here are + * considered invalid. + * + * Generated from protobuf field repeated .google.api.LabelDescriptor labels = 2; + */ + private $labels; + /** + * A human-readable description of this log. This information appears in + * the documentation and can contain details. + * + * Generated from protobuf field string description = 3; + */ + protected $description = ''; + /** + * The human-readable name for this log. This information appears on + * the user interface and should be concise. + * + * Generated from protobuf field string display_name = 4; + */ + protected $display_name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * The name of the log. It must be less than 512 characters long and can + * include the following characters: upper- and lower-case alphanumeric + * characters [A-Za-z0-9], and punctuation characters including + * slash, underscore, hyphen, period [/_-.]. + * @type \Google\Api\LabelDescriptor[] $labels + * The set of labels that are available to describe a specific log entry. + * Runtime requests that contain labels not specified here are + * considered invalid. + * @type string $description + * A human-readable description of this log. This information appears in + * the documentation and can contain details. + * @type string $display_name + * The human-readable name for this log. This information appears on + * the user interface and should be concise. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Log::initOnce(); + parent::__construct($data); + } + + /** + * The name of the log. It must be less than 512 characters long and can + * include the following characters: upper- and lower-case alphanumeric + * characters [A-Za-z0-9], and punctuation characters including + * slash, underscore, hyphen, period [/_-.]. + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name of the log. It must be less than 512 characters long and can + * include the following characters: upper- and lower-case alphanumeric + * characters [A-Za-z0-9], and punctuation characters including + * slash, underscore, hyphen, period [/_-.]. + * + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * The set of labels that are available to describe a specific log entry. + * Runtime requests that contain labels not specified here are + * considered invalid. + * + * Generated from protobuf field repeated .google.api.LabelDescriptor labels = 2; + * @return RepeatedField<\Google\Api\LabelDescriptor> + */ + public function getLabels() + { + return $this->labels; + } + + /** + * The set of labels that are available to describe a specific log entry. + * Runtime requests that contain labels not specified here are + * considered invalid. + * + * Generated from protobuf field repeated .google.api.LabelDescriptor labels = 2; + * @param \Google\Api\LabelDescriptor[] $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\LabelDescriptor::class); + $this->labels = $arr; + + return $this; + } + + /** + * A human-readable description of this log. This information appears in + * the documentation and can contain details. + * + * Generated from protobuf field string description = 3; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * A human-readable description of this log. This information appears in + * the documentation and can contain details. + * + * Generated from protobuf field string description = 3; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * The human-readable name for this log. This information appears on + * the user interface and should be concise. + * + * Generated from protobuf field string display_name = 4; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * The human-readable name for this log. This information appears on + * the user interface and should be concise. + * + * Generated from protobuf field string display_name = 4; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Logging.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Logging.php new file mode 100644 index 000000000000..9c2f5b086211 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Logging.php @@ -0,0 +1,151 @@ +google.api.Logging + */ +class Logging extends \Google\Protobuf\Internal\Message +{ + /** + * Logging configurations for sending logs to the producer project. + * There can be multiple producer destinations, each one must have a + * different monitored resource type. A log can be used in at most + * one producer destination. + * + * Generated from protobuf field repeated .google.api.Logging.LoggingDestination producer_destinations = 1; + */ + private $producer_destinations; + /** + * Logging configurations for sending logs to the consumer project. + * There can be multiple consumer destinations, each one must have a + * different monitored resource type. A log can be used in at most + * one consumer destination. + * + * Generated from protobuf field repeated .google.api.Logging.LoggingDestination consumer_destinations = 2; + */ + private $consumer_destinations; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Api\Logging\LoggingDestination[] $producer_destinations + * Logging configurations for sending logs to the producer project. + * There can be multiple producer destinations, each one must have a + * different monitored resource type. A log can be used in at most + * one producer destination. + * @type \Google\Api\Logging\LoggingDestination[] $consumer_destinations + * Logging configurations for sending logs to the consumer project. + * There can be multiple consumer destinations, each one must have a + * different monitored resource type. A log can be used in at most + * one consumer destination. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Logging::initOnce(); + parent::__construct($data); + } + + /** + * Logging configurations for sending logs to the producer project. + * There can be multiple producer destinations, each one must have a + * different monitored resource type. A log can be used in at most + * one producer destination. + * + * Generated from protobuf field repeated .google.api.Logging.LoggingDestination producer_destinations = 1; + * @return RepeatedField<\Google\Api\Logging\LoggingDestination> + */ + public function getProducerDestinations() + { + return $this->producer_destinations; + } + + /** + * Logging configurations for sending logs to the producer project. + * There can be multiple producer destinations, each one must have a + * different monitored resource type. A log can be used in at most + * one producer destination. + * + * Generated from protobuf field repeated .google.api.Logging.LoggingDestination producer_destinations = 1; + * @param \Google\Api\Logging\LoggingDestination[] $var + * @return $this + */ + public function setProducerDestinations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\Logging\LoggingDestination::class); + $this->producer_destinations = $arr; + + return $this; + } + + /** + * Logging configurations for sending logs to the consumer project. + * There can be multiple consumer destinations, each one must have a + * different monitored resource type. A log can be used in at most + * one consumer destination. + * + * Generated from protobuf field repeated .google.api.Logging.LoggingDestination consumer_destinations = 2; + * @return RepeatedField<\Google\Api\Logging\LoggingDestination> + */ + public function getConsumerDestinations() + { + return $this->consumer_destinations; + } + + /** + * Logging configurations for sending logs to the consumer project. + * There can be multiple consumer destinations, each one must have a + * different monitored resource type. A log can be used in at most + * one consumer destination. + * + * Generated from protobuf field repeated .google.api.Logging.LoggingDestination consumer_destinations = 2; + * @param \Google\Api\Logging\LoggingDestination[] $var + * @return $this + */ + public function setConsumerDestinations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\Logging\LoggingDestination::class); + $this->consumer_destinations = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Logging/LoggingDestination.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Logging/LoggingDestination.php new file mode 100644 index 000000000000..7c0d6fe7cf96 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Logging/LoggingDestination.php @@ -0,0 +1,122 @@ +google.api.Logging.LoggingDestination + */ +class LoggingDestination extends \Google\Protobuf\Internal\Message +{ + /** + * The monitored resource type. The type must be defined in the + * [Service.monitored_resources][google.api.Service.monitored_resources] + * section. + * + * Generated from protobuf field string monitored_resource = 3; + */ + protected $monitored_resource = ''; + /** + * Names of the logs to be sent to this destination. Each name must + * be defined in the [Service.logs][google.api.Service.logs] section. If the + * log name is not a domain scoped name, it will be automatically prefixed + * with the service name followed by "/". + * + * Generated from protobuf field repeated string logs = 1; + */ + private $logs; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $monitored_resource + * The monitored resource type. The type must be defined in the + * [Service.monitored_resources][google.api.Service.monitored_resources] + * section. + * @type string[] $logs + * Names of the logs to be sent to this destination. Each name must + * be defined in the [Service.logs][google.api.Service.logs] section. If the + * log name is not a domain scoped name, it will be automatically prefixed + * with the service name followed by "/". + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Logging::initOnce(); + parent::__construct($data); + } + + /** + * The monitored resource type. The type must be defined in the + * [Service.monitored_resources][google.api.Service.monitored_resources] + * section. + * + * Generated from protobuf field string monitored_resource = 3; + * @return string + */ + public function getMonitoredResource() + { + return $this->monitored_resource; + } + + /** + * The monitored resource type. The type must be defined in the + * [Service.monitored_resources][google.api.Service.monitored_resources] + * section. + * + * Generated from protobuf field string monitored_resource = 3; + * @param string $var + * @return $this + */ + public function setMonitoredResource($var) + { + GPBUtil::checkString($var, True); + $this->monitored_resource = $var; + + return $this; + } + + /** + * Names of the logs to be sent to this destination. Each name must + * be defined in the [Service.logs][google.api.Service.logs] section. If the + * log name is not a domain scoped name, it will be automatically prefixed + * with the service name followed by "/". + * + * Generated from protobuf field repeated string logs = 1; + * @return RepeatedField + */ + public function getLogs() + { + return $this->logs; + } + + /** + * Names of the logs to be sent to this destination. Each name must + * be defined in the [Service.logs][google.api.Service.logs] section. If the + * log name is not a domain scoped name, it will be automatically prefixed + * with the service name followed by "/". + * + * Generated from protobuf field repeated string logs = 1; + * @param string[] $var + * @return $this + */ + public function setLogs($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->logs = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MethodPolicy.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MethodPolicy.php new file mode 100644 index 000000000000..a8b98647a566 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MethodPolicy.php @@ -0,0 +1,121 @@ +google.api.MethodPolicy + */ +class MethodPolicy extends \Google\Protobuf\Internal\Message +{ + /** + * Selects a method to which these policies should be enforced, for example, + * "google.pubsub.v1.Subscriber.CreateSubscription". + * Refer to [selector][google.api.DocumentationRule.selector] for syntax + * details. + * NOTE: This field must not be set in the proto annotation. It will be + * automatically filled by the service config compiler . + * + * Generated from protobuf field string selector = 9; + */ + protected $selector = ''; + /** + * Policies that are applicable to the request message. + * + * Generated from protobuf field repeated .google.api.FieldPolicy request_policies = 2; + */ + private $request_policies; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $selector + * Selects a method to which these policies should be enforced, for example, + * "google.pubsub.v1.Subscriber.CreateSubscription". + * Refer to [selector][google.api.DocumentationRule.selector] for syntax + * details. + * NOTE: This field must not be set in the proto annotation. It will be + * automatically filled by the service config compiler . + * @type \Google\Api\FieldPolicy[] $request_policies + * Policies that are applicable to the request message. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Policy::initOnce(); + parent::__construct($data); + } + + /** + * Selects a method to which these policies should be enforced, for example, + * "google.pubsub.v1.Subscriber.CreateSubscription". + * Refer to [selector][google.api.DocumentationRule.selector] for syntax + * details. + * NOTE: This field must not be set in the proto annotation. It will be + * automatically filled by the service config compiler . + * + * Generated from protobuf field string selector = 9; + * @return string + */ + public function getSelector() + { + return $this->selector; + } + + /** + * Selects a method to which these policies should be enforced, for example, + * "google.pubsub.v1.Subscriber.CreateSubscription". + * Refer to [selector][google.api.DocumentationRule.selector] for syntax + * details. + * NOTE: This field must not be set in the proto annotation. It will be + * automatically filled by the service config compiler . + * + * Generated from protobuf field string selector = 9; + * @param string $var + * @return $this + */ + public function setSelector($var) + { + GPBUtil::checkString($var, True); + $this->selector = $var; + + return $this; + } + + /** + * Policies that are applicable to the request message. + * + * Generated from protobuf field repeated .google.api.FieldPolicy request_policies = 2; + * @return RepeatedField<\Google\Api\FieldPolicy> + */ + public function getRequestPolicies() + { + return $this->request_policies; + } + + /** + * Policies that are applicable to the request message. + * + * Generated from protobuf field repeated .google.api.FieldPolicy request_policies = 2; + * @param \Google\Api\FieldPolicy[] $var + * @return $this + */ + public function setRequestPolicies($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\FieldPolicy::class); + $this->request_policies = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MethodSettings.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MethodSettings.php new file mode 100644 index 000000000000..1669fc575fe7 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MethodSettings.php @@ -0,0 +1,321 @@ +google.api.MethodSettings + */ +class MethodSettings extends \Google\Protobuf\Internal\Message +{ + /** + * The fully qualified name of the method, for which the options below apply. + * This is used to find the method to apply the options. + * Example: + * publishing: + * method_settings: + * - selector: google.storage.control.v2.StorageControl.CreateFolder + * # method settings for CreateFolder... + * + * Generated from protobuf field string selector = 1; + */ + protected $selector = ''; + /** + * Describes settings to use for long-running operations when generating + * API methods for RPCs. Complements RPCs that use the annotations in + * google/longrunning/operations.proto. + * Example of a YAML configuration:: + * publishing: + * method_settings: + * - selector: google.cloud.speech.v2.Speech.BatchRecognize + * long_running: + * initial_poll_delay: 60s # 1 minute + * poll_delay_multiplier: 1.5 + * max_poll_delay: 360s # 6 minutes + * total_poll_timeout: 54000s # 90 minutes + * + * Generated from protobuf field .google.api.MethodSettings.LongRunning long_running = 2; + */ + protected $long_running = null; + /** + * List of top-level fields of the request message, that should be + * automatically populated by the client libraries based on their + * (google.api.field_info).format. Currently supported format: UUID4. + * Example of a YAML configuration: + * publishing: + * method_settings: + * - selector: google.example.v1.ExampleService.CreateExample + * auto_populated_fields: + * - request_id + * + * Generated from protobuf field repeated string auto_populated_fields = 3; + */ + private $auto_populated_fields; + /** + * Batching configuration for an API method in client libraries. + * Example of a YAML configuration: + * publishing: + * method_settings: + * - selector: google.example.v1.ExampleService.BatchCreateExample + * batching: + * element_count_threshold: 1000 + * request_byte_threshold: 100000000 + * delay_threshold_millis: 10 + * + * Generated from protobuf field .google.api.BatchingConfigProto batching = 4; + */ + protected $batching = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $selector + * The fully qualified name of the method, for which the options below apply. + * This is used to find the method to apply the options. + * Example: + * publishing: + * method_settings: + * - selector: google.storage.control.v2.StorageControl.CreateFolder + * # method settings for CreateFolder... + * @type \Google\Api\MethodSettings\LongRunning $long_running + * Describes settings to use for long-running operations when generating + * API methods for RPCs. Complements RPCs that use the annotations in + * google/longrunning/operations.proto. + * Example of a YAML configuration:: + * publishing: + * method_settings: + * - selector: google.cloud.speech.v2.Speech.BatchRecognize + * long_running: + * initial_poll_delay: 60s # 1 minute + * poll_delay_multiplier: 1.5 + * max_poll_delay: 360s # 6 minutes + * total_poll_timeout: 54000s # 90 minutes + * @type string[] $auto_populated_fields + * List of top-level fields of the request message, that should be + * automatically populated by the client libraries based on their + * (google.api.field_info).format. Currently supported format: UUID4. + * Example of a YAML configuration: + * publishing: + * method_settings: + * - selector: google.example.v1.ExampleService.CreateExample + * auto_populated_fields: + * - request_id + * @type \Google\Api\BatchingConfigProto $batching + * Batching configuration for an API method in client libraries. + * Example of a YAML configuration: + * publishing: + * method_settings: + * - selector: google.example.v1.ExampleService.BatchCreateExample + * batching: + * element_count_threshold: 1000 + * request_byte_threshold: 100000000 + * delay_threshold_millis: 10 + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Client::initOnce(); + parent::__construct($data); + } + + /** + * The fully qualified name of the method, for which the options below apply. + * This is used to find the method to apply the options. + * Example: + * publishing: + * method_settings: + * - selector: google.storage.control.v2.StorageControl.CreateFolder + * # method settings for CreateFolder... + * + * Generated from protobuf field string selector = 1; + * @return string + */ + public function getSelector() + { + return $this->selector; + } + + /** + * The fully qualified name of the method, for which the options below apply. + * This is used to find the method to apply the options. + * Example: + * publishing: + * method_settings: + * - selector: google.storage.control.v2.StorageControl.CreateFolder + * # method settings for CreateFolder... + * + * Generated from protobuf field string selector = 1; + * @param string $var + * @return $this + */ + public function setSelector($var) + { + GPBUtil::checkString($var, True); + $this->selector = $var; + + return $this; + } + + /** + * Describes settings to use for long-running operations when generating + * API methods for RPCs. Complements RPCs that use the annotations in + * google/longrunning/operations.proto. + * Example of a YAML configuration:: + * publishing: + * method_settings: + * - selector: google.cloud.speech.v2.Speech.BatchRecognize + * long_running: + * initial_poll_delay: 60s # 1 minute + * poll_delay_multiplier: 1.5 + * max_poll_delay: 360s # 6 minutes + * total_poll_timeout: 54000s # 90 minutes + * + * Generated from protobuf field .google.api.MethodSettings.LongRunning long_running = 2; + * @return \Google\Api\MethodSettings\LongRunning|null + */ + public function getLongRunning() + { + return $this->long_running; + } + + public function hasLongRunning() + { + return isset($this->long_running); + } + + public function clearLongRunning() + { + unset($this->long_running); + } + + /** + * Describes settings to use for long-running operations when generating + * API methods for RPCs. Complements RPCs that use the annotations in + * google/longrunning/operations.proto. + * Example of a YAML configuration:: + * publishing: + * method_settings: + * - selector: google.cloud.speech.v2.Speech.BatchRecognize + * long_running: + * initial_poll_delay: 60s # 1 minute + * poll_delay_multiplier: 1.5 + * max_poll_delay: 360s # 6 minutes + * total_poll_timeout: 54000s # 90 minutes + * + * Generated from protobuf field .google.api.MethodSettings.LongRunning long_running = 2; + * @param \Google\Api\MethodSettings\LongRunning $var + * @return $this + */ + public function setLongRunning($var) + { + GPBUtil::checkMessage($var, \Google\Api\MethodSettings\LongRunning::class); + $this->long_running = $var; + + return $this; + } + + /** + * List of top-level fields of the request message, that should be + * automatically populated by the client libraries based on their + * (google.api.field_info).format. Currently supported format: UUID4. + * Example of a YAML configuration: + * publishing: + * method_settings: + * - selector: google.example.v1.ExampleService.CreateExample + * auto_populated_fields: + * - request_id + * + * Generated from protobuf field repeated string auto_populated_fields = 3; + * @return RepeatedField + */ + public function getAutoPopulatedFields() + { + return $this->auto_populated_fields; + } + + /** + * List of top-level fields of the request message, that should be + * automatically populated by the client libraries based on their + * (google.api.field_info).format. Currently supported format: UUID4. + * Example of a YAML configuration: + * publishing: + * method_settings: + * - selector: google.example.v1.ExampleService.CreateExample + * auto_populated_fields: + * - request_id + * + * Generated from protobuf field repeated string auto_populated_fields = 3; + * @param string[] $var + * @return $this + */ + public function setAutoPopulatedFields($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->auto_populated_fields = $arr; + + return $this; + } + + /** + * Batching configuration for an API method in client libraries. + * Example of a YAML configuration: + * publishing: + * method_settings: + * - selector: google.example.v1.ExampleService.BatchCreateExample + * batching: + * element_count_threshold: 1000 + * request_byte_threshold: 100000000 + * delay_threshold_millis: 10 + * + * Generated from protobuf field .google.api.BatchingConfigProto batching = 4; + * @return \Google\Api\BatchingConfigProto|null + */ + public function getBatching() + { + return $this->batching; + } + + public function hasBatching() + { + return isset($this->batching); + } + + public function clearBatching() + { + unset($this->batching); + } + + /** + * Batching configuration for an API method in client libraries. + * Example of a YAML configuration: + * publishing: + * method_settings: + * - selector: google.example.v1.ExampleService.BatchCreateExample + * batching: + * element_count_threshold: 1000 + * request_byte_threshold: 100000000 + * delay_threshold_millis: 10 + * + * Generated from protobuf field .google.api.BatchingConfigProto batching = 4; + * @param \Google\Api\BatchingConfigProto $var + * @return $this + */ + public function setBatching($var) + { + GPBUtil::checkMessage($var, \Google\Api\BatchingConfigProto::class); + $this->batching = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MethodSettings/LongRunning.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MethodSettings/LongRunning.php new file mode 100644 index 000000000000..075592a4e868 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MethodSettings/LongRunning.php @@ -0,0 +1,223 @@ +google.api.MethodSettings.LongRunning + */ +class LongRunning extends \Google\Protobuf\Internal\Message +{ + /** + * Initial delay after which the first poll request will be made. + * Default value: 5 seconds. + * + * Generated from protobuf field .google.protobuf.Duration initial_poll_delay = 1; + */ + protected $initial_poll_delay = null; + /** + * Multiplier to gradually increase delay between subsequent polls until it + * reaches max_poll_delay. + * Default value: 1.5. + * + * Generated from protobuf field float poll_delay_multiplier = 2; + */ + protected $poll_delay_multiplier = 0.0; + /** + * Maximum time between two subsequent poll requests. + * Default value: 45 seconds. + * + * Generated from protobuf field .google.protobuf.Duration max_poll_delay = 3; + */ + protected $max_poll_delay = null; + /** + * Total polling timeout. + * Default value: 5 minutes. + * + * Generated from protobuf field .google.protobuf.Duration total_poll_timeout = 4; + */ + protected $total_poll_timeout = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\Duration $initial_poll_delay + * Initial delay after which the first poll request will be made. + * Default value: 5 seconds. + * @type float $poll_delay_multiplier + * Multiplier to gradually increase delay between subsequent polls until it + * reaches max_poll_delay. + * Default value: 1.5. + * @type \Google\Protobuf\Duration $max_poll_delay + * Maximum time between two subsequent poll requests. + * Default value: 45 seconds. + * @type \Google\Protobuf\Duration $total_poll_timeout + * Total polling timeout. + * Default value: 5 minutes. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Client::initOnce(); + parent::__construct($data); + } + + /** + * Initial delay after which the first poll request will be made. + * Default value: 5 seconds. + * + * Generated from protobuf field .google.protobuf.Duration initial_poll_delay = 1; + * @return \Google\Protobuf\Duration|null + */ + public function getInitialPollDelay() + { + return $this->initial_poll_delay; + } + + public function hasInitialPollDelay() + { + return isset($this->initial_poll_delay); + } + + public function clearInitialPollDelay() + { + unset($this->initial_poll_delay); + } + + /** + * Initial delay after which the first poll request will be made. + * Default value: 5 seconds. + * + * Generated from protobuf field .google.protobuf.Duration initial_poll_delay = 1; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setInitialPollDelay($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->initial_poll_delay = $var; + + return $this; + } + + /** + * Multiplier to gradually increase delay between subsequent polls until it + * reaches max_poll_delay. + * Default value: 1.5. + * + * Generated from protobuf field float poll_delay_multiplier = 2; + * @return float + */ + public function getPollDelayMultiplier() + { + return $this->poll_delay_multiplier; + } + + /** + * Multiplier to gradually increase delay between subsequent polls until it + * reaches max_poll_delay. + * Default value: 1.5. + * + * Generated from protobuf field float poll_delay_multiplier = 2; + * @param float $var + * @return $this + */ + public function setPollDelayMultiplier($var) + { + GPBUtil::checkFloat($var); + $this->poll_delay_multiplier = $var; + + return $this; + } + + /** + * Maximum time between two subsequent poll requests. + * Default value: 45 seconds. + * + * Generated from protobuf field .google.protobuf.Duration max_poll_delay = 3; + * @return \Google\Protobuf\Duration|null + */ + public function getMaxPollDelay() + { + return $this->max_poll_delay; + } + + public function hasMaxPollDelay() + { + return isset($this->max_poll_delay); + } + + public function clearMaxPollDelay() + { + unset($this->max_poll_delay); + } + + /** + * Maximum time between two subsequent poll requests. + * Default value: 45 seconds. + * + * Generated from protobuf field .google.protobuf.Duration max_poll_delay = 3; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setMaxPollDelay($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->max_poll_delay = $var; + + return $this; + } + + /** + * Total polling timeout. + * Default value: 5 minutes. + * + * Generated from protobuf field .google.protobuf.Duration total_poll_timeout = 4; + * @return \Google\Protobuf\Duration|null + */ + public function getTotalPollTimeout() + { + return $this->total_poll_timeout; + } + + public function hasTotalPollTimeout() + { + return isset($this->total_poll_timeout); + } + + public function clearTotalPollTimeout() + { + unset($this->total_poll_timeout); + } + + /** + * Total polling timeout. + * Default value: 5 minutes. + * + * Generated from protobuf field .google.protobuf.Duration total_poll_timeout = 4; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setTotalPollTimeout($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->total_poll_timeout = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Metric.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Metric.php new file mode 100644 index 000000000000..cbcfc0aa77fa --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Metric.php @@ -0,0 +1,114 @@ +google.api.Metric + */ +class Metric extends \Google\Protobuf\Internal\Message +{ + /** + * An existing metric type, see + * [google.api.MetricDescriptor][google.api.MetricDescriptor]. For example, + * `custom.googleapis.com/invoice/paid/amount`. + * + * Generated from protobuf field string type = 3; + */ + protected $type = ''; + /** + * The set of label values that uniquely identify this metric. All + * labels listed in the `MetricDescriptor` must be assigned values. + * + * Generated from protobuf field map labels = 2; + */ + private $labels; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $type + * An existing metric type, see + * [google.api.MetricDescriptor][google.api.MetricDescriptor]. For example, + * `custom.googleapis.com/invoice/paid/amount`. + * @type array|\Google\Protobuf\Internal\MapField $labels + * The set of label values that uniquely identify this metric. All + * labels listed in the `MetricDescriptor` must be assigned values. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Metric::initOnce(); + parent::__construct($data); + } + + /** + * An existing metric type, see + * [google.api.MetricDescriptor][google.api.MetricDescriptor]. For example, + * `custom.googleapis.com/invoice/paid/amount`. + * + * Generated from protobuf field string type = 3; + * @return string + */ + public function getType() + { + return $this->type; + } + + /** + * An existing metric type, see + * [google.api.MetricDescriptor][google.api.MetricDescriptor]. For example, + * `custom.googleapis.com/invoice/paid/amount`. + * + * Generated from protobuf field string type = 3; + * @param string $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkString($var, True); + $this->type = $var; + + return $this; + } + + /** + * The set of label values that uniquely identify this metric. All + * labels listed in the `MetricDescriptor` must be assigned values. + * + * Generated from protobuf field map labels = 2; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * The set of label values that uniquely identify this metric. All + * labels listed in the `MetricDescriptor` must be assigned values. + * + * Generated from protobuf field map labels = 2; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->labels = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricDescriptor.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricDescriptor.php new file mode 100644 index 000000000000..78b29e6d9a0d --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricDescriptor.php @@ -0,0 +1,831 @@ +google.api.MetricDescriptor + */ +class MetricDescriptor extends \Google\Protobuf\Internal\Message +{ + /** + * The resource name of the metric descriptor. + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * The metric type, including its DNS name prefix. The type is not + * URL-encoded. All user-defined metric types have the DNS name + * `custom.googleapis.com` or `external.googleapis.com`. Metric types should + * use a natural hierarchical grouping. For example: + * "custom.googleapis.com/invoice/paid/amount" + * "external.googleapis.com/prometheus/up" + * "appengine.googleapis.com/http/server/response_latencies" + * + * Generated from protobuf field string type = 8; + */ + protected $type = ''; + /** + * The set of labels that can be used to describe a specific + * instance of this metric type. For example, the + * `appengine.googleapis.com/http/server/response_latencies` metric + * type has a label for the HTTP response code, `response_code`, so + * you can look at latencies for successful responses or just + * for responses that failed. + * + * Generated from protobuf field repeated .google.api.LabelDescriptor labels = 2; + */ + private $labels; + /** + * Whether the metric records instantaneous values, changes to a value, etc. + * Some combinations of `metric_kind` and `value_type` might not be supported. + * + * Generated from protobuf field .google.api.MetricDescriptor.MetricKind metric_kind = 3; + */ + protected $metric_kind = 0; + /** + * Whether the measurement is an integer, a floating-point number, etc. + * Some combinations of `metric_kind` and `value_type` might not be supported. + * + * Generated from protobuf field .google.api.MetricDescriptor.ValueType value_type = 4; + */ + protected $value_type = 0; + /** + * The units in which the metric value is reported. It is only applicable + * if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit` + * defines the representation of the stored metric values. + * Different systems might scale the values to be more easily displayed (so a + * value of `0.02kBy` _might_ be displayed as `20By`, and a value of + * `3523kBy` _might_ be displayed as `3.5MBy`). However, if the `unit` is + * `kBy`, then the value of the metric is always in thousands of bytes, no + * matter how it might be displayed. + * If you want a custom metric to record the exact number of CPU-seconds used + * by a job, you can create an `INT64 CUMULATIVE` metric whose `unit` is + * `s{CPU}` (or equivalently `1s{CPU}` or just `s`). If the job uses 12,005 + * CPU-seconds, then the value is written as `12005`. + * Alternatively, if you want a custom metric to record data in a more + * granular way, you can create a `DOUBLE CUMULATIVE` metric whose `unit` is + * `ks{CPU}`, and then write the value `12.005` (which is `12005/1000`), + * or use `Kis{CPU}` and write `11.723` (which is `12005/1024`). + * The supported units are a subset of [The Unified Code for Units of + * Measure](https://unitsofmeasure.org/ucum.html) standard: + * **Basic units (UNIT)** + * * `bit` bit + * * `By` byte + * * `s` second + * * `min` minute + * * `h` hour + * * `d` day + * * `1` dimensionless + * **Prefixes (PREFIX)** + * * `k` kilo (10^3) + * * `M` mega (10^6) + * * `G` giga (10^9) + * * `T` tera (10^12) + * * `P` peta (10^15) + * * `E` exa (10^18) + * * `Z` zetta (10^21) + * * `Y` yotta (10^24) + * * `m` milli (10^-3) + * * `u` micro (10^-6) + * * `n` nano (10^-9) + * * `p` pico (10^-12) + * * `f` femto (10^-15) + * * `a` atto (10^-18) + * * `z` zepto (10^-21) + * * `y` yocto (10^-24) + * * `Ki` kibi (2^10) + * * `Mi` mebi (2^20) + * * `Gi` gibi (2^30) + * * `Ti` tebi (2^40) + * * `Pi` pebi (2^50) + * **Grammar** + * The grammar also includes these connectors: + * * `/` division or ratio (as an infix operator). For examples, + * `kBy/{email}` or `MiBy/10ms` (although you should almost never + * have `/s` in a metric `unit`; rates should always be computed at + * query time from the underlying cumulative or delta value). + * * `.` multiplication or composition (as an infix operator). For + * examples, `GBy.d` or `k{watt}.h`. + * The grammar for a unit is as follows: + * Expression = Component { "." Component } { "/" Component } ; + * Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ] + * | Annotation + * | "1" + * ; + * Annotation = "{" NAME "}" ; + * Notes: + * * `Annotation` is just a comment if it follows a `UNIT`. If the annotation + * is used alone, then the unit is equivalent to `1`. For examples, + * `{request}/s == 1/s`, `By{transmitted}/s == By/s`. + * * `NAME` is a sequence of non-blank printable ASCII characters not + * containing `{` or `}`. + * * `1` represents a unitary [dimensionless + * unit](https://en.wikipedia.org/wiki/Dimensionless_quantity) of 1, such + * as in `1/s`. It is typically used when none of the basic units are + * appropriate. For example, "new users per day" can be represented as + * `1/d` or `{new-users}/d` (and a metric value `5` would mean "5 new + * users). Alternatively, "thousands of page views per day" would be + * represented as `1000/d` or `k1/d` or `k{page_views}/d` (and a metric + * value of `5.3` would mean "5300 page views per day"). + * * `%` represents dimensionless value of 1/100, and annotates values giving + * a percentage (so the metric values are typically in the range of 0..100, + * and a metric value `3` means "3 percent"). + * * `10^2.%` indicates a metric contains a ratio, typically in the range + * 0..1, that will be multiplied by 100 and displayed as a percentage + * (so a metric value `0.03` means "3 percent"). + * + * Generated from protobuf field string unit = 5; + */ + protected $unit = ''; + /** + * A detailed description of the metric, which can be used in documentation. + * + * Generated from protobuf field string description = 6; + */ + protected $description = ''; + /** + * A concise name for the metric, which can be displayed in user interfaces. + * Use sentence case without an ending period, for example "Request count". + * This field is optional but it is recommended to be set for any metrics + * associated with user-visible concepts, such as Quota. + * + * Generated from protobuf field string display_name = 7; + */ + protected $display_name = ''; + /** + * Optional. Metadata which can be used to guide usage of the metric. + * + * Generated from protobuf field .google.api.MetricDescriptor.MetricDescriptorMetadata metadata = 10; + */ + protected $metadata = null; + /** + * Optional. The launch stage of the metric definition. + * + * Generated from protobuf field .google.api.LaunchStage launch_stage = 12; + */ + protected $launch_stage = 0; + /** + * Read-only. If present, then a [time + * series][google.monitoring.v3.TimeSeries], which is identified partially by + * a metric type and a + * [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor], that + * is associated with this metric type can only be associated with one of the + * monitored resource types listed here. + * + * Generated from protobuf field repeated string monitored_resource_types = 13; + */ + private $monitored_resource_types; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * The resource name of the metric descriptor. + * @type string $type + * The metric type, including its DNS name prefix. The type is not + * URL-encoded. All user-defined metric types have the DNS name + * `custom.googleapis.com` or `external.googleapis.com`. Metric types should + * use a natural hierarchical grouping. For example: + * "custom.googleapis.com/invoice/paid/amount" + * "external.googleapis.com/prometheus/up" + * "appengine.googleapis.com/http/server/response_latencies" + * @type \Google\Api\LabelDescriptor[] $labels + * The set of labels that can be used to describe a specific + * instance of this metric type. For example, the + * `appengine.googleapis.com/http/server/response_latencies` metric + * type has a label for the HTTP response code, `response_code`, so + * you can look at latencies for successful responses or just + * for responses that failed. + * @type int $metric_kind + * Whether the metric records instantaneous values, changes to a value, etc. + * Some combinations of `metric_kind` and `value_type` might not be supported. + * @type int $value_type + * Whether the measurement is an integer, a floating-point number, etc. + * Some combinations of `metric_kind` and `value_type` might not be supported. + * @type string $unit + * The units in which the metric value is reported. It is only applicable + * if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit` + * defines the representation of the stored metric values. + * Different systems might scale the values to be more easily displayed (so a + * value of `0.02kBy` _might_ be displayed as `20By`, and a value of + * `3523kBy` _might_ be displayed as `3.5MBy`). However, if the `unit` is + * `kBy`, then the value of the metric is always in thousands of bytes, no + * matter how it might be displayed. + * If you want a custom metric to record the exact number of CPU-seconds used + * by a job, you can create an `INT64 CUMULATIVE` metric whose `unit` is + * `s{CPU}` (or equivalently `1s{CPU}` or just `s`). If the job uses 12,005 + * CPU-seconds, then the value is written as `12005`. + * Alternatively, if you want a custom metric to record data in a more + * granular way, you can create a `DOUBLE CUMULATIVE` metric whose `unit` is + * `ks{CPU}`, and then write the value `12.005` (which is `12005/1000`), + * or use `Kis{CPU}` and write `11.723` (which is `12005/1024`). + * The supported units are a subset of [The Unified Code for Units of + * Measure](https://unitsofmeasure.org/ucum.html) standard: + * **Basic units (UNIT)** + * * `bit` bit + * * `By` byte + * * `s` second + * * `min` minute + * * `h` hour + * * `d` day + * * `1` dimensionless + * **Prefixes (PREFIX)** + * * `k` kilo (10^3) + * * `M` mega (10^6) + * * `G` giga (10^9) + * * `T` tera (10^12) + * * `P` peta (10^15) + * * `E` exa (10^18) + * * `Z` zetta (10^21) + * * `Y` yotta (10^24) + * * `m` milli (10^-3) + * * `u` micro (10^-6) + * * `n` nano (10^-9) + * * `p` pico (10^-12) + * * `f` femto (10^-15) + * * `a` atto (10^-18) + * * `z` zepto (10^-21) + * * `y` yocto (10^-24) + * * `Ki` kibi (2^10) + * * `Mi` mebi (2^20) + * * `Gi` gibi (2^30) + * * `Ti` tebi (2^40) + * * `Pi` pebi (2^50) + * **Grammar** + * The grammar also includes these connectors: + * * `/` division or ratio (as an infix operator). For examples, + * `kBy/{email}` or `MiBy/10ms` (although you should almost never + * have `/s` in a metric `unit`; rates should always be computed at + * query time from the underlying cumulative or delta value). + * * `.` multiplication or composition (as an infix operator). For + * examples, `GBy.d` or `k{watt}.h`. + * The grammar for a unit is as follows: + * Expression = Component { "." Component } { "/" Component } ; + * Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ] + * | Annotation + * | "1" + * ; + * Annotation = "{" NAME "}" ; + * Notes: + * * `Annotation` is just a comment if it follows a `UNIT`. If the annotation + * is used alone, then the unit is equivalent to `1`. For examples, + * `{request}/s == 1/s`, `By{transmitted}/s == By/s`. + * * `NAME` is a sequence of non-blank printable ASCII characters not + * containing `{` or `}`. + * * `1` represents a unitary [dimensionless + * unit](https://en.wikipedia.org/wiki/Dimensionless_quantity) of 1, such + * as in `1/s`. It is typically used when none of the basic units are + * appropriate. For example, "new users per day" can be represented as + * `1/d` or `{new-users}/d` (and a metric value `5` would mean "5 new + * users). Alternatively, "thousands of page views per day" would be + * represented as `1000/d` or `k1/d` or `k{page_views}/d` (and a metric + * value of `5.3` would mean "5300 page views per day"). + * * `%` represents dimensionless value of 1/100, and annotates values giving + * a percentage (so the metric values are typically in the range of 0..100, + * and a metric value `3` means "3 percent"). + * * `10^2.%` indicates a metric contains a ratio, typically in the range + * 0..1, that will be multiplied by 100 and displayed as a percentage + * (so a metric value `0.03` means "3 percent"). + * @type string $description + * A detailed description of the metric, which can be used in documentation. + * @type string $display_name + * A concise name for the metric, which can be displayed in user interfaces. + * Use sentence case without an ending period, for example "Request count". + * This field is optional but it is recommended to be set for any metrics + * associated with user-visible concepts, such as Quota. + * @type \Google\Api\MetricDescriptor\MetricDescriptorMetadata $metadata + * Optional. Metadata which can be used to guide usage of the metric. + * @type int $launch_stage + * Optional. The launch stage of the metric definition. + * @type string[] $monitored_resource_types + * Read-only. If present, then a [time + * series][google.monitoring.v3.TimeSeries], which is identified partially by + * a metric type and a + * [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor], that + * is associated with this metric type can only be associated with one of the + * monitored resource types listed here. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Metric::initOnce(); + parent::__construct($data); + } + + /** + * The resource name of the metric descriptor. + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The resource name of the metric descriptor. + * + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * The metric type, including its DNS name prefix. The type is not + * URL-encoded. All user-defined metric types have the DNS name + * `custom.googleapis.com` or `external.googleapis.com`. Metric types should + * use a natural hierarchical grouping. For example: + * "custom.googleapis.com/invoice/paid/amount" + * "external.googleapis.com/prometheus/up" + * "appengine.googleapis.com/http/server/response_latencies" + * + * Generated from protobuf field string type = 8; + * @return string + */ + public function getType() + { + return $this->type; + } + + /** + * The metric type, including its DNS name prefix. The type is not + * URL-encoded. All user-defined metric types have the DNS name + * `custom.googleapis.com` or `external.googleapis.com`. Metric types should + * use a natural hierarchical grouping. For example: + * "custom.googleapis.com/invoice/paid/amount" + * "external.googleapis.com/prometheus/up" + * "appengine.googleapis.com/http/server/response_latencies" + * + * Generated from protobuf field string type = 8; + * @param string $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkString($var, True); + $this->type = $var; + + return $this; + } + + /** + * The set of labels that can be used to describe a specific + * instance of this metric type. For example, the + * `appengine.googleapis.com/http/server/response_latencies` metric + * type has a label for the HTTP response code, `response_code`, so + * you can look at latencies for successful responses or just + * for responses that failed. + * + * Generated from protobuf field repeated .google.api.LabelDescriptor labels = 2; + * @return RepeatedField<\Google\Api\LabelDescriptor> + */ + public function getLabels() + { + return $this->labels; + } + + /** + * The set of labels that can be used to describe a specific + * instance of this metric type. For example, the + * `appengine.googleapis.com/http/server/response_latencies` metric + * type has a label for the HTTP response code, `response_code`, so + * you can look at latencies for successful responses or just + * for responses that failed. + * + * Generated from protobuf field repeated .google.api.LabelDescriptor labels = 2; + * @param \Google\Api\LabelDescriptor[] $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\LabelDescriptor::class); + $this->labels = $arr; + + return $this; + } + + /** + * Whether the metric records instantaneous values, changes to a value, etc. + * Some combinations of `metric_kind` and `value_type` might not be supported. + * + * Generated from protobuf field .google.api.MetricDescriptor.MetricKind metric_kind = 3; + * @return int + */ + public function getMetricKind() + { + return $this->metric_kind; + } + + /** + * Whether the metric records instantaneous values, changes to a value, etc. + * Some combinations of `metric_kind` and `value_type` might not be supported. + * + * Generated from protobuf field .google.api.MetricDescriptor.MetricKind metric_kind = 3; + * @param int $var + * @return $this + */ + public function setMetricKind($var) + { + GPBUtil::checkEnum($var, \Google\Api\MetricDescriptor\MetricKind::class); + $this->metric_kind = $var; + + return $this; + } + + /** + * Whether the measurement is an integer, a floating-point number, etc. + * Some combinations of `metric_kind` and `value_type` might not be supported. + * + * Generated from protobuf field .google.api.MetricDescriptor.ValueType value_type = 4; + * @return int + */ + public function getValueType() + { + return $this->value_type; + } + + /** + * Whether the measurement is an integer, a floating-point number, etc. + * Some combinations of `metric_kind` and `value_type` might not be supported. + * + * Generated from protobuf field .google.api.MetricDescriptor.ValueType value_type = 4; + * @param int $var + * @return $this + */ + public function setValueType($var) + { + GPBUtil::checkEnum($var, \Google\Api\MetricDescriptor\ValueType::class); + $this->value_type = $var; + + return $this; + } + + /** + * The units in which the metric value is reported. It is only applicable + * if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit` + * defines the representation of the stored metric values. + * Different systems might scale the values to be more easily displayed (so a + * value of `0.02kBy` _might_ be displayed as `20By`, and a value of + * `3523kBy` _might_ be displayed as `3.5MBy`). However, if the `unit` is + * `kBy`, then the value of the metric is always in thousands of bytes, no + * matter how it might be displayed. + * If you want a custom metric to record the exact number of CPU-seconds used + * by a job, you can create an `INT64 CUMULATIVE` metric whose `unit` is + * `s{CPU}` (or equivalently `1s{CPU}` or just `s`). If the job uses 12,005 + * CPU-seconds, then the value is written as `12005`. + * Alternatively, if you want a custom metric to record data in a more + * granular way, you can create a `DOUBLE CUMULATIVE` metric whose `unit` is + * `ks{CPU}`, and then write the value `12.005` (which is `12005/1000`), + * or use `Kis{CPU}` and write `11.723` (which is `12005/1024`). + * The supported units are a subset of [The Unified Code for Units of + * Measure](https://unitsofmeasure.org/ucum.html) standard: + * **Basic units (UNIT)** + * * `bit` bit + * * `By` byte + * * `s` second + * * `min` minute + * * `h` hour + * * `d` day + * * `1` dimensionless + * **Prefixes (PREFIX)** + * * `k` kilo (10^3) + * * `M` mega (10^6) + * * `G` giga (10^9) + * * `T` tera (10^12) + * * `P` peta (10^15) + * * `E` exa (10^18) + * * `Z` zetta (10^21) + * * `Y` yotta (10^24) + * * `m` milli (10^-3) + * * `u` micro (10^-6) + * * `n` nano (10^-9) + * * `p` pico (10^-12) + * * `f` femto (10^-15) + * * `a` atto (10^-18) + * * `z` zepto (10^-21) + * * `y` yocto (10^-24) + * * `Ki` kibi (2^10) + * * `Mi` mebi (2^20) + * * `Gi` gibi (2^30) + * * `Ti` tebi (2^40) + * * `Pi` pebi (2^50) + * **Grammar** + * The grammar also includes these connectors: + * * `/` division or ratio (as an infix operator). For examples, + * `kBy/{email}` or `MiBy/10ms` (although you should almost never + * have `/s` in a metric `unit`; rates should always be computed at + * query time from the underlying cumulative or delta value). + * * `.` multiplication or composition (as an infix operator). For + * examples, `GBy.d` or `k{watt}.h`. + * The grammar for a unit is as follows: + * Expression = Component { "." Component } { "/" Component } ; + * Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ] + * | Annotation + * | "1" + * ; + * Annotation = "{" NAME "}" ; + * Notes: + * * `Annotation` is just a comment if it follows a `UNIT`. If the annotation + * is used alone, then the unit is equivalent to `1`. For examples, + * `{request}/s == 1/s`, `By{transmitted}/s == By/s`. + * * `NAME` is a sequence of non-blank printable ASCII characters not + * containing `{` or `}`. + * * `1` represents a unitary [dimensionless + * unit](https://en.wikipedia.org/wiki/Dimensionless_quantity) of 1, such + * as in `1/s`. It is typically used when none of the basic units are + * appropriate. For example, "new users per day" can be represented as + * `1/d` or `{new-users}/d` (and a metric value `5` would mean "5 new + * users). Alternatively, "thousands of page views per day" would be + * represented as `1000/d` or `k1/d` or `k{page_views}/d` (and a metric + * value of `5.3` would mean "5300 page views per day"). + * * `%` represents dimensionless value of 1/100, and annotates values giving + * a percentage (so the metric values are typically in the range of 0..100, + * and a metric value `3` means "3 percent"). + * * `10^2.%` indicates a metric contains a ratio, typically in the range + * 0..1, that will be multiplied by 100 and displayed as a percentage + * (so a metric value `0.03` means "3 percent"). + * + * Generated from protobuf field string unit = 5; + * @return string + */ + public function getUnit() + { + return $this->unit; + } + + /** + * The units in which the metric value is reported. It is only applicable + * if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit` + * defines the representation of the stored metric values. + * Different systems might scale the values to be more easily displayed (so a + * value of `0.02kBy` _might_ be displayed as `20By`, and a value of + * `3523kBy` _might_ be displayed as `3.5MBy`). However, if the `unit` is + * `kBy`, then the value of the metric is always in thousands of bytes, no + * matter how it might be displayed. + * If you want a custom metric to record the exact number of CPU-seconds used + * by a job, you can create an `INT64 CUMULATIVE` metric whose `unit` is + * `s{CPU}` (or equivalently `1s{CPU}` or just `s`). If the job uses 12,005 + * CPU-seconds, then the value is written as `12005`. + * Alternatively, if you want a custom metric to record data in a more + * granular way, you can create a `DOUBLE CUMULATIVE` metric whose `unit` is + * `ks{CPU}`, and then write the value `12.005` (which is `12005/1000`), + * or use `Kis{CPU}` and write `11.723` (which is `12005/1024`). + * The supported units are a subset of [The Unified Code for Units of + * Measure](https://unitsofmeasure.org/ucum.html) standard: + * **Basic units (UNIT)** + * * `bit` bit + * * `By` byte + * * `s` second + * * `min` minute + * * `h` hour + * * `d` day + * * `1` dimensionless + * **Prefixes (PREFIX)** + * * `k` kilo (10^3) + * * `M` mega (10^6) + * * `G` giga (10^9) + * * `T` tera (10^12) + * * `P` peta (10^15) + * * `E` exa (10^18) + * * `Z` zetta (10^21) + * * `Y` yotta (10^24) + * * `m` milli (10^-3) + * * `u` micro (10^-6) + * * `n` nano (10^-9) + * * `p` pico (10^-12) + * * `f` femto (10^-15) + * * `a` atto (10^-18) + * * `z` zepto (10^-21) + * * `y` yocto (10^-24) + * * `Ki` kibi (2^10) + * * `Mi` mebi (2^20) + * * `Gi` gibi (2^30) + * * `Ti` tebi (2^40) + * * `Pi` pebi (2^50) + * **Grammar** + * The grammar also includes these connectors: + * * `/` division or ratio (as an infix operator). For examples, + * `kBy/{email}` or `MiBy/10ms` (although you should almost never + * have `/s` in a metric `unit`; rates should always be computed at + * query time from the underlying cumulative or delta value). + * * `.` multiplication or composition (as an infix operator). For + * examples, `GBy.d` or `k{watt}.h`. + * The grammar for a unit is as follows: + * Expression = Component { "." Component } { "/" Component } ; + * Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ] + * | Annotation + * | "1" + * ; + * Annotation = "{" NAME "}" ; + * Notes: + * * `Annotation` is just a comment if it follows a `UNIT`. If the annotation + * is used alone, then the unit is equivalent to `1`. For examples, + * `{request}/s == 1/s`, `By{transmitted}/s == By/s`. + * * `NAME` is a sequence of non-blank printable ASCII characters not + * containing `{` or `}`. + * * `1` represents a unitary [dimensionless + * unit](https://en.wikipedia.org/wiki/Dimensionless_quantity) of 1, such + * as in `1/s`. It is typically used when none of the basic units are + * appropriate. For example, "new users per day" can be represented as + * `1/d` or `{new-users}/d` (and a metric value `5` would mean "5 new + * users). Alternatively, "thousands of page views per day" would be + * represented as `1000/d` or `k1/d` or `k{page_views}/d` (and a metric + * value of `5.3` would mean "5300 page views per day"). + * * `%` represents dimensionless value of 1/100, and annotates values giving + * a percentage (so the metric values are typically in the range of 0..100, + * and a metric value `3` means "3 percent"). + * * `10^2.%` indicates a metric contains a ratio, typically in the range + * 0..1, that will be multiplied by 100 and displayed as a percentage + * (so a metric value `0.03` means "3 percent"). + * + * Generated from protobuf field string unit = 5; + * @param string $var + * @return $this + */ + public function setUnit($var) + { + GPBUtil::checkString($var, True); + $this->unit = $var; + + return $this; + } + + /** + * A detailed description of the metric, which can be used in documentation. + * + * Generated from protobuf field string description = 6; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * A detailed description of the metric, which can be used in documentation. + * + * Generated from protobuf field string description = 6; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * A concise name for the metric, which can be displayed in user interfaces. + * Use sentence case without an ending period, for example "Request count". + * This field is optional but it is recommended to be set for any metrics + * associated with user-visible concepts, such as Quota. + * + * Generated from protobuf field string display_name = 7; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * A concise name for the metric, which can be displayed in user interfaces. + * Use sentence case without an ending period, for example "Request count". + * This field is optional but it is recommended to be set for any metrics + * associated with user-visible concepts, such as Quota. + * + * Generated from protobuf field string display_name = 7; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Optional. Metadata which can be used to guide usage of the metric. + * + * Generated from protobuf field .google.api.MetricDescriptor.MetricDescriptorMetadata metadata = 10; + * @return \Google\Api\MetricDescriptor\MetricDescriptorMetadata|null + */ + public function getMetadata() + { + return $this->metadata; + } + + public function hasMetadata() + { + return isset($this->metadata); + } + + public function clearMetadata() + { + unset($this->metadata); + } + + /** + * Optional. Metadata which can be used to guide usage of the metric. + * + * Generated from protobuf field .google.api.MetricDescriptor.MetricDescriptorMetadata metadata = 10; + * @param \Google\Api\MetricDescriptor\MetricDescriptorMetadata $var + * @return $this + */ + public function setMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Api\MetricDescriptor\MetricDescriptorMetadata::class); + $this->metadata = $var; + + return $this; + } + + /** + * Optional. The launch stage of the metric definition. + * + * Generated from protobuf field .google.api.LaunchStage launch_stage = 12; + * @return int + */ + public function getLaunchStage() + { + return $this->launch_stage; + } + + /** + * Optional. The launch stage of the metric definition. + * + * Generated from protobuf field .google.api.LaunchStage launch_stage = 12; + * @param int $var + * @return $this + */ + public function setLaunchStage($var) + { + GPBUtil::checkEnum($var, \Google\Api\LaunchStage::class); + $this->launch_stage = $var; + + return $this; + } + + /** + * Read-only. If present, then a [time + * series][google.monitoring.v3.TimeSeries], which is identified partially by + * a metric type and a + * [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor], that + * is associated with this metric type can only be associated with one of the + * monitored resource types listed here. + * + * Generated from protobuf field repeated string monitored_resource_types = 13; + * @return RepeatedField + */ + public function getMonitoredResourceTypes() + { + return $this->monitored_resource_types; + } + + /** + * Read-only. If present, then a [time + * series][google.monitoring.v3.TimeSeries], which is identified partially by + * a metric type and a + * [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor], that + * is associated with this metric type can only be associated with one of the + * monitored resource types listed here. + * + * Generated from protobuf field repeated string monitored_resource_types = 13; + * @param string[] $var + * @return $this + */ + public function setMonitoredResourceTypes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->monitored_resource_types = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricDescriptor/MetricDescriptorMetadata.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricDescriptor/MetricDescriptorMetadata.php new file mode 100644 index 000000000000..a7fab28ba357 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricDescriptor/MetricDescriptorMetadata.php @@ -0,0 +1,224 @@ +google.api.MetricDescriptor.MetricDescriptorMetadata + */ +class MetricDescriptorMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * Deprecated. Must use the + * [MetricDescriptor.launch_stage][google.api.MetricDescriptor.launch_stage] + * instead. + * + * Generated from protobuf field .google.api.LaunchStage launch_stage = 1 [deprecated = true]; + * @deprecated + */ + protected $launch_stage = 0; + /** + * The sampling period of metric data points. For metrics which are written + * periodically, consecutive data points are stored at this time interval, + * excluding data loss due to errors. Metrics with a higher granularity have + * a smaller sampling period. + * + * Generated from protobuf field .google.protobuf.Duration sample_period = 2; + */ + protected $sample_period = null; + /** + * The delay of data points caused by ingestion. Data points older than this + * age are guaranteed to be ingested and available to be read, excluding + * data loss due to errors. + * + * Generated from protobuf field .google.protobuf.Duration ingest_delay = 3; + */ + protected $ingest_delay = null; + /** + * The scope of the timeseries data of the metric. + * + * Generated from protobuf field repeated .google.api.MetricDescriptor.MetricDescriptorMetadata.TimeSeriesResourceHierarchyLevel time_series_resource_hierarchy_level = 4; + */ + private $time_series_resource_hierarchy_level; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $launch_stage + * Deprecated. Must use the + * [MetricDescriptor.launch_stage][google.api.MetricDescriptor.launch_stage] + * instead. + * @type \Google\Protobuf\Duration $sample_period + * The sampling period of metric data points. For metrics which are written + * periodically, consecutive data points are stored at this time interval, + * excluding data loss due to errors. Metrics with a higher granularity have + * a smaller sampling period. + * @type \Google\Protobuf\Duration $ingest_delay + * The delay of data points caused by ingestion. Data points older than this + * age are guaranteed to be ingested and available to be read, excluding + * data loss due to errors. + * @type int[] $time_series_resource_hierarchy_level + * The scope of the timeseries data of the metric. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Metric::initOnce(); + parent::__construct($data); + } + + /** + * Deprecated. Must use the + * [MetricDescriptor.launch_stage][google.api.MetricDescriptor.launch_stage] + * instead. + * + * Generated from protobuf field .google.api.LaunchStage launch_stage = 1 [deprecated = true]; + * @return int + * @deprecated + */ + public function getLaunchStage() + { + if ($this->launch_stage !== 0) { + @trigger_error('launch_stage is deprecated.', E_USER_DEPRECATED); + } + return $this->launch_stage; + } + + /** + * Deprecated. Must use the + * [MetricDescriptor.launch_stage][google.api.MetricDescriptor.launch_stage] + * instead. + * + * Generated from protobuf field .google.api.LaunchStage launch_stage = 1 [deprecated = true]; + * @param int $var + * @return $this + * @deprecated + */ + public function setLaunchStage($var) + { + @trigger_error('launch_stage is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkEnum($var, \Google\Api\LaunchStage::class); + $this->launch_stage = $var; + + return $this; + } + + /** + * The sampling period of metric data points. For metrics which are written + * periodically, consecutive data points are stored at this time interval, + * excluding data loss due to errors. Metrics with a higher granularity have + * a smaller sampling period. + * + * Generated from protobuf field .google.protobuf.Duration sample_period = 2; + * @return \Google\Protobuf\Duration|null + */ + public function getSamplePeriod() + { + return $this->sample_period; + } + + public function hasSamplePeriod() + { + return isset($this->sample_period); + } + + public function clearSamplePeriod() + { + unset($this->sample_period); + } + + /** + * The sampling period of metric data points. For metrics which are written + * periodically, consecutive data points are stored at this time interval, + * excluding data loss due to errors. Metrics with a higher granularity have + * a smaller sampling period. + * + * Generated from protobuf field .google.protobuf.Duration sample_period = 2; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setSamplePeriod($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->sample_period = $var; + + return $this; + } + + /** + * The delay of data points caused by ingestion. Data points older than this + * age are guaranteed to be ingested and available to be read, excluding + * data loss due to errors. + * + * Generated from protobuf field .google.protobuf.Duration ingest_delay = 3; + * @return \Google\Protobuf\Duration|null + */ + public function getIngestDelay() + { + return $this->ingest_delay; + } + + public function hasIngestDelay() + { + return isset($this->ingest_delay); + } + + public function clearIngestDelay() + { + unset($this->ingest_delay); + } + + /** + * The delay of data points caused by ingestion. Data points older than this + * age are guaranteed to be ingested and available to be read, excluding + * data loss due to errors. + * + * Generated from protobuf field .google.protobuf.Duration ingest_delay = 3; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setIngestDelay($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->ingest_delay = $var; + + return $this; + } + + /** + * The scope of the timeseries data of the metric. + * + * Generated from protobuf field repeated .google.api.MetricDescriptor.MetricDescriptorMetadata.TimeSeriesResourceHierarchyLevel time_series_resource_hierarchy_level = 4; + * @return RepeatedField + */ + public function getTimeSeriesResourceHierarchyLevel() + { + return $this->time_series_resource_hierarchy_level; + } + + /** + * The scope of the timeseries data of the metric. + * + * Generated from protobuf field repeated .google.api.MetricDescriptor.MetricDescriptorMetadata.TimeSeriesResourceHierarchyLevel time_series_resource_hierarchy_level = 4; + * @param int[] $var + * @return $this + */ + public function setTimeSeriesResourceHierarchyLevel($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Api\MetricDescriptor\MetricDescriptorMetadata\TimeSeriesResourceHierarchyLevel::class); + $this->time_series_resource_hierarchy_level = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricDescriptor/MetricDescriptorMetadata/TimeSeriesResourceHierarchyLevel.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricDescriptor/MetricDescriptorMetadata/TimeSeriesResourceHierarchyLevel.php new file mode 100644 index 000000000000..7fb5fc26f739 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricDescriptor/MetricDescriptorMetadata/TimeSeriesResourceHierarchyLevel.php @@ -0,0 +1,68 @@ +google.api.MetricDescriptor.MetricDescriptorMetadata.TimeSeriesResourceHierarchyLevel + */ +class TimeSeriesResourceHierarchyLevel +{ + /** + * Do not use this default value. + * + * Generated from protobuf enum TIME_SERIES_RESOURCE_HIERARCHY_LEVEL_UNSPECIFIED = 0; + */ + const TIME_SERIES_RESOURCE_HIERARCHY_LEVEL_UNSPECIFIED = 0; + /** + * Scopes a metric to a project. + * + * Generated from protobuf enum PROJECT = 1; + */ + const PROJECT = 1; + /** + * Scopes a metric to an organization. + * + * Generated from protobuf enum ORGANIZATION = 2; + */ + const ORGANIZATION = 2; + /** + * Scopes a metric to a folder. + * + * Generated from protobuf enum FOLDER = 3; + */ + const FOLDER = 3; + + private static $valueToName = [ + self::TIME_SERIES_RESOURCE_HIERARCHY_LEVEL_UNSPECIFIED => 'TIME_SERIES_RESOURCE_HIERARCHY_LEVEL_UNSPECIFIED', + self::PROJECT => 'PROJECT', + self::ORGANIZATION => 'ORGANIZATION', + self::FOLDER => 'FOLDER', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricDescriptor/MetricKind.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricDescriptor/MetricKind.php new file mode 100644 index 000000000000..0ecbe6b25b09 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricDescriptor/MetricKind.php @@ -0,0 +1,74 @@ +google.api.MetricDescriptor.MetricKind + */ +class MetricKind +{ + /** + * Do not use this default value. + * + * Generated from protobuf enum METRIC_KIND_UNSPECIFIED = 0; + */ + const METRIC_KIND_UNSPECIFIED = 0; + /** + * An instantaneous measurement of a value. + * + * Generated from protobuf enum GAUGE = 1; + */ + const GAUGE = 1; + /** + * The change in a value during a time interval. + * + * Generated from protobuf enum DELTA = 2; + */ + const DELTA = 2; + /** + * A value accumulated over a time interval. Cumulative + * measurements in a time series should have the same start time + * and increasing end times, until an event resets the cumulative + * value to zero and sets a new start time for the following + * points. + * + * Generated from protobuf enum CUMULATIVE = 3; + */ + const CUMULATIVE = 3; + + private static $valueToName = [ + self::METRIC_KIND_UNSPECIFIED => 'METRIC_KIND_UNSPECIFIED', + self::GAUGE => 'GAUGE', + self::DELTA => 'DELTA', + self::CUMULATIVE => 'CUMULATIVE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricDescriptor/ValueType.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricDescriptor/ValueType.php new file mode 100644 index 000000000000..80245f5732dd --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricDescriptor/ValueType.php @@ -0,0 +1,91 @@ +google.api.MetricDescriptor.ValueType + */ +class ValueType +{ + /** + * Do not use this default value. + * + * Generated from protobuf enum VALUE_TYPE_UNSPECIFIED = 0; + */ + const VALUE_TYPE_UNSPECIFIED = 0; + /** + * The value is a boolean. + * This value type can be used only if the metric kind is `GAUGE`. + * + * Generated from protobuf enum BOOL = 1; + */ + const BOOL = 1; + /** + * The value is a signed 64-bit integer. + * + * Generated from protobuf enum INT64 = 2; + */ + const INT64 = 2; + /** + * The value is a double precision floating point number. + * + * Generated from protobuf enum DOUBLE = 3; + */ + const DOUBLE = 3; + /** + * The value is a text string. + * This value type can be used only if the metric kind is `GAUGE`. + * + * Generated from protobuf enum STRING = 4; + */ + const STRING = 4; + /** + * The value is a [`Distribution`][google.api.Distribution]. + * + * Generated from protobuf enum DISTRIBUTION = 5; + */ + const DISTRIBUTION = 5; + /** + * The value is money. + * + * Generated from protobuf enum MONEY = 6; + */ + const MONEY = 6; + + private static $valueToName = [ + self::VALUE_TYPE_UNSPECIFIED => 'VALUE_TYPE_UNSPECIFIED', + self::BOOL => 'BOOL', + self::INT64 => 'INT64', + self::DOUBLE => 'DOUBLE', + self::STRING => 'STRING', + self::DISTRIBUTION => 'DISTRIBUTION', + self::MONEY => 'MONEY', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricRule.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricRule.php new file mode 100644 index 000000000000..c7d4edb4a6ac --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricRule.php @@ -0,0 +1,126 @@ +google.api.MetricRule + */ +class MetricRule extends \Google\Protobuf\Internal\Message +{ + /** + * Selects the methods to which this rule applies. + * Refer to [selector][google.api.DocumentationRule.selector] for syntax + * details. + * + * Generated from protobuf field string selector = 1; + */ + protected $selector = ''; + /** + * Metrics to update when the selected methods are called, and the associated + * cost applied to each metric. + * The key of the map is the metric name, and the values are the amount + * increased for the metric against which the quota limits are defined. + * The value must not be negative. + * + * Generated from protobuf field map metric_costs = 2; + */ + private $metric_costs; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $selector + * Selects the methods to which this rule applies. + * Refer to [selector][google.api.DocumentationRule.selector] for syntax + * details. + * @type array|\Google\Protobuf\Internal\MapField $metric_costs + * Metrics to update when the selected methods are called, and the associated + * cost applied to each metric. + * The key of the map is the metric name, and the values are the amount + * increased for the metric against which the quota limits are defined. + * The value must not be negative. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Quota::initOnce(); + parent::__construct($data); + } + + /** + * Selects the methods to which this rule applies. + * Refer to [selector][google.api.DocumentationRule.selector] for syntax + * details. + * + * Generated from protobuf field string selector = 1; + * @return string + */ + public function getSelector() + { + return $this->selector; + } + + /** + * Selects the methods to which this rule applies. + * Refer to [selector][google.api.DocumentationRule.selector] for syntax + * details. + * + * Generated from protobuf field string selector = 1; + * @param string $var + * @return $this + */ + public function setSelector($var) + { + GPBUtil::checkString($var, True); + $this->selector = $var; + + return $this; + } + + /** + * Metrics to update when the selected methods are called, and the associated + * cost applied to each metric. + * The key of the map is the metric name, and the values are the amount + * increased for the metric against which the quota limits are defined. + * The value must not be negative. + * + * Generated from protobuf field map metric_costs = 2; + * @return \Google\Protobuf\Internal\MapField + */ + public function getMetricCosts() + { + return $this->metric_costs; + } + + /** + * Metrics to update when the selected methods are called, and the associated + * cost applied to each metric. + * The key of the map is the metric name, and the values are the amount + * increased for the metric against which the quota limits are defined. + * The value must not be negative. + * + * Generated from protobuf field map metric_costs = 2; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setMetricCosts($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::INT64); + $this->metric_costs = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MonitoredResource.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MonitoredResource.php new file mode 100644 index 000000000000..3fbac39600b6 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MonitoredResource.php @@ -0,0 +1,147 @@ +google.api.MonitoredResource + */ +class MonitoredResource extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The monitored resource type. This field must match + * the `type` field of a + * [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor] + * object. For example, the type of a Compute Engine VM instance is + * `gce_instance`. Some descriptors include the service name in the type; for + * example, the type of a Datastream stream is + * `datastream.googleapis.com/Stream`. + * + * Generated from protobuf field string type = 1; + */ + protected $type = ''; + /** + * Required. Values for all of the labels listed in the associated monitored + * resource descriptor. For example, Compute Engine VM instances use the + * labels `"project_id"`, `"instance_id"`, and `"zone"`. + * + * Generated from protobuf field map labels = 2; + */ + private $labels; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $type + * Required. The monitored resource type. This field must match + * the `type` field of a + * [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor] + * object. For example, the type of a Compute Engine VM instance is + * `gce_instance`. Some descriptors include the service name in the type; for + * example, the type of a Datastream stream is + * `datastream.googleapis.com/Stream`. + * @type array|\Google\Protobuf\Internal\MapField $labels + * Required. Values for all of the labels listed in the associated monitored + * resource descriptor. For example, Compute Engine VM instances use the + * labels `"project_id"`, `"instance_id"`, and `"zone"`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\MonitoredResource::initOnce(); + parent::__construct($data); + } + + /** + * Required. The monitored resource type. This field must match + * the `type` field of a + * [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor] + * object. For example, the type of a Compute Engine VM instance is + * `gce_instance`. Some descriptors include the service name in the type; for + * example, the type of a Datastream stream is + * `datastream.googleapis.com/Stream`. + * + * Generated from protobuf field string type = 1; + * @return string + */ + public function getType() + { + return $this->type; + } + + /** + * Required. The monitored resource type. This field must match + * the `type` field of a + * [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor] + * object. For example, the type of a Compute Engine VM instance is + * `gce_instance`. Some descriptors include the service name in the type; for + * example, the type of a Datastream stream is + * `datastream.googleapis.com/Stream`. + * + * Generated from protobuf field string type = 1; + * @param string $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkString($var, True); + $this->type = $var; + + return $this; + } + + /** + * Required. Values for all of the labels listed in the associated monitored + * resource descriptor. For example, Compute Engine VM instances use the + * labels `"project_id"`, `"instance_id"`, and `"zone"`. + * + * Generated from protobuf field map labels = 2; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * Required. Values for all of the labels listed in the associated monitored + * resource descriptor. For example, Compute Engine VM instances use the + * labels `"project_id"`, `"instance_id"`, and `"zone"`. + * + * Generated from protobuf field map labels = 2; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->labels = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MonitoredResourceDescriptor.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MonitoredResourceDescriptor.php new file mode 100644 index 000000000000..744c76dc319a --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MonitoredResourceDescriptor.php @@ -0,0 +1,309 @@ +google.api.MonitoredResourceDescriptor + */ +class MonitoredResourceDescriptor extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The resource name of the monitored resource descriptor: + * `"projects/{project_id}/monitoredResourceDescriptors/{type}"` where + * {type} is the value of the `type` field in this object and + * {project_id} is a project ID that provides API-specific context for + * accessing the type. APIs that do not use project information can use the + * resource name format `"monitoredResourceDescriptors/{type}"`. + * + * Generated from protobuf field string name = 5; + */ + protected $name = ''; + /** + * Required. The monitored resource type. For example, the type + * `"cloudsql_database"` represents databases in Google Cloud SQL. + * For a list of types, see [Monitored resource + * types](https://cloud.google.com/monitoring/api/resources) + * and [Logging resource + * types](https://cloud.google.com/logging/docs/api/v2/resource-list). + * + * Generated from protobuf field string type = 1; + */ + protected $type = ''; + /** + * Optional. A concise name for the monitored resource type that might be + * displayed in user interfaces. It should be a Title Cased Noun Phrase, + * without any article or other determiners. For example, + * `"Google Cloud SQL Database"`. + * + * Generated from protobuf field string display_name = 2; + */ + protected $display_name = ''; + /** + * Optional. A detailed description of the monitored resource type that might + * be used in documentation. + * + * Generated from protobuf field string description = 3; + */ + protected $description = ''; + /** + * Required. A set of labels used to describe instances of this monitored + * resource type. For example, an individual Google Cloud SQL database is + * identified by values for the labels `"database_id"` and `"zone"`. + * + * Generated from protobuf field repeated .google.api.LabelDescriptor labels = 4; + */ + private $labels; + /** + * Optional. The launch stage of the monitored resource definition. + * + * Generated from protobuf field .google.api.LaunchStage launch_stage = 7; + */ + protected $launch_stage = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Optional. The resource name of the monitored resource descriptor: + * `"projects/{project_id}/monitoredResourceDescriptors/{type}"` where + * {type} is the value of the `type` field in this object and + * {project_id} is a project ID that provides API-specific context for + * accessing the type. APIs that do not use project information can use the + * resource name format `"monitoredResourceDescriptors/{type}"`. + * @type string $type + * Required. The monitored resource type. For example, the type + * `"cloudsql_database"` represents databases in Google Cloud SQL. + * For a list of types, see [Monitored resource + * types](https://cloud.google.com/monitoring/api/resources) + * and [Logging resource + * types](https://cloud.google.com/logging/docs/api/v2/resource-list). + * @type string $display_name + * Optional. A concise name for the monitored resource type that might be + * displayed in user interfaces. It should be a Title Cased Noun Phrase, + * without any article or other determiners. For example, + * `"Google Cloud SQL Database"`. + * @type string $description + * Optional. A detailed description of the monitored resource type that might + * be used in documentation. + * @type \Google\Api\LabelDescriptor[] $labels + * Required. A set of labels used to describe instances of this monitored + * resource type. For example, an individual Google Cloud SQL database is + * identified by values for the labels `"database_id"` and `"zone"`. + * @type int $launch_stage + * Optional. The launch stage of the monitored resource definition. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\MonitoredResource::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The resource name of the monitored resource descriptor: + * `"projects/{project_id}/monitoredResourceDescriptors/{type}"` where + * {type} is the value of the `type` field in this object and + * {project_id} is a project ID that provides API-specific context for + * accessing the type. APIs that do not use project information can use the + * resource name format `"monitoredResourceDescriptors/{type}"`. + * + * Generated from protobuf field string name = 5; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Optional. The resource name of the monitored resource descriptor: + * `"projects/{project_id}/monitoredResourceDescriptors/{type}"` where + * {type} is the value of the `type` field in this object and + * {project_id} is a project ID that provides API-specific context for + * accessing the type. APIs that do not use project information can use the + * resource name format `"monitoredResourceDescriptors/{type}"`. + * + * Generated from protobuf field string name = 5; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. The monitored resource type. For example, the type + * `"cloudsql_database"` represents databases in Google Cloud SQL. + * For a list of types, see [Monitored resource + * types](https://cloud.google.com/monitoring/api/resources) + * and [Logging resource + * types](https://cloud.google.com/logging/docs/api/v2/resource-list). + * + * Generated from protobuf field string type = 1; + * @return string + */ + public function getType() + { + return $this->type; + } + + /** + * Required. The monitored resource type. For example, the type + * `"cloudsql_database"` represents databases in Google Cloud SQL. + * For a list of types, see [Monitored resource + * types](https://cloud.google.com/monitoring/api/resources) + * and [Logging resource + * types](https://cloud.google.com/logging/docs/api/v2/resource-list). + * + * Generated from protobuf field string type = 1; + * @param string $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkString($var, True); + $this->type = $var; + + return $this; + } + + /** + * Optional. A concise name for the monitored resource type that might be + * displayed in user interfaces. It should be a Title Cased Noun Phrase, + * without any article or other determiners. For example, + * `"Google Cloud SQL Database"`. + * + * Generated from protobuf field string display_name = 2; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Optional. A concise name for the monitored resource type that might be + * displayed in user interfaces. It should be a Title Cased Noun Phrase, + * without any article or other determiners. For example, + * `"Google Cloud SQL Database"`. + * + * Generated from protobuf field string display_name = 2; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Optional. A detailed description of the monitored resource type that might + * be used in documentation. + * + * Generated from protobuf field string description = 3; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Optional. A detailed description of the monitored resource type that might + * be used in documentation. + * + * Generated from protobuf field string description = 3; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * Required. A set of labels used to describe instances of this monitored + * resource type. For example, an individual Google Cloud SQL database is + * identified by values for the labels `"database_id"` and `"zone"`. + * + * Generated from protobuf field repeated .google.api.LabelDescriptor labels = 4; + * @return RepeatedField<\Google\Api\LabelDescriptor> + */ + public function getLabels() + { + return $this->labels; + } + + /** + * Required. A set of labels used to describe instances of this monitored + * resource type. For example, an individual Google Cloud SQL database is + * identified by values for the labels `"database_id"` and `"zone"`. + * + * Generated from protobuf field repeated .google.api.LabelDescriptor labels = 4; + * @param \Google\Api\LabelDescriptor[] $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\LabelDescriptor::class); + $this->labels = $arr; + + return $this; + } + + /** + * Optional. The launch stage of the monitored resource definition. + * + * Generated from protobuf field .google.api.LaunchStage launch_stage = 7; + * @return int + */ + public function getLaunchStage() + { + return $this->launch_stage; + } + + /** + * Optional. The launch stage of the monitored resource definition. + * + * Generated from protobuf field .google.api.LaunchStage launch_stage = 7; + * @param int $var + * @return $this + */ + public function setLaunchStage($var) + { + GPBUtil::checkEnum($var, \Google\Api\LaunchStage::class); + $this->launch_stage = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MonitoredResourceMetadata.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MonitoredResourceMetadata.php new file mode 100644 index 000000000000..842702ed5686 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MonitoredResourceMetadata.php @@ -0,0 +1,148 @@ +google.api.MonitoredResourceMetadata + */ +class MonitoredResourceMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Values for predefined system metadata labels. + * System labels are a kind of metadata extracted by Google, including + * "machine_image", "vpc", "subnet_id", + * "security_group", "name", etc. + * System label values can be only strings, Boolean values, or a list of + * strings. For example: + * { "name": "my-test-instance", + * "security_group": ["a", "b", "c"], + * "spot_instance": false } + * + * Generated from protobuf field .google.protobuf.Struct system_labels = 1; + */ + protected $system_labels = null; + /** + * Output only. A map of user-defined metadata labels. + * + * Generated from protobuf field map user_labels = 2; + */ + private $user_labels; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\Struct $system_labels + * Output only. Values for predefined system metadata labels. + * System labels are a kind of metadata extracted by Google, including + * "machine_image", "vpc", "subnet_id", + * "security_group", "name", etc. + * System label values can be only strings, Boolean values, or a list of + * strings. For example: + * { "name": "my-test-instance", + * "security_group": ["a", "b", "c"], + * "spot_instance": false } + * @type array|\Google\Protobuf\Internal\MapField $user_labels + * Output only. A map of user-defined metadata labels. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\MonitoredResource::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Values for predefined system metadata labels. + * System labels are a kind of metadata extracted by Google, including + * "machine_image", "vpc", "subnet_id", + * "security_group", "name", etc. + * System label values can be only strings, Boolean values, or a list of + * strings. For example: + * { "name": "my-test-instance", + * "security_group": ["a", "b", "c"], + * "spot_instance": false } + * + * Generated from protobuf field .google.protobuf.Struct system_labels = 1; + * @return \Google\Protobuf\Struct|null + */ + public function getSystemLabels() + { + return $this->system_labels; + } + + public function hasSystemLabels() + { + return isset($this->system_labels); + } + + public function clearSystemLabels() + { + unset($this->system_labels); + } + + /** + * Output only. Values for predefined system metadata labels. + * System labels are a kind of metadata extracted by Google, including + * "machine_image", "vpc", "subnet_id", + * "security_group", "name", etc. + * System label values can be only strings, Boolean values, or a list of + * strings. For example: + * { "name": "my-test-instance", + * "security_group": ["a", "b", "c"], + * "spot_instance": false } + * + * Generated from protobuf field .google.protobuf.Struct system_labels = 1; + * @param \Google\Protobuf\Struct $var + * @return $this + */ + public function setSystemLabels($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Struct::class); + $this->system_labels = $var; + + return $this; + } + + /** + * Output only. A map of user-defined metadata labels. + * + * Generated from protobuf field map user_labels = 2; + * @return \Google\Protobuf\Internal\MapField + */ + public function getUserLabels() + { + return $this->user_labels; + } + + /** + * Output only. A map of user-defined metadata labels. + * + * Generated from protobuf field map user_labels = 2; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setUserLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->user_labels = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Monitoring.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Monitoring.php new file mode 100644 index 000000000000..422ae2886eaa --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Monitoring.php @@ -0,0 +1,190 @@ +google.api.Monitoring + */ +class Monitoring extends \Google\Protobuf\Internal\Message +{ + /** + * Monitoring configurations for sending metrics to the producer project. + * There can be multiple producer destinations. A monitored resource type may + * appear in multiple monitoring destinations if different aggregations are + * needed for different sets of metrics associated with that monitored + * resource type. A monitored resource and metric pair may only be used once + * in the Monitoring configuration. + * + * Generated from protobuf field repeated .google.api.Monitoring.MonitoringDestination producer_destinations = 1; + */ + private $producer_destinations; + /** + * Monitoring configurations for sending metrics to the consumer project. + * There can be multiple consumer destinations. A monitored resource type may + * appear in multiple monitoring destinations if different aggregations are + * needed for different sets of metrics associated with that monitored + * resource type. A monitored resource and metric pair may only be used once + * in the Monitoring configuration. + * + * Generated from protobuf field repeated .google.api.Monitoring.MonitoringDestination consumer_destinations = 2; + */ + private $consumer_destinations; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Api\Monitoring\MonitoringDestination[] $producer_destinations + * Monitoring configurations for sending metrics to the producer project. + * There can be multiple producer destinations. A monitored resource type may + * appear in multiple monitoring destinations if different aggregations are + * needed for different sets of metrics associated with that monitored + * resource type. A monitored resource and metric pair may only be used once + * in the Monitoring configuration. + * @type \Google\Api\Monitoring\MonitoringDestination[] $consumer_destinations + * Monitoring configurations for sending metrics to the consumer project. + * There can be multiple consumer destinations. A monitored resource type may + * appear in multiple monitoring destinations if different aggregations are + * needed for different sets of metrics associated with that monitored + * resource type. A monitored resource and metric pair may only be used once + * in the Monitoring configuration. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Monitoring::initOnce(); + parent::__construct($data); + } + + /** + * Monitoring configurations for sending metrics to the producer project. + * There can be multiple producer destinations. A monitored resource type may + * appear in multiple monitoring destinations if different aggregations are + * needed for different sets of metrics associated with that monitored + * resource type. A monitored resource and metric pair may only be used once + * in the Monitoring configuration. + * + * Generated from protobuf field repeated .google.api.Monitoring.MonitoringDestination producer_destinations = 1; + * @return RepeatedField<\Google\Api\Monitoring\MonitoringDestination> + */ + public function getProducerDestinations() + { + return $this->producer_destinations; + } + + /** + * Monitoring configurations for sending metrics to the producer project. + * There can be multiple producer destinations. A monitored resource type may + * appear in multiple monitoring destinations if different aggregations are + * needed for different sets of metrics associated with that monitored + * resource type. A monitored resource and metric pair may only be used once + * in the Monitoring configuration. + * + * Generated from protobuf field repeated .google.api.Monitoring.MonitoringDestination producer_destinations = 1; + * @param \Google\Api\Monitoring\MonitoringDestination[] $var + * @return $this + */ + public function setProducerDestinations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\Monitoring\MonitoringDestination::class); + $this->producer_destinations = $arr; + + return $this; + } + + /** + * Monitoring configurations for sending metrics to the consumer project. + * There can be multiple consumer destinations. A monitored resource type may + * appear in multiple monitoring destinations if different aggregations are + * needed for different sets of metrics associated with that monitored + * resource type. A monitored resource and metric pair may only be used once + * in the Monitoring configuration. + * + * Generated from protobuf field repeated .google.api.Monitoring.MonitoringDestination consumer_destinations = 2; + * @return RepeatedField<\Google\Api\Monitoring\MonitoringDestination> + */ + public function getConsumerDestinations() + { + return $this->consumer_destinations; + } + + /** + * Monitoring configurations for sending metrics to the consumer project. + * There can be multiple consumer destinations. A monitored resource type may + * appear in multiple monitoring destinations if different aggregations are + * needed for different sets of metrics associated with that monitored + * resource type. A monitored resource and metric pair may only be used once + * in the Monitoring configuration. + * + * Generated from protobuf field repeated .google.api.Monitoring.MonitoringDestination consumer_destinations = 2; + * @param \Google\Api\Monitoring\MonitoringDestination[] $var + * @return $this + */ + public function setConsumerDestinations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\Monitoring\MonitoringDestination::class); + $this->consumer_destinations = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Monitoring/MonitoringDestination.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Monitoring/MonitoringDestination.php new file mode 100644 index 000000000000..94576a1acbf7 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Monitoring/MonitoringDestination.php @@ -0,0 +1,118 @@ +google.api.Monitoring.MonitoringDestination + */ +class MonitoringDestination extends \Google\Protobuf\Internal\Message +{ + /** + * The monitored resource type. The type must be defined in + * [Service.monitored_resources][google.api.Service.monitored_resources] + * section. + * + * Generated from protobuf field string monitored_resource = 1; + */ + protected $monitored_resource = ''; + /** + * Types of the metrics to report to this monitoring destination. + * Each type must be defined in + * [Service.metrics][google.api.Service.metrics] section. + * + * Generated from protobuf field repeated string metrics = 2; + */ + private $metrics; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $monitored_resource + * The monitored resource type. The type must be defined in + * [Service.monitored_resources][google.api.Service.monitored_resources] + * section. + * @type string[] $metrics + * Types of the metrics to report to this monitoring destination. + * Each type must be defined in + * [Service.metrics][google.api.Service.metrics] section. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Monitoring::initOnce(); + parent::__construct($data); + } + + /** + * The monitored resource type. The type must be defined in + * [Service.monitored_resources][google.api.Service.monitored_resources] + * section. + * + * Generated from protobuf field string monitored_resource = 1; + * @return string + */ + public function getMonitoredResource() + { + return $this->monitored_resource; + } + + /** + * The monitored resource type. The type must be defined in + * [Service.monitored_resources][google.api.Service.monitored_resources] + * section. + * + * Generated from protobuf field string monitored_resource = 1; + * @param string $var + * @return $this + */ + public function setMonitoredResource($var) + { + GPBUtil::checkString($var, True); + $this->monitored_resource = $var; + + return $this; + } + + /** + * Types of the metrics to report to this monitoring destination. + * Each type must be defined in + * [Service.metrics][google.api.Service.metrics] section. + * + * Generated from protobuf field repeated string metrics = 2; + * @return RepeatedField + */ + public function getMetrics() + { + return $this->metrics; + } + + /** + * Types of the metrics to report to this monitoring destination. + * Each type must be defined in + * [Service.metrics][google.api.Service.metrics] section. + * + * Generated from protobuf field repeated string metrics = 2; + * @param string[] $var + * @return $this + */ + public function setMetrics($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->metrics = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/NodeSettings.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/NodeSettings.php new file mode 100644 index 000000000000..3041432c49ee --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/NodeSettings.php @@ -0,0 +1,77 @@ +google.api.NodeSettings + */ +class NodeSettings extends \Google\Protobuf\Internal\Message +{ + /** + * Some settings. + * + * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; + */ + protected $common = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Api\CommonLanguageSettings $common + * Some settings. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Client::initOnce(); + parent::__construct($data); + } + + /** + * Some settings. + * + * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; + * @return \Google\Api\CommonLanguageSettings|null + */ + public function getCommon() + { + return $this->common; + } + + public function hasCommon() + { + return isset($this->common); + } + + public function clearCommon() + { + unset($this->common); + } + + /** + * Some settings. + * + * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; + * @param \Google\Api\CommonLanguageSettings $var + * @return $this + */ + public function setCommon($var) + { + GPBUtil::checkMessage($var, \Google\Api\CommonLanguageSettings::class); + $this->common = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/OAuthRequirements.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/OAuthRequirements.php new file mode 100644 index 000000000000..9ad55336d154 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/OAuthRequirements.php @@ -0,0 +1,96 @@ +google.api.OAuthRequirements + */ +class OAuthRequirements extends \Google\Protobuf\Internal\Message +{ + /** + * The list of publicly documented OAuth scopes that are allowed access. An + * OAuth token containing any of these scopes will be accepted. + * Example: + * canonical_scopes: https://www.googleapis.com/auth/calendar, + * https://www.googleapis.com/auth/calendar.read + * + * Generated from protobuf field string canonical_scopes = 1; + */ + protected $canonical_scopes = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $canonical_scopes + * The list of publicly documented OAuth scopes that are allowed access. An + * OAuth token containing any of these scopes will be accepted. + * Example: + * canonical_scopes: https://www.googleapis.com/auth/calendar, + * https://www.googleapis.com/auth/calendar.read + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Auth::initOnce(); + parent::__construct($data); + } + + /** + * The list of publicly documented OAuth scopes that are allowed access. An + * OAuth token containing any of these scopes will be accepted. + * Example: + * canonical_scopes: https://www.googleapis.com/auth/calendar, + * https://www.googleapis.com/auth/calendar.read + * + * Generated from protobuf field string canonical_scopes = 1; + * @return string + */ + public function getCanonicalScopes() + { + return $this->canonical_scopes; + } + + /** + * The list of publicly documented OAuth scopes that are allowed access. An + * OAuth token containing any of these scopes will be accepted. + * Example: + * canonical_scopes: https://www.googleapis.com/auth/calendar, + * https://www.googleapis.com/auth/calendar.read + * + * Generated from protobuf field string canonical_scopes = 1; + * @param string $var + * @return $this + */ + public function setCanonicalScopes($var) + { + GPBUtil::checkString($var, True); + $this->canonical_scopes = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Page.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Page.php new file mode 100644 index 000000000000..f172d0cbc038 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Page.php @@ -0,0 +1,200 @@ +google.api.Page + */ +class Page extends \Google\Protobuf\Internal\Message +{ + /** + * The name of the page. It will be used as an identity of the page to + * generate URI of the page, text of the link to this page in navigation, + * etc. The full page name (start from the root page name to this page + * concatenated with `.`) can be used as reference to the page in your + * documentation. For example: + *
pages:
+     * - name: Tutorial
+     *   content: (== include tutorial.md ==)
+     *   subpages:
+     *   - name: Java
+     *     content: (== include tutorial_java.md ==)
+     * 
+ * You can reference `Java` page using Markdown reference link syntax: + * `[Java][Tutorial.Java]`. + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * The Markdown content of the page. You can use ```(== include {path} + * ==)``` to include content from a Markdown file. The content can be used + * to produce the documentation page such as HTML format page. + * + * Generated from protobuf field string content = 2; + */ + protected $content = ''; + /** + * Subpages of this page. The order of subpages specified here will be + * honored in the generated docset. + * + * Generated from protobuf field repeated .google.api.Page subpages = 3; + */ + private $subpages; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * The name of the page. It will be used as an identity of the page to + * generate URI of the page, text of the link to this page in navigation, + * etc. The full page name (start from the root page name to this page + * concatenated with `.`) can be used as reference to the page in your + * documentation. For example: + *
pages:
+     *           - name: Tutorial
+     *             content: (== include tutorial.md ==)
+     *             subpages:
+     *             - name: Java
+     *               content: (== include tutorial_java.md ==)
+     *           
+ * You can reference `Java` page using Markdown reference link syntax: + * `[Java][Tutorial.Java]`. + * @type string $content + * The Markdown content of the page. You can use ```(== include {path} + * ==)``` to include content from a Markdown file. The content can be used + * to produce the documentation page such as HTML format page. + * @type \Google\Api\Page[] $subpages + * Subpages of this page. The order of subpages specified here will be + * honored in the generated docset. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Documentation::initOnce(); + parent::__construct($data); + } + + /** + * The name of the page. It will be used as an identity of the page to + * generate URI of the page, text of the link to this page in navigation, + * etc. The full page name (start from the root page name to this page + * concatenated with `.`) can be used as reference to the page in your + * documentation. For example: + *
pages:
+     * - name: Tutorial
+     *   content: (== include tutorial.md ==)
+     *   subpages:
+     *   - name: Java
+     *     content: (== include tutorial_java.md ==)
+     * 
+ * You can reference `Java` page using Markdown reference link syntax: + * `[Java][Tutorial.Java]`. + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name of the page. It will be used as an identity of the page to + * generate URI of the page, text of the link to this page in navigation, + * etc. The full page name (start from the root page name to this page + * concatenated with `.`) can be used as reference to the page in your + * documentation. For example: + *
pages:
+     * - name: Tutorial
+     *   content: (== include tutorial.md ==)
+     *   subpages:
+     *   - name: Java
+     *     content: (== include tutorial_java.md ==)
+     * 
+ * You can reference `Java` page using Markdown reference link syntax: + * `[Java][Tutorial.Java]`. + * + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * The Markdown content of the page. You can use ```(== include {path} + * ==)``` to include content from a Markdown file. The content can be used + * to produce the documentation page such as HTML format page. + * + * Generated from protobuf field string content = 2; + * @return string + */ + public function getContent() + { + return $this->content; + } + + /** + * The Markdown content of the page. You can use ```(== include {path} + * ==)``` to include content from a Markdown file. The content can be used + * to produce the documentation page such as HTML format page. + * + * Generated from protobuf field string content = 2; + * @param string $var + * @return $this + */ + public function setContent($var) + { + GPBUtil::checkString($var, True); + $this->content = $var; + + return $this; + } + + /** + * Subpages of this page. The order of subpages specified here will be + * honored in the generated docset. + * + * Generated from protobuf field repeated .google.api.Page subpages = 3; + * @return RepeatedField<\Google\Api\Page> + */ + public function getSubpages() + { + return $this->subpages; + } + + /** + * Subpages of this page. The order of subpages specified here will be + * honored in the generated docset. + * + * Generated from protobuf field repeated .google.api.Page subpages = 3; + * @param \Google\Api\Page[] $var + * @return $this + */ + public function setSubpages($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\Page::class); + $this->subpages = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/PhpSettings.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/PhpSettings.php new file mode 100644 index 000000000000..38cbabd68afb --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/PhpSettings.php @@ -0,0 +1,147 @@ +google.api.PhpSettings + */ +class PhpSettings extends \Google\Protobuf\Internal\Message +{ + /** + * Some settings. + * + * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; + */ + protected $common = null; + /** + * The package name to use in Php. Clobbers the php_namespace option + * set in the protobuf. This should be used **only** by APIs + * who have already set the language_settings.php.package_name" field + * in gapic.yaml. API teams should use the protobuf php_namespace option + * where possible. + * Example of a YAML configuration:: + * publishing: + * library_settings: + * php_settings: + * library_package: Google\Cloud\PubSub\V1 + * + * Generated from protobuf field string library_package = 2; + */ + protected $library_package = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Api\CommonLanguageSettings $common + * Some settings. + * @type string $library_package + * The package name to use in Php. Clobbers the php_namespace option + * set in the protobuf. This should be used **only** by APIs + * who have already set the language_settings.php.package_name" field + * in gapic.yaml. API teams should use the protobuf php_namespace option + * where possible. + * Example of a YAML configuration:: + * publishing: + * library_settings: + * php_settings: + * library_package: Google\Cloud\PubSub\V1 + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Client::initOnce(); + parent::__construct($data); + } + + /** + * Some settings. + * + * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; + * @return \Google\Api\CommonLanguageSettings|null + */ + public function getCommon() + { + return $this->common; + } + + public function hasCommon() + { + return isset($this->common); + } + + public function clearCommon() + { + unset($this->common); + } + + /** + * Some settings. + * + * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; + * @param \Google\Api\CommonLanguageSettings $var + * @return $this + */ + public function setCommon($var) + { + GPBUtil::checkMessage($var, \Google\Api\CommonLanguageSettings::class); + $this->common = $var; + + return $this; + } + + /** + * The package name to use in Php. Clobbers the php_namespace option + * set in the protobuf. This should be used **only** by APIs + * who have already set the language_settings.php.package_name" field + * in gapic.yaml. API teams should use the protobuf php_namespace option + * where possible. + * Example of a YAML configuration:: + * publishing: + * library_settings: + * php_settings: + * library_package: Google\Cloud\PubSub\V1 + * + * Generated from protobuf field string library_package = 2; + * @return string + */ + public function getLibraryPackage() + { + return $this->library_package; + } + + /** + * The package name to use in Php. Clobbers the php_namespace option + * set in the protobuf. This should be used **only** by APIs + * who have already set the language_settings.php.package_name" field + * in gapic.yaml. API teams should use the protobuf php_namespace option + * where possible. + * Example of a YAML configuration:: + * publishing: + * library_settings: + * php_settings: + * library_package: Google\Cloud\PubSub\V1 + * + * Generated from protobuf field string library_package = 2; + * @param string $var + * @return $this + */ + public function setLibraryPackage($var) + { + GPBUtil::checkString($var, True); + $this->library_package = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ProjectProperties.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ProjectProperties.php new file mode 100644 index 000000000000..7ffeb2f5fc6b --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ProjectProperties.php @@ -0,0 +1,80 @@ +google.api.ProjectProperties + */ +class ProjectProperties extends \Google\Protobuf\Internal\Message +{ + /** + * List of per consumer project-specific properties. + * + * Generated from protobuf field repeated .google.api.Property properties = 1; + */ + private $properties; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Api\Property[] $properties + * List of per consumer project-specific properties. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Consumer::initOnce(); + parent::__construct($data); + } + + /** + * List of per consumer project-specific properties. + * + * Generated from protobuf field repeated .google.api.Property properties = 1; + * @return RepeatedField<\Google\Api\Property> + */ + public function getProperties() + { + return $this->properties; + } + + /** + * List of per consumer project-specific properties. + * + * Generated from protobuf field repeated .google.api.Property properties = 1; + * @param \Google\Api\Property[] $var + * @return $this + */ + public function setProperties($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\Property::class); + $this->properties = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Property.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Property.php new file mode 100644 index 000000000000..18830cc2055e --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Property.php @@ -0,0 +1,142 @@ +google.api.Property + */ +class Property extends \Google\Protobuf\Internal\Message +{ + /** + * The name of the property (a.k.a key). + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * The type of this property. + * + * Generated from protobuf field .google.api.Property.PropertyType type = 2; + */ + protected $type = 0; + /** + * The description of the property + * + * Generated from protobuf field string description = 3; + */ + protected $description = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * The name of the property (a.k.a key). + * @type int $type + * The type of this property. + * @type string $description + * The description of the property + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Consumer::initOnce(); + parent::__construct($data); + } + + /** + * The name of the property (a.k.a key). + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name of the property (a.k.a key). + * + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * The type of this property. + * + * Generated from protobuf field .google.api.Property.PropertyType type = 2; + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * The type of this property. + * + * Generated from protobuf field .google.api.Property.PropertyType type = 2; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Api\Property\PropertyType::class); + $this->type = $var; + + return $this; + } + + /** + * The description of the property + * + * Generated from protobuf field string description = 3; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * The description of the property + * + * Generated from protobuf field string description = 3; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Property/PropertyType.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Property/PropertyType.php new file mode 100644 index 000000000000..e874e029a65c --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Property/PropertyType.php @@ -0,0 +1,75 @@ +google.api.Property.PropertyType + */ +class PropertyType +{ + /** + * The type is unspecified, and will result in an error. + * + * Generated from protobuf enum UNSPECIFIED = 0; + */ + const UNSPECIFIED = 0; + /** + * The type is `int64`. + * + * Generated from protobuf enum INT64 = 1; + */ + const INT64 = 1; + /** + * The type is `bool`. + * + * Generated from protobuf enum BOOL = 2; + */ + const BOOL = 2; + /** + * The type is `string`. + * + * Generated from protobuf enum STRING = 3; + */ + const STRING = 3; + /** + * The type is 'double'. + * + * Generated from protobuf enum DOUBLE = 4; + */ + const DOUBLE = 4; + + private static $valueToName = [ + self::UNSPECIFIED => 'UNSPECIFIED', + self::INT64 => 'INT64', + self::BOOL => 'BOOL', + self::STRING => 'STRING', + self::DOUBLE => 'DOUBLE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Publishing.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Publishing.php new file mode 100644 index 000000000000..74c394bb061b --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Publishing.php @@ -0,0 +1,453 @@ +google.api.Publishing + */ +class Publishing extends \Google\Protobuf\Internal\Message +{ + /** + * A list of API method settings, e.g. the behavior for methods that use the + * long-running operation pattern. + * + * Generated from protobuf field repeated .google.api.MethodSettings method_settings = 2; + */ + private $method_settings; + /** + * Link to a *public* URI where users can report issues. Example: + * https://issuetracker.google.com/issues/new?component=190865&template=1161103 + * + * Generated from protobuf field string new_issue_uri = 101; + */ + protected $new_issue_uri = ''; + /** + * Link to product home page. Example: + * https://cloud.google.com/asset-inventory/docs/overview + * + * Generated from protobuf field string documentation_uri = 102; + */ + protected $documentation_uri = ''; + /** + * Used as a tracking tag when collecting data about the APIs developer + * relations artifacts like docs, packages delivered to package managers, + * etc. Example: "speech". + * + * Generated from protobuf field string api_short_name = 103; + */ + protected $api_short_name = ''; + /** + * GitHub label to apply to issues and pull requests opened for this API. + * + * Generated from protobuf field string github_label = 104; + */ + protected $github_label = ''; + /** + * GitHub teams to be added to CODEOWNERS in the directory in GitHub + * containing source code for the client libraries for this API. + * + * Generated from protobuf field repeated string codeowner_github_teams = 105; + */ + private $codeowner_github_teams; + /** + * A prefix used in sample code when demarking regions to be included in + * documentation. + * + * Generated from protobuf field string doc_tag_prefix = 106; + */ + protected $doc_tag_prefix = ''; + /** + * For whom the client library is being published. + * + * Generated from protobuf field .google.api.ClientLibraryOrganization organization = 107; + */ + protected $organization = 0; + /** + * Client library settings. If the same version string appears multiple + * times in this list, then the last one wins. Settings from earlier + * settings with the same version string are discarded. + * + * Generated from protobuf field repeated .google.api.ClientLibrarySettings library_settings = 109; + */ + private $library_settings; + /** + * Optional link to proto reference documentation. Example: + * https://cloud.google.com/pubsub/lite/docs/reference/rpc + * + * Generated from protobuf field string proto_reference_documentation_uri = 110; + */ + protected $proto_reference_documentation_uri = ''; + /** + * Optional link to REST reference documentation. Example: + * https://cloud.google.com/pubsub/lite/docs/reference/rest + * + * Generated from protobuf field string rest_reference_documentation_uri = 111; + */ + protected $rest_reference_documentation_uri = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Api\MethodSettings[] $method_settings + * A list of API method settings, e.g. the behavior for methods that use the + * long-running operation pattern. + * @type string $new_issue_uri + * Link to a *public* URI where users can report issues. Example: + * https://issuetracker.google.com/issues/new?component=190865&template=1161103 + * @type string $documentation_uri + * Link to product home page. Example: + * https://cloud.google.com/asset-inventory/docs/overview + * @type string $api_short_name + * Used as a tracking tag when collecting data about the APIs developer + * relations artifacts like docs, packages delivered to package managers, + * etc. Example: "speech". + * @type string $github_label + * GitHub label to apply to issues and pull requests opened for this API. + * @type string[] $codeowner_github_teams + * GitHub teams to be added to CODEOWNERS in the directory in GitHub + * containing source code for the client libraries for this API. + * @type string $doc_tag_prefix + * A prefix used in sample code when demarking regions to be included in + * documentation. + * @type int $organization + * For whom the client library is being published. + * @type \Google\Api\ClientLibrarySettings[] $library_settings + * Client library settings. If the same version string appears multiple + * times in this list, then the last one wins. Settings from earlier + * settings with the same version string are discarded. + * @type string $proto_reference_documentation_uri + * Optional link to proto reference documentation. Example: + * https://cloud.google.com/pubsub/lite/docs/reference/rpc + * @type string $rest_reference_documentation_uri + * Optional link to REST reference documentation. Example: + * https://cloud.google.com/pubsub/lite/docs/reference/rest + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Client::initOnce(); + parent::__construct($data); + } + + /** + * A list of API method settings, e.g. the behavior for methods that use the + * long-running operation pattern. + * + * Generated from protobuf field repeated .google.api.MethodSettings method_settings = 2; + * @return RepeatedField<\Google\Api\MethodSettings> + */ + public function getMethodSettings() + { + return $this->method_settings; + } + + /** + * A list of API method settings, e.g. the behavior for methods that use the + * long-running operation pattern. + * + * Generated from protobuf field repeated .google.api.MethodSettings method_settings = 2; + * @param \Google\Api\MethodSettings[] $var + * @return $this + */ + public function setMethodSettings($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\MethodSettings::class); + $this->method_settings = $arr; + + return $this; + } + + /** + * Link to a *public* URI where users can report issues. Example: + * https://issuetracker.google.com/issues/new?component=190865&template=1161103 + * + * Generated from protobuf field string new_issue_uri = 101; + * @return string + */ + public function getNewIssueUri() + { + return $this->new_issue_uri; + } + + /** + * Link to a *public* URI where users can report issues. Example: + * https://issuetracker.google.com/issues/new?component=190865&template=1161103 + * + * Generated from protobuf field string new_issue_uri = 101; + * @param string $var + * @return $this + */ + public function setNewIssueUri($var) + { + GPBUtil::checkString($var, True); + $this->new_issue_uri = $var; + + return $this; + } + + /** + * Link to product home page. Example: + * https://cloud.google.com/asset-inventory/docs/overview + * + * Generated from protobuf field string documentation_uri = 102; + * @return string + */ + public function getDocumentationUri() + { + return $this->documentation_uri; + } + + /** + * Link to product home page. Example: + * https://cloud.google.com/asset-inventory/docs/overview + * + * Generated from protobuf field string documentation_uri = 102; + * @param string $var + * @return $this + */ + public function setDocumentationUri($var) + { + GPBUtil::checkString($var, True); + $this->documentation_uri = $var; + + return $this; + } + + /** + * Used as a tracking tag when collecting data about the APIs developer + * relations artifacts like docs, packages delivered to package managers, + * etc. Example: "speech". + * + * Generated from protobuf field string api_short_name = 103; + * @return string + */ + public function getApiShortName() + { + return $this->api_short_name; + } + + /** + * Used as a tracking tag when collecting data about the APIs developer + * relations artifacts like docs, packages delivered to package managers, + * etc. Example: "speech". + * + * Generated from protobuf field string api_short_name = 103; + * @param string $var + * @return $this + */ + public function setApiShortName($var) + { + GPBUtil::checkString($var, True); + $this->api_short_name = $var; + + return $this; + } + + /** + * GitHub label to apply to issues and pull requests opened for this API. + * + * Generated from protobuf field string github_label = 104; + * @return string + */ + public function getGithubLabel() + { + return $this->github_label; + } + + /** + * GitHub label to apply to issues and pull requests opened for this API. + * + * Generated from protobuf field string github_label = 104; + * @param string $var + * @return $this + */ + public function setGithubLabel($var) + { + GPBUtil::checkString($var, True); + $this->github_label = $var; + + return $this; + } + + /** + * GitHub teams to be added to CODEOWNERS in the directory in GitHub + * containing source code for the client libraries for this API. + * + * Generated from protobuf field repeated string codeowner_github_teams = 105; + * @return RepeatedField + */ + public function getCodeownerGithubTeams() + { + return $this->codeowner_github_teams; + } + + /** + * GitHub teams to be added to CODEOWNERS in the directory in GitHub + * containing source code for the client libraries for this API. + * + * Generated from protobuf field repeated string codeowner_github_teams = 105; + * @param string[] $var + * @return $this + */ + public function setCodeownerGithubTeams($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->codeowner_github_teams = $arr; + + return $this; + } + + /** + * A prefix used in sample code when demarking regions to be included in + * documentation. + * + * Generated from protobuf field string doc_tag_prefix = 106; + * @return string + */ + public function getDocTagPrefix() + { + return $this->doc_tag_prefix; + } + + /** + * A prefix used in sample code when demarking regions to be included in + * documentation. + * + * Generated from protobuf field string doc_tag_prefix = 106; + * @param string $var + * @return $this + */ + public function setDocTagPrefix($var) + { + GPBUtil::checkString($var, True); + $this->doc_tag_prefix = $var; + + return $this; + } + + /** + * For whom the client library is being published. + * + * Generated from protobuf field .google.api.ClientLibraryOrganization organization = 107; + * @return int + */ + public function getOrganization() + { + return $this->organization; + } + + /** + * For whom the client library is being published. + * + * Generated from protobuf field .google.api.ClientLibraryOrganization organization = 107; + * @param int $var + * @return $this + */ + public function setOrganization($var) + { + GPBUtil::checkEnum($var, \Google\Api\ClientLibraryOrganization::class); + $this->organization = $var; + + return $this; + } + + /** + * Client library settings. If the same version string appears multiple + * times in this list, then the last one wins. Settings from earlier + * settings with the same version string are discarded. + * + * Generated from protobuf field repeated .google.api.ClientLibrarySettings library_settings = 109; + * @return RepeatedField<\Google\Api\ClientLibrarySettings> + */ + public function getLibrarySettings() + { + return $this->library_settings; + } + + /** + * Client library settings. If the same version string appears multiple + * times in this list, then the last one wins. Settings from earlier + * settings with the same version string are discarded. + * + * Generated from protobuf field repeated .google.api.ClientLibrarySettings library_settings = 109; + * @param \Google\Api\ClientLibrarySettings[] $var + * @return $this + */ + public function setLibrarySettings($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\ClientLibrarySettings::class); + $this->library_settings = $arr; + + return $this; + } + + /** + * Optional link to proto reference documentation. Example: + * https://cloud.google.com/pubsub/lite/docs/reference/rpc + * + * Generated from protobuf field string proto_reference_documentation_uri = 110; + * @return string + */ + public function getProtoReferenceDocumentationUri() + { + return $this->proto_reference_documentation_uri; + } + + /** + * Optional link to proto reference documentation. Example: + * https://cloud.google.com/pubsub/lite/docs/reference/rpc + * + * Generated from protobuf field string proto_reference_documentation_uri = 110; + * @param string $var + * @return $this + */ + public function setProtoReferenceDocumentationUri($var) + { + GPBUtil::checkString($var, True); + $this->proto_reference_documentation_uri = $var; + + return $this; + } + + /** + * Optional link to REST reference documentation. Example: + * https://cloud.google.com/pubsub/lite/docs/reference/rest + * + * Generated from protobuf field string rest_reference_documentation_uri = 111; + * @return string + */ + public function getRestReferenceDocumentationUri() + { + return $this->rest_reference_documentation_uri; + } + + /** + * Optional link to REST reference documentation. Example: + * https://cloud.google.com/pubsub/lite/docs/reference/rest + * + * Generated from protobuf field string rest_reference_documentation_uri = 111; + * @param string $var + * @return $this + */ + public function setRestReferenceDocumentationUri($var) + { + GPBUtil::checkString($var, True); + $this->rest_reference_documentation_uri = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/PythonSettings.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/PythonSettings.php new file mode 100644 index 000000000000..66bd27f0fbfa --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/PythonSettings.php @@ -0,0 +1,121 @@ +google.api.PythonSettings + */ +class PythonSettings extends \Google\Protobuf\Internal\Message +{ + /** + * Some settings. + * + * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; + */ + protected $common = null; + /** + * Experimental features to be included during client library generation. + * + * Generated from protobuf field .google.api.PythonSettings.ExperimentalFeatures experimental_features = 2; + */ + protected $experimental_features = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Api\CommonLanguageSettings $common + * Some settings. + * @type \Google\Api\PythonSettings\ExperimentalFeatures $experimental_features + * Experimental features to be included during client library generation. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Client::initOnce(); + parent::__construct($data); + } + + /** + * Some settings. + * + * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; + * @return \Google\Api\CommonLanguageSettings|null + */ + public function getCommon() + { + return $this->common; + } + + public function hasCommon() + { + return isset($this->common); + } + + public function clearCommon() + { + unset($this->common); + } + + /** + * Some settings. + * + * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; + * @param \Google\Api\CommonLanguageSettings $var + * @return $this + */ + public function setCommon($var) + { + GPBUtil::checkMessage($var, \Google\Api\CommonLanguageSettings::class); + $this->common = $var; + + return $this; + } + + /** + * Experimental features to be included during client library generation. + * + * Generated from protobuf field .google.api.PythonSettings.ExperimentalFeatures experimental_features = 2; + * @return \Google\Api\PythonSettings\ExperimentalFeatures|null + */ + public function getExperimentalFeatures() + { + return $this->experimental_features; + } + + public function hasExperimentalFeatures() + { + return isset($this->experimental_features); + } + + public function clearExperimentalFeatures() + { + unset($this->experimental_features); + } + + /** + * Experimental features to be included during client library generation. + * + * Generated from protobuf field .google.api.PythonSettings.ExperimentalFeatures experimental_features = 2; + * @param \Google\Api\PythonSettings\ExperimentalFeatures $var + * @return $this + */ + public function setExperimentalFeatures($var) + { + GPBUtil::checkMessage($var, \Google\Api\PythonSettings\ExperimentalFeatures::class); + $this->experimental_features = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/PythonSettings/ExperimentalFeatures.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/PythonSettings/ExperimentalFeatures.php new file mode 100644 index 000000000000..a1230aea0cb9 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/PythonSettings/ExperimentalFeatures.php @@ -0,0 +1,173 @@ +google.api.PythonSettings.ExperimentalFeatures + */ +class ExperimentalFeatures extends \Google\Protobuf\Internal\Message +{ + /** + * Enables generation of asynchronous REST clients if `rest` transport is + * enabled. By default, asynchronous REST clients will not be generated. + * This feature will be enabled by default 1 month after launching the + * feature in preview packages. + * + * Generated from protobuf field bool rest_async_io_enabled = 1; + */ + protected $rest_async_io_enabled = false; + /** + * Enables generation of protobuf code using new types that are more + * Pythonic which are included in `protobuf>=5.29.x`. This feature will be + * enabled by default 1 month after launching the feature in preview + * packages. + * + * Generated from protobuf field bool protobuf_pythonic_types_enabled = 2; + */ + protected $protobuf_pythonic_types_enabled = false; + /** + * Disables generation of an unversioned Python package for this client + * library. This means that the module names will need to be versioned in + * import statements. For example `import google.cloud.library_v2` instead + * of `import google.cloud.library`. + * + * Generated from protobuf field bool unversioned_package_disabled = 3; + */ + protected $unversioned_package_disabled = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $rest_async_io_enabled + * Enables generation of asynchronous REST clients if `rest` transport is + * enabled. By default, asynchronous REST clients will not be generated. + * This feature will be enabled by default 1 month after launching the + * feature in preview packages. + * @type bool $protobuf_pythonic_types_enabled + * Enables generation of protobuf code using new types that are more + * Pythonic which are included in `protobuf>=5.29.x`. This feature will be + * enabled by default 1 month after launching the feature in preview + * packages. + * @type bool $unversioned_package_disabled + * Disables generation of an unversioned Python package for this client + * library. This means that the module names will need to be versioned in + * import statements. For example `import google.cloud.library_v2` instead + * of `import google.cloud.library`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Client::initOnce(); + parent::__construct($data); + } + + /** + * Enables generation of asynchronous REST clients if `rest` transport is + * enabled. By default, asynchronous REST clients will not be generated. + * This feature will be enabled by default 1 month after launching the + * feature in preview packages. + * + * Generated from protobuf field bool rest_async_io_enabled = 1; + * @return bool + */ + public function getRestAsyncIoEnabled() + { + return $this->rest_async_io_enabled; + } + + /** + * Enables generation of asynchronous REST clients if `rest` transport is + * enabled. By default, asynchronous REST clients will not be generated. + * This feature will be enabled by default 1 month after launching the + * feature in preview packages. + * + * Generated from protobuf field bool rest_async_io_enabled = 1; + * @param bool $var + * @return $this + */ + public function setRestAsyncIoEnabled($var) + { + GPBUtil::checkBool($var); + $this->rest_async_io_enabled = $var; + + return $this; + } + + /** + * Enables generation of protobuf code using new types that are more + * Pythonic which are included in `protobuf>=5.29.x`. This feature will be + * enabled by default 1 month after launching the feature in preview + * packages. + * + * Generated from protobuf field bool protobuf_pythonic_types_enabled = 2; + * @return bool + */ + public function getProtobufPythonicTypesEnabled() + { + return $this->protobuf_pythonic_types_enabled; + } + + /** + * Enables generation of protobuf code using new types that are more + * Pythonic which are included in `protobuf>=5.29.x`. This feature will be + * enabled by default 1 month after launching the feature in preview + * packages. + * + * Generated from protobuf field bool protobuf_pythonic_types_enabled = 2; + * @param bool $var + * @return $this + */ + public function setProtobufPythonicTypesEnabled($var) + { + GPBUtil::checkBool($var); + $this->protobuf_pythonic_types_enabled = $var; + + return $this; + } + + /** + * Disables generation of an unversioned Python package for this client + * library. This means that the module names will need to be versioned in + * import statements. For example `import google.cloud.library_v2` instead + * of `import google.cloud.library`. + * + * Generated from protobuf field bool unversioned_package_disabled = 3; + * @return bool + */ + public function getUnversionedPackageDisabled() + { + return $this->unversioned_package_disabled; + } + + /** + * Disables generation of an unversioned Python package for this client + * library. This means that the module names will need to be versioned in + * import statements. For example `import google.cloud.library_v2` instead + * of `import google.cloud.library`. + * + * Generated from protobuf field bool unversioned_package_disabled = 3; + * @param bool $var + * @return $this + */ + public function setUnversionedPackageDisabled($var) + { + GPBUtil::checkBool($var); + $this->unversioned_package_disabled = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Quota.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Quota.php new file mode 100644 index 000000000000..bea8ed890068 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Quota.php @@ -0,0 +1,144 @@ +google.api.Quota + */ +class Quota extends \Google\Protobuf\Internal\Message +{ + /** + * List of QuotaLimit definitions for the service. + * + * Generated from protobuf field repeated .google.api.QuotaLimit limits = 3; + */ + private $limits; + /** + * List of MetricRule definitions, each one mapping a selected method to one + * or more metrics. + * + * Generated from protobuf field repeated .google.api.MetricRule metric_rules = 4; + */ + private $metric_rules; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Api\QuotaLimit[] $limits + * List of QuotaLimit definitions for the service. + * @type \Google\Api\MetricRule[] $metric_rules + * List of MetricRule definitions, each one mapping a selected method to one + * or more metrics. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Quota::initOnce(); + parent::__construct($data); + } + + /** + * List of QuotaLimit definitions for the service. + * + * Generated from protobuf field repeated .google.api.QuotaLimit limits = 3; + * @return RepeatedField<\Google\Api\QuotaLimit> + */ + public function getLimits() + { + return $this->limits; + } + + /** + * List of QuotaLimit definitions for the service. + * + * Generated from protobuf field repeated .google.api.QuotaLimit limits = 3; + * @param \Google\Api\QuotaLimit[] $var + * @return $this + */ + public function setLimits($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\QuotaLimit::class); + $this->limits = $arr; + + return $this; + } + + /** + * List of MetricRule definitions, each one mapping a selected method to one + * or more metrics. + * + * Generated from protobuf field repeated .google.api.MetricRule metric_rules = 4; + * @return RepeatedField<\Google\Api\MetricRule> + */ + public function getMetricRules() + { + return $this->metric_rules; + } + + /** + * List of MetricRule definitions, each one mapping a selected method to one + * or more metrics. + * + * Generated from protobuf field repeated .google.api.MetricRule metric_rules = 4; + * @param \Google\Api\MetricRule[] $var + * @return $this + */ + public function setMetricRules($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\MetricRule::class); + $this->metric_rules = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/QuotaLimit.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/QuotaLimit.php new file mode 100644 index 000000000000..457cc8839770 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/QuotaLimit.php @@ -0,0 +1,527 @@ +google.api.QuotaLimit + */ +class QuotaLimit extends \Google\Protobuf\Internal\Message +{ + /** + * Name of the quota limit. + * The name must be provided, and it must be unique within the service. The + * name can only include alphanumeric characters as well as '-'. + * The maximum length of the limit name is 64 characters. + * + * Generated from protobuf field string name = 6; + */ + protected $name = ''; + /** + * Optional. User-visible, extended description for this quota limit. + * Should be used only when more context is needed to understand this limit + * than provided by the limit's display name (see: `display_name`). + * + * Generated from protobuf field string description = 2; + */ + protected $description = ''; + /** + * Default number of tokens that can be consumed during the specified + * duration. This is the number of tokens assigned when a client + * application developer activates the service for his/her project. + * Specifying a value of 0 will block all requests. This can be used if you + * are provisioning quota to selected consumers and blocking others. + * Similarly, a value of -1 will indicate an unlimited quota. No other + * negative values are allowed. + * Used by group-based quotas only. + * + * Generated from protobuf field int64 default_limit = 3; + */ + protected $default_limit = 0; + /** + * Maximum number of tokens that can be consumed during the specified + * duration. Client application developers can override the default limit up + * to this maximum. If specified, this value cannot be set to a value less + * than the default limit. If not specified, it is set to the default limit. + * To allow clients to apply overrides with no upper bound, set this to -1, + * indicating unlimited maximum quota. + * Used by group-based quotas only. + * + * Generated from protobuf field int64 max_limit = 4; + */ + protected $max_limit = 0; + /** + * Free tier value displayed in the Developers Console for this limit. + * The free tier is the number of tokens that will be subtracted from the + * billed amount when billing is enabled. + * This field can only be set on a limit with duration "1d", in a billable + * group; it is invalid on any other limit. If this field is not set, it + * defaults to 0, indicating that there is no free tier for this service. + * Used by group-based quotas only. + * + * Generated from protobuf field int64 free_tier = 7; + */ + protected $free_tier = 0; + /** + * Duration of this limit in textual notation. Must be "100s" or "1d". + * Used by group-based quotas only. + * + * Generated from protobuf field string duration = 5; + */ + protected $duration = ''; + /** + * The name of the metric this quota limit applies to. The quota limits with + * the same metric will be checked together during runtime. The metric must be + * defined within the service config. + * + * Generated from protobuf field string metric = 8; + */ + protected $metric = ''; + /** + * Specify the unit of the quota limit. It uses the same syntax as + * [MetricDescriptor.unit][google.api.MetricDescriptor.unit]. The supported + * unit kinds are determined by the quota backend system. + * Here are some examples: + * * "1/min/{project}" for quota per minute per project. + * Note: the order of unit components is insignificant. + * The "1" at the beginning is required to follow the metric unit syntax. + * + * Generated from protobuf field string unit = 9; + */ + protected $unit = ''; + /** + * Tiered limit values. You must specify this as a key:value pair, with an + * integer value that is the maximum number of requests allowed for the + * specified unit. Currently only STANDARD is supported. + * + * Generated from protobuf field map values = 10; + */ + private $values; + /** + * User-visible display name for this limit. + * Optional. If not set, the UI will provide a default display name based on + * the quota configuration. This field can be used to override the default + * display name generated from the configuration. + * + * Generated from protobuf field string display_name = 12; + */ + protected $display_name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Name of the quota limit. + * The name must be provided, and it must be unique within the service. The + * name can only include alphanumeric characters as well as '-'. + * The maximum length of the limit name is 64 characters. + * @type string $description + * Optional. User-visible, extended description for this quota limit. + * Should be used only when more context is needed to understand this limit + * than provided by the limit's display name (see: `display_name`). + * @type int|string $default_limit + * Default number of tokens that can be consumed during the specified + * duration. This is the number of tokens assigned when a client + * application developer activates the service for his/her project. + * Specifying a value of 0 will block all requests. This can be used if you + * are provisioning quota to selected consumers and blocking others. + * Similarly, a value of -1 will indicate an unlimited quota. No other + * negative values are allowed. + * Used by group-based quotas only. + * @type int|string $max_limit + * Maximum number of tokens that can be consumed during the specified + * duration. Client application developers can override the default limit up + * to this maximum. If specified, this value cannot be set to a value less + * than the default limit. If not specified, it is set to the default limit. + * To allow clients to apply overrides with no upper bound, set this to -1, + * indicating unlimited maximum quota. + * Used by group-based quotas only. + * @type int|string $free_tier + * Free tier value displayed in the Developers Console for this limit. + * The free tier is the number of tokens that will be subtracted from the + * billed amount when billing is enabled. + * This field can only be set on a limit with duration "1d", in a billable + * group; it is invalid on any other limit. If this field is not set, it + * defaults to 0, indicating that there is no free tier for this service. + * Used by group-based quotas only. + * @type string $duration + * Duration of this limit in textual notation. Must be "100s" or "1d". + * Used by group-based quotas only. + * @type string $metric + * The name of the metric this quota limit applies to. The quota limits with + * the same metric will be checked together during runtime. The metric must be + * defined within the service config. + * @type string $unit + * Specify the unit of the quota limit. It uses the same syntax as + * [MetricDescriptor.unit][google.api.MetricDescriptor.unit]. The supported + * unit kinds are determined by the quota backend system. + * Here are some examples: + * * "1/min/{project}" for quota per minute per project. + * Note: the order of unit components is insignificant. + * The "1" at the beginning is required to follow the metric unit syntax. + * @type array|\Google\Protobuf\Internal\MapField $values + * Tiered limit values. You must specify this as a key:value pair, with an + * integer value that is the maximum number of requests allowed for the + * specified unit. Currently only STANDARD is supported. + * @type string $display_name + * User-visible display name for this limit. + * Optional. If not set, the UI will provide a default display name based on + * the quota configuration. This field can be used to override the default + * display name generated from the configuration. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Quota::initOnce(); + parent::__construct($data); + } + + /** + * Name of the quota limit. + * The name must be provided, and it must be unique within the service. The + * name can only include alphanumeric characters as well as '-'. + * The maximum length of the limit name is 64 characters. + * + * Generated from protobuf field string name = 6; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Name of the quota limit. + * The name must be provided, and it must be unique within the service. The + * name can only include alphanumeric characters as well as '-'. + * The maximum length of the limit name is 64 characters. + * + * Generated from protobuf field string name = 6; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Optional. User-visible, extended description for this quota limit. + * Should be used only when more context is needed to understand this limit + * than provided by the limit's display name (see: `display_name`). + * + * Generated from protobuf field string description = 2; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Optional. User-visible, extended description for this quota limit. + * Should be used only when more context is needed to understand this limit + * than provided by the limit's display name (see: `display_name`). + * + * Generated from protobuf field string description = 2; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * Default number of tokens that can be consumed during the specified + * duration. This is the number of tokens assigned when a client + * application developer activates the service for his/her project. + * Specifying a value of 0 will block all requests. This can be used if you + * are provisioning quota to selected consumers and blocking others. + * Similarly, a value of -1 will indicate an unlimited quota. No other + * negative values are allowed. + * Used by group-based quotas only. + * + * Generated from protobuf field int64 default_limit = 3; + * @return int|string + */ + public function getDefaultLimit() + { + return $this->default_limit; + } + + /** + * Default number of tokens that can be consumed during the specified + * duration. This is the number of tokens assigned when a client + * application developer activates the service for his/her project. + * Specifying a value of 0 will block all requests. This can be used if you + * are provisioning quota to selected consumers and blocking others. + * Similarly, a value of -1 will indicate an unlimited quota. No other + * negative values are allowed. + * Used by group-based quotas only. + * + * Generated from protobuf field int64 default_limit = 3; + * @param int|string $var + * @return $this + */ + public function setDefaultLimit($var) + { + GPBUtil::checkInt64($var); + $this->default_limit = $var; + + return $this; + } + + /** + * Maximum number of tokens that can be consumed during the specified + * duration. Client application developers can override the default limit up + * to this maximum. If specified, this value cannot be set to a value less + * than the default limit. If not specified, it is set to the default limit. + * To allow clients to apply overrides with no upper bound, set this to -1, + * indicating unlimited maximum quota. + * Used by group-based quotas only. + * + * Generated from protobuf field int64 max_limit = 4; + * @return int|string + */ + public function getMaxLimit() + { + return $this->max_limit; + } + + /** + * Maximum number of tokens that can be consumed during the specified + * duration. Client application developers can override the default limit up + * to this maximum. If specified, this value cannot be set to a value less + * than the default limit. If not specified, it is set to the default limit. + * To allow clients to apply overrides with no upper bound, set this to -1, + * indicating unlimited maximum quota. + * Used by group-based quotas only. + * + * Generated from protobuf field int64 max_limit = 4; + * @param int|string $var + * @return $this + */ + public function setMaxLimit($var) + { + GPBUtil::checkInt64($var); + $this->max_limit = $var; + + return $this; + } + + /** + * Free tier value displayed in the Developers Console for this limit. + * The free tier is the number of tokens that will be subtracted from the + * billed amount when billing is enabled. + * This field can only be set on a limit with duration "1d", in a billable + * group; it is invalid on any other limit. If this field is not set, it + * defaults to 0, indicating that there is no free tier for this service. + * Used by group-based quotas only. + * + * Generated from protobuf field int64 free_tier = 7; + * @return int|string + */ + public function getFreeTier() + { + return $this->free_tier; + } + + /** + * Free tier value displayed in the Developers Console for this limit. + * The free tier is the number of tokens that will be subtracted from the + * billed amount when billing is enabled. + * This field can only be set on a limit with duration "1d", in a billable + * group; it is invalid on any other limit. If this field is not set, it + * defaults to 0, indicating that there is no free tier for this service. + * Used by group-based quotas only. + * + * Generated from protobuf field int64 free_tier = 7; + * @param int|string $var + * @return $this + */ + public function setFreeTier($var) + { + GPBUtil::checkInt64($var); + $this->free_tier = $var; + + return $this; + } + + /** + * Duration of this limit in textual notation. Must be "100s" or "1d". + * Used by group-based quotas only. + * + * Generated from protobuf field string duration = 5; + * @return string + */ + public function getDuration() + { + return $this->duration; + } + + /** + * Duration of this limit in textual notation. Must be "100s" or "1d". + * Used by group-based quotas only. + * + * Generated from protobuf field string duration = 5; + * @param string $var + * @return $this + */ + public function setDuration($var) + { + GPBUtil::checkString($var, True); + $this->duration = $var; + + return $this; + } + + /** + * The name of the metric this quota limit applies to. The quota limits with + * the same metric will be checked together during runtime. The metric must be + * defined within the service config. + * + * Generated from protobuf field string metric = 8; + * @return string + */ + public function getMetric() + { + return $this->metric; + } + + /** + * The name of the metric this quota limit applies to. The quota limits with + * the same metric will be checked together during runtime. The metric must be + * defined within the service config. + * + * Generated from protobuf field string metric = 8; + * @param string $var + * @return $this + */ + public function setMetric($var) + { + GPBUtil::checkString($var, True); + $this->metric = $var; + + return $this; + } + + /** + * Specify the unit of the quota limit. It uses the same syntax as + * [MetricDescriptor.unit][google.api.MetricDescriptor.unit]. The supported + * unit kinds are determined by the quota backend system. + * Here are some examples: + * * "1/min/{project}" for quota per minute per project. + * Note: the order of unit components is insignificant. + * The "1" at the beginning is required to follow the metric unit syntax. + * + * Generated from protobuf field string unit = 9; + * @return string + */ + public function getUnit() + { + return $this->unit; + } + + /** + * Specify the unit of the quota limit. It uses the same syntax as + * [MetricDescriptor.unit][google.api.MetricDescriptor.unit]. The supported + * unit kinds are determined by the quota backend system. + * Here are some examples: + * * "1/min/{project}" for quota per minute per project. + * Note: the order of unit components is insignificant. + * The "1" at the beginning is required to follow the metric unit syntax. + * + * Generated from protobuf field string unit = 9; + * @param string $var + * @return $this + */ + public function setUnit($var) + { + GPBUtil::checkString($var, True); + $this->unit = $var; + + return $this; + } + + /** + * Tiered limit values. You must specify this as a key:value pair, with an + * integer value that is the maximum number of requests allowed for the + * specified unit. Currently only STANDARD is supported. + * + * Generated from protobuf field map values = 10; + * @return \Google\Protobuf\Internal\MapField + */ + public function getValues() + { + return $this->values; + } + + /** + * Tiered limit values. You must specify this as a key:value pair, with an + * integer value that is the maximum number of requests allowed for the + * specified unit. Currently only STANDARD is supported. + * + * Generated from protobuf field map values = 10; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setValues($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::INT64); + $this->values = $arr; + + return $this; + } + + /** + * User-visible display name for this limit. + * Optional. If not set, the UI will provide a default display name based on + * the quota configuration. This field can be used to override the default + * display name generated from the configuration. + * + * Generated from protobuf field string display_name = 12; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * User-visible display name for this limit. + * Optional. If not set, the UI will provide a default display name based on + * the quota configuration. This field can be used to override the default + * display name generated from the configuration. + * + * Generated from protobuf field string display_name = 12; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ResourceDescriptor.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ResourceDescriptor.php new file mode 100644 index 000000000000..f6142bffc644 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ResourceDescriptor.php @@ -0,0 +1,495 @@ +google.api.ResourceDescriptor + */ +class ResourceDescriptor extends \Google\Protobuf\Internal\Message +{ + /** + * The resource type. It must be in the format of + * {service_name}/{resource_type_kind}. The `resource_type_kind` must be + * singular and must not include version numbers. + * Example: `storage.googleapis.com/Bucket` + * The value of the resource_type_kind must follow the regular expression + * /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and + * should use PascalCase (UpperCamelCase). The maximum number of + * characters allowed for the `resource_type_kind` is 100. + * + * Generated from protobuf field string type = 1; + */ + protected $type = ''; + /** + * Optional. The relative resource name pattern associated with this resource + * type. The DNS prefix of the full resource name shouldn't be specified here. + * The path pattern must follow the syntax, which aligns with HTTP binding + * syntax: + * Template = Segment { "/" Segment } ; + * Segment = LITERAL | Variable ; + * Variable = "{" LITERAL "}" ; + * Examples: + * - "projects/{project}/topics/{topic}" + * - "projects/{project}/knowledgeBases/{knowledge_base}" + * The components in braces correspond to the IDs for each resource in the + * hierarchy. It is expected that, if multiple patterns are provided, + * the same component name (e.g. "project") refers to IDs of the same + * type of resource. + * + * Generated from protobuf field repeated string pattern = 2; + */ + private $pattern; + /** + * Optional. The field on the resource that designates the resource name + * field. If omitted, this is assumed to be "name". + * + * Generated from protobuf field string name_field = 3; + */ + protected $name_field = ''; + /** + * Optional. The historical or future-looking state of the resource pattern. + * Example: + * // The InspectTemplate message originally only supported resource + * // names with organization, and project was added later. + * message InspectTemplate { + * option (google.api.resource) = { + * type: "dlp.googleapis.com/InspectTemplate" + * pattern: + * "organizations/{organization}/inspectTemplates/{inspect_template}" + * pattern: "projects/{project}/inspectTemplates/{inspect_template}" + * history: ORIGINALLY_SINGLE_PATTERN + * }; + * } + * + * Generated from protobuf field .google.api.ResourceDescriptor.History history = 4; + */ + protected $history = 0; + /** + * The plural name used in the resource name and permission names, such as + * 'projects' for the resource name of 'projects/{project}' and the permission + * name of 'cloudresourcemanager.googleapis.com/projects.get'. One exception + * to this is for Nested Collections that have stuttering names, as defined + * in [AIP-122](https://google.aip.dev/122#nested-collections), where the + * collection ID in the resource name pattern does not necessarily directly + * match the `plural` value. + * It is the same concept of the `plural` field in k8s CRD spec + * https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ + * Note: The plural form is required even for singleton resources. See + * https://aip.dev/156 + * + * Generated from protobuf field string plural = 5; + */ + protected $plural = ''; + /** + * The same concept of the `singular` field in k8s CRD spec + * https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ + * Such as "project" for the `resourcemanager.googleapis.com/Project` type. + * + * Generated from protobuf field string singular = 6; + */ + protected $singular = ''; + /** + * Style flag(s) for this resource. + * These indicate that a resource is expected to conform to a given + * style. See the specific style flags for additional information. + * + * Generated from protobuf field repeated .google.api.ResourceDescriptor.Style style = 10; + */ + private $style; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $type + * The resource type. It must be in the format of + * {service_name}/{resource_type_kind}. The `resource_type_kind` must be + * singular and must not include version numbers. + * Example: `storage.googleapis.com/Bucket` + * The value of the resource_type_kind must follow the regular expression + * /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and + * should use PascalCase (UpperCamelCase). The maximum number of + * characters allowed for the `resource_type_kind` is 100. + * @type string[] $pattern + * Optional. The relative resource name pattern associated with this resource + * type. The DNS prefix of the full resource name shouldn't be specified here. + * The path pattern must follow the syntax, which aligns with HTTP binding + * syntax: + * Template = Segment { "/" Segment } ; + * Segment = LITERAL | Variable ; + * Variable = "{" LITERAL "}" ; + * Examples: + * - "projects/{project}/topics/{topic}" + * - "projects/{project}/knowledgeBases/{knowledge_base}" + * The components in braces correspond to the IDs for each resource in the + * hierarchy. It is expected that, if multiple patterns are provided, + * the same component name (e.g. "project") refers to IDs of the same + * type of resource. + * @type string $name_field + * Optional. The field on the resource that designates the resource name + * field. If omitted, this is assumed to be "name". + * @type int $history + * Optional. The historical or future-looking state of the resource pattern. + * Example: + * // The InspectTemplate message originally only supported resource + * // names with organization, and project was added later. + * message InspectTemplate { + * option (google.api.resource) = { + * type: "dlp.googleapis.com/InspectTemplate" + * pattern: + * "organizations/{organization}/inspectTemplates/{inspect_template}" + * pattern: "projects/{project}/inspectTemplates/{inspect_template}" + * history: ORIGINALLY_SINGLE_PATTERN + * }; + * } + * @type string $plural + * The plural name used in the resource name and permission names, such as + * 'projects' for the resource name of 'projects/{project}' and the permission + * name of 'cloudresourcemanager.googleapis.com/projects.get'. One exception + * to this is for Nested Collections that have stuttering names, as defined + * in [AIP-122](https://google.aip.dev/122#nested-collections), where the + * collection ID in the resource name pattern does not necessarily directly + * match the `plural` value. + * It is the same concept of the `plural` field in k8s CRD spec + * https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ + * Note: The plural form is required even for singleton resources. See + * https://aip.dev/156 + * @type string $singular + * The same concept of the `singular` field in k8s CRD spec + * https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ + * Such as "project" for the `resourcemanager.googleapis.com/Project` type. + * @type int[] $style + * Style flag(s) for this resource. + * These indicate that a resource is expected to conform to a given + * style. See the specific style flags for additional information. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Resource::initOnce(); + parent::__construct($data); + } + + /** + * The resource type. It must be in the format of + * {service_name}/{resource_type_kind}. The `resource_type_kind` must be + * singular and must not include version numbers. + * Example: `storage.googleapis.com/Bucket` + * The value of the resource_type_kind must follow the regular expression + * /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and + * should use PascalCase (UpperCamelCase). The maximum number of + * characters allowed for the `resource_type_kind` is 100. + * + * Generated from protobuf field string type = 1; + * @return string + */ + public function getType() + { + return $this->type; + } + + /** + * The resource type. It must be in the format of + * {service_name}/{resource_type_kind}. The `resource_type_kind` must be + * singular and must not include version numbers. + * Example: `storage.googleapis.com/Bucket` + * The value of the resource_type_kind must follow the regular expression + * /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and + * should use PascalCase (UpperCamelCase). The maximum number of + * characters allowed for the `resource_type_kind` is 100. + * + * Generated from protobuf field string type = 1; + * @param string $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkString($var, True); + $this->type = $var; + + return $this; + } + + /** + * Optional. The relative resource name pattern associated with this resource + * type. The DNS prefix of the full resource name shouldn't be specified here. + * The path pattern must follow the syntax, which aligns with HTTP binding + * syntax: + * Template = Segment { "/" Segment } ; + * Segment = LITERAL | Variable ; + * Variable = "{" LITERAL "}" ; + * Examples: + * - "projects/{project}/topics/{topic}" + * - "projects/{project}/knowledgeBases/{knowledge_base}" + * The components in braces correspond to the IDs for each resource in the + * hierarchy. It is expected that, if multiple patterns are provided, + * the same component name (e.g. "project") refers to IDs of the same + * type of resource. + * + * Generated from protobuf field repeated string pattern = 2; + * @return RepeatedField + */ + public function getPattern() + { + return $this->pattern; + } + + /** + * Optional. The relative resource name pattern associated with this resource + * type. The DNS prefix of the full resource name shouldn't be specified here. + * The path pattern must follow the syntax, which aligns with HTTP binding + * syntax: + * Template = Segment { "/" Segment } ; + * Segment = LITERAL | Variable ; + * Variable = "{" LITERAL "}" ; + * Examples: + * - "projects/{project}/topics/{topic}" + * - "projects/{project}/knowledgeBases/{knowledge_base}" + * The components in braces correspond to the IDs for each resource in the + * hierarchy. It is expected that, if multiple patterns are provided, + * the same component name (e.g. "project") refers to IDs of the same + * type of resource. + * + * Generated from protobuf field repeated string pattern = 2; + * @param string[] $var + * @return $this + */ + public function setPattern($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->pattern = $arr; + + return $this; + } + + /** + * Optional. The field on the resource that designates the resource name + * field. If omitted, this is assumed to be "name". + * + * Generated from protobuf field string name_field = 3; + * @return string + */ + public function getNameField() + { + return $this->name_field; + } + + /** + * Optional. The field on the resource that designates the resource name + * field. If omitted, this is assumed to be "name". + * + * Generated from protobuf field string name_field = 3; + * @param string $var + * @return $this + */ + public function setNameField($var) + { + GPBUtil::checkString($var, True); + $this->name_field = $var; + + return $this; + } + + /** + * Optional. The historical or future-looking state of the resource pattern. + * Example: + * // The InspectTemplate message originally only supported resource + * // names with organization, and project was added later. + * message InspectTemplate { + * option (google.api.resource) = { + * type: "dlp.googleapis.com/InspectTemplate" + * pattern: + * "organizations/{organization}/inspectTemplates/{inspect_template}" + * pattern: "projects/{project}/inspectTemplates/{inspect_template}" + * history: ORIGINALLY_SINGLE_PATTERN + * }; + * } + * + * Generated from protobuf field .google.api.ResourceDescriptor.History history = 4; + * @return int + */ + public function getHistory() + { + return $this->history; + } + + /** + * Optional. The historical or future-looking state of the resource pattern. + * Example: + * // The InspectTemplate message originally only supported resource + * // names with organization, and project was added later. + * message InspectTemplate { + * option (google.api.resource) = { + * type: "dlp.googleapis.com/InspectTemplate" + * pattern: + * "organizations/{organization}/inspectTemplates/{inspect_template}" + * pattern: "projects/{project}/inspectTemplates/{inspect_template}" + * history: ORIGINALLY_SINGLE_PATTERN + * }; + * } + * + * Generated from protobuf field .google.api.ResourceDescriptor.History history = 4; + * @param int $var + * @return $this + */ + public function setHistory($var) + { + GPBUtil::checkEnum($var, \Google\Api\ResourceDescriptor\History::class); + $this->history = $var; + + return $this; + } + + /** + * The plural name used in the resource name and permission names, such as + * 'projects' for the resource name of 'projects/{project}' and the permission + * name of 'cloudresourcemanager.googleapis.com/projects.get'. One exception + * to this is for Nested Collections that have stuttering names, as defined + * in [AIP-122](https://google.aip.dev/122#nested-collections), where the + * collection ID in the resource name pattern does not necessarily directly + * match the `plural` value. + * It is the same concept of the `plural` field in k8s CRD spec + * https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ + * Note: The plural form is required even for singleton resources. See + * https://aip.dev/156 + * + * Generated from protobuf field string plural = 5; + * @return string + */ + public function getPlural() + { + return $this->plural; + } + + /** + * The plural name used in the resource name and permission names, such as + * 'projects' for the resource name of 'projects/{project}' and the permission + * name of 'cloudresourcemanager.googleapis.com/projects.get'. One exception + * to this is for Nested Collections that have stuttering names, as defined + * in [AIP-122](https://google.aip.dev/122#nested-collections), where the + * collection ID in the resource name pattern does not necessarily directly + * match the `plural` value. + * It is the same concept of the `plural` field in k8s CRD spec + * https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ + * Note: The plural form is required even for singleton resources. See + * https://aip.dev/156 + * + * Generated from protobuf field string plural = 5; + * @param string $var + * @return $this + */ + public function setPlural($var) + { + GPBUtil::checkString($var, True); + $this->plural = $var; + + return $this; + } + + /** + * The same concept of the `singular` field in k8s CRD spec + * https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ + * Such as "project" for the `resourcemanager.googleapis.com/Project` type. + * + * Generated from protobuf field string singular = 6; + * @return string + */ + public function getSingular() + { + return $this->singular; + } + + /** + * The same concept of the `singular` field in k8s CRD spec + * https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ + * Such as "project" for the `resourcemanager.googleapis.com/Project` type. + * + * Generated from protobuf field string singular = 6; + * @param string $var + * @return $this + */ + public function setSingular($var) + { + GPBUtil::checkString($var, True); + $this->singular = $var; + + return $this; + } + + /** + * Style flag(s) for this resource. + * These indicate that a resource is expected to conform to a given + * style. See the specific style flags for additional information. + * + * Generated from protobuf field repeated .google.api.ResourceDescriptor.Style style = 10; + * @return RepeatedField + */ + public function getStyle() + { + return $this->style; + } + + /** + * Style flag(s) for this resource. + * These indicate that a resource is expected to conform to a given + * style. See the specific style flags for additional information. + * + * Generated from protobuf field repeated .google.api.ResourceDescriptor.Style style = 10; + * @param int[] $var + * @return $this + */ + public function setStyle($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Api\ResourceDescriptor\Style::class); + $this->style = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ResourceDescriptor/History.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ResourceDescriptor/History.php new file mode 100644 index 000000000000..ee1ae551aac7 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ResourceDescriptor/History.php @@ -0,0 +1,65 @@ +google.api.ResourceDescriptor.History + */ +class History +{ + /** + * The "unset" value. + * + * Generated from protobuf enum HISTORY_UNSPECIFIED = 0; + */ + const HISTORY_UNSPECIFIED = 0; + /** + * The resource originally had one pattern and launched as such, and + * additional patterns were added later. + * + * Generated from protobuf enum ORIGINALLY_SINGLE_PATTERN = 1; + */ + const ORIGINALLY_SINGLE_PATTERN = 1; + /** + * The resource has one pattern, but the API owner expects to add more + * later. (This is the inverse of ORIGINALLY_SINGLE_PATTERN, and prevents + * that from being necessary once there are multiple patterns.) + * + * Generated from protobuf enum FUTURE_MULTI_PATTERN = 2; + */ + const FUTURE_MULTI_PATTERN = 2; + + private static $valueToName = [ + self::HISTORY_UNSPECIFIED => 'HISTORY_UNSPECIFIED', + self::ORIGINALLY_SINGLE_PATTERN => 'ORIGINALLY_SINGLE_PATTERN', + self::FUTURE_MULTI_PATTERN => 'FUTURE_MULTI_PATTERN', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ResourceDescriptor/Style.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ResourceDescriptor/Style.php new file mode 100644 index 000000000000..87dfba14a2a8 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ResourceDescriptor/Style.php @@ -0,0 +1,59 @@ +google.api.ResourceDescriptor.Style + */ +class Style +{ + /** + * The unspecified value. Do not use. + * + * Generated from protobuf enum STYLE_UNSPECIFIED = 0; + */ + const STYLE_UNSPECIFIED = 0; + /** + * This resource is intended to be "declarative-friendly". + * Declarative-friendly resources must be more strictly consistent, and + * setting this to true communicates to tools that this resource should + * adhere to declarative-friendly expectations. + * Note: This is used by the API linter (linter.aip.dev) to enable + * additional checks. + * + * Generated from protobuf enum DECLARATIVE_FRIENDLY = 1; + */ + const DECLARATIVE_FRIENDLY = 1; + + private static $valueToName = [ + self::STYLE_UNSPECIFIED => 'STYLE_UNSPECIFIED', + self::DECLARATIVE_FRIENDLY => 'DECLARATIVE_FRIENDLY', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ResourceReference.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ResourceReference.php new file mode 100644 index 000000000000..e6bc4e8ff3fa --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ResourceReference.php @@ -0,0 +1,190 @@ +google.api.ResourceReference + */ +class ResourceReference extends \Google\Protobuf\Internal\Message +{ + /** + * The resource type that the annotated field references. + * Example: + * message Subscription { + * string topic = 2 [(google.api.resource_reference) = { + * type: "pubsub.googleapis.com/Topic" + * }]; + * } + * Occasionally, a field may reference an arbitrary resource. In this case, + * APIs use the special value * in their resource reference. + * Example: + * message GetIamPolicyRequest { + * string resource = 2 [(google.api.resource_reference) = { + * type: "*" + * }]; + * } + * + * Generated from protobuf field string type = 1; + */ + protected $type = ''; + /** + * The resource type of a child collection that the annotated field + * references. This is useful for annotating the `parent` field that + * doesn't have a fixed resource type. + * Example: + * message ListLogEntriesRequest { + * string parent = 1 [(google.api.resource_reference) = { + * child_type: "logging.googleapis.com/LogEntry" + * }; + * } + * + * Generated from protobuf field string child_type = 2; + */ + protected $child_type = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $type + * The resource type that the annotated field references. + * Example: + * message Subscription { + * string topic = 2 [(google.api.resource_reference) = { + * type: "pubsub.googleapis.com/Topic" + * }]; + * } + * Occasionally, a field may reference an arbitrary resource. In this case, + * APIs use the special value * in their resource reference. + * Example: + * message GetIamPolicyRequest { + * string resource = 2 [(google.api.resource_reference) = { + * type: "*" + * }]; + * } + * @type string $child_type + * The resource type of a child collection that the annotated field + * references. This is useful for annotating the `parent` field that + * doesn't have a fixed resource type. + * Example: + * message ListLogEntriesRequest { + * string parent = 1 [(google.api.resource_reference) = { + * child_type: "logging.googleapis.com/LogEntry" + * }; + * } + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Resource::initOnce(); + parent::__construct($data); + } + + /** + * The resource type that the annotated field references. + * Example: + * message Subscription { + * string topic = 2 [(google.api.resource_reference) = { + * type: "pubsub.googleapis.com/Topic" + * }]; + * } + * Occasionally, a field may reference an arbitrary resource. In this case, + * APIs use the special value * in their resource reference. + * Example: + * message GetIamPolicyRequest { + * string resource = 2 [(google.api.resource_reference) = { + * type: "*" + * }]; + * } + * + * Generated from protobuf field string type = 1; + * @return string + */ + public function getType() + { + return $this->type; + } + + /** + * The resource type that the annotated field references. + * Example: + * message Subscription { + * string topic = 2 [(google.api.resource_reference) = { + * type: "pubsub.googleapis.com/Topic" + * }]; + * } + * Occasionally, a field may reference an arbitrary resource. In this case, + * APIs use the special value * in their resource reference. + * Example: + * message GetIamPolicyRequest { + * string resource = 2 [(google.api.resource_reference) = { + * type: "*" + * }]; + * } + * + * Generated from protobuf field string type = 1; + * @param string $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkString($var, True); + $this->type = $var; + + return $this; + } + + /** + * The resource type of a child collection that the annotated field + * references. This is useful for annotating the `parent` field that + * doesn't have a fixed resource type. + * Example: + * message ListLogEntriesRequest { + * string parent = 1 [(google.api.resource_reference) = { + * child_type: "logging.googleapis.com/LogEntry" + * }; + * } + * + * Generated from protobuf field string child_type = 2; + * @return string + */ + public function getChildType() + { + return $this->child_type; + } + + /** + * The resource type of a child collection that the annotated field + * references. This is useful for annotating the `parent` field that + * doesn't have a fixed resource type. + * Example: + * message ListLogEntriesRequest { + * string parent = 1 [(google.api.resource_reference) = { + * child_type: "logging.googleapis.com/LogEntry" + * }; + * } + * + * Generated from protobuf field string child_type = 2; + * @param string $var + * @return $this + */ + public function setChildType($var) + { + GPBUtil::checkString($var, True); + $this->child_type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/RoutingParameter.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/RoutingParameter.php new file mode 100644 index 000000000000..ff03816fe471 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/RoutingParameter.php @@ -0,0 +1,281 @@ +google.api.RoutingParameter + */ +class RoutingParameter extends \Google\Protobuf\Internal\Message +{ + /** + * A request field to extract the header key-value pair from. + * + * Generated from protobuf field string field = 1; + */ + protected $field = ''; + /** + * A pattern matching the key-value field. Optional. + * If not specified, the whole field specified in the `field` field will be + * taken as value, and its name used as key. If specified, it MUST contain + * exactly one named segment (along with any number of unnamed segments) The + * pattern will be matched over the field specified in the `field` field, then + * if the match is successful: + * - the name of the single named segment will be used as a header name, + * - the match value of the segment will be used as a header value; + * if the match is NOT successful, nothing will be sent. + * Example: + * -- This is a field in the request message + * | that the header value will be extracted from. + * | + * | -- This is the key name in the + * | | routing header. + * V | + * field: "table_name" v + * path_template: "projects/{@*}{table_location=instances/*}/tables/*" + * ^ ^ + * | | + * In the {} brackets is the pattern that -- | + * specifies what to extract from the | + * field as a value to be sent. | + * | + * The string in the field must match the whole pattern -- + * before brackets, inside brackets, after brackets. + * When looking at this specific example, we can see that: + * - A key-value pair with the key `table_location` + * and the value matching `instances/*` should be added + * to the x-goog-request-params routing header. + * - The value is extracted from the request message's `table_name` field + * if it matches the full pattern specified: + * `projects/{@*}instances/{@*}tables/*`. + * **NB:** If the `path_template` field is not provided, the key name is + * equal to the field name, and the whole field should be sent as a value. + * This makes the pattern for the field and the value functionally equivalent + * to `**`, and the configuration + * { + * field: "table_name" + * } + * is a functionally equivalent shorthand to: + * { + * field: "table_name" + * path_template: "{table_name=**}" + * } + * See Example 1 for more details. + * + * Generated from protobuf field string path_template = 2; + */ + protected $path_template = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $field + * A request field to extract the header key-value pair from. + * @type string $path_template + * A pattern matching the key-value field. Optional. + * If not specified, the whole field specified in the `field` field will be + * taken as value, and its name used as key. If specified, it MUST contain + * exactly one named segment (along with any number of unnamed segments) The + * pattern will be matched over the field specified in the `field` field, then + * if the match is successful: + * - the name of the single named segment will be used as a header name, + * - the match value of the segment will be used as a header value; + * if the match is NOT successful, nothing will be sent. + * Example: + * -- This is a field in the request message + * | that the header value will be extracted from. + * | + * | -- This is the key name in the + * | | routing header. + * V | + * field: "table_name" v + * path_template: "projects/{@*}{table_location=instances/*}/tables/*" + * ^ ^ + * | | + * In the {} brackets is the pattern that -- | + * specifies what to extract from the | + * field as a value to be sent. | + * | + * The string in the field must match the whole pattern -- + * before brackets, inside brackets, after brackets. + * When looking at this specific example, we can see that: + * - A key-value pair with the key `table_location` + * and the value matching `instances/*` should be added + * to the x-goog-request-params routing header. + * - The value is extracted from the request message's `table_name` field + * if it matches the full pattern specified: + * `projects/{@*}instances/{@*}tables/*`. + * **NB:** If the `path_template` field is not provided, the key name is + * equal to the field name, and the whole field should be sent as a value. + * This makes the pattern for the field and the value functionally equivalent + * to `**`, and the configuration + * { + * field: "table_name" + * } + * is a functionally equivalent shorthand to: + * { + * field: "table_name" + * path_template: "{table_name=**}" + * } + * See Example 1 for more details. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Routing::initOnce(); + parent::__construct($data); + } + + /** + * A request field to extract the header key-value pair from. + * + * Generated from protobuf field string field = 1; + * @return string + */ + public function getField() + { + return $this->field; + } + + /** + * A request field to extract the header key-value pair from. + * + * Generated from protobuf field string field = 1; + * @param string $var + * @return $this + */ + public function setField($var) + { + GPBUtil::checkString($var, True); + $this->field = $var; + + return $this; + } + + /** + * A pattern matching the key-value field. Optional. + * If not specified, the whole field specified in the `field` field will be + * taken as value, and its name used as key. If specified, it MUST contain + * exactly one named segment (along with any number of unnamed segments) The + * pattern will be matched over the field specified in the `field` field, then + * if the match is successful: + * - the name of the single named segment will be used as a header name, + * - the match value of the segment will be used as a header value; + * if the match is NOT successful, nothing will be sent. + * Example: + * -- This is a field in the request message + * | that the header value will be extracted from. + * | + * | -- This is the key name in the + * | | routing header. + * V | + * field: "table_name" v + * path_template: "projects/{@*}{table_location=instances/*}/tables/*" + * ^ ^ + * | | + * In the {} brackets is the pattern that -- | + * specifies what to extract from the | + * field as a value to be sent. | + * | + * The string in the field must match the whole pattern -- + * before brackets, inside brackets, after brackets. + * When looking at this specific example, we can see that: + * - A key-value pair with the key `table_location` + * and the value matching `instances/*` should be added + * to the x-goog-request-params routing header. + * - The value is extracted from the request message's `table_name` field + * if it matches the full pattern specified: + * `projects/{@*}instances/{@*}tables/*`. + * **NB:** If the `path_template` field is not provided, the key name is + * equal to the field name, and the whole field should be sent as a value. + * This makes the pattern for the field and the value functionally equivalent + * to `**`, and the configuration + * { + * field: "table_name" + * } + * is a functionally equivalent shorthand to: + * { + * field: "table_name" + * path_template: "{table_name=**}" + * } + * See Example 1 for more details. + * + * Generated from protobuf field string path_template = 2; + * @return string + */ + public function getPathTemplate() + { + return $this->path_template; + } + + /** + * A pattern matching the key-value field. Optional. + * If not specified, the whole field specified in the `field` field will be + * taken as value, and its name used as key. If specified, it MUST contain + * exactly one named segment (along with any number of unnamed segments) The + * pattern will be matched over the field specified in the `field` field, then + * if the match is successful: + * - the name of the single named segment will be used as a header name, + * - the match value of the segment will be used as a header value; + * if the match is NOT successful, nothing will be sent. + * Example: + * -- This is a field in the request message + * | that the header value will be extracted from. + * | + * | -- This is the key name in the + * | | routing header. + * V | + * field: "table_name" v + * path_template: "projects/{@*}{table_location=instances/*}/tables/*" + * ^ ^ + * | | + * In the {} brackets is the pattern that -- | + * specifies what to extract from the | + * field as a value to be sent. | + * | + * The string in the field must match the whole pattern -- + * before brackets, inside brackets, after brackets. + * When looking at this specific example, we can see that: + * - A key-value pair with the key `table_location` + * and the value matching `instances/*` should be added + * to the x-goog-request-params routing header. + * - The value is extracted from the request message's `table_name` field + * if it matches the full pattern specified: + * `projects/{@*}instances/{@*}tables/*`. + * **NB:** If the `path_template` field is not provided, the key name is + * equal to the field name, and the whole field should be sent as a value. + * This makes the pattern for the field and the value functionally equivalent + * to `**`, and the configuration + * { + * field: "table_name" + * } + * is a functionally equivalent shorthand to: + * { + * field: "table_name" + * path_template: "{table_name=**}" + * } + * See Example 1 for more details. + * + * Generated from protobuf field string path_template = 2; + * @param string $var + * @return $this + */ + public function setPathTemplate($var) + { + GPBUtil::checkString($var, True); + $this->path_template = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/RoutingRule.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/RoutingRule.php new file mode 100644 index 000000000000..b6f939a5263d --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/RoutingRule.php @@ -0,0 +1,356 @@ +/tables/` + * // - `projects//instances//tables/
` + * // - `region//zones//tables/
` + * string table_name = 1; + * // This value specifies routing for replication. + * // It can be in the following formats: + * // - `profiles/` + * // - a legacy `profile_id` that can be any string + * string app_profile_id = 2; + * } + * Example message: + * { + * table_name: projects/proj_foo/instances/instance_bar/table/table_baz, + * app_profile_id: profiles/prof_qux + * } + * The routing header consists of one or multiple key-value pairs. The order of + * the key-value pairs is undefined, the order of the `routing_parameters` in + * the `RoutingRule` only matters for the evaluation order of the path + * templates when `field` is the same. See the examples below for more details. + * Every key and value in the routing header must be percent-encoded, + * and joined together in the following format: `key1=value1&key2=value2`. + * The examples below skip the percent-encoding for readability. + * Example 1 + * Extracting a field from the request to put into the routing header + * unchanged, with the key equal to the field name. + * annotation: + * option (google.api.routing) = { + * // Take the `app_profile_id`. + * routing_parameters { + * field: "app_profile_id" + * } + * }; + * result: + * x-goog-request-params: app_profile_id=profiles/prof_qux + * Example 2 + * Extracting a field from the request to put into the routing header + * unchanged, with the key different from the field name. + * annotation: + * option (google.api.routing) = { + * // Take the `app_profile_id`, but name it `routing_id` in the header. + * routing_parameters { + * field: "app_profile_id" + * path_template: "{routing_id=**}" + * } + * }; + * result: + * x-goog-request-params: routing_id=profiles/prof_qux + * Example 3 + * Extracting a field from the request to put into the routing + * header, while matching a path template syntax on the field's value. + * NB: it is more useful to send nothing than to send garbage for the purpose + * of dynamic routing, since garbage pollutes cache. Thus the matching. + * Sub-example 3a + * The field matches the template. + * annotation: + * option (google.api.routing) = { + * // Take the `table_name`, if it's well-formed (with project-based + * // syntax). + * routing_parameters { + * field: "table_name" + * path_template: "{table_name=projects/{@*}instances/{@*}**}" + * } + * }; + * result: + * x-goog-request-params: + * table_name=projects/proj_foo/instances/instance_bar/table/table_baz + * Sub-example 3b + * The field does not match the template. + * annotation: + * option (google.api.routing) = { + * // Take the `table_name`, if it's well-formed (with region-based + * // syntax). + * routing_parameters { + * field: "table_name" + * path_template: "{table_name=regions/{@*}zones/{@*}**}" + * } + * }; + * result: + * + * Sub-example 3c + * Multiple alternative conflictingly named path templates are + * specified. The one that matches is used to construct the header. + * annotation: + * option (google.api.routing) = { + * // Take the `table_name`, if it's well-formed, whether + * // using the region- or projects-based syntax. + * routing_parameters { + * field: "table_name" + * path_template: "{table_name=regions/{@*}zones/{@*}**}" + * } + * routing_parameters { + * field: "table_name" + * path_template: "{table_name=projects/{@*}instances/{@*}**}" + * } + * }; + * result: + * x-goog-request-params: + * table_name=projects/proj_foo/instances/instance_bar/table/table_baz + * Example 4 + * Extracting a single routing header key-value pair by matching a + * template syntax on (a part of) a single request field. + * annotation: + * option (google.api.routing) = { + * // Take just the project id from the `table_name` field. + * routing_parameters { + * field: "table_name" + * path_template: "{routing_id=projects/*}/**" + * } + * }; + * result: + * x-goog-request-params: routing_id=projects/proj_foo + * Example 5 + * Extracting a single routing header key-value pair by matching + * several conflictingly named path templates on (parts of) a single request + * field. The last template to match "wins" the conflict. + * annotation: + * option (google.api.routing) = { + * // If the `table_name` does not have instances information, + * // take just the project id for routing. + * // Otherwise take project + instance. + * routing_parameters { + * field: "table_name" + * path_template: "{routing_id=projects/*}/**" + * } + * routing_parameters { + * field: "table_name" + * path_template: "{routing_id=projects/{@*}instances/*}/**" + * } + * }; + * result: + * x-goog-request-params: + * routing_id=projects/proj_foo/instances/instance_bar + * Example 6 + * Extracting multiple routing header key-value pairs by matching + * several non-conflicting path templates on (parts of) a single request field. + * Sub-example 6a + * Make the templates strict, so that if the `table_name` does not + * have an instance information, nothing is sent. + * annotation: + * option (google.api.routing) = { + * // The routing code needs two keys instead of one composite + * // but works only for the tables with the "project-instance" name + * // syntax. + * routing_parameters { + * field: "table_name" + * path_template: "{project_id=projects/*}/instances/{@*}**" + * } + * routing_parameters { + * field: "table_name" + * path_template: "projects/{@*}{instance_id=instances/*}/**" + * } + * }; + * result: + * x-goog-request-params: + * project_id=projects/proj_foo&instance_id=instances/instance_bar + * Sub-example 6b + * Make the templates loose, so that if the `table_name` does not + * have an instance information, just the project id part is sent. + * annotation: + * option (google.api.routing) = { + * // The routing code wants two keys instead of one composite + * // but will work with just the `project_id` for tables without + * // an instance in the `table_name`. + * routing_parameters { + * field: "table_name" + * path_template: "{project_id=projects/*}/**" + * } + * routing_parameters { + * field: "table_name" + * path_template: "projects/{@*}{instance_id=instances/*}/**" + * } + * }; + * result (is the same as 6a for our example message because it has the instance + * information): + * x-goog-request-params: + * project_id=projects/proj_foo&instance_id=instances/instance_bar + * Example 7 + * Extracting multiple routing header key-value pairs by matching + * several path templates on multiple request fields. + * NB: note that here there is no way to specify sending nothing if one of the + * fields does not match its template. E.g. if the `table_name` is in the wrong + * format, the `project_id` will not be sent, but the `routing_id` will be. + * The backend routing code has to be aware of that and be prepared to not + * receive a full complement of keys if it expects multiple. + * annotation: + * option (google.api.routing) = { + * // The routing needs both `project_id` and `routing_id` + * // (from the `app_profile_id` field) for routing. + * routing_parameters { + * field: "table_name" + * path_template: "{project_id=projects/*}/**" + * } + * routing_parameters { + * field: "app_profile_id" + * path_template: "{routing_id=**}" + * } + * }; + * result: + * x-goog-request-params: + * project_id=projects/proj_foo&routing_id=profiles/prof_qux + * Example 8 + * Extracting a single routing header key-value pair by matching + * several conflictingly named path templates on several request fields. The + * last template to match "wins" the conflict. + * annotation: + * option (google.api.routing) = { + * // The `routing_id` can be a project id or a region id depending on + * // the table name format, but only if the `app_profile_id` is not set. + * // If `app_profile_id` is set it should be used instead. + * routing_parameters { + * field: "table_name" + * path_template: "{routing_id=projects/*}/**" + * } + * routing_parameters { + * field: "table_name" + * path_template: "{routing_id=regions/*}/**" + * } + * routing_parameters { + * field: "app_profile_id" + * path_template: "{routing_id=**}" + * } + * }; + * result: + * x-goog-request-params: routing_id=profiles/prof_qux + * Example 9 + * Bringing it all together. + * annotation: + * option (google.api.routing) = { + * // For routing both `table_location` and a `routing_id` are needed. + * // + * // table_location can be either an instance id or a region+zone id. + * // + * // For `routing_id`, take the value of `app_profile_id` + * // - If it's in the format `profiles/`, send + * // just the `` part. + * // - If it's any other literal, send it as is. + * // If the `app_profile_id` is empty, and the `table_name` starts with + * // the project_id, send that instead. + * routing_parameters { + * field: "table_name" + * path_template: "projects/{@*}{table_location=instances/*}/tables/*" + * } + * routing_parameters { + * field: "table_name" + * path_template: "{table_location=regions/{@*}zones/*}/tables/*" + * } + * routing_parameters { + * field: "table_name" + * path_template: "{routing_id=projects/*}/**" + * } + * routing_parameters { + * field: "app_profile_id" + * path_template: "{routing_id=**}" + * } + * routing_parameters { + * field: "app_profile_id" + * path_template: "profiles/{routing_id=*}" + * } + * }; + * result: + * x-goog-request-params: + * table_location=instances/instance_bar&routing_id=prof_qux + * + * Generated from protobuf message google.api.RoutingRule + */ +class RoutingRule extends \Google\Protobuf\Internal\Message +{ + /** + * A collection of Routing Parameter specifications. + * **NOTE:** If multiple Routing Parameters describe the same key + * (via the `path_template` field or via the `field` field when + * `path_template` is not provided), "last one wins" rule + * determines which Parameter gets used. + * See the examples for more details. + * + * Generated from protobuf field repeated .google.api.RoutingParameter routing_parameters = 2; + */ + private $routing_parameters; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Api\RoutingParameter[] $routing_parameters + * A collection of Routing Parameter specifications. + * **NOTE:** If multiple Routing Parameters describe the same key + * (via the `path_template` field or via the `field` field when + * `path_template` is not provided), "last one wins" rule + * determines which Parameter gets used. + * See the examples for more details. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Routing::initOnce(); + parent::__construct($data); + } + + /** + * A collection of Routing Parameter specifications. + * **NOTE:** If multiple Routing Parameters describe the same key + * (via the `path_template` field or via the `field` field when + * `path_template` is not provided), "last one wins" rule + * determines which Parameter gets used. + * See the examples for more details. + * + * Generated from protobuf field repeated .google.api.RoutingParameter routing_parameters = 2; + * @return RepeatedField<\Google\Api\RoutingParameter> + */ + public function getRoutingParameters() + { + return $this->routing_parameters; + } + + /** + * A collection of Routing Parameter specifications. + * **NOTE:** If multiple Routing Parameters describe the same key + * (via the `path_template` field or via the `field` field when + * `path_template` is not provided), "last one wins" rule + * determines which Parameter gets used. + * See the examples for more details. + * + * Generated from protobuf field repeated .google.api.RoutingParameter routing_parameters = 2; + * @param \Google\Api\RoutingParameter[] $var + * @return $this + */ + public function setRoutingParameters($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\RoutingParameter::class); + $this->routing_parameters = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/RubySettings.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/RubySettings.php new file mode 100644 index 000000000000..2bf1340bde94 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/RubySettings.php @@ -0,0 +1,77 @@ +google.api.RubySettings + */ +class RubySettings extends \Google\Protobuf\Internal\Message +{ + /** + * Some settings. + * + * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; + */ + protected $common = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Api\CommonLanguageSettings $common + * Some settings. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Client::initOnce(); + parent::__construct($data); + } + + /** + * Some settings. + * + * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; + * @return \Google\Api\CommonLanguageSettings|null + */ + public function getCommon() + { + return $this->common; + } + + public function hasCommon() + { + return isset($this->common); + } + + public function clearCommon() + { + unset($this->common); + } + + /** + * Some settings. + * + * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; + * @param \Google\Api\CommonLanguageSettings $var + * @return $this + */ + public function setCommon($var) + { + GPBUtil::checkMessage($var, \Google\Api\CommonLanguageSettings::class); + $this->common = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/SelectiveGapicGeneration.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/SelectiveGapicGeneration.php new file mode 100644 index 000000000000..a6cbea6126c3 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/SelectiveGapicGeneration.php @@ -0,0 +1,126 @@ +google.api.SelectiveGapicGeneration + */ +class SelectiveGapicGeneration extends \Google\Protobuf\Internal\Message +{ + /** + * An allowlist of the fully qualified names of RPCs that should be included + * on public client surfaces. + * + * Generated from protobuf field repeated string methods = 1; + */ + private $methods; + /** + * Setting this to true indicates to the client generators that methods + * that would be excluded from the generation should instead be generated + * in a way that indicates these methods should not be consumed by + * end users. How this is expressed is up to individual language + * implementations to decide. Some examples may be: added annotations, + * obfuscated identifiers, or other language idiomatic patterns. + * + * Generated from protobuf field bool generate_omitted_as_internal = 2; + */ + protected $generate_omitted_as_internal = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string[] $methods + * An allowlist of the fully qualified names of RPCs that should be included + * on public client surfaces. + * @type bool $generate_omitted_as_internal + * Setting this to true indicates to the client generators that methods + * that would be excluded from the generation should instead be generated + * in a way that indicates these methods should not be consumed by + * end users. How this is expressed is up to individual language + * implementations to decide. Some examples may be: added annotations, + * obfuscated identifiers, or other language idiomatic patterns. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Client::initOnce(); + parent::__construct($data); + } + + /** + * An allowlist of the fully qualified names of RPCs that should be included + * on public client surfaces. + * + * Generated from protobuf field repeated string methods = 1; + * @return RepeatedField + */ + public function getMethods() + { + return $this->methods; + } + + /** + * An allowlist of the fully qualified names of RPCs that should be included + * on public client surfaces. + * + * Generated from protobuf field repeated string methods = 1; + * @param string[] $var + * @return $this + */ + public function setMethods($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->methods = $arr; + + return $this; + } + + /** + * Setting this to true indicates to the client generators that methods + * that would be excluded from the generation should instead be generated + * in a way that indicates these methods should not be consumed by + * end users. How this is expressed is up to individual language + * implementations to decide. Some examples may be: added annotations, + * obfuscated identifiers, or other language idiomatic patterns. + * + * Generated from protobuf field bool generate_omitted_as_internal = 2; + * @return bool + */ + public function getGenerateOmittedAsInternal() + { + return $this->generate_omitted_as_internal; + } + + /** + * Setting this to true indicates to the client generators that methods + * that would be excluded from the generation should instead be generated + * in a way that indicates these methods should not be consumed by + * end users. How this is expressed is up to individual language + * implementations to decide. Some examples may be: added annotations, + * obfuscated identifiers, or other language idiomatic patterns. + * + * Generated from protobuf field bool generate_omitted_as_internal = 2; + * @param bool $var + * @return $this + */ + public function setGenerateOmittedAsInternal($var) + { + GPBUtil::checkBool($var); + $this->generate_omitted_as_internal = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Service.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Service.php new file mode 100644 index 000000000000..a5bbee008b0d --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Service.php @@ -0,0 +1,1242 @@ +google.api.Service + */ +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 string name = 1; + */ + protected $name = ''; + /** + * The product title for this service, it is the name displayed in Google + * Cloud Console. + * + * Generated from protobuf field string title = 2; + */ + protected $title = ''; + /** + * The Google project that owns this service. + * + * Generated from protobuf field string producer_project_id = 22; + */ + 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 string id = 33; + */ + 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 repeated .google.protobuf.Api apis = 3; + */ + 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 repeated .google.protobuf.Type types = 4; + */ + 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 repeated .google.protobuf.Enum enums = 5; + */ + private $enums; + /** + * Additional API documentation. + * + * Generated from protobuf field .google.api.Documentation documentation = 6; + */ + protected $documentation = null; + /** + * API backend configuration. + * + * Generated from protobuf field .google.api.Backend backend = 8; + */ + protected $backend = null; + /** + * HTTP configuration. + * + * Generated from protobuf field .google.api.Http http = 9; + */ + protected $http = null; + /** + * Quota configuration. + * + * Generated from protobuf field .google.api.Quota quota = 10; + */ + protected $quota = null; + /** + * Auth configuration. + * + * Generated from protobuf field .google.api.Authentication authentication = 11; + */ + protected $authentication = null; + /** + * Context configuration. + * + * Generated from protobuf field .google.api.Context context = 12; + */ + protected $context = null; + /** + * Configuration controlling usage of this service. + * + * Generated from protobuf field .google.api.Usage usage = 15; + */ + 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 repeated .google.api.Endpoint endpoints = 18; + */ + private $endpoints; + /** + * Configuration for the service control plane. + * + * Generated from protobuf field .google.api.Control control = 21; + */ + protected $control = null; + /** + * Defines the logs used by this service. + * + * Generated from protobuf field repeated .google.api.LogDescriptor logs = 23; + */ + private $logs; + /** + * Defines the metrics used by this service. + * + * Generated from protobuf field repeated .google.api.MetricDescriptor metrics = 24; + */ + 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 repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25; + */ + private $monitored_resources; + /** + * Billing configuration. + * + * Generated from protobuf field .google.api.Billing billing = 26; + */ + protected $billing = null; + /** + * Logging configuration. + * + * Generated from protobuf field .google.api.Logging logging = 27; + */ + protected $logging = null; + /** + * Monitoring configuration. + * + * Generated from protobuf field .google.api.Monitoring monitoring = 28; + */ + protected $monitoring = null; + /** + * System parameter configuration. + * + * Generated from protobuf field .google.api.SystemParameters system_parameters = 29; + */ + protected $system_parameters = null; + /** + * Output only. The source information for this configuration if available. + * + * Generated from protobuf field .google.api.SourceInfo source_info = 37; + */ + 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 .google.api.Publishing publishing = 45; + */ + 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 .google.protobuf.UInt32Value config_version = 20; + */ + 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 string name = 1; + * @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 string name = 1; + * @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 string title = 2; + * @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 string title = 2; + * @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 string producer_project_id = 22; + * @return string + */ + public function getProducerProjectId() + { + return $this->producer_project_id; + } + + /** + * The Google project that owns this service. + * + * Generated from protobuf field string producer_project_id = 22; + * @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 string id = 33; + * @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 string id = 33; + * @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 repeated .google.protobuf.Api apis = 3; + * @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 repeated .google.protobuf.Api apis = 3; + * @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 repeated .google.protobuf.Type types = 4; + * @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 repeated .google.protobuf.Type types = 4; + * @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 repeated .google.protobuf.Enum enums = 5; + * @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 repeated .google.protobuf.Enum enums = 5; + * @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 .google.api.Documentation documentation = 6; + * @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 .google.api.Documentation documentation = 6; + * @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 .google.api.Backend backend = 8; + * @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 .google.api.Backend backend = 8; + * @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 .google.api.Http http = 9; + * @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 .google.api.Http http = 9; + * @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 .google.api.Quota quota = 10; + * @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 .google.api.Quota quota = 10; + * @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 .google.api.Authentication authentication = 11; + * @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 .google.api.Authentication authentication = 11; + * @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 .google.api.Context context = 12; + * @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 .google.api.Context context = 12; + * @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 .google.api.Usage usage = 15; + * @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 .google.api.Usage usage = 15; + * @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 repeated .google.api.Endpoint endpoints = 18; + * @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 repeated .google.api.Endpoint endpoints = 18; + * @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 .google.api.Control control = 21; + * @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 .google.api.Control control = 21; + * @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 repeated .google.api.LogDescriptor logs = 23; + * @return RepeatedField<\Google\Api\LogDescriptor> + */ + public function getLogs() + { + return $this->logs; + } + + /** + * Defines the logs used by this service. + * + * Generated from protobuf field repeated .google.api.LogDescriptor logs = 23; + * @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 repeated .google.api.MetricDescriptor metrics = 24; + * @return RepeatedField<\Google\Api\MetricDescriptor> + */ + public function getMetrics() + { + return $this->metrics; + } + + /** + * Defines the metrics used by this service. + * + * Generated from protobuf field repeated .google.api.MetricDescriptor metrics = 24; + * @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 repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25; + * @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 repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25; + * @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 .google.api.Billing billing = 26; + * @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 .google.api.Billing billing = 26; + * @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 .google.api.Logging logging = 27; + * @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 .google.api.Logging logging = 27; + * @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 .google.api.Monitoring monitoring = 28; + * @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 .google.api.Monitoring monitoring = 28; + * @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 .google.api.SystemParameters system_parameters = 29; + * @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 .google.api.SystemParameters system_parameters = 29; + * @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 .google.api.SourceInfo source_info = 37; + * @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 .google.api.SourceInfo source_info = 37; + * @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 .google.api.Publishing publishing = 45; + * @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 .google.api.Publishing publishing = 45; + * @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 .google.protobuf.UInt32Value config_version = 20; + * @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 getConfigVersion() + + * Obsolete. Do not use. + * This field has no semantic meaning. The service config compiler always + * sets this field to `3`. + * + * Generated from protobuf field .google.protobuf.UInt32Value config_version = 20; + * @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 .google.protobuf.UInt32Value config_version = 20; + * @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 .google.protobuf.UInt32Value config_version = 20; + * @param int|null $var + * @return $this + */ + public function setConfigVersionUnwrapped($var) + { + $this->writeWrapperValue("config_version", $var); + return $this;} + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/SourceInfo.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/SourceInfo.php new file mode 100644 index 000000000000..c97ca068abce --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/SourceInfo.php @@ -0,0 +1,67 @@ +google.api.SourceInfo + */ +class SourceInfo extends \Google\Protobuf\Internal\Message +{ + /** + * All files used during config generation. + * + * Generated from protobuf field repeated .google.protobuf.Any source_files = 1; + */ + private $source_files; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\Any[] $source_files + * All files used during config generation. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\SourceInfo::initOnce(); + parent::__construct($data); + } + + /** + * All files used during config generation. + * + * Generated from protobuf field repeated .google.protobuf.Any source_files = 1; + * @return RepeatedField<\Google\Protobuf\Any> + */ + public function getSourceFiles() + { + return $this->source_files; + } + + /** + * All files used during config generation. + * + * Generated from protobuf field repeated .google.protobuf.Any source_files = 1; + * @param \Google\Protobuf\Any[] $var + * @return $this + */ + public function setSourceFiles($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Any::class); + $this->source_files = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/SystemParameter.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/SystemParameter.php new file mode 100644 index 000000000000..b8c30aa23950 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/SystemParameter.php @@ -0,0 +1,145 @@ +google.api.SystemParameter + */ +class SystemParameter extends \Google\Protobuf\Internal\Message +{ + /** + * Define the name of the parameter, such as "api_key" . It is case sensitive. + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * Define the HTTP header name to use for the parameter. It is case + * insensitive. + * + * Generated from protobuf field string http_header = 2; + */ + protected $http_header = ''; + /** + * Define the URL query parameter name to use for the parameter. It is case + * sensitive. + * + * Generated from protobuf field string url_query_parameter = 3; + */ + protected $url_query_parameter = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Define the name of the parameter, such as "api_key" . It is case sensitive. + * @type string $http_header + * Define the HTTP header name to use for the parameter. It is case + * insensitive. + * @type string $url_query_parameter + * Define the URL query parameter name to use for the parameter. It is case + * sensitive. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\SystemParameter::initOnce(); + parent::__construct($data); + } + + /** + * Define the name of the parameter, such as "api_key" . It is case sensitive. + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Define the name of the parameter, such as "api_key" . It is case sensitive. + * + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Define the HTTP header name to use for the parameter. It is case + * insensitive. + * + * Generated from protobuf field string http_header = 2; + * @return string + */ + public function getHttpHeader() + { + return $this->http_header; + } + + /** + * Define the HTTP header name to use for the parameter. It is case + * insensitive. + * + * Generated from protobuf field string http_header = 2; + * @param string $var + * @return $this + */ + public function setHttpHeader($var) + { + GPBUtil::checkString($var, True); + $this->http_header = $var; + + return $this; + } + + /** + * Define the URL query parameter name to use for the parameter. It is case + * sensitive. + * + * Generated from protobuf field string url_query_parameter = 3; + * @return string + */ + public function getUrlQueryParameter() + { + return $this->url_query_parameter; + } + + /** + * Define the URL query parameter name to use for the parameter. It is case + * sensitive. + * + * Generated from protobuf field string url_query_parameter = 3; + * @param string $var + * @return $this + */ + public function setUrlQueryParameter($var) + { + GPBUtil::checkString($var, True); + $this->url_query_parameter = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/SystemParameterRule.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/SystemParameterRule.php new file mode 100644 index 000000000000..ee62ecfc8335 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/SystemParameterRule.php @@ -0,0 +1,130 @@ +google.api.SystemParameterRule + */ +class SystemParameterRule extends \Google\Protobuf\Internal\Message +{ + /** + * Selects the methods to which this rule applies. Use '*' to indicate all + * methods in all APIs. + * Refer to [selector][google.api.DocumentationRule.selector] for syntax + * details. + * + * Generated from protobuf field string selector = 1; + */ + protected $selector = ''; + /** + * Define parameters. Multiple names may be defined for a parameter. + * For a given method call, only one of them should be used. If multiple + * names are used the behavior is implementation-dependent. + * If none of the specified names are present the behavior is + * parameter-dependent. + * + * Generated from protobuf field repeated .google.api.SystemParameter parameters = 2; + */ + private $parameters; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $selector + * Selects the methods to which this rule applies. Use '*' to indicate all + * methods in all APIs. + * Refer to [selector][google.api.DocumentationRule.selector] for syntax + * details. + * @type \Google\Api\SystemParameter[] $parameters + * Define parameters. Multiple names may be defined for a parameter. + * For a given method call, only one of them should be used. If multiple + * names are used the behavior is implementation-dependent. + * If none of the specified names are present the behavior is + * parameter-dependent. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\SystemParameter::initOnce(); + parent::__construct($data); + } + + /** + * Selects the methods to which this rule applies. Use '*' to indicate all + * methods in all APIs. + * Refer to [selector][google.api.DocumentationRule.selector] for syntax + * details. + * + * Generated from protobuf field string selector = 1; + * @return string + */ + public function getSelector() + { + return $this->selector; + } + + /** + * Selects the methods to which this rule applies. Use '*' to indicate all + * methods in all APIs. + * Refer to [selector][google.api.DocumentationRule.selector] for syntax + * details. + * + * Generated from protobuf field string selector = 1; + * @param string $var + * @return $this + */ + public function setSelector($var) + { + GPBUtil::checkString($var, True); + $this->selector = $var; + + return $this; + } + + /** + * Define parameters. Multiple names may be defined for a parameter. + * For a given method call, only one of them should be used. If multiple + * names are used the behavior is implementation-dependent. + * If none of the specified names are present the behavior is + * parameter-dependent. + * + * Generated from protobuf field repeated .google.api.SystemParameter parameters = 2; + * @return RepeatedField<\Google\Api\SystemParameter> + */ + public function getParameters() + { + return $this->parameters; + } + + /** + * Define parameters. Multiple names may be defined for a parameter. + * For a given method call, only one of them should be used. If multiple + * names are used the behavior is implementation-dependent. + * If none of the specified names are present the behavior is + * parameter-dependent. + * + * Generated from protobuf field repeated .google.api.SystemParameter parameters = 2; + * @param \Google\Api\SystemParameter[] $var + * @return $this + */ + public function setParameters($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\SystemParameter::class); + $this->parameters = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/SystemParameters.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/SystemParameters.php new file mode 100644 index 000000000000..1b51eb267f85 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/SystemParameters.php @@ -0,0 +1,155 @@ +google.api.SystemParameters + */ +class SystemParameters extends \Google\Protobuf\Internal\Message +{ + /** + * Define system parameters. + * The parameters defined here will override the default parameters + * implemented by the system. If this field is missing from the service + * config, default system parameters will be used. Default system parameters + * and names is implementation-dependent. + * Example: define api key for all methods + * system_parameters + * rules: + * - selector: "*" + * parameters: + * - name: api_key + * url_query_parameter: api_key + * Example: define 2 api key names for a specific method. + * system_parameters + * rules: + * - selector: "/ListShelves" + * parameters: + * - name: api_key + * http_header: Api-Key1 + * - name: api_key + * http_header: Api-Key2 + * **NOTE:** All service configuration rules follow "last one wins" order. + * + * Generated from protobuf field repeated .google.api.SystemParameterRule rules = 1; + */ + private $rules; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Api\SystemParameterRule[] $rules + * Define system parameters. + * The parameters defined here will override the default parameters + * implemented by the system. If this field is missing from the service + * config, default system parameters will be used. Default system parameters + * and names is implementation-dependent. + * Example: define api key for all methods + * system_parameters + * rules: + * - selector: "*" + * parameters: + * - name: api_key + * url_query_parameter: api_key + * Example: define 2 api key names for a specific method. + * system_parameters + * rules: + * - selector: "/ListShelves" + * parameters: + * - name: api_key + * http_header: Api-Key1 + * - name: api_key + * http_header: Api-Key2 + * **NOTE:** All service configuration rules follow "last one wins" order. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\SystemParameter::initOnce(); + parent::__construct($data); + } + + /** + * Define system parameters. + * The parameters defined here will override the default parameters + * implemented by the system. If this field is missing from the service + * config, default system parameters will be used. Default system parameters + * and names is implementation-dependent. + * Example: define api key for all methods + * system_parameters + * rules: + * - selector: "*" + * parameters: + * - name: api_key + * url_query_parameter: api_key + * Example: define 2 api key names for a specific method. + * system_parameters + * rules: + * - selector: "/ListShelves" + * parameters: + * - name: api_key + * http_header: Api-Key1 + * - name: api_key + * http_header: Api-Key2 + * **NOTE:** All service configuration rules follow "last one wins" order. + * + * Generated from protobuf field repeated .google.api.SystemParameterRule rules = 1; + * @return RepeatedField<\Google\Api\SystemParameterRule> + */ + public function getRules() + { + return $this->rules; + } + + /** + * Define system parameters. + * The parameters defined here will override the default parameters + * implemented by the system. If this field is missing from the service + * config, default system parameters will be used. Default system parameters + * and names is implementation-dependent. + * Example: define api key for all methods + * system_parameters + * rules: + * - selector: "*" + * parameters: + * - name: api_key + * url_query_parameter: api_key + * Example: define 2 api key names for a specific method. + * system_parameters + * rules: + * - selector: "/ListShelves" + * parameters: + * - name: api_key + * http_header: Api-Key1 + * - name: api_key + * http_header: Api-Key2 + * **NOTE:** All service configuration rules follow "last one wins" order. + * + * Generated from protobuf field repeated .google.api.SystemParameterRule rules = 1; + * @param \Google\Api\SystemParameterRule[] $var + * @return $this + */ + public function setRules($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\SystemParameterRule::class); + $this->rules = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/TypeReference.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/TypeReference.php new file mode 100644 index 000000000000..5f190607061a --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/TypeReference.php @@ -0,0 +1,91 @@ +google.api.TypeReference + */ +class TypeReference extends \Google\Protobuf\Internal\Message +{ + /** + * The name of the type that the annotated, generic field may represent. + * If the type is in the same protobuf package, the value can be the simple + * message name e.g., `"MyMessage"`. Otherwise, the value must be the + * fully-qualified message name e.g., `"google.library.v1.Book"`. + * If the type(s) are unknown to the service (e.g. the field accepts generic + * user input), use the wildcard `"*"` to denote this behavior. + * See [AIP-202](https://google.aip.dev/202#type-references) for more details. + * + * Generated from protobuf field string type_name = 1; + */ + protected $type_name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $type_name + * The name of the type that the annotated, generic field may represent. + * If the type is in the same protobuf package, the value can be the simple + * message name e.g., `"MyMessage"`. Otherwise, the value must be the + * fully-qualified message name e.g., `"google.library.v1.Book"`. + * If the type(s) are unknown to the service (e.g. the field accepts generic + * user input), use the wildcard `"*"` to denote this behavior. + * See [AIP-202](https://google.aip.dev/202#type-references) for more details. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\FieldInfo::initOnce(); + parent::__construct($data); + } + + /** + * The name of the type that the annotated, generic field may represent. + * If the type is in the same protobuf package, the value can be the simple + * message name e.g., `"MyMessage"`. Otherwise, the value must be the + * fully-qualified message name e.g., `"google.library.v1.Book"`. + * If the type(s) are unknown to the service (e.g. the field accepts generic + * user input), use the wildcard `"*"` to denote this behavior. + * See [AIP-202](https://google.aip.dev/202#type-references) for more details. + * + * Generated from protobuf field string type_name = 1; + * @return string + */ + public function getTypeName() + { + return $this->type_name; + } + + /** + * The name of the type that the annotated, generic field may represent. + * If the type is in the same protobuf package, the value can be the simple + * message name e.g., `"MyMessage"`. Otherwise, the value must be the + * fully-qualified message name e.g., `"google.library.v1.Book"`. + * If the type(s) are unknown to the service (e.g. the field accepts generic + * user input), use the wildcard `"*"` to denote this behavior. + * See [AIP-202](https://google.aip.dev/202#type-references) for more details. + * + * Generated from protobuf field string type_name = 1; + * @param string $var + * @return $this + */ + public function setTypeName($var) + { + GPBUtil::checkString($var, True); + $this->type_name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Usage.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Usage.php new file mode 100644 index 000000000000..e5d7e71c46b6 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Usage.php @@ -0,0 +1,191 @@ +google.api.Usage + */ +class Usage extends \Google\Protobuf\Internal\Message +{ + /** + * Requirements that must be satisfied before a consumer project can use the + * service. Each requirement is of the form /; + * for example 'serviceusage.googleapis.com/billing-enabled'. + * For Google APIs, a Terms of Service requirement must be included here. + * Google Cloud APIs must include "serviceusage.googleapis.com/tos/cloud". + * Other Google APIs should include + * "serviceusage.googleapis.com/tos/universal". Additional ToS can be + * included based on the business needs. + * + * Generated from protobuf field repeated string requirements = 1; + */ + private $requirements; + /** + * A list of usage rules that apply to individual API methods. + * **NOTE:** All service configuration rules follow "last one wins" order. + * + * Generated from protobuf field repeated .google.api.UsageRule rules = 6; + */ + private $rules; + /** + * The full resource name of a channel used for sending notifications to the + * service producer. + * Google Service Management currently only supports + * [Google Cloud Pub/Sub](https://cloud.google.com/pubsub) as a notification + * channel. To use Google Cloud Pub/Sub as the channel, this must be the name + * of a Cloud Pub/Sub topic that uses the Cloud Pub/Sub topic name format + * documented in https://cloud.google.com/pubsub/docs/overview. + * + * Generated from protobuf field string producer_notification_channel = 7; + */ + protected $producer_notification_channel = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string[] $requirements + * Requirements that must be satisfied before a consumer project can use the + * service. Each requirement is of the form /; + * for example 'serviceusage.googleapis.com/billing-enabled'. + * For Google APIs, a Terms of Service requirement must be included here. + * Google Cloud APIs must include "serviceusage.googleapis.com/tos/cloud". + * Other Google APIs should include + * "serviceusage.googleapis.com/tos/universal". Additional ToS can be + * included based on the business needs. + * @type \Google\Api\UsageRule[] $rules + * A list of usage rules that apply to individual API methods. + * **NOTE:** All service configuration rules follow "last one wins" order. + * @type string $producer_notification_channel + * The full resource name of a channel used for sending notifications to the + * service producer. + * Google Service Management currently only supports + * [Google Cloud Pub/Sub](https://cloud.google.com/pubsub) as a notification + * channel. To use Google Cloud Pub/Sub as the channel, this must be the name + * of a Cloud Pub/Sub topic that uses the Cloud Pub/Sub topic name format + * documented in https://cloud.google.com/pubsub/docs/overview. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Usage::initOnce(); + parent::__construct($data); + } + + /** + * Requirements that must be satisfied before a consumer project can use the + * service. Each requirement is of the form /; + * for example 'serviceusage.googleapis.com/billing-enabled'. + * For Google APIs, a Terms of Service requirement must be included here. + * Google Cloud APIs must include "serviceusage.googleapis.com/tos/cloud". + * Other Google APIs should include + * "serviceusage.googleapis.com/tos/universal". Additional ToS can be + * included based on the business needs. + * + * Generated from protobuf field repeated string requirements = 1; + * @return RepeatedField + */ + public function getRequirements() + { + return $this->requirements; + } + + /** + * Requirements that must be satisfied before a consumer project can use the + * service. Each requirement is of the form /; + * for example 'serviceusage.googleapis.com/billing-enabled'. + * For Google APIs, a Terms of Service requirement must be included here. + * Google Cloud APIs must include "serviceusage.googleapis.com/tos/cloud". + * Other Google APIs should include + * "serviceusage.googleapis.com/tos/universal". Additional ToS can be + * included based on the business needs. + * + * Generated from protobuf field repeated string requirements = 1; + * @param string[] $var + * @return $this + */ + public function setRequirements($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->requirements = $arr; + + return $this; + } + + /** + * A list of usage rules that apply to individual API methods. + * **NOTE:** All service configuration rules follow "last one wins" order. + * + * Generated from protobuf field repeated .google.api.UsageRule rules = 6; + * @return RepeatedField<\Google\Api\UsageRule> + */ + public function getRules() + { + return $this->rules; + } + + /** + * A list of usage rules that apply to individual API methods. + * **NOTE:** All service configuration rules follow "last one wins" order. + * + * Generated from protobuf field repeated .google.api.UsageRule rules = 6; + * @param \Google\Api\UsageRule[] $var + * @return $this + */ + public function setRules($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\UsageRule::class); + $this->rules = $arr; + + return $this; + } + + /** + * The full resource name of a channel used for sending notifications to the + * service producer. + * Google Service Management currently only supports + * [Google Cloud Pub/Sub](https://cloud.google.com/pubsub) as a notification + * channel. To use Google Cloud Pub/Sub as the channel, this must be the name + * of a Cloud Pub/Sub topic that uses the Cloud Pub/Sub topic name format + * documented in https://cloud.google.com/pubsub/docs/overview. + * + * Generated from protobuf field string producer_notification_channel = 7; + * @return string + */ + public function getProducerNotificationChannel() + { + return $this->producer_notification_channel; + } + + /** + * The full resource name of a channel used for sending notifications to the + * service producer. + * Google Service Management currently only supports + * [Google Cloud Pub/Sub](https://cloud.google.com/pubsub) as a notification + * channel. To use Google Cloud Pub/Sub as the channel, this must be the name + * of a Cloud Pub/Sub topic that uses the Cloud Pub/Sub topic name format + * documented in https://cloud.google.com/pubsub/docs/overview. + * + * Generated from protobuf field string producer_notification_channel = 7; + * @param string $var + * @return $this + */ + public function setProducerNotificationChannel($var) + { + GPBUtil::checkString($var, True); + $this->producer_notification_channel = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/UsageRule.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/UsageRule.php new file mode 100644 index 000000000000..73fac2210f68 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/UsageRule.php @@ -0,0 +1,175 @@ +google.api.UsageRule + */ +class UsageRule extends \Google\Protobuf\Internal\Message +{ + /** + * Selects the methods to which this rule applies. Use '*' to indicate all + * methods in all APIs. + * Refer to [selector][google.api.DocumentationRule.selector] for syntax + * details. + * + * Generated from protobuf field string selector = 1; + */ + protected $selector = ''; + /** + * Use this rule to configure unregistered calls for the service. Unregistered + * calls are calls that do not contain consumer project identity. + * (Example: calls that do not contain an API key). + * WARNING: By default, API methods do not allow unregistered calls, and each + * method call must be identified by a consumer project identity. + * + * Generated from protobuf field bool allow_unregistered_calls = 2; + */ + protected $allow_unregistered_calls = false; + /** + * If true, the selected method should skip service control and the control + * plane features, such as quota and billing, will not be available. + * This flag is used by Google Cloud Endpoints to bypass checks for internal + * methods, such as service health check methods. + * + * Generated from protobuf field bool skip_service_control = 3; + */ + protected $skip_service_control = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $selector + * Selects the methods to which this rule applies. Use '*' to indicate all + * methods in all APIs. + * Refer to [selector][google.api.DocumentationRule.selector] for syntax + * details. + * @type bool $allow_unregistered_calls + * Use this rule to configure unregistered calls for the service. Unregistered + * calls are calls that do not contain consumer project identity. + * (Example: calls that do not contain an API key). + * WARNING: By default, API methods do not allow unregistered calls, and each + * method call must be identified by a consumer project identity. + * @type bool $skip_service_control + * If true, the selected method should skip service control and the control + * plane features, such as quota and billing, will not be available. + * This flag is used by Google Cloud Endpoints to bypass checks for internal + * methods, such as service health check methods. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Usage::initOnce(); + parent::__construct($data); + } + + /** + * Selects the methods to which this rule applies. Use '*' to indicate all + * methods in all APIs. + * Refer to [selector][google.api.DocumentationRule.selector] for syntax + * details. + * + * Generated from protobuf field string selector = 1; + * @return string + */ + public function getSelector() + { + return $this->selector; + } + + /** + * Selects the methods to which this rule applies. Use '*' to indicate all + * methods in all APIs. + * Refer to [selector][google.api.DocumentationRule.selector] for syntax + * details. + * + * Generated from protobuf field string selector = 1; + * @param string $var + * @return $this + */ + public function setSelector($var) + { + GPBUtil::checkString($var, True); + $this->selector = $var; + + return $this; + } + + /** + * Use this rule to configure unregistered calls for the service. Unregistered + * calls are calls that do not contain consumer project identity. + * (Example: calls that do not contain an API key). + * WARNING: By default, API methods do not allow unregistered calls, and each + * method call must be identified by a consumer project identity. + * + * Generated from protobuf field bool allow_unregistered_calls = 2; + * @return bool + */ + public function getAllowUnregisteredCalls() + { + return $this->allow_unregistered_calls; + } + + /** + * Use this rule to configure unregistered calls for the service. Unregistered + * calls are calls that do not contain consumer project identity. + * (Example: calls that do not contain an API key). + * WARNING: By default, API methods do not allow unregistered calls, and each + * method call must be identified by a consumer project identity. + * + * Generated from protobuf field bool allow_unregistered_calls = 2; + * @param bool $var + * @return $this + */ + public function setAllowUnregisteredCalls($var) + { + GPBUtil::checkBool($var); + $this->allow_unregistered_calls = $var; + + return $this; + } + + /** + * If true, the selected method should skip service control and the control + * plane features, such as quota and billing, will not be available. + * This flag is used by Google Cloud Endpoints to bypass checks for internal + * methods, such as service health check methods. + * + * Generated from protobuf field bool skip_service_control = 3; + * @return bool + */ + public function getSkipServiceControl() + { + return $this->skip_service_control; + } + + /** + * If true, the selected method should skip service control and the control + * plane features, such as quota and billing, will not be available. + * This flag is used by Google Cloud Endpoints to bypass checks for internal + * methods, such as service health check methods. + * + * Generated from protobuf field bool skip_service_control = 3; + * @param bool $var + * @return $this + */ + public function setSkipServiceControl($var) + { + GPBUtil::checkBool($var); + $this->skip_service_control = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Visibility.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Visibility.php new file mode 100644 index 000000000000..d5292914fc4b --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Visibility.php @@ -0,0 +1,88 @@ +google.api.Visibility + */ +class Visibility extends \Google\Protobuf\Internal\Message +{ + /** + * A list of visibility rules that apply to individual API elements. + * **NOTE:** All service configuration rules follow "last one wins" order. + * + * Generated from protobuf field repeated .google.api.VisibilityRule rules = 1; + */ + private $rules; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Api\VisibilityRule[] $rules + * A list of visibility rules that apply to individual API elements. + * **NOTE:** All service configuration rules follow "last one wins" order. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Visibility::initOnce(); + parent::__construct($data); + } + + /** + * A list of visibility rules that apply to individual API elements. + * **NOTE:** All service configuration rules follow "last one wins" order. + * + * Generated from protobuf field repeated .google.api.VisibilityRule rules = 1; + * @return RepeatedField<\Google\Api\VisibilityRule> + */ + public function getRules() + { + return $this->rules; + } + + /** + * A list of visibility rules that apply to individual API elements. + * **NOTE:** All service configuration rules follow "last one wins" order. + * + * Generated from protobuf field repeated .google.api.VisibilityRule rules = 1; + * @param \Google\Api\VisibilityRule[] $var + * @return $this + */ + public function setRules($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\VisibilityRule::class); + $this->rules = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/VisibilityRule.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/VisibilityRule.php new file mode 100644 index 000000000000..74bdc3e66882 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/VisibilityRule.php @@ -0,0 +1,150 @@ +google.api.VisibilityRule + */ +class VisibilityRule extends \Google\Protobuf\Internal\Message +{ + /** + * Selects methods, messages, fields, enums, etc. to which this rule applies. + * Refer to [selector][google.api.DocumentationRule.selector] for syntax + * details. + * + * Generated from protobuf field string selector = 1; + */ + protected $selector = ''; + /** + * A comma-separated list of visibility labels that apply to the `selector`. + * Any of the listed labels can be used to grant the visibility. + * If a rule has multiple labels, removing one of the labels but not all of + * them can break clients. + * Example: + * visibility: + * rules: + * - selector: google.calendar.Calendar.EnhancedSearch + * restriction: INTERNAL, PREVIEW + * Removing INTERNAL from this restriction will break clients that rely on + * this method and only had access to it through INTERNAL. + * + * Generated from protobuf field string restriction = 2; + */ + protected $restriction = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $selector + * Selects methods, messages, fields, enums, etc. to which this rule applies. + * Refer to [selector][google.api.DocumentationRule.selector] for syntax + * details. + * @type string $restriction + * A comma-separated list of visibility labels that apply to the `selector`. + * Any of the listed labels can be used to grant the visibility. + * If a rule has multiple labels, removing one of the labels but not all of + * them can break clients. + * Example: + * visibility: + * rules: + * - selector: google.calendar.Calendar.EnhancedSearch + * restriction: INTERNAL, PREVIEW + * Removing INTERNAL from this restriction will break clients that rely on + * this method and only had access to it through INTERNAL. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Visibility::initOnce(); + parent::__construct($data); + } + + /** + * Selects methods, messages, fields, enums, etc. to which this rule applies. + * Refer to [selector][google.api.DocumentationRule.selector] for syntax + * details. + * + * Generated from protobuf field string selector = 1; + * @return string + */ + public function getSelector() + { + return $this->selector; + } + + /** + * Selects methods, messages, fields, enums, etc. to which this rule applies. + * Refer to [selector][google.api.DocumentationRule.selector] for syntax + * details. + * + * Generated from protobuf field string selector = 1; + * @param string $var + * @return $this + */ + public function setSelector($var) + { + GPBUtil::checkString($var, True); + $this->selector = $var; + + return $this; + } + + /** + * A comma-separated list of visibility labels that apply to the `selector`. + * Any of the listed labels can be used to grant the visibility. + * If a rule has multiple labels, removing one of the labels but not all of + * them can break clients. + * Example: + * visibility: + * rules: + * - selector: google.calendar.Calendar.EnhancedSearch + * restriction: INTERNAL, PREVIEW + * Removing INTERNAL from this restriction will break clients that rely on + * this method and only had access to it through INTERNAL. + * + * Generated from protobuf field string restriction = 2; + * @return string + */ + public function getRestriction() + { + return $this->restriction; + } + + /** + * A comma-separated list of visibility labels that apply to the `selector`. + * Any of the listed labels can be used to grant the visibility. + * If a rule has multiple labels, removing one of the labels but not all of + * them can break clients. + * Example: + * visibility: + * rules: + * - selector: google.calendar.Calendar.EnhancedSearch + * restriction: INTERNAL, PREVIEW + * Removing INTERNAL from this restriction will break clients that rely on + * this method and only had access to it through INTERNAL. + * + * Generated from protobuf field string restriction = 2; + * @param string $var + * @return $this + */ + public function setRestriction($var) + { + GPBUtil::checkString($var, True); + $this->restriction = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/extendedoperations/proto/src/GPBMetadata/Google/Cloud/ExtendedOperations.php b/owl-bot-staging/CommonProtos/extendedoperations/proto/src/GPBMetadata/Google/Cloud/ExtendedOperations.php new file mode 100644 index 000000000000..2f09c858bb0e --- /dev/null +++ b/owl-bot-staging/CommonProtos/extendedoperations/proto/src/GPBMetadata/Google/Cloud/ExtendedOperations.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\xBF\x02\x0A&google/cloud/extended_operations.proto\x12\x0Cgoogle.cloud\x1A google/protobuf/descriptor.proto*b\x0A\x18OperationResponseMapping\x12\x0D\x0A\x09UNDEFINED\x10\x00\x12\x08\x0A\x04NAME\x10\x01\x12\x0A\x0A\x06STATUS\x10\x02\x12\x0E\x0A\x0AERROR_CODE\x10\x03\x12\x11\x0A\x0DERROR_MESSAGE\x10\x04By\x0A\x10com.google.cloudB\x17ExtendedOperationsProtoP\x01ZCgoogle.golang.org/genproto/googleapis/cloud/extendedops;extendedops\xA2\x02\x04GAPIb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/extendedoperations/proto/src/Google/Cloud/OperationResponseMapping.php b/owl-bot-staging/CommonProtos/extendedoperations/proto/src/Google/Cloud/OperationResponseMapping.php new file mode 100644 index 000000000000..c21c294e7853 --- /dev/null +++ b/owl-bot-staging/CommonProtos/extendedoperations/proto/src/Google/Cloud/OperationResponseMapping.php @@ -0,0 +1,86 @@ +google.cloud.OperationResponseMapping + */ +class OperationResponseMapping +{ + /** + * Do not use. + * + * Generated from protobuf enum UNDEFINED = 0; + */ + const UNDEFINED = 0; + /** + * A field in an API-specific (custom) Operation object which carries the same + * meaning as google.longrunning.Operation.name. + * + * Generated from protobuf enum NAME = 1; + */ + const NAME = 1; + /** + * A field in an API-specific (custom) Operation object which carries the same + * meaning as google.longrunning.Operation.done. If the annotated field is of + * an enum type, `annotated_field_name == EnumType.DONE` semantics should be + * equivalent to `Operation.done == true`. If the annotated field is of type + * boolean, then it should follow the same semantics as Operation.done. + * Otherwise, a non-empty value should be treated as `Operation.done == true`. + * + * Generated from protobuf enum STATUS = 2; + */ + const STATUS = 2; + /** + * A field in an API-specific (custom) Operation object which carries the same + * meaning as google.longrunning.Operation.error.code. + * + * Generated from protobuf enum ERROR_CODE = 3; + */ + const ERROR_CODE = 3; + /** + * A field in an API-specific (custom) Operation object which carries the same + * meaning as google.longrunning.Operation.error.message. + * + * Generated from protobuf enum ERROR_MESSAGE = 4; + */ + const ERROR_MESSAGE = 4; + + private static $valueToName = [ + self::UNDEFINED => 'UNDEFINED', + self::NAME => 'NAME', + self::STATUS => 'STATUS', + self::ERROR_CODE => 'ERROR_CODE', + self::ERROR_MESSAGE => 'ERROR_MESSAGE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/CommonProtos/iam/proto/src/GPBMetadata/Google/Iam/V1/IamPolicy.php b/owl-bot-staging/CommonProtos/iam/proto/src/GPBMetadata/Google/Iam/V1/IamPolicy.php new file mode 100644 index 000000000000..3c8924647d4b --- /dev/null +++ b/owl-bot-staging/CommonProtos/iam/proto/src/GPBMetadata/Google/Iam/V1/IamPolicy.php @@ -0,0 +1,31 @@ +internalAddGeneratedFile( + "\x0A\x9B\x09\x0A\x1Egoogle/iam/v1/iam_policy.proto\x12\x0Dgoogle.iam.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A\x1Bgoogle/iam/v1/options.proto\x1A\x1Agoogle/iam/v1/policy.proto\x1A google/protobuf/field_mask.proto\"\x8F\x01\x0A\x13SetIamPolicyRequest\x12\x1B\x0A\x08resource\x18\x01 \x01(\x09B\x09\xE0A\x02\xFAA\x03\x0A\x01*\x12*\x0A\x06policy\x18\x02 \x01(\x0B2\x15.google.iam.v1.PolicyB\x03\xE0A\x02\x12/\x0A\x0Bupdate_mask\x18\x03 \x01(\x0B2\x1A.google.protobuf.FieldMask\"d\x0A\x13GetIamPolicyRequest\x12\x1B\x0A\x08resource\x18\x01 \x01(\x09B\x09\xE0A\x02\xFAA\x03\x0A\x01*\x120\x0A\x07options\x18\x02 \x01(\x0B2\x1F.google.iam.v1.GetPolicyOptions\"R\x0A\x19TestIamPermissionsRequest\x12\x1B\x0A\x08resource\x18\x01 \x01(\x09B\x09\xE0A\x02\xFAA\x03\x0A\x01*\x12\x18\x0A\x0Bpermissions\x18\x02 \x03(\x09B\x03\xE0A\x02\"1\x0A\x1ATestIamPermissionsResponse\x12\x13\x0A\x0Bpermissions\x18\x01 \x03(\x092\xB4\x03\x0A\x09IAMPolicy\x12t\x0A\x0CSetIamPolicy\x12\".google.iam.v1.SetIamPolicyRequest\x1A\x15.google.iam.v1.Policy\")\x82\xD3\xE4\x93\x02#\"\x1E/v1/{resource=**}:setIamPolicy:\x01*\x12t\x0A\x0CGetIamPolicy\x12\".google.iam.v1.GetIamPolicyRequest\x1A\x15.google.iam.v1.Policy\")\x82\xD3\xE4\x93\x02#\"\x1E/v1/{resource=**}:getIamPolicy:\x01*\x12\x9A\x01\x0A\x12TestIamPermissions\x12(.google.iam.v1.TestIamPermissionsRequest\x1A).google.iam.v1.TestIamPermissionsResponse\"/\x82\xD3\xE4\x93\x02)\"\$/v1/{resource=**}:testIamPermissions:\x01*\x1A\x1E\xCAA\x1Biam-meta-api.googleapis.comB|\x0A\x11com.google.iam.v1B\x0EIamPolicyProtoP\x01Z)cloud.google.com/go/iam/apiv1/iampb;iampb\xAA\x02\x13Google.Cloud.Iam.V1\xCA\x02\x13Google\\Cloud\\Iam\\V1b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/iam/proto/src/GPBMetadata/Google/Iam/V1/Logging/AuditData.php b/owl-bot-staging/CommonProtos/iam/proto/src/GPBMetadata/Google/Iam/V1/Logging/AuditData.php new file mode 100644 index 000000000000..93ae1a0279ec --- /dev/null +++ b/owl-bot-staging/CommonProtos/iam/proto/src/GPBMetadata/Google/Iam/V1/Logging/AuditData.php @@ -0,0 +1,25 @@ +internalAddGeneratedFile( + "\x0A\x8F\x02\x0A&google/iam/v1/logging/audit_data.proto\x12\x15google.iam.v1.logging\"=\x0A\x09AuditData\x120\x0A\x0Cpolicy_delta\x18\x02 \x01(\x0B2\x1A.google.iam.v1.PolicyDeltaB\x86\x01\x0A\x19com.google.iam.v1.loggingB\x0EAuditDataProtoP\x01Z9cloud.google.com/go/iam/apiv1/logging/loggingpb;loggingpb\xAA\x02\x1BGoogle.Cloud.Iam.V1.Loggingb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/iam/proto/src/GPBMetadata/Google/Iam/V1/Options.php b/owl-bot-staging/CommonProtos/iam/proto/src/GPBMetadata/Google/Iam/V1/Options.php new file mode 100644 index 000000000000..c5cfe44b6d86 --- /dev/null +++ b/owl-bot-staging/CommonProtos/iam/proto/src/GPBMetadata/Google/Iam/V1/Options.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\xE9\x01\x0A\x1Bgoogle/iam/v1/options.proto\x12\x0Dgoogle.iam.v1\"4\x0A\x10GetPolicyOptions\x12 \x0A\x18requested_policy_version\x18\x01 \x01(\x05B}\x0A\x11com.google.iam.v1B\x0COptionsProtoP\x01Z)cloud.google.com/go/iam/apiv1/iampb;iampb\xF8\x01\x01\xAA\x02\x13Google.Cloud.Iam.V1\xCA\x02\x13Google\\Cloud\\Iam\\V1b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/iam/proto/src/GPBMetadata/Google/Iam/V1/Policy.php b/owl-bot-staging/CommonProtos/iam/proto/src/GPBMetadata/Google/Iam/V1/Policy.php new file mode 100644 index 000000000000..8d23aec66987 --- /dev/null +++ b/owl-bot-staging/CommonProtos/iam/proto/src/GPBMetadata/Google/Iam/V1/Policy.php @@ -0,0 +1,25 @@ +internalAddGeneratedFile( + "\x0A\x9F\x09\x0A\x1Agoogle/iam/v1/policy.proto\x12\x0Dgoogle.iam.v1\"\x84\x01\x0A\x06Policy\x12\x0F\x0A\x07version\x18\x01 \x01(\x05\x12(\x0A\x08bindings\x18\x04 \x03(\x0B2\x16.google.iam.v1.Binding\x121\x0A\x0Daudit_configs\x18\x06 \x03(\x0B2\x1A.google.iam.v1.AuditConfig\x12\x0C\x0A\x04etag\x18\x03 \x01(\x0C\"N\x0A\x07Binding\x12\x0C\x0A\x04role\x18\x01 \x01(\x09\x12\x0F\x0A\x07members\x18\x02 \x03(\x09\x12\$\x0A\x09condition\x18\x03 \x01(\x0B2\x11.google.type.Expr\"X\x0A\x0BAuditConfig\x12\x0F\x0A\x07service\x18\x01 \x01(\x09\x128\x0A\x11audit_log_configs\x18\x03 \x03(\x0B2\x1D.google.iam.v1.AuditLogConfig\"\xB7\x01\x0A\x0EAuditLogConfig\x127\x0A\x08log_type\x18\x01 \x01(\x0E2%.google.iam.v1.AuditLogConfig.LogType\x12\x18\x0A\x10exempted_members\x18\x02 \x03(\x09\"R\x0A\x07LogType\x12\x18\x0A\x14LOG_TYPE_UNSPECIFIED\x10\x00\x12\x0E\x0A\x0AADMIN_READ\x10\x01\x12\x0E\x0A\x0ADATA_WRITE\x10\x02\x12\x0D\x0A\x09DATA_READ\x10\x03\"\x80\x01\x0A\x0BPolicyDelta\x123\x0A\x0Ebinding_deltas\x18\x01 \x03(\x0B2\x1B.google.iam.v1.BindingDelta\x12<\x0A\x13audit_config_deltas\x18\x02 \x03(\x0B2\x1F.google.iam.v1.AuditConfigDelta\"\xBD\x01\x0A\x0CBindingDelta\x122\x0A\x06action\x18\x01 \x01(\x0E2\".google.iam.v1.BindingDelta.Action\x12\x0C\x0A\x04role\x18\x02 \x01(\x09\x12\x0E\x0A\x06member\x18\x03 \x01(\x09\x12\$\x0A\x09condition\x18\x04 \x01(\x0B2\x11.google.type.Expr\"5\x0A\x06Action\x12\x16\x0A\x12ACTION_UNSPECIFIED\x10\x00\x12\x07\x0A\x03ADD\x10\x01\x12\x0A\x0A\x06REMOVE\x10\x02\"\xBD\x01\x0A\x10AuditConfigDelta\x126\x0A\x06action\x18\x01 \x01(\x0E2&.google.iam.v1.AuditConfigDelta.Action\x12\x0F\x0A\x07service\x18\x02 \x01(\x09\x12\x17\x0A\x0Fexempted_member\x18\x03 \x01(\x09\x12\x10\x0A\x08log_type\x18\x04 \x01(\x09\"5\x0A\x06Action\x12\x16\x0A\x12ACTION_UNSPECIFIED\x10\x00\x12\x07\x0A\x03ADD\x10\x01\x12\x0A\x0A\x06REMOVE\x10\x02B|\x0A\x11com.google.iam.v1B\x0BPolicyProtoP\x01Z)cloud.google.com/go/iam/apiv1/iampb;iampb\xF8\x01\x01\xAA\x02\x13Google.Cloud.Iam.V1\xCA\x02\x13Google\\Cloud\\Iam\\V1b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/iam/proto/src/GPBMetadata/Google/Iam/V1/ResourcePolicyMember.php b/owl-bot-staging/CommonProtos/iam/proto/src/GPBMetadata/Google/Iam/V1/ResourcePolicyMember.php new file mode 100644 index 000000000000..e7eb2e57e0f5 --- /dev/null +++ b/owl-bot-staging/CommonProtos/iam/proto/src/GPBMetadata/Google/Iam/V1/ResourcePolicyMember.php @@ -0,0 +1,25 @@ +internalAddGeneratedFile( + "\x0A\xB4\x02\x0A*google/iam/v1/resource_policy_member.proto\x12\x0Dgoogle.iam.v1\"e\x0A\x14ResourcePolicyMember\x12&\x0A\x19iam_policy_name_principal\x18\x01 \x01(\x09B\x03\xE0A\x03\x12%\x0A\x18iam_policy_uid_principal\x18\x02 \x01(\x09B\x03\xE0A\x03B\x87\x01\x0A\x11com.google.iam.v1B\x19ResourcePolicyMemberProtoP\x01Z)cloud.google.com/go/iam/apiv1/iampb;iampb\xAA\x02\x13Google.Cloud.Iam.V1\xCA\x02\x13Google\\Cloud\\Iam\\V1b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/AuditConfig.php b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/AuditConfig.php new file mode 100644 index 000000000000..ac3bee3b3c61 --- /dev/null +++ b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/AuditConfig.php @@ -0,0 +1,155 @@ +google.iam.v1.AuditConfig + */ +class AuditConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Specifies a service that will be enabled for audit logging. + * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. + * `allServices` is a special value that covers all services. + * + * Generated from protobuf field string service = 1; + */ + protected $service = ''; + /** + * The configuration for logging of each type of permission. + * + * Generated from protobuf field repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3; + */ + private $audit_log_configs; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $service + * Specifies a service that will be enabled for audit logging. + * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. + * `allServices` is a special value that covers all services. + * @type \Google\Cloud\Iam\V1\AuditLogConfig[] $audit_log_configs + * The configuration for logging of each type of permission. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Iam\V1\Policy::initOnce(); + parent::__construct($data); + } + + /** + * Specifies a service that will be enabled for audit logging. + * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. + * `allServices` is a special value that covers all services. + * + * Generated from protobuf field string service = 1; + * @return string + */ + public function getService() + { + return $this->service; + } + + /** + * Specifies a service that will be enabled for audit logging. + * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. + * `allServices` is a special value that covers all services. + * + * Generated from protobuf field string service = 1; + * @param string $var + * @return $this + */ + public function setService($var) + { + GPBUtil::checkString($var, True); + $this->service = $var; + + return $this; + } + + /** + * The configuration for logging of each type of permission. + * + * Generated from protobuf field repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3; + * @return RepeatedField<\Google\Cloud\Iam\V1\AuditLogConfig> + */ + public function getAuditLogConfigs() + { + return $this->audit_log_configs; + } + + /** + * The configuration for logging of each type of permission. + * + * Generated from protobuf field repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3; + * @param \Google\Cloud\Iam\V1\AuditLogConfig[] $var + * @return $this + */ + public function setAuditLogConfigs($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Iam\V1\AuditLogConfig::class); + $this->audit_log_configs = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/AuditConfigDelta.php b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/AuditConfigDelta.php new file mode 100644 index 000000000000..21a0626812ee --- /dev/null +++ b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/AuditConfigDelta.php @@ -0,0 +1,202 @@ +google.iam.v1.AuditConfigDelta + */ +class AuditConfigDelta extends \Google\Protobuf\Internal\Message +{ + /** + * The action that was performed on an audit configuration in a policy. + * Required + * + * Generated from protobuf field .google.iam.v1.AuditConfigDelta.Action action = 1; + */ + protected $action = 0; + /** + * Specifies a service that was configured for Cloud Audit Logging. + * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. + * `allServices` is a special value that covers all services. + * Required + * + * Generated from protobuf field string service = 2; + */ + protected $service = ''; + /** + * A single identity that is exempted from "data access" audit + * logging for the `service` specified above. + * Follows the same format of Binding.members. + * + * Generated from protobuf field string exempted_member = 3; + */ + protected $exempted_member = ''; + /** + * Specifies the log_type that was be enabled. ADMIN_ACTIVITY is always + * enabled, and cannot be configured. + * Required + * + * Generated from protobuf field string log_type = 4; + */ + protected $log_type = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $action + * The action that was performed on an audit configuration in a policy. + * Required + * @type string $service + * Specifies a service that was configured for Cloud Audit Logging. + * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. + * `allServices` is a special value that covers all services. + * Required + * @type string $exempted_member + * A single identity that is exempted from "data access" audit + * logging for the `service` specified above. + * Follows the same format of Binding.members. + * @type string $log_type + * Specifies the log_type that was be enabled. ADMIN_ACTIVITY is always + * enabled, and cannot be configured. + * Required + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Iam\V1\Policy::initOnce(); + parent::__construct($data); + } + + /** + * The action that was performed on an audit configuration in a policy. + * Required + * + * Generated from protobuf field .google.iam.v1.AuditConfigDelta.Action action = 1; + * @return int + */ + public function getAction() + { + return $this->action; + } + + /** + * The action that was performed on an audit configuration in a policy. + * Required + * + * Generated from protobuf field .google.iam.v1.AuditConfigDelta.Action action = 1; + * @param int $var + * @return $this + */ + public function setAction($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Iam\V1\AuditConfigDelta\Action::class); + $this->action = $var; + + return $this; + } + + /** + * Specifies a service that was configured for Cloud Audit Logging. + * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. + * `allServices` is a special value that covers all services. + * Required + * + * Generated from protobuf field string service = 2; + * @return string + */ + public function getService() + { + return $this->service; + } + + /** + * Specifies a service that was configured for Cloud Audit Logging. + * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. + * `allServices` is a special value that covers all services. + * Required + * + * Generated from protobuf field string service = 2; + * @param string $var + * @return $this + */ + public function setService($var) + { + GPBUtil::checkString($var, True); + $this->service = $var; + + return $this; + } + + /** + * A single identity that is exempted from "data access" audit + * logging for the `service` specified above. + * Follows the same format of Binding.members. + * + * Generated from protobuf field string exempted_member = 3; + * @return string + */ + public function getExemptedMember() + { + return $this->exempted_member; + } + + /** + * A single identity that is exempted from "data access" audit + * logging for the `service` specified above. + * Follows the same format of Binding.members. + * + * Generated from protobuf field string exempted_member = 3; + * @param string $var + * @return $this + */ + public function setExemptedMember($var) + { + GPBUtil::checkString($var, True); + $this->exempted_member = $var; + + return $this; + } + + /** + * Specifies the log_type that was be enabled. ADMIN_ACTIVITY is always + * enabled, and cannot be configured. + * Required + * + * Generated from protobuf field string log_type = 4; + * @return string + */ + public function getLogType() + { + return $this->log_type; + } + + /** + * Specifies the log_type that was be enabled. ADMIN_ACTIVITY is always + * enabled, and cannot be configured. + * Required + * + * Generated from protobuf field string log_type = 4; + * @param string $var + * @return $this + */ + public function setLogType($var) + { + GPBUtil::checkString($var, True); + $this->log_type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/AuditConfigDelta/Action.php b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/AuditConfigDelta/Action.php new file mode 100644 index 000000000000..7f92d4fb9d3a --- /dev/null +++ b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/AuditConfigDelta/Action.php @@ -0,0 +1,61 @@ +google.iam.v1.AuditConfigDelta.Action + */ +class Action +{ + /** + * Unspecified. + * + * Generated from protobuf enum ACTION_UNSPECIFIED = 0; + */ + const ACTION_UNSPECIFIED = 0; + /** + * Addition of an audit configuration. + * + * Generated from protobuf enum ADD = 1; + */ + const ADD = 1; + /** + * Removal of an audit configuration. + * + * Generated from protobuf enum REMOVE = 2; + */ + const REMOVE = 2; + + private static $valueToName = [ + self::ACTION_UNSPECIFIED => 'ACTION_UNSPECIFIED', + self::ADD => 'ADD', + self::REMOVE => 'REMOVE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/AuditLogConfig.php b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/AuditLogConfig.php new file mode 100644 index 000000000000..acf7ef30df02 --- /dev/null +++ b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/AuditLogConfig.php @@ -0,0 +1,129 @@ +google.iam.v1.AuditLogConfig + */ +class AuditLogConfig extends \Google\Protobuf\Internal\Message +{ + /** + * The log type that this config enables. + * + * Generated from protobuf field .google.iam.v1.AuditLogConfig.LogType log_type = 1; + */ + protected $log_type = 0; + /** + * Specifies the identities that do not cause logging for this type of + * permission. + * Follows the same format of + * [Binding.members][google.iam.v1.Binding.members]. + * + * Generated from protobuf field repeated string exempted_members = 2; + */ + private $exempted_members; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $log_type + * The log type that this config enables. + * @type string[] $exempted_members + * Specifies the identities that do not cause logging for this type of + * permission. + * Follows the same format of + * [Binding.members][google.iam.v1.Binding.members]. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Iam\V1\Policy::initOnce(); + parent::__construct($data); + } + + /** + * The log type that this config enables. + * + * Generated from protobuf field .google.iam.v1.AuditLogConfig.LogType log_type = 1; + * @return int + */ + public function getLogType() + { + return $this->log_type; + } + + /** + * The log type that this config enables. + * + * Generated from protobuf field .google.iam.v1.AuditLogConfig.LogType log_type = 1; + * @param int $var + * @return $this + */ + public function setLogType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Iam\V1\AuditLogConfig\LogType::class); + $this->log_type = $var; + + return $this; + } + + /** + * Specifies the identities that do not cause logging for this type of + * permission. + * Follows the same format of + * [Binding.members][google.iam.v1.Binding.members]. + * + * Generated from protobuf field repeated string exempted_members = 2; + * @return RepeatedField + */ + public function getExemptedMembers() + { + return $this->exempted_members; + } + + /** + * Specifies the identities that do not cause logging for this type of + * permission. + * Follows the same format of + * [Binding.members][google.iam.v1.Binding.members]. + * + * Generated from protobuf field repeated string exempted_members = 2; + * @param string[] $var + * @return $this + */ + public function setExemptedMembers($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->exempted_members = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/AuditLogConfig/LogType.php b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/AuditLogConfig/LogType.php new file mode 100644 index 000000000000..5a86bc2f1bfe --- /dev/null +++ b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/AuditLogConfig/LogType.php @@ -0,0 +1,69 @@ +google.iam.v1.AuditLogConfig.LogType + */ +class LogType +{ + /** + * Default case. Should never be this. + * + * Generated from protobuf enum LOG_TYPE_UNSPECIFIED = 0; + */ + const LOG_TYPE_UNSPECIFIED = 0; + /** + * Admin reads. Example: CloudIAM getIamPolicy + * + * Generated from protobuf enum ADMIN_READ = 1; + */ + const ADMIN_READ = 1; + /** + * Data writes. Example: CloudSQL Users create + * + * Generated from protobuf enum DATA_WRITE = 2; + */ + const DATA_WRITE = 2; + /** + * Data reads. Example: CloudSQL Users list + * + * Generated from protobuf enum DATA_READ = 3; + */ + const DATA_READ = 3; + + private static $valueToName = [ + self::LOG_TYPE_UNSPECIFIED => 'LOG_TYPE_UNSPECIFIED', + self::ADMIN_READ => 'ADMIN_READ', + self::DATA_WRITE => 'DATA_WRITE', + self::DATA_READ => 'DATA_READ', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/Binding.php b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/Binding.php new file mode 100644 index 000000000000..29ee4fafde06 --- /dev/null +++ b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/Binding.php @@ -0,0 +1,301 @@ +google.iam.v1.Binding + */ +class Binding extends \Google\Protobuf\Internal\Message +{ + /** + * Role that is assigned to the list of `members`, or principals. + * For example, `roles/viewer`, `roles/editor`, or `roles/owner`. + * + * Generated from protobuf field string role = 1; + */ + protected $role = ''; + /** + * Specifies the principals requesting access for a Google Cloud resource. + * `members` can have the following values: + * * `allUsers`: A special identifier that represents anyone who is + * on the internet; with or without a Google account. + * * `allAuthenticatedUsers`: A special identifier that represents anyone + * who is authenticated with a Google account or a service account. + * * `user:{emailid}`: An email address that represents a specific Google + * account. For example, `alice\@example.com` . + * * `serviceAccount:{emailid}`: An email address that represents a service + * account. For example, `my-other-app\@appspot.gserviceaccount.com`. + * * `group:{emailid}`: An email address that represents a Google group. + * For example, `admins\@example.com`. + * * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique + * identifier) representing a user that has been recently deleted. For + * example, `alice\@example.com?uid=123456789012345678901`. If the user is + * recovered, this value reverts to `user:{emailid}` and the recovered user + * retains the role in the binding. + * * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus + * unique identifier) representing a service account that has been recently + * deleted. For example, + * `my-other-app\@appspot.gserviceaccount.com?uid=123456789012345678901`. + * If the service account is undeleted, this value reverts to + * `serviceAccount:{emailid}` and the undeleted service account retains the + * role in the binding. + * * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique + * identifier) representing a Google group that has been recently + * deleted. For example, `admins\@example.com?uid=123456789012345678901`. If + * the group is recovered, this value reverts to `group:{emailid}` and the + * recovered group retains the role in the binding. + * * `domain:{domain}`: The G Suite domain (primary) that represents all the + * users of that domain. For example, `google.com` or `example.com`. + * + * Generated from protobuf field repeated string members = 2; + */ + private $members; + /** + * The condition that is associated with this binding. + * If the condition evaluates to `true`, then this binding applies to the + * current request. + * If the condition evaluates to `false`, then this binding does not apply to + * the current request. However, a different role binding might grant the same + * role to one or more of the principals in this binding. + * To learn which resources support conditions in their IAM policies, see the + * [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + * + * Generated from protobuf field .google.type.Expr condition = 3; + */ + protected $condition = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $role + * Role that is assigned to the list of `members`, or principals. + * For example, `roles/viewer`, `roles/editor`, or `roles/owner`. + * @type string[] $members + * Specifies the principals requesting access for a Google Cloud resource. + * `members` can have the following values: + * * `allUsers`: A special identifier that represents anyone who is + * on the internet; with or without a Google account. + * * `allAuthenticatedUsers`: A special identifier that represents anyone + * who is authenticated with a Google account or a service account. + * * `user:{emailid}`: An email address that represents a specific Google + * account. For example, `alice\@example.com` . + * * `serviceAccount:{emailid}`: An email address that represents a service + * account. For example, `my-other-app\@appspot.gserviceaccount.com`. + * * `group:{emailid}`: An email address that represents a Google group. + * For example, `admins\@example.com`. + * * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique + * identifier) representing a user that has been recently deleted. For + * example, `alice\@example.com?uid=123456789012345678901`. If the user is + * recovered, this value reverts to `user:{emailid}` and the recovered user + * retains the role in the binding. + * * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus + * unique identifier) representing a service account that has been recently + * deleted. For example, + * `my-other-app\@appspot.gserviceaccount.com?uid=123456789012345678901`. + * If the service account is undeleted, this value reverts to + * `serviceAccount:{emailid}` and the undeleted service account retains the + * role in the binding. + * * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique + * identifier) representing a Google group that has been recently + * deleted. For example, `admins\@example.com?uid=123456789012345678901`. If + * the group is recovered, this value reverts to `group:{emailid}` and the + * recovered group retains the role in the binding. + * * `domain:{domain}`: The G Suite domain (primary) that represents all the + * users of that domain. For example, `google.com` or `example.com`. + * @type \Google\Type\Expr $condition + * The condition that is associated with this binding. + * If the condition evaluates to `true`, then this binding applies to the + * current request. + * If the condition evaluates to `false`, then this binding does not apply to + * the current request. However, a different role binding might grant the same + * role to one or more of the principals in this binding. + * To learn which resources support conditions in their IAM policies, see the + * [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Iam\V1\Policy::initOnce(); + parent::__construct($data); + } + + /** + * Role that is assigned to the list of `members`, or principals. + * For example, `roles/viewer`, `roles/editor`, or `roles/owner`. + * + * Generated from protobuf field string role = 1; + * @return string + */ + public function getRole() + { + return $this->role; + } + + /** + * Role that is assigned to the list of `members`, or principals. + * For example, `roles/viewer`, `roles/editor`, or `roles/owner`. + * + * Generated from protobuf field string role = 1; + * @param string $var + * @return $this + */ + public function setRole($var) + { + GPBUtil::checkString($var, True); + $this->role = $var; + + return $this; + } + + /** + * Specifies the principals requesting access for a Google Cloud resource. + * `members` can have the following values: + * * `allUsers`: A special identifier that represents anyone who is + * on the internet; with or without a Google account. + * * `allAuthenticatedUsers`: A special identifier that represents anyone + * who is authenticated with a Google account or a service account. + * * `user:{emailid}`: An email address that represents a specific Google + * account. For example, `alice\@example.com` . + * * `serviceAccount:{emailid}`: An email address that represents a service + * account. For example, `my-other-app\@appspot.gserviceaccount.com`. + * * `group:{emailid}`: An email address that represents a Google group. + * For example, `admins\@example.com`. + * * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique + * identifier) representing a user that has been recently deleted. For + * example, `alice\@example.com?uid=123456789012345678901`. If the user is + * recovered, this value reverts to `user:{emailid}` and the recovered user + * retains the role in the binding. + * * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus + * unique identifier) representing a service account that has been recently + * deleted. For example, + * `my-other-app\@appspot.gserviceaccount.com?uid=123456789012345678901`. + * If the service account is undeleted, this value reverts to + * `serviceAccount:{emailid}` and the undeleted service account retains the + * role in the binding. + * * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique + * identifier) representing a Google group that has been recently + * deleted. For example, `admins\@example.com?uid=123456789012345678901`. If + * the group is recovered, this value reverts to `group:{emailid}` and the + * recovered group retains the role in the binding. + * * `domain:{domain}`: The G Suite domain (primary) that represents all the + * users of that domain. For example, `google.com` or `example.com`. + * + * Generated from protobuf field repeated string members = 2; + * @return RepeatedField + */ + public function getMembers() + { + return $this->members; + } + + /** + * Specifies the principals requesting access for a Google Cloud resource. + * `members` can have the following values: + * * `allUsers`: A special identifier that represents anyone who is + * on the internet; with or without a Google account. + * * `allAuthenticatedUsers`: A special identifier that represents anyone + * who is authenticated with a Google account or a service account. + * * `user:{emailid}`: An email address that represents a specific Google + * account. For example, `alice\@example.com` . + * * `serviceAccount:{emailid}`: An email address that represents a service + * account. For example, `my-other-app\@appspot.gserviceaccount.com`. + * * `group:{emailid}`: An email address that represents a Google group. + * For example, `admins\@example.com`. + * * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique + * identifier) representing a user that has been recently deleted. For + * example, `alice\@example.com?uid=123456789012345678901`. If the user is + * recovered, this value reverts to `user:{emailid}` and the recovered user + * retains the role in the binding. + * * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus + * unique identifier) representing a service account that has been recently + * deleted. For example, + * `my-other-app\@appspot.gserviceaccount.com?uid=123456789012345678901`. + * If the service account is undeleted, this value reverts to + * `serviceAccount:{emailid}` and the undeleted service account retains the + * role in the binding. + * * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique + * identifier) representing a Google group that has been recently + * deleted. For example, `admins\@example.com?uid=123456789012345678901`. If + * the group is recovered, this value reverts to `group:{emailid}` and the + * recovered group retains the role in the binding. + * * `domain:{domain}`: The G Suite domain (primary) that represents all the + * users of that domain. For example, `google.com` or `example.com`. + * + * Generated from protobuf field repeated string members = 2; + * @param string[] $var + * @return $this + */ + public function setMembers($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->members = $arr; + + return $this; + } + + /** + * The condition that is associated with this binding. + * If the condition evaluates to `true`, then this binding applies to the + * current request. + * If the condition evaluates to `false`, then this binding does not apply to + * the current request. However, a different role binding might grant the same + * role to one or more of the principals in this binding. + * To learn which resources support conditions in their IAM policies, see the + * [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + * + * Generated from protobuf field .google.type.Expr condition = 3; + * @return \Google\Type\Expr|null + */ + public function getCondition() + { + return $this->condition; + } + + public function hasCondition() + { + return isset($this->condition); + } + + public function clearCondition() + { + unset($this->condition); + } + + /** + * The condition that is associated with this binding. + * If the condition evaluates to `true`, then this binding applies to the + * current request. + * If the condition evaluates to `false`, then this binding does not apply to + * the current request. However, a different role binding might grant the same + * role to one or more of the principals in this binding. + * To learn which resources support conditions in their IAM policies, see the + * [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + * + * Generated from protobuf field .google.type.Expr condition = 3; + * @param \Google\Type\Expr $var + * @return $this + */ + public function setCondition($var) + { + GPBUtil::checkMessage($var, \Google\Type\Expr::class); + $this->condition = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/BindingDelta.php b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/BindingDelta.php new file mode 100644 index 000000000000..4563d6089a6e --- /dev/null +++ b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/BindingDelta.php @@ -0,0 +1,200 @@ +google.iam.v1.BindingDelta + */ +class BindingDelta extends \Google\Protobuf\Internal\Message +{ + /** + * The action that was performed on a Binding. + * Required + * + * Generated from protobuf field .google.iam.v1.BindingDelta.Action action = 1; + */ + protected $action = 0; + /** + * Role that is assigned to `members`. + * For example, `roles/viewer`, `roles/editor`, or `roles/owner`. + * Required + * + * Generated from protobuf field string role = 2; + */ + protected $role = ''; + /** + * A single identity requesting access for a Google Cloud resource. + * Follows the same format of Binding.members. + * Required + * + * Generated from protobuf field string member = 3; + */ + protected $member = ''; + /** + * The condition that is associated with this binding. + * + * Generated from protobuf field .google.type.Expr condition = 4; + */ + protected $condition = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $action + * The action that was performed on a Binding. + * Required + * @type string $role + * Role that is assigned to `members`. + * For example, `roles/viewer`, `roles/editor`, or `roles/owner`. + * Required + * @type string $member + * A single identity requesting access for a Google Cloud resource. + * Follows the same format of Binding.members. + * Required + * @type \Google\Type\Expr $condition + * The condition that is associated with this binding. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Iam\V1\Policy::initOnce(); + parent::__construct($data); + } + + /** + * The action that was performed on a Binding. + * Required + * + * Generated from protobuf field .google.iam.v1.BindingDelta.Action action = 1; + * @return int + */ + public function getAction() + { + return $this->action; + } + + /** + * The action that was performed on a Binding. + * Required + * + * Generated from protobuf field .google.iam.v1.BindingDelta.Action action = 1; + * @param int $var + * @return $this + */ + public function setAction($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Iam\V1\BindingDelta\Action::class); + $this->action = $var; + + return $this; + } + + /** + * Role that is assigned to `members`. + * For example, `roles/viewer`, `roles/editor`, or `roles/owner`. + * Required + * + * Generated from protobuf field string role = 2; + * @return string + */ + public function getRole() + { + return $this->role; + } + + /** + * Role that is assigned to `members`. + * For example, `roles/viewer`, `roles/editor`, or `roles/owner`. + * Required + * + * Generated from protobuf field string role = 2; + * @param string $var + * @return $this + */ + public function setRole($var) + { + GPBUtil::checkString($var, True); + $this->role = $var; + + return $this; + } + + /** + * A single identity requesting access for a Google Cloud resource. + * Follows the same format of Binding.members. + * Required + * + * Generated from protobuf field string member = 3; + * @return string + */ + public function getMember() + { + return $this->member; + } + + /** + * A single identity requesting access for a Google Cloud resource. + * Follows the same format of Binding.members. + * Required + * + * Generated from protobuf field string member = 3; + * @param string $var + * @return $this + */ + public function setMember($var) + { + GPBUtil::checkString($var, True); + $this->member = $var; + + return $this; + } + + /** + * The condition that is associated with this binding. + * + * Generated from protobuf field .google.type.Expr condition = 4; + * @return \Google\Type\Expr|null + */ + public function getCondition() + { + return $this->condition; + } + + public function hasCondition() + { + return isset($this->condition); + } + + public function clearCondition() + { + unset($this->condition); + } + + /** + * The condition that is associated with this binding. + * + * Generated from protobuf field .google.type.Expr condition = 4; + * @param \Google\Type\Expr $var + * @return $this + */ + public function setCondition($var) + { + GPBUtil::checkMessage($var, \Google\Type\Expr::class); + $this->condition = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/BindingDelta/Action.php b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/BindingDelta/Action.php new file mode 100644 index 000000000000..18b7295093b6 --- /dev/null +++ b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/BindingDelta/Action.php @@ -0,0 +1,61 @@ +google.iam.v1.BindingDelta.Action + */ +class Action +{ + /** + * Unspecified. + * + * Generated from protobuf enum ACTION_UNSPECIFIED = 0; + */ + const ACTION_UNSPECIFIED = 0; + /** + * Addition of a Binding. + * + * Generated from protobuf enum ADD = 1; + */ + const ADD = 1; + /** + * Removal of a Binding. + * + * Generated from protobuf enum REMOVE = 2; + */ + const REMOVE = 2; + + private static $valueToName = [ + self::ACTION_UNSPECIFIED => 'ACTION_UNSPECIFIED', + self::ADD => 'ADD', + self::REMOVE => 'REMOVE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/GetIamPolicyRequest.php b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/GetIamPolicyRequest.php new file mode 100644 index 000000000000..231483b15f0c --- /dev/null +++ b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/GetIamPolicyRequest.php @@ -0,0 +1,119 @@ +google.iam.v1.GetIamPolicyRequest + */ +class GetIamPolicyRequest extends \Google\Protobuf\Internal\Message +{ + /** + * REQUIRED: The resource for which the policy is being requested. + * See the operation documentation for the appropriate value for this field. + * + * Generated from protobuf field string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $resource = ''; + /** + * OPTIONAL: A `GetPolicyOptions` object for specifying options to + * `GetIamPolicy`. + * + * Generated from protobuf field .google.iam.v1.GetPolicyOptions options = 2; + */ + protected $options = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $resource + * REQUIRED: The resource for which the policy is being requested. + * See the operation documentation for the appropriate value for this field. + * @type \Google\Cloud\Iam\V1\GetPolicyOptions $options + * OPTIONAL: A `GetPolicyOptions` object for specifying options to + * `GetIamPolicy`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Iam\V1\IamPolicy::initOnce(); + parent::__construct($data); + } + + /** + * REQUIRED: The resource for which the policy is being requested. + * See the operation documentation for the appropriate value for this field. + * + * Generated from protobuf field string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getResource() + { + return $this->resource; + } + + /** + * REQUIRED: The resource for which the policy is being requested. + * See the operation documentation for the appropriate value for this field. + * + * Generated from protobuf field string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setResource($var) + { + GPBUtil::checkString($var, True); + $this->resource = $var; + + return $this; + } + + /** + * OPTIONAL: A `GetPolicyOptions` object for specifying options to + * `GetIamPolicy`. + * + * Generated from protobuf field .google.iam.v1.GetPolicyOptions options = 2; + * @return \Google\Cloud\Iam\V1\GetPolicyOptions|null + */ + public function getOptions() + { + return $this->options; + } + + public function hasOptions() + { + return isset($this->options); + } + + public function clearOptions() + { + unset($this->options); + } + + /** + * OPTIONAL: A `GetPolicyOptions` object for specifying options to + * `GetIamPolicy`. + * + * Generated from protobuf field .google.iam.v1.GetPolicyOptions options = 2; + * @param \Google\Cloud\Iam\V1\GetPolicyOptions $var + * @return $this + */ + public function setOptions($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Iam\V1\GetPolicyOptions::class); + $this->options = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/GetPolicyOptions.php b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/GetPolicyOptions.php new file mode 100644 index 000000000000..0b245e12e1a2 --- /dev/null +++ b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/GetPolicyOptions.php @@ -0,0 +1,119 @@ +google.iam.v1.GetPolicyOptions + */ +class GetPolicyOptions extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The maximum policy version that will be used to format the + * policy. + * Valid values are 0, 1, and 3. Requests specifying an invalid value will be + * rejected. + * Requests for policies with any conditional role bindings must specify + * version 3. Policies with no conditional role bindings may specify any valid + * value or leave the field unset. + * The policy in the response might use the policy version that you specified, + * or it might use a lower policy version. For example, if you specify version + * 3, but the policy has no conditional role bindings, the response uses + * version 1. + * To learn which resources support conditions in their IAM policies, see the + * [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + * + * Generated from protobuf field int32 requested_policy_version = 1; + */ + protected $requested_policy_version = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $requested_policy_version + * Optional. The maximum policy version that will be used to format the + * policy. + * Valid values are 0, 1, and 3. Requests specifying an invalid value will be + * rejected. + * Requests for policies with any conditional role bindings must specify + * version 3. Policies with no conditional role bindings may specify any valid + * value or leave the field unset. + * The policy in the response might use the policy version that you specified, + * or it might use a lower policy version. For example, if you specify version + * 3, but the policy has no conditional role bindings, the response uses + * version 1. + * To learn which resources support conditions in their IAM policies, see the + * [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Iam\V1\Options::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The maximum policy version that will be used to format the + * policy. + * Valid values are 0, 1, and 3. Requests specifying an invalid value will be + * rejected. + * Requests for policies with any conditional role bindings must specify + * version 3. Policies with no conditional role bindings may specify any valid + * value or leave the field unset. + * The policy in the response might use the policy version that you specified, + * or it might use a lower policy version. For example, if you specify version + * 3, but the policy has no conditional role bindings, the response uses + * version 1. + * To learn which resources support conditions in their IAM policies, see the + * [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + * + * Generated from protobuf field int32 requested_policy_version = 1; + * @return int + */ + public function getRequestedPolicyVersion() + { + return $this->requested_policy_version; + } + + /** + * Optional. The maximum policy version that will be used to format the + * policy. + * Valid values are 0, 1, and 3. Requests specifying an invalid value will be + * rejected. + * Requests for policies with any conditional role bindings must specify + * version 3. Policies with no conditional role bindings may specify any valid + * value or leave the field unset. + * The policy in the response might use the policy version that you specified, + * or it might use a lower policy version. For example, if you specify version + * 3, but the policy has no conditional role bindings, the response uses + * version 1. + * To learn which resources support conditions in their IAM policies, see the + * [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + * + * Generated from protobuf field int32 requested_policy_version = 1; + * @param int $var + * @return $this + */ + public function setRequestedPolicyVersion($var) + { + GPBUtil::checkInt32($var); + $this->requested_policy_version = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/Policy.php b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/Policy.php new file mode 100644 index 000000000000..72e7c3f0186d --- /dev/null +++ b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/Policy.php @@ -0,0 +1,377 @@ +google.iam.v1.Policy + */ +class Policy extends \Google\Protobuf\Internal\Message +{ + /** + * Specifies the format of the policy. + * Valid values are `0`, `1`, and `3`. Requests that specify an invalid value + * are rejected. + * Any operation that affects conditional role bindings must specify version + * `3`. This requirement applies to the following operations: + * * Getting a policy that includes a conditional role binding + * * Adding a conditional role binding to a policy + * * Changing a conditional role binding in a policy + * * Removing any role binding, with or without a condition, from a policy + * that includes conditions + * **Important:** If you use IAM Conditions, you must include the `etag` field + * whenever you call `setIamPolicy`. If you omit this field, then IAM allows + * you to overwrite a version `3` policy with a version `1` policy, and all of + * the conditions in the version `3` policy are lost. + * If a policy does not include any conditions, operations on that policy may + * specify any valid version or leave the field unset. + * To learn which resources support conditions in their IAM policies, see the + * [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + * + * Generated from protobuf field int32 version = 1; + */ + protected $version = 0; + /** + * Associates a list of `members`, or principals, with a `role`. Optionally, + * may specify a `condition` that determines how and when the `bindings` are + * applied. Each of the `bindings` must contain at least one principal. + * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 + * of these principals can be Google groups. Each occurrence of a principal + * counts towards these limits. For example, if the `bindings` grant 50 + * different roles to `user:alice\@example.com`, and not to any other + * principal, then you can add another 1,450 principals to the `bindings` in + * the `Policy`. + * + * Generated from protobuf field repeated .google.iam.v1.Binding bindings = 4; + */ + private $bindings; + /** + * Specifies cloud audit logging configuration for this policy. + * + * Generated from protobuf field repeated .google.iam.v1.AuditConfig audit_configs = 6; + */ + private $audit_configs; + /** + * `etag` is used for optimistic concurrency control as a way to help + * prevent simultaneous updates of a policy from overwriting each other. + * It is strongly suggested that systems make use of the `etag` in the + * read-modify-write cycle to perform policy updates in order to avoid race + * conditions: An `etag` is returned in the response to `getIamPolicy`, and + * systems are expected to put that etag in the request to `setIamPolicy` to + * ensure that their change will be applied to the same version of the policy. + * **Important:** If you use IAM Conditions, you must include the `etag` field + * whenever you call `setIamPolicy`. If you omit this field, then IAM allows + * you to overwrite a version `3` policy with a version `1` policy, and all of + * the conditions in the version `3` policy are lost. + * + * Generated from protobuf field bytes etag = 3; + */ + protected $etag = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $version + * Specifies the format of the policy. + * Valid values are `0`, `1`, and `3`. Requests that specify an invalid value + * are rejected. + * Any operation that affects conditional role bindings must specify version + * `3`. This requirement applies to the following operations: + * * Getting a policy that includes a conditional role binding + * * Adding a conditional role binding to a policy + * * Changing a conditional role binding in a policy + * * Removing any role binding, with or without a condition, from a policy + * that includes conditions + * **Important:** If you use IAM Conditions, you must include the `etag` field + * whenever you call `setIamPolicy`. If you omit this field, then IAM allows + * you to overwrite a version `3` policy with a version `1` policy, and all of + * the conditions in the version `3` policy are lost. + * If a policy does not include any conditions, operations on that policy may + * specify any valid version or leave the field unset. + * To learn which resources support conditions in their IAM policies, see the + * [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + * @type \Google\Cloud\Iam\V1\Binding[] $bindings + * Associates a list of `members`, or principals, with a `role`. Optionally, + * may specify a `condition` that determines how and when the `bindings` are + * applied. Each of the `bindings` must contain at least one principal. + * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 + * of these principals can be Google groups. Each occurrence of a principal + * counts towards these limits. For example, if the `bindings` grant 50 + * different roles to `user:alice\@example.com`, and not to any other + * principal, then you can add another 1,450 principals to the `bindings` in + * the `Policy`. + * @type \Google\Cloud\Iam\V1\AuditConfig[] $audit_configs + * Specifies cloud audit logging configuration for this policy. + * @type string $etag + * `etag` is used for optimistic concurrency control as a way to help + * prevent simultaneous updates of a policy from overwriting each other. + * It is strongly suggested that systems make use of the `etag` in the + * read-modify-write cycle to perform policy updates in order to avoid race + * conditions: An `etag` is returned in the response to `getIamPolicy`, and + * systems are expected to put that etag in the request to `setIamPolicy` to + * ensure that their change will be applied to the same version of the policy. + * **Important:** If you use IAM Conditions, you must include the `etag` field + * whenever you call `setIamPolicy`. If you omit this field, then IAM allows + * you to overwrite a version `3` policy with a version `1` policy, and all of + * the conditions in the version `3` policy are lost. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Iam\V1\Policy::initOnce(); + parent::__construct($data); + } + + /** + * Specifies the format of the policy. + * Valid values are `0`, `1`, and `3`. Requests that specify an invalid value + * are rejected. + * Any operation that affects conditional role bindings must specify version + * `3`. This requirement applies to the following operations: + * * Getting a policy that includes a conditional role binding + * * Adding a conditional role binding to a policy + * * Changing a conditional role binding in a policy + * * Removing any role binding, with or without a condition, from a policy + * that includes conditions + * **Important:** If you use IAM Conditions, you must include the `etag` field + * whenever you call `setIamPolicy`. If you omit this field, then IAM allows + * you to overwrite a version `3` policy with a version `1` policy, and all of + * the conditions in the version `3` policy are lost. + * If a policy does not include any conditions, operations on that policy may + * specify any valid version or leave the field unset. + * To learn which resources support conditions in their IAM policies, see the + * [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + * + * Generated from protobuf field int32 version = 1; + * @return int + */ + public function getVersion() + { + return $this->version; + } + + /** + * Specifies the format of the policy. + * Valid values are `0`, `1`, and `3`. Requests that specify an invalid value + * are rejected. + * Any operation that affects conditional role bindings must specify version + * `3`. This requirement applies to the following operations: + * * Getting a policy that includes a conditional role binding + * * Adding a conditional role binding to a policy + * * Changing a conditional role binding in a policy + * * Removing any role binding, with or without a condition, from a policy + * that includes conditions + * **Important:** If you use IAM Conditions, you must include the `etag` field + * whenever you call `setIamPolicy`. If you omit this field, then IAM allows + * you to overwrite a version `3` policy with a version `1` policy, and all of + * the conditions in the version `3` policy are lost. + * If a policy does not include any conditions, operations on that policy may + * specify any valid version or leave the field unset. + * To learn which resources support conditions in their IAM policies, see the + * [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + * + * Generated from protobuf field int32 version = 1; + * @param int $var + * @return $this + */ + public function setVersion($var) + { + GPBUtil::checkInt32($var); + $this->version = $var; + + return $this; + } + + /** + * Associates a list of `members`, or principals, with a `role`. Optionally, + * may specify a `condition` that determines how and when the `bindings` are + * applied. Each of the `bindings` must contain at least one principal. + * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 + * of these principals can be Google groups. Each occurrence of a principal + * counts towards these limits. For example, if the `bindings` grant 50 + * different roles to `user:alice\@example.com`, and not to any other + * principal, then you can add another 1,450 principals to the `bindings` in + * the `Policy`. + * + * Generated from protobuf field repeated .google.iam.v1.Binding bindings = 4; + * @return RepeatedField<\Google\Cloud\Iam\V1\Binding> + */ + public function getBindings() + { + return $this->bindings; + } + + /** + * Associates a list of `members`, or principals, with a `role`. Optionally, + * may specify a `condition` that determines how and when the `bindings` are + * applied. Each of the `bindings` must contain at least one principal. + * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 + * of these principals can be Google groups. Each occurrence of a principal + * counts towards these limits. For example, if the `bindings` grant 50 + * different roles to `user:alice\@example.com`, and not to any other + * principal, then you can add another 1,450 principals to the `bindings` in + * the `Policy`. + * + * Generated from protobuf field repeated .google.iam.v1.Binding bindings = 4; + * @param \Google\Cloud\Iam\V1\Binding[] $var + * @return $this + */ + public function setBindings($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Iam\V1\Binding::class); + $this->bindings = $arr; + + return $this; + } + + /** + * Specifies cloud audit logging configuration for this policy. + * + * Generated from protobuf field repeated .google.iam.v1.AuditConfig audit_configs = 6; + * @return RepeatedField<\Google\Cloud\Iam\V1\AuditConfig> + */ + public function getAuditConfigs() + { + return $this->audit_configs; + } + + /** + * Specifies cloud audit logging configuration for this policy. + * + * Generated from protobuf field repeated .google.iam.v1.AuditConfig audit_configs = 6; + * @param \Google\Cloud\Iam\V1\AuditConfig[] $var + * @return $this + */ + public function setAuditConfigs($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Iam\V1\AuditConfig::class); + $this->audit_configs = $arr; + + return $this; + } + + /** + * `etag` is used for optimistic concurrency control as a way to help + * prevent simultaneous updates of a policy from overwriting each other. + * It is strongly suggested that systems make use of the `etag` in the + * read-modify-write cycle to perform policy updates in order to avoid race + * conditions: An `etag` is returned in the response to `getIamPolicy`, and + * systems are expected to put that etag in the request to `setIamPolicy` to + * ensure that their change will be applied to the same version of the policy. + * **Important:** If you use IAM Conditions, you must include the `etag` field + * whenever you call `setIamPolicy`. If you omit this field, then IAM allows + * you to overwrite a version `3` policy with a version `1` policy, and all of + * the conditions in the version `3` policy are lost. + * + * Generated from protobuf field bytes etag = 3; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * `etag` is used for optimistic concurrency control as a way to help + * prevent simultaneous updates of a policy from overwriting each other. + * It is strongly suggested that systems make use of the `etag` in the + * read-modify-write cycle to perform policy updates in order to avoid race + * conditions: An `etag` is returned in the response to `getIamPolicy`, and + * systems are expected to put that etag in the request to `setIamPolicy` to + * ensure that their change will be applied to the same version of the policy. + * **Important:** If you use IAM Conditions, you must include the `etag` field + * whenever you call `setIamPolicy`. If you omit this field, then IAM allows + * you to overwrite a version `3` policy with a version `1` policy, and all of + * the conditions in the version `3` policy are lost. + * + * Generated from protobuf field bytes etag = 3; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, False); + $this->etag = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/PolicyDelta.php b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/PolicyDelta.php new file mode 100644 index 000000000000..8f421643b836 --- /dev/null +++ b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/PolicyDelta.php @@ -0,0 +1,101 @@ +google.iam.v1.PolicyDelta + */ +class PolicyDelta extends \Google\Protobuf\Internal\Message +{ + /** + * The delta for Bindings between two policies. + * + * Generated from protobuf field repeated .google.iam.v1.BindingDelta binding_deltas = 1; + */ + private $binding_deltas; + /** + * The delta for AuditConfigs between two policies. + * + * Generated from protobuf field repeated .google.iam.v1.AuditConfigDelta audit_config_deltas = 2; + */ + private $audit_config_deltas; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Iam\V1\BindingDelta[] $binding_deltas + * The delta for Bindings between two policies. + * @type \Google\Cloud\Iam\V1\AuditConfigDelta[] $audit_config_deltas + * The delta for AuditConfigs between two policies. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Iam\V1\Policy::initOnce(); + parent::__construct($data); + } + + /** + * The delta for Bindings between two policies. + * + * Generated from protobuf field repeated .google.iam.v1.BindingDelta binding_deltas = 1; + * @return RepeatedField<\Google\Cloud\Iam\V1\BindingDelta> + */ + public function getBindingDeltas() + { + return $this->binding_deltas; + } + + /** + * The delta for Bindings between two policies. + * + * Generated from protobuf field repeated .google.iam.v1.BindingDelta binding_deltas = 1; + * @param \Google\Cloud\Iam\V1\BindingDelta[] $var + * @return $this + */ + public function setBindingDeltas($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Iam\V1\BindingDelta::class); + $this->binding_deltas = $arr; + + return $this; + } + + /** + * The delta for AuditConfigs between two policies. + * + * Generated from protobuf field repeated .google.iam.v1.AuditConfigDelta audit_config_deltas = 2; + * @return RepeatedField<\Google\Cloud\Iam\V1\AuditConfigDelta> + */ + public function getAuditConfigDeltas() + { + return $this->audit_config_deltas; + } + + /** + * The delta for AuditConfigs between two policies. + * + * Generated from protobuf field repeated .google.iam.v1.AuditConfigDelta audit_config_deltas = 2; + * @param \Google\Cloud\Iam\V1\AuditConfigDelta[] $var + * @return $this + */ + public function setAuditConfigDeltas($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Iam\V1\AuditConfigDelta::class); + $this->audit_config_deltas = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/ResourcePolicyMember.php b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/ResourcePolicyMember.php new file mode 100644 index 000000000000..c6deaf5bf7c8 --- /dev/null +++ b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/ResourcePolicyMember.php @@ -0,0 +1,142 @@ +google.iam.v1.ResourcePolicyMember + */ +class ResourcePolicyMember extends \Google\Protobuf\Internal\Message +{ + /** + * IAM policy binding member referring to a Google Cloud resource by + * user-assigned name (https://google.aip.dev/122). If a resource is deleted + * and recreated with the same name, the binding will be applicable to the new + * resource. + * Example: + * `principal://parametermanager.googleapis.com/projects/12345/name/locations/us-central1-a/parameters/my-parameter` + * + * Generated from protobuf field string iam_policy_name_principal = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $iam_policy_name_principal = ''; + /** + * IAM policy binding member referring to a Google Cloud resource by + * system-assigned unique identifier (https://google.aip.dev/148#uid). If a + * resource is deleted and recreated with the same name, the binding will not + * be applicable to the new resource + * Example: + * `principal://parametermanager.googleapis.com/projects/12345/uid/locations/us-central1-a/parameters/a918fed5` + * + * Generated from protobuf field string iam_policy_uid_principal = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $iam_policy_uid_principal = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $iam_policy_name_principal + * IAM policy binding member referring to a Google Cloud resource by + * user-assigned name (https://google.aip.dev/122). If a resource is deleted + * and recreated with the same name, the binding will be applicable to the new + * resource. + * Example: + * `principal://parametermanager.googleapis.com/projects/12345/name/locations/us-central1-a/parameters/my-parameter` + * @type string $iam_policy_uid_principal + * IAM policy binding member referring to a Google Cloud resource by + * system-assigned unique identifier (https://google.aip.dev/148#uid). If a + * resource is deleted and recreated with the same name, the binding will not + * be applicable to the new resource + * Example: + * `principal://parametermanager.googleapis.com/projects/12345/uid/locations/us-central1-a/parameters/a918fed5` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Iam\V1\ResourcePolicyMember::initOnce(); + parent::__construct($data); + } + + /** + * IAM policy binding member referring to a Google Cloud resource by + * user-assigned name (https://google.aip.dev/122). If a resource is deleted + * and recreated with the same name, the binding will be applicable to the new + * resource. + * Example: + * `principal://parametermanager.googleapis.com/projects/12345/name/locations/us-central1-a/parameters/my-parameter` + * + * Generated from protobuf field string iam_policy_name_principal = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getIamPolicyNamePrincipal() + { + return $this->iam_policy_name_principal; + } + + /** + * IAM policy binding member referring to a Google Cloud resource by + * user-assigned name (https://google.aip.dev/122). If a resource is deleted + * and recreated with the same name, the binding will be applicable to the new + * resource. + * Example: + * `principal://parametermanager.googleapis.com/projects/12345/name/locations/us-central1-a/parameters/my-parameter` + * + * Generated from protobuf field string iam_policy_name_principal = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setIamPolicyNamePrincipal($var) + { + GPBUtil::checkString($var, True); + $this->iam_policy_name_principal = $var; + + return $this; + } + + /** + * IAM policy binding member referring to a Google Cloud resource by + * system-assigned unique identifier (https://google.aip.dev/148#uid). If a + * resource is deleted and recreated with the same name, the binding will not + * be applicable to the new resource + * Example: + * `principal://parametermanager.googleapis.com/projects/12345/uid/locations/us-central1-a/parameters/a918fed5` + * + * Generated from protobuf field string iam_policy_uid_principal = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getIamPolicyUidPrincipal() + { + return $this->iam_policy_uid_principal; + } + + /** + * IAM policy binding member referring to a Google Cloud resource by + * system-assigned unique identifier (https://google.aip.dev/148#uid). If a + * resource is deleted and recreated with the same name, the binding will not + * be applicable to the new resource + * Example: + * `principal://parametermanager.googleapis.com/projects/12345/uid/locations/us-central1-a/parameters/a918fed5` + * + * Generated from protobuf field string iam_policy_uid_principal = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setIamPolicyUidPrincipal($var) + { + GPBUtil::checkString($var, True); + $this->iam_policy_uid_principal = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/SetIamPolicyRequest.php b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/SetIamPolicyRequest.php new file mode 100644 index 000000000000..e03e34a70735 --- /dev/null +++ b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/SetIamPolicyRequest.php @@ -0,0 +1,183 @@ +google.iam.v1.SetIamPolicyRequest + */ +class SetIamPolicyRequest extends \Google\Protobuf\Internal\Message +{ + /** + * REQUIRED: The resource for which the policy is being specified. + * See the operation documentation for the appropriate value for this field. + * + * Generated from protobuf field string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $resource = ''; + /** + * REQUIRED: The complete policy to be applied to the `resource`. The size of + * the policy is limited to a few 10s of KB. An empty policy is a + * valid policy but certain Cloud Platform services (such as Projects) + * might reject them. + * + * Generated from protobuf field .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $policy = null; + /** + * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only + * the fields in the mask will be modified. If no mask is provided, the + * following default mask is used: + * `paths: "bindings, etag"` + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; + */ + protected $update_mask = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $resource + * REQUIRED: The resource for which the policy is being specified. + * See the operation documentation for the appropriate value for this field. + * @type \Google\Cloud\Iam\V1\Policy $policy + * REQUIRED: The complete policy to be applied to the `resource`. The size of + * the policy is limited to a few 10s of KB. An empty policy is a + * valid policy but certain Cloud Platform services (such as Projects) + * might reject them. + * @type \Google\Protobuf\FieldMask $update_mask + * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only + * the fields in the mask will be modified. If no mask is provided, the + * following default mask is used: + * `paths: "bindings, etag"` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Iam\V1\IamPolicy::initOnce(); + parent::__construct($data); + } + + /** + * REQUIRED: The resource for which the policy is being specified. + * See the operation documentation for the appropriate value for this field. + * + * Generated from protobuf field string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getResource() + { + return $this->resource; + } + + /** + * REQUIRED: The resource for which the policy is being specified. + * See the operation documentation for the appropriate value for this field. + * + * Generated from protobuf field string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setResource($var) + { + GPBUtil::checkString($var, True); + $this->resource = $var; + + return $this; + } + + /** + * REQUIRED: The complete policy to be applied to the `resource`. The size of + * the policy is limited to a few 10s of KB. An empty policy is a + * valid policy but certain Cloud Platform services (such as Projects) + * might reject them. + * + * Generated from protobuf field .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Iam\V1\Policy|null + */ + public function getPolicy() + { + return $this->policy; + } + + public function hasPolicy() + { + return isset($this->policy); + } + + public function clearPolicy() + { + unset($this->policy); + } + + /** + * REQUIRED: The complete policy to be applied to the `resource`. The size of + * the policy is limited to a few 10s of KB. An empty policy is a + * valid policy but certain Cloud Platform services (such as Projects) + * might reject them. + * + * Generated from protobuf field .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Iam\V1\Policy $var + * @return $this + */ + public function setPolicy($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Iam\V1\Policy::class); + $this->policy = $var; + + return $this; + } + + /** + * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only + * the fields in the mask will be modified. If no mask is provided, the + * following default mask is used: + * `paths: "bindings, etag"` + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only + * the fields in the mask will be modified. If no mask is provided, the + * following default mask is used: + * `paths: "bindings, etag"` + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/TestIamPermissionsRequest.php b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/TestIamPermissionsRequest.php new file mode 100644 index 000000000000..cc98a3ddb997 --- /dev/null +++ b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/TestIamPermissionsRequest.php @@ -0,0 +1,117 @@ +google.iam.v1.TestIamPermissionsRequest + */ +class TestIamPermissionsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + * + * Generated from protobuf field string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $resource = ''; + /** + * The set of permissions to check for the `resource`. Permissions with + * wildcards (such as '*' or 'storage.*') are not allowed. For more + * information see + * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + * + * Generated from protobuf field repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private $permissions; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $resource + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + * @type string[] $permissions + * The set of permissions to check for the `resource`. Permissions with + * wildcards (such as '*' or 'storage.*') are not allowed. For more + * information see + * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Iam\V1\IamPolicy::initOnce(); + parent::__construct($data); + } + + /** + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + * + * Generated from protobuf field string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getResource() + { + return $this->resource; + } + + /** + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + * + * Generated from protobuf field string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setResource($var) + { + GPBUtil::checkString($var, True); + $this->resource = $var; + + return $this; + } + + /** + * The set of permissions to check for the `resource`. Permissions with + * wildcards (such as '*' or 'storage.*') are not allowed. For more + * information see + * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + * + * Generated from protobuf field repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return RepeatedField + */ + public function getPermissions() + { + return $this->permissions; + } + + /** + * The set of permissions to check for the `resource`. Permissions with + * wildcards (such as '*' or 'storage.*') are not allowed. For more + * information see + * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + * + * Generated from protobuf field repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string[] $var + * @return $this + */ + public function setPermissions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->permissions = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/TestIamPermissionsResponse.php b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/TestIamPermissionsResponse.php new file mode 100644 index 000000000000..310290095216 --- /dev/null +++ b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/TestIamPermissionsResponse.php @@ -0,0 +1,71 @@ +google.iam.v1.TestIamPermissionsResponse + */ +class TestIamPermissionsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * A subset of `TestPermissionsRequest.permissions` that the caller is + * allowed. + * + * Generated from protobuf field repeated string permissions = 1; + */ + private $permissions; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string[] $permissions + * A subset of `TestPermissionsRequest.permissions` that the caller is + * allowed. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Iam\V1\IamPolicy::initOnce(); + parent::__construct($data); + } + + /** + * A subset of `TestPermissionsRequest.permissions` that the caller is + * allowed. + * + * Generated from protobuf field repeated string permissions = 1; + * @return RepeatedField + */ + public function getPermissions() + { + return $this->permissions; + } + + /** + * A subset of `TestPermissionsRequest.permissions` that the caller is + * allowed. + * + * Generated from protobuf field repeated string permissions = 1; + * @param string[] $var + * @return $this + */ + public function setPermissions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->permissions = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Iam/V1/Logging/AuditData.php b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Iam/V1/Logging/AuditData.php new file mode 100644 index 000000000000..48aae57bd29f --- /dev/null +++ b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Iam/V1/Logging/AuditData.php @@ -0,0 +1,79 @@ +google.iam.v1.logging.AuditData + */ +class AuditData extends \Google\Protobuf\Internal\Message +{ + /** + * Policy delta between the original policy and the newly set policy. + * + * Generated from protobuf field .google.iam.v1.PolicyDelta policy_delta = 2; + */ + protected $policy_delta = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Iam\V1\PolicyDelta $policy_delta + * Policy delta between the original policy and the newly set policy. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Iam\V1\Logging\AuditData::initOnce(); + parent::__construct($data); + } + + /** + * Policy delta between the original policy and the newly set policy. + * + * Generated from protobuf field .google.iam.v1.PolicyDelta policy_delta = 2; + * @return \Google\Cloud\Iam\V1\PolicyDelta|null + */ + public function getPolicyDelta() + { + return $this->policy_delta; + } + + public function hasPolicyDelta() + { + return isset($this->policy_delta); + } + + public function clearPolicyDelta() + { + unset($this->policy_delta); + } + + /** + * Policy delta between the original policy and the newly set policy. + * + * Generated from protobuf field .google.iam.v1.PolicyDelta policy_delta = 2; + * @param \Google\Cloud\Iam\V1\PolicyDelta $var + * @return $this + */ + public function setPolicyDelta($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Iam\V1\PolicyDelta::class); + $this->policy_delta = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/iamlogging/proto/src/GPBMetadata/Google/Iam/V1/Logging/AuditData.php b/owl-bot-staging/CommonProtos/iamlogging/proto/src/GPBMetadata/Google/Iam/V1/Logging/AuditData.php new file mode 100644 index 000000000000..93ae1a0279ec --- /dev/null +++ b/owl-bot-staging/CommonProtos/iamlogging/proto/src/GPBMetadata/Google/Iam/V1/Logging/AuditData.php @@ -0,0 +1,25 @@ +internalAddGeneratedFile( + "\x0A\x8F\x02\x0A&google/iam/v1/logging/audit_data.proto\x12\x15google.iam.v1.logging\"=\x0A\x09AuditData\x120\x0A\x0Cpolicy_delta\x18\x02 \x01(\x0B2\x1A.google.iam.v1.PolicyDeltaB\x86\x01\x0A\x19com.google.iam.v1.loggingB\x0EAuditDataProtoP\x01Z9cloud.google.com/go/iam/apiv1/logging/loggingpb;loggingpb\xAA\x02\x1BGoogle.Cloud.Iam.V1.Loggingb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/iamlogging/proto/src/Google/Iam/V1/Logging/AuditData.php b/owl-bot-staging/CommonProtos/iamlogging/proto/src/Google/Iam/V1/Logging/AuditData.php new file mode 100644 index 000000000000..48aae57bd29f --- /dev/null +++ b/owl-bot-staging/CommonProtos/iamlogging/proto/src/Google/Iam/V1/Logging/AuditData.php @@ -0,0 +1,79 @@ +google.iam.v1.logging.AuditData + */ +class AuditData extends \Google\Protobuf\Internal\Message +{ + /** + * Policy delta between the original policy and the newly set policy. + * + * Generated from protobuf field .google.iam.v1.PolicyDelta policy_delta = 2; + */ + protected $policy_delta = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Iam\V1\PolicyDelta $policy_delta + * Policy delta between the original policy and the newly set policy. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Iam\V1\Logging\AuditData::initOnce(); + parent::__construct($data); + } + + /** + * Policy delta between the original policy and the newly set policy. + * + * Generated from protobuf field .google.iam.v1.PolicyDelta policy_delta = 2; + * @return \Google\Cloud\Iam\V1\PolicyDelta|null + */ + public function getPolicyDelta() + { + return $this->policy_delta; + } + + public function hasPolicyDelta() + { + return isset($this->policy_delta); + } + + public function clearPolicyDelta() + { + unset($this->policy_delta); + } + + /** + * Policy delta between the original policy and the newly set policy. + * + * Generated from protobuf field .google.iam.v1.PolicyDelta policy_delta = 2; + * @param \Google\Cloud\Iam\V1\PolicyDelta $var + * @return $this + */ + public function setPolicyDelta($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Iam\V1\PolicyDelta::class); + $this->policy_delta = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/location/proto/src/GPBMetadata/Google/Cloud/Location/Locations.php b/owl-bot-staging/CommonProtos/location/proto/src/GPBMetadata/Google/Cloud/Location/Locations.php new file mode 100644 index 000000000000..d18965d1bd1e --- /dev/null +++ b/owl-bot-staging/CommonProtos/location/proto/src/GPBMetadata/Google/Cloud/Location/Locations.php @@ -0,0 +1,27 @@ +internalAddGeneratedFile( + "\x0A\xD3\x08\x0A%google/cloud/location/locations.proto\x12\x15google.cloud.location\x1A\x19google/protobuf/any.proto\x1A\x17google/api/client.proto\"[\x0A\x14ListLocationsRequest\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12\x0E\x0A\x06filter\x18\x02 \x01(\x09\x12\x11\x0A\x09page_size\x18\x03 \x01(\x05\x12\x12\x0A\x0Apage_token\x18\x04 \x01(\x09\"d\x0A\x15ListLocationsResponse\x122\x0A\x09locations\x18\x01 \x03(\x0B2\x1F.google.cloud.location.Location\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\"\x0A\x12GetLocationRequest\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\"\xD7\x01\x0A\x08Location\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12\x13\x0A\x0Blocation_id\x18\x04 \x01(\x09\x12\x14\x0A\x0Cdisplay_name\x18\x05 \x01(\x09\x12;\x0A\x06labels\x18\x02 \x03(\x0B2+.google.cloud.location.Location.LabelsEntry\x12&\x0A\x08metadata\x18\x03 \x01(\x0B2\x14.google.protobuf.Any\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x012\xA4\x03\x0A\x09Locations\x12\xAB\x01\x0A\x0DListLocations\x12+.google.cloud.location.ListLocationsRequest\x1A,.google.cloud.location.ListLocationsResponse\"?\x82\xD3\xE4\x93\x029\x12\x14/v1/{name=locations}Z!\x12\x1F/v1/{name=projects/*}/locations\x12\x9E\x01\x0A\x0BGetLocation\x12).google.cloud.location.GetLocationRequest\x1A\x1F.google.cloud.location.Location\"C\x82\xD3\xE4\x93\x02=\x12\x16/v1/{name=locations/*}Z#\x12!/v1/{name=projects/*/locations/*}\x1AH\xCAA\x14cloud.googleapis.com\xD2A.https://www.googleapis.com/auth/cloud-platformBo\x0A\x19com.google.cloud.locationB\x0ELocationsProtoP\x01Z=google.golang.org/genproto/googleapis/cloud/location;location\xF8\x01\x01b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/location/proto/src/Google/Cloud/Location/GetLocationRequest.php b/owl-bot-staging/CommonProtos/location/proto/src/Google/Cloud/Location/GetLocationRequest.php new file mode 100644 index 000000000000..a83de9e37c51 --- /dev/null +++ b/owl-bot-staging/CommonProtos/location/proto/src/Google/Cloud/Location/GetLocationRequest.php @@ -0,0 +1,67 @@ +google.cloud.location.GetLocationRequest + */ +class GetLocationRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Resource name for the location. + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Resource name for the location. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Location\Locations::initOnce(); + parent::__construct($data); + } + + /** + * Resource name for the location. + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Resource name for the location. + * + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/location/proto/src/Google/Cloud/Location/ListLocationsRequest.php b/owl-bot-staging/CommonProtos/location/proto/src/Google/Cloud/Location/ListLocationsRequest.php new file mode 100644 index 000000000000..d7167a00f1d0 --- /dev/null +++ b/owl-bot-staging/CommonProtos/location/proto/src/Google/Cloud/Location/ListLocationsRequest.php @@ -0,0 +1,169 @@ +google.cloud.location.ListLocationsRequest + */ +class ListLocationsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * The resource that owns the locations collection, if applicable. + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * The standard list filter. + * + * Generated from protobuf field string filter = 2; + */ + protected $filter = ''; + /** + * The standard list page size. + * + * Generated from protobuf field int32 page_size = 3; + */ + protected $page_size = 0; + /** + * The standard list page token. + * + * Generated from protobuf field string page_token = 4; + */ + protected $page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * The resource that owns the locations collection, if applicable. + * @type string $filter + * The standard list filter. + * @type int $page_size + * The standard list page size. + * @type string $page_token + * The standard list page token. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Location\Locations::initOnce(); + parent::__construct($data); + } + + /** + * The resource that owns the locations collection, if applicable. + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The resource that owns the locations collection, if applicable. + * + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * The standard list filter. + * + * Generated from protobuf field string filter = 2; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * The standard list filter. + * + * Generated from protobuf field string filter = 2; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + + /** + * The standard list page size. + * + * Generated from protobuf field int32 page_size = 3; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * The standard list page size. + * + * Generated from protobuf field int32 page_size = 3; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * The standard list page token. + * + * Generated from protobuf field string page_token = 4; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * The standard list page token. + * + * Generated from protobuf field string page_token = 4; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/location/proto/src/Google/Cloud/Location/ListLocationsResponse.php b/owl-bot-staging/CommonProtos/location/proto/src/Google/Cloud/Location/ListLocationsResponse.php new file mode 100644 index 000000000000..66a1b5882369 --- /dev/null +++ b/owl-bot-staging/CommonProtos/location/proto/src/Google/Cloud/Location/ListLocationsResponse.php @@ -0,0 +1,101 @@ +google.cloud.location.ListLocationsResponse + */ +class ListLocationsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * A list of locations that matches the specified filter in the request. + * + * Generated from protobuf field repeated .google.cloud.location.Location locations = 1; + */ + private $locations; + /** + * The standard List next-page token. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Location\Location[] $locations + * A list of locations that matches the specified filter in the request. + * @type string $next_page_token + * The standard List next-page token. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Location\Locations::initOnce(); + parent::__construct($data); + } + + /** + * A list of locations that matches the specified filter in the request. + * + * Generated from protobuf field repeated .google.cloud.location.Location locations = 1; + * @return RepeatedField<\Google\Cloud\Location\Location> + */ + public function getLocations() + { + return $this->locations; + } + + /** + * A list of locations that matches the specified filter in the request. + * + * Generated from protobuf field repeated .google.cloud.location.Location locations = 1; + * @param \Google\Cloud\Location\Location[] $var + * @return $this + */ + public function setLocations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Location\Location::class); + $this->locations = $arr; + + return $this; + } + + /** + * The standard List next-page token. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * The standard List next-page token. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/location/proto/src/Google/Cloud/Location/Location.php b/owl-bot-staging/CommonProtos/location/proto/src/Google/Cloud/Location/Location.php new file mode 100644 index 000000000000..fb02c317e56f --- /dev/null +++ b/owl-bot-staging/CommonProtos/location/proto/src/Google/Cloud/Location/Location.php @@ -0,0 +1,229 @@ +google.cloud.location.Location + */ +class Location extends \Google\Protobuf\Internal\Message +{ + /** + * Resource name for the location, which may vary between implementations. + * For example: `"projects/example-project/locations/us-east1"` + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * The canonical id for this location. For example: `"us-east1"`. + * + * Generated from protobuf field string location_id = 4; + */ + protected $location_id = ''; + /** + * The friendly name for this location, typically a nearby city name. + * For example, "Tokyo". + * + * Generated from protobuf field string display_name = 5; + */ + protected $display_name = ''; + /** + * Cross-service attributes for the location. For example + * {"cloud.googleapis.com/region": "us-east1"} + * + * Generated from protobuf field map labels = 2; + */ + private $labels; + /** + * Service-specific metadata. For example the available capacity at the given + * location. + * + * Generated from protobuf field .google.protobuf.Any metadata = 3; + */ + protected $metadata = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Resource name for the location, which may vary between implementations. + * For example: `"projects/example-project/locations/us-east1"` + * @type string $location_id + * The canonical id for this location. For example: `"us-east1"`. + * @type string $display_name + * The friendly name for this location, typically a nearby city name. + * For example, "Tokyo". + * @type array|\Google\Protobuf\Internal\MapField $labels + * Cross-service attributes for the location. For example + * {"cloud.googleapis.com/region": "us-east1"} + * @type \Google\Protobuf\Any $metadata + * Service-specific metadata. For example the available capacity at the given + * location. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Location\Locations::initOnce(); + parent::__construct($data); + } + + /** + * Resource name for the location, which may vary between implementations. + * For example: `"projects/example-project/locations/us-east1"` + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Resource name for the location, which may vary between implementations. + * For example: `"projects/example-project/locations/us-east1"` + * + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * The canonical id for this location. For example: `"us-east1"`. + * + * Generated from protobuf field string location_id = 4; + * @return string + */ + public function getLocationId() + { + return $this->location_id; + } + + /** + * The canonical id for this location. For example: `"us-east1"`. + * + * Generated from protobuf field string location_id = 4; + * @param string $var + * @return $this + */ + public function setLocationId($var) + { + GPBUtil::checkString($var, True); + $this->location_id = $var; + + return $this; + } + + /** + * The friendly name for this location, typically a nearby city name. + * For example, "Tokyo". + * + * Generated from protobuf field string display_name = 5; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * The friendly name for this location, typically a nearby city name. + * For example, "Tokyo". + * + * Generated from protobuf field string display_name = 5; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Cross-service attributes for the location. For example + * {"cloud.googleapis.com/region": "us-east1"} + * + * Generated from protobuf field map labels = 2; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * Cross-service attributes for the location. For example + * {"cloud.googleapis.com/region": "us-east1"} + * + * Generated from protobuf field map labels = 2; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->labels = $arr; + + return $this; + } + + /** + * Service-specific metadata. For example the available capacity at the given + * location. + * + * Generated from protobuf field .google.protobuf.Any metadata = 3; + * @return \Google\Protobuf\Any|null + */ + public function getMetadata() + { + return $this->metadata; + } + + public function hasMetadata() + { + return isset($this->metadata); + } + + public function clearMetadata() + { + unset($this->metadata); + } + + /** + * Service-specific metadata. For example the available capacity at the given + * location. + * + * Generated from protobuf field .google.protobuf.Any metadata = 3; + * @param \Google\Protobuf\Any $var + * @return $this + */ + public function setMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Any::class); + $this->metadata = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/logging/proto/src/GPBMetadata/Google/Logging/Type/HttpRequest.php b/owl-bot-staging/CommonProtos/logging/proto/src/GPBMetadata/Google/Logging/Type/HttpRequest.php new file mode 100644 index 000000000000..5bb5ed5eb488 --- /dev/null +++ b/owl-bot-staging/CommonProtos/logging/proto/src/GPBMetadata/Google/Logging/Type/HttpRequest.php @@ -0,0 +1,25 @@ +internalAddGeneratedFile( + "\x0A\xF8\x04\x0A&google/logging/type/http_request.proto\x12\x13google.logging.type\"\xEF\x02\x0A\x0BHttpRequest\x12\x16\x0A\x0Erequest_method\x18\x01 \x01(\x09\x12\x13\x0A\x0Brequest_url\x18\x02 \x01(\x09\x12\x14\x0A\x0Crequest_size\x18\x03 \x01(\x03\x12\x0E\x0A\x06status\x18\x04 \x01(\x05\x12\x15\x0A\x0Dresponse_size\x18\x05 \x01(\x03\x12\x12\x0A\x0Auser_agent\x18\x06 \x01(\x09\x12\x11\x0A\x09remote_ip\x18\x07 \x01(\x09\x12\x11\x0A\x09server_ip\x18\x0D \x01(\x09\x12\x0F\x0A\x07referer\x18\x08 \x01(\x09\x12*\x0A\x07latency\x18\x0E \x01(\x0B2\x19.google.protobuf.Duration\x12\x14\x0A\x0Ccache_lookup\x18\x0B \x01(\x08\x12\x11\x0A\x09cache_hit\x18\x09 \x01(\x08\x12*\x0A\"cache_validated_with_origin_server\x18\x0A \x01(\x08\x12\x18\x0A\x10cache_fill_bytes\x18\x0C \x01(\x03\x12\x10\x0A\x08protocol\x18\x0F \x01(\x09B\xBE\x01\x0A\x17com.google.logging.typeB\x10HttpRequestProtoP\x01Z8google.golang.org/genproto/googleapis/logging/type;ltype\xAA\x02\x19Google.Cloud.Logging.Type\xCA\x02\x19Google\\Cloud\\Logging\\Type\xEA\x02\x1CGoogle::Cloud::Logging::Typeb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/logging/proto/src/GPBMetadata/Google/Logging/Type/LogSeverity.php b/owl-bot-staging/CommonProtos/logging/proto/src/GPBMetadata/Google/Logging/Type/LogSeverity.php new file mode 100644 index 000000000000..0955634f7305 --- /dev/null +++ b/owl-bot-staging/CommonProtos/logging/proto/src/GPBMetadata/Google/Logging/Type/LogSeverity.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\x92\x03\x0A&google/logging/type/log_severity.proto\x12\x13google.logging.type*\x82\x01\x0A\x0BLogSeverity\x12\x0B\x0A\x07DEFAULT\x10\x00\x12\x09\x0A\x05DEBUG\x10d\x12\x09\x0A\x04INFO\x10\xC8\x01\x12\x0B\x0A\x06NOTICE\x10\xAC\x02\x12\x0C\x0A\x07WARNING\x10\x90\x03\x12\x0A\x0A\x05ERROR\x10\xF4\x03\x12\x0D\x0A\x08CRITICAL\x10\xD8\x04\x12\x0A\x0A\x05ALERT\x10\xBC\x05\x12\x0E\x0A\x09EMERGENCY\x10\xA0\x06B\xC5\x01\x0A\x17com.google.logging.typeB\x10LogSeverityProtoP\x01Z8google.golang.org/genproto/googleapis/logging/type;ltype\xA2\x02\x04GLOG\xAA\x02\x19Google.Cloud.Logging.Type\xCA\x02\x19Google\\Cloud\\Logging\\Type\xEA\x02\x1CGoogle::Cloud::Logging::Typeb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/logging/proto/src/Google/Cloud/Logging/Type/HttpRequest.php b/owl-bot-staging/CommonProtos/logging/proto/src/Google/Cloud/Logging/Type/HttpRequest.php new file mode 100644 index 000000000000..6ccdd4078b5b --- /dev/null +++ b/owl-bot-staging/CommonProtos/logging/proto/src/Google/Cloud/Logging/Type/HttpRequest.php @@ -0,0 +1,627 @@ +google.logging.type.HttpRequest + */ +class HttpRequest extends \Google\Protobuf\Internal\Message +{ + /** + * The request method. Examples: `"GET"`, `"HEAD"`, `"PUT"`, `"POST"`. + * + * Generated from protobuf field string request_method = 1; + */ + protected $request_method = ''; + /** + * The scheme (http, https), the host name, the path and the query + * portion of the URL that was requested. + * Example: `"http://example.com/some/info?color=red"`. + * + * Generated from protobuf field string request_url = 2; + */ + protected $request_url = ''; + /** + * The size of the HTTP request message in bytes, including the request + * headers and the request body. + * + * Generated from protobuf field int64 request_size = 3; + */ + protected $request_size = 0; + /** + * The response code indicating the status of response. + * Examples: 200, 404. + * + * Generated from protobuf field int32 status = 4; + */ + protected $status = 0; + /** + * The size of the HTTP response message sent back to the client, in bytes, + * including the response headers and the response body. + * + * Generated from protobuf field int64 response_size = 5; + */ + protected $response_size = 0; + /** + * The user agent sent by the client. Example: + * `"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET + * CLR 1.0.3705)"`. + * + * Generated from protobuf field string user_agent = 6; + */ + protected $user_agent = ''; + /** + * The IP address (IPv4 or IPv6) of the client that issued the HTTP + * request. This field can include port information. Examples: + * `"192.168.1.1"`, `"10.0.0.1:80"`, `"FE80::0202:B3FF:FE1E:8329"`. + * + * Generated from protobuf field string remote_ip = 7; + */ + protected $remote_ip = ''; + /** + * The IP address (IPv4 or IPv6) of the origin server that the request was + * sent to. This field can include port information. Examples: + * `"192.168.1.1"`, `"10.0.0.1:80"`, `"FE80::0202:B3FF:FE1E:8329"`. + * + * Generated from protobuf field string server_ip = 13; + */ + protected $server_ip = ''; + /** + * The referer URL of the request, as defined in + * [HTTP/1.1 Header Field + * Definitions](https://datatracker.ietf.org/doc/html/rfc2616#section-14.36). + * + * Generated from protobuf field string referer = 8; + */ + protected $referer = ''; + /** + * The request processing latency on the server, from the time the request was + * received until the response was sent. + * + * Generated from protobuf field .google.protobuf.Duration latency = 14; + */ + protected $latency = null; + /** + * Whether or not a cache lookup was attempted. + * + * Generated from protobuf field bool cache_lookup = 11; + */ + protected $cache_lookup = false; + /** + * Whether or not an entity was served from cache + * (with or without validation). + * + * Generated from protobuf field bool cache_hit = 9; + */ + protected $cache_hit = false; + /** + * Whether or not the response was validated with the origin server before + * being served from cache. This field is only meaningful if `cache_hit` is + * True. + * + * Generated from protobuf field bool cache_validated_with_origin_server = 10; + */ + protected $cache_validated_with_origin_server = false; + /** + * The number of HTTP response bytes inserted into cache. Set only when a + * cache fill was attempted. + * + * Generated from protobuf field int64 cache_fill_bytes = 12; + */ + protected $cache_fill_bytes = 0; + /** + * Protocol used for the request. Examples: "HTTP/1.1", "HTTP/2", "websocket" + * + * Generated from protobuf field string protocol = 15; + */ + protected $protocol = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $request_method + * The request method. Examples: `"GET"`, `"HEAD"`, `"PUT"`, `"POST"`. + * @type string $request_url + * The scheme (http, https), the host name, the path and the query + * portion of the URL that was requested. + * Example: `"http://example.com/some/info?color=red"`. + * @type int|string $request_size + * The size of the HTTP request message in bytes, including the request + * headers and the request body. + * @type int $status + * The response code indicating the status of response. + * Examples: 200, 404. + * @type int|string $response_size + * The size of the HTTP response message sent back to the client, in bytes, + * including the response headers and the response body. + * @type string $user_agent + * The user agent sent by the client. Example: + * `"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET + * CLR 1.0.3705)"`. + * @type string $remote_ip + * The IP address (IPv4 or IPv6) of the client that issued the HTTP + * request. This field can include port information. Examples: + * `"192.168.1.1"`, `"10.0.0.1:80"`, `"FE80::0202:B3FF:FE1E:8329"`. + * @type string $server_ip + * The IP address (IPv4 or IPv6) of the origin server that the request was + * sent to. This field can include port information. Examples: + * `"192.168.1.1"`, `"10.0.0.1:80"`, `"FE80::0202:B3FF:FE1E:8329"`. + * @type string $referer + * The referer URL of the request, as defined in + * [HTTP/1.1 Header Field + * Definitions](https://datatracker.ietf.org/doc/html/rfc2616#section-14.36). + * @type \Google\Protobuf\Duration $latency + * The request processing latency on the server, from the time the request was + * received until the response was sent. + * @type bool $cache_lookup + * Whether or not a cache lookup was attempted. + * @type bool $cache_hit + * Whether or not an entity was served from cache + * (with or without validation). + * @type bool $cache_validated_with_origin_server + * Whether or not the response was validated with the origin server before + * being served from cache. This field is only meaningful if `cache_hit` is + * True. + * @type int|string $cache_fill_bytes + * The number of HTTP response bytes inserted into cache. Set only when a + * cache fill was attempted. + * @type string $protocol + * Protocol used for the request. Examples: "HTTP/1.1", "HTTP/2", "websocket" + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Logging\Type\HttpRequest::initOnce(); + parent::__construct($data); + } + + /** + * The request method. Examples: `"GET"`, `"HEAD"`, `"PUT"`, `"POST"`. + * + * Generated from protobuf field string request_method = 1; + * @return string + */ + public function getRequestMethod() + { + return $this->request_method; + } + + /** + * The request method. Examples: `"GET"`, `"HEAD"`, `"PUT"`, `"POST"`. + * + * Generated from protobuf field string request_method = 1; + * @param string $var + * @return $this + */ + public function setRequestMethod($var) + { + GPBUtil::checkString($var, True); + $this->request_method = $var; + + return $this; + } + + /** + * The scheme (http, https), the host name, the path and the query + * portion of the URL that was requested. + * Example: `"http://example.com/some/info?color=red"`. + * + * Generated from protobuf field string request_url = 2; + * @return string + */ + public function getRequestUrl() + { + return $this->request_url; + } + + /** + * The scheme (http, https), the host name, the path and the query + * portion of the URL that was requested. + * Example: `"http://example.com/some/info?color=red"`. + * + * Generated from protobuf field string request_url = 2; + * @param string $var + * @return $this + */ + public function setRequestUrl($var) + { + GPBUtil::checkString($var, True); + $this->request_url = $var; + + return $this; + } + + /** + * The size of the HTTP request message in bytes, including the request + * headers and the request body. + * + * Generated from protobuf field int64 request_size = 3; + * @return int|string + */ + public function getRequestSize() + { + return $this->request_size; + } + + /** + * The size of the HTTP request message in bytes, including the request + * headers and the request body. + * + * Generated from protobuf field int64 request_size = 3; + * @param int|string $var + * @return $this + */ + public function setRequestSize($var) + { + GPBUtil::checkInt64($var); + $this->request_size = $var; + + return $this; + } + + /** + * The response code indicating the status of response. + * Examples: 200, 404. + * + * Generated from protobuf field int32 status = 4; + * @return int + */ + public function getStatus() + { + return $this->status; + } + + /** + * The response code indicating the status of response. + * Examples: 200, 404. + * + * Generated from protobuf field int32 status = 4; + * @param int $var + * @return $this + */ + public function setStatus($var) + { + GPBUtil::checkInt32($var); + $this->status = $var; + + return $this; + } + + /** + * The size of the HTTP response message sent back to the client, in bytes, + * including the response headers and the response body. + * + * Generated from protobuf field int64 response_size = 5; + * @return int|string + */ + public function getResponseSize() + { + return $this->response_size; + } + + /** + * The size of the HTTP response message sent back to the client, in bytes, + * including the response headers and the response body. + * + * Generated from protobuf field int64 response_size = 5; + * @param int|string $var + * @return $this + */ + public function setResponseSize($var) + { + GPBUtil::checkInt64($var); + $this->response_size = $var; + + return $this; + } + + /** + * The user agent sent by the client. Example: + * `"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET + * CLR 1.0.3705)"`. + * + * Generated from protobuf field string user_agent = 6; + * @return string + */ + public function getUserAgent() + { + return $this->user_agent; + } + + /** + * The user agent sent by the client. Example: + * `"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET + * CLR 1.0.3705)"`. + * + * Generated from protobuf field string user_agent = 6; + * @param string $var + * @return $this + */ + public function setUserAgent($var) + { + GPBUtil::checkString($var, True); + $this->user_agent = $var; + + return $this; + } + + /** + * The IP address (IPv4 or IPv6) of the client that issued the HTTP + * request. This field can include port information. Examples: + * `"192.168.1.1"`, `"10.0.0.1:80"`, `"FE80::0202:B3FF:FE1E:8329"`. + * + * Generated from protobuf field string remote_ip = 7; + * @return string + */ + public function getRemoteIp() + { + return $this->remote_ip; + } + + /** + * The IP address (IPv4 or IPv6) of the client that issued the HTTP + * request. This field can include port information. Examples: + * `"192.168.1.1"`, `"10.0.0.1:80"`, `"FE80::0202:B3FF:FE1E:8329"`. + * + * Generated from protobuf field string remote_ip = 7; + * @param string $var + * @return $this + */ + public function setRemoteIp($var) + { + GPBUtil::checkString($var, True); + $this->remote_ip = $var; + + return $this; + } + + /** + * The IP address (IPv4 or IPv6) of the origin server that the request was + * sent to. This field can include port information. Examples: + * `"192.168.1.1"`, `"10.0.0.1:80"`, `"FE80::0202:B3FF:FE1E:8329"`. + * + * Generated from protobuf field string server_ip = 13; + * @return string + */ + public function getServerIp() + { + return $this->server_ip; + } + + /** + * The IP address (IPv4 or IPv6) of the origin server that the request was + * sent to. This field can include port information. Examples: + * `"192.168.1.1"`, `"10.0.0.1:80"`, `"FE80::0202:B3FF:FE1E:8329"`. + * + * Generated from protobuf field string server_ip = 13; + * @param string $var + * @return $this + */ + public function setServerIp($var) + { + GPBUtil::checkString($var, True); + $this->server_ip = $var; + + return $this; + } + + /** + * The referer URL of the request, as defined in + * [HTTP/1.1 Header Field + * Definitions](https://datatracker.ietf.org/doc/html/rfc2616#section-14.36). + * + * Generated from protobuf field string referer = 8; + * @return string + */ + public function getReferer() + { + return $this->referer; + } + + /** + * The referer URL of the request, as defined in + * [HTTP/1.1 Header Field + * Definitions](https://datatracker.ietf.org/doc/html/rfc2616#section-14.36). + * + * Generated from protobuf field string referer = 8; + * @param string $var + * @return $this + */ + public function setReferer($var) + { + GPBUtil::checkString($var, True); + $this->referer = $var; + + return $this; + } + + /** + * The request processing latency on the server, from the time the request was + * received until the response was sent. + * + * Generated from protobuf field .google.protobuf.Duration latency = 14; + * @return \Google\Protobuf\Duration|null + */ + public function getLatency() + { + return $this->latency; + } + + public function hasLatency() + { + return isset($this->latency); + } + + public function clearLatency() + { + unset($this->latency); + } + + /** + * The request processing latency on the server, from the time the request was + * received until the response was sent. + * + * Generated from protobuf field .google.protobuf.Duration latency = 14; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setLatency($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->latency = $var; + + return $this; + } + + /** + * Whether or not a cache lookup was attempted. + * + * Generated from protobuf field bool cache_lookup = 11; + * @return bool + */ + public function getCacheLookup() + { + return $this->cache_lookup; + } + + /** + * Whether or not a cache lookup was attempted. + * + * Generated from protobuf field bool cache_lookup = 11; + * @param bool $var + * @return $this + */ + public function setCacheLookup($var) + { + GPBUtil::checkBool($var); + $this->cache_lookup = $var; + + return $this; + } + + /** + * Whether or not an entity was served from cache + * (with or without validation). + * + * Generated from protobuf field bool cache_hit = 9; + * @return bool + */ + public function getCacheHit() + { + return $this->cache_hit; + } + + /** + * Whether or not an entity was served from cache + * (with or without validation). + * + * Generated from protobuf field bool cache_hit = 9; + * @param bool $var + * @return $this + */ + public function setCacheHit($var) + { + GPBUtil::checkBool($var); + $this->cache_hit = $var; + + return $this; + } + + /** + * Whether or not the response was validated with the origin server before + * being served from cache. This field is only meaningful if `cache_hit` is + * True. + * + * Generated from protobuf field bool cache_validated_with_origin_server = 10; + * @return bool + */ + public function getCacheValidatedWithOriginServer() + { + return $this->cache_validated_with_origin_server; + } + + /** + * Whether or not the response was validated with the origin server before + * being served from cache. This field is only meaningful if `cache_hit` is + * True. + * + * Generated from protobuf field bool cache_validated_with_origin_server = 10; + * @param bool $var + * @return $this + */ + public function setCacheValidatedWithOriginServer($var) + { + GPBUtil::checkBool($var); + $this->cache_validated_with_origin_server = $var; + + return $this; + } + + /** + * The number of HTTP response bytes inserted into cache. Set only when a + * cache fill was attempted. + * + * Generated from protobuf field int64 cache_fill_bytes = 12; + * @return int|string + */ + public function getCacheFillBytes() + { + return $this->cache_fill_bytes; + } + + /** + * The number of HTTP response bytes inserted into cache. Set only when a + * cache fill was attempted. + * + * Generated from protobuf field int64 cache_fill_bytes = 12; + * @param int|string $var + * @return $this + */ + public function setCacheFillBytes($var) + { + GPBUtil::checkInt64($var); + $this->cache_fill_bytes = $var; + + return $this; + } + + /** + * Protocol used for the request. Examples: "HTTP/1.1", "HTTP/2", "websocket" + * + * Generated from protobuf field string protocol = 15; + * @return string + */ + public function getProtocol() + { + return $this->protocol; + } + + /** + * Protocol used for the request. Examples: "HTTP/1.1", "HTTP/2", "websocket" + * + * Generated from protobuf field string protocol = 15; + * @param string $var + * @return $this + */ + public function setProtocol($var) + { + GPBUtil::checkString($var, True); + $this->protocol = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/logging/proto/src/Google/Cloud/Logging/Type/LogSeverity.php b/owl-bot-staging/CommonProtos/logging/proto/src/Google/Cloud/Logging/Type/LogSeverity.php new file mode 100644 index 000000000000..dc64792e5661 --- /dev/null +++ b/owl-bot-staging/CommonProtos/logging/proto/src/Google/Cloud/Logging/Type/LogSeverity.php @@ -0,0 +1,119 @@ + DEBUG AND severity <= WARNING + * If you are writing log entries, you should map other severity encodings to + * one of these standard levels. For example, you might map all of Java's FINE, + * FINER, and FINEST levels to `LogSeverity.DEBUG`. You can preserve the + * original severity level in the log entry payload if you wish. + * + * Protobuf type google.logging.type.LogSeverity + */ +class LogSeverity +{ + /** + * (0) The log entry has no assigned severity level. + * + * Generated from protobuf enum DEFAULT = 0; + */ + const PBDEFAULT = 0; + /** + * (100) Debug or trace information. + * + * Generated from protobuf enum DEBUG = 100; + */ + const DEBUG = 100; + /** + * (200) Routine information, such as ongoing status or performance. + * + * Generated from protobuf enum INFO = 200; + */ + const INFO = 200; + /** + * (300) Normal but significant events, such as start up, shut down, or + * a configuration change. + * + * Generated from protobuf enum NOTICE = 300; + */ + const NOTICE = 300; + /** + * (400) Warning events might cause problems. + * + * Generated from protobuf enum WARNING = 400; + */ + const WARNING = 400; + /** + * (500) Error events are likely to cause problems. + * + * Generated from protobuf enum ERROR = 500; + */ + const ERROR = 500; + /** + * (600) Critical events cause more severe problems or outages. + * + * Generated from protobuf enum CRITICAL = 600; + */ + const CRITICAL = 600; + /** + * (700) A person must take an action immediately. + * + * Generated from protobuf enum ALERT = 700; + */ + const ALERT = 700; + /** + * (800) One or more systems are unusable. + * + * Generated from protobuf enum EMERGENCY = 800; + */ + const EMERGENCY = 800; + + private static $valueToName = [ + self::PBDEFAULT => 'DEFAULT', + self::DEBUG => 'DEBUG', + self::INFO => 'INFO', + self::NOTICE => 'NOTICE', + self::WARNING => 'WARNING', + self::ERROR => 'ERROR', + self::CRITICAL => 'CRITICAL', + self::ALERT => 'ALERT', + self::EMERGENCY => 'EMERGENCY', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + $pbconst = __CLASS__. '::PB' . strtoupper($name); + if (!defined($pbconst)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($pbconst); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/GPBMetadata/Google/Rpc/Code.php b/owl-bot-staging/CommonProtos/rpc/proto/src/GPBMetadata/Google/Rpc/Code.php new file mode 100644 index 000000000000..fe364e8ea743 --- /dev/null +++ b/owl-bot-staging/CommonProtos/rpc/proto/src/GPBMetadata/Google/Rpc/Code.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\xBF\x03\x0A\x15google/rpc/code.proto\x12\x0Agoogle.rpc*\xB7\x02\x0A\x04Code\x12\x06\x0A\x02OK\x10\x00\x12\x0D\x0A\x09CANCELLED\x10\x01\x12\x0B\x0A\x07UNKNOWN\x10\x02\x12\x14\x0A\x10INVALID_ARGUMENT\x10\x03\x12\x15\x0A\x11DEADLINE_EXCEEDED\x10\x04\x12\x0D\x0A\x09NOT_FOUND\x10\x05\x12\x12\x0A\x0EALREADY_EXISTS\x10\x06\x12\x15\x0A\x11PERMISSION_DENIED\x10\x07\x12\x13\x0A\x0FUNAUTHENTICATED\x10\x10\x12\x16\x0A\x12RESOURCE_EXHAUSTED\x10\x08\x12\x17\x0A\x13FAILED_PRECONDITION\x10\x09\x12\x0B\x0A\x07ABORTED\x10\x0A\x12\x10\x0A\x0COUT_OF_RANGE\x10\x0B\x12\x11\x0A\x0DUNIMPLEMENTED\x10\x0C\x12\x0C\x0A\x08INTERNAL\x10\x0D\x12\x0F\x0A\x0BUNAVAILABLE\x10\x0E\x12\x0D\x0A\x09DATA_LOSS\x10\x0FBX\x0A\x0Ecom.google.rpcB\x09CodeProtoP\x01Z3google.golang.org/genproto/googleapis/rpc/code;code\xA2\x02\x03RPCb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/GPBMetadata/Google/Rpc/Context/AttributeContext.php b/owl-bot-staging/CommonProtos/rpc/proto/src/GPBMetadata/Google/Rpc/Context/AttributeContext.php new file mode 100644 index 000000000000..6336f6a66484 --- /dev/null +++ b/owl-bot-staging/CommonProtos/rpc/proto/src/GPBMetadata/Google/Rpc/Context/AttributeContext.php @@ -0,0 +1,28 @@ +internalAddGeneratedFile( + "\x0A\xBB\x12\x0A*google/rpc/context/attribute_context.proto\x12\x12google.rpc.context\x1A\x1Egoogle/protobuf/duration.proto\x1A\x1Cgoogle/protobuf/struct.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\x83\x10\x0A\x10AttributeContext\x129\x0A\x06origin\x18\x07 \x01(\x0B2).google.rpc.context.AttributeContext.Peer\x129\x0A\x06source\x18\x01 \x01(\x0B2).google.rpc.context.AttributeContext.Peer\x12>\x0A\x0Bdestination\x18\x02 \x01(\x0B2).google.rpc.context.AttributeContext.Peer\x12=\x0A\x07request\x18\x03 \x01(\x0B2,.google.rpc.context.AttributeContext.Request\x12?\x0A\x08response\x18\x04 \x01(\x0B2-.google.rpc.context.AttributeContext.Response\x12?\x0A\x08resource\x18\x05 \x01(\x0B2-.google.rpc.context.AttributeContext.Resource\x125\x0A\x03api\x18\x06 \x01(\x0B2(.google.rpc.context.AttributeContext.Api\x12(\x0A\x0Aextensions\x18\x08 \x03(\x0B2\x14.google.protobuf.Any\x1A\xBE\x01\x0A\x04Peer\x12\x0A\x0A\x02ip\x18\x01 \x01(\x09\x12\x0C\x0A\x04port\x18\x02 \x01(\x03\x12E\x0A\x06labels\x18\x06 \x03(\x0B25.google.rpc.context.AttributeContext.Peer.LabelsEntry\x12\x11\x0A\x09principal\x18\x07 \x01(\x09\x12\x13\x0A\x0Bregion_code\x18\x08 \x01(\x09\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\x1AL\x0A\x03Api\x12\x0F\x0A\x07service\x18\x01 \x01(\x09\x12\x11\x0A\x09operation\x18\x02 \x01(\x09\x12\x10\x0A\x08protocol\x18\x03 \x01(\x09\x12\x0F\x0A\x07version\x18\x04 \x01(\x09\x1A\x7F\x0A\x04Auth\x12\x11\x0A\x09principal\x18\x01 \x01(\x09\x12\x11\x0A\x09audiences\x18\x02 \x03(\x09\x12\x11\x0A\x09presenter\x18\x03 \x01(\x09\x12'\x0A\x06claims\x18\x04 \x01(\x0B2\x17.google.protobuf.Struct\x12\x15\x0A\x0Daccess_levels\x18\x05 \x03(\x09\x1A\xEF\x02\x0A\x07Request\x12\x0A\x0A\x02id\x18\x01 \x01(\x09\x12\x0E\x0A\x06method\x18\x02 \x01(\x09\x12J\x0A\x07headers\x18\x03 \x03(\x0B29.google.rpc.context.AttributeContext.Request.HeadersEntry\x12\x0C\x0A\x04path\x18\x04 \x01(\x09\x12\x0C\x0A\x04host\x18\x05 \x01(\x09\x12\x0E\x0A\x06scheme\x18\x06 \x01(\x09\x12\x0D\x0A\x05query\x18\x07 \x01(\x09\x12(\x0A\x04time\x18\x09 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12\x0C\x0A\x04size\x18\x0A \x01(\x03\x12\x10\x0A\x08protocol\x18\x0B \x01(\x09\x12\x0E\x0A\x06reason\x18\x0C \x01(\x09\x127\x0A\x04auth\x18\x0D \x01(\x0B2).google.rpc.context.AttributeContext.Auth\x1A.\x0A\x0CHeadersEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\x1A\x81\x02\x0A\x08Response\x12\x0C\x0A\x04code\x18\x01 \x01(\x03\x12\x0C\x0A\x04size\x18\x02 \x01(\x03\x12K\x0A\x07headers\x18\x03 \x03(\x0B2:.google.rpc.context.AttributeContext.Response.HeadersEntry\x12(\x0A\x04time\x18\x04 \x01(\x0B2\x1A.google.protobuf.Timestamp\x122\x0A\x0Fbackend_latency\x18\x05 \x01(\x0B2\x19.google.protobuf.Duration\x1A.\x0A\x0CHeadersEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\x1A\x90\x04\x0A\x08Resource\x12\x0F\x0A\x07service\x18\x01 \x01(\x09\x12\x0C\x0A\x04name\x18\x02 \x01(\x09\x12\x0C\x0A\x04type\x18\x03 \x01(\x09\x12I\x0A\x06labels\x18\x04 \x03(\x0B29.google.rpc.context.AttributeContext.Resource.LabelsEntry\x12\x0B\x0A\x03uid\x18\x05 \x01(\x09\x12S\x0A\x0Bannotations\x18\x06 \x03(\x0B2>.google.rpc.context.AttributeContext.Resource.AnnotationsEntry\x12\x14\x0A\x0Cdisplay_name\x18\x07 \x01(\x09\x12/\x0A\x0Bcreate_time\x18\x08 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12/\x0A\x0Bupdate_time\x18\x09 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12/\x0A\x0Bdelete_time\x18\x0A \x01(\x0B2\x1A.google.protobuf.Timestamp\x12\x0C\x0A\x04etag\x18\x0B \x01(\x09\x12\x10\x0A\x08location\x18\x0C \x01(\x09\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\x1A2\x0A\x10AnnotationsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01B\x8B\x01\x0A\x16com.google.rpc.contextB\x15AttributeContextProtoP\x01ZUgoogle.golang.org/genproto/googleapis/rpc/context/attribute_context;attribute_context\xF8\x01\x01b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/GPBMetadata/Google/Rpc/Context/AuditContext.php b/owl-bot-staging/CommonProtos/rpc/proto/src/GPBMetadata/Google/Rpc/Context/AuditContext.php new file mode 100644 index 000000000000..285c3acb9fb1 --- /dev/null +++ b/owl-bot-staging/CommonProtos/rpc/proto/src/GPBMetadata/Google/Rpc/Context/AuditContext.php @@ -0,0 +1,25 @@ +internalAddGeneratedFile( + "\x0A\xF8\x02\x0A&google/rpc/context/audit_context.proto\x12\x12google.rpc.context\"\xC7\x01\x0A\x0CAuditContext\x12\x11\x0A\x09audit_log\x18\x01 \x01(\x0C\x121\x0A\x10scrubbed_request\x18\x02 \x01(\x0B2\x17.google.protobuf.Struct\x122\x0A\x11scrubbed_response\x18\x03 \x01(\x0B2\x17.google.protobuf.Struct\x12\$\x0A\x1Cscrubbed_response_item_count\x18\x04 \x01(\x05\x12\x17\x0A\x0Ftarget_resource\x18\x05 \x01(\x09Bh\x0A\x16com.google.rpc.contextB\x11AuditContextProtoP\x01Z9google.golang.org/genproto/googleapis/rpc/context;contextb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/GPBMetadata/Google/Rpc/ErrorDetails.php b/owl-bot-staging/CommonProtos/rpc/proto/src/GPBMetadata/Google/Rpc/ErrorDetails.php new file mode 100644 index 000000000000..4b9f0d7941e1 --- /dev/null +++ b/owl-bot-staging/CommonProtos/rpc/proto/src/GPBMetadata/Google/Rpc/ErrorDetails.php @@ -0,0 +1,25 @@ +internalAddGeneratedFile( + "\x0A\xCA\x0B\x0A\x1Egoogle/rpc/error_details.proto\x12\x0Agoogle.rpc\"\x93\x01\x0A\x09ErrorInfo\x12\x0E\x0A\x06reason\x18\x01 \x01(\x09\x12\x0E\x0A\x06domain\x18\x02 \x01(\x09\x125\x0A\x08metadata\x18\x03 \x03(\x0B2#.google.rpc.ErrorInfo.MetadataEntry\x1A/\x0A\x0DMetadataEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\";\x0A\x09RetryInfo\x12.\x0A\x0Bretry_delay\x18\x01 \x01(\x0B2\x19.google.protobuf.Duration\"2\x0A\x09DebugInfo\x12\x15\x0A\x0Dstack_entries\x18\x01 \x03(\x09\x12\x0E\x0A\x06detail\x18\x02 \x01(\x09\"\x8F\x03\x0A\x0CQuotaFailure\x126\x0A\x0Aviolations\x18\x01 \x03(\x0B2\".google.rpc.QuotaFailure.Violation\x1A\xC6\x02\x0A\x09Violation\x12\x0F\x0A\x07subject\x18\x01 \x01(\x09\x12\x13\x0A\x0Bdescription\x18\x02 \x01(\x09\x12\x13\x0A\x0Bapi_service\x18\x03 \x01(\x09\x12\x14\x0A\x0Cquota_metric\x18\x04 \x01(\x09\x12\x10\x0A\x08quota_id\x18\x05 \x01(\x09\x12Q\x0A\x10quota_dimensions\x18\x06 \x03(\x0B27.google.rpc.QuotaFailure.Violation.QuotaDimensionsEntry\x12\x13\x0A\x0Bquota_value\x18\x07 \x01(\x03\x12\x1F\x0A\x12future_quota_value\x18\x08 \x01(\x03H\x00\x88\x01\x01\x1A6\x0A\x14QuotaDimensionsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01B\x15\x0A\x13_future_quota_value\"\x95\x01\x0A\x13PreconditionFailure\x12=\x0A\x0Aviolations\x18\x01 \x03(\x0B2).google.rpc.PreconditionFailure.Violation\x1A?\x0A\x09Violation\x12\x0C\x0A\x04type\x18\x01 \x01(\x09\x12\x0F\x0A\x07subject\x18\x02 \x01(\x09\x12\x13\x0A\x0Bdescription\x18\x03 \x01(\x09\"\xCC\x01\x0A\x0ABadRequest\x12?\x0A\x10field_violations\x18\x01 \x03(\x0B2%.google.rpc.BadRequest.FieldViolation\x1A}\x0A\x0EFieldViolation\x12\x0D\x0A\x05field\x18\x01 \x01(\x09\x12\x13\x0A\x0Bdescription\x18\x02 \x01(\x09\x12\x0E\x0A\x06reason\x18\x03 \x01(\x09\x127\x0A\x11localized_message\x18\x04 \x01(\x0B2\x1C.google.rpc.LocalizedMessage\"7\x0A\x0BRequestInfo\x12\x12\x0A\x0Arequest_id\x18\x01 \x01(\x09\x12\x14\x0A\x0Cserving_data\x18\x02 \x01(\x09\"`\x0A\x0CResourceInfo\x12\x15\x0A\x0Dresource_type\x18\x01 \x01(\x09\x12\x15\x0A\x0Dresource_name\x18\x02 \x01(\x09\x12\x0D\x0A\x05owner\x18\x03 \x01(\x09\x12\x13\x0A\x0Bdescription\x18\x04 \x01(\x09\"V\x0A\x04Help\x12\$\x0A\x05links\x18\x01 \x03(\x0B2\x15.google.rpc.Help.Link\x1A(\x0A\x04Link\x12\x13\x0A\x0Bdescription\x18\x01 \x01(\x09\x12\x0B\x0A\x03url\x18\x02 \x01(\x09\"3\x0A\x10LocalizedMessage\x12\x0E\x0A\x06locale\x18\x01 \x01(\x09\x12\x0F\x0A\x07message\x18\x02 \x01(\x09Bl\x0A\x0Ecom.google.rpcB\x11ErrorDetailsProtoP\x01Z?google.golang.org/genproto/googleapis/rpc/errdetails;errdetails\xA2\x02\x03RPCb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/GPBMetadata/Google/Rpc/Status.php b/owl-bot-staging/CommonProtos/rpc/proto/src/GPBMetadata/Google/Rpc/Status.php new file mode 100644 index 000000000000..6122a2706632 --- /dev/null +++ b/owl-bot-staging/CommonProtos/rpc/proto/src/GPBMetadata/Google/Rpc/Status.php @@ -0,0 +1,25 @@ +internalAddGeneratedFile( + "\x0A\xE0\x01\x0A\x17google/rpc/status.proto\x12\x0Agoogle.rpc\"N\x0A\x06Status\x12\x0C\x0A\x04code\x18\x01 \x01(\x05\x12\x0F\x0A\x07message\x18\x02 \x01(\x09\x12%\x0A\x07details\x18\x03 \x03(\x0B2\x14.google.protobuf.AnyBa\x0A\x0Ecom.google.rpcB\x0BStatusProtoP\x01Z7google.golang.org/genproto/googleapis/rpc/status;status\xF8\x01\x01\xA2\x02\x03RPCb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/BadRequest.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/BadRequest.php new file mode 100644 index 000000000000..de1d80815113 --- /dev/null +++ b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/BadRequest.php @@ -0,0 +1,68 @@ +google.rpc.BadRequest + */ +class BadRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Describes all violations in a client request. + * + * Generated from protobuf field repeated .google.rpc.BadRequest.FieldViolation field_violations = 1; + */ + private $field_violations; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Rpc\BadRequest\FieldViolation[] $field_violations + * Describes all violations in a client request. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Rpc\ErrorDetails::initOnce(); + parent::__construct($data); + } + + /** + * Describes all violations in a client request. + * + * Generated from protobuf field repeated .google.rpc.BadRequest.FieldViolation field_violations = 1; + * @return RepeatedField<\Google\Rpc\BadRequest\FieldViolation> + */ + public function getFieldViolations() + { + return $this->field_violations; + } + + /** + * Describes all violations in a client request. + * + * Generated from protobuf field repeated .google.rpc.BadRequest.FieldViolation field_violations = 1; + * @param \Google\Rpc\BadRequest\FieldViolation[] $var + * @return $this + */ + public function setFieldViolations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Rpc\BadRequest\FieldViolation::class); + $this->field_violations = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/BadRequest/FieldViolation.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/BadRequest/FieldViolation.php new file mode 100644 index 000000000000..7c1dde3c12cd --- /dev/null +++ b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/BadRequest/FieldViolation.php @@ -0,0 +1,315 @@ +google.rpc.BadRequest.FieldViolation + */ +class FieldViolation extends \Google\Protobuf\Internal\Message +{ + /** + * A path that leads to a field in the request body. The value will be a + * sequence of dot-separated identifiers that identify a protocol buffer + * field. + * Consider the following: + * message CreateContactRequest { + * message EmailAddress { + * enum Type { + * TYPE_UNSPECIFIED = 0; + * HOME = 1; + * WORK = 2; + * } + * optional string email = 1; + * repeated EmailType type = 2; + * } + * string full_name = 1; + * repeated EmailAddress email_addresses = 2; + * } + * In this example, in proto `field` could take one of the following values: + * * `full_name` for a violation in the `full_name` value + * * `email_addresses[1].email` for a violation in the `email` field of the + * first `email_addresses` message + * * `email_addresses[3].type[2]` for a violation in the second `type` + * value in the third `email_addresses` message. + * In JSON, the same values are represented as: + * * `fullName` for a violation in the `fullName` value + * * `emailAddresses[1].email` for a violation in the `email` field of the + * first `emailAddresses` message + * * `emailAddresses[3].type[2]` for a violation in the second `type` + * value in the third `emailAddresses` message. + * + * Generated from protobuf field string field = 1; + */ + protected $field = ''; + /** + * A description of why the request element is bad. + * + * Generated from protobuf field string description = 2; + */ + protected $description = ''; + /** + * The reason of the field-level error. This is a constant value that + * identifies the proximate cause of the field-level error. It should + * uniquely identify the type of the FieldViolation within the scope of the + * google.rpc.ErrorInfo.domain. This should be at most 63 + * characters and match a regular expression of `[A-Z][A-Z0-9_]+[A-Z0-9]`, + * which represents UPPER_SNAKE_CASE. + * + * Generated from protobuf field string reason = 3; + */ + protected $reason = ''; + /** + * Provides a localized error message for field-level errors that is safe to + * return to the API consumer. + * + * Generated from protobuf field .google.rpc.LocalizedMessage localized_message = 4; + */ + protected $localized_message = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $field + * A path that leads to a field in the request body. The value will be a + * sequence of dot-separated identifiers that identify a protocol buffer + * field. + * Consider the following: + * message CreateContactRequest { + * message EmailAddress { + * enum Type { + * TYPE_UNSPECIFIED = 0; + * HOME = 1; + * WORK = 2; + * } + * optional string email = 1; + * repeated EmailType type = 2; + * } + * string full_name = 1; + * repeated EmailAddress email_addresses = 2; + * } + * In this example, in proto `field` could take one of the following values: + * * `full_name` for a violation in the `full_name` value + * * `email_addresses[1].email` for a violation in the `email` field of the + * first `email_addresses` message + * * `email_addresses[3].type[2]` for a violation in the second `type` + * value in the third `email_addresses` message. + * In JSON, the same values are represented as: + * * `fullName` for a violation in the `fullName` value + * * `emailAddresses[1].email` for a violation in the `email` field of the + * first `emailAddresses` message + * * `emailAddresses[3].type[2]` for a violation in the second `type` + * value in the third `emailAddresses` message. + * @type string $description + * A description of why the request element is bad. + * @type string $reason + * The reason of the field-level error. This is a constant value that + * identifies the proximate cause of the field-level error. It should + * uniquely identify the type of the FieldViolation within the scope of the + * google.rpc.ErrorInfo.domain. This should be at most 63 + * characters and match a regular expression of `[A-Z][A-Z0-9_]+[A-Z0-9]`, + * which represents UPPER_SNAKE_CASE. + * @type \Google\Rpc\LocalizedMessage $localized_message + * Provides a localized error message for field-level errors that is safe to + * return to the API consumer. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Rpc\ErrorDetails::initOnce(); + parent::__construct($data); + } + + /** + * A path that leads to a field in the request body. The value will be a + * sequence of dot-separated identifiers that identify a protocol buffer + * field. + * Consider the following: + * message CreateContactRequest { + * message EmailAddress { + * enum Type { + * TYPE_UNSPECIFIED = 0; + * HOME = 1; + * WORK = 2; + * } + * optional string email = 1; + * repeated EmailType type = 2; + * } + * string full_name = 1; + * repeated EmailAddress email_addresses = 2; + * } + * In this example, in proto `field` could take one of the following values: + * * `full_name` for a violation in the `full_name` value + * * `email_addresses[1].email` for a violation in the `email` field of the + * first `email_addresses` message + * * `email_addresses[3].type[2]` for a violation in the second `type` + * value in the third `email_addresses` message. + * In JSON, the same values are represented as: + * * `fullName` for a violation in the `fullName` value + * * `emailAddresses[1].email` for a violation in the `email` field of the + * first `emailAddresses` message + * * `emailAddresses[3].type[2]` for a violation in the second `type` + * value in the third `emailAddresses` message. + * + * Generated from protobuf field string field = 1; + * @return string + */ + public function getField() + { + return $this->field; + } + + /** + * A path that leads to a field in the request body. The value will be a + * sequence of dot-separated identifiers that identify a protocol buffer + * field. + * Consider the following: + * message CreateContactRequest { + * message EmailAddress { + * enum Type { + * TYPE_UNSPECIFIED = 0; + * HOME = 1; + * WORK = 2; + * } + * optional string email = 1; + * repeated EmailType type = 2; + * } + * string full_name = 1; + * repeated EmailAddress email_addresses = 2; + * } + * In this example, in proto `field` could take one of the following values: + * * `full_name` for a violation in the `full_name` value + * * `email_addresses[1].email` for a violation in the `email` field of the + * first `email_addresses` message + * * `email_addresses[3].type[2]` for a violation in the second `type` + * value in the third `email_addresses` message. + * In JSON, the same values are represented as: + * * `fullName` for a violation in the `fullName` value + * * `emailAddresses[1].email` for a violation in the `email` field of the + * first `emailAddresses` message + * * `emailAddresses[3].type[2]` for a violation in the second `type` + * value in the third `emailAddresses` message. + * + * Generated from protobuf field string field = 1; + * @param string $var + * @return $this + */ + public function setField($var) + { + GPBUtil::checkString($var, True); + $this->field = $var; + + return $this; + } + + /** + * A description of why the request element is bad. + * + * Generated from protobuf field string description = 2; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * A description of why the request element is bad. + * + * Generated from protobuf field string description = 2; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * The reason of the field-level error. This is a constant value that + * identifies the proximate cause of the field-level error. It should + * uniquely identify the type of the FieldViolation within the scope of the + * google.rpc.ErrorInfo.domain. This should be at most 63 + * characters and match a regular expression of `[A-Z][A-Z0-9_]+[A-Z0-9]`, + * which represents UPPER_SNAKE_CASE. + * + * Generated from protobuf field string reason = 3; + * @return string + */ + public function getReason() + { + return $this->reason; + } + + /** + * The reason of the field-level error. This is a constant value that + * identifies the proximate cause of the field-level error. It should + * uniquely identify the type of the FieldViolation within the scope of the + * google.rpc.ErrorInfo.domain. This should be at most 63 + * characters and match a regular expression of `[A-Z][A-Z0-9_]+[A-Z0-9]`, + * which represents UPPER_SNAKE_CASE. + * + * Generated from protobuf field string reason = 3; + * @param string $var + * @return $this + */ + public function setReason($var) + { + GPBUtil::checkString($var, True); + $this->reason = $var; + + return $this; + } + + /** + * Provides a localized error message for field-level errors that is safe to + * return to the API consumer. + * + * Generated from protobuf field .google.rpc.LocalizedMessage localized_message = 4; + * @return \Google\Rpc\LocalizedMessage|null + */ + public function getLocalizedMessage() + { + return $this->localized_message; + } + + public function hasLocalizedMessage() + { + return isset($this->localized_message); + } + + public function clearLocalizedMessage() + { + unset($this->localized_message); + } + + /** + * Provides a localized error message for field-level errors that is safe to + * return to the API consumer. + * + * Generated from protobuf field .google.rpc.LocalizedMessage localized_message = 4; + * @param \Google\Rpc\LocalizedMessage $var + * @return $this + */ + public function setLocalizedMessage($var) + { + GPBUtil::checkMessage($var, \Google\Rpc\LocalizedMessage::class); + $this->localized_message = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Code.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Code.php new file mode 100644 index 000000000000..b82e88f3bf4d --- /dev/null +++ b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Code.php @@ -0,0 +1,243 @@ +google.rpc.Code + */ +class Code +{ + /** + * Not an error; returned on success. + * HTTP Mapping: 200 OK + * + * Generated from protobuf enum OK = 0; + */ + const OK = 0; + /** + * The operation was cancelled, typically by the caller. + * HTTP Mapping: 499 Client Closed Request + * + * Generated from protobuf enum CANCELLED = 1; + */ + const CANCELLED = 1; + /** + * Unknown error. For example, this error may be returned when + * a `Status` value received from another address space belongs to + * an error space that is not known in this address space. Also + * errors raised by APIs that do not return enough error information + * may be converted to this error. + * HTTP Mapping: 500 Internal Server Error + * + * Generated from protobuf enum UNKNOWN = 2; + */ + const UNKNOWN = 2; + /** + * The client specified an invalid argument. Note that this differs + * from `FAILED_PRECONDITION`. `INVALID_ARGUMENT` indicates arguments + * that are problematic regardless of the state of the system + * (e.g., a malformed file name). + * HTTP Mapping: 400 Bad Request + * + * Generated from protobuf enum INVALID_ARGUMENT = 3; + */ + const INVALID_ARGUMENT = 3; + /** + * The deadline expired before the operation could complete. For operations + * that change the state of the system, this error may be returned + * even if the operation has completed successfully. For example, a + * successful response from a server could have been delayed long + * enough for the deadline to expire. + * HTTP Mapping: 504 Gateway Timeout + * + * Generated from protobuf enum DEADLINE_EXCEEDED = 4; + */ + const DEADLINE_EXCEEDED = 4; + /** + * Some requested entity (e.g., file or directory) was not found. + * Note to server developers: if a request is denied for an entire class + * of users, such as gradual feature rollout or undocumented allowlist, + * `NOT_FOUND` may be used. If a request is denied for some users within + * a class of users, such as user-based access control, `PERMISSION_DENIED` + * must be used. + * HTTP Mapping: 404 Not Found + * + * Generated from protobuf enum NOT_FOUND = 5; + */ + const NOT_FOUND = 5; + /** + * The entity that a client attempted to create (e.g., file or directory) + * already exists. + * HTTP Mapping: 409 Conflict + * + * Generated from protobuf enum ALREADY_EXISTS = 6; + */ + const ALREADY_EXISTS = 6; + /** + * The caller does not have permission to execute the specified + * operation. `PERMISSION_DENIED` must not be used for rejections + * caused by exhausting some resource (use `RESOURCE_EXHAUSTED` + * instead for those errors). `PERMISSION_DENIED` must not be + * used if the caller can not be identified (use `UNAUTHENTICATED` + * instead for those errors). This error code does not imply the + * request is valid or the requested entity exists or satisfies + * other pre-conditions. + * HTTP Mapping: 403 Forbidden + * + * Generated from protobuf enum PERMISSION_DENIED = 7; + */ + const PERMISSION_DENIED = 7; + /** + * The request does not have valid authentication credentials for the + * operation. + * HTTP Mapping: 401 Unauthorized + * + * Generated from protobuf enum UNAUTHENTICATED = 16; + */ + const UNAUTHENTICATED = 16; + /** + * Some resource has been exhausted, perhaps a per-user quota, or + * perhaps the entire file system is out of space. + * HTTP Mapping: 429 Too Many Requests + * + * Generated from protobuf enum RESOURCE_EXHAUSTED = 8; + */ + const RESOURCE_EXHAUSTED = 8; + /** + * The operation was rejected because the system is not in a state + * required for the operation's execution. For example, the directory + * to be deleted is non-empty, an rmdir operation is applied to + * a non-directory, etc. + * Service implementors can use the following guidelines to decide + * between `FAILED_PRECONDITION`, `ABORTED`, and `UNAVAILABLE`: + * (a) Use `UNAVAILABLE` if the client can retry just the failing call. + * (b) Use `ABORTED` if the client should retry at a higher level. For + * example, when a client-specified test-and-set fails, indicating the + * client should restart a read-modify-write sequence. + * (c) Use `FAILED_PRECONDITION` if the client should not retry until + * the system state has been explicitly fixed. For example, if an "rmdir" + * fails because the directory is non-empty, `FAILED_PRECONDITION` + * should be returned since the client should not retry unless + * the files are deleted from the directory. + * HTTP Mapping: 400 Bad Request + * + * Generated from protobuf enum FAILED_PRECONDITION = 9; + */ + const FAILED_PRECONDITION = 9; + /** + * The operation was aborted, typically due to a concurrency issue such as + * a sequencer check failure or transaction abort. + * See the guidelines above for deciding between `FAILED_PRECONDITION`, + * `ABORTED`, and `UNAVAILABLE`. + * HTTP Mapping: 409 Conflict + * + * Generated from protobuf enum ABORTED = 10; + */ + const ABORTED = 10; + /** + * The operation was attempted past the valid range. E.g., seeking or + * reading past end-of-file. + * Unlike `INVALID_ARGUMENT`, this error indicates a problem that may + * be fixed if the system state changes. For example, a 32-bit file + * system will generate `INVALID_ARGUMENT` if asked to read at an + * offset that is not in the range [0,2^32-1], but it will generate + * `OUT_OF_RANGE` if asked to read from an offset past the current + * file size. + * There is a fair bit of overlap between `FAILED_PRECONDITION` and + * `OUT_OF_RANGE`. We recommend using `OUT_OF_RANGE` (the more specific + * error) when it applies so that callers who are iterating through + * a space can easily look for an `OUT_OF_RANGE` error to detect when + * they are done. + * HTTP Mapping: 400 Bad Request + * + * Generated from protobuf enum OUT_OF_RANGE = 11; + */ + const OUT_OF_RANGE = 11; + /** + * The operation is not implemented or is not supported/enabled in this + * service. + * HTTP Mapping: 501 Not Implemented + * + * Generated from protobuf enum UNIMPLEMENTED = 12; + */ + const UNIMPLEMENTED = 12; + /** + * Internal errors. This means that some invariants expected by the + * underlying system have been broken. This error code is reserved + * for serious errors. + * HTTP Mapping: 500 Internal Server Error + * + * Generated from protobuf enum INTERNAL = 13; + */ + const INTERNAL = 13; + /** + * The service is currently unavailable. This is most likely a + * transient condition, which can be corrected by retrying with + * a backoff. Note that it is not always safe to retry + * non-idempotent operations. + * See the guidelines above for deciding between `FAILED_PRECONDITION`, + * `ABORTED`, and `UNAVAILABLE`. + * HTTP Mapping: 503 Service Unavailable + * + * Generated from protobuf enum UNAVAILABLE = 14; + */ + const UNAVAILABLE = 14; + /** + * Unrecoverable data loss or corruption. + * HTTP Mapping: 500 Internal Server Error + * + * Generated from protobuf enum DATA_LOSS = 15; + */ + const DATA_LOSS = 15; + + private static $valueToName = [ + self::OK => 'OK', + self::CANCELLED => 'CANCELLED', + self::UNKNOWN => 'UNKNOWN', + self::INVALID_ARGUMENT => 'INVALID_ARGUMENT', + self::DEADLINE_EXCEEDED => 'DEADLINE_EXCEEDED', + self::NOT_FOUND => 'NOT_FOUND', + self::ALREADY_EXISTS => 'ALREADY_EXISTS', + self::PERMISSION_DENIED => 'PERMISSION_DENIED', + self::UNAUTHENTICATED => 'UNAUTHENTICATED', + self::RESOURCE_EXHAUSTED => 'RESOURCE_EXHAUSTED', + self::FAILED_PRECONDITION => 'FAILED_PRECONDITION', + self::ABORTED => 'ABORTED', + self::OUT_OF_RANGE => 'OUT_OF_RANGE', + self::UNIMPLEMENTED => 'UNIMPLEMENTED', + self::INTERNAL => 'INTERNAL', + self::UNAVAILABLE => 'UNAVAILABLE', + self::DATA_LOSS => 'DATA_LOSS', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext.php new file mode 100644 index 000000000000..59cb20720c8f --- /dev/null +++ b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext.php @@ -0,0 +1,419 @@ +google.rpc.context.AttributeContext + */ +class AttributeContext extends \Google\Protobuf\Internal\Message +{ + /** + * The origin of a network activity. In a multi hop network activity, + * the origin represents the sender of the first hop. For the first hop, + * the `source` and the `origin` must have the same content. + * + * Generated from protobuf field .google.rpc.context.AttributeContext.Peer origin = 7; + */ + protected $origin = null; + /** + * The source of a network activity, such as starting a TCP connection. + * In a multi hop network activity, the source represents the sender of the + * last hop. + * + * Generated from protobuf field .google.rpc.context.AttributeContext.Peer source = 1; + */ + protected $source = null; + /** + * The destination of a network activity, such as accepting a TCP connection. + * In a multi hop network activity, the destination represents the receiver of + * the last hop. + * + * Generated from protobuf field .google.rpc.context.AttributeContext.Peer destination = 2; + */ + protected $destination = null; + /** + * Represents a network request, such as an HTTP request. + * + * Generated from protobuf field .google.rpc.context.AttributeContext.Request request = 3; + */ + protected $request = null; + /** + * Represents a network response, such as an HTTP response. + * + * Generated from protobuf field .google.rpc.context.AttributeContext.Response response = 4; + */ + protected $response = null; + /** + * Represents a target resource that is involved with a network activity. + * If multiple resources are involved with an activity, this must be the + * primary one. + * + * Generated from protobuf field .google.rpc.context.AttributeContext.Resource resource = 5; + */ + protected $resource = null; + /** + * Represents an API operation that is involved to a network activity. + * + * Generated from protobuf field .google.rpc.context.AttributeContext.Api api = 6; + */ + protected $api = null; + /** + * Supports extensions for advanced use cases, such as logs and metrics. + * + * Generated from protobuf field repeated .google.protobuf.Any extensions = 8; + */ + private $extensions; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Rpc\Context\AttributeContext\Peer $origin + * The origin of a network activity. In a multi hop network activity, + * the origin represents the sender of the first hop. For the first hop, + * the `source` and the `origin` must have the same content. + * @type \Google\Rpc\Context\AttributeContext\Peer $source + * The source of a network activity, such as starting a TCP connection. + * In a multi hop network activity, the source represents the sender of the + * last hop. + * @type \Google\Rpc\Context\AttributeContext\Peer $destination + * The destination of a network activity, such as accepting a TCP connection. + * In a multi hop network activity, the destination represents the receiver of + * the last hop. + * @type \Google\Rpc\Context\AttributeContext\Request $request + * Represents a network request, such as an HTTP request. + * @type \Google\Rpc\Context\AttributeContext\Response $response + * Represents a network response, such as an HTTP response. + * @type \Google\Rpc\Context\AttributeContext\Resource $resource + * Represents a target resource that is involved with a network activity. + * If multiple resources are involved with an activity, this must be the + * primary one. + * @type \Google\Rpc\Context\AttributeContext\Api $api + * Represents an API operation that is involved to a network activity. + * @type \Google\Protobuf\Any[] $extensions + * Supports extensions for advanced use cases, such as logs and metrics. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Rpc\Context\AttributeContext::initOnce(); + parent::__construct($data); + } + + /** + * The origin of a network activity. In a multi hop network activity, + * the origin represents the sender of the first hop. For the first hop, + * the `source` and the `origin` must have the same content. + * + * Generated from protobuf field .google.rpc.context.AttributeContext.Peer origin = 7; + * @return \Google\Rpc\Context\AttributeContext\Peer|null + */ + public function getOrigin() + { + return $this->origin; + } + + public function hasOrigin() + { + return isset($this->origin); + } + + public function clearOrigin() + { + unset($this->origin); + } + + /** + * The origin of a network activity. In a multi hop network activity, + * the origin represents the sender of the first hop. For the first hop, + * the `source` and the `origin` must have the same content. + * + * Generated from protobuf field .google.rpc.context.AttributeContext.Peer origin = 7; + * @param \Google\Rpc\Context\AttributeContext\Peer $var + * @return $this + */ + public function setOrigin($var) + { + GPBUtil::checkMessage($var, \Google\Rpc\Context\AttributeContext\Peer::class); + $this->origin = $var; + + return $this; + } + + /** + * The source of a network activity, such as starting a TCP connection. + * In a multi hop network activity, the source represents the sender of the + * last hop. + * + * Generated from protobuf field .google.rpc.context.AttributeContext.Peer source = 1; + * @return \Google\Rpc\Context\AttributeContext\Peer|null + */ + public function getSource() + { + return $this->source; + } + + public function hasSource() + { + return isset($this->source); + } + + public function clearSource() + { + unset($this->source); + } + + /** + * The source of a network activity, such as starting a TCP connection. + * In a multi hop network activity, the source represents the sender of the + * last hop. + * + * Generated from protobuf field .google.rpc.context.AttributeContext.Peer source = 1; + * @param \Google\Rpc\Context\AttributeContext\Peer $var + * @return $this + */ + public function setSource($var) + { + GPBUtil::checkMessage($var, \Google\Rpc\Context\AttributeContext\Peer::class); + $this->source = $var; + + return $this; + } + + /** + * The destination of a network activity, such as accepting a TCP connection. + * In a multi hop network activity, the destination represents the receiver of + * the last hop. + * + * Generated from protobuf field .google.rpc.context.AttributeContext.Peer destination = 2; + * @return \Google\Rpc\Context\AttributeContext\Peer|null + */ + public function getDestination() + { + return $this->destination; + } + + public function hasDestination() + { + return isset($this->destination); + } + + public function clearDestination() + { + unset($this->destination); + } + + /** + * The destination of a network activity, such as accepting a TCP connection. + * In a multi hop network activity, the destination represents the receiver of + * the last hop. + * + * Generated from protobuf field .google.rpc.context.AttributeContext.Peer destination = 2; + * @param \Google\Rpc\Context\AttributeContext\Peer $var + * @return $this + */ + public function setDestination($var) + { + GPBUtil::checkMessage($var, \Google\Rpc\Context\AttributeContext\Peer::class); + $this->destination = $var; + + return $this; + } + + /** + * Represents a network request, such as an HTTP request. + * + * Generated from protobuf field .google.rpc.context.AttributeContext.Request request = 3; + * @return \Google\Rpc\Context\AttributeContext\Request|null + */ + public function getRequest() + { + return $this->request; + } + + public function hasRequest() + { + return isset($this->request); + } + + public function clearRequest() + { + unset($this->request); + } + + /** + * Represents a network request, such as an HTTP request. + * + * Generated from protobuf field .google.rpc.context.AttributeContext.Request request = 3; + * @param \Google\Rpc\Context\AttributeContext\Request $var + * @return $this + */ + public function setRequest($var) + { + GPBUtil::checkMessage($var, \Google\Rpc\Context\AttributeContext\Request::class); + $this->request = $var; + + return $this; + } + + /** + * Represents a network response, such as an HTTP response. + * + * Generated from protobuf field .google.rpc.context.AttributeContext.Response response = 4; + * @return \Google\Rpc\Context\AttributeContext\Response|null + */ + public function getResponse() + { + return $this->response; + } + + public function hasResponse() + { + return isset($this->response); + } + + public function clearResponse() + { + unset($this->response); + } + + /** + * Represents a network response, such as an HTTP response. + * + * Generated from protobuf field .google.rpc.context.AttributeContext.Response response = 4; + * @param \Google\Rpc\Context\AttributeContext\Response $var + * @return $this + */ + public function setResponse($var) + { + GPBUtil::checkMessage($var, \Google\Rpc\Context\AttributeContext\Response::class); + $this->response = $var; + + return $this; + } + + /** + * Represents a target resource that is involved with a network activity. + * If multiple resources are involved with an activity, this must be the + * primary one. + * + * Generated from protobuf field .google.rpc.context.AttributeContext.Resource resource = 5; + * @return \Google\Rpc\Context\AttributeContext\Resource|null + */ + public function getResource() + { + return $this->resource; + } + + public function hasResource() + { + return isset($this->resource); + } + + public function clearResource() + { + unset($this->resource); + } + + /** + * Represents a target resource that is involved with a network activity. + * If multiple resources are involved with an activity, this must be the + * primary one. + * + * Generated from protobuf field .google.rpc.context.AttributeContext.Resource resource = 5; + * @param \Google\Rpc\Context\AttributeContext\Resource $var + * @return $this + */ + public function setResource($var) + { + GPBUtil::checkMessage($var, \Google\Rpc\Context\AttributeContext\Resource::class); + $this->resource = $var; + + return $this; + } + + /** + * Represents an API operation that is involved to a network activity. + * + * Generated from protobuf field .google.rpc.context.AttributeContext.Api api = 6; + * @return \Google\Rpc\Context\AttributeContext\Api|null + */ + public function getApi() + { + return $this->api; + } + + public function hasApi() + { + return isset($this->api); + } + + public function clearApi() + { + unset($this->api); + } + + /** + * Represents an API operation that is involved to a network activity. + * + * Generated from protobuf field .google.rpc.context.AttributeContext.Api api = 6; + * @param \Google\Rpc\Context\AttributeContext\Api $var + * @return $this + */ + public function setApi($var) + { + GPBUtil::checkMessage($var, \Google\Rpc\Context\AttributeContext\Api::class); + $this->api = $var; + + return $this; + } + + /** + * Supports extensions for advanced use cases, such as logs and metrics. + * + * Generated from protobuf field repeated .google.protobuf.Any extensions = 8; + * @return RepeatedField<\Google\Protobuf\Any> + */ + public function getExtensions() + { + return $this->extensions; + } + + /** + * Supports extensions for advanced use cases, such as logs and metrics. + * + * Generated from protobuf field repeated .google.protobuf.Any extensions = 8; + * @param \Google\Protobuf\Any[] $var + * @return $this + */ + public function setExtensions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Any::class); + $this->extensions = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Api.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Api.php new file mode 100644 index 000000000000..3f08a6e90ed9 --- /dev/null +++ b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Api.php @@ -0,0 +1,195 @@ +google.rpc.context.AttributeContext.Api + */ +class Api extends \Google\Protobuf\Internal\Message +{ + /** + * The API service name. It is a logical identifier for a networked API, + * such as "pubsub.googleapis.com". The naming syntax depends on the + * API management system being used for handling the request. + * + * Generated from protobuf field string service = 1; + */ + protected $service = ''; + /** + * The API operation name. For gRPC requests, it is the fully qualified API + * method name, such as "google.pubsub.v1.Publisher.Publish". For OpenAPI + * requests, it is the `operationId`, such as "getPet". + * + * Generated from protobuf field string operation = 2; + */ + protected $operation = ''; + /** + * The API protocol used for sending the request, such as "http", "https", + * "grpc", or "internal". + * + * Generated from protobuf field string protocol = 3; + */ + protected $protocol = ''; + /** + * The API version associated with the API operation above, such as "v1" or + * "v1alpha1". + * + * Generated from protobuf field string version = 4; + */ + protected $version = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $service + * The API service name. It is a logical identifier for a networked API, + * such as "pubsub.googleapis.com". The naming syntax depends on the + * API management system being used for handling the request. + * @type string $operation + * The API operation name. For gRPC requests, it is the fully qualified API + * method name, such as "google.pubsub.v1.Publisher.Publish". For OpenAPI + * requests, it is the `operationId`, such as "getPet". + * @type string $protocol + * The API protocol used for sending the request, such as "http", "https", + * "grpc", or "internal". + * @type string $version + * The API version associated with the API operation above, such as "v1" or + * "v1alpha1". + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Rpc\Context\AttributeContext::initOnce(); + parent::__construct($data); + } + + /** + * The API service name. It is a logical identifier for a networked API, + * such as "pubsub.googleapis.com". The naming syntax depends on the + * API management system being used for handling the request. + * + * Generated from protobuf field string service = 1; + * @return string + */ + public function getService() + { + return $this->service; + } + + /** + * The API service name. It is a logical identifier for a networked API, + * such as "pubsub.googleapis.com". The naming syntax depends on the + * API management system being used for handling the request. + * + * Generated from protobuf field string service = 1; + * @param string $var + * @return $this + */ + public function setService($var) + { + GPBUtil::checkString($var, True); + $this->service = $var; + + return $this; + } + + /** + * The API operation name. For gRPC requests, it is the fully qualified API + * method name, such as "google.pubsub.v1.Publisher.Publish". For OpenAPI + * requests, it is the `operationId`, such as "getPet". + * + * Generated from protobuf field string operation = 2; + * @return string + */ + public function getOperation() + { + return $this->operation; + } + + /** + * The API operation name. For gRPC requests, it is the fully qualified API + * method name, such as "google.pubsub.v1.Publisher.Publish". For OpenAPI + * requests, it is the `operationId`, such as "getPet". + * + * Generated from protobuf field string operation = 2; + * @param string $var + * @return $this + */ + public function setOperation($var) + { + GPBUtil::checkString($var, True); + $this->operation = $var; + + return $this; + } + + /** + * The API protocol used for sending the request, such as "http", "https", + * "grpc", or "internal". + * + * Generated from protobuf field string protocol = 3; + * @return string + */ + public function getProtocol() + { + return $this->protocol; + } + + /** + * The API protocol used for sending the request, such as "http", "https", + * "grpc", or "internal". + * + * Generated from protobuf field string protocol = 3; + * @param string $var + * @return $this + */ + public function setProtocol($var) + { + GPBUtil::checkString($var, True); + $this->protocol = $var; + + return $this; + } + + /** + * The API version associated with the API operation above, such as "v1" or + * "v1alpha1". + * + * Generated from protobuf field string version = 4; + * @return string + */ + public function getVersion() + { + return $this->version; + } + + /** + * The API version associated with the API operation above, such as "v1" or + * "v1alpha1". + * + * Generated from protobuf field string version = 4; + * @param string $var + * @return $this + */ + public function setVersion($var) + { + GPBUtil::checkString($var, True); + $this->version = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Auth.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Auth.php new file mode 100644 index 000000000000..07a824302c8d --- /dev/null +++ b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Auth.php @@ -0,0 +1,355 @@ +google.rpc.context.AttributeContext.Auth + */ +class Auth extends \Google\Protobuf\Internal\Message +{ + /** + * The authenticated principal. Reflects the issuer (`iss`) and subject + * (`sub`) claims within a JWT. The issuer and subject should be `/` + * delimited, with `/` percent-encoded within the subject fragment. For + * Google accounts, the principal format is: + * "https://accounts.google.com/{id}" + * + * Generated from protobuf field string principal = 1; + */ + protected $principal = ''; + /** + * The intended audience(s) for this authentication information. Reflects + * the audience (`aud`) claim within a JWT. The audience + * value(s) depends on the `issuer`, but typically include one or more of + * the following pieces of information: + * * The services intended to receive the credential. For example, + * ["https://pubsub.googleapis.com/", "https://storage.googleapis.com/"]. + * * A set of service-based scopes. For example, + * ["https://www.googleapis.com/auth/cloud-platform"]. + * * The client id of an app, such as the Firebase project id for JWTs + * from Firebase Auth. + * Consult the documentation for the credential issuer to determine the + * information provided. + * + * Generated from protobuf field repeated string audiences = 2; + */ + private $audiences; + /** + * The authorized presenter of the credential. Reflects the optional + * Authorized Presenter (`azp`) claim within a JWT or the + * OAuth client id. For example, a Google Cloud Platform client id looks + * as follows: "123456789012.apps.googleusercontent.com". + * + * Generated from protobuf field string presenter = 3; + */ + protected $presenter = ''; + /** + * Structured claims presented with the credential. JWTs include + * `{key: value}` pairs for standard and private claims. The following + * is a subset of the standard required and optional claims that would + * typically be presented for a Google-based JWT: + * {'iss': 'accounts.google.com', + * 'sub': '113289723416554971153', + * 'aud': ['123456789012', 'pubsub.googleapis.com'], + * 'azp': '123456789012.apps.googleusercontent.com', + * 'email': 'jsmith\@example.com', + * 'iat': 1353601026, + * 'exp': 1353604926} + * SAML assertions are similarly specified, but with an identity provider + * dependent structure. + * + * Generated from protobuf field .google.protobuf.Struct claims = 4; + */ + protected $claims = null; + /** + * A list of access level resource names that allow resources to be + * accessed by authenticated requester. It is part of Secure GCP processing + * for the incoming request. An access level string has the format: + * "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}" + * Example: + * "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL" + * + * Generated from protobuf field repeated string access_levels = 5; + */ + private $access_levels; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $principal + * The authenticated principal. Reflects the issuer (`iss`) and subject + * (`sub`) claims within a JWT. The issuer and subject should be `/` + * delimited, with `/` percent-encoded within the subject fragment. For + * Google accounts, the principal format is: + * "https://accounts.google.com/{id}" + * @type string[] $audiences + * The intended audience(s) for this authentication information. Reflects + * the audience (`aud`) claim within a JWT. The audience + * value(s) depends on the `issuer`, but typically include one or more of + * the following pieces of information: + * * The services intended to receive the credential. For example, + * ["https://pubsub.googleapis.com/", "https://storage.googleapis.com/"]. + * * A set of service-based scopes. For example, + * ["https://www.googleapis.com/auth/cloud-platform"]. + * * The client id of an app, such as the Firebase project id for JWTs + * from Firebase Auth. + * Consult the documentation for the credential issuer to determine the + * information provided. + * @type string $presenter + * The authorized presenter of the credential. Reflects the optional + * Authorized Presenter (`azp`) claim within a JWT or the + * OAuth client id. For example, a Google Cloud Platform client id looks + * as follows: "123456789012.apps.googleusercontent.com". + * @type \Google\Protobuf\Struct $claims + * Structured claims presented with the credential. JWTs include + * `{key: value}` pairs for standard and private claims. The following + * is a subset of the standard required and optional claims that would + * typically be presented for a Google-based JWT: + * {'iss': 'accounts.google.com', + * 'sub': '113289723416554971153', + * 'aud': ['123456789012', 'pubsub.googleapis.com'], + * 'azp': '123456789012.apps.googleusercontent.com', + * 'email': 'jsmith\@example.com', + * 'iat': 1353601026, + * 'exp': 1353604926} + * SAML assertions are similarly specified, but with an identity provider + * dependent structure. + * @type string[] $access_levels + * A list of access level resource names that allow resources to be + * accessed by authenticated requester. It is part of Secure GCP processing + * for the incoming request. An access level string has the format: + * "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}" + * Example: + * "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL" + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Rpc\Context\AttributeContext::initOnce(); + parent::__construct($data); + } + + /** + * The authenticated principal. Reflects the issuer (`iss`) and subject + * (`sub`) claims within a JWT. The issuer and subject should be `/` + * delimited, with `/` percent-encoded within the subject fragment. For + * Google accounts, the principal format is: + * "https://accounts.google.com/{id}" + * + * Generated from protobuf field string principal = 1; + * @return string + */ + public function getPrincipal() + { + return $this->principal; + } + + /** + * The authenticated principal. Reflects the issuer (`iss`) and subject + * (`sub`) claims within a JWT. The issuer and subject should be `/` + * delimited, with `/` percent-encoded within the subject fragment. For + * Google accounts, the principal format is: + * "https://accounts.google.com/{id}" + * + * Generated from protobuf field string principal = 1; + * @param string $var + * @return $this + */ + public function setPrincipal($var) + { + GPBUtil::checkString($var, True); + $this->principal = $var; + + return $this; + } + + /** + * The intended audience(s) for this authentication information. Reflects + * the audience (`aud`) claim within a JWT. The audience + * value(s) depends on the `issuer`, but typically include one or more of + * the following pieces of information: + * * The services intended to receive the credential. For example, + * ["https://pubsub.googleapis.com/", "https://storage.googleapis.com/"]. + * * A set of service-based scopes. For example, + * ["https://www.googleapis.com/auth/cloud-platform"]. + * * The client id of an app, such as the Firebase project id for JWTs + * from Firebase Auth. + * Consult the documentation for the credential issuer to determine the + * information provided. + * + * Generated from protobuf field repeated string audiences = 2; + * @return RepeatedField + */ + public function getAudiences() + { + return $this->audiences; + } + + /** + * The intended audience(s) for this authentication information. Reflects + * the audience (`aud`) claim within a JWT. The audience + * value(s) depends on the `issuer`, but typically include one or more of + * the following pieces of information: + * * The services intended to receive the credential. For example, + * ["https://pubsub.googleapis.com/", "https://storage.googleapis.com/"]. + * * A set of service-based scopes. For example, + * ["https://www.googleapis.com/auth/cloud-platform"]. + * * The client id of an app, such as the Firebase project id for JWTs + * from Firebase Auth. + * Consult the documentation for the credential issuer to determine the + * information provided. + * + * Generated from protobuf field repeated string audiences = 2; + * @param string[] $var + * @return $this + */ + public function setAudiences($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->audiences = $arr; + + return $this; + } + + /** + * The authorized presenter of the credential. Reflects the optional + * Authorized Presenter (`azp`) claim within a JWT or the + * OAuth client id. For example, a Google Cloud Platform client id looks + * as follows: "123456789012.apps.googleusercontent.com". + * + * Generated from protobuf field string presenter = 3; + * @return string + */ + public function getPresenter() + { + return $this->presenter; + } + + /** + * The authorized presenter of the credential. Reflects the optional + * Authorized Presenter (`azp`) claim within a JWT or the + * OAuth client id. For example, a Google Cloud Platform client id looks + * as follows: "123456789012.apps.googleusercontent.com". + * + * Generated from protobuf field string presenter = 3; + * @param string $var + * @return $this + */ + public function setPresenter($var) + { + GPBUtil::checkString($var, True); + $this->presenter = $var; + + return $this; + } + + /** + * Structured claims presented with the credential. JWTs include + * `{key: value}` pairs for standard and private claims. The following + * is a subset of the standard required and optional claims that would + * typically be presented for a Google-based JWT: + * {'iss': 'accounts.google.com', + * 'sub': '113289723416554971153', + * 'aud': ['123456789012', 'pubsub.googleapis.com'], + * 'azp': '123456789012.apps.googleusercontent.com', + * 'email': 'jsmith\@example.com', + * 'iat': 1353601026, + * 'exp': 1353604926} + * SAML assertions are similarly specified, but with an identity provider + * dependent structure. + * + * Generated from protobuf field .google.protobuf.Struct claims = 4; + * @return \Google\Protobuf\Struct|null + */ + public function getClaims() + { + return $this->claims; + } + + public function hasClaims() + { + return isset($this->claims); + } + + public function clearClaims() + { + unset($this->claims); + } + + /** + * Structured claims presented with the credential. JWTs include + * `{key: value}` pairs for standard and private claims. The following + * is a subset of the standard required and optional claims that would + * typically be presented for a Google-based JWT: + * {'iss': 'accounts.google.com', + * 'sub': '113289723416554971153', + * 'aud': ['123456789012', 'pubsub.googleapis.com'], + * 'azp': '123456789012.apps.googleusercontent.com', + * 'email': 'jsmith\@example.com', + * 'iat': 1353601026, + * 'exp': 1353604926} + * SAML assertions are similarly specified, but with an identity provider + * dependent structure. + * + * Generated from protobuf field .google.protobuf.Struct claims = 4; + * @param \Google\Protobuf\Struct $var + * @return $this + */ + public function setClaims($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Struct::class); + $this->claims = $var; + + return $this; + } + + /** + * A list of access level resource names that allow resources to be + * accessed by authenticated requester. It is part of Secure GCP processing + * for the incoming request. An access level string has the format: + * "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}" + * Example: + * "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL" + * + * Generated from protobuf field repeated string access_levels = 5; + * @return RepeatedField + */ + public function getAccessLevels() + { + return $this->access_levels; + } + + /** + * A list of access level resource names that allow resources to be + * accessed by authenticated requester. It is part of Secure GCP processing + * for the incoming request. An access level string has the format: + * "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}" + * Example: + * "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL" + * + * Generated from protobuf field repeated string access_levels = 5; + * @param string[] $var + * @return $this + */ + public function setAccessLevels($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->access_levels = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Peer.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Peer.php new file mode 100644 index 000000000000..2433710547ca --- /dev/null +++ b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Peer.php @@ -0,0 +1,222 @@ +google.rpc.context.AttributeContext.Peer + */ +class Peer extends \Google\Protobuf\Internal\Message +{ + /** + * The IP address of the peer. + * + * Generated from protobuf field string ip = 1; + */ + protected $ip = ''; + /** + * The network port of the peer. + * + * Generated from protobuf field int64 port = 2; + */ + protected $port = 0; + /** + * The labels associated with the peer. + * + * Generated from protobuf field map labels = 6; + */ + private $labels; + /** + * The identity of this peer. Similar to `Request.auth.principal`, but + * relative to the peer instead of the request. For example, the + * identity associated with a load balancer that forwarded the request. + * + * Generated from protobuf field string principal = 7; + */ + protected $principal = ''; + /** + * The CLDR country/region code associated with the above IP address. + * If the IP address is private, the `region_code` should reflect the + * physical location where this peer is running. + * + * Generated from protobuf field string region_code = 8; + */ + protected $region_code = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $ip + * The IP address of the peer. + * @type int|string $port + * The network port of the peer. + * @type array|\Google\Protobuf\Internal\MapField $labels + * The labels associated with the peer. + * @type string $principal + * The identity of this peer. Similar to `Request.auth.principal`, but + * relative to the peer instead of the request. For example, the + * identity associated with a load balancer that forwarded the request. + * @type string $region_code + * The CLDR country/region code associated with the above IP address. + * If the IP address is private, the `region_code` should reflect the + * physical location where this peer is running. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Rpc\Context\AttributeContext::initOnce(); + parent::__construct($data); + } + + /** + * The IP address of the peer. + * + * Generated from protobuf field string ip = 1; + * @return string + */ + public function getIp() + { + return $this->ip; + } + + /** + * The IP address of the peer. + * + * Generated from protobuf field string ip = 1; + * @param string $var + * @return $this + */ + public function setIp($var) + { + GPBUtil::checkString($var, True); + $this->ip = $var; + + return $this; + } + + /** + * The network port of the peer. + * + * Generated from protobuf field int64 port = 2; + * @return int|string + */ + public function getPort() + { + return $this->port; + } + + /** + * The network port of the peer. + * + * Generated from protobuf field int64 port = 2; + * @param int|string $var + * @return $this + */ + public function setPort($var) + { + GPBUtil::checkInt64($var); + $this->port = $var; + + return $this; + } + + /** + * The labels associated with the peer. + * + * Generated from protobuf field map labels = 6; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * The labels associated with the peer. + * + * Generated from protobuf field map labels = 6; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->labels = $arr; + + return $this; + } + + /** + * The identity of this peer. Similar to `Request.auth.principal`, but + * relative to the peer instead of the request. For example, the + * identity associated with a load balancer that forwarded the request. + * + * Generated from protobuf field string principal = 7; + * @return string + */ + public function getPrincipal() + { + return $this->principal; + } + + /** + * The identity of this peer. Similar to `Request.auth.principal`, but + * relative to the peer instead of the request. For example, the + * identity associated with a load balancer that forwarded the request. + * + * Generated from protobuf field string principal = 7; + * @param string $var + * @return $this + */ + public function setPrincipal($var) + { + GPBUtil::checkString($var, True); + $this->principal = $var; + + return $this; + } + + /** + * The CLDR country/region code associated with the above IP address. + * If the IP address is private, the `region_code` should reflect the + * physical location where this peer is running. + * + * Generated from protobuf field string region_code = 8; + * @return string + */ + public function getRegionCode() + { + return $this->region_code; + } + + /** + * The CLDR country/region code associated with the above IP address. + * If the IP address is private, the `region_code` should reflect the + * physical location where this peer is running. + * + * Generated from protobuf field string region_code = 8; + * @param string $var + * @return $this + */ + public function setRegionCode($var) + { + GPBUtil::checkString($var, True); + $this->region_code = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Request.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Request.php new file mode 100644 index 000000000000..9d0a1ed62e87 --- /dev/null +++ b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Request.php @@ -0,0 +1,507 @@ +google.rpc.context.AttributeContext.Request + */ +class Request extends \Google\Protobuf\Internal\Message +{ + /** + * The unique ID for a request, which can be propagated to downstream + * systems. The ID should have low probability of collision + * within a single day for a specific service. + * + * Generated from protobuf field string id = 1; + */ + protected $id = ''; + /** + * The HTTP request method, such as `GET`, `POST`. + * + * Generated from protobuf field string method = 2; + */ + protected $method = ''; + /** + * The HTTP request headers. If multiple headers share the same key, they + * must be merged according to the HTTP spec. All header keys must be + * lowercased, because HTTP header keys are case-insensitive. + * + * Generated from protobuf field map headers = 3; + */ + private $headers; + /** + * The HTTP URL path, excluding the query parameters. + * + * Generated from protobuf field string path = 4; + */ + protected $path = ''; + /** + * The HTTP request `Host` header value. + * + * Generated from protobuf field string host = 5; + */ + protected $host = ''; + /** + * The HTTP URL scheme, such as `http` and `https`. + * + * Generated from protobuf field string scheme = 6; + */ + protected $scheme = ''; + /** + * The HTTP URL query in the format of `name1=value1&name2=value2`, as it + * appears in the first line of the HTTP request. No decoding is performed. + * + * Generated from protobuf field string query = 7; + */ + protected $query = ''; + /** + * The timestamp when the `destination` service receives the last byte of + * the request. + * + * Generated from protobuf field .google.protobuf.Timestamp time = 9; + */ + protected $time = null; + /** + * The HTTP request size in bytes. If unknown, it must be -1. + * + * Generated from protobuf field int64 size = 10; + */ + protected $size = 0; + /** + * The network protocol used with the request, such as "http/1.1", + * "spdy/3", "h2", "h2c", "webrtc", "tcp", "udp", "quic". See + * https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids + * for details. + * + * Generated from protobuf field string protocol = 11; + */ + protected $protocol = ''; + /** + * A special parameter for request reason. It is used by security systems + * to associate auditing information with a request. + * + * Generated from protobuf field string reason = 12; + */ + protected $reason = ''; + /** + * The request authentication. May be absent for unauthenticated requests. + * Derived from the HTTP request `Authorization` header or equivalent. + * + * Generated from protobuf field .google.rpc.context.AttributeContext.Auth auth = 13; + */ + protected $auth = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $id + * The unique ID for a request, which can be propagated to downstream + * systems. The ID should have low probability of collision + * within a single day for a specific service. + * @type string $method + * The HTTP request method, such as `GET`, `POST`. + * @type array|\Google\Protobuf\Internal\MapField $headers + * The HTTP request headers. If multiple headers share the same key, they + * must be merged according to the HTTP spec. All header keys must be + * lowercased, because HTTP header keys are case-insensitive. + * @type string $path + * The HTTP URL path, excluding the query parameters. + * @type string $host + * The HTTP request `Host` header value. + * @type string $scheme + * The HTTP URL scheme, such as `http` and `https`. + * @type string $query + * The HTTP URL query in the format of `name1=value1&name2=value2`, as it + * appears in the first line of the HTTP request. No decoding is performed. + * @type \Google\Protobuf\Timestamp $time + * The timestamp when the `destination` service receives the last byte of + * the request. + * @type int|string $size + * The HTTP request size in bytes. If unknown, it must be -1. + * @type string $protocol + * The network protocol used with the request, such as "http/1.1", + * "spdy/3", "h2", "h2c", "webrtc", "tcp", "udp", "quic". See + * https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids + * for details. + * @type string $reason + * A special parameter for request reason. It is used by security systems + * to associate auditing information with a request. + * @type \Google\Rpc\Context\AttributeContext\Auth $auth + * The request authentication. May be absent for unauthenticated requests. + * Derived from the HTTP request `Authorization` header or equivalent. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Rpc\Context\AttributeContext::initOnce(); + parent::__construct($data); + } + + /** + * The unique ID for a request, which can be propagated to downstream + * systems. The ID should have low probability of collision + * within a single day for a specific service. + * + * Generated from protobuf field string id = 1; + * @return string + */ + public function getId() + { + return $this->id; + } + + /** + * The unique ID for a request, which can be propagated to downstream + * systems. The ID should have low probability of collision + * within a single day for a specific service. + * + * Generated from protobuf field string id = 1; + * @param string $var + * @return $this + */ + public function setId($var) + { + GPBUtil::checkString($var, True); + $this->id = $var; + + return $this; + } + + /** + * The HTTP request method, such as `GET`, `POST`. + * + * Generated from protobuf field string method = 2; + * @return string + */ + public function getMethod() + { + return $this->method; + } + + /** + * The HTTP request method, such as `GET`, `POST`. + * + * Generated from protobuf field string method = 2; + * @param string $var + * @return $this + */ + public function setMethod($var) + { + GPBUtil::checkString($var, True); + $this->method = $var; + + return $this; + } + + /** + * The HTTP request headers. If multiple headers share the same key, they + * must be merged according to the HTTP spec. All header keys must be + * lowercased, because HTTP header keys are case-insensitive. + * + * Generated from protobuf field map headers = 3; + * @return \Google\Protobuf\Internal\MapField + */ + public function getHeaders() + { + return $this->headers; + } + + /** + * The HTTP request headers. If multiple headers share the same key, they + * must be merged according to the HTTP spec. All header keys must be + * lowercased, because HTTP header keys are case-insensitive. + * + * Generated from protobuf field map headers = 3; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setHeaders($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->headers = $arr; + + return $this; + } + + /** + * The HTTP URL path, excluding the query parameters. + * + * Generated from protobuf field string path = 4; + * @return string + */ + public function getPath() + { + return $this->path; + } + + /** + * The HTTP URL path, excluding the query parameters. + * + * Generated from protobuf field string path = 4; + * @param string $var + * @return $this + */ + public function setPath($var) + { + GPBUtil::checkString($var, True); + $this->path = $var; + + return $this; + } + + /** + * The HTTP request `Host` header value. + * + * Generated from protobuf field string host = 5; + * @return string + */ + public function getHost() + { + return $this->host; + } + + /** + * The HTTP request `Host` header value. + * + * Generated from protobuf field string host = 5; + * @param string $var + * @return $this + */ + public function setHost($var) + { + GPBUtil::checkString($var, True); + $this->host = $var; + + return $this; + } + + /** + * The HTTP URL scheme, such as `http` and `https`. + * + * Generated from protobuf field string scheme = 6; + * @return string + */ + public function getScheme() + { + return $this->scheme; + } + + /** + * The HTTP URL scheme, such as `http` and `https`. + * + * Generated from protobuf field string scheme = 6; + * @param string $var + * @return $this + */ + public function setScheme($var) + { + GPBUtil::checkString($var, True); + $this->scheme = $var; + + return $this; + } + + /** + * The HTTP URL query in the format of `name1=value1&name2=value2`, as it + * appears in the first line of the HTTP request. No decoding is performed. + * + * Generated from protobuf field string query = 7; + * @return string + */ + public function getQuery() + { + return $this->query; + } + + /** + * The HTTP URL query in the format of `name1=value1&name2=value2`, as it + * appears in the first line of the HTTP request. No decoding is performed. + * + * Generated from protobuf field string query = 7; + * @param string $var + * @return $this + */ + public function setQuery($var) + { + GPBUtil::checkString($var, True); + $this->query = $var; + + return $this; + } + + /** + * The timestamp when the `destination` service receives the last byte of + * the request. + * + * Generated from protobuf field .google.protobuf.Timestamp time = 9; + * @return \Google\Protobuf\Timestamp|null + */ + public function getTime() + { + return $this->time; + } + + public function hasTime() + { + return isset($this->time); + } + + public function clearTime() + { + unset($this->time); + } + + /** + * The timestamp when the `destination` service receives the last byte of + * the request. + * + * Generated from protobuf field .google.protobuf.Timestamp time = 9; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->time = $var; + + return $this; + } + + /** + * The HTTP request size in bytes. If unknown, it must be -1. + * + * Generated from protobuf field int64 size = 10; + * @return int|string + */ + public function getSize() + { + return $this->size; + } + + /** + * The HTTP request size in bytes. If unknown, it must be -1. + * + * Generated from protobuf field int64 size = 10; + * @param int|string $var + * @return $this + */ + public function setSize($var) + { + GPBUtil::checkInt64($var); + $this->size = $var; + + return $this; + } + + /** + * The network protocol used with the request, such as "http/1.1", + * "spdy/3", "h2", "h2c", "webrtc", "tcp", "udp", "quic". See + * https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids + * for details. + * + * Generated from protobuf field string protocol = 11; + * @return string + */ + public function getProtocol() + { + return $this->protocol; + } + + /** + * The network protocol used with the request, such as "http/1.1", + * "spdy/3", "h2", "h2c", "webrtc", "tcp", "udp", "quic". See + * https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids + * for details. + * + * Generated from protobuf field string protocol = 11; + * @param string $var + * @return $this + */ + public function setProtocol($var) + { + GPBUtil::checkString($var, True); + $this->protocol = $var; + + return $this; + } + + /** + * A special parameter for request reason. It is used by security systems + * to associate auditing information with a request. + * + * Generated from protobuf field string reason = 12; + * @return string + */ + public function getReason() + { + return $this->reason; + } + + /** + * A special parameter for request reason. It is used by security systems + * to associate auditing information with a request. + * + * Generated from protobuf field string reason = 12; + * @param string $var + * @return $this + */ + public function setReason($var) + { + GPBUtil::checkString($var, True); + $this->reason = $var; + + return $this; + } + + /** + * The request authentication. May be absent for unauthenticated requests. + * Derived from the HTTP request `Authorization` header or equivalent. + * + * Generated from protobuf field .google.rpc.context.AttributeContext.Auth auth = 13; + * @return \Google\Rpc\Context\AttributeContext\Auth|null + */ + public function getAuth() + { + return $this->auth; + } + + public function hasAuth() + { + return isset($this->auth); + } + + public function clearAuth() + { + unset($this->auth); + } + + /** + * The request authentication. May be absent for unauthenticated requests. + * Derived from the HTTP request `Authorization` header or equivalent. + * + * Generated from protobuf field .google.rpc.context.AttributeContext.Auth auth = 13; + * @param \Google\Rpc\Context\AttributeContext\Auth $var + * @return $this + */ + public function setAuth($var) + { + GPBUtil::checkMessage($var, \Google\Rpc\Context\AttributeContext\Auth::class); + $this->auth = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Resource.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Resource.php new file mode 100644 index 000000000000..c35da3f54dfc --- /dev/null +++ b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Resource.php @@ -0,0 +1,613 @@ +google.rpc.context.AttributeContext.Resource + */ +class Resource extends \Google\Protobuf\Internal\Message +{ + /** + * The name of the service that this resource belongs to, such as + * `pubsub.googleapis.com`. The service may be different from the DNS + * hostname that actually serves the request. + * + * Generated from protobuf field string service = 1; + */ + protected $service = ''; + /** + * The stable identifier (name) of a resource on the `service`. A resource + * can be logically identified as "//{resource.service}/{resource.name}". + * The differences between a resource name and a URI are: + * * Resource name is a logical identifier, independent of network + * protocol and API version. For example, + * `//pubsub.googleapis.com/projects/123/topics/news-feed`. + * * URI often includes protocol and version information, so it can + * be used directly by applications. For example, + * `https://pubsub.googleapis.com/v1/projects/123/topics/news-feed`. + * See https://cloud.google.com/apis/design/resource_names for details. + * + * Generated from protobuf field string name = 2; + */ + protected $name = ''; + /** + * The type of the resource. The syntax is platform-specific because + * different platforms define their resources differently. + * For Google APIs, the type format must be "{service}/{kind}", such as + * "pubsub.googleapis.com/Topic". + * + * Generated from protobuf field string type = 3; + */ + protected $type = ''; + /** + * The labels or tags on the resource, such as AWS resource tags and + * Kubernetes resource labels. + * + * Generated from protobuf field map labels = 4; + */ + private $labels; + /** + * The unique identifier of the resource. UID is unique in the time + * and space for this resource within the scope of the service. It is + * typically generated by the server on successful creation of a resource + * and must not be changed. UID is used to uniquely identify resources + * with resource name reuses. This should be a UUID4. + * + * Generated from protobuf field string uid = 5; + */ + protected $uid = ''; + /** + * Annotations is an unstructured key-value map stored with a resource that + * may be set by external tools to store and retrieve arbitrary metadata. + * They are not queryable and should be preserved when modifying objects. + * More info: + * https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/ + * + * Generated from protobuf field map annotations = 6; + */ + private $annotations; + /** + * Mutable. The display name set by clients. Must be <= 63 characters. + * + * Generated from protobuf field string display_name = 7; + */ + protected $display_name = ''; + /** + * Output only. The timestamp when the resource was created. This may + * be either the time creation was initiated or when it was completed. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 8; + */ + protected $create_time = null; + /** + * Output only. The timestamp when the resource was last updated. Any + * change to the resource made by users must refresh this value. + * Changes to a resource made by the service should refresh this value. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 9; + */ + protected $update_time = null; + /** + * Output only. The timestamp when the resource was deleted. + * If the resource is not deleted, this must be empty. + * + * Generated from protobuf field .google.protobuf.Timestamp delete_time = 10; + */ + protected $delete_time = null; + /** + * Output only. An opaque value that uniquely identifies a version or + * generation of a resource. It can be used to confirm that the client + * and server agree on the ordering of a resource being written. + * + * Generated from protobuf field string etag = 11; + */ + protected $etag = ''; + /** + * Immutable. The location of the resource. The location encoding is + * specific to the service provider, and new encoding may be introduced + * as the service evolves. + * For Google Cloud products, the encoding is what is used by Google Cloud + * APIs, such as `us-east1`, `aws-us-east-1`, and `azure-eastus2`. The + * semantics of `location` is identical to the + * `cloud.googleapis.com/location` label used by some Google Cloud APIs. + * + * Generated from protobuf field string location = 12; + */ + protected $location = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $service + * The name of the service that this resource belongs to, such as + * `pubsub.googleapis.com`. The service may be different from the DNS + * hostname that actually serves the request. + * @type string $name + * The stable identifier (name) of a resource on the `service`. A resource + * can be logically identified as "//{resource.service}/{resource.name}". + * The differences between a resource name and a URI are: + * * Resource name is a logical identifier, independent of network + * protocol and API version. For example, + * `//pubsub.googleapis.com/projects/123/topics/news-feed`. + * * URI often includes protocol and version information, so it can + * be used directly by applications. For example, + * `https://pubsub.googleapis.com/v1/projects/123/topics/news-feed`. + * See https://cloud.google.com/apis/design/resource_names for details. + * @type string $type + * The type of the resource. The syntax is platform-specific because + * different platforms define their resources differently. + * For Google APIs, the type format must be "{service}/{kind}", such as + * "pubsub.googleapis.com/Topic". + * @type array|\Google\Protobuf\Internal\MapField $labels + * The labels or tags on the resource, such as AWS resource tags and + * Kubernetes resource labels. + * @type string $uid + * The unique identifier of the resource. UID is unique in the time + * and space for this resource within the scope of the service. It is + * typically generated by the server on successful creation of a resource + * and must not be changed. UID is used to uniquely identify resources + * with resource name reuses. This should be a UUID4. + * @type array|\Google\Protobuf\Internal\MapField $annotations + * Annotations is an unstructured key-value map stored with a resource that + * may be set by external tools to store and retrieve arbitrary metadata. + * They are not queryable and should be preserved when modifying objects. + * More info: + * https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/ + * @type string $display_name + * Mutable. The display name set by clients. Must be <= 63 characters. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The timestamp when the resource was created. This may + * be either the time creation was initiated or when it was completed. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. The timestamp when the resource was last updated. Any + * change to the resource made by users must refresh this value. + * Changes to a resource made by the service should refresh this value. + * @type \Google\Protobuf\Timestamp $delete_time + * Output only. The timestamp when the resource was deleted. + * If the resource is not deleted, this must be empty. + * @type string $etag + * Output only. An opaque value that uniquely identifies a version or + * generation of a resource. It can be used to confirm that the client + * and server agree on the ordering of a resource being written. + * @type string $location + * Immutable. The location of the resource. The location encoding is + * specific to the service provider, and new encoding may be introduced + * as the service evolves. + * For Google Cloud products, the encoding is what is used by Google Cloud + * APIs, such as `us-east1`, `aws-us-east-1`, and `azure-eastus2`. The + * semantics of `location` is identical to the + * `cloud.googleapis.com/location` label used by some Google Cloud APIs. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Rpc\Context\AttributeContext::initOnce(); + parent::__construct($data); + } + + /** + * The name of the service that this resource belongs to, such as + * `pubsub.googleapis.com`. The service may be different from the DNS + * hostname that actually serves the request. + * + * Generated from protobuf field string service = 1; + * @return string + */ + public function getService() + { + return $this->service; + } + + /** + * The name of the service that this resource belongs to, such as + * `pubsub.googleapis.com`. The service may be different from the DNS + * hostname that actually serves the request. + * + * Generated from protobuf field string service = 1; + * @param string $var + * @return $this + */ + public function setService($var) + { + GPBUtil::checkString($var, True); + $this->service = $var; + + return $this; + } + + /** + * The stable identifier (name) of a resource on the `service`. A resource + * can be logically identified as "//{resource.service}/{resource.name}". + * The differences between a resource name and a URI are: + * * Resource name is a logical identifier, independent of network + * protocol and API version. For example, + * `//pubsub.googleapis.com/projects/123/topics/news-feed`. + * * URI often includes protocol and version information, so it can + * be used directly by applications. For example, + * `https://pubsub.googleapis.com/v1/projects/123/topics/news-feed`. + * See https://cloud.google.com/apis/design/resource_names for details. + * + * Generated from protobuf field string name = 2; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The stable identifier (name) of a resource on the `service`. A resource + * can be logically identified as "//{resource.service}/{resource.name}". + * The differences between a resource name and a URI are: + * * Resource name is a logical identifier, independent of network + * protocol and API version. For example, + * `//pubsub.googleapis.com/projects/123/topics/news-feed`. + * * URI often includes protocol and version information, so it can + * be used directly by applications. For example, + * `https://pubsub.googleapis.com/v1/projects/123/topics/news-feed`. + * See https://cloud.google.com/apis/design/resource_names for details. + * + * Generated from protobuf field string name = 2; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * The type of the resource. The syntax is platform-specific because + * different platforms define their resources differently. + * For Google APIs, the type format must be "{service}/{kind}", such as + * "pubsub.googleapis.com/Topic". + * + * Generated from protobuf field string type = 3; + * @return string + */ + public function getType() + { + return $this->type; + } + + /** + * The type of the resource. The syntax is platform-specific because + * different platforms define their resources differently. + * For Google APIs, the type format must be "{service}/{kind}", such as + * "pubsub.googleapis.com/Topic". + * + * Generated from protobuf field string type = 3; + * @param string $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkString($var, True); + $this->type = $var; + + return $this; + } + + /** + * The labels or tags on the resource, such as AWS resource tags and + * Kubernetes resource labels. + * + * Generated from protobuf field map labels = 4; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * The labels or tags on the resource, such as AWS resource tags and + * Kubernetes resource labels. + * + * Generated from protobuf field map labels = 4; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->labels = $arr; + + return $this; + } + + /** + * The unique identifier of the resource. UID is unique in the time + * and space for this resource within the scope of the service. It is + * typically generated by the server on successful creation of a resource + * and must not be changed. UID is used to uniquely identify resources + * with resource name reuses. This should be a UUID4. + * + * Generated from protobuf field string uid = 5; + * @return string + */ + public function getUid() + { + return $this->uid; + } + + /** + * The unique identifier of the resource. UID is unique in the time + * and space for this resource within the scope of the service. It is + * typically generated by the server on successful creation of a resource + * and must not be changed. UID is used to uniquely identify resources + * with resource name reuses. This should be a UUID4. + * + * Generated from protobuf field string uid = 5; + * @param string $var + * @return $this + */ + public function setUid($var) + { + GPBUtil::checkString($var, True); + $this->uid = $var; + + return $this; + } + + /** + * Annotations is an unstructured key-value map stored with a resource that + * may be set by external tools to store and retrieve arbitrary metadata. + * They are not queryable and should be preserved when modifying objects. + * More info: + * https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/ + * + * Generated from protobuf field map annotations = 6; + * @return \Google\Protobuf\Internal\MapField + */ + public function getAnnotations() + { + return $this->annotations; + } + + /** + * Annotations is an unstructured key-value map stored with a resource that + * may be set by external tools to store and retrieve arbitrary metadata. + * They are not queryable and should be preserved when modifying objects. + * More info: + * https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/ + * + * Generated from protobuf field map annotations = 6; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setAnnotations($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->annotations = $arr; + + return $this; + } + + /** + * Mutable. The display name set by clients. Must be <= 63 characters. + * + * Generated from protobuf field string display_name = 7; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Mutable. The display name set by clients. Must be <= 63 characters. + * + * Generated from protobuf field string display_name = 7; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Output only. The timestamp when the resource was created. This may + * be either the time creation was initiated or when it was completed. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 8; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. The timestamp when the resource was created. This may + * be either the time creation was initiated or when it was completed. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 8; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. The timestamp when the resource was last updated. Any + * change to the resource made by users must refresh this value. + * Changes to a resource made by the service should refresh this value. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 9; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. The timestamp when the resource was last updated. Any + * change to the resource made by users must refresh this value. + * Changes to a resource made by the service should refresh this value. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 9; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * Output only. The timestamp when the resource was deleted. + * If the resource is not deleted, this must be empty. + * + * Generated from protobuf field .google.protobuf.Timestamp delete_time = 10; + * @return \Google\Protobuf\Timestamp|null + */ + public function getDeleteTime() + { + return $this->delete_time; + } + + public function hasDeleteTime() + { + return isset($this->delete_time); + } + + public function clearDeleteTime() + { + unset($this->delete_time); + } + + /** + * Output only. The timestamp when the resource was deleted. + * If the resource is not deleted, this must be empty. + * + * Generated from protobuf field .google.protobuf.Timestamp delete_time = 10; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setDeleteTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->delete_time = $var; + + return $this; + } + + /** + * Output only. An opaque value that uniquely identifies a version or + * generation of a resource. It can be used to confirm that the client + * and server agree on the ordering of a resource being written. + * + * Generated from protobuf field string etag = 11; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * Output only. An opaque value that uniquely identifies a version or + * generation of a resource. It can be used to confirm that the client + * and server agree on the ordering of a resource being written. + * + * Generated from protobuf field string etag = 11; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + + /** + * Immutable. The location of the resource. The location encoding is + * specific to the service provider, and new encoding may be introduced + * as the service evolves. + * For Google Cloud products, the encoding is what is used by Google Cloud + * APIs, such as `us-east1`, `aws-us-east-1`, and `azure-eastus2`. The + * semantics of `location` is identical to the + * `cloud.googleapis.com/location` label used by some Google Cloud APIs. + * + * Generated from protobuf field string location = 12; + * @return string + */ + public function getLocation() + { + return $this->location; + } + + /** + * Immutable. The location of the resource. The location encoding is + * specific to the service provider, and new encoding may be introduced + * as the service evolves. + * For Google Cloud products, the encoding is what is used by Google Cloud + * APIs, such as `us-east1`, `aws-us-east-1`, and `azure-eastus2`. The + * semantics of `location` is identical to the + * `cloud.googleapis.com/location` label used by some Google Cloud APIs. + * + * Generated from protobuf field string location = 12; + * @param string $var + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkString($var, True); + $this->location = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Response.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Response.php new file mode 100644 index 000000000000..1745b961a0dd --- /dev/null +++ b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Response.php @@ -0,0 +1,248 @@ +google.rpc.context.AttributeContext.Response + */ +class Response extends \Google\Protobuf\Internal\Message +{ + /** + * The HTTP response status code, such as `200` and `404`. + * + * Generated from protobuf field int64 code = 1; + */ + protected $code = 0; + /** + * The HTTP response size in bytes. If unknown, it must be -1. + * + * Generated from protobuf field int64 size = 2; + */ + protected $size = 0; + /** + * The HTTP response headers. If multiple headers share the same key, they + * must be merged according to HTTP spec. All header keys must be + * lowercased, because HTTP header keys are case-insensitive. + * + * Generated from protobuf field map headers = 3; + */ + private $headers; + /** + * The timestamp when the `destination` service sends the last byte of + * the response. + * + * Generated from protobuf field .google.protobuf.Timestamp time = 4; + */ + protected $time = null; + /** + * The amount of time it takes the backend service to fully respond to a + * request. Measured from when the destination service starts to send the + * request to the backend until when the destination service receives the + * complete response from the backend. + * + * Generated from protobuf field .google.protobuf.Duration backend_latency = 5; + */ + protected $backend_latency = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $code + * The HTTP response status code, such as `200` and `404`. + * @type int|string $size + * The HTTP response size in bytes. If unknown, it must be -1. + * @type array|\Google\Protobuf\Internal\MapField $headers + * The HTTP response headers. If multiple headers share the same key, they + * must be merged according to HTTP spec. All header keys must be + * lowercased, because HTTP header keys are case-insensitive. + * @type \Google\Protobuf\Timestamp $time + * The timestamp when the `destination` service sends the last byte of + * the response. + * @type \Google\Protobuf\Duration $backend_latency + * The amount of time it takes the backend service to fully respond to a + * request. Measured from when the destination service starts to send the + * request to the backend until when the destination service receives the + * complete response from the backend. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Rpc\Context\AttributeContext::initOnce(); + parent::__construct($data); + } + + /** + * The HTTP response status code, such as `200` and `404`. + * + * Generated from protobuf field int64 code = 1; + * @return int|string + */ + public function getCode() + { + return $this->code; + } + + /** + * The HTTP response status code, such as `200` and `404`. + * + * Generated from protobuf field int64 code = 1; + * @param int|string $var + * @return $this + */ + public function setCode($var) + { + GPBUtil::checkInt64($var); + $this->code = $var; + + return $this; + } + + /** + * The HTTP response size in bytes. If unknown, it must be -1. + * + * Generated from protobuf field int64 size = 2; + * @return int|string + */ + public function getSize() + { + return $this->size; + } + + /** + * The HTTP response size in bytes. If unknown, it must be -1. + * + * Generated from protobuf field int64 size = 2; + * @param int|string $var + * @return $this + */ + public function setSize($var) + { + GPBUtil::checkInt64($var); + $this->size = $var; + + return $this; + } + + /** + * The HTTP response headers. If multiple headers share the same key, they + * must be merged according to HTTP spec. All header keys must be + * lowercased, because HTTP header keys are case-insensitive. + * + * Generated from protobuf field map headers = 3; + * @return \Google\Protobuf\Internal\MapField + */ + public function getHeaders() + { + return $this->headers; + } + + /** + * The HTTP response headers. If multiple headers share the same key, they + * must be merged according to HTTP spec. All header keys must be + * lowercased, because HTTP header keys are case-insensitive. + * + * Generated from protobuf field map headers = 3; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setHeaders($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->headers = $arr; + + return $this; + } + + /** + * The timestamp when the `destination` service sends the last byte of + * the response. + * + * Generated from protobuf field .google.protobuf.Timestamp time = 4; + * @return \Google\Protobuf\Timestamp|null + */ + public function getTime() + { + return $this->time; + } + + public function hasTime() + { + return isset($this->time); + } + + public function clearTime() + { + unset($this->time); + } + + /** + * The timestamp when the `destination` service sends the last byte of + * the response. + * + * Generated from protobuf field .google.protobuf.Timestamp time = 4; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->time = $var; + + return $this; + } + + /** + * The amount of time it takes the backend service to fully respond to a + * request. Measured from when the destination service starts to send the + * request to the backend until when the destination service receives the + * complete response from the backend. + * + * Generated from protobuf field .google.protobuf.Duration backend_latency = 5; + * @return \Google\Protobuf\Duration|null + */ + public function getBackendLatency() + { + return $this->backend_latency; + } + + public function hasBackendLatency() + { + return isset($this->backend_latency); + } + + public function clearBackendLatency() + { + unset($this->backend_latency); + } + + /** + * The amount of time it takes the backend service to fully respond to a + * request. Measured from when the destination service starts to send the + * request to the backend until when the destination service receives the + * complete response from the backend. + * + * Generated from protobuf field .google.protobuf.Duration backend_latency = 5; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setBackendLatency($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->backend_latency = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AuditContext.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AuditContext.php new file mode 100644 index 000000000000..f0acfa4f0859 --- /dev/null +++ b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AuditContext.php @@ -0,0 +1,247 @@ +google.rpc.context.AuditContext + */ +class AuditContext extends \Google\Protobuf\Internal\Message +{ + /** + * Serialized audit log. + * + * Generated from protobuf field bytes audit_log = 1; + */ + protected $audit_log = ''; + /** + * An API request message that is scrubbed based on the method annotation. + * This field should only be filled if audit_log field is present. + * Service Control will use this to assemble a complete log for Cloud Audit + * Logs and Google internal audit logs. + * + * Generated from protobuf field .google.protobuf.Struct scrubbed_request = 2; + */ + protected $scrubbed_request = null; + /** + * An API response message that is scrubbed based on the method annotation. + * This field should only be filled if audit_log field is present. + * Service Control will use this to assemble a complete log for Cloud Audit + * Logs and Google internal audit logs. + * + * Generated from protobuf field .google.protobuf.Struct scrubbed_response = 3; + */ + protected $scrubbed_response = null; + /** + * Number of scrubbed response items. + * + * Generated from protobuf field int32 scrubbed_response_item_count = 4; + */ + protected $scrubbed_response_item_count = 0; + /** + * Audit resource name which is scrubbed. + * + * Generated from protobuf field string target_resource = 5; + */ + protected $target_resource = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $audit_log + * Serialized audit log. + * @type \Google\Protobuf\Struct $scrubbed_request + * An API request message that is scrubbed based on the method annotation. + * This field should only be filled if audit_log field is present. + * Service Control will use this to assemble a complete log for Cloud Audit + * Logs and Google internal audit logs. + * @type \Google\Protobuf\Struct $scrubbed_response + * An API response message that is scrubbed based on the method annotation. + * This field should only be filled if audit_log field is present. + * Service Control will use this to assemble a complete log for Cloud Audit + * Logs and Google internal audit logs. + * @type int $scrubbed_response_item_count + * Number of scrubbed response items. + * @type string $target_resource + * Audit resource name which is scrubbed. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Rpc\Context\AuditContext::initOnce(); + parent::__construct($data); + } + + /** + * Serialized audit log. + * + * Generated from protobuf field bytes audit_log = 1; + * @return string + */ + public function getAuditLog() + { + return $this->audit_log; + } + + /** + * Serialized audit log. + * + * Generated from protobuf field bytes audit_log = 1; + * @param string $var + * @return $this + */ + public function setAuditLog($var) + { + GPBUtil::checkString($var, False); + $this->audit_log = $var; + + return $this; + } + + /** + * An API request message that is scrubbed based on the method annotation. + * This field should only be filled if audit_log field is present. + * Service Control will use this to assemble a complete log for Cloud Audit + * Logs and Google internal audit logs. + * + * Generated from protobuf field .google.protobuf.Struct scrubbed_request = 2; + * @return \Google\Protobuf\Struct|null + */ + public function getScrubbedRequest() + { + return $this->scrubbed_request; + } + + public function hasScrubbedRequest() + { + return isset($this->scrubbed_request); + } + + public function clearScrubbedRequest() + { + unset($this->scrubbed_request); + } + + /** + * An API request message that is scrubbed based on the method annotation. + * This field should only be filled if audit_log field is present. + * Service Control will use this to assemble a complete log for Cloud Audit + * Logs and Google internal audit logs. + * + * Generated from protobuf field .google.protobuf.Struct scrubbed_request = 2; + * @param \Google\Protobuf\Struct $var + * @return $this + */ + public function setScrubbedRequest($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Struct::class); + $this->scrubbed_request = $var; + + return $this; + } + + /** + * An API response message that is scrubbed based on the method annotation. + * This field should only be filled if audit_log field is present. + * Service Control will use this to assemble a complete log for Cloud Audit + * Logs and Google internal audit logs. + * + * Generated from protobuf field .google.protobuf.Struct scrubbed_response = 3; + * @return \Google\Protobuf\Struct|null + */ + public function getScrubbedResponse() + { + return $this->scrubbed_response; + } + + public function hasScrubbedResponse() + { + return isset($this->scrubbed_response); + } + + public function clearScrubbedResponse() + { + unset($this->scrubbed_response); + } + + /** + * An API response message that is scrubbed based on the method annotation. + * This field should only be filled if audit_log field is present. + * Service Control will use this to assemble a complete log for Cloud Audit + * Logs and Google internal audit logs. + * + * Generated from protobuf field .google.protobuf.Struct scrubbed_response = 3; + * @param \Google\Protobuf\Struct $var + * @return $this + */ + public function setScrubbedResponse($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Struct::class); + $this->scrubbed_response = $var; + + return $this; + } + + /** + * Number of scrubbed response items. + * + * Generated from protobuf field int32 scrubbed_response_item_count = 4; + * @return int + */ + public function getScrubbedResponseItemCount() + { + return $this->scrubbed_response_item_count; + } + + /** + * Number of scrubbed response items. + * + * Generated from protobuf field int32 scrubbed_response_item_count = 4; + * @param int $var + * @return $this + */ + public function setScrubbedResponseItemCount($var) + { + GPBUtil::checkInt32($var); + $this->scrubbed_response_item_count = $var; + + return $this; + } + + /** + * Audit resource name which is scrubbed. + * + * Generated from protobuf field string target_resource = 5; + * @return string + */ + public function getTargetResource() + { + return $this->target_resource; + } + + /** + * Audit resource name which is scrubbed. + * + * Generated from protobuf field string target_resource = 5; + * @param string $var + * @return $this + */ + public function setTargetResource($var) + { + GPBUtil::checkString($var, True); + $this->target_resource = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/DebugInfo.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/DebugInfo.php new file mode 100644 index 000000000000..1474948034c0 --- /dev/null +++ b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/DebugInfo.php @@ -0,0 +1,101 @@ +google.rpc.DebugInfo + */ +class DebugInfo extends \Google\Protobuf\Internal\Message +{ + /** + * The stack trace entries indicating where the error occurred. + * + * Generated from protobuf field repeated string stack_entries = 1; + */ + private $stack_entries; + /** + * Additional debugging information provided by the server. + * + * Generated from protobuf field string detail = 2; + */ + protected $detail = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string[] $stack_entries + * The stack trace entries indicating where the error occurred. + * @type string $detail + * Additional debugging information provided by the server. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Rpc\ErrorDetails::initOnce(); + parent::__construct($data); + } + + /** + * The stack trace entries indicating where the error occurred. + * + * Generated from protobuf field repeated string stack_entries = 1; + * @return RepeatedField + */ + public function getStackEntries() + { + return $this->stack_entries; + } + + /** + * The stack trace entries indicating where the error occurred. + * + * Generated from protobuf field repeated string stack_entries = 1; + * @param string[] $var + * @return $this + */ + public function setStackEntries($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->stack_entries = $arr; + + return $this; + } + + /** + * Additional debugging information provided by the server. + * + * Generated from protobuf field string detail = 2; + * @return string + */ + public function getDetail() + { + return $this->detail; + } + + /** + * Additional debugging information provided by the server. + * + * Generated from protobuf field string detail = 2; + * @param string $var + * @return $this + */ + public function setDetail($var) + { + GPBUtil::checkString($var, True); + $this->detail = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/ErrorInfo.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/ErrorInfo.php new file mode 100644 index 000000000000..158c0be7387d --- /dev/null +++ b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/ErrorInfo.php @@ -0,0 +1,217 @@ +google.rpc.ErrorInfo + */ +class ErrorInfo extends \Google\Protobuf\Internal\Message +{ + /** + * The reason of the error. This is a constant value that identifies the + * proximate cause of the error. Error reasons are unique within a particular + * domain of errors. This should be at most 63 characters and match a + * regular expression of `[A-Z][A-Z0-9_]+[A-Z0-9]`, which represents + * UPPER_SNAKE_CASE. + * + * Generated from protobuf field string reason = 1; + */ + protected $reason = ''; + /** + * The logical grouping to which the "reason" belongs. The error domain + * is typically the registered service name of the tool or product that + * generates the error. Example: "pubsub.googleapis.com". If the error is + * generated by some common infrastructure, the error domain must be a + * globally unique value that identifies the infrastructure. For Google API + * infrastructure, the error domain is "googleapis.com". + * + * Generated from protobuf field string domain = 2; + */ + protected $domain = ''; + /** + * Additional structured details about this error. + * Keys must match a regular expression of `[a-z][a-zA-Z0-9-_]+` but should + * ideally be lowerCamelCase. Also, they must be limited to 64 characters in + * length. When identifying the current value of an exceeded limit, the units + * should be contained in the key, not the value. For example, rather than + * `{"instanceLimit": "100/request"}`, should be returned as, + * `{"instanceLimitPerRequest": "100"}`, if the client exceeds the number of + * instances that can be created in a single (batch) request. + * + * Generated from protobuf field map metadata = 3; + */ + private $metadata; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $reason + * The reason of the error. This is a constant value that identifies the + * proximate cause of the error. Error reasons are unique within a particular + * domain of errors. This should be at most 63 characters and match a + * regular expression of `[A-Z][A-Z0-9_]+[A-Z0-9]`, which represents + * UPPER_SNAKE_CASE. + * @type string $domain + * The logical grouping to which the "reason" belongs. The error domain + * is typically the registered service name of the tool or product that + * generates the error. Example: "pubsub.googleapis.com". If the error is + * generated by some common infrastructure, the error domain must be a + * globally unique value that identifies the infrastructure. For Google API + * infrastructure, the error domain is "googleapis.com". + * @type array|\Google\Protobuf\Internal\MapField $metadata + * Additional structured details about this error. + * Keys must match a regular expression of `[a-z][a-zA-Z0-9-_]+` but should + * ideally be lowerCamelCase. Also, they must be limited to 64 characters in + * length. When identifying the current value of an exceeded limit, the units + * should be contained in the key, not the value. For example, rather than + * `{"instanceLimit": "100/request"}`, should be returned as, + * `{"instanceLimitPerRequest": "100"}`, if the client exceeds the number of + * instances that can be created in a single (batch) request. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Rpc\ErrorDetails::initOnce(); + parent::__construct($data); + } + + /** + * The reason of the error. This is a constant value that identifies the + * proximate cause of the error. Error reasons are unique within a particular + * domain of errors. This should be at most 63 characters and match a + * regular expression of `[A-Z][A-Z0-9_]+[A-Z0-9]`, which represents + * UPPER_SNAKE_CASE. + * + * Generated from protobuf field string reason = 1; + * @return string + */ + public function getReason() + { + return $this->reason; + } + + /** + * The reason of the error. This is a constant value that identifies the + * proximate cause of the error. Error reasons are unique within a particular + * domain of errors. This should be at most 63 characters and match a + * regular expression of `[A-Z][A-Z0-9_]+[A-Z0-9]`, which represents + * UPPER_SNAKE_CASE. + * + * Generated from protobuf field string reason = 1; + * @param string $var + * @return $this + */ + public function setReason($var) + { + GPBUtil::checkString($var, True); + $this->reason = $var; + + return $this; + } + + /** + * The logical grouping to which the "reason" belongs. The error domain + * is typically the registered service name of the tool or product that + * generates the error. Example: "pubsub.googleapis.com". If the error is + * generated by some common infrastructure, the error domain must be a + * globally unique value that identifies the infrastructure. For Google API + * infrastructure, the error domain is "googleapis.com". + * + * Generated from protobuf field string domain = 2; + * @return string + */ + public function getDomain() + { + return $this->domain; + } + + /** + * The logical grouping to which the "reason" belongs. The error domain + * is typically the registered service name of the tool or product that + * generates the error. Example: "pubsub.googleapis.com". If the error is + * generated by some common infrastructure, the error domain must be a + * globally unique value that identifies the infrastructure. For Google API + * infrastructure, the error domain is "googleapis.com". + * + * Generated from protobuf field string domain = 2; + * @param string $var + * @return $this + */ + public function setDomain($var) + { + GPBUtil::checkString($var, True); + $this->domain = $var; + + return $this; + } + + /** + * Additional structured details about this error. + * Keys must match a regular expression of `[a-z][a-zA-Z0-9-_]+` but should + * ideally be lowerCamelCase. Also, they must be limited to 64 characters in + * length. When identifying the current value of an exceeded limit, the units + * should be contained in the key, not the value. For example, rather than + * `{"instanceLimit": "100/request"}`, should be returned as, + * `{"instanceLimitPerRequest": "100"}`, if the client exceeds the number of + * instances that can be created in a single (batch) request. + * + * Generated from protobuf field map metadata = 3; + * @return \Google\Protobuf\Internal\MapField + */ + public function getMetadata() + { + return $this->metadata; + } + + /** + * Additional structured details about this error. + * Keys must match a regular expression of `[a-z][a-zA-Z0-9-_]+` but should + * ideally be lowerCamelCase. Also, they must be limited to 64 characters in + * length. When identifying the current value of an exceeded limit, the units + * should be contained in the key, not the value. For example, rather than + * `{"instanceLimit": "100/request"}`, should be returned as, + * `{"instanceLimitPerRequest": "100"}`, if the client exceeds the number of + * instances that can be created in a single (batch) request. + * + * Generated from protobuf field map metadata = 3; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setMetadata($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->metadata = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Help.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Help.php new file mode 100644 index 000000000000..35ea516f8e15 --- /dev/null +++ b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Help.php @@ -0,0 +1,70 @@ +google.rpc.Help + */ +class Help extends \Google\Protobuf\Internal\Message +{ + /** + * URL(s) pointing to additional information on handling the current error. + * + * Generated from protobuf field repeated .google.rpc.Help.Link links = 1; + */ + private $links; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Rpc\Help\Link[] $links + * URL(s) pointing to additional information on handling the current error. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Rpc\ErrorDetails::initOnce(); + parent::__construct($data); + } + + /** + * URL(s) pointing to additional information on handling the current error. + * + * Generated from protobuf field repeated .google.rpc.Help.Link links = 1; + * @return RepeatedField<\Google\Rpc\Help\Link> + */ + public function getLinks() + { + return $this->links; + } + + /** + * URL(s) pointing to additional information on handling the current error. + * + * Generated from protobuf field repeated .google.rpc.Help.Link links = 1; + * @param \Google\Rpc\Help\Link[] $var + * @return $this + */ + public function setLinks($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Rpc\Help\Link::class); + $this->links = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Help/Link.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Help/Link.php new file mode 100644 index 000000000000..fcfe169359da --- /dev/null +++ b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Help/Link.php @@ -0,0 +1,101 @@ +google.rpc.Help.Link + */ +class Link extends \Google\Protobuf\Internal\Message +{ + /** + * Describes what the link offers. + * + * Generated from protobuf field string description = 1; + */ + protected $description = ''; + /** + * The URL of the link. + * + * Generated from protobuf field string url = 2; + */ + protected $url = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $description + * Describes what the link offers. + * @type string $url + * The URL of the link. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Rpc\ErrorDetails::initOnce(); + parent::__construct($data); + } + + /** + * Describes what the link offers. + * + * Generated from protobuf field string description = 1; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Describes what the link offers. + * + * Generated from protobuf field string description = 1; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * The URL of the link. + * + * Generated from protobuf field string url = 2; + * @return string + */ + public function getUrl() + { + return $this->url; + } + + /** + * The URL of the link. + * + * Generated from protobuf field string url = 2; + * @param string $var + * @return $this + */ + public function setUrl($var) + { + GPBUtil::checkString($var, True); + $this->url = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/LocalizedMessage.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/LocalizedMessage.php new file mode 100644 index 000000000000..37fc07f3de28 --- /dev/null +++ b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/LocalizedMessage.php @@ -0,0 +1,110 @@ +google.rpc.LocalizedMessage + */ +class LocalizedMessage extends \Google\Protobuf\Internal\Message +{ + /** + * The locale used following the specification defined at + * https://www.rfc-editor.org/rfc/bcp/bcp47.txt. + * Examples are: "en-US", "fr-CH", "es-MX" + * + * Generated from protobuf field string locale = 1; + */ + protected $locale = ''; + /** + * The localized error message in the above locale. + * + * Generated from protobuf field string message = 2; + */ + protected $message = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $locale + * The locale used following the specification defined at + * https://www.rfc-editor.org/rfc/bcp/bcp47.txt. + * Examples are: "en-US", "fr-CH", "es-MX" + * @type string $message + * The localized error message in the above locale. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Rpc\ErrorDetails::initOnce(); + parent::__construct($data); + } + + /** + * The locale used following the specification defined at + * https://www.rfc-editor.org/rfc/bcp/bcp47.txt. + * Examples are: "en-US", "fr-CH", "es-MX" + * + * Generated from protobuf field string locale = 1; + * @return string + */ + public function getLocale() + { + return $this->locale; + } + + /** + * The locale used following the specification defined at + * https://www.rfc-editor.org/rfc/bcp/bcp47.txt. + * Examples are: "en-US", "fr-CH", "es-MX" + * + * Generated from protobuf field string locale = 1; + * @param string $var + * @return $this + */ + public function setLocale($var) + { + GPBUtil::checkString($var, True); + $this->locale = $var; + + return $this; + } + + /** + * The localized error message in the above locale. + * + * Generated from protobuf field string message = 2; + * @return string + */ + public function getMessage() + { + return $this->message; + } + + /** + * The localized error message in the above locale. + * + * Generated from protobuf field string message = 2; + * @param string $var + * @return $this + */ + public function setMessage($var) + { + GPBUtil::checkString($var, True); + $this->message = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/PreconditionFailure.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/PreconditionFailure.php new file mode 100644 index 000000000000..4ab7937f2645 --- /dev/null +++ b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/PreconditionFailure.php @@ -0,0 +1,70 @@ +google.rpc.PreconditionFailure + */ +class PreconditionFailure extends \Google\Protobuf\Internal\Message +{ + /** + * Describes all precondition violations. + * + * Generated from protobuf field repeated .google.rpc.PreconditionFailure.Violation violations = 1; + */ + private $violations; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Rpc\PreconditionFailure\Violation[] $violations + * Describes all precondition violations. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Rpc\ErrorDetails::initOnce(); + parent::__construct($data); + } + + /** + * Describes all precondition violations. + * + * Generated from protobuf field repeated .google.rpc.PreconditionFailure.Violation violations = 1; + * @return RepeatedField<\Google\Rpc\PreconditionFailure\Violation> + */ + public function getViolations() + { + return $this->violations; + } + + /** + * Describes all precondition violations. + * + * Generated from protobuf field repeated .google.rpc.PreconditionFailure.Violation violations = 1; + * @param \Google\Rpc\PreconditionFailure\Violation[] $var + * @return $this + */ + public function setViolations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Rpc\PreconditionFailure\Violation::class); + $this->violations = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/PreconditionFailure/Violation.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/PreconditionFailure/Violation.php new file mode 100644 index 000000000000..85aa5b103fca --- /dev/null +++ b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/PreconditionFailure/Violation.php @@ -0,0 +1,159 @@ +google.rpc.PreconditionFailure.Violation + */ +class Violation extends \Google\Protobuf\Internal\Message +{ + /** + * The type of PreconditionFailure. We recommend using a service-specific + * enum type to define the supported precondition violation subjects. For + * example, "TOS" for "Terms of Service violation". + * + * Generated from protobuf field string type = 1; + */ + protected $type = ''; + /** + * The subject, relative to the type, that failed. + * For example, "google.com/cloud" relative to the "TOS" type would indicate + * which terms of service is being referenced. + * + * Generated from protobuf field string subject = 2; + */ + protected $subject = ''; + /** + * A description of how the precondition failed. Developers can use this + * description to understand how to fix the failure. + * For example: "Terms of service not accepted". + * + * Generated from protobuf field string description = 3; + */ + protected $description = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $type + * The type of PreconditionFailure. We recommend using a service-specific + * enum type to define the supported precondition violation subjects. For + * example, "TOS" for "Terms of Service violation". + * @type string $subject + * The subject, relative to the type, that failed. + * For example, "google.com/cloud" relative to the "TOS" type would indicate + * which terms of service is being referenced. + * @type string $description + * A description of how the precondition failed. Developers can use this + * description to understand how to fix the failure. + * For example: "Terms of service not accepted". + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Rpc\ErrorDetails::initOnce(); + parent::__construct($data); + } + + /** + * The type of PreconditionFailure. We recommend using a service-specific + * enum type to define the supported precondition violation subjects. For + * example, "TOS" for "Terms of Service violation". + * + * Generated from protobuf field string type = 1; + * @return string + */ + public function getType() + { + return $this->type; + } + + /** + * The type of PreconditionFailure. We recommend using a service-specific + * enum type to define the supported precondition violation subjects. For + * example, "TOS" for "Terms of Service violation". + * + * Generated from protobuf field string type = 1; + * @param string $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkString($var, True); + $this->type = $var; + + return $this; + } + + /** + * The subject, relative to the type, that failed. + * For example, "google.com/cloud" relative to the "TOS" type would indicate + * which terms of service is being referenced. + * + * Generated from protobuf field string subject = 2; + * @return string + */ + public function getSubject() + { + return $this->subject; + } + + /** + * The subject, relative to the type, that failed. + * For example, "google.com/cloud" relative to the "TOS" type would indicate + * which terms of service is being referenced. + * + * Generated from protobuf field string subject = 2; + * @param string $var + * @return $this + */ + public function setSubject($var) + { + GPBUtil::checkString($var, True); + $this->subject = $var; + + return $this; + } + + /** + * A description of how the precondition failed. Developers can use this + * description to understand how to fix the failure. + * For example: "Terms of service not accepted". + * + * Generated from protobuf field string description = 3; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * A description of how the precondition failed. Developers can use this + * description to understand how to fix the failure. + * For example: "Terms of service not accepted". + * + * Generated from protobuf field string description = 3; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/QuotaFailure.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/QuotaFailure.php new file mode 100644 index 000000000000..92b235c711a2 --- /dev/null +++ b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/QuotaFailure.php @@ -0,0 +1,75 @@ +google.rpc.QuotaFailure + */ +class QuotaFailure extends \Google\Protobuf\Internal\Message +{ + /** + * Describes all quota violations. + * + * Generated from protobuf field repeated .google.rpc.QuotaFailure.Violation violations = 1; + */ + private $violations; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Rpc\QuotaFailure\Violation[] $violations + * Describes all quota violations. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Rpc\ErrorDetails::initOnce(); + parent::__construct($data); + } + + /** + * Describes all quota violations. + * + * Generated from protobuf field repeated .google.rpc.QuotaFailure.Violation violations = 1; + * @return RepeatedField<\Google\Rpc\QuotaFailure\Violation> + */ + public function getViolations() + { + return $this->violations; + } + + /** + * Describes all quota violations. + * + * Generated from protobuf field repeated .google.rpc.QuotaFailure.Violation violations = 1; + * @param \Google\Rpc\QuotaFailure\Violation[] $var + * @return $this + */ + public function setViolations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Rpc\QuotaFailure\Violation::class); + $this->violations = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/QuotaFailure/Violation.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/QuotaFailure/Violation.php new file mode 100644 index 000000000000..e4a1a705c92f --- /dev/null +++ b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/QuotaFailure/Violation.php @@ -0,0 +1,500 @@ +google.rpc.QuotaFailure.Violation + */ +class Violation extends \Google\Protobuf\Internal\Message +{ + /** + * The subject on which the quota check failed. + * For example, "clientip:" or "project:". + * + * Generated from protobuf field string subject = 1; + */ + protected $subject = ''; + /** + * A description of how the quota check failed. Clients can use this + * description to find more about the quota configuration in the service's + * public documentation, or find the relevant quota limit to adjust through + * developer console. + * For example: "Service disabled" or "Daily Limit for read operations + * exceeded". + * + * Generated from protobuf field string description = 2; + */ + protected $description = ''; + /** + * The API Service from which the `QuotaFailure.Violation` orginates. In + * some cases, Quota issues originate from an API Service other than the one + * that was called. In other words, a dependency of the called API Service + * could be the cause of the `QuotaFailure`, and this field would have the + * dependency API service name. + * For example, if the called API is Kubernetes Engine API + * (container.googleapis.com), and a quota violation occurs in the + * Kubernetes Engine API itself, this field would be + * "container.googleapis.com". On the other hand, if the quota violation + * occurs when the Kubernetes Engine API creates VMs in the Compute Engine + * API (compute.googleapis.com), this field would be + * "compute.googleapis.com". + * + * Generated from protobuf field string api_service = 3; + */ + protected $api_service = ''; + /** + * The metric of the violated quota. A quota metric is a named counter to + * measure usage, such as API requests or CPUs. When an activity occurs in a + * service, such as Virtual Machine allocation, one or more quota metrics + * may be affected. + * For example, "compute.googleapis.com/cpus_per_vm_family", + * "storage.googleapis.com/internet_egress_bandwidth". + * + * Generated from protobuf field string quota_metric = 4; + */ + protected $quota_metric = ''; + /** + * The id of the violated quota. Also know as "limit name", this is the + * unique identifier of a quota in the context of an API service. + * For example, "CPUS-PER-VM-FAMILY-per-project-region". + * + * Generated from protobuf field string quota_id = 5; + */ + protected $quota_id = ''; + /** + * The dimensions of the violated quota. Every non-global quota is enforced + * on a set of dimensions. While quota metric defines what to count, the + * dimensions specify for what aspects the counter should be increased. + * For example, the quota "CPUs per region per VM family" enforces a limit + * on the metric "compute.googleapis.com/cpus_per_vm_family" on dimensions + * "region" and "vm_family". And if the violation occurred in region + * "us-central1" and for VM family "n1", the quota_dimensions would be, + * { + * "region": "us-central1", + * "vm_family": "n1", + * } + * When a quota is enforced globally, the quota_dimensions would always be + * empty. + * + * Generated from protobuf field map quota_dimensions = 6; + */ + private $quota_dimensions; + /** + * The enforced quota value at the time of the `QuotaFailure`. + * For example, if the enforced quota value at the time of the + * `QuotaFailure` on the number of CPUs is "10", then the value of this + * field would reflect this quantity. + * + * Generated from protobuf field int64 quota_value = 7; + */ + protected $quota_value = 0; + /** + * The new quota value being rolled out at the time of the violation. At the + * completion of the rollout, this value will be enforced in place of + * quota_value. If no rollout is in progress at the time of the violation, + * this field is not set. + * For example, if at the time of the violation a rollout is in progress + * changing the number of CPUs quota from 10 to 20, 20 would be the value of + * this field. + * + * Generated from protobuf field optional int64 future_quota_value = 8; + */ + protected $future_quota_value = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $subject + * The subject on which the quota check failed. + * For example, "clientip:" or "project:". + * @type string $description + * A description of how the quota check failed. Clients can use this + * description to find more about the quota configuration in the service's + * public documentation, or find the relevant quota limit to adjust through + * developer console. + * For example: "Service disabled" or "Daily Limit for read operations + * exceeded". + * @type string $api_service + * The API Service from which the `QuotaFailure.Violation` orginates. In + * some cases, Quota issues originate from an API Service other than the one + * that was called. In other words, a dependency of the called API Service + * could be the cause of the `QuotaFailure`, and this field would have the + * dependency API service name. + * For example, if the called API is Kubernetes Engine API + * (container.googleapis.com), and a quota violation occurs in the + * Kubernetes Engine API itself, this field would be + * "container.googleapis.com". On the other hand, if the quota violation + * occurs when the Kubernetes Engine API creates VMs in the Compute Engine + * API (compute.googleapis.com), this field would be + * "compute.googleapis.com". + * @type string $quota_metric + * The metric of the violated quota. A quota metric is a named counter to + * measure usage, such as API requests or CPUs. When an activity occurs in a + * service, such as Virtual Machine allocation, one or more quota metrics + * may be affected. + * For example, "compute.googleapis.com/cpus_per_vm_family", + * "storage.googleapis.com/internet_egress_bandwidth". + * @type string $quota_id + * The id of the violated quota. Also know as "limit name", this is the + * unique identifier of a quota in the context of an API service. + * For example, "CPUS-PER-VM-FAMILY-per-project-region". + * @type array|\Google\Protobuf\Internal\MapField $quota_dimensions + * The dimensions of the violated quota. Every non-global quota is enforced + * on a set of dimensions. While quota metric defines what to count, the + * dimensions specify for what aspects the counter should be increased. + * For example, the quota "CPUs per region per VM family" enforces a limit + * on the metric "compute.googleapis.com/cpus_per_vm_family" on dimensions + * "region" and "vm_family". And if the violation occurred in region + * "us-central1" and for VM family "n1", the quota_dimensions would be, + * { + * "region": "us-central1", + * "vm_family": "n1", + * } + * When a quota is enforced globally, the quota_dimensions would always be + * empty. + * @type int|string $quota_value + * The enforced quota value at the time of the `QuotaFailure`. + * For example, if the enforced quota value at the time of the + * `QuotaFailure` on the number of CPUs is "10", then the value of this + * field would reflect this quantity. + * @type int|string $future_quota_value + * The new quota value being rolled out at the time of the violation. At the + * completion of the rollout, this value will be enforced in place of + * quota_value. If no rollout is in progress at the time of the violation, + * this field is not set. + * For example, if at the time of the violation a rollout is in progress + * changing the number of CPUs quota from 10 to 20, 20 would be the value of + * this field. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Rpc\ErrorDetails::initOnce(); + parent::__construct($data); + } + + /** + * The subject on which the quota check failed. + * For example, "clientip:" or "project:". + * + * Generated from protobuf field string subject = 1; + * @return string + */ + public function getSubject() + { + return $this->subject; + } + + /** + * The subject on which the quota check failed. + * For example, "clientip:" or "project:". + * + * Generated from protobuf field string subject = 1; + * @param string $var + * @return $this + */ + public function setSubject($var) + { + GPBUtil::checkString($var, True); + $this->subject = $var; + + return $this; + } + + /** + * A description of how the quota check failed. Clients can use this + * description to find more about the quota configuration in the service's + * public documentation, or find the relevant quota limit to adjust through + * developer console. + * For example: "Service disabled" or "Daily Limit for read operations + * exceeded". + * + * Generated from protobuf field string description = 2; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * A description of how the quota check failed. Clients can use this + * description to find more about the quota configuration in the service's + * public documentation, or find the relevant quota limit to adjust through + * developer console. + * For example: "Service disabled" or "Daily Limit for read operations + * exceeded". + * + * Generated from protobuf field string description = 2; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * The API Service from which the `QuotaFailure.Violation` orginates. In + * some cases, Quota issues originate from an API Service other than the one + * that was called. In other words, a dependency of the called API Service + * could be the cause of the `QuotaFailure`, and this field would have the + * dependency API service name. + * For example, if the called API is Kubernetes Engine API + * (container.googleapis.com), and a quota violation occurs in the + * Kubernetes Engine API itself, this field would be + * "container.googleapis.com". On the other hand, if the quota violation + * occurs when the Kubernetes Engine API creates VMs in the Compute Engine + * API (compute.googleapis.com), this field would be + * "compute.googleapis.com". + * + * Generated from protobuf field string api_service = 3; + * @return string + */ + public function getApiService() + { + return $this->api_service; + } + + /** + * The API Service from which the `QuotaFailure.Violation` orginates. In + * some cases, Quota issues originate from an API Service other than the one + * that was called. In other words, a dependency of the called API Service + * could be the cause of the `QuotaFailure`, and this field would have the + * dependency API service name. + * For example, if the called API is Kubernetes Engine API + * (container.googleapis.com), and a quota violation occurs in the + * Kubernetes Engine API itself, this field would be + * "container.googleapis.com". On the other hand, if the quota violation + * occurs when the Kubernetes Engine API creates VMs in the Compute Engine + * API (compute.googleapis.com), this field would be + * "compute.googleapis.com". + * + * Generated from protobuf field string api_service = 3; + * @param string $var + * @return $this + */ + public function setApiService($var) + { + GPBUtil::checkString($var, True); + $this->api_service = $var; + + return $this; + } + + /** + * The metric of the violated quota. A quota metric is a named counter to + * measure usage, such as API requests or CPUs. When an activity occurs in a + * service, such as Virtual Machine allocation, one or more quota metrics + * may be affected. + * For example, "compute.googleapis.com/cpus_per_vm_family", + * "storage.googleapis.com/internet_egress_bandwidth". + * + * Generated from protobuf field string quota_metric = 4; + * @return string + */ + public function getQuotaMetric() + { + return $this->quota_metric; + } + + /** + * The metric of the violated quota. A quota metric is a named counter to + * measure usage, such as API requests or CPUs. When an activity occurs in a + * service, such as Virtual Machine allocation, one or more quota metrics + * may be affected. + * For example, "compute.googleapis.com/cpus_per_vm_family", + * "storage.googleapis.com/internet_egress_bandwidth". + * + * Generated from protobuf field string quota_metric = 4; + * @param string $var + * @return $this + */ + public function setQuotaMetric($var) + { + GPBUtil::checkString($var, True); + $this->quota_metric = $var; + + return $this; + } + + /** + * The id of the violated quota. Also know as "limit name", this is the + * unique identifier of a quota in the context of an API service. + * For example, "CPUS-PER-VM-FAMILY-per-project-region". + * + * Generated from protobuf field string quota_id = 5; + * @return string + */ + public function getQuotaId() + { + return $this->quota_id; + } + + /** + * The id of the violated quota. Also know as "limit name", this is the + * unique identifier of a quota in the context of an API service. + * For example, "CPUS-PER-VM-FAMILY-per-project-region". + * + * Generated from protobuf field string quota_id = 5; + * @param string $var + * @return $this + */ + public function setQuotaId($var) + { + GPBUtil::checkString($var, True); + $this->quota_id = $var; + + return $this; + } + + /** + * The dimensions of the violated quota. Every non-global quota is enforced + * on a set of dimensions. While quota metric defines what to count, the + * dimensions specify for what aspects the counter should be increased. + * For example, the quota "CPUs per region per VM family" enforces a limit + * on the metric "compute.googleapis.com/cpus_per_vm_family" on dimensions + * "region" and "vm_family". And if the violation occurred in region + * "us-central1" and for VM family "n1", the quota_dimensions would be, + * { + * "region": "us-central1", + * "vm_family": "n1", + * } + * When a quota is enforced globally, the quota_dimensions would always be + * empty. + * + * Generated from protobuf field map quota_dimensions = 6; + * @return \Google\Protobuf\Internal\MapField + */ + public function getQuotaDimensions() + { + return $this->quota_dimensions; + } + + /** + * The dimensions of the violated quota. Every non-global quota is enforced + * on a set of dimensions. While quota metric defines what to count, the + * dimensions specify for what aspects the counter should be increased. + * For example, the quota "CPUs per region per VM family" enforces a limit + * on the metric "compute.googleapis.com/cpus_per_vm_family" on dimensions + * "region" and "vm_family". And if the violation occurred in region + * "us-central1" and for VM family "n1", the quota_dimensions would be, + * { + * "region": "us-central1", + * "vm_family": "n1", + * } + * When a quota is enforced globally, the quota_dimensions would always be + * empty. + * + * Generated from protobuf field map quota_dimensions = 6; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setQuotaDimensions($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->quota_dimensions = $arr; + + return $this; + } + + /** + * The enforced quota value at the time of the `QuotaFailure`. + * For example, if the enforced quota value at the time of the + * `QuotaFailure` on the number of CPUs is "10", then the value of this + * field would reflect this quantity. + * + * Generated from protobuf field int64 quota_value = 7; + * @return int|string + */ + public function getQuotaValue() + { + return $this->quota_value; + } + + /** + * The enforced quota value at the time of the `QuotaFailure`. + * For example, if the enforced quota value at the time of the + * `QuotaFailure` on the number of CPUs is "10", then the value of this + * field would reflect this quantity. + * + * Generated from protobuf field int64 quota_value = 7; + * @param int|string $var + * @return $this + */ + public function setQuotaValue($var) + { + GPBUtil::checkInt64($var); + $this->quota_value = $var; + + return $this; + } + + /** + * The new quota value being rolled out at the time of the violation. At the + * completion of the rollout, this value will be enforced in place of + * quota_value. If no rollout is in progress at the time of the violation, + * this field is not set. + * For example, if at the time of the violation a rollout is in progress + * changing the number of CPUs quota from 10 to 20, 20 would be the value of + * this field. + * + * Generated from protobuf field optional int64 future_quota_value = 8; + * @return int|string + */ + public function getFutureQuotaValue() + { + return isset($this->future_quota_value) ? $this->future_quota_value : 0; + } + + public function hasFutureQuotaValue() + { + return isset($this->future_quota_value); + } + + public function clearFutureQuotaValue() + { + unset($this->future_quota_value); + } + + /** + * The new quota value being rolled out at the time of the violation. At the + * completion of the rollout, this value will be enforced in place of + * quota_value. If no rollout is in progress at the time of the violation, + * this field is not set. + * For example, if at the time of the violation a rollout is in progress + * changing the number of CPUs quota from 10 to 20, 20 would be the value of + * this field. + * + * Generated from protobuf field optional int64 future_quota_value = 8; + * @param int|string $var + * @return $this + */ + public function setFutureQuotaValue($var) + { + GPBUtil::checkInt64($var); + $this->future_quota_value = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/RequestInfo.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/RequestInfo.php new file mode 100644 index 000000000000..04952a12129f --- /dev/null +++ b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/RequestInfo.php @@ -0,0 +1,110 @@ +google.rpc.RequestInfo + */ +class RequestInfo extends \Google\Protobuf\Internal\Message +{ + /** + * An opaque string that should only be interpreted by the service generating + * it. For example, it can be used to identify requests in the service's logs. + * + * Generated from protobuf field string request_id = 1; + */ + protected $request_id = ''; + /** + * Any data that was used to serve this request. For example, an encrypted + * stack trace that can be sent back to the service provider for debugging. + * + * Generated from protobuf field string serving_data = 2; + */ + protected $serving_data = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $request_id + * An opaque string that should only be interpreted by the service generating + * it. For example, it can be used to identify requests in the service's logs. + * @type string $serving_data + * Any data that was used to serve this request. For example, an encrypted + * stack trace that can be sent back to the service provider for debugging. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Rpc\ErrorDetails::initOnce(); + parent::__construct($data); + } + + /** + * An opaque string that should only be interpreted by the service generating + * it. For example, it can be used to identify requests in the service's logs. + * + * Generated from protobuf field string request_id = 1; + * @return string + */ + public function getRequestId() + { + return $this->request_id; + } + + /** + * An opaque string that should only be interpreted by the service generating + * it. For example, it can be used to identify requests in the service's logs. + * + * Generated from protobuf field string request_id = 1; + * @param string $var + * @return $this + */ + public function setRequestId($var) + { + GPBUtil::checkString($var, True); + $this->request_id = $var; + + return $this; + } + + /** + * Any data that was used to serve this request. For example, an encrypted + * stack trace that can be sent back to the service provider for debugging. + * + * Generated from protobuf field string serving_data = 2; + * @return string + */ + public function getServingData() + { + return $this->serving_data; + } + + /** + * Any data that was used to serve this request. For example, an encrypted + * stack trace that can be sent back to the service provider for debugging. + * + * Generated from protobuf field string serving_data = 2; + * @param string $var + * @return $this + */ + public function setServingData($var) + { + GPBUtil::checkString($var, True); + $this->serving_data = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/ResourceInfo.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/ResourceInfo.php new file mode 100644 index 000000000000..223b5cd01471 --- /dev/null +++ b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/ResourceInfo.php @@ -0,0 +1,205 @@ +google.rpc.ResourceInfo + */ +class ResourceInfo extends \Google\Protobuf\Internal\Message +{ + /** + * A name for the type of resource being accessed, e.g. "sql table", + * "cloud storage bucket", "file", "Google calendar"; or the type URL + * of the resource: e.g. "type.googleapis.com/google.pubsub.v1.Topic". + * + * Generated from protobuf field string resource_type = 1; + */ + protected $resource_type = ''; + /** + * The name of the resource being accessed. For example, a shared calendar + * name: "example.com_4fghdhgsrgh\@group.calendar.google.com", if the current + * error is + * [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED]. + * + * Generated from protobuf field string resource_name = 2; + */ + protected $resource_name = ''; + /** + * The owner of the resource (optional). + * For example, "user:" or "project:". + * + * Generated from protobuf field string owner = 3; + */ + protected $owner = ''; + /** + * Describes what error is encountered when accessing this resource. + * For example, updating a cloud project may require the `writer` permission + * on the developer console project. + * + * Generated from protobuf field string description = 4; + */ + protected $description = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $resource_type + * A name for the type of resource being accessed, e.g. "sql table", + * "cloud storage bucket", "file", "Google calendar"; or the type URL + * of the resource: e.g. "type.googleapis.com/google.pubsub.v1.Topic". + * @type string $resource_name + * The name of the resource being accessed. For example, a shared calendar + * name: "example.com_4fghdhgsrgh\@group.calendar.google.com", if the current + * error is + * [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED]. + * @type string $owner + * The owner of the resource (optional). + * For example, "user:" or "project:". + * @type string $description + * Describes what error is encountered when accessing this resource. + * For example, updating a cloud project may require the `writer` permission + * on the developer console project. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Rpc\ErrorDetails::initOnce(); + parent::__construct($data); + } + + /** + * A name for the type of resource being accessed, e.g. "sql table", + * "cloud storage bucket", "file", "Google calendar"; or the type URL + * of the resource: e.g. "type.googleapis.com/google.pubsub.v1.Topic". + * + * Generated from protobuf field string resource_type = 1; + * @return string + */ + public function getResourceType() + { + return $this->resource_type; + } + + /** + * A name for the type of resource being accessed, e.g. "sql table", + * "cloud storage bucket", "file", "Google calendar"; or the type URL + * of the resource: e.g. "type.googleapis.com/google.pubsub.v1.Topic". + * + * Generated from protobuf field string resource_type = 1; + * @param string $var + * @return $this + */ + public function setResourceType($var) + { + GPBUtil::checkString($var, True); + $this->resource_type = $var; + + return $this; + } + + /** + * The name of the resource being accessed. For example, a shared calendar + * name: "example.com_4fghdhgsrgh\@group.calendar.google.com", if the current + * error is + * [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED]. + * + * Generated from protobuf field string resource_name = 2; + * @return string + */ + public function getResourceName() + { + return $this->resource_name; + } + + /** + * The name of the resource being accessed. For example, a shared calendar + * name: "example.com_4fghdhgsrgh\@group.calendar.google.com", if the current + * error is + * [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED]. + * + * Generated from protobuf field string resource_name = 2; + * @param string $var + * @return $this + */ + public function setResourceName($var) + { + GPBUtil::checkString($var, True); + $this->resource_name = $var; + + return $this; + } + + /** + * The owner of the resource (optional). + * For example, "user:" or "project:". + * + * Generated from protobuf field string owner = 3; + * @return string + */ + public function getOwner() + { + return $this->owner; + } + + /** + * The owner of the resource (optional). + * For example, "user:" or "project:". + * + * Generated from protobuf field string owner = 3; + * @param string $var + * @return $this + */ + public function setOwner($var) + { + GPBUtil::checkString($var, True); + $this->owner = $var; + + return $this; + } + + /** + * Describes what error is encountered when accessing this resource. + * For example, updating a cloud project may require the `writer` permission + * on the developer console project. + * + * Generated from protobuf field string description = 4; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Describes what error is encountered when accessing this resource. + * For example, updating a cloud project may require the `writer` permission + * on the developer console project. + * + * Generated from protobuf field string description = 4; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/RetryInfo.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/RetryInfo.php new file mode 100644 index 000000000000..b661f080aa61 --- /dev/null +++ b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/RetryInfo.php @@ -0,0 +1,87 @@ +google.rpc.RetryInfo + */ +class RetryInfo extends \Google\Protobuf\Internal\Message +{ + /** + * Clients should wait at least this long between retrying the same request. + * + * Generated from protobuf field .google.protobuf.Duration retry_delay = 1; + */ + protected $retry_delay = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\Duration $retry_delay + * Clients should wait at least this long between retrying the same request. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Rpc\ErrorDetails::initOnce(); + parent::__construct($data); + } + + /** + * Clients should wait at least this long between retrying the same request. + * + * Generated from protobuf field .google.protobuf.Duration retry_delay = 1; + * @return \Google\Protobuf\Duration|null + */ + public function getRetryDelay() + { + return $this->retry_delay; + } + + public function hasRetryDelay() + { + return isset($this->retry_delay); + } + + public function clearRetryDelay() + { + unset($this->retry_delay); + } + + /** + * Clients should wait at least this long between retrying the same request. + * + * Generated from protobuf field .google.protobuf.Duration retry_delay = 1; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setRetryDelay($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->retry_delay = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Status.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Status.php new file mode 100644 index 000000000000..73d4800c42ab --- /dev/null +++ b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Status.php @@ -0,0 +1,160 @@ +google.rpc.Status + */ +class Status extends \Google\Protobuf\Internal\Message +{ + /** + * The status code, which should be an enum value of + * [google.rpc.Code][google.rpc.Code]. + * + * Generated from protobuf field int32 code = 1; + */ + protected $code = 0; + /** + * A developer-facing error message, which should be in English. Any + * user-facing error message should be localized and sent in the + * [google.rpc.Status.details][google.rpc.Status.details] field, or localized + * by the client. + * + * Generated from protobuf field string message = 2; + */ + protected $message = ''; + /** + * A list of messages that carry the error details. There is a common set of + * message types for APIs to use. + * + * Generated from protobuf field repeated .google.protobuf.Any details = 3; + */ + private $details; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $code + * The status code, which should be an enum value of + * [google.rpc.Code][google.rpc.Code]. + * @type string $message + * A developer-facing error message, which should be in English. Any + * user-facing error message should be localized and sent in the + * [google.rpc.Status.details][google.rpc.Status.details] field, or localized + * by the client. + * @type \Google\Protobuf\Any[] $details + * A list of messages that carry the error details. There is a common set of + * message types for APIs to use. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Rpc\Status::initOnce(); + parent::__construct($data); + } + + /** + * The status code, which should be an enum value of + * [google.rpc.Code][google.rpc.Code]. + * + * Generated from protobuf field int32 code = 1; + * @return int + */ + public function getCode() + { + return $this->code; + } + + /** + * The status code, which should be an enum value of + * [google.rpc.Code][google.rpc.Code]. + * + * Generated from protobuf field int32 code = 1; + * @param int $var + * @return $this + */ + public function setCode($var) + { + GPBUtil::checkInt32($var); + $this->code = $var; + + return $this; + } + + /** + * A developer-facing error message, which should be in English. Any + * user-facing error message should be localized and sent in the + * [google.rpc.Status.details][google.rpc.Status.details] field, or localized + * by the client. + * + * Generated from protobuf field string message = 2; + * @return string + */ + public function getMessage() + { + return $this->message; + } + + /** + * A developer-facing error message, which should be in English. Any + * user-facing error message should be localized and sent in the + * [google.rpc.Status.details][google.rpc.Status.details] field, or localized + * by the client. + * + * Generated from protobuf field string message = 2; + * @param string $var + * @return $this + */ + public function setMessage($var) + { + GPBUtil::checkString($var, True); + $this->message = $var; + + return $this; + } + + /** + * A list of messages that carry the error details. There is a common set of + * message types for APIs to use. + * + * Generated from protobuf field repeated .google.protobuf.Any details = 3; + * @return RepeatedField<\Google\Protobuf\Any> + */ + public function getDetails() + { + return $this->details; + } + + /** + * A list of messages that carry the error details. There is a common set of + * message types for APIs to use. + * + * Generated from protobuf field repeated .google.protobuf.Any details = 3; + * @param \Google\Protobuf\Any[] $var + * @return $this + */ + public function setDetails($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Any::class); + $this->details = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/CalendarPeriod.php b/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/CalendarPeriod.php new file mode 100644 index 000000000000..ab089774437f --- /dev/null +++ b/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/CalendarPeriod.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\xB3\x02\x0A!google/type/calendar_period.proto\x12\x0Bgoogle.type*\x7F\x0A\x0ECalendarPeriod\x12\x1F\x0A\x1BCALENDAR_PERIOD_UNSPECIFIED\x10\x00\x12\x07\x0A\x03DAY\x10\x01\x12\x08\x0A\x04WEEK\x10\x02\x12\x0D\x0A\x09FORTNIGHT\x10\x03\x12\x09\x0A\x05MONTH\x10\x04\x12\x0B\x0A\x07QUARTER\x10\x05\x12\x08\x0A\x04HALF\x10\x06\x12\x08\x0A\x04YEAR\x10\x07Bx\x0A\x0Fcom.google.typeB\x13CalendarPeriodProtoP\x01ZHgoogle.golang.org/genproto/googleapis/type/calendarperiod;calendarperiod\xA2\x02\x03GTPb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Color.php b/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Color.php new file mode 100644 index 000000000000..c7fdd8a9d745 --- /dev/null +++ b/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Color.php @@ -0,0 +1,25 @@ +internalAddGeneratedFile( + "\x0A\xEF\x01\x0A\x17google/type/color.proto\x12\x0Bgoogle.type\"]\x0A\x05Color\x12\x0B\x0A\x03red\x18\x01 \x01(\x02\x12\x0D\x0A\x05green\x18\x02 \x01(\x02\x12\x0C\x0A\x04blue\x18\x03 \x01(\x02\x12*\x0A\x05alpha\x18\x04 \x01(\x0B2\x1B.google.protobuf.FloatValueB`\x0A\x0Fcom.google.typeB\x0AColorProtoP\x01Z6google.golang.org/genproto/googleapis/type/color;color\xF8\x01\x01\xA2\x02\x03GTPb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Date.php b/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Date.php new file mode 100644 index 000000000000..dc7f1aa8e057 --- /dev/null +++ b/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Date.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\xBE\x01\x0A\x16google/type/date.proto\x12\x0Bgoogle.type\"0\x0A\x04Date\x12\x0C\x0A\x04year\x18\x01 \x01(\x05\x12\x0D\x0A\x05month\x18\x02 \x01(\x05\x12\x0B\x0A\x03day\x18\x03 \x01(\x05B]\x0A\x0Fcom.google.typeB\x09DateProtoP\x01Z4google.golang.org/genproto/googleapis/type/date;date\xF8\x01\x01\xA2\x02\x03GTPb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Datetime.php b/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Datetime.php new file mode 100644 index 000000000000..20ae4747068d --- /dev/null +++ b/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Datetime.php @@ -0,0 +1,25 @@ +internalAddGeneratedFile( + "\x0A\xA8\x03\x0A\x1Agoogle/type/datetime.proto\x12\x0Bgoogle.type\"\xE0\x01\x0A\x08DateTime\x12\x0C\x0A\x04year\x18\x01 \x01(\x05\x12\x0D\x0A\x05month\x18\x02 \x01(\x05\x12\x0B\x0A\x03day\x18\x03 \x01(\x05\x12\x0D\x0A\x05hours\x18\x04 \x01(\x05\x12\x0F\x0A\x07minutes\x18\x05 \x01(\x05\x12\x0F\x0A\x07seconds\x18\x06 \x01(\x05\x12\x0D\x0A\x05nanos\x18\x07 \x01(\x05\x12/\x0A\x0Autc_offset\x18\x08 \x01(\x0B2\x19.google.protobuf.DurationH\x00\x12*\x0A\x09time_zone\x18\x09 \x01(\x0B2\x15.google.type.TimeZoneH\x00B\x0D\x0A\x0Btime_offset\"'\x0A\x08TimeZone\x12\x0A\x0A\x02id\x18\x01 \x01(\x09\x12\x0F\x0A\x07version\x18\x02 \x01(\x09Bi\x0A\x0Fcom.google.typeB\x0DDateTimeProtoP\x01ZinternalAddGeneratedFile( + "\x0A\xA4\x02\x0A\x1Bgoogle/type/dayofweek.proto\x12\x0Bgoogle.type*\x84\x01\x0A\x09DayOfWeek\x12\x1B\x0A\x17DAY_OF_WEEK_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06MONDAY\x10\x01\x12\x0B\x0A\x07TUESDAY\x10\x02\x12\x0D\x0A\x09WEDNESDAY\x10\x03\x12\x0C\x0A\x08THURSDAY\x10\x04\x12\x0A\x0A\x06FRIDAY\x10\x05\x12\x0C\x0A\x08SATURDAY\x10\x06\x12\x0A\x0A\x06SUNDAY\x10\x07Bi\x0A\x0Fcom.google.typeB\x0EDayOfWeekProtoP\x01Z>google.golang.org/genproto/googleapis/type/dayofweek;dayofweek\xA2\x02\x03GTPb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Decimal.php b/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Decimal.php new file mode 100644 index 000000000000..de218c971097 --- /dev/null +++ b/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Decimal.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\xB2\x01\x0A\x19google/type/decimal.proto\x12\x0Bgoogle.type\"\x18\x0A\x07Decimal\x12\x0D\x0A\x05value\x18\x01 \x01(\x09Bf\x0A\x0Fcom.google.typeB\x0CDecimalProtoP\x01Z:google.golang.org/genproto/googleapis/type/decimal;decimal\xF8\x01\x01\xA2\x02\x03GTPb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Expr.php b/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Expr.php new file mode 100644 index 000000000000..3c97d0abd6e7 --- /dev/null +++ b/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Expr.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\xDB\x01\x0A\x16google/type/expr.proto\x12\x0Bgoogle.type\"P\x0A\x04Expr\x12\x12\x0A\x0Aexpression\x18\x01 \x01(\x09\x12\x0D\x0A\x05title\x18\x02 \x01(\x09\x12\x13\x0A\x0Bdescription\x18\x03 \x01(\x09\x12\x10\x0A\x08location\x18\x04 \x01(\x09BZ\x0A\x0Fcom.google.typeB\x09ExprProtoP\x01Z4google.golang.org/genproto/googleapis/type/expr;expr\xA2\x02\x03GTPb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Fraction.php b/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Fraction.php new file mode 100644 index 000000000000..425f834380fd --- /dev/null +++ b/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Fraction.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\xCD\x01\x0A\x1Agoogle/type/fraction.proto\x12\x0Bgoogle.type\"2\x0A\x08Fraction\x12\x11\x0A\x09numerator\x18\x01 \x01(\x03\x12\x13\x0A\x0Bdenominator\x18\x02 \x01(\x03Bf\x0A\x0Fcom.google.typeB\x0DFractionProtoP\x01ZinternalAddGeneratedFile( + "\x0A\x86\x02\x0A\x1Agoogle/type/interval.proto\x12\x0Bgoogle.type\"h\x0A\x08Interval\x12.\x0A\x0Astart_time\x18\x01 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12,\x0A\x08end_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.TimestampBi\x0A\x0Fcom.google.typeB\x0DIntervalProtoP\x01ZinternalAddGeneratedFile( + "\x0A\xC3\x01\x0A\x18google/type/latlng.proto\x12\x0Bgoogle.type\"-\x0A\x06LatLng\x12\x10\x0A\x08latitude\x18\x01 \x01(\x01\x12\x11\x0A\x09longitude\x18\x02 \x01(\x01Bc\x0A\x0Fcom.google.typeB\x0BLatLngProtoP\x01Z8google.golang.org/genproto/googleapis/type/latlng;latlng\xF8\x01\x01\xA2\x02\x03GTPb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/LocalizedText.php b/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/LocalizedText.php new file mode 100644 index 000000000000..73911d79e0d8 --- /dev/null +++ b/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/LocalizedText.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\xE9\x01\x0A google/type/localized_text.proto\x12\x0Bgoogle.type\"4\x0A\x0DLocalizedText\x12\x0C\x0A\x04text\x18\x01 \x01(\x09\x12\x15\x0A\x0Dlanguage_code\x18\x02 \x01(\x09Bz\x0A\x0Fcom.google.typeB\x12LocalizedTextProtoP\x01ZHgoogle.golang.org/genproto/googleapis/type/localized_text;localized_text\xF8\x01\x01\xA2\x02\x03GTPb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Money.php b/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Money.php new file mode 100644 index 000000000000..7b8b187ad95b --- /dev/null +++ b/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Money.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\xCE\x01\x0A\x17google/type/money.proto\x12\x0Bgoogle.type\"<\x0A\x05Money\x12\x15\x0A\x0Dcurrency_code\x18\x01 \x01(\x09\x12\x0D\x0A\x05units\x18\x02 \x01(\x03\x12\x0D\x0A\x05nanos\x18\x03 \x01(\x05B`\x0A\x0Fcom.google.typeB\x0AMoneyProtoP\x01Z6google.golang.org/genproto/googleapis/type/money;money\xF8\x01\x01\xA2\x02\x03GTPb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Month.php b/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Month.php new file mode 100644 index 000000000000..b634e51780aa --- /dev/null +++ b/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Month.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\xC0\x02\x0A\x17google/type/month.proto\x12\x0Bgoogle.type*\xB0\x01\x0A\x05Month\x12\x15\x0A\x11MONTH_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07JANUARY\x10\x01\x12\x0C\x0A\x08FEBRUARY\x10\x02\x12\x09\x0A\x05MARCH\x10\x03\x12\x09\x0A\x05APRIL\x10\x04\x12\x07\x0A\x03MAY\x10\x05\x12\x08\x0A\x04JUNE\x10\x06\x12\x08\x0A\x04JULY\x10\x07\x12\x0A\x0A\x06AUGUST\x10\x08\x12\x0D\x0A\x09SEPTEMBER\x10\x09\x12\x0B\x0A\x07OCTOBER\x10\x0A\x12\x0C\x0A\x08NOVEMBER\x10\x0B\x12\x0C\x0A\x08DECEMBER\x10\x0CB]\x0A\x0Fcom.google.typeB\x0AMonthProtoP\x01Z6google.golang.org/genproto/googleapis/type/month;month\xA2\x02\x03GTPb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/PhoneNumber.php b/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/PhoneNumber.php new file mode 100644 index 000000000000..8434f51ba148 --- /dev/null +++ b/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/PhoneNumber.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\xD9\x02\x0A\x1Egoogle/type/phone_number.proto\x12\x0Bgoogle.type\"\xAB\x01\x0A\x0BPhoneNumber\x12\x15\x0A\x0Be164_number\x18\x01 \x01(\x09H\x00\x128\x0A\x0Ashort_code\x18\x02 \x01(\x0B2\".google.type.PhoneNumber.ShortCodeH\x00\x12\x11\x0A\x09extension\x18\x03 \x01(\x09\x1A0\x0A\x09ShortCode\x12\x13\x0A\x0Bregion_code\x18\x01 \x01(\x09\x12\x0E\x0A\x06number\x18\x02 \x01(\x09B\x06\x0A\x04kindBt\x0A\x0Fcom.google.typeB\x10PhoneNumberProtoP\x01ZDgoogle.golang.org/genproto/googleapis/type/phone_number;phone_number\xF8\x01\x01\xA2\x02\x03GTPb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/PostalAddress.php b/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/PostalAddress.php new file mode 100644 index 000000000000..c914ed0a3cdf --- /dev/null +++ b/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/PostalAddress.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\xB1\x03\x0A google/type/postal_address.proto\x12\x0Bgoogle.type\"\xFD\x01\x0A\x0DPostalAddress\x12\x10\x0A\x08revision\x18\x01 \x01(\x05\x12\x13\x0A\x0Bregion_code\x18\x02 \x01(\x09\x12\x15\x0A\x0Dlanguage_code\x18\x03 \x01(\x09\x12\x13\x0A\x0Bpostal_code\x18\x04 \x01(\x09\x12\x14\x0A\x0Csorting_code\x18\x05 \x01(\x09\x12\x1B\x0A\x13administrative_area\x18\x06 \x01(\x09\x12\x10\x0A\x08locality\x18\x07 \x01(\x09\x12\x13\x0A\x0Bsublocality\x18\x08 \x01(\x09\x12\x15\x0A\x0Daddress_lines\x18\x09 \x03(\x09\x12\x12\x0A\x0Arecipients\x18\x0A \x03(\x09\x12\x14\x0A\x0Corganization\x18\x0B \x01(\x09Bx\x0A\x0Fcom.google.typeB\x12PostalAddressProtoP\x01ZFgoogle.golang.org/genproto/googleapis/type/postaladdress;postaladdress\xF8\x01\x01\xA2\x02\x03GTPb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Quaternion.php b/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Quaternion.php new file mode 100644 index 000000000000..8db65b49e6f2 --- /dev/null +++ b/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Quaternion.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\xDE\x01\x0A\x1Cgoogle/type/quaternion.proto\x12\x0Bgoogle.type\"8\x0A\x0AQuaternion\x12\x09\x0A\x01x\x18\x01 \x01(\x01\x12\x09\x0A\x01y\x18\x02 \x01(\x01\x12\x09\x0A\x01z\x18\x03 \x01(\x01\x12\x09\x0A\x01w\x18\x04 \x01(\x01Bo\x0A\x0Fcom.google.typeB\x0FQuaternionProtoP\x01Z@google.golang.org/genproto/googleapis/type/quaternion;quaternion\xF8\x01\x01\xA2\x02\x03GTPb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Timeofday.php b/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Timeofday.php new file mode 100644 index 000000000000..8e2a973fdb1d --- /dev/null +++ b/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Timeofday.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\xED\x01\x0A\x1Bgoogle/type/timeofday.proto\x12\x0Bgoogle.type\"K\x0A\x09TimeOfDay\x12\x0D\x0A\x05hours\x18\x01 \x01(\x05\x12\x0F\x0A\x07minutes\x18\x02 \x01(\x05\x12\x0F\x0A\x07seconds\x18\x03 \x01(\x05\x12\x0D\x0A\x05nanos\x18\x04 \x01(\x05Bl\x0A\x0Fcom.google.typeB\x0ETimeOfDayProtoP\x01Z>google.golang.org/genproto/googleapis/type/timeofday;timeofday\xF8\x01\x01\xA2\x02\x03GTPb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/CalendarPeriod.php b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/CalendarPeriod.php new file mode 100644 index 000000000000..e4807c07959b --- /dev/null +++ b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/CalendarPeriod.php @@ -0,0 +1,102 @@ +google.type.CalendarPeriod + */ +class CalendarPeriod +{ + /** + * Undefined period, raises an error. + * + * Generated from protobuf enum CALENDAR_PERIOD_UNSPECIFIED = 0; + */ + const CALENDAR_PERIOD_UNSPECIFIED = 0; + /** + * A day. + * + * Generated from protobuf enum DAY = 1; + */ + const DAY = 1; + /** + * A week. Weeks begin on Monday, following + * [ISO 8601](https://en.wikipedia.org/wiki/ISO_week_date). + * + * Generated from protobuf enum WEEK = 2; + */ + const WEEK = 2; + /** + * A fortnight. The first calendar fortnight of the year begins at the start + * of week 1 according to + * [ISO 8601](https://en.wikipedia.org/wiki/ISO_week_date). + * + * Generated from protobuf enum FORTNIGHT = 3; + */ + const FORTNIGHT = 3; + /** + * A month. + * + * Generated from protobuf enum MONTH = 4; + */ + const MONTH = 4; + /** + * A quarter. Quarters start on dates 1-Jan, 1-Apr, 1-Jul, and 1-Oct of each + * year. + * + * Generated from protobuf enum QUARTER = 5; + */ + const QUARTER = 5; + /** + * A half-year. Half-years start on dates 1-Jan and 1-Jul. + * + * Generated from protobuf enum HALF = 6; + */ + const HALF = 6; + /** + * A year. + * + * Generated from protobuf enum YEAR = 7; + */ + const YEAR = 7; + + private static $valueToName = [ + self::CALENDAR_PERIOD_UNSPECIFIED => 'CALENDAR_PERIOD_UNSPECIFIED', + self::DAY => 'DAY', + self::WEEK => 'WEEK', + self::FORTNIGHT => 'FORTNIGHT', + self::MONTH => 'MONTH', + self::QUARTER => 'QUARTER', + self::HALF => 'HALF', + self::YEAR => 'YEAR', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Color.php b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Color.php new file mode 100644 index 000000000000..68cd805dbc3b --- /dev/null +++ b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Color.php @@ -0,0 +1,360 @@ +google.type.Color + */ +class Color extends \Google\Protobuf\Internal\Message +{ + /** + * The amount of red in the color as a value in the interval [0, 1]. + * + * Generated from protobuf field float red = 1; + */ + protected $red = 0.0; + /** + * The amount of green in the color as a value in the interval [0, 1]. + * + * Generated from protobuf field float green = 2; + */ + protected $green = 0.0; + /** + * The amount of blue in the color as a value in the interval [0, 1]. + * + * Generated from protobuf field float blue = 3; + */ + protected $blue = 0.0; + /** + * The fraction of this color that should be applied to the pixel. That is, + * the final pixel color is defined by the equation: + * `pixel color = alpha * (this color) + (1.0 - alpha) * (background color)` + * This means that a value of 1.0 corresponds to a solid color, whereas + * a value of 0.0 corresponds to a completely transparent color. This + * uses a wrapper message rather than a simple float scalar so that it is + * possible to distinguish between a default value and the value being unset. + * If omitted, this color object is rendered as a solid color + * (as if the alpha value had been explicitly given a value of 1.0). + * + * Generated from protobuf field .google.protobuf.FloatValue alpha = 4; + */ + protected $alpha = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type float $red + * The amount of red in the color as a value in the interval [0, 1]. + * @type float $green + * The amount of green in the color as a value in the interval [0, 1]. + * @type float $blue + * The amount of blue in the color as a value in the interval [0, 1]. + * @type \Google\Protobuf\FloatValue $alpha + * The fraction of this color that should be applied to the pixel. That is, + * the final pixel color is defined by the equation: + * `pixel color = alpha * (this color) + (1.0 - alpha) * (background color)` + * This means that a value of 1.0 corresponds to a solid color, whereas + * a value of 0.0 corresponds to a completely transparent color. This + * uses a wrapper message rather than a simple float scalar so that it is + * possible to distinguish between a default value and the value being unset. + * If omitted, this color object is rendered as a solid color + * (as if the alpha value had been explicitly given a value of 1.0). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Type\Color::initOnce(); + parent::__construct($data); + } + + /** + * The amount of red in the color as a value in the interval [0, 1]. + * + * Generated from protobuf field float red = 1; + * @return float + */ + public function getRed() + { + return $this->red; + } + + /** + * The amount of red in the color as a value in the interval [0, 1]. + * + * Generated from protobuf field float red = 1; + * @param float $var + * @return $this + */ + public function setRed($var) + { + GPBUtil::checkFloat($var); + $this->red = $var; + + return $this; + } + + /** + * The amount of green in the color as a value in the interval [0, 1]. + * + * Generated from protobuf field float green = 2; + * @return float + */ + public function getGreen() + { + return $this->green; + } + + /** + * The amount of green in the color as a value in the interval [0, 1]. + * + * Generated from protobuf field float green = 2; + * @param float $var + * @return $this + */ + public function setGreen($var) + { + GPBUtil::checkFloat($var); + $this->green = $var; + + return $this; + } + + /** + * The amount of blue in the color as a value in the interval [0, 1]. + * + * Generated from protobuf field float blue = 3; + * @return float + */ + public function getBlue() + { + return $this->blue; + } + + /** + * The amount of blue in the color as a value in the interval [0, 1]. + * + * Generated from protobuf field float blue = 3; + * @param float $var + * @return $this + */ + public function setBlue($var) + { + GPBUtil::checkFloat($var); + $this->blue = $var; + + return $this; + } + + /** + * The fraction of this color that should be applied to the pixel. That is, + * the final pixel color is defined by the equation: + * `pixel color = alpha * (this color) + (1.0 - alpha) * (background color)` + * This means that a value of 1.0 corresponds to a solid color, whereas + * a value of 0.0 corresponds to a completely transparent color. This + * uses a wrapper message rather than a simple float scalar so that it is + * possible to distinguish between a default value and the value being unset. + * If omitted, this color object is rendered as a solid color + * (as if the alpha value had been explicitly given a value of 1.0). + * + * Generated from protobuf field .google.protobuf.FloatValue alpha = 4; + * @return \Google\Protobuf\FloatValue|null + */ + public function getAlpha() + { + return $this->alpha; + } + + public function hasAlpha() + { + return isset($this->alpha); + } + + public function clearAlpha() + { + unset($this->alpha); + } + + /** + * Returns the unboxed value from getAlpha() + + * The fraction of this color that should be applied to the pixel. That is, + * the final pixel color is defined by the equation: + * `pixel color = alpha * (this color) + (1.0 - alpha) * (background color)` + * This means that a value of 1.0 corresponds to a solid color, whereas + * a value of 0.0 corresponds to a completely transparent color. This + * uses a wrapper message rather than a simple float scalar so that it is + * possible to distinguish between a default value and the value being unset. + * If omitted, this color object is rendered as a solid color + * (as if the alpha value had been explicitly given a value of 1.0). + * + * Generated from protobuf field .google.protobuf.FloatValue alpha = 4; + * @return float|null + */ + public function getAlphaUnwrapped() + { + return $this->readWrapperValue("alpha"); + } + + /** + * The fraction of this color that should be applied to the pixel. That is, + * the final pixel color is defined by the equation: + * `pixel color = alpha * (this color) + (1.0 - alpha) * (background color)` + * This means that a value of 1.0 corresponds to a solid color, whereas + * a value of 0.0 corresponds to a completely transparent color. This + * uses a wrapper message rather than a simple float scalar so that it is + * possible to distinguish between a default value and the value being unset. + * If omitted, this color object is rendered as a solid color + * (as if the alpha value had been explicitly given a value of 1.0). + * + * Generated from protobuf field .google.protobuf.FloatValue alpha = 4; + * @param \Google\Protobuf\FloatValue $var + * @return $this + */ + public function setAlpha($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FloatValue::class); + $this->alpha = $var; + + return $this; + } + + /** + * Sets the field by wrapping a primitive type in a Google\Protobuf\FloatValue object. + + * The fraction of this color that should be applied to the pixel. That is, + * the final pixel color is defined by the equation: + * `pixel color = alpha * (this color) + (1.0 - alpha) * (background color)` + * This means that a value of 1.0 corresponds to a solid color, whereas + * a value of 0.0 corresponds to a completely transparent color. This + * uses a wrapper message rather than a simple float scalar so that it is + * possible to distinguish between a default value and the value being unset. + * If omitted, this color object is rendered as a solid color + * (as if the alpha value had been explicitly given a value of 1.0). + * + * Generated from protobuf field .google.protobuf.FloatValue alpha = 4; + * @param float|null $var + * @return $this + */ + public function setAlphaUnwrapped($var) + { + $this->writeWrapperValue("alpha", $var); + return $this;} + +} + diff --git a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Date.php b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Date.php new file mode 100644 index 000000000000..a2fb0c1d337b --- /dev/null +++ b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Date.php @@ -0,0 +1,161 @@ +google.type.Date + */ +class Date extends \Google\Protobuf\Internal\Message +{ + /** + * Year of the date. Must be from 1 to 9999, or 0 to specify a date without + * a year. + * + * Generated from protobuf field int32 year = 1; + */ + protected $year = 0; + /** + * Month of a year. Must be from 1 to 12, or 0 to specify a year without a + * month and day. + * + * Generated from protobuf field int32 month = 2; + */ + protected $month = 0; + /** + * Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 + * to specify a year by itself or a year and month where the day isn't + * significant. + * + * Generated from protobuf field int32 day = 3; + */ + protected $day = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $year + * Year of the date. Must be from 1 to 9999, or 0 to specify a date without + * a year. + * @type int $month + * Month of a year. Must be from 1 to 12, or 0 to specify a year without a + * month and day. + * @type int $day + * Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 + * to specify a year by itself or a year and month where the day isn't + * significant. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Type\Date::initOnce(); + parent::__construct($data); + } + + /** + * Year of the date. Must be from 1 to 9999, or 0 to specify a date without + * a year. + * + * Generated from protobuf field int32 year = 1; + * @return int + */ + public function getYear() + { + return $this->year; + } + + /** + * Year of the date. Must be from 1 to 9999, or 0 to specify a date without + * a year. + * + * Generated from protobuf field int32 year = 1; + * @param int $var + * @return $this + */ + public function setYear($var) + { + GPBUtil::checkInt32($var); + $this->year = $var; + + return $this; + } + + /** + * Month of a year. Must be from 1 to 12, or 0 to specify a year without a + * month and day. + * + * Generated from protobuf field int32 month = 2; + * @return int + */ + public function getMonth() + { + return $this->month; + } + + /** + * Month of a year. Must be from 1 to 12, or 0 to specify a year without a + * month and day. + * + * Generated from protobuf field int32 month = 2; + * @param int $var + * @return $this + */ + public function setMonth($var) + { + GPBUtil::checkInt32($var); + $this->month = $var; + + return $this; + } + + /** + * Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 + * to specify a year by itself or a year and month where the day isn't + * significant. + * + * Generated from protobuf field int32 day = 3; + * @return int + */ + public function getDay() + { + return $this->day; + } + + /** + * Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 + * to specify a year by itself or a year and month where the day isn't + * significant. + * + * Generated from protobuf field int32 day = 3; + * @param int $var + * @return $this + */ + public function setDay($var) + { + GPBUtil::checkInt32($var); + $this->day = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/DateTime.php b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/DateTime.php new file mode 100644 index 000000000000..26eb06f4e743 --- /dev/null +++ b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/DateTime.php @@ -0,0 +1,393 @@ +google.type.DateTime + */ +class DateTime extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Year of date. Must be from 1 to 9999, or 0 if specifying a + * datetime without a year. + * + * Generated from protobuf field int32 year = 1; + */ + protected $year = 0; + /** + * Required. Month of year. Must be from 1 to 12. + * + * Generated from protobuf field int32 month = 2; + */ + protected $month = 0; + /** + * Required. Day of month. Must be from 1 to 31 and valid for the year and + * month. + * + * Generated from protobuf field int32 day = 3; + */ + protected $day = 0; + /** + * Required. Hours of day in 24 hour format. Should be from 0 to 23. An API + * may choose to allow the value "24:00:00" for scenarios like business + * closing time. + * + * Generated from protobuf field int32 hours = 4; + */ + protected $hours = 0; + /** + * Required. Minutes of hour of day. Must be from 0 to 59. + * + * Generated from protobuf field int32 minutes = 5; + */ + protected $minutes = 0; + /** + * Required. Seconds of minutes of the time. Must normally be from 0 to 59. An + * API may allow the value 60 if it allows leap-seconds. + * + * Generated from protobuf field int32 seconds = 6; + */ + protected $seconds = 0; + /** + * Required. Fractions of seconds in nanoseconds. Must be from 0 to + * 999,999,999. + * + * Generated from protobuf field int32 nanos = 7; + */ + protected $nanos = 0; + protected $time_offset; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $year + * Optional. Year of date. Must be from 1 to 9999, or 0 if specifying a + * datetime without a year. + * @type int $month + * Required. Month of year. Must be from 1 to 12. + * @type int $day + * Required. Day of month. Must be from 1 to 31 and valid for the year and + * month. + * @type int $hours + * Required. Hours of day in 24 hour format. Should be from 0 to 23. An API + * may choose to allow the value "24:00:00" for scenarios like business + * closing time. + * @type int $minutes + * Required. Minutes of hour of day. Must be from 0 to 59. + * @type int $seconds + * Required. Seconds of minutes of the time. Must normally be from 0 to 59. An + * API may allow the value 60 if it allows leap-seconds. + * @type int $nanos + * Required. Fractions of seconds in nanoseconds. Must be from 0 to + * 999,999,999. + * @type \Google\Protobuf\Duration $utc_offset + * UTC offset. Must be whole seconds, between -18 hours and +18 hours. + * For example, a UTC offset of -4:00 would be represented as + * { seconds: -14400 }. + * @type \Google\Type\TimeZone $time_zone + * Time zone. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Type\Datetime::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Year of date. Must be from 1 to 9999, or 0 if specifying a + * datetime without a year. + * + * Generated from protobuf field int32 year = 1; + * @return int + */ + public function getYear() + { + return $this->year; + } + + /** + * Optional. Year of date. Must be from 1 to 9999, or 0 if specifying a + * datetime without a year. + * + * Generated from protobuf field int32 year = 1; + * @param int $var + * @return $this + */ + public function setYear($var) + { + GPBUtil::checkInt32($var); + $this->year = $var; + + return $this; + } + + /** + * Required. Month of year. Must be from 1 to 12. + * + * Generated from protobuf field int32 month = 2; + * @return int + */ + public function getMonth() + { + return $this->month; + } + + /** + * Required. Month of year. Must be from 1 to 12. + * + * Generated from protobuf field int32 month = 2; + * @param int $var + * @return $this + */ + public function setMonth($var) + { + GPBUtil::checkInt32($var); + $this->month = $var; + + return $this; + } + + /** + * Required. Day of month. Must be from 1 to 31 and valid for the year and + * month. + * + * Generated from protobuf field int32 day = 3; + * @return int + */ + public function getDay() + { + return $this->day; + } + + /** + * Required. Day of month. Must be from 1 to 31 and valid for the year and + * month. + * + * Generated from protobuf field int32 day = 3; + * @param int $var + * @return $this + */ + public function setDay($var) + { + GPBUtil::checkInt32($var); + $this->day = $var; + + return $this; + } + + /** + * Required. Hours of day in 24 hour format. Should be from 0 to 23. An API + * may choose to allow the value "24:00:00" for scenarios like business + * closing time. + * + * Generated from protobuf field int32 hours = 4; + * @return int + */ + public function getHours() + { + return $this->hours; + } + + /** + * Required. Hours of day in 24 hour format. Should be from 0 to 23. An API + * may choose to allow the value "24:00:00" for scenarios like business + * closing time. + * + * Generated from protobuf field int32 hours = 4; + * @param int $var + * @return $this + */ + public function setHours($var) + { + GPBUtil::checkInt32($var); + $this->hours = $var; + + return $this; + } + + /** + * Required. Minutes of hour of day. Must be from 0 to 59. + * + * Generated from protobuf field int32 minutes = 5; + * @return int + */ + public function getMinutes() + { + return $this->minutes; + } + + /** + * Required. Minutes of hour of day. Must be from 0 to 59. + * + * Generated from protobuf field int32 minutes = 5; + * @param int $var + * @return $this + */ + public function setMinutes($var) + { + GPBUtil::checkInt32($var); + $this->minutes = $var; + + return $this; + } + + /** + * Required. Seconds of minutes of the time. Must normally be from 0 to 59. An + * API may allow the value 60 if it allows leap-seconds. + * + * Generated from protobuf field int32 seconds = 6; + * @return int + */ + public function getSeconds() + { + return $this->seconds; + } + + /** + * Required. Seconds of minutes of the time. Must normally be from 0 to 59. An + * API may allow the value 60 if it allows leap-seconds. + * + * Generated from protobuf field int32 seconds = 6; + * @param int $var + * @return $this + */ + public function setSeconds($var) + { + GPBUtil::checkInt32($var); + $this->seconds = $var; + + return $this; + } + + /** + * Required. Fractions of seconds in nanoseconds. Must be from 0 to + * 999,999,999. + * + * Generated from protobuf field int32 nanos = 7; + * @return int + */ + public function getNanos() + { + return $this->nanos; + } + + /** + * Required. Fractions of seconds in nanoseconds. Must be from 0 to + * 999,999,999. + * + * Generated from protobuf field int32 nanos = 7; + * @param int $var + * @return $this + */ + public function setNanos($var) + { + GPBUtil::checkInt32($var); + $this->nanos = $var; + + return $this; + } + + /** + * UTC offset. Must be whole seconds, between -18 hours and +18 hours. + * For example, a UTC offset of -4:00 would be represented as + * { seconds: -14400 }. + * + * Generated from protobuf field .google.protobuf.Duration utc_offset = 8; + * @return \Google\Protobuf\Duration|null + */ + public function getUtcOffset() + { + return $this->readOneof(8); + } + + public function hasUtcOffset() + { + return $this->hasOneof(8); + } + + /** + * UTC offset. Must be whole seconds, between -18 hours and +18 hours. + * For example, a UTC offset of -4:00 would be represented as + * { seconds: -14400 }. + * + * Generated from protobuf field .google.protobuf.Duration utc_offset = 8; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setUtcOffset($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->writeOneof(8, $var); + + return $this; + } + + /** + * Time zone. + * + * Generated from protobuf field .google.type.TimeZone time_zone = 9; + * @return \Google\Type\TimeZone|null + */ + public function getTimeZone() + { + return $this->readOneof(9); + } + + public function hasTimeZone() + { + return $this->hasOneof(9); + } + + /** + * Time zone. + * + * Generated from protobuf field .google.type.TimeZone time_zone = 9; + * @param \Google\Type\TimeZone $var + * @return $this + */ + public function setTimeZone($var) + { + GPBUtil::checkMessage($var, \Google\Type\TimeZone::class); + $this->writeOneof(9, $var); + + return $this; + } + + /** + * @return string + */ + public function getTimeOffset() + { + return $this->whichOneof("time_offset"); + } + +} + diff --git a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/DayOfWeek.php b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/DayOfWeek.php new file mode 100644 index 000000000000..56219ffe10be --- /dev/null +++ b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/DayOfWeek.php @@ -0,0 +1,96 @@ +google.type.DayOfWeek + */ +class DayOfWeek +{ + /** + * The day of the week is unspecified. + * + * Generated from protobuf enum DAY_OF_WEEK_UNSPECIFIED = 0; + */ + const DAY_OF_WEEK_UNSPECIFIED = 0; + /** + * Monday + * + * Generated from protobuf enum MONDAY = 1; + */ + const MONDAY = 1; + /** + * Tuesday + * + * Generated from protobuf enum TUESDAY = 2; + */ + const TUESDAY = 2; + /** + * Wednesday + * + * Generated from protobuf enum WEDNESDAY = 3; + */ + const WEDNESDAY = 3; + /** + * Thursday + * + * Generated from protobuf enum THURSDAY = 4; + */ + const THURSDAY = 4; + /** + * Friday + * + * Generated from protobuf enum FRIDAY = 5; + */ + const FRIDAY = 5; + /** + * Saturday + * + * Generated from protobuf enum SATURDAY = 6; + */ + const SATURDAY = 6; + /** + * Sunday + * + * Generated from protobuf enum SUNDAY = 7; + */ + const SUNDAY = 7; + + private static $valueToName = [ + self::DAY_OF_WEEK_UNSPECIFIED => 'DAY_OF_WEEK_UNSPECIFIED', + self::MONDAY => 'MONDAY', + self::TUESDAY => 'TUESDAY', + self::WEDNESDAY => 'WEDNESDAY', + self::THURSDAY => 'THURSDAY', + self::FRIDAY => 'FRIDAY', + self::SATURDAY => 'SATURDAY', + self::SUNDAY => 'SUNDAY', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Decimal.php b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Decimal.php new file mode 100644 index 000000000000..eb5c1780de8a --- /dev/null +++ b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Decimal.php @@ -0,0 +1,244 @@ +google.type.Decimal + */ +class Decimal extends \Google\Protobuf\Internal\Message +{ + /** + * The decimal value, as a string. + * The string representation consists of an optional sign, `+` (`U+002B`) + * or `-` (`U+002D`), followed by a sequence of zero or more decimal digits + * ("the integer"), optionally followed by a fraction, optionally followed + * by an exponent. + * The fraction consists of a decimal point followed by zero or more decimal + * digits. The string must contain at least one digit in either the integer + * or the fraction. The number formed by the sign, the integer and the + * fraction is referred to as the significand. + * The exponent consists of the character `e` (`U+0065`) or `E` (`U+0045`) + * followed by one or more decimal digits. + * Services **should** normalize decimal values before storing them by: + * - Removing an explicitly-provided `+` sign (`+2.5` -> `2.5`). + * - Replacing a zero-length integer value with `0` (`.5` -> `0.5`). + * - Coercing the exponent character to lower-case (`2.5E8` -> `2.5e8`). + * - Removing an explicitly-provided zero exponent (`2.5e0` -> `2.5`). + * Services **may** perform additional normalization based on its own needs + * and the internal decimal implementation selected, such as shifting the + * decimal point and exponent value together (example: `2.5e-1` <-> `0.25`). + * Additionally, services **may** preserve trailing zeroes in the fraction + * to indicate increased precision, but are not required to do so. + * Note that only the `.` character is supported to divide the integer + * and the fraction; `,` **should not** be supported regardless of locale. + * Additionally, thousand separators **should not** be supported. If a + * service does support them, values **must** be normalized. + * The ENBF grammar is: + * DecimalString = + * [Sign] Significand [Exponent]; + * Sign = '+' | '-'; + * Significand = + * Digits ['.'] [Digits] | [Digits] '.' Digits; + * Exponent = ('e' | 'E') [Sign] Digits; + * Digits = { '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' }; + * Services **should** clearly document the range of supported values, the + * maximum supported precision (total number of digits), and, if applicable, + * the scale (number of digits after the decimal point), as well as how it + * behaves when receiving out-of-bounds values. + * Services **may** choose to accept values passed as input even when the + * value has a higher precision or scale than the service supports, and + * **should** round the value to fit the supported scale. Alternatively, the + * service **may** error with `400 Bad Request` (`INVALID_ARGUMENT` in gRPC) + * if precision would be lost. + * Services **should** error with `400 Bad Request` (`INVALID_ARGUMENT` in + * gRPC) if the service receives a value outside of the supported range. + * + * Generated from protobuf field string value = 1; + */ + protected $value = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $value + * The decimal value, as a string. + * The string representation consists of an optional sign, `+` (`U+002B`) + * or `-` (`U+002D`), followed by a sequence of zero or more decimal digits + * ("the integer"), optionally followed by a fraction, optionally followed + * by an exponent. + * The fraction consists of a decimal point followed by zero or more decimal + * digits. The string must contain at least one digit in either the integer + * or the fraction. The number formed by the sign, the integer and the + * fraction is referred to as the significand. + * The exponent consists of the character `e` (`U+0065`) or `E` (`U+0045`) + * followed by one or more decimal digits. + * Services **should** normalize decimal values before storing them by: + * - Removing an explicitly-provided `+` sign (`+2.5` -> `2.5`). + * - Replacing a zero-length integer value with `0` (`.5` -> `0.5`). + * - Coercing the exponent character to lower-case (`2.5E8` -> `2.5e8`). + * - Removing an explicitly-provided zero exponent (`2.5e0` -> `2.5`). + * Services **may** perform additional normalization based on its own needs + * and the internal decimal implementation selected, such as shifting the + * decimal point and exponent value together (example: `2.5e-1` <-> `0.25`). + * Additionally, services **may** preserve trailing zeroes in the fraction + * to indicate increased precision, but are not required to do so. + * Note that only the `.` character is supported to divide the integer + * and the fraction; `,` **should not** be supported regardless of locale. + * Additionally, thousand separators **should not** be supported. If a + * service does support them, values **must** be normalized. + * The ENBF grammar is: + * DecimalString = + * [Sign] Significand [Exponent]; + * Sign = '+' | '-'; + * Significand = + * Digits ['.'] [Digits] | [Digits] '.' Digits; + * Exponent = ('e' | 'E') [Sign] Digits; + * Digits = { '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' }; + * Services **should** clearly document the range of supported values, the + * maximum supported precision (total number of digits), and, if applicable, + * the scale (number of digits after the decimal point), as well as how it + * behaves when receiving out-of-bounds values. + * Services **may** choose to accept values passed as input even when the + * value has a higher precision or scale than the service supports, and + * **should** round the value to fit the supported scale. Alternatively, the + * service **may** error with `400 Bad Request` (`INVALID_ARGUMENT` in gRPC) + * if precision would be lost. + * Services **should** error with `400 Bad Request` (`INVALID_ARGUMENT` in + * gRPC) if the service receives a value outside of the supported range. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Type\Decimal::initOnce(); + parent::__construct($data); + } + + /** + * The decimal value, as a string. + * The string representation consists of an optional sign, `+` (`U+002B`) + * or `-` (`U+002D`), followed by a sequence of zero or more decimal digits + * ("the integer"), optionally followed by a fraction, optionally followed + * by an exponent. + * The fraction consists of a decimal point followed by zero or more decimal + * digits. The string must contain at least one digit in either the integer + * or the fraction. The number formed by the sign, the integer and the + * fraction is referred to as the significand. + * The exponent consists of the character `e` (`U+0065`) or `E` (`U+0045`) + * followed by one or more decimal digits. + * Services **should** normalize decimal values before storing them by: + * - Removing an explicitly-provided `+` sign (`+2.5` -> `2.5`). + * - Replacing a zero-length integer value with `0` (`.5` -> `0.5`). + * - Coercing the exponent character to lower-case (`2.5E8` -> `2.5e8`). + * - Removing an explicitly-provided zero exponent (`2.5e0` -> `2.5`). + * Services **may** perform additional normalization based on its own needs + * and the internal decimal implementation selected, such as shifting the + * decimal point and exponent value together (example: `2.5e-1` <-> `0.25`). + * Additionally, services **may** preserve trailing zeroes in the fraction + * to indicate increased precision, but are not required to do so. + * Note that only the `.` character is supported to divide the integer + * and the fraction; `,` **should not** be supported regardless of locale. + * Additionally, thousand separators **should not** be supported. If a + * service does support them, values **must** be normalized. + * The ENBF grammar is: + * DecimalString = + * [Sign] Significand [Exponent]; + * Sign = '+' | '-'; + * Significand = + * Digits ['.'] [Digits] | [Digits] '.' Digits; + * Exponent = ('e' | 'E') [Sign] Digits; + * Digits = { '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' }; + * Services **should** clearly document the range of supported values, the + * maximum supported precision (total number of digits), and, if applicable, + * the scale (number of digits after the decimal point), as well as how it + * behaves when receiving out-of-bounds values. + * Services **may** choose to accept values passed as input even when the + * value has a higher precision or scale than the service supports, and + * **should** round the value to fit the supported scale. Alternatively, the + * service **may** error with `400 Bad Request` (`INVALID_ARGUMENT` in gRPC) + * if precision would be lost. + * Services **should** error with `400 Bad Request` (`INVALID_ARGUMENT` in + * gRPC) if the service receives a value outside of the supported range. + * + * Generated from protobuf field string value = 1; + * @return string + */ + public function getValue() + { + return $this->value; + } + + /** + * The decimal value, as a string. + * The string representation consists of an optional sign, `+` (`U+002B`) + * or `-` (`U+002D`), followed by a sequence of zero or more decimal digits + * ("the integer"), optionally followed by a fraction, optionally followed + * by an exponent. + * The fraction consists of a decimal point followed by zero or more decimal + * digits. The string must contain at least one digit in either the integer + * or the fraction. The number formed by the sign, the integer and the + * fraction is referred to as the significand. + * The exponent consists of the character `e` (`U+0065`) or `E` (`U+0045`) + * followed by one or more decimal digits. + * Services **should** normalize decimal values before storing them by: + * - Removing an explicitly-provided `+` sign (`+2.5` -> `2.5`). + * - Replacing a zero-length integer value with `0` (`.5` -> `0.5`). + * - Coercing the exponent character to lower-case (`2.5E8` -> `2.5e8`). + * - Removing an explicitly-provided zero exponent (`2.5e0` -> `2.5`). + * Services **may** perform additional normalization based on its own needs + * and the internal decimal implementation selected, such as shifting the + * decimal point and exponent value together (example: `2.5e-1` <-> `0.25`). + * Additionally, services **may** preserve trailing zeroes in the fraction + * to indicate increased precision, but are not required to do so. + * Note that only the `.` character is supported to divide the integer + * and the fraction; `,` **should not** be supported regardless of locale. + * Additionally, thousand separators **should not** be supported. If a + * service does support them, values **must** be normalized. + * The ENBF grammar is: + * DecimalString = + * [Sign] Significand [Exponent]; + * Sign = '+' | '-'; + * Significand = + * Digits ['.'] [Digits] | [Digits] '.' Digits; + * Exponent = ('e' | 'E') [Sign] Digits; + * Digits = { '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' }; + * Services **should** clearly document the range of supported values, the + * maximum supported precision (total number of digits), and, if applicable, + * the scale (number of digits after the decimal point), as well as how it + * behaves when receiving out-of-bounds values. + * Services **may** choose to accept values passed as input even when the + * value has a higher precision or scale than the service supports, and + * **should** round the value to fit the supported scale. Alternatively, the + * service **may** error with `400 Bad Request` (`INVALID_ARGUMENT` in gRPC) + * if precision would be lost. + * Services **should** error with `400 Bad Request` (`INVALID_ARGUMENT` in + * gRPC) if the service receives a value outside of the supported range. + * + * Generated from protobuf field string value = 1; + * @param string $var + * @return $this + */ + public function setValue($var) + { + GPBUtil::checkString($var, True); + $this->value = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Expr.php b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Expr.php new file mode 100644 index 000000000000..036c5cf70d7d --- /dev/null +++ b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Expr.php @@ -0,0 +1,210 @@ +google.type.Expr + */ +class Expr extends \Google\Protobuf\Internal\Message +{ + /** + * Textual representation of an expression in Common Expression Language + * syntax. + * + * Generated from protobuf field string expression = 1; + */ + protected $expression = ''; + /** + * Optional. Title for the expression, i.e. a short string describing + * its purpose. This can be used e.g. in UIs which allow to enter the + * expression. + * + * Generated from protobuf field string title = 2; + */ + protected $title = ''; + /** + * Optional. Description of the expression. This is a longer text which + * describes the expression, e.g. when hovered over it in a UI. + * + * Generated from protobuf field string description = 3; + */ + protected $description = ''; + /** + * Optional. String indicating the location of the expression for error + * reporting, e.g. a file name and a position in the file. + * + * Generated from protobuf field string location = 4; + */ + protected $location = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $expression + * Textual representation of an expression in Common Expression Language + * syntax. + * @type string $title + * Optional. Title for the expression, i.e. a short string describing + * its purpose. This can be used e.g. in UIs which allow to enter the + * expression. + * @type string $description + * Optional. Description of the expression. This is a longer text which + * describes the expression, e.g. when hovered over it in a UI. + * @type string $location + * Optional. String indicating the location of the expression for error + * reporting, e.g. a file name and a position in the file. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Type\Expr::initOnce(); + parent::__construct($data); + } + + /** + * Textual representation of an expression in Common Expression Language + * syntax. + * + * Generated from protobuf field string expression = 1; + * @return string + */ + public function getExpression() + { + return $this->expression; + } + + /** + * Textual representation of an expression in Common Expression Language + * syntax. + * + * Generated from protobuf field string expression = 1; + * @param string $var + * @return $this + */ + public function setExpression($var) + { + GPBUtil::checkString($var, True); + $this->expression = $var; + + return $this; + } + + /** + * Optional. Title for the expression, i.e. a short string describing + * its purpose. This can be used e.g. in UIs which allow to enter the + * expression. + * + * Generated from protobuf field string title = 2; + * @return string + */ + public function getTitle() + { + return $this->title; + } + + /** + * Optional. Title for the expression, i.e. a short string describing + * its purpose. This can be used e.g. in UIs which allow to enter the + * expression. + * + * Generated from protobuf field string title = 2; + * @param string $var + * @return $this + */ + public function setTitle($var) + { + GPBUtil::checkString($var, True); + $this->title = $var; + + return $this; + } + + /** + * Optional. Description of the expression. This is a longer text which + * describes the expression, e.g. when hovered over it in a UI. + * + * Generated from protobuf field string description = 3; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Optional. Description of the expression. This is a longer text which + * describes the expression, e.g. when hovered over it in a UI. + * + * Generated from protobuf field string description = 3; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * Optional. String indicating the location of the expression for error + * reporting, e.g. a file name and a position in the file. + * + * Generated from protobuf field string location = 4; + * @return string + */ + public function getLocation() + { + return $this->location; + } + + /** + * Optional. String indicating the location of the expression for error + * reporting, e.g. a file name and a position in the file. + * + * Generated from protobuf field string location = 4; + * @param string $var + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkString($var, True); + $this->location = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Fraction.php b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Fraction.php new file mode 100644 index 000000000000..02557cab0470 --- /dev/null +++ b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Fraction.php @@ -0,0 +1,105 @@ +google.type.Fraction + */ +class Fraction extends \Google\Protobuf\Internal\Message +{ + /** + * The numerator in the fraction, e.g. 2 in 2/3. + * + * Generated from protobuf field int64 numerator = 1; + */ + protected $numerator = 0; + /** + * The value by which the numerator is divided, e.g. 3 in 2/3. Must be + * positive. + * + * Generated from protobuf field int64 denominator = 2; + */ + protected $denominator = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $numerator + * The numerator in the fraction, e.g. 2 in 2/3. + * @type int|string $denominator + * The value by which the numerator is divided, e.g. 3 in 2/3. Must be + * positive. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Type\Fraction::initOnce(); + parent::__construct($data); + } + + /** + * The numerator in the fraction, e.g. 2 in 2/3. + * + * Generated from protobuf field int64 numerator = 1; + * @return int|string + */ + public function getNumerator() + { + return $this->numerator; + } + + /** + * The numerator in the fraction, e.g. 2 in 2/3. + * + * Generated from protobuf field int64 numerator = 1; + * @param int|string $var + * @return $this + */ + public function setNumerator($var) + { + GPBUtil::checkInt64($var); + $this->numerator = $var; + + return $this; + } + + /** + * The value by which the numerator is divided, e.g. 3 in 2/3. Must be + * positive. + * + * Generated from protobuf field int64 denominator = 2; + * @return int|string + */ + public function getDenominator() + { + return $this->denominator; + } + + /** + * The value by which the numerator is divided, e.g. 3 in 2/3. Must be + * positive. + * + * Generated from protobuf field int64 denominator = 2; + * @param int|string $var + * @return $this + */ + public function setDenominator($var) + { + GPBUtil::checkInt64($var); + $this->denominator = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Interval.php b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Interval.php new file mode 100644 index 000000000000..e6cfa8578c98 --- /dev/null +++ b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Interval.php @@ -0,0 +1,141 @@ +google.type.Interval + */ +class Interval extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Inclusive start of the interval. + * If specified, a Timestamp matching this interval will have to be the same + * or after the start. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 1; + */ + protected $start_time = null; + /** + * Optional. Exclusive end of the interval. + * If specified, a Timestamp matching this interval will have to be before the + * end. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 2; + */ + protected $end_time = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\Timestamp $start_time + * Optional. Inclusive start of the interval. + * If specified, a Timestamp matching this interval will have to be the same + * or after the start. + * @type \Google\Protobuf\Timestamp $end_time + * Optional. Exclusive end of the interval. + * If specified, a Timestamp matching this interval will have to be before the + * end. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Type\Interval::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Inclusive start of the interval. + * If specified, a Timestamp matching this interval will have to be the same + * or after the start. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 1; + * @return \Google\Protobuf\Timestamp|null + */ + public function getStartTime() + { + return $this->start_time; + } + + public function hasStartTime() + { + return isset($this->start_time); + } + + public function clearStartTime() + { + unset($this->start_time); + } + + /** + * Optional. Inclusive start of the interval. + * If specified, a Timestamp matching this interval will have to be the same + * or after the start. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 1; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setStartTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->start_time = $var; + + return $this; + } + + /** + * Optional. Exclusive end of the interval. + * If specified, a Timestamp matching this interval will have to be before the + * end. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 2; + * @return \Google\Protobuf\Timestamp|null + */ + public function getEndTime() + { + return $this->end_time; + } + + public function hasEndTime() + { + return isset($this->end_time); + } + + public function clearEndTime() + { + unset($this->end_time); + } + + /** + * Optional. Exclusive end of the interval. + * If specified, a Timestamp matching this interval will have to be before the + * end. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 2; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setEndTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->end_time = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/LatLng.php b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/LatLng.php new file mode 100644 index 000000000000..0d32887832b4 --- /dev/null +++ b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/LatLng.php @@ -0,0 +1,105 @@ +WGS84 + * standard. Values must be within normalized ranges. + * + * Generated from protobuf message google.type.LatLng + */ +class LatLng extends \Google\Protobuf\Internal\Message +{ + /** + * The latitude in degrees. It must be in the range [-90.0, +90.0]. + * + * Generated from protobuf field double latitude = 1; + */ + protected $latitude = 0.0; + /** + * The longitude in degrees. It must be in the range [-180.0, +180.0]. + * + * Generated from protobuf field double longitude = 2; + */ + protected $longitude = 0.0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type float $latitude + * The latitude in degrees. It must be in the range [-90.0, +90.0]. + * @type float $longitude + * The longitude in degrees. It must be in the range [-180.0, +180.0]. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Type\Latlng::initOnce(); + parent::__construct($data); + } + + /** + * The latitude in degrees. It must be in the range [-90.0, +90.0]. + * + * Generated from protobuf field double latitude = 1; + * @return float + */ + public function getLatitude() + { + return $this->latitude; + } + + /** + * The latitude in degrees. It must be in the range [-90.0, +90.0]. + * + * Generated from protobuf field double latitude = 1; + * @param float $var + * @return $this + */ + public function setLatitude($var) + { + GPBUtil::checkDouble($var); + $this->latitude = $var; + + return $this; + } + + /** + * The longitude in degrees. It must be in the range [-180.0, +180.0]. + * + * Generated from protobuf field double longitude = 2; + * @return float + */ + public function getLongitude() + { + return $this->longitude; + } + + /** + * The longitude in degrees. It must be in the range [-180.0, +180.0]. + * + * Generated from protobuf field double longitude = 2; + * @param float $var + * @return $this + */ + public function setLongitude($var) + { + GPBUtil::checkDouble($var); + $this->longitude = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/LocalizedText.php b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/LocalizedText.php new file mode 100644 index 000000000000..93d8df3e876d --- /dev/null +++ b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/LocalizedText.php @@ -0,0 +1,109 @@ +google.type.LocalizedText + */ +class LocalizedText extends \Google\Protobuf\Internal\Message +{ + /** + * Localized string in the language corresponding to `language_code' below. + * + * Generated from protobuf field string text = 1; + */ + protected $text = ''; + /** + * The text's BCP-47 language code, such as "en-US" or "sr-Latn". + * For more information, see + * http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. + * + * Generated from protobuf field string language_code = 2; + */ + protected $language_code = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $text + * Localized string in the language corresponding to `language_code' below. + * @type string $language_code + * The text's BCP-47 language code, such as "en-US" or "sr-Latn". + * For more information, see + * http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Type\LocalizedText::initOnce(); + parent::__construct($data); + } + + /** + * Localized string in the language corresponding to `language_code' below. + * + * Generated from protobuf field string text = 1; + * @return string + */ + public function getText() + { + return $this->text; + } + + /** + * Localized string in the language corresponding to `language_code' below. + * + * Generated from protobuf field string text = 1; + * @param string $var + * @return $this + */ + public function setText($var) + { + GPBUtil::checkString($var, True); + $this->text = $var; + + return $this; + } + + /** + * The text's BCP-47 language code, such as "en-US" or "sr-Latn". + * For more information, see + * http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. + * + * Generated from protobuf field string language_code = 2; + * @return string + */ + public function getLanguageCode() + { + return $this->language_code; + } + + /** + * The text's BCP-47 language code, such as "en-US" or "sr-Latn". + * For more information, see + * http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. + * + * Generated from protobuf field string language_code = 2; + * @param string $var + * @return $this + */ + public function setLanguageCode($var) + { + GPBUtil::checkString($var, True); + $this->language_code = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Money.php b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Money.php new file mode 100644 index 000000000000..47e3f3acdd9a --- /dev/null +++ b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Money.php @@ -0,0 +1,159 @@ +google.type.Money + */ +class Money extends \Google\Protobuf\Internal\Message +{ + /** + * The three-letter currency code defined in ISO 4217. + * + * Generated from protobuf field string currency_code = 1; + */ + protected $currency_code = ''; + /** + * The whole units of the amount. + * For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar. + * + * Generated from protobuf field int64 units = 2; + */ + protected $units = 0; + /** + * Number of nano (10^-9) units of the amount. + * The value must be between -999,999,999 and +999,999,999 inclusive. + * If `units` is positive, `nanos` must be positive or zero. + * If `units` is zero, `nanos` can be positive, zero, or negative. + * If `units` is negative, `nanos` must be negative or zero. + * For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000. + * + * Generated from protobuf field int32 nanos = 3; + */ + protected $nanos = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $currency_code + * The three-letter currency code defined in ISO 4217. + * @type int|string $units + * The whole units of the amount. + * For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar. + * @type int $nanos + * Number of nano (10^-9) units of the amount. + * The value must be between -999,999,999 and +999,999,999 inclusive. + * If `units` is positive, `nanos` must be positive or zero. + * If `units` is zero, `nanos` can be positive, zero, or negative. + * If `units` is negative, `nanos` must be negative or zero. + * For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Type\Money::initOnce(); + parent::__construct($data); + } + + /** + * The three-letter currency code defined in ISO 4217. + * + * Generated from protobuf field string currency_code = 1; + * @return string + */ + public function getCurrencyCode() + { + return $this->currency_code; + } + + /** + * The three-letter currency code defined in ISO 4217. + * + * Generated from protobuf field string currency_code = 1; + * @param string $var + * @return $this + */ + public function setCurrencyCode($var) + { + GPBUtil::checkString($var, True); + $this->currency_code = $var; + + return $this; + } + + /** + * The whole units of the amount. + * For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar. + * + * Generated from protobuf field int64 units = 2; + * @return int|string + */ + public function getUnits() + { + return $this->units; + } + + /** + * The whole units of the amount. + * For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar. + * + * Generated from protobuf field int64 units = 2; + * @param int|string $var + * @return $this + */ + public function setUnits($var) + { + GPBUtil::checkInt64($var); + $this->units = $var; + + return $this; + } + + /** + * Number of nano (10^-9) units of the amount. + * The value must be between -999,999,999 and +999,999,999 inclusive. + * If `units` is positive, `nanos` must be positive or zero. + * If `units` is zero, `nanos` can be positive, zero, or negative. + * If `units` is negative, `nanos` must be negative or zero. + * For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000. + * + * Generated from protobuf field int32 nanos = 3; + * @return int + */ + public function getNanos() + { + return $this->nanos; + } + + /** + * Number of nano (10^-9) units of the amount. + * The value must be between -999,999,999 and +999,999,999 inclusive. + * If `units` is positive, `nanos` must be positive or zero. + * If `units` is zero, `nanos` can be positive, zero, or negative. + * If `units` is negative, `nanos` must be negative or zero. + * For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000. + * + * Generated from protobuf field int32 nanos = 3; + * @param int $var + * @return $this + */ + public function setNanos($var) + { + GPBUtil::checkInt32($var); + $this->nanos = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Month.php b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Month.php new file mode 100644 index 000000000000..473d62ed3c1c --- /dev/null +++ b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Month.php @@ -0,0 +1,131 @@ +google.type.Month + */ +class Month +{ + /** + * The unspecified month. + * + * Generated from protobuf enum MONTH_UNSPECIFIED = 0; + */ + const MONTH_UNSPECIFIED = 0; + /** + * The month of January. + * + * Generated from protobuf enum JANUARY = 1; + */ + const JANUARY = 1; + /** + * The month of February. + * + * Generated from protobuf enum FEBRUARY = 2; + */ + const FEBRUARY = 2; + /** + * The month of March. + * + * Generated from protobuf enum MARCH = 3; + */ + const MARCH = 3; + /** + * The month of April. + * + * Generated from protobuf enum APRIL = 4; + */ + const APRIL = 4; + /** + * The month of May. + * + * Generated from protobuf enum MAY = 5; + */ + const MAY = 5; + /** + * The month of June. + * + * Generated from protobuf enum JUNE = 6; + */ + const JUNE = 6; + /** + * The month of July. + * + * Generated from protobuf enum JULY = 7; + */ + const JULY = 7; + /** + * The month of August. + * + * Generated from protobuf enum AUGUST = 8; + */ + const AUGUST = 8; + /** + * The month of September. + * + * Generated from protobuf enum SEPTEMBER = 9; + */ + const SEPTEMBER = 9; + /** + * The month of October. + * + * Generated from protobuf enum OCTOBER = 10; + */ + const OCTOBER = 10; + /** + * The month of November. + * + * Generated from protobuf enum NOVEMBER = 11; + */ + const NOVEMBER = 11; + /** + * The month of December. + * + * Generated from protobuf enum DECEMBER = 12; + */ + const DECEMBER = 12; + + private static $valueToName = [ + self::MONTH_UNSPECIFIED => 'MONTH_UNSPECIFIED', + self::JANUARY => 'JANUARY', + self::FEBRUARY => 'FEBRUARY', + self::MARCH => 'MARCH', + self::APRIL => 'APRIL', + self::MAY => 'MAY', + self::JUNE => 'JUNE', + self::JULY => 'JULY', + self::AUGUST => 'AUGUST', + self::SEPTEMBER => 'SEPTEMBER', + self::OCTOBER => 'OCTOBER', + self::NOVEMBER => 'NOVEMBER', + self::DECEMBER => 'DECEMBER', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/PhoneNumber.php b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/PhoneNumber.php new file mode 100644 index 000000000000..3fbba6370a47 --- /dev/null +++ b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/PhoneNumber.php @@ -0,0 +1,230 @@ +google.type.PhoneNumber + */ +class PhoneNumber extends \Google\Protobuf\Internal\Message +{ + /** + * The phone number's extension. The extension is not standardized in ITU + * recommendations, except for being defined as a series of numbers with a + * maximum length of 40 digits. Other than digits, some other dialing + * characters such as ',' (indicating a wait) or '#' may be stored here. + * Note that no regions currently use extensions with short codes, so this + * field is normally only set in conjunction with an E.164 number. It is held + * separately from the E.164 number to allow for short code extensions in the + * future. + * + * Generated from protobuf field string extension = 3; + */ + protected $extension = ''; + protected $kind; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $e164_number + * The phone number, represented as a leading plus sign ('+'), followed by a + * phone number that uses a relaxed ITU E.164 format consisting of the + * country calling code (1 to 3 digits) and the subscriber number, with no + * additional spaces or formatting, e.g.: + * - correct: "+15552220123" + * - incorrect: "+1 (555) 222-01234 x123". + * The ITU E.164 format limits the latter to 12 digits, but in practice not + * all countries respect that, so we relax that restriction here. + * National-only numbers are not allowed. + * References: + * - https://www.itu.int/rec/T-REC-E.164-201011-I + * - https://en.wikipedia.org/wiki/E.164. + * - https://en.wikipedia.org/wiki/List_of_country_calling_codes + * @type \Google\Type\PhoneNumber\ShortCode $short_code + * A short code. + * Reference(s): + * - https://en.wikipedia.org/wiki/Short_code + * @type string $extension + * The phone number's extension. The extension is not standardized in ITU + * recommendations, except for being defined as a series of numbers with a + * maximum length of 40 digits. Other than digits, some other dialing + * characters such as ',' (indicating a wait) or '#' may be stored here. + * Note that no regions currently use extensions with short codes, so this + * field is normally only set in conjunction with an E.164 number. It is held + * separately from the E.164 number to allow for short code extensions in the + * future. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Type\PhoneNumber::initOnce(); + parent::__construct($data); + } + + /** + * The phone number, represented as a leading plus sign ('+'), followed by a + * phone number that uses a relaxed ITU E.164 format consisting of the + * country calling code (1 to 3 digits) and the subscriber number, with no + * additional spaces or formatting, e.g.: + * - correct: "+15552220123" + * - incorrect: "+1 (555) 222-01234 x123". + * The ITU E.164 format limits the latter to 12 digits, but in practice not + * all countries respect that, so we relax that restriction here. + * National-only numbers are not allowed. + * References: + * - https://www.itu.int/rec/T-REC-E.164-201011-I + * - https://en.wikipedia.org/wiki/E.164. + * - https://en.wikipedia.org/wiki/List_of_country_calling_codes + * + * Generated from protobuf field string e164_number = 1; + * @return string + */ + public function getE164Number() + { + return $this->readOneof(1); + } + + public function hasE164Number() + { + return $this->hasOneof(1); + } + + /** + * The phone number, represented as a leading plus sign ('+'), followed by a + * phone number that uses a relaxed ITU E.164 format consisting of the + * country calling code (1 to 3 digits) and the subscriber number, with no + * additional spaces or formatting, e.g.: + * - correct: "+15552220123" + * - incorrect: "+1 (555) 222-01234 x123". + * The ITU E.164 format limits the latter to 12 digits, but in practice not + * all countries respect that, so we relax that restriction here. + * National-only numbers are not allowed. + * References: + * - https://www.itu.int/rec/T-REC-E.164-201011-I + * - https://en.wikipedia.org/wiki/E.164. + * - https://en.wikipedia.org/wiki/List_of_country_calling_codes + * + * Generated from protobuf field string e164_number = 1; + * @param string $var + * @return $this + */ + public function setE164Number($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * A short code. + * Reference(s): + * - https://en.wikipedia.org/wiki/Short_code + * + * Generated from protobuf field .google.type.PhoneNumber.ShortCode short_code = 2; + * @return \Google\Type\PhoneNumber\ShortCode|null + */ + public function getShortCode() + { + return $this->readOneof(2); + } + + public function hasShortCode() + { + return $this->hasOneof(2); + } + + /** + * A short code. + * Reference(s): + * - https://en.wikipedia.org/wiki/Short_code + * + * Generated from protobuf field .google.type.PhoneNumber.ShortCode short_code = 2; + * @param \Google\Type\PhoneNumber\ShortCode $var + * @return $this + */ + public function setShortCode($var) + { + GPBUtil::checkMessage($var, \Google\Type\PhoneNumber\ShortCode::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * The phone number's extension. The extension is not standardized in ITU + * recommendations, except for being defined as a series of numbers with a + * maximum length of 40 digits. Other than digits, some other dialing + * characters such as ',' (indicating a wait) or '#' may be stored here. + * Note that no regions currently use extensions with short codes, so this + * field is normally only set in conjunction with an E.164 number. It is held + * separately from the E.164 number to allow for short code extensions in the + * future. + * + * Generated from protobuf field string extension = 3; + * @return string + */ + public function getExtension() + { + return $this->extension; + } + + /** + * The phone number's extension. The extension is not standardized in ITU + * recommendations, except for being defined as a series of numbers with a + * maximum length of 40 digits. Other than digits, some other dialing + * characters such as ',' (indicating a wait) or '#' may be stored here. + * Note that no regions currently use extensions with short codes, so this + * field is normally only set in conjunction with an E.164 number. It is held + * separately from the E.164 number to allow for short code extensions in the + * future. + * + * Generated from protobuf field string extension = 3; + * @param string $var + * @return $this + */ + public function setExtension($var) + { + GPBUtil::checkString($var, True); + $this->extension = $var; + + return $this; + } + + /** + * @return string + */ + public function getKind() + { + return $this->whichOneof("kind"); + } + +} + diff --git a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/PhoneNumber/ShortCode.php b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/PhoneNumber/ShortCode.php new file mode 100644 index 000000000000..2f69623b3d30 --- /dev/null +++ b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/PhoneNumber/ShortCode.php @@ -0,0 +1,124 @@ +google.type.PhoneNumber.ShortCode + */ +class ShortCode extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The BCP-47 region code of the location where calls to this + * short code can be made, such as "US" and "BB". + * Reference(s): + * - http://www.unicode.org/reports/tr35/#unicode_region_subtag + * + * Generated from protobuf field string region_code = 1; + */ + protected $region_code = ''; + /** + * Required. The short code digits, without a leading plus ('+') or country + * calling code, e.g. "611". + * + * Generated from protobuf field string number = 2; + */ + protected $number = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $region_code + * Required. The BCP-47 region code of the location where calls to this + * short code can be made, such as "US" and "BB". + * Reference(s): + * - http://www.unicode.org/reports/tr35/#unicode_region_subtag + * @type string $number + * Required. The short code digits, without a leading plus ('+') or country + * calling code, e.g. "611". + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Type\PhoneNumber::initOnce(); + parent::__construct($data); + } + + /** + * Required. The BCP-47 region code of the location where calls to this + * short code can be made, such as "US" and "BB". + * Reference(s): + * - http://www.unicode.org/reports/tr35/#unicode_region_subtag + * + * Generated from protobuf field string region_code = 1; + * @return string + */ + public function getRegionCode() + { + return $this->region_code; + } + + /** + * Required. The BCP-47 region code of the location where calls to this + * short code can be made, such as "US" and "BB". + * Reference(s): + * - http://www.unicode.org/reports/tr35/#unicode_region_subtag + * + * Generated from protobuf field string region_code = 1; + * @param string $var + * @return $this + */ + public function setRegionCode($var) + { + GPBUtil::checkString($var, True); + $this->region_code = $var; + + return $this; + } + + /** + * Required. The short code digits, without a leading plus ('+') or country + * calling code, e.g. "611". + * + * Generated from protobuf field string number = 2; + * @return string + */ + public function getNumber() + { + return $this->number; + } + + /** + * Required. The short code digits, without a leading plus ('+') or country + * calling code, e.g. "611". + * + * Generated from protobuf field string number = 2; + * @param string $var + * @return $this + */ + public function setNumber($var) + { + GPBUtil::checkString($var, True); + $this->number = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/PostalAddress.php b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/PostalAddress.php new file mode 100644 index 000000000000..063fbac92ef4 --- /dev/null +++ b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/PostalAddress.php @@ -0,0 +1,628 @@ +google.type.PostalAddress + */ +class PostalAddress extends \Google\Protobuf\Internal\Message +{ + /** + * The schema revision of the `PostalAddress`. This must be set to 0, which is + * the latest revision. + * All new revisions **must** be backward compatible with old revisions. + * + * Generated from protobuf field int32 revision = 1; + */ + protected $revision = 0; + /** + * Required. CLDR region code of the country/region of the address. This + * is never inferred and it is up to the user to ensure the value is + * correct. See http://cldr.unicode.org/ and + * http://www.unicode.org/cldr/charts/30/supplemental/territory_information.html + * for details. Example: "CH" for Switzerland. + * + * Generated from protobuf field string region_code = 2; + */ + protected $region_code = ''; + /** + * Optional. BCP-47 language code of the contents of this address (if + * known). This is often the UI language of the input form or is expected + * to match one of the languages used in the address' country/region, or their + * transliterated equivalents. + * This can affect formatting in certain countries, but is not critical + * to the correctness of the data and will never affect any validation or + * other non-formatting related operations. + * If this value is not known, it should be omitted (rather than specifying a + * possibly incorrect default). + * Examples: "zh-Hant", "ja", "ja-Latn", "en". + * + * Generated from protobuf field string language_code = 3; + */ + protected $language_code = ''; + /** + * Optional. Postal code of the address. Not all countries use or require + * postal codes to be present, but where they are used, they may trigger + * additional validation with other parts of the address (e.g. state/zip + * validation in the U.S.A.). + * + * Generated from protobuf field string postal_code = 4; + */ + protected $postal_code = ''; + /** + * Optional. Additional, country-specific, sorting code. This is not used + * in most regions. Where it is used, the value is either a string like + * "CEDEX", optionally followed by a number (e.g. "CEDEX 7"), or just a number + * alone, representing the "sector code" (Jamaica), "delivery area indicator" + * (Malawi) or "post office indicator" (e.g. Côte d'Ivoire). + * + * Generated from protobuf field string sorting_code = 5; + */ + protected $sorting_code = ''; + /** + * Optional. Highest administrative subdivision which is used for postal + * addresses of a country or region. + * For example, this can be a state, a province, an oblast, or a prefecture. + * Specifically, for Spain this is the province and not the autonomous + * community (e.g. "Barcelona" and not "Catalonia"). + * Many countries don't use an administrative area in postal addresses. E.g. + * in Switzerland this should be left unpopulated. + * + * Generated from protobuf field string administrative_area = 6; + */ + protected $administrative_area = ''; + /** + * Optional. Generally refers to the city/town portion of the address. + * Examples: US city, IT comune, UK post town. + * In regions of the world where localities are not well defined or do not fit + * into this structure well, leave locality empty and use address_lines. + * + * Generated from protobuf field string locality = 7; + */ + protected $locality = ''; + /** + * Optional. Sublocality of the address. + * For example, this can be neighborhoods, boroughs, districts. + * + * Generated from protobuf field string sublocality = 8; + */ + protected $sublocality = ''; + /** + * Unstructured address lines describing the lower levels of an address. + * Because values in address_lines do not have type information and may + * sometimes contain multiple values in a single field (e.g. + * "Austin, TX"), it is important that the line order is clear. The order of + * address lines should be "envelope order" for the country/region of the + * address. In places where this can vary (e.g. Japan), address_language is + * used to make it explicit (e.g. "ja" for large-to-small ordering and + * "ja-Latn" or "en" for small-to-large). This way, the most specific line of + * an address can be selected based on the language. + * The minimum permitted structural representation of an address consists + * of a region_code with all remaining information placed in the + * address_lines. It would be possible to format such an address very + * approximately without geocoding, but no semantic reasoning could be + * made about any of the address components until it was at least + * partially resolved. + * Creating an address only containing a region_code and address_lines, and + * then geocoding is the recommended way to handle completely unstructured + * addresses (as opposed to guessing which parts of the address should be + * localities or administrative areas). + * + * Generated from protobuf field repeated string address_lines = 9; + */ + private $address_lines; + /** + * Optional. The recipient at the address. + * This field may, under certain circumstances, contain multiline information. + * For example, it might contain "care of" information. + * + * Generated from protobuf field repeated string recipients = 10; + */ + private $recipients; + /** + * Optional. The name of the organization at the address. + * + * Generated from protobuf field string organization = 11; + */ + protected $organization = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $revision + * The schema revision of the `PostalAddress`. This must be set to 0, which is + * the latest revision. + * All new revisions **must** be backward compatible with old revisions. + * @type string $region_code + * Required. CLDR region code of the country/region of the address. This + * is never inferred and it is up to the user to ensure the value is + * correct. See http://cldr.unicode.org/ and + * http://www.unicode.org/cldr/charts/30/supplemental/territory_information.html + * for details. Example: "CH" for Switzerland. + * @type string $language_code + * Optional. BCP-47 language code of the contents of this address (if + * known). This is often the UI language of the input form or is expected + * to match one of the languages used in the address' country/region, or their + * transliterated equivalents. + * This can affect formatting in certain countries, but is not critical + * to the correctness of the data and will never affect any validation or + * other non-formatting related operations. + * If this value is not known, it should be omitted (rather than specifying a + * possibly incorrect default). + * Examples: "zh-Hant", "ja", "ja-Latn", "en". + * @type string $postal_code + * Optional. Postal code of the address. Not all countries use or require + * postal codes to be present, but where they are used, they may trigger + * additional validation with other parts of the address (e.g. state/zip + * validation in the U.S.A.). + * @type string $sorting_code + * Optional. Additional, country-specific, sorting code. This is not used + * in most regions. Where it is used, the value is either a string like + * "CEDEX", optionally followed by a number (e.g. "CEDEX 7"), or just a number + * alone, representing the "sector code" (Jamaica), "delivery area indicator" + * (Malawi) or "post office indicator" (e.g. Côte d'Ivoire). + * @type string $administrative_area + * Optional. Highest administrative subdivision which is used for postal + * addresses of a country or region. + * For example, this can be a state, a province, an oblast, or a prefecture. + * Specifically, for Spain this is the province and not the autonomous + * community (e.g. "Barcelona" and not "Catalonia"). + * Many countries don't use an administrative area in postal addresses. E.g. + * in Switzerland this should be left unpopulated. + * @type string $locality + * Optional. Generally refers to the city/town portion of the address. + * Examples: US city, IT comune, UK post town. + * In regions of the world where localities are not well defined or do not fit + * into this structure well, leave locality empty and use address_lines. + * @type string $sublocality + * Optional. Sublocality of the address. + * For example, this can be neighborhoods, boroughs, districts. + * @type string[] $address_lines + * Unstructured address lines describing the lower levels of an address. + * Because values in address_lines do not have type information and may + * sometimes contain multiple values in a single field (e.g. + * "Austin, TX"), it is important that the line order is clear. The order of + * address lines should be "envelope order" for the country/region of the + * address. In places where this can vary (e.g. Japan), address_language is + * used to make it explicit (e.g. "ja" for large-to-small ordering and + * "ja-Latn" or "en" for small-to-large). This way, the most specific line of + * an address can be selected based on the language. + * The minimum permitted structural representation of an address consists + * of a region_code with all remaining information placed in the + * address_lines. It would be possible to format such an address very + * approximately without geocoding, but no semantic reasoning could be + * made about any of the address components until it was at least + * partially resolved. + * Creating an address only containing a region_code and address_lines, and + * then geocoding is the recommended way to handle completely unstructured + * addresses (as opposed to guessing which parts of the address should be + * localities or administrative areas). + * @type string[] $recipients + * Optional. The recipient at the address. + * This field may, under certain circumstances, contain multiline information. + * For example, it might contain "care of" information. + * @type string $organization + * Optional. The name of the organization at the address. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Type\PostalAddress::initOnce(); + parent::__construct($data); + } + + /** + * The schema revision of the `PostalAddress`. This must be set to 0, which is + * the latest revision. + * All new revisions **must** be backward compatible with old revisions. + * + * Generated from protobuf field int32 revision = 1; + * @return int + */ + public function getRevision() + { + return $this->revision; + } + + /** + * The schema revision of the `PostalAddress`. This must be set to 0, which is + * the latest revision. + * All new revisions **must** be backward compatible with old revisions. + * + * Generated from protobuf field int32 revision = 1; + * @param int $var + * @return $this + */ + public function setRevision($var) + { + GPBUtil::checkInt32($var); + $this->revision = $var; + + return $this; + } + + /** + * Required. CLDR region code of the country/region of the address. This + * is never inferred and it is up to the user to ensure the value is + * correct. See http://cldr.unicode.org/ and + * http://www.unicode.org/cldr/charts/30/supplemental/territory_information.html + * for details. Example: "CH" for Switzerland. + * + * Generated from protobuf field string region_code = 2; + * @return string + */ + public function getRegionCode() + { + return $this->region_code; + } + + /** + * Required. CLDR region code of the country/region of the address. This + * is never inferred and it is up to the user to ensure the value is + * correct. See http://cldr.unicode.org/ and + * http://www.unicode.org/cldr/charts/30/supplemental/territory_information.html + * for details. Example: "CH" for Switzerland. + * + * Generated from protobuf field string region_code = 2; + * @param string $var + * @return $this + */ + public function setRegionCode($var) + { + GPBUtil::checkString($var, True); + $this->region_code = $var; + + return $this; + } + + /** + * Optional. BCP-47 language code of the contents of this address (if + * known). This is often the UI language of the input form or is expected + * to match one of the languages used in the address' country/region, or their + * transliterated equivalents. + * This can affect formatting in certain countries, but is not critical + * to the correctness of the data and will never affect any validation or + * other non-formatting related operations. + * If this value is not known, it should be omitted (rather than specifying a + * possibly incorrect default). + * Examples: "zh-Hant", "ja", "ja-Latn", "en". + * + * Generated from protobuf field string language_code = 3; + * @return string + */ + public function getLanguageCode() + { + return $this->language_code; + } + + /** + * Optional. BCP-47 language code of the contents of this address (if + * known). This is often the UI language of the input form or is expected + * to match one of the languages used in the address' country/region, or their + * transliterated equivalents. + * This can affect formatting in certain countries, but is not critical + * to the correctness of the data and will never affect any validation or + * other non-formatting related operations. + * If this value is not known, it should be omitted (rather than specifying a + * possibly incorrect default). + * Examples: "zh-Hant", "ja", "ja-Latn", "en". + * + * Generated from protobuf field string language_code = 3; + * @param string $var + * @return $this + */ + public function setLanguageCode($var) + { + GPBUtil::checkString($var, True); + $this->language_code = $var; + + return $this; + } + + /** + * Optional. Postal code of the address. Not all countries use or require + * postal codes to be present, but where they are used, they may trigger + * additional validation with other parts of the address (e.g. state/zip + * validation in the U.S.A.). + * + * Generated from protobuf field string postal_code = 4; + * @return string + */ + public function getPostalCode() + { + return $this->postal_code; + } + + /** + * Optional. Postal code of the address. Not all countries use or require + * postal codes to be present, but where they are used, they may trigger + * additional validation with other parts of the address (e.g. state/zip + * validation in the U.S.A.). + * + * Generated from protobuf field string postal_code = 4; + * @param string $var + * @return $this + */ + public function setPostalCode($var) + { + GPBUtil::checkString($var, True); + $this->postal_code = $var; + + return $this; + } + + /** + * Optional. Additional, country-specific, sorting code. This is not used + * in most regions. Where it is used, the value is either a string like + * "CEDEX", optionally followed by a number (e.g. "CEDEX 7"), or just a number + * alone, representing the "sector code" (Jamaica), "delivery area indicator" + * (Malawi) or "post office indicator" (e.g. Côte d'Ivoire). + * + * Generated from protobuf field string sorting_code = 5; + * @return string + */ + public function getSortingCode() + { + return $this->sorting_code; + } + + /** + * Optional. Additional, country-specific, sorting code. This is not used + * in most regions. Where it is used, the value is either a string like + * "CEDEX", optionally followed by a number (e.g. "CEDEX 7"), or just a number + * alone, representing the "sector code" (Jamaica), "delivery area indicator" + * (Malawi) or "post office indicator" (e.g. Côte d'Ivoire). + * + * Generated from protobuf field string sorting_code = 5; + * @param string $var + * @return $this + */ + public function setSortingCode($var) + { + GPBUtil::checkString($var, True); + $this->sorting_code = $var; + + return $this; + } + + /** + * Optional. Highest administrative subdivision which is used for postal + * addresses of a country or region. + * For example, this can be a state, a province, an oblast, or a prefecture. + * Specifically, for Spain this is the province and not the autonomous + * community (e.g. "Barcelona" and not "Catalonia"). + * Many countries don't use an administrative area in postal addresses. E.g. + * in Switzerland this should be left unpopulated. + * + * Generated from protobuf field string administrative_area = 6; + * @return string + */ + public function getAdministrativeArea() + { + return $this->administrative_area; + } + + /** + * Optional. Highest administrative subdivision which is used for postal + * addresses of a country or region. + * For example, this can be a state, a province, an oblast, or a prefecture. + * Specifically, for Spain this is the province and not the autonomous + * community (e.g. "Barcelona" and not "Catalonia"). + * Many countries don't use an administrative area in postal addresses. E.g. + * in Switzerland this should be left unpopulated. + * + * Generated from protobuf field string administrative_area = 6; + * @param string $var + * @return $this + */ + public function setAdministrativeArea($var) + { + GPBUtil::checkString($var, True); + $this->administrative_area = $var; + + return $this; + } + + /** + * Optional. Generally refers to the city/town portion of the address. + * Examples: US city, IT comune, UK post town. + * In regions of the world where localities are not well defined or do not fit + * into this structure well, leave locality empty and use address_lines. + * + * Generated from protobuf field string locality = 7; + * @return string + */ + public function getLocality() + { + return $this->locality; + } + + /** + * Optional. Generally refers to the city/town portion of the address. + * Examples: US city, IT comune, UK post town. + * In regions of the world where localities are not well defined or do not fit + * into this structure well, leave locality empty and use address_lines. + * + * Generated from protobuf field string locality = 7; + * @param string $var + * @return $this + */ + public function setLocality($var) + { + GPBUtil::checkString($var, True); + $this->locality = $var; + + return $this; + } + + /** + * Optional. Sublocality of the address. + * For example, this can be neighborhoods, boroughs, districts. + * + * Generated from protobuf field string sublocality = 8; + * @return string + */ + public function getSublocality() + { + return $this->sublocality; + } + + /** + * Optional. Sublocality of the address. + * For example, this can be neighborhoods, boroughs, districts. + * + * Generated from protobuf field string sublocality = 8; + * @param string $var + * @return $this + */ + public function setSublocality($var) + { + GPBUtil::checkString($var, True); + $this->sublocality = $var; + + return $this; + } + + /** + * Unstructured address lines describing the lower levels of an address. + * Because values in address_lines do not have type information and may + * sometimes contain multiple values in a single field (e.g. + * "Austin, TX"), it is important that the line order is clear. The order of + * address lines should be "envelope order" for the country/region of the + * address. In places where this can vary (e.g. Japan), address_language is + * used to make it explicit (e.g. "ja" for large-to-small ordering and + * "ja-Latn" or "en" for small-to-large). This way, the most specific line of + * an address can be selected based on the language. + * The minimum permitted structural representation of an address consists + * of a region_code with all remaining information placed in the + * address_lines. It would be possible to format such an address very + * approximately without geocoding, but no semantic reasoning could be + * made about any of the address components until it was at least + * partially resolved. + * Creating an address only containing a region_code and address_lines, and + * then geocoding is the recommended way to handle completely unstructured + * addresses (as opposed to guessing which parts of the address should be + * localities or administrative areas). + * + * Generated from protobuf field repeated string address_lines = 9; + * @return RepeatedField + */ + public function getAddressLines() + { + return $this->address_lines; + } + + /** + * Unstructured address lines describing the lower levels of an address. + * Because values in address_lines do not have type information and may + * sometimes contain multiple values in a single field (e.g. + * "Austin, TX"), it is important that the line order is clear. The order of + * address lines should be "envelope order" for the country/region of the + * address. In places where this can vary (e.g. Japan), address_language is + * used to make it explicit (e.g. "ja" for large-to-small ordering and + * "ja-Latn" or "en" for small-to-large). This way, the most specific line of + * an address can be selected based on the language. + * The minimum permitted structural representation of an address consists + * of a region_code with all remaining information placed in the + * address_lines. It would be possible to format such an address very + * approximately without geocoding, but no semantic reasoning could be + * made about any of the address components until it was at least + * partially resolved. + * Creating an address only containing a region_code and address_lines, and + * then geocoding is the recommended way to handle completely unstructured + * addresses (as opposed to guessing which parts of the address should be + * localities or administrative areas). + * + * Generated from protobuf field repeated string address_lines = 9; + * @param string[] $var + * @return $this + */ + public function setAddressLines($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->address_lines = $arr; + + return $this; + } + + /** + * Optional. The recipient at the address. + * This field may, under certain circumstances, contain multiline information. + * For example, it might contain "care of" information. + * + * Generated from protobuf field repeated string recipients = 10; + * @return RepeatedField + */ + public function getRecipients() + { + return $this->recipients; + } + + /** + * Optional. The recipient at the address. + * This field may, under certain circumstances, contain multiline information. + * For example, it might contain "care of" information. + * + * Generated from protobuf field repeated string recipients = 10; + * @param string[] $var + * @return $this + */ + public function setRecipients($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->recipients = $arr; + + return $this; + } + + /** + * Optional. The name of the organization at the address. + * + * Generated from protobuf field string organization = 11; + * @return string + */ + public function getOrganization() + { + return $this->organization; + } + + /** + * Optional. The name of the organization at the address. + * + * Generated from protobuf field string organization = 11; + * @param string $var + * @return $this + */ + public function setOrganization($var) + { + GPBUtil::checkString($var, True); + $this->organization = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Quaternion.php b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Quaternion.php new file mode 100644 index 000000000000..56014dc90777 --- /dev/null +++ b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Quaternion.php @@ -0,0 +1,211 @@ +google.type.Quaternion + */ +class Quaternion extends \Google\Protobuf\Internal\Message +{ + /** + * The x component. + * + * Generated from protobuf field double x = 1; + */ + protected $x = 0.0; + /** + * The y component. + * + * Generated from protobuf field double y = 2; + */ + protected $y = 0.0; + /** + * The z component. + * + * Generated from protobuf field double z = 3; + */ + protected $z = 0.0; + /** + * The scalar component. + * + * Generated from protobuf field double w = 4; + */ + protected $w = 0.0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type float $x + * The x component. + * @type float $y + * The y component. + * @type float $z + * The z component. + * @type float $w + * The scalar component. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Type\Quaternion::initOnce(); + parent::__construct($data); + } + + /** + * The x component. + * + * Generated from protobuf field double x = 1; + * @return float + */ + public function getX() + { + return $this->x; + } + + /** + * The x component. + * + * Generated from protobuf field double x = 1; + * @param float $var + * @return $this + */ + public function setX($var) + { + GPBUtil::checkDouble($var); + $this->x = $var; + + return $this; + } + + /** + * The y component. + * + * Generated from protobuf field double y = 2; + * @return float + */ + public function getY() + { + return $this->y; + } + + /** + * The y component. + * + * Generated from protobuf field double y = 2; + * @param float $var + * @return $this + */ + public function setY($var) + { + GPBUtil::checkDouble($var); + $this->y = $var; + + return $this; + } + + /** + * The z component. + * + * Generated from protobuf field double z = 3; + * @return float + */ + public function getZ() + { + return $this->z; + } + + /** + * The z component. + * + * Generated from protobuf field double z = 3; + * @param float $var + * @return $this + */ + public function setZ($var) + { + GPBUtil::checkDouble($var); + $this->z = $var; + + return $this; + } + + /** + * The scalar component. + * + * Generated from protobuf field double w = 4; + * @return float + */ + public function getW() + { + return $this->w; + } + + /** + * The scalar component. + * + * Generated from protobuf field double w = 4; + * @param float $var + * @return $this + */ + public function setW($var) + { + GPBUtil::checkDouble($var); + $this->w = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/TimeOfDay.php b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/TimeOfDay.php new file mode 100644 index 000000000000..8cd8837ab4e2 --- /dev/null +++ b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/TimeOfDay.php @@ -0,0 +1,180 @@ +google.type.TimeOfDay + */ +class TimeOfDay extends \Google\Protobuf\Internal\Message +{ + /** + * Hours of day in 24 hour format. Should be from 0 to 23. An API may choose + * to allow the value "24:00:00" for scenarios like business closing time. + * + * Generated from protobuf field int32 hours = 1; + */ + protected $hours = 0; + /** + * Minutes of hour of day. Must be from 0 to 59. + * + * Generated from protobuf field int32 minutes = 2; + */ + protected $minutes = 0; + /** + * Seconds of minutes of the time. Must normally be from 0 to 59. An API may + * allow the value 60 if it allows leap-seconds. + * + * Generated from protobuf field int32 seconds = 3; + */ + protected $seconds = 0; + /** + * Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999. + * + * Generated from protobuf field int32 nanos = 4; + */ + protected $nanos = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $hours + * Hours of day in 24 hour format. Should be from 0 to 23. An API may choose + * to allow the value "24:00:00" for scenarios like business closing time. + * @type int $minutes + * Minutes of hour of day. Must be from 0 to 59. + * @type int $seconds + * Seconds of minutes of the time. Must normally be from 0 to 59. An API may + * allow the value 60 if it allows leap-seconds. + * @type int $nanos + * Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Type\Timeofday::initOnce(); + parent::__construct($data); + } + + /** + * Hours of day in 24 hour format. Should be from 0 to 23. An API may choose + * to allow the value "24:00:00" for scenarios like business closing time. + * + * Generated from protobuf field int32 hours = 1; + * @return int + */ + public function getHours() + { + return $this->hours; + } + + /** + * Hours of day in 24 hour format. Should be from 0 to 23. An API may choose + * to allow the value "24:00:00" for scenarios like business closing time. + * + * Generated from protobuf field int32 hours = 1; + * @param int $var + * @return $this + */ + public function setHours($var) + { + GPBUtil::checkInt32($var); + $this->hours = $var; + + return $this; + } + + /** + * Minutes of hour of day. Must be from 0 to 59. + * + * Generated from protobuf field int32 minutes = 2; + * @return int + */ + public function getMinutes() + { + return $this->minutes; + } + + /** + * Minutes of hour of day. Must be from 0 to 59. + * + * Generated from protobuf field int32 minutes = 2; + * @param int $var + * @return $this + */ + public function setMinutes($var) + { + GPBUtil::checkInt32($var); + $this->minutes = $var; + + return $this; + } + + /** + * Seconds of minutes of the time. Must normally be from 0 to 59. An API may + * allow the value 60 if it allows leap-seconds. + * + * Generated from protobuf field int32 seconds = 3; + * @return int + */ + public function getSeconds() + { + return $this->seconds; + } + + /** + * Seconds of minutes of the time. Must normally be from 0 to 59. An API may + * allow the value 60 if it allows leap-seconds. + * + * Generated from protobuf field int32 seconds = 3; + * @param int $var + * @return $this + */ + public function setSeconds($var) + { + GPBUtil::checkInt32($var); + $this->seconds = $var; + + return $this; + } + + /** + * Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999. + * + * Generated from protobuf field int32 nanos = 4; + * @return int + */ + public function getNanos() + { + return $this->nanos; + } + + /** + * Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999. + * + * Generated from protobuf field int32 nanos = 4; + * @param int $var + * @return $this + */ + public function setNanos($var) + { + GPBUtil::checkInt32($var); + $this->nanos = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/TimeZone.php b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/TimeZone.php new file mode 100644 index 000000000000..db31ddee7aec --- /dev/null +++ b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/TimeZone.php @@ -0,0 +1,102 @@ +google.type.TimeZone + */ +class TimeZone extends \Google\Protobuf\Internal\Message +{ + /** + * IANA Time Zone Database time zone, e.g. "America/New_York". + * + * Generated from protobuf field string id = 1; + */ + protected $id = ''; + /** + * Optional. IANA Time Zone Database version number, e.g. "2019a". + * + * Generated from protobuf field string version = 2; + */ + protected $version = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $id + * IANA Time Zone Database time zone, e.g. "America/New_York". + * @type string $version + * Optional. IANA Time Zone Database version number, e.g. "2019a". + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Type\Datetime::initOnce(); + parent::__construct($data); + } + + /** + * IANA Time Zone Database time zone, e.g. "America/New_York". + * + * Generated from protobuf field string id = 1; + * @return string + */ + public function getId() + { + return $this->id; + } + + /** + * IANA Time Zone Database time zone, e.g. "America/New_York". + * + * Generated from protobuf field string id = 1; + * @param string $var + * @return $this + */ + public function setId($var) + { + GPBUtil::checkString($var, True); + $this->id = $var; + + return $this; + } + + /** + * Optional. IANA Time Zone Database version number, e.g. "2019a". + * + * Generated from protobuf field string version = 2; + * @return string + */ + public function getVersion() + { + return $this->version; + } + + /** + * Optional. IANA Time Zone Database version number, e.g. "2019a". + * + * Generated from protobuf field string version = 2; + * @param string $var + * @return $this + */ + public function setVersion($var) + { + GPBUtil::checkString($var, True); + $this->version = $var; + + return $this; + } + +} + From 6a3f539ae92874fceefb34700bf9c89a04fc20fc Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Wed, 25 Mar 2026 21:31:00 +0000 Subject: [PATCH 2/4] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?= =?UTF-8?q?st-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- CommonProtos/metadata/Api/Backend.php | 2 +- CommonProtos/metadata/Api/Client.php | 2 +- CommonProtos/metadata/Api/ErrorReason.php | 2 +- CommonProtos/src/Api/BackendRule.php | 65 + .../src}/Api/BatchingConfigProto.php | 0 .../src}/Api/BatchingDescriptorProto.php | 0 .../src}/Api/BatchingSettingsProto.php | 0 CommonProtos/src/Api/Control.php | 16 +- CommonProtos/src/Api/ErrorReason.php | 205 +++ .../FlowControlLimitExceededBehaviorProto.php | 0 CommonProtos/src/Api/GoSettings.php | 36 +- CommonProtos/src/Api/JavaSettings.php | 68 +- CommonProtos/src/Api/MethodSettings.php | 212 ++- CommonProtos/src/Api/PhpSettings.php | 70 + CommonProtos/src/Api/RoutingRule.php | 9 +- CommonProtos/src/Api/Service.php | 12 +- CommonProtos/src/Api/UsageRule.php | 45 +- .../GPBMetadata/Google/Api/Annotations.php | 25 - .../proto/src/GPBMetadata/Google/Api/Auth.php | 24 - .../src/GPBMetadata/Google/Api/Backend.php | 24 - .../src/GPBMetadata/Google/Api/Billing.php | 24 - .../src/GPBMetadata/Google/Api/Client.php | 26 - .../GPBMetadata/Google/Api/ConfigChange.php | 24 - .../src/GPBMetadata/Google/Api/Consumer.php | 24 - .../src/GPBMetadata/Google/Api/Context.php | 24 - .../src/GPBMetadata/Google/Api/Control.php | 25 - .../GPBMetadata/Google/Api/Distribution.php | 26 - .../GPBMetadata/Google/Api/Documentation.php | 24 - .../src/GPBMetadata/Google/Api/Endpoint.php | 24 - .../GPBMetadata/Google/Api/ErrorReason.php | 24 - .../GPBMetadata/Google/Api/FieldBehavior.php | 24 - .../src/GPBMetadata/Google/Api/FieldInfo.php | 24 - .../proto/src/GPBMetadata/Google/Api/Http.php | 24 - .../src/GPBMetadata/Google/Api/Httpbody.php | 25 - .../src/GPBMetadata/Google/Api/Label.php | 24 - .../GPBMetadata/Google/Api/LaunchStage.php | 24 - .../proto/src/GPBMetadata/Google/Api/Log.php | 25 - .../src/GPBMetadata/Google/Api/Logging.php | 24 - .../src/GPBMetadata/Google/Api/Metric.php | 27 - .../Google/Api/MonitoredResource.php | 27 - .../src/GPBMetadata/Google/Api/Monitoring.php | 24 - .../src/GPBMetadata/Google/Api/Policy.php | 24 - .../src/GPBMetadata/Google/Api/Quota.php | 24 - .../src/GPBMetadata/Google/Api/Resource.php | 24 - .../src/GPBMetadata/Google/Api/Routing.php | 24 - .../src/GPBMetadata/Google/Api/Service.php | 45 - .../src/GPBMetadata/Google/Api/SourceInfo.php | 25 - .../Google/Api/SystemParameter.php | 24 - .../src/GPBMetadata/Google/Api/Usage.php | 24 - .../src/GPBMetadata/Google/Api/Visibility.php | 24 - .../api/proto/src/Google/Api/Advice.php | 72 - .../api/proto/src/Google/Api/AuthProvider.php | 419 ------ .../proto/src/Google/Api/AuthRequirement.php | 159 --- .../proto/src/Google/Api/Authentication.php | 120 -- .../src/Google/Api/AuthenticationRule.php | 197 --- .../api/proto/src/Google/Api/Backend.php | 71 - .../api/proto/src/Google/Api/BackendRule.php | 592 -------- .../Api/BackendRule/PathTranslation.php | 92 -- .../api/proto/src/Google/Api/Billing.php | 107 -- .../Google/Api/Billing/BillingDestination.php | 118 -- .../api/proto/src/Google/Api/ChangeType.php | 72 - .../Google/Api/ClientLibraryDestination.php | 63 - .../Google/Api/ClientLibraryOrganization.php | 97 -- .../src/Google/Api/ClientLibrarySettings.php | 499 ------- .../src/Google/Api/CommonLanguageSettings.php | 156 --- .../api/proto/src/Google/Api/ConfigChange.php | 251 ---- .../api/proto/src/Google/Api/Context.php | 98 -- .../api/proto/src/Google/Api/ContextRule.php | 228 --- .../api/proto/src/Google/Api/Control.php | 112 -- .../api/proto/src/Google/Api/CppSettings.php | 77 - .../src/Google/Api/CustomHttpPattern.php | 101 -- .../api/proto/src/Google/Api/Distribution.php | 390 ------ .../Google/Api/Distribution/BucketOptions.php | 154 -- .../Distribution/BucketOptions/Explicit.php | 74 - .../BucketOptions/Exponential.php | 141 -- .../Api/Distribution/BucketOptions/Linear.php | 141 -- .../src/Google/Api/Distribution/Exemplar.php | 177 --- .../src/Google/Api/Distribution/Range.php | 101 -- .../proto/src/Google/Api/Documentation.php | 362 ----- .../src/Google/Api/DocumentationRule.php | 171 --- .../proto/src/Google/Api/DotnetSettings.php | 307 ---- .../api/proto/src/Google/Api/Endpoint.php | 231 --- .../api/proto/src/Google/Api/ErrorReason.php | 895 ------------ .../proto/src/Google/Api/FieldBehavior.php | 133 -- .../api/proto/src/Google/Api/FieldInfo.php | 117 -- .../proto/src/Google/Api/FieldInfo/Format.php | 89 -- .../api/proto/src/Google/Api/FieldPolicy.php | 181 --- .../api/proto/src/Google/Api/GoSettings.php | 139 -- .../api/proto/src/Google/Api/Http.php | 123 -- .../api/proto/src/Google/Api/HttpBody.php | 168 --- .../api/proto/src/Google/Api/HttpRule.php | 651 --------- .../api/proto/src/Google/Api/JavaSettings.php | 225 --- .../api/proto/src/Google/Api/JwtLocation.php | 199 --- .../proto/src/Google/Api/LabelDescriptor.php | 135 -- .../Google/Api/LabelDescriptor/ValueType.php | 61 - .../api/proto/src/Google/Api/LaunchStage.php | 118 -- .../proto/src/Google/Api/LogDescriptor.php | 203 --- .../api/proto/src/Google/Api/Logging.php | 151 -- .../Google/Api/Logging/LoggingDestination.php | 122 -- .../api/proto/src/Google/Api/MethodPolicy.php | 121 -- .../proto/src/Google/Api/MethodSettings.php | 321 ----- .../Google/Api/MethodSettings/LongRunning.php | 223 --- .../api/proto/src/Google/Api/Metric.php | 114 -- .../proto/src/Google/Api/MetricDescriptor.php | 831 ----------- .../MetricDescriptorMetadata.php | 224 --- .../TimeSeriesResourceHierarchyLevel.php | 68 - .../Api/MetricDescriptor/MetricKind.php | 74 - .../Google/Api/MetricDescriptor/ValueType.php | 91 -- .../api/proto/src/Google/Api/MetricRule.php | 126 -- .../src/Google/Api/MonitoredResource.php | 147 -- .../Api/MonitoredResourceDescriptor.php | 309 ---- .../Google/Api/MonitoredResourceMetadata.php | 148 -- .../api/proto/src/Google/Api/Monitoring.php | 190 --- .../Api/Monitoring/MonitoringDestination.php | 118 -- .../api/proto/src/Google/Api/NodeSettings.php | 77 - .../src/Google/Api/OAuthRequirements.php | 96 -- .../api/proto/src/Google/Api/Page.php | 200 --- .../api/proto/src/Google/Api/PhpSettings.php | 147 -- .../src/Google/Api/ProjectProperties.php | 80 -- .../api/proto/src/Google/Api/Property.php | 142 -- .../src/Google/Api/Property/PropertyType.php | 75 - .../api/proto/src/Google/Api/Publishing.php | 453 ------ .../proto/src/Google/Api/PythonSettings.php | 121 -- .../PythonSettings/ExperimentalFeatures.php | 173 --- .../api/proto/src/Google/Api/Quota.php | 144 -- .../api/proto/src/Google/Api/QuotaLimit.php | 527 ------- .../src/Google/Api/ResourceDescriptor.php | 495 ------- .../Google/Api/ResourceDescriptor/History.php | 65 - .../Google/Api/ResourceDescriptor/Style.php | 59 - .../src/Google/Api/ResourceReference.php | 190 --- .../proto/src/Google/Api/RoutingParameter.php | 281 ---- .../api/proto/src/Google/Api/RoutingRule.php | 356 ----- .../api/proto/src/Google/Api/RubySettings.php | 77 - .../Google/Api/SelectiveGapicGeneration.php | 126 -- .../api/proto/src/Google/Api/Service.php | 1242 ----------------- .../api/proto/src/Google/Api/SourceInfo.php | 67 - .../proto/src/Google/Api/SystemParameter.php | 145 -- .../src/Google/Api/SystemParameterRule.php | 130 -- .../proto/src/Google/Api/SystemParameters.php | 155 -- .../proto/src/Google/Api/TypeReference.php | 91 -- .../api/proto/src/Google/Api/Usage.php | 191 --- .../api/proto/src/Google/Api/UsageRule.php | 175 --- .../api/proto/src/Google/Api/Visibility.php | 88 -- .../proto/src/Google/Api/VisibilityRule.php | 150 -- .../Google/Cloud/ExtendedOperations.php | 24 - .../Google/Cloud/OperationResponseMapping.php | 86 -- .../GPBMetadata/Google/Iam/V1/IamPolicy.php | 31 - .../Google/Iam/V1/Logging/AuditData.php | 25 - .../src/GPBMetadata/Google/Iam/V1/Options.php | 24 - .../src/GPBMetadata/Google/Iam/V1/Policy.php | 25 - .../Google/Iam/V1/ResourcePolicyMember.php | 25 - .../src/Google/Cloud/Iam/V1/AuditConfig.php | 155 -- .../Google/Cloud/Iam/V1/AuditConfigDelta.php | 202 --- .../Cloud/Iam/V1/AuditConfigDelta/Action.php | 61 - .../Google/Cloud/Iam/V1/AuditLogConfig.php | 129 -- .../Cloud/Iam/V1/AuditLogConfig/LogType.php | 69 - .../proto/src/Google/Cloud/Iam/V1/Binding.php | 301 ---- .../src/Google/Cloud/Iam/V1/BindingDelta.php | 200 --- .../Cloud/Iam/V1/BindingDelta/Action.php | 61 - .../Cloud/Iam/V1/GetIamPolicyRequest.php | 119 -- .../Google/Cloud/Iam/V1/GetPolicyOptions.php | 119 -- .../proto/src/Google/Cloud/Iam/V1/Policy.php | 377 ----- .../src/Google/Cloud/Iam/V1/PolicyDelta.php | 101 -- .../Cloud/Iam/V1/ResourcePolicyMember.php | 142 -- .../Cloud/Iam/V1/SetIamPolicyRequest.php | 183 --- .../Iam/V1/TestIamPermissionsRequest.php | 117 -- .../Iam/V1/TestIamPermissionsResponse.php | 71 - .../src/Google/Iam/V1/Logging/AuditData.php | 79 -- .../Google/Iam/V1/Logging/AuditData.php | 25 - .../src/Google/Iam/V1/Logging/AuditData.php | 79 -- .../Google/Cloud/Location/Locations.php | 27 - .../Cloud/Location/GetLocationRequest.php | 67 - .../Cloud/Location/ListLocationsRequest.php | 169 --- .../Cloud/Location/ListLocationsResponse.php | 101 -- .../src/Google/Cloud/Location/Location.php | 229 --- .../Google/Logging/Type/HttpRequest.php | 25 - .../Google/Logging/Type/LogSeverity.php | 24 - .../Google/Cloud/Logging/Type/HttpRequest.php | 627 --------- .../Google/Cloud/Logging/Type/LogSeverity.php | 119 -- .../proto/src/GPBMetadata/Google/Rpc/Code.php | 24 - .../Google/Rpc/Context/AttributeContext.php | 28 - .../Google/Rpc/Context/AuditContext.php | 25 - .../GPBMetadata/Google/Rpc/ErrorDetails.php | 25 - .../src/GPBMetadata/Google/Rpc/Status.php | 25 - .../rpc/proto/src/Google/Rpc/BadRequest.php | 68 - .../Google/Rpc/BadRequest/FieldViolation.php | 315 ----- .../rpc/proto/src/Google/Rpc/Code.php | 243 ---- .../Google/Rpc/Context/AttributeContext.php | 419 ------ .../Rpc/Context/AttributeContext/Api.php | 195 --- .../Rpc/Context/AttributeContext/Auth.php | 355 ----- .../Rpc/Context/AttributeContext/Peer.php | 222 --- .../Rpc/Context/AttributeContext/Request.php | 507 ------- .../Rpc/Context/AttributeContext/Resource.php | 613 -------- .../Rpc/Context/AttributeContext/Response.php | 248 ---- .../src/Google/Rpc/Context/AuditContext.php | 247 ---- .../rpc/proto/src/Google/Rpc/DebugInfo.php | 101 -- .../rpc/proto/src/Google/Rpc/ErrorInfo.php | 217 --- .../rpc/proto/src/Google/Rpc/Help.php | 70 - .../rpc/proto/src/Google/Rpc/Help/Link.php | 101 -- .../proto/src/Google/Rpc/LocalizedMessage.php | 110 -- .../src/Google/Rpc/PreconditionFailure.php | 70 - .../Rpc/PreconditionFailure/Violation.php | 159 --- .../rpc/proto/src/Google/Rpc/QuotaFailure.php | 75 - .../src/Google/Rpc/QuotaFailure/Violation.php | 500 ------- .../rpc/proto/src/Google/Rpc/RequestInfo.php | 110 -- .../rpc/proto/src/Google/Rpc/ResourceInfo.php | 205 --- .../rpc/proto/src/Google/Rpc/RetryInfo.php | 87 -- .../rpc/proto/src/Google/Rpc/Status.php | 160 --- .../Google/Type/CalendarPeriod.php | 24 - .../src/GPBMetadata/Google/Type/Color.php | 25 - .../src/GPBMetadata/Google/Type/Date.php | 24 - .../src/GPBMetadata/Google/Type/Datetime.php | 25 - .../src/GPBMetadata/Google/Type/Dayofweek.php | 24 - .../src/GPBMetadata/Google/Type/Decimal.php | 24 - .../src/GPBMetadata/Google/Type/Expr.php | 24 - .../src/GPBMetadata/Google/Type/Fraction.php | 24 - .../src/GPBMetadata/Google/Type/Interval.php | 25 - .../src/GPBMetadata/Google/Type/Latlng.php | 24 - .../GPBMetadata/Google/Type/LocalizedText.php | 24 - .../src/GPBMetadata/Google/Type/Money.php | 24 - .../src/GPBMetadata/Google/Type/Month.php | 24 - .../GPBMetadata/Google/Type/PhoneNumber.php | 24 - .../GPBMetadata/Google/Type/PostalAddress.php | 24 - .../GPBMetadata/Google/Type/Quaternion.php | 24 - .../src/GPBMetadata/Google/Type/Timeofday.php | 24 - .../proto/src/Google/Type/CalendarPeriod.php | 102 -- .../type/proto/src/Google/Type/Color.php | 360 ----- .../type/proto/src/Google/Type/Date.php | 161 --- .../type/proto/src/Google/Type/DateTime.php | 393 ------ .../type/proto/src/Google/Type/DayOfWeek.php | 96 -- .../type/proto/src/Google/Type/Decimal.php | 244 ---- .../type/proto/src/Google/Type/Expr.php | 210 --- .../type/proto/src/Google/Type/Fraction.php | 105 -- .../type/proto/src/Google/Type/Interval.php | 141 -- .../type/proto/src/Google/Type/LatLng.php | 105 -- .../proto/src/Google/Type/LocalizedText.php | 109 -- .../type/proto/src/Google/Type/Money.php | 159 --- .../type/proto/src/Google/Type/Month.php | 131 -- .../proto/src/Google/Type/PhoneNumber.php | 230 --- .../src/Google/Type/PhoneNumber/ShortCode.php | 124 -- .../proto/src/Google/Type/PostalAddress.php | 628 --------- .../type/proto/src/Google/Type/Quaternion.php | 211 --- .../type/proto/src/Google/Type/TimeOfDay.php | 180 --- .../type/proto/src/Google/Type/TimeZone.php | 102 -- 244 files changed, 581 insertions(+), 34018 deletions(-) rename {owl-bot-staging/CommonProtos/api/proto/src/Google => CommonProtos/src}/Api/BatchingConfigProto.php (100%) rename {owl-bot-staging/CommonProtos/api/proto/src/Google => CommonProtos/src}/Api/BatchingDescriptorProto.php (100%) rename {owl-bot-staging/CommonProtos/api/proto/src/Google => CommonProtos/src}/Api/BatchingSettingsProto.php (100%) rename {owl-bot-staging/CommonProtos/api/proto/src/Google => CommonProtos/src}/Api/FlowControlLimitExceededBehaviorProto.php (100%) delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Annotations.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Auth.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Backend.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Billing.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Client.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/ConfigChange.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Consumer.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Context.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Control.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Distribution.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Documentation.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Endpoint.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/ErrorReason.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/FieldBehavior.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/FieldInfo.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Http.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Httpbody.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Label.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/LaunchStage.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Log.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Logging.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Metric.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/MonitoredResource.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Monitoring.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Policy.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Quota.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Resource.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Routing.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Service.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/SourceInfo.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/SystemParameter.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Usage.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Visibility.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Advice.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/AuthProvider.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/AuthRequirement.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Authentication.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/AuthenticationRule.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Backend.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/BackendRule.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/BackendRule/PathTranslation.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Billing.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Billing/BillingDestination.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ChangeType.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ClientLibraryDestination.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ClientLibraryOrganization.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ClientLibrarySettings.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/CommonLanguageSettings.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ConfigChange.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Context.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ContextRule.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Control.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/CppSettings.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/CustomHttpPattern.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/BucketOptions.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/BucketOptions/Explicit.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/BucketOptions/Exponential.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/BucketOptions/Linear.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/Exemplar.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/Range.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Documentation.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/DocumentationRule.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/DotnetSettings.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Endpoint.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ErrorReason.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/FieldBehavior.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/FieldInfo.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/FieldInfo/Format.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/FieldPolicy.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/GoSettings.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Http.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/HttpBody.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/HttpRule.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/JavaSettings.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/JwtLocation.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/LabelDescriptor.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/LabelDescriptor/ValueType.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/LaunchStage.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/LogDescriptor.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Logging.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Logging/LoggingDestination.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MethodPolicy.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MethodSettings.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MethodSettings/LongRunning.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Metric.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricDescriptor.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricDescriptor/MetricDescriptorMetadata.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricDescriptor/MetricDescriptorMetadata/TimeSeriesResourceHierarchyLevel.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricDescriptor/MetricKind.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricDescriptor/ValueType.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricRule.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MonitoredResource.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MonitoredResourceDescriptor.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MonitoredResourceMetadata.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Monitoring.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Monitoring/MonitoringDestination.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/NodeSettings.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/OAuthRequirements.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Page.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/PhpSettings.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ProjectProperties.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Property.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Property/PropertyType.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Publishing.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/PythonSettings.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/PythonSettings/ExperimentalFeatures.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Quota.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/QuotaLimit.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ResourceDescriptor.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ResourceDescriptor/History.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ResourceDescriptor/Style.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ResourceReference.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/RoutingParameter.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/RoutingRule.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/RubySettings.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/SelectiveGapicGeneration.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Service.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/SourceInfo.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/SystemParameter.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/SystemParameterRule.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/SystemParameters.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/TypeReference.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Usage.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/UsageRule.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Visibility.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/VisibilityRule.php delete mode 100644 owl-bot-staging/CommonProtos/extendedoperations/proto/src/GPBMetadata/Google/Cloud/ExtendedOperations.php delete mode 100644 owl-bot-staging/CommonProtos/extendedoperations/proto/src/Google/Cloud/OperationResponseMapping.php delete mode 100644 owl-bot-staging/CommonProtos/iam/proto/src/GPBMetadata/Google/Iam/V1/IamPolicy.php delete mode 100644 owl-bot-staging/CommonProtos/iam/proto/src/GPBMetadata/Google/Iam/V1/Logging/AuditData.php delete mode 100644 owl-bot-staging/CommonProtos/iam/proto/src/GPBMetadata/Google/Iam/V1/Options.php delete mode 100644 owl-bot-staging/CommonProtos/iam/proto/src/GPBMetadata/Google/Iam/V1/Policy.php delete mode 100644 owl-bot-staging/CommonProtos/iam/proto/src/GPBMetadata/Google/Iam/V1/ResourcePolicyMember.php delete mode 100644 owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/AuditConfig.php delete mode 100644 owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/AuditConfigDelta.php delete mode 100644 owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/AuditConfigDelta/Action.php delete mode 100644 owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/AuditLogConfig.php delete mode 100644 owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/AuditLogConfig/LogType.php delete mode 100644 owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/Binding.php delete mode 100644 owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/BindingDelta.php delete mode 100644 owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/BindingDelta/Action.php delete mode 100644 owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/GetIamPolicyRequest.php delete mode 100644 owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/GetPolicyOptions.php delete mode 100644 owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/Policy.php delete mode 100644 owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/PolicyDelta.php delete mode 100644 owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/ResourcePolicyMember.php delete mode 100644 owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/SetIamPolicyRequest.php delete mode 100644 owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/TestIamPermissionsRequest.php delete mode 100644 owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/TestIamPermissionsResponse.php delete mode 100644 owl-bot-staging/CommonProtos/iam/proto/src/Google/Iam/V1/Logging/AuditData.php delete mode 100644 owl-bot-staging/CommonProtos/iamlogging/proto/src/GPBMetadata/Google/Iam/V1/Logging/AuditData.php delete mode 100644 owl-bot-staging/CommonProtos/iamlogging/proto/src/Google/Iam/V1/Logging/AuditData.php delete mode 100644 owl-bot-staging/CommonProtos/location/proto/src/GPBMetadata/Google/Cloud/Location/Locations.php delete mode 100644 owl-bot-staging/CommonProtos/location/proto/src/Google/Cloud/Location/GetLocationRequest.php delete mode 100644 owl-bot-staging/CommonProtos/location/proto/src/Google/Cloud/Location/ListLocationsRequest.php delete mode 100644 owl-bot-staging/CommonProtos/location/proto/src/Google/Cloud/Location/ListLocationsResponse.php delete mode 100644 owl-bot-staging/CommonProtos/location/proto/src/Google/Cloud/Location/Location.php delete mode 100644 owl-bot-staging/CommonProtos/logging/proto/src/GPBMetadata/Google/Logging/Type/HttpRequest.php delete mode 100644 owl-bot-staging/CommonProtos/logging/proto/src/GPBMetadata/Google/Logging/Type/LogSeverity.php delete mode 100644 owl-bot-staging/CommonProtos/logging/proto/src/Google/Cloud/Logging/Type/HttpRequest.php delete mode 100644 owl-bot-staging/CommonProtos/logging/proto/src/Google/Cloud/Logging/Type/LogSeverity.php delete mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/GPBMetadata/Google/Rpc/Code.php delete mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/GPBMetadata/Google/Rpc/Context/AttributeContext.php delete mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/GPBMetadata/Google/Rpc/Context/AuditContext.php delete mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/GPBMetadata/Google/Rpc/ErrorDetails.php delete mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/GPBMetadata/Google/Rpc/Status.php delete mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/BadRequest.php delete mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/BadRequest/FieldViolation.php delete mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Code.php delete mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext.php delete mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Api.php delete mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Auth.php delete mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Peer.php delete mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Request.php delete mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Resource.php delete mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Response.php delete mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AuditContext.php delete mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/DebugInfo.php delete mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/ErrorInfo.php delete mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Help.php delete mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Help/Link.php delete mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/LocalizedMessage.php delete mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/PreconditionFailure.php delete mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/PreconditionFailure/Violation.php delete mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/QuotaFailure.php delete mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/QuotaFailure/Violation.php delete mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/RequestInfo.php delete mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/ResourceInfo.php delete mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/RetryInfo.php delete mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Status.php delete mode 100644 owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/CalendarPeriod.php delete mode 100644 owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Color.php delete mode 100644 owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Date.php delete mode 100644 owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Datetime.php delete mode 100644 owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Dayofweek.php delete mode 100644 owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Decimal.php delete mode 100644 owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Expr.php delete mode 100644 owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Fraction.php delete mode 100644 owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Interval.php delete mode 100644 owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Latlng.php delete mode 100644 owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/LocalizedText.php delete mode 100644 owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Money.php delete mode 100644 owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Month.php delete mode 100644 owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/PhoneNumber.php delete mode 100644 owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/PostalAddress.php delete mode 100644 owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Quaternion.php delete mode 100644 owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Timeofday.php delete mode 100644 owl-bot-staging/CommonProtos/type/proto/src/Google/Type/CalendarPeriod.php delete mode 100644 owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Color.php delete mode 100644 owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Date.php delete mode 100644 owl-bot-staging/CommonProtos/type/proto/src/Google/Type/DateTime.php delete mode 100644 owl-bot-staging/CommonProtos/type/proto/src/Google/Type/DayOfWeek.php delete mode 100644 owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Decimal.php delete mode 100644 owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Expr.php delete mode 100644 owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Fraction.php delete mode 100644 owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Interval.php delete mode 100644 owl-bot-staging/CommonProtos/type/proto/src/Google/Type/LatLng.php delete mode 100644 owl-bot-staging/CommonProtos/type/proto/src/Google/Type/LocalizedText.php delete mode 100644 owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Money.php delete mode 100644 owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Month.php delete mode 100644 owl-bot-staging/CommonProtos/type/proto/src/Google/Type/PhoneNumber.php delete mode 100644 owl-bot-staging/CommonProtos/type/proto/src/Google/Type/PhoneNumber/ShortCode.php delete mode 100644 owl-bot-staging/CommonProtos/type/proto/src/Google/Type/PostalAddress.php delete mode 100644 owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Quaternion.php delete mode 100644 owl-bot-staging/CommonProtos/type/proto/src/Google/Type/TimeOfDay.php delete mode 100644 owl-bot-staging/CommonProtos/type/proto/src/Google/Type/TimeZone.php diff --git a/CommonProtos/metadata/Api/Backend.php b/CommonProtos/metadata/Api/Backend.php index ff0a49db79c1..9808979ecdbc 100644 --- a/CommonProtos/metadata/Api/Backend.php +++ b/CommonProtos/metadata/Api/Backend.php @@ -15,7 +15,7 @@ public static function initOnce() { return; } $pool->internalAddGeneratedFile( - "\x0A\x86\x06\x0A\x18google/api/backend.proto\x12\x0Agoogle.api\"1\x0A\x07Backend\x12&\x0A\x05rules\x18\x01 \x03(\x0B2\x17.google.api.BackendRule\"\xB2\x04\x0A\x0BBackendRule\x12\x10\x0A\x08selector\x18\x01 \x01(\x09\x12\x0F\x0A\x07address\x18\x02 \x01(\x09\x12\x10\x0A\x08deadline\x18\x03 \x01(\x01\x12\x18\x0A\x0Cmin_deadline\x18\x04 \x01(\x01B\x02\x18\x01\x12\x1A\x0A\x12operation_deadline\x18\x05 \x01(\x01\x12A\x0A\x10path_translation\x18\x06 \x01(\x0E2'.google.api.BackendRule.PathTranslation\x12\x16\x0A\x0Cjwt_audience\x18\x07 \x01(\x09H\x00\x12\x16\x0A\x0Cdisable_auth\x18\x08 \x01(\x08H\x00\x12\x10\x0A\x08protocol\x18\x09 \x01(\x09\x12^\x0A\x1Doverrides_by_request_protocol\x18\x0A \x03(\x0B27.google.api.BackendRule.OverridesByRequestProtocolEntry\x1AZ\x0A\x1FOverridesByRequestProtocolEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12&\x0A\x05value\x18\x02 \x01(\x0B2\x17.google.api.BackendRule:\x028\x01\"e\x0A\x0FPathTranslation\x12 \x0A\x1CPATH_TRANSLATION_UNSPECIFIED\x10\x00\x12\x14\x0A\x10CONSTANT_ADDRESS\x10\x01\x12\x1A\x0A\x16APPEND_PATH_TO_ADDRESS\x10\x02B\x10\x0A\x0EauthenticationBn\x0A\x0Ecom.google.apiB\x0CBackendProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xA2\x02\x04GAPIb\x06proto3" + "\x0A\xA5\x06\x0A\x18google/api/backend.proto\x12\x0Agoogle.api\"1\x0A\x07Backend\x12&\x0A\x05rules\x18\x01 \x03(\x0B2\x17.google.api.BackendRule\"\xD1\x04\x0A\x0BBackendRule\x12\x10\x0A\x08selector\x18\x01 \x01(\x09\x12\x0F\x0A\x07address\x18\x02 \x01(\x09\x12\x10\x0A\x08deadline\x18\x03 \x01(\x01\x12\x18\x0A\x0Cmin_deadline\x18\x04 \x01(\x01B\x02\x18\x01\x12\x1A\x0A\x12operation_deadline\x18\x05 \x01(\x01\x12A\x0A\x10path_translation\x18\x06 \x01(\x0E2'.google.api.BackendRule.PathTranslation\x12\x16\x0A\x0Cjwt_audience\x18\x07 \x01(\x09H\x00\x12\x16\x0A\x0Cdisable_auth\x18\x08 \x01(\x08H\x00\x12\x10\x0A\x08protocol\x18\x09 \x01(\x09\x12^\x0A\x1Doverrides_by_request_protocol\x18\x0A \x03(\x0B27.google.api.BackendRule.OverridesByRequestProtocolEntry\x12\x1D\x0A\x15load_balancing_policy\x18\x0B \x01(\x09\x1AZ\x0A\x1FOverridesByRequestProtocolEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12&\x0A\x05value\x18\x02 \x01(\x0B2\x17.google.api.BackendRule:\x028\x01\"e\x0A\x0FPathTranslation\x12 \x0A\x1CPATH_TRANSLATION_UNSPECIFIED\x10\x00\x12\x14\x0A\x10CONSTANT_ADDRESS\x10\x01\x12\x1A\x0A\x16APPEND_PATH_TO_ADDRESS\x10\x02B\x10\x0A\x0EauthenticationBn\x0A\x0Ecom.google.apiB\x0CBackendProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xA2\x02\x04GAPIb\x06proto3" , true); static::$is_initialized = true; diff --git a/CommonProtos/metadata/Api/Client.php b/CommonProtos/metadata/Api/Client.php index b9bfd8c76584..40704b602b2f 100644 --- a/CommonProtos/metadata/Api/Client.php +++ b/CommonProtos/metadata/Api/Client.php @@ -17,7 +17,7 @@ public static function initOnce() { \GPBMetadata\Google\Api\LaunchStage::initOnce(); \GPBMetadata\Google\Protobuf\Duration::initOnce(); $pool->internalAddGeneratedFile( - "\x0A\xF9\x1A\x0A\x17google/api/client.proto\x12\x0Agoogle.api\x1A google/protobuf/descriptor.proto\x1A\x1Egoogle/protobuf/duration.proto\"\xBE\x01\x0A\x16CommonLanguageSettings\x12\x1E\x0A\x12reference_docs_uri\x18\x01 \x01(\x09B\x02\x18\x01\x12:\x0A\x0Cdestinations\x18\x02 \x03(\x0E2\$.google.api.ClientLibraryDestination\x12H\x0A\x1Aselective_gapic_generation\x18\x03 \x01(\x0B2\$.google.api.SelectiveGapicGeneration\"\xFB\x03\x0A\x15ClientLibrarySettings\x12\x0F\x0A\x07version\x18\x01 \x01(\x09\x12-\x0A\x0Claunch_stage\x18\x02 \x01(\x0E2\x17.google.api.LaunchStage\x12\x1A\x0A\x12rest_numeric_enums\x18\x03 \x01(\x08\x12/\x0A\x0Djava_settings\x18\x15 \x01(\x0B2\x18.google.api.JavaSettings\x12-\x0A\x0Ccpp_settings\x18\x16 \x01(\x0B2\x17.google.api.CppSettings\x12-\x0A\x0Cphp_settings\x18\x17 \x01(\x0B2\x17.google.api.PhpSettings\x123\x0A\x0Fpython_settings\x18\x18 \x01(\x0B2\x1A.google.api.PythonSettings\x12/\x0A\x0Dnode_settings\x18\x19 \x01(\x0B2\x18.google.api.NodeSettings\x123\x0A\x0Fdotnet_settings\x18\x1A \x01(\x0B2\x1A.google.api.DotnetSettings\x12/\x0A\x0Druby_settings\x18\x1B \x01(\x0B2\x18.google.api.RubySettings\x12+\x0A\x0Bgo_settings\x18\x1C \x01(\x0B2\x16.google.api.GoSettings\"\xA8\x03\x0A\x0APublishing\x123\x0A\x0Fmethod_settings\x18\x02 \x03(\x0B2\x1A.google.api.MethodSettings\x12\x15\x0A\x0Dnew_issue_uri\x18e \x01(\x09\x12\x19\x0A\x11documentation_uri\x18f \x01(\x09\x12\x16\x0A\x0Eapi_short_name\x18g \x01(\x09\x12\x14\x0A\x0Cgithub_label\x18h \x01(\x09\x12\x1E\x0A\x16codeowner_github_teams\x18i \x03(\x09\x12\x16\x0A\x0Edoc_tag_prefix\x18j \x01(\x09\x12;\x0A\x0Corganization\x18k \x01(\x0E2%.google.api.ClientLibraryOrganization\x12;\x0A\x10library_settings\x18m \x03(\x0B2!.google.api.ClientLibrarySettings\x12)\x0A!proto_reference_documentation_uri\x18n \x01(\x09\x12(\x0A rest_reference_documentation_uri\x18o \x01(\x09\"\xE3\x01\x0A\x0CJavaSettings\x12\x17\x0A\x0Flibrary_package\x18\x01 \x01(\x09\x12L\x0A\x13service_class_names\x18\x02 \x03(\x0B2/.google.api.JavaSettings.ServiceClassNamesEntry\x122\x0A\x06common\x18\x03 \x01(\x0B2\".google.api.CommonLanguageSettings\x1A8\x0A\x16ServiceClassNamesEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"A\x0A\x0BCppSettings\x122\x0A\x06common\x18\x01 \x01(\x0B2\".google.api.CommonLanguageSettings\"A\x0A\x0BPhpSettings\x122\x0A\x06common\x18\x01 \x01(\x0B2\".google.api.CommonLanguageSettings\"\x9B\x02\x0A\x0EPythonSettings\x122\x0A\x06common\x18\x01 \x01(\x0B2\".google.api.CommonLanguageSettings\x12N\x0A\x15experimental_features\x18\x02 \x01(\x0B2/.google.api.PythonSettings.ExperimentalFeatures\x1A\x84\x01\x0A\x14ExperimentalFeatures\x12\x1D\x0A\x15rest_async_io_enabled\x18\x01 \x01(\x08\x12'\x0A\x1Fprotobuf_pythonic_types_enabled\x18\x02 \x01(\x08\x12\$\x0A\x1Cunversioned_package_disabled\x18\x03 \x01(\x08\"B\x0A\x0CNodeSettings\x122\x0A\x06common\x18\x01 \x01(\x0B2\".google.api.CommonLanguageSettings\"\xAA\x03\x0A\x0EDotnetSettings\x122\x0A\x06common\x18\x01 \x01(\x0B2\".google.api.CommonLanguageSettings\x12I\x0A\x10renamed_services\x18\x02 \x03(\x0B2/.google.api.DotnetSettings.RenamedServicesEntry\x12K\x0A\x11renamed_resources\x18\x03 \x03(\x0B20.google.api.DotnetSettings.RenamedResourcesEntry\x12\x19\x0A\x11ignored_resources\x18\x04 \x03(\x09\x12 \x0A\x18forced_namespace_aliases\x18\x05 \x03(\x09\x12\x1E\x0A\x16handwritten_signatures\x18\x06 \x03(\x09\x1A6\x0A\x14RenamedServicesEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\x1A7\x0A\x15RenamedResourcesEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"B\x0A\x0CRubySettings\x122\x0A\x06common\x18\x01 \x01(\x0B2\".google.api.CommonLanguageSettings\"\xBF\x01\x0A\x0AGoSettings\x122\x0A\x06common\x18\x01 \x01(\x0B2\".google.api.CommonLanguageSettings\x12E\x0A\x10renamed_services\x18\x02 \x03(\x0B2+.google.api.GoSettings.RenamedServicesEntry\x1A6\x0A\x14RenamedServicesEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"\xCF\x02\x0A\x0EMethodSettings\x12\x10\x0A\x08selector\x18\x01 \x01(\x09\x12<\x0A\x0Clong_running\x18\x02 \x01(\x0B2&.google.api.MethodSettings.LongRunning\x12\x1D\x0A\x15auto_populated_fields\x18\x03 \x03(\x09\x1A\xCD\x01\x0A\x0BLongRunning\x125\x0A\x12initial_poll_delay\x18\x01 \x01(\x0B2\x19.google.protobuf.Duration\x12\x1D\x0A\x15poll_delay_multiplier\x18\x02 \x01(\x02\x121\x0A\x0Emax_poll_delay\x18\x03 \x01(\x0B2\x19.google.protobuf.Duration\x125\x0A\x12total_poll_timeout\x18\x04 \x01(\x0B2\x19.google.protobuf.Duration\"Q\x0A\x18SelectiveGapicGeneration\x12\x0F\x0A\x07methods\x18\x01 \x03(\x09\x12\$\x0A\x1Cgenerate_omitted_as_internal\x18\x02 \x01(\x08*\xA3\x01\x0A\x19ClientLibraryOrganization\x12+\x0A'CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED\x10\x00\x12\x09\x0A\x05CLOUD\x10\x01\x12\x07\x0A\x03ADS\x10\x02\x12\x0A\x0A\x06PHOTOS\x10\x03\x12\x0F\x0A\x0BSTREET_VIEW\x10\x04\x12\x0C\x0A\x08SHOPPING\x10\x05\x12\x07\x0A\x03GEO\x10\x06\x12\x11\x0A\x0DGENERATIVE_AI\x10\x07*g\x0A\x18ClientLibraryDestination\x12*\x0A&CLIENT_LIBRARY_DESTINATION_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06GITHUB\x10\x0A\x12\x13\x0A\x0FPACKAGE_MANAGER\x10\x14Bi\x0A\x0Ecom.google.apiB\x0BClientProtoP\x01ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\xA2\x02\x04GAPIb\x06proto3" + "\x0A\x95!\x0A\x17google/api/client.proto\x12\x0Agoogle.api\x1A google/protobuf/descriptor.proto\x1A\x1Egoogle/protobuf/duration.proto\"\xBE\x01\x0A\x16CommonLanguageSettings\x12\x1E\x0A\x12reference_docs_uri\x18\x01 \x01(\x09B\x02\x18\x01\x12:\x0A\x0Cdestinations\x18\x02 \x03(\x0E2\$.google.api.ClientLibraryDestination\x12H\x0A\x1Aselective_gapic_generation\x18\x03 \x01(\x0B2\$.google.api.SelectiveGapicGeneration\"\xFB\x03\x0A\x15ClientLibrarySettings\x12\x0F\x0A\x07version\x18\x01 \x01(\x09\x12-\x0A\x0Claunch_stage\x18\x02 \x01(\x0E2\x17.google.api.LaunchStage\x12\x1A\x0A\x12rest_numeric_enums\x18\x03 \x01(\x08\x12/\x0A\x0Djava_settings\x18\x15 \x01(\x0B2\x18.google.api.JavaSettings\x12-\x0A\x0Ccpp_settings\x18\x16 \x01(\x0B2\x17.google.api.CppSettings\x12-\x0A\x0Cphp_settings\x18\x17 \x01(\x0B2\x17.google.api.PhpSettings\x123\x0A\x0Fpython_settings\x18\x18 \x01(\x0B2\x1A.google.api.PythonSettings\x12/\x0A\x0Dnode_settings\x18\x19 \x01(\x0B2\x18.google.api.NodeSettings\x123\x0A\x0Fdotnet_settings\x18\x1A \x01(\x0B2\x1A.google.api.DotnetSettings\x12/\x0A\x0Druby_settings\x18\x1B \x01(\x0B2\x18.google.api.RubySettings\x12+\x0A\x0Bgo_settings\x18\x1C \x01(\x0B2\x16.google.api.GoSettings\"\xA8\x03\x0A\x0APublishing\x123\x0A\x0Fmethod_settings\x18\x02 \x03(\x0B2\x1A.google.api.MethodSettings\x12\x15\x0A\x0Dnew_issue_uri\x18e \x01(\x09\x12\x19\x0A\x11documentation_uri\x18f \x01(\x09\x12\x16\x0A\x0Eapi_short_name\x18g \x01(\x09\x12\x14\x0A\x0Cgithub_label\x18h \x01(\x09\x12\x1E\x0A\x16codeowner_github_teams\x18i \x03(\x09\x12\x16\x0A\x0Edoc_tag_prefix\x18j \x01(\x09\x12;\x0A\x0Corganization\x18k \x01(\x0E2%.google.api.ClientLibraryOrganization\x12;\x0A\x10library_settings\x18m \x03(\x0B2!.google.api.ClientLibrarySettings\x12)\x0A!proto_reference_documentation_uri\x18n \x01(\x09\x12(\x0A rest_reference_documentation_uri\x18o \x01(\x09\"\xE3\x01\x0A\x0CJavaSettings\x12\x17\x0A\x0Flibrary_package\x18\x01 \x01(\x09\x12L\x0A\x13service_class_names\x18\x02 \x03(\x0B2/.google.api.JavaSettings.ServiceClassNamesEntry\x122\x0A\x06common\x18\x03 \x01(\x0B2\".google.api.CommonLanguageSettings\x1A8\x0A\x16ServiceClassNamesEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"A\x0A\x0BCppSettings\x122\x0A\x06common\x18\x01 \x01(\x0B2\".google.api.CommonLanguageSettings\"Z\x0A\x0BPhpSettings\x122\x0A\x06common\x18\x01 \x01(\x0B2\".google.api.CommonLanguageSettings\x12\x17\x0A\x0Flibrary_package\x18\x02 \x01(\x09\"\x9B\x02\x0A\x0EPythonSettings\x122\x0A\x06common\x18\x01 \x01(\x0B2\".google.api.CommonLanguageSettings\x12N\x0A\x15experimental_features\x18\x02 \x01(\x0B2/.google.api.PythonSettings.ExperimentalFeatures\x1A\x84\x01\x0A\x14ExperimentalFeatures\x12\x1D\x0A\x15rest_async_io_enabled\x18\x01 \x01(\x08\x12'\x0A\x1Fprotobuf_pythonic_types_enabled\x18\x02 \x01(\x08\x12\$\x0A\x1Cunversioned_package_disabled\x18\x03 \x01(\x08\"B\x0A\x0CNodeSettings\x122\x0A\x06common\x18\x01 \x01(\x0B2\".google.api.CommonLanguageSettings\"\xAA\x03\x0A\x0EDotnetSettings\x122\x0A\x06common\x18\x01 \x01(\x0B2\".google.api.CommonLanguageSettings\x12I\x0A\x10renamed_services\x18\x02 \x03(\x0B2/.google.api.DotnetSettings.RenamedServicesEntry\x12K\x0A\x11renamed_resources\x18\x03 \x03(\x0B20.google.api.DotnetSettings.RenamedResourcesEntry\x12\x19\x0A\x11ignored_resources\x18\x04 \x03(\x09\x12 \x0A\x18forced_namespace_aliases\x18\x05 \x03(\x09\x12\x1E\x0A\x16handwritten_signatures\x18\x06 \x03(\x09\x1A6\x0A\x14RenamedServicesEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\x1A7\x0A\x15RenamedResourcesEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"B\x0A\x0CRubySettings\x122\x0A\x06common\x18\x01 \x01(\x0B2\".google.api.CommonLanguageSettings\"\xBF\x01\x0A\x0AGoSettings\x122\x0A\x06common\x18\x01 \x01(\x0B2\".google.api.CommonLanguageSettings\x12E\x0A\x10renamed_services\x18\x02 \x03(\x0B2+.google.api.GoSettings.RenamedServicesEntry\x1A6\x0A\x14RenamedServicesEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"\x82\x03\x0A\x0EMethodSettings\x12\x10\x0A\x08selector\x18\x01 \x01(\x09\x12<\x0A\x0Clong_running\x18\x02 \x01(\x0B2&.google.api.MethodSettings.LongRunning\x12\x1D\x0A\x15auto_populated_fields\x18\x03 \x03(\x09\x121\x0A\x08batching\x18\x04 \x01(\x0B2\x1F.google.api.BatchingConfigProto\x1A\xCD\x01\x0A\x0BLongRunning\x125\x0A\x12initial_poll_delay\x18\x01 \x01(\x0B2\x19.google.protobuf.Duration\x12\x1D\x0A\x15poll_delay_multiplier\x18\x02 \x01(\x02\x121\x0A\x0Emax_poll_delay\x18\x03 \x01(\x0B2\x19.google.protobuf.Duration\x125\x0A\x12total_poll_timeout\x18\x04 \x01(\x0B2\x19.google.protobuf.Duration\"Q\x0A\x18SelectiveGapicGeneration\x12\x0F\x0A\x07methods\x18\x01 \x03(\x09\x12\$\x0A\x1Cgenerate_omitted_as_internal\x18\x02 \x01(\x08\"\x8B\x01\x0A\x13BatchingConfigProto\x125\x0A\x0Athresholds\x18\x01 \x01(\x0B2!.google.api.BatchingSettingsProto\x12=\x0A\x10batch_descriptor\x18\x02 \x01(\x0B2#.google.api.BatchingDescriptorProto\"\xEB\x02\x0A\x15BatchingSettingsProto\x12\x1F\x0A\x17element_count_threshold\x18\x01 \x01(\x05\x12\x1E\x0A\x16request_byte_threshold\x18\x02 \x01(\x03\x122\x0A\x0Fdelay_threshold\x18\x03 \x01(\x0B2\x19.google.protobuf.Duration\x12\x1B\x0A\x13element_count_limit\x18\x04 \x01(\x05\x12\x1A\x0A\x12request_byte_limit\x18\x05 \x01(\x05\x12\"\x0A\x1Aflow_control_element_limit\x18\x06 \x01(\x05\x12\x1F\x0A\x17flow_control_byte_limit\x18\x07 \x01(\x05\x12_\x0A\$flow_control_limit_exceeded_behavior\x18\x08 \x01(\x0E21.google.api.FlowControlLimitExceededBehaviorProto\"i\x0A\x17BatchingDescriptorProto\x12\x15\x0A\x0Dbatched_field\x18\x01 \x01(\x09\x12\x1C\x0A\x14discriminator_fields\x18\x02 \x03(\x09\x12\x19\x0A\x11subresponse_field\x18\x03 \x01(\x09*\xA3\x01\x0A\x19ClientLibraryOrganization\x12+\x0A'CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED\x10\x00\x12\x09\x0A\x05CLOUD\x10\x01\x12\x07\x0A\x03ADS\x10\x02\x12\x0A\x0A\x06PHOTOS\x10\x03\x12\x0F\x0A\x0BSTREET_VIEW\x10\x04\x12\x0C\x0A\x08SHOPPING\x10\x05\x12\x07\x0A\x03GEO\x10\x06\x12\x11\x0A\x0DGENERATIVE_AI\x10\x07*g\x0A\x18ClientLibraryDestination\x12*\x0A&CLIENT_LIBRARY_DESTINATION_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06GITHUB\x10\x0A\x12\x13\x0A\x0FPACKAGE_MANAGER\x10\x14*g\x0A%FlowControlLimitExceededBehaviorProto\x12\x12\x0A\x0EUNSET_BEHAVIOR\x10\x00\x12\x13\x0A\x0FTHROW_EXCEPTION\x10\x01\x12\x09\x0A\x05BLOCK\x10\x02\x12\x0A\x0A\x06IGNORE\x10\x03Bi\x0A\x0Ecom.google.apiB\x0BClientProtoP\x01ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\xA2\x02\x04GAPIb\x06proto3" , true); static::$is_initialized = true; diff --git a/CommonProtos/metadata/Api/ErrorReason.php b/CommonProtos/metadata/Api/ErrorReason.php index cf1a058fd5cb..d38f6fcc5c41 100644 --- a/CommonProtos/metadata/Api/ErrorReason.php +++ b/CommonProtos/metadata/Api/ErrorReason.php @@ -15,7 +15,7 @@ public static function initOnce() { return; } $pool->internalAddGeneratedFile( - "\x0A\xE2\x08\x0A\x1Dgoogle/api/error_reason.proto\x12\x0Agoogle.api*\xBA\x07\x0A\x0BErrorReason\x12\x1C\x0A\x18ERROR_REASON_UNSPECIFIED\x10\x00\x12\x14\x0A\x10SERVICE_DISABLED\x10\x01\x12\x14\x0A\x10BILLING_DISABLED\x10\x02\x12\x13\x0A\x0FAPI_KEY_INVALID\x10\x03\x12\x1B\x0A\x17API_KEY_SERVICE_BLOCKED\x10\x04\x12!\x0A\x1DAPI_KEY_HTTP_REFERRER_BLOCKED\x10\x07\x12\x1E\x0A\x1AAPI_KEY_IP_ADDRESS_BLOCKED\x10\x08\x12\x1F\x0A\x1BAPI_KEY_ANDROID_APP_BLOCKED\x10\x09\x12\x1B\x0A\x17API_KEY_IOS_APP_BLOCKED\x10\x0D\x12\x17\x0A\x13RATE_LIMIT_EXCEEDED\x10\x05\x12\x1B\x0A\x17RESOURCE_QUOTA_EXCEEDED\x10\x06\x12 \x0A\x1CLOCATION_TAX_POLICY_VIOLATED\x10\x0A\x12\x17\x0A\x13USER_PROJECT_DENIED\x10\x0B\x12\x16\x0A\x12CONSUMER_SUSPENDED\x10\x0C\x12\x14\x0A\x10CONSUMER_INVALID\x10\x0E\x12\x1C\x0A\x18SECURITY_POLICY_VIOLATED\x10\x0F\x12\x18\x0A\x14ACCESS_TOKEN_EXPIRED\x10\x10\x12#\x0A\x1FACCESS_TOKEN_SCOPE_INSUFFICIENT\x10\x11\x12\x19\x0A\x15ACCOUNT_STATE_INVALID\x10\x12\x12!\x0A\x1DACCESS_TOKEN_TYPE_UNSUPPORTED\x10\x13\x12\x17\x0A\x13CREDENTIALS_MISSING\x10\x14\x12\x1C\x0A\x18RESOURCE_PROJECT_INVALID\x10\x15\x12\x1A\x0A\x16SESSION_COOKIE_INVALID\x10\x17\x12\x19\x0A\x15USER_BLOCKED_BY_ADMIN\x10\x18\x12'\x0A#RESOURCE_USAGE_RESTRICTION_VIOLATED\x10\x19\x12 \x0A\x1CSYSTEM_PARAMETER_UNSUPPORTED\x10\x1A\x12\x1D\x0A\x19ORG_RESTRICTION_VIOLATION\x10\x1B\x12\"\x0A\x1EORG_RESTRICTION_HEADER_INVALID\x10\x1C\x12\x17\x0A\x13SERVICE_NOT_VISIBLE\x10\x1D\x12\x11\x0A\x0DGCP_SUSPENDED\x10\x1E\x12\x1C\x0A\x18LOCATION_POLICY_VIOLATED\x10\x1F\x12\x12\x0A\x0EMISSING_ORIGIN\x10!\x12\x1A\x0A\x16OVERLOADED_CREDENTIALS\x10\"Bp\x0A\x0Ecom.google.apiB\x10ErrorReasonProtoP\x01ZCgoogle.golang.org/genproto/googleapis/api/error_reason;error_reason\xA2\x02\x04GAPIb\x06proto3" + "\x0A\xBA\x0B\x0A\x1Dgoogle/api/error_reason.proto\x12\x0Agoogle.api*\x92\x0A\x0A\x0BErrorReason\x12\x1C\x0A\x18ERROR_REASON_UNSPECIFIED\x10\x00\x12\x14\x0A\x10SERVICE_DISABLED\x10\x01\x12\x14\x0A\x10BILLING_DISABLED\x10\x02\x12\x13\x0A\x0FAPI_KEY_INVALID\x10\x03\x12\x1B\x0A\x17API_KEY_SERVICE_BLOCKED\x10\x04\x12!\x0A\x1DAPI_KEY_HTTP_REFERRER_BLOCKED\x10\x07\x12\x1E\x0A\x1AAPI_KEY_IP_ADDRESS_BLOCKED\x10\x08\x12\x1F\x0A\x1BAPI_KEY_ANDROID_APP_BLOCKED\x10\x09\x12\x1B\x0A\x17API_KEY_IOS_APP_BLOCKED\x10\x0D\x12\x17\x0A\x13RATE_LIMIT_EXCEEDED\x10\x05\x12\x1B\x0A\x17RESOURCE_QUOTA_EXCEEDED\x10\x06\x12 \x0A\x1CLOCATION_TAX_POLICY_VIOLATED\x10\x0A\x12\x17\x0A\x13USER_PROJECT_DENIED\x10\x0B\x12\x16\x0A\x12CONSUMER_SUSPENDED\x10\x0C\x12\x14\x0A\x10CONSUMER_INVALID\x10\x0E\x12\x1C\x0A\x18SECURITY_POLICY_VIOLATED\x10\x0F\x12\x18\x0A\x14ACCESS_TOKEN_EXPIRED\x10\x10\x12#\x0A\x1FACCESS_TOKEN_SCOPE_INSUFFICIENT\x10\x11\x12\x19\x0A\x15ACCOUNT_STATE_INVALID\x10\x12\x12!\x0A\x1DACCESS_TOKEN_TYPE_UNSUPPORTED\x10\x13\x12\x17\x0A\x13CREDENTIALS_MISSING\x10\x14\x12\x1C\x0A\x18RESOURCE_PROJECT_INVALID\x10\x15\x12\x1A\x0A\x16SESSION_COOKIE_INVALID\x10\x17\x12\x19\x0A\x15USER_BLOCKED_BY_ADMIN\x10\x18\x12'\x0A#RESOURCE_USAGE_RESTRICTION_VIOLATED\x10\x19\x12 \x0A\x1CSYSTEM_PARAMETER_UNSUPPORTED\x10\x1A\x12\x1D\x0A\x19ORG_RESTRICTION_VIOLATION\x10\x1B\x12\"\x0A\x1EORG_RESTRICTION_HEADER_INVALID\x10\x1C\x12\x17\x0A\x13SERVICE_NOT_VISIBLE\x10\x1D\x12\x11\x0A\x0DGCP_SUSPENDED\x10\x1E\x12\x1C\x0A\x18LOCATION_POLICY_VIOLATED\x10\x1F\x12\x12\x0A\x0EMISSING_ORIGIN\x10!\x12\x1A\x0A\x16OVERLOADED_CREDENTIALS\x10\"\x12 \x0A\x1CLOCATION_ORG_POLICY_VIOLATED\x10#\x12\x1B\x0A\x17TLS_ORG_POLICY_VIOLATED\x10\$\x12\x1B\x0A\x17EMULATOR_QUOTA_EXCEEDED\x10&\x12\"\x0A\x1ECREDENTIAL_ANDROID_APP_INVALID\x10'\x12\x19\x0A\x15IAM_PERMISSION_DENIED\x10)\x12\x15\x0A\x11JWT_TOKEN_INVALID\x10*\x12\x1F\x0A\x1BCREDENTIAL_TYPE_UNSUPPORTED\x10+\x12\x1C\x0A\x18ACCOUNT_TYPE_UNSUPPORTED\x10,\x12'\x0A#ENDPOINT_USAGE_RESTRICTION_VIOLATED\x10-\x12#\x0A\x1FTLS_CIPHER_RESTRICTION_VIOLATED\x10.\x12\x17\x0A\x13MCP_SERVER_DISABLED\x10/Bp\x0A\x0Ecom.google.apiB\x10ErrorReasonProtoP\x01ZCgoogle.golang.org/genproto/googleapis/api/error_reason;error_reason\xA2\x02\x04GAPIb\x06proto3" , true); static::$is_initialized = true; diff --git a/CommonProtos/src/Api/BackendRule.php b/CommonProtos/src/Api/BackendRule.php index 374c824bc399..63770f4953b8 100644 --- a/CommonProtos/src/Api/BackendRule.php +++ b/CommonProtos/src/Api/BackendRule.php @@ -65,6 +65,11 @@ class BackendRule extends \Google\Protobuf\Internal\Message */ protected $operation_deadline = 0.0; /** + * Path translation specifies how to combine the backend address with the + * request path in order to produce the appropriate forwarding URL for the + * request. See [PathTranslation][google.api.BackendRule.PathTranslation] for + * more details. + * * Generated from protobuf field .google.api.BackendRule.PathTranslation path_translation = 6; */ protected $path_translation = 0; @@ -95,6 +100,15 @@ class BackendRule extends \Google\Protobuf\Internal\Message * Generated from protobuf field map overrides_by_request_protocol = 10; */ private $overrides_by_request_protocol; + /** + * The load balancing policy used for connection to the application backend. + * Defined as an arbitrary string to accomondate custom load balancing + * policies supported by the underlying channel, but suggest most users use + * one of the standard policies, such as the default, "RoundRobin". + * + * Generated from protobuf field string load_balancing_policy = 11; + */ + protected $load_balancing_policy = ''; protected $authentication; /** @@ -132,6 +146,10 @@ class BackendRule extends \Google\Protobuf\Internal\Message * The number of seconds to wait for the completion of a long running * operation. The default is no deadline. * @type int $path_translation + * Path translation specifies how to combine the backend address with the + * request path in order to produce the appropriate forwarding URL for the + * request. See [PathTranslation][google.api.BackendRule.PathTranslation] for + * more details. * @type string $jwt_audience * The JWT audience is used when generating a JWT ID token for the backend. * This ID token will be added in the HTTP "authorization" header, and sent @@ -160,6 +178,11 @@ class BackendRule extends \Google\Protobuf\Internal\Message * for more details on the supported values. * @type array|\Google\Protobuf\Internal\MapField $overrides_by_request_protocol * The map between request protocol and the backend address. + * @type string $load_balancing_policy + * The load balancing policy used for connection to the application backend. + * Defined as an arbitrary string to accomondate custom load balancing + * policies supported by the underlying channel, but suggest most users use + * one of the standard policies, such as the default, "RoundRobin". * } */ public function __construct($data = NULL) { @@ -340,6 +363,11 @@ public function setOperationDeadline($var) } /** + * Path translation specifies how to combine the backend address with the + * request path in order to produce the appropriate forwarding URL for the + * request. See [PathTranslation][google.api.BackendRule.PathTranslation] for + * more details. + * * Generated from protobuf field .google.api.BackendRule.PathTranslation path_translation = 6; * @return int */ @@ -349,6 +377,11 @@ public function getPathTranslation() } /** + * Path translation specifies how to combine the backend address with the + * request path in order to produce the appropriate forwarding URL for the + * request. See [PathTranslation][google.api.BackendRule.PathTranslation] for + * more details. + * * Generated from protobuf field .google.api.BackendRule.PathTranslation path_translation = 6; * @param int $var * @return $this @@ -515,6 +548,38 @@ public function setOverridesByRequestProtocol($var) return $this; } + /** + * The load balancing policy used for connection to the application backend. + * Defined as an arbitrary string to accomondate custom load balancing + * policies supported by the underlying channel, but suggest most users use + * one of the standard policies, such as the default, "RoundRobin". + * + * Generated from protobuf field string load_balancing_policy = 11; + * @return string + */ + public function getLoadBalancingPolicy() + { + return $this->load_balancing_policy; + } + + /** + * The load balancing policy used for connection to the application backend. + * Defined as an arbitrary string to accomondate custom load balancing + * policies supported by the underlying channel, but suggest most users use + * one of the standard policies, such as the default, "RoundRobin". + * + * Generated from protobuf field string load_balancing_policy = 11; + * @param string $var + * @return $this + */ + public function setLoadBalancingPolicy($var) + { + GPBUtil::checkString($var, True); + $this->load_balancing_policy = $var; + + return $this; + } + /** * @return string */ diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/BatchingConfigProto.php b/CommonProtos/src/Api/BatchingConfigProto.php similarity index 100% rename from owl-bot-staging/CommonProtos/api/proto/src/Google/Api/BatchingConfigProto.php rename to CommonProtos/src/Api/BatchingConfigProto.php diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/BatchingDescriptorProto.php b/CommonProtos/src/Api/BatchingDescriptorProto.php similarity index 100% rename from owl-bot-staging/CommonProtos/api/proto/src/Google/Api/BatchingDescriptorProto.php rename to CommonProtos/src/Api/BatchingDescriptorProto.php diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/BatchingSettingsProto.php b/CommonProtos/src/Api/BatchingSettingsProto.php similarity index 100% rename from owl-bot-staging/CommonProtos/api/proto/src/Google/Api/BatchingSettingsProto.php rename to CommonProtos/src/Api/BatchingSettingsProto.php diff --git a/CommonProtos/src/Api/Control.php b/CommonProtos/src/Api/Control.php index b076b32efd91..834a57015bf6 100644 --- a/CommonProtos/src/Api/Control.php +++ b/CommonProtos/src/Api/Control.php @@ -20,8 +20,8 @@ class Control extends \Google\Protobuf\Internal\Message { /** * The service controller environment to use. If empty, no control plane - * feature (like quota and billing) will be enabled. The recommended value for - * most services is servicecontrol.googleapis.com + * features (like quota and billing) will be enabled. The recommended value + * for most services is servicecontrol.googleapis.com. * * Generated from protobuf field string environment = 1; */ @@ -41,8 +41,8 @@ class Control extends \Google\Protobuf\Internal\Message * * @type string $environment * The service controller environment to use. If empty, no control plane - * feature (like quota and billing) will be enabled. The recommended value for - * most services is servicecontrol.googleapis.com + * features (like quota and billing) will be enabled. The recommended value + * for most services is servicecontrol.googleapis.com. * @type \Google\Api\MethodPolicy[] $method_policies * Defines policies applying to the API methods of the service. * } @@ -54,8 +54,8 @@ public function __construct($data = NULL) { /** * The service controller environment to use. If empty, no control plane - * feature (like quota and billing) will be enabled. The recommended value for - * most services is servicecontrol.googleapis.com + * features (like quota and billing) will be enabled. The recommended value + * for most services is servicecontrol.googleapis.com. * * Generated from protobuf field string environment = 1; * @return string @@ -67,8 +67,8 @@ public function getEnvironment() /** * The service controller environment to use. If empty, no control plane - * feature (like quota and billing) will be enabled. The recommended value for - * most services is servicecontrol.googleapis.com + * features (like quota and billing) will be enabled. The recommended value + * for most services is servicecontrol.googleapis.com. * * Generated from protobuf field string environment = 1; * @param string $var diff --git a/CommonProtos/src/Api/ErrorReason.php b/CommonProtos/src/Api/ErrorReason.php index f70bb4392a15..5457fb4ca9bf 100644 --- a/CommonProtos/src/Api/ErrorReason.php +++ b/CommonProtos/src/Api/ErrorReason.php @@ -630,6 +630,200 @@ class ErrorReason * Generated from protobuf enum OVERLOADED_CREDENTIALS = 34; */ const OVERLOADED_CREDENTIALS = 34; + /** + * The request whose associated location violates the location org policy + * restrictions when creating resources in the restricted region. + * Example of an ErrorInfo when creating the Cloud Storage Bucket in the + * container "projects/123" under a restricted region + * "locations/asia-northeast3": + * { + * "reason": "LOCATION_ORG_POLICY_VIOLATED", + * "domain": "googleapis.com", + * "metadata": { + * "resource": "projects/123", + * "location": "locations/asia-northeast3" + * } + * } + * This response indicates creating the Cloud Storage Bucket in + * "locations/asia-northeast3" violates the location org policy restriction. + * + * Generated from protobuf enum LOCATION_ORG_POLICY_VIOLATED = 35; + */ + const LOCATION_ORG_POLICY_VIOLATED = 35; + /** + * The request is denied because it access data of regulated customers using + * TLS 1.0 and 1.1. + * Example of an ErrorInfo when accessing a GCP resource "projects/123" that + * is restricted by TLS Version Restriction for "pubsub.googleapis.com" + * service. + * { + * "reason": "TLS_ORG_POLICY_VIOLATED", + * "domain": "googleapis.com", + * "metadata": { + * "service": "pubsub.googleapis.com" + * "resource": "projects/123", + * "policyName": "constraints/gcp.restrictTLSVersion", + * "tlsVersion": "TLS_VERSION_1" + * } + * } + * + * Generated from protobuf enum TLS_ORG_POLICY_VIOLATED = 36; + */ + const TLS_ORG_POLICY_VIOLATED = 36; + /** + * The request is denied because the associated project has exceeded the + * emulator quota limit. + * Example of an ErrorInfo when the associated "projects/123" has exceeded the + * emulator quota limit. + * { + * "reason": "EMULATOR_QUOTA_EXCEEDED", + * "domain": "googleapis.com", + * "metadata": { + * "service": "pubsub.googleapis.com" + * "consumer": "projects/123" + * } + * } + * + * Generated from protobuf enum EMULATOR_QUOTA_EXCEEDED = 38; + */ + const EMULATOR_QUOTA_EXCEEDED = 38; + /** + * The request is denied because the associated application credential header + * is invalid for an Android applications. + * Example of an ErrorInfo when the request from an Android application to the + * "pubsub.googleapis.com" with an invalid application credential header. + * { + * "reason": "CREDENTIAL_ANDROID_APP_INVALID", + * "domain": "googleapis.com", + * "metadata": { + * "service": "pubsub.googleapis.com" + * } + * } + * + * Generated from protobuf enum CREDENTIAL_ANDROID_APP_INVALID = 39; + */ + const CREDENTIAL_ANDROID_APP_INVALID = 39; + /** + * The request is denied because IAM permission on resource is denied. + * Example of an ErrorInfo when the IAM permission `aiplatform.datasets.list` + * is denied on resource `projects/123`. + * { + * "reason": "IAM_PERMISSION_DENIED", + * "domain": "googleapis.com", + * "metadata": { + * "resource": "projects/123" + * "permission": "aiplatform.datasets.list" + * } + * } + * + * Generated from protobuf enum IAM_PERMISSION_DENIED = 41; + */ + const IAM_PERMISSION_DENIED = 41; + /** + * The request is denied because it contains the invalid JWT token. + * Example of an ErrorInfo when the request contains an invalid JWT token for + * service `storage.googleapis.com`. + * { + * "reason": "JWT_TOKEN_INVALID", + * "domain": "googleapis.com", + * "metadata": { + * "service": "storage.googleapis.com" + * } + * } + * + * Generated from protobuf enum JWT_TOKEN_INVALID = 42; + */ + const JWT_TOKEN_INVALID = 42; + /** + * The request is denied because it contains credential with type that is + * unsupported. + * Example of an ErrorInfo when the request contains an unsupported credential + * type for service `storage.googleapis.com`. + * { + * "reason": "CREDENTIAL_TYPE_UNSUPPORTED", + * "domain": "googleapis.com", + * "metadata": { + * "service": "storage.googleapis.com" + * } + * } + * + * Generated from protobuf enum CREDENTIAL_TYPE_UNSUPPORTED = 43; + */ + const CREDENTIAL_TYPE_UNSUPPORTED = 43; + /** + * The request is denied because it contains unsupported account type. + * Example of an ErrorInfo when the request contains an unsupported account + * type for service `storage.googleapis.com`. + * { + * "reason": "ACCOUNT_TYPE_UNSUPPORTED", + * "domain": "googleapis.com", + * "metadata": { + * "service": "storage.googleapis.com" + * } + * } + * + * Generated from protobuf enum ACCOUNT_TYPE_UNSUPPORTED = 44; + */ + const ACCOUNT_TYPE_UNSUPPORTED = 44; + /** + * The request is denied because the API endpoint is restricted by + * administrators according to the organization policy constraint. + * For more information see + * https://cloud.google.com/assured-workloads/docs/restrict-endpoint-usage. + * Example of an ErrorInfo when access to Google Cloud Storage service is + * restricted by Restrict Endpoint Usage policy: + * { + * "reason": "ENDPOINT_USAGE_RESTRICTION_VIOLATED", + * "domain": "googleapis.com/policies/endpointUsageRestriction", + * "metadata": { + * "policy_name": "constraints/gcp.restrictEndpointUsage", + * "checked_value": "storage.googleapis.com" + * "consumer": "organization/123" + * "service": "storage.googleapis.com" + * } + * } + * + * Generated from protobuf enum ENDPOINT_USAGE_RESTRICTION_VIOLATED = 45; + */ + const ENDPOINT_USAGE_RESTRICTION_VIOLATED = 45; + /** + * The request is denied because the TLS Cipher Suite is restricted by + * administrators according to the organization policy constraint. + * For more information see + * https://cloud.google.com/assured-workloads/docs/restrict-tls-cipher-suites + * Example of an ErrorInfo when access to Google Cloud BigQuery service is + * restricted by Restrict TLS Cipher Suites policy: + * { + * "reason": "TLS_CIPHER_RESTRICTION_VIOLATED", + * "domain": "googleapis.com/policies/tlsCipherRestriction", + * "metadata": { + * "policy_name": "constraints/gcp.restrictTLSCipherSuites", + * "checked_value": "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 + * "consumer": "organization/123" + * "service": "bigquery.googleapis.com" + * } + * } + * + * Generated from protobuf enum TLS_CIPHER_RESTRICTION_VIOLATED = 46; + */ + const TLS_CIPHER_RESTRICTION_VIOLATED = 46; + /** + * The request is denied because the MCP activation check fails. + * Example of an ErrorInfo when the container "projects/123" contacting + * "pubsub.googleapis.com" service which is disabled by MCP: + * { "reason": "MCP_SERVER_DISABLED", + * "domain": "googleapis.com", + * "metadata": { + * "consumer": "projects/123", + * "service": "pubsub.googleapis.com" + * } + * } + * This response indicates the "pubsub.googleapis.com" has been disabled in + * "projects/123" for MCP. + * + * Generated from protobuf enum MCP_SERVER_DISABLED = 47; + */ + const MCP_SERVER_DISABLED = 47; private static $valueToName = [ self::ERROR_REASON_UNSPECIFIED => 'ERROR_REASON_UNSPECIFIED', @@ -665,6 +859,17 @@ class ErrorReason self::LOCATION_POLICY_VIOLATED => 'LOCATION_POLICY_VIOLATED', self::MISSING_ORIGIN => 'MISSING_ORIGIN', self::OVERLOADED_CREDENTIALS => 'OVERLOADED_CREDENTIALS', + self::LOCATION_ORG_POLICY_VIOLATED => 'LOCATION_ORG_POLICY_VIOLATED', + self::TLS_ORG_POLICY_VIOLATED => 'TLS_ORG_POLICY_VIOLATED', + self::EMULATOR_QUOTA_EXCEEDED => 'EMULATOR_QUOTA_EXCEEDED', + self::CREDENTIAL_ANDROID_APP_INVALID => 'CREDENTIAL_ANDROID_APP_INVALID', + self::IAM_PERMISSION_DENIED => 'IAM_PERMISSION_DENIED', + self::JWT_TOKEN_INVALID => 'JWT_TOKEN_INVALID', + self::CREDENTIAL_TYPE_UNSUPPORTED => 'CREDENTIAL_TYPE_UNSUPPORTED', + self::ACCOUNT_TYPE_UNSUPPORTED => 'ACCOUNT_TYPE_UNSUPPORTED', + self::ENDPOINT_USAGE_RESTRICTION_VIOLATED => 'ENDPOINT_USAGE_RESTRICTION_VIOLATED', + self::TLS_CIPHER_RESTRICTION_VIOLATED => 'TLS_CIPHER_RESTRICTION_VIOLATED', + self::MCP_SERVER_DISABLED => 'MCP_SERVER_DISABLED', ]; public static function name($value) diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/FlowControlLimitExceededBehaviorProto.php b/CommonProtos/src/Api/FlowControlLimitExceededBehaviorProto.php similarity index 100% rename from owl-bot-staging/CommonProtos/api/proto/src/Google/Api/FlowControlLimitExceededBehaviorProto.php rename to CommonProtos/src/Api/FlowControlLimitExceededBehaviorProto.php diff --git a/CommonProtos/src/Api/GoSettings.php b/CommonProtos/src/Api/GoSettings.php index efff4b80aa84..2a406b74d478 100644 --- a/CommonProtos/src/Api/GoSettings.php +++ b/CommonProtos/src/Api/GoSettings.php @@ -25,10 +25,11 @@ class GoSettings extends \Google\Protobuf\Internal\Message * Map of service names to renamed services. Keys are the package relative * service names and values are the name to be used for the service client * and call options. - * publishing: - * go_settings: - * renamed_services: - * Publisher: TopicAdmin + * Example: + * publishing: + * go_settings: + * renamed_services: + * Publisher: TopicAdmin * * Generated from protobuf field map renamed_services = 2; */ @@ -46,10 +47,11 @@ class GoSettings extends \Google\Protobuf\Internal\Message * Map of service names to renamed services. Keys are the package relative * service names and values are the name to be used for the service client * and call options. - * publishing: - * go_settings: - * renamed_services: - * Publisher: TopicAdmin + * Example: + * publishing: + * go_settings: + * renamed_services: + * Publisher: TopicAdmin * } */ public function __construct($data = NULL) { @@ -97,10 +99,11 @@ public function setCommon($var) * Map of service names to renamed services. Keys are the package relative * service names and values are the name to be used for the service client * and call options. - * publishing: - * go_settings: - * renamed_services: - * Publisher: TopicAdmin + * Example: + * publishing: + * go_settings: + * renamed_services: + * Publisher: TopicAdmin * * Generated from protobuf field map renamed_services = 2; * @return \Google\Protobuf\Internal\MapField @@ -114,10 +117,11 @@ public function getRenamedServices() * Map of service names to renamed services. Keys are the package relative * service names and values are the name to be used for the service client * and call options. - * publishing: - * go_settings: - * renamed_services: - * Publisher: TopicAdmin + * Example: + * publishing: + * go_settings: + * renamed_services: + * Publisher: TopicAdmin * * Generated from protobuf field map renamed_services = 2; * @param array|\Google\Protobuf\Internal\MapField $var diff --git a/CommonProtos/src/Api/JavaSettings.php b/CommonProtos/src/Api/JavaSettings.php index 52b10f645e47..7b05e0750051 100644 --- a/CommonProtos/src/Api/JavaSettings.php +++ b/CommonProtos/src/Api/JavaSettings.php @@ -22,9 +22,10 @@ class JavaSettings extends \Google\Protobuf\Internal\Message * in gapic.yaml. API teams should use the protobuf java_package option * where possible. * Example of a YAML configuration:: - * publishing: - * java_settings: - * library_package: com.google.cloud.pubsub.v1 + * publishing: + * library_settings: + * java_settings: + * library_package: com.google.cloud.pubsub.v1 * * Generated from protobuf field string library_package = 1; */ @@ -37,11 +38,11 @@ class JavaSettings extends \Google\Protobuf\Internal\Message * teams should otherwise use the service name as it appears in the * protobuf. * Example of a YAML configuration:: - * publishing: - * java_settings: - * service_class_names: - * - google.pubsub.v1.Publisher: TopicAdmin - * - google.pubsub.v1.Subscriber: SubscriptionAdmin + * publishing: + * java_settings: + * service_class_names: + * - google.pubsub.v1.Publisher: TopicAdmin + * - google.pubsub.v1.Subscriber: SubscriptionAdmin * * Generated from protobuf field map service_class_names = 2; */ @@ -66,9 +67,10 @@ class JavaSettings extends \Google\Protobuf\Internal\Message * in gapic.yaml. API teams should use the protobuf java_package option * where possible. * Example of a YAML configuration:: - * publishing: - * java_settings: - * library_package: com.google.cloud.pubsub.v1 + * publishing: + * library_settings: + * java_settings: + * library_package: com.google.cloud.pubsub.v1 * @type array|\Google\Protobuf\Internal\MapField $service_class_names * Configure the Java class name to use instead of the service's for its * corresponding generated GAPIC client. Keys are fully-qualified @@ -77,11 +79,11 @@ class JavaSettings extends \Google\Protobuf\Internal\Message * teams should otherwise use the service name as it appears in the * protobuf. * Example of a YAML configuration:: - * publishing: - * java_settings: - * service_class_names: - * - google.pubsub.v1.Publisher: TopicAdmin - * - google.pubsub.v1.Subscriber: SubscriptionAdmin + * publishing: + * java_settings: + * service_class_names: + * - google.pubsub.v1.Publisher: TopicAdmin + * - google.pubsub.v1.Subscriber: SubscriptionAdmin * @type \Google\Api\CommonLanguageSettings $common * Some settings. * } @@ -98,9 +100,10 @@ public function __construct($data = NULL) { * in gapic.yaml. API teams should use the protobuf java_package option * where possible. * Example of a YAML configuration:: - * publishing: - * java_settings: - * library_package: com.google.cloud.pubsub.v1 + * publishing: + * library_settings: + * java_settings: + * library_package: com.google.cloud.pubsub.v1 * * Generated from protobuf field string library_package = 1; * @return string @@ -117,9 +120,10 @@ public function getLibraryPackage() * in gapic.yaml. API teams should use the protobuf java_package option * where possible. * Example of a YAML configuration:: - * publishing: - * java_settings: - * library_package: com.google.cloud.pubsub.v1 + * publishing: + * library_settings: + * java_settings: + * library_package: com.google.cloud.pubsub.v1 * * Generated from protobuf field string library_package = 1; * @param string $var @@ -141,11 +145,11 @@ public function setLibraryPackage($var) * teams should otherwise use the service name as it appears in the * protobuf. * Example of a YAML configuration:: - * publishing: - * java_settings: - * service_class_names: - * - google.pubsub.v1.Publisher: TopicAdmin - * - google.pubsub.v1.Subscriber: SubscriptionAdmin + * publishing: + * java_settings: + * service_class_names: + * - google.pubsub.v1.Publisher: TopicAdmin + * - google.pubsub.v1.Subscriber: SubscriptionAdmin * * Generated from protobuf field map service_class_names = 2; * @return \Google\Protobuf\Internal\MapField @@ -163,11 +167,11 @@ public function getServiceClassNames() * teams should otherwise use the service name as it appears in the * protobuf. * Example of a YAML configuration:: - * publishing: - * java_settings: - * service_class_names: - * - google.pubsub.v1.Publisher: TopicAdmin - * - google.pubsub.v1.Subscriber: SubscriptionAdmin + * publishing: + * java_settings: + * service_class_names: + * - google.pubsub.v1.Publisher: TopicAdmin + * - google.pubsub.v1.Subscriber: SubscriptionAdmin * * Generated from protobuf field map service_class_names = 2; * @param array|\Google\Protobuf\Internal\MapField $var diff --git a/CommonProtos/src/Api/MethodSettings.php b/CommonProtos/src/Api/MethodSettings.php index eecf2370066c..1669fc575fe7 100644 --- a/CommonProtos/src/Api/MethodSettings.php +++ b/CommonProtos/src/Api/MethodSettings.php @@ -19,10 +19,10 @@ class MethodSettings extends \Google\Protobuf\Internal\Message * The fully qualified name of the method, for which the options below apply. * This is used to find the method to apply the options. * Example: - * publishing: - * method_settings: - * - selector: google.storage.control.v2.StorageControl.CreateFolder - * # method settings for CreateFolder... + * publishing: + * method_settings: + * - selector: google.storage.control.v2.StorageControl.CreateFolder + * # method settings for CreateFolder... * * Generated from protobuf field string selector = 1; */ @@ -32,14 +32,14 @@ class MethodSettings extends \Google\Protobuf\Internal\Message * API methods for RPCs. Complements RPCs that use the annotations in * google/longrunning/operations.proto. * Example of a YAML configuration:: - * publishing: - * method_settings: - * - selector: google.cloud.speech.v2.Speech.BatchRecognize - * long_running: - * initial_poll_delay: 60s # 1 minute - * poll_delay_multiplier: 1.5 - * max_poll_delay: 360s # 6 minutes - * total_poll_timeout: 54000s # 90 minutes + * publishing: + * method_settings: + * - selector: google.cloud.speech.v2.Speech.BatchRecognize + * long_running: + * initial_poll_delay: 60s # 1 minute + * poll_delay_multiplier: 1.5 + * max_poll_delay: 360s # 6 minutes + * total_poll_timeout: 54000s # 90 minutes * * Generated from protobuf field .google.api.MethodSettings.LongRunning long_running = 2; */ @@ -49,15 +49,29 @@ class MethodSettings extends \Google\Protobuf\Internal\Message * automatically populated by the client libraries based on their * (google.api.field_info).format. Currently supported format: UUID4. * Example of a YAML configuration: - * publishing: - * method_settings: - * - selector: google.example.v1.ExampleService.CreateExample - * auto_populated_fields: - * - request_id + * publishing: + * method_settings: + * - selector: google.example.v1.ExampleService.CreateExample + * auto_populated_fields: + * - request_id * * Generated from protobuf field repeated string auto_populated_fields = 3; */ private $auto_populated_fields; + /** + * Batching configuration for an API method in client libraries. + * Example of a YAML configuration: + * publishing: + * method_settings: + * - selector: google.example.v1.ExampleService.BatchCreateExample + * batching: + * element_count_threshold: 1000 + * request_byte_threshold: 100000000 + * delay_threshold_millis: 10 + * + * Generated from protobuf field .google.api.BatchingConfigProto batching = 4; + */ + protected $batching = null; /** * Constructor. @@ -69,33 +83,43 @@ class MethodSettings extends \Google\Protobuf\Internal\Message * The fully qualified name of the method, for which the options below apply. * This is used to find the method to apply the options. * Example: - * publishing: - * method_settings: - * - selector: google.storage.control.v2.StorageControl.CreateFolder - * # method settings for CreateFolder... + * publishing: + * method_settings: + * - selector: google.storage.control.v2.StorageControl.CreateFolder + * # method settings for CreateFolder... * @type \Google\Api\MethodSettings\LongRunning $long_running * Describes settings to use for long-running operations when generating * API methods for RPCs. Complements RPCs that use the annotations in * google/longrunning/operations.proto. * Example of a YAML configuration:: - * publishing: - * method_settings: - * - selector: google.cloud.speech.v2.Speech.BatchRecognize - * long_running: - * initial_poll_delay: 60s # 1 minute - * poll_delay_multiplier: 1.5 - * max_poll_delay: 360s # 6 minutes - * total_poll_timeout: 54000s # 90 minutes + * publishing: + * method_settings: + * - selector: google.cloud.speech.v2.Speech.BatchRecognize + * long_running: + * initial_poll_delay: 60s # 1 minute + * poll_delay_multiplier: 1.5 + * max_poll_delay: 360s # 6 minutes + * total_poll_timeout: 54000s # 90 minutes * @type string[] $auto_populated_fields * List of top-level fields of the request message, that should be * automatically populated by the client libraries based on their * (google.api.field_info).format. Currently supported format: UUID4. * Example of a YAML configuration: - * publishing: - * method_settings: - * - selector: google.example.v1.ExampleService.CreateExample - * auto_populated_fields: - * - request_id + * publishing: + * method_settings: + * - selector: google.example.v1.ExampleService.CreateExample + * auto_populated_fields: + * - request_id + * @type \Google\Api\BatchingConfigProto $batching + * Batching configuration for an API method in client libraries. + * Example of a YAML configuration: + * publishing: + * method_settings: + * - selector: google.example.v1.ExampleService.BatchCreateExample + * batching: + * element_count_threshold: 1000 + * request_byte_threshold: 100000000 + * delay_threshold_millis: 10 * } */ public function __construct($data = NULL) { @@ -107,10 +131,10 @@ public function __construct($data = NULL) { * The fully qualified name of the method, for which the options below apply. * This is used to find the method to apply the options. * Example: - * publishing: - * method_settings: - * - selector: google.storage.control.v2.StorageControl.CreateFolder - * # method settings for CreateFolder... + * publishing: + * method_settings: + * - selector: google.storage.control.v2.StorageControl.CreateFolder + * # method settings for CreateFolder... * * Generated from protobuf field string selector = 1; * @return string @@ -124,10 +148,10 @@ public function getSelector() * The fully qualified name of the method, for which the options below apply. * This is used to find the method to apply the options. * Example: - * publishing: - * method_settings: - * - selector: google.storage.control.v2.StorageControl.CreateFolder - * # method settings for CreateFolder... + * publishing: + * method_settings: + * - selector: google.storage.control.v2.StorageControl.CreateFolder + * # method settings for CreateFolder... * * Generated from protobuf field string selector = 1; * @param string $var @@ -146,14 +170,14 @@ public function setSelector($var) * API methods for RPCs. Complements RPCs that use the annotations in * google/longrunning/operations.proto. * Example of a YAML configuration:: - * publishing: - * method_settings: - * - selector: google.cloud.speech.v2.Speech.BatchRecognize - * long_running: - * initial_poll_delay: 60s # 1 minute - * poll_delay_multiplier: 1.5 - * max_poll_delay: 360s # 6 minutes - * total_poll_timeout: 54000s # 90 minutes + * publishing: + * method_settings: + * - selector: google.cloud.speech.v2.Speech.BatchRecognize + * long_running: + * initial_poll_delay: 60s # 1 minute + * poll_delay_multiplier: 1.5 + * max_poll_delay: 360s # 6 minutes + * total_poll_timeout: 54000s # 90 minutes * * Generated from protobuf field .google.api.MethodSettings.LongRunning long_running = 2; * @return \Google\Api\MethodSettings\LongRunning|null @@ -178,14 +202,14 @@ public function clearLongRunning() * API methods for RPCs. Complements RPCs that use the annotations in * google/longrunning/operations.proto. * Example of a YAML configuration:: - * publishing: - * method_settings: - * - selector: google.cloud.speech.v2.Speech.BatchRecognize - * long_running: - * initial_poll_delay: 60s # 1 minute - * poll_delay_multiplier: 1.5 - * max_poll_delay: 360s # 6 minutes - * total_poll_timeout: 54000s # 90 minutes + * publishing: + * method_settings: + * - selector: google.cloud.speech.v2.Speech.BatchRecognize + * long_running: + * initial_poll_delay: 60s # 1 minute + * poll_delay_multiplier: 1.5 + * max_poll_delay: 360s # 6 minutes + * total_poll_timeout: 54000s # 90 minutes * * Generated from protobuf field .google.api.MethodSettings.LongRunning long_running = 2; * @param \Google\Api\MethodSettings\LongRunning $var @@ -204,11 +228,11 @@ public function setLongRunning($var) * automatically populated by the client libraries based on their * (google.api.field_info).format. Currently supported format: UUID4. * Example of a YAML configuration: - * publishing: - * method_settings: - * - selector: google.example.v1.ExampleService.CreateExample - * auto_populated_fields: - * - request_id + * publishing: + * method_settings: + * - selector: google.example.v1.ExampleService.CreateExample + * auto_populated_fields: + * - request_id * * Generated from protobuf field repeated string auto_populated_fields = 3; * @return RepeatedField @@ -223,11 +247,11 @@ public function getAutoPopulatedFields() * automatically populated by the client libraries based on their * (google.api.field_info).format. Currently supported format: UUID4. * Example of a YAML configuration: - * publishing: - * method_settings: - * - selector: google.example.v1.ExampleService.CreateExample - * auto_populated_fields: - * - request_id + * publishing: + * method_settings: + * - selector: google.example.v1.ExampleService.CreateExample + * auto_populated_fields: + * - request_id * * Generated from protobuf field repeated string auto_populated_fields = 3; * @param string[] $var @@ -241,5 +265,57 @@ public function setAutoPopulatedFields($var) return $this; } + /** + * Batching configuration for an API method in client libraries. + * Example of a YAML configuration: + * publishing: + * method_settings: + * - selector: google.example.v1.ExampleService.BatchCreateExample + * batching: + * element_count_threshold: 1000 + * request_byte_threshold: 100000000 + * delay_threshold_millis: 10 + * + * Generated from protobuf field .google.api.BatchingConfigProto batching = 4; + * @return \Google\Api\BatchingConfigProto|null + */ + public function getBatching() + { + return $this->batching; + } + + public function hasBatching() + { + return isset($this->batching); + } + + public function clearBatching() + { + unset($this->batching); + } + + /** + * Batching configuration for an API method in client libraries. + * Example of a YAML configuration: + * publishing: + * method_settings: + * - selector: google.example.v1.ExampleService.BatchCreateExample + * batching: + * element_count_threshold: 1000 + * request_byte_threshold: 100000000 + * delay_threshold_millis: 10 + * + * Generated from protobuf field .google.api.BatchingConfigProto batching = 4; + * @param \Google\Api\BatchingConfigProto $var + * @return $this + */ + public function setBatching($var) + { + GPBUtil::checkMessage($var, \Google\Api\BatchingConfigProto::class); + $this->batching = $var; + + return $this; + } + } diff --git a/CommonProtos/src/Api/PhpSettings.php b/CommonProtos/src/Api/PhpSettings.php index a98437ce1ba1..38cbabd68afb 100644 --- a/CommonProtos/src/Api/PhpSettings.php +++ b/CommonProtos/src/Api/PhpSettings.php @@ -21,6 +21,21 @@ class PhpSettings extends \Google\Protobuf\Internal\Message * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; */ protected $common = null; + /** + * The package name to use in Php. Clobbers the php_namespace option + * set in the protobuf. This should be used **only** by APIs + * who have already set the language_settings.php.package_name" field + * in gapic.yaml. API teams should use the protobuf php_namespace option + * where possible. + * Example of a YAML configuration:: + * publishing: + * library_settings: + * php_settings: + * library_package: Google\Cloud\PubSub\V1 + * + * Generated from protobuf field string library_package = 2; + */ + protected $library_package = ''; /** * Constructor. @@ -30,6 +45,17 @@ class PhpSettings extends \Google\Protobuf\Internal\Message * * @type \Google\Api\CommonLanguageSettings $common * Some settings. + * @type string $library_package + * The package name to use in Php. Clobbers the php_namespace option + * set in the protobuf. This should be used **only** by APIs + * who have already set the language_settings.php.package_name" field + * in gapic.yaml. API teams should use the protobuf php_namespace option + * where possible. + * Example of a YAML configuration:: + * publishing: + * library_settings: + * php_settings: + * library_package: Google\Cloud\PubSub\V1 * } */ public function __construct($data = NULL) { @@ -73,5 +99,49 @@ public function setCommon($var) return $this; } + /** + * The package name to use in Php. Clobbers the php_namespace option + * set in the protobuf. This should be used **only** by APIs + * who have already set the language_settings.php.package_name" field + * in gapic.yaml. API teams should use the protobuf php_namespace option + * where possible. + * Example of a YAML configuration:: + * publishing: + * library_settings: + * php_settings: + * library_package: Google\Cloud\PubSub\V1 + * + * Generated from protobuf field string library_package = 2; + * @return string + */ + public function getLibraryPackage() + { + return $this->library_package; + } + + /** + * The package name to use in Php. Clobbers the php_namespace option + * set in the protobuf. This should be used **only** by APIs + * who have already set the language_settings.php.package_name" field + * in gapic.yaml. API teams should use the protobuf php_namespace option + * where possible. + * Example of a YAML configuration:: + * publishing: + * library_settings: + * php_settings: + * library_package: Google\Cloud\PubSub\V1 + * + * Generated from protobuf field string library_package = 2; + * @param string $var + * @return $this + */ + public function setLibraryPackage($var) + { + GPBUtil::checkString($var, True); + $this->library_package = $var; + + return $this; + } + } diff --git a/CommonProtos/src/Api/RoutingRule.php b/CommonProtos/src/Api/RoutingRule.php index b2c00a6fa2f9..b6f939a5263d 100644 --- a/CommonProtos/src/Api/RoutingRule.php +++ b/CommonProtos/src/Api/RoutingRule.php @@ -32,9 +32,12 @@ * table_name: projects/proj_foo/instances/instance_bar/table/table_baz, * app_profile_id: profiles/prof_qux * } - * The routing header consists of one or multiple key-value pairs. Every key - * and value must be percent-encoded, and joined together in the format of - * `key1=value1&key2=value2`. + * The routing header consists of one or multiple key-value pairs. The order of + * the key-value pairs is undefined, the order of the `routing_parameters` in + * the `RoutingRule` only matters for the evaluation order of the path + * templates when `field` is the same. See the examples below for more details. + * Every key and value in the routing header must be percent-encoded, + * and joined together in the following format: `key1=value1&key2=value2`. * The examples below skip the percent-encoding for readability. * Example 1 * Extracting a field from the request to put into the routing header diff --git a/CommonProtos/src/Api/Service.php b/CommonProtos/src/Api/Service.php index 61c3d3fc1de6..a5bbee008b0d 100644 --- a/CommonProtos/src/Api/Service.php +++ b/CommonProtos/src/Api/Service.php @@ -177,8 +177,7 @@ class Service extends \Google\Protobuf\Internal\Message private $metrics; /** * Defines the monitored resources used by this service. This is required - * by the [Service.monitoring][google.api.Service.monitoring] and - * [Service.logging][google.api.Service.logging] configurations. + * by the `Service.monitoring` and `Service.logging` configurations. * * Generated from protobuf field repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25; */ @@ -298,8 +297,7 @@ class Service extends \Google\Protobuf\Internal\Message * 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][google.api.Service.monitoring] and - * [Service.logging][google.api.Service.logging] configurations. + * by the `Service.monitoring` and `Service.logging` configurations. * @type \Google\Api\Billing $billing * Billing configuration. * @type \Google\Api\Logging $logging @@ -923,8 +921,7 @@ public function setMetrics($var) /** * Defines the monitored resources used by this service. This is required - * by the [Service.monitoring][google.api.Service.monitoring] and - * [Service.logging][google.api.Service.logging] configurations. + * by the `Service.monitoring` and `Service.logging` configurations. * * Generated from protobuf field repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25; * @return RepeatedField<\Google\Api\MonitoredResourceDescriptor> @@ -936,8 +933,7 @@ public function getMonitoredResources() /** * Defines the monitored resources used by this service. This is required - * by the [Service.monitoring][google.api.Service.monitoring] and - * [Service.logging][google.api.Service.logging] configurations. + * by the `Service.monitoring` and `Service.logging` configurations. * * Generated from protobuf field repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25; * @param \Google\Api\MonitoredResourceDescriptor[] $var diff --git a/CommonProtos/src/Api/UsageRule.php b/CommonProtos/src/Api/UsageRule.php index 38a45ec79904..73fac2210f68 100644 --- a/CommonProtos/src/Api/UsageRule.php +++ b/CommonProtos/src/Api/UsageRule.php @@ -10,23 +10,6 @@ /** * Usage configuration rules for the service. - * NOTE: Under development. - * Use this rule to configure unregistered calls for the service. Unregistered - * calls are calls that do not contain consumer project identity. - * (Example: calls that do not contain an API key). - * By default, API methods do not allow unregistered calls, and each method call - * must be identified by a consumer project identity. Use this rule to - * allow/disallow unregistered calls. - * Example of an API that wants to allow unregistered calls for entire service. - * usage: - * rules: - * - selector: "*" - * allow_unregistered_calls: true - * Example of a method that wants to allow unregistered calls. - * usage: - * rules: - * - selector: "google.example.library.v1.LibraryService.CreateBook" - * allow_unregistered_calls: true * * Generated from protobuf message google.api.UsageRule */ @@ -42,8 +25,11 @@ class UsageRule extends \Google\Protobuf\Internal\Message */ protected $selector = ''; /** - * If true, the selected method allows unregistered calls, e.g. calls - * that don't identify any user or application. + * Use this rule to configure unregistered calls for the service. Unregistered + * calls are calls that do not contain consumer project identity. + * (Example: calls that do not contain an API key). + * WARNING: By default, API methods do not allow unregistered calls, and each + * method call must be identified by a consumer project identity. * * Generated from protobuf field bool allow_unregistered_calls = 2; */ @@ -70,8 +56,11 @@ class UsageRule extends \Google\Protobuf\Internal\Message * Refer to [selector][google.api.DocumentationRule.selector] for syntax * details. * @type bool $allow_unregistered_calls - * If true, the selected method allows unregistered calls, e.g. calls - * that don't identify any user or application. + * Use this rule to configure unregistered calls for the service. Unregistered + * calls are calls that do not contain consumer project identity. + * (Example: calls that do not contain an API key). + * WARNING: By default, API methods do not allow unregistered calls, and each + * method call must be identified by a consumer project identity. * @type bool $skip_service_control * If true, the selected method should skip service control and the control * plane features, such as quota and billing, will not be available. @@ -117,8 +106,11 @@ public function setSelector($var) } /** - * If true, the selected method allows unregistered calls, e.g. calls - * that don't identify any user or application. + * Use this rule to configure unregistered calls for the service. Unregistered + * calls are calls that do not contain consumer project identity. + * (Example: calls that do not contain an API key). + * WARNING: By default, API methods do not allow unregistered calls, and each + * method call must be identified by a consumer project identity. * * Generated from protobuf field bool allow_unregistered_calls = 2; * @return bool @@ -129,8 +121,11 @@ public function getAllowUnregisteredCalls() } /** - * If true, the selected method allows unregistered calls, e.g. calls - * that don't identify any user or application. + * Use this rule to configure unregistered calls for the service. Unregistered + * calls are calls that do not contain consumer project identity. + * (Example: calls that do not contain an API key). + * WARNING: By default, API methods do not allow unregistered calls, and each + * method call must be identified by a consumer project identity. * * Generated from protobuf field bool allow_unregistered_calls = 2; * @param bool $var diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Annotations.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Annotations.php deleted file mode 100644 index a700b2da7a2a..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Annotations.php +++ /dev/null @@ -1,25 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xC4\x01\x0A\x1Cgoogle/api/annotations.proto\x12\x0Agoogle.api\x1A google/protobuf/descriptor.protoBn\x0A\x0Ecom.google.apiB\x10AnnotationsProtoP\x01ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\xA2\x02\x04GAPIb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Auth.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Auth.php deleted file mode 100644 index 24d567740772..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Auth.php +++ /dev/null @@ -1,24 +0,0 @@ -internalAddGeneratedFile( - "\x0A\x99\x06\x0A\x15google/api/auth.proto\x12\x0Agoogle.api\"l\x0A\x0EAuthentication\x12-\x0A\x05rules\x18\x03 \x03(\x0B2\x1E.google.api.AuthenticationRule\x12+\x0A\x09providers\x18\x04 \x03(\x0B2\x18.google.api.AuthProvider\"\xA9\x01\x0A\x12AuthenticationRule\x12\x10\x0A\x08selector\x18\x01 \x01(\x09\x12,\x0A\x05oauth\x18\x02 \x01(\x0B2\x1D.google.api.OAuthRequirements\x12 \x0A\x18allow_without_credential\x18\x05 \x01(\x08\x121\x0A\x0Crequirements\x18\x07 \x03(\x0B2\x1B.google.api.AuthRequirement\"^\x0A\x0BJwtLocation\x12\x10\x0A\x06header\x18\x01 \x01(\x09H\x00\x12\x0F\x0A\x05query\x18\x02 \x01(\x09H\x00\x12\x10\x0A\x06cookie\x18\x04 \x01(\x09H\x00\x12\x14\x0A\x0Cvalue_prefix\x18\x03 \x01(\x09B\x04\x0A\x02in\"\x9A\x01\x0A\x0CAuthProvider\x12\x0A\x0A\x02id\x18\x01 \x01(\x09\x12\x0E\x0A\x06issuer\x18\x02 \x01(\x09\x12\x10\x0A\x08jwks_uri\x18\x03 \x01(\x09\x12\x11\x0A\x09audiences\x18\x04 \x01(\x09\x12\x19\x0A\x11authorization_url\x18\x05 \x01(\x09\x12.\x0A\x0Djwt_locations\x18\x06 \x03(\x0B2\x17.google.api.JwtLocation\"-\x0A\x11OAuthRequirements\x12\x18\x0A\x10canonical_scopes\x18\x01 \x01(\x09\"9\x0A\x0FAuthRequirement\x12\x13\x0A\x0Bprovider_id\x18\x01 \x01(\x09\x12\x11\x0A\x09audiences\x18\x02 \x01(\x09Bk\x0A\x0Ecom.google.apiB\x09AuthProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xA2\x02\x04GAPIb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Backend.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Backend.php deleted file mode 100644 index 9808979ecdbc..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Backend.php +++ /dev/null @@ -1,24 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xA5\x06\x0A\x18google/api/backend.proto\x12\x0Agoogle.api\"1\x0A\x07Backend\x12&\x0A\x05rules\x18\x01 \x03(\x0B2\x17.google.api.BackendRule\"\xD1\x04\x0A\x0BBackendRule\x12\x10\x0A\x08selector\x18\x01 \x01(\x09\x12\x0F\x0A\x07address\x18\x02 \x01(\x09\x12\x10\x0A\x08deadline\x18\x03 \x01(\x01\x12\x18\x0A\x0Cmin_deadline\x18\x04 \x01(\x01B\x02\x18\x01\x12\x1A\x0A\x12operation_deadline\x18\x05 \x01(\x01\x12A\x0A\x10path_translation\x18\x06 \x01(\x0E2'.google.api.BackendRule.PathTranslation\x12\x16\x0A\x0Cjwt_audience\x18\x07 \x01(\x09H\x00\x12\x16\x0A\x0Cdisable_auth\x18\x08 \x01(\x08H\x00\x12\x10\x0A\x08protocol\x18\x09 \x01(\x09\x12^\x0A\x1Doverrides_by_request_protocol\x18\x0A \x03(\x0B27.google.api.BackendRule.OverridesByRequestProtocolEntry\x12\x1D\x0A\x15load_balancing_policy\x18\x0B \x01(\x09\x1AZ\x0A\x1FOverridesByRequestProtocolEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12&\x0A\x05value\x18\x02 \x01(\x0B2\x17.google.api.BackendRule:\x028\x01\"e\x0A\x0FPathTranslation\x12 \x0A\x1CPATH_TRANSLATION_UNSPECIFIED\x10\x00\x12\x14\x0A\x10CONSTANT_ADDRESS\x10\x01\x12\x1A\x0A\x16APPEND_PATH_TO_ADDRESS\x10\x02B\x10\x0A\x0EauthenticationBn\x0A\x0Ecom.google.apiB\x0CBackendProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xA2\x02\x04GAPIb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Billing.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Billing.php deleted file mode 100644 index 0bfe90cbb1b2..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Billing.php +++ /dev/null @@ -1,24 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xB4\x02\x0A\x18google/api/billing.proto\x12\x0Agoogle.api\"\x93\x01\x0A\x07Billing\x12E\x0A\x15consumer_destinations\x18\x08 \x03(\x0B2&.google.api.Billing.BillingDestination\x1AA\x0A\x12BillingDestination\x12\x1A\x0A\x12monitored_resource\x18\x01 \x01(\x09\x12\x0F\x0A\x07metrics\x18\x02 \x03(\x09Bn\x0A\x0Ecom.google.apiB\x0CBillingProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xA2\x02\x04GAPIb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Client.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Client.php deleted file mode 100644 index 40704b602b2f..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Client.php +++ /dev/null @@ -1,26 +0,0 @@ -internalAddGeneratedFile( - "\x0A\x95!\x0A\x17google/api/client.proto\x12\x0Agoogle.api\x1A google/protobuf/descriptor.proto\x1A\x1Egoogle/protobuf/duration.proto\"\xBE\x01\x0A\x16CommonLanguageSettings\x12\x1E\x0A\x12reference_docs_uri\x18\x01 \x01(\x09B\x02\x18\x01\x12:\x0A\x0Cdestinations\x18\x02 \x03(\x0E2\$.google.api.ClientLibraryDestination\x12H\x0A\x1Aselective_gapic_generation\x18\x03 \x01(\x0B2\$.google.api.SelectiveGapicGeneration\"\xFB\x03\x0A\x15ClientLibrarySettings\x12\x0F\x0A\x07version\x18\x01 \x01(\x09\x12-\x0A\x0Claunch_stage\x18\x02 \x01(\x0E2\x17.google.api.LaunchStage\x12\x1A\x0A\x12rest_numeric_enums\x18\x03 \x01(\x08\x12/\x0A\x0Djava_settings\x18\x15 \x01(\x0B2\x18.google.api.JavaSettings\x12-\x0A\x0Ccpp_settings\x18\x16 \x01(\x0B2\x17.google.api.CppSettings\x12-\x0A\x0Cphp_settings\x18\x17 \x01(\x0B2\x17.google.api.PhpSettings\x123\x0A\x0Fpython_settings\x18\x18 \x01(\x0B2\x1A.google.api.PythonSettings\x12/\x0A\x0Dnode_settings\x18\x19 \x01(\x0B2\x18.google.api.NodeSettings\x123\x0A\x0Fdotnet_settings\x18\x1A \x01(\x0B2\x1A.google.api.DotnetSettings\x12/\x0A\x0Druby_settings\x18\x1B \x01(\x0B2\x18.google.api.RubySettings\x12+\x0A\x0Bgo_settings\x18\x1C \x01(\x0B2\x16.google.api.GoSettings\"\xA8\x03\x0A\x0APublishing\x123\x0A\x0Fmethod_settings\x18\x02 \x03(\x0B2\x1A.google.api.MethodSettings\x12\x15\x0A\x0Dnew_issue_uri\x18e \x01(\x09\x12\x19\x0A\x11documentation_uri\x18f \x01(\x09\x12\x16\x0A\x0Eapi_short_name\x18g \x01(\x09\x12\x14\x0A\x0Cgithub_label\x18h \x01(\x09\x12\x1E\x0A\x16codeowner_github_teams\x18i \x03(\x09\x12\x16\x0A\x0Edoc_tag_prefix\x18j \x01(\x09\x12;\x0A\x0Corganization\x18k \x01(\x0E2%.google.api.ClientLibraryOrganization\x12;\x0A\x10library_settings\x18m \x03(\x0B2!.google.api.ClientLibrarySettings\x12)\x0A!proto_reference_documentation_uri\x18n \x01(\x09\x12(\x0A rest_reference_documentation_uri\x18o \x01(\x09\"\xE3\x01\x0A\x0CJavaSettings\x12\x17\x0A\x0Flibrary_package\x18\x01 \x01(\x09\x12L\x0A\x13service_class_names\x18\x02 \x03(\x0B2/.google.api.JavaSettings.ServiceClassNamesEntry\x122\x0A\x06common\x18\x03 \x01(\x0B2\".google.api.CommonLanguageSettings\x1A8\x0A\x16ServiceClassNamesEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"A\x0A\x0BCppSettings\x122\x0A\x06common\x18\x01 \x01(\x0B2\".google.api.CommonLanguageSettings\"Z\x0A\x0BPhpSettings\x122\x0A\x06common\x18\x01 \x01(\x0B2\".google.api.CommonLanguageSettings\x12\x17\x0A\x0Flibrary_package\x18\x02 \x01(\x09\"\x9B\x02\x0A\x0EPythonSettings\x122\x0A\x06common\x18\x01 \x01(\x0B2\".google.api.CommonLanguageSettings\x12N\x0A\x15experimental_features\x18\x02 \x01(\x0B2/.google.api.PythonSettings.ExperimentalFeatures\x1A\x84\x01\x0A\x14ExperimentalFeatures\x12\x1D\x0A\x15rest_async_io_enabled\x18\x01 \x01(\x08\x12'\x0A\x1Fprotobuf_pythonic_types_enabled\x18\x02 \x01(\x08\x12\$\x0A\x1Cunversioned_package_disabled\x18\x03 \x01(\x08\"B\x0A\x0CNodeSettings\x122\x0A\x06common\x18\x01 \x01(\x0B2\".google.api.CommonLanguageSettings\"\xAA\x03\x0A\x0EDotnetSettings\x122\x0A\x06common\x18\x01 \x01(\x0B2\".google.api.CommonLanguageSettings\x12I\x0A\x10renamed_services\x18\x02 \x03(\x0B2/.google.api.DotnetSettings.RenamedServicesEntry\x12K\x0A\x11renamed_resources\x18\x03 \x03(\x0B20.google.api.DotnetSettings.RenamedResourcesEntry\x12\x19\x0A\x11ignored_resources\x18\x04 \x03(\x09\x12 \x0A\x18forced_namespace_aliases\x18\x05 \x03(\x09\x12\x1E\x0A\x16handwritten_signatures\x18\x06 \x03(\x09\x1A6\x0A\x14RenamedServicesEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\x1A7\x0A\x15RenamedResourcesEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"B\x0A\x0CRubySettings\x122\x0A\x06common\x18\x01 \x01(\x0B2\".google.api.CommonLanguageSettings\"\xBF\x01\x0A\x0AGoSettings\x122\x0A\x06common\x18\x01 \x01(\x0B2\".google.api.CommonLanguageSettings\x12E\x0A\x10renamed_services\x18\x02 \x03(\x0B2+.google.api.GoSettings.RenamedServicesEntry\x1A6\x0A\x14RenamedServicesEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"\x82\x03\x0A\x0EMethodSettings\x12\x10\x0A\x08selector\x18\x01 \x01(\x09\x12<\x0A\x0Clong_running\x18\x02 \x01(\x0B2&.google.api.MethodSettings.LongRunning\x12\x1D\x0A\x15auto_populated_fields\x18\x03 \x03(\x09\x121\x0A\x08batching\x18\x04 \x01(\x0B2\x1F.google.api.BatchingConfigProto\x1A\xCD\x01\x0A\x0BLongRunning\x125\x0A\x12initial_poll_delay\x18\x01 \x01(\x0B2\x19.google.protobuf.Duration\x12\x1D\x0A\x15poll_delay_multiplier\x18\x02 \x01(\x02\x121\x0A\x0Emax_poll_delay\x18\x03 \x01(\x0B2\x19.google.protobuf.Duration\x125\x0A\x12total_poll_timeout\x18\x04 \x01(\x0B2\x19.google.protobuf.Duration\"Q\x0A\x18SelectiveGapicGeneration\x12\x0F\x0A\x07methods\x18\x01 \x03(\x09\x12\$\x0A\x1Cgenerate_omitted_as_internal\x18\x02 \x01(\x08\"\x8B\x01\x0A\x13BatchingConfigProto\x125\x0A\x0Athresholds\x18\x01 \x01(\x0B2!.google.api.BatchingSettingsProto\x12=\x0A\x10batch_descriptor\x18\x02 \x01(\x0B2#.google.api.BatchingDescriptorProto\"\xEB\x02\x0A\x15BatchingSettingsProto\x12\x1F\x0A\x17element_count_threshold\x18\x01 \x01(\x05\x12\x1E\x0A\x16request_byte_threshold\x18\x02 \x01(\x03\x122\x0A\x0Fdelay_threshold\x18\x03 \x01(\x0B2\x19.google.protobuf.Duration\x12\x1B\x0A\x13element_count_limit\x18\x04 \x01(\x05\x12\x1A\x0A\x12request_byte_limit\x18\x05 \x01(\x05\x12\"\x0A\x1Aflow_control_element_limit\x18\x06 \x01(\x05\x12\x1F\x0A\x17flow_control_byte_limit\x18\x07 \x01(\x05\x12_\x0A\$flow_control_limit_exceeded_behavior\x18\x08 \x01(\x0E21.google.api.FlowControlLimitExceededBehaviorProto\"i\x0A\x17BatchingDescriptorProto\x12\x15\x0A\x0Dbatched_field\x18\x01 \x01(\x09\x12\x1C\x0A\x14discriminator_fields\x18\x02 \x03(\x09\x12\x19\x0A\x11subresponse_field\x18\x03 \x01(\x09*\xA3\x01\x0A\x19ClientLibraryOrganization\x12+\x0A'CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED\x10\x00\x12\x09\x0A\x05CLOUD\x10\x01\x12\x07\x0A\x03ADS\x10\x02\x12\x0A\x0A\x06PHOTOS\x10\x03\x12\x0F\x0A\x0BSTREET_VIEW\x10\x04\x12\x0C\x0A\x08SHOPPING\x10\x05\x12\x07\x0A\x03GEO\x10\x06\x12\x11\x0A\x0DGENERATIVE_AI\x10\x07*g\x0A\x18ClientLibraryDestination\x12*\x0A&CLIENT_LIBRARY_DESTINATION_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06GITHUB\x10\x0A\x12\x13\x0A\x0FPACKAGE_MANAGER\x10\x14*g\x0A%FlowControlLimitExceededBehaviorProto\x12\x12\x0A\x0EUNSET_BEHAVIOR\x10\x00\x12\x13\x0A\x0FTHROW_EXCEPTION\x10\x01\x12\x09\x0A\x05BLOCK\x10\x02\x12\x0A\x0A\x06IGNORE\x10\x03Bi\x0A\x0Ecom.google.apiB\x0BClientProtoP\x01ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\xA2\x02\x04GAPIb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/ConfigChange.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/ConfigChange.php deleted file mode 100644 index 82abb6653244..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/ConfigChange.php +++ /dev/null @@ -1,24 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xB1\x03\x0A\x1Egoogle/api/config_change.proto\x12\x0Agoogle.api\"\x97\x01\x0A\x0CConfigChange\x12\x0F\x0A\x07element\x18\x01 \x01(\x09\x12\x11\x0A\x09old_value\x18\x02 \x01(\x09\x12\x11\x0A\x09new_value\x18\x03 \x01(\x09\x12+\x0A\x0Bchange_type\x18\x04 \x01(\x0E2\x16.google.api.ChangeType\x12#\x0A\x07advices\x18\x05 \x03(\x0B2\x12.google.api.Advice\"\x1D\x0A\x06Advice\x12\x13\x0A\x0Bdescription\x18\x02 \x01(\x09*O\x0A\x0AChangeType\x12\x1B\x0A\x17CHANGE_TYPE_UNSPECIFIED\x10\x00\x12\x09\x0A\x05ADDED\x10\x01\x12\x0B\x0A\x07REMOVED\x10\x02\x12\x0C\x0A\x08MODIFIED\x10\x03Bq\x0A\x0Ecom.google.apiB\x11ConfigChangeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/api/configchange;configchange\xA2\x02\x04GAPIb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Consumer.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Consumer.php deleted file mode 100644 index 3e59e137926a..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Consumer.php +++ /dev/null @@ -1,24 +0,0 @@ -internalAddGeneratedFile( - "\x0A\x87\x03\x0A\x19google/api/consumer.proto\x12\x0Agoogle.api\"=\x0A\x11ProjectProperties\x12(\x0A\x0Aproperties\x18\x01 \x03(\x0B2\x14.google.api.Property\"\xAC\x01\x0A\x08Property\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12/\x0A\x04type\x18\x02 \x01(\x0E2!.google.api.Property.PropertyType\x12\x13\x0A\x0Bdescription\x18\x03 \x01(\x09\"L\x0A\x0CPropertyType\x12\x0F\x0A\x0BUNSPECIFIED\x10\x00\x12\x09\x0A\x05INT64\x10\x01\x12\x08\x0A\x04BOOL\x10\x02\x12\x0A\x0A\x06STRING\x10\x03\x12\x0A\x0A\x06DOUBLE\x10\x04Bh\x0A\x0Ecom.google.apiB\x0DConsumerProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfigb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Context.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Context.php deleted file mode 100644 index b06c93bd719f..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Context.php +++ /dev/null @@ -1,24 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xE1\x02\x0A\x18google/api/context.proto\x12\x0Agoogle.api\"1\x0A\x07Context\x12&\x0A\x05rules\x18\x01 \x03(\x0B2\x17.google.api.ContextRule\"\x8D\x01\x0A\x0BContextRule\x12\x10\x0A\x08selector\x18\x01 \x01(\x09\x12\x11\x0A\x09requested\x18\x02 \x03(\x09\x12\x10\x0A\x08provided\x18\x03 \x03(\x09\x12\"\x0A\x1Aallowed_request_extensions\x18\x04 \x03(\x09\x12#\x0A\x1Ballowed_response_extensions\x18\x05 \x03(\x09Bn\x0A\x0Ecom.google.apiB\x0CContextProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xA2\x02\x04GAPIb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Control.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Control.php deleted file mode 100644 index ae0f4142baea..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Control.php +++ /dev/null @@ -1,25 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xF1\x01\x0A\x18google/api/control.proto\x12\x0Agoogle.api\"Q\x0A\x07Control\x12\x13\x0A\x0Benvironment\x18\x01 \x01(\x09\x121\x0A\x0Fmethod_policies\x18\x04 \x03(\x0B2\x18.google.api.MethodPolicyBn\x0A\x0Ecom.google.apiB\x0CControlProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xA2\x02\x04GAPIb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Distribution.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Distribution.php deleted file mode 100644 index 90f51fe3e87c..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Distribution.php +++ /dev/null @@ -1,26 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xA3\x08\x0A\x1Dgoogle/api/distribution.proto\x12\x0Agoogle.api\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xD9\x06\x0A\x0CDistribution\x12\x0D\x0A\x05count\x18\x01 \x01(\x03\x12\x0C\x0A\x04mean\x18\x02 \x01(\x01\x12 \x0A\x18sum_of_squared_deviation\x18\x03 \x01(\x01\x12-\x0A\x05range\x18\x04 \x01(\x0B2\x1E.google.api.Distribution.Range\x12>\x0A\x0Ebucket_options\x18\x06 \x01(\x0B2&.google.api.Distribution.BucketOptions\x12\x15\x0A\x0Dbucket_counts\x18\x07 \x03(\x03\x124\x0A\x09exemplars\x18\x0A \x03(\x0B2!.google.api.Distribution.Exemplar\x1A!\x0A\x05Range\x12\x0B\x0A\x03min\x18\x01 \x01(\x01\x12\x0B\x0A\x03max\x18\x02 \x01(\x01\x1A\xB5\x03\x0A\x0DBucketOptions\x12G\x0A\x0Elinear_buckets\x18\x01 \x01(\x0B2-.google.api.Distribution.BucketOptions.LinearH\x00\x12Q\x0A\x13exponential_buckets\x18\x02 \x01(\x0B22.google.api.Distribution.BucketOptions.ExponentialH\x00\x12K\x0A\x10explicit_buckets\x18\x03 \x01(\x0B2/.google.api.Distribution.BucketOptions.ExplicitH\x00\x1AC\x0A\x06Linear\x12\x1A\x0A\x12num_finite_buckets\x18\x01 \x01(\x05\x12\x0D\x0A\x05width\x18\x02 \x01(\x01\x12\x0E\x0A\x06offset\x18\x03 \x01(\x01\x1AO\x0A\x0BExponential\x12\x1A\x0A\x12num_finite_buckets\x18\x01 \x01(\x05\x12\x15\x0A\x0Dgrowth_factor\x18\x02 \x01(\x01\x12\x0D\x0A\x05scale\x18\x03 \x01(\x01\x1A\x1A\x0A\x08Explicit\x12\x0E\x0A\x06bounds\x18\x01 \x03(\x01B\x09\x0A\x07options\x1As\x0A\x08Exemplar\x12\x0D\x0A\x05value\x18\x01 \x01(\x01\x12-\x0A\x09timestamp\x18\x02 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12)\x0A\x0Battachments\x18\x03 \x03(\x0B2\x14.google.protobuf.AnyBq\x0A\x0Ecom.google.apiB\x11DistributionProtoP\x01ZCgoogle.golang.org/genproto/googleapis/api/distribution;distribution\xA2\x02\x04GAPIb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Documentation.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Documentation.php deleted file mode 100644 index a83176a54c3e..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Documentation.php +++ /dev/null @@ -1,24 +0,0 @@ -internalAddGeneratedFile( - "\x0A\x90\x04\x0A\x1Egoogle/api/documentation.proto\x12\x0Agoogle.api\"\xBB\x01\x0A\x0DDocumentation\x12\x0F\x0A\x07summary\x18\x01 \x01(\x09\x12\x1F\x0A\x05pages\x18\x05 \x03(\x0B2\x10.google.api.Page\x12,\x0A\x05rules\x18\x03 \x03(\x0B2\x1D.google.api.DocumentationRule\x12\x1E\x0A\x16documentation_root_url\x18\x04 \x01(\x09\x12\x18\x0A\x10service_root_url\x18\x06 \x01(\x09\x12\x10\x0A\x08overview\x18\x02 \x01(\x09\"[\x0A\x11DocumentationRule\x12\x10\x0A\x08selector\x18\x01 \x01(\x09\x12\x13\x0A\x0Bdescription\x18\x02 \x01(\x09\x12\x1F\x0A\x17deprecation_description\x18\x03 \x01(\x09\"I\x0A\x04Page\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12\x0F\x0A\x07content\x18\x02 \x01(\x09\x12\"\x0A\x08subpages\x18\x03 \x03(\x0B2\x10.google.api.PageBt\x0A\x0Ecom.google.apiB\x12DocumentationProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xA2\x02\x04GAPIb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Endpoint.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Endpoint.php deleted file mode 100644 index 1e4fb87a4de6..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Endpoint.php +++ /dev/null @@ -1,24 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xEF\x01\x0A\x19google/api/endpoint.proto\x12\x0Agoogle.api\"M\x0A\x08Endpoint\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12\x0F\x0A\x07aliases\x18\x02 \x03(\x09\x12\x0E\x0A\x06target\x18e \x01(\x09\x12\x12\x0A\x0Aallow_cors\x18\x05 \x01(\x08Bo\x0A\x0Ecom.google.apiB\x0DEndpointProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xA2\x02\x04GAPIb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/ErrorReason.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/ErrorReason.php deleted file mode 100644 index d38f6fcc5c41..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/ErrorReason.php +++ /dev/null @@ -1,24 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xBA\x0B\x0A\x1Dgoogle/api/error_reason.proto\x12\x0Agoogle.api*\x92\x0A\x0A\x0BErrorReason\x12\x1C\x0A\x18ERROR_REASON_UNSPECIFIED\x10\x00\x12\x14\x0A\x10SERVICE_DISABLED\x10\x01\x12\x14\x0A\x10BILLING_DISABLED\x10\x02\x12\x13\x0A\x0FAPI_KEY_INVALID\x10\x03\x12\x1B\x0A\x17API_KEY_SERVICE_BLOCKED\x10\x04\x12!\x0A\x1DAPI_KEY_HTTP_REFERRER_BLOCKED\x10\x07\x12\x1E\x0A\x1AAPI_KEY_IP_ADDRESS_BLOCKED\x10\x08\x12\x1F\x0A\x1BAPI_KEY_ANDROID_APP_BLOCKED\x10\x09\x12\x1B\x0A\x17API_KEY_IOS_APP_BLOCKED\x10\x0D\x12\x17\x0A\x13RATE_LIMIT_EXCEEDED\x10\x05\x12\x1B\x0A\x17RESOURCE_QUOTA_EXCEEDED\x10\x06\x12 \x0A\x1CLOCATION_TAX_POLICY_VIOLATED\x10\x0A\x12\x17\x0A\x13USER_PROJECT_DENIED\x10\x0B\x12\x16\x0A\x12CONSUMER_SUSPENDED\x10\x0C\x12\x14\x0A\x10CONSUMER_INVALID\x10\x0E\x12\x1C\x0A\x18SECURITY_POLICY_VIOLATED\x10\x0F\x12\x18\x0A\x14ACCESS_TOKEN_EXPIRED\x10\x10\x12#\x0A\x1FACCESS_TOKEN_SCOPE_INSUFFICIENT\x10\x11\x12\x19\x0A\x15ACCOUNT_STATE_INVALID\x10\x12\x12!\x0A\x1DACCESS_TOKEN_TYPE_UNSUPPORTED\x10\x13\x12\x17\x0A\x13CREDENTIALS_MISSING\x10\x14\x12\x1C\x0A\x18RESOURCE_PROJECT_INVALID\x10\x15\x12\x1A\x0A\x16SESSION_COOKIE_INVALID\x10\x17\x12\x19\x0A\x15USER_BLOCKED_BY_ADMIN\x10\x18\x12'\x0A#RESOURCE_USAGE_RESTRICTION_VIOLATED\x10\x19\x12 \x0A\x1CSYSTEM_PARAMETER_UNSUPPORTED\x10\x1A\x12\x1D\x0A\x19ORG_RESTRICTION_VIOLATION\x10\x1B\x12\"\x0A\x1EORG_RESTRICTION_HEADER_INVALID\x10\x1C\x12\x17\x0A\x13SERVICE_NOT_VISIBLE\x10\x1D\x12\x11\x0A\x0DGCP_SUSPENDED\x10\x1E\x12\x1C\x0A\x18LOCATION_POLICY_VIOLATED\x10\x1F\x12\x12\x0A\x0EMISSING_ORIGIN\x10!\x12\x1A\x0A\x16OVERLOADED_CREDENTIALS\x10\"\x12 \x0A\x1CLOCATION_ORG_POLICY_VIOLATED\x10#\x12\x1B\x0A\x17TLS_ORG_POLICY_VIOLATED\x10\$\x12\x1B\x0A\x17EMULATOR_QUOTA_EXCEEDED\x10&\x12\"\x0A\x1ECREDENTIAL_ANDROID_APP_INVALID\x10'\x12\x19\x0A\x15IAM_PERMISSION_DENIED\x10)\x12\x15\x0A\x11JWT_TOKEN_INVALID\x10*\x12\x1F\x0A\x1BCREDENTIAL_TYPE_UNSUPPORTED\x10+\x12\x1C\x0A\x18ACCOUNT_TYPE_UNSUPPORTED\x10,\x12'\x0A#ENDPOINT_USAGE_RESTRICTION_VIOLATED\x10-\x12#\x0A\x1FTLS_CIPHER_RESTRICTION_VIOLATED\x10.\x12\x17\x0A\x13MCP_SERVER_DISABLED\x10/Bp\x0A\x0Ecom.google.apiB\x10ErrorReasonProtoP\x01ZCgoogle.golang.org/genproto/googleapis/api/error_reason;error_reason\xA2\x02\x04GAPIb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/FieldBehavior.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/FieldBehavior.php deleted file mode 100644 index 72cc2439c61f..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/FieldBehavior.php +++ /dev/null @@ -1,24 +0,0 @@ -internalAddGeneratedFile( - "\x0A\x82\x03\x0A\x1Fgoogle/api/field_behavior.proto\x12\x0Agoogle.api\x1A google/protobuf/descriptor.proto*\xB6\x01\x0A\x0DFieldBehavior\x12\x1E\x0A\x1AFIELD_BEHAVIOR_UNSPECIFIED\x10\x00\x12\x0C\x0A\x08OPTIONAL\x10\x01\x12\x0C\x0A\x08REQUIRED\x10\x02\x12\x0F\x0A\x0BOUTPUT_ONLY\x10\x03\x12\x0E\x0A\x0AINPUT_ONLY\x10\x04\x12\x0D\x0A\x09IMMUTABLE\x10\x05\x12\x12\x0A\x0EUNORDERED_LIST\x10\x06\x12\x15\x0A\x11NON_EMPTY_DEFAULT\x10\x07\x12\x0E\x0A\x0AIDENTIFIER\x10\x08Bp\x0A\x0Ecom.google.apiB\x12FieldBehaviorProtoP\x01ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\xA2\x02\x04GAPIb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/FieldInfo.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/FieldInfo.php deleted file mode 100644 index b699c4dcd537..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/FieldInfo.php +++ /dev/null @@ -1,24 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xA9\x03\x0A\x1Bgoogle/api/field_info.proto\x12\x0Agoogle.api\x1A google/protobuf/descriptor.proto\"\xC1\x01\x0A\x09FieldInfo\x12,\x0A\x06format\x18\x01 \x01(\x0E2\x1C.google.api.FieldInfo.Format\x123\x0A\x10referenced_types\x18\x02 \x03(\x0B2\x19.google.api.TypeReference\"Q\x0A\x06Format\x12\x16\x0A\x12FORMAT_UNSPECIFIED\x10\x00\x12\x09\x0A\x05UUID4\x10\x01\x12\x08\x0A\x04IPV4\x10\x02\x12\x08\x0A\x04IPV6\x10\x03\x12\x10\x0A\x0CIPV4_OR_IPV6\x10\x04\"\"\x0A\x0DTypeReference\x12\x11\x0A\x09type_name\x18\x01 \x01(\x09Bl\x0A\x0Ecom.google.apiB\x0EFieldInfoProtoP\x01ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\xA2\x02\x04GAPIb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Http.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Http.php deleted file mode 100644 index 2798dde48900..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Http.php +++ /dev/null @@ -1,24 +0,0 @@ -internalAddGeneratedFile( - "\x0A\x9F\x04\x0A\x15google/api/http.proto\x12\x0Agoogle.api\"T\x0A\x04Http\x12#\x0A\x05rules\x18\x01 \x03(\x0B2\x14.google.api.HttpRule\x12'\x0A\x1Ffully_decode_reserved_expansion\x18\x02 \x01(\x08\"\x81\x02\x0A\x08HttpRule\x12\x10\x0A\x08selector\x18\x01 \x01(\x09\x12\x0D\x0A\x03get\x18\x02 \x01(\x09H\x00\x12\x0D\x0A\x03put\x18\x03 \x01(\x09H\x00\x12\x0E\x0A\x04post\x18\x04 \x01(\x09H\x00\x12\x10\x0A\x06delete\x18\x05 \x01(\x09H\x00\x12\x0F\x0A\x05patch\x18\x06 \x01(\x09H\x00\x12/\x0A\x06custom\x18\x08 \x01(\x0B2\x1D.google.api.CustomHttpPatternH\x00\x12\x0C\x0A\x04body\x18\x07 \x01(\x09\x12\x15\x0A\x0Dresponse_body\x18\x0C \x01(\x09\x121\x0A\x13additional_bindings\x18\x0B \x03(\x0B2\x14.google.api.HttpRuleB\x09\x0A\x07pattern\"/\x0A\x11CustomHttpPattern\x12\x0C\x0A\x04kind\x18\x01 \x01(\x09\x12\x0C\x0A\x04path\x18\x02 \x01(\x09Bg\x0A\x0Ecom.google.apiB\x09HttpProtoP\x01ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\xA2\x02\x04GAPIb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Httpbody.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Httpbody.php deleted file mode 100644 index 414f11115319..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Httpbody.php +++ /dev/null @@ -1,25 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xF0\x01\x0A\x19google/api/httpbody.proto\x12\x0Agoogle.api\"X\x0A\x08HttpBody\x12\x14\x0A\x0Ccontent_type\x18\x01 \x01(\x09\x12\x0C\x0A\x04data\x18\x02 \x01(\x0C\x12(\x0A\x0Aextensions\x18\x03 \x03(\x0B2\x14.google.protobuf.AnyBe\x0A\x0Ecom.google.apiB\x0DHttpBodyProtoP\x01Z;google.golang.org/genproto/googleapis/api/httpbody;httpbody\xA2\x02\x04GAPIb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Label.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Label.php deleted file mode 100644 index d076fa333968..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Label.php +++ /dev/null @@ -1,24 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xA9\x02\x0A\x16google/api/label.proto\x12\x0Agoogle.api\"\x9C\x01\x0A\x0FLabelDescriptor\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x129\x0A\x0Avalue_type\x18\x02 \x01(\x0E2%.google.api.LabelDescriptor.ValueType\x12\x13\x0A\x0Bdescription\x18\x03 \x01(\x09\",\x0A\x09ValueType\x12\x0A\x0A\x06STRING\x10\x00\x12\x08\x0A\x04BOOL\x10\x01\x12\x09\x0A\x05INT64\x10\x02B\\\x0A\x0Ecom.google.apiB\x0ALabelProtoP\x01Z5google.golang.org/genproto/googleapis/api/label;label\xA2\x02\x04GAPIb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/LaunchStage.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/LaunchStage.php deleted file mode 100644 index 6fd92a165718..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/LaunchStage.php +++ /dev/null @@ -1,24 +0,0 @@ -internalAddGeneratedFile( - "\x0A\x9E\x02\x0A\x1Dgoogle/api/launch_stage.proto\x12\x0Agoogle.api*\x8C\x01\x0A\x0BLaunchStage\x12\x1C\x0A\x18LAUNCH_STAGE_UNSPECIFIED\x10\x00\x12\x11\x0A\x0DUNIMPLEMENTED\x10\x06\x12\x0D\x0A\x09PRELAUNCH\x10\x07\x12\x10\x0A\x0CEARLY_ACCESS\x10\x01\x12\x09\x0A\x05ALPHA\x10\x02\x12\x08\x0A\x04BETA\x10\x03\x12\x06\x0A\x02GA\x10\x04\x12\x0E\x0A\x0ADEPRECATED\x10\x05BZ\x0A\x0Ecom.google.apiB\x10LaunchStageProtoP\x01Z-google.golang.org/genproto/googleapis/api;api\xA2\x02\x04GAPIb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Log.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Log.php deleted file mode 100644 index 5f7c45af5ae5..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Log.php +++ /dev/null @@ -1,25 +0,0 @@ -internalAddGeneratedFile( - "\x0A\x8D\x02\x0A\x14google/api/log.proto\x12\x0Agoogle.api\"u\x0A\x0DLogDescriptor\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12+\x0A\x06labels\x18\x02 \x03(\x0B2\x1B.google.api.LabelDescriptor\x12\x13\x0A\x0Bdescription\x18\x03 \x01(\x09\x12\x14\x0A\x0Cdisplay_name\x18\x04 \x01(\x09Bj\x0A\x0Ecom.google.apiB\x08LogProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xA2\x02\x04GAPIb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Logging.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Logging.php deleted file mode 100644 index 921a88c8432e..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Logging.php +++ /dev/null @@ -1,24 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xF8\x02\x0A\x18google/api/logging.proto\x12\x0Agoogle.api\"\xD7\x01\x0A\x07Logging\x12E\x0A\x15producer_destinations\x18\x01 \x03(\x0B2&.google.api.Logging.LoggingDestination\x12E\x0A\x15consumer_destinations\x18\x02 \x03(\x0B2&.google.api.Logging.LoggingDestination\x1A>\x0A\x12LoggingDestination\x12\x1A\x0A\x12monitored_resource\x18\x03 \x01(\x09\x12\x0C\x0A\x04logs\x18\x01 \x03(\x09Bn\x0A\x0Ecom.google.apiB\x0CLoggingProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xA2\x02\x04GAPIb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Metric.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Metric.php deleted file mode 100644 index bac797115c35..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Metric.php +++ /dev/null @@ -1,27 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xF3\x0A\x0A\x17google/api/metric.proto\x12\x0Agoogle.api\x1A\x1Dgoogle/api/launch_stage.proto\x1A\x1Egoogle/protobuf/duration.proto\"\xAC\x08\x0A\x10MetricDescriptor\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12\x0C\x0A\x04type\x18\x08 \x01(\x09\x12+\x0A\x06labels\x18\x02 \x03(\x0B2\x1B.google.api.LabelDescriptor\x12<\x0A\x0Bmetric_kind\x18\x03 \x01(\x0E2'.google.api.MetricDescriptor.MetricKind\x12:\x0A\x0Avalue_type\x18\x04 \x01(\x0E2&.google.api.MetricDescriptor.ValueType\x12\x0C\x0A\x04unit\x18\x05 \x01(\x09\x12\x13\x0A\x0Bdescription\x18\x06 \x01(\x09\x12\x14\x0A\x0Cdisplay_name\x18\x07 \x01(\x09\x12G\x0A\x08metadata\x18\x0A \x01(\x0B25.google.api.MetricDescriptor.MetricDescriptorMetadata\x12-\x0A\x0Claunch_stage\x18\x0C \x01(\x0E2\x17.google.api.LaunchStage\x12 \x0A\x18monitored_resource_types\x18\x0D \x03(\x09\x1A\xBD\x03\x0A\x18MetricDescriptorMetadata\x121\x0A\x0Claunch_stage\x18\x01 \x01(\x0E2\x17.google.api.LaunchStageB\x02\x18\x01\x120\x0A\x0Dsample_period\x18\x02 \x01(\x0B2\x19.google.protobuf.Duration\x12/\x0A\x0Cingest_delay\x18\x03 \x01(\x0B2\x19.google.protobuf.Duration\x12\x84\x01\x0A\$time_series_resource_hierarchy_level\x18\x04 \x03(\x0E2V.google.api.MetricDescriptor.MetricDescriptorMetadata.TimeSeriesResourceHierarchyLevel\"\x83\x01\x0A TimeSeriesResourceHierarchyLevel\x124\x0A0TIME_SERIES_RESOURCE_HIERARCHY_LEVEL_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07PROJECT\x10\x01\x12\x10\x0A\x0CORGANIZATION\x10\x02\x12\x0A\x0A\x06FOLDER\x10\x03\"O\x0A\x0AMetricKind\x12\x1B\x0A\x17METRIC_KIND_UNSPECIFIED\x10\x00\x12\x09\x0A\x05GAUGE\x10\x01\x12\x09\x0A\x05DELTA\x10\x02\x12\x0E\x0A\x0ACUMULATIVE\x10\x03\"q\x0A\x09ValueType\x12\x1A\x0A\x16VALUE_TYPE_UNSPECIFIED\x10\x00\x12\x08\x0A\x04BOOL\x10\x01\x12\x09\x0A\x05INT64\x10\x02\x12\x0A\x0A\x06DOUBLE\x10\x03\x12\x0A\x0A\x06STRING\x10\x04\x12\x10\x0A\x0CDISTRIBUTION\x10\x05\x12\x09\x0A\x05MONEY\x10\x06\"u\x0A\x06Metric\x12\x0C\x0A\x04type\x18\x03 \x01(\x09\x12.\x0A\x06labels\x18\x02 \x03(\x0B2\x1E.google.api.Metric.LabelsEntry\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01B_\x0A\x0Ecom.google.apiB\x0BMetricProtoP\x01Z7google.golang.org/genproto/googleapis/api/metric;metric\xA2\x02\x04GAPIb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/MonitoredResource.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/MonitoredResource.php deleted file mode 100644 index e7cb60fa0e10..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/MonitoredResource.php +++ /dev/null @@ -1,27 +0,0 @@ -internalAddGeneratedFile( - "\x0A\x8C\x06\x0A#google/api/monitored_resource.proto\x12\x0Agoogle.api\x1A\x1Dgoogle/api/launch_stage.proto\x1A\x1Cgoogle/protobuf/struct.proto\"\xC0\x01\x0A\x1BMonitoredResourceDescriptor\x12\x0C\x0A\x04name\x18\x05 \x01(\x09\x12\x0C\x0A\x04type\x18\x01 \x01(\x09\x12\x14\x0A\x0Cdisplay_name\x18\x02 \x01(\x09\x12\x13\x0A\x0Bdescription\x18\x03 \x01(\x09\x12+\x0A\x06labels\x18\x04 \x03(\x0B2\x1B.google.api.LabelDescriptor\x12-\x0A\x0Claunch_stage\x18\x07 \x01(\x0E2\x17.google.api.LaunchStage\"\x8B\x01\x0A\x11MonitoredResource\x12\x0C\x0A\x04type\x18\x01 \x01(\x09\x129\x0A\x06labels\x18\x02 \x03(\x0B2).google.api.MonitoredResource.LabelsEntry\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"\xCA\x01\x0A\x19MonitoredResourceMetadata\x12.\x0A\x0Dsystem_labels\x18\x01 \x01(\x0B2\x17.google.protobuf.Struct\x12J\x0A\x0Buser_labels\x18\x02 \x03(\x0B25.google.api.MonitoredResourceMetadata.UserLabelsEntry\x1A1\x0A\x0FUserLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01Bv\x0A\x0Ecom.google.apiB\x16MonitoredResourceProtoP\x01ZCgoogle.golang.org/genproto/googleapis/api/monitoredres;monitoredres\xA2\x02\x04GAPIb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Monitoring.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Monitoring.php deleted file mode 100644 index 4c70cb0defc8..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Monitoring.php +++ /dev/null @@ -1,24 +0,0 @@ -internalAddGeneratedFile( - "\x0A\x93\x03\x0A\x1Bgoogle/api/monitoring.proto\x12\x0Agoogle.api\"\xEC\x01\x0A\x0AMonitoring\x12K\x0A\x15producer_destinations\x18\x01 \x03(\x0B2,.google.api.Monitoring.MonitoringDestination\x12K\x0A\x15consumer_destinations\x18\x02 \x03(\x0B2,.google.api.Monitoring.MonitoringDestination\x1AD\x0A\x15MonitoringDestination\x12\x1A\x0A\x12monitored_resource\x18\x01 \x01(\x09\x12\x0F\x0A\x07metrics\x18\x02 \x03(\x09Bq\x0A\x0Ecom.google.apiB\x0FMonitoringProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xA2\x02\x04GAPIb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Policy.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Policy.php deleted file mode 100644 index 5d6bd055727b..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Policy.php +++ /dev/null @@ -1,24 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xE8\x02\x0A\x17google/api/policy.proto\x12\x0Agoogle.api\x1A google/protobuf/descriptor.proto\"S\x0A\x0BFieldPolicy\x12\x10\x0A\x08selector\x18\x01 \x01(\x09\x12\x1B\x0A\x13resource_permission\x18\x02 \x01(\x09\x12\x15\x0A\x0Dresource_type\x18\x03 \x01(\x09\"S\x0A\x0CMethodPolicy\x12\x10\x0A\x08selector\x18\x09 \x01(\x09\x121\x0A\x10request_policies\x18\x02 \x03(\x0B2\x17.google.api.FieldPolicyBm\x0A\x0Ecom.google.apiB\x0BPolicyProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xA2\x02\x04GAPIb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Quota.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Quota.php deleted file mode 100644 index 4f0eded77a02..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Quota.php +++ /dev/null @@ -1,24 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xA5\x05\x0A\x16google/api/quota.proto\x12\x0Agoogle.api\"]\x0A\x05Quota\x12&\x0A\x06limits\x18\x03 \x03(\x0B2\x16.google.api.QuotaLimit\x12,\x0A\x0Cmetric_rules\x18\x04 \x03(\x0B2\x16.google.api.MetricRule\"\x91\x01\x0A\x0AMetricRule\x12\x10\x0A\x08selector\x18\x01 \x01(\x09\x12=\x0A\x0Cmetric_costs\x18\x02 \x03(\x0B2'.google.api.MetricRule.MetricCostsEntry\x1A2\x0A\x10MetricCostsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x03:\x028\x01\"\x95\x02\x0A\x0AQuotaLimit\x12\x0C\x0A\x04name\x18\x06 \x01(\x09\x12\x13\x0A\x0Bdescription\x18\x02 \x01(\x09\x12\x15\x0A\x0Ddefault_limit\x18\x03 \x01(\x03\x12\x11\x0A\x09max_limit\x18\x04 \x01(\x03\x12\x11\x0A\x09free_tier\x18\x07 \x01(\x03\x12\x10\x0A\x08duration\x18\x05 \x01(\x09\x12\x0E\x0A\x06metric\x18\x08 \x01(\x09\x12\x0C\x0A\x04unit\x18\x09 \x01(\x09\x122\x0A\x06values\x18\x0A \x03(\x0B2\".google.api.QuotaLimit.ValuesEntry\x12\x14\x0A\x0Cdisplay_name\x18\x0C \x01(\x09\x1A-\x0A\x0BValuesEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x03:\x028\x01Bl\x0A\x0Ecom.google.apiB\x0AQuotaProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xA2\x02\x04GAPIb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Resource.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Resource.php deleted file mode 100644 index 06f145e91841..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Resource.php +++ /dev/null @@ -1,24 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xE6\x04\x0A\x19google/api/resource.proto\x12\x0Agoogle.api\x1A google/protobuf/descriptor.proto\"\xEE\x02\x0A\x12ResourceDescriptor\x12\x0C\x0A\x04type\x18\x01 \x01(\x09\x12\x0F\x0A\x07pattern\x18\x02 \x03(\x09\x12\x12\x0A\x0Aname_field\x18\x03 \x01(\x09\x127\x0A\x07history\x18\x04 \x01(\x0E2&.google.api.ResourceDescriptor.History\x12\x0E\x0A\x06plural\x18\x05 \x01(\x09\x12\x10\x0A\x08singular\x18\x06 \x01(\x09\x123\x0A\x05style\x18\x0A \x03(\x0E2\$.google.api.ResourceDescriptor.Style\"[\x0A\x07History\x12\x17\x0A\x13HISTORY_UNSPECIFIED\x10\x00\x12\x1D\x0A\x19ORIGINALLY_SINGLE_PATTERN\x10\x01\x12\x18\x0A\x14FUTURE_MULTI_PATTERN\x10\x02\"8\x0A\x05Style\x12\x15\x0A\x11STYLE_UNSPECIFIED\x10\x00\x12\x18\x0A\x14DECLARATIVE_FRIENDLY\x10\x01\"5\x0A\x11ResourceReference\x12\x0C\x0A\x04type\x18\x01 \x01(\x09\x12\x12\x0A\x0Achild_type\x18\x02 \x01(\x09Bk\x0A\x0Ecom.google.apiB\x0DResourceProtoP\x01ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\xA2\x02\x04GAPIb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Routing.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Routing.php deleted file mode 100644 index 8146395c2b21..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Routing.php +++ /dev/null @@ -1,24 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xBF\x02\x0A\x18google/api/routing.proto\x12\x0Agoogle.api\x1A google/protobuf/descriptor.proto\"G\x0A\x0BRoutingRule\x128\x0A\x12routing_parameters\x18\x02 \x03(\x0B2\x1C.google.api.RoutingParameter\"8\x0A\x10RoutingParameter\x12\x0D\x0A\x05field\x18\x01 \x01(\x09\x12\x15\x0A\x0Dpath_template\x18\x02 \x01(\x09Bj\x0A\x0Ecom.google.apiB\x0CRoutingProtoP\x01ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\xA2\x02\x04GAPIb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Service.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Service.php deleted file mode 100644 index 93c4c518f2a0..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Service.php +++ /dev/null @@ -1,45 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xC9\x0D\x0A\x18google/api/service.proto\x12\x0Agoogle.api\x1A\x18google/api/backend.proto\x1A\x18google/api/billing.proto\x1A\x17google/api/client.proto\x1A\x18google/api/context.proto\x1A\x18google/api/control.proto\x1A\x1Egoogle/api/documentation.proto\x1A\x19google/api/endpoint.proto\x1A\x15google/api/http.proto\x1A\x14google/api/log.proto\x1A\x18google/api/logging.proto\x1A\x17google/api/metric.proto\x1A#google/api/monitored_resource.proto\x1A\x1Bgoogle/api/monitoring.proto\x1A\x16google/api/quota.proto\x1A\x1Cgoogle/api/source_info.proto\x1A!google/api/system_parameter.proto\x1A\x16google/api/usage.proto\x1A\x19google/protobuf/api.proto\x1A\x1Agoogle/protobuf/type.proto\x1A\x1Egoogle/protobuf/wrappers.proto\"\x82\x08\x0A\x07Service\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12\x0D\x0A\x05title\x18\x02 \x01(\x09\x12\x1B\x0A\x13producer_project_id\x18\x16 \x01(\x09\x12\x0A\x0A\x02id\x18! \x01(\x09\x12\"\x0A\x04apis\x18\x03 \x03(\x0B2\x14.google.protobuf.Api\x12\$\x0A\x05types\x18\x04 \x03(\x0B2\x15.google.protobuf.Type\x12\$\x0A\x05enums\x18\x05 \x03(\x0B2\x15.google.protobuf.Enum\x120\x0A\x0Ddocumentation\x18\x06 \x01(\x0B2\x19.google.api.Documentation\x12\$\x0A\x07backend\x18\x08 \x01(\x0B2\x13.google.api.Backend\x12\x1E\x0A\x04http\x18\x09 \x01(\x0B2\x10.google.api.Http\x12 \x0A\x05quota\x18\x0A \x01(\x0B2\x11.google.api.Quota\x122\x0A\x0Eauthentication\x18\x0B \x01(\x0B2\x1A.google.api.Authentication\x12\$\x0A\x07context\x18\x0C \x01(\x0B2\x13.google.api.Context\x12 \x0A\x05usage\x18\x0F \x01(\x0B2\x11.google.api.Usage\x12'\x0A\x09endpoints\x18\x12 \x03(\x0B2\x14.google.api.Endpoint\x12\$\x0A\x07control\x18\x15 \x01(\x0B2\x13.google.api.Control\x12'\x0A\x04logs\x18\x17 \x03(\x0B2\x19.google.api.LogDescriptor\x12-\x0A\x07metrics\x18\x18 \x03(\x0B2\x1C.google.api.MetricDescriptor\x12D\x0A\x13monitored_resources\x18\x19 \x03(\x0B2'.google.api.MonitoredResourceDescriptor\x12\$\x0A\x07billing\x18\x1A \x01(\x0B2\x13.google.api.Billing\x12\$\x0A\x07logging\x18\x1B \x01(\x0B2\x13.google.api.Logging\x12*\x0A\x0Amonitoring\x18\x1C \x01(\x0B2\x16.google.api.Monitoring\x127\x0A\x11system_parameters\x18\x1D \x01(\x0B2\x1C.google.api.SystemParameters\x12+\x0A\x0Bsource_info\x18% \x01(\x0B2\x16.google.api.SourceInfo\x12*\x0A\x0Apublishing\x18- \x01(\x0B2\x16.google.api.Publishing\x124\x0A\x0Econfig_version\x18\x14 \x01(\x0B2\x1C.google.protobuf.UInt32ValueBn\x0A\x0Ecom.google.apiB\x0CServiceProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xA2\x02\x04GAPIb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/SourceInfo.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/SourceInfo.php deleted file mode 100644 index f22fde7c287a..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/SourceInfo.php +++ /dev/null @@ -1,25 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xDF\x01\x0A\x1Cgoogle/api/source_info.proto\x12\x0Agoogle.api\"8\x0A\x0ASourceInfo\x12*\x0A\x0Csource_files\x18\x01 \x03(\x0B2\x14.google.protobuf.AnyBq\x0A\x0Ecom.google.apiB\x0FSourceInfoProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xA2\x02\x04GAPIb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/SystemParameter.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/SystemParameter.php deleted file mode 100644 index cc85b39549d8..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/SystemParameter.php +++ /dev/null @@ -1,24 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xA0\x03\x0A!google/api/system_parameter.proto\x12\x0Agoogle.api\"B\x0A\x10SystemParameters\x12.\x0A\x05rules\x18\x01 \x03(\x0B2\x1F.google.api.SystemParameterRule\"X\x0A\x13SystemParameterRule\x12\x10\x0A\x08selector\x18\x01 \x01(\x09\x12/\x0A\x0Aparameters\x18\x02 \x03(\x0B2\x1B.google.api.SystemParameter\"Q\x0A\x0FSystemParameter\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12\x13\x0A\x0Bhttp_header\x18\x02 \x01(\x09\x12\x1B\x0A\x13url_query_parameter\x18\x03 \x01(\x09Bv\x0A\x0Ecom.google.apiB\x14SystemParameterProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xA2\x02\x04GAPIb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Usage.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Usage.php deleted file mode 100644 index 82f244faa367..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Usage.php +++ /dev/null @@ -1,24 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xE5\x02\x0A\x16google/api/usage.proto\x12\x0Agoogle.api\"j\x0A\x05Usage\x12\x14\x0A\x0Crequirements\x18\x01 \x03(\x09\x12\$\x0A\x05rules\x18\x06 \x03(\x0B2\x15.google.api.UsageRule\x12%\x0A\x1Dproducer_notification_channel\x18\x07 \x01(\x09\"]\x0A\x09UsageRule\x12\x10\x0A\x08selector\x18\x01 \x01(\x09\x12 \x0A\x18allow_unregistered_calls\x18\x02 \x01(\x08\x12\x1C\x0A\x14skip_service_control\x18\x03 \x01(\x08Bl\x0A\x0Ecom.google.apiB\x0AUsageProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xA2\x02\x04GAPIb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Visibility.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Visibility.php deleted file mode 100644 index b1f2fa0b6ccb..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Visibility.php +++ /dev/null @@ -1,24 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xB2\x02\x0A\x1Bgoogle/api/visibility.proto\x12\x0Agoogle.api\x1A google/protobuf/descriptor.proto\"7\x0A\x0AVisibility\x12)\x0A\x05rules\x18\x01 \x03(\x0B2\x1A.google.api.VisibilityRule\"7\x0A\x0EVisibilityRule\x12\x10\x0A\x08selector\x18\x01 \x01(\x09\x12\x13\x0A\x0Brestriction\x18\x02 \x01(\x09Bk\x0A\x0Ecom.google.apiB\x0FVisibilityProtoP\x01Z?google.golang.org/genproto/googleapis/api/visibility;visibility\xA2\x02\x04GAPIb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Advice.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Advice.php deleted file mode 100644 index 5db1462592bd..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Advice.php +++ /dev/null @@ -1,72 +0,0 @@ -google.api.Advice - */ -class Advice extends \Google\Protobuf\Internal\Message -{ - /** - * Useful description for why this advice was applied and what actions should - * be taken to mitigate any implied risks. - * - * Generated from protobuf field string description = 2; - */ - protected $description = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $description - * Useful description for why this advice was applied and what actions should - * be taken to mitigate any implied risks. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\ConfigChange::initOnce(); - parent::__construct($data); - } - - /** - * Useful description for why this advice was applied and what actions should - * be taken to mitigate any implied risks. - * - * Generated from protobuf field string description = 2; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Useful description for why this advice was applied and what actions should - * be taken to mitigate any implied risks. - * - * Generated from protobuf field string description = 2; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/AuthProvider.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/AuthProvider.php deleted file mode 100644 index 4241a3eea8a5..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/AuthProvider.php +++ /dev/null @@ -1,419 +0,0 @@ -google.api.AuthProvider - */ -class AuthProvider extends \Google\Protobuf\Internal\Message -{ - /** - * The unique identifier of the auth provider. It will be referred to by - * `AuthRequirement.provider_id`. - * Example: "bookstore_auth". - * - * Generated from protobuf field string id = 1; - */ - protected $id = ''; - /** - * Identifies the principal that issued the JWT. See - * https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1 - * Usually a URL or an email address. - * Example: https://securetoken.google.com - * Example: 1234567-compute\@developer.gserviceaccount.com - * - * Generated from protobuf field string issuer = 2; - */ - protected $issuer = ''; - /** - * URL of the provider's public key set to validate signature of the JWT. See - * [OpenID - * Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata). - * Optional if the key set document: - * - can be retrieved from - * [OpenID - * Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html) - * of the issuer. - * - can be inferred from the email domain of the issuer (e.g. a Google - * service account). - * Example: https://www.googleapis.com/oauth2/v1/certs - * - * Generated from protobuf field string jwks_uri = 3; - */ - protected $jwks_uri = ''; - /** - * The list of JWT - * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3). - * that are allowed to access. A JWT containing any of these audiences will - * be accepted. When this setting is absent, JWTs with audiences: - * - "https://[service.name]/[google.protobuf.Api.name]" - * - "https://[service.name]/" - * will be accepted. - * For example, if no audiences are in the setting, LibraryService API will - * accept JWTs with the following audiences: - * - - * https://library-example.googleapis.com/google.example.library.v1.LibraryService - * - https://library-example.googleapis.com/ - * Example: - * audiences: bookstore_android.apps.googleusercontent.com, - * bookstore_web.apps.googleusercontent.com - * - * Generated from protobuf field string audiences = 4; - */ - protected $audiences = ''; - /** - * Redirect URL if JWT token is required but not present or is expired. - * Implement authorizationUrl of securityDefinitions in OpenAPI spec. - * - * Generated from protobuf field string authorization_url = 5; - */ - protected $authorization_url = ''; - /** - * Defines the locations to extract the JWT. For now it is only used by the - * Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations] - * (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations) - * JWT locations can be one of HTTP headers, URL query parameters or - * cookies. The rule is that the first match wins. - * If not specified, default to use following 3 locations: - * 1) Authorization: Bearer - * 2) x-goog-iap-jwt-assertion - * 3) access_token query parameter - * Default locations can be specified as followings: - * jwt_locations: - * - header: Authorization - * value_prefix: "Bearer " - * - header: x-goog-iap-jwt-assertion - * - query: access_token - * - * Generated from protobuf field repeated .google.api.JwtLocation jwt_locations = 6; - */ - private $jwt_locations; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $id - * The unique identifier of the auth provider. It will be referred to by - * `AuthRequirement.provider_id`. - * Example: "bookstore_auth". - * @type string $issuer - * Identifies the principal that issued the JWT. See - * https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1 - * Usually a URL or an email address. - * Example: https://securetoken.google.com - * Example: 1234567-compute\@developer.gserviceaccount.com - * @type string $jwks_uri - * URL of the provider's public key set to validate signature of the JWT. See - * [OpenID - * Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata). - * Optional if the key set document: - * - can be retrieved from - * [OpenID - * Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html) - * of the issuer. - * - can be inferred from the email domain of the issuer (e.g. a Google - * service account). - * Example: https://www.googleapis.com/oauth2/v1/certs - * @type string $audiences - * The list of JWT - * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3). - * that are allowed to access. A JWT containing any of these audiences will - * be accepted. When this setting is absent, JWTs with audiences: - * - "https://[service.name]/[google.protobuf.Api.name]" - * - "https://[service.name]/" - * will be accepted. - * For example, if no audiences are in the setting, LibraryService API will - * accept JWTs with the following audiences: - * - - * https://library-example.googleapis.com/google.example.library.v1.LibraryService - * - https://library-example.googleapis.com/ - * Example: - * audiences: bookstore_android.apps.googleusercontent.com, - * bookstore_web.apps.googleusercontent.com - * @type string $authorization_url - * Redirect URL if JWT token is required but not present or is expired. - * Implement authorizationUrl of securityDefinitions in OpenAPI spec. - * @type \Google\Api\JwtLocation[] $jwt_locations - * Defines the locations to extract the JWT. For now it is only used by the - * Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations] - * (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations) - * JWT locations can be one of HTTP headers, URL query parameters or - * cookies. The rule is that the first match wins. - * If not specified, default to use following 3 locations: - * 1) Authorization: Bearer - * 2) x-goog-iap-jwt-assertion - * 3) access_token query parameter - * Default locations can be specified as followings: - * jwt_locations: - * - header: Authorization - * value_prefix: "Bearer " - * - header: x-goog-iap-jwt-assertion - * - query: access_token - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Auth::initOnce(); - parent::__construct($data); - } - - /** - * The unique identifier of the auth provider. It will be referred to by - * `AuthRequirement.provider_id`. - * Example: "bookstore_auth". - * - * Generated from protobuf field string id = 1; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * The unique identifier of the auth provider. It will be referred to by - * `AuthRequirement.provider_id`. - * Example: "bookstore_auth". - * - * Generated from protobuf field string id = 1; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - - /** - * Identifies the principal that issued the JWT. See - * https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1 - * Usually a URL or an email address. - * Example: https://securetoken.google.com - * Example: 1234567-compute\@developer.gserviceaccount.com - * - * Generated from protobuf field string issuer = 2; - * @return string - */ - public function getIssuer() - { - return $this->issuer; - } - - /** - * Identifies the principal that issued the JWT. See - * https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1 - * Usually a URL or an email address. - * Example: https://securetoken.google.com - * Example: 1234567-compute\@developer.gserviceaccount.com - * - * Generated from protobuf field string issuer = 2; - * @param string $var - * @return $this - */ - public function setIssuer($var) - { - GPBUtil::checkString($var, True); - $this->issuer = $var; - - return $this; - } - - /** - * URL of the provider's public key set to validate signature of the JWT. See - * [OpenID - * Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata). - * Optional if the key set document: - * - can be retrieved from - * [OpenID - * Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html) - * of the issuer. - * - can be inferred from the email domain of the issuer (e.g. a Google - * service account). - * Example: https://www.googleapis.com/oauth2/v1/certs - * - * Generated from protobuf field string jwks_uri = 3; - * @return string - */ - public function getJwksUri() - { - return $this->jwks_uri; - } - - /** - * URL of the provider's public key set to validate signature of the JWT. See - * [OpenID - * Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata). - * Optional if the key set document: - * - can be retrieved from - * [OpenID - * Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html) - * of the issuer. - * - can be inferred from the email domain of the issuer (e.g. a Google - * service account). - * Example: https://www.googleapis.com/oauth2/v1/certs - * - * Generated from protobuf field string jwks_uri = 3; - * @param string $var - * @return $this - */ - public function setJwksUri($var) - { - GPBUtil::checkString($var, True); - $this->jwks_uri = $var; - - return $this; - } - - /** - * The list of JWT - * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3). - * that are allowed to access. A JWT containing any of these audiences will - * be accepted. When this setting is absent, JWTs with audiences: - * - "https://[service.name]/[google.protobuf.Api.name]" - * - "https://[service.name]/" - * will be accepted. - * For example, if no audiences are in the setting, LibraryService API will - * accept JWTs with the following audiences: - * - - * https://library-example.googleapis.com/google.example.library.v1.LibraryService - * - https://library-example.googleapis.com/ - * Example: - * audiences: bookstore_android.apps.googleusercontent.com, - * bookstore_web.apps.googleusercontent.com - * - * Generated from protobuf field string audiences = 4; - * @return string - */ - public function getAudiences() - { - return $this->audiences; - } - - /** - * The list of JWT - * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3). - * that are allowed to access. A JWT containing any of these audiences will - * be accepted. When this setting is absent, JWTs with audiences: - * - "https://[service.name]/[google.protobuf.Api.name]" - * - "https://[service.name]/" - * will be accepted. - * For example, if no audiences are in the setting, LibraryService API will - * accept JWTs with the following audiences: - * - - * https://library-example.googleapis.com/google.example.library.v1.LibraryService - * - https://library-example.googleapis.com/ - * Example: - * audiences: bookstore_android.apps.googleusercontent.com, - * bookstore_web.apps.googleusercontent.com - * - * Generated from protobuf field string audiences = 4; - * @param string $var - * @return $this - */ - public function setAudiences($var) - { - GPBUtil::checkString($var, True); - $this->audiences = $var; - - return $this; - } - - /** - * Redirect URL if JWT token is required but not present or is expired. - * Implement authorizationUrl of securityDefinitions in OpenAPI spec. - * - * Generated from protobuf field string authorization_url = 5; - * @return string - */ - public function getAuthorizationUrl() - { - return $this->authorization_url; - } - - /** - * Redirect URL if JWT token is required but not present or is expired. - * Implement authorizationUrl of securityDefinitions in OpenAPI spec. - * - * Generated from protobuf field string authorization_url = 5; - * @param string $var - * @return $this - */ - public function setAuthorizationUrl($var) - { - GPBUtil::checkString($var, True); - $this->authorization_url = $var; - - return $this; - } - - /** - * Defines the locations to extract the JWT. For now it is only used by the - * Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations] - * (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations) - * JWT locations can be one of HTTP headers, URL query parameters or - * cookies. The rule is that the first match wins. - * If not specified, default to use following 3 locations: - * 1) Authorization: Bearer - * 2) x-goog-iap-jwt-assertion - * 3) access_token query parameter - * Default locations can be specified as followings: - * jwt_locations: - * - header: Authorization - * value_prefix: "Bearer " - * - header: x-goog-iap-jwt-assertion - * - query: access_token - * - * Generated from protobuf field repeated .google.api.JwtLocation jwt_locations = 6; - * @return RepeatedField<\Google\Api\JwtLocation> - */ - public function getJwtLocations() - { - return $this->jwt_locations; - } - - /** - * Defines the locations to extract the JWT. For now it is only used by the - * Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations] - * (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations) - * JWT locations can be one of HTTP headers, URL query parameters or - * cookies. The rule is that the first match wins. - * If not specified, default to use following 3 locations: - * 1) Authorization: Bearer - * 2) x-goog-iap-jwt-assertion - * 3) access_token query parameter - * Default locations can be specified as followings: - * jwt_locations: - * - header: Authorization - * value_prefix: "Bearer " - * - header: x-goog-iap-jwt-assertion - * - query: access_token - * - * Generated from protobuf field repeated .google.api.JwtLocation jwt_locations = 6; - * @param \Google\Api\JwtLocation[] $var - * @return $this - */ - public function setJwtLocations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\JwtLocation::class); - $this->jwt_locations = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/AuthRequirement.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/AuthRequirement.php deleted file mode 100644 index 01f92d53818b..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/AuthRequirement.php +++ /dev/null @@ -1,159 +0,0 @@ -google.api.AuthRequirement - */ -class AuthRequirement extends \Google\Protobuf\Internal\Message -{ - /** - * [id][google.api.AuthProvider.id] from authentication provider. - * Example: - * provider_id: bookstore_auth - * - * Generated from protobuf field string provider_id = 1; - */ - protected $provider_id = ''; - /** - * NOTE: This will be deprecated soon, once AuthProvider.audiences is - * implemented and accepted in all the runtime components. - * The list of JWT - * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3). - * that are allowed to access. A JWT containing any of these audiences will - * be accepted. When this setting is absent, only JWTs with audience - * "https://[Service_name][google.api.Service.name]/[API_name][google.protobuf.Api.name]" - * will be accepted. For example, if no audiences are in the setting, - * LibraryService API will only accept JWTs with the following audience - * "https://library-example.googleapis.com/google.example.library.v1.LibraryService". - * Example: - * audiences: bookstore_android.apps.googleusercontent.com, - * bookstore_web.apps.googleusercontent.com - * - * Generated from protobuf field string audiences = 2; - */ - protected $audiences = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $provider_id - * [id][google.api.AuthProvider.id] from authentication provider. - * Example: - * provider_id: bookstore_auth - * @type string $audiences - * NOTE: This will be deprecated soon, once AuthProvider.audiences is - * implemented and accepted in all the runtime components. - * The list of JWT - * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3). - * that are allowed to access. A JWT containing any of these audiences will - * be accepted. When this setting is absent, only JWTs with audience - * "https://[Service_name][google.api.Service.name]/[API_name][google.protobuf.Api.name]" - * will be accepted. For example, if no audiences are in the setting, - * LibraryService API will only accept JWTs with the following audience - * "https://library-example.googleapis.com/google.example.library.v1.LibraryService". - * Example: - * audiences: bookstore_android.apps.googleusercontent.com, - * bookstore_web.apps.googleusercontent.com - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Auth::initOnce(); - parent::__construct($data); - } - - /** - * [id][google.api.AuthProvider.id] from authentication provider. - * Example: - * provider_id: bookstore_auth - * - * Generated from protobuf field string provider_id = 1; - * @return string - */ - public function getProviderId() - { - return $this->provider_id; - } - - /** - * [id][google.api.AuthProvider.id] from authentication provider. - * Example: - * provider_id: bookstore_auth - * - * Generated from protobuf field string provider_id = 1; - * @param string $var - * @return $this - */ - public function setProviderId($var) - { - GPBUtil::checkString($var, True); - $this->provider_id = $var; - - return $this; - } - - /** - * NOTE: This will be deprecated soon, once AuthProvider.audiences is - * implemented and accepted in all the runtime components. - * The list of JWT - * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3). - * that are allowed to access. A JWT containing any of these audiences will - * be accepted. When this setting is absent, only JWTs with audience - * "https://[Service_name][google.api.Service.name]/[API_name][google.protobuf.Api.name]" - * will be accepted. For example, if no audiences are in the setting, - * LibraryService API will only accept JWTs with the following audience - * "https://library-example.googleapis.com/google.example.library.v1.LibraryService". - * Example: - * audiences: bookstore_android.apps.googleusercontent.com, - * bookstore_web.apps.googleusercontent.com - * - * Generated from protobuf field string audiences = 2; - * @return string - */ - public function getAudiences() - { - return $this->audiences; - } - - /** - * NOTE: This will be deprecated soon, once AuthProvider.audiences is - * implemented and accepted in all the runtime components. - * The list of JWT - * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3). - * that are allowed to access. A JWT containing any of these audiences will - * be accepted. When this setting is absent, only JWTs with audience - * "https://[Service_name][google.api.Service.name]/[API_name][google.protobuf.Api.name]" - * will be accepted. For example, if no audiences are in the setting, - * LibraryService API will only accept JWTs with the following audience - * "https://library-example.googleapis.com/google.example.library.v1.LibraryService". - * Example: - * audiences: bookstore_android.apps.googleusercontent.com, - * bookstore_web.apps.googleusercontent.com - * - * Generated from protobuf field string audiences = 2; - * @param string $var - * @return $this - */ - public function setAudiences($var) - { - GPBUtil::checkString($var, True); - $this->audiences = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Authentication.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Authentication.php deleted file mode 100644 index 608c6fb23bd0..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Authentication.php +++ /dev/null @@ -1,120 +0,0 @@ -google.api.Authentication - */ -class Authentication extends \Google\Protobuf\Internal\Message -{ - /** - * A list of authentication rules that apply to individual API methods. - * **NOTE:** All service configuration rules follow "last one wins" order. - * - * Generated from protobuf field repeated .google.api.AuthenticationRule rules = 3; - */ - private $rules; - /** - * Defines a set of authentication providers that a service supports. - * - * Generated from protobuf field repeated .google.api.AuthProvider providers = 4; - */ - private $providers; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Api\AuthenticationRule[] $rules - * A list of authentication rules that apply to individual API methods. - * **NOTE:** All service configuration rules follow "last one wins" order. - * @type \Google\Api\AuthProvider[] $providers - * Defines a set of authentication providers that a service supports. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Auth::initOnce(); - parent::__construct($data); - } - - /** - * A list of authentication rules that apply to individual API methods. - * **NOTE:** All service configuration rules follow "last one wins" order. - * - * Generated from protobuf field repeated .google.api.AuthenticationRule rules = 3; - * @return RepeatedField<\Google\Api\AuthenticationRule> - */ - public function getRules() - { - return $this->rules; - } - - /** - * A list of authentication rules that apply to individual API methods. - * **NOTE:** All service configuration rules follow "last one wins" order. - * - * Generated from protobuf field repeated .google.api.AuthenticationRule rules = 3; - * @param \Google\Api\AuthenticationRule[] $var - * @return $this - */ - public function setRules($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\AuthenticationRule::class); - $this->rules = $arr; - - return $this; - } - - /** - * Defines a set of authentication providers that a service supports. - * - * Generated from protobuf field repeated .google.api.AuthProvider providers = 4; - * @return RepeatedField<\Google\Api\AuthProvider> - */ - public function getProviders() - { - return $this->providers; - } - - /** - * Defines a set of authentication providers that a service supports. - * - * Generated from protobuf field repeated .google.api.AuthProvider providers = 4; - * @param \Google\Api\AuthProvider[] $var - * @return $this - */ - public function setProviders($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\AuthProvider::class); - $this->providers = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/AuthenticationRule.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/AuthenticationRule.php deleted file mode 100644 index 3abcb6dec118..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/AuthenticationRule.php +++ /dev/null @@ -1,197 +0,0 @@ -google.api.AuthenticationRule - */ -class AuthenticationRule extends \Google\Protobuf\Internal\Message -{ - /** - * Selects the methods to which this rule applies. - * Refer to [selector][google.api.DocumentationRule.selector] for syntax - * details. - * - * Generated from protobuf field string selector = 1; - */ - protected $selector = ''; - /** - * The requirements for OAuth credentials. - * - * Generated from protobuf field .google.api.OAuthRequirements oauth = 2; - */ - protected $oauth = null; - /** - * If true, the service accepts API keys without any other credential. - * This flag only applies to HTTP and gRPC requests. - * - * Generated from protobuf field bool allow_without_credential = 5; - */ - protected $allow_without_credential = false; - /** - * Requirements for additional authentication providers. - * - * Generated from protobuf field repeated .google.api.AuthRequirement requirements = 7; - */ - private $requirements; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $selector - * Selects the methods to which this rule applies. - * Refer to [selector][google.api.DocumentationRule.selector] for syntax - * details. - * @type \Google\Api\OAuthRequirements $oauth - * The requirements for OAuth credentials. - * @type bool $allow_without_credential - * If true, the service accepts API keys without any other credential. - * This flag only applies to HTTP and gRPC requests. - * @type \Google\Api\AuthRequirement[] $requirements - * Requirements for additional authentication providers. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Auth::initOnce(); - parent::__construct($data); - } - - /** - * Selects the methods to which this rule applies. - * Refer to [selector][google.api.DocumentationRule.selector] for syntax - * details. - * - * Generated from protobuf field string selector = 1; - * @return string - */ - public function getSelector() - { - return $this->selector; - } - - /** - * Selects the methods to which this rule applies. - * Refer to [selector][google.api.DocumentationRule.selector] for syntax - * details. - * - * Generated from protobuf field string selector = 1; - * @param string $var - * @return $this - */ - public function setSelector($var) - { - GPBUtil::checkString($var, True); - $this->selector = $var; - - return $this; - } - - /** - * The requirements for OAuth credentials. - * - * Generated from protobuf field .google.api.OAuthRequirements oauth = 2; - * @return \Google\Api\OAuthRequirements|null - */ - public function getOauth() - { - return $this->oauth; - } - - public function hasOauth() - { - return isset($this->oauth); - } - - public function clearOauth() - { - unset($this->oauth); - } - - /** - * The requirements for OAuth credentials. - * - * Generated from protobuf field .google.api.OAuthRequirements oauth = 2; - * @param \Google\Api\OAuthRequirements $var - * @return $this - */ - public function setOauth($var) - { - GPBUtil::checkMessage($var, \Google\Api\OAuthRequirements::class); - $this->oauth = $var; - - return $this; - } - - /** - * If true, the service accepts API keys without any other credential. - * This flag only applies to HTTP and gRPC requests. - * - * Generated from protobuf field bool allow_without_credential = 5; - * @return bool - */ - public function getAllowWithoutCredential() - { - return $this->allow_without_credential; - } - - /** - * If true, the service accepts API keys without any other credential. - * This flag only applies to HTTP and gRPC requests. - * - * Generated from protobuf field bool allow_without_credential = 5; - * @param bool $var - * @return $this - */ - public function setAllowWithoutCredential($var) - { - GPBUtil::checkBool($var); - $this->allow_without_credential = $var; - - return $this; - } - - /** - * Requirements for additional authentication providers. - * - * Generated from protobuf field repeated .google.api.AuthRequirement requirements = 7; - * @return RepeatedField<\Google\Api\AuthRequirement> - */ - public function getRequirements() - { - return $this->requirements; - } - - /** - * Requirements for additional authentication providers. - * - * Generated from protobuf field repeated .google.api.AuthRequirement requirements = 7; - * @param \Google\Api\AuthRequirement[] $var - * @return $this - */ - public function setRequirements($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\AuthRequirement::class); - $this->requirements = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Backend.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Backend.php deleted file mode 100644 index 6ffebebbf701..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Backend.php +++ /dev/null @@ -1,71 +0,0 @@ -google.api.Backend - */ -class Backend extends \Google\Protobuf\Internal\Message -{ - /** - * A list of API backend rules that apply to individual API methods. - * **NOTE:** All service configuration rules follow "last one wins" order. - * - * Generated from protobuf field repeated .google.api.BackendRule rules = 1; - */ - private $rules; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Api\BackendRule[] $rules - * A list of API backend rules that apply to individual API methods. - * **NOTE:** All service configuration rules follow "last one wins" order. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Backend::initOnce(); - parent::__construct($data); - } - - /** - * A list of API backend rules that apply to individual API methods. - * **NOTE:** All service configuration rules follow "last one wins" order. - * - * Generated from protobuf field repeated .google.api.BackendRule rules = 1; - * @return RepeatedField<\Google\Api\BackendRule> - */ - public function getRules() - { - return $this->rules; - } - - /** - * A list of API backend rules that apply to individual API methods. - * **NOTE:** All service configuration rules follow "last one wins" order. - * - * Generated from protobuf field repeated .google.api.BackendRule rules = 1; - * @param \Google\Api\BackendRule[] $var - * @return $this - */ - public function setRules($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\BackendRule::class); - $this->rules = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/BackendRule.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/BackendRule.php deleted file mode 100644 index 63770f4953b8..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/BackendRule.php +++ /dev/null @@ -1,592 +0,0 @@ -google.api.BackendRule - */ -class BackendRule extends \Google\Protobuf\Internal\Message -{ - /** - * Selects the methods to which this rule applies. - * Refer to [selector][google.api.DocumentationRule.selector] for syntax - * details. - * - * Generated from protobuf field string selector = 1; - */ - protected $selector = ''; - /** - * The address of the API backend. - * The scheme is used to determine the backend protocol and security. - * The following schemes are accepted: - * SCHEME PROTOCOL SECURITY - * http:// HTTP None - * https:// HTTP TLS - * grpc:// gRPC None - * grpcs:// gRPC TLS - * It is recommended to explicitly include a scheme. Leaving out the scheme - * may cause constrasting behaviors across platforms. - * If the port is unspecified, the default is: - * - 80 for schemes without TLS - * - 443 for schemes with TLS - * For HTTP backends, use [protocol][google.api.BackendRule.protocol] - * to specify the protocol version. - * - * Generated from protobuf field string address = 2; - */ - protected $address = ''; - /** - * The number of seconds to wait for a response from a request. The default - * varies based on the request protocol and deployment environment. - * - * Generated from protobuf field double deadline = 3; - */ - protected $deadline = 0.0; - /** - * Deprecated, do not use. - * - * Generated from protobuf field double min_deadline = 4 [deprecated = true]; - * @deprecated - */ - protected $min_deadline = 0.0; - /** - * The number of seconds to wait for the completion of a long running - * operation. The default is no deadline. - * - * Generated from protobuf field double operation_deadline = 5; - */ - protected $operation_deadline = 0.0; - /** - * Path translation specifies how to combine the backend address with the - * request path in order to produce the appropriate forwarding URL for the - * request. See [PathTranslation][google.api.BackendRule.PathTranslation] for - * more details. - * - * Generated from protobuf field .google.api.BackendRule.PathTranslation path_translation = 6; - */ - protected $path_translation = 0; - /** - * The protocol used for sending a request to the backend. - * The supported values are "http/1.1" and "h2". - * The default value is inferred from the scheme in the - * [address][google.api.BackendRule.address] field: - * SCHEME PROTOCOL - * http:// http/1.1 - * https:// http/1.1 - * grpc:// h2 - * grpcs:// h2 - * For secure HTTP backends (https://) that support HTTP/2, set this field - * to "h2" for improved performance. - * Configuring this field to non-default values is only supported for secure - * HTTP backends. This field will be ignored for all other backends. - * See - * https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids - * for more details on the supported values. - * - * Generated from protobuf field string protocol = 9; - */ - protected $protocol = ''; - /** - * The map between request protocol and the backend address. - * - * Generated from protobuf field map overrides_by_request_protocol = 10; - */ - private $overrides_by_request_protocol; - /** - * The load balancing policy used for connection to the application backend. - * Defined as an arbitrary string to accomondate custom load balancing - * policies supported by the underlying channel, but suggest most users use - * one of the standard policies, such as the default, "RoundRobin". - * - * Generated from protobuf field string load_balancing_policy = 11; - */ - protected $load_balancing_policy = ''; - protected $authentication; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $selector - * Selects the methods to which this rule applies. - * Refer to [selector][google.api.DocumentationRule.selector] for syntax - * details. - * @type string $address - * The address of the API backend. - * The scheme is used to determine the backend protocol and security. - * The following schemes are accepted: - * SCHEME PROTOCOL SECURITY - * http:// HTTP None - * https:// HTTP TLS - * grpc:// gRPC None - * grpcs:// gRPC TLS - * It is recommended to explicitly include a scheme. Leaving out the scheme - * may cause constrasting behaviors across platforms. - * If the port is unspecified, the default is: - * - 80 for schemes without TLS - * - 443 for schemes with TLS - * For HTTP backends, use [protocol][google.api.BackendRule.protocol] - * to specify the protocol version. - * @type float $deadline - * The number of seconds to wait for a response from a request. The default - * varies based on the request protocol and deployment environment. - * @type float $min_deadline - * Deprecated, do not use. - * @type float $operation_deadline - * The number of seconds to wait for the completion of a long running - * operation. The default is no deadline. - * @type int $path_translation - * Path translation specifies how to combine the backend address with the - * request path in order to produce the appropriate forwarding URL for the - * request. See [PathTranslation][google.api.BackendRule.PathTranslation] for - * more details. - * @type string $jwt_audience - * The JWT audience is used when generating a JWT ID token for the backend. - * This ID token will be added in the HTTP "authorization" header, and sent - * to the backend. - * @type bool $disable_auth - * When disable_auth is true, a JWT ID token won't be generated and the - * original "Authorization" HTTP header will be preserved. If the header is - * used to carry the original token and is expected by the backend, this - * field must be set to true to preserve the header. - * @type string $protocol - * The protocol used for sending a request to the backend. - * The supported values are "http/1.1" and "h2". - * The default value is inferred from the scheme in the - * [address][google.api.BackendRule.address] field: - * SCHEME PROTOCOL - * http:// http/1.1 - * https:// http/1.1 - * grpc:// h2 - * grpcs:// h2 - * For secure HTTP backends (https://) that support HTTP/2, set this field - * to "h2" for improved performance. - * Configuring this field to non-default values is only supported for secure - * HTTP backends. This field will be ignored for all other backends. - * See - * https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids - * for more details on the supported values. - * @type array|\Google\Protobuf\Internal\MapField $overrides_by_request_protocol - * The map between request protocol and the backend address. - * @type string $load_balancing_policy - * The load balancing policy used for connection to the application backend. - * Defined as an arbitrary string to accomondate custom load balancing - * policies supported by the underlying channel, but suggest most users use - * one of the standard policies, such as the default, "RoundRobin". - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Backend::initOnce(); - parent::__construct($data); - } - - /** - * Selects the methods to which this rule applies. - * Refer to [selector][google.api.DocumentationRule.selector] for syntax - * details. - * - * Generated from protobuf field string selector = 1; - * @return string - */ - public function getSelector() - { - return $this->selector; - } - - /** - * Selects the methods to which this rule applies. - * Refer to [selector][google.api.DocumentationRule.selector] for syntax - * details. - * - * Generated from protobuf field string selector = 1; - * @param string $var - * @return $this - */ - public function setSelector($var) - { - GPBUtil::checkString($var, True); - $this->selector = $var; - - return $this; - } - - /** - * The address of the API backend. - * The scheme is used to determine the backend protocol and security. - * The following schemes are accepted: - * SCHEME PROTOCOL SECURITY - * http:// HTTP None - * https:// HTTP TLS - * grpc:// gRPC None - * grpcs:// gRPC TLS - * It is recommended to explicitly include a scheme. Leaving out the scheme - * may cause constrasting behaviors across platforms. - * If the port is unspecified, the default is: - * - 80 for schemes without TLS - * - 443 for schemes with TLS - * For HTTP backends, use [protocol][google.api.BackendRule.protocol] - * to specify the protocol version. - * - * Generated from protobuf field string address = 2; - * @return string - */ - public function getAddress() - { - return $this->address; - } - - /** - * The address of the API backend. - * The scheme is used to determine the backend protocol and security. - * The following schemes are accepted: - * SCHEME PROTOCOL SECURITY - * http:// HTTP None - * https:// HTTP TLS - * grpc:// gRPC None - * grpcs:// gRPC TLS - * It is recommended to explicitly include a scheme. Leaving out the scheme - * may cause constrasting behaviors across platforms. - * If the port is unspecified, the default is: - * - 80 for schemes without TLS - * - 443 for schemes with TLS - * For HTTP backends, use [protocol][google.api.BackendRule.protocol] - * to specify the protocol version. - * - * Generated from protobuf field string address = 2; - * @param string $var - * @return $this - */ - public function setAddress($var) - { - GPBUtil::checkString($var, True); - $this->address = $var; - - return $this; - } - - /** - * The number of seconds to wait for a response from a request. The default - * varies based on the request protocol and deployment environment. - * - * Generated from protobuf field double deadline = 3; - * @return float - */ - public function getDeadline() - { - return $this->deadline; - } - - /** - * The number of seconds to wait for a response from a request. The default - * varies based on the request protocol and deployment environment. - * - * Generated from protobuf field double deadline = 3; - * @param float $var - * @return $this - */ - public function setDeadline($var) - { - GPBUtil::checkDouble($var); - $this->deadline = $var; - - return $this; - } - - /** - * Deprecated, do not use. - * - * Generated from protobuf field double min_deadline = 4 [deprecated = true]; - * @return float - * @deprecated - */ - public function getMinDeadline() - { - if ($this->min_deadline !== 0.0) { - @trigger_error('min_deadline is deprecated.', E_USER_DEPRECATED); - } - return $this->min_deadline; - } - - /** - * Deprecated, do not use. - * - * Generated from protobuf field double min_deadline = 4 [deprecated = true]; - * @param float $var - * @return $this - * @deprecated - */ - public function setMinDeadline($var) - { - @trigger_error('min_deadline is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkDouble($var); - $this->min_deadline = $var; - - return $this; - } - - /** - * The number of seconds to wait for the completion of a long running - * operation. The default is no deadline. - * - * Generated from protobuf field double operation_deadline = 5; - * @return float - */ - public function getOperationDeadline() - { - return $this->operation_deadline; - } - - /** - * The number of seconds to wait for the completion of a long running - * operation. The default is no deadline. - * - * Generated from protobuf field double operation_deadline = 5; - * @param float $var - * @return $this - */ - public function setOperationDeadline($var) - { - GPBUtil::checkDouble($var); - $this->operation_deadline = $var; - - return $this; - } - - /** - * Path translation specifies how to combine the backend address with the - * request path in order to produce the appropriate forwarding URL for the - * request. See [PathTranslation][google.api.BackendRule.PathTranslation] for - * more details. - * - * Generated from protobuf field .google.api.BackendRule.PathTranslation path_translation = 6; - * @return int - */ - public function getPathTranslation() - { - return $this->path_translation; - } - - /** - * Path translation specifies how to combine the backend address with the - * request path in order to produce the appropriate forwarding URL for the - * request. See [PathTranslation][google.api.BackendRule.PathTranslation] for - * more details. - * - * Generated from protobuf field .google.api.BackendRule.PathTranslation path_translation = 6; - * @param int $var - * @return $this - */ - public function setPathTranslation($var) - { - GPBUtil::checkEnum($var, \Google\Api\BackendRule\PathTranslation::class); - $this->path_translation = $var; - - return $this; - } - - /** - * The JWT audience is used when generating a JWT ID token for the backend. - * This ID token will be added in the HTTP "authorization" header, and sent - * to the backend. - * - * Generated from protobuf field string jwt_audience = 7; - * @return string - */ - public function getJwtAudience() - { - return $this->readOneof(7); - } - - public function hasJwtAudience() - { - return $this->hasOneof(7); - } - - /** - * The JWT audience is used when generating a JWT ID token for the backend. - * This ID token will be added in the HTTP "authorization" header, and sent - * to the backend. - * - * Generated from protobuf field string jwt_audience = 7; - * @param string $var - * @return $this - */ - public function setJwtAudience($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(7, $var); - - return $this; - } - - /** - * When disable_auth is true, a JWT ID token won't be generated and the - * original "Authorization" HTTP header will be preserved. If the header is - * used to carry the original token and is expected by the backend, this - * field must be set to true to preserve the header. - * - * Generated from protobuf field bool disable_auth = 8; - * @return bool - */ - public function getDisableAuth() - { - return $this->readOneof(8); - } - - public function hasDisableAuth() - { - return $this->hasOneof(8); - } - - /** - * When disable_auth is true, a JWT ID token won't be generated and the - * original "Authorization" HTTP header will be preserved. If the header is - * used to carry the original token and is expected by the backend, this - * field must be set to true to preserve the header. - * - * Generated from protobuf field bool disable_auth = 8; - * @param bool $var - * @return $this - */ - public function setDisableAuth($var) - { - GPBUtil::checkBool($var); - $this->writeOneof(8, $var); - - return $this; - } - - /** - * The protocol used for sending a request to the backend. - * The supported values are "http/1.1" and "h2". - * The default value is inferred from the scheme in the - * [address][google.api.BackendRule.address] field: - * SCHEME PROTOCOL - * http:// http/1.1 - * https:// http/1.1 - * grpc:// h2 - * grpcs:// h2 - * For secure HTTP backends (https://) that support HTTP/2, set this field - * to "h2" for improved performance. - * Configuring this field to non-default values is only supported for secure - * HTTP backends. This field will be ignored for all other backends. - * See - * https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids - * for more details on the supported values. - * - * Generated from protobuf field string protocol = 9; - * @return string - */ - public function getProtocol() - { - return $this->protocol; - } - - /** - * The protocol used for sending a request to the backend. - * The supported values are "http/1.1" and "h2". - * The default value is inferred from the scheme in the - * [address][google.api.BackendRule.address] field: - * SCHEME PROTOCOL - * http:// http/1.1 - * https:// http/1.1 - * grpc:// h2 - * grpcs:// h2 - * For secure HTTP backends (https://) that support HTTP/2, set this field - * to "h2" for improved performance. - * Configuring this field to non-default values is only supported for secure - * HTTP backends. This field will be ignored for all other backends. - * See - * https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids - * for more details on the supported values. - * - * Generated from protobuf field string protocol = 9; - * @param string $var - * @return $this - */ - public function setProtocol($var) - { - GPBUtil::checkString($var, True); - $this->protocol = $var; - - return $this; - } - - /** - * The map between request protocol and the backend address. - * - * Generated from protobuf field map overrides_by_request_protocol = 10; - * @return \Google\Protobuf\Internal\MapField - */ - public function getOverridesByRequestProtocol() - { - return $this->overrides_by_request_protocol; - } - - /** - * The map between request protocol and the backend address. - * - * Generated from protobuf field map overrides_by_request_protocol = 10; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setOverridesByRequestProtocol($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\BackendRule::class); - $this->overrides_by_request_protocol = $arr; - - return $this; - } - - /** - * The load balancing policy used for connection to the application backend. - * Defined as an arbitrary string to accomondate custom load balancing - * policies supported by the underlying channel, but suggest most users use - * one of the standard policies, such as the default, "RoundRobin". - * - * Generated from protobuf field string load_balancing_policy = 11; - * @return string - */ - public function getLoadBalancingPolicy() - { - return $this->load_balancing_policy; - } - - /** - * The load balancing policy used for connection to the application backend. - * Defined as an arbitrary string to accomondate custom load balancing - * policies supported by the underlying channel, but suggest most users use - * one of the standard policies, such as the default, "RoundRobin". - * - * Generated from protobuf field string load_balancing_policy = 11; - * @param string $var - * @return $this - */ - public function setLoadBalancingPolicy($var) - { - GPBUtil::checkString($var, True); - $this->load_balancing_policy = $var; - - return $this; - } - - /** - * @return string - */ - public function getAuthentication() - { - return $this->whichOneof("authentication"); - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/BackendRule/PathTranslation.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/BackendRule/PathTranslation.php deleted file mode 100644 index 366c5496d121..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/BackendRule/PathTranslation.php +++ /dev/null @@ -1,92 +0,0 @@ -google.api.BackendRule.PathTranslation - */ -class PathTranslation -{ - /** - * Generated from protobuf enum PATH_TRANSLATION_UNSPECIFIED = 0; - */ - const PATH_TRANSLATION_UNSPECIFIED = 0; - /** - * Use the backend address as-is, with no modification to the path. If the - * URL pattern contains variables, the variable names and values will be - * appended to the query string. If a query string parameter and a URL - * pattern variable have the same name, this may result in duplicate keys in - * the query string. - * # Examples - * Given the following operation config: - * Method path: /api/company/{cid}/user/{uid} - * Backend address: https://example.cloudfunctions.net/getUser - * Requests to the following request paths will call the backend at the - * translated path: - * Request path: /api/company/widgetworks/user/johndoe - * Translated: - * https://example.cloudfunctions.net/getUser?cid=widgetworks&uid=johndoe - * Request path: /api/company/widgetworks/user/johndoe?timezone=EST - * Translated: - * https://example.cloudfunctions.net/getUser?timezone=EST&cid=widgetworks&uid=johndoe - * - * Generated from protobuf enum CONSTANT_ADDRESS = 1; - */ - const CONSTANT_ADDRESS = 1; - /** - * The request path will be appended to the backend address. - * # Examples - * Given the following operation config: - * Method path: /api/company/{cid}/user/{uid} - * Backend address: https://example.appspot.com - * Requests to the following request paths will call the backend at the - * translated path: - * Request path: /api/company/widgetworks/user/johndoe - * Translated: - * https://example.appspot.com/api/company/widgetworks/user/johndoe - * Request path: /api/company/widgetworks/user/johndoe?timezone=EST - * Translated: - * https://example.appspot.com/api/company/widgetworks/user/johndoe?timezone=EST - * - * Generated from protobuf enum APPEND_PATH_TO_ADDRESS = 2; - */ - const APPEND_PATH_TO_ADDRESS = 2; - - private static $valueToName = [ - self::PATH_TRANSLATION_UNSPECIFIED => 'PATH_TRANSLATION_UNSPECIFIED', - self::CONSTANT_ADDRESS => 'CONSTANT_ADDRESS', - self::APPEND_PATH_TO_ADDRESS => 'APPEND_PATH_TO_ADDRESS', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Billing.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Billing.php deleted file mode 100644 index 860acaf9891e..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Billing.php +++ /dev/null @@ -1,107 +0,0 @@ -google.api.Billing - */ -class Billing extends \Google\Protobuf\Internal\Message -{ - /** - * Billing configurations for sending metrics to the consumer project. - * There can be multiple consumer destinations per service, each one must have - * a different monitored resource type. A metric can be used in at most - * one consumer destination. - * - * Generated from protobuf field repeated .google.api.Billing.BillingDestination consumer_destinations = 8; - */ - private $consumer_destinations; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Api\Billing\BillingDestination[] $consumer_destinations - * Billing configurations for sending metrics to the consumer project. - * There can be multiple consumer destinations per service, each one must have - * a different monitored resource type. A metric can be used in at most - * one consumer destination. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Billing::initOnce(); - parent::__construct($data); - } - - /** - * Billing configurations for sending metrics to the consumer project. - * There can be multiple consumer destinations per service, each one must have - * a different monitored resource type. A metric can be used in at most - * one consumer destination. - * - * Generated from protobuf field repeated .google.api.Billing.BillingDestination consumer_destinations = 8; - * @return RepeatedField<\Google\Api\Billing\BillingDestination> - */ - public function getConsumerDestinations() - { - return $this->consumer_destinations; - } - - /** - * Billing configurations for sending metrics to the consumer project. - * There can be multiple consumer destinations per service, each one must have - * a different monitored resource type. A metric can be used in at most - * one consumer destination. - * - * Generated from protobuf field repeated .google.api.Billing.BillingDestination consumer_destinations = 8; - * @param \Google\Api\Billing\BillingDestination[] $var - * @return $this - */ - public function setConsumerDestinations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\Billing\BillingDestination::class); - $this->consumer_destinations = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Billing/BillingDestination.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Billing/BillingDestination.php deleted file mode 100644 index 1075320bd76d..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Billing/BillingDestination.php +++ /dev/null @@ -1,118 +0,0 @@ -google.api.Billing.BillingDestination - */ -class BillingDestination extends \Google\Protobuf\Internal\Message -{ - /** - * The monitored resource type. The type must be defined in - * [Service.monitored_resources][google.api.Service.monitored_resources] - * section. - * - * Generated from protobuf field string monitored_resource = 1; - */ - protected $monitored_resource = ''; - /** - * Names of the metrics to report to this billing destination. - * Each name must be defined in - * [Service.metrics][google.api.Service.metrics] section. - * - * Generated from protobuf field repeated string metrics = 2; - */ - private $metrics; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $monitored_resource - * The monitored resource type. The type must be defined in - * [Service.monitored_resources][google.api.Service.monitored_resources] - * section. - * @type string[] $metrics - * Names of the metrics to report to this billing destination. - * Each name must be defined in - * [Service.metrics][google.api.Service.metrics] section. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Billing::initOnce(); - parent::__construct($data); - } - - /** - * The monitored resource type. The type must be defined in - * [Service.monitored_resources][google.api.Service.monitored_resources] - * section. - * - * Generated from protobuf field string monitored_resource = 1; - * @return string - */ - public function getMonitoredResource() - { - return $this->monitored_resource; - } - - /** - * The monitored resource type. The type must be defined in - * [Service.monitored_resources][google.api.Service.monitored_resources] - * section. - * - * Generated from protobuf field string monitored_resource = 1; - * @param string $var - * @return $this - */ - public function setMonitoredResource($var) - { - GPBUtil::checkString($var, True); - $this->monitored_resource = $var; - - return $this; - } - - /** - * Names of the metrics to report to this billing destination. - * Each name must be defined in - * [Service.metrics][google.api.Service.metrics] section. - * - * Generated from protobuf field repeated string metrics = 2; - * @return RepeatedField - */ - public function getMetrics() - { - return $this->metrics; - } - - /** - * Names of the metrics to report to this billing destination. - * Each name must be defined in - * [Service.metrics][google.api.Service.metrics] section. - * - * Generated from protobuf field repeated string metrics = 2; - * @param string[] $var - * @return $this - */ - public function setMetrics($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->metrics = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ChangeType.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ChangeType.php deleted file mode 100644 index e39ab1bd2132..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ChangeType.php +++ /dev/null @@ -1,72 +0,0 @@ -google.api.ChangeType - */ -class ChangeType -{ - /** - * No value was provided. - * - * Generated from protobuf enum CHANGE_TYPE_UNSPECIFIED = 0; - */ - const CHANGE_TYPE_UNSPECIFIED = 0; - /** - * The changed object exists in the 'new' service configuration, but not - * in the 'old' service configuration. - * - * Generated from protobuf enum ADDED = 1; - */ - const ADDED = 1; - /** - * The changed object exists in the 'old' service configuration, but not - * in the 'new' service configuration. - * - * Generated from protobuf enum REMOVED = 2; - */ - const REMOVED = 2; - /** - * The changed object exists in both service configurations, but its value - * is different. - * - * Generated from protobuf enum MODIFIED = 3; - */ - const MODIFIED = 3; - - private static $valueToName = [ - self::CHANGE_TYPE_UNSPECIFIED => 'CHANGE_TYPE_UNSPECIFIED', - self::ADDED => 'ADDED', - self::REMOVED => 'REMOVED', - self::MODIFIED => 'MODIFIED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ClientLibraryDestination.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ClientLibraryDestination.php deleted file mode 100644 index 81aee7774f4e..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ClientLibraryDestination.php +++ /dev/null @@ -1,63 +0,0 @@ -google.api.ClientLibraryDestination - */ -class ClientLibraryDestination -{ - /** - * Client libraries will neither be generated nor published to package - * managers. - * - * Generated from protobuf enum CLIENT_LIBRARY_DESTINATION_UNSPECIFIED = 0; - */ - const CLIENT_LIBRARY_DESTINATION_UNSPECIFIED = 0; - /** - * Generate the client library in a repo under github.com/googleapis, - * but don't publish it to package managers. - * - * Generated from protobuf enum GITHUB = 10; - */ - const GITHUB = 10; - /** - * Publish the library to package managers like nuget.org and npmjs.com. - * - * Generated from protobuf enum PACKAGE_MANAGER = 20; - */ - const PACKAGE_MANAGER = 20; - - private static $valueToName = [ - self::CLIENT_LIBRARY_DESTINATION_UNSPECIFIED => 'CLIENT_LIBRARY_DESTINATION_UNSPECIFIED', - self::GITHUB => 'GITHUB', - self::PACKAGE_MANAGER => 'PACKAGE_MANAGER', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ClientLibraryOrganization.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ClientLibraryOrganization.php deleted file mode 100644 index bbb985f6ae85..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ClientLibraryOrganization.php +++ /dev/null @@ -1,97 +0,0 @@ -google.api.ClientLibraryOrganization - */ -class ClientLibraryOrganization -{ - /** - * Not useful. - * - * Generated from protobuf enum CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED = 0; - */ - const CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED = 0; - /** - * Google Cloud Platform Org. - * - * Generated from protobuf enum CLOUD = 1; - */ - const CLOUD = 1; - /** - * Ads (Advertising) Org. - * - * Generated from protobuf enum ADS = 2; - */ - const ADS = 2; - /** - * Photos Org. - * - * Generated from protobuf enum PHOTOS = 3; - */ - const PHOTOS = 3; - /** - * Street View Org. - * - * Generated from protobuf enum STREET_VIEW = 4; - */ - const STREET_VIEW = 4; - /** - * Shopping Org. - * - * Generated from protobuf enum SHOPPING = 5; - */ - const SHOPPING = 5; - /** - * Geo Org. - * - * Generated from protobuf enum GEO = 6; - */ - const GEO = 6; - /** - * Generative AI - https://developers.generativeai.google - * - * Generated from protobuf enum GENERATIVE_AI = 7; - */ - const GENERATIVE_AI = 7; - - private static $valueToName = [ - self::CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED => 'CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED', - self::CLOUD => 'CLOUD', - self::ADS => 'ADS', - self::PHOTOS => 'PHOTOS', - self::STREET_VIEW => 'STREET_VIEW', - self::SHOPPING => 'SHOPPING', - self::GEO => 'GEO', - self::GENERATIVE_AI => 'GENERATIVE_AI', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ClientLibrarySettings.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ClientLibrarySettings.php deleted file mode 100644 index b4b81075cd82..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ClientLibrarySettings.php +++ /dev/null @@ -1,499 +0,0 @@ -google.api.ClientLibrarySettings - */ -class ClientLibrarySettings extends \Google\Protobuf\Internal\Message -{ - /** - * Version of the API to apply these settings to. This is the full protobuf - * package for the API, ending in the version element. - * Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1". - * - * Generated from protobuf field string version = 1; - */ - protected $version = ''; - /** - * Launch stage of this version of the API. - * - * Generated from protobuf field .google.api.LaunchStage launch_stage = 2; - */ - protected $launch_stage = 0; - /** - * When using transport=rest, the client request will encode enums as - * numbers rather than strings. - * - * Generated from protobuf field bool rest_numeric_enums = 3; - */ - protected $rest_numeric_enums = false; - /** - * Settings for legacy Java features, supported in the Service YAML. - * - * Generated from protobuf field .google.api.JavaSettings java_settings = 21; - */ - protected $java_settings = null; - /** - * Settings for C++ client libraries. - * - * Generated from protobuf field .google.api.CppSettings cpp_settings = 22; - */ - protected $cpp_settings = null; - /** - * Settings for PHP client libraries. - * - * Generated from protobuf field .google.api.PhpSettings php_settings = 23; - */ - protected $php_settings = null; - /** - * Settings for Python client libraries. - * - * Generated from protobuf field .google.api.PythonSettings python_settings = 24; - */ - protected $python_settings = null; - /** - * Settings for Node client libraries. - * - * Generated from protobuf field .google.api.NodeSettings node_settings = 25; - */ - protected $node_settings = null; - /** - * Settings for .NET client libraries. - * - * Generated from protobuf field .google.api.DotnetSettings dotnet_settings = 26; - */ - protected $dotnet_settings = null; - /** - * Settings for Ruby client libraries. - * - * Generated from protobuf field .google.api.RubySettings ruby_settings = 27; - */ - protected $ruby_settings = null; - /** - * Settings for Go client libraries. - * - * Generated from protobuf field .google.api.GoSettings go_settings = 28; - */ - protected $go_settings = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $version - * Version of the API to apply these settings to. This is the full protobuf - * package for the API, ending in the version element. - * Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1". - * @type int $launch_stage - * Launch stage of this version of the API. - * @type bool $rest_numeric_enums - * When using transport=rest, the client request will encode enums as - * numbers rather than strings. - * @type \Google\Api\JavaSettings $java_settings - * Settings for legacy Java features, supported in the Service YAML. - * @type \Google\Api\CppSettings $cpp_settings - * Settings for C++ client libraries. - * @type \Google\Api\PhpSettings $php_settings - * Settings for PHP client libraries. - * @type \Google\Api\PythonSettings $python_settings - * Settings for Python client libraries. - * @type \Google\Api\NodeSettings $node_settings - * Settings for Node client libraries. - * @type \Google\Api\DotnetSettings $dotnet_settings - * Settings for .NET client libraries. - * @type \Google\Api\RubySettings $ruby_settings - * Settings for Ruby client libraries. - * @type \Google\Api\GoSettings $go_settings - * Settings for Go client libraries. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Client::initOnce(); - parent::__construct($data); - } - - /** - * Version of the API to apply these settings to. This is the full protobuf - * package for the API, ending in the version element. - * Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1". - * - * Generated from protobuf field string version = 1; - * @return string - */ - public function getVersion() - { - return $this->version; - } - - /** - * Version of the API to apply these settings to. This is the full protobuf - * package for the API, ending in the version element. - * Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1". - * - * Generated from protobuf field string version = 1; - * @param string $var - * @return $this - */ - public function setVersion($var) - { - GPBUtil::checkString($var, True); - $this->version = $var; - - return $this; - } - - /** - * Launch stage of this version of the API. - * - * Generated from protobuf field .google.api.LaunchStage launch_stage = 2; - * @return int - */ - public function getLaunchStage() - { - return $this->launch_stage; - } - - /** - * Launch stage of this version of the API. - * - * Generated from protobuf field .google.api.LaunchStage launch_stage = 2; - * @param int $var - * @return $this - */ - public function setLaunchStage($var) - { - GPBUtil::checkEnum($var, \Google\Api\LaunchStage::class); - $this->launch_stage = $var; - - return $this; - } - - /** - * When using transport=rest, the client request will encode enums as - * numbers rather than strings. - * - * Generated from protobuf field bool rest_numeric_enums = 3; - * @return bool - */ - public function getRestNumericEnums() - { - return $this->rest_numeric_enums; - } - - /** - * When using transport=rest, the client request will encode enums as - * numbers rather than strings. - * - * Generated from protobuf field bool rest_numeric_enums = 3; - * @param bool $var - * @return $this - */ - public function setRestNumericEnums($var) - { - GPBUtil::checkBool($var); - $this->rest_numeric_enums = $var; - - return $this; - } - - /** - * Settings for legacy Java features, supported in the Service YAML. - * - * Generated from protobuf field .google.api.JavaSettings java_settings = 21; - * @return \Google\Api\JavaSettings|null - */ - public function getJavaSettings() - { - return $this->java_settings; - } - - public function hasJavaSettings() - { - return isset($this->java_settings); - } - - public function clearJavaSettings() - { - unset($this->java_settings); - } - - /** - * Settings for legacy Java features, supported in the Service YAML. - * - * Generated from protobuf field .google.api.JavaSettings java_settings = 21; - * @param \Google\Api\JavaSettings $var - * @return $this - */ - public function setJavaSettings($var) - { - GPBUtil::checkMessage($var, \Google\Api\JavaSettings::class); - $this->java_settings = $var; - - return $this; - } - - /** - * Settings for C++ client libraries. - * - * Generated from protobuf field .google.api.CppSettings cpp_settings = 22; - * @return \Google\Api\CppSettings|null - */ - public function getCppSettings() - { - return $this->cpp_settings; - } - - public function hasCppSettings() - { - return isset($this->cpp_settings); - } - - public function clearCppSettings() - { - unset($this->cpp_settings); - } - - /** - * Settings for C++ client libraries. - * - * Generated from protobuf field .google.api.CppSettings cpp_settings = 22; - * @param \Google\Api\CppSettings $var - * @return $this - */ - public function setCppSettings($var) - { - GPBUtil::checkMessage($var, \Google\Api\CppSettings::class); - $this->cpp_settings = $var; - - return $this; - } - - /** - * Settings for PHP client libraries. - * - * Generated from protobuf field .google.api.PhpSettings php_settings = 23; - * @return \Google\Api\PhpSettings|null - */ - public function getPhpSettings() - { - return $this->php_settings; - } - - public function hasPhpSettings() - { - return isset($this->php_settings); - } - - public function clearPhpSettings() - { - unset($this->php_settings); - } - - /** - * Settings for PHP client libraries. - * - * Generated from protobuf field .google.api.PhpSettings php_settings = 23; - * @param \Google\Api\PhpSettings $var - * @return $this - */ - public function setPhpSettings($var) - { - GPBUtil::checkMessage($var, \Google\Api\PhpSettings::class); - $this->php_settings = $var; - - return $this; - } - - /** - * Settings for Python client libraries. - * - * Generated from protobuf field .google.api.PythonSettings python_settings = 24; - * @return \Google\Api\PythonSettings|null - */ - public function getPythonSettings() - { - return $this->python_settings; - } - - public function hasPythonSettings() - { - return isset($this->python_settings); - } - - public function clearPythonSettings() - { - unset($this->python_settings); - } - - /** - * Settings for Python client libraries. - * - * Generated from protobuf field .google.api.PythonSettings python_settings = 24; - * @param \Google\Api\PythonSettings $var - * @return $this - */ - public function setPythonSettings($var) - { - GPBUtil::checkMessage($var, \Google\Api\PythonSettings::class); - $this->python_settings = $var; - - return $this; - } - - /** - * Settings for Node client libraries. - * - * Generated from protobuf field .google.api.NodeSettings node_settings = 25; - * @return \Google\Api\NodeSettings|null - */ - public function getNodeSettings() - { - return $this->node_settings; - } - - public function hasNodeSettings() - { - return isset($this->node_settings); - } - - public function clearNodeSettings() - { - unset($this->node_settings); - } - - /** - * Settings for Node client libraries. - * - * Generated from protobuf field .google.api.NodeSettings node_settings = 25; - * @param \Google\Api\NodeSettings $var - * @return $this - */ - public function setNodeSettings($var) - { - GPBUtil::checkMessage($var, \Google\Api\NodeSettings::class); - $this->node_settings = $var; - - return $this; - } - - /** - * Settings for .NET client libraries. - * - * Generated from protobuf field .google.api.DotnetSettings dotnet_settings = 26; - * @return \Google\Api\DotnetSettings|null - */ - public function getDotnetSettings() - { - return $this->dotnet_settings; - } - - public function hasDotnetSettings() - { - return isset($this->dotnet_settings); - } - - public function clearDotnetSettings() - { - unset($this->dotnet_settings); - } - - /** - * Settings for .NET client libraries. - * - * Generated from protobuf field .google.api.DotnetSettings dotnet_settings = 26; - * @param \Google\Api\DotnetSettings $var - * @return $this - */ - public function setDotnetSettings($var) - { - GPBUtil::checkMessage($var, \Google\Api\DotnetSettings::class); - $this->dotnet_settings = $var; - - return $this; - } - - /** - * Settings for Ruby client libraries. - * - * Generated from protobuf field .google.api.RubySettings ruby_settings = 27; - * @return \Google\Api\RubySettings|null - */ - public function getRubySettings() - { - return $this->ruby_settings; - } - - public function hasRubySettings() - { - return isset($this->ruby_settings); - } - - public function clearRubySettings() - { - unset($this->ruby_settings); - } - - /** - * Settings for Ruby client libraries. - * - * Generated from protobuf field .google.api.RubySettings ruby_settings = 27; - * @param \Google\Api\RubySettings $var - * @return $this - */ - public function setRubySettings($var) - { - GPBUtil::checkMessage($var, \Google\Api\RubySettings::class); - $this->ruby_settings = $var; - - return $this; - } - - /** - * Settings for Go client libraries. - * - * Generated from protobuf field .google.api.GoSettings go_settings = 28; - * @return \Google\Api\GoSettings|null - */ - public function getGoSettings() - { - return $this->go_settings; - } - - public function hasGoSettings() - { - return isset($this->go_settings); - } - - public function clearGoSettings() - { - unset($this->go_settings); - } - - /** - * Settings for Go client libraries. - * - * Generated from protobuf field .google.api.GoSettings go_settings = 28; - * @param \Google\Api\GoSettings $var - * @return $this - */ - public function setGoSettings($var) - { - GPBUtil::checkMessage($var, \Google\Api\GoSettings::class); - $this->go_settings = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/CommonLanguageSettings.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/CommonLanguageSettings.php deleted file mode 100644 index 2a3ad65deaf8..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/CommonLanguageSettings.php +++ /dev/null @@ -1,156 +0,0 @@ -google.api.CommonLanguageSettings - */ -class CommonLanguageSettings extends \Google\Protobuf\Internal\Message -{ - /** - * Link to automatically generated reference documentation. Example: - * https://cloud.google.com/nodejs/docs/reference/asset/latest - * - * Generated from protobuf field string reference_docs_uri = 1 [deprecated = true]; - * @deprecated - */ - protected $reference_docs_uri = ''; - /** - * The destination where API teams want this client library to be published. - * - * Generated from protobuf field repeated .google.api.ClientLibraryDestination destinations = 2; - */ - private $destinations; - /** - * Configuration for which RPCs should be generated in the GAPIC client. - * - * Generated from protobuf field .google.api.SelectiveGapicGeneration selective_gapic_generation = 3; - */ - protected $selective_gapic_generation = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $reference_docs_uri - * Link to automatically generated reference documentation. Example: - * https://cloud.google.com/nodejs/docs/reference/asset/latest - * @type int[] $destinations - * The destination where API teams want this client library to be published. - * @type \Google\Api\SelectiveGapicGeneration $selective_gapic_generation - * Configuration for which RPCs should be generated in the GAPIC client. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Client::initOnce(); - parent::__construct($data); - } - - /** - * Link to automatically generated reference documentation. Example: - * https://cloud.google.com/nodejs/docs/reference/asset/latest - * - * Generated from protobuf field string reference_docs_uri = 1 [deprecated = true]; - * @return string - * @deprecated - */ - public function getReferenceDocsUri() - { - if ($this->reference_docs_uri !== '') { - @trigger_error('reference_docs_uri is deprecated.', E_USER_DEPRECATED); - } - return $this->reference_docs_uri; - } - - /** - * Link to automatically generated reference documentation. Example: - * https://cloud.google.com/nodejs/docs/reference/asset/latest - * - * Generated from protobuf field string reference_docs_uri = 1 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setReferenceDocsUri($var) - { - @trigger_error('reference_docs_uri is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->reference_docs_uri = $var; - - return $this; - } - - /** - * The destination where API teams want this client library to be published. - * - * Generated from protobuf field repeated .google.api.ClientLibraryDestination destinations = 2; - * @return RepeatedField - */ - public function getDestinations() - { - return $this->destinations; - } - - /** - * The destination where API teams want this client library to be published. - * - * Generated from protobuf field repeated .google.api.ClientLibraryDestination destinations = 2; - * @param int[] $var - * @return $this - */ - public function setDestinations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Api\ClientLibraryDestination::class); - $this->destinations = $arr; - - return $this; - } - - /** - * Configuration for which RPCs should be generated in the GAPIC client. - * - * Generated from protobuf field .google.api.SelectiveGapicGeneration selective_gapic_generation = 3; - * @return \Google\Api\SelectiveGapicGeneration|null - */ - public function getSelectiveGapicGeneration() - { - return $this->selective_gapic_generation; - } - - public function hasSelectiveGapicGeneration() - { - return isset($this->selective_gapic_generation); - } - - public function clearSelectiveGapicGeneration() - { - unset($this->selective_gapic_generation); - } - - /** - * Configuration for which RPCs should be generated in the GAPIC client. - * - * Generated from protobuf field .google.api.SelectiveGapicGeneration selective_gapic_generation = 3; - * @param \Google\Api\SelectiveGapicGeneration $var - * @return $this - */ - public function setSelectiveGapicGeneration($var) - { - GPBUtil::checkMessage($var, \Google\Api\SelectiveGapicGeneration::class); - $this->selective_gapic_generation = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ConfigChange.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ConfigChange.php deleted file mode 100644 index 95968e096f0d..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ConfigChange.php +++ /dev/null @@ -1,251 +0,0 @@ -google.api.ConfigChange - */ -class ConfigChange extends \Google\Protobuf\Internal\Message -{ - /** - * Object hierarchy path to the change, with levels separated by a '.' - * character. For repeated fields, an applicable unique identifier field is - * used for the index (usually selector, name, or id). For maps, the term - * 'key' is used. If the field has no unique identifier, the numeric index - * is used. - * Examples: - * - visibility.rules[selector=="google.LibraryService.ListBooks"].restriction - * - quota.metric_rules[selector=="google"].metric_costs[key=="reads"].value - * - logging.producer_destinations[0] - * - * Generated from protobuf field string element = 1; - */ - protected $element = ''; - /** - * Value of the changed object in the old Service configuration, - * in JSON format. This field will not be populated if ChangeType == ADDED. - * - * Generated from protobuf field string old_value = 2; - */ - protected $old_value = ''; - /** - * Value of the changed object in the new Service configuration, - * in JSON format. This field will not be populated if ChangeType == REMOVED. - * - * Generated from protobuf field string new_value = 3; - */ - protected $new_value = ''; - /** - * The type for this change, either ADDED, REMOVED, or MODIFIED. - * - * Generated from protobuf field .google.api.ChangeType change_type = 4; - */ - protected $change_type = 0; - /** - * Collection of advice provided for this change, useful for determining the - * possible impact of this change. - * - * Generated from protobuf field repeated .google.api.Advice advices = 5; - */ - private $advices; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $element - * Object hierarchy path to the change, with levels separated by a '.' - * character. For repeated fields, an applicable unique identifier field is - * used for the index (usually selector, name, or id). For maps, the term - * 'key' is used. If the field has no unique identifier, the numeric index - * is used. - * Examples: - * - visibility.rules[selector=="google.LibraryService.ListBooks"].restriction - * - quota.metric_rules[selector=="google"].metric_costs[key=="reads"].value - * - logging.producer_destinations[0] - * @type string $old_value - * Value of the changed object in the old Service configuration, - * in JSON format. This field will not be populated if ChangeType == ADDED. - * @type string $new_value - * Value of the changed object in the new Service configuration, - * in JSON format. This field will not be populated if ChangeType == REMOVED. - * @type int $change_type - * The type for this change, either ADDED, REMOVED, or MODIFIED. - * @type \Google\Api\Advice[] $advices - * Collection of advice provided for this change, useful for determining the - * possible impact of this change. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\ConfigChange::initOnce(); - parent::__construct($data); - } - - /** - * Object hierarchy path to the change, with levels separated by a '.' - * character. For repeated fields, an applicable unique identifier field is - * used for the index (usually selector, name, or id). For maps, the term - * 'key' is used. If the field has no unique identifier, the numeric index - * is used. - * Examples: - * - visibility.rules[selector=="google.LibraryService.ListBooks"].restriction - * - quota.metric_rules[selector=="google"].metric_costs[key=="reads"].value - * - logging.producer_destinations[0] - * - * Generated from protobuf field string element = 1; - * @return string - */ - public function getElement() - { - return $this->element; - } - - /** - * Object hierarchy path to the change, with levels separated by a '.' - * character. For repeated fields, an applicable unique identifier field is - * used for the index (usually selector, name, or id). For maps, the term - * 'key' is used. If the field has no unique identifier, the numeric index - * is used. - * Examples: - * - visibility.rules[selector=="google.LibraryService.ListBooks"].restriction - * - quota.metric_rules[selector=="google"].metric_costs[key=="reads"].value - * - logging.producer_destinations[0] - * - * Generated from protobuf field string element = 1; - * @param string $var - * @return $this - */ - public function setElement($var) - { - GPBUtil::checkString($var, True); - $this->element = $var; - - return $this; - } - - /** - * Value of the changed object in the old Service configuration, - * in JSON format. This field will not be populated if ChangeType == ADDED. - * - * Generated from protobuf field string old_value = 2; - * @return string - */ - public function getOldValue() - { - return $this->old_value; - } - - /** - * Value of the changed object in the old Service configuration, - * in JSON format. This field will not be populated if ChangeType == ADDED. - * - * Generated from protobuf field string old_value = 2; - * @param string $var - * @return $this - */ - public function setOldValue($var) - { - GPBUtil::checkString($var, True); - $this->old_value = $var; - - return $this; - } - - /** - * Value of the changed object in the new Service configuration, - * in JSON format. This field will not be populated if ChangeType == REMOVED. - * - * Generated from protobuf field string new_value = 3; - * @return string - */ - public function getNewValue() - { - return $this->new_value; - } - - /** - * Value of the changed object in the new Service configuration, - * in JSON format. This field will not be populated if ChangeType == REMOVED. - * - * Generated from protobuf field string new_value = 3; - * @param string $var - * @return $this - */ - public function setNewValue($var) - { - GPBUtil::checkString($var, True); - $this->new_value = $var; - - return $this; - } - - /** - * The type for this change, either ADDED, REMOVED, or MODIFIED. - * - * Generated from protobuf field .google.api.ChangeType change_type = 4; - * @return int - */ - public function getChangeType() - { - return $this->change_type; - } - - /** - * The type for this change, either ADDED, REMOVED, or MODIFIED. - * - * Generated from protobuf field .google.api.ChangeType change_type = 4; - * @param int $var - * @return $this - */ - public function setChangeType($var) - { - GPBUtil::checkEnum($var, \Google\Api\ChangeType::class); - $this->change_type = $var; - - return $this; - } - - /** - * Collection of advice provided for this change, useful for determining the - * possible impact of this change. - * - * Generated from protobuf field repeated .google.api.Advice advices = 5; - * @return RepeatedField<\Google\Api\Advice> - */ - public function getAdvices() - { - return $this->advices; - } - - /** - * Collection of advice provided for this change, useful for determining the - * possible impact of this change. - * - * Generated from protobuf field repeated .google.api.Advice advices = 5; - * @param \Google\Api\Advice[] $var - * @return $this - */ - public function setAdvices($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\Advice::class); - $this->advices = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Context.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Context.php deleted file mode 100644 index a8fb3dcba8c6..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Context.php +++ /dev/null @@ -1,98 +0,0 @@ --bin” and - * “x-goog-ext--jspb” format. For example, list any service - * specific protobuf types that can appear in grpc metadata as follows in your - * yaml file: - * Example: - * context: - * rules: - * - selector: "google.example.library.v1.LibraryService.CreateBook" - * allowed_request_extensions: - * - google.foo.v1.NewExtension - * allowed_response_extensions: - * - google.foo.v1.NewExtension - * You can also specify extension ID instead of fully qualified extension name - * here. - * - * Generated from protobuf message google.api.Context - */ -class Context extends \Google\Protobuf\Internal\Message -{ - /** - * A list of RPC context rules that apply to individual API methods. - * **NOTE:** All service configuration rules follow "last one wins" order. - * - * Generated from protobuf field repeated .google.api.ContextRule rules = 1; - */ - private $rules; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Api\ContextRule[] $rules - * A list of RPC context rules that apply to individual API methods. - * **NOTE:** All service configuration rules follow "last one wins" order. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Context::initOnce(); - parent::__construct($data); - } - - /** - * A list of RPC context rules that apply to individual API methods. - * **NOTE:** All service configuration rules follow "last one wins" order. - * - * Generated from protobuf field repeated .google.api.ContextRule rules = 1; - * @return RepeatedField<\Google\Api\ContextRule> - */ - public function getRules() - { - return $this->rules; - } - - /** - * A list of RPC context rules that apply to individual API methods. - * **NOTE:** All service configuration rules follow "last one wins" order. - * - * Generated from protobuf field repeated .google.api.ContextRule rules = 1; - * @param \Google\Api\ContextRule[] $var - * @return $this - */ - public function setRules($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\ContextRule::class); - $this->rules = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ContextRule.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ContextRule.php deleted file mode 100644 index 669b1af4a0e1..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ContextRule.php +++ /dev/null @@ -1,228 +0,0 @@ -google.api.ContextRule - */ -class ContextRule extends \Google\Protobuf\Internal\Message -{ - /** - * Selects the methods to which this rule applies. - * Refer to [selector][google.api.DocumentationRule.selector] for syntax - * details. - * - * Generated from protobuf field string selector = 1; - */ - protected $selector = ''; - /** - * A list of full type names of requested contexts, only the requested context - * will be made available to the backend. - * - * Generated from protobuf field repeated string requested = 2; - */ - private $requested; - /** - * A list of full type names of provided contexts. It is used to support - * propagating HTTP headers and ETags from the response extension. - * - * Generated from protobuf field repeated string provided = 3; - */ - private $provided; - /** - * A list of full type names or extension IDs of extensions allowed in grpc - * side channel from client to backend. - * - * Generated from protobuf field repeated string allowed_request_extensions = 4; - */ - private $allowed_request_extensions; - /** - * A list of full type names or extension IDs of extensions allowed in grpc - * side channel from backend to client. - * - * Generated from protobuf field repeated string allowed_response_extensions = 5; - */ - private $allowed_response_extensions; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $selector - * Selects the methods to which this rule applies. - * Refer to [selector][google.api.DocumentationRule.selector] for syntax - * details. - * @type string[] $requested - * A list of full type names of requested contexts, only the requested context - * will be made available to the backend. - * @type string[] $provided - * A list of full type names of provided contexts. It is used to support - * propagating HTTP headers and ETags from the response extension. - * @type string[] $allowed_request_extensions - * A list of full type names or extension IDs of extensions allowed in grpc - * side channel from client to backend. - * @type string[] $allowed_response_extensions - * A list of full type names or extension IDs of extensions allowed in grpc - * side channel from backend to client. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Context::initOnce(); - parent::__construct($data); - } - - /** - * Selects the methods to which this rule applies. - * Refer to [selector][google.api.DocumentationRule.selector] for syntax - * details. - * - * Generated from protobuf field string selector = 1; - * @return string - */ - public function getSelector() - { - return $this->selector; - } - - /** - * Selects the methods to which this rule applies. - * Refer to [selector][google.api.DocumentationRule.selector] for syntax - * details. - * - * Generated from protobuf field string selector = 1; - * @param string $var - * @return $this - */ - public function setSelector($var) - { - GPBUtil::checkString($var, True); - $this->selector = $var; - - return $this; - } - - /** - * A list of full type names of requested contexts, only the requested context - * will be made available to the backend. - * - * Generated from protobuf field repeated string requested = 2; - * @return RepeatedField - */ - public function getRequested() - { - return $this->requested; - } - - /** - * A list of full type names of requested contexts, only the requested context - * will be made available to the backend. - * - * Generated from protobuf field repeated string requested = 2; - * @param string[] $var - * @return $this - */ - public function setRequested($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->requested = $arr; - - return $this; - } - - /** - * A list of full type names of provided contexts. It is used to support - * propagating HTTP headers and ETags from the response extension. - * - * Generated from protobuf field repeated string provided = 3; - * @return RepeatedField - */ - public function getProvided() - { - return $this->provided; - } - - /** - * A list of full type names of provided contexts. It is used to support - * propagating HTTP headers and ETags from the response extension. - * - * Generated from protobuf field repeated string provided = 3; - * @param string[] $var - * @return $this - */ - public function setProvided($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->provided = $arr; - - return $this; - } - - /** - * A list of full type names or extension IDs of extensions allowed in grpc - * side channel from client to backend. - * - * Generated from protobuf field repeated string allowed_request_extensions = 4; - * @return RepeatedField - */ - public function getAllowedRequestExtensions() - { - return $this->allowed_request_extensions; - } - - /** - * A list of full type names or extension IDs of extensions allowed in grpc - * side channel from client to backend. - * - * Generated from protobuf field repeated string allowed_request_extensions = 4; - * @param string[] $var - * @return $this - */ - public function setAllowedRequestExtensions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->allowed_request_extensions = $arr; - - return $this; - } - - /** - * A list of full type names or extension IDs of extensions allowed in grpc - * side channel from backend to client. - * - * Generated from protobuf field repeated string allowed_response_extensions = 5; - * @return RepeatedField - */ - public function getAllowedResponseExtensions() - { - return $this->allowed_response_extensions; - } - - /** - * A list of full type names or extension IDs of extensions allowed in grpc - * side channel from backend to client. - * - * Generated from protobuf field repeated string allowed_response_extensions = 5; - * @param string[] $var - * @return $this - */ - public function setAllowedResponseExtensions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->allowed_response_extensions = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Control.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Control.php deleted file mode 100644 index 834a57015bf6..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Control.php +++ /dev/null @@ -1,112 +0,0 @@ -google.api.Control - */ -class Control extends \Google\Protobuf\Internal\Message -{ - /** - * The service controller environment to use. If empty, no control plane - * features (like quota and billing) will be enabled. The recommended value - * for most services is servicecontrol.googleapis.com. - * - * Generated from protobuf field string environment = 1; - */ - protected $environment = ''; - /** - * Defines policies applying to the API methods of the service. - * - * Generated from protobuf field repeated .google.api.MethodPolicy method_policies = 4; - */ - private $method_policies; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $environment - * The service controller environment to use. If empty, no control plane - * features (like quota and billing) will be enabled. The recommended value - * for most services is servicecontrol.googleapis.com. - * @type \Google\Api\MethodPolicy[] $method_policies - * Defines policies applying to the API methods of the service. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Control::initOnce(); - parent::__construct($data); - } - - /** - * The service controller environment to use. If empty, no control plane - * features (like quota and billing) will be enabled. The recommended value - * for most services is servicecontrol.googleapis.com. - * - * Generated from protobuf field string environment = 1; - * @return string - */ - public function getEnvironment() - { - return $this->environment; - } - - /** - * The service controller environment to use. If empty, no control plane - * features (like quota and billing) will be enabled. The recommended value - * for most services is servicecontrol.googleapis.com. - * - * Generated from protobuf field string environment = 1; - * @param string $var - * @return $this - */ - public function setEnvironment($var) - { - GPBUtil::checkString($var, True); - $this->environment = $var; - - return $this; - } - - /** - * Defines policies applying to the API methods of the service. - * - * Generated from protobuf field repeated .google.api.MethodPolicy method_policies = 4; - * @return RepeatedField<\Google\Api\MethodPolicy> - */ - public function getMethodPolicies() - { - return $this->method_policies; - } - - /** - * Defines policies applying to the API methods of the service. - * - * Generated from protobuf field repeated .google.api.MethodPolicy method_policies = 4; - * @param \Google\Api\MethodPolicy[] $var - * @return $this - */ - public function setMethodPolicies($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\MethodPolicy::class); - $this->method_policies = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/CppSettings.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/CppSettings.php deleted file mode 100644 index d19648352d9f..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/CppSettings.php +++ /dev/null @@ -1,77 +0,0 @@ -google.api.CppSettings - */ -class CppSettings extends \Google\Protobuf\Internal\Message -{ - /** - * Some settings. - * - * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; - */ - protected $common = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Api\CommonLanguageSettings $common - * Some settings. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Client::initOnce(); - parent::__construct($data); - } - - /** - * Some settings. - * - * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; - * @return \Google\Api\CommonLanguageSettings|null - */ - public function getCommon() - { - return $this->common; - } - - public function hasCommon() - { - return isset($this->common); - } - - public function clearCommon() - { - unset($this->common); - } - - /** - * Some settings. - * - * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; - * @param \Google\Api\CommonLanguageSettings $var - * @return $this - */ - public function setCommon($var) - { - GPBUtil::checkMessage($var, \Google\Api\CommonLanguageSettings::class); - $this->common = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/CustomHttpPattern.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/CustomHttpPattern.php deleted file mode 100644 index 2cd8d9658420..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/CustomHttpPattern.php +++ /dev/null @@ -1,101 +0,0 @@ -google.api.CustomHttpPattern - */ -class CustomHttpPattern extends \Google\Protobuf\Internal\Message -{ - /** - * The name of this custom HTTP verb. - * - * Generated from protobuf field string kind = 1; - */ - protected $kind = ''; - /** - * The path matched by this custom verb. - * - * Generated from protobuf field string path = 2; - */ - protected $path = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $kind - * The name of this custom HTTP verb. - * @type string $path - * The path matched by this custom verb. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Http::initOnce(); - parent::__construct($data); - } - - /** - * The name of this custom HTTP verb. - * - * Generated from protobuf field string kind = 1; - * @return string - */ - public function getKind() - { - return $this->kind; - } - - /** - * The name of this custom HTTP verb. - * - * Generated from protobuf field string kind = 1; - * @param string $var - * @return $this - */ - public function setKind($var) - { - GPBUtil::checkString($var, True); - $this->kind = $var; - - return $this; - } - - /** - * The path matched by this custom verb. - * - * Generated from protobuf field string path = 2; - * @return string - */ - public function getPath() - { - return $this->path; - } - - /** - * The path matched by this custom verb. - * - * Generated from protobuf field string path = 2; - * @param string $var - * @return $this - */ - public function setPath($var) - { - GPBUtil::checkString($var, True); - $this->path = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution.php deleted file mode 100644 index 21d1527b3020..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution.php +++ /dev/null @@ -1,390 +0,0 @@ -google.api.Distribution - */ -class Distribution extends \Google\Protobuf\Internal\Message -{ - /** - * The number of values in the population. Must be non-negative. This value - * must equal the sum of the values in `bucket_counts` if a histogram is - * provided. - * - * Generated from protobuf field int64 count = 1; - */ - protected $count = 0; - /** - * The arithmetic mean of the values in the population. If `count` is zero - * then this field must be zero. - * - * Generated from protobuf field double mean = 2; - */ - protected $mean = 0.0; - /** - * The sum of squared deviations from the mean of the values in the - * population. For values x_i this is: - * Sum[i=1..n]((x_i - mean)^2) - * Knuth, "The Art of Computer Programming", Vol. 2, page 232, 3rd edition - * describes Welford's method for accumulating this sum in one pass. - * If `count` is zero then this field must be zero. - * - * Generated from protobuf field double sum_of_squared_deviation = 3; - */ - protected $sum_of_squared_deviation = 0.0; - /** - * If specified, contains the range of the population values. The field - * must not be present if the `count` is zero. - * - * Generated from protobuf field .google.api.Distribution.Range range = 4; - */ - protected $range = null; - /** - * Defines the histogram bucket boundaries. If the distribution does not - * contain a histogram, then omit this field. - * - * Generated from protobuf field .google.api.Distribution.BucketOptions bucket_options = 6; - */ - protected $bucket_options = null; - /** - * The number of values in each bucket of the histogram, as described in - * `bucket_options`. If the distribution does not have a histogram, then omit - * this field. If there is a histogram, then the sum of the values in - * `bucket_counts` must equal the value in the `count` field of the - * distribution. - * If present, `bucket_counts` should contain N values, where N is the number - * of buckets specified in `bucket_options`. If you supply fewer than N - * values, the remaining values are assumed to be 0. - * The order of the values in `bucket_counts` follows the bucket numbering - * schemes described for the three bucket types. The first value must be the - * count for the underflow bucket (number 0). The next N-2 values are the - * counts for the finite buckets (number 1 through N-2). The N'th value in - * `bucket_counts` is the count for the overflow bucket (number N-1). - * - * Generated from protobuf field repeated int64 bucket_counts = 7; - */ - private $bucket_counts; - /** - * Must be in increasing order of `value` field. - * - * Generated from protobuf field repeated .google.api.Distribution.Exemplar exemplars = 10; - */ - private $exemplars; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $count - * The number of values in the population. Must be non-negative. This value - * must equal the sum of the values in `bucket_counts` if a histogram is - * provided. - * @type float $mean - * The arithmetic mean of the values in the population. If `count` is zero - * then this field must be zero. - * @type float $sum_of_squared_deviation - * The sum of squared deviations from the mean of the values in the - * population. For values x_i this is: - * Sum[i=1..n]((x_i - mean)^2) - * Knuth, "The Art of Computer Programming", Vol. 2, page 232, 3rd edition - * describes Welford's method for accumulating this sum in one pass. - * If `count` is zero then this field must be zero. - * @type \Google\Api\Distribution\Range $range - * If specified, contains the range of the population values. The field - * must not be present if the `count` is zero. - * @type \Google\Api\Distribution\BucketOptions $bucket_options - * Defines the histogram bucket boundaries. If the distribution does not - * contain a histogram, then omit this field. - * @type int[]|string[] $bucket_counts - * The number of values in each bucket of the histogram, as described in - * `bucket_options`. If the distribution does not have a histogram, then omit - * this field. If there is a histogram, then the sum of the values in - * `bucket_counts` must equal the value in the `count` field of the - * distribution. - * If present, `bucket_counts` should contain N values, where N is the number - * of buckets specified in `bucket_options`. If you supply fewer than N - * values, the remaining values are assumed to be 0. - * The order of the values in `bucket_counts` follows the bucket numbering - * schemes described for the three bucket types. The first value must be the - * count for the underflow bucket (number 0). The next N-2 values are the - * counts for the finite buckets (number 1 through N-2). The N'th value in - * `bucket_counts` is the count for the overflow bucket (number N-1). - * @type \Google\Api\Distribution\Exemplar[] $exemplars - * Must be in increasing order of `value` field. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Distribution::initOnce(); - parent::__construct($data); - } - - /** - * The number of values in the population. Must be non-negative. This value - * must equal the sum of the values in `bucket_counts` if a histogram is - * provided. - * - * Generated from protobuf field int64 count = 1; - * @return int|string - */ - public function getCount() - { - return $this->count; - } - - /** - * The number of values in the population. Must be non-negative. This value - * must equal the sum of the values in `bucket_counts` if a histogram is - * provided. - * - * Generated from protobuf field int64 count = 1; - * @param int|string $var - * @return $this - */ - public function setCount($var) - { - GPBUtil::checkInt64($var); - $this->count = $var; - - return $this; - } - - /** - * The arithmetic mean of the values in the population. If `count` is zero - * then this field must be zero. - * - * Generated from protobuf field double mean = 2; - * @return float - */ - public function getMean() - { - return $this->mean; - } - - /** - * The arithmetic mean of the values in the population. If `count` is zero - * then this field must be zero. - * - * Generated from protobuf field double mean = 2; - * @param float $var - * @return $this - */ - public function setMean($var) - { - GPBUtil::checkDouble($var); - $this->mean = $var; - - return $this; - } - - /** - * The sum of squared deviations from the mean of the values in the - * population. For values x_i this is: - * Sum[i=1..n]((x_i - mean)^2) - * Knuth, "The Art of Computer Programming", Vol. 2, page 232, 3rd edition - * describes Welford's method for accumulating this sum in one pass. - * If `count` is zero then this field must be zero. - * - * Generated from protobuf field double sum_of_squared_deviation = 3; - * @return float - */ - public function getSumOfSquaredDeviation() - { - return $this->sum_of_squared_deviation; - } - - /** - * The sum of squared deviations from the mean of the values in the - * population. For values x_i this is: - * Sum[i=1..n]((x_i - mean)^2) - * Knuth, "The Art of Computer Programming", Vol. 2, page 232, 3rd edition - * describes Welford's method for accumulating this sum in one pass. - * If `count` is zero then this field must be zero. - * - * Generated from protobuf field double sum_of_squared_deviation = 3; - * @param float $var - * @return $this - */ - public function setSumOfSquaredDeviation($var) - { - GPBUtil::checkDouble($var); - $this->sum_of_squared_deviation = $var; - - return $this; - } - - /** - * If specified, contains the range of the population values. The field - * must not be present if the `count` is zero. - * - * Generated from protobuf field .google.api.Distribution.Range range = 4; - * @return \Google\Api\Distribution\Range|null - */ - public function getRange() - { - return $this->range; - } - - public function hasRange() - { - return isset($this->range); - } - - public function clearRange() - { - unset($this->range); - } - - /** - * If specified, contains the range of the population values. The field - * must not be present if the `count` is zero. - * - * Generated from protobuf field .google.api.Distribution.Range range = 4; - * @param \Google\Api\Distribution\Range $var - * @return $this - */ - public function setRange($var) - { - GPBUtil::checkMessage($var, \Google\Api\Distribution\Range::class); - $this->range = $var; - - return $this; - } - - /** - * Defines the histogram bucket boundaries. If the distribution does not - * contain a histogram, then omit this field. - * - * Generated from protobuf field .google.api.Distribution.BucketOptions bucket_options = 6; - * @return \Google\Api\Distribution\BucketOptions|null - */ - public function getBucketOptions() - { - return $this->bucket_options; - } - - public function hasBucketOptions() - { - return isset($this->bucket_options); - } - - public function clearBucketOptions() - { - unset($this->bucket_options); - } - - /** - * Defines the histogram bucket boundaries. If the distribution does not - * contain a histogram, then omit this field. - * - * Generated from protobuf field .google.api.Distribution.BucketOptions bucket_options = 6; - * @param \Google\Api\Distribution\BucketOptions $var - * @return $this - */ - public function setBucketOptions($var) - { - GPBUtil::checkMessage($var, \Google\Api\Distribution\BucketOptions::class); - $this->bucket_options = $var; - - return $this; - } - - /** - * The number of values in each bucket of the histogram, as described in - * `bucket_options`. If the distribution does not have a histogram, then omit - * this field. If there is a histogram, then the sum of the values in - * `bucket_counts` must equal the value in the `count` field of the - * distribution. - * If present, `bucket_counts` should contain N values, where N is the number - * of buckets specified in `bucket_options`. If you supply fewer than N - * values, the remaining values are assumed to be 0. - * The order of the values in `bucket_counts` follows the bucket numbering - * schemes described for the three bucket types. The first value must be the - * count for the underflow bucket (number 0). The next N-2 values are the - * counts for the finite buckets (number 1 through N-2). The N'th value in - * `bucket_counts` is the count for the overflow bucket (number N-1). - * - * Generated from protobuf field repeated int64 bucket_counts = 7; - * @return RepeatedField|RepeatedField - */ - public function getBucketCounts() - { - return $this->bucket_counts; - } - - /** - * The number of values in each bucket of the histogram, as described in - * `bucket_options`. If the distribution does not have a histogram, then omit - * this field. If there is a histogram, then the sum of the values in - * `bucket_counts` must equal the value in the `count` field of the - * distribution. - * If present, `bucket_counts` should contain N values, where N is the number - * of buckets specified in `bucket_options`. If you supply fewer than N - * values, the remaining values are assumed to be 0. - * The order of the values in `bucket_counts` follows the bucket numbering - * schemes described for the three bucket types. The first value must be the - * count for the underflow bucket (number 0). The next N-2 values are the - * counts for the finite buckets (number 1 through N-2). The N'th value in - * `bucket_counts` is the count for the overflow bucket (number N-1). - * - * Generated from protobuf field repeated int64 bucket_counts = 7; - * @param int[]|string[] $var - * @return $this - */ - public function setBucketCounts($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT64); - $this->bucket_counts = $arr; - - return $this; - } - - /** - * Must be in increasing order of `value` field. - * - * Generated from protobuf field repeated .google.api.Distribution.Exemplar exemplars = 10; - * @return RepeatedField<\Google\Api\Distribution\Exemplar> - */ - public function getExemplars() - { - return $this->exemplars; - } - - /** - * Must be in increasing order of `value` field. - * - * Generated from protobuf field repeated .google.api.Distribution.Exemplar exemplars = 10; - * @param \Google\Api\Distribution\Exemplar[] $var - * @return $this - */ - public function setExemplars($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\Distribution\Exemplar::class); - $this->exemplars = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/BucketOptions.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/BucketOptions.php deleted file mode 100644 index 9592cb4b7671..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/BucketOptions.php +++ /dev/null @@ -1,154 +0,0 @@ - 0) is the - * same as the upper bound of bucket i - 1. The buckets span the whole range - * of finite values: lower bound of the underflow bucket is -infinity and the - * upper bound of the overflow bucket is +infinity. The finite buckets are - * so-called because both bounds are finite. - * - * Generated from protobuf message google.api.Distribution.BucketOptions - */ -class BucketOptions extends \Google\Protobuf\Internal\Message -{ - protected $options; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Api\Distribution\BucketOptions\Linear $linear_buckets - * The linear bucket. - * @type \Google\Api\Distribution\BucketOptions\Exponential $exponential_buckets - * The exponential buckets. - * @type \Google\Api\Distribution\BucketOptions\Explicit $explicit_buckets - * The explicit buckets. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Distribution::initOnce(); - parent::__construct($data); - } - - /** - * The linear bucket. - * - * Generated from protobuf field .google.api.Distribution.BucketOptions.Linear linear_buckets = 1; - * @return \Google\Api\Distribution\BucketOptions\Linear|null - */ - public function getLinearBuckets() - { - return $this->readOneof(1); - } - - public function hasLinearBuckets() - { - return $this->hasOneof(1); - } - - /** - * The linear bucket. - * - * Generated from protobuf field .google.api.Distribution.BucketOptions.Linear linear_buckets = 1; - * @param \Google\Api\Distribution\BucketOptions\Linear $var - * @return $this - */ - public function setLinearBuckets($var) - { - GPBUtil::checkMessage($var, \Google\Api\Distribution\BucketOptions\Linear::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * The exponential buckets. - * - * Generated from protobuf field .google.api.Distribution.BucketOptions.Exponential exponential_buckets = 2; - * @return \Google\Api\Distribution\BucketOptions\Exponential|null - */ - public function getExponentialBuckets() - { - return $this->readOneof(2); - } - - public function hasExponentialBuckets() - { - return $this->hasOneof(2); - } - - /** - * The exponential buckets. - * - * Generated from protobuf field .google.api.Distribution.BucketOptions.Exponential exponential_buckets = 2; - * @param \Google\Api\Distribution\BucketOptions\Exponential $var - * @return $this - */ - public function setExponentialBuckets($var) - { - GPBUtil::checkMessage($var, \Google\Api\Distribution\BucketOptions\Exponential::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * The explicit buckets. - * - * Generated from protobuf field .google.api.Distribution.BucketOptions.Explicit explicit_buckets = 3; - * @return \Google\Api\Distribution\BucketOptions\Explicit|null - */ - public function getExplicitBuckets() - { - return $this->readOneof(3); - } - - public function hasExplicitBuckets() - { - return $this->hasOneof(3); - } - - /** - * The explicit buckets. - * - * Generated from protobuf field .google.api.Distribution.BucketOptions.Explicit explicit_buckets = 3; - * @param \Google\Api\Distribution\BucketOptions\Explicit $var - * @return $this - */ - public function setExplicitBuckets($var) - { - GPBUtil::checkMessage($var, \Google\Api\Distribution\BucketOptions\Explicit::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * @return string - */ - public function getOptions() - { - return $this->whichOneof("options"); - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/BucketOptions/Explicit.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/BucketOptions/Explicit.php deleted file mode 100644 index 5921bd98dfbb..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/BucketOptions/Explicit.php +++ /dev/null @@ -1,74 +0,0 @@ -google.api.Distribution.BucketOptions.Explicit - */ -class Explicit extends \Google\Protobuf\Internal\Message -{ - /** - * The values must be monotonically increasing. - * - * Generated from protobuf field repeated double bounds = 1; - */ - private $bounds; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type float[] $bounds - * The values must be monotonically increasing. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Distribution::initOnce(); - parent::__construct($data); - } - - /** - * The values must be monotonically increasing. - * - * Generated from protobuf field repeated double bounds = 1; - * @return RepeatedField - */ - public function getBounds() - { - return $this->bounds; - } - - /** - * The values must be monotonically increasing. - * - * Generated from protobuf field repeated double bounds = 1; - * @param float[] $var - * @return $this - */ - public function setBounds($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::DOUBLE); - $this->bounds = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/BucketOptions/Exponential.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/BucketOptions/Exponential.php deleted file mode 100644 index 58e67685834c..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/BucketOptions/Exponential.php +++ /dev/null @@ -1,141 +0,0 @@ -google.api.Distribution.BucketOptions.Exponential - */ -class Exponential extends \Google\Protobuf\Internal\Message -{ - /** - * Must be greater than 0. - * - * Generated from protobuf field int32 num_finite_buckets = 1; - */ - protected $num_finite_buckets = 0; - /** - * Must be greater than 1. - * - * Generated from protobuf field double growth_factor = 2; - */ - protected $growth_factor = 0.0; - /** - * Must be greater than 0. - * - * Generated from protobuf field double scale = 3; - */ - protected $scale = 0.0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $num_finite_buckets - * Must be greater than 0. - * @type float $growth_factor - * Must be greater than 1. - * @type float $scale - * Must be greater than 0. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Distribution::initOnce(); - parent::__construct($data); - } - - /** - * Must be greater than 0. - * - * Generated from protobuf field int32 num_finite_buckets = 1; - * @return int - */ - public function getNumFiniteBuckets() - { - return $this->num_finite_buckets; - } - - /** - * Must be greater than 0. - * - * Generated from protobuf field int32 num_finite_buckets = 1; - * @param int $var - * @return $this - */ - public function setNumFiniteBuckets($var) - { - GPBUtil::checkInt32($var); - $this->num_finite_buckets = $var; - - return $this; - } - - /** - * Must be greater than 1. - * - * Generated from protobuf field double growth_factor = 2; - * @return float - */ - public function getGrowthFactor() - { - return $this->growth_factor; - } - - /** - * Must be greater than 1. - * - * Generated from protobuf field double growth_factor = 2; - * @param float $var - * @return $this - */ - public function setGrowthFactor($var) - { - GPBUtil::checkDouble($var); - $this->growth_factor = $var; - - return $this; - } - - /** - * Must be greater than 0. - * - * Generated from protobuf field double scale = 3; - * @return float - */ - public function getScale() - { - return $this->scale; - } - - /** - * Must be greater than 0. - * - * Generated from protobuf field double scale = 3; - * @param float $var - * @return $this - */ - public function setScale($var) - { - GPBUtil::checkDouble($var); - $this->scale = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/BucketOptions/Linear.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/BucketOptions/Linear.php deleted file mode 100644 index ca602bd7463c..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/BucketOptions/Linear.php +++ /dev/null @@ -1,141 +0,0 @@ -google.api.Distribution.BucketOptions.Linear - */ -class Linear extends \Google\Protobuf\Internal\Message -{ - /** - * Must be greater than 0. - * - * Generated from protobuf field int32 num_finite_buckets = 1; - */ - protected $num_finite_buckets = 0; - /** - * Must be greater than 0. - * - * Generated from protobuf field double width = 2; - */ - protected $width = 0.0; - /** - * Lower bound of the first bucket. - * - * Generated from protobuf field double offset = 3; - */ - protected $offset = 0.0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $num_finite_buckets - * Must be greater than 0. - * @type float $width - * Must be greater than 0. - * @type float $offset - * Lower bound of the first bucket. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Distribution::initOnce(); - parent::__construct($data); - } - - /** - * Must be greater than 0. - * - * Generated from protobuf field int32 num_finite_buckets = 1; - * @return int - */ - public function getNumFiniteBuckets() - { - return $this->num_finite_buckets; - } - - /** - * Must be greater than 0. - * - * Generated from protobuf field int32 num_finite_buckets = 1; - * @param int $var - * @return $this - */ - public function setNumFiniteBuckets($var) - { - GPBUtil::checkInt32($var); - $this->num_finite_buckets = $var; - - return $this; - } - - /** - * Must be greater than 0. - * - * Generated from protobuf field double width = 2; - * @return float - */ - public function getWidth() - { - return $this->width; - } - - /** - * Must be greater than 0. - * - * Generated from protobuf field double width = 2; - * @param float $var - * @return $this - */ - public function setWidth($var) - { - GPBUtil::checkDouble($var); - $this->width = $var; - - return $this; - } - - /** - * Lower bound of the first bucket. - * - * Generated from protobuf field double offset = 3; - * @return float - */ - public function getOffset() - { - return $this->offset; - } - - /** - * Lower bound of the first bucket. - * - * Generated from protobuf field double offset = 3; - * @param float $var - * @return $this - */ - public function setOffset($var) - { - GPBUtil::checkDouble($var); - $this->offset = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/Exemplar.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/Exemplar.php deleted file mode 100644 index 4c28e48e173f..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/Exemplar.php +++ /dev/null @@ -1,177 +0,0 @@ -google.api.Distribution.Exemplar - */ -class Exemplar extends \Google\Protobuf\Internal\Message -{ - /** - * Value of the exemplar point. This value determines to which bucket the - * exemplar belongs. - * - * Generated from protobuf field double value = 1; - */ - protected $value = 0.0; - /** - * The observation (sampling) time of the above value. - * - * Generated from protobuf field .google.protobuf.Timestamp timestamp = 2; - */ - protected $timestamp = null; - /** - * Contextual information about the example value. Examples are: - * Trace: type.googleapis.com/google.monitoring.v3.SpanContext - * Literal string: type.googleapis.com/google.protobuf.StringValue - * Labels dropped during aggregation: - * type.googleapis.com/google.monitoring.v3.DroppedLabels - * There may be only a single attachment of any given message type in a - * single exemplar, and this is enforced by the system. - * - * Generated from protobuf field repeated .google.protobuf.Any attachments = 3; - */ - private $attachments; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type float $value - * Value of the exemplar point. This value determines to which bucket the - * exemplar belongs. - * @type \Google\Protobuf\Timestamp $timestamp - * The observation (sampling) time of the above value. - * @type \Google\Protobuf\Any[] $attachments - * Contextual information about the example value. Examples are: - * Trace: type.googleapis.com/google.monitoring.v3.SpanContext - * Literal string: type.googleapis.com/google.protobuf.StringValue - * Labels dropped during aggregation: - * type.googleapis.com/google.monitoring.v3.DroppedLabels - * There may be only a single attachment of any given message type in a - * single exemplar, and this is enforced by the system. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Distribution::initOnce(); - parent::__construct($data); - } - - /** - * Value of the exemplar point. This value determines to which bucket the - * exemplar belongs. - * - * Generated from protobuf field double value = 1; - * @return float - */ - public function getValue() - { - return $this->value; - } - - /** - * Value of the exemplar point. This value determines to which bucket the - * exemplar belongs. - * - * Generated from protobuf field double value = 1; - * @param float $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkDouble($var); - $this->value = $var; - - return $this; - } - - /** - * The observation (sampling) time of the above value. - * - * Generated from protobuf field .google.protobuf.Timestamp timestamp = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getTimestamp() - { - return $this->timestamp; - } - - public function hasTimestamp() - { - return isset($this->timestamp); - } - - public function clearTimestamp() - { - unset($this->timestamp); - } - - /** - * The observation (sampling) time of the above value. - * - * Generated from protobuf field .google.protobuf.Timestamp timestamp = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setTimestamp($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->timestamp = $var; - - return $this; - } - - /** - * Contextual information about the example value. Examples are: - * Trace: type.googleapis.com/google.monitoring.v3.SpanContext - * Literal string: type.googleapis.com/google.protobuf.StringValue - * Labels dropped during aggregation: - * type.googleapis.com/google.monitoring.v3.DroppedLabels - * There may be only a single attachment of any given message type in a - * single exemplar, and this is enforced by the system. - * - * Generated from protobuf field repeated .google.protobuf.Any attachments = 3; - * @return RepeatedField<\Google\Protobuf\Any> - */ - public function getAttachments() - { - return $this->attachments; - } - - /** - * Contextual information about the example value. Examples are: - * Trace: type.googleapis.com/google.monitoring.v3.SpanContext - * Literal string: type.googleapis.com/google.protobuf.StringValue - * Labels dropped during aggregation: - * type.googleapis.com/google.monitoring.v3.DroppedLabels - * There may be only a single attachment of any given message type in a - * single exemplar, and this is enforced by the system. - * - * Generated from protobuf field repeated .google.protobuf.Any attachments = 3; - * @param \Google\Protobuf\Any[] $var - * @return $this - */ - public function setAttachments($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Any::class); - $this->attachments = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/Range.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/Range.php deleted file mode 100644 index 7446a794ed9f..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/Range.php +++ /dev/null @@ -1,101 +0,0 @@ -google.api.Distribution.Range - */ -class Range extends \Google\Protobuf\Internal\Message -{ - /** - * The minimum of the population values. - * - * Generated from protobuf field double min = 1; - */ - protected $min = 0.0; - /** - * The maximum of the population values. - * - * Generated from protobuf field double max = 2; - */ - protected $max = 0.0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type float $min - * The minimum of the population values. - * @type float $max - * The maximum of the population values. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Distribution::initOnce(); - parent::__construct($data); - } - - /** - * The minimum of the population values. - * - * Generated from protobuf field double min = 1; - * @return float - */ - public function getMin() - { - return $this->min; - } - - /** - * The minimum of the population values. - * - * Generated from protobuf field double min = 1; - * @param float $var - * @return $this - */ - public function setMin($var) - { - GPBUtil::checkDouble($var); - $this->min = $var; - - return $this; - } - - /** - * The maximum of the population values. - * - * Generated from protobuf field double max = 2; - * @return float - */ - public function getMax() - { - return $this->max; - } - - /** - * The maximum of the population values. - * - * Generated from protobuf field double max = 2; - * @param float $var - * @return $this - */ - public function setMax($var) - { - GPBUtil::checkDouble($var); - $this->max = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Documentation.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Documentation.php deleted file mode 100644 index 6d84f784c333..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Documentation.php +++ /dev/null @@ -1,362 +0,0 @@ -documentation: - * summary: > - * The Google Calendar API gives access - * to most calendar features. - * pages: - * - name: Overview - * content: (== include google/foo/overview.md ==) - * - name: Tutorial - * content: (== include google/foo/tutorial.md ==) - * subpages: - * - name: Java - * content: (== include google/foo/tutorial_java.md ==) - * rules: - * - selector: google.calendar.Calendar.Get - * description: > - * ... - * - selector: google.calendar.Calendar.Put - * description: > - * ... - * - * Documentation is provided in markdown syntax. In addition to - * standard markdown features, definition lists, tables and fenced - * code blocks are supported. Section headers can be provided and are - * interpreted relative to the section nesting of the context where - * a documentation fragment is embedded. - * Documentation from the IDL is merged with documentation defined - * via the config at normalization time, where documentation provided - * by config rules overrides IDL provided. - * A number of constructs specific to the API platform are supported - * in documentation text. - * In order to reference a proto element, the following - * notation can be used: - *
[fully.qualified.proto.name][]
- * To override the display text used for the link, this can be used: - *
[display text][fully.qualified.proto.name]
- * Text can be excluded from doc using the following notation: - *
(-- internal comment --)
- * A few directives are available in documentation. Note that - * directives must appear on a single line to be properly - * identified. The `include` directive includes a markdown file from - * an external source: - *
(== include path/to/file ==)
- * The `resource_for` directive marks a message to be the resource of - * a collection in REST view. If it is not specified, tools attempt - * to infer the resource from the operations in a collection: - *
(== resource_for v1.shelves.books ==)
- * The directive `suppress_warning` does not directly affect documentation - * and is documented together with service config validation. - * - * Generated from protobuf message google.api.Documentation - */ -class Documentation extends \Google\Protobuf\Internal\Message -{ - /** - * A short description of what the service does. The summary must be plain - * text. It becomes the overview of the service displayed in Google Cloud - * Console. - * NOTE: This field is equivalent to the standard field `description`. - * - * Generated from protobuf field string summary = 1; - */ - protected $summary = ''; - /** - * The top level pages for the documentation set. - * - * Generated from protobuf field repeated .google.api.Page pages = 5; - */ - private $pages; - /** - * A list of documentation rules that apply to individual API elements. - * **NOTE:** All service configuration rules follow "last one wins" order. - * - * Generated from protobuf field repeated .google.api.DocumentationRule rules = 3; - */ - private $rules; - /** - * The URL to the root of documentation. - * - * Generated from protobuf field string documentation_root_url = 4; - */ - protected $documentation_root_url = ''; - /** - * Specifies the service root url if the default one (the service name - * from the yaml file) is not suitable. This can be seen in any fully - * specified service urls as well as sections that show a base that other - * urls are relative to. - * - * Generated from protobuf field string service_root_url = 6; - */ - protected $service_root_url = ''; - /** - * Declares a single overview page. For example: - *
documentation:
-     *   summary: ...
-     *   overview: (== include overview.md ==)
-     * 
- * This is a shortcut for the following declaration (using pages style): - *
documentation:
-     *   summary: ...
-     *   pages:
-     *   - name: Overview
-     *     content: (== include overview.md ==)
-     * 
- * Note: you cannot specify both `overview` field and `pages` field. - * - * Generated from protobuf field string overview = 2; - */ - protected $overview = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $summary - * A short description of what the service does. The summary must be plain - * text. It becomes the overview of the service displayed in Google Cloud - * Console. - * NOTE: This field is equivalent to the standard field `description`. - * @type \Google\Api\Page[] $pages - * The top level pages for the documentation set. - * @type \Google\Api\DocumentationRule[] $rules - * A list of documentation rules that apply to individual API elements. - * **NOTE:** All service configuration rules follow "last one wins" order. - * @type string $documentation_root_url - * The URL to the root of documentation. - * @type string $service_root_url - * Specifies the service root url if the default one (the service name - * from the yaml file) is not suitable. This can be seen in any fully - * specified service urls as well as sections that show a base that other - * urls are relative to. - * @type string $overview - * Declares a single overview page. For example: - *
documentation:
-     *             summary: ...
-     *             overview: (== include overview.md ==)
-     *           
- * This is a shortcut for the following declaration (using pages style): - *
documentation:
-     *             summary: ...
-     *             pages:
-     *             - name: Overview
-     *               content: (== include overview.md ==)
-     *           
- * Note: you cannot specify both `overview` field and `pages` field. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Documentation::initOnce(); - parent::__construct($data); - } - - /** - * A short description of what the service does. The summary must be plain - * text. It becomes the overview of the service displayed in Google Cloud - * Console. - * NOTE: This field is equivalent to the standard field `description`. - * - * Generated from protobuf field string summary = 1; - * @return string - */ - public function getSummary() - { - return $this->summary; - } - - /** - * A short description of what the service does. The summary must be plain - * text. It becomes the overview of the service displayed in Google Cloud - * Console. - * NOTE: This field is equivalent to the standard field `description`. - * - * Generated from protobuf field string summary = 1; - * @param string $var - * @return $this - */ - public function setSummary($var) - { - GPBUtil::checkString($var, True); - $this->summary = $var; - - return $this; - } - - /** - * The top level pages for the documentation set. - * - * Generated from protobuf field repeated .google.api.Page pages = 5; - * @return RepeatedField<\Google\Api\Page> - */ - public function getPages() - { - return $this->pages; - } - - /** - * The top level pages for the documentation set. - * - * Generated from protobuf field repeated .google.api.Page pages = 5; - * @param \Google\Api\Page[] $var - * @return $this - */ - public function setPages($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\Page::class); - $this->pages = $arr; - - return $this; - } - - /** - * A list of documentation rules that apply to individual API elements. - * **NOTE:** All service configuration rules follow "last one wins" order. - * - * Generated from protobuf field repeated .google.api.DocumentationRule rules = 3; - * @return RepeatedField<\Google\Api\DocumentationRule> - */ - public function getRules() - { - return $this->rules; - } - - /** - * A list of documentation rules that apply to individual API elements. - * **NOTE:** All service configuration rules follow "last one wins" order. - * - * Generated from protobuf field repeated .google.api.DocumentationRule rules = 3; - * @param \Google\Api\DocumentationRule[] $var - * @return $this - */ - public function setRules($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\DocumentationRule::class); - $this->rules = $arr; - - return $this; - } - - /** - * The URL to the root of documentation. - * - * Generated from protobuf field string documentation_root_url = 4; - * @return string - */ - public function getDocumentationRootUrl() - { - return $this->documentation_root_url; - } - - /** - * The URL to the root of documentation. - * - * Generated from protobuf field string documentation_root_url = 4; - * @param string $var - * @return $this - */ - public function setDocumentationRootUrl($var) - { - GPBUtil::checkString($var, True); - $this->documentation_root_url = $var; - - return $this; - } - - /** - * Specifies the service root url if the default one (the service name - * from the yaml file) is not suitable. This can be seen in any fully - * specified service urls as well as sections that show a base that other - * urls are relative to. - * - * Generated from protobuf field string service_root_url = 6; - * @return string - */ - public function getServiceRootUrl() - { - return $this->service_root_url; - } - - /** - * Specifies the service root url if the default one (the service name - * from the yaml file) is not suitable. This can be seen in any fully - * specified service urls as well as sections that show a base that other - * urls are relative to. - * - * Generated from protobuf field string service_root_url = 6; - * @param string $var - * @return $this - */ - public function setServiceRootUrl($var) - { - GPBUtil::checkString($var, True); - $this->service_root_url = $var; - - return $this; - } - - /** - * Declares a single overview page. For example: - *
documentation:
-     *   summary: ...
-     *   overview: (== include overview.md ==)
-     * 
- * This is a shortcut for the following declaration (using pages style): - *
documentation:
-     *   summary: ...
-     *   pages:
-     *   - name: Overview
-     *     content: (== include overview.md ==)
-     * 
- * Note: you cannot specify both `overview` field and `pages` field. - * - * Generated from protobuf field string overview = 2; - * @return string - */ - public function getOverview() - { - return $this->overview; - } - - /** - * Declares a single overview page. For example: - *
documentation:
-     *   summary: ...
-     *   overview: (== include overview.md ==)
-     * 
- * This is a shortcut for the following declaration (using pages style): - *
documentation:
-     *   summary: ...
-     *   pages:
-     *   - name: Overview
-     *     content: (== include overview.md ==)
-     * 
- * Note: you cannot specify both `overview` field and `pages` field. - * - * Generated from protobuf field string overview = 2; - * @param string $var - * @return $this - */ - public function setOverview($var) - { - GPBUtil::checkString($var, True); - $this->overview = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/DocumentationRule.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/DocumentationRule.php deleted file mode 100644 index d6c654532551..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/DocumentationRule.php +++ /dev/null @@ -1,171 +0,0 @@ -google.api.DocumentationRule - */ -class DocumentationRule extends \Google\Protobuf\Internal\Message -{ - /** - * The selector is a comma-separated list of patterns for any element such as - * a method, a field, an enum value. Each pattern is a qualified name of the - * element which may end in "*", indicating a wildcard. Wildcards are only - * allowed at the end and for a whole component of the qualified name, - * i.e. "foo.*" is ok, but not "foo.b*" or "foo.*.bar". A wildcard will match - * one or more components. To specify a default for all applicable elements, - * the whole pattern "*" is used. - * - * Generated from protobuf field string selector = 1; - */ - protected $selector = ''; - /** - * Description of the selected proto element (e.g. a message, a method, a - * 'service' definition, or a field). Defaults to leading & trailing comments - * taken from the proto source definition of the proto element. - * - * Generated from protobuf field string description = 2; - */ - protected $description = ''; - /** - * Deprecation description of the selected element(s). It can be provided if - * an element is marked as `deprecated`. - * - * Generated from protobuf field string deprecation_description = 3; - */ - protected $deprecation_description = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $selector - * The selector is a comma-separated list of patterns for any element such as - * a method, a field, an enum value. Each pattern is a qualified name of the - * element which may end in "*", indicating a wildcard. Wildcards are only - * allowed at the end and for a whole component of the qualified name, - * i.e. "foo.*" is ok, but not "foo.b*" or "foo.*.bar". A wildcard will match - * one or more components. To specify a default for all applicable elements, - * the whole pattern "*" is used. - * @type string $description - * Description of the selected proto element (e.g. a message, a method, a - * 'service' definition, or a field). Defaults to leading & trailing comments - * taken from the proto source definition of the proto element. - * @type string $deprecation_description - * Deprecation description of the selected element(s). It can be provided if - * an element is marked as `deprecated`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Documentation::initOnce(); - parent::__construct($data); - } - - /** - * The selector is a comma-separated list of patterns for any element such as - * a method, a field, an enum value. Each pattern is a qualified name of the - * element which may end in "*", indicating a wildcard. Wildcards are only - * allowed at the end and for a whole component of the qualified name, - * i.e. "foo.*" is ok, but not "foo.b*" or "foo.*.bar". A wildcard will match - * one or more components. To specify a default for all applicable elements, - * the whole pattern "*" is used. - * - * Generated from protobuf field string selector = 1; - * @return string - */ - public function getSelector() - { - return $this->selector; - } - - /** - * The selector is a comma-separated list of patterns for any element such as - * a method, a field, an enum value. Each pattern is a qualified name of the - * element which may end in "*", indicating a wildcard. Wildcards are only - * allowed at the end and for a whole component of the qualified name, - * i.e. "foo.*" is ok, but not "foo.b*" or "foo.*.bar". A wildcard will match - * one or more components. To specify a default for all applicable elements, - * the whole pattern "*" is used. - * - * Generated from protobuf field string selector = 1; - * @param string $var - * @return $this - */ - public function setSelector($var) - { - GPBUtil::checkString($var, True); - $this->selector = $var; - - return $this; - } - - /** - * Description of the selected proto element (e.g. a message, a method, a - * 'service' definition, or a field). Defaults to leading & trailing comments - * taken from the proto source definition of the proto element. - * - * Generated from protobuf field string description = 2; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Description of the selected proto element (e.g. a message, a method, a - * 'service' definition, or a field). Defaults to leading & trailing comments - * taken from the proto source definition of the proto element. - * - * Generated from protobuf field string description = 2; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Deprecation description of the selected element(s). It can be provided if - * an element is marked as `deprecated`. - * - * Generated from protobuf field string deprecation_description = 3; - * @return string - */ - public function getDeprecationDescription() - { - return $this->deprecation_description; - } - - /** - * Deprecation description of the selected element(s). It can be provided if - * an element is marked as `deprecated`. - * - * Generated from protobuf field string deprecation_description = 3; - * @param string $var - * @return $this - */ - public function setDeprecationDescription($var) - { - GPBUtil::checkString($var, True); - $this->deprecation_description = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/DotnetSettings.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/DotnetSettings.php deleted file mode 100644 index 3f94ff3a94e5..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/DotnetSettings.php +++ /dev/null @@ -1,307 +0,0 @@ -google.api.DotnetSettings - */ -class DotnetSettings extends \Google\Protobuf\Internal\Message -{ - /** - * Some settings. - * - * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; - */ - protected $common = null; - /** - * Map from original service names to renamed versions. - * This is used when the default generated types - * would cause a naming conflict. (Neither name is - * fully-qualified.) - * Example: Subscriber to SubscriberServiceApi. - * - * Generated from protobuf field map renamed_services = 2; - */ - private $renamed_services; - /** - * Map from full resource types to the effective short name - * for the resource. This is used when otherwise resource - * named from different services would cause naming collisions. - * Example entry: - * "datalabeling.googleapis.com/Dataset": "DataLabelingDataset" - * - * Generated from protobuf field map renamed_resources = 3; - */ - private $renamed_resources; - /** - * List of full resource types to ignore during generation. - * This is typically used for API-specific Location resources, - * which should be handled by the generator as if they were actually - * the common Location resources. - * Example entry: "documentai.googleapis.com/Location" - * - * Generated from protobuf field repeated string ignored_resources = 4; - */ - private $ignored_resources; - /** - * Namespaces which must be aliased in snippets due to - * a known (but non-generator-predictable) naming collision - * - * Generated from protobuf field repeated string forced_namespace_aliases = 5; - */ - private $forced_namespace_aliases; - /** - * Method signatures (in the form "service.method(signature)") - * which are provided separately, so shouldn't be generated. - * Snippets *calling* these methods are still generated, however. - * - * Generated from protobuf field repeated string handwritten_signatures = 6; - */ - private $handwritten_signatures; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Api\CommonLanguageSettings $common - * Some settings. - * @type array|\Google\Protobuf\Internal\MapField $renamed_services - * Map from original service names to renamed versions. - * This is used when the default generated types - * would cause a naming conflict. (Neither name is - * fully-qualified.) - * Example: Subscriber to SubscriberServiceApi. - * @type array|\Google\Protobuf\Internal\MapField $renamed_resources - * Map from full resource types to the effective short name - * for the resource. This is used when otherwise resource - * named from different services would cause naming collisions. - * Example entry: - * "datalabeling.googleapis.com/Dataset": "DataLabelingDataset" - * @type string[] $ignored_resources - * List of full resource types to ignore during generation. - * This is typically used for API-specific Location resources, - * which should be handled by the generator as if they were actually - * the common Location resources. - * Example entry: "documentai.googleapis.com/Location" - * @type string[] $forced_namespace_aliases - * Namespaces which must be aliased in snippets due to - * a known (but non-generator-predictable) naming collision - * @type string[] $handwritten_signatures - * Method signatures (in the form "service.method(signature)") - * which are provided separately, so shouldn't be generated. - * Snippets *calling* these methods are still generated, however. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Client::initOnce(); - parent::__construct($data); - } - - /** - * Some settings. - * - * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; - * @return \Google\Api\CommonLanguageSettings|null - */ - public function getCommon() - { - return $this->common; - } - - public function hasCommon() - { - return isset($this->common); - } - - public function clearCommon() - { - unset($this->common); - } - - /** - * Some settings. - * - * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; - * @param \Google\Api\CommonLanguageSettings $var - * @return $this - */ - public function setCommon($var) - { - GPBUtil::checkMessage($var, \Google\Api\CommonLanguageSettings::class); - $this->common = $var; - - return $this; - } - - /** - * Map from original service names to renamed versions. - * This is used when the default generated types - * would cause a naming conflict. (Neither name is - * fully-qualified.) - * Example: Subscriber to SubscriberServiceApi. - * - * Generated from protobuf field map renamed_services = 2; - * @return \Google\Protobuf\Internal\MapField - */ - public function getRenamedServices() - { - return $this->renamed_services; - } - - /** - * Map from original service names to renamed versions. - * This is used when the default generated types - * would cause a naming conflict. (Neither name is - * fully-qualified.) - * Example: Subscriber to SubscriberServiceApi. - * - * Generated from protobuf field map renamed_services = 2; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setRenamedServices($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->renamed_services = $arr; - - return $this; - } - - /** - * Map from full resource types to the effective short name - * for the resource. This is used when otherwise resource - * named from different services would cause naming collisions. - * Example entry: - * "datalabeling.googleapis.com/Dataset": "DataLabelingDataset" - * - * Generated from protobuf field map renamed_resources = 3; - * @return \Google\Protobuf\Internal\MapField - */ - public function getRenamedResources() - { - return $this->renamed_resources; - } - - /** - * Map from full resource types to the effective short name - * for the resource. This is used when otherwise resource - * named from different services would cause naming collisions. - * Example entry: - * "datalabeling.googleapis.com/Dataset": "DataLabelingDataset" - * - * Generated from protobuf field map renamed_resources = 3; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setRenamedResources($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->renamed_resources = $arr; - - return $this; - } - - /** - * List of full resource types to ignore during generation. - * This is typically used for API-specific Location resources, - * which should be handled by the generator as if they were actually - * the common Location resources. - * Example entry: "documentai.googleapis.com/Location" - * - * Generated from protobuf field repeated string ignored_resources = 4; - * @return RepeatedField - */ - public function getIgnoredResources() - { - return $this->ignored_resources; - } - - /** - * List of full resource types to ignore during generation. - * This is typically used for API-specific Location resources, - * which should be handled by the generator as if they were actually - * the common Location resources. - * Example entry: "documentai.googleapis.com/Location" - * - * Generated from protobuf field repeated string ignored_resources = 4; - * @param string[] $var - * @return $this - */ - public function setIgnoredResources($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->ignored_resources = $arr; - - return $this; - } - - /** - * Namespaces which must be aliased in snippets due to - * a known (but non-generator-predictable) naming collision - * - * Generated from protobuf field repeated string forced_namespace_aliases = 5; - * @return RepeatedField - */ - public function getForcedNamespaceAliases() - { - return $this->forced_namespace_aliases; - } - - /** - * Namespaces which must be aliased in snippets due to - * a known (but non-generator-predictable) naming collision - * - * Generated from protobuf field repeated string forced_namespace_aliases = 5; - * @param string[] $var - * @return $this - */ - public function setForcedNamespaceAliases($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->forced_namespace_aliases = $arr; - - return $this; - } - - /** - * Method signatures (in the form "service.method(signature)") - * which are provided separately, so shouldn't be generated. - * Snippets *calling* these methods are still generated, however. - * - * Generated from protobuf field repeated string handwritten_signatures = 6; - * @return RepeatedField - */ - public function getHandwrittenSignatures() - { - return $this->handwritten_signatures; - } - - /** - * Method signatures (in the form "service.method(signature)") - * which are provided separately, so shouldn't be generated. - * Snippets *calling* these methods are still generated, however. - * - * Generated from protobuf field repeated string handwritten_signatures = 6; - * @param string[] $var - * @return $this - */ - public function setHandwrittenSignatures($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->handwritten_signatures = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Endpoint.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Endpoint.php deleted file mode 100644 index 694c63a577b4..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Endpoint.php +++ /dev/null @@ -1,231 +0,0 @@ -google.api.Endpoint - */ -class Endpoint extends \Google\Protobuf\Internal\Message -{ - /** - * The canonical name of this endpoint. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Aliases for this endpoint, these will be served by the same UrlMap as the - * parent endpoint, and will be provisioned in the GCP stack for the Regional - * Endpoints. - * - * Generated from protobuf field repeated string aliases = 2; - */ - private $aliases; - /** - * The specification of an Internet routable address of API frontend that will - * handle requests to this [API - * Endpoint](https://cloud.google.com/apis/design/glossary). It should be - * either a valid IPv4 address or a fully-qualified domain name. For example, - * "8.8.8.8" or "myservice.appspot.com". - * - * Generated from protobuf field string target = 101; - */ - protected $target = ''; - /** - * Allowing - * [CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing), aka - * cross-domain traffic, would allow the backends served from this endpoint to - * receive and respond to HTTP OPTIONS requests. The response will be used by - * the browser to determine whether the subsequent cross-origin request is - * allowed to proceed. - * - * Generated from protobuf field bool allow_cors = 5; - */ - protected $allow_cors = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The canonical name of this endpoint. - * @type string[] $aliases - * Aliases for this endpoint, these will be served by the same UrlMap as the - * parent endpoint, and will be provisioned in the GCP stack for the Regional - * Endpoints. - * @type string $target - * The specification of an Internet routable address of API frontend that will - * handle requests to this [API - * Endpoint](https://cloud.google.com/apis/design/glossary). It should be - * either a valid IPv4 address or a fully-qualified domain name. For example, - * "8.8.8.8" or "myservice.appspot.com". - * @type bool $allow_cors - * Allowing - * [CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing), aka - * cross-domain traffic, would allow the backends served from this endpoint to - * receive and respond to HTTP OPTIONS requests. The response will be used by - * the browser to determine whether the subsequent cross-origin request is - * allowed to proceed. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Endpoint::initOnce(); - parent::__construct($data); - } - - /** - * The canonical name of this endpoint. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The canonical name of this endpoint. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Aliases for this endpoint, these will be served by the same UrlMap as the - * parent endpoint, and will be provisioned in the GCP stack for the Regional - * Endpoints. - * - * Generated from protobuf field repeated string aliases = 2; - * @return RepeatedField - */ - public function getAliases() - { - return $this->aliases; - } - - /** - * Aliases for this endpoint, these will be served by the same UrlMap as the - * parent endpoint, and will be provisioned in the GCP stack for the Regional - * Endpoints. - * - * Generated from protobuf field repeated string aliases = 2; - * @param string[] $var - * @return $this - */ - public function setAliases($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->aliases = $arr; - - return $this; - } - - /** - * The specification of an Internet routable address of API frontend that will - * handle requests to this [API - * Endpoint](https://cloud.google.com/apis/design/glossary). It should be - * either a valid IPv4 address or a fully-qualified domain name. For example, - * "8.8.8.8" or "myservice.appspot.com". - * - * Generated from protobuf field string target = 101; - * @return string - */ - public function getTarget() - { - return $this->target; - } - - /** - * The specification of an Internet routable address of API frontend that will - * handle requests to this [API - * Endpoint](https://cloud.google.com/apis/design/glossary). It should be - * either a valid IPv4 address or a fully-qualified domain name. For example, - * "8.8.8.8" or "myservice.appspot.com". - * - * Generated from protobuf field string target = 101; - * @param string $var - * @return $this - */ - public function setTarget($var) - { - GPBUtil::checkString($var, True); - $this->target = $var; - - return $this; - } - - /** - * Allowing - * [CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing), aka - * cross-domain traffic, would allow the backends served from this endpoint to - * receive and respond to HTTP OPTIONS requests. The response will be used by - * the browser to determine whether the subsequent cross-origin request is - * allowed to proceed. - * - * Generated from protobuf field bool allow_cors = 5; - * @return bool - */ - public function getAllowCors() - { - return $this->allow_cors; - } - - /** - * Allowing - * [CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing), aka - * cross-domain traffic, would allow the backends served from this endpoint to - * receive and respond to HTTP OPTIONS requests. The response will be used by - * the browser to determine whether the subsequent cross-origin request is - * allowed to proceed. - * - * Generated from protobuf field bool allow_cors = 5; - * @param bool $var - * @return $this - */ - public function setAllowCors($var) - { - GPBUtil::checkBool($var); - $this->allow_cors = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ErrorReason.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ErrorReason.php deleted file mode 100644 index 5457fb4ca9bf..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ErrorReason.php +++ /dev/null @@ -1,895 +0,0 @@ -google.api.ErrorReason - */ -class ErrorReason -{ - /** - * Do not use this default value. - * - * Generated from protobuf enum ERROR_REASON_UNSPECIFIED = 0; - */ - const ERROR_REASON_UNSPECIFIED = 0; - /** - * The request is calling a disabled service for a consumer. - * Example of an ErrorInfo when the consumer "projects/123" contacting - * "pubsub.googleapis.com" service which is disabled: - * { "reason": "SERVICE_DISABLED", - * "domain": "googleapis.com", - * "metadata": { - * "consumer": "projects/123", - * "service": "pubsub.googleapis.com" - * } - * } - * This response indicates the "pubsub.googleapis.com" has been disabled in - * "projects/123". - * - * Generated from protobuf enum SERVICE_DISABLED = 1; - */ - const SERVICE_DISABLED = 1; - /** - * The request whose associated billing account is disabled. - * Example of an ErrorInfo when the consumer "projects/123" fails to contact - * "pubsub.googleapis.com" service because the associated billing account is - * disabled: - * { "reason": "BILLING_DISABLED", - * "domain": "googleapis.com", - * "metadata": { - * "consumer": "projects/123", - * "service": "pubsub.googleapis.com" - * } - * } - * This response indicates the billing account associated has been disabled. - * - * Generated from protobuf enum BILLING_DISABLED = 2; - */ - const BILLING_DISABLED = 2; - /** - * The request is denied because the provided [API - * key](https://cloud.google.com/docs/authentication/api-keys) is invalid. It - * may be in a bad format, cannot be found, or has been expired). - * Example of an ErrorInfo when the request is contacting - * "storage.googleapis.com" service with an invalid API key: - * { "reason": "API_KEY_INVALID", - * "domain": "googleapis.com", - * "metadata": { - * "service": "storage.googleapis.com", - * } - * } - * - * Generated from protobuf enum API_KEY_INVALID = 3; - */ - const API_KEY_INVALID = 3; - /** - * The request is denied because it violates [API key API - * restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_api_restrictions). - * Example of an ErrorInfo when the consumer "projects/123" fails to call the - * "storage.googleapis.com" service because this service is restricted in the - * API key: - * { "reason": "API_KEY_SERVICE_BLOCKED", - * "domain": "googleapis.com", - * "metadata": { - * "consumer": "projects/123", - * "service": "storage.googleapis.com" - * } - * } - * - * Generated from protobuf enum API_KEY_SERVICE_BLOCKED = 4; - */ - const API_KEY_SERVICE_BLOCKED = 4; - /** - * The request is denied because it violates [API key HTTP - * restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_http_restrictions). - * Example of an ErrorInfo when the consumer "projects/123" fails to call - * "storage.googleapis.com" service because the http referrer of the request - * violates API key HTTP restrictions: - * { "reason": "API_KEY_HTTP_REFERRER_BLOCKED", - * "domain": "googleapis.com", - * "metadata": { - * "consumer": "projects/123", - * "service": "storage.googleapis.com", - * } - * } - * - * Generated from protobuf enum API_KEY_HTTP_REFERRER_BLOCKED = 7; - */ - const API_KEY_HTTP_REFERRER_BLOCKED = 7; - /** - * The request is denied because it violates [API key IP address - * restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_application_restrictions). - * Example of an ErrorInfo when the consumer "projects/123" fails to call - * "storage.googleapis.com" service because the caller IP of the request - * violates API key IP address restrictions: - * { "reason": "API_KEY_IP_ADDRESS_BLOCKED", - * "domain": "googleapis.com", - * "metadata": { - * "consumer": "projects/123", - * "service": "storage.googleapis.com", - * } - * } - * - * Generated from protobuf enum API_KEY_IP_ADDRESS_BLOCKED = 8; - */ - const API_KEY_IP_ADDRESS_BLOCKED = 8; - /** - * The request is denied because it violates [API key Android application - * restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_application_restrictions). - * Example of an ErrorInfo when the consumer "projects/123" fails to call - * "storage.googleapis.com" service because the request from the Android apps - * violates the API key Android application restrictions: - * { "reason": "API_KEY_ANDROID_APP_BLOCKED", - * "domain": "googleapis.com", - * "metadata": { - * "consumer": "projects/123", - * "service": "storage.googleapis.com" - * } - * } - * - * Generated from protobuf enum API_KEY_ANDROID_APP_BLOCKED = 9; - */ - const API_KEY_ANDROID_APP_BLOCKED = 9; - /** - * The request is denied because it violates [API key iOS application - * restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_application_restrictions). - * Example of an ErrorInfo when the consumer "projects/123" fails to call - * "storage.googleapis.com" service because the request from the iOS apps - * violates the API key iOS application restrictions: - * { "reason": "API_KEY_IOS_APP_BLOCKED", - * "domain": "googleapis.com", - * "metadata": { - * "consumer": "projects/123", - * "service": "storage.googleapis.com" - * } - * } - * - * Generated from protobuf enum API_KEY_IOS_APP_BLOCKED = 13; - */ - const API_KEY_IOS_APP_BLOCKED = 13; - /** - * The request is denied because there is not enough rate quota for the - * consumer. - * Example of an ErrorInfo when the consumer "projects/123" fails to contact - * "pubsub.googleapis.com" service because consumer's rate quota usage has - * reached the maximum value set for the quota limit - * "ReadsPerMinutePerProject" on the quota metric - * "pubsub.googleapis.com/read_requests": - * { "reason": "RATE_LIMIT_EXCEEDED", - * "domain": "googleapis.com", - * "metadata": { - * "consumer": "projects/123", - * "service": "pubsub.googleapis.com", - * "quota_metric": "pubsub.googleapis.com/read_requests", - * "quota_limit": "ReadsPerMinutePerProject" - * } - * } - * Example of an ErrorInfo when the consumer "projects/123" checks quota on - * the service "dataflow.googleapis.com" and hits the organization quota - * limit "DefaultRequestsPerMinutePerOrganization" on the metric - * "dataflow.googleapis.com/default_requests". - * { "reason": "RATE_LIMIT_EXCEEDED", - * "domain": "googleapis.com", - * "metadata": { - * "consumer": "projects/123", - * "service": "dataflow.googleapis.com", - * "quota_metric": "dataflow.googleapis.com/default_requests", - * "quota_limit": "DefaultRequestsPerMinutePerOrganization" - * } - * } - * - * Generated from protobuf enum RATE_LIMIT_EXCEEDED = 5; - */ - const RATE_LIMIT_EXCEEDED = 5; - /** - * The request is denied because there is not enough resource quota for the - * consumer. - * Example of an ErrorInfo when the consumer "projects/123" fails to contact - * "compute.googleapis.com" service because consumer's resource quota usage - * has reached the maximum value set for the quota limit "VMsPerProject" - * on the quota metric "compute.googleapis.com/vms": - * { "reason": "RESOURCE_QUOTA_EXCEEDED", - * "domain": "googleapis.com", - * "metadata": { - * "consumer": "projects/123", - * "service": "compute.googleapis.com", - * "quota_metric": "compute.googleapis.com/vms", - * "quota_limit": "VMsPerProject" - * } - * } - * Example of an ErrorInfo when the consumer "projects/123" checks resource - * quota on the service "dataflow.googleapis.com" and hits the organization - * quota limit "jobs-per-organization" on the metric - * "dataflow.googleapis.com/job_count". - * { "reason": "RESOURCE_QUOTA_EXCEEDED", - * "domain": "googleapis.com", - * "metadata": { - * "consumer": "projects/123", - * "service": "dataflow.googleapis.com", - * "quota_metric": "dataflow.googleapis.com/job_count", - * "quota_limit": "jobs-per-organization" - * } - * } - * - * Generated from protobuf enum RESOURCE_QUOTA_EXCEEDED = 6; - */ - const RESOURCE_QUOTA_EXCEEDED = 6; - /** - * The request whose associated billing account address is in a tax restricted - * location, violates the local tax restrictions when creating resources in - * the restricted region. - * Example of an ErrorInfo when creating the Cloud Storage Bucket in the - * container "projects/123" under a tax restricted region - * "locations/asia-northeast3": - * { "reason": "LOCATION_TAX_POLICY_VIOLATED", - * "domain": "googleapis.com", - * "metadata": { - * "consumer": "projects/123", - * "service": "storage.googleapis.com", - * "location": "locations/asia-northeast3" - * } - * } - * This response indicates creating the Cloud Storage Bucket in - * "locations/asia-northeast3" violates the location tax restriction. - * - * Generated from protobuf enum LOCATION_TAX_POLICY_VIOLATED = 10; - */ - const LOCATION_TAX_POLICY_VIOLATED = 10; - /** - * The request is denied because the caller does not have required permission - * on the user project "projects/123" or the user project is invalid. For more - * information, check the [userProject System - * Parameters](https://cloud.google.com/apis/docs/system-parameters). - * Example of an ErrorInfo when the caller is calling Cloud Storage service - * with insufficient permissions on the user project: - * { "reason": "USER_PROJECT_DENIED", - * "domain": "googleapis.com", - * "metadata": { - * "consumer": "projects/123", - * "service": "storage.googleapis.com" - * } - * } - * - * Generated from protobuf enum USER_PROJECT_DENIED = 11; - */ - const USER_PROJECT_DENIED = 11; - /** - * The request is denied because the consumer "projects/123" is suspended due - * to Terms of Service(Tos) violations. Check [Project suspension - * guidelines](https://cloud.google.com/resource-manager/docs/project-suspension-guidelines) - * for more information. - * Example of an ErrorInfo when calling Cloud Storage service with the - * suspended consumer "projects/123": - * { "reason": "CONSUMER_SUSPENDED", - * "domain": "googleapis.com", - * "metadata": { - * "consumer": "projects/123", - * "service": "storage.googleapis.com" - * } - * } - * - * Generated from protobuf enum CONSUMER_SUSPENDED = 12; - */ - const CONSUMER_SUSPENDED = 12; - /** - * The request is denied because the associated consumer is invalid. It may be - * in a bad format, cannot be found, or have been deleted. - * Example of an ErrorInfo when calling Cloud Storage service with the - * invalid consumer "projects/123": - * { "reason": "CONSUMER_INVALID", - * "domain": "googleapis.com", - * "metadata": { - * "consumer": "projects/123", - * "service": "storage.googleapis.com" - * } - * } - * - * Generated from protobuf enum CONSUMER_INVALID = 14; - */ - const CONSUMER_INVALID = 14; - /** - * The request is denied because it violates [VPC Service - * Controls](https://cloud.google.com/vpc-service-controls/docs/overview). - * The 'uid' field is a random generated identifier that customer can use it - * to search the audit log for a request rejected by VPC Service Controls. For - * more information, please refer [VPC Service Controls - * Troubleshooting](https://cloud.google.com/vpc-service-controls/docs/troubleshooting#unique-id) - * Example of an ErrorInfo when the consumer "projects/123" fails to call - * Cloud Storage service because the request is prohibited by the VPC Service - * Controls. - * { "reason": "SECURITY_POLICY_VIOLATED", - * "domain": "googleapis.com", - * "metadata": { - * "uid": "123456789abcde", - * "consumer": "projects/123", - * "service": "storage.googleapis.com" - * } - * } - * - * Generated from protobuf enum SECURITY_POLICY_VIOLATED = 15; - */ - const SECURITY_POLICY_VIOLATED = 15; - /** - * The request is denied because the provided access token has expired. - * Example of an ErrorInfo when the request is calling Cloud Storage service - * with an expired access token: - * { "reason": "ACCESS_TOKEN_EXPIRED", - * "domain": "googleapis.com", - * "metadata": { - * "service": "storage.googleapis.com", - * "method": "google.storage.v1.Storage.GetObject" - * } - * } - * - * Generated from protobuf enum ACCESS_TOKEN_EXPIRED = 16; - */ - const ACCESS_TOKEN_EXPIRED = 16; - /** - * The request is denied because the provided access token doesn't have at - * least one of the acceptable scopes required for the API. Please check - * [OAuth 2.0 Scopes for Google - * APIs](https://developers.google.com/identity/protocols/oauth2/scopes) for - * the list of the OAuth 2.0 scopes that you might need to request to access - * the API. - * Example of an ErrorInfo when the request is calling Cloud Storage service - * with an access token that is missing required scopes: - * { "reason": "ACCESS_TOKEN_SCOPE_INSUFFICIENT", - * "domain": "googleapis.com", - * "metadata": { - * "service": "storage.googleapis.com", - * "method": "google.storage.v1.Storage.GetObject" - * } - * } - * - * Generated from protobuf enum ACCESS_TOKEN_SCOPE_INSUFFICIENT = 17; - */ - const ACCESS_TOKEN_SCOPE_INSUFFICIENT = 17; - /** - * The request is denied because the account associated with the provided - * access token is in an invalid state, such as disabled or deleted. - * For more information, see https://cloud.google.com/docs/authentication. - * Warning: For privacy reasons, the server may not be able to disclose the - * email address for some accounts. The client MUST NOT depend on the - * availability of the `email` attribute. - * Example of an ErrorInfo when the request is to the Cloud Storage API with - * an access token that is associated with a disabled or deleted [service - * account](http://cloud/iam/docs/service-accounts): - * { "reason": "ACCOUNT_STATE_INVALID", - * "domain": "googleapis.com", - * "metadata": { - * "service": "storage.googleapis.com", - * "method": "google.storage.v1.Storage.GetObject", - * "email": "user\@123.iam.gserviceaccount.com" - * } - * } - * - * Generated from protobuf enum ACCOUNT_STATE_INVALID = 18; - */ - const ACCOUNT_STATE_INVALID = 18; - /** - * The request is denied because the type of the provided access token is not - * supported by the API being called. - * Example of an ErrorInfo when the request is to the Cloud Storage API with - * an unsupported token type. - * { "reason": "ACCESS_TOKEN_TYPE_UNSUPPORTED", - * "domain": "googleapis.com", - * "metadata": { - * "service": "storage.googleapis.com", - * "method": "google.storage.v1.Storage.GetObject" - * } - * } - * - * Generated from protobuf enum ACCESS_TOKEN_TYPE_UNSUPPORTED = 19; - */ - const ACCESS_TOKEN_TYPE_UNSUPPORTED = 19; - /** - * The request is denied because the request doesn't have any authentication - * credentials. For more information regarding the supported authentication - * strategies for Google Cloud APIs, see - * https://cloud.google.com/docs/authentication. - * Example of an ErrorInfo when the request is to the Cloud Storage API - * without any authentication credentials. - * { "reason": "CREDENTIALS_MISSING", - * "domain": "googleapis.com", - * "metadata": { - * "service": "storage.googleapis.com", - * "method": "google.storage.v1.Storage.GetObject" - * } - * } - * - * Generated from protobuf enum CREDENTIALS_MISSING = 20; - */ - const CREDENTIALS_MISSING = 20; - /** - * The request is denied because the provided project owning the resource - * which acts as the [API - * consumer](https://cloud.google.com/apis/design/glossary#api_consumer) is - * invalid. It may be in a bad format or empty. - * Example of an ErrorInfo when the request is to the Cloud Functions API, - * but the offered resource project in the request in a bad format which can't - * perform the ListFunctions method. - * { "reason": "RESOURCE_PROJECT_INVALID", - * "domain": "googleapis.com", - * "metadata": { - * "service": "cloudfunctions.googleapis.com", - * "method": - * "google.cloud.functions.v1.CloudFunctionsService.ListFunctions" - * } - * } - * - * Generated from protobuf enum RESOURCE_PROJECT_INVALID = 21; - */ - const RESOURCE_PROJECT_INVALID = 21; - /** - * The request is denied because the provided session cookie is missing, - * invalid or failed to decode. - * Example of an ErrorInfo when the request is calling Cloud Storage service - * with a SID cookie which can't be decoded. - * { "reason": "SESSION_COOKIE_INVALID", - * "domain": "googleapis.com", - * "metadata": { - * "service": "storage.googleapis.com", - * "method": "google.storage.v1.Storage.GetObject", - * "cookie": "SID" - * } - * } - * - * Generated from protobuf enum SESSION_COOKIE_INVALID = 23; - */ - const SESSION_COOKIE_INVALID = 23; - /** - * The request is denied because the user is from a Google Workspace customer - * that blocks their users from accessing a particular service. - * Example scenario: https://support.google.com/a/answer/9197205?hl=en - * Example of an ErrorInfo when access to Google Cloud Storage service is - * blocked by the Google Workspace administrator: - * { "reason": "USER_BLOCKED_BY_ADMIN", - * "domain": "googleapis.com", - * "metadata": { - * "service": "storage.googleapis.com", - * "method": "google.storage.v1.Storage.GetObject", - * } - * } - * - * Generated from protobuf enum USER_BLOCKED_BY_ADMIN = 24; - */ - const USER_BLOCKED_BY_ADMIN = 24; - /** - * The request is denied because the resource service usage is restricted - * by administrators according to the organization policy constraint. - * For more information see - * https://cloud.google.com/resource-manager/docs/organization-policy/restricting-services. - * Example of an ErrorInfo when access to Google Cloud Storage service is - * restricted by Resource Usage Restriction policy: - * { "reason": "RESOURCE_USAGE_RESTRICTION_VIOLATED", - * "domain": "googleapis.com", - * "metadata": { - * "consumer": "projects/project-123", - * "service": "storage.googleapis.com" - * } - * } - * - * Generated from protobuf enum RESOURCE_USAGE_RESTRICTION_VIOLATED = 25; - */ - const RESOURCE_USAGE_RESTRICTION_VIOLATED = 25; - /** - * Unimplemented. Do not use. - * The request is denied because it contains unsupported system parameters in - * URL query parameters or HTTP headers. For more information, - * see https://cloud.google.com/apis/docs/system-parameters - * Example of an ErrorInfo when access "pubsub.googleapis.com" service with - * a request header of "x-goog-user-ip": - * { "reason": "SYSTEM_PARAMETER_UNSUPPORTED", - * "domain": "googleapis.com", - * "metadata": { - * "service": "pubsub.googleapis.com" - * "parameter": "x-goog-user-ip" - * } - * } - * - * Generated from protobuf enum SYSTEM_PARAMETER_UNSUPPORTED = 26; - */ - const SYSTEM_PARAMETER_UNSUPPORTED = 26; - /** - * The request is denied because it violates Org Restriction: the requested - * resource does not belong to allowed organizations specified in - * "X-Goog-Allowed-Resources" header. - * Example of an ErrorInfo when accessing a GCP resource that is restricted by - * Org Restriction for "pubsub.googleapis.com" service. - * { - * reason: "ORG_RESTRICTION_VIOLATION" - * domain: "googleapis.com" - * metadata { - * "consumer":"projects/123456" - * "service": "pubsub.googleapis.com" - * } - * } - * - * Generated from protobuf enum ORG_RESTRICTION_VIOLATION = 27; - */ - const ORG_RESTRICTION_VIOLATION = 27; - /** - * The request is denied because "X-Goog-Allowed-Resources" header is in a bad - * format. - * Example of an ErrorInfo when - * accessing "pubsub.googleapis.com" service with an invalid - * "X-Goog-Allowed-Resources" request header. - * { - * reason: "ORG_RESTRICTION_HEADER_INVALID" - * domain: "googleapis.com" - * metadata { - * "consumer":"projects/123456" - * "service": "pubsub.googleapis.com" - * } - * } - * - * Generated from protobuf enum ORG_RESTRICTION_HEADER_INVALID = 28; - */ - const ORG_RESTRICTION_HEADER_INVALID = 28; - /** - * Unimplemented. Do not use. - * The request is calling a service that is not visible to the consumer. - * Example of an ErrorInfo when the consumer "projects/123" contacting - * "pubsub.googleapis.com" service which is not visible to the consumer. - * { "reason": "SERVICE_NOT_VISIBLE", - * "domain": "googleapis.com", - * "metadata": { - * "consumer": "projects/123", - * "service": "pubsub.googleapis.com" - * } - * } - * This response indicates the "pubsub.googleapis.com" is not visible to - * "projects/123" (or it may not exist). - * - * Generated from protobuf enum SERVICE_NOT_VISIBLE = 29; - */ - const SERVICE_NOT_VISIBLE = 29; - /** - * The request is related to a project for which GCP access is suspended. - * Example of an ErrorInfo when the consumer "projects/123" fails to contact - * "pubsub.googleapis.com" service because GCP access is suspended: - * { "reason": "GCP_SUSPENDED", - * "domain": "googleapis.com", - * "metadata": { - * "consumer": "projects/123", - * "service": "pubsub.googleapis.com" - * } - * } - * This response indicates the associated GCP account has been suspended. - * - * Generated from protobuf enum GCP_SUSPENDED = 30; - */ - const GCP_SUSPENDED = 30; - /** - * The request violates the location policies when creating resources in - * the restricted region. - * Example of an ErrorInfo when creating the Cloud Storage Bucket by - * "projects/123" for service storage.googleapis.com: - * { "reason": "LOCATION_POLICY_VIOLATED", - * "domain": "googleapis.com", - * "metadata": { - * "consumer": "projects/123", - * "service": "storage.googleapis.com", - * } - * } - * This response indicates creating the Cloud Storage Bucket in - * "locations/asia-northeast3" violates at least one location policy. - * The troubleshooting guidance is provided in the Help links. - * - * Generated from protobuf enum LOCATION_POLICY_VIOLATED = 31; - */ - const LOCATION_POLICY_VIOLATED = 31; - /** - * The request is denied because origin request header is missing. - * Example of an ErrorInfo when - * accessing "pubsub.googleapis.com" service with an empty "Origin" request - * header. - * { - * reason: "MISSING_ORIGIN" - * domain: "googleapis.com" - * metadata { - * "consumer":"projects/123456" - * "service": "pubsub.googleapis.com" - * } - * } - * - * Generated from protobuf enum MISSING_ORIGIN = 33; - */ - const MISSING_ORIGIN = 33; - /** - * The request is denied because the request contains more than one credential - * type that are individually acceptable, but not together. The customer - * should retry their request with only one set of credentials. - * Example of an ErrorInfo when - * accessing "pubsub.googleapis.com" service with overloaded credentials. - * { - * reason: "OVERLOADED_CREDENTIALS" - * domain: "googleapis.com" - * metadata { - * "consumer":"projects/123456" - * "service": "pubsub.googleapis.com" - * } - * } - * - * Generated from protobuf enum OVERLOADED_CREDENTIALS = 34; - */ - const OVERLOADED_CREDENTIALS = 34; - /** - * The request whose associated location violates the location org policy - * restrictions when creating resources in the restricted region. - * Example of an ErrorInfo when creating the Cloud Storage Bucket in the - * container "projects/123" under a restricted region - * "locations/asia-northeast3": - * { - * "reason": "LOCATION_ORG_POLICY_VIOLATED", - * "domain": "googleapis.com", - * "metadata": { - * "resource": "projects/123", - * "location": "locations/asia-northeast3" - * } - * } - * This response indicates creating the Cloud Storage Bucket in - * "locations/asia-northeast3" violates the location org policy restriction. - * - * Generated from protobuf enum LOCATION_ORG_POLICY_VIOLATED = 35; - */ - const LOCATION_ORG_POLICY_VIOLATED = 35; - /** - * The request is denied because it access data of regulated customers using - * TLS 1.0 and 1.1. - * Example of an ErrorInfo when accessing a GCP resource "projects/123" that - * is restricted by TLS Version Restriction for "pubsub.googleapis.com" - * service. - * { - * "reason": "TLS_ORG_POLICY_VIOLATED", - * "domain": "googleapis.com", - * "metadata": { - * "service": "pubsub.googleapis.com" - * "resource": "projects/123", - * "policyName": "constraints/gcp.restrictTLSVersion", - * "tlsVersion": "TLS_VERSION_1" - * } - * } - * - * Generated from protobuf enum TLS_ORG_POLICY_VIOLATED = 36; - */ - const TLS_ORG_POLICY_VIOLATED = 36; - /** - * The request is denied because the associated project has exceeded the - * emulator quota limit. - * Example of an ErrorInfo when the associated "projects/123" has exceeded the - * emulator quota limit. - * { - * "reason": "EMULATOR_QUOTA_EXCEEDED", - * "domain": "googleapis.com", - * "metadata": { - * "service": "pubsub.googleapis.com" - * "consumer": "projects/123" - * } - * } - * - * Generated from protobuf enum EMULATOR_QUOTA_EXCEEDED = 38; - */ - const EMULATOR_QUOTA_EXCEEDED = 38; - /** - * The request is denied because the associated application credential header - * is invalid for an Android applications. - * Example of an ErrorInfo when the request from an Android application to the - * "pubsub.googleapis.com" with an invalid application credential header. - * { - * "reason": "CREDENTIAL_ANDROID_APP_INVALID", - * "domain": "googleapis.com", - * "metadata": { - * "service": "pubsub.googleapis.com" - * } - * } - * - * Generated from protobuf enum CREDENTIAL_ANDROID_APP_INVALID = 39; - */ - const CREDENTIAL_ANDROID_APP_INVALID = 39; - /** - * The request is denied because IAM permission on resource is denied. - * Example of an ErrorInfo when the IAM permission `aiplatform.datasets.list` - * is denied on resource `projects/123`. - * { - * "reason": "IAM_PERMISSION_DENIED", - * "domain": "googleapis.com", - * "metadata": { - * "resource": "projects/123" - * "permission": "aiplatform.datasets.list" - * } - * } - * - * Generated from protobuf enum IAM_PERMISSION_DENIED = 41; - */ - const IAM_PERMISSION_DENIED = 41; - /** - * The request is denied because it contains the invalid JWT token. - * Example of an ErrorInfo when the request contains an invalid JWT token for - * service `storage.googleapis.com`. - * { - * "reason": "JWT_TOKEN_INVALID", - * "domain": "googleapis.com", - * "metadata": { - * "service": "storage.googleapis.com" - * } - * } - * - * Generated from protobuf enum JWT_TOKEN_INVALID = 42; - */ - const JWT_TOKEN_INVALID = 42; - /** - * The request is denied because it contains credential with type that is - * unsupported. - * Example of an ErrorInfo when the request contains an unsupported credential - * type for service `storage.googleapis.com`. - * { - * "reason": "CREDENTIAL_TYPE_UNSUPPORTED", - * "domain": "googleapis.com", - * "metadata": { - * "service": "storage.googleapis.com" - * } - * } - * - * Generated from protobuf enum CREDENTIAL_TYPE_UNSUPPORTED = 43; - */ - const CREDENTIAL_TYPE_UNSUPPORTED = 43; - /** - * The request is denied because it contains unsupported account type. - * Example of an ErrorInfo when the request contains an unsupported account - * type for service `storage.googleapis.com`. - * { - * "reason": "ACCOUNT_TYPE_UNSUPPORTED", - * "domain": "googleapis.com", - * "metadata": { - * "service": "storage.googleapis.com" - * } - * } - * - * Generated from protobuf enum ACCOUNT_TYPE_UNSUPPORTED = 44; - */ - const ACCOUNT_TYPE_UNSUPPORTED = 44; - /** - * The request is denied because the API endpoint is restricted by - * administrators according to the organization policy constraint. - * For more information see - * https://cloud.google.com/assured-workloads/docs/restrict-endpoint-usage. - * Example of an ErrorInfo when access to Google Cloud Storage service is - * restricted by Restrict Endpoint Usage policy: - * { - * "reason": "ENDPOINT_USAGE_RESTRICTION_VIOLATED", - * "domain": "googleapis.com/policies/endpointUsageRestriction", - * "metadata": { - * "policy_name": "constraints/gcp.restrictEndpointUsage", - * "checked_value": "storage.googleapis.com" - * "consumer": "organization/123" - * "service": "storage.googleapis.com" - * } - * } - * - * Generated from protobuf enum ENDPOINT_USAGE_RESTRICTION_VIOLATED = 45; - */ - const ENDPOINT_USAGE_RESTRICTION_VIOLATED = 45; - /** - * The request is denied because the TLS Cipher Suite is restricted by - * administrators according to the organization policy constraint. - * For more information see - * https://cloud.google.com/assured-workloads/docs/restrict-tls-cipher-suites - * Example of an ErrorInfo when access to Google Cloud BigQuery service is - * restricted by Restrict TLS Cipher Suites policy: - * { - * "reason": "TLS_CIPHER_RESTRICTION_VIOLATED", - * "domain": "googleapis.com/policies/tlsCipherRestriction", - * "metadata": { - * "policy_name": "constraints/gcp.restrictTLSCipherSuites", - * "checked_value": "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 - * "consumer": "organization/123" - * "service": "bigquery.googleapis.com" - * } - * } - * - * Generated from protobuf enum TLS_CIPHER_RESTRICTION_VIOLATED = 46; - */ - const TLS_CIPHER_RESTRICTION_VIOLATED = 46; - /** - * The request is denied because the MCP activation check fails. - * Example of an ErrorInfo when the container "projects/123" contacting - * "pubsub.googleapis.com" service which is disabled by MCP: - * { "reason": "MCP_SERVER_DISABLED", - * "domain": "googleapis.com", - * "metadata": { - * "consumer": "projects/123", - * "service": "pubsub.googleapis.com" - * } - * } - * This response indicates the "pubsub.googleapis.com" has been disabled in - * "projects/123" for MCP. - * - * Generated from protobuf enum MCP_SERVER_DISABLED = 47; - */ - const MCP_SERVER_DISABLED = 47; - - private static $valueToName = [ - self::ERROR_REASON_UNSPECIFIED => 'ERROR_REASON_UNSPECIFIED', - self::SERVICE_DISABLED => 'SERVICE_DISABLED', - self::BILLING_DISABLED => 'BILLING_DISABLED', - self::API_KEY_INVALID => 'API_KEY_INVALID', - self::API_KEY_SERVICE_BLOCKED => 'API_KEY_SERVICE_BLOCKED', - self::API_KEY_HTTP_REFERRER_BLOCKED => 'API_KEY_HTTP_REFERRER_BLOCKED', - self::API_KEY_IP_ADDRESS_BLOCKED => 'API_KEY_IP_ADDRESS_BLOCKED', - self::API_KEY_ANDROID_APP_BLOCKED => 'API_KEY_ANDROID_APP_BLOCKED', - self::API_KEY_IOS_APP_BLOCKED => 'API_KEY_IOS_APP_BLOCKED', - self::RATE_LIMIT_EXCEEDED => 'RATE_LIMIT_EXCEEDED', - self::RESOURCE_QUOTA_EXCEEDED => 'RESOURCE_QUOTA_EXCEEDED', - self::LOCATION_TAX_POLICY_VIOLATED => 'LOCATION_TAX_POLICY_VIOLATED', - self::USER_PROJECT_DENIED => 'USER_PROJECT_DENIED', - self::CONSUMER_SUSPENDED => 'CONSUMER_SUSPENDED', - self::CONSUMER_INVALID => 'CONSUMER_INVALID', - self::SECURITY_POLICY_VIOLATED => 'SECURITY_POLICY_VIOLATED', - self::ACCESS_TOKEN_EXPIRED => 'ACCESS_TOKEN_EXPIRED', - self::ACCESS_TOKEN_SCOPE_INSUFFICIENT => 'ACCESS_TOKEN_SCOPE_INSUFFICIENT', - self::ACCOUNT_STATE_INVALID => 'ACCOUNT_STATE_INVALID', - self::ACCESS_TOKEN_TYPE_UNSUPPORTED => 'ACCESS_TOKEN_TYPE_UNSUPPORTED', - self::CREDENTIALS_MISSING => 'CREDENTIALS_MISSING', - self::RESOURCE_PROJECT_INVALID => 'RESOURCE_PROJECT_INVALID', - self::SESSION_COOKIE_INVALID => 'SESSION_COOKIE_INVALID', - self::USER_BLOCKED_BY_ADMIN => 'USER_BLOCKED_BY_ADMIN', - self::RESOURCE_USAGE_RESTRICTION_VIOLATED => 'RESOURCE_USAGE_RESTRICTION_VIOLATED', - self::SYSTEM_PARAMETER_UNSUPPORTED => 'SYSTEM_PARAMETER_UNSUPPORTED', - self::ORG_RESTRICTION_VIOLATION => 'ORG_RESTRICTION_VIOLATION', - self::ORG_RESTRICTION_HEADER_INVALID => 'ORG_RESTRICTION_HEADER_INVALID', - self::SERVICE_NOT_VISIBLE => 'SERVICE_NOT_VISIBLE', - self::GCP_SUSPENDED => 'GCP_SUSPENDED', - self::LOCATION_POLICY_VIOLATED => 'LOCATION_POLICY_VIOLATED', - self::MISSING_ORIGIN => 'MISSING_ORIGIN', - self::OVERLOADED_CREDENTIALS => 'OVERLOADED_CREDENTIALS', - self::LOCATION_ORG_POLICY_VIOLATED => 'LOCATION_ORG_POLICY_VIOLATED', - self::TLS_ORG_POLICY_VIOLATED => 'TLS_ORG_POLICY_VIOLATED', - self::EMULATOR_QUOTA_EXCEEDED => 'EMULATOR_QUOTA_EXCEEDED', - self::CREDENTIAL_ANDROID_APP_INVALID => 'CREDENTIAL_ANDROID_APP_INVALID', - self::IAM_PERMISSION_DENIED => 'IAM_PERMISSION_DENIED', - self::JWT_TOKEN_INVALID => 'JWT_TOKEN_INVALID', - self::CREDENTIAL_TYPE_UNSUPPORTED => 'CREDENTIAL_TYPE_UNSUPPORTED', - self::ACCOUNT_TYPE_UNSUPPORTED => 'ACCOUNT_TYPE_UNSUPPORTED', - self::ENDPOINT_USAGE_RESTRICTION_VIOLATED => 'ENDPOINT_USAGE_RESTRICTION_VIOLATED', - self::TLS_CIPHER_RESTRICTION_VIOLATED => 'TLS_CIPHER_RESTRICTION_VIOLATED', - self::MCP_SERVER_DISABLED => 'MCP_SERVER_DISABLED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/FieldBehavior.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/FieldBehavior.php deleted file mode 100644 index 4c57c5080055..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/FieldBehavior.php +++ /dev/null @@ -1,133 +0,0 @@ -google.api.FieldBehavior - */ -class FieldBehavior -{ - /** - * Conventional default for enums. Do not use this. - * - * Generated from protobuf enum FIELD_BEHAVIOR_UNSPECIFIED = 0; - */ - const FIELD_BEHAVIOR_UNSPECIFIED = 0; - /** - * Specifically denotes a field as optional. - * While all fields in protocol buffers are optional, this may be specified - * for emphasis if appropriate. - * - * Generated from protobuf enum OPTIONAL = 1; - */ - const OPTIONAL = 1; - /** - * Denotes a field as required. - * This indicates that the field **must** be provided as part of the request, - * and failure to do so will cause an error (usually `INVALID_ARGUMENT`). - * - * Generated from protobuf enum REQUIRED = 2; - */ - const REQUIRED = 2; - /** - * Denotes a field as output only. - * This indicates that the field is provided in responses, but including the - * field in a request does nothing (the server *must* ignore it and - * *must not* throw an error as a result of the field's presence). - * - * Generated from protobuf enum OUTPUT_ONLY = 3; - */ - const OUTPUT_ONLY = 3; - /** - * Denotes a field as input only. - * This indicates that the field is provided in requests, and the - * corresponding field is not included in output. - * - * Generated from protobuf enum INPUT_ONLY = 4; - */ - const INPUT_ONLY = 4; - /** - * Denotes a field as immutable. - * This indicates that the field may be set once in a request to create a - * resource, but may not be changed thereafter. - * - * Generated from protobuf enum IMMUTABLE = 5; - */ - const IMMUTABLE = 5; - /** - * Denotes that a (repeated) field is an unordered list. - * This indicates that the service may provide the elements of the list - * in any arbitrary order, rather than the order the user originally - * provided. Additionally, the list's order may or may not be stable. - * - * Generated from protobuf enum UNORDERED_LIST = 6; - */ - const UNORDERED_LIST = 6; - /** - * Denotes that this field returns a non-empty default value if not set. - * This indicates that if the user provides the empty value in a request, - * a non-empty value will be returned. The user will not be aware of what - * non-empty value to expect. - * - * Generated from protobuf enum NON_EMPTY_DEFAULT = 7; - */ - const NON_EMPTY_DEFAULT = 7; - /** - * Denotes that the field in a resource (a message annotated with - * google.api.resource) is used in the resource name to uniquely identify the - * resource. For AIP-compliant APIs, this should only be applied to the - * `name` field on the resource. - * This behavior should not be applied to references to other resources within - * the message. - * The identifier field of resources often have different field behavior - * depending on the request it is embedded in (e.g. for Create methods name - * is optional and unused, while for Update methods it is required). Instead - * of method-specific annotations, only `IDENTIFIER` is required. - * - * Generated from protobuf enum IDENTIFIER = 8; - */ - const IDENTIFIER = 8; - - private static $valueToName = [ - self::FIELD_BEHAVIOR_UNSPECIFIED => 'FIELD_BEHAVIOR_UNSPECIFIED', - self::OPTIONAL => 'OPTIONAL', - self::REQUIRED => 'REQUIRED', - self::OUTPUT_ONLY => 'OUTPUT_ONLY', - self::INPUT_ONLY => 'INPUT_ONLY', - self::IMMUTABLE => 'IMMUTABLE', - self::UNORDERED_LIST => 'UNORDERED_LIST', - self::NON_EMPTY_DEFAULT => 'NON_EMPTY_DEFAULT', - self::IDENTIFIER => 'IDENTIFIER', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/FieldInfo.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/FieldInfo.php deleted file mode 100644 index 71cf35a1027a..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/FieldInfo.php +++ /dev/null @@ -1,117 +0,0 @@ -google.api.FieldInfo - */ -class FieldInfo extends \Google\Protobuf\Internal\Message -{ - /** - * The standard format of a field value. This does not explicitly configure - * any API consumer, just documents the API's format for the field it is - * applied to. - * - * Generated from protobuf field .google.api.FieldInfo.Format format = 1; - */ - protected $format = 0; - /** - * The type(s) that the annotated, generic field may represent. - * Currently, this must only be used on fields of type `google.protobuf.Any`. - * Supporting other generic types may be considered in the future. - * - * Generated from protobuf field repeated .google.api.TypeReference referenced_types = 2; - */ - private $referenced_types; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $format - * The standard format of a field value. This does not explicitly configure - * any API consumer, just documents the API's format for the field it is - * applied to. - * @type \Google\Api\TypeReference[] $referenced_types - * The type(s) that the annotated, generic field may represent. - * Currently, this must only be used on fields of type `google.protobuf.Any`. - * Supporting other generic types may be considered in the future. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\FieldInfo::initOnce(); - parent::__construct($data); - } - - /** - * The standard format of a field value. This does not explicitly configure - * any API consumer, just documents the API's format for the field it is - * applied to. - * - * Generated from protobuf field .google.api.FieldInfo.Format format = 1; - * @return int - */ - public function getFormat() - { - return $this->format; - } - - /** - * The standard format of a field value. This does not explicitly configure - * any API consumer, just documents the API's format for the field it is - * applied to. - * - * Generated from protobuf field .google.api.FieldInfo.Format format = 1; - * @param int $var - * @return $this - */ - public function setFormat($var) - { - GPBUtil::checkEnum($var, \Google\Api\FieldInfo\Format::class); - $this->format = $var; - - return $this; - } - - /** - * The type(s) that the annotated, generic field may represent. - * Currently, this must only be used on fields of type `google.protobuf.Any`. - * Supporting other generic types may be considered in the future. - * - * Generated from protobuf field repeated .google.api.TypeReference referenced_types = 2; - * @return RepeatedField<\Google\Api\TypeReference> - */ - public function getReferencedTypes() - { - return $this->referenced_types; - } - - /** - * The type(s) that the annotated, generic field may represent. - * Currently, this must only be used on fields of type `google.protobuf.Any`. - * Supporting other generic types may be considered in the future. - * - * Generated from protobuf field repeated .google.api.TypeReference referenced_types = 2; - * @param \Google\Api\TypeReference[] $var - * @return $this - */ - public function setReferencedTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\TypeReference::class); - $this->referenced_types = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/FieldInfo/Format.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/FieldInfo/Format.php deleted file mode 100644 index 88fc61c69d22..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/FieldInfo/Format.php +++ /dev/null @@ -1,89 +0,0 @@ -google.api.FieldInfo.Format - */ -class Format -{ - /** - * Default, unspecified value. - * - * Generated from protobuf enum FORMAT_UNSPECIFIED = 0; - */ - const FORMAT_UNSPECIFIED = 0; - /** - * Universally Unique Identifier, version 4, value as defined by - * https://datatracker.ietf.org/doc/html/rfc4122. The value may be - * normalized to entirely lowercase letters. For example, the value - * `F47AC10B-58CC-0372-8567-0E02B2C3D479` would be normalized to - * `f47ac10b-58cc-0372-8567-0e02b2c3d479`. - * - * Generated from protobuf enum UUID4 = 1; - */ - const UUID4 = 1; - /** - * Internet Protocol v4 value as defined by [RFC - * 791](https://datatracker.ietf.org/doc/html/rfc791). The value may be - * condensed, with leading zeros in each octet stripped. For example, - * `001.022.233.040` would be condensed to `1.22.233.40`. - * - * Generated from protobuf enum IPV4 = 2; - */ - const IPV4 = 2; - /** - * Internet Protocol v6 value as defined by [RFC - * 2460](https://datatracker.ietf.org/doc/html/rfc2460). The value may be - * normalized to entirely lowercase letters with zeros compressed, following - * [RFC 5952](https://datatracker.ietf.org/doc/html/rfc5952). For example, - * the value `2001:0DB8:0::0` would be normalized to `2001:db8::`. - * - * Generated from protobuf enum IPV6 = 3; - */ - const IPV6 = 3; - /** - * An IP address in either v4 or v6 format as described by the individual - * values defined herein. See the comments on the IPV4 and IPV6 types for - * allowed normalizations of each. - * - * Generated from protobuf enum IPV4_OR_IPV6 = 4; - */ - const IPV4_OR_IPV6 = 4; - - private static $valueToName = [ - self::FORMAT_UNSPECIFIED => 'FORMAT_UNSPECIFIED', - self::UUID4 => 'UUID4', - self::IPV4 => 'IPV4', - self::IPV6 => 'IPV6', - self::IPV4_OR_IPV6 => 'IPV4_OR_IPV6', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/FieldPolicy.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/FieldPolicy.php deleted file mode 100644 index 3600a2de91b8..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/FieldPolicy.php +++ /dev/null @@ -1,181 +0,0 @@ -google.api.FieldPolicy - */ -class FieldPolicy extends \Google\Protobuf\Internal\Message -{ - /** - * Selects one or more request or response message fields to apply this - * `FieldPolicy`. - * When a `FieldPolicy` is used in proto annotation, the selector must - * be left as empty. The service config generator will automatically fill - * the correct value. - * When a `FieldPolicy` is used in service config, the selector must be a - * comma-separated string with valid request or response field paths, - * such as "foo.bar" or "foo.bar,foo.baz". - * - * Generated from protobuf field string selector = 1; - */ - protected $selector = ''; - /** - * Specifies the required permission(s) for the resource referred to by the - * field. It requires the field contains a valid resource reference, and - * the request must pass the permission checks to proceed. For example, - * "resourcemanager.projects.get". - * - * Generated from protobuf field string resource_permission = 2; - */ - protected $resource_permission = ''; - /** - * Specifies the resource type for the resource referred to by the field. - * - * Generated from protobuf field string resource_type = 3; - */ - protected $resource_type = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $selector - * Selects one or more request or response message fields to apply this - * `FieldPolicy`. - * When a `FieldPolicy` is used in proto annotation, the selector must - * be left as empty. The service config generator will automatically fill - * the correct value. - * When a `FieldPolicy` is used in service config, the selector must be a - * comma-separated string with valid request or response field paths, - * such as "foo.bar" or "foo.bar,foo.baz". - * @type string $resource_permission - * Specifies the required permission(s) for the resource referred to by the - * field. It requires the field contains a valid resource reference, and - * the request must pass the permission checks to proceed. For example, - * "resourcemanager.projects.get". - * @type string $resource_type - * Specifies the resource type for the resource referred to by the field. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Policy::initOnce(); - parent::__construct($data); - } - - /** - * Selects one or more request or response message fields to apply this - * `FieldPolicy`. - * When a `FieldPolicy` is used in proto annotation, the selector must - * be left as empty. The service config generator will automatically fill - * the correct value. - * When a `FieldPolicy` is used in service config, the selector must be a - * comma-separated string with valid request or response field paths, - * such as "foo.bar" or "foo.bar,foo.baz". - * - * Generated from protobuf field string selector = 1; - * @return string - */ - public function getSelector() - { - return $this->selector; - } - - /** - * Selects one or more request or response message fields to apply this - * `FieldPolicy`. - * When a `FieldPolicy` is used in proto annotation, the selector must - * be left as empty. The service config generator will automatically fill - * the correct value. - * When a `FieldPolicy` is used in service config, the selector must be a - * comma-separated string with valid request or response field paths, - * such as "foo.bar" or "foo.bar,foo.baz". - * - * Generated from protobuf field string selector = 1; - * @param string $var - * @return $this - */ - public function setSelector($var) - { - GPBUtil::checkString($var, True); - $this->selector = $var; - - return $this; - } - - /** - * Specifies the required permission(s) for the resource referred to by the - * field. It requires the field contains a valid resource reference, and - * the request must pass the permission checks to proceed. For example, - * "resourcemanager.projects.get". - * - * Generated from protobuf field string resource_permission = 2; - * @return string - */ - public function getResourcePermission() - { - return $this->resource_permission; - } - - /** - * Specifies the required permission(s) for the resource referred to by the - * field. It requires the field contains a valid resource reference, and - * the request must pass the permission checks to proceed. For example, - * "resourcemanager.projects.get". - * - * Generated from protobuf field string resource_permission = 2; - * @param string $var - * @return $this - */ - public function setResourcePermission($var) - { - GPBUtil::checkString($var, True); - $this->resource_permission = $var; - - return $this; - } - - /** - * Specifies the resource type for the resource referred to by the field. - * - * Generated from protobuf field string resource_type = 3; - * @return string - */ - public function getResourceType() - { - return $this->resource_type; - } - - /** - * Specifies the resource type for the resource referred to by the field. - * - * Generated from protobuf field string resource_type = 3; - * @param string $var - * @return $this - */ - public function setResourceType($var) - { - GPBUtil::checkString($var, True); - $this->resource_type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/GoSettings.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/GoSettings.php deleted file mode 100644 index 2a406b74d478..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/GoSettings.php +++ /dev/null @@ -1,139 +0,0 @@ -google.api.GoSettings - */ -class GoSettings extends \Google\Protobuf\Internal\Message -{ - /** - * Some settings. - * - * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; - */ - protected $common = null; - /** - * Map of service names to renamed services. Keys are the package relative - * service names and values are the name to be used for the service client - * and call options. - * Example: - * publishing: - * go_settings: - * renamed_services: - * Publisher: TopicAdmin - * - * Generated from protobuf field map renamed_services = 2; - */ - private $renamed_services; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Api\CommonLanguageSettings $common - * Some settings. - * @type array|\Google\Protobuf\Internal\MapField $renamed_services - * Map of service names to renamed services. Keys are the package relative - * service names and values are the name to be used for the service client - * and call options. - * Example: - * publishing: - * go_settings: - * renamed_services: - * Publisher: TopicAdmin - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Client::initOnce(); - parent::__construct($data); - } - - /** - * Some settings. - * - * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; - * @return \Google\Api\CommonLanguageSettings|null - */ - public function getCommon() - { - return $this->common; - } - - public function hasCommon() - { - return isset($this->common); - } - - public function clearCommon() - { - unset($this->common); - } - - /** - * Some settings. - * - * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; - * @param \Google\Api\CommonLanguageSettings $var - * @return $this - */ - public function setCommon($var) - { - GPBUtil::checkMessage($var, \Google\Api\CommonLanguageSettings::class); - $this->common = $var; - - return $this; - } - - /** - * Map of service names to renamed services. Keys are the package relative - * service names and values are the name to be used for the service client - * and call options. - * Example: - * publishing: - * go_settings: - * renamed_services: - * Publisher: TopicAdmin - * - * Generated from protobuf field map renamed_services = 2; - * @return \Google\Protobuf\Internal\MapField - */ - public function getRenamedServices() - { - return $this->renamed_services; - } - - /** - * Map of service names to renamed services. Keys are the package relative - * service names and values are the name to be used for the service client - * and call options. - * Example: - * publishing: - * go_settings: - * renamed_services: - * Publisher: TopicAdmin - * - * Generated from protobuf field map renamed_services = 2; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setRenamedServices($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->renamed_services = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Http.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Http.php deleted file mode 100644 index 2f7542b434f6..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Http.php +++ /dev/null @@ -1,123 +0,0 @@ -google.api.Http - */ -class Http extends \Google\Protobuf\Internal\Message -{ - /** - * A list of HTTP configuration rules that apply to individual API methods. - * **NOTE:** All service configuration rules follow "last one wins" order. - * - * Generated from protobuf field repeated .google.api.HttpRule rules = 1; - */ - private $rules; - /** - * When set to true, URL path parameters will be fully URI-decoded except in - * cases of single segment matches in reserved expansion, where "%2F" will be - * left encoded. - * The default behavior is to not decode RFC 6570 reserved characters in multi - * segment matches. - * - * Generated from protobuf field bool fully_decode_reserved_expansion = 2; - */ - protected $fully_decode_reserved_expansion = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Api\HttpRule[] $rules - * A list of HTTP configuration rules that apply to individual API methods. - * **NOTE:** All service configuration rules follow "last one wins" order. - * @type bool $fully_decode_reserved_expansion - * When set to true, URL path parameters will be fully URI-decoded except in - * cases of single segment matches in reserved expansion, where "%2F" will be - * left encoded. - * The default behavior is to not decode RFC 6570 reserved characters in multi - * segment matches. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Http::initOnce(); - parent::__construct($data); - } - - /** - * A list of HTTP configuration rules that apply to individual API methods. - * **NOTE:** All service configuration rules follow "last one wins" order. - * - * Generated from protobuf field repeated .google.api.HttpRule rules = 1; - * @return RepeatedField<\Google\Api\HttpRule> - */ - public function getRules() - { - return $this->rules; - } - - /** - * A list of HTTP configuration rules that apply to individual API methods. - * **NOTE:** All service configuration rules follow "last one wins" order. - * - * Generated from protobuf field repeated .google.api.HttpRule rules = 1; - * @param \Google\Api\HttpRule[] $var - * @return $this - */ - public function setRules($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\HttpRule::class); - $this->rules = $arr; - - return $this; - } - - /** - * When set to true, URL path parameters will be fully URI-decoded except in - * cases of single segment matches in reserved expansion, where "%2F" will be - * left encoded. - * The default behavior is to not decode RFC 6570 reserved characters in multi - * segment matches. - * - * Generated from protobuf field bool fully_decode_reserved_expansion = 2; - * @return bool - */ - public function getFullyDecodeReservedExpansion() - { - return $this->fully_decode_reserved_expansion; - } - - /** - * When set to true, URL path parameters will be fully URI-decoded except in - * cases of single segment matches in reserved expansion, where "%2F" will be - * left encoded. - * The default behavior is to not decode RFC 6570 reserved characters in multi - * segment matches. - * - * Generated from protobuf field bool fully_decode_reserved_expansion = 2; - * @param bool $var - * @return $this - */ - public function setFullyDecodeReservedExpansion($var) - { - GPBUtil::checkBool($var); - $this->fully_decode_reserved_expansion = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/HttpBody.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/HttpBody.php deleted file mode 100644 index 36b78af6f17f..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/HttpBody.php +++ /dev/null @@ -1,168 +0,0 @@ -google.api.HttpBody - */ -class HttpBody extends \Google\Protobuf\Internal\Message -{ - /** - * The HTTP Content-Type header value specifying the content type of the body. - * - * Generated from protobuf field string content_type = 1; - */ - protected $content_type = ''; - /** - * The HTTP request/response body as raw binary. - * - * Generated from protobuf field bytes data = 2; - */ - protected $data = ''; - /** - * Application specific response metadata. Must be set in the first response - * for streaming APIs. - * - * Generated from protobuf field repeated .google.protobuf.Any extensions = 3; - */ - private $extensions; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $content_type - * The HTTP Content-Type header value specifying the content type of the body. - * @type string $data - * The HTTP request/response body as raw binary. - * @type \Google\Protobuf\Any[] $extensions - * Application specific response metadata. Must be set in the first response - * for streaming APIs. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Httpbody::initOnce(); - parent::__construct($data); - } - - /** - * The HTTP Content-Type header value specifying the content type of the body. - * - * Generated from protobuf field string content_type = 1; - * @return string - */ - public function getContentType() - { - return $this->content_type; - } - - /** - * The HTTP Content-Type header value specifying the content type of the body. - * - * Generated from protobuf field string content_type = 1; - * @param string $var - * @return $this - */ - public function setContentType($var) - { - GPBUtil::checkString($var, True); - $this->content_type = $var; - - return $this; - } - - /** - * The HTTP request/response body as raw binary. - * - * Generated from protobuf field bytes data = 2; - * @return string - */ - public function getData() - { - return $this->data; - } - - /** - * The HTTP request/response body as raw binary. - * - * Generated from protobuf field bytes data = 2; - * @param string $var - * @return $this - */ - public function setData($var) - { - GPBUtil::checkString($var, False); - $this->data = $var; - - return $this; - } - - /** - * Application specific response metadata. Must be set in the first response - * for streaming APIs. - * - * Generated from protobuf field repeated .google.protobuf.Any extensions = 3; - * @return RepeatedField<\Google\Protobuf\Any> - */ - public function getExtensions() - { - return $this->extensions; - } - - /** - * Application specific response metadata. Must be set in the first response - * for streaming APIs. - * - * Generated from protobuf field repeated .google.protobuf.Any extensions = 3; - * @param \Google\Protobuf\Any[] $var - * @return $this - */ - public function setExtensions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Any::class); - $this->extensions = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/HttpRule.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/HttpRule.php deleted file mode 100644 index c7cf45ce1476..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/HttpRule.php +++ /dev/null @@ -1,651 +0,0 @@ -google.api.HttpRule - */ -class HttpRule extends \Google\Protobuf\Internal\Message -{ - /** - * Selects a method to which this rule applies. - * Refer to [selector][google.api.DocumentationRule.selector] for syntax - * details. - * - * Generated from protobuf field string selector = 1; - */ - protected $selector = ''; - /** - * The name of the request field whose value is mapped to the HTTP request - * body, or `*` for mapping all request fields not captured by the path - * pattern to the HTTP body, or omitted for not having any HTTP request body. - * NOTE: the referred field must be present at the top-level of the request - * message type. - * - * Generated from protobuf field string body = 7; - */ - protected $body = ''; - /** - * Optional. The name of the response field whose value is mapped to the HTTP - * response body. When omitted, the entire response message will be used - * as the HTTP response body. - * NOTE: The referred field must be present at the top-level of the response - * message type. - * - * Generated from protobuf field string response_body = 12; - */ - protected $response_body = ''; - /** - * Additional HTTP bindings for the selector. Nested bindings must - * not contain an `additional_bindings` field themselves (that is, - * the nesting may only be one level deep). - * - * Generated from protobuf field repeated .google.api.HttpRule additional_bindings = 11; - */ - private $additional_bindings; - protected $pattern; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $selector - * Selects a method to which this rule applies. - * Refer to [selector][google.api.DocumentationRule.selector] for syntax - * details. - * @type string $get - * Maps to HTTP GET. Used for listing and getting information about - * resources. - * @type string $put - * Maps to HTTP PUT. Used for replacing a resource. - * @type string $post - * Maps to HTTP POST. Used for creating a resource or performing an action. - * @type string $delete - * Maps to HTTP DELETE. Used for deleting a resource. - * @type string $patch - * Maps to HTTP PATCH. Used for updating a resource. - * @type \Google\Api\CustomHttpPattern $custom - * The custom pattern is used for specifying an HTTP method that is not - * included in the `pattern` field, such as HEAD, or "*" to leave the - * HTTP method unspecified for this rule. The wild-card rule is useful - * for services that provide content to Web (HTML) clients. - * @type string $body - * The name of the request field whose value is mapped to the HTTP request - * body, or `*` for mapping all request fields not captured by the path - * pattern to the HTTP body, or omitted for not having any HTTP request body. - * NOTE: the referred field must be present at the top-level of the request - * message type. - * @type string $response_body - * Optional. The name of the response field whose value is mapped to the HTTP - * response body. When omitted, the entire response message will be used - * as the HTTP response body. - * NOTE: The referred field must be present at the top-level of the response - * message type. - * @type \Google\Api\HttpRule[] $additional_bindings - * Additional HTTP bindings for the selector. Nested bindings must - * not contain an `additional_bindings` field themselves (that is, - * the nesting may only be one level deep). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Http::initOnce(); - parent::__construct($data); - } - - /** - * Selects a method to which this rule applies. - * Refer to [selector][google.api.DocumentationRule.selector] for syntax - * details. - * - * Generated from protobuf field string selector = 1; - * @return string - */ - public function getSelector() - { - return $this->selector; - } - - /** - * Selects a method to which this rule applies. - * Refer to [selector][google.api.DocumentationRule.selector] for syntax - * details. - * - * Generated from protobuf field string selector = 1; - * @param string $var - * @return $this - */ - public function setSelector($var) - { - GPBUtil::checkString($var, True); - $this->selector = $var; - - return $this; - } - - /** - * Maps to HTTP GET. Used for listing and getting information about - * resources. - * - * Generated from protobuf field string get = 2; - * @return string - */ - public function getGet() - { - return $this->readOneof(2); - } - - public function hasGet() - { - return $this->hasOneof(2); - } - - /** - * Maps to HTTP GET. Used for listing and getting information about - * resources. - * - * Generated from protobuf field string get = 2; - * @param string $var - * @return $this - */ - public function setGet($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Maps to HTTP PUT. Used for replacing a resource. - * - * Generated from protobuf field string put = 3; - * @return string - */ - public function getPut() - { - return $this->readOneof(3); - } - - public function hasPut() - { - return $this->hasOneof(3); - } - - /** - * Maps to HTTP PUT. Used for replacing a resource. - * - * Generated from protobuf field string put = 3; - * @param string $var - * @return $this - */ - public function setPut($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Maps to HTTP POST. Used for creating a resource or performing an action. - * - * Generated from protobuf field string post = 4; - * @return string - */ - public function getPost() - { - return $this->readOneof(4); - } - - public function hasPost() - { - return $this->hasOneof(4); - } - - /** - * Maps to HTTP POST. Used for creating a resource or performing an action. - * - * Generated from protobuf field string post = 4; - * @param string $var - * @return $this - */ - public function setPost($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Maps to HTTP DELETE. Used for deleting a resource. - * - * Generated from protobuf field string delete = 5; - * @return string - */ - public function getDelete() - { - return $this->readOneof(5); - } - - public function hasDelete() - { - return $this->hasOneof(5); - } - - /** - * Maps to HTTP DELETE. Used for deleting a resource. - * - * Generated from protobuf field string delete = 5; - * @param string $var - * @return $this - */ - public function setDelete($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * Maps to HTTP PATCH. Used for updating a resource. - * - * Generated from protobuf field string patch = 6; - * @return string - */ - public function getPatch() - { - return $this->readOneof(6); - } - - public function hasPatch() - { - return $this->hasOneof(6); - } - - /** - * Maps to HTTP PATCH. Used for updating a resource. - * - * Generated from protobuf field string patch = 6; - * @param string $var - * @return $this - */ - public function setPatch($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * The custom pattern is used for specifying an HTTP method that is not - * included in the `pattern` field, such as HEAD, or "*" to leave the - * HTTP method unspecified for this rule. The wild-card rule is useful - * for services that provide content to Web (HTML) clients. - * - * Generated from protobuf field .google.api.CustomHttpPattern custom = 8; - * @return \Google\Api\CustomHttpPattern|null - */ - public function getCustom() - { - return $this->readOneof(8); - } - - public function hasCustom() - { - return $this->hasOneof(8); - } - - /** - * The custom pattern is used for specifying an HTTP method that is not - * included in the `pattern` field, such as HEAD, or "*" to leave the - * HTTP method unspecified for this rule. The wild-card rule is useful - * for services that provide content to Web (HTML) clients. - * - * Generated from protobuf field .google.api.CustomHttpPattern custom = 8; - * @param \Google\Api\CustomHttpPattern $var - * @return $this - */ - public function setCustom($var) - { - GPBUtil::checkMessage($var, \Google\Api\CustomHttpPattern::class); - $this->writeOneof(8, $var); - - return $this; - } - - /** - * The name of the request field whose value is mapped to the HTTP request - * body, or `*` for mapping all request fields not captured by the path - * pattern to the HTTP body, or omitted for not having any HTTP request body. - * NOTE: the referred field must be present at the top-level of the request - * message type. - * - * Generated from protobuf field string body = 7; - * @return string - */ - public function getBody() - { - return $this->body; - } - - /** - * The name of the request field whose value is mapped to the HTTP request - * body, or `*` for mapping all request fields not captured by the path - * pattern to the HTTP body, or omitted for not having any HTTP request body. - * NOTE: the referred field must be present at the top-level of the request - * message type. - * - * Generated from protobuf field string body = 7; - * @param string $var - * @return $this - */ - public function setBody($var) - { - GPBUtil::checkString($var, True); - $this->body = $var; - - return $this; - } - - /** - * Optional. The name of the response field whose value is mapped to the HTTP - * response body. When omitted, the entire response message will be used - * as the HTTP response body. - * NOTE: The referred field must be present at the top-level of the response - * message type. - * - * Generated from protobuf field string response_body = 12; - * @return string - */ - public function getResponseBody() - { - return $this->response_body; - } - - /** - * Optional. The name of the response field whose value is mapped to the HTTP - * response body. When omitted, the entire response message will be used - * as the HTTP response body. - * NOTE: The referred field must be present at the top-level of the response - * message type. - * - * Generated from protobuf field string response_body = 12; - * @param string $var - * @return $this - */ - public function setResponseBody($var) - { - GPBUtil::checkString($var, True); - $this->response_body = $var; - - return $this; - } - - /** - * Additional HTTP bindings for the selector. Nested bindings must - * not contain an `additional_bindings` field themselves (that is, - * the nesting may only be one level deep). - * - * Generated from protobuf field repeated .google.api.HttpRule additional_bindings = 11; - * @return RepeatedField<\Google\Api\HttpRule> - */ - public function getAdditionalBindings() - { - return $this->additional_bindings; - } - - /** - * Additional HTTP bindings for the selector. Nested bindings must - * not contain an `additional_bindings` field themselves (that is, - * the nesting may only be one level deep). - * - * Generated from protobuf field repeated .google.api.HttpRule additional_bindings = 11; - * @param \Google\Api\HttpRule[] $var - * @return $this - */ - public function setAdditionalBindings($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\HttpRule::class); - $this->additional_bindings = $arr; - - return $this; - } - - /** - * @return string - */ - public function getPattern() - { - return $this->whichOneof("pattern"); - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/JavaSettings.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/JavaSettings.php deleted file mode 100644 index 7b05e0750051..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/JavaSettings.php +++ /dev/null @@ -1,225 +0,0 @@ -google.api.JavaSettings - */ -class JavaSettings extends \Google\Protobuf\Internal\Message -{ - /** - * The package name to use in Java. Clobbers the java_package option - * set in the protobuf. This should be used **only** by APIs - * who have already set the language_settings.java.package_name" field - * in gapic.yaml. API teams should use the protobuf java_package option - * where possible. - * Example of a YAML configuration:: - * publishing: - * library_settings: - * java_settings: - * library_package: com.google.cloud.pubsub.v1 - * - * Generated from protobuf field string library_package = 1; - */ - protected $library_package = ''; - /** - * Configure the Java class name to use instead of the service's for its - * corresponding generated GAPIC client. Keys are fully-qualified - * service names as they appear in the protobuf (including the full - * the language_settings.java.interface_names" field in gapic.yaml. API - * teams should otherwise use the service name as it appears in the - * protobuf. - * Example of a YAML configuration:: - * publishing: - * java_settings: - * service_class_names: - * - google.pubsub.v1.Publisher: TopicAdmin - * - google.pubsub.v1.Subscriber: SubscriptionAdmin - * - * Generated from protobuf field map service_class_names = 2; - */ - private $service_class_names; - /** - * Some settings. - * - * Generated from protobuf field .google.api.CommonLanguageSettings common = 3; - */ - protected $common = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $library_package - * The package name to use in Java. Clobbers the java_package option - * set in the protobuf. This should be used **only** by APIs - * who have already set the language_settings.java.package_name" field - * in gapic.yaml. API teams should use the protobuf java_package option - * where possible. - * Example of a YAML configuration:: - * publishing: - * library_settings: - * java_settings: - * library_package: com.google.cloud.pubsub.v1 - * @type array|\Google\Protobuf\Internal\MapField $service_class_names - * Configure the Java class name to use instead of the service's for its - * corresponding generated GAPIC client. Keys are fully-qualified - * service names as they appear in the protobuf (including the full - * the language_settings.java.interface_names" field in gapic.yaml. API - * teams should otherwise use the service name as it appears in the - * protobuf. - * Example of a YAML configuration:: - * publishing: - * java_settings: - * service_class_names: - * - google.pubsub.v1.Publisher: TopicAdmin - * - google.pubsub.v1.Subscriber: SubscriptionAdmin - * @type \Google\Api\CommonLanguageSettings $common - * Some settings. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Client::initOnce(); - parent::__construct($data); - } - - /** - * The package name to use in Java. Clobbers the java_package option - * set in the protobuf. This should be used **only** by APIs - * who have already set the language_settings.java.package_name" field - * in gapic.yaml. API teams should use the protobuf java_package option - * where possible. - * Example of a YAML configuration:: - * publishing: - * library_settings: - * java_settings: - * library_package: com.google.cloud.pubsub.v1 - * - * Generated from protobuf field string library_package = 1; - * @return string - */ - public function getLibraryPackage() - { - return $this->library_package; - } - - /** - * The package name to use in Java. Clobbers the java_package option - * set in the protobuf. This should be used **only** by APIs - * who have already set the language_settings.java.package_name" field - * in gapic.yaml. API teams should use the protobuf java_package option - * where possible. - * Example of a YAML configuration:: - * publishing: - * library_settings: - * java_settings: - * library_package: com.google.cloud.pubsub.v1 - * - * Generated from protobuf field string library_package = 1; - * @param string $var - * @return $this - */ - public function setLibraryPackage($var) - { - GPBUtil::checkString($var, True); - $this->library_package = $var; - - return $this; - } - - /** - * Configure the Java class name to use instead of the service's for its - * corresponding generated GAPIC client. Keys are fully-qualified - * service names as they appear in the protobuf (including the full - * the language_settings.java.interface_names" field in gapic.yaml. API - * teams should otherwise use the service name as it appears in the - * protobuf. - * Example of a YAML configuration:: - * publishing: - * java_settings: - * service_class_names: - * - google.pubsub.v1.Publisher: TopicAdmin - * - google.pubsub.v1.Subscriber: SubscriptionAdmin - * - * Generated from protobuf field map service_class_names = 2; - * @return \Google\Protobuf\Internal\MapField - */ - public function getServiceClassNames() - { - return $this->service_class_names; - } - - /** - * Configure the Java class name to use instead of the service's for its - * corresponding generated GAPIC client. Keys are fully-qualified - * service names as they appear in the protobuf (including the full - * the language_settings.java.interface_names" field in gapic.yaml. API - * teams should otherwise use the service name as it appears in the - * protobuf. - * Example of a YAML configuration:: - * publishing: - * java_settings: - * service_class_names: - * - google.pubsub.v1.Publisher: TopicAdmin - * - google.pubsub.v1.Subscriber: SubscriptionAdmin - * - * Generated from protobuf field map service_class_names = 2; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setServiceClassNames($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->service_class_names = $arr; - - return $this; - } - - /** - * Some settings. - * - * Generated from protobuf field .google.api.CommonLanguageSettings common = 3; - * @return \Google\Api\CommonLanguageSettings|null - */ - public function getCommon() - { - return $this->common; - } - - public function hasCommon() - { - return isset($this->common); - } - - public function clearCommon() - { - unset($this->common); - } - - /** - * Some settings. - * - * Generated from protobuf field .google.api.CommonLanguageSettings common = 3; - * @param \Google\Api\CommonLanguageSettings $var - * @return $this - */ - public function setCommon($var) - { - GPBUtil::checkMessage($var, \Google\Api\CommonLanguageSettings::class); - $this->common = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/JwtLocation.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/JwtLocation.php deleted file mode 100644 index 9bd8ac73cc48..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/JwtLocation.php +++ /dev/null @@ -1,199 +0,0 @@ -google.api.JwtLocation - */ -class JwtLocation extends \Google\Protobuf\Internal\Message -{ - /** - * The value prefix. The value format is "value_prefix{token}" - * Only applies to "in" header type. Must be empty for "in" query type. - * If not empty, the header value has to match (case sensitive) this prefix. - * If not matched, JWT will not be extracted. If matched, JWT will be - * extracted after the prefix is removed. - * For example, for "Authorization: Bearer {JWT}", - * value_prefix="Bearer " with a space at the end. - * - * Generated from protobuf field string value_prefix = 3; - */ - protected $value_prefix = ''; - protected $in; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $header - * Specifies HTTP header name to extract JWT token. - * @type string $query - * Specifies URL query parameter name to extract JWT token. - * @type string $cookie - * Specifies cookie name to extract JWT token. - * @type string $value_prefix - * The value prefix. The value format is "value_prefix{token}" - * Only applies to "in" header type. Must be empty for "in" query type. - * If not empty, the header value has to match (case sensitive) this prefix. - * If not matched, JWT will not be extracted. If matched, JWT will be - * extracted after the prefix is removed. - * For example, for "Authorization: Bearer {JWT}", - * value_prefix="Bearer " with a space at the end. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Auth::initOnce(); - parent::__construct($data); - } - - /** - * Specifies HTTP header name to extract JWT token. - * - * Generated from protobuf field string header = 1; - * @return string - */ - public function getHeader() - { - return $this->readOneof(1); - } - - public function hasHeader() - { - return $this->hasOneof(1); - } - - /** - * Specifies HTTP header name to extract JWT token. - * - * Generated from protobuf field string header = 1; - * @param string $var - * @return $this - */ - public function setHeader($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Specifies URL query parameter name to extract JWT token. - * - * Generated from protobuf field string query = 2; - * @return string - */ - public function getQuery() - { - return $this->readOneof(2); - } - - public function hasQuery() - { - return $this->hasOneof(2); - } - - /** - * Specifies URL query parameter name to extract JWT token. - * - * Generated from protobuf field string query = 2; - * @param string $var - * @return $this - */ - public function setQuery($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Specifies cookie name to extract JWT token. - * - * Generated from protobuf field string cookie = 4; - * @return string - */ - public function getCookie() - { - return $this->readOneof(4); - } - - public function hasCookie() - { - return $this->hasOneof(4); - } - - /** - * Specifies cookie name to extract JWT token. - * - * Generated from protobuf field string cookie = 4; - * @param string $var - * @return $this - */ - public function setCookie($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * The value prefix. The value format is "value_prefix{token}" - * Only applies to "in" header type. Must be empty for "in" query type. - * If not empty, the header value has to match (case sensitive) this prefix. - * If not matched, JWT will not be extracted. If matched, JWT will be - * extracted after the prefix is removed. - * For example, for "Authorization: Bearer {JWT}", - * value_prefix="Bearer " with a space at the end. - * - * Generated from protobuf field string value_prefix = 3; - * @return string - */ - public function getValuePrefix() - { - return $this->value_prefix; - } - - /** - * The value prefix. The value format is "value_prefix{token}" - * Only applies to "in" header type. Must be empty for "in" query type. - * If not empty, the header value has to match (case sensitive) this prefix. - * If not matched, JWT will not be extracted. If matched, JWT will be - * extracted after the prefix is removed. - * For example, for "Authorization: Bearer {JWT}", - * value_prefix="Bearer " with a space at the end. - * - * Generated from protobuf field string value_prefix = 3; - * @param string $var - * @return $this - */ - public function setValuePrefix($var) - { - GPBUtil::checkString($var, True); - $this->value_prefix = $var; - - return $this; - } - - /** - * @return string - */ - public function getIn() - { - return $this->whichOneof("in"); - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/LabelDescriptor.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/LabelDescriptor.php deleted file mode 100644 index ac1aa409607f..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/LabelDescriptor.php +++ /dev/null @@ -1,135 +0,0 @@ -google.api.LabelDescriptor - */ -class LabelDescriptor extends \Google\Protobuf\Internal\Message -{ - /** - * The label key. - * - * Generated from protobuf field string key = 1; - */ - protected $key = ''; - /** - * The type of data that can be assigned to the label. - * - * Generated from protobuf field .google.api.LabelDescriptor.ValueType value_type = 2; - */ - protected $value_type = 0; - /** - * A human-readable description for the label. - * - * Generated from protobuf field string description = 3; - */ - protected $description = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $key - * The label key. - * @type int $value_type - * The type of data that can be assigned to the label. - * @type string $description - * A human-readable description for the label. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Label::initOnce(); - parent::__construct($data); - } - - /** - * The label key. - * - * Generated from protobuf field string key = 1; - * @return string - */ - public function getKey() - { - return $this->key; - } - - /** - * The label key. - * - * Generated from protobuf field string key = 1; - * @param string $var - * @return $this - */ - public function setKey($var) - { - GPBUtil::checkString($var, True); - $this->key = $var; - - return $this; - } - - /** - * The type of data that can be assigned to the label. - * - * Generated from protobuf field .google.api.LabelDescriptor.ValueType value_type = 2; - * @return int - */ - public function getValueType() - { - return $this->value_type; - } - - /** - * The type of data that can be assigned to the label. - * - * Generated from protobuf field .google.api.LabelDescriptor.ValueType value_type = 2; - * @param int $var - * @return $this - */ - public function setValueType($var) - { - GPBUtil::checkEnum($var, \Google\Api\LabelDescriptor\ValueType::class); - $this->value_type = $var; - - return $this; - } - - /** - * A human-readable description for the label. - * - * Generated from protobuf field string description = 3; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * A human-readable description for the label. - * - * Generated from protobuf field string description = 3; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/LabelDescriptor/ValueType.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/LabelDescriptor/ValueType.php deleted file mode 100644 index 42ec76a25a43..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/LabelDescriptor/ValueType.php +++ /dev/null @@ -1,61 +0,0 @@ -google.api.LabelDescriptor.ValueType - */ -class ValueType -{ - /** - * A variable-length string. This is the default. - * - * Generated from protobuf enum STRING = 0; - */ - const STRING = 0; - /** - * Boolean; true or false. - * - * Generated from protobuf enum BOOL = 1; - */ - const BOOL = 1; - /** - * A 64-bit signed integer. - * - * Generated from protobuf enum INT64 = 2; - */ - const INT64 = 2; - - private static $valueToName = [ - self::STRING => 'STRING', - self::BOOL => 'BOOL', - self::INT64 => 'INT64', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/LaunchStage.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/LaunchStage.php deleted file mode 100644 index 766aa7903470..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/LaunchStage.php +++ /dev/null @@ -1,118 +0,0 @@ -google.api.LaunchStage - */ -class LaunchStage -{ - /** - * Do not use this default value. - * - * Generated from protobuf enum LAUNCH_STAGE_UNSPECIFIED = 0; - */ - const LAUNCH_STAGE_UNSPECIFIED = 0; - /** - * The feature is not yet implemented. Users can not use it. - * - * Generated from protobuf enum UNIMPLEMENTED = 6; - */ - const UNIMPLEMENTED = 6; - /** - * Prelaunch features are hidden from users and are only visible internally. - * - * Generated from protobuf enum PRELAUNCH = 7; - */ - const PRELAUNCH = 7; - /** - * Early Access features are limited to a closed group of testers. To use - * these features, you must sign up in advance and sign a Trusted Tester - * agreement (which includes confidentiality provisions). These features may - * be unstable, changed in backward-incompatible ways, and are not - * guaranteed to be released. - * - * Generated from protobuf enum EARLY_ACCESS = 1; - */ - const EARLY_ACCESS = 1; - /** - * Alpha is a limited availability test for releases before they are cleared - * for widespread use. By Alpha, all significant design issues are resolved - * and we are in the process of verifying functionality. Alpha customers - * need to apply for access, agree to applicable terms, and have their - * projects allowlisted. Alpha releases don't have to be feature complete, - * no SLAs are provided, and there are no technical support obligations, but - * they will be far enough along that customers can actually use them in - * test environments or for limited-use tests -- just like they would in - * normal production cases. - * - * Generated from protobuf enum ALPHA = 2; - */ - const ALPHA = 2; - /** - * Beta is the point at which we are ready to open a release for any - * customer to use. There are no SLA or technical support obligations in a - * Beta release. Products will be complete from a feature perspective, but - * may have some open outstanding issues. Beta releases are suitable for - * limited production use cases. - * - * Generated from protobuf enum BETA = 3; - */ - const BETA = 3; - /** - * GA features are open to all developers and are considered stable and - * fully qualified for production use. - * - * Generated from protobuf enum GA = 4; - */ - const GA = 4; - /** - * Deprecated features are scheduled to be shut down and removed. For more - * information, see the "Deprecation Policy" section of our [Terms of - * Service](https://cloud.google.com/terms/) - * and the [Google Cloud Platform Subject to the Deprecation - * Policy](https://cloud.google.com/terms/deprecation) documentation. - * - * Generated from protobuf enum DEPRECATED = 5; - */ - const DEPRECATED = 5; - - private static $valueToName = [ - self::LAUNCH_STAGE_UNSPECIFIED => 'LAUNCH_STAGE_UNSPECIFIED', - self::UNIMPLEMENTED => 'UNIMPLEMENTED', - self::PRELAUNCH => 'PRELAUNCH', - self::EARLY_ACCESS => 'EARLY_ACCESS', - self::ALPHA => 'ALPHA', - self::BETA => 'BETA', - self::GA => 'GA', - self::DEPRECATED => 'DEPRECATED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/LogDescriptor.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/LogDescriptor.php deleted file mode 100644 index 6973e8d0f56c..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/LogDescriptor.php +++ /dev/null @@ -1,203 +0,0 @@ -google.api.LogDescriptor - */ -class LogDescriptor extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the log. It must be less than 512 characters long and can - * include the following characters: upper- and lower-case alphanumeric - * characters [A-Za-z0-9], and punctuation characters including - * slash, underscore, hyphen, period [/_-.]. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * The set of labels that are available to describe a specific log entry. - * Runtime requests that contain labels not specified here are - * considered invalid. - * - * Generated from protobuf field repeated .google.api.LabelDescriptor labels = 2; - */ - private $labels; - /** - * A human-readable description of this log. This information appears in - * the documentation and can contain details. - * - * Generated from protobuf field string description = 3; - */ - protected $description = ''; - /** - * The human-readable name for this log. This information appears on - * the user interface and should be concise. - * - * Generated from protobuf field string display_name = 4; - */ - protected $display_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The name of the log. It must be less than 512 characters long and can - * include the following characters: upper- and lower-case alphanumeric - * characters [A-Za-z0-9], and punctuation characters including - * slash, underscore, hyphen, period [/_-.]. - * @type \Google\Api\LabelDescriptor[] $labels - * The set of labels that are available to describe a specific log entry. - * Runtime requests that contain labels not specified here are - * considered invalid. - * @type string $description - * A human-readable description of this log. This information appears in - * the documentation and can contain details. - * @type string $display_name - * The human-readable name for this log. This information appears on - * the user interface and should be concise. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Log::initOnce(); - parent::__construct($data); - } - - /** - * The name of the log. It must be less than 512 characters long and can - * include the following characters: upper- and lower-case alphanumeric - * characters [A-Za-z0-9], and punctuation characters including - * slash, underscore, hyphen, period [/_-.]. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name of the log. It must be less than 512 characters long and can - * include the following characters: upper- and lower-case alphanumeric - * characters [A-Za-z0-9], and punctuation characters including - * slash, underscore, hyphen, period [/_-.]. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The set of labels that are available to describe a specific log entry. - * Runtime requests that contain labels not specified here are - * considered invalid. - * - * Generated from protobuf field repeated .google.api.LabelDescriptor labels = 2; - * @return RepeatedField<\Google\Api\LabelDescriptor> - */ - public function getLabels() - { - return $this->labels; - } - - /** - * The set of labels that are available to describe a specific log entry. - * Runtime requests that contain labels not specified here are - * considered invalid. - * - * Generated from protobuf field repeated .google.api.LabelDescriptor labels = 2; - * @param \Google\Api\LabelDescriptor[] $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\LabelDescriptor::class); - $this->labels = $arr; - - return $this; - } - - /** - * A human-readable description of this log. This information appears in - * the documentation and can contain details. - * - * Generated from protobuf field string description = 3; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * A human-readable description of this log. This information appears in - * the documentation and can contain details. - * - * Generated from protobuf field string description = 3; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * The human-readable name for this log. This information appears on - * the user interface and should be concise. - * - * Generated from protobuf field string display_name = 4; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * The human-readable name for this log. This information appears on - * the user interface and should be concise. - * - * Generated from protobuf field string display_name = 4; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Logging.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Logging.php deleted file mode 100644 index 9c2f5b086211..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Logging.php +++ /dev/null @@ -1,151 +0,0 @@ -google.api.Logging - */ -class Logging extends \Google\Protobuf\Internal\Message -{ - /** - * Logging configurations for sending logs to the producer project. - * There can be multiple producer destinations, each one must have a - * different monitored resource type. A log can be used in at most - * one producer destination. - * - * Generated from protobuf field repeated .google.api.Logging.LoggingDestination producer_destinations = 1; - */ - private $producer_destinations; - /** - * Logging configurations for sending logs to the consumer project. - * There can be multiple consumer destinations, each one must have a - * different monitored resource type. A log can be used in at most - * one consumer destination. - * - * Generated from protobuf field repeated .google.api.Logging.LoggingDestination consumer_destinations = 2; - */ - private $consumer_destinations; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Api\Logging\LoggingDestination[] $producer_destinations - * Logging configurations for sending logs to the producer project. - * There can be multiple producer destinations, each one must have a - * different monitored resource type. A log can be used in at most - * one producer destination. - * @type \Google\Api\Logging\LoggingDestination[] $consumer_destinations - * Logging configurations for sending logs to the consumer project. - * There can be multiple consumer destinations, each one must have a - * different monitored resource type. A log can be used in at most - * one consumer destination. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Logging::initOnce(); - parent::__construct($data); - } - - /** - * Logging configurations for sending logs to the producer project. - * There can be multiple producer destinations, each one must have a - * different monitored resource type. A log can be used in at most - * one producer destination. - * - * Generated from protobuf field repeated .google.api.Logging.LoggingDestination producer_destinations = 1; - * @return RepeatedField<\Google\Api\Logging\LoggingDestination> - */ - public function getProducerDestinations() - { - return $this->producer_destinations; - } - - /** - * Logging configurations for sending logs to the producer project. - * There can be multiple producer destinations, each one must have a - * different monitored resource type. A log can be used in at most - * one producer destination. - * - * Generated from protobuf field repeated .google.api.Logging.LoggingDestination producer_destinations = 1; - * @param \Google\Api\Logging\LoggingDestination[] $var - * @return $this - */ - public function setProducerDestinations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\Logging\LoggingDestination::class); - $this->producer_destinations = $arr; - - return $this; - } - - /** - * Logging configurations for sending logs to the consumer project. - * There can be multiple consumer destinations, each one must have a - * different monitored resource type. A log can be used in at most - * one consumer destination. - * - * Generated from protobuf field repeated .google.api.Logging.LoggingDestination consumer_destinations = 2; - * @return RepeatedField<\Google\Api\Logging\LoggingDestination> - */ - public function getConsumerDestinations() - { - return $this->consumer_destinations; - } - - /** - * Logging configurations for sending logs to the consumer project. - * There can be multiple consumer destinations, each one must have a - * different monitored resource type. A log can be used in at most - * one consumer destination. - * - * Generated from protobuf field repeated .google.api.Logging.LoggingDestination consumer_destinations = 2; - * @param \Google\Api\Logging\LoggingDestination[] $var - * @return $this - */ - public function setConsumerDestinations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\Logging\LoggingDestination::class); - $this->consumer_destinations = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Logging/LoggingDestination.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Logging/LoggingDestination.php deleted file mode 100644 index 7c0d6fe7cf96..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Logging/LoggingDestination.php +++ /dev/null @@ -1,122 +0,0 @@ -google.api.Logging.LoggingDestination - */ -class LoggingDestination extends \Google\Protobuf\Internal\Message -{ - /** - * The monitored resource type. The type must be defined in the - * [Service.monitored_resources][google.api.Service.monitored_resources] - * section. - * - * Generated from protobuf field string monitored_resource = 3; - */ - protected $monitored_resource = ''; - /** - * Names of the logs to be sent to this destination. Each name must - * be defined in the [Service.logs][google.api.Service.logs] section. If the - * log name is not a domain scoped name, it will be automatically prefixed - * with the service name followed by "/". - * - * Generated from protobuf field repeated string logs = 1; - */ - private $logs; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $monitored_resource - * The monitored resource type. The type must be defined in the - * [Service.monitored_resources][google.api.Service.monitored_resources] - * section. - * @type string[] $logs - * Names of the logs to be sent to this destination. Each name must - * be defined in the [Service.logs][google.api.Service.logs] section. If the - * log name is not a domain scoped name, it will be automatically prefixed - * with the service name followed by "/". - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Logging::initOnce(); - parent::__construct($data); - } - - /** - * The monitored resource type. The type must be defined in the - * [Service.monitored_resources][google.api.Service.monitored_resources] - * section. - * - * Generated from protobuf field string monitored_resource = 3; - * @return string - */ - public function getMonitoredResource() - { - return $this->monitored_resource; - } - - /** - * The monitored resource type. The type must be defined in the - * [Service.monitored_resources][google.api.Service.monitored_resources] - * section. - * - * Generated from protobuf field string monitored_resource = 3; - * @param string $var - * @return $this - */ - public function setMonitoredResource($var) - { - GPBUtil::checkString($var, True); - $this->monitored_resource = $var; - - return $this; - } - - /** - * Names of the logs to be sent to this destination. Each name must - * be defined in the [Service.logs][google.api.Service.logs] section. If the - * log name is not a domain scoped name, it will be automatically prefixed - * with the service name followed by "/". - * - * Generated from protobuf field repeated string logs = 1; - * @return RepeatedField - */ - public function getLogs() - { - return $this->logs; - } - - /** - * Names of the logs to be sent to this destination. Each name must - * be defined in the [Service.logs][google.api.Service.logs] section. If the - * log name is not a domain scoped name, it will be automatically prefixed - * with the service name followed by "/". - * - * Generated from protobuf field repeated string logs = 1; - * @param string[] $var - * @return $this - */ - public function setLogs($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->logs = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MethodPolicy.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MethodPolicy.php deleted file mode 100644 index a8b98647a566..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MethodPolicy.php +++ /dev/null @@ -1,121 +0,0 @@ -google.api.MethodPolicy - */ -class MethodPolicy extends \Google\Protobuf\Internal\Message -{ - /** - * Selects a method to which these policies should be enforced, for example, - * "google.pubsub.v1.Subscriber.CreateSubscription". - * Refer to [selector][google.api.DocumentationRule.selector] for syntax - * details. - * NOTE: This field must not be set in the proto annotation. It will be - * automatically filled by the service config compiler . - * - * Generated from protobuf field string selector = 9; - */ - protected $selector = ''; - /** - * Policies that are applicable to the request message. - * - * Generated from protobuf field repeated .google.api.FieldPolicy request_policies = 2; - */ - private $request_policies; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $selector - * Selects a method to which these policies should be enforced, for example, - * "google.pubsub.v1.Subscriber.CreateSubscription". - * Refer to [selector][google.api.DocumentationRule.selector] for syntax - * details. - * NOTE: This field must not be set in the proto annotation. It will be - * automatically filled by the service config compiler . - * @type \Google\Api\FieldPolicy[] $request_policies - * Policies that are applicable to the request message. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Policy::initOnce(); - parent::__construct($data); - } - - /** - * Selects a method to which these policies should be enforced, for example, - * "google.pubsub.v1.Subscriber.CreateSubscription". - * Refer to [selector][google.api.DocumentationRule.selector] for syntax - * details. - * NOTE: This field must not be set in the proto annotation. It will be - * automatically filled by the service config compiler . - * - * Generated from protobuf field string selector = 9; - * @return string - */ - public function getSelector() - { - return $this->selector; - } - - /** - * Selects a method to which these policies should be enforced, for example, - * "google.pubsub.v1.Subscriber.CreateSubscription". - * Refer to [selector][google.api.DocumentationRule.selector] for syntax - * details. - * NOTE: This field must not be set in the proto annotation. It will be - * automatically filled by the service config compiler . - * - * Generated from protobuf field string selector = 9; - * @param string $var - * @return $this - */ - public function setSelector($var) - { - GPBUtil::checkString($var, True); - $this->selector = $var; - - return $this; - } - - /** - * Policies that are applicable to the request message. - * - * Generated from protobuf field repeated .google.api.FieldPolicy request_policies = 2; - * @return RepeatedField<\Google\Api\FieldPolicy> - */ - public function getRequestPolicies() - { - return $this->request_policies; - } - - /** - * Policies that are applicable to the request message. - * - * Generated from protobuf field repeated .google.api.FieldPolicy request_policies = 2; - * @param \Google\Api\FieldPolicy[] $var - * @return $this - */ - public function setRequestPolicies($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\FieldPolicy::class); - $this->request_policies = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MethodSettings.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MethodSettings.php deleted file mode 100644 index 1669fc575fe7..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MethodSettings.php +++ /dev/null @@ -1,321 +0,0 @@ -google.api.MethodSettings - */ -class MethodSettings extends \Google\Protobuf\Internal\Message -{ - /** - * The fully qualified name of the method, for which the options below apply. - * This is used to find the method to apply the options. - * Example: - * publishing: - * method_settings: - * - selector: google.storage.control.v2.StorageControl.CreateFolder - * # method settings for CreateFolder... - * - * Generated from protobuf field string selector = 1; - */ - protected $selector = ''; - /** - * Describes settings to use for long-running operations when generating - * API methods for RPCs. Complements RPCs that use the annotations in - * google/longrunning/operations.proto. - * Example of a YAML configuration:: - * publishing: - * method_settings: - * - selector: google.cloud.speech.v2.Speech.BatchRecognize - * long_running: - * initial_poll_delay: 60s # 1 minute - * poll_delay_multiplier: 1.5 - * max_poll_delay: 360s # 6 minutes - * total_poll_timeout: 54000s # 90 minutes - * - * Generated from protobuf field .google.api.MethodSettings.LongRunning long_running = 2; - */ - protected $long_running = null; - /** - * List of top-level fields of the request message, that should be - * automatically populated by the client libraries based on their - * (google.api.field_info).format. Currently supported format: UUID4. - * Example of a YAML configuration: - * publishing: - * method_settings: - * - selector: google.example.v1.ExampleService.CreateExample - * auto_populated_fields: - * - request_id - * - * Generated from protobuf field repeated string auto_populated_fields = 3; - */ - private $auto_populated_fields; - /** - * Batching configuration for an API method in client libraries. - * Example of a YAML configuration: - * publishing: - * method_settings: - * - selector: google.example.v1.ExampleService.BatchCreateExample - * batching: - * element_count_threshold: 1000 - * request_byte_threshold: 100000000 - * delay_threshold_millis: 10 - * - * Generated from protobuf field .google.api.BatchingConfigProto batching = 4; - */ - protected $batching = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $selector - * The fully qualified name of the method, for which the options below apply. - * This is used to find the method to apply the options. - * Example: - * publishing: - * method_settings: - * - selector: google.storage.control.v2.StorageControl.CreateFolder - * # method settings for CreateFolder... - * @type \Google\Api\MethodSettings\LongRunning $long_running - * Describes settings to use for long-running operations when generating - * API methods for RPCs. Complements RPCs that use the annotations in - * google/longrunning/operations.proto. - * Example of a YAML configuration:: - * publishing: - * method_settings: - * - selector: google.cloud.speech.v2.Speech.BatchRecognize - * long_running: - * initial_poll_delay: 60s # 1 minute - * poll_delay_multiplier: 1.5 - * max_poll_delay: 360s # 6 minutes - * total_poll_timeout: 54000s # 90 minutes - * @type string[] $auto_populated_fields - * List of top-level fields of the request message, that should be - * automatically populated by the client libraries based on their - * (google.api.field_info).format. Currently supported format: UUID4. - * Example of a YAML configuration: - * publishing: - * method_settings: - * - selector: google.example.v1.ExampleService.CreateExample - * auto_populated_fields: - * - request_id - * @type \Google\Api\BatchingConfigProto $batching - * Batching configuration for an API method in client libraries. - * Example of a YAML configuration: - * publishing: - * method_settings: - * - selector: google.example.v1.ExampleService.BatchCreateExample - * batching: - * element_count_threshold: 1000 - * request_byte_threshold: 100000000 - * delay_threshold_millis: 10 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Client::initOnce(); - parent::__construct($data); - } - - /** - * The fully qualified name of the method, for which the options below apply. - * This is used to find the method to apply the options. - * Example: - * publishing: - * method_settings: - * - selector: google.storage.control.v2.StorageControl.CreateFolder - * # method settings for CreateFolder... - * - * Generated from protobuf field string selector = 1; - * @return string - */ - public function getSelector() - { - return $this->selector; - } - - /** - * The fully qualified name of the method, for which the options below apply. - * This is used to find the method to apply the options. - * Example: - * publishing: - * method_settings: - * - selector: google.storage.control.v2.StorageControl.CreateFolder - * # method settings for CreateFolder... - * - * Generated from protobuf field string selector = 1; - * @param string $var - * @return $this - */ - public function setSelector($var) - { - GPBUtil::checkString($var, True); - $this->selector = $var; - - return $this; - } - - /** - * Describes settings to use for long-running operations when generating - * API methods for RPCs. Complements RPCs that use the annotations in - * google/longrunning/operations.proto. - * Example of a YAML configuration:: - * publishing: - * method_settings: - * - selector: google.cloud.speech.v2.Speech.BatchRecognize - * long_running: - * initial_poll_delay: 60s # 1 minute - * poll_delay_multiplier: 1.5 - * max_poll_delay: 360s # 6 minutes - * total_poll_timeout: 54000s # 90 minutes - * - * Generated from protobuf field .google.api.MethodSettings.LongRunning long_running = 2; - * @return \Google\Api\MethodSettings\LongRunning|null - */ - public function getLongRunning() - { - return $this->long_running; - } - - public function hasLongRunning() - { - return isset($this->long_running); - } - - public function clearLongRunning() - { - unset($this->long_running); - } - - /** - * Describes settings to use for long-running operations when generating - * API methods for RPCs. Complements RPCs that use the annotations in - * google/longrunning/operations.proto. - * Example of a YAML configuration:: - * publishing: - * method_settings: - * - selector: google.cloud.speech.v2.Speech.BatchRecognize - * long_running: - * initial_poll_delay: 60s # 1 minute - * poll_delay_multiplier: 1.5 - * max_poll_delay: 360s # 6 minutes - * total_poll_timeout: 54000s # 90 minutes - * - * Generated from protobuf field .google.api.MethodSettings.LongRunning long_running = 2; - * @param \Google\Api\MethodSettings\LongRunning $var - * @return $this - */ - public function setLongRunning($var) - { - GPBUtil::checkMessage($var, \Google\Api\MethodSettings\LongRunning::class); - $this->long_running = $var; - - return $this; - } - - /** - * List of top-level fields of the request message, that should be - * automatically populated by the client libraries based on their - * (google.api.field_info).format. Currently supported format: UUID4. - * Example of a YAML configuration: - * publishing: - * method_settings: - * - selector: google.example.v1.ExampleService.CreateExample - * auto_populated_fields: - * - request_id - * - * Generated from protobuf field repeated string auto_populated_fields = 3; - * @return RepeatedField - */ - public function getAutoPopulatedFields() - { - return $this->auto_populated_fields; - } - - /** - * List of top-level fields of the request message, that should be - * automatically populated by the client libraries based on their - * (google.api.field_info).format. Currently supported format: UUID4. - * Example of a YAML configuration: - * publishing: - * method_settings: - * - selector: google.example.v1.ExampleService.CreateExample - * auto_populated_fields: - * - request_id - * - * Generated from protobuf field repeated string auto_populated_fields = 3; - * @param string[] $var - * @return $this - */ - public function setAutoPopulatedFields($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->auto_populated_fields = $arr; - - return $this; - } - - /** - * Batching configuration for an API method in client libraries. - * Example of a YAML configuration: - * publishing: - * method_settings: - * - selector: google.example.v1.ExampleService.BatchCreateExample - * batching: - * element_count_threshold: 1000 - * request_byte_threshold: 100000000 - * delay_threshold_millis: 10 - * - * Generated from protobuf field .google.api.BatchingConfigProto batching = 4; - * @return \Google\Api\BatchingConfigProto|null - */ - public function getBatching() - { - return $this->batching; - } - - public function hasBatching() - { - return isset($this->batching); - } - - public function clearBatching() - { - unset($this->batching); - } - - /** - * Batching configuration for an API method in client libraries. - * Example of a YAML configuration: - * publishing: - * method_settings: - * - selector: google.example.v1.ExampleService.BatchCreateExample - * batching: - * element_count_threshold: 1000 - * request_byte_threshold: 100000000 - * delay_threshold_millis: 10 - * - * Generated from protobuf field .google.api.BatchingConfigProto batching = 4; - * @param \Google\Api\BatchingConfigProto $var - * @return $this - */ - public function setBatching($var) - { - GPBUtil::checkMessage($var, \Google\Api\BatchingConfigProto::class); - $this->batching = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MethodSettings/LongRunning.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MethodSettings/LongRunning.php deleted file mode 100644 index 075592a4e868..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MethodSettings/LongRunning.php +++ /dev/null @@ -1,223 +0,0 @@ -google.api.MethodSettings.LongRunning - */ -class LongRunning extends \Google\Protobuf\Internal\Message -{ - /** - * Initial delay after which the first poll request will be made. - * Default value: 5 seconds. - * - * Generated from protobuf field .google.protobuf.Duration initial_poll_delay = 1; - */ - protected $initial_poll_delay = null; - /** - * Multiplier to gradually increase delay between subsequent polls until it - * reaches max_poll_delay. - * Default value: 1.5. - * - * Generated from protobuf field float poll_delay_multiplier = 2; - */ - protected $poll_delay_multiplier = 0.0; - /** - * Maximum time between two subsequent poll requests. - * Default value: 45 seconds. - * - * Generated from protobuf field .google.protobuf.Duration max_poll_delay = 3; - */ - protected $max_poll_delay = null; - /** - * Total polling timeout. - * Default value: 5 minutes. - * - * Generated from protobuf field .google.protobuf.Duration total_poll_timeout = 4; - */ - protected $total_poll_timeout = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Duration $initial_poll_delay - * Initial delay after which the first poll request will be made. - * Default value: 5 seconds. - * @type float $poll_delay_multiplier - * Multiplier to gradually increase delay between subsequent polls until it - * reaches max_poll_delay. - * Default value: 1.5. - * @type \Google\Protobuf\Duration $max_poll_delay - * Maximum time between two subsequent poll requests. - * Default value: 45 seconds. - * @type \Google\Protobuf\Duration $total_poll_timeout - * Total polling timeout. - * Default value: 5 minutes. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Client::initOnce(); - parent::__construct($data); - } - - /** - * Initial delay after which the first poll request will be made. - * Default value: 5 seconds. - * - * Generated from protobuf field .google.protobuf.Duration initial_poll_delay = 1; - * @return \Google\Protobuf\Duration|null - */ - public function getInitialPollDelay() - { - return $this->initial_poll_delay; - } - - public function hasInitialPollDelay() - { - return isset($this->initial_poll_delay); - } - - public function clearInitialPollDelay() - { - unset($this->initial_poll_delay); - } - - /** - * Initial delay after which the first poll request will be made. - * Default value: 5 seconds. - * - * Generated from protobuf field .google.protobuf.Duration initial_poll_delay = 1; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setInitialPollDelay($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->initial_poll_delay = $var; - - return $this; - } - - /** - * Multiplier to gradually increase delay between subsequent polls until it - * reaches max_poll_delay. - * Default value: 1.5. - * - * Generated from protobuf field float poll_delay_multiplier = 2; - * @return float - */ - public function getPollDelayMultiplier() - { - return $this->poll_delay_multiplier; - } - - /** - * Multiplier to gradually increase delay between subsequent polls until it - * reaches max_poll_delay. - * Default value: 1.5. - * - * Generated from protobuf field float poll_delay_multiplier = 2; - * @param float $var - * @return $this - */ - public function setPollDelayMultiplier($var) - { - GPBUtil::checkFloat($var); - $this->poll_delay_multiplier = $var; - - return $this; - } - - /** - * Maximum time between two subsequent poll requests. - * Default value: 45 seconds. - * - * Generated from protobuf field .google.protobuf.Duration max_poll_delay = 3; - * @return \Google\Protobuf\Duration|null - */ - public function getMaxPollDelay() - { - return $this->max_poll_delay; - } - - public function hasMaxPollDelay() - { - return isset($this->max_poll_delay); - } - - public function clearMaxPollDelay() - { - unset($this->max_poll_delay); - } - - /** - * Maximum time between two subsequent poll requests. - * Default value: 45 seconds. - * - * Generated from protobuf field .google.protobuf.Duration max_poll_delay = 3; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setMaxPollDelay($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->max_poll_delay = $var; - - return $this; - } - - /** - * Total polling timeout. - * Default value: 5 minutes. - * - * Generated from protobuf field .google.protobuf.Duration total_poll_timeout = 4; - * @return \Google\Protobuf\Duration|null - */ - public function getTotalPollTimeout() - { - return $this->total_poll_timeout; - } - - public function hasTotalPollTimeout() - { - return isset($this->total_poll_timeout); - } - - public function clearTotalPollTimeout() - { - unset($this->total_poll_timeout); - } - - /** - * Total polling timeout. - * Default value: 5 minutes. - * - * Generated from protobuf field .google.protobuf.Duration total_poll_timeout = 4; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setTotalPollTimeout($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->total_poll_timeout = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Metric.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Metric.php deleted file mode 100644 index cbcfc0aa77fa..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Metric.php +++ /dev/null @@ -1,114 +0,0 @@ -google.api.Metric - */ -class Metric extends \Google\Protobuf\Internal\Message -{ - /** - * An existing metric type, see - * [google.api.MetricDescriptor][google.api.MetricDescriptor]. For example, - * `custom.googleapis.com/invoice/paid/amount`. - * - * Generated from protobuf field string type = 3; - */ - protected $type = ''; - /** - * The set of label values that uniquely identify this metric. All - * labels listed in the `MetricDescriptor` must be assigned values. - * - * Generated from protobuf field map labels = 2; - */ - private $labels; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $type - * An existing metric type, see - * [google.api.MetricDescriptor][google.api.MetricDescriptor]. For example, - * `custom.googleapis.com/invoice/paid/amount`. - * @type array|\Google\Protobuf\Internal\MapField $labels - * The set of label values that uniquely identify this metric. All - * labels listed in the `MetricDescriptor` must be assigned values. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Metric::initOnce(); - parent::__construct($data); - } - - /** - * An existing metric type, see - * [google.api.MetricDescriptor][google.api.MetricDescriptor]. For example, - * `custom.googleapis.com/invoice/paid/amount`. - * - * Generated from protobuf field string type = 3; - * @return string - */ - public function getType() - { - return $this->type; - } - - /** - * An existing metric type, see - * [google.api.MetricDescriptor][google.api.MetricDescriptor]. For example, - * `custom.googleapis.com/invoice/paid/amount`. - * - * Generated from protobuf field string type = 3; - * @param string $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkString($var, True); - $this->type = $var; - - return $this; - } - - /** - * The set of label values that uniquely identify this metric. All - * labels listed in the `MetricDescriptor` must be assigned values. - * - * Generated from protobuf field map labels = 2; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * The set of label values that uniquely identify this metric. All - * labels listed in the `MetricDescriptor` must be assigned values. - * - * Generated from protobuf field map labels = 2; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricDescriptor.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricDescriptor.php deleted file mode 100644 index 78b29e6d9a0d..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricDescriptor.php +++ /dev/null @@ -1,831 +0,0 @@ -google.api.MetricDescriptor - */ -class MetricDescriptor extends \Google\Protobuf\Internal\Message -{ - /** - * The resource name of the metric descriptor. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * The metric type, including its DNS name prefix. The type is not - * URL-encoded. All user-defined metric types have the DNS name - * `custom.googleapis.com` or `external.googleapis.com`. Metric types should - * use a natural hierarchical grouping. For example: - * "custom.googleapis.com/invoice/paid/amount" - * "external.googleapis.com/prometheus/up" - * "appengine.googleapis.com/http/server/response_latencies" - * - * Generated from protobuf field string type = 8; - */ - protected $type = ''; - /** - * The set of labels that can be used to describe a specific - * instance of this metric type. For example, the - * `appengine.googleapis.com/http/server/response_latencies` metric - * type has a label for the HTTP response code, `response_code`, so - * you can look at latencies for successful responses or just - * for responses that failed. - * - * Generated from protobuf field repeated .google.api.LabelDescriptor labels = 2; - */ - private $labels; - /** - * Whether the metric records instantaneous values, changes to a value, etc. - * Some combinations of `metric_kind` and `value_type` might not be supported. - * - * Generated from protobuf field .google.api.MetricDescriptor.MetricKind metric_kind = 3; - */ - protected $metric_kind = 0; - /** - * Whether the measurement is an integer, a floating-point number, etc. - * Some combinations of `metric_kind` and `value_type` might not be supported. - * - * Generated from protobuf field .google.api.MetricDescriptor.ValueType value_type = 4; - */ - protected $value_type = 0; - /** - * The units in which the metric value is reported. It is only applicable - * if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit` - * defines the representation of the stored metric values. - * Different systems might scale the values to be more easily displayed (so a - * value of `0.02kBy` _might_ be displayed as `20By`, and a value of - * `3523kBy` _might_ be displayed as `3.5MBy`). However, if the `unit` is - * `kBy`, then the value of the metric is always in thousands of bytes, no - * matter how it might be displayed. - * If you want a custom metric to record the exact number of CPU-seconds used - * by a job, you can create an `INT64 CUMULATIVE` metric whose `unit` is - * `s{CPU}` (or equivalently `1s{CPU}` or just `s`). If the job uses 12,005 - * CPU-seconds, then the value is written as `12005`. - * Alternatively, if you want a custom metric to record data in a more - * granular way, you can create a `DOUBLE CUMULATIVE` metric whose `unit` is - * `ks{CPU}`, and then write the value `12.005` (which is `12005/1000`), - * or use `Kis{CPU}` and write `11.723` (which is `12005/1024`). - * The supported units are a subset of [The Unified Code for Units of - * Measure](https://unitsofmeasure.org/ucum.html) standard: - * **Basic units (UNIT)** - * * `bit` bit - * * `By` byte - * * `s` second - * * `min` minute - * * `h` hour - * * `d` day - * * `1` dimensionless - * **Prefixes (PREFIX)** - * * `k` kilo (10^3) - * * `M` mega (10^6) - * * `G` giga (10^9) - * * `T` tera (10^12) - * * `P` peta (10^15) - * * `E` exa (10^18) - * * `Z` zetta (10^21) - * * `Y` yotta (10^24) - * * `m` milli (10^-3) - * * `u` micro (10^-6) - * * `n` nano (10^-9) - * * `p` pico (10^-12) - * * `f` femto (10^-15) - * * `a` atto (10^-18) - * * `z` zepto (10^-21) - * * `y` yocto (10^-24) - * * `Ki` kibi (2^10) - * * `Mi` mebi (2^20) - * * `Gi` gibi (2^30) - * * `Ti` tebi (2^40) - * * `Pi` pebi (2^50) - * **Grammar** - * The grammar also includes these connectors: - * * `/` division or ratio (as an infix operator). For examples, - * `kBy/{email}` or `MiBy/10ms` (although you should almost never - * have `/s` in a metric `unit`; rates should always be computed at - * query time from the underlying cumulative or delta value). - * * `.` multiplication or composition (as an infix operator). For - * examples, `GBy.d` or `k{watt}.h`. - * The grammar for a unit is as follows: - * Expression = Component { "." Component } { "/" Component } ; - * Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ] - * | Annotation - * | "1" - * ; - * Annotation = "{" NAME "}" ; - * Notes: - * * `Annotation` is just a comment if it follows a `UNIT`. If the annotation - * is used alone, then the unit is equivalent to `1`. For examples, - * `{request}/s == 1/s`, `By{transmitted}/s == By/s`. - * * `NAME` is a sequence of non-blank printable ASCII characters not - * containing `{` or `}`. - * * `1` represents a unitary [dimensionless - * unit](https://en.wikipedia.org/wiki/Dimensionless_quantity) of 1, such - * as in `1/s`. It is typically used when none of the basic units are - * appropriate. For example, "new users per day" can be represented as - * `1/d` or `{new-users}/d` (and a metric value `5` would mean "5 new - * users). Alternatively, "thousands of page views per day" would be - * represented as `1000/d` or `k1/d` or `k{page_views}/d` (and a metric - * value of `5.3` would mean "5300 page views per day"). - * * `%` represents dimensionless value of 1/100, and annotates values giving - * a percentage (so the metric values are typically in the range of 0..100, - * and a metric value `3` means "3 percent"). - * * `10^2.%` indicates a metric contains a ratio, typically in the range - * 0..1, that will be multiplied by 100 and displayed as a percentage - * (so a metric value `0.03` means "3 percent"). - * - * Generated from protobuf field string unit = 5; - */ - protected $unit = ''; - /** - * A detailed description of the metric, which can be used in documentation. - * - * Generated from protobuf field string description = 6; - */ - protected $description = ''; - /** - * A concise name for the metric, which can be displayed in user interfaces. - * Use sentence case without an ending period, for example "Request count". - * This field is optional but it is recommended to be set for any metrics - * associated with user-visible concepts, such as Quota. - * - * Generated from protobuf field string display_name = 7; - */ - protected $display_name = ''; - /** - * Optional. Metadata which can be used to guide usage of the metric. - * - * Generated from protobuf field .google.api.MetricDescriptor.MetricDescriptorMetadata metadata = 10; - */ - protected $metadata = null; - /** - * Optional. The launch stage of the metric definition. - * - * Generated from protobuf field .google.api.LaunchStage launch_stage = 12; - */ - protected $launch_stage = 0; - /** - * Read-only. If present, then a [time - * series][google.monitoring.v3.TimeSeries], which is identified partially by - * a metric type and a - * [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor], that - * is associated with this metric type can only be associated with one of the - * monitored resource types listed here. - * - * Generated from protobuf field repeated string monitored_resource_types = 13; - */ - private $monitored_resource_types; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The resource name of the metric descriptor. - * @type string $type - * The metric type, including its DNS name prefix. The type is not - * URL-encoded. All user-defined metric types have the DNS name - * `custom.googleapis.com` or `external.googleapis.com`. Metric types should - * use a natural hierarchical grouping. For example: - * "custom.googleapis.com/invoice/paid/amount" - * "external.googleapis.com/prometheus/up" - * "appengine.googleapis.com/http/server/response_latencies" - * @type \Google\Api\LabelDescriptor[] $labels - * The set of labels that can be used to describe a specific - * instance of this metric type. For example, the - * `appengine.googleapis.com/http/server/response_latencies` metric - * type has a label for the HTTP response code, `response_code`, so - * you can look at latencies for successful responses or just - * for responses that failed. - * @type int $metric_kind - * Whether the metric records instantaneous values, changes to a value, etc. - * Some combinations of `metric_kind` and `value_type` might not be supported. - * @type int $value_type - * Whether the measurement is an integer, a floating-point number, etc. - * Some combinations of `metric_kind` and `value_type` might not be supported. - * @type string $unit - * The units in which the metric value is reported. It is only applicable - * if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit` - * defines the representation of the stored metric values. - * Different systems might scale the values to be more easily displayed (so a - * value of `0.02kBy` _might_ be displayed as `20By`, and a value of - * `3523kBy` _might_ be displayed as `3.5MBy`). However, if the `unit` is - * `kBy`, then the value of the metric is always in thousands of bytes, no - * matter how it might be displayed. - * If you want a custom metric to record the exact number of CPU-seconds used - * by a job, you can create an `INT64 CUMULATIVE` metric whose `unit` is - * `s{CPU}` (or equivalently `1s{CPU}` or just `s`). If the job uses 12,005 - * CPU-seconds, then the value is written as `12005`. - * Alternatively, if you want a custom metric to record data in a more - * granular way, you can create a `DOUBLE CUMULATIVE` metric whose `unit` is - * `ks{CPU}`, and then write the value `12.005` (which is `12005/1000`), - * or use `Kis{CPU}` and write `11.723` (which is `12005/1024`). - * The supported units are a subset of [The Unified Code for Units of - * Measure](https://unitsofmeasure.org/ucum.html) standard: - * **Basic units (UNIT)** - * * `bit` bit - * * `By` byte - * * `s` second - * * `min` minute - * * `h` hour - * * `d` day - * * `1` dimensionless - * **Prefixes (PREFIX)** - * * `k` kilo (10^3) - * * `M` mega (10^6) - * * `G` giga (10^9) - * * `T` tera (10^12) - * * `P` peta (10^15) - * * `E` exa (10^18) - * * `Z` zetta (10^21) - * * `Y` yotta (10^24) - * * `m` milli (10^-3) - * * `u` micro (10^-6) - * * `n` nano (10^-9) - * * `p` pico (10^-12) - * * `f` femto (10^-15) - * * `a` atto (10^-18) - * * `z` zepto (10^-21) - * * `y` yocto (10^-24) - * * `Ki` kibi (2^10) - * * `Mi` mebi (2^20) - * * `Gi` gibi (2^30) - * * `Ti` tebi (2^40) - * * `Pi` pebi (2^50) - * **Grammar** - * The grammar also includes these connectors: - * * `/` division or ratio (as an infix operator). For examples, - * `kBy/{email}` or `MiBy/10ms` (although you should almost never - * have `/s` in a metric `unit`; rates should always be computed at - * query time from the underlying cumulative or delta value). - * * `.` multiplication or composition (as an infix operator). For - * examples, `GBy.d` or `k{watt}.h`. - * The grammar for a unit is as follows: - * Expression = Component { "." Component } { "/" Component } ; - * Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ] - * | Annotation - * | "1" - * ; - * Annotation = "{" NAME "}" ; - * Notes: - * * `Annotation` is just a comment if it follows a `UNIT`. If the annotation - * is used alone, then the unit is equivalent to `1`. For examples, - * `{request}/s == 1/s`, `By{transmitted}/s == By/s`. - * * `NAME` is a sequence of non-blank printable ASCII characters not - * containing `{` or `}`. - * * `1` represents a unitary [dimensionless - * unit](https://en.wikipedia.org/wiki/Dimensionless_quantity) of 1, such - * as in `1/s`. It is typically used when none of the basic units are - * appropriate. For example, "new users per day" can be represented as - * `1/d` or `{new-users}/d` (and a metric value `5` would mean "5 new - * users). Alternatively, "thousands of page views per day" would be - * represented as `1000/d` or `k1/d` or `k{page_views}/d` (and a metric - * value of `5.3` would mean "5300 page views per day"). - * * `%` represents dimensionless value of 1/100, and annotates values giving - * a percentage (so the metric values are typically in the range of 0..100, - * and a metric value `3` means "3 percent"). - * * `10^2.%` indicates a metric contains a ratio, typically in the range - * 0..1, that will be multiplied by 100 and displayed as a percentage - * (so a metric value `0.03` means "3 percent"). - * @type string $description - * A detailed description of the metric, which can be used in documentation. - * @type string $display_name - * A concise name for the metric, which can be displayed in user interfaces. - * Use sentence case without an ending period, for example "Request count". - * This field is optional but it is recommended to be set for any metrics - * associated with user-visible concepts, such as Quota. - * @type \Google\Api\MetricDescriptor\MetricDescriptorMetadata $metadata - * Optional. Metadata which can be used to guide usage of the metric. - * @type int $launch_stage - * Optional. The launch stage of the metric definition. - * @type string[] $monitored_resource_types - * Read-only. If present, then a [time - * series][google.monitoring.v3.TimeSeries], which is identified partially by - * a metric type and a - * [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor], that - * is associated with this metric type can only be associated with one of the - * monitored resource types listed here. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Metric::initOnce(); - parent::__construct($data); - } - - /** - * The resource name of the metric descriptor. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The resource name of the metric descriptor. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The metric type, including its DNS name prefix. The type is not - * URL-encoded. All user-defined metric types have the DNS name - * `custom.googleapis.com` or `external.googleapis.com`. Metric types should - * use a natural hierarchical grouping. For example: - * "custom.googleapis.com/invoice/paid/amount" - * "external.googleapis.com/prometheus/up" - * "appengine.googleapis.com/http/server/response_latencies" - * - * Generated from protobuf field string type = 8; - * @return string - */ - public function getType() - { - return $this->type; - } - - /** - * The metric type, including its DNS name prefix. The type is not - * URL-encoded. All user-defined metric types have the DNS name - * `custom.googleapis.com` or `external.googleapis.com`. Metric types should - * use a natural hierarchical grouping. For example: - * "custom.googleapis.com/invoice/paid/amount" - * "external.googleapis.com/prometheus/up" - * "appengine.googleapis.com/http/server/response_latencies" - * - * Generated from protobuf field string type = 8; - * @param string $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkString($var, True); - $this->type = $var; - - return $this; - } - - /** - * The set of labels that can be used to describe a specific - * instance of this metric type. For example, the - * `appengine.googleapis.com/http/server/response_latencies` metric - * type has a label for the HTTP response code, `response_code`, so - * you can look at latencies for successful responses or just - * for responses that failed. - * - * Generated from protobuf field repeated .google.api.LabelDescriptor labels = 2; - * @return RepeatedField<\Google\Api\LabelDescriptor> - */ - public function getLabels() - { - return $this->labels; - } - - /** - * The set of labels that can be used to describe a specific - * instance of this metric type. For example, the - * `appengine.googleapis.com/http/server/response_latencies` metric - * type has a label for the HTTP response code, `response_code`, so - * you can look at latencies for successful responses or just - * for responses that failed. - * - * Generated from protobuf field repeated .google.api.LabelDescriptor labels = 2; - * @param \Google\Api\LabelDescriptor[] $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\LabelDescriptor::class); - $this->labels = $arr; - - return $this; - } - - /** - * Whether the metric records instantaneous values, changes to a value, etc. - * Some combinations of `metric_kind` and `value_type` might not be supported. - * - * Generated from protobuf field .google.api.MetricDescriptor.MetricKind metric_kind = 3; - * @return int - */ - public function getMetricKind() - { - return $this->metric_kind; - } - - /** - * Whether the metric records instantaneous values, changes to a value, etc. - * Some combinations of `metric_kind` and `value_type` might not be supported. - * - * Generated from protobuf field .google.api.MetricDescriptor.MetricKind metric_kind = 3; - * @param int $var - * @return $this - */ - public function setMetricKind($var) - { - GPBUtil::checkEnum($var, \Google\Api\MetricDescriptor\MetricKind::class); - $this->metric_kind = $var; - - return $this; - } - - /** - * Whether the measurement is an integer, a floating-point number, etc. - * Some combinations of `metric_kind` and `value_type` might not be supported. - * - * Generated from protobuf field .google.api.MetricDescriptor.ValueType value_type = 4; - * @return int - */ - public function getValueType() - { - return $this->value_type; - } - - /** - * Whether the measurement is an integer, a floating-point number, etc. - * Some combinations of `metric_kind` and `value_type` might not be supported. - * - * Generated from protobuf field .google.api.MetricDescriptor.ValueType value_type = 4; - * @param int $var - * @return $this - */ - public function setValueType($var) - { - GPBUtil::checkEnum($var, \Google\Api\MetricDescriptor\ValueType::class); - $this->value_type = $var; - - return $this; - } - - /** - * The units in which the metric value is reported. It is only applicable - * if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit` - * defines the representation of the stored metric values. - * Different systems might scale the values to be more easily displayed (so a - * value of `0.02kBy` _might_ be displayed as `20By`, and a value of - * `3523kBy` _might_ be displayed as `3.5MBy`). However, if the `unit` is - * `kBy`, then the value of the metric is always in thousands of bytes, no - * matter how it might be displayed. - * If you want a custom metric to record the exact number of CPU-seconds used - * by a job, you can create an `INT64 CUMULATIVE` metric whose `unit` is - * `s{CPU}` (or equivalently `1s{CPU}` or just `s`). If the job uses 12,005 - * CPU-seconds, then the value is written as `12005`. - * Alternatively, if you want a custom metric to record data in a more - * granular way, you can create a `DOUBLE CUMULATIVE` metric whose `unit` is - * `ks{CPU}`, and then write the value `12.005` (which is `12005/1000`), - * or use `Kis{CPU}` and write `11.723` (which is `12005/1024`). - * The supported units are a subset of [The Unified Code for Units of - * Measure](https://unitsofmeasure.org/ucum.html) standard: - * **Basic units (UNIT)** - * * `bit` bit - * * `By` byte - * * `s` second - * * `min` minute - * * `h` hour - * * `d` day - * * `1` dimensionless - * **Prefixes (PREFIX)** - * * `k` kilo (10^3) - * * `M` mega (10^6) - * * `G` giga (10^9) - * * `T` tera (10^12) - * * `P` peta (10^15) - * * `E` exa (10^18) - * * `Z` zetta (10^21) - * * `Y` yotta (10^24) - * * `m` milli (10^-3) - * * `u` micro (10^-6) - * * `n` nano (10^-9) - * * `p` pico (10^-12) - * * `f` femto (10^-15) - * * `a` atto (10^-18) - * * `z` zepto (10^-21) - * * `y` yocto (10^-24) - * * `Ki` kibi (2^10) - * * `Mi` mebi (2^20) - * * `Gi` gibi (2^30) - * * `Ti` tebi (2^40) - * * `Pi` pebi (2^50) - * **Grammar** - * The grammar also includes these connectors: - * * `/` division or ratio (as an infix operator). For examples, - * `kBy/{email}` or `MiBy/10ms` (although you should almost never - * have `/s` in a metric `unit`; rates should always be computed at - * query time from the underlying cumulative or delta value). - * * `.` multiplication or composition (as an infix operator). For - * examples, `GBy.d` or `k{watt}.h`. - * The grammar for a unit is as follows: - * Expression = Component { "." Component } { "/" Component } ; - * Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ] - * | Annotation - * | "1" - * ; - * Annotation = "{" NAME "}" ; - * Notes: - * * `Annotation` is just a comment if it follows a `UNIT`. If the annotation - * is used alone, then the unit is equivalent to `1`. For examples, - * `{request}/s == 1/s`, `By{transmitted}/s == By/s`. - * * `NAME` is a sequence of non-blank printable ASCII characters not - * containing `{` or `}`. - * * `1` represents a unitary [dimensionless - * unit](https://en.wikipedia.org/wiki/Dimensionless_quantity) of 1, such - * as in `1/s`. It is typically used when none of the basic units are - * appropriate. For example, "new users per day" can be represented as - * `1/d` or `{new-users}/d` (and a metric value `5` would mean "5 new - * users). Alternatively, "thousands of page views per day" would be - * represented as `1000/d` or `k1/d` or `k{page_views}/d` (and a metric - * value of `5.3` would mean "5300 page views per day"). - * * `%` represents dimensionless value of 1/100, and annotates values giving - * a percentage (so the metric values are typically in the range of 0..100, - * and a metric value `3` means "3 percent"). - * * `10^2.%` indicates a metric contains a ratio, typically in the range - * 0..1, that will be multiplied by 100 and displayed as a percentage - * (so a metric value `0.03` means "3 percent"). - * - * Generated from protobuf field string unit = 5; - * @return string - */ - public function getUnit() - { - return $this->unit; - } - - /** - * The units in which the metric value is reported. It is only applicable - * if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit` - * defines the representation of the stored metric values. - * Different systems might scale the values to be more easily displayed (so a - * value of `0.02kBy` _might_ be displayed as `20By`, and a value of - * `3523kBy` _might_ be displayed as `3.5MBy`). However, if the `unit` is - * `kBy`, then the value of the metric is always in thousands of bytes, no - * matter how it might be displayed. - * If you want a custom metric to record the exact number of CPU-seconds used - * by a job, you can create an `INT64 CUMULATIVE` metric whose `unit` is - * `s{CPU}` (or equivalently `1s{CPU}` or just `s`). If the job uses 12,005 - * CPU-seconds, then the value is written as `12005`. - * Alternatively, if you want a custom metric to record data in a more - * granular way, you can create a `DOUBLE CUMULATIVE` metric whose `unit` is - * `ks{CPU}`, and then write the value `12.005` (which is `12005/1000`), - * or use `Kis{CPU}` and write `11.723` (which is `12005/1024`). - * The supported units are a subset of [The Unified Code for Units of - * Measure](https://unitsofmeasure.org/ucum.html) standard: - * **Basic units (UNIT)** - * * `bit` bit - * * `By` byte - * * `s` second - * * `min` minute - * * `h` hour - * * `d` day - * * `1` dimensionless - * **Prefixes (PREFIX)** - * * `k` kilo (10^3) - * * `M` mega (10^6) - * * `G` giga (10^9) - * * `T` tera (10^12) - * * `P` peta (10^15) - * * `E` exa (10^18) - * * `Z` zetta (10^21) - * * `Y` yotta (10^24) - * * `m` milli (10^-3) - * * `u` micro (10^-6) - * * `n` nano (10^-9) - * * `p` pico (10^-12) - * * `f` femto (10^-15) - * * `a` atto (10^-18) - * * `z` zepto (10^-21) - * * `y` yocto (10^-24) - * * `Ki` kibi (2^10) - * * `Mi` mebi (2^20) - * * `Gi` gibi (2^30) - * * `Ti` tebi (2^40) - * * `Pi` pebi (2^50) - * **Grammar** - * The grammar also includes these connectors: - * * `/` division or ratio (as an infix operator). For examples, - * `kBy/{email}` or `MiBy/10ms` (although you should almost never - * have `/s` in a metric `unit`; rates should always be computed at - * query time from the underlying cumulative or delta value). - * * `.` multiplication or composition (as an infix operator). For - * examples, `GBy.d` or `k{watt}.h`. - * The grammar for a unit is as follows: - * Expression = Component { "." Component } { "/" Component } ; - * Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ] - * | Annotation - * | "1" - * ; - * Annotation = "{" NAME "}" ; - * Notes: - * * `Annotation` is just a comment if it follows a `UNIT`. If the annotation - * is used alone, then the unit is equivalent to `1`. For examples, - * `{request}/s == 1/s`, `By{transmitted}/s == By/s`. - * * `NAME` is a sequence of non-blank printable ASCII characters not - * containing `{` or `}`. - * * `1` represents a unitary [dimensionless - * unit](https://en.wikipedia.org/wiki/Dimensionless_quantity) of 1, such - * as in `1/s`. It is typically used when none of the basic units are - * appropriate. For example, "new users per day" can be represented as - * `1/d` or `{new-users}/d` (and a metric value `5` would mean "5 new - * users). Alternatively, "thousands of page views per day" would be - * represented as `1000/d` or `k1/d` or `k{page_views}/d` (and a metric - * value of `5.3` would mean "5300 page views per day"). - * * `%` represents dimensionless value of 1/100, and annotates values giving - * a percentage (so the metric values are typically in the range of 0..100, - * and a metric value `3` means "3 percent"). - * * `10^2.%` indicates a metric contains a ratio, typically in the range - * 0..1, that will be multiplied by 100 and displayed as a percentage - * (so a metric value `0.03` means "3 percent"). - * - * Generated from protobuf field string unit = 5; - * @param string $var - * @return $this - */ - public function setUnit($var) - { - GPBUtil::checkString($var, True); - $this->unit = $var; - - return $this; - } - - /** - * A detailed description of the metric, which can be used in documentation. - * - * Generated from protobuf field string description = 6; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * A detailed description of the metric, which can be used in documentation. - * - * Generated from protobuf field string description = 6; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * A concise name for the metric, which can be displayed in user interfaces. - * Use sentence case without an ending period, for example "Request count". - * This field is optional but it is recommended to be set for any metrics - * associated with user-visible concepts, such as Quota. - * - * Generated from protobuf field string display_name = 7; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * A concise name for the metric, which can be displayed in user interfaces. - * Use sentence case without an ending period, for example "Request count". - * This field is optional but it is recommended to be set for any metrics - * associated with user-visible concepts, such as Quota. - * - * Generated from protobuf field string display_name = 7; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Optional. Metadata which can be used to guide usage of the metric. - * - * Generated from protobuf field .google.api.MetricDescriptor.MetricDescriptorMetadata metadata = 10; - * @return \Google\Api\MetricDescriptor\MetricDescriptorMetadata|null - */ - public function getMetadata() - { - return $this->metadata; - } - - public function hasMetadata() - { - return isset($this->metadata); - } - - public function clearMetadata() - { - unset($this->metadata); - } - - /** - * Optional. Metadata which can be used to guide usage of the metric. - * - * Generated from protobuf field .google.api.MetricDescriptor.MetricDescriptorMetadata metadata = 10; - * @param \Google\Api\MetricDescriptor\MetricDescriptorMetadata $var - * @return $this - */ - public function setMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Api\MetricDescriptor\MetricDescriptorMetadata::class); - $this->metadata = $var; - - return $this; - } - - /** - * Optional. The launch stage of the metric definition. - * - * Generated from protobuf field .google.api.LaunchStage launch_stage = 12; - * @return int - */ - public function getLaunchStage() - { - return $this->launch_stage; - } - - /** - * Optional. The launch stage of the metric definition. - * - * Generated from protobuf field .google.api.LaunchStage launch_stage = 12; - * @param int $var - * @return $this - */ - public function setLaunchStage($var) - { - GPBUtil::checkEnum($var, \Google\Api\LaunchStage::class); - $this->launch_stage = $var; - - return $this; - } - - /** - * Read-only. If present, then a [time - * series][google.monitoring.v3.TimeSeries], which is identified partially by - * a metric type and a - * [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor], that - * is associated with this metric type can only be associated with one of the - * monitored resource types listed here. - * - * Generated from protobuf field repeated string monitored_resource_types = 13; - * @return RepeatedField - */ - public function getMonitoredResourceTypes() - { - return $this->monitored_resource_types; - } - - /** - * Read-only. If present, then a [time - * series][google.monitoring.v3.TimeSeries], which is identified partially by - * a metric type and a - * [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor], that - * is associated with this metric type can only be associated with one of the - * monitored resource types listed here. - * - * Generated from protobuf field repeated string monitored_resource_types = 13; - * @param string[] $var - * @return $this - */ - public function setMonitoredResourceTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->monitored_resource_types = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricDescriptor/MetricDescriptorMetadata.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricDescriptor/MetricDescriptorMetadata.php deleted file mode 100644 index a7fab28ba357..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricDescriptor/MetricDescriptorMetadata.php +++ /dev/null @@ -1,224 +0,0 @@ -google.api.MetricDescriptor.MetricDescriptorMetadata - */ -class MetricDescriptorMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. Must use the - * [MetricDescriptor.launch_stage][google.api.MetricDescriptor.launch_stage] - * instead. - * - * Generated from protobuf field .google.api.LaunchStage launch_stage = 1 [deprecated = true]; - * @deprecated - */ - protected $launch_stage = 0; - /** - * The sampling period of metric data points. For metrics which are written - * periodically, consecutive data points are stored at this time interval, - * excluding data loss due to errors. Metrics with a higher granularity have - * a smaller sampling period. - * - * Generated from protobuf field .google.protobuf.Duration sample_period = 2; - */ - protected $sample_period = null; - /** - * The delay of data points caused by ingestion. Data points older than this - * age are guaranteed to be ingested and available to be read, excluding - * data loss due to errors. - * - * Generated from protobuf field .google.protobuf.Duration ingest_delay = 3; - */ - protected $ingest_delay = null; - /** - * The scope of the timeseries data of the metric. - * - * Generated from protobuf field repeated .google.api.MetricDescriptor.MetricDescriptorMetadata.TimeSeriesResourceHierarchyLevel time_series_resource_hierarchy_level = 4; - */ - private $time_series_resource_hierarchy_level; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $launch_stage - * Deprecated. Must use the - * [MetricDescriptor.launch_stage][google.api.MetricDescriptor.launch_stage] - * instead. - * @type \Google\Protobuf\Duration $sample_period - * The sampling period of metric data points. For metrics which are written - * periodically, consecutive data points are stored at this time interval, - * excluding data loss due to errors. Metrics with a higher granularity have - * a smaller sampling period. - * @type \Google\Protobuf\Duration $ingest_delay - * The delay of data points caused by ingestion. Data points older than this - * age are guaranteed to be ingested and available to be read, excluding - * data loss due to errors. - * @type int[] $time_series_resource_hierarchy_level - * The scope of the timeseries data of the metric. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Metric::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated. Must use the - * [MetricDescriptor.launch_stage][google.api.MetricDescriptor.launch_stage] - * instead. - * - * Generated from protobuf field .google.api.LaunchStage launch_stage = 1 [deprecated = true]; - * @return int - * @deprecated - */ - public function getLaunchStage() - { - if ($this->launch_stage !== 0) { - @trigger_error('launch_stage is deprecated.', E_USER_DEPRECATED); - } - return $this->launch_stage; - } - - /** - * Deprecated. Must use the - * [MetricDescriptor.launch_stage][google.api.MetricDescriptor.launch_stage] - * instead. - * - * Generated from protobuf field .google.api.LaunchStage launch_stage = 1 [deprecated = true]; - * @param int $var - * @return $this - * @deprecated - */ - public function setLaunchStage($var) - { - @trigger_error('launch_stage is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkEnum($var, \Google\Api\LaunchStage::class); - $this->launch_stage = $var; - - return $this; - } - - /** - * The sampling period of metric data points. For metrics which are written - * periodically, consecutive data points are stored at this time interval, - * excluding data loss due to errors. Metrics with a higher granularity have - * a smaller sampling period. - * - * Generated from protobuf field .google.protobuf.Duration sample_period = 2; - * @return \Google\Protobuf\Duration|null - */ - public function getSamplePeriod() - { - return $this->sample_period; - } - - public function hasSamplePeriod() - { - return isset($this->sample_period); - } - - public function clearSamplePeriod() - { - unset($this->sample_period); - } - - /** - * The sampling period of metric data points. For metrics which are written - * periodically, consecutive data points are stored at this time interval, - * excluding data loss due to errors. Metrics with a higher granularity have - * a smaller sampling period. - * - * Generated from protobuf field .google.protobuf.Duration sample_period = 2; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setSamplePeriod($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->sample_period = $var; - - return $this; - } - - /** - * The delay of data points caused by ingestion. Data points older than this - * age are guaranteed to be ingested and available to be read, excluding - * data loss due to errors. - * - * Generated from protobuf field .google.protobuf.Duration ingest_delay = 3; - * @return \Google\Protobuf\Duration|null - */ - public function getIngestDelay() - { - return $this->ingest_delay; - } - - public function hasIngestDelay() - { - return isset($this->ingest_delay); - } - - public function clearIngestDelay() - { - unset($this->ingest_delay); - } - - /** - * The delay of data points caused by ingestion. Data points older than this - * age are guaranteed to be ingested and available to be read, excluding - * data loss due to errors. - * - * Generated from protobuf field .google.protobuf.Duration ingest_delay = 3; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setIngestDelay($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->ingest_delay = $var; - - return $this; - } - - /** - * The scope of the timeseries data of the metric. - * - * Generated from protobuf field repeated .google.api.MetricDescriptor.MetricDescriptorMetadata.TimeSeriesResourceHierarchyLevel time_series_resource_hierarchy_level = 4; - * @return RepeatedField - */ - public function getTimeSeriesResourceHierarchyLevel() - { - return $this->time_series_resource_hierarchy_level; - } - - /** - * The scope of the timeseries data of the metric. - * - * Generated from protobuf field repeated .google.api.MetricDescriptor.MetricDescriptorMetadata.TimeSeriesResourceHierarchyLevel time_series_resource_hierarchy_level = 4; - * @param int[] $var - * @return $this - */ - public function setTimeSeriesResourceHierarchyLevel($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Api\MetricDescriptor\MetricDescriptorMetadata\TimeSeriesResourceHierarchyLevel::class); - $this->time_series_resource_hierarchy_level = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricDescriptor/MetricDescriptorMetadata/TimeSeriesResourceHierarchyLevel.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricDescriptor/MetricDescriptorMetadata/TimeSeriesResourceHierarchyLevel.php deleted file mode 100644 index 7fb5fc26f739..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricDescriptor/MetricDescriptorMetadata/TimeSeriesResourceHierarchyLevel.php +++ /dev/null @@ -1,68 +0,0 @@ -google.api.MetricDescriptor.MetricDescriptorMetadata.TimeSeriesResourceHierarchyLevel - */ -class TimeSeriesResourceHierarchyLevel -{ - /** - * Do not use this default value. - * - * Generated from protobuf enum TIME_SERIES_RESOURCE_HIERARCHY_LEVEL_UNSPECIFIED = 0; - */ - const TIME_SERIES_RESOURCE_HIERARCHY_LEVEL_UNSPECIFIED = 0; - /** - * Scopes a metric to a project. - * - * Generated from protobuf enum PROJECT = 1; - */ - const PROJECT = 1; - /** - * Scopes a metric to an organization. - * - * Generated from protobuf enum ORGANIZATION = 2; - */ - const ORGANIZATION = 2; - /** - * Scopes a metric to a folder. - * - * Generated from protobuf enum FOLDER = 3; - */ - const FOLDER = 3; - - private static $valueToName = [ - self::TIME_SERIES_RESOURCE_HIERARCHY_LEVEL_UNSPECIFIED => 'TIME_SERIES_RESOURCE_HIERARCHY_LEVEL_UNSPECIFIED', - self::PROJECT => 'PROJECT', - self::ORGANIZATION => 'ORGANIZATION', - self::FOLDER => 'FOLDER', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricDescriptor/MetricKind.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricDescriptor/MetricKind.php deleted file mode 100644 index 0ecbe6b25b09..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricDescriptor/MetricKind.php +++ /dev/null @@ -1,74 +0,0 @@ -google.api.MetricDescriptor.MetricKind - */ -class MetricKind -{ - /** - * Do not use this default value. - * - * Generated from protobuf enum METRIC_KIND_UNSPECIFIED = 0; - */ - const METRIC_KIND_UNSPECIFIED = 0; - /** - * An instantaneous measurement of a value. - * - * Generated from protobuf enum GAUGE = 1; - */ - const GAUGE = 1; - /** - * The change in a value during a time interval. - * - * Generated from protobuf enum DELTA = 2; - */ - const DELTA = 2; - /** - * A value accumulated over a time interval. Cumulative - * measurements in a time series should have the same start time - * and increasing end times, until an event resets the cumulative - * value to zero and sets a new start time for the following - * points. - * - * Generated from protobuf enum CUMULATIVE = 3; - */ - const CUMULATIVE = 3; - - private static $valueToName = [ - self::METRIC_KIND_UNSPECIFIED => 'METRIC_KIND_UNSPECIFIED', - self::GAUGE => 'GAUGE', - self::DELTA => 'DELTA', - self::CUMULATIVE => 'CUMULATIVE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricDescriptor/ValueType.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricDescriptor/ValueType.php deleted file mode 100644 index 80245f5732dd..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricDescriptor/ValueType.php +++ /dev/null @@ -1,91 +0,0 @@ -google.api.MetricDescriptor.ValueType - */ -class ValueType -{ - /** - * Do not use this default value. - * - * Generated from protobuf enum VALUE_TYPE_UNSPECIFIED = 0; - */ - const VALUE_TYPE_UNSPECIFIED = 0; - /** - * The value is a boolean. - * This value type can be used only if the metric kind is `GAUGE`. - * - * Generated from protobuf enum BOOL = 1; - */ - const BOOL = 1; - /** - * The value is a signed 64-bit integer. - * - * Generated from protobuf enum INT64 = 2; - */ - const INT64 = 2; - /** - * The value is a double precision floating point number. - * - * Generated from protobuf enum DOUBLE = 3; - */ - const DOUBLE = 3; - /** - * The value is a text string. - * This value type can be used only if the metric kind is `GAUGE`. - * - * Generated from protobuf enum STRING = 4; - */ - const STRING = 4; - /** - * The value is a [`Distribution`][google.api.Distribution]. - * - * Generated from protobuf enum DISTRIBUTION = 5; - */ - const DISTRIBUTION = 5; - /** - * The value is money. - * - * Generated from protobuf enum MONEY = 6; - */ - const MONEY = 6; - - private static $valueToName = [ - self::VALUE_TYPE_UNSPECIFIED => 'VALUE_TYPE_UNSPECIFIED', - self::BOOL => 'BOOL', - self::INT64 => 'INT64', - self::DOUBLE => 'DOUBLE', - self::STRING => 'STRING', - self::DISTRIBUTION => 'DISTRIBUTION', - self::MONEY => 'MONEY', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricRule.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricRule.php deleted file mode 100644 index c7d4edb4a6ac..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricRule.php +++ /dev/null @@ -1,126 +0,0 @@ -google.api.MetricRule - */ -class MetricRule extends \Google\Protobuf\Internal\Message -{ - /** - * Selects the methods to which this rule applies. - * Refer to [selector][google.api.DocumentationRule.selector] for syntax - * details. - * - * Generated from protobuf field string selector = 1; - */ - protected $selector = ''; - /** - * Metrics to update when the selected methods are called, and the associated - * cost applied to each metric. - * The key of the map is the metric name, and the values are the amount - * increased for the metric against which the quota limits are defined. - * The value must not be negative. - * - * Generated from protobuf field map metric_costs = 2; - */ - private $metric_costs; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $selector - * Selects the methods to which this rule applies. - * Refer to [selector][google.api.DocumentationRule.selector] for syntax - * details. - * @type array|\Google\Protobuf\Internal\MapField $metric_costs - * Metrics to update when the selected methods are called, and the associated - * cost applied to each metric. - * The key of the map is the metric name, and the values are the amount - * increased for the metric against which the quota limits are defined. - * The value must not be negative. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Quota::initOnce(); - parent::__construct($data); - } - - /** - * Selects the methods to which this rule applies. - * Refer to [selector][google.api.DocumentationRule.selector] for syntax - * details. - * - * Generated from protobuf field string selector = 1; - * @return string - */ - public function getSelector() - { - return $this->selector; - } - - /** - * Selects the methods to which this rule applies. - * Refer to [selector][google.api.DocumentationRule.selector] for syntax - * details. - * - * Generated from protobuf field string selector = 1; - * @param string $var - * @return $this - */ - public function setSelector($var) - { - GPBUtil::checkString($var, True); - $this->selector = $var; - - return $this; - } - - /** - * Metrics to update when the selected methods are called, and the associated - * cost applied to each metric. - * The key of the map is the metric name, and the values are the amount - * increased for the metric against which the quota limits are defined. - * The value must not be negative. - * - * Generated from protobuf field map metric_costs = 2; - * @return \Google\Protobuf\Internal\MapField - */ - public function getMetricCosts() - { - return $this->metric_costs; - } - - /** - * Metrics to update when the selected methods are called, and the associated - * cost applied to each metric. - * The key of the map is the metric name, and the values are the amount - * increased for the metric against which the quota limits are defined. - * The value must not be negative. - * - * Generated from protobuf field map metric_costs = 2; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setMetricCosts($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::INT64); - $this->metric_costs = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MonitoredResource.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MonitoredResource.php deleted file mode 100644 index 3fbac39600b6..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MonitoredResource.php +++ /dev/null @@ -1,147 +0,0 @@ -google.api.MonitoredResource - */ -class MonitoredResource extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The monitored resource type. This field must match - * the `type` field of a - * [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor] - * object. For example, the type of a Compute Engine VM instance is - * `gce_instance`. Some descriptors include the service name in the type; for - * example, the type of a Datastream stream is - * `datastream.googleapis.com/Stream`. - * - * Generated from protobuf field string type = 1; - */ - protected $type = ''; - /** - * Required. Values for all of the labels listed in the associated monitored - * resource descriptor. For example, Compute Engine VM instances use the - * labels `"project_id"`, `"instance_id"`, and `"zone"`. - * - * Generated from protobuf field map labels = 2; - */ - private $labels; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $type - * Required. The monitored resource type. This field must match - * the `type` field of a - * [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor] - * object. For example, the type of a Compute Engine VM instance is - * `gce_instance`. Some descriptors include the service name in the type; for - * example, the type of a Datastream stream is - * `datastream.googleapis.com/Stream`. - * @type array|\Google\Protobuf\Internal\MapField $labels - * Required. Values for all of the labels listed in the associated monitored - * resource descriptor. For example, Compute Engine VM instances use the - * labels `"project_id"`, `"instance_id"`, and `"zone"`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\MonitoredResource::initOnce(); - parent::__construct($data); - } - - /** - * Required. The monitored resource type. This field must match - * the `type` field of a - * [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor] - * object. For example, the type of a Compute Engine VM instance is - * `gce_instance`. Some descriptors include the service name in the type; for - * example, the type of a Datastream stream is - * `datastream.googleapis.com/Stream`. - * - * Generated from protobuf field string type = 1; - * @return string - */ - public function getType() - { - return $this->type; - } - - /** - * Required. The monitored resource type. This field must match - * the `type` field of a - * [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor] - * object. For example, the type of a Compute Engine VM instance is - * `gce_instance`. Some descriptors include the service name in the type; for - * example, the type of a Datastream stream is - * `datastream.googleapis.com/Stream`. - * - * Generated from protobuf field string type = 1; - * @param string $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkString($var, True); - $this->type = $var; - - return $this; - } - - /** - * Required. Values for all of the labels listed in the associated monitored - * resource descriptor. For example, Compute Engine VM instances use the - * labels `"project_id"`, `"instance_id"`, and `"zone"`. - * - * Generated from protobuf field map labels = 2; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Required. Values for all of the labels listed in the associated monitored - * resource descriptor. For example, Compute Engine VM instances use the - * labels `"project_id"`, `"instance_id"`, and `"zone"`. - * - * Generated from protobuf field map labels = 2; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MonitoredResourceDescriptor.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MonitoredResourceDescriptor.php deleted file mode 100644 index 744c76dc319a..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MonitoredResourceDescriptor.php +++ /dev/null @@ -1,309 +0,0 @@ -google.api.MonitoredResourceDescriptor - */ -class MonitoredResourceDescriptor extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The resource name of the monitored resource descriptor: - * `"projects/{project_id}/monitoredResourceDescriptors/{type}"` where - * {type} is the value of the `type` field in this object and - * {project_id} is a project ID that provides API-specific context for - * accessing the type. APIs that do not use project information can use the - * resource name format `"monitoredResourceDescriptors/{type}"`. - * - * Generated from protobuf field string name = 5; - */ - protected $name = ''; - /** - * Required. The monitored resource type. For example, the type - * `"cloudsql_database"` represents databases in Google Cloud SQL. - * For a list of types, see [Monitored resource - * types](https://cloud.google.com/monitoring/api/resources) - * and [Logging resource - * types](https://cloud.google.com/logging/docs/api/v2/resource-list). - * - * Generated from protobuf field string type = 1; - */ - protected $type = ''; - /** - * Optional. A concise name for the monitored resource type that might be - * displayed in user interfaces. It should be a Title Cased Noun Phrase, - * without any article or other determiners. For example, - * `"Google Cloud SQL Database"`. - * - * Generated from protobuf field string display_name = 2; - */ - protected $display_name = ''; - /** - * Optional. A detailed description of the monitored resource type that might - * be used in documentation. - * - * Generated from protobuf field string description = 3; - */ - protected $description = ''; - /** - * Required. A set of labels used to describe instances of this monitored - * resource type. For example, an individual Google Cloud SQL database is - * identified by values for the labels `"database_id"` and `"zone"`. - * - * Generated from protobuf field repeated .google.api.LabelDescriptor labels = 4; - */ - private $labels; - /** - * Optional. The launch stage of the monitored resource definition. - * - * Generated from protobuf field .google.api.LaunchStage launch_stage = 7; - */ - protected $launch_stage = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Optional. The resource name of the monitored resource descriptor: - * `"projects/{project_id}/monitoredResourceDescriptors/{type}"` where - * {type} is the value of the `type` field in this object and - * {project_id} is a project ID that provides API-specific context for - * accessing the type. APIs that do not use project information can use the - * resource name format `"monitoredResourceDescriptors/{type}"`. - * @type string $type - * Required. The monitored resource type. For example, the type - * `"cloudsql_database"` represents databases in Google Cloud SQL. - * For a list of types, see [Monitored resource - * types](https://cloud.google.com/monitoring/api/resources) - * and [Logging resource - * types](https://cloud.google.com/logging/docs/api/v2/resource-list). - * @type string $display_name - * Optional. A concise name for the monitored resource type that might be - * displayed in user interfaces. It should be a Title Cased Noun Phrase, - * without any article or other determiners. For example, - * `"Google Cloud SQL Database"`. - * @type string $description - * Optional. A detailed description of the monitored resource type that might - * be used in documentation. - * @type \Google\Api\LabelDescriptor[] $labels - * Required. A set of labels used to describe instances of this monitored - * resource type. For example, an individual Google Cloud SQL database is - * identified by values for the labels `"database_id"` and `"zone"`. - * @type int $launch_stage - * Optional. The launch stage of the monitored resource definition. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\MonitoredResource::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The resource name of the monitored resource descriptor: - * `"projects/{project_id}/monitoredResourceDescriptors/{type}"` where - * {type} is the value of the `type` field in this object and - * {project_id} is a project ID that provides API-specific context for - * accessing the type. APIs that do not use project information can use the - * resource name format `"monitoredResourceDescriptors/{type}"`. - * - * Generated from protobuf field string name = 5; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Optional. The resource name of the monitored resource descriptor: - * `"projects/{project_id}/monitoredResourceDescriptors/{type}"` where - * {type} is the value of the `type` field in this object and - * {project_id} is a project ID that provides API-specific context for - * accessing the type. APIs that do not use project information can use the - * resource name format `"monitoredResourceDescriptors/{type}"`. - * - * Generated from protobuf field string name = 5; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. The monitored resource type. For example, the type - * `"cloudsql_database"` represents databases in Google Cloud SQL. - * For a list of types, see [Monitored resource - * types](https://cloud.google.com/monitoring/api/resources) - * and [Logging resource - * types](https://cloud.google.com/logging/docs/api/v2/resource-list). - * - * Generated from protobuf field string type = 1; - * @return string - */ - public function getType() - { - return $this->type; - } - - /** - * Required. The monitored resource type. For example, the type - * `"cloudsql_database"` represents databases in Google Cloud SQL. - * For a list of types, see [Monitored resource - * types](https://cloud.google.com/monitoring/api/resources) - * and [Logging resource - * types](https://cloud.google.com/logging/docs/api/v2/resource-list). - * - * Generated from protobuf field string type = 1; - * @param string $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkString($var, True); - $this->type = $var; - - return $this; - } - - /** - * Optional. A concise name for the monitored resource type that might be - * displayed in user interfaces. It should be a Title Cased Noun Phrase, - * without any article or other determiners. For example, - * `"Google Cloud SQL Database"`. - * - * Generated from protobuf field string display_name = 2; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Optional. A concise name for the monitored resource type that might be - * displayed in user interfaces. It should be a Title Cased Noun Phrase, - * without any article or other determiners. For example, - * `"Google Cloud SQL Database"`. - * - * Generated from protobuf field string display_name = 2; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Optional. A detailed description of the monitored resource type that might - * be used in documentation. - * - * Generated from protobuf field string description = 3; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. A detailed description of the monitored resource type that might - * be used in documentation. - * - * Generated from protobuf field string description = 3; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Required. A set of labels used to describe instances of this monitored - * resource type. For example, an individual Google Cloud SQL database is - * identified by values for the labels `"database_id"` and `"zone"`. - * - * Generated from protobuf field repeated .google.api.LabelDescriptor labels = 4; - * @return RepeatedField<\Google\Api\LabelDescriptor> - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Required. A set of labels used to describe instances of this monitored - * resource type. For example, an individual Google Cloud SQL database is - * identified by values for the labels `"database_id"` and `"zone"`. - * - * Generated from protobuf field repeated .google.api.LabelDescriptor labels = 4; - * @param \Google\Api\LabelDescriptor[] $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\LabelDescriptor::class); - $this->labels = $arr; - - return $this; - } - - /** - * Optional. The launch stage of the monitored resource definition. - * - * Generated from protobuf field .google.api.LaunchStage launch_stage = 7; - * @return int - */ - public function getLaunchStage() - { - return $this->launch_stage; - } - - /** - * Optional. The launch stage of the monitored resource definition. - * - * Generated from protobuf field .google.api.LaunchStage launch_stage = 7; - * @param int $var - * @return $this - */ - public function setLaunchStage($var) - { - GPBUtil::checkEnum($var, \Google\Api\LaunchStage::class); - $this->launch_stage = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MonitoredResourceMetadata.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MonitoredResourceMetadata.php deleted file mode 100644 index 842702ed5686..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MonitoredResourceMetadata.php +++ /dev/null @@ -1,148 +0,0 @@ -google.api.MonitoredResourceMetadata - */ -class MonitoredResourceMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Values for predefined system metadata labels. - * System labels are a kind of metadata extracted by Google, including - * "machine_image", "vpc", "subnet_id", - * "security_group", "name", etc. - * System label values can be only strings, Boolean values, or a list of - * strings. For example: - * { "name": "my-test-instance", - * "security_group": ["a", "b", "c"], - * "spot_instance": false } - * - * Generated from protobuf field .google.protobuf.Struct system_labels = 1; - */ - protected $system_labels = null; - /** - * Output only. A map of user-defined metadata labels. - * - * Generated from protobuf field map user_labels = 2; - */ - private $user_labels; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Struct $system_labels - * Output only. Values for predefined system metadata labels. - * System labels are a kind of metadata extracted by Google, including - * "machine_image", "vpc", "subnet_id", - * "security_group", "name", etc. - * System label values can be only strings, Boolean values, or a list of - * strings. For example: - * { "name": "my-test-instance", - * "security_group": ["a", "b", "c"], - * "spot_instance": false } - * @type array|\Google\Protobuf\Internal\MapField $user_labels - * Output only. A map of user-defined metadata labels. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\MonitoredResource::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Values for predefined system metadata labels. - * System labels are a kind of metadata extracted by Google, including - * "machine_image", "vpc", "subnet_id", - * "security_group", "name", etc. - * System label values can be only strings, Boolean values, or a list of - * strings. For example: - * { "name": "my-test-instance", - * "security_group": ["a", "b", "c"], - * "spot_instance": false } - * - * Generated from protobuf field .google.protobuf.Struct system_labels = 1; - * @return \Google\Protobuf\Struct|null - */ - public function getSystemLabels() - { - return $this->system_labels; - } - - public function hasSystemLabels() - { - return isset($this->system_labels); - } - - public function clearSystemLabels() - { - unset($this->system_labels); - } - - /** - * Output only. Values for predefined system metadata labels. - * System labels are a kind of metadata extracted by Google, including - * "machine_image", "vpc", "subnet_id", - * "security_group", "name", etc. - * System label values can be only strings, Boolean values, or a list of - * strings. For example: - * { "name": "my-test-instance", - * "security_group": ["a", "b", "c"], - * "spot_instance": false } - * - * Generated from protobuf field .google.protobuf.Struct system_labels = 1; - * @param \Google\Protobuf\Struct $var - * @return $this - */ - public function setSystemLabels($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Struct::class); - $this->system_labels = $var; - - return $this; - } - - /** - * Output only. A map of user-defined metadata labels. - * - * Generated from protobuf field map user_labels = 2; - * @return \Google\Protobuf\Internal\MapField - */ - public function getUserLabels() - { - return $this->user_labels; - } - - /** - * Output only. A map of user-defined metadata labels. - * - * Generated from protobuf field map user_labels = 2; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setUserLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->user_labels = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Monitoring.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Monitoring.php deleted file mode 100644 index 422ae2886eaa..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Monitoring.php +++ /dev/null @@ -1,190 +0,0 @@ -google.api.Monitoring - */ -class Monitoring extends \Google\Protobuf\Internal\Message -{ - /** - * Monitoring configurations for sending metrics to the producer project. - * There can be multiple producer destinations. A monitored resource type may - * appear in multiple monitoring destinations if different aggregations are - * needed for different sets of metrics associated with that monitored - * resource type. A monitored resource and metric pair may only be used once - * in the Monitoring configuration. - * - * Generated from protobuf field repeated .google.api.Monitoring.MonitoringDestination producer_destinations = 1; - */ - private $producer_destinations; - /** - * Monitoring configurations for sending metrics to the consumer project. - * There can be multiple consumer destinations. A monitored resource type may - * appear in multiple monitoring destinations if different aggregations are - * needed for different sets of metrics associated with that monitored - * resource type. A monitored resource and metric pair may only be used once - * in the Monitoring configuration. - * - * Generated from protobuf field repeated .google.api.Monitoring.MonitoringDestination consumer_destinations = 2; - */ - private $consumer_destinations; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Api\Monitoring\MonitoringDestination[] $producer_destinations - * Monitoring configurations for sending metrics to the producer project. - * There can be multiple producer destinations. A monitored resource type may - * appear in multiple monitoring destinations if different aggregations are - * needed for different sets of metrics associated with that monitored - * resource type. A monitored resource and metric pair may only be used once - * in the Monitoring configuration. - * @type \Google\Api\Monitoring\MonitoringDestination[] $consumer_destinations - * Monitoring configurations for sending metrics to the consumer project. - * There can be multiple consumer destinations. A monitored resource type may - * appear in multiple monitoring destinations if different aggregations are - * needed for different sets of metrics associated with that monitored - * resource type. A monitored resource and metric pair may only be used once - * in the Monitoring configuration. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Monitoring::initOnce(); - parent::__construct($data); - } - - /** - * Monitoring configurations for sending metrics to the producer project. - * There can be multiple producer destinations. A monitored resource type may - * appear in multiple monitoring destinations if different aggregations are - * needed for different sets of metrics associated with that monitored - * resource type. A monitored resource and metric pair may only be used once - * in the Monitoring configuration. - * - * Generated from protobuf field repeated .google.api.Monitoring.MonitoringDestination producer_destinations = 1; - * @return RepeatedField<\Google\Api\Monitoring\MonitoringDestination> - */ - public function getProducerDestinations() - { - return $this->producer_destinations; - } - - /** - * Monitoring configurations for sending metrics to the producer project. - * There can be multiple producer destinations. A monitored resource type may - * appear in multiple monitoring destinations if different aggregations are - * needed for different sets of metrics associated with that monitored - * resource type. A monitored resource and metric pair may only be used once - * in the Monitoring configuration. - * - * Generated from protobuf field repeated .google.api.Monitoring.MonitoringDestination producer_destinations = 1; - * @param \Google\Api\Monitoring\MonitoringDestination[] $var - * @return $this - */ - public function setProducerDestinations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\Monitoring\MonitoringDestination::class); - $this->producer_destinations = $arr; - - return $this; - } - - /** - * Monitoring configurations for sending metrics to the consumer project. - * There can be multiple consumer destinations. A monitored resource type may - * appear in multiple monitoring destinations if different aggregations are - * needed for different sets of metrics associated with that monitored - * resource type. A monitored resource and metric pair may only be used once - * in the Monitoring configuration. - * - * Generated from protobuf field repeated .google.api.Monitoring.MonitoringDestination consumer_destinations = 2; - * @return RepeatedField<\Google\Api\Monitoring\MonitoringDestination> - */ - public function getConsumerDestinations() - { - return $this->consumer_destinations; - } - - /** - * Monitoring configurations for sending metrics to the consumer project. - * There can be multiple consumer destinations. A monitored resource type may - * appear in multiple monitoring destinations if different aggregations are - * needed for different sets of metrics associated with that monitored - * resource type. A monitored resource and metric pair may only be used once - * in the Monitoring configuration. - * - * Generated from protobuf field repeated .google.api.Monitoring.MonitoringDestination consumer_destinations = 2; - * @param \Google\Api\Monitoring\MonitoringDestination[] $var - * @return $this - */ - public function setConsumerDestinations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\Monitoring\MonitoringDestination::class); - $this->consumer_destinations = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Monitoring/MonitoringDestination.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Monitoring/MonitoringDestination.php deleted file mode 100644 index 94576a1acbf7..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Monitoring/MonitoringDestination.php +++ /dev/null @@ -1,118 +0,0 @@ -google.api.Monitoring.MonitoringDestination - */ -class MonitoringDestination extends \Google\Protobuf\Internal\Message -{ - /** - * The monitored resource type. The type must be defined in - * [Service.monitored_resources][google.api.Service.monitored_resources] - * section. - * - * Generated from protobuf field string monitored_resource = 1; - */ - protected $monitored_resource = ''; - /** - * Types of the metrics to report to this monitoring destination. - * Each type must be defined in - * [Service.metrics][google.api.Service.metrics] section. - * - * Generated from protobuf field repeated string metrics = 2; - */ - private $metrics; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $monitored_resource - * The monitored resource type. The type must be defined in - * [Service.monitored_resources][google.api.Service.monitored_resources] - * section. - * @type string[] $metrics - * Types of the metrics to report to this monitoring destination. - * Each type must be defined in - * [Service.metrics][google.api.Service.metrics] section. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Monitoring::initOnce(); - parent::__construct($data); - } - - /** - * The monitored resource type. The type must be defined in - * [Service.monitored_resources][google.api.Service.monitored_resources] - * section. - * - * Generated from protobuf field string monitored_resource = 1; - * @return string - */ - public function getMonitoredResource() - { - return $this->monitored_resource; - } - - /** - * The monitored resource type. The type must be defined in - * [Service.monitored_resources][google.api.Service.monitored_resources] - * section. - * - * Generated from protobuf field string monitored_resource = 1; - * @param string $var - * @return $this - */ - public function setMonitoredResource($var) - { - GPBUtil::checkString($var, True); - $this->monitored_resource = $var; - - return $this; - } - - /** - * Types of the metrics to report to this monitoring destination. - * Each type must be defined in - * [Service.metrics][google.api.Service.metrics] section. - * - * Generated from protobuf field repeated string metrics = 2; - * @return RepeatedField - */ - public function getMetrics() - { - return $this->metrics; - } - - /** - * Types of the metrics to report to this monitoring destination. - * Each type must be defined in - * [Service.metrics][google.api.Service.metrics] section. - * - * Generated from protobuf field repeated string metrics = 2; - * @param string[] $var - * @return $this - */ - public function setMetrics($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->metrics = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/NodeSettings.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/NodeSettings.php deleted file mode 100644 index 3041432c49ee..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/NodeSettings.php +++ /dev/null @@ -1,77 +0,0 @@ -google.api.NodeSettings - */ -class NodeSettings extends \Google\Protobuf\Internal\Message -{ - /** - * Some settings. - * - * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; - */ - protected $common = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Api\CommonLanguageSettings $common - * Some settings. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Client::initOnce(); - parent::__construct($data); - } - - /** - * Some settings. - * - * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; - * @return \Google\Api\CommonLanguageSettings|null - */ - public function getCommon() - { - return $this->common; - } - - public function hasCommon() - { - return isset($this->common); - } - - public function clearCommon() - { - unset($this->common); - } - - /** - * Some settings. - * - * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; - * @param \Google\Api\CommonLanguageSettings $var - * @return $this - */ - public function setCommon($var) - { - GPBUtil::checkMessage($var, \Google\Api\CommonLanguageSettings::class); - $this->common = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/OAuthRequirements.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/OAuthRequirements.php deleted file mode 100644 index 9ad55336d154..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/OAuthRequirements.php +++ /dev/null @@ -1,96 +0,0 @@ -google.api.OAuthRequirements - */ -class OAuthRequirements extends \Google\Protobuf\Internal\Message -{ - /** - * The list of publicly documented OAuth scopes that are allowed access. An - * OAuth token containing any of these scopes will be accepted. - * Example: - * canonical_scopes: https://www.googleapis.com/auth/calendar, - * https://www.googleapis.com/auth/calendar.read - * - * Generated from protobuf field string canonical_scopes = 1; - */ - protected $canonical_scopes = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $canonical_scopes - * The list of publicly documented OAuth scopes that are allowed access. An - * OAuth token containing any of these scopes will be accepted. - * Example: - * canonical_scopes: https://www.googleapis.com/auth/calendar, - * https://www.googleapis.com/auth/calendar.read - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Auth::initOnce(); - parent::__construct($data); - } - - /** - * The list of publicly documented OAuth scopes that are allowed access. An - * OAuth token containing any of these scopes will be accepted. - * Example: - * canonical_scopes: https://www.googleapis.com/auth/calendar, - * https://www.googleapis.com/auth/calendar.read - * - * Generated from protobuf field string canonical_scopes = 1; - * @return string - */ - public function getCanonicalScopes() - { - return $this->canonical_scopes; - } - - /** - * The list of publicly documented OAuth scopes that are allowed access. An - * OAuth token containing any of these scopes will be accepted. - * Example: - * canonical_scopes: https://www.googleapis.com/auth/calendar, - * https://www.googleapis.com/auth/calendar.read - * - * Generated from protobuf field string canonical_scopes = 1; - * @param string $var - * @return $this - */ - public function setCanonicalScopes($var) - { - GPBUtil::checkString($var, True); - $this->canonical_scopes = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Page.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Page.php deleted file mode 100644 index f172d0cbc038..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Page.php +++ /dev/null @@ -1,200 +0,0 @@ -google.api.Page - */ -class Page extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the page. It will be used as an identity of the page to - * generate URI of the page, text of the link to this page in navigation, - * etc. The full page name (start from the root page name to this page - * concatenated with `.`) can be used as reference to the page in your - * documentation. For example: - *
pages:
-     * - name: Tutorial
-     *   content: (== include tutorial.md ==)
-     *   subpages:
-     *   - name: Java
-     *     content: (== include tutorial_java.md ==)
-     * 
- * You can reference `Java` page using Markdown reference link syntax: - * `[Java][Tutorial.Java]`. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * The Markdown content of the page. You can use ```(== include {path} - * ==)``` to include content from a Markdown file. The content can be used - * to produce the documentation page such as HTML format page. - * - * Generated from protobuf field string content = 2; - */ - protected $content = ''; - /** - * Subpages of this page. The order of subpages specified here will be - * honored in the generated docset. - * - * Generated from protobuf field repeated .google.api.Page subpages = 3; - */ - private $subpages; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The name of the page. It will be used as an identity of the page to - * generate URI of the page, text of the link to this page in navigation, - * etc. The full page name (start from the root page name to this page - * concatenated with `.`) can be used as reference to the page in your - * documentation. For example: - *
pages:
-     *           - name: Tutorial
-     *             content: (== include tutorial.md ==)
-     *             subpages:
-     *             - name: Java
-     *               content: (== include tutorial_java.md ==)
-     *           
- * You can reference `Java` page using Markdown reference link syntax: - * `[Java][Tutorial.Java]`. - * @type string $content - * The Markdown content of the page. You can use ```(== include {path} - * ==)``` to include content from a Markdown file. The content can be used - * to produce the documentation page such as HTML format page. - * @type \Google\Api\Page[] $subpages - * Subpages of this page. The order of subpages specified here will be - * honored in the generated docset. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Documentation::initOnce(); - parent::__construct($data); - } - - /** - * The name of the page. It will be used as an identity of the page to - * generate URI of the page, text of the link to this page in navigation, - * etc. The full page name (start from the root page name to this page - * concatenated with `.`) can be used as reference to the page in your - * documentation. For example: - *
pages:
-     * - name: Tutorial
-     *   content: (== include tutorial.md ==)
-     *   subpages:
-     *   - name: Java
-     *     content: (== include tutorial_java.md ==)
-     * 
- * You can reference `Java` page using Markdown reference link syntax: - * `[Java][Tutorial.Java]`. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name of the page. It will be used as an identity of the page to - * generate URI of the page, text of the link to this page in navigation, - * etc. The full page name (start from the root page name to this page - * concatenated with `.`) can be used as reference to the page in your - * documentation. For example: - *
pages:
-     * - name: Tutorial
-     *   content: (== include tutorial.md ==)
-     *   subpages:
-     *   - name: Java
-     *     content: (== include tutorial_java.md ==)
-     * 
- * You can reference `Java` page using Markdown reference link syntax: - * `[Java][Tutorial.Java]`. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The Markdown content of the page. You can use ```(== include {path} - * ==)``` to include content from a Markdown file. The content can be used - * to produce the documentation page such as HTML format page. - * - * Generated from protobuf field string content = 2; - * @return string - */ - public function getContent() - { - return $this->content; - } - - /** - * The Markdown content of the page. You can use ```(== include {path} - * ==)``` to include content from a Markdown file. The content can be used - * to produce the documentation page such as HTML format page. - * - * Generated from protobuf field string content = 2; - * @param string $var - * @return $this - */ - public function setContent($var) - { - GPBUtil::checkString($var, True); - $this->content = $var; - - return $this; - } - - /** - * Subpages of this page. The order of subpages specified here will be - * honored in the generated docset. - * - * Generated from protobuf field repeated .google.api.Page subpages = 3; - * @return RepeatedField<\Google\Api\Page> - */ - public function getSubpages() - { - return $this->subpages; - } - - /** - * Subpages of this page. The order of subpages specified here will be - * honored in the generated docset. - * - * Generated from protobuf field repeated .google.api.Page subpages = 3; - * @param \Google\Api\Page[] $var - * @return $this - */ - public function setSubpages($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\Page::class); - $this->subpages = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/PhpSettings.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/PhpSettings.php deleted file mode 100644 index 38cbabd68afb..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/PhpSettings.php +++ /dev/null @@ -1,147 +0,0 @@ -google.api.PhpSettings - */ -class PhpSettings extends \Google\Protobuf\Internal\Message -{ - /** - * Some settings. - * - * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; - */ - protected $common = null; - /** - * The package name to use in Php. Clobbers the php_namespace option - * set in the protobuf. This should be used **only** by APIs - * who have already set the language_settings.php.package_name" field - * in gapic.yaml. API teams should use the protobuf php_namespace option - * where possible. - * Example of a YAML configuration:: - * publishing: - * library_settings: - * php_settings: - * library_package: Google\Cloud\PubSub\V1 - * - * Generated from protobuf field string library_package = 2; - */ - protected $library_package = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Api\CommonLanguageSettings $common - * Some settings. - * @type string $library_package - * The package name to use in Php. Clobbers the php_namespace option - * set in the protobuf. This should be used **only** by APIs - * who have already set the language_settings.php.package_name" field - * in gapic.yaml. API teams should use the protobuf php_namespace option - * where possible. - * Example of a YAML configuration:: - * publishing: - * library_settings: - * php_settings: - * library_package: Google\Cloud\PubSub\V1 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Client::initOnce(); - parent::__construct($data); - } - - /** - * Some settings. - * - * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; - * @return \Google\Api\CommonLanguageSettings|null - */ - public function getCommon() - { - return $this->common; - } - - public function hasCommon() - { - return isset($this->common); - } - - public function clearCommon() - { - unset($this->common); - } - - /** - * Some settings. - * - * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; - * @param \Google\Api\CommonLanguageSettings $var - * @return $this - */ - public function setCommon($var) - { - GPBUtil::checkMessage($var, \Google\Api\CommonLanguageSettings::class); - $this->common = $var; - - return $this; - } - - /** - * The package name to use in Php. Clobbers the php_namespace option - * set in the protobuf. This should be used **only** by APIs - * who have already set the language_settings.php.package_name" field - * in gapic.yaml. API teams should use the protobuf php_namespace option - * where possible. - * Example of a YAML configuration:: - * publishing: - * library_settings: - * php_settings: - * library_package: Google\Cloud\PubSub\V1 - * - * Generated from protobuf field string library_package = 2; - * @return string - */ - public function getLibraryPackage() - { - return $this->library_package; - } - - /** - * The package name to use in Php. Clobbers the php_namespace option - * set in the protobuf. This should be used **only** by APIs - * who have already set the language_settings.php.package_name" field - * in gapic.yaml. API teams should use the protobuf php_namespace option - * where possible. - * Example of a YAML configuration:: - * publishing: - * library_settings: - * php_settings: - * library_package: Google\Cloud\PubSub\V1 - * - * Generated from protobuf field string library_package = 2; - * @param string $var - * @return $this - */ - public function setLibraryPackage($var) - { - GPBUtil::checkString($var, True); - $this->library_package = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ProjectProperties.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ProjectProperties.php deleted file mode 100644 index 7ffeb2f5fc6b..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ProjectProperties.php +++ /dev/null @@ -1,80 +0,0 @@ -google.api.ProjectProperties - */ -class ProjectProperties extends \Google\Protobuf\Internal\Message -{ - /** - * List of per consumer project-specific properties. - * - * Generated from protobuf field repeated .google.api.Property properties = 1; - */ - private $properties; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Api\Property[] $properties - * List of per consumer project-specific properties. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Consumer::initOnce(); - parent::__construct($data); - } - - /** - * List of per consumer project-specific properties. - * - * Generated from protobuf field repeated .google.api.Property properties = 1; - * @return RepeatedField<\Google\Api\Property> - */ - public function getProperties() - { - return $this->properties; - } - - /** - * List of per consumer project-specific properties. - * - * Generated from protobuf field repeated .google.api.Property properties = 1; - * @param \Google\Api\Property[] $var - * @return $this - */ - public function setProperties($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\Property::class); - $this->properties = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Property.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Property.php deleted file mode 100644 index 18830cc2055e..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Property.php +++ /dev/null @@ -1,142 +0,0 @@ -google.api.Property - */ -class Property extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the property (a.k.a key). - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * The type of this property. - * - * Generated from protobuf field .google.api.Property.PropertyType type = 2; - */ - protected $type = 0; - /** - * The description of the property - * - * Generated from protobuf field string description = 3; - */ - protected $description = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The name of the property (a.k.a key). - * @type int $type - * The type of this property. - * @type string $description - * The description of the property - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Consumer::initOnce(); - parent::__construct($data); - } - - /** - * The name of the property (a.k.a key). - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name of the property (a.k.a key). - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The type of this property. - * - * Generated from protobuf field .google.api.Property.PropertyType type = 2; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * The type of this property. - * - * Generated from protobuf field .google.api.Property.PropertyType type = 2; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Api\Property\PropertyType::class); - $this->type = $var; - - return $this; - } - - /** - * The description of the property - * - * Generated from protobuf field string description = 3; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * The description of the property - * - * Generated from protobuf field string description = 3; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Property/PropertyType.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Property/PropertyType.php deleted file mode 100644 index e874e029a65c..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Property/PropertyType.php +++ /dev/null @@ -1,75 +0,0 @@ -google.api.Property.PropertyType - */ -class PropertyType -{ - /** - * The type is unspecified, and will result in an error. - * - * Generated from protobuf enum UNSPECIFIED = 0; - */ - const UNSPECIFIED = 0; - /** - * The type is `int64`. - * - * Generated from protobuf enum INT64 = 1; - */ - const INT64 = 1; - /** - * The type is `bool`. - * - * Generated from protobuf enum BOOL = 2; - */ - const BOOL = 2; - /** - * The type is `string`. - * - * Generated from protobuf enum STRING = 3; - */ - const STRING = 3; - /** - * The type is 'double'. - * - * Generated from protobuf enum DOUBLE = 4; - */ - const DOUBLE = 4; - - private static $valueToName = [ - self::UNSPECIFIED => 'UNSPECIFIED', - self::INT64 => 'INT64', - self::BOOL => 'BOOL', - self::STRING => 'STRING', - self::DOUBLE => 'DOUBLE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Publishing.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Publishing.php deleted file mode 100644 index 74c394bb061b..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Publishing.php +++ /dev/null @@ -1,453 +0,0 @@ -google.api.Publishing - */ -class Publishing extends \Google\Protobuf\Internal\Message -{ - /** - * A list of API method settings, e.g. the behavior for methods that use the - * long-running operation pattern. - * - * Generated from protobuf field repeated .google.api.MethodSettings method_settings = 2; - */ - private $method_settings; - /** - * Link to a *public* URI where users can report issues. Example: - * https://issuetracker.google.com/issues/new?component=190865&template=1161103 - * - * Generated from protobuf field string new_issue_uri = 101; - */ - protected $new_issue_uri = ''; - /** - * Link to product home page. Example: - * https://cloud.google.com/asset-inventory/docs/overview - * - * Generated from protobuf field string documentation_uri = 102; - */ - protected $documentation_uri = ''; - /** - * Used as a tracking tag when collecting data about the APIs developer - * relations artifacts like docs, packages delivered to package managers, - * etc. Example: "speech". - * - * Generated from protobuf field string api_short_name = 103; - */ - protected $api_short_name = ''; - /** - * GitHub label to apply to issues and pull requests opened for this API. - * - * Generated from protobuf field string github_label = 104; - */ - protected $github_label = ''; - /** - * GitHub teams to be added to CODEOWNERS in the directory in GitHub - * containing source code for the client libraries for this API. - * - * Generated from protobuf field repeated string codeowner_github_teams = 105; - */ - private $codeowner_github_teams; - /** - * A prefix used in sample code when demarking regions to be included in - * documentation. - * - * Generated from protobuf field string doc_tag_prefix = 106; - */ - protected $doc_tag_prefix = ''; - /** - * For whom the client library is being published. - * - * Generated from protobuf field .google.api.ClientLibraryOrganization organization = 107; - */ - protected $organization = 0; - /** - * Client library settings. If the same version string appears multiple - * times in this list, then the last one wins. Settings from earlier - * settings with the same version string are discarded. - * - * Generated from protobuf field repeated .google.api.ClientLibrarySettings library_settings = 109; - */ - private $library_settings; - /** - * Optional link to proto reference documentation. Example: - * https://cloud.google.com/pubsub/lite/docs/reference/rpc - * - * Generated from protobuf field string proto_reference_documentation_uri = 110; - */ - protected $proto_reference_documentation_uri = ''; - /** - * Optional link to REST reference documentation. Example: - * https://cloud.google.com/pubsub/lite/docs/reference/rest - * - * Generated from protobuf field string rest_reference_documentation_uri = 111; - */ - protected $rest_reference_documentation_uri = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Api\MethodSettings[] $method_settings - * A list of API method settings, e.g. the behavior for methods that use the - * long-running operation pattern. - * @type string $new_issue_uri - * Link to a *public* URI where users can report issues. Example: - * https://issuetracker.google.com/issues/new?component=190865&template=1161103 - * @type string $documentation_uri - * Link to product home page. Example: - * https://cloud.google.com/asset-inventory/docs/overview - * @type string $api_short_name - * Used as a tracking tag when collecting data about the APIs developer - * relations artifacts like docs, packages delivered to package managers, - * etc. Example: "speech". - * @type string $github_label - * GitHub label to apply to issues and pull requests opened for this API. - * @type string[] $codeowner_github_teams - * GitHub teams to be added to CODEOWNERS in the directory in GitHub - * containing source code for the client libraries for this API. - * @type string $doc_tag_prefix - * A prefix used in sample code when demarking regions to be included in - * documentation. - * @type int $organization - * For whom the client library is being published. - * @type \Google\Api\ClientLibrarySettings[] $library_settings - * Client library settings. If the same version string appears multiple - * times in this list, then the last one wins. Settings from earlier - * settings with the same version string are discarded. - * @type string $proto_reference_documentation_uri - * Optional link to proto reference documentation. Example: - * https://cloud.google.com/pubsub/lite/docs/reference/rpc - * @type string $rest_reference_documentation_uri - * Optional link to REST reference documentation. Example: - * https://cloud.google.com/pubsub/lite/docs/reference/rest - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Client::initOnce(); - parent::__construct($data); - } - - /** - * A list of API method settings, e.g. the behavior for methods that use the - * long-running operation pattern. - * - * Generated from protobuf field repeated .google.api.MethodSettings method_settings = 2; - * @return RepeatedField<\Google\Api\MethodSettings> - */ - public function getMethodSettings() - { - return $this->method_settings; - } - - /** - * A list of API method settings, e.g. the behavior for methods that use the - * long-running operation pattern. - * - * Generated from protobuf field repeated .google.api.MethodSettings method_settings = 2; - * @param \Google\Api\MethodSettings[] $var - * @return $this - */ - public function setMethodSettings($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\MethodSettings::class); - $this->method_settings = $arr; - - return $this; - } - - /** - * Link to a *public* URI where users can report issues. Example: - * https://issuetracker.google.com/issues/new?component=190865&template=1161103 - * - * Generated from protobuf field string new_issue_uri = 101; - * @return string - */ - public function getNewIssueUri() - { - return $this->new_issue_uri; - } - - /** - * Link to a *public* URI where users can report issues. Example: - * https://issuetracker.google.com/issues/new?component=190865&template=1161103 - * - * Generated from protobuf field string new_issue_uri = 101; - * @param string $var - * @return $this - */ - public function setNewIssueUri($var) - { - GPBUtil::checkString($var, True); - $this->new_issue_uri = $var; - - return $this; - } - - /** - * Link to product home page. Example: - * https://cloud.google.com/asset-inventory/docs/overview - * - * Generated from protobuf field string documentation_uri = 102; - * @return string - */ - public function getDocumentationUri() - { - return $this->documentation_uri; - } - - /** - * Link to product home page. Example: - * https://cloud.google.com/asset-inventory/docs/overview - * - * Generated from protobuf field string documentation_uri = 102; - * @param string $var - * @return $this - */ - public function setDocumentationUri($var) - { - GPBUtil::checkString($var, True); - $this->documentation_uri = $var; - - return $this; - } - - /** - * Used as a tracking tag when collecting data about the APIs developer - * relations artifacts like docs, packages delivered to package managers, - * etc. Example: "speech". - * - * Generated from protobuf field string api_short_name = 103; - * @return string - */ - public function getApiShortName() - { - return $this->api_short_name; - } - - /** - * Used as a tracking tag when collecting data about the APIs developer - * relations artifacts like docs, packages delivered to package managers, - * etc. Example: "speech". - * - * Generated from protobuf field string api_short_name = 103; - * @param string $var - * @return $this - */ - public function setApiShortName($var) - { - GPBUtil::checkString($var, True); - $this->api_short_name = $var; - - return $this; - } - - /** - * GitHub label to apply to issues and pull requests opened for this API. - * - * Generated from protobuf field string github_label = 104; - * @return string - */ - public function getGithubLabel() - { - return $this->github_label; - } - - /** - * GitHub label to apply to issues and pull requests opened for this API. - * - * Generated from protobuf field string github_label = 104; - * @param string $var - * @return $this - */ - public function setGithubLabel($var) - { - GPBUtil::checkString($var, True); - $this->github_label = $var; - - return $this; - } - - /** - * GitHub teams to be added to CODEOWNERS in the directory in GitHub - * containing source code for the client libraries for this API. - * - * Generated from protobuf field repeated string codeowner_github_teams = 105; - * @return RepeatedField - */ - public function getCodeownerGithubTeams() - { - return $this->codeowner_github_teams; - } - - /** - * GitHub teams to be added to CODEOWNERS in the directory in GitHub - * containing source code for the client libraries for this API. - * - * Generated from protobuf field repeated string codeowner_github_teams = 105; - * @param string[] $var - * @return $this - */ - public function setCodeownerGithubTeams($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->codeowner_github_teams = $arr; - - return $this; - } - - /** - * A prefix used in sample code when demarking regions to be included in - * documentation. - * - * Generated from protobuf field string doc_tag_prefix = 106; - * @return string - */ - public function getDocTagPrefix() - { - return $this->doc_tag_prefix; - } - - /** - * A prefix used in sample code when demarking regions to be included in - * documentation. - * - * Generated from protobuf field string doc_tag_prefix = 106; - * @param string $var - * @return $this - */ - public function setDocTagPrefix($var) - { - GPBUtil::checkString($var, True); - $this->doc_tag_prefix = $var; - - return $this; - } - - /** - * For whom the client library is being published. - * - * Generated from protobuf field .google.api.ClientLibraryOrganization organization = 107; - * @return int - */ - public function getOrganization() - { - return $this->organization; - } - - /** - * For whom the client library is being published. - * - * Generated from protobuf field .google.api.ClientLibraryOrganization organization = 107; - * @param int $var - * @return $this - */ - public function setOrganization($var) - { - GPBUtil::checkEnum($var, \Google\Api\ClientLibraryOrganization::class); - $this->organization = $var; - - return $this; - } - - /** - * Client library settings. If the same version string appears multiple - * times in this list, then the last one wins. Settings from earlier - * settings with the same version string are discarded. - * - * Generated from protobuf field repeated .google.api.ClientLibrarySettings library_settings = 109; - * @return RepeatedField<\Google\Api\ClientLibrarySettings> - */ - public function getLibrarySettings() - { - return $this->library_settings; - } - - /** - * Client library settings. If the same version string appears multiple - * times in this list, then the last one wins. Settings from earlier - * settings with the same version string are discarded. - * - * Generated from protobuf field repeated .google.api.ClientLibrarySettings library_settings = 109; - * @param \Google\Api\ClientLibrarySettings[] $var - * @return $this - */ - public function setLibrarySettings($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\ClientLibrarySettings::class); - $this->library_settings = $arr; - - return $this; - } - - /** - * Optional link to proto reference documentation. Example: - * https://cloud.google.com/pubsub/lite/docs/reference/rpc - * - * Generated from protobuf field string proto_reference_documentation_uri = 110; - * @return string - */ - public function getProtoReferenceDocumentationUri() - { - return $this->proto_reference_documentation_uri; - } - - /** - * Optional link to proto reference documentation. Example: - * https://cloud.google.com/pubsub/lite/docs/reference/rpc - * - * Generated from protobuf field string proto_reference_documentation_uri = 110; - * @param string $var - * @return $this - */ - public function setProtoReferenceDocumentationUri($var) - { - GPBUtil::checkString($var, True); - $this->proto_reference_documentation_uri = $var; - - return $this; - } - - /** - * Optional link to REST reference documentation. Example: - * https://cloud.google.com/pubsub/lite/docs/reference/rest - * - * Generated from protobuf field string rest_reference_documentation_uri = 111; - * @return string - */ - public function getRestReferenceDocumentationUri() - { - return $this->rest_reference_documentation_uri; - } - - /** - * Optional link to REST reference documentation. Example: - * https://cloud.google.com/pubsub/lite/docs/reference/rest - * - * Generated from protobuf field string rest_reference_documentation_uri = 111; - * @param string $var - * @return $this - */ - public function setRestReferenceDocumentationUri($var) - { - GPBUtil::checkString($var, True); - $this->rest_reference_documentation_uri = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/PythonSettings.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/PythonSettings.php deleted file mode 100644 index 66bd27f0fbfa..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/PythonSettings.php +++ /dev/null @@ -1,121 +0,0 @@ -google.api.PythonSettings - */ -class PythonSettings extends \Google\Protobuf\Internal\Message -{ - /** - * Some settings. - * - * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; - */ - protected $common = null; - /** - * Experimental features to be included during client library generation. - * - * Generated from protobuf field .google.api.PythonSettings.ExperimentalFeatures experimental_features = 2; - */ - protected $experimental_features = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Api\CommonLanguageSettings $common - * Some settings. - * @type \Google\Api\PythonSettings\ExperimentalFeatures $experimental_features - * Experimental features to be included during client library generation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Client::initOnce(); - parent::__construct($data); - } - - /** - * Some settings. - * - * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; - * @return \Google\Api\CommonLanguageSettings|null - */ - public function getCommon() - { - return $this->common; - } - - public function hasCommon() - { - return isset($this->common); - } - - public function clearCommon() - { - unset($this->common); - } - - /** - * Some settings. - * - * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; - * @param \Google\Api\CommonLanguageSettings $var - * @return $this - */ - public function setCommon($var) - { - GPBUtil::checkMessage($var, \Google\Api\CommonLanguageSettings::class); - $this->common = $var; - - return $this; - } - - /** - * Experimental features to be included during client library generation. - * - * Generated from protobuf field .google.api.PythonSettings.ExperimentalFeatures experimental_features = 2; - * @return \Google\Api\PythonSettings\ExperimentalFeatures|null - */ - public function getExperimentalFeatures() - { - return $this->experimental_features; - } - - public function hasExperimentalFeatures() - { - return isset($this->experimental_features); - } - - public function clearExperimentalFeatures() - { - unset($this->experimental_features); - } - - /** - * Experimental features to be included during client library generation. - * - * Generated from protobuf field .google.api.PythonSettings.ExperimentalFeatures experimental_features = 2; - * @param \Google\Api\PythonSettings\ExperimentalFeatures $var - * @return $this - */ - public function setExperimentalFeatures($var) - { - GPBUtil::checkMessage($var, \Google\Api\PythonSettings\ExperimentalFeatures::class); - $this->experimental_features = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/PythonSettings/ExperimentalFeatures.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/PythonSettings/ExperimentalFeatures.php deleted file mode 100644 index a1230aea0cb9..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/PythonSettings/ExperimentalFeatures.php +++ /dev/null @@ -1,173 +0,0 @@ -google.api.PythonSettings.ExperimentalFeatures - */ -class ExperimentalFeatures extends \Google\Protobuf\Internal\Message -{ - /** - * Enables generation of asynchronous REST clients if `rest` transport is - * enabled. By default, asynchronous REST clients will not be generated. - * This feature will be enabled by default 1 month after launching the - * feature in preview packages. - * - * Generated from protobuf field bool rest_async_io_enabled = 1; - */ - protected $rest_async_io_enabled = false; - /** - * Enables generation of protobuf code using new types that are more - * Pythonic which are included in `protobuf>=5.29.x`. This feature will be - * enabled by default 1 month after launching the feature in preview - * packages. - * - * Generated from protobuf field bool protobuf_pythonic_types_enabled = 2; - */ - protected $protobuf_pythonic_types_enabled = false; - /** - * Disables generation of an unversioned Python package for this client - * library. This means that the module names will need to be versioned in - * import statements. For example `import google.cloud.library_v2` instead - * of `import google.cloud.library`. - * - * Generated from protobuf field bool unversioned_package_disabled = 3; - */ - protected $unversioned_package_disabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $rest_async_io_enabled - * Enables generation of asynchronous REST clients if `rest` transport is - * enabled. By default, asynchronous REST clients will not be generated. - * This feature will be enabled by default 1 month after launching the - * feature in preview packages. - * @type bool $protobuf_pythonic_types_enabled - * Enables generation of protobuf code using new types that are more - * Pythonic which are included in `protobuf>=5.29.x`. This feature will be - * enabled by default 1 month after launching the feature in preview - * packages. - * @type bool $unversioned_package_disabled - * Disables generation of an unversioned Python package for this client - * library. This means that the module names will need to be versioned in - * import statements. For example `import google.cloud.library_v2` instead - * of `import google.cloud.library`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Client::initOnce(); - parent::__construct($data); - } - - /** - * Enables generation of asynchronous REST clients if `rest` transport is - * enabled. By default, asynchronous REST clients will not be generated. - * This feature will be enabled by default 1 month after launching the - * feature in preview packages. - * - * Generated from protobuf field bool rest_async_io_enabled = 1; - * @return bool - */ - public function getRestAsyncIoEnabled() - { - return $this->rest_async_io_enabled; - } - - /** - * Enables generation of asynchronous REST clients if `rest` transport is - * enabled. By default, asynchronous REST clients will not be generated. - * This feature will be enabled by default 1 month after launching the - * feature in preview packages. - * - * Generated from protobuf field bool rest_async_io_enabled = 1; - * @param bool $var - * @return $this - */ - public function setRestAsyncIoEnabled($var) - { - GPBUtil::checkBool($var); - $this->rest_async_io_enabled = $var; - - return $this; - } - - /** - * Enables generation of protobuf code using new types that are more - * Pythonic which are included in `protobuf>=5.29.x`. This feature will be - * enabled by default 1 month after launching the feature in preview - * packages. - * - * Generated from protobuf field bool protobuf_pythonic_types_enabled = 2; - * @return bool - */ - public function getProtobufPythonicTypesEnabled() - { - return $this->protobuf_pythonic_types_enabled; - } - - /** - * Enables generation of protobuf code using new types that are more - * Pythonic which are included in `protobuf>=5.29.x`. This feature will be - * enabled by default 1 month after launching the feature in preview - * packages. - * - * Generated from protobuf field bool protobuf_pythonic_types_enabled = 2; - * @param bool $var - * @return $this - */ - public function setProtobufPythonicTypesEnabled($var) - { - GPBUtil::checkBool($var); - $this->protobuf_pythonic_types_enabled = $var; - - return $this; - } - - /** - * Disables generation of an unversioned Python package for this client - * library. This means that the module names will need to be versioned in - * import statements. For example `import google.cloud.library_v2` instead - * of `import google.cloud.library`. - * - * Generated from protobuf field bool unversioned_package_disabled = 3; - * @return bool - */ - public function getUnversionedPackageDisabled() - { - return $this->unversioned_package_disabled; - } - - /** - * Disables generation of an unversioned Python package for this client - * library. This means that the module names will need to be versioned in - * import statements. For example `import google.cloud.library_v2` instead - * of `import google.cloud.library`. - * - * Generated from protobuf field bool unversioned_package_disabled = 3; - * @param bool $var - * @return $this - */ - public function setUnversionedPackageDisabled($var) - { - GPBUtil::checkBool($var); - $this->unversioned_package_disabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Quota.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Quota.php deleted file mode 100644 index bea8ed890068..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Quota.php +++ /dev/null @@ -1,144 +0,0 @@ -google.api.Quota - */ -class Quota extends \Google\Protobuf\Internal\Message -{ - /** - * List of QuotaLimit definitions for the service. - * - * Generated from protobuf field repeated .google.api.QuotaLimit limits = 3; - */ - private $limits; - /** - * List of MetricRule definitions, each one mapping a selected method to one - * or more metrics. - * - * Generated from protobuf field repeated .google.api.MetricRule metric_rules = 4; - */ - private $metric_rules; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Api\QuotaLimit[] $limits - * List of QuotaLimit definitions for the service. - * @type \Google\Api\MetricRule[] $metric_rules - * List of MetricRule definitions, each one mapping a selected method to one - * or more metrics. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Quota::initOnce(); - parent::__construct($data); - } - - /** - * List of QuotaLimit definitions for the service. - * - * Generated from protobuf field repeated .google.api.QuotaLimit limits = 3; - * @return RepeatedField<\Google\Api\QuotaLimit> - */ - public function getLimits() - { - return $this->limits; - } - - /** - * List of QuotaLimit definitions for the service. - * - * Generated from protobuf field repeated .google.api.QuotaLimit limits = 3; - * @param \Google\Api\QuotaLimit[] $var - * @return $this - */ - public function setLimits($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\QuotaLimit::class); - $this->limits = $arr; - - return $this; - } - - /** - * List of MetricRule definitions, each one mapping a selected method to one - * or more metrics. - * - * Generated from protobuf field repeated .google.api.MetricRule metric_rules = 4; - * @return RepeatedField<\Google\Api\MetricRule> - */ - public function getMetricRules() - { - return $this->metric_rules; - } - - /** - * List of MetricRule definitions, each one mapping a selected method to one - * or more metrics. - * - * Generated from protobuf field repeated .google.api.MetricRule metric_rules = 4; - * @param \Google\Api\MetricRule[] $var - * @return $this - */ - public function setMetricRules($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\MetricRule::class); - $this->metric_rules = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/QuotaLimit.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/QuotaLimit.php deleted file mode 100644 index 457cc8839770..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/QuotaLimit.php +++ /dev/null @@ -1,527 +0,0 @@ -google.api.QuotaLimit - */ -class QuotaLimit extends \Google\Protobuf\Internal\Message -{ - /** - * Name of the quota limit. - * The name must be provided, and it must be unique within the service. The - * name can only include alphanumeric characters as well as '-'. - * The maximum length of the limit name is 64 characters. - * - * Generated from protobuf field string name = 6; - */ - protected $name = ''; - /** - * Optional. User-visible, extended description for this quota limit. - * Should be used only when more context is needed to understand this limit - * than provided by the limit's display name (see: `display_name`). - * - * Generated from protobuf field string description = 2; - */ - protected $description = ''; - /** - * Default number of tokens that can be consumed during the specified - * duration. This is the number of tokens assigned when a client - * application developer activates the service for his/her project. - * Specifying a value of 0 will block all requests. This can be used if you - * are provisioning quota to selected consumers and blocking others. - * Similarly, a value of -1 will indicate an unlimited quota. No other - * negative values are allowed. - * Used by group-based quotas only. - * - * Generated from protobuf field int64 default_limit = 3; - */ - protected $default_limit = 0; - /** - * Maximum number of tokens that can be consumed during the specified - * duration. Client application developers can override the default limit up - * to this maximum. If specified, this value cannot be set to a value less - * than the default limit. If not specified, it is set to the default limit. - * To allow clients to apply overrides with no upper bound, set this to -1, - * indicating unlimited maximum quota. - * Used by group-based quotas only. - * - * Generated from protobuf field int64 max_limit = 4; - */ - protected $max_limit = 0; - /** - * Free tier value displayed in the Developers Console for this limit. - * The free tier is the number of tokens that will be subtracted from the - * billed amount when billing is enabled. - * This field can only be set on a limit with duration "1d", in a billable - * group; it is invalid on any other limit. If this field is not set, it - * defaults to 0, indicating that there is no free tier for this service. - * Used by group-based quotas only. - * - * Generated from protobuf field int64 free_tier = 7; - */ - protected $free_tier = 0; - /** - * Duration of this limit in textual notation. Must be "100s" or "1d". - * Used by group-based quotas only. - * - * Generated from protobuf field string duration = 5; - */ - protected $duration = ''; - /** - * The name of the metric this quota limit applies to. The quota limits with - * the same metric will be checked together during runtime. The metric must be - * defined within the service config. - * - * Generated from protobuf field string metric = 8; - */ - protected $metric = ''; - /** - * Specify the unit of the quota limit. It uses the same syntax as - * [MetricDescriptor.unit][google.api.MetricDescriptor.unit]. The supported - * unit kinds are determined by the quota backend system. - * Here are some examples: - * * "1/min/{project}" for quota per minute per project. - * Note: the order of unit components is insignificant. - * The "1" at the beginning is required to follow the metric unit syntax. - * - * Generated from protobuf field string unit = 9; - */ - protected $unit = ''; - /** - * Tiered limit values. You must specify this as a key:value pair, with an - * integer value that is the maximum number of requests allowed for the - * specified unit. Currently only STANDARD is supported. - * - * Generated from protobuf field map values = 10; - */ - private $values; - /** - * User-visible display name for this limit. - * Optional. If not set, the UI will provide a default display name based on - * the quota configuration. This field can be used to override the default - * display name generated from the configuration. - * - * Generated from protobuf field string display_name = 12; - */ - protected $display_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Name of the quota limit. - * The name must be provided, and it must be unique within the service. The - * name can only include alphanumeric characters as well as '-'. - * The maximum length of the limit name is 64 characters. - * @type string $description - * Optional. User-visible, extended description for this quota limit. - * Should be used only when more context is needed to understand this limit - * than provided by the limit's display name (see: `display_name`). - * @type int|string $default_limit - * Default number of tokens that can be consumed during the specified - * duration. This is the number of tokens assigned when a client - * application developer activates the service for his/her project. - * Specifying a value of 0 will block all requests. This can be used if you - * are provisioning quota to selected consumers and blocking others. - * Similarly, a value of -1 will indicate an unlimited quota. No other - * negative values are allowed. - * Used by group-based quotas only. - * @type int|string $max_limit - * Maximum number of tokens that can be consumed during the specified - * duration. Client application developers can override the default limit up - * to this maximum. If specified, this value cannot be set to a value less - * than the default limit. If not specified, it is set to the default limit. - * To allow clients to apply overrides with no upper bound, set this to -1, - * indicating unlimited maximum quota. - * Used by group-based quotas only. - * @type int|string $free_tier - * Free tier value displayed in the Developers Console for this limit. - * The free tier is the number of tokens that will be subtracted from the - * billed amount when billing is enabled. - * This field can only be set on a limit with duration "1d", in a billable - * group; it is invalid on any other limit. If this field is not set, it - * defaults to 0, indicating that there is no free tier for this service. - * Used by group-based quotas only. - * @type string $duration - * Duration of this limit in textual notation. Must be "100s" or "1d". - * Used by group-based quotas only. - * @type string $metric - * The name of the metric this quota limit applies to. The quota limits with - * the same metric will be checked together during runtime. The metric must be - * defined within the service config. - * @type string $unit - * Specify the unit of the quota limit. It uses the same syntax as - * [MetricDescriptor.unit][google.api.MetricDescriptor.unit]. The supported - * unit kinds are determined by the quota backend system. - * Here are some examples: - * * "1/min/{project}" for quota per minute per project. - * Note: the order of unit components is insignificant. - * The "1" at the beginning is required to follow the metric unit syntax. - * @type array|\Google\Protobuf\Internal\MapField $values - * Tiered limit values. You must specify this as a key:value pair, with an - * integer value that is the maximum number of requests allowed for the - * specified unit. Currently only STANDARD is supported. - * @type string $display_name - * User-visible display name for this limit. - * Optional. If not set, the UI will provide a default display name based on - * the quota configuration. This field can be used to override the default - * display name generated from the configuration. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Quota::initOnce(); - parent::__construct($data); - } - - /** - * Name of the quota limit. - * The name must be provided, and it must be unique within the service. The - * name can only include alphanumeric characters as well as '-'. - * The maximum length of the limit name is 64 characters. - * - * Generated from protobuf field string name = 6; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Name of the quota limit. - * The name must be provided, and it must be unique within the service. The - * name can only include alphanumeric characters as well as '-'. - * The maximum length of the limit name is 64 characters. - * - * Generated from protobuf field string name = 6; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. User-visible, extended description for this quota limit. - * Should be used only when more context is needed to understand this limit - * than provided by the limit's display name (see: `display_name`). - * - * Generated from protobuf field string description = 2; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. User-visible, extended description for this quota limit. - * Should be used only when more context is needed to understand this limit - * than provided by the limit's display name (see: `display_name`). - * - * Generated from protobuf field string description = 2; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Default number of tokens that can be consumed during the specified - * duration. This is the number of tokens assigned when a client - * application developer activates the service for his/her project. - * Specifying a value of 0 will block all requests. This can be used if you - * are provisioning quota to selected consumers and blocking others. - * Similarly, a value of -1 will indicate an unlimited quota. No other - * negative values are allowed. - * Used by group-based quotas only. - * - * Generated from protobuf field int64 default_limit = 3; - * @return int|string - */ - public function getDefaultLimit() - { - return $this->default_limit; - } - - /** - * Default number of tokens that can be consumed during the specified - * duration. This is the number of tokens assigned when a client - * application developer activates the service for his/her project. - * Specifying a value of 0 will block all requests. This can be used if you - * are provisioning quota to selected consumers and blocking others. - * Similarly, a value of -1 will indicate an unlimited quota. No other - * negative values are allowed. - * Used by group-based quotas only. - * - * Generated from protobuf field int64 default_limit = 3; - * @param int|string $var - * @return $this - */ - public function setDefaultLimit($var) - { - GPBUtil::checkInt64($var); - $this->default_limit = $var; - - return $this; - } - - /** - * Maximum number of tokens that can be consumed during the specified - * duration. Client application developers can override the default limit up - * to this maximum. If specified, this value cannot be set to a value less - * than the default limit. If not specified, it is set to the default limit. - * To allow clients to apply overrides with no upper bound, set this to -1, - * indicating unlimited maximum quota. - * Used by group-based quotas only. - * - * Generated from protobuf field int64 max_limit = 4; - * @return int|string - */ - public function getMaxLimit() - { - return $this->max_limit; - } - - /** - * Maximum number of tokens that can be consumed during the specified - * duration. Client application developers can override the default limit up - * to this maximum. If specified, this value cannot be set to a value less - * than the default limit. If not specified, it is set to the default limit. - * To allow clients to apply overrides with no upper bound, set this to -1, - * indicating unlimited maximum quota. - * Used by group-based quotas only. - * - * Generated from protobuf field int64 max_limit = 4; - * @param int|string $var - * @return $this - */ - public function setMaxLimit($var) - { - GPBUtil::checkInt64($var); - $this->max_limit = $var; - - return $this; - } - - /** - * Free tier value displayed in the Developers Console for this limit. - * The free tier is the number of tokens that will be subtracted from the - * billed amount when billing is enabled. - * This field can only be set on a limit with duration "1d", in a billable - * group; it is invalid on any other limit. If this field is not set, it - * defaults to 0, indicating that there is no free tier for this service. - * Used by group-based quotas only. - * - * Generated from protobuf field int64 free_tier = 7; - * @return int|string - */ - public function getFreeTier() - { - return $this->free_tier; - } - - /** - * Free tier value displayed in the Developers Console for this limit. - * The free tier is the number of tokens that will be subtracted from the - * billed amount when billing is enabled. - * This field can only be set on a limit with duration "1d", in a billable - * group; it is invalid on any other limit. If this field is not set, it - * defaults to 0, indicating that there is no free tier for this service. - * Used by group-based quotas only. - * - * Generated from protobuf field int64 free_tier = 7; - * @param int|string $var - * @return $this - */ - public function setFreeTier($var) - { - GPBUtil::checkInt64($var); - $this->free_tier = $var; - - return $this; - } - - /** - * Duration of this limit in textual notation. Must be "100s" or "1d". - * Used by group-based quotas only. - * - * Generated from protobuf field string duration = 5; - * @return string - */ - public function getDuration() - { - return $this->duration; - } - - /** - * Duration of this limit in textual notation. Must be "100s" or "1d". - * Used by group-based quotas only. - * - * Generated from protobuf field string duration = 5; - * @param string $var - * @return $this - */ - public function setDuration($var) - { - GPBUtil::checkString($var, True); - $this->duration = $var; - - return $this; - } - - /** - * The name of the metric this quota limit applies to. The quota limits with - * the same metric will be checked together during runtime. The metric must be - * defined within the service config. - * - * Generated from protobuf field string metric = 8; - * @return string - */ - public function getMetric() - { - return $this->metric; - } - - /** - * The name of the metric this quota limit applies to. The quota limits with - * the same metric will be checked together during runtime. The metric must be - * defined within the service config. - * - * Generated from protobuf field string metric = 8; - * @param string $var - * @return $this - */ - public function setMetric($var) - { - GPBUtil::checkString($var, True); - $this->metric = $var; - - return $this; - } - - /** - * Specify the unit of the quota limit. It uses the same syntax as - * [MetricDescriptor.unit][google.api.MetricDescriptor.unit]. The supported - * unit kinds are determined by the quota backend system. - * Here are some examples: - * * "1/min/{project}" for quota per minute per project. - * Note: the order of unit components is insignificant. - * The "1" at the beginning is required to follow the metric unit syntax. - * - * Generated from protobuf field string unit = 9; - * @return string - */ - public function getUnit() - { - return $this->unit; - } - - /** - * Specify the unit of the quota limit. It uses the same syntax as - * [MetricDescriptor.unit][google.api.MetricDescriptor.unit]. The supported - * unit kinds are determined by the quota backend system. - * Here are some examples: - * * "1/min/{project}" for quota per minute per project. - * Note: the order of unit components is insignificant. - * The "1" at the beginning is required to follow the metric unit syntax. - * - * Generated from protobuf field string unit = 9; - * @param string $var - * @return $this - */ - public function setUnit($var) - { - GPBUtil::checkString($var, True); - $this->unit = $var; - - return $this; - } - - /** - * Tiered limit values. You must specify this as a key:value pair, with an - * integer value that is the maximum number of requests allowed for the - * specified unit. Currently only STANDARD is supported. - * - * Generated from protobuf field map values = 10; - * @return \Google\Protobuf\Internal\MapField - */ - public function getValues() - { - return $this->values; - } - - /** - * Tiered limit values. You must specify this as a key:value pair, with an - * integer value that is the maximum number of requests allowed for the - * specified unit. Currently only STANDARD is supported. - * - * Generated from protobuf field map values = 10; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setValues($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::INT64); - $this->values = $arr; - - return $this; - } - - /** - * User-visible display name for this limit. - * Optional. If not set, the UI will provide a default display name based on - * the quota configuration. This field can be used to override the default - * display name generated from the configuration. - * - * Generated from protobuf field string display_name = 12; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * User-visible display name for this limit. - * Optional. If not set, the UI will provide a default display name based on - * the quota configuration. This field can be used to override the default - * display name generated from the configuration. - * - * Generated from protobuf field string display_name = 12; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ResourceDescriptor.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ResourceDescriptor.php deleted file mode 100644 index f6142bffc644..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ResourceDescriptor.php +++ /dev/null @@ -1,495 +0,0 @@ -google.api.ResourceDescriptor - */ -class ResourceDescriptor extends \Google\Protobuf\Internal\Message -{ - /** - * The resource type. It must be in the format of - * {service_name}/{resource_type_kind}. The `resource_type_kind` must be - * singular and must not include version numbers. - * Example: `storage.googleapis.com/Bucket` - * The value of the resource_type_kind must follow the regular expression - * /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and - * should use PascalCase (UpperCamelCase). The maximum number of - * characters allowed for the `resource_type_kind` is 100. - * - * Generated from protobuf field string type = 1; - */ - protected $type = ''; - /** - * Optional. The relative resource name pattern associated with this resource - * type. The DNS prefix of the full resource name shouldn't be specified here. - * The path pattern must follow the syntax, which aligns with HTTP binding - * syntax: - * Template = Segment { "/" Segment } ; - * Segment = LITERAL | Variable ; - * Variable = "{" LITERAL "}" ; - * Examples: - * - "projects/{project}/topics/{topic}" - * - "projects/{project}/knowledgeBases/{knowledge_base}" - * The components in braces correspond to the IDs for each resource in the - * hierarchy. It is expected that, if multiple patterns are provided, - * the same component name (e.g. "project") refers to IDs of the same - * type of resource. - * - * Generated from protobuf field repeated string pattern = 2; - */ - private $pattern; - /** - * Optional. The field on the resource that designates the resource name - * field. If omitted, this is assumed to be "name". - * - * Generated from protobuf field string name_field = 3; - */ - protected $name_field = ''; - /** - * Optional. The historical or future-looking state of the resource pattern. - * Example: - * // The InspectTemplate message originally only supported resource - * // names with organization, and project was added later. - * message InspectTemplate { - * option (google.api.resource) = { - * type: "dlp.googleapis.com/InspectTemplate" - * pattern: - * "organizations/{organization}/inspectTemplates/{inspect_template}" - * pattern: "projects/{project}/inspectTemplates/{inspect_template}" - * history: ORIGINALLY_SINGLE_PATTERN - * }; - * } - * - * Generated from protobuf field .google.api.ResourceDescriptor.History history = 4; - */ - protected $history = 0; - /** - * The plural name used in the resource name and permission names, such as - * 'projects' for the resource name of 'projects/{project}' and the permission - * name of 'cloudresourcemanager.googleapis.com/projects.get'. One exception - * to this is for Nested Collections that have stuttering names, as defined - * in [AIP-122](https://google.aip.dev/122#nested-collections), where the - * collection ID in the resource name pattern does not necessarily directly - * match the `plural` value. - * It is the same concept of the `plural` field in k8s CRD spec - * https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ - * Note: The plural form is required even for singleton resources. See - * https://aip.dev/156 - * - * Generated from protobuf field string plural = 5; - */ - protected $plural = ''; - /** - * The same concept of the `singular` field in k8s CRD spec - * https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ - * Such as "project" for the `resourcemanager.googleapis.com/Project` type. - * - * Generated from protobuf field string singular = 6; - */ - protected $singular = ''; - /** - * Style flag(s) for this resource. - * These indicate that a resource is expected to conform to a given - * style. See the specific style flags for additional information. - * - * Generated from protobuf field repeated .google.api.ResourceDescriptor.Style style = 10; - */ - private $style; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $type - * The resource type. It must be in the format of - * {service_name}/{resource_type_kind}. The `resource_type_kind` must be - * singular and must not include version numbers. - * Example: `storage.googleapis.com/Bucket` - * The value of the resource_type_kind must follow the regular expression - * /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and - * should use PascalCase (UpperCamelCase). The maximum number of - * characters allowed for the `resource_type_kind` is 100. - * @type string[] $pattern - * Optional. The relative resource name pattern associated with this resource - * type. The DNS prefix of the full resource name shouldn't be specified here. - * The path pattern must follow the syntax, which aligns with HTTP binding - * syntax: - * Template = Segment { "/" Segment } ; - * Segment = LITERAL | Variable ; - * Variable = "{" LITERAL "}" ; - * Examples: - * - "projects/{project}/topics/{topic}" - * - "projects/{project}/knowledgeBases/{knowledge_base}" - * The components in braces correspond to the IDs for each resource in the - * hierarchy. It is expected that, if multiple patterns are provided, - * the same component name (e.g. "project") refers to IDs of the same - * type of resource. - * @type string $name_field - * Optional. The field on the resource that designates the resource name - * field. If omitted, this is assumed to be "name". - * @type int $history - * Optional. The historical or future-looking state of the resource pattern. - * Example: - * // The InspectTemplate message originally only supported resource - * // names with organization, and project was added later. - * message InspectTemplate { - * option (google.api.resource) = { - * type: "dlp.googleapis.com/InspectTemplate" - * pattern: - * "organizations/{organization}/inspectTemplates/{inspect_template}" - * pattern: "projects/{project}/inspectTemplates/{inspect_template}" - * history: ORIGINALLY_SINGLE_PATTERN - * }; - * } - * @type string $plural - * The plural name used in the resource name and permission names, such as - * 'projects' for the resource name of 'projects/{project}' and the permission - * name of 'cloudresourcemanager.googleapis.com/projects.get'. One exception - * to this is for Nested Collections that have stuttering names, as defined - * in [AIP-122](https://google.aip.dev/122#nested-collections), where the - * collection ID in the resource name pattern does not necessarily directly - * match the `plural` value. - * It is the same concept of the `plural` field in k8s CRD spec - * https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ - * Note: The plural form is required even for singleton resources. See - * https://aip.dev/156 - * @type string $singular - * The same concept of the `singular` field in k8s CRD spec - * https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ - * Such as "project" for the `resourcemanager.googleapis.com/Project` type. - * @type int[] $style - * Style flag(s) for this resource. - * These indicate that a resource is expected to conform to a given - * style. See the specific style flags for additional information. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Resource::initOnce(); - parent::__construct($data); - } - - /** - * The resource type. It must be in the format of - * {service_name}/{resource_type_kind}. The `resource_type_kind` must be - * singular and must not include version numbers. - * Example: `storage.googleapis.com/Bucket` - * The value of the resource_type_kind must follow the regular expression - * /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and - * should use PascalCase (UpperCamelCase). The maximum number of - * characters allowed for the `resource_type_kind` is 100. - * - * Generated from protobuf field string type = 1; - * @return string - */ - public function getType() - { - return $this->type; - } - - /** - * The resource type. It must be in the format of - * {service_name}/{resource_type_kind}. The `resource_type_kind` must be - * singular and must not include version numbers. - * Example: `storage.googleapis.com/Bucket` - * The value of the resource_type_kind must follow the regular expression - * /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and - * should use PascalCase (UpperCamelCase). The maximum number of - * characters allowed for the `resource_type_kind` is 100. - * - * Generated from protobuf field string type = 1; - * @param string $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkString($var, True); - $this->type = $var; - - return $this; - } - - /** - * Optional. The relative resource name pattern associated with this resource - * type. The DNS prefix of the full resource name shouldn't be specified here. - * The path pattern must follow the syntax, which aligns with HTTP binding - * syntax: - * Template = Segment { "/" Segment } ; - * Segment = LITERAL | Variable ; - * Variable = "{" LITERAL "}" ; - * Examples: - * - "projects/{project}/topics/{topic}" - * - "projects/{project}/knowledgeBases/{knowledge_base}" - * The components in braces correspond to the IDs for each resource in the - * hierarchy. It is expected that, if multiple patterns are provided, - * the same component name (e.g. "project") refers to IDs of the same - * type of resource. - * - * Generated from protobuf field repeated string pattern = 2; - * @return RepeatedField - */ - public function getPattern() - { - return $this->pattern; - } - - /** - * Optional. The relative resource name pattern associated with this resource - * type. The DNS prefix of the full resource name shouldn't be specified here. - * The path pattern must follow the syntax, which aligns with HTTP binding - * syntax: - * Template = Segment { "/" Segment } ; - * Segment = LITERAL | Variable ; - * Variable = "{" LITERAL "}" ; - * Examples: - * - "projects/{project}/topics/{topic}" - * - "projects/{project}/knowledgeBases/{knowledge_base}" - * The components in braces correspond to the IDs for each resource in the - * hierarchy. It is expected that, if multiple patterns are provided, - * the same component name (e.g. "project") refers to IDs of the same - * type of resource. - * - * Generated from protobuf field repeated string pattern = 2; - * @param string[] $var - * @return $this - */ - public function setPattern($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->pattern = $arr; - - return $this; - } - - /** - * Optional. The field on the resource that designates the resource name - * field. If omitted, this is assumed to be "name". - * - * Generated from protobuf field string name_field = 3; - * @return string - */ - public function getNameField() - { - return $this->name_field; - } - - /** - * Optional. The field on the resource that designates the resource name - * field. If omitted, this is assumed to be "name". - * - * Generated from protobuf field string name_field = 3; - * @param string $var - * @return $this - */ - public function setNameField($var) - { - GPBUtil::checkString($var, True); - $this->name_field = $var; - - return $this; - } - - /** - * Optional. The historical or future-looking state of the resource pattern. - * Example: - * // The InspectTemplate message originally only supported resource - * // names with organization, and project was added later. - * message InspectTemplate { - * option (google.api.resource) = { - * type: "dlp.googleapis.com/InspectTemplate" - * pattern: - * "organizations/{organization}/inspectTemplates/{inspect_template}" - * pattern: "projects/{project}/inspectTemplates/{inspect_template}" - * history: ORIGINALLY_SINGLE_PATTERN - * }; - * } - * - * Generated from protobuf field .google.api.ResourceDescriptor.History history = 4; - * @return int - */ - public function getHistory() - { - return $this->history; - } - - /** - * Optional. The historical or future-looking state of the resource pattern. - * Example: - * // The InspectTemplate message originally only supported resource - * // names with organization, and project was added later. - * message InspectTemplate { - * option (google.api.resource) = { - * type: "dlp.googleapis.com/InspectTemplate" - * pattern: - * "organizations/{organization}/inspectTemplates/{inspect_template}" - * pattern: "projects/{project}/inspectTemplates/{inspect_template}" - * history: ORIGINALLY_SINGLE_PATTERN - * }; - * } - * - * Generated from protobuf field .google.api.ResourceDescriptor.History history = 4; - * @param int $var - * @return $this - */ - public function setHistory($var) - { - GPBUtil::checkEnum($var, \Google\Api\ResourceDescriptor\History::class); - $this->history = $var; - - return $this; - } - - /** - * The plural name used in the resource name and permission names, such as - * 'projects' for the resource name of 'projects/{project}' and the permission - * name of 'cloudresourcemanager.googleapis.com/projects.get'. One exception - * to this is for Nested Collections that have stuttering names, as defined - * in [AIP-122](https://google.aip.dev/122#nested-collections), where the - * collection ID in the resource name pattern does not necessarily directly - * match the `plural` value. - * It is the same concept of the `plural` field in k8s CRD spec - * https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ - * Note: The plural form is required even for singleton resources. See - * https://aip.dev/156 - * - * Generated from protobuf field string plural = 5; - * @return string - */ - public function getPlural() - { - return $this->plural; - } - - /** - * The plural name used in the resource name and permission names, such as - * 'projects' for the resource name of 'projects/{project}' and the permission - * name of 'cloudresourcemanager.googleapis.com/projects.get'. One exception - * to this is for Nested Collections that have stuttering names, as defined - * in [AIP-122](https://google.aip.dev/122#nested-collections), where the - * collection ID in the resource name pattern does not necessarily directly - * match the `plural` value. - * It is the same concept of the `plural` field in k8s CRD spec - * https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ - * Note: The plural form is required even for singleton resources. See - * https://aip.dev/156 - * - * Generated from protobuf field string plural = 5; - * @param string $var - * @return $this - */ - public function setPlural($var) - { - GPBUtil::checkString($var, True); - $this->plural = $var; - - return $this; - } - - /** - * The same concept of the `singular` field in k8s CRD spec - * https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ - * Such as "project" for the `resourcemanager.googleapis.com/Project` type. - * - * Generated from protobuf field string singular = 6; - * @return string - */ - public function getSingular() - { - return $this->singular; - } - - /** - * The same concept of the `singular` field in k8s CRD spec - * https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ - * Such as "project" for the `resourcemanager.googleapis.com/Project` type. - * - * Generated from protobuf field string singular = 6; - * @param string $var - * @return $this - */ - public function setSingular($var) - { - GPBUtil::checkString($var, True); - $this->singular = $var; - - return $this; - } - - /** - * Style flag(s) for this resource. - * These indicate that a resource is expected to conform to a given - * style. See the specific style flags for additional information. - * - * Generated from protobuf field repeated .google.api.ResourceDescriptor.Style style = 10; - * @return RepeatedField - */ - public function getStyle() - { - return $this->style; - } - - /** - * Style flag(s) for this resource. - * These indicate that a resource is expected to conform to a given - * style. See the specific style flags for additional information. - * - * Generated from protobuf field repeated .google.api.ResourceDescriptor.Style style = 10; - * @param int[] $var - * @return $this - */ - public function setStyle($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Api\ResourceDescriptor\Style::class); - $this->style = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ResourceDescriptor/History.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ResourceDescriptor/History.php deleted file mode 100644 index ee1ae551aac7..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ResourceDescriptor/History.php +++ /dev/null @@ -1,65 +0,0 @@ -google.api.ResourceDescriptor.History - */ -class History -{ - /** - * The "unset" value. - * - * Generated from protobuf enum HISTORY_UNSPECIFIED = 0; - */ - const HISTORY_UNSPECIFIED = 0; - /** - * The resource originally had one pattern and launched as such, and - * additional patterns were added later. - * - * Generated from protobuf enum ORIGINALLY_SINGLE_PATTERN = 1; - */ - const ORIGINALLY_SINGLE_PATTERN = 1; - /** - * The resource has one pattern, but the API owner expects to add more - * later. (This is the inverse of ORIGINALLY_SINGLE_PATTERN, and prevents - * that from being necessary once there are multiple patterns.) - * - * Generated from protobuf enum FUTURE_MULTI_PATTERN = 2; - */ - const FUTURE_MULTI_PATTERN = 2; - - private static $valueToName = [ - self::HISTORY_UNSPECIFIED => 'HISTORY_UNSPECIFIED', - self::ORIGINALLY_SINGLE_PATTERN => 'ORIGINALLY_SINGLE_PATTERN', - self::FUTURE_MULTI_PATTERN => 'FUTURE_MULTI_PATTERN', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ResourceDescriptor/Style.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ResourceDescriptor/Style.php deleted file mode 100644 index 87dfba14a2a8..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ResourceDescriptor/Style.php +++ /dev/null @@ -1,59 +0,0 @@ -google.api.ResourceDescriptor.Style - */ -class Style -{ - /** - * The unspecified value. Do not use. - * - * Generated from protobuf enum STYLE_UNSPECIFIED = 0; - */ - const STYLE_UNSPECIFIED = 0; - /** - * This resource is intended to be "declarative-friendly". - * Declarative-friendly resources must be more strictly consistent, and - * setting this to true communicates to tools that this resource should - * adhere to declarative-friendly expectations. - * Note: This is used by the API linter (linter.aip.dev) to enable - * additional checks. - * - * Generated from protobuf enum DECLARATIVE_FRIENDLY = 1; - */ - const DECLARATIVE_FRIENDLY = 1; - - private static $valueToName = [ - self::STYLE_UNSPECIFIED => 'STYLE_UNSPECIFIED', - self::DECLARATIVE_FRIENDLY => 'DECLARATIVE_FRIENDLY', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ResourceReference.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ResourceReference.php deleted file mode 100644 index e6bc4e8ff3fa..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ResourceReference.php +++ /dev/null @@ -1,190 +0,0 @@ -google.api.ResourceReference - */ -class ResourceReference extends \Google\Protobuf\Internal\Message -{ - /** - * The resource type that the annotated field references. - * Example: - * message Subscription { - * string topic = 2 [(google.api.resource_reference) = { - * type: "pubsub.googleapis.com/Topic" - * }]; - * } - * Occasionally, a field may reference an arbitrary resource. In this case, - * APIs use the special value * in their resource reference. - * Example: - * message GetIamPolicyRequest { - * string resource = 2 [(google.api.resource_reference) = { - * type: "*" - * }]; - * } - * - * Generated from protobuf field string type = 1; - */ - protected $type = ''; - /** - * The resource type of a child collection that the annotated field - * references. This is useful for annotating the `parent` field that - * doesn't have a fixed resource type. - * Example: - * message ListLogEntriesRequest { - * string parent = 1 [(google.api.resource_reference) = { - * child_type: "logging.googleapis.com/LogEntry" - * }; - * } - * - * Generated from protobuf field string child_type = 2; - */ - protected $child_type = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $type - * The resource type that the annotated field references. - * Example: - * message Subscription { - * string topic = 2 [(google.api.resource_reference) = { - * type: "pubsub.googleapis.com/Topic" - * }]; - * } - * Occasionally, a field may reference an arbitrary resource. In this case, - * APIs use the special value * in their resource reference. - * Example: - * message GetIamPolicyRequest { - * string resource = 2 [(google.api.resource_reference) = { - * type: "*" - * }]; - * } - * @type string $child_type - * The resource type of a child collection that the annotated field - * references. This is useful for annotating the `parent` field that - * doesn't have a fixed resource type. - * Example: - * message ListLogEntriesRequest { - * string parent = 1 [(google.api.resource_reference) = { - * child_type: "logging.googleapis.com/LogEntry" - * }; - * } - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Resource::initOnce(); - parent::__construct($data); - } - - /** - * The resource type that the annotated field references. - * Example: - * message Subscription { - * string topic = 2 [(google.api.resource_reference) = { - * type: "pubsub.googleapis.com/Topic" - * }]; - * } - * Occasionally, a field may reference an arbitrary resource. In this case, - * APIs use the special value * in their resource reference. - * Example: - * message GetIamPolicyRequest { - * string resource = 2 [(google.api.resource_reference) = { - * type: "*" - * }]; - * } - * - * Generated from protobuf field string type = 1; - * @return string - */ - public function getType() - { - return $this->type; - } - - /** - * The resource type that the annotated field references. - * Example: - * message Subscription { - * string topic = 2 [(google.api.resource_reference) = { - * type: "pubsub.googleapis.com/Topic" - * }]; - * } - * Occasionally, a field may reference an arbitrary resource. In this case, - * APIs use the special value * in their resource reference. - * Example: - * message GetIamPolicyRequest { - * string resource = 2 [(google.api.resource_reference) = { - * type: "*" - * }]; - * } - * - * Generated from protobuf field string type = 1; - * @param string $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkString($var, True); - $this->type = $var; - - return $this; - } - - /** - * The resource type of a child collection that the annotated field - * references. This is useful for annotating the `parent` field that - * doesn't have a fixed resource type. - * Example: - * message ListLogEntriesRequest { - * string parent = 1 [(google.api.resource_reference) = { - * child_type: "logging.googleapis.com/LogEntry" - * }; - * } - * - * Generated from protobuf field string child_type = 2; - * @return string - */ - public function getChildType() - { - return $this->child_type; - } - - /** - * The resource type of a child collection that the annotated field - * references. This is useful for annotating the `parent` field that - * doesn't have a fixed resource type. - * Example: - * message ListLogEntriesRequest { - * string parent = 1 [(google.api.resource_reference) = { - * child_type: "logging.googleapis.com/LogEntry" - * }; - * } - * - * Generated from protobuf field string child_type = 2; - * @param string $var - * @return $this - */ - public function setChildType($var) - { - GPBUtil::checkString($var, True); - $this->child_type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/RoutingParameter.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/RoutingParameter.php deleted file mode 100644 index ff03816fe471..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/RoutingParameter.php +++ /dev/null @@ -1,281 +0,0 @@ -google.api.RoutingParameter - */ -class RoutingParameter extends \Google\Protobuf\Internal\Message -{ - /** - * A request field to extract the header key-value pair from. - * - * Generated from protobuf field string field = 1; - */ - protected $field = ''; - /** - * A pattern matching the key-value field. Optional. - * If not specified, the whole field specified in the `field` field will be - * taken as value, and its name used as key. If specified, it MUST contain - * exactly one named segment (along with any number of unnamed segments) The - * pattern will be matched over the field specified in the `field` field, then - * if the match is successful: - * - the name of the single named segment will be used as a header name, - * - the match value of the segment will be used as a header value; - * if the match is NOT successful, nothing will be sent. - * Example: - * -- This is a field in the request message - * | that the header value will be extracted from. - * | - * | -- This is the key name in the - * | | routing header. - * V | - * field: "table_name" v - * path_template: "projects/{@*}{table_location=instances/*}/tables/*" - * ^ ^ - * | | - * In the {} brackets is the pattern that -- | - * specifies what to extract from the | - * field as a value to be sent. | - * | - * The string in the field must match the whole pattern -- - * before brackets, inside brackets, after brackets. - * When looking at this specific example, we can see that: - * - A key-value pair with the key `table_location` - * and the value matching `instances/*` should be added - * to the x-goog-request-params routing header. - * - The value is extracted from the request message's `table_name` field - * if it matches the full pattern specified: - * `projects/{@*}instances/{@*}tables/*`. - * **NB:** If the `path_template` field is not provided, the key name is - * equal to the field name, and the whole field should be sent as a value. - * This makes the pattern for the field and the value functionally equivalent - * to `**`, and the configuration - * { - * field: "table_name" - * } - * is a functionally equivalent shorthand to: - * { - * field: "table_name" - * path_template: "{table_name=**}" - * } - * See Example 1 for more details. - * - * Generated from protobuf field string path_template = 2; - */ - protected $path_template = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $field - * A request field to extract the header key-value pair from. - * @type string $path_template - * A pattern matching the key-value field. Optional. - * If not specified, the whole field specified in the `field` field will be - * taken as value, and its name used as key. If specified, it MUST contain - * exactly one named segment (along with any number of unnamed segments) The - * pattern will be matched over the field specified in the `field` field, then - * if the match is successful: - * - the name of the single named segment will be used as a header name, - * - the match value of the segment will be used as a header value; - * if the match is NOT successful, nothing will be sent. - * Example: - * -- This is a field in the request message - * | that the header value will be extracted from. - * | - * | -- This is the key name in the - * | | routing header. - * V | - * field: "table_name" v - * path_template: "projects/{@*}{table_location=instances/*}/tables/*" - * ^ ^ - * | | - * In the {} brackets is the pattern that -- | - * specifies what to extract from the | - * field as a value to be sent. | - * | - * The string in the field must match the whole pattern -- - * before brackets, inside brackets, after brackets. - * When looking at this specific example, we can see that: - * - A key-value pair with the key `table_location` - * and the value matching `instances/*` should be added - * to the x-goog-request-params routing header. - * - The value is extracted from the request message's `table_name` field - * if it matches the full pattern specified: - * `projects/{@*}instances/{@*}tables/*`. - * **NB:** If the `path_template` field is not provided, the key name is - * equal to the field name, and the whole field should be sent as a value. - * This makes the pattern for the field and the value functionally equivalent - * to `**`, and the configuration - * { - * field: "table_name" - * } - * is a functionally equivalent shorthand to: - * { - * field: "table_name" - * path_template: "{table_name=**}" - * } - * See Example 1 for more details. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Routing::initOnce(); - parent::__construct($data); - } - - /** - * A request field to extract the header key-value pair from. - * - * Generated from protobuf field string field = 1; - * @return string - */ - public function getField() - { - return $this->field; - } - - /** - * A request field to extract the header key-value pair from. - * - * Generated from protobuf field string field = 1; - * @param string $var - * @return $this - */ - public function setField($var) - { - GPBUtil::checkString($var, True); - $this->field = $var; - - return $this; - } - - /** - * A pattern matching the key-value field. Optional. - * If not specified, the whole field specified in the `field` field will be - * taken as value, and its name used as key. If specified, it MUST contain - * exactly one named segment (along with any number of unnamed segments) The - * pattern will be matched over the field specified in the `field` field, then - * if the match is successful: - * - the name of the single named segment will be used as a header name, - * - the match value of the segment will be used as a header value; - * if the match is NOT successful, nothing will be sent. - * Example: - * -- This is a field in the request message - * | that the header value will be extracted from. - * | - * | -- This is the key name in the - * | | routing header. - * V | - * field: "table_name" v - * path_template: "projects/{@*}{table_location=instances/*}/tables/*" - * ^ ^ - * | | - * In the {} brackets is the pattern that -- | - * specifies what to extract from the | - * field as a value to be sent. | - * | - * The string in the field must match the whole pattern -- - * before brackets, inside brackets, after brackets. - * When looking at this specific example, we can see that: - * - A key-value pair with the key `table_location` - * and the value matching `instances/*` should be added - * to the x-goog-request-params routing header. - * - The value is extracted from the request message's `table_name` field - * if it matches the full pattern specified: - * `projects/{@*}instances/{@*}tables/*`. - * **NB:** If the `path_template` field is not provided, the key name is - * equal to the field name, and the whole field should be sent as a value. - * This makes the pattern for the field and the value functionally equivalent - * to `**`, and the configuration - * { - * field: "table_name" - * } - * is a functionally equivalent shorthand to: - * { - * field: "table_name" - * path_template: "{table_name=**}" - * } - * See Example 1 for more details. - * - * Generated from protobuf field string path_template = 2; - * @return string - */ - public function getPathTemplate() - { - return $this->path_template; - } - - /** - * A pattern matching the key-value field. Optional. - * If not specified, the whole field specified in the `field` field will be - * taken as value, and its name used as key. If specified, it MUST contain - * exactly one named segment (along with any number of unnamed segments) The - * pattern will be matched over the field specified in the `field` field, then - * if the match is successful: - * - the name of the single named segment will be used as a header name, - * - the match value of the segment will be used as a header value; - * if the match is NOT successful, nothing will be sent. - * Example: - * -- This is a field in the request message - * | that the header value will be extracted from. - * | - * | -- This is the key name in the - * | | routing header. - * V | - * field: "table_name" v - * path_template: "projects/{@*}{table_location=instances/*}/tables/*" - * ^ ^ - * | | - * In the {} brackets is the pattern that -- | - * specifies what to extract from the | - * field as a value to be sent. | - * | - * The string in the field must match the whole pattern -- - * before brackets, inside brackets, after brackets. - * When looking at this specific example, we can see that: - * - A key-value pair with the key `table_location` - * and the value matching `instances/*` should be added - * to the x-goog-request-params routing header. - * - The value is extracted from the request message's `table_name` field - * if it matches the full pattern specified: - * `projects/{@*}instances/{@*}tables/*`. - * **NB:** If the `path_template` field is not provided, the key name is - * equal to the field name, and the whole field should be sent as a value. - * This makes the pattern for the field and the value functionally equivalent - * to `**`, and the configuration - * { - * field: "table_name" - * } - * is a functionally equivalent shorthand to: - * { - * field: "table_name" - * path_template: "{table_name=**}" - * } - * See Example 1 for more details. - * - * Generated from protobuf field string path_template = 2; - * @param string $var - * @return $this - */ - public function setPathTemplate($var) - { - GPBUtil::checkString($var, True); - $this->path_template = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/RoutingRule.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/RoutingRule.php deleted file mode 100644 index b6f939a5263d..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/RoutingRule.php +++ /dev/null @@ -1,356 +0,0 @@ -/tables/
` - * // - `projects//instances//tables/
` - * // - `region//zones//tables/
` - * string table_name = 1; - * // This value specifies routing for replication. - * // It can be in the following formats: - * // - `profiles/` - * // - a legacy `profile_id` that can be any string - * string app_profile_id = 2; - * } - * Example message: - * { - * table_name: projects/proj_foo/instances/instance_bar/table/table_baz, - * app_profile_id: profiles/prof_qux - * } - * The routing header consists of one or multiple key-value pairs. The order of - * the key-value pairs is undefined, the order of the `routing_parameters` in - * the `RoutingRule` only matters for the evaluation order of the path - * templates when `field` is the same. See the examples below for more details. - * Every key and value in the routing header must be percent-encoded, - * and joined together in the following format: `key1=value1&key2=value2`. - * The examples below skip the percent-encoding for readability. - * Example 1 - * Extracting a field from the request to put into the routing header - * unchanged, with the key equal to the field name. - * annotation: - * option (google.api.routing) = { - * // Take the `app_profile_id`. - * routing_parameters { - * field: "app_profile_id" - * } - * }; - * result: - * x-goog-request-params: app_profile_id=profiles/prof_qux - * Example 2 - * Extracting a field from the request to put into the routing header - * unchanged, with the key different from the field name. - * annotation: - * option (google.api.routing) = { - * // Take the `app_profile_id`, but name it `routing_id` in the header. - * routing_parameters { - * field: "app_profile_id" - * path_template: "{routing_id=**}" - * } - * }; - * result: - * x-goog-request-params: routing_id=profiles/prof_qux - * Example 3 - * Extracting a field from the request to put into the routing - * header, while matching a path template syntax on the field's value. - * NB: it is more useful to send nothing than to send garbage for the purpose - * of dynamic routing, since garbage pollutes cache. Thus the matching. - * Sub-example 3a - * The field matches the template. - * annotation: - * option (google.api.routing) = { - * // Take the `table_name`, if it's well-formed (with project-based - * // syntax). - * routing_parameters { - * field: "table_name" - * path_template: "{table_name=projects/{@*}instances/{@*}**}" - * } - * }; - * result: - * x-goog-request-params: - * table_name=projects/proj_foo/instances/instance_bar/table/table_baz - * Sub-example 3b - * The field does not match the template. - * annotation: - * option (google.api.routing) = { - * // Take the `table_name`, if it's well-formed (with region-based - * // syntax). - * routing_parameters { - * field: "table_name" - * path_template: "{table_name=regions/{@*}zones/{@*}**}" - * } - * }; - * result: - * - * Sub-example 3c - * Multiple alternative conflictingly named path templates are - * specified. The one that matches is used to construct the header. - * annotation: - * option (google.api.routing) = { - * // Take the `table_name`, if it's well-formed, whether - * // using the region- or projects-based syntax. - * routing_parameters { - * field: "table_name" - * path_template: "{table_name=regions/{@*}zones/{@*}**}" - * } - * routing_parameters { - * field: "table_name" - * path_template: "{table_name=projects/{@*}instances/{@*}**}" - * } - * }; - * result: - * x-goog-request-params: - * table_name=projects/proj_foo/instances/instance_bar/table/table_baz - * Example 4 - * Extracting a single routing header key-value pair by matching a - * template syntax on (a part of) a single request field. - * annotation: - * option (google.api.routing) = { - * // Take just the project id from the `table_name` field. - * routing_parameters { - * field: "table_name" - * path_template: "{routing_id=projects/*}/**" - * } - * }; - * result: - * x-goog-request-params: routing_id=projects/proj_foo - * Example 5 - * Extracting a single routing header key-value pair by matching - * several conflictingly named path templates on (parts of) a single request - * field. The last template to match "wins" the conflict. - * annotation: - * option (google.api.routing) = { - * // If the `table_name` does not have instances information, - * // take just the project id for routing. - * // Otherwise take project + instance. - * routing_parameters { - * field: "table_name" - * path_template: "{routing_id=projects/*}/**" - * } - * routing_parameters { - * field: "table_name" - * path_template: "{routing_id=projects/{@*}instances/*}/**" - * } - * }; - * result: - * x-goog-request-params: - * routing_id=projects/proj_foo/instances/instance_bar - * Example 6 - * Extracting multiple routing header key-value pairs by matching - * several non-conflicting path templates on (parts of) a single request field. - * Sub-example 6a - * Make the templates strict, so that if the `table_name` does not - * have an instance information, nothing is sent. - * annotation: - * option (google.api.routing) = { - * // The routing code needs two keys instead of one composite - * // but works only for the tables with the "project-instance" name - * // syntax. - * routing_parameters { - * field: "table_name" - * path_template: "{project_id=projects/*}/instances/{@*}**" - * } - * routing_parameters { - * field: "table_name" - * path_template: "projects/{@*}{instance_id=instances/*}/**" - * } - * }; - * result: - * x-goog-request-params: - * project_id=projects/proj_foo&instance_id=instances/instance_bar - * Sub-example 6b - * Make the templates loose, so that if the `table_name` does not - * have an instance information, just the project id part is sent. - * annotation: - * option (google.api.routing) = { - * // The routing code wants two keys instead of one composite - * // but will work with just the `project_id` for tables without - * // an instance in the `table_name`. - * routing_parameters { - * field: "table_name" - * path_template: "{project_id=projects/*}/**" - * } - * routing_parameters { - * field: "table_name" - * path_template: "projects/{@*}{instance_id=instances/*}/**" - * } - * }; - * result (is the same as 6a for our example message because it has the instance - * information): - * x-goog-request-params: - * project_id=projects/proj_foo&instance_id=instances/instance_bar - * Example 7 - * Extracting multiple routing header key-value pairs by matching - * several path templates on multiple request fields. - * NB: note that here there is no way to specify sending nothing if one of the - * fields does not match its template. E.g. if the `table_name` is in the wrong - * format, the `project_id` will not be sent, but the `routing_id` will be. - * The backend routing code has to be aware of that and be prepared to not - * receive a full complement of keys if it expects multiple. - * annotation: - * option (google.api.routing) = { - * // The routing needs both `project_id` and `routing_id` - * // (from the `app_profile_id` field) for routing. - * routing_parameters { - * field: "table_name" - * path_template: "{project_id=projects/*}/**" - * } - * routing_parameters { - * field: "app_profile_id" - * path_template: "{routing_id=**}" - * } - * }; - * result: - * x-goog-request-params: - * project_id=projects/proj_foo&routing_id=profiles/prof_qux - * Example 8 - * Extracting a single routing header key-value pair by matching - * several conflictingly named path templates on several request fields. The - * last template to match "wins" the conflict. - * annotation: - * option (google.api.routing) = { - * // The `routing_id` can be a project id or a region id depending on - * // the table name format, but only if the `app_profile_id` is not set. - * // If `app_profile_id` is set it should be used instead. - * routing_parameters { - * field: "table_name" - * path_template: "{routing_id=projects/*}/**" - * } - * routing_parameters { - * field: "table_name" - * path_template: "{routing_id=regions/*}/**" - * } - * routing_parameters { - * field: "app_profile_id" - * path_template: "{routing_id=**}" - * } - * }; - * result: - * x-goog-request-params: routing_id=profiles/prof_qux - * Example 9 - * Bringing it all together. - * annotation: - * option (google.api.routing) = { - * // For routing both `table_location` and a `routing_id` are needed. - * // - * // table_location can be either an instance id or a region+zone id. - * // - * // For `routing_id`, take the value of `app_profile_id` - * // - If it's in the format `profiles/`, send - * // just the `` part. - * // - If it's any other literal, send it as is. - * // If the `app_profile_id` is empty, and the `table_name` starts with - * // the project_id, send that instead. - * routing_parameters { - * field: "table_name" - * path_template: "projects/{@*}{table_location=instances/*}/tables/*" - * } - * routing_parameters { - * field: "table_name" - * path_template: "{table_location=regions/{@*}zones/*}/tables/*" - * } - * routing_parameters { - * field: "table_name" - * path_template: "{routing_id=projects/*}/**" - * } - * routing_parameters { - * field: "app_profile_id" - * path_template: "{routing_id=**}" - * } - * routing_parameters { - * field: "app_profile_id" - * path_template: "profiles/{routing_id=*}" - * } - * }; - * result: - * x-goog-request-params: - * table_location=instances/instance_bar&routing_id=prof_qux - * - * Generated from protobuf message google.api.RoutingRule - */ -class RoutingRule extends \Google\Protobuf\Internal\Message -{ - /** - * A collection of Routing Parameter specifications. - * **NOTE:** If multiple Routing Parameters describe the same key - * (via the `path_template` field or via the `field` field when - * `path_template` is not provided), "last one wins" rule - * determines which Parameter gets used. - * See the examples for more details. - * - * Generated from protobuf field repeated .google.api.RoutingParameter routing_parameters = 2; - */ - private $routing_parameters; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Api\RoutingParameter[] $routing_parameters - * A collection of Routing Parameter specifications. - * **NOTE:** If multiple Routing Parameters describe the same key - * (via the `path_template` field or via the `field` field when - * `path_template` is not provided), "last one wins" rule - * determines which Parameter gets used. - * See the examples for more details. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Routing::initOnce(); - parent::__construct($data); - } - - /** - * A collection of Routing Parameter specifications. - * **NOTE:** If multiple Routing Parameters describe the same key - * (via the `path_template` field or via the `field` field when - * `path_template` is not provided), "last one wins" rule - * determines which Parameter gets used. - * See the examples for more details. - * - * Generated from protobuf field repeated .google.api.RoutingParameter routing_parameters = 2; - * @return RepeatedField<\Google\Api\RoutingParameter> - */ - public function getRoutingParameters() - { - return $this->routing_parameters; - } - - /** - * A collection of Routing Parameter specifications. - * **NOTE:** If multiple Routing Parameters describe the same key - * (via the `path_template` field or via the `field` field when - * `path_template` is not provided), "last one wins" rule - * determines which Parameter gets used. - * See the examples for more details. - * - * Generated from protobuf field repeated .google.api.RoutingParameter routing_parameters = 2; - * @param \Google\Api\RoutingParameter[] $var - * @return $this - */ - public function setRoutingParameters($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\RoutingParameter::class); - $this->routing_parameters = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/RubySettings.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/RubySettings.php deleted file mode 100644 index 2bf1340bde94..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/RubySettings.php +++ /dev/null @@ -1,77 +0,0 @@ -google.api.RubySettings - */ -class RubySettings extends \Google\Protobuf\Internal\Message -{ - /** - * Some settings. - * - * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; - */ - protected $common = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Api\CommonLanguageSettings $common - * Some settings. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Client::initOnce(); - parent::__construct($data); - } - - /** - * Some settings. - * - * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; - * @return \Google\Api\CommonLanguageSettings|null - */ - public function getCommon() - { - return $this->common; - } - - public function hasCommon() - { - return isset($this->common); - } - - public function clearCommon() - { - unset($this->common); - } - - /** - * Some settings. - * - * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; - * @param \Google\Api\CommonLanguageSettings $var - * @return $this - */ - public function setCommon($var) - { - GPBUtil::checkMessage($var, \Google\Api\CommonLanguageSettings::class); - $this->common = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/SelectiveGapicGeneration.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/SelectiveGapicGeneration.php deleted file mode 100644 index a6cbea6126c3..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/SelectiveGapicGeneration.php +++ /dev/null @@ -1,126 +0,0 @@ -google.api.SelectiveGapicGeneration - */ -class SelectiveGapicGeneration extends \Google\Protobuf\Internal\Message -{ - /** - * An allowlist of the fully qualified names of RPCs that should be included - * on public client surfaces. - * - * Generated from protobuf field repeated string methods = 1; - */ - private $methods; - /** - * Setting this to true indicates to the client generators that methods - * that would be excluded from the generation should instead be generated - * in a way that indicates these methods should not be consumed by - * end users. How this is expressed is up to individual language - * implementations to decide. Some examples may be: added annotations, - * obfuscated identifiers, or other language idiomatic patterns. - * - * Generated from protobuf field bool generate_omitted_as_internal = 2; - */ - protected $generate_omitted_as_internal = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string[] $methods - * An allowlist of the fully qualified names of RPCs that should be included - * on public client surfaces. - * @type bool $generate_omitted_as_internal - * Setting this to true indicates to the client generators that methods - * that would be excluded from the generation should instead be generated - * in a way that indicates these methods should not be consumed by - * end users. How this is expressed is up to individual language - * implementations to decide. Some examples may be: added annotations, - * obfuscated identifiers, or other language idiomatic patterns. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Client::initOnce(); - parent::__construct($data); - } - - /** - * An allowlist of the fully qualified names of RPCs that should be included - * on public client surfaces. - * - * Generated from protobuf field repeated string methods = 1; - * @return RepeatedField - */ - public function getMethods() - { - return $this->methods; - } - - /** - * An allowlist of the fully qualified names of RPCs that should be included - * on public client surfaces. - * - * Generated from protobuf field repeated string methods = 1; - * @param string[] $var - * @return $this - */ - public function setMethods($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->methods = $arr; - - return $this; - } - - /** - * Setting this to true indicates to the client generators that methods - * that would be excluded from the generation should instead be generated - * in a way that indicates these methods should not be consumed by - * end users. How this is expressed is up to individual language - * implementations to decide. Some examples may be: added annotations, - * obfuscated identifiers, or other language idiomatic patterns. - * - * Generated from protobuf field bool generate_omitted_as_internal = 2; - * @return bool - */ - public function getGenerateOmittedAsInternal() - { - return $this->generate_omitted_as_internal; - } - - /** - * Setting this to true indicates to the client generators that methods - * that would be excluded from the generation should instead be generated - * in a way that indicates these methods should not be consumed by - * end users. How this is expressed is up to individual language - * implementations to decide. Some examples may be: added annotations, - * obfuscated identifiers, or other language idiomatic patterns. - * - * Generated from protobuf field bool generate_omitted_as_internal = 2; - * @param bool $var - * @return $this - */ - public function setGenerateOmittedAsInternal($var) - { - GPBUtil::checkBool($var); - $this->generate_omitted_as_internal = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Service.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Service.php deleted file mode 100644 index a5bbee008b0d..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Service.php +++ /dev/null @@ -1,1242 +0,0 @@ -google.api.Service - */ -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 string name = 1; - */ - protected $name = ''; - /** - * The product title for this service, it is the name displayed in Google - * Cloud Console. - * - * Generated from protobuf field string title = 2; - */ - protected $title = ''; - /** - * The Google project that owns this service. - * - * Generated from protobuf field string producer_project_id = 22; - */ - 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 string id = 33; - */ - 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 repeated .google.protobuf.Api apis = 3; - */ - 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 repeated .google.protobuf.Type types = 4; - */ - 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 repeated .google.protobuf.Enum enums = 5; - */ - private $enums; - /** - * Additional API documentation. - * - * Generated from protobuf field .google.api.Documentation documentation = 6; - */ - protected $documentation = null; - /** - * API backend configuration. - * - * Generated from protobuf field .google.api.Backend backend = 8; - */ - protected $backend = null; - /** - * HTTP configuration. - * - * Generated from protobuf field .google.api.Http http = 9; - */ - protected $http = null; - /** - * Quota configuration. - * - * Generated from protobuf field .google.api.Quota quota = 10; - */ - protected $quota = null; - /** - * Auth configuration. - * - * Generated from protobuf field .google.api.Authentication authentication = 11; - */ - protected $authentication = null; - /** - * Context configuration. - * - * Generated from protobuf field .google.api.Context context = 12; - */ - protected $context = null; - /** - * Configuration controlling usage of this service. - * - * Generated from protobuf field .google.api.Usage usage = 15; - */ - 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 repeated .google.api.Endpoint endpoints = 18; - */ - private $endpoints; - /** - * Configuration for the service control plane. - * - * Generated from protobuf field .google.api.Control control = 21; - */ - protected $control = null; - /** - * Defines the logs used by this service. - * - * Generated from protobuf field repeated .google.api.LogDescriptor logs = 23; - */ - private $logs; - /** - * Defines the metrics used by this service. - * - * Generated from protobuf field repeated .google.api.MetricDescriptor metrics = 24; - */ - 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 repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25; - */ - private $monitored_resources; - /** - * Billing configuration. - * - * Generated from protobuf field .google.api.Billing billing = 26; - */ - protected $billing = null; - /** - * Logging configuration. - * - * Generated from protobuf field .google.api.Logging logging = 27; - */ - protected $logging = null; - /** - * Monitoring configuration. - * - * Generated from protobuf field .google.api.Monitoring monitoring = 28; - */ - protected $monitoring = null; - /** - * System parameter configuration. - * - * Generated from protobuf field .google.api.SystemParameters system_parameters = 29; - */ - protected $system_parameters = null; - /** - * Output only. The source information for this configuration if available. - * - * Generated from protobuf field .google.api.SourceInfo source_info = 37; - */ - 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 .google.api.Publishing publishing = 45; - */ - 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 .google.protobuf.UInt32Value config_version = 20; - */ - 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 string name = 1; - * @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 string name = 1; - * @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 string title = 2; - * @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 string title = 2; - * @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 string producer_project_id = 22; - * @return string - */ - public function getProducerProjectId() - { - return $this->producer_project_id; - } - - /** - * The Google project that owns this service. - * - * Generated from protobuf field string producer_project_id = 22; - * @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 string id = 33; - * @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 string id = 33; - * @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 repeated .google.protobuf.Api apis = 3; - * @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 repeated .google.protobuf.Api apis = 3; - * @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 repeated .google.protobuf.Type types = 4; - * @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 repeated .google.protobuf.Type types = 4; - * @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 repeated .google.protobuf.Enum enums = 5; - * @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 repeated .google.protobuf.Enum enums = 5; - * @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 .google.api.Documentation documentation = 6; - * @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 .google.api.Documentation documentation = 6; - * @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 .google.api.Backend backend = 8; - * @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 .google.api.Backend backend = 8; - * @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 .google.api.Http http = 9; - * @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 .google.api.Http http = 9; - * @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 .google.api.Quota quota = 10; - * @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 .google.api.Quota quota = 10; - * @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 .google.api.Authentication authentication = 11; - * @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 .google.api.Authentication authentication = 11; - * @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 .google.api.Context context = 12; - * @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 .google.api.Context context = 12; - * @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 .google.api.Usage usage = 15; - * @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 .google.api.Usage usage = 15; - * @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 repeated .google.api.Endpoint endpoints = 18; - * @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 repeated .google.api.Endpoint endpoints = 18; - * @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 .google.api.Control control = 21; - * @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 .google.api.Control control = 21; - * @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 repeated .google.api.LogDescriptor logs = 23; - * @return RepeatedField<\Google\Api\LogDescriptor> - */ - public function getLogs() - { - return $this->logs; - } - - /** - * Defines the logs used by this service. - * - * Generated from protobuf field repeated .google.api.LogDescriptor logs = 23; - * @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 repeated .google.api.MetricDescriptor metrics = 24; - * @return RepeatedField<\Google\Api\MetricDescriptor> - */ - public function getMetrics() - { - return $this->metrics; - } - - /** - * Defines the metrics used by this service. - * - * Generated from protobuf field repeated .google.api.MetricDescriptor metrics = 24; - * @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 repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25; - * @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 repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25; - * @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 .google.api.Billing billing = 26; - * @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 .google.api.Billing billing = 26; - * @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 .google.api.Logging logging = 27; - * @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 .google.api.Logging logging = 27; - * @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 .google.api.Monitoring monitoring = 28; - * @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 .google.api.Monitoring monitoring = 28; - * @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 .google.api.SystemParameters system_parameters = 29; - * @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 .google.api.SystemParameters system_parameters = 29; - * @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 .google.api.SourceInfo source_info = 37; - * @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 .google.api.SourceInfo source_info = 37; - * @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 .google.api.Publishing publishing = 45; - * @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 .google.api.Publishing publishing = 45; - * @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 .google.protobuf.UInt32Value config_version = 20; - * @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 getConfigVersion() - - * Obsolete. Do not use. - * This field has no semantic meaning. The service config compiler always - * sets this field to `3`. - * - * Generated from protobuf field .google.protobuf.UInt32Value config_version = 20; - * @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 .google.protobuf.UInt32Value config_version = 20; - * @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 .google.protobuf.UInt32Value config_version = 20; - * @param int|null $var - * @return $this - */ - public function setConfigVersionUnwrapped($var) - { - $this->writeWrapperValue("config_version", $var); - return $this;} - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/SourceInfo.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/SourceInfo.php deleted file mode 100644 index c97ca068abce..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/SourceInfo.php +++ /dev/null @@ -1,67 +0,0 @@ -google.api.SourceInfo - */ -class SourceInfo extends \Google\Protobuf\Internal\Message -{ - /** - * All files used during config generation. - * - * Generated from protobuf field repeated .google.protobuf.Any source_files = 1; - */ - private $source_files; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Any[] $source_files - * All files used during config generation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\SourceInfo::initOnce(); - parent::__construct($data); - } - - /** - * All files used during config generation. - * - * Generated from protobuf field repeated .google.protobuf.Any source_files = 1; - * @return RepeatedField<\Google\Protobuf\Any> - */ - public function getSourceFiles() - { - return $this->source_files; - } - - /** - * All files used during config generation. - * - * Generated from protobuf field repeated .google.protobuf.Any source_files = 1; - * @param \Google\Protobuf\Any[] $var - * @return $this - */ - public function setSourceFiles($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Any::class); - $this->source_files = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/SystemParameter.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/SystemParameter.php deleted file mode 100644 index b8c30aa23950..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/SystemParameter.php +++ /dev/null @@ -1,145 +0,0 @@ -google.api.SystemParameter - */ -class SystemParameter extends \Google\Protobuf\Internal\Message -{ - /** - * Define the name of the parameter, such as "api_key" . It is case sensitive. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Define the HTTP header name to use for the parameter. It is case - * insensitive. - * - * Generated from protobuf field string http_header = 2; - */ - protected $http_header = ''; - /** - * Define the URL query parameter name to use for the parameter. It is case - * sensitive. - * - * Generated from protobuf field string url_query_parameter = 3; - */ - protected $url_query_parameter = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Define the name of the parameter, such as "api_key" . It is case sensitive. - * @type string $http_header - * Define the HTTP header name to use for the parameter. It is case - * insensitive. - * @type string $url_query_parameter - * Define the URL query parameter name to use for the parameter. It is case - * sensitive. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\SystemParameter::initOnce(); - parent::__construct($data); - } - - /** - * Define the name of the parameter, such as "api_key" . It is case sensitive. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Define the name of the parameter, such as "api_key" . It is case sensitive. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Define the HTTP header name to use for the parameter. It is case - * insensitive. - * - * Generated from protobuf field string http_header = 2; - * @return string - */ - public function getHttpHeader() - { - return $this->http_header; - } - - /** - * Define the HTTP header name to use for the parameter. It is case - * insensitive. - * - * Generated from protobuf field string http_header = 2; - * @param string $var - * @return $this - */ - public function setHttpHeader($var) - { - GPBUtil::checkString($var, True); - $this->http_header = $var; - - return $this; - } - - /** - * Define the URL query parameter name to use for the parameter. It is case - * sensitive. - * - * Generated from protobuf field string url_query_parameter = 3; - * @return string - */ - public function getUrlQueryParameter() - { - return $this->url_query_parameter; - } - - /** - * Define the URL query parameter name to use for the parameter. It is case - * sensitive. - * - * Generated from protobuf field string url_query_parameter = 3; - * @param string $var - * @return $this - */ - public function setUrlQueryParameter($var) - { - GPBUtil::checkString($var, True); - $this->url_query_parameter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/SystemParameterRule.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/SystemParameterRule.php deleted file mode 100644 index ee62ecfc8335..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/SystemParameterRule.php +++ /dev/null @@ -1,130 +0,0 @@ -google.api.SystemParameterRule - */ -class SystemParameterRule extends \Google\Protobuf\Internal\Message -{ - /** - * Selects the methods to which this rule applies. Use '*' to indicate all - * methods in all APIs. - * Refer to [selector][google.api.DocumentationRule.selector] for syntax - * details. - * - * Generated from protobuf field string selector = 1; - */ - protected $selector = ''; - /** - * Define parameters. Multiple names may be defined for a parameter. - * For a given method call, only one of them should be used. If multiple - * names are used the behavior is implementation-dependent. - * If none of the specified names are present the behavior is - * parameter-dependent. - * - * Generated from protobuf field repeated .google.api.SystemParameter parameters = 2; - */ - private $parameters; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $selector - * Selects the methods to which this rule applies. Use '*' to indicate all - * methods in all APIs. - * Refer to [selector][google.api.DocumentationRule.selector] for syntax - * details. - * @type \Google\Api\SystemParameter[] $parameters - * Define parameters. Multiple names may be defined for a parameter. - * For a given method call, only one of them should be used. If multiple - * names are used the behavior is implementation-dependent. - * If none of the specified names are present the behavior is - * parameter-dependent. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\SystemParameter::initOnce(); - parent::__construct($data); - } - - /** - * Selects the methods to which this rule applies. Use '*' to indicate all - * methods in all APIs. - * Refer to [selector][google.api.DocumentationRule.selector] for syntax - * details. - * - * Generated from protobuf field string selector = 1; - * @return string - */ - public function getSelector() - { - return $this->selector; - } - - /** - * Selects the methods to which this rule applies. Use '*' to indicate all - * methods in all APIs. - * Refer to [selector][google.api.DocumentationRule.selector] for syntax - * details. - * - * Generated from protobuf field string selector = 1; - * @param string $var - * @return $this - */ - public function setSelector($var) - { - GPBUtil::checkString($var, True); - $this->selector = $var; - - return $this; - } - - /** - * Define parameters. Multiple names may be defined for a parameter. - * For a given method call, only one of them should be used. If multiple - * names are used the behavior is implementation-dependent. - * If none of the specified names are present the behavior is - * parameter-dependent. - * - * Generated from protobuf field repeated .google.api.SystemParameter parameters = 2; - * @return RepeatedField<\Google\Api\SystemParameter> - */ - public function getParameters() - { - return $this->parameters; - } - - /** - * Define parameters. Multiple names may be defined for a parameter. - * For a given method call, only one of them should be used. If multiple - * names are used the behavior is implementation-dependent. - * If none of the specified names are present the behavior is - * parameter-dependent. - * - * Generated from protobuf field repeated .google.api.SystemParameter parameters = 2; - * @param \Google\Api\SystemParameter[] $var - * @return $this - */ - public function setParameters($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\SystemParameter::class); - $this->parameters = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/SystemParameters.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/SystemParameters.php deleted file mode 100644 index 1b51eb267f85..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/SystemParameters.php +++ /dev/null @@ -1,155 +0,0 @@ -google.api.SystemParameters - */ -class SystemParameters extends \Google\Protobuf\Internal\Message -{ - /** - * Define system parameters. - * The parameters defined here will override the default parameters - * implemented by the system. If this field is missing from the service - * config, default system parameters will be used. Default system parameters - * and names is implementation-dependent. - * Example: define api key for all methods - * system_parameters - * rules: - * - selector: "*" - * parameters: - * - name: api_key - * url_query_parameter: api_key - * Example: define 2 api key names for a specific method. - * system_parameters - * rules: - * - selector: "/ListShelves" - * parameters: - * - name: api_key - * http_header: Api-Key1 - * - name: api_key - * http_header: Api-Key2 - * **NOTE:** All service configuration rules follow "last one wins" order. - * - * Generated from protobuf field repeated .google.api.SystemParameterRule rules = 1; - */ - private $rules; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Api\SystemParameterRule[] $rules - * Define system parameters. - * The parameters defined here will override the default parameters - * implemented by the system. If this field is missing from the service - * config, default system parameters will be used. Default system parameters - * and names is implementation-dependent. - * Example: define api key for all methods - * system_parameters - * rules: - * - selector: "*" - * parameters: - * - name: api_key - * url_query_parameter: api_key - * Example: define 2 api key names for a specific method. - * system_parameters - * rules: - * - selector: "/ListShelves" - * parameters: - * - name: api_key - * http_header: Api-Key1 - * - name: api_key - * http_header: Api-Key2 - * **NOTE:** All service configuration rules follow "last one wins" order. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\SystemParameter::initOnce(); - parent::__construct($data); - } - - /** - * Define system parameters. - * The parameters defined here will override the default parameters - * implemented by the system. If this field is missing from the service - * config, default system parameters will be used. Default system parameters - * and names is implementation-dependent. - * Example: define api key for all methods - * system_parameters - * rules: - * - selector: "*" - * parameters: - * - name: api_key - * url_query_parameter: api_key - * Example: define 2 api key names for a specific method. - * system_parameters - * rules: - * - selector: "/ListShelves" - * parameters: - * - name: api_key - * http_header: Api-Key1 - * - name: api_key - * http_header: Api-Key2 - * **NOTE:** All service configuration rules follow "last one wins" order. - * - * Generated from protobuf field repeated .google.api.SystemParameterRule rules = 1; - * @return RepeatedField<\Google\Api\SystemParameterRule> - */ - public function getRules() - { - return $this->rules; - } - - /** - * Define system parameters. - * The parameters defined here will override the default parameters - * implemented by the system. If this field is missing from the service - * config, default system parameters will be used. Default system parameters - * and names is implementation-dependent. - * Example: define api key for all methods - * system_parameters - * rules: - * - selector: "*" - * parameters: - * - name: api_key - * url_query_parameter: api_key - * Example: define 2 api key names for a specific method. - * system_parameters - * rules: - * - selector: "/ListShelves" - * parameters: - * - name: api_key - * http_header: Api-Key1 - * - name: api_key - * http_header: Api-Key2 - * **NOTE:** All service configuration rules follow "last one wins" order. - * - * Generated from protobuf field repeated .google.api.SystemParameterRule rules = 1; - * @param \Google\Api\SystemParameterRule[] $var - * @return $this - */ - public function setRules($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\SystemParameterRule::class); - $this->rules = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/TypeReference.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/TypeReference.php deleted file mode 100644 index 5f190607061a..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/TypeReference.php +++ /dev/null @@ -1,91 +0,0 @@ -google.api.TypeReference - */ -class TypeReference extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the type that the annotated, generic field may represent. - * If the type is in the same protobuf package, the value can be the simple - * message name e.g., `"MyMessage"`. Otherwise, the value must be the - * fully-qualified message name e.g., `"google.library.v1.Book"`. - * If the type(s) are unknown to the service (e.g. the field accepts generic - * user input), use the wildcard `"*"` to denote this behavior. - * See [AIP-202](https://google.aip.dev/202#type-references) for more details. - * - * Generated from protobuf field string type_name = 1; - */ - protected $type_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $type_name - * The name of the type that the annotated, generic field may represent. - * If the type is in the same protobuf package, the value can be the simple - * message name e.g., `"MyMessage"`. Otherwise, the value must be the - * fully-qualified message name e.g., `"google.library.v1.Book"`. - * If the type(s) are unknown to the service (e.g. the field accepts generic - * user input), use the wildcard `"*"` to denote this behavior. - * See [AIP-202](https://google.aip.dev/202#type-references) for more details. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\FieldInfo::initOnce(); - parent::__construct($data); - } - - /** - * The name of the type that the annotated, generic field may represent. - * If the type is in the same protobuf package, the value can be the simple - * message name e.g., `"MyMessage"`. Otherwise, the value must be the - * fully-qualified message name e.g., `"google.library.v1.Book"`. - * If the type(s) are unknown to the service (e.g. the field accepts generic - * user input), use the wildcard `"*"` to denote this behavior. - * See [AIP-202](https://google.aip.dev/202#type-references) for more details. - * - * Generated from protobuf field string type_name = 1; - * @return string - */ - public function getTypeName() - { - return $this->type_name; - } - - /** - * The name of the type that the annotated, generic field may represent. - * If the type is in the same protobuf package, the value can be the simple - * message name e.g., `"MyMessage"`. Otherwise, the value must be the - * fully-qualified message name e.g., `"google.library.v1.Book"`. - * If the type(s) are unknown to the service (e.g. the field accepts generic - * user input), use the wildcard `"*"` to denote this behavior. - * See [AIP-202](https://google.aip.dev/202#type-references) for more details. - * - * Generated from protobuf field string type_name = 1; - * @param string $var - * @return $this - */ - public function setTypeName($var) - { - GPBUtil::checkString($var, True); - $this->type_name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Usage.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Usage.php deleted file mode 100644 index e5d7e71c46b6..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Usage.php +++ /dev/null @@ -1,191 +0,0 @@ -google.api.Usage - */ -class Usage extends \Google\Protobuf\Internal\Message -{ - /** - * Requirements that must be satisfied before a consumer project can use the - * service. Each requirement is of the form /; - * for example 'serviceusage.googleapis.com/billing-enabled'. - * For Google APIs, a Terms of Service requirement must be included here. - * Google Cloud APIs must include "serviceusage.googleapis.com/tos/cloud". - * Other Google APIs should include - * "serviceusage.googleapis.com/tos/universal". Additional ToS can be - * included based on the business needs. - * - * Generated from protobuf field repeated string requirements = 1; - */ - private $requirements; - /** - * A list of usage rules that apply to individual API methods. - * **NOTE:** All service configuration rules follow "last one wins" order. - * - * Generated from protobuf field repeated .google.api.UsageRule rules = 6; - */ - private $rules; - /** - * The full resource name of a channel used for sending notifications to the - * service producer. - * Google Service Management currently only supports - * [Google Cloud Pub/Sub](https://cloud.google.com/pubsub) as a notification - * channel. To use Google Cloud Pub/Sub as the channel, this must be the name - * of a Cloud Pub/Sub topic that uses the Cloud Pub/Sub topic name format - * documented in https://cloud.google.com/pubsub/docs/overview. - * - * Generated from protobuf field string producer_notification_channel = 7; - */ - protected $producer_notification_channel = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string[] $requirements - * Requirements that must be satisfied before a consumer project can use the - * service. Each requirement is of the form /; - * for example 'serviceusage.googleapis.com/billing-enabled'. - * For Google APIs, a Terms of Service requirement must be included here. - * Google Cloud APIs must include "serviceusage.googleapis.com/tos/cloud". - * Other Google APIs should include - * "serviceusage.googleapis.com/tos/universal". Additional ToS can be - * included based on the business needs. - * @type \Google\Api\UsageRule[] $rules - * A list of usage rules that apply to individual API methods. - * **NOTE:** All service configuration rules follow "last one wins" order. - * @type string $producer_notification_channel - * The full resource name of a channel used for sending notifications to the - * service producer. - * Google Service Management currently only supports - * [Google Cloud Pub/Sub](https://cloud.google.com/pubsub) as a notification - * channel. To use Google Cloud Pub/Sub as the channel, this must be the name - * of a Cloud Pub/Sub topic that uses the Cloud Pub/Sub topic name format - * documented in https://cloud.google.com/pubsub/docs/overview. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Usage::initOnce(); - parent::__construct($data); - } - - /** - * Requirements that must be satisfied before a consumer project can use the - * service. Each requirement is of the form /; - * for example 'serviceusage.googleapis.com/billing-enabled'. - * For Google APIs, a Terms of Service requirement must be included here. - * Google Cloud APIs must include "serviceusage.googleapis.com/tos/cloud". - * Other Google APIs should include - * "serviceusage.googleapis.com/tos/universal". Additional ToS can be - * included based on the business needs. - * - * Generated from protobuf field repeated string requirements = 1; - * @return RepeatedField - */ - public function getRequirements() - { - return $this->requirements; - } - - /** - * Requirements that must be satisfied before a consumer project can use the - * service. Each requirement is of the form /; - * for example 'serviceusage.googleapis.com/billing-enabled'. - * For Google APIs, a Terms of Service requirement must be included here. - * Google Cloud APIs must include "serviceusage.googleapis.com/tos/cloud". - * Other Google APIs should include - * "serviceusage.googleapis.com/tos/universal". Additional ToS can be - * included based on the business needs. - * - * Generated from protobuf field repeated string requirements = 1; - * @param string[] $var - * @return $this - */ - public function setRequirements($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->requirements = $arr; - - return $this; - } - - /** - * A list of usage rules that apply to individual API methods. - * **NOTE:** All service configuration rules follow "last one wins" order. - * - * Generated from protobuf field repeated .google.api.UsageRule rules = 6; - * @return RepeatedField<\Google\Api\UsageRule> - */ - public function getRules() - { - return $this->rules; - } - - /** - * A list of usage rules that apply to individual API methods. - * **NOTE:** All service configuration rules follow "last one wins" order. - * - * Generated from protobuf field repeated .google.api.UsageRule rules = 6; - * @param \Google\Api\UsageRule[] $var - * @return $this - */ - public function setRules($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\UsageRule::class); - $this->rules = $arr; - - return $this; - } - - /** - * The full resource name of a channel used for sending notifications to the - * service producer. - * Google Service Management currently only supports - * [Google Cloud Pub/Sub](https://cloud.google.com/pubsub) as a notification - * channel. To use Google Cloud Pub/Sub as the channel, this must be the name - * of a Cloud Pub/Sub topic that uses the Cloud Pub/Sub topic name format - * documented in https://cloud.google.com/pubsub/docs/overview. - * - * Generated from protobuf field string producer_notification_channel = 7; - * @return string - */ - public function getProducerNotificationChannel() - { - return $this->producer_notification_channel; - } - - /** - * The full resource name of a channel used for sending notifications to the - * service producer. - * Google Service Management currently only supports - * [Google Cloud Pub/Sub](https://cloud.google.com/pubsub) as a notification - * channel. To use Google Cloud Pub/Sub as the channel, this must be the name - * of a Cloud Pub/Sub topic that uses the Cloud Pub/Sub topic name format - * documented in https://cloud.google.com/pubsub/docs/overview. - * - * Generated from protobuf field string producer_notification_channel = 7; - * @param string $var - * @return $this - */ - public function setProducerNotificationChannel($var) - { - GPBUtil::checkString($var, True); - $this->producer_notification_channel = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/UsageRule.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/UsageRule.php deleted file mode 100644 index 73fac2210f68..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/UsageRule.php +++ /dev/null @@ -1,175 +0,0 @@ -google.api.UsageRule - */ -class UsageRule extends \Google\Protobuf\Internal\Message -{ - /** - * Selects the methods to which this rule applies. Use '*' to indicate all - * methods in all APIs. - * Refer to [selector][google.api.DocumentationRule.selector] for syntax - * details. - * - * Generated from protobuf field string selector = 1; - */ - protected $selector = ''; - /** - * Use this rule to configure unregistered calls for the service. Unregistered - * calls are calls that do not contain consumer project identity. - * (Example: calls that do not contain an API key). - * WARNING: By default, API methods do not allow unregistered calls, and each - * method call must be identified by a consumer project identity. - * - * Generated from protobuf field bool allow_unregistered_calls = 2; - */ - protected $allow_unregistered_calls = false; - /** - * If true, the selected method should skip service control and the control - * plane features, such as quota and billing, will not be available. - * This flag is used by Google Cloud Endpoints to bypass checks for internal - * methods, such as service health check methods. - * - * Generated from protobuf field bool skip_service_control = 3; - */ - protected $skip_service_control = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $selector - * Selects the methods to which this rule applies. Use '*' to indicate all - * methods in all APIs. - * Refer to [selector][google.api.DocumentationRule.selector] for syntax - * details. - * @type bool $allow_unregistered_calls - * Use this rule to configure unregistered calls for the service. Unregistered - * calls are calls that do not contain consumer project identity. - * (Example: calls that do not contain an API key). - * WARNING: By default, API methods do not allow unregistered calls, and each - * method call must be identified by a consumer project identity. - * @type bool $skip_service_control - * If true, the selected method should skip service control and the control - * plane features, such as quota and billing, will not be available. - * This flag is used by Google Cloud Endpoints to bypass checks for internal - * methods, such as service health check methods. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Usage::initOnce(); - parent::__construct($data); - } - - /** - * Selects the methods to which this rule applies. Use '*' to indicate all - * methods in all APIs. - * Refer to [selector][google.api.DocumentationRule.selector] for syntax - * details. - * - * Generated from protobuf field string selector = 1; - * @return string - */ - public function getSelector() - { - return $this->selector; - } - - /** - * Selects the methods to which this rule applies. Use '*' to indicate all - * methods in all APIs. - * Refer to [selector][google.api.DocumentationRule.selector] for syntax - * details. - * - * Generated from protobuf field string selector = 1; - * @param string $var - * @return $this - */ - public function setSelector($var) - { - GPBUtil::checkString($var, True); - $this->selector = $var; - - return $this; - } - - /** - * Use this rule to configure unregistered calls for the service. Unregistered - * calls are calls that do not contain consumer project identity. - * (Example: calls that do not contain an API key). - * WARNING: By default, API methods do not allow unregistered calls, and each - * method call must be identified by a consumer project identity. - * - * Generated from protobuf field bool allow_unregistered_calls = 2; - * @return bool - */ - public function getAllowUnregisteredCalls() - { - return $this->allow_unregistered_calls; - } - - /** - * Use this rule to configure unregistered calls for the service. Unregistered - * calls are calls that do not contain consumer project identity. - * (Example: calls that do not contain an API key). - * WARNING: By default, API methods do not allow unregistered calls, and each - * method call must be identified by a consumer project identity. - * - * Generated from protobuf field bool allow_unregistered_calls = 2; - * @param bool $var - * @return $this - */ - public function setAllowUnregisteredCalls($var) - { - GPBUtil::checkBool($var); - $this->allow_unregistered_calls = $var; - - return $this; - } - - /** - * If true, the selected method should skip service control and the control - * plane features, such as quota and billing, will not be available. - * This flag is used by Google Cloud Endpoints to bypass checks for internal - * methods, such as service health check methods. - * - * Generated from protobuf field bool skip_service_control = 3; - * @return bool - */ - public function getSkipServiceControl() - { - return $this->skip_service_control; - } - - /** - * If true, the selected method should skip service control and the control - * plane features, such as quota and billing, will not be available. - * This flag is used by Google Cloud Endpoints to bypass checks for internal - * methods, such as service health check methods. - * - * Generated from protobuf field bool skip_service_control = 3; - * @param bool $var - * @return $this - */ - public function setSkipServiceControl($var) - { - GPBUtil::checkBool($var); - $this->skip_service_control = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Visibility.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Visibility.php deleted file mode 100644 index d5292914fc4b..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Visibility.php +++ /dev/null @@ -1,88 +0,0 @@ -google.api.Visibility - */ -class Visibility extends \Google\Protobuf\Internal\Message -{ - /** - * A list of visibility rules that apply to individual API elements. - * **NOTE:** All service configuration rules follow "last one wins" order. - * - * Generated from protobuf field repeated .google.api.VisibilityRule rules = 1; - */ - private $rules; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Api\VisibilityRule[] $rules - * A list of visibility rules that apply to individual API elements. - * **NOTE:** All service configuration rules follow "last one wins" order. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Visibility::initOnce(); - parent::__construct($data); - } - - /** - * A list of visibility rules that apply to individual API elements. - * **NOTE:** All service configuration rules follow "last one wins" order. - * - * Generated from protobuf field repeated .google.api.VisibilityRule rules = 1; - * @return RepeatedField<\Google\Api\VisibilityRule> - */ - public function getRules() - { - return $this->rules; - } - - /** - * A list of visibility rules that apply to individual API elements. - * **NOTE:** All service configuration rules follow "last one wins" order. - * - * Generated from protobuf field repeated .google.api.VisibilityRule rules = 1; - * @param \Google\Api\VisibilityRule[] $var - * @return $this - */ - public function setRules($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\VisibilityRule::class); - $this->rules = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/VisibilityRule.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/VisibilityRule.php deleted file mode 100644 index 74bdc3e66882..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/VisibilityRule.php +++ /dev/null @@ -1,150 +0,0 @@ -google.api.VisibilityRule - */ -class VisibilityRule extends \Google\Protobuf\Internal\Message -{ - /** - * Selects methods, messages, fields, enums, etc. to which this rule applies. - * Refer to [selector][google.api.DocumentationRule.selector] for syntax - * details. - * - * Generated from protobuf field string selector = 1; - */ - protected $selector = ''; - /** - * A comma-separated list of visibility labels that apply to the `selector`. - * Any of the listed labels can be used to grant the visibility. - * If a rule has multiple labels, removing one of the labels but not all of - * them can break clients. - * Example: - * visibility: - * rules: - * - selector: google.calendar.Calendar.EnhancedSearch - * restriction: INTERNAL, PREVIEW - * Removing INTERNAL from this restriction will break clients that rely on - * this method and only had access to it through INTERNAL. - * - * Generated from protobuf field string restriction = 2; - */ - protected $restriction = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $selector - * Selects methods, messages, fields, enums, etc. to which this rule applies. - * Refer to [selector][google.api.DocumentationRule.selector] for syntax - * details. - * @type string $restriction - * A comma-separated list of visibility labels that apply to the `selector`. - * Any of the listed labels can be used to grant the visibility. - * If a rule has multiple labels, removing one of the labels but not all of - * them can break clients. - * Example: - * visibility: - * rules: - * - selector: google.calendar.Calendar.EnhancedSearch - * restriction: INTERNAL, PREVIEW - * Removing INTERNAL from this restriction will break clients that rely on - * this method and only had access to it through INTERNAL. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Visibility::initOnce(); - parent::__construct($data); - } - - /** - * Selects methods, messages, fields, enums, etc. to which this rule applies. - * Refer to [selector][google.api.DocumentationRule.selector] for syntax - * details. - * - * Generated from protobuf field string selector = 1; - * @return string - */ - public function getSelector() - { - return $this->selector; - } - - /** - * Selects methods, messages, fields, enums, etc. to which this rule applies. - * Refer to [selector][google.api.DocumentationRule.selector] for syntax - * details. - * - * Generated from protobuf field string selector = 1; - * @param string $var - * @return $this - */ - public function setSelector($var) - { - GPBUtil::checkString($var, True); - $this->selector = $var; - - return $this; - } - - /** - * A comma-separated list of visibility labels that apply to the `selector`. - * Any of the listed labels can be used to grant the visibility. - * If a rule has multiple labels, removing one of the labels but not all of - * them can break clients. - * Example: - * visibility: - * rules: - * - selector: google.calendar.Calendar.EnhancedSearch - * restriction: INTERNAL, PREVIEW - * Removing INTERNAL from this restriction will break clients that rely on - * this method and only had access to it through INTERNAL. - * - * Generated from protobuf field string restriction = 2; - * @return string - */ - public function getRestriction() - { - return $this->restriction; - } - - /** - * A comma-separated list of visibility labels that apply to the `selector`. - * Any of the listed labels can be used to grant the visibility. - * If a rule has multiple labels, removing one of the labels but not all of - * them can break clients. - * Example: - * visibility: - * rules: - * - selector: google.calendar.Calendar.EnhancedSearch - * restriction: INTERNAL, PREVIEW - * Removing INTERNAL from this restriction will break clients that rely on - * this method and only had access to it through INTERNAL. - * - * Generated from protobuf field string restriction = 2; - * @param string $var - * @return $this - */ - public function setRestriction($var) - { - GPBUtil::checkString($var, True); - $this->restriction = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/extendedoperations/proto/src/GPBMetadata/Google/Cloud/ExtendedOperations.php b/owl-bot-staging/CommonProtos/extendedoperations/proto/src/GPBMetadata/Google/Cloud/ExtendedOperations.php deleted file mode 100644 index 2f09c858bb0e..000000000000 --- a/owl-bot-staging/CommonProtos/extendedoperations/proto/src/GPBMetadata/Google/Cloud/ExtendedOperations.php +++ /dev/null @@ -1,24 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xBF\x02\x0A&google/cloud/extended_operations.proto\x12\x0Cgoogle.cloud\x1A google/protobuf/descriptor.proto*b\x0A\x18OperationResponseMapping\x12\x0D\x0A\x09UNDEFINED\x10\x00\x12\x08\x0A\x04NAME\x10\x01\x12\x0A\x0A\x06STATUS\x10\x02\x12\x0E\x0A\x0AERROR_CODE\x10\x03\x12\x11\x0A\x0DERROR_MESSAGE\x10\x04By\x0A\x10com.google.cloudB\x17ExtendedOperationsProtoP\x01ZCgoogle.golang.org/genproto/googleapis/cloud/extendedops;extendedops\xA2\x02\x04GAPIb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/extendedoperations/proto/src/Google/Cloud/OperationResponseMapping.php b/owl-bot-staging/CommonProtos/extendedoperations/proto/src/Google/Cloud/OperationResponseMapping.php deleted file mode 100644 index c21c294e7853..000000000000 --- a/owl-bot-staging/CommonProtos/extendedoperations/proto/src/Google/Cloud/OperationResponseMapping.php +++ /dev/null @@ -1,86 +0,0 @@ -google.cloud.OperationResponseMapping - */ -class OperationResponseMapping -{ - /** - * Do not use. - * - * Generated from protobuf enum UNDEFINED = 0; - */ - const UNDEFINED = 0; - /** - * A field in an API-specific (custom) Operation object which carries the same - * meaning as google.longrunning.Operation.name. - * - * Generated from protobuf enum NAME = 1; - */ - const NAME = 1; - /** - * A field in an API-specific (custom) Operation object which carries the same - * meaning as google.longrunning.Operation.done. If the annotated field is of - * an enum type, `annotated_field_name == EnumType.DONE` semantics should be - * equivalent to `Operation.done == true`. If the annotated field is of type - * boolean, then it should follow the same semantics as Operation.done. - * Otherwise, a non-empty value should be treated as `Operation.done == true`. - * - * Generated from protobuf enum STATUS = 2; - */ - const STATUS = 2; - /** - * A field in an API-specific (custom) Operation object which carries the same - * meaning as google.longrunning.Operation.error.code. - * - * Generated from protobuf enum ERROR_CODE = 3; - */ - const ERROR_CODE = 3; - /** - * A field in an API-specific (custom) Operation object which carries the same - * meaning as google.longrunning.Operation.error.message. - * - * Generated from protobuf enum ERROR_MESSAGE = 4; - */ - const ERROR_MESSAGE = 4; - - private static $valueToName = [ - self::UNDEFINED => 'UNDEFINED', - self::NAME => 'NAME', - self::STATUS => 'STATUS', - self::ERROR_CODE => 'ERROR_CODE', - self::ERROR_MESSAGE => 'ERROR_MESSAGE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/CommonProtos/iam/proto/src/GPBMetadata/Google/Iam/V1/IamPolicy.php b/owl-bot-staging/CommonProtos/iam/proto/src/GPBMetadata/Google/Iam/V1/IamPolicy.php deleted file mode 100644 index 3c8924647d4b..000000000000 --- a/owl-bot-staging/CommonProtos/iam/proto/src/GPBMetadata/Google/Iam/V1/IamPolicy.php +++ /dev/null @@ -1,31 +0,0 @@ -internalAddGeneratedFile( - "\x0A\x9B\x09\x0A\x1Egoogle/iam/v1/iam_policy.proto\x12\x0Dgoogle.iam.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A\x1Bgoogle/iam/v1/options.proto\x1A\x1Agoogle/iam/v1/policy.proto\x1A google/protobuf/field_mask.proto\"\x8F\x01\x0A\x13SetIamPolicyRequest\x12\x1B\x0A\x08resource\x18\x01 \x01(\x09B\x09\xE0A\x02\xFAA\x03\x0A\x01*\x12*\x0A\x06policy\x18\x02 \x01(\x0B2\x15.google.iam.v1.PolicyB\x03\xE0A\x02\x12/\x0A\x0Bupdate_mask\x18\x03 \x01(\x0B2\x1A.google.protobuf.FieldMask\"d\x0A\x13GetIamPolicyRequest\x12\x1B\x0A\x08resource\x18\x01 \x01(\x09B\x09\xE0A\x02\xFAA\x03\x0A\x01*\x120\x0A\x07options\x18\x02 \x01(\x0B2\x1F.google.iam.v1.GetPolicyOptions\"R\x0A\x19TestIamPermissionsRequest\x12\x1B\x0A\x08resource\x18\x01 \x01(\x09B\x09\xE0A\x02\xFAA\x03\x0A\x01*\x12\x18\x0A\x0Bpermissions\x18\x02 \x03(\x09B\x03\xE0A\x02\"1\x0A\x1ATestIamPermissionsResponse\x12\x13\x0A\x0Bpermissions\x18\x01 \x03(\x092\xB4\x03\x0A\x09IAMPolicy\x12t\x0A\x0CSetIamPolicy\x12\".google.iam.v1.SetIamPolicyRequest\x1A\x15.google.iam.v1.Policy\")\x82\xD3\xE4\x93\x02#\"\x1E/v1/{resource=**}:setIamPolicy:\x01*\x12t\x0A\x0CGetIamPolicy\x12\".google.iam.v1.GetIamPolicyRequest\x1A\x15.google.iam.v1.Policy\")\x82\xD3\xE4\x93\x02#\"\x1E/v1/{resource=**}:getIamPolicy:\x01*\x12\x9A\x01\x0A\x12TestIamPermissions\x12(.google.iam.v1.TestIamPermissionsRequest\x1A).google.iam.v1.TestIamPermissionsResponse\"/\x82\xD3\xE4\x93\x02)\"\$/v1/{resource=**}:testIamPermissions:\x01*\x1A\x1E\xCAA\x1Biam-meta-api.googleapis.comB|\x0A\x11com.google.iam.v1B\x0EIamPolicyProtoP\x01Z)cloud.google.com/go/iam/apiv1/iampb;iampb\xAA\x02\x13Google.Cloud.Iam.V1\xCA\x02\x13Google\\Cloud\\Iam\\V1b\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/iam/proto/src/GPBMetadata/Google/Iam/V1/Logging/AuditData.php b/owl-bot-staging/CommonProtos/iam/proto/src/GPBMetadata/Google/Iam/V1/Logging/AuditData.php deleted file mode 100644 index 93ae1a0279ec..000000000000 --- a/owl-bot-staging/CommonProtos/iam/proto/src/GPBMetadata/Google/Iam/V1/Logging/AuditData.php +++ /dev/null @@ -1,25 +0,0 @@ -internalAddGeneratedFile( - "\x0A\x8F\x02\x0A&google/iam/v1/logging/audit_data.proto\x12\x15google.iam.v1.logging\"=\x0A\x09AuditData\x120\x0A\x0Cpolicy_delta\x18\x02 \x01(\x0B2\x1A.google.iam.v1.PolicyDeltaB\x86\x01\x0A\x19com.google.iam.v1.loggingB\x0EAuditDataProtoP\x01Z9cloud.google.com/go/iam/apiv1/logging/loggingpb;loggingpb\xAA\x02\x1BGoogle.Cloud.Iam.V1.Loggingb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/iam/proto/src/GPBMetadata/Google/Iam/V1/Options.php b/owl-bot-staging/CommonProtos/iam/proto/src/GPBMetadata/Google/Iam/V1/Options.php deleted file mode 100644 index c5cfe44b6d86..000000000000 --- a/owl-bot-staging/CommonProtos/iam/proto/src/GPBMetadata/Google/Iam/V1/Options.php +++ /dev/null @@ -1,24 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xE9\x01\x0A\x1Bgoogle/iam/v1/options.proto\x12\x0Dgoogle.iam.v1\"4\x0A\x10GetPolicyOptions\x12 \x0A\x18requested_policy_version\x18\x01 \x01(\x05B}\x0A\x11com.google.iam.v1B\x0COptionsProtoP\x01Z)cloud.google.com/go/iam/apiv1/iampb;iampb\xF8\x01\x01\xAA\x02\x13Google.Cloud.Iam.V1\xCA\x02\x13Google\\Cloud\\Iam\\V1b\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/iam/proto/src/GPBMetadata/Google/Iam/V1/Policy.php b/owl-bot-staging/CommonProtos/iam/proto/src/GPBMetadata/Google/Iam/V1/Policy.php deleted file mode 100644 index 8d23aec66987..000000000000 --- a/owl-bot-staging/CommonProtos/iam/proto/src/GPBMetadata/Google/Iam/V1/Policy.php +++ /dev/null @@ -1,25 +0,0 @@ -internalAddGeneratedFile( - "\x0A\x9F\x09\x0A\x1Agoogle/iam/v1/policy.proto\x12\x0Dgoogle.iam.v1\"\x84\x01\x0A\x06Policy\x12\x0F\x0A\x07version\x18\x01 \x01(\x05\x12(\x0A\x08bindings\x18\x04 \x03(\x0B2\x16.google.iam.v1.Binding\x121\x0A\x0Daudit_configs\x18\x06 \x03(\x0B2\x1A.google.iam.v1.AuditConfig\x12\x0C\x0A\x04etag\x18\x03 \x01(\x0C\"N\x0A\x07Binding\x12\x0C\x0A\x04role\x18\x01 \x01(\x09\x12\x0F\x0A\x07members\x18\x02 \x03(\x09\x12\$\x0A\x09condition\x18\x03 \x01(\x0B2\x11.google.type.Expr\"X\x0A\x0BAuditConfig\x12\x0F\x0A\x07service\x18\x01 \x01(\x09\x128\x0A\x11audit_log_configs\x18\x03 \x03(\x0B2\x1D.google.iam.v1.AuditLogConfig\"\xB7\x01\x0A\x0EAuditLogConfig\x127\x0A\x08log_type\x18\x01 \x01(\x0E2%.google.iam.v1.AuditLogConfig.LogType\x12\x18\x0A\x10exempted_members\x18\x02 \x03(\x09\"R\x0A\x07LogType\x12\x18\x0A\x14LOG_TYPE_UNSPECIFIED\x10\x00\x12\x0E\x0A\x0AADMIN_READ\x10\x01\x12\x0E\x0A\x0ADATA_WRITE\x10\x02\x12\x0D\x0A\x09DATA_READ\x10\x03\"\x80\x01\x0A\x0BPolicyDelta\x123\x0A\x0Ebinding_deltas\x18\x01 \x03(\x0B2\x1B.google.iam.v1.BindingDelta\x12<\x0A\x13audit_config_deltas\x18\x02 \x03(\x0B2\x1F.google.iam.v1.AuditConfigDelta\"\xBD\x01\x0A\x0CBindingDelta\x122\x0A\x06action\x18\x01 \x01(\x0E2\".google.iam.v1.BindingDelta.Action\x12\x0C\x0A\x04role\x18\x02 \x01(\x09\x12\x0E\x0A\x06member\x18\x03 \x01(\x09\x12\$\x0A\x09condition\x18\x04 \x01(\x0B2\x11.google.type.Expr\"5\x0A\x06Action\x12\x16\x0A\x12ACTION_UNSPECIFIED\x10\x00\x12\x07\x0A\x03ADD\x10\x01\x12\x0A\x0A\x06REMOVE\x10\x02\"\xBD\x01\x0A\x10AuditConfigDelta\x126\x0A\x06action\x18\x01 \x01(\x0E2&.google.iam.v1.AuditConfigDelta.Action\x12\x0F\x0A\x07service\x18\x02 \x01(\x09\x12\x17\x0A\x0Fexempted_member\x18\x03 \x01(\x09\x12\x10\x0A\x08log_type\x18\x04 \x01(\x09\"5\x0A\x06Action\x12\x16\x0A\x12ACTION_UNSPECIFIED\x10\x00\x12\x07\x0A\x03ADD\x10\x01\x12\x0A\x0A\x06REMOVE\x10\x02B|\x0A\x11com.google.iam.v1B\x0BPolicyProtoP\x01Z)cloud.google.com/go/iam/apiv1/iampb;iampb\xF8\x01\x01\xAA\x02\x13Google.Cloud.Iam.V1\xCA\x02\x13Google\\Cloud\\Iam\\V1b\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/iam/proto/src/GPBMetadata/Google/Iam/V1/ResourcePolicyMember.php b/owl-bot-staging/CommonProtos/iam/proto/src/GPBMetadata/Google/Iam/V1/ResourcePolicyMember.php deleted file mode 100644 index e7eb2e57e0f5..000000000000 --- a/owl-bot-staging/CommonProtos/iam/proto/src/GPBMetadata/Google/Iam/V1/ResourcePolicyMember.php +++ /dev/null @@ -1,25 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xB4\x02\x0A*google/iam/v1/resource_policy_member.proto\x12\x0Dgoogle.iam.v1\"e\x0A\x14ResourcePolicyMember\x12&\x0A\x19iam_policy_name_principal\x18\x01 \x01(\x09B\x03\xE0A\x03\x12%\x0A\x18iam_policy_uid_principal\x18\x02 \x01(\x09B\x03\xE0A\x03B\x87\x01\x0A\x11com.google.iam.v1B\x19ResourcePolicyMemberProtoP\x01Z)cloud.google.com/go/iam/apiv1/iampb;iampb\xAA\x02\x13Google.Cloud.Iam.V1\xCA\x02\x13Google\\Cloud\\Iam\\V1b\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/AuditConfig.php b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/AuditConfig.php deleted file mode 100644 index ac3bee3b3c61..000000000000 --- a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/AuditConfig.php +++ /dev/null @@ -1,155 +0,0 @@ -google.iam.v1.AuditConfig - */ -class AuditConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Specifies a service that will be enabled for audit logging. - * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. - * `allServices` is a special value that covers all services. - * - * Generated from protobuf field string service = 1; - */ - protected $service = ''; - /** - * The configuration for logging of each type of permission. - * - * Generated from protobuf field repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3; - */ - private $audit_log_configs; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $service - * Specifies a service that will be enabled for audit logging. - * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. - * `allServices` is a special value that covers all services. - * @type \Google\Cloud\Iam\V1\AuditLogConfig[] $audit_log_configs - * The configuration for logging of each type of permission. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Iam\V1\Policy::initOnce(); - parent::__construct($data); - } - - /** - * Specifies a service that will be enabled for audit logging. - * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. - * `allServices` is a special value that covers all services. - * - * Generated from protobuf field string service = 1; - * @return string - */ - public function getService() - { - return $this->service; - } - - /** - * Specifies a service that will be enabled for audit logging. - * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. - * `allServices` is a special value that covers all services. - * - * Generated from protobuf field string service = 1; - * @param string $var - * @return $this - */ - public function setService($var) - { - GPBUtil::checkString($var, True); - $this->service = $var; - - return $this; - } - - /** - * The configuration for logging of each type of permission. - * - * Generated from protobuf field repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3; - * @return RepeatedField<\Google\Cloud\Iam\V1\AuditLogConfig> - */ - public function getAuditLogConfigs() - { - return $this->audit_log_configs; - } - - /** - * The configuration for logging of each type of permission. - * - * Generated from protobuf field repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3; - * @param \Google\Cloud\Iam\V1\AuditLogConfig[] $var - * @return $this - */ - public function setAuditLogConfigs($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Iam\V1\AuditLogConfig::class); - $this->audit_log_configs = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/AuditConfigDelta.php b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/AuditConfigDelta.php deleted file mode 100644 index 21a0626812ee..000000000000 --- a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/AuditConfigDelta.php +++ /dev/null @@ -1,202 +0,0 @@ -google.iam.v1.AuditConfigDelta - */ -class AuditConfigDelta extends \Google\Protobuf\Internal\Message -{ - /** - * The action that was performed on an audit configuration in a policy. - * Required - * - * Generated from protobuf field .google.iam.v1.AuditConfigDelta.Action action = 1; - */ - protected $action = 0; - /** - * Specifies a service that was configured for Cloud Audit Logging. - * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. - * `allServices` is a special value that covers all services. - * Required - * - * Generated from protobuf field string service = 2; - */ - protected $service = ''; - /** - * A single identity that is exempted from "data access" audit - * logging for the `service` specified above. - * Follows the same format of Binding.members. - * - * Generated from protobuf field string exempted_member = 3; - */ - protected $exempted_member = ''; - /** - * Specifies the log_type that was be enabled. ADMIN_ACTIVITY is always - * enabled, and cannot be configured. - * Required - * - * Generated from protobuf field string log_type = 4; - */ - protected $log_type = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $action - * The action that was performed on an audit configuration in a policy. - * Required - * @type string $service - * Specifies a service that was configured for Cloud Audit Logging. - * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. - * `allServices` is a special value that covers all services. - * Required - * @type string $exempted_member - * A single identity that is exempted from "data access" audit - * logging for the `service` specified above. - * Follows the same format of Binding.members. - * @type string $log_type - * Specifies the log_type that was be enabled. ADMIN_ACTIVITY is always - * enabled, and cannot be configured. - * Required - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Iam\V1\Policy::initOnce(); - parent::__construct($data); - } - - /** - * The action that was performed on an audit configuration in a policy. - * Required - * - * Generated from protobuf field .google.iam.v1.AuditConfigDelta.Action action = 1; - * @return int - */ - public function getAction() - { - return $this->action; - } - - /** - * The action that was performed on an audit configuration in a policy. - * Required - * - * Generated from protobuf field .google.iam.v1.AuditConfigDelta.Action action = 1; - * @param int $var - * @return $this - */ - public function setAction($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Iam\V1\AuditConfigDelta\Action::class); - $this->action = $var; - - return $this; - } - - /** - * Specifies a service that was configured for Cloud Audit Logging. - * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. - * `allServices` is a special value that covers all services. - * Required - * - * Generated from protobuf field string service = 2; - * @return string - */ - public function getService() - { - return $this->service; - } - - /** - * Specifies a service that was configured for Cloud Audit Logging. - * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. - * `allServices` is a special value that covers all services. - * Required - * - * Generated from protobuf field string service = 2; - * @param string $var - * @return $this - */ - public function setService($var) - { - GPBUtil::checkString($var, True); - $this->service = $var; - - return $this; - } - - /** - * A single identity that is exempted from "data access" audit - * logging for the `service` specified above. - * Follows the same format of Binding.members. - * - * Generated from protobuf field string exempted_member = 3; - * @return string - */ - public function getExemptedMember() - { - return $this->exempted_member; - } - - /** - * A single identity that is exempted from "data access" audit - * logging for the `service` specified above. - * Follows the same format of Binding.members. - * - * Generated from protobuf field string exempted_member = 3; - * @param string $var - * @return $this - */ - public function setExemptedMember($var) - { - GPBUtil::checkString($var, True); - $this->exempted_member = $var; - - return $this; - } - - /** - * Specifies the log_type that was be enabled. ADMIN_ACTIVITY is always - * enabled, and cannot be configured. - * Required - * - * Generated from protobuf field string log_type = 4; - * @return string - */ - public function getLogType() - { - return $this->log_type; - } - - /** - * Specifies the log_type that was be enabled. ADMIN_ACTIVITY is always - * enabled, and cannot be configured. - * Required - * - * Generated from protobuf field string log_type = 4; - * @param string $var - * @return $this - */ - public function setLogType($var) - { - GPBUtil::checkString($var, True); - $this->log_type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/AuditConfigDelta/Action.php b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/AuditConfigDelta/Action.php deleted file mode 100644 index 7f92d4fb9d3a..000000000000 --- a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/AuditConfigDelta/Action.php +++ /dev/null @@ -1,61 +0,0 @@ -google.iam.v1.AuditConfigDelta.Action - */ -class Action -{ - /** - * Unspecified. - * - * Generated from protobuf enum ACTION_UNSPECIFIED = 0; - */ - const ACTION_UNSPECIFIED = 0; - /** - * Addition of an audit configuration. - * - * Generated from protobuf enum ADD = 1; - */ - const ADD = 1; - /** - * Removal of an audit configuration. - * - * Generated from protobuf enum REMOVE = 2; - */ - const REMOVE = 2; - - private static $valueToName = [ - self::ACTION_UNSPECIFIED => 'ACTION_UNSPECIFIED', - self::ADD => 'ADD', - self::REMOVE => 'REMOVE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/AuditLogConfig.php b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/AuditLogConfig.php deleted file mode 100644 index acf7ef30df02..000000000000 --- a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/AuditLogConfig.php +++ /dev/null @@ -1,129 +0,0 @@ -google.iam.v1.AuditLogConfig - */ -class AuditLogConfig extends \Google\Protobuf\Internal\Message -{ - /** - * The log type that this config enables. - * - * Generated from protobuf field .google.iam.v1.AuditLogConfig.LogType log_type = 1; - */ - protected $log_type = 0; - /** - * Specifies the identities that do not cause logging for this type of - * permission. - * Follows the same format of - * [Binding.members][google.iam.v1.Binding.members]. - * - * Generated from protobuf field repeated string exempted_members = 2; - */ - private $exempted_members; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $log_type - * The log type that this config enables. - * @type string[] $exempted_members - * Specifies the identities that do not cause logging for this type of - * permission. - * Follows the same format of - * [Binding.members][google.iam.v1.Binding.members]. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Iam\V1\Policy::initOnce(); - parent::__construct($data); - } - - /** - * The log type that this config enables. - * - * Generated from protobuf field .google.iam.v1.AuditLogConfig.LogType log_type = 1; - * @return int - */ - public function getLogType() - { - return $this->log_type; - } - - /** - * The log type that this config enables. - * - * Generated from protobuf field .google.iam.v1.AuditLogConfig.LogType log_type = 1; - * @param int $var - * @return $this - */ - public function setLogType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Iam\V1\AuditLogConfig\LogType::class); - $this->log_type = $var; - - return $this; - } - - /** - * Specifies the identities that do not cause logging for this type of - * permission. - * Follows the same format of - * [Binding.members][google.iam.v1.Binding.members]. - * - * Generated from protobuf field repeated string exempted_members = 2; - * @return RepeatedField - */ - public function getExemptedMembers() - { - return $this->exempted_members; - } - - /** - * Specifies the identities that do not cause logging for this type of - * permission. - * Follows the same format of - * [Binding.members][google.iam.v1.Binding.members]. - * - * Generated from protobuf field repeated string exempted_members = 2; - * @param string[] $var - * @return $this - */ - public function setExemptedMembers($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->exempted_members = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/AuditLogConfig/LogType.php b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/AuditLogConfig/LogType.php deleted file mode 100644 index 5a86bc2f1bfe..000000000000 --- a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/AuditLogConfig/LogType.php +++ /dev/null @@ -1,69 +0,0 @@ -google.iam.v1.AuditLogConfig.LogType - */ -class LogType -{ - /** - * Default case. Should never be this. - * - * Generated from protobuf enum LOG_TYPE_UNSPECIFIED = 0; - */ - const LOG_TYPE_UNSPECIFIED = 0; - /** - * Admin reads. Example: CloudIAM getIamPolicy - * - * Generated from protobuf enum ADMIN_READ = 1; - */ - const ADMIN_READ = 1; - /** - * Data writes. Example: CloudSQL Users create - * - * Generated from protobuf enum DATA_WRITE = 2; - */ - const DATA_WRITE = 2; - /** - * Data reads. Example: CloudSQL Users list - * - * Generated from protobuf enum DATA_READ = 3; - */ - const DATA_READ = 3; - - private static $valueToName = [ - self::LOG_TYPE_UNSPECIFIED => 'LOG_TYPE_UNSPECIFIED', - self::ADMIN_READ => 'ADMIN_READ', - self::DATA_WRITE => 'DATA_WRITE', - self::DATA_READ => 'DATA_READ', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/Binding.php b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/Binding.php deleted file mode 100644 index 29ee4fafde06..000000000000 --- a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/Binding.php +++ /dev/null @@ -1,301 +0,0 @@ -google.iam.v1.Binding - */ -class Binding extends \Google\Protobuf\Internal\Message -{ - /** - * Role that is assigned to the list of `members`, or principals. - * For example, `roles/viewer`, `roles/editor`, or `roles/owner`. - * - * Generated from protobuf field string role = 1; - */ - protected $role = ''; - /** - * Specifies the principals requesting access for a Google Cloud resource. - * `members` can have the following values: - * * `allUsers`: A special identifier that represents anyone who is - * on the internet; with or without a Google account. - * * `allAuthenticatedUsers`: A special identifier that represents anyone - * who is authenticated with a Google account or a service account. - * * `user:{emailid}`: An email address that represents a specific Google - * account. For example, `alice\@example.com` . - * * `serviceAccount:{emailid}`: An email address that represents a service - * account. For example, `my-other-app\@appspot.gserviceaccount.com`. - * * `group:{emailid}`: An email address that represents a Google group. - * For example, `admins\@example.com`. - * * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique - * identifier) representing a user that has been recently deleted. For - * example, `alice\@example.com?uid=123456789012345678901`. If the user is - * recovered, this value reverts to `user:{emailid}` and the recovered user - * retains the role in the binding. - * * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus - * unique identifier) representing a service account that has been recently - * deleted. For example, - * `my-other-app\@appspot.gserviceaccount.com?uid=123456789012345678901`. - * If the service account is undeleted, this value reverts to - * `serviceAccount:{emailid}` and the undeleted service account retains the - * role in the binding. - * * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique - * identifier) representing a Google group that has been recently - * deleted. For example, `admins\@example.com?uid=123456789012345678901`. If - * the group is recovered, this value reverts to `group:{emailid}` and the - * recovered group retains the role in the binding. - * * `domain:{domain}`: The G Suite domain (primary) that represents all the - * users of that domain. For example, `google.com` or `example.com`. - * - * Generated from protobuf field repeated string members = 2; - */ - private $members; - /** - * The condition that is associated with this binding. - * If the condition evaluates to `true`, then this binding applies to the - * current request. - * If the condition evaluates to `false`, then this binding does not apply to - * the current request. However, a different role binding might grant the same - * role to one or more of the principals in this binding. - * To learn which resources support conditions in their IAM policies, see the - * [IAM - * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - * - * Generated from protobuf field .google.type.Expr condition = 3; - */ - protected $condition = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $role - * Role that is assigned to the list of `members`, or principals. - * For example, `roles/viewer`, `roles/editor`, or `roles/owner`. - * @type string[] $members - * Specifies the principals requesting access for a Google Cloud resource. - * `members` can have the following values: - * * `allUsers`: A special identifier that represents anyone who is - * on the internet; with or without a Google account. - * * `allAuthenticatedUsers`: A special identifier that represents anyone - * who is authenticated with a Google account or a service account. - * * `user:{emailid}`: An email address that represents a specific Google - * account. For example, `alice\@example.com` . - * * `serviceAccount:{emailid}`: An email address that represents a service - * account. For example, `my-other-app\@appspot.gserviceaccount.com`. - * * `group:{emailid}`: An email address that represents a Google group. - * For example, `admins\@example.com`. - * * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique - * identifier) representing a user that has been recently deleted. For - * example, `alice\@example.com?uid=123456789012345678901`. If the user is - * recovered, this value reverts to `user:{emailid}` and the recovered user - * retains the role in the binding. - * * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus - * unique identifier) representing a service account that has been recently - * deleted. For example, - * `my-other-app\@appspot.gserviceaccount.com?uid=123456789012345678901`. - * If the service account is undeleted, this value reverts to - * `serviceAccount:{emailid}` and the undeleted service account retains the - * role in the binding. - * * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique - * identifier) representing a Google group that has been recently - * deleted. For example, `admins\@example.com?uid=123456789012345678901`. If - * the group is recovered, this value reverts to `group:{emailid}` and the - * recovered group retains the role in the binding. - * * `domain:{domain}`: The G Suite domain (primary) that represents all the - * users of that domain. For example, `google.com` or `example.com`. - * @type \Google\Type\Expr $condition - * The condition that is associated with this binding. - * If the condition evaluates to `true`, then this binding applies to the - * current request. - * If the condition evaluates to `false`, then this binding does not apply to - * the current request. However, a different role binding might grant the same - * role to one or more of the principals in this binding. - * To learn which resources support conditions in their IAM policies, see the - * [IAM - * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Iam\V1\Policy::initOnce(); - parent::__construct($data); - } - - /** - * Role that is assigned to the list of `members`, or principals. - * For example, `roles/viewer`, `roles/editor`, or `roles/owner`. - * - * Generated from protobuf field string role = 1; - * @return string - */ - public function getRole() - { - return $this->role; - } - - /** - * Role that is assigned to the list of `members`, or principals. - * For example, `roles/viewer`, `roles/editor`, or `roles/owner`. - * - * Generated from protobuf field string role = 1; - * @param string $var - * @return $this - */ - public function setRole($var) - { - GPBUtil::checkString($var, True); - $this->role = $var; - - return $this; - } - - /** - * Specifies the principals requesting access for a Google Cloud resource. - * `members` can have the following values: - * * `allUsers`: A special identifier that represents anyone who is - * on the internet; with or without a Google account. - * * `allAuthenticatedUsers`: A special identifier that represents anyone - * who is authenticated with a Google account or a service account. - * * `user:{emailid}`: An email address that represents a specific Google - * account. For example, `alice\@example.com` . - * * `serviceAccount:{emailid}`: An email address that represents a service - * account. For example, `my-other-app\@appspot.gserviceaccount.com`. - * * `group:{emailid}`: An email address that represents a Google group. - * For example, `admins\@example.com`. - * * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique - * identifier) representing a user that has been recently deleted. For - * example, `alice\@example.com?uid=123456789012345678901`. If the user is - * recovered, this value reverts to `user:{emailid}` and the recovered user - * retains the role in the binding. - * * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus - * unique identifier) representing a service account that has been recently - * deleted. For example, - * `my-other-app\@appspot.gserviceaccount.com?uid=123456789012345678901`. - * If the service account is undeleted, this value reverts to - * `serviceAccount:{emailid}` and the undeleted service account retains the - * role in the binding. - * * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique - * identifier) representing a Google group that has been recently - * deleted. For example, `admins\@example.com?uid=123456789012345678901`. If - * the group is recovered, this value reverts to `group:{emailid}` and the - * recovered group retains the role in the binding. - * * `domain:{domain}`: The G Suite domain (primary) that represents all the - * users of that domain. For example, `google.com` or `example.com`. - * - * Generated from protobuf field repeated string members = 2; - * @return RepeatedField - */ - public function getMembers() - { - return $this->members; - } - - /** - * Specifies the principals requesting access for a Google Cloud resource. - * `members` can have the following values: - * * `allUsers`: A special identifier that represents anyone who is - * on the internet; with or without a Google account. - * * `allAuthenticatedUsers`: A special identifier that represents anyone - * who is authenticated with a Google account or a service account. - * * `user:{emailid}`: An email address that represents a specific Google - * account. For example, `alice\@example.com` . - * * `serviceAccount:{emailid}`: An email address that represents a service - * account. For example, `my-other-app\@appspot.gserviceaccount.com`. - * * `group:{emailid}`: An email address that represents a Google group. - * For example, `admins\@example.com`. - * * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique - * identifier) representing a user that has been recently deleted. For - * example, `alice\@example.com?uid=123456789012345678901`. If the user is - * recovered, this value reverts to `user:{emailid}` and the recovered user - * retains the role in the binding. - * * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus - * unique identifier) representing a service account that has been recently - * deleted. For example, - * `my-other-app\@appspot.gserviceaccount.com?uid=123456789012345678901`. - * If the service account is undeleted, this value reverts to - * `serviceAccount:{emailid}` and the undeleted service account retains the - * role in the binding. - * * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique - * identifier) representing a Google group that has been recently - * deleted. For example, `admins\@example.com?uid=123456789012345678901`. If - * the group is recovered, this value reverts to `group:{emailid}` and the - * recovered group retains the role in the binding. - * * `domain:{domain}`: The G Suite domain (primary) that represents all the - * users of that domain. For example, `google.com` or `example.com`. - * - * Generated from protobuf field repeated string members = 2; - * @param string[] $var - * @return $this - */ - public function setMembers($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->members = $arr; - - return $this; - } - - /** - * The condition that is associated with this binding. - * If the condition evaluates to `true`, then this binding applies to the - * current request. - * If the condition evaluates to `false`, then this binding does not apply to - * the current request. However, a different role binding might grant the same - * role to one or more of the principals in this binding. - * To learn which resources support conditions in their IAM policies, see the - * [IAM - * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - * - * Generated from protobuf field .google.type.Expr condition = 3; - * @return \Google\Type\Expr|null - */ - public function getCondition() - { - return $this->condition; - } - - public function hasCondition() - { - return isset($this->condition); - } - - public function clearCondition() - { - unset($this->condition); - } - - /** - * The condition that is associated with this binding. - * If the condition evaluates to `true`, then this binding applies to the - * current request. - * If the condition evaluates to `false`, then this binding does not apply to - * the current request. However, a different role binding might grant the same - * role to one or more of the principals in this binding. - * To learn which resources support conditions in their IAM policies, see the - * [IAM - * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - * - * Generated from protobuf field .google.type.Expr condition = 3; - * @param \Google\Type\Expr $var - * @return $this - */ - public function setCondition($var) - { - GPBUtil::checkMessage($var, \Google\Type\Expr::class); - $this->condition = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/BindingDelta.php b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/BindingDelta.php deleted file mode 100644 index 4563d6089a6e..000000000000 --- a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/BindingDelta.php +++ /dev/null @@ -1,200 +0,0 @@ -google.iam.v1.BindingDelta - */ -class BindingDelta extends \Google\Protobuf\Internal\Message -{ - /** - * The action that was performed on a Binding. - * Required - * - * Generated from protobuf field .google.iam.v1.BindingDelta.Action action = 1; - */ - protected $action = 0; - /** - * Role that is assigned to `members`. - * For example, `roles/viewer`, `roles/editor`, or `roles/owner`. - * Required - * - * Generated from protobuf field string role = 2; - */ - protected $role = ''; - /** - * A single identity requesting access for a Google Cloud resource. - * Follows the same format of Binding.members. - * Required - * - * Generated from protobuf field string member = 3; - */ - protected $member = ''; - /** - * The condition that is associated with this binding. - * - * Generated from protobuf field .google.type.Expr condition = 4; - */ - protected $condition = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $action - * The action that was performed on a Binding. - * Required - * @type string $role - * Role that is assigned to `members`. - * For example, `roles/viewer`, `roles/editor`, or `roles/owner`. - * Required - * @type string $member - * A single identity requesting access for a Google Cloud resource. - * Follows the same format of Binding.members. - * Required - * @type \Google\Type\Expr $condition - * The condition that is associated with this binding. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Iam\V1\Policy::initOnce(); - parent::__construct($data); - } - - /** - * The action that was performed on a Binding. - * Required - * - * Generated from protobuf field .google.iam.v1.BindingDelta.Action action = 1; - * @return int - */ - public function getAction() - { - return $this->action; - } - - /** - * The action that was performed on a Binding. - * Required - * - * Generated from protobuf field .google.iam.v1.BindingDelta.Action action = 1; - * @param int $var - * @return $this - */ - public function setAction($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Iam\V1\BindingDelta\Action::class); - $this->action = $var; - - return $this; - } - - /** - * Role that is assigned to `members`. - * For example, `roles/viewer`, `roles/editor`, or `roles/owner`. - * Required - * - * Generated from protobuf field string role = 2; - * @return string - */ - public function getRole() - { - return $this->role; - } - - /** - * Role that is assigned to `members`. - * For example, `roles/viewer`, `roles/editor`, or `roles/owner`. - * Required - * - * Generated from protobuf field string role = 2; - * @param string $var - * @return $this - */ - public function setRole($var) - { - GPBUtil::checkString($var, True); - $this->role = $var; - - return $this; - } - - /** - * A single identity requesting access for a Google Cloud resource. - * Follows the same format of Binding.members. - * Required - * - * Generated from protobuf field string member = 3; - * @return string - */ - public function getMember() - { - return $this->member; - } - - /** - * A single identity requesting access for a Google Cloud resource. - * Follows the same format of Binding.members. - * Required - * - * Generated from protobuf field string member = 3; - * @param string $var - * @return $this - */ - public function setMember($var) - { - GPBUtil::checkString($var, True); - $this->member = $var; - - return $this; - } - - /** - * The condition that is associated with this binding. - * - * Generated from protobuf field .google.type.Expr condition = 4; - * @return \Google\Type\Expr|null - */ - public function getCondition() - { - return $this->condition; - } - - public function hasCondition() - { - return isset($this->condition); - } - - public function clearCondition() - { - unset($this->condition); - } - - /** - * The condition that is associated with this binding. - * - * Generated from protobuf field .google.type.Expr condition = 4; - * @param \Google\Type\Expr $var - * @return $this - */ - public function setCondition($var) - { - GPBUtil::checkMessage($var, \Google\Type\Expr::class); - $this->condition = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/BindingDelta/Action.php b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/BindingDelta/Action.php deleted file mode 100644 index 18b7295093b6..000000000000 --- a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/BindingDelta/Action.php +++ /dev/null @@ -1,61 +0,0 @@ -google.iam.v1.BindingDelta.Action - */ -class Action -{ - /** - * Unspecified. - * - * Generated from protobuf enum ACTION_UNSPECIFIED = 0; - */ - const ACTION_UNSPECIFIED = 0; - /** - * Addition of a Binding. - * - * Generated from protobuf enum ADD = 1; - */ - const ADD = 1; - /** - * Removal of a Binding. - * - * Generated from protobuf enum REMOVE = 2; - */ - const REMOVE = 2; - - private static $valueToName = [ - self::ACTION_UNSPECIFIED => 'ACTION_UNSPECIFIED', - self::ADD => 'ADD', - self::REMOVE => 'REMOVE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/GetIamPolicyRequest.php b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/GetIamPolicyRequest.php deleted file mode 100644 index 231483b15f0c..000000000000 --- a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/GetIamPolicyRequest.php +++ /dev/null @@ -1,119 +0,0 @@ -google.iam.v1.GetIamPolicyRequest - */ -class GetIamPolicyRequest extends \Google\Protobuf\Internal\Message -{ - /** - * REQUIRED: The resource for which the policy is being requested. - * See the operation documentation for the appropriate value for this field. - * - * Generated from protobuf field string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $resource = ''; - /** - * OPTIONAL: A `GetPolicyOptions` object for specifying options to - * `GetIamPolicy`. - * - * Generated from protobuf field .google.iam.v1.GetPolicyOptions options = 2; - */ - protected $options = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $resource - * REQUIRED: The resource for which the policy is being requested. - * See the operation documentation for the appropriate value for this field. - * @type \Google\Cloud\Iam\V1\GetPolicyOptions $options - * OPTIONAL: A `GetPolicyOptions` object for specifying options to - * `GetIamPolicy`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Iam\V1\IamPolicy::initOnce(); - parent::__construct($data); - } - - /** - * REQUIRED: The resource for which the policy is being requested. - * See the operation documentation for the appropriate value for this field. - * - * Generated from protobuf field string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getResource() - { - return $this->resource; - } - - /** - * REQUIRED: The resource for which the policy is being requested. - * See the operation documentation for the appropriate value for this field. - * - * Generated from protobuf field string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setResource($var) - { - GPBUtil::checkString($var, True); - $this->resource = $var; - - return $this; - } - - /** - * OPTIONAL: A `GetPolicyOptions` object for specifying options to - * `GetIamPolicy`. - * - * Generated from protobuf field .google.iam.v1.GetPolicyOptions options = 2; - * @return \Google\Cloud\Iam\V1\GetPolicyOptions|null - */ - public function getOptions() - { - return $this->options; - } - - public function hasOptions() - { - return isset($this->options); - } - - public function clearOptions() - { - unset($this->options); - } - - /** - * OPTIONAL: A `GetPolicyOptions` object for specifying options to - * `GetIamPolicy`. - * - * Generated from protobuf field .google.iam.v1.GetPolicyOptions options = 2; - * @param \Google\Cloud\Iam\V1\GetPolicyOptions $var - * @return $this - */ - public function setOptions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Iam\V1\GetPolicyOptions::class); - $this->options = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/GetPolicyOptions.php b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/GetPolicyOptions.php deleted file mode 100644 index 0b245e12e1a2..000000000000 --- a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/GetPolicyOptions.php +++ /dev/null @@ -1,119 +0,0 @@ -google.iam.v1.GetPolicyOptions - */ -class GetPolicyOptions extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The maximum policy version that will be used to format the - * policy. - * Valid values are 0, 1, and 3. Requests specifying an invalid value will be - * rejected. - * Requests for policies with any conditional role bindings must specify - * version 3. Policies with no conditional role bindings may specify any valid - * value or leave the field unset. - * The policy in the response might use the policy version that you specified, - * or it might use a lower policy version. For example, if you specify version - * 3, but the policy has no conditional role bindings, the response uses - * version 1. - * To learn which resources support conditions in their IAM policies, see the - * [IAM - * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - * - * Generated from protobuf field int32 requested_policy_version = 1; - */ - protected $requested_policy_version = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $requested_policy_version - * Optional. The maximum policy version that will be used to format the - * policy. - * Valid values are 0, 1, and 3. Requests specifying an invalid value will be - * rejected. - * Requests for policies with any conditional role bindings must specify - * version 3. Policies with no conditional role bindings may specify any valid - * value or leave the field unset. - * The policy in the response might use the policy version that you specified, - * or it might use a lower policy version. For example, if you specify version - * 3, but the policy has no conditional role bindings, the response uses - * version 1. - * To learn which resources support conditions in their IAM policies, see the - * [IAM - * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Iam\V1\Options::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The maximum policy version that will be used to format the - * policy. - * Valid values are 0, 1, and 3. Requests specifying an invalid value will be - * rejected. - * Requests for policies with any conditional role bindings must specify - * version 3. Policies with no conditional role bindings may specify any valid - * value or leave the field unset. - * The policy in the response might use the policy version that you specified, - * or it might use a lower policy version. For example, if you specify version - * 3, but the policy has no conditional role bindings, the response uses - * version 1. - * To learn which resources support conditions in their IAM policies, see the - * [IAM - * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - * - * Generated from protobuf field int32 requested_policy_version = 1; - * @return int - */ - public function getRequestedPolicyVersion() - { - return $this->requested_policy_version; - } - - /** - * Optional. The maximum policy version that will be used to format the - * policy. - * Valid values are 0, 1, and 3. Requests specifying an invalid value will be - * rejected. - * Requests for policies with any conditional role bindings must specify - * version 3. Policies with no conditional role bindings may specify any valid - * value or leave the field unset. - * The policy in the response might use the policy version that you specified, - * or it might use a lower policy version. For example, if you specify version - * 3, but the policy has no conditional role bindings, the response uses - * version 1. - * To learn which resources support conditions in their IAM policies, see the - * [IAM - * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - * - * Generated from protobuf field int32 requested_policy_version = 1; - * @param int $var - * @return $this - */ - public function setRequestedPolicyVersion($var) - { - GPBUtil::checkInt32($var); - $this->requested_policy_version = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/Policy.php b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/Policy.php deleted file mode 100644 index 72e7c3f0186d..000000000000 --- a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/Policy.php +++ /dev/null @@ -1,377 +0,0 @@ -google.iam.v1.Policy - */ -class Policy extends \Google\Protobuf\Internal\Message -{ - /** - * Specifies the format of the policy. - * Valid values are `0`, `1`, and `3`. Requests that specify an invalid value - * are rejected. - * Any operation that affects conditional role bindings must specify version - * `3`. This requirement applies to the following operations: - * * Getting a policy that includes a conditional role binding - * * Adding a conditional role binding to a policy - * * Changing a conditional role binding in a policy - * * Removing any role binding, with or without a condition, from a policy - * that includes conditions - * **Important:** If you use IAM Conditions, you must include the `etag` field - * whenever you call `setIamPolicy`. If you omit this field, then IAM allows - * you to overwrite a version `3` policy with a version `1` policy, and all of - * the conditions in the version `3` policy are lost. - * If a policy does not include any conditions, operations on that policy may - * specify any valid version or leave the field unset. - * To learn which resources support conditions in their IAM policies, see the - * [IAM - * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - * - * Generated from protobuf field int32 version = 1; - */ - protected $version = 0; - /** - * Associates a list of `members`, or principals, with a `role`. Optionally, - * may specify a `condition` that determines how and when the `bindings` are - * applied. Each of the `bindings` must contain at least one principal. - * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 - * of these principals can be Google groups. Each occurrence of a principal - * counts towards these limits. For example, if the `bindings` grant 50 - * different roles to `user:alice\@example.com`, and not to any other - * principal, then you can add another 1,450 principals to the `bindings` in - * the `Policy`. - * - * Generated from protobuf field repeated .google.iam.v1.Binding bindings = 4; - */ - private $bindings; - /** - * Specifies cloud audit logging configuration for this policy. - * - * Generated from protobuf field repeated .google.iam.v1.AuditConfig audit_configs = 6; - */ - private $audit_configs; - /** - * `etag` is used for optimistic concurrency control as a way to help - * prevent simultaneous updates of a policy from overwriting each other. - * It is strongly suggested that systems make use of the `etag` in the - * read-modify-write cycle to perform policy updates in order to avoid race - * conditions: An `etag` is returned in the response to `getIamPolicy`, and - * systems are expected to put that etag in the request to `setIamPolicy` to - * ensure that their change will be applied to the same version of the policy. - * **Important:** If you use IAM Conditions, you must include the `etag` field - * whenever you call `setIamPolicy`. If you omit this field, then IAM allows - * you to overwrite a version `3` policy with a version `1` policy, and all of - * the conditions in the version `3` policy are lost. - * - * Generated from protobuf field bytes etag = 3; - */ - protected $etag = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $version - * Specifies the format of the policy. - * Valid values are `0`, `1`, and `3`. Requests that specify an invalid value - * are rejected. - * Any operation that affects conditional role bindings must specify version - * `3`. This requirement applies to the following operations: - * * Getting a policy that includes a conditional role binding - * * Adding a conditional role binding to a policy - * * Changing a conditional role binding in a policy - * * Removing any role binding, with or without a condition, from a policy - * that includes conditions - * **Important:** If you use IAM Conditions, you must include the `etag` field - * whenever you call `setIamPolicy`. If you omit this field, then IAM allows - * you to overwrite a version `3` policy with a version `1` policy, and all of - * the conditions in the version `3` policy are lost. - * If a policy does not include any conditions, operations on that policy may - * specify any valid version or leave the field unset. - * To learn which resources support conditions in their IAM policies, see the - * [IAM - * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - * @type \Google\Cloud\Iam\V1\Binding[] $bindings - * Associates a list of `members`, or principals, with a `role`. Optionally, - * may specify a `condition` that determines how and when the `bindings` are - * applied. Each of the `bindings` must contain at least one principal. - * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 - * of these principals can be Google groups. Each occurrence of a principal - * counts towards these limits. For example, if the `bindings` grant 50 - * different roles to `user:alice\@example.com`, and not to any other - * principal, then you can add another 1,450 principals to the `bindings` in - * the `Policy`. - * @type \Google\Cloud\Iam\V1\AuditConfig[] $audit_configs - * Specifies cloud audit logging configuration for this policy. - * @type string $etag - * `etag` is used for optimistic concurrency control as a way to help - * prevent simultaneous updates of a policy from overwriting each other. - * It is strongly suggested that systems make use of the `etag` in the - * read-modify-write cycle to perform policy updates in order to avoid race - * conditions: An `etag` is returned in the response to `getIamPolicy`, and - * systems are expected to put that etag in the request to `setIamPolicy` to - * ensure that their change will be applied to the same version of the policy. - * **Important:** If you use IAM Conditions, you must include the `etag` field - * whenever you call `setIamPolicy`. If you omit this field, then IAM allows - * you to overwrite a version `3` policy with a version `1` policy, and all of - * the conditions in the version `3` policy are lost. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Iam\V1\Policy::initOnce(); - parent::__construct($data); - } - - /** - * Specifies the format of the policy. - * Valid values are `0`, `1`, and `3`. Requests that specify an invalid value - * are rejected. - * Any operation that affects conditional role bindings must specify version - * `3`. This requirement applies to the following operations: - * * Getting a policy that includes a conditional role binding - * * Adding a conditional role binding to a policy - * * Changing a conditional role binding in a policy - * * Removing any role binding, with or without a condition, from a policy - * that includes conditions - * **Important:** If you use IAM Conditions, you must include the `etag` field - * whenever you call `setIamPolicy`. If you omit this field, then IAM allows - * you to overwrite a version `3` policy with a version `1` policy, and all of - * the conditions in the version `3` policy are lost. - * If a policy does not include any conditions, operations on that policy may - * specify any valid version or leave the field unset. - * To learn which resources support conditions in their IAM policies, see the - * [IAM - * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - * - * Generated from protobuf field int32 version = 1; - * @return int - */ - public function getVersion() - { - return $this->version; - } - - /** - * Specifies the format of the policy. - * Valid values are `0`, `1`, and `3`. Requests that specify an invalid value - * are rejected. - * Any operation that affects conditional role bindings must specify version - * `3`. This requirement applies to the following operations: - * * Getting a policy that includes a conditional role binding - * * Adding a conditional role binding to a policy - * * Changing a conditional role binding in a policy - * * Removing any role binding, with or without a condition, from a policy - * that includes conditions - * **Important:** If you use IAM Conditions, you must include the `etag` field - * whenever you call `setIamPolicy`. If you omit this field, then IAM allows - * you to overwrite a version `3` policy with a version `1` policy, and all of - * the conditions in the version `3` policy are lost. - * If a policy does not include any conditions, operations on that policy may - * specify any valid version or leave the field unset. - * To learn which resources support conditions in their IAM policies, see the - * [IAM - * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - * - * Generated from protobuf field int32 version = 1; - * @param int $var - * @return $this - */ - public function setVersion($var) - { - GPBUtil::checkInt32($var); - $this->version = $var; - - return $this; - } - - /** - * Associates a list of `members`, or principals, with a `role`. Optionally, - * may specify a `condition` that determines how and when the `bindings` are - * applied. Each of the `bindings` must contain at least one principal. - * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 - * of these principals can be Google groups. Each occurrence of a principal - * counts towards these limits. For example, if the `bindings` grant 50 - * different roles to `user:alice\@example.com`, and not to any other - * principal, then you can add another 1,450 principals to the `bindings` in - * the `Policy`. - * - * Generated from protobuf field repeated .google.iam.v1.Binding bindings = 4; - * @return RepeatedField<\Google\Cloud\Iam\V1\Binding> - */ - public function getBindings() - { - return $this->bindings; - } - - /** - * Associates a list of `members`, or principals, with a `role`. Optionally, - * may specify a `condition` that determines how and when the `bindings` are - * applied. Each of the `bindings` must contain at least one principal. - * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 - * of these principals can be Google groups. Each occurrence of a principal - * counts towards these limits. For example, if the `bindings` grant 50 - * different roles to `user:alice\@example.com`, and not to any other - * principal, then you can add another 1,450 principals to the `bindings` in - * the `Policy`. - * - * Generated from protobuf field repeated .google.iam.v1.Binding bindings = 4; - * @param \Google\Cloud\Iam\V1\Binding[] $var - * @return $this - */ - public function setBindings($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Iam\V1\Binding::class); - $this->bindings = $arr; - - return $this; - } - - /** - * Specifies cloud audit logging configuration for this policy. - * - * Generated from protobuf field repeated .google.iam.v1.AuditConfig audit_configs = 6; - * @return RepeatedField<\Google\Cloud\Iam\V1\AuditConfig> - */ - public function getAuditConfigs() - { - return $this->audit_configs; - } - - /** - * Specifies cloud audit logging configuration for this policy. - * - * Generated from protobuf field repeated .google.iam.v1.AuditConfig audit_configs = 6; - * @param \Google\Cloud\Iam\V1\AuditConfig[] $var - * @return $this - */ - public function setAuditConfigs($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Iam\V1\AuditConfig::class); - $this->audit_configs = $arr; - - return $this; - } - - /** - * `etag` is used for optimistic concurrency control as a way to help - * prevent simultaneous updates of a policy from overwriting each other. - * It is strongly suggested that systems make use of the `etag` in the - * read-modify-write cycle to perform policy updates in order to avoid race - * conditions: An `etag` is returned in the response to `getIamPolicy`, and - * systems are expected to put that etag in the request to `setIamPolicy` to - * ensure that their change will be applied to the same version of the policy. - * **Important:** If you use IAM Conditions, you must include the `etag` field - * whenever you call `setIamPolicy`. If you omit this field, then IAM allows - * you to overwrite a version `3` policy with a version `1` policy, and all of - * the conditions in the version `3` policy are lost. - * - * Generated from protobuf field bytes etag = 3; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * `etag` is used for optimistic concurrency control as a way to help - * prevent simultaneous updates of a policy from overwriting each other. - * It is strongly suggested that systems make use of the `etag` in the - * read-modify-write cycle to perform policy updates in order to avoid race - * conditions: An `etag` is returned in the response to `getIamPolicy`, and - * systems are expected to put that etag in the request to `setIamPolicy` to - * ensure that their change will be applied to the same version of the policy. - * **Important:** If you use IAM Conditions, you must include the `etag` field - * whenever you call `setIamPolicy`. If you omit this field, then IAM allows - * you to overwrite a version `3` policy with a version `1` policy, and all of - * the conditions in the version `3` policy are lost. - * - * Generated from protobuf field bytes etag = 3; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, False); - $this->etag = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/PolicyDelta.php b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/PolicyDelta.php deleted file mode 100644 index 8f421643b836..000000000000 --- a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/PolicyDelta.php +++ /dev/null @@ -1,101 +0,0 @@ -google.iam.v1.PolicyDelta - */ -class PolicyDelta extends \Google\Protobuf\Internal\Message -{ - /** - * The delta for Bindings between two policies. - * - * Generated from protobuf field repeated .google.iam.v1.BindingDelta binding_deltas = 1; - */ - private $binding_deltas; - /** - * The delta for AuditConfigs between two policies. - * - * Generated from protobuf field repeated .google.iam.v1.AuditConfigDelta audit_config_deltas = 2; - */ - private $audit_config_deltas; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Iam\V1\BindingDelta[] $binding_deltas - * The delta for Bindings between two policies. - * @type \Google\Cloud\Iam\V1\AuditConfigDelta[] $audit_config_deltas - * The delta for AuditConfigs between two policies. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Iam\V1\Policy::initOnce(); - parent::__construct($data); - } - - /** - * The delta for Bindings between two policies. - * - * Generated from protobuf field repeated .google.iam.v1.BindingDelta binding_deltas = 1; - * @return RepeatedField<\Google\Cloud\Iam\V1\BindingDelta> - */ - public function getBindingDeltas() - { - return $this->binding_deltas; - } - - /** - * The delta for Bindings between two policies. - * - * Generated from protobuf field repeated .google.iam.v1.BindingDelta binding_deltas = 1; - * @param \Google\Cloud\Iam\V1\BindingDelta[] $var - * @return $this - */ - public function setBindingDeltas($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Iam\V1\BindingDelta::class); - $this->binding_deltas = $arr; - - return $this; - } - - /** - * The delta for AuditConfigs between two policies. - * - * Generated from protobuf field repeated .google.iam.v1.AuditConfigDelta audit_config_deltas = 2; - * @return RepeatedField<\Google\Cloud\Iam\V1\AuditConfigDelta> - */ - public function getAuditConfigDeltas() - { - return $this->audit_config_deltas; - } - - /** - * The delta for AuditConfigs between two policies. - * - * Generated from protobuf field repeated .google.iam.v1.AuditConfigDelta audit_config_deltas = 2; - * @param \Google\Cloud\Iam\V1\AuditConfigDelta[] $var - * @return $this - */ - public function setAuditConfigDeltas($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Iam\V1\AuditConfigDelta::class); - $this->audit_config_deltas = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/ResourcePolicyMember.php b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/ResourcePolicyMember.php deleted file mode 100644 index c6deaf5bf7c8..000000000000 --- a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/ResourcePolicyMember.php +++ /dev/null @@ -1,142 +0,0 @@ -google.iam.v1.ResourcePolicyMember - */ -class ResourcePolicyMember extends \Google\Protobuf\Internal\Message -{ - /** - * IAM policy binding member referring to a Google Cloud resource by - * user-assigned name (https://google.aip.dev/122). If a resource is deleted - * and recreated with the same name, the binding will be applicable to the new - * resource. - * Example: - * `principal://parametermanager.googleapis.com/projects/12345/name/locations/us-central1-a/parameters/my-parameter` - * - * Generated from protobuf field string iam_policy_name_principal = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $iam_policy_name_principal = ''; - /** - * IAM policy binding member referring to a Google Cloud resource by - * system-assigned unique identifier (https://google.aip.dev/148#uid). If a - * resource is deleted and recreated with the same name, the binding will not - * be applicable to the new resource - * Example: - * `principal://parametermanager.googleapis.com/projects/12345/uid/locations/us-central1-a/parameters/a918fed5` - * - * Generated from protobuf field string iam_policy_uid_principal = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $iam_policy_uid_principal = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $iam_policy_name_principal - * IAM policy binding member referring to a Google Cloud resource by - * user-assigned name (https://google.aip.dev/122). If a resource is deleted - * and recreated with the same name, the binding will be applicable to the new - * resource. - * Example: - * `principal://parametermanager.googleapis.com/projects/12345/name/locations/us-central1-a/parameters/my-parameter` - * @type string $iam_policy_uid_principal - * IAM policy binding member referring to a Google Cloud resource by - * system-assigned unique identifier (https://google.aip.dev/148#uid). If a - * resource is deleted and recreated with the same name, the binding will not - * be applicable to the new resource - * Example: - * `principal://parametermanager.googleapis.com/projects/12345/uid/locations/us-central1-a/parameters/a918fed5` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Iam\V1\ResourcePolicyMember::initOnce(); - parent::__construct($data); - } - - /** - * IAM policy binding member referring to a Google Cloud resource by - * user-assigned name (https://google.aip.dev/122). If a resource is deleted - * and recreated with the same name, the binding will be applicable to the new - * resource. - * Example: - * `principal://parametermanager.googleapis.com/projects/12345/name/locations/us-central1-a/parameters/my-parameter` - * - * Generated from protobuf field string iam_policy_name_principal = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getIamPolicyNamePrincipal() - { - return $this->iam_policy_name_principal; - } - - /** - * IAM policy binding member referring to a Google Cloud resource by - * user-assigned name (https://google.aip.dev/122). If a resource is deleted - * and recreated with the same name, the binding will be applicable to the new - * resource. - * Example: - * `principal://parametermanager.googleapis.com/projects/12345/name/locations/us-central1-a/parameters/my-parameter` - * - * Generated from protobuf field string iam_policy_name_principal = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setIamPolicyNamePrincipal($var) - { - GPBUtil::checkString($var, True); - $this->iam_policy_name_principal = $var; - - return $this; - } - - /** - * IAM policy binding member referring to a Google Cloud resource by - * system-assigned unique identifier (https://google.aip.dev/148#uid). If a - * resource is deleted and recreated with the same name, the binding will not - * be applicable to the new resource - * Example: - * `principal://parametermanager.googleapis.com/projects/12345/uid/locations/us-central1-a/parameters/a918fed5` - * - * Generated from protobuf field string iam_policy_uid_principal = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getIamPolicyUidPrincipal() - { - return $this->iam_policy_uid_principal; - } - - /** - * IAM policy binding member referring to a Google Cloud resource by - * system-assigned unique identifier (https://google.aip.dev/148#uid). If a - * resource is deleted and recreated with the same name, the binding will not - * be applicable to the new resource - * Example: - * `principal://parametermanager.googleapis.com/projects/12345/uid/locations/us-central1-a/parameters/a918fed5` - * - * Generated from protobuf field string iam_policy_uid_principal = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setIamPolicyUidPrincipal($var) - { - GPBUtil::checkString($var, True); - $this->iam_policy_uid_principal = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/SetIamPolicyRequest.php b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/SetIamPolicyRequest.php deleted file mode 100644 index e03e34a70735..000000000000 --- a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/SetIamPolicyRequest.php +++ /dev/null @@ -1,183 +0,0 @@ -google.iam.v1.SetIamPolicyRequest - */ -class SetIamPolicyRequest extends \Google\Protobuf\Internal\Message -{ - /** - * REQUIRED: The resource for which the policy is being specified. - * See the operation documentation for the appropriate value for this field. - * - * Generated from protobuf field string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $resource = ''; - /** - * REQUIRED: The complete policy to be applied to the `resource`. The size of - * the policy is limited to a few 10s of KB. An empty policy is a - * valid policy but certain Cloud Platform services (such as Projects) - * might reject them. - * - * Generated from protobuf field .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $policy = null; - /** - * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only - * the fields in the mask will be modified. If no mask is provided, the - * following default mask is used: - * `paths: "bindings, etag"` - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; - */ - protected $update_mask = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $resource - * REQUIRED: The resource for which the policy is being specified. - * See the operation documentation for the appropriate value for this field. - * @type \Google\Cloud\Iam\V1\Policy $policy - * REQUIRED: The complete policy to be applied to the `resource`. The size of - * the policy is limited to a few 10s of KB. An empty policy is a - * valid policy but certain Cloud Platform services (such as Projects) - * might reject them. - * @type \Google\Protobuf\FieldMask $update_mask - * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only - * the fields in the mask will be modified. If no mask is provided, the - * following default mask is used: - * `paths: "bindings, etag"` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Iam\V1\IamPolicy::initOnce(); - parent::__construct($data); - } - - /** - * REQUIRED: The resource for which the policy is being specified. - * See the operation documentation for the appropriate value for this field. - * - * Generated from protobuf field string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getResource() - { - return $this->resource; - } - - /** - * REQUIRED: The resource for which the policy is being specified. - * See the operation documentation for the appropriate value for this field. - * - * Generated from protobuf field string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setResource($var) - { - GPBUtil::checkString($var, True); - $this->resource = $var; - - return $this; - } - - /** - * REQUIRED: The complete policy to be applied to the `resource`. The size of - * the policy is limited to a few 10s of KB. An empty policy is a - * valid policy but certain Cloud Platform services (such as Projects) - * might reject them. - * - * Generated from protobuf field .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Iam\V1\Policy|null - */ - public function getPolicy() - { - return $this->policy; - } - - public function hasPolicy() - { - return isset($this->policy); - } - - public function clearPolicy() - { - unset($this->policy); - } - - /** - * REQUIRED: The complete policy to be applied to the `resource`. The size of - * the policy is limited to a few 10s of KB. An empty policy is a - * valid policy but certain Cloud Platform services (such as Projects) - * might reject them. - * - * Generated from protobuf field .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Iam\V1\Policy $var - * @return $this - */ - public function setPolicy($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Iam\V1\Policy::class); - $this->policy = $var; - - return $this; - } - - /** - * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only - * the fields in the mask will be modified. If no mask is provided, the - * following default mask is used: - * `paths: "bindings, etag"` - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only - * the fields in the mask will be modified. If no mask is provided, the - * following default mask is used: - * `paths: "bindings, etag"` - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/TestIamPermissionsRequest.php b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/TestIamPermissionsRequest.php deleted file mode 100644 index cc98a3ddb997..000000000000 --- a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/TestIamPermissionsRequest.php +++ /dev/null @@ -1,117 +0,0 @@ -google.iam.v1.TestIamPermissionsRequest - */ -class TestIamPermissionsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * REQUIRED: The resource for which the policy detail is being requested. - * See the operation documentation for the appropriate value for this field. - * - * Generated from protobuf field string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $resource = ''; - /** - * The set of permissions to check for the `resource`. Permissions with - * wildcards (such as '*' or 'storage.*') are not allowed. For more - * information see - * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). - * - * Generated from protobuf field repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private $permissions; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $resource - * REQUIRED: The resource for which the policy detail is being requested. - * See the operation documentation for the appropriate value for this field. - * @type string[] $permissions - * The set of permissions to check for the `resource`. Permissions with - * wildcards (such as '*' or 'storage.*') are not allowed. For more - * information see - * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Iam\V1\IamPolicy::initOnce(); - parent::__construct($data); - } - - /** - * REQUIRED: The resource for which the policy detail is being requested. - * See the operation documentation for the appropriate value for this field. - * - * Generated from protobuf field string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getResource() - { - return $this->resource; - } - - /** - * REQUIRED: The resource for which the policy detail is being requested. - * See the operation documentation for the appropriate value for this field. - * - * Generated from protobuf field string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setResource($var) - { - GPBUtil::checkString($var, True); - $this->resource = $var; - - return $this; - } - - /** - * The set of permissions to check for the `resource`. Permissions with - * wildcards (such as '*' or 'storage.*') are not allowed. For more - * information see - * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). - * - * Generated from protobuf field repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return RepeatedField - */ - public function getPermissions() - { - return $this->permissions; - } - - /** - * The set of permissions to check for the `resource`. Permissions with - * wildcards (such as '*' or 'storage.*') are not allowed. For more - * information see - * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). - * - * Generated from protobuf field repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string[] $var - * @return $this - */ - public function setPermissions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->permissions = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/TestIamPermissionsResponse.php b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/TestIamPermissionsResponse.php deleted file mode 100644 index 310290095216..000000000000 --- a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/TestIamPermissionsResponse.php +++ /dev/null @@ -1,71 +0,0 @@ -google.iam.v1.TestIamPermissionsResponse - */ -class TestIamPermissionsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * A subset of `TestPermissionsRequest.permissions` that the caller is - * allowed. - * - * Generated from protobuf field repeated string permissions = 1; - */ - private $permissions; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string[] $permissions - * A subset of `TestPermissionsRequest.permissions` that the caller is - * allowed. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Iam\V1\IamPolicy::initOnce(); - parent::__construct($data); - } - - /** - * A subset of `TestPermissionsRequest.permissions` that the caller is - * allowed. - * - * Generated from protobuf field repeated string permissions = 1; - * @return RepeatedField - */ - public function getPermissions() - { - return $this->permissions; - } - - /** - * A subset of `TestPermissionsRequest.permissions` that the caller is - * allowed. - * - * Generated from protobuf field repeated string permissions = 1; - * @param string[] $var - * @return $this - */ - public function setPermissions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->permissions = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Iam/V1/Logging/AuditData.php b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Iam/V1/Logging/AuditData.php deleted file mode 100644 index 48aae57bd29f..000000000000 --- a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Iam/V1/Logging/AuditData.php +++ /dev/null @@ -1,79 +0,0 @@ -google.iam.v1.logging.AuditData - */ -class AuditData extends \Google\Protobuf\Internal\Message -{ - /** - * Policy delta between the original policy and the newly set policy. - * - * Generated from protobuf field .google.iam.v1.PolicyDelta policy_delta = 2; - */ - protected $policy_delta = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Iam\V1\PolicyDelta $policy_delta - * Policy delta between the original policy and the newly set policy. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Iam\V1\Logging\AuditData::initOnce(); - parent::__construct($data); - } - - /** - * Policy delta between the original policy and the newly set policy. - * - * Generated from protobuf field .google.iam.v1.PolicyDelta policy_delta = 2; - * @return \Google\Cloud\Iam\V1\PolicyDelta|null - */ - public function getPolicyDelta() - { - return $this->policy_delta; - } - - public function hasPolicyDelta() - { - return isset($this->policy_delta); - } - - public function clearPolicyDelta() - { - unset($this->policy_delta); - } - - /** - * Policy delta between the original policy and the newly set policy. - * - * Generated from protobuf field .google.iam.v1.PolicyDelta policy_delta = 2; - * @param \Google\Cloud\Iam\V1\PolicyDelta $var - * @return $this - */ - public function setPolicyDelta($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Iam\V1\PolicyDelta::class); - $this->policy_delta = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/iamlogging/proto/src/GPBMetadata/Google/Iam/V1/Logging/AuditData.php b/owl-bot-staging/CommonProtos/iamlogging/proto/src/GPBMetadata/Google/Iam/V1/Logging/AuditData.php deleted file mode 100644 index 93ae1a0279ec..000000000000 --- a/owl-bot-staging/CommonProtos/iamlogging/proto/src/GPBMetadata/Google/Iam/V1/Logging/AuditData.php +++ /dev/null @@ -1,25 +0,0 @@ -internalAddGeneratedFile( - "\x0A\x8F\x02\x0A&google/iam/v1/logging/audit_data.proto\x12\x15google.iam.v1.logging\"=\x0A\x09AuditData\x120\x0A\x0Cpolicy_delta\x18\x02 \x01(\x0B2\x1A.google.iam.v1.PolicyDeltaB\x86\x01\x0A\x19com.google.iam.v1.loggingB\x0EAuditDataProtoP\x01Z9cloud.google.com/go/iam/apiv1/logging/loggingpb;loggingpb\xAA\x02\x1BGoogle.Cloud.Iam.V1.Loggingb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/iamlogging/proto/src/Google/Iam/V1/Logging/AuditData.php b/owl-bot-staging/CommonProtos/iamlogging/proto/src/Google/Iam/V1/Logging/AuditData.php deleted file mode 100644 index 48aae57bd29f..000000000000 --- a/owl-bot-staging/CommonProtos/iamlogging/proto/src/Google/Iam/V1/Logging/AuditData.php +++ /dev/null @@ -1,79 +0,0 @@ -google.iam.v1.logging.AuditData - */ -class AuditData extends \Google\Protobuf\Internal\Message -{ - /** - * Policy delta between the original policy and the newly set policy. - * - * Generated from protobuf field .google.iam.v1.PolicyDelta policy_delta = 2; - */ - protected $policy_delta = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Iam\V1\PolicyDelta $policy_delta - * Policy delta between the original policy and the newly set policy. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Iam\V1\Logging\AuditData::initOnce(); - parent::__construct($data); - } - - /** - * Policy delta between the original policy and the newly set policy. - * - * Generated from protobuf field .google.iam.v1.PolicyDelta policy_delta = 2; - * @return \Google\Cloud\Iam\V1\PolicyDelta|null - */ - public function getPolicyDelta() - { - return $this->policy_delta; - } - - public function hasPolicyDelta() - { - return isset($this->policy_delta); - } - - public function clearPolicyDelta() - { - unset($this->policy_delta); - } - - /** - * Policy delta between the original policy and the newly set policy. - * - * Generated from protobuf field .google.iam.v1.PolicyDelta policy_delta = 2; - * @param \Google\Cloud\Iam\V1\PolicyDelta $var - * @return $this - */ - public function setPolicyDelta($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Iam\V1\PolicyDelta::class); - $this->policy_delta = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/location/proto/src/GPBMetadata/Google/Cloud/Location/Locations.php b/owl-bot-staging/CommonProtos/location/proto/src/GPBMetadata/Google/Cloud/Location/Locations.php deleted file mode 100644 index d18965d1bd1e..000000000000 --- a/owl-bot-staging/CommonProtos/location/proto/src/GPBMetadata/Google/Cloud/Location/Locations.php +++ /dev/null @@ -1,27 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xD3\x08\x0A%google/cloud/location/locations.proto\x12\x15google.cloud.location\x1A\x19google/protobuf/any.proto\x1A\x17google/api/client.proto\"[\x0A\x14ListLocationsRequest\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12\x0E\x0A\x06filter\x18\x02 \x01(\x09\x12\x11\x0A\x09page_size\x18\x03 \x01(\x05\x12\x12\x0A\x0Apage_token\x18\x04 \x01(\x09\"d\x0A\x15ListLocationsResponse\x122\x0A\x09locations\x18\x01 \x03(\x0B2\x1F.google.cloud.location.Location\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\"\x0A\x12GetLocationRequest\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\"\xD7\x01\x0A\x08Location\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12\x13\x0A\x0Blocation_id\x18\x04 \x01(\x09\x12\x14\x0A\x0Cdisplay_name\x18\x05 \x01(\x09\x12;\x0A\x06labels\x18\x02 \x03(\x0B2+.google.cloud.location.Location.LabelsEntry\x12&\x0A\x08metadata\x18\x03 \x01(\x0B2\x14.google.protobuf.Any\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x012\xA4\x03\x0A\x09Locations\x12\xAB\x01\x0A\x0DListLocations\x12+.google.cloud.location.ListLocationsRequest\x1A,.google.cloud.location.ListLocationsResponse\"?\x82\xD3\xE4\x93\x029\x12\x14/v1/{name=locations}Z!\x12\x1F/v1/{name=projects/*}/locations\x12\x9E\x01\x0A\x0BGetLocation\x12).google.cloud.location.GetLocationRequest\x1A\x1F.google.cloud.location.Location\"C\x82\xD3\xE4\x93\x02=\x12\x16/v1/{name=locations/*}Z#\x12!/v1/{name=projects/*/locations/*}\x1AH\xCAA\x14cloud.googleapis.com\xD2A.https://www.googleapis.com/auth/cloud-platformBo\x0A\x19com.google.cloud.locationB\x0ELocationsProtoP\x01Z=google.golang.org/genproto/googleapis/cloud/location;location\xF8\x01\x01b\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/location/proto/src/Google/Cloud/Location/GetLocationRequest.php b/owl-bot-staging/CommonProtos/location/proto/src/Google/Cloud/Location/GetLocationRequest.php deleted file mode 100644 index a83de9e37c51..000000000000 --- a/owl-bot-staging/CommonProtos/location/proto/src/Google/Cloud/Location/GetLocationRequest.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.location.GetLocationRequest - */ -class GetLocationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Resource name for the location. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Resource name for the location. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Location\Locations::initOnce(); - parent::__construct($data); - } - - /** - * Resource name for the location. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Resource name for the location. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/location/proto/src/Google/Cloud/Location/ListLocationsRequest.php b/owl-bot-staging/CommonProtos/location/proto/src/Google/Cloud/Location/ListLocationsRequest.php deleted file mode 100644 index d7167a00f1d0..000000000000 --- a/owl-bot-staging/CommonProtos/location/proto/src/Google/Cloud/Location/ListLocationsRequest.php +++ /dev/null @@ -1,169 +0,0 @@ -google.cloud.location.ListLocationsRequest - */ -class ListLocationsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The resource that owns the locations collection, if applicable. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * The standard list filter. - * - * Generated from protobuf field string filter = 2; - */ - protected $filter = ''; - /** - * The standard list page size. - * - * Generated from protobuf field int32 page_size = 3; - */ - protected $page_size = 0; - /** - * The standard list page token. - * - * Generated from protobuf field string page_token = 4; - */ - protected $page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The resource that owns the locations collection, if applicable. - * @type string $filter - * The standard list filter. - * @type int $page_size - * The standard list page size. - * @type string $page_token - * The standard list page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Location\Locations::initOnce(); - parent::__construct($data); - } - - /** - * The resource that owns the locations collection, if applicable. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The resource that owns the locations collection, if applicable. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The standard list filter. - * - * Generated from protobuf field string filter = 2; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * The standard list filter. - * - * Generated from protobuf field string filter = 2; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * The standard list page size. - * - * Generated from protobuf field int32 page_size = 3; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The standard list page size. - * - * Generated from protobuf field int32 page_size = 3; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * The standard list page token. - * - * Generated from protobuf field string page_token = 4; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * The standard list page token. - * - * Generated from protobuf field string page_token = 4; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/location/proto/src/Google/Cloud/Location/ListLocationsResponse.php b/owl-bot-staging/CommonProtos/location/proto/src/Google/Cloud/Location/ListLocationsResponse.php deleted file mode 100644 index 66a1b5882369..000000000000 --- a/owl-bot-staging/CommonProtos/location/proto/src/Google/Cloud/Location/ListLocationsResponse.php +++ /dev/null @@ -1,101 +0,0 @@ -google.cloud.location.ListLocationsResponse - */ -class ListLocationsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * A list of locations that matches the specified filter in the request. - * - * Generated from protobuf field repeated .google.cloud.location.Location locations = 1; - */ - private $locations; - /** - * The standard List next-page token. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Location\Location[] $locations - * A list of locations that matches the specified filter in the request. - * @type string $next_page_token - * The standard List next-page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Location\Locations::initOnce(); - parent::__construct($data); - } - - /** - * A list of locations that matches the specified filter in the request. - * - * Generated from protobuf field repeated .google.cloud.location.Location locations = 1; - * @return RepeatedField<\Google\Cloud\Location\Location> - */ - public function getLocations() - { - return $this->locations; - } - - /** - * A list of locations that matches the specified filter in the request. - * - * Generated from protobuf field repeated .google.cloud.location.Location locations = 1; - * @param \Google\Cloud\Location\Location[] $var - * @return $this - */ - public function setLocations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Location\Location::class); - $this->locations = $arr; - - return $this; - } - - /** - * The standard List next-page token. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * The standard List next-page token. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/location/proto/src/Google/Cloud/Location/Location.php b/owl-bot-staging/CommonProtos/location/proto/src/Google/Cloud/Location/Location.php deleted file mode 100644 index fb02c317e56f..000000000000 --- a/owl-bot-staging/CommonProtos/location/proto/src/Google/Cloud/Location/Location.php +++ /dev/null @@ -1,229 +0,0 @@ -google.cloud.location.Location - */ -class Location extends \Google\Protobuf\Internal\Message -{ - /** - * Resource name for the location, which may vary between implementations. - * For example: `"projects/example-project/locations/us-east1"` - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * The canonical id for this location. For example: `"us-east1"`. - * - * Generated from protobuf field string location_id = 4; - */ - protected $location_id = ''; - /** - * The friendly name for this location, typically a nearby city name. - * For example, "Tokyo". - * - * Generated from protobuf field string display_name = 5; - */ - protected $display_name = ''; - /** - * Cross-service attributes for the location. For example - * {"cloud.googleapis.com/region": "us-east1"} - * - * Generated from protobuf field map labels = 2; - */ - private $labels; - /** - * Service-specific metadata. For example the available capacity at the given - * location. - * - * Generated from protobuf field .google.protobuf.Any metadata = 3; - */ - protected $metadata = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Resource name for the location, which may vary between implementations. - * For example: `"projects/example-project/locations/us-east1"` - * @type string $location_id - * The canonical id for this location. For example: `"us-east1"`. - * @type string $display_name - * The friendly name for this location, typically a nearby city name. - * For example, "Tokyo". - * @type array|\Google\Protobuf\Internal\MapField $labels - * Cross-service attributes for the location. For example - * {"cloud.googleapis.com/region": "us-east1"} - * @type \Google\Protobuf\Any $metadata - * Service-specific metadata. For example the available capacity at the given - * location. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Location\Locations::initOnce(); - parent::__construct($data); - } - - /** - * Resource name for the location, which may vary between implementations. - * For example: `"projects/example-project/locations/us-east1"` - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Resource name for the location, which may vary between implementations. - * For example: `"projects/example-project/locations/us-east1"` - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The canonical id for this location. For example: `"us-east1"`. - * - * Generated from protobuf field string location_id = 4; - * @return string - */ - public function getLocationId() - { - return $this->location_id; - } - - /** - * The canonical id for this location. For example: `"us-east1"`. - * - * Generated from protobuf field string location_id = 4; - * @param string $var - * @return $this - */ - public function setLocationId($var) - { - GPBUtil::checkString($var, True); - $this->location_id = $var; - - return $this; - } - - /** - * The friendly name for this location, typically a nearby city name. - * For example, "Tokyo". - * - * Generated from protobuf field string display_name = 5; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * The friendly name for this location, typically a nearby city name. - * For example, "Tokyo". - * - * Generated from protobuf field string display_name = 5; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Cross-service attributes for the location. For example - * {"cloud.googleapis.com/region": "us-east1"} - * - * Generated from protobuf field map labels = 2; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Cross-service attributes for the location. For example - * {"cloud.googleapis.com/region": "us-east1"} - * - * Generated from protobuf field map labels = 2; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - - /** - * Service-specific metadata. For example the available capacity at the given - * location. - * - * Generated from protobuf field .google.protobuf.Any metadata = 3; - * @return \Google\Protobuf\Any|null - */ - public function getMetadata() - { - return $this->metadata; - } - - public function hasMetadata() - { - return isset($this->metadata); - } - - public function clearMetadata() - { - unset($this->metadata); - } - - /** - * Service-specific metadata. For example the available capacity at the given - * location. - * - * Generated from protobuf field .google.protobuf.Any metadata = 3; - * @param \Google\Protobuf\Any $var - * @return $this - */ - public function setMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Any::class); - $this->metadata = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/logging/proto/src/GPBMetadata/Google/Logging/Type/HttpRequest.php b/owl-bot-staging/CommonProtos/logging/proto/src/GPBMetadata/Google/Logging/Type/HttpRequest.php deleted file mode 100644 index 5bb5ed5eb488..000000000000 --- a/owl-bot-staging/CommonProtos/logging/proto/src/GPBMetadata/Google/Logging/Type/HttpRequest.php +++ /dev/null @@ -1,25 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xF8\x04\x0A&google/logging/type/http_request.proto\x12\x13google.logging.type\"\xEF\x02\x0A\x0BHttpRequest\x12\x16\x0A\x0Erequest_method\x18\x01 \x01(\x09\x12\x13\x0A\x0Brequest_url\x18\x02 \x01(\x09\x12\x14\x0A\x0Crequest_size\x18\x03 \x01(\x03\x12\x0E\x0A\x06status\x18\x04 \x01(\x05\x12\x15\x0A\x0Dresponse_size\x18\x05 \x01(\x03\x12\x12\x0A\x0Auser_agent\x18\x06 \x01(\x09\x12\x11\x0A\x09remote_ip\x18\x07 \x01(\x09\x12\x11\x0A\x09server_ip\x18\x0D \x01(\x09\x12\x0F\x0A\x07referer\x18\x08 \x01(\x09\x12*\x0A\x07latency\x18\x0E \x01(\x0B2\x19.google.protobuf.Duration\x12\x14\x0A\x0Ccache_lookup\x18\x0B \x01(\x08\x12\x11\x0A\x09cache_hit\x18\x09 \x01(\x08\x12*\x0A\"cache_validated_with_origin_server\x18\x0A \x01(\x08\x12\x18\x0A\x10cache_fill_bytes\x18\x0C \x01(\x03\x12\x10\x0A\x08protocol\x18\x0F \x01(\x09B\xBE\x01\x0A\x17com.google.logging.typeB\x10HttpRequestProtoP\x01Z8google.golang.org/genproto/googleapis/logging/type;ltype\xAA\x02\x19Google.Cloud.Logging.Type\xCA\x02\x19Google\\Cloud\\Logging\\Type\xEA\x02\x1CGoogle::Cloud::Logging::Typeb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/logging/proto/src/GPBMetadata/Google/Logging/Type/LogSeverity.php b/owl-bot-staging/CommonProtos/logging/proto/src/GPBMetadata/Google/Logging/Type/LogSeverity.php deleted file mode 100644 index 0955634f7305..000000000000 --- a/owl-bot-staging/CommonProtos/logging/proto/src/GPBMetadata/Google/Logging/Type/LogSeverity.php +++ /dev/null @@ -1,24 +0,0 @@ -internalAddGeneratedFile( - "\x0A\x92\x03\x0A&google/logging/type/log_severity.proto\x12\x13google.logging.type*\x82\x01\x0A\x0BLogSeverity\x12\x0B\x0A\x07DEFAULT\x10\x00\x12\x09\x0A\x05DEBUG\x10d\x12\x09\x0A\x04INFO\x10\xC8\x01\x12\x0B\x0A\x06NOTICE\x10\xAC\x02\x12\x0C\x0A\x07WARNING\x10\x90\x03\x12\x0A\x0A\x05ERROR\x10\xF4\x03\x12\x0D\x0A\x08CRITICAL\x10\xD8\x04\x12\x0A\x0A\x05ALERT\x10\xBC\x05\x12\x0E\x0A\x09EMERGENCY\x10\xA0\x06B\xC5\x01\x0A\x17com.google.logging.typeB\x10LogSeverityProtoP\x01Z8google.golang.org/genproto/googleapis/logging/type;ltype\xA2\x02\x04GLOG\xAA\x02\x19Google.Cloud.Logging.Type\xCA\x02\x19Google\\Cloud\\Logging\\Type\xEA\x02\x1CGoogle::Cloud::Logging::Typeb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/logging/proto/src/Google/Cloud/Logging/Type/HttpRequest.php b/owl-bot-staging/CommonProtos/logging/proto/src/Google/Cloud/Logging/Type/HttpRequest.php deleted file mode 100644 index 6ccdd4078b5b..000000000000 --- a/owl-bot-staging/CommonProtos/logging/proto/src/Google/Cloud/Logging/Type/HttpRequest.php +++ /dev/null @@ -1,627 +0,0 @@ -google.logging.type.HttpRequest - */ -class HttpRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The request method. Examples: `"GET"`, `"HEAD"`, `"PUT"`, `"POST"`. - * - * Generated from protobuf field string request_method = 1; - */ - protected $request_method = ''; - /** - * The scheme (http, https), the host name, the path and the query - * portion of the URL that was requested. - * Example: `"http://example.com/some/info?color=red"`. - * - * Generated from protobuf field string request_url = 2; - */ - protected $request_url = ''; - /** - * The size of the HTTP request message in bytes, including the request - * headers and the request body. - * - * Generated from protobuf field int64 request_size = 3; - */ - protected $request_size = 0; - /** - * The response code indicating the status of response. - * Examples: 200, 404. - * - * Generated from protobuf field int32 status = 4; - */ - protected $status = 0; - /** - * The size of the HTTP response message sent back to the client, in bytes, - * including the response headers and the response body. - * - * Generated from protobuf field int64 response_size = 5; - */ - protected $response_size = 0; - /** - * The user agent sent by the client. Example: - * `"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET - * CLR 1.0.3705)"`. - * - * Generated from protobuf field string user_agent = 6; - */ - protected $user_agent = ''; - /** - * The IP address (IPv4 or IPv6) of the client that issued the HTTP - * request. This field can include port information. Examples: - * `"192.168.1.1"`, `"10.0.0.1:80"`, `"FE80::0202:B3FF:FE1E:8329"`. - * - * Generated from protobuf field string remote_ip = 7; - */ - protected $remote_ip = ''; - /** - * The IP address (IPv4 or IPv6) of the origin server that the request was - * sent to. This field can include port information. Examples: - * `"192.168.1.1"`, `"10.0.0.1:80"`, `"FE80::0202:B3FF:FE1E:8329"`. - * - * Generated from protobuf field string server_ip = 13; - */ - protected $server_ip = ''; - /** - * The referer URL of the request, as defined in - * [HTTP/1.1 Header Field - * Definitions](https://datatracker.ietf.org/doc/html/rfc2616#section-14.36). - * - * Generated from protobuf field string referer = 8; - */ - protected $referer = ''; - /** - * The request processing latency on the server, from the time the request was - * received until the response was sent. - * - * Generated from protobuf field .google.protobuf.Duration latency = 14; - */ - protected $latency = null; - /** - * Whether or not a cache lookup was attempted. - * - * Generated from protobuf field bool cache_lookup = 11; - */ - protected $cache_lookup = false; - /** - * Whether or not an entity was served from cache - * (with or without validation). - * - * Generated from protobuf field bool cache_hit = 9; - */ - protected $cache_hit = false; - /** - * Whether or not the response was validated with the origin server before - * being served from cache. This field is only meaningful if `cache_hit` is - * True. - * - * Generated from protobuf field bool cache_validated_with_origin_server = 10; - */ - protected $cache_validated_with_origin_server = false; - /** - * The number of HTTP response bytes inserted into cache. Set only when a - * cache fill was attempted. - * - * Generated from protobuf field int64 cache_fill_bytes = 12; - */ - protected $cache_fill_bytes = 0; - /** - * Protocol used for the request. Examples: "HTTP/1.1", "HTTP/2", "websocket" - * - * Generated from protobuf field string protocol = 15; - */ - protected $protocol = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $request_method - * The request method. Examples: `"GET"`, `"HEAD"`, `"PUT"`, `"POST"`. - * @type string $request_url - * The scheme (http, https), the host name, the path and the query - * portion of the URL that was requested. - * Example: `"http://example.com/some/info?color=red"`. - * @type int|string $request_size - * The size of the HTTP request message in bytes, including the request - * headers and the request body. - * @type int $status - * The response code indicating the status of response. - * Examples: 200, 404. - * @type int|string $response_size - * The size of the HTTP response message sent back to the client, in bytes, - * including the response headers and the response body. - * @type string $user_agent - * The user agent sent by the client. Example: - * `"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET - * CLR 1.0.3705)"`. - * @type string $remote_ip - * The IP address (IPv4 or IPv6) of the client that issued the HTTP - * request. This field can include port information. Examples: - * `"192.168.1.1"`, `"10.0.0.1:80"`, `"FE80::0202:B3FF:FE1E:8329"`. - * @type string $server_ip - * The IP address (IPv4 or IPv6) of the origin server that the request was - * sent to. This field can include port information. Examples: - * `"192.168.1.1"`, `"10.0.0.1:80"`, `"FE80::0202:B3FF:FE1E:8329"`. - * @type string $referer - * The referer URL of the request, as defined in - * [HTTP/1.1 Header Field - * Definitions](https://datatracker.ietf.org/doc/html/rfc2616#section-14.36). - * @type \Google\Protobuf\Duration $latency - * The request processing latency on the server, from the time the request was - * received until the response was sent. - * @type bool $cache_lookup - * Whether or not a cache lookup was attempted. - * @type bool $cache_hit - * Whether or not an entity was served from cache - * (with or without validation). - * @type bool $cache_validated_with_origin_server - * Whether or not the response was validated with the origin server before - * being served from cache. This field is only meaningful if `cache_hit` is - * True. - * @type int|string $cache_fill_bytes - * The number of HTTP response bytes inserted into cache. Set only when a - * cache fill was attempted. - * @type string $protocol - * Protocol used for the request. Examples: "HTTP/1.1", "HTTP/2", "websocket" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Logging\Type\HttpRequest::initOnce(); - parent::__construct($data); - } - - /** - * The request method. Examples: `"GET"`, `"HEAD"`, `"PUT"`, `"POST"`. - * - * Generated from protobuf field string request_method = 1; - * @return string - */ - public function getRequestMethod() - { - return $this->request_method; - } - - /** - * The request method. Examples: `"GET"`, `"HEAD"`, `"PUT"`, `"POST"`. - * - * Generated from protobuf field string request_method = 1; - * @param string $var - * @return $this - */ - public function setRequestMethod($var) - { - GPBUtil::checkString($var, True); - $this->request_method = $var; - - return $this; - } - - /** - * The scheme (http, https), the host name, the path and the query - * portion of the URL that was requested. - * Example: `"http://example.com/some/info?color=red"`. - * - * Generated from protobuf field string request_url = 2; - * @return string - */ - public function getRequestUrl() - { - return $this->request_url; - } - - /** - * The scheme (http, https), the host name, the path and the query - * portion of the URL that was requested. - * Example: `"http://example.com/some/info?color=red"`. - * - * Generated from protobuf field string request_url = 2; - * @param string $var - * @return $this - */ - public function setRequestUrl($var) - { - GPBUtil::checkString($var, True); - $this->request_url = $var; - - return $this; - } - - /** - * The size of the HTTP request message in bytes, including the request - * headers and the request body. - * - * Generated from protobuf field int64 request_size = 3; - * @return int|string - */ - public function getRequestSize() - { - return $this->request_size; - } - - /** - * The size of the HTTP request message in bytes, including the request - * headers and the request body. - * - * Generated from protobuf field int64 request_size = 3; - * @param int|string $var - * @return $this - */ - public function setRequestSize($var) - { - GPBUtil::checkInt64($var); - $this->request_size = $var; - - return $this; - } - - /** - * The response code indicating the status of response. - * Examples: 200, 404. - * - * Generated from protobuf field int32 status = 4; - * @return int - */ - public function getStatus() - { - return $this->status; - } - - /** - * The response code indicating the status of response. - * Examples: 200, 404. - * - * Generated from protobuf field int32 status = 4; - * @param int $var - * @return $this - */ - public function setStatus($var) - { - GPBUtil::checkInt32($var); - $this->status = $var; - - return $this; - } - - /** - * The size of the HTTP response message sent back to the client, in bytes, - * including the response headers and the response body. - * - * Generated from protobuf field int64 response_size = 5; - * @return int|string - */ - public function getResponseSize() - { - return $this->response_size; - } - - /** - * The size of the HTTP response message sent back to the client, in bytes, - * including the response headers and the response body. - * - * Generated from protobuf field int64 response_size = 5; - * @param int|string $var - * @return $this - */ - public function setResponseSize($var) - { - GPBUtil::checkInt64($var); - $this->response_size = $var; - - return $this; - } - - /** - * The user agent sent by the client. Example: - * `"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET - * CLR 1.0.3705)"`. - * - * Generated from protobuf field string user_agent = 6; - * @return string - */ - public function getUserAgent() - { - return $this->user_agent; - } - - /** - * The user agent sent by the client. Example: - * `"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET - * CLR 1.0.3705)"`. - * - * Generated from protobuf field string user_agent = 6; - * @param string $var - * @return $this - */ - public function setUserAgent($var) - { - GPBUtil::checkString($var, True); - $this->user_agent = $var; - - return $this; - } - - /** - * The IP address (IPv4 or IPv6) of the client that issued the HTTP - * request. This field can include port information. Examples: - * `"192.168.1.1"`, `"10.0.0.1:80"`, `"FE80::0202:B3FF:FE1E:8329"`. - * - * Generated from protobuf field string remote_ip = 7; - * @return string - */ - public function getRemoteIp() - { - return $this->remote_ip; - } - - /** - * The IP address (IPv4 or IPv6) of the client that issued the HTTP - * request. This field can include port information. Examples: - * `"192.168.1.1"`, `"10.0.0.1:80"`, `"FE80::0202:B3FF:FE1E:8329"`. - * - * Generated from protobuf field string remote_ip = 7; - * @param string $var - * @return $this - */ - public function setRemoteIp($var) - { - GPBUtil::checkString($var, True); - $this->remote_ip = $var; - - return $this; - } - - /** - * The IP address (IPv4 or IPv6) of the origin server that the request was - * sent to. This field can include port information. Examples: - * `"192.168.1.1"`, `"10.0.0.1:80"`, `"FE80::0202:B3FF:FE1E:8329"`. - * - * Generated from protobuf field string server_ip = 13; - * @return string - */ - public function getServerIp() - { - return $this->server_ip; - } - - /** - * The IP address (IPv4 or IPv6) of the origin server that the request was - * sent to. This field can include port information. Examples: - * `"192.168.1.1"`, `"10.0.0.1:80"`, `"FE80::0202:B3FF:FE1E:8329"`. - * - * Generated from protobuf field string server_ip = 13; - * @param string $var - * @return $this - */ - public function setServerIp($var) - { - GPBUtil::checkString($var, True); - $this->server_ip = $var; - - return $this; - } - - /** - * The referer URL of the request, as defined in - * [HTTP/1.1 Header Field - * Definitions](https://datatracker.ietf.org/doc/html/rfc2616#section-14.36). - * - * Generated from protobuf field string referer = 8; - * @return string - */ - public function getReferer() - { - return $this->referer; - } - - /** - * The referer URL of the request, as defined in - * [HTTP/1.1 Header Field - * Definitions](https://datatracker.ietf.org/doc/html/rfc2616#section-14.36). - * - * Generated from protobuf field string referer = 8; - * @param string $var - * @return $this - */ - public function setReferer($var) - { - GPBUtil::checkString($var, True); - $this->referer = $var; - - return $this; - } - - /** - * The request processing latency on the server, from the time the request was - * received until the response was sent. - * - * Generated from protobuf field .google.protobuf.Duration latency = 14; - * @return \Google\Protobuf\Duration|null - */ - public function getLatency() - { - return $this->latency; - } - - public function hasLatency() - { - return isset($this->latency); - } - - public function clearLatency() - { - unset($this->latency); - } - - /** - * The request processing latency on the server, from the time the request was - * received until the response was sent. - * - * Generated from protobuf field .google.protobuf.Duration latency = 14; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setLatency($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->latency = $var; - - return $this; - } - - /** - * Whether or not a cache lookup was attempted. - * - * Generated from protobuf field bool cache_lookup = 11; - * @return bool - */ - public function getCacheLookup() - { - return $this->cache_lookup; - } - - /** - * Whether or not a cache lookup was attempted. - * - * Generated from protobuf field bool cache_lookup = 11; - * @param bool $var - * @return $this - */ - public function setCacheLookup($var) - { - GPBUtil::checkBool($var); - $this->cache_lookup = $var; - - return $this; - } - - /** - * Whether or not an entity was served from cache - * (with or without validation). - * - * Generated from protobuf field bool cache_hit = 9; - * @return bool - */ - public function getCacheHit() - { - return $this->cache_hit; - } - - /** - * Whether or not an entity was served from cache - * (with or without validation). - * - * Generated from protobuf field bool cache_hit = 9; - * @param bool $var - * @return $this - */ - public function setCacheHit($var) - { - GPBUtil::checkBool($var); - $this->cache_hit = $var; - - return $this; - } - - /** - * Whether or not the response was validated with the origin server before - * being served from cache. This field is only meaningful if `cache_hit` is - * True. - * - * Generated from protobuf field bool cache_validated_with_origin_server = 10; - * @return bool - */ - public function getCacheValidatedWithOriginServer() - { - return $this->cache_validated_with_origin_server; - } - - /** - * Whether or not the response was validated with the origin server before - * being served from cache. This field is only meaningful if `cache_hit` is - * True. - * - * Generated from protobuf field bool cache_validated_with_origin_server = 10; - * @param bool $var - * @return $this - */ - public function setCacheValidatedWithOriginServer($var) - { - GPBUtil::checkBool($var); - $this->cache_validated_with_origin_server = $var; - - return $this; - } - - /** - * The number of HTTP response bytes inserted into cache. Set only when a - * cache fill was attempted. - * - * Generated from protobuf field int64 cache_fill_bytes = 12; - * @return int|string - */ - public function getCacheFillBytes() - { - return $this->cache_fill_bytes; - } - - /** - * The number of HTTP response bytes inserted into cache. Set only when a - * cache fill was attempted. - * - * Generated from protobuf field int64 cache_fill_bytes = 12; - * @param int|string $var - * @return $this - */ - public function setCacheFillBytes($var) - { - GPBUtil::checkInt64($var); - $this->cache_fill_bytes = $var; - - return $this; - } - - /** - * Protocol used for the request. Examples: "HTTP/1.1", "HTTP/2", "websocket" - * - * Generated from protobuf field string protocol = 15; - * @return string - */ - public function getProtocol() - { - return $this->protocol; - } - - /** - * Protocol used for the request. Examples: "HTTP/1.1", "HTTP/2", "websocket" - * - * Generated from protobuf field string protocol = 15; - * @param string $var - * @return $this - */ - public function setProtocol($var) - { - GPBUtil::checkString($var, True); - $this->protocol = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/logging/proto/src/Google/Cloud/Logging/Type/LogSeverity.php b/owl-bot-staging/CommonProtos/logging/proto/src/Google/Cloud/Logging/Type/LogSeverity.php deleted file mode 100644 index dc64792e5661..000000000000 --- a/owl-bot-staging/CommonProtos/logging/proto/src/Google/Cloud/Logging/Type/LogSeverity.php +++ /dev/null @@ -1,119 +0,0 @@ - DEBUG AND severity <= WARNING - * If you are writing log entries, you should map other severity encodings to - * one of these standard levels. For example, you might map all of Java's FINE, - * FINER, and FINEST levels to `LogSeverity.DEBUG`. You can preserve the - * original severity level in the log entry payload if you wish. - * - * Protobuf type google.logging.type.LogSeverity - */ -class LogSeverity -{ - /** - * (0) The log entry has no assigned severity level. - * - * Generated from protobuf enum DEFAULT = 0; - */ - const PBDEFAULT = 0; - /** - * (100) Debug or trace information. - * - * Generated from protobuf enum DEBUG = 100; - */ - const DEBUG = 100; - /** - * (200) Routine information, such as ongoing status or performance. - * - * Generated from protobuf enum INFO = 200; - */ - const INFO = 200; - /** - * (300) Normal but significant events, such as start up, shut down, or - * a configuration change. - * - * Generated from protobuf enum NOTICE = 300; - */ - const NOTICE = 300; - /** - * (400) Warning events might cause problems. - * - * Generated from protobuf enum WARNING = 400; - */ - const WARNING = 400; - /** - * (500) Error events are likely to cause problems. - * - * Generated from protobuf enum ERROR = 500; - */ - const ERROR = 500; - /** - * (600) Critical events cause more severe problems or outages. - * - * Generated from protobuf enum CRITICAL = 600; - */ - const CRITICAL = 600; - /** - * (700) A person must take an action immediately. - * - * Generated from protobuf enum ALERT = 700; - */ - const ALERT = 700; - /** - * (800) One or more systems are unusable. - * - * Generated from protobuf enum EMERGENCY = 800; - */ - const EMERGENCY = 800; - - private static $valueToName = [ - self::PBDEFAULT => 'DEFAULT', - self::DEBUG => 'DEBUG', - self::INFO => 'INFO', - self::NOTICE => 'NOTICE', - self::WARNING => 'WARNING', - self::ERROR => 'ERROR', - self::CRITICAL => 'CRITICAL', - self::ALERT => 'ALERT', - self::EMERGENCY => 'EMERGENCY', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - $pbconst = __CLASS__. '::PB' . strtoupper($name); - if (!defined($pbconst)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($pbconst); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/GPBMetadata/Google/Rpc/Code.php b/owl-bot-staging/CommonProtos/rpc/proto/src/GPBMetadata/Google/Rpc/Code.php deleted file mode 100644 index fe364e8ea743..000000000000 --- a/owl-bot-staging/CommonProtos/rpc/proto/src/GPBMetadata/Google/Rpc/Code.php +++ /dev/null @@ -1,24 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xBF\x03\x0A\x15google/rpc/code.proto\x12\x0Agoogle.rpc*\xB7\x02\x0A\x04Code\x12\x06\x0A\x02OK\x10\x00\x12\x0D\x0A\x09CANCELLED\x10\x01\x12\x0B\x0A\x07UNKNOWN\x10\x02\x12\x14\x0A\x10INVALID_ARGUMENT\x10\x03\x12\x15\x0A\x11DEADLINE_EXCEEDED\x10\x04\x12\x0D\x0A\x09NOT_FOUND\x10\x05\x12\x12\x0A\x0EALREADY_EXISTS\x10\x06\x12\x15\x0A\x11PERMISSION_DENIED\x10\x07\x12\x13\x0A\x0FUNAUTHENTICATED\x10\x10\x12\x16\x0A\x12RESOURCE_EXHAUSTED\x10\x08\x12\x17\x0A\x13FAILED_PRECONDITION\x10\x09\x12\x0B\x0A\x07ABORTED\x10\x0A\x12\x10\x0A\x0COUT_OF_RANGE\x10\x0B\x12\x11\x0A\x0DUNIMPLEMENTED\x10\x0C\x12\x0C\x0A\x08INTERNAL\x10\x0D\x12\x0F\x0A\x0BUNAVAILABLE\x10\x0E\x12\x0D\x0A\x09DATA_LOSS\x10\x0FBX\x0A\x0Ecom.google.rpcB\x09CodeProtoP\x01Z3google.golang.org/genproto/googleapis/rpc/code;code\xA2\x02\x03RPCb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/GPBMetadata/Google/Rpc/Context/AttributeContext.php b/owl-bot-staging/CommonProtos/rpc/proto/src/GPBMetadata/Google/Rpc/Context/AttributeContext.php deleted file mode 100644 index 6336f6a66484..000000000000 --- a/owl-bot-staging/CommonProtos/rpc/proto/src/GPBMetadata/Google/Rpc/Context/AttributeContext.php +++ /dev/null @@ -1,28 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xBB\x12\x0A*google/rpc/context/attribute_context.proto\x12\x12google.rpc.context\x1A\x1Egoogle/protobuf/duration.proto\x1A\x1Cgoogle/protobuf/struct.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\x83\x10\x0A\x10AttributeContext\x129\x0A\x06origin\x18\x07 \x01(\x0B2).google.rpc.context.AttributeContext.Peer\x129\x0A\x06source\x18\x01 \x01(\x0B2).google.rpc.context.AttributeContext.Peer\x12>\x0A\x0Bdestination\x18\x02 \x01(\x0B2).google.rpc.context.AttributeContext.Peer\x12=\x0A\x07request\x18\x03 \x01(\x0B2,.google.rpc.context.AttributeContext.Request\x12?\x0A\x08response\x18\x04 \x01(\x0B2-.google.rpc.context.AttributeContext.Response\x12?\x0A\x08resource\x18\x05 \x01(\x0B2-.google.rpc.context.AttributeContext.Resource\x125\x0A\x03api\x18\x06 \x01(\x0B2(.google.rpc.context.AttributeContext.Api\x12(\x0A\x0Aextensions\x18\x08 \x03(\x0B2\x14.google.protobuf.Any\x1A\xBE\x01\x0A\x04Peer\x12\x0A\x0A\x02ip\x18\x01 \x01(\x09\x12\x0C\x0A\x04port\x18\x02 \x01(\x03\x12E\x0A\x06labels\x18\x06 \x03(\x0B25.google.rpc.context.AttributeContext.Peer.LabelsEntry\x12\x11\x0A\x09principal\x18\x07 \x01(\x09\x12\x13\x0A\x0Bregion_code\x18\x08 \x01(\x09\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\x1AL\x0A\x03Api\x12\x0F\x0A\x07service\x18\x01 \x01(\x09\x12\x11\x0A\x09operation\x18\x02 \x01(\x09\x12\x10\x0A\x08protocol\x18\x03 \x01(\x09\x12\x0F\x0A\x07version\x18\x04 \x01(\x09\x1A\x7F\x0A\x04Auth\x12\x11\x0A\x09principal\x18\x01 \x01(\x09\x12\x11\x0A\x09audiences\x18\x02 \x03(\x09\x12\x11\x0A\x09presenter\x18\x03 \x01(\x09\x12'\x0A\x06claims\x18\x04 \x01(\x0B2\x17.google.protobuf.Struct\x12\x15\x0A\x0Daccess_levels\x18\x05 \x03(\x09\x1A\xEF\x02\x0A\x07Request\x12\x0A\x0A\x02id\x18\x01 \x01(\x09\x12\x0E\x0A\x06method\x18\x02 \x01(\x09\x12J\x0A\x07headers\x18\x03 \x03(\x0B29.google.rpc.context.AttributeContext.Request.HeadersEntry\x12\x0C\x0A\x04path\x18\x04 \x01(\x09\x12\x0C\x0A\x04host\x18\x05 \x01(\x09\x12\x0E\x0A\x06scheme\x18\x06 \x01(\x09\x12\x0D\x0A\x05query\x18\x07 \x01(\x09\x12(\x0A\x04time\x18\x09 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12\x0C\x0A\x04size\x18\x0A \x01(\x03\x12\x10\x0A\x08protocol\x18\x0B \x01(\x09\x12\x0E\x0A\x06reason\x18\x0C \x01(\x09\x127\x0A\x04auth\x18\x0D \x01(\x0B2).google.rpc.context.AttributeContext.Auth\x1A.\x0A\x0CHeadersEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\x1A\x81\x02\x0A\x08Response\x12\x0C\x0A\x04code\x18\x01 \x01(\x03\x12\x0C\x0A\x04size\x18\x02 \x01(\x03\x12K\x0A\x07headers\x18\x03 \x03(\x0B2:.google.rpc.context.AttributeContext.Response.HeadersEntry\x12(\x0A\x04time\x18\x04 \x01(\x0B2\x1A.google.protobuf.Timestamp\x122\x0A\x0Fbackend_latency\x18\x05 \x01(\x0B2\x19.google.protobuf.Duration\x1A.\x0A\x0CHeadersEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\x1A\x90\x04\x0A\x08Resource\x12\x0F\x0A\x07service\x18\x01 \x01(\x09\x12\x0C\x0A\x04name\x18\x02 \x01(\x09\x12\x0C\x0A\x04type\x18\x03 \x01(\x09\x12I\x0A\x06labels\x18\x04 \x03(\x0B29.google.rpc.context.AttributeContext.Resource.LabelsEntry\x12\x0B\x0A\x03uid\x18\x05 \x01(\x09\x12S\x0A\x0Bannotations\x18\x06 \x03(\x0B2>.google.rpc.context.AttributeContext.Resource.AnnotationsEntry\x12\x14\x0A\x0Cdisplay_name\x18\x07 \x01(\x09\x12/\x0A\x0Bcreate_time\x18\x08 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12/\x0A\x0Bupdate_time\x18\x09 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12/\x0A\x0Bdelete_time\x18\x0A \x01(\x0B2\x1A.google.protobuf.Timestamp\x12\x0C\x0A\x04etag\x18\x0B \x01(\x09\x12\x10\x0A\x08location\x18\x0C \x01(\x09\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\x1A2\x0A\x10AnnotationsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01B\x8B\x01\x0A\x16com.google.rpc.contextB\x15AttributeContextProtoP\x01ZUgoogle.golang.org/genproto/googleapis/rpc/context/attribute_context;attribute_context\xF8\x01\x01b\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/GPBMetadata/Google/Rpc/Context/AuditContext.php b/owl-bot-staging/CommonProtos/rpc/proto/src/GPBMetadata/Google/Rpc/Context/AuditContext.php deleted file mode 100644 index 285c3acb9fb1..000000000000 --- a/owl-bot-staging/CommonProtos/rpc/proto/src/GPBMetadata/Google/Rpc/Context/AuditContext.php +++ /dev/null @@ -1,25 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xF8\x02\x0A&google/rpc/context/audit_context.proto\x12\x12google.rpc.context\"\xC7\x01\x0A\x0CAuditContext\x12\x11\x0A\x09audit_log\x18\x01 \x01(\x0C\x121\x0A\x10scrubbed_request\x18\x02 \x01(\x0B2\x17.google.protobuf.Struct\x122\x0A\x11scrubbed_response\x18\x03 \x01(\x0B2\x17.google.protobuf.Struct\x12\$\x0A\x1Cscrubbed_response_item_count\x18\x04 \x01(\x05\x12\x17\x0A\x0Ftarget_resource\x18\x05 \x01(\x09Bh\x0A\x16com.google.rpc.contextB\x11AuditContextProtoP\x01Z9google.golang.org/genproto/googleapis/rpc/context;contextb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/GPBMetadata/Google/Rpc/ErrorDetails.php b/owl-bot-staging/CommonProtos/rpc/proto/src/GPBMetadata/Google/Rpc/ErrorDetails.php deleted file mode 100644 index 4b9f0d7941e1..000000000000 --- a/owl-bot-staging/CommonProtos/rpc/proto/src/GPBMetadata/Google/Rpc/ErrorDetails.php +++ /dev/null @@ -1,25 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xCA\x0B\x0A\x1Egoogle/rpc/error_details.proto\x12\x0Agoogle.rpc\"\x93\x01\x0A\x09ErrorInfo\x12\x0E\x0A\x06reason\x18\x01 \x01(\x09\x12\x0E\x0A\x06domain\x18\x02 \x01(\x09\x125\x0A\x08metadata\x18\x03 \x03(\x0B2#.google.rpc.ErrorInfo.MetadataEntry\x1A/\x0A\x0DMetadataEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\";\x0A\x09RetryInfo\x12.\x0A\x0Bretry_delay\x18\x01 \x01(\x0B2\x19.google.protobuf.Duration\"2\x0A\x09DebugInfo\x12\x15\x0A\x0Dstack_entries\x18\x01 \x03(\x09\x12\x0E\x0A\x06detail\x18\x02 \x01(\x09\"\x8F\x03\x0A\x0CQuotaFailure\x126\x0A\x0Aviolations\x18\x01 \x03(\x0B2\".google.rpc.QuotaFailure.Violation\x1A\xC6\x02\x0A\x09Violation\x12\x0F\x0A\x07subject\x18\x01 \x01(\x09\x12\x13\x0A\x0Bdescription\x18\x02 \x01(\x09\x12\x13\x0A\x0Bapi_service\x18\x03 \x01(\x09\x12\x14\x0A\x0Cquota_metric\x18\x04 \x01(\x09\x12\x10\x0A\x08quota_id\x18\x05 \x01(\x09\x12Q\x0A\x10quota_dimensions\x18\x06 \x03(\x0B27.google.rpc.QuotaFailure.Violation.QuotaDimensionsEntry\x12\x13\x0A\x0Bquota_value\x18\x07 \x01(\x03\x12\x1F\x0A\x12future_quota_value\x18\x08 \x01(\x03H\x00\x88\x01\x01\x1A6\x0A\x14QuotaDimensionsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01B\x15\x0A\x13_future_quota_value\"\x95\x01\x0A\x13PreconditionFailure\x12=\x0A\x0Aviolations\x18\x01 \x03(\x0B2).google.rpc.PreconditionFailure.Violation\x1A?\x0A\x09Violation\x12\x0C\x0A\x04type\x18\x01 \x01(\x09\x12\x0F\x0A\x07subject\x18\x02 \x01(\x09\x12\x13\x0A\x0Bdescription\x18\x03 \x01(\x09\"\xCC\x01\x0A\x0ABadRequest\x12?\x0A\x10field_violations\x18\x01 \x03(\x0B2%.google.rpc.BadRequest.FieldViolation\x1A}\x0A\x0EFieldViolation\x12\x0D\x0A\x05field\x18\x01 \x01(\x09\x12\x13\x0A\x0Bdescription\x18\x02 \x01(\x09\x12\x0E\x0A\x06reason\x18\x03 \x01(\x09\x127\x0A\x11localized_message\x18\x04 \x01(\x0B2\x1C.google.rpc.LocalizedMessage\"7\x0A\x0BRequestInfo\x12\x12\x0A\x0Arequest_id\x18\x01 \x01(\x09\x12\x14\x0A\x0Cserving_data\x18\x02 \x01(\x09\"`\x0A\x0CResourceInfo\x12\x15\x0A\x0Dresource_type\x18\x01 \x01(\x09\x12\x15\x0A\x0Dresource_name\x18\x02 \x01(\x09\x12\x0D\x0A\x05owner\x18\x03 \x01(\x09\x12\x13\x0A\x0Bdescription\x18\x04 \x01(\x09\"V\x0A\x04Help\x12\$\x0A\x05links\x18\x01 \x03(\x0B2\x15.google.rpc.Help.Link\x1A(\x0A\x04Link\x12\x13\x0A\x0Bdescription\x18\x01 \x01(\x09\x12\x0B\x0A\x03url\x18\x02 \x01(\x09\"3\x0A\x10LocalizedMessage\x12\x0E\x0A\x06locale\x18\x01 \x01(\x09\x12\x0F\x0A\x07message\x18\x02 \x01(\x09Bl\x0A\x0Ecom.google.rpcB\x11ErrorDetailsProtoP\x01Z?google.golang.org/genproto/googleapis/rpc/errdetails;errdetails\xA2\x02\x03RPCb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/GPBMetadata/Google/Rpc/Status.php b/owl-bot-staging/CommonProtos/rpc/proto/src/GPBMetadata/Google/Rpc/Status.php deleted file mode 100644 index 6122a2706632..000000000000 --- a/owl-bot-staging/CommonProtos/rpc/proto/src/GPBMetadata/Google/Rpc/Status.php +++ /dev/null @@ -1,25 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xE0\x01\x0A\x17google/rpc/status.proto\x12\x0Agoogle.rpc\"N\x0A\x06Status\x12\x0C\x0A\x04code\x18\x01 \x01(\x05\x12\x0F\x0A\x07message\x18\x02 \x01(\x09\x12%\x0A\x07details\x18\x03 \x03(\x0B2\x14.google.protobuf.AnyBa\x0A\x0Ecom.google.rpcB\x0BStatusProtoP\x01Z7google.golang.org/genproto/googleapis/rpc/status;status\xF8\x01\x01\xA2\x02\x03RPCb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/BadRequest.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/BadRequest.php deleted file mode 100644 index de1d80815113..000000000000 --- a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/BadRequest.php +++ /dev/null @@ -1,68 +0,0 @@ -google.rpc.BadRequest - */ -class BadRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Describes all violations in a client request. - * - * Generated from protobuf field repeated .google.rpc.BadRequest.FieldViolation field_violations = 1; - */ - private $field_violations; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Rpc\BadRequest\FieldViolation[] $field_violations - * Describes all violations in a client request. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Rpc\ErrorDetails::initOnce(); - parent::__construct($data); - } - - /** - * Describes all violations in a client request. - * - * Generated from protobuf field repeated .google.rpc.BadRequest.FieldViolation field_violations = 1; - * @return RepeatedField<\Google\Rpc\BadRequest\FieldViolation> - */ - public function getFieldViolations() - { - return $this->field_violations; - } - - /** - * Describes all violations in a client request. - * - * Generated from protobuf field repeated .google.rpc.BadRequest.FieldViolation field_violations = 1; - * @param \Google\Rpc\BadRequest\FieldViolation[] $var - * @return $this - */ - public function setFieldViolations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Rpc\BadRequest\FieldViolation::class); - $this->field_violations = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/BadRequest/FieldViolation.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/BadRequest/FieldViolation.php deleted file mode 100644 index 7c1dde3c12cd..000000000000 --- a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/BadRequest/FieldViolation.php +++ /dev/null @@ -1,315 +0,0 @@ -google.rpc.BadRequest.FieldViolation - */ -class FieldViolation extends \Google\Protobuf\Internal\Message -{ - /** - * A path that leads to a field in the request body. The value will be a - * sequence of dot-separated identifiers that identify a protocol buffer - * field. - * Consider the following: - * message CreateContactRequest { - * message EmailAddress { - * enum Type { - * TYPE_UNSPECIFIED = 0; - * HOME = 1; - * WORK = 2; - * } - * optional string email = 1; - * repeated EmailType type = 2; - * } - * string full_name = 1; - * repeated EmailAddress email_addresses = 2; - * } - * In this example, in proto `field` could take one of the following values: - * * `full_name` for a violation in the `full_name` value - * * `email_addresses[1].email` for a violation in the `email` field of the - * first `email_addresses` message - * * `email_addresses[3].type[2]` for a violation in the second `type` - * value in the third `email_addresses` message. - * In JSON, the same values are represented as: - * * `fullName` for a violation in the `fullName` value - * * `emailAddresses[1].email` for a violation in the `email` field of the - * first `emailAddresses` message - * * `emailAddresses[3].type[2]` for a violation in the second `type` - * value in the third `emailAddresses` message. - * - * Generated from protobuf field string field = 1; - */ - protected $field = ''; - /** - * A description of why the request element is bad. - * - * Generated from protobuf field string description = 2; - */ - protected $description = ''; - /** - * The reason of the field-level error. This is a constant value that - * identifies the proximate cause of the field-level error. It should - * uniquely identify the type of the FieldViolation within the scope of the - * google.rpc.ErrorInfo.domain. This should be at most 63 - * characters and match a regular expression of `[A-Z][A-Z0-9_]+[A-Z0-9]`, - * which represents UPPER_SNAKE_CASE. - * - * Generated from protobuf field string reason = 3; - */ - protected $reason = ''; - /** - * Provides a localized error message for field-level errors that is safe to - * return to the API consumer. - * - * Generated from protobuf field .google.rpc.LocalizedMessage localized_message = 4; - */ - protected $localized_message = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $field - * A path that leads to a field in the request body. The value will be a - * sequence of dot-separated identifiers that identify a protocol buffer - * field. - * Consider the following: - * message CreateContactRequest { - * message EmailAddress { - * enum Type { - * TYPE_UNSPECIFIED = 0; - * HOME = 1; - * WORK = 2; - * } - * optional string email = 1; - * repeated EmailType type = 2; - * } - * string full_name = 1; - * repeated EmailAddress email_addresses = 2; - * } - * In this example, in proto `field` could take one of the following values: - * * `full_name` for a violation in the `full_name` value - * * `email_addresses[1].email` for a violation in the `email` field of the - * first `email_addresses` message - * * `email_addresses[3].type[2]` for a violation in the second `type` - * value in the third `email_addresses` message. - * In JSON, the same values are represented as: - * * `fullName` for a violation in the `fullName` value - * * `emailAddresses[1].email` for a violation in the `email` field of the - * first `emailAddresses` message - * * `emailAddresses[3].type[2]` for a violation in the second `type` - * value in the third `emailAddresses` message. - * @type string $description - * A description of why the request element is bad. - * @type string $reason - * The reason of the field-level error. This is a constant value that - * identifies the proximate cause of the field-level error. It should - * uniquely identify the type of the FieldViolation within the scope of the - * google.rpc.ErrorInfo.domain. This should be at most 63 - * characters and match a regular expression of `[A-Z][A-Z0-9_]+[A-Z0-9]`, - * which represents UPPER_SNAKE_CASE. - * @type \Google\Rpc\LocalizedMessage $localized_message - * Provides a localized error message for field-level errors that is safe to - * return to the API consumer. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Rpc\ErrorDetails::initOnce(); - parent::__construct($data); - } - - /** - * A path that leads to a field in the request body. The value will be a - * sequence of dot-separated identifiers that identify a protocol buffer - * field. - * Consider the following: - * message CreateContactRequest { - * message EmailAddress { - * enum Type { - * TYPE_UNSPECIFIED = 0; - * HOME = 1; - * WORK = 2; - * } - * optional string email = 1; - * repeated EmailType type = 2; - * } - * string full_name = 1; - * repeated EmailAddress email_addresses = 2; - * } - * In this example, in proto `field` could take one of the following values: - * * `full_name` for a violation in the `full_name` value - * * `email_addresses[1].email` for a violation in the `email` field of the - * first `email_addresses` message - * * `email_addresses[3].type[2]` for a violation in the second `type` - * value in the third `email_addresses` message. - * In JSON, the same values are represented as: - * * `fullName` for a violation in the `fullName` value - * * `emailAddresses[1].email` for a violation in the `email` field of the - * first `emailAddresses` message - * * `emailAddresses[3].type[2]` for a violation in the second `type` - * value in the third `emailAddresses` message. - * - * Generated from protobuf field string field = 1; - * @return string - */ - public function getField() - { - return $this->field; - } - - /** - * A path that leads to a field in the request body. The value will be a - * sequence of dot-separated identifiers that identify a protocol buffer - * field. - * Consider the following: - * message CreateContactRequest { - * message EmailAddress { - * enum Type { - * TYPE_UNSPECIFIED = 0; - * HOME = 1; - * WORK = 2; - * } - * optional string email = 1; - * repeated EmailType type = 2; - * } - * string full_name = 1; - * repeated EmailAddress email_addresses = 2; - * } - * In this example, in proto `field` could take one of the following values: - * * `full_name` for a violation in the `full_name` value - * * `email_addresses[1].email` for a violation in the `email` field of the - * first `email_addresses` message - * * `email_addresses[3].type[2]` for a violation in the second `type` - * value in the third `email_addresses` message. - * In JSON, the same values are represented as: - * * `fullName` for a violation in the `fullName` value - * * `emailAddresses[1].email` for a violation in the `email` field of the - * first `emailAddresses` message - * * `emailAddresses[3].type[2]` for a violation in the second `type` - * value in the third `emailAddresses` message. - * - * Generated from protobuf field string field = 1; - * @param string $var - * @return $this - */ - public function setField($var) - { - GPBUtil::checkString($var, True); - $this->field = $var; - - return $this; - } - - /** - * A description of why the request element is bad. - * - * Generated from protobuf field string description = 2; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * A description of why the request element is bad. - * - * Generated from protobuf field string description = 2; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * The reason of the field-level error. This is a constant value that - * identifies the proximate cause of the field-level error. It should - * uniquely identify the type of the FieldViolation within the scope of the - * google.rpc.ErrorInfo.domain. This should be at most 63 - * characters and match a regular expression of `[A-Z][A-Z0-9_]+[A-Z0-9]`, - * which represents UPPER_SNAKE_CASE. - * - * Generated from protobuf field string reason = 3; - * @return string - */ - public function getReason() - { - return $this->reason; - } - - /** - * The reason of the field-level error. This is a constant value that - * identifies the proximate cause of the field-level error. It should - * uniquely identify the type of the FieldViolation within the scope of the - * google.rpc.ErrorInfo.domain. This should be at most 63 - * characters and match a regular expression of `[A-Z][A-Z0-9_]+[A-Z0-9]`, - * which represents UPPER_SNAKE_CASE. - * - * Generated from protobuf field string reason = 3; - * @param string $var - * @return $this - */ - public function setReason($var) - { - GPBUtil::checkString($var, True); - $this->reason = $var; - - return $this; - } - - /** - * Provides a localized error message for field-level errors that is safe to - * return to the API consumer. - * - * Generated from protobuf field .google.rpc.LocalizedMessage localized_message = 4; - * @return \Google\Rpc\LocalizedMessage|null - */ - public function getLocalizedMessage() - { - return $this->localized_message; - } - - public function hasLocalizedMessage() - { - return isset($this->localized_message); - } - - public function clearLocalizedMessage() - { - unset($this->localized_message); - } - - /** - * Provides a localized error message for field-level errors that is safe to - * return to the API consumer. - * - * Generated from protobuf field .google.rpc.LocalizedMessage localized_message = 4; - * @param \Google\Rpc\LocalizedMessage $var - * @return $this - */ - public function setLocalizedMessage($var) - { - GPBUtil::checkMessage($var, \Google\Rpc\LocalizedMessage::class); - $this->localized_message = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Code.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Code.php deleted file mode 100644 index b82e88f3bf4d..000000000000 --- a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Code.php +++ /dev/null @@ -1,243 +0,0 @@ -google.rpc.Code - */ -class Code -{ - /** - * Not an error; returned on success. - * HTTP Mapping: 200 OK - * - * Generated from protobuf enum OK = 0; - */ - const OK = 0; - /** - * The operation was cancelled, typically by the caller. - * HTTP Mapping: 499 Client Closed Request - * - * Generated from protobuf enum CANCELLED = 1; - */ - const CANCELLED = 1; - /** - * Unknown error. For example, this error may be returned when - * a `Status` value received from another address space belongs to - * an error space that is not known in this address space. Also - * errors raised by APIs that do not return enough error information - * may be converted to this error. - * HTTP Mapping: 500 Internal Server Error - * - * Generated from protobuf enum UNKNOWN = 2; - */ - const UNKNOWN = 2; - /** - * The client specified an invalid argument. Note that this differs - * from `FAILED_PRECONDITION`. `INVALID_ARGUMENT` indicates arguments - * that are problematic regardless of the state of the system - * (e.g., a malformed file name). - * HTTP Mapping: 400 Bad Request - * - * Generated from protobuf enum INVALID_ARGUMENT = 3; - */ - const INVALID_ARGUMENT = 3; - /** - * The deadline expired before the operation could complete. For operations - * that change the state of the system, this error may be returned - * even if the operation has completed successfully. For example, a - * successful response from a server could have been delayed long - * enough for the deadline to expire. - * HTTP Mapping: 504 Gateway Timeout - * - * Generated from protobuf enum DEADLINE_EXCEEDED = 4; - */ - const DEADLINE_EXCEEDED = 4; - /** - * Some requested entity (e.g., file or directory) was not found. - * Note to server developers: if a request is denied for an entire class - * of users, such as gradual feature rollout or undocumented allowlist, - * `NOT_FOUND` may be used. If a request is denied for some users within - * a class of users, such as user-based access control, `PERMISSION_DENIED` - * must be used. - * HTTP Mapping: 404 Not Found - * - * Generated from protobuf enum NOT_FOUND = 5; - */ - const NOT_FOUND = 5; - /** - * The entity that a client attempted to create (e.g., file or directory) - * already exists. - * HTTP Mapping: 409 Conflict - * - * Generated from protobuf enum ALREADY_EXISTS = 6; - */ - const ALREADY_EXISTS = 6; - /** - * The caller does not have permission to execute the specified - * operation. `PERMISSION_DENIED` must not be used for rejections - * caused by exhausting some resource (use `RESOURCE_EXHAUSTED` - * instead for those errors). `PERMISSION_DENIED` must not be - * used if the caller can not be identified (use `UNAUTHENTICATED` - * instead for those errors). This error code does not imply the - * request is valid or the requested entity exists or satisfies - * other pre-conditions. - * HTTP Mapping: 403 Forbidden - * - * Generated from protobuf enum PERMISSION_DENIED = 7; - */ - const PERMISSION_DENIED = 7; - /** - * The request does not have valid authentication credentials for the - * operation. - * HTTP Mapping: 401 Unauthorized - * - * Generated from protobuf enum UNAUTHENTICATED = 16; - */ - const UNAUTHENTICATED = 16; - /** - * Some resource has been exhausted, perhaps a per-user quota, or - * perhaps the entire file system is out of space. - * HTTP Mapping: 429 Too Many Requests - * - * Generated from protobuf enum RESOURCE_EXHAUSTED = 8; - */ - const RESOURCE_EXHAUSTED = 8; - /** - * The operation was rejected because the system is not in a state - * required for the operation's execution. For example, the directory - * to be deleted is non-empty, an rmdir operation is applied to - * a non-directory, etc. - * Service implementors can use the following guidelines to decide - * between `FAILED_PRECONDITION`, `ABORTED`, and `UNAVAILABLE`: - * (a) Use `UNAVAILABLE` if the client can retry just the failing call. - * (b) Use `ABORTED` if the client should retry at a higher level. For - * example, when a client-specified test-and-set fails, indicating the - * client should restart a read-modify-write sequence. - * (c) Use `FAILED_PRECONDITION` if the client should not retry until - * the system state has been explicitly fixed. For example, if an "rmdir" - * fails because the directory is non-empty, `FAILED_PRECONDITION` - * should be returned since the client should not retry unless - * the files are deleted from the directory. - * HTTP Mapping: 400 Bad Request - * - * Generated from protobuf enum FAILED_PRECONDITION = 9; - */ - const FAILED_PRECONDITION = 9; - /** - * The operation was aborted, typically due to a concurrency issue such as - * a sequencer check failure or transaction abort. - * See the guidelines above for deciding between `FAILED_PRECONDITION`, - * `ABORTED`, and `UNAVAILABLE`. - * HTTP Mapping: 409 Conflict - * - * Generated from protobuf enum ABORTED = 10; - */ - const ABORTED = 10; - /** - * The operation was attempted past the valid range. E.g., seeking or - * reading past end-of-file. - * Unlike `INVALID_ARGUMENT`, this error indicates a problem that may - * be fixed if the system state changes. For example, a 32-bit file - * system will generate `INVALID_ARGUMENT` if asked to read at an - * offset that is not in the range [0,2^32-1], but it will generate - * `OUT_OF_RANGE` if asked to read from an offset past the current - * file size. - * There is a fair bit of overlap between `FAILED_PRECONDITION` and - * `OUT_OF_RANGE`. We recommend using `OUT_OF_RANGE` (the more specific - * error) when it applies so that callers who are iterating through - * a space can easily look for an `OUT_OF_RANGE` error to detect when - * they are done. - * HTTP Mapping: 400 Bad Request - * - * Generated from protobuf enum OUT_OF_RANGE = 11; - */ - const OUT_OF_RANGE = 11; - /** - * The operation is not implemented or is not supported/enabled in this - * service. - * HTTP Mapping: 501 Not Implemented - * - * Generated from protobuf enum UNIMPLEMENTED = 12; - */ - const UNIMPLEMENTED = 12; - /** - * Internal errors. This means that some invariants expected by the - * underlying system have been broken. This error code is reserved - * for serious errors. - * HTTP Mapping: 500 Internal Server Error - * - * Generated from protobuf enum INTERNAL = 13; - */ - const INTERNAL = 13; - /** - * The service is currently unavailable. This is most likely a - * transient condition, which can be corrected by retrying with - * a backoff. Note that it is not always safe to retry - * non-idempotent operations. - * See the guidelines above for deciding between `FAILED_PRECONDITION`, - * `ABORTED`, and `UNAVAILABLE`. - * HTTP Mapping: 503 Service Unavailable - * - * Generated from protobuf enum UNAVAILABLE = 14; - */ - const UNAVAILABLE = 14; - /** - * Unrecoverable data loss or corruption. - * HTTP Mapping: 500 Internal Server Error - * - * Generated from protobuf enum DATA_LOSS = 15; - */ - const DATA_LOSS = 15; - - private static $valueToName = [ - self::OK => 'OK', - self::CANCELLED => 'CANCELLED', - self::UNKNOWN => 'UNKNOWN', - self::INVALID_ARGUMENT => 'INVALID_ARGUMENT', - self::DEADLINE_EXCEEDED => 'DEADLINE_EXCEEDED', - self::NOT_FOUND => 'NOT_FOUND', - self::ALREADY_EXISTS => 'ALREADY_EXISTS', - self::PERMISSION_DENIED => 'PERMISSION_DENIED', - self::UNAUTHENTICATED => 'UNAUTHENTICATED', - self::RESOURCE_EXHAUSTED => 'RESOURCE_EXHAUSTED', - self::FAILED_PRECONDITION => 'FAILED_PRECONDITION', - self::ABORTED => 'ABORTED', - self::OUT_OF_RANGE => 'OUT_OF_RANGE', - self::UNIMPLEMENTED => 'UNIMPLEMENTED', - self::INTERNAL => 'INTERNAL', - self::UNAVAILABLE => 'UNAVAILABLE', - self::DATA_LOSS => 'DATA_LOSS', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext.php deleted file mode 100644 index 59cb20720c8f..000000000000 --- a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext.php +++ /dev/null @@ -1,419 +0,0 @@ -google.rpc.context.AttributeContext - */ -class AttributeContext extends \Google\Protobuf\Internal\Message -{ - /** - * The origin of a network activity. In a multi hop network activity, - * the origin represents the sender of the first hop. For the first hop, - * the `source` and the `origin` must have the same content. - * - * Generated from protobuf field .google.rpc.context.AttributeContext.Peer origin = 7; - */ - protected $origin = null; - /** - * The source of a network activity, such as starting a TCP connection. - * In a multi hop network activity, the source represents the sender of the - * last hop. - * - * Generated from protobuf field .google.rpc.context.AttributeContext.Peer source = 1; - */ - protected $source = null; - /** - * The destination of a network activity, such as accepting a TCP connection. - * In a multi hop network activity, the destination represents the receiver of - * the last hop. - * - * Generated from protobuf field .google.rpc.context.AttributeContext.Peer destination = 2; - */ - protected $destination = null; - /** - * Represents a network request, such as an HTTP request. - * - * Generated from protobuf field .google.rpc.context.AttributeContext.Request request = 3; - */ - protected $request = null; - /** - * Represents a network response, such as an HTTP response. - * - * Generated from protobuf field .google.rpc.context.AttributeContext.Response response = 4; - */ - protected $response = null; - /** - * Represents a target resource that is involved with a network activity. - * If multiple resources are involved with an activity, this must be the - * primary one. - * - * Generated from protobuf field .google.rpc.context.AttributeContext.Resource resource = 5; - */ - protected $resource = null; - /** - * Represents an API operation that is involved to a network activity. - * - * Generated from protobuf field .google.rpc.context.AttributeContext.Api api = 6; - */ - protected $api = null; - /** - * Supports extensions for advanced use cases, such as logs and metrics. - * - * Generated from protobuf field repeated .google.protobuf.Any extensions = 8; - */ - private $extensions; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Rpc\Context\AttributeContext\Peer $origin - * The origin of a network activity. In a multi hop network activity, - * the origin represents the sender of the first hop. For the first hop, - * the `source` and the `origin` must have the same content. - * @type \Google\Rpc\Context\AttributeContext\Peer $source - * The source of a network activity, such as starting a TCP connection. - * In a multi hop network activity, the source represents the sender of the - * last hop. - * @type \Google\Rpc\Context\AttributeContext\Peer $destination - * The destination of a network activity, such as accepting a TCP connection. - * In a multi hop network activity, the destination represents the receiver of - * the last hop. - * @type \Google\Rpc\Context\AttributeContext\Request $request - * Represents a network request, such as an HTTP request. - * @type \Google\Rpc\Context\AttributeContext\Response $response - * Represents a network response, such as an HTTP response. - * @type \Google\Rpc\Context\AttributeContext\Resource $resource - * Represents a target resource that is involved with a network activity. - * If multiple resources are involved with an activity, this must be the - * primary one. - * @type \Google\Rpc\Context\AttributeContext\Api $api - * Represents an API operation that is involved to a network activity. - * @type \Google\Protobuf\Any[] $extensions - * Supports extensions for advanced use cases, such as logs and metrics. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Rpc\Context\AttributeContext::initOnce(); - parent::__construct($data); - } - - /** - * The origin of a network activity. In a multi hop network activity, - * the origin represents the sender of the first hop. For the first hop, - * the `source` and the `origin` must have the same content. - * - * Generated from protobuf field .google.rpc.context.AttributeContext.Peer origin = 7; - * @return \Google\Rpc\Context\AttributeContext\Peer|null - */ - public function getOrigin() - { - return $this->origin; - } - - public function hasOrigin() - { - return isset($this->origin); - } - - public function clearOrigin() - { - unset($this->origin); - } - - /** - * The origin of a network activity. In a multi hop network activity, - * the origin represents the sender of the first hop. For the first hop, - * the `source` and the `origin` must have the same content. - * - * Generated from protobuf field .google.rpc.context.AttributeContext.Peer origin = 7; - * @param \Google\Rpc\Context\AttributeContext\Peer $var - * @return $this - */ - public function setOrigin($var) - { - GPBUtil::checkMessage($var, \Google\Rpc\Context\AttributeContext\Peer::class); - $this->origin = $var; - - return $this; - } - - /** - * The source of a network activity, such as starting a TCP connection. - * In a multi hop network activity, the source represents the sender of the - * last hop. - * - * Generated from protobuf field .google.rpc.context.AttributeContext.Peer source = 1; - * @return \Google\Rpc\Context\AttributeContext\Peer|null - */ - public function getSource() - { - return $this->source; - } - - public function hasSource() - { - return isset($this->source); - } - - public function clearSource() - { - unset($this->source); - } - - /** - * The source of a network activity, such as starting a TCP connection. - * In a multi hop network activity, the source represents the sender of the - * last hop. - * - * Generated from protobuf field .google.rpc.context.AttributeContext.Peer source = 1; - * @param \Google\Rpc\Context\AttributeContext\Peer $var - * @return $this - */ - public function setSource($var) - { - GPBUtil::checkMessage($var, \Google\Rpc\Context\AttributeContext\Peer::class); - $this->source = $var; - - return $this; - } - - /** - * The destination of a network activity, such as accepting a TCP connection. - * In a multi hop network activity, the destination represents the receiver of - * the last hop. - * - * Generated from protobuf field .google.rpc.context.AttributeContext.Peer destination = 2; - * @return \Google\Rpc\Context\AttributeContext\Peer|null - */ - public function getDestination() - { - return $this->destination; - } - - public function hasDestination() - { - return isset($this->destination); - } - - public function clearDestination() - { - unset($this->destination); - } - - /** - * The destination of a network activity, such as accepting a TCP connection. - * In a multi hop network activity, the destination represents the receiver of - * the last hop. - * - * Generated from protobuf field .google.rpc.context.AttributeContext.Peer destination = 2; - * @param \Google\Rpc\Context\AttributeContext\Peer $var - * @return $this - */ - public function setDestination($var) - { - GPBUtil::checkMessage($var, \Google\Rpc\Context\AttributeContext\Peer::class); - $this->destination = $var; - - return $this; - } - - /** - * Represents a network request, such as an HTTP request. - * - * Generated from protobuf field .google.rpc.context.AttributeContext.Request request = 3; - * @return \Google\Rpc\Context\AttributeContext\Request|null - */ - public function getRequest() - { - return $this->request; - } - - public function hasRequest() - { - return isset($this->request); - } - - public function clearRequest() - { - unset($this->request); - } - - /** - * Represents a network request, such as an HTTP request. - * - * Generated from protobuf field .google.rpc.context.AttributeContext.Request request = 3; - * @param \Google\Rpc\Context\AttributeContext\Request $var - * @return $this - */ - public function setRequest($var) - { - GPBUtil::checkMessage($var, \Google\Rpc\Context\AttributeContext\Request::class); - $this->request = $var; - - return $this; - } - - /** - * Represents a network response, such as an HTTP response. - * - * Generated from protobuf field .google.rpc.context.AttributeContext.Response response = 4; - * @return \Google\Rpc\Context\AttributeContext\Response|null - */ - public function getResponse() - { - return $this->response; - } - - public function hasResponse() - { - return isset($this->response); - } - - public function clearResponse() - { - unset($this->response); - } - - /** - * Represents a network response, such as an HTTP response. - * - * Generated from protobuf field .google.rpc.context.AttributeContext.Response response = 4; - * @param \Google\Rpc\Context\AttributeContext\Response $var - * @return $this - */ - public function setResponse($var) - { - GPBUtil::checkMessage($var, \Google\Rpc\Context\AttributeContext\Response::class); - $this->response = $var; - - return $this; - } - - /** - * Represents a target resource that is involved with a network activity. - * If multiple resources are involved with an activity, this must be the - * primary one. - * - * Generated from protobuf field .google.rpc.context.AttributeContext.Resource resource = 5; - * @return \Google\Rpc\Context\AttributeContext\Resource|null - */ - public function getResource() - { - return $this->resource; - } - - public function hasResource() - { - return isset($this->resource); - } - - public function clearResource() - { - unset($this->resource); - } - - /** - * Represents a target resource that is involved with a network activity. - * If multiple resources are involved with an activity, this must be the - * primary one. - * - * Generated from protobuf field .google.rpc.context.AttributeContext.Resource resource = 5; - * @param \Google\Rpc\Context\AttributeContext\Resource $var - * @return $this - */ - public function setResource($var) - { - GPBUtil::checkMessage($var, \Google\Rpc\Context\AttributeContext\Resource::class); - $this->resource = $var; - - return $this; - } - - /** - * Represents an API operation that is involved to a network activity. - * - * Generated from protobuf field .google.rpc.context.AttributeContext.Api api = 6; - * @return \Google\Rpc\Context\AttributeContext\Api|null - */ - public function getApi() - { - return $this->api; - } - - public function hasApi() - { - return isset($this->api); - } - - public function clearApi() - { - unset($this->api); - } - - /** - * Represents an API operation that is involved to a network activity. - * - * Generated from protobuf field .google.rpc.context.AttributeContext.Api api = 6; - * @param \Google\Rpc\Context\AttributeContext\Api $var - * @return $this - */ - public function setApi($var) - { - GPBUtil::checkMessage($var, \Google\Rpc\Context\AttributeContext\Api::class); - $this->api = $var; - - return $this; - } - - /** - * Supports extensions for advanced use cases, such as logs and metrics. - * - * Generated from protobuf field repeated .google.protobuf.Any extensions = 8; - * @return RepeatedField<\Google\Protobuf\Any> - */ - public function getExtensions() - { - return $this->extensions; - } - - /** - * Supports extensions for advanced use cases, such as logs and metrics. - * - * Generated from protobuf field repeated .google.protobuf.Any extensions = 8; - * @param \Google\Protobuf\Any[] $var - * @return $this - */ - public function setExtensions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Any::class); - $this->extensions = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Api.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Api.php deleted file mode 100644 index 3f08a6e90ed9..000000000000 --- a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Api.php +++ /dev/null @@ -1,195 +0,0 @@ -google.rpc.context.AttributeContext.Api - */ -class Api extends \Google\Protobuf\Internal\Message -{ - /** - * The API service name. It is a logical identifier for a networked API, - * such as "pubsub.googleapis.com". The naming syntax depends on the - * API management system being used for handling the request. - * - * Generated from protobuf field string service = 1; - */ - protected $service = ''; - /** - * The API operation name. For gRPC requests, it is the fully qualified API - * method name, such as "google.pubsub.v1.Publisher.Publish". For OpenAPI - * requests, it is the `operationId`, such as "getPet". - * - * Generated from protobuf field string operation = 2; - */ - protected $operation = ''; - /** - * The API protocol used for sending the request, such as "http", "https", - * "grpc", or "internal". - * - * Generated from protobuf field string protocol = 3; - */ - protected $protocol = ''; - /** - * The API version associated with the API operation above, such as "v1" or - * "v1alpha1". - * - * Generated from protobuf field string version = 4; - */ - protected $version = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $service - * The API service name. It is a logical identifier for a networked API, - * such as "pubsub.googleapis.com". The naming syntax depends on the - * API management system being used for handling the request. - * @type string $operation - * The API operation name. For gRPC requests, it is the fully qualified API - * method name, such as "google.pubsub.v1.Publisher.Publish". For OpenAPI - * requests, it is the `operationId`, such as "getPet". - * @type string $protocol - * The API protocol used for sending the request, such as "http", "https", - * "grpc", or "internal". - * @type string $version - * The API version associated with the API operation above, such as "v1" or - * "v1alpha1". - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Rpc\Context\AttributeContext::initOnce(); - parent::__construct($data); - } - - /** - * The API service name. It is a logical identifier for a networked API, - * such as "pubsub.googleapis.com". The naming syntax depends on the - * API management system being used for handling the request. - * - * Generated from protobuf field string service = 1; - * @return string - */ - public function getService() - { - return $this->service; - } - - /** - * The API service name. It is a logical identifier for a networked API, - * such as "pubsub.googleapis.com". The naming syntax depends on the - * API management system being used for handling the request. - * - * Generated from protobuf field string service = 1; - * @param string $var - * @return $this - */ - public function setService($var) - { - GPBUtil::checkString($var, True); - $this->service = $var; - - return $this; - } - - /** - * The API operation name. For gRPC requests, it is the fully qualified API - * method name, such as "google.pubsub.v1.Publisher.Publish". For OpenAPI - * requests, it is the `operationId`, such as "getPet". - * - * Generated from protobuf field string operation = 2; - * @return string - */ - public function getOperation() - { - return $this->operation; - } - - /** - * The API operation name. For gRPC requests, it is the fully qualified API - * method name, such as "google.pubsub.v1.Publisher.Publish". For OpenAPI - * requests, it is the `operationId`, such as "getPet". - * - * Generated from protobuf field string operation = 2; - * @param string $var - * @return $this - */ - public function setOperation($var) - { - GPBUtil::checkString($var, True); - $this->operation = $var; - - return $this; - } - - /** - * The API protocol used for sending the request, such as "http", "https", - * "grpc", or "internal". - * - * Generated from protobuf field string protocol = 3; - * @return string - */ - public function getProtocol() - { - return $this->protocol; - } - - /** - * The API protocol used for sending the request, such as "http", "https", - * "grpc", or "internal". - * - * Generated from protobuf field string protocol = 3; - * @param string $var - * @return $this - */ - public function setProtocol($var) - { - GPBUtil::checkString($var, True); - $this->protocol = $var; - - return $this; - } - - /** - * The API version associated with the API operation above, such as "v1" or - * "v1alpha1". - * - * Generated from protobuf field string version = 4; - * @return string - */ - public function getVersion() - { - return $this->version; - } - - /** - * The API version associated with the API operation above, such as "v1" or - * "v1alpha1". - * - * Generated from protobuf field string version = 4; - * @param string $var - * @return $this - */ - public function setVersion($var) - { - GPBUtil::checkString($var, True); - $this->version = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Auth.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Auth.php deleted file mode 100644 index 07a824302c8d..000000000000 --- a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Auth.php +++ /dev/null @@ -1,355 +0,0 @@ -google.rpc.context.AttributeContext.Auth - */ -class Auth extends \Google\Protobuf\Internal\Message -{ - /** - * The authenticated principal. Reflects the issuer (`iss`) and subject - * (`sub`) claims within a JWT. The issuer and subject should be `/` - * delimited, with `/` percent-encoded within the subject fragment. For - * Google accounts, the principal format is: - * "https://accounts.google.com/{id}" - * - * Generated from protobuf field string principal = 1; - */ - protected $principal = ''; - /** - * The intended audience(s) for this authentication information. Reflects - * the audience (`aud`) claim within a JWT. The audience - * value(s) depends on the `issuer`, but typically include one or more of - * the following pieces of information: - * * The services intended to receive the credential. For example, - * ["https://pubsub.googleapis.com/", "https://storage.googleapis.com/"]. - * * A set of service-based scopes. For example, - * ["https://www.googleapis.com/auth/cloud-platform"]. - * * The client id of an app, such as the Firebase project id for JWTs - * from Firebase Auth. - * Consult the documentation for the credential issuer to determine the - * information provided. - * - * Generated from protobuf field repeated string audiences = 2; - */ - private $audiences; - /** - * The authorized presenter of the credential. Reflects the optional - * Authorized Presenter (`azp`) claim within a JWT or the - * OAuth client id. For example, a Google Cloud Platform client id looks - * as follows: "123456789012.apps.googleusercontent.com". - * - * Generated from protobuf field string presenter = 3; - */ - protected $presenter = ''; - /** - * Structured claims presented with the credential. JWTs include - * `{key: value}` pairs for standard and private claims. The following - * is a subset of the standard required and optional claims that would - * typically be presented for a Google-based JWT: - * {'iss': 'accounts.google.com', - * 'sub': '113289723416554971153', - * 'aud': ['123456789012', 'pubsub.googleapis.com'], - * 'azp': '123456789012.apps.googleusercontent.com', - * 'email': 'jsmith\@example.com', - * 'iat': 1353601026, - * 'exp': 1353604926} - * SAML assertions are similarly specified, but with an identity provider - * dependent structure. - * - * Generated from protobuf field .google.protobuf.Struct claims = 4; - */ - protected $claims = null; - /** - * A list of access level resource names that allow resources to be - * accessed by authenticated requester. It is part of Secure GCP processing - * for the incoming request. An access level string has the format: - * "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}" - * Example: - * "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL" - * - * Generated from protobuf field repeated string access_levels = 5; - */ - private $access_levels; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $principal - * The authenticated principal. Reflects the issuer (`iss`) and subject - * (`sub`) claims within a JWT. The issuer and subject should be `/` - * delimited, with `/` percent-encoded within the subject fragment. For - * Google accounts, the principal format is: - * "https://accounts.google.com/{id}" - * @type string[] $audiences - * The intended audience(s) for this authentication information. Reflects - * the audience (`aud`) claim within a JWT. The audience - * value(s) depends on the `issuer`, but typically include one or more of - * the following pieces of information: - * * The services intended to receive the credential. For example, - * ["https://pubsub.googleapis.com/", "https://storage.googleapis.com/"]. - * * A set of service-based scopes. For example, - * ["https://www.googleapis.com/auth/cloud-platform"]. - * * The client id of an app, such as the Firebase project id for JWTs - * from Firebase Auth. - * Consult the documentation for the credential issuer to determine the - * information provided. - * @type string $presenter - * The authorized presenter of the credential. Reflects the optional - * Authorized Presenter (`azp`) claim within a JWT or the - * OAuth client id. For example, a Google Cloud Platform client id looks - * as follows: "123456789012.apps.googleusercontent.com". - * @type \Google\Protobuf\Struct $claims - * Structured claims presented with the credential. JWTs include - * `{key: value}` pairs for standard and private claims. The following - * is a subset of the standard required and optional claims that would - * typically be presented for a Google-based JWT: - * {'iss': 'accounts.google.com', - * 'sub': '113289723416554971153', - * 'aud': ['123456789012', 'pubsub.googleapis.com'], - * 'azp': '123456789012.apps.googleusercontent.com', - * 'email': 'jsmith\@example.com', - * 'iat': 1353601026, - * 'exp': 1353604926} - * SAML assertions are similarly specified, but with an identity provider - * dependent structure. - * @type string[] $access_levels - * A list of access level resource names that allow resources to be - * accessed by authenticated requester. It is part of Secure GCP processing - * for the incoming request. An access level string has the format: - * "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}" - * Example: - * "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Rpc\Context\AttributeContext::initOnce(); - parent::__construct($data); - } - - /** - * The authenticated principal. Reflects the issuer (`iss`) and subject - * (`sub`) claims within a JWT. The issuer and subject should be `/` - * delimited, with `/` percent-encoded within the subject fragment. For - * Google accounts, the principal format is: - * "https://accounts.google.com/{id}" - * - * Generated from protobuf field string principal = 1; - * @return string - */ - public function getPrincipal() - { - return $this->principal; - } - - /** - * The authenticated principal. Reflects the issuer (`iss`) and subject - * (`sub`) claims within a JWT. The issuer and subject should be `/` - * delimited, with `/` percent-encoded within the subject fragment. For - * Google accounts, the principal format is: - * "https://accounts.google.com/{id}" - * - * Generated from protobuf field string principal = 1; - * @param string $var - * @return $this - */ - public function setPrincipal($var) - { - GPBUtil::checkString($var, True); - $this->principal = $var; - - return $this; - } - - /** - * The intended audience(s) for this authentication information. Reflects - * the audience (`aud`) claim within a JWT. The audience - * value(s) depends on the `issuer`, but typically include one or more of - * the following pieces of information: - * * The services intended to receive the credential. For example, - * ["https://pubsub.googleapis.com/", "https://storage.googleapis.com/"]. - * * A set of service-based scopes. For example, - * ["https://www.googleapis.com/auth/cloud-platform"]. - * * The client id of an app, such as the Firebase project id for JWTs - * from Firebase Auth. - * Consult the documentation for the credential issuer to determine the - * information provided. - * - * Generated from protobuf field repeated string audiences = 2; - * @return RepeatedField - */ - public function getAudiences() - { - return $this->audiences; - } - - /** - * The intended audience(s) for this authentication information. Reflects - * the audience (`aud`) claim within a JWT. The audience - * value(s) depends on the `issuer`, but typically include one or more of - * the following pieces of information: - * * The services intended to receive the credential. For example, - * ["https://pubsub.googleapis.com/", "https://storage.googleapis.com/"]. - * * A set of service-based scopes. For example, - * ["https://www.googleapis.com/auth/cloud-platform"]. - * * The client id of an app, such as the Firebase project id for JWTs - * from Firebase Auth. - * Consult the documentation for the credential issuer to determine the - * information provided. - * - * Generated from protobuf field repeated string audiences = 2; - * @param string[] $var - * @return $this - */ - public function setAudiences($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->audiences = $arr; - - return $this; - } - - /** - * The authorized presenter of the credential. Reflects the optional - * Authorized Presenter (`azp`) claim within a JWT or the - * OAuth client id. For example, a Google Cloud Platform client id looks - * as follows: "123456789012.apps.googleusercontent.com". - * - * Generated from protobuf field string presenter = 3; - * @return string - */ - public function getPresenter() - { - return $this->presenter; - } - - /** - * The authorized presenter of the credential. Reflects the optional - * Authorized Presenter (`azp`) claim within a JWT or the - * OAuth client id. For example, a Google Cloud Platform client id looks - * as follows: "123456789012.apps.googleusercontent.com". - * - * Generated from protobuf field string presenter = 3; - * @param string $var - * @return $this - */ - public function setPresenter($var) - { - GPBUtil::checkString($var, True); - $this->presenter = $var; - - return $this; - } - - /** - * Structured claims presented with the credential. JWTs include - * `{key: value}` pairs for standard and private claims. The following - * is a subset of the standard required and optional claims that would - * typically be presented for a Google-based JWT: - * {'iss': 'accounts.google.com', - * 'sub': '113289723416554971153', - * 'aud': ['123456789012', 'pubsub.googleapis.com'], - * 'azp': '123456789012.apps.googleusercontent.com', - * 'email': 'jsmith\@example.com', - * 'iat': 1353601026, - * 'exp': 1353604926} - * SAML assertions are similarly specified, but with an identity provider - * dependent structure. - * - * Generated from protobuf field .google.protobuf.Struct claims = 4; - * @return \Google\Protobuf\Struct|null - */ - public function getClaims() - { - return $this->claims; - } - - public function hasClaims() - { - return isset($this->claims); - } - - public function clearClaims() - { - unset($this->claims); - } - - /** - * Structured claims presented with the credential. JWTs include - * `{key: value}` pairs for standard and private claims. The following - * is a subset of the standard required and optional claims that would - * typically be presented for a Google-based JWT: - * {'iss': 'accounts.google.com', - * 'sub': '113289723416554971153', - * 'aud': ['123456789012', 'pubsub.googleapis.com'], - * 'azp': '123456789012.apps.googleusercontent.com', - * 'email': 'jsmith\@example.com', - * 'iat': 1353601026, - * 'exp': 1353604926} - * SAML assertions are similarly specified, but with an identity provider - * dependent structure. - * - * Generated from protobuf field .google.protobuf.Struct claims = 4; - * @param \Google\Protobuf\Struct $var - * @return $this - */ - public function setClaims($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Struct::class); - $this->claims = $var; - - return $this; - } - - /** - * A list of access level resource names that allow resources to be - * accessed by authenticated requester. It is part of Secure GCP processing - * for the incoming request. An access level string has the format: - * "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}" - * Example: - * "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL" - * - * Generated from protobuf field repeated string access_levels = 5; - * @return RepeatedField - */ - public function getAccessLevels() - { - return $this->access_levels; - } - - /** - * A list of access level resource names that allow resources to be - * accessed by authenticated requester. It is part of Secure GCP processing - * for the incoming request. An access level string has the format: - * "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}" - * Example: - * "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL" - * - * Generated from protobuf field repeated string access_levels = 5; - * @param string[] $var - * @return $this - */ - public function setAccessLevels($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->access_levels = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Peer.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Peer.php deleted file mode 100644 index 2433710547ca..000000000000 --- a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Peer.php +++ /dev/null @@ -1,222 +0,0 @@ -google.rpc.context.AttributeContext.Peer - */ -class Peer extends \Google\Protobuf\Internal\Message -{ - /** - * The IP address of the peer. - * - * Generated from protobuf field string ip = 1; - */ - protected $ip = ''; - /** - * The network port of the peer. - * - * Generated from protobuf field int64 port = 2; - */ - protected $port = 0; - /** - * The labels associated with the peer. - * - * Generated from protobuf field map labels = 6; - */ - private $labels; - /** - * The identity of this peer. Similar to `Request.auth.principal`, but - * relative to the peer instead of the request. For example, the - * identity associated with a load balancer that forwarded the request. - * - * Generated from protobuf field string principal = 7; - */ - protected $principal = ''; - /** - * The CLDR country/region code associated with the above IP address. - * If the IP address is private, the `region_code` should reflect the - * physical location where this peer is running. - * - * Generated from protobuf field string region_code = 8; - */ - protected $region_code = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $ip - * The IP address of the peer. - * @type int|string $port - * The network port of the peer. - * @type array|\Google\Protobuf\Internal\MapField $labels - * The labels associated with the peer. - * @type string $principal - * The identity of this peer. Similar to `Request.auth.principal`, but - * relative to the peer instead of the request. For example, the - * identity associated with a load balancer that forwarded the request. - * @type string $region_code - * The CLDR country/region code associated with the above IP address. - * If the IP address is private, the `region_code` should reflect the - * physical location where this peer is running. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Rpc\Context\AttributeContext::initOnce(); - parent::__construct($data); - } - - /** - * The IP address of the peer. - * - * Generated from protobuf field string ip = 1; - * @return string - */ - public function getIp() - { - return $this->ip; - } - - /** - * The IP address of the peer. - * - * Generated from protobuf field string ip = 1; - * @param string $var - * @return $this - */ - public function setIp($var) - { - GPBUtil::checkString($var, True); - $this->ip = $var; - - return $this; - } - - /** - * The network port of the peer. - * - * Generated from protobuf field int64 port = 2; - * @return int|string - */ - public function getPort() - { - return $this->port; - } - - /** - * The network port of the peer. - * - * Generated from protobuf field int64 port = 2; - * @param int|string $var - * @return $this - */ - public function setPort($var) - { - GPBUtil::checkInt64($var); - $this->port = $var; - - return $this; - } - - /** - * The labels associated with the peer. - * - * Generated from protobuf field map labels = 6; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * The labels associated with the peer. - * - * Generated from protobuf field map labels = 6; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - - /** - * The identity of this peer. Similar to `Request.auth.principal`, but - * relative to the peer instead of the request. For example, the - * identity associated with a load balancer that forwarded the request. - * - * Generated from protobuf field string principal = 7; - * @return string - */ - public function getPrincipal() - { - return $this->principal; - } - - /** - * The identity of this peer. Similar to `Request.auth.principal`, but - * relative to the peer instead of the request. For example, the - * identity associated with a load balancer that forwarded the request. - * - * Generated from protobuf field string principal = 7; - * @param string $var - * @return $this - */ - public function setPrincipal($var) - { - GPBUtil::checkString($var, True); - $this->principal = $var; - - return $this; - } - - /** - * The CLDR country/region code associated with the above IP address. - * If the IP address is private, the `region_code` should reflect the - * physical location where this peer is running. - * - * Generated from protobuf field string region_code = 8; - * @return string - */ - public function getRegionCode() - { - return $this->region_code; - } - - /** - * The CLDR country/region code associated with the above IP address. - * If the IP address is private, the `region_code` should reflect the - * physical location where this peer is running. - * - * Generated from protobuf field string region_code = 8; - * @param string $var - * @return $this - */ - public function setRegionCode($var) - { - GPBUtil::checkString($var, True); - $this->region_code = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Request.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Request.php deleted file mode 100644 index 9d0a1ed62e87..000000000000 --- a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Request.php +++ /dev/null @@ -1,507 +0,0 @@ -google.rpc.context.AttributeContext.Request - */ -class Request extends \Google\Protobuf\Internal\Message -{ - /** - * The unique ID for a request, which can be propagated to downstream - * systems. The ID should have low probability of collision - * within a single day for a specific service. - * - * Generated from protobuf field string id = 1; - */ - protected $id = ''; - /** - * The HTTP request method, such as `GET`, `POST`. - * - * Generated from protobuf field string method = 2; - */ - protected $method = ''; - /** - * The HTTP request headers. If multiple headers share the same key, they - * must be merged according to the HTTP spec. All header keys must be - * lowercased, because HTTP header keys are case-insensitive. - * - * Generated from protobuf field map headers = 3; - */ - private $headers; - /** - * The HTTP URL path, excluding the query parameters. - * - * Generated from protobuf field string path = 4; - */ - protected $path = ''; - /** - * The HTTP request `Host` header value. - * - * Generated from protobuf field string host = 5; - */ - protected $host = ''; - /** - * The HTTP URL scheme, such as `http` and `https`. - * - * Generated from protobuf field string scheme = 6; - */ - protected $scheme = ''; - /** - * The HTTP URL query in the format of `name1=value1&name2=value2`, as it - * appears in the first line of the HTTP request. No decoding is performed. - * - * Generated from protobuf field string query = 7; - */ - protected $query = ''; - /** - * The timestamp when the `destination` service receives the last byte of - * the request. - * - * Generated from protobuf field .google.protobuf.Timestamp time = 9; - */ - protected $time = null; - /** - * The HTTP request size in bytes. If unknown, it must be -1. - * - * Generated from protobuf field int64 size = 10; - */ - protected $size = 0; - /** - * The network protocol used with the request, such as "http/1.1", - * "spdy/3", "h2", "h2c", "webrtc", "tcp", "udp", "quic". See - * https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids - * for details. - * - * Generated from protobuf field string protocol = 11; - */ - protected $protocol = ''; - /** - * A special parameter for request reason. It is used by security systems - * to associate auditing information with a request. - * - * Generated from protobuf field string reason = 12; - */ - protected $reason = ''; - /** - * The request authentication. May be absent for unauthenticated requests. - * Derived from the HTTP request `Authorization` header or equivalent. - * - * Generated from protobuf field .google.rpc.context.AttributeContext.Auth auth = 13; - */ - protected $auth = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $id - * The unique ID for a request, which can be propagated to downstream - * systems. The ID should have low probability of collision - * within a single day for a specific service. - * @type string $method - * The HTTP request method, such as `GET`, `POST`. - * @type array|\Google\Protobuf\Internal\MapField $headers - * The HTTP request headers. If multiple headers share the same key, they - * must be merged according to the HTTP spec. All header keys must be - * lowercased, because HTTP header keys are case-insensitive. - * @type string $path - * The HTTP URL path, excluding the query parameters. - * @type string $host - * The HTTP request `Host` header value. - * @type string $scheme - * The HTTP URL scheme, such as `http` and `https`. - * @type string $query - * The HTTP URL query in the format of `name1=value1&name2=value2`, as it - * appears in the first line of the HTTP request. No decoding is performed. - * @type \Google\Protobuf\Timestamp $time - * The timestamp when the `destination` service receives the last byte of - * the request. - * @type int|string $size - * The HTTP request size in bytes. If unknown, it must be -1. - * @type string $protocol - * The network protocol used with the request, such as "http/1.1", - * "spdy/3", "h2", "h2c", "webrtc", "tcp", "udp", "quic". See - * https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids - * for details. - * @type string $reason - * A special parameter for request reason. It is used by security systems - * to associate auditing information with a request. - * @type \Google\Rpc\Context\AttributeContext\Auth $auth - * The request authentication. May be absent for unauthenticated requests. - * Derived from the HTTP request `Authorization` header or equivalent. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Rpc\Context\AttributeContext::initOnce(); - parent::__construct($data); - } - - /** - * The unique ID for a request, which can be propagated to downstream - * systems. The ID should have low probability of collision - * within a single day for a specific service. - * - * Generated from protobuf field string id = 1; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * The unique ID for a request, which can be propagated to downstream - * systems. The ID should have low probability of collision - * within a single day for a specific service. - * - * Generated from protobuf field string id = 1; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - - /** - * The HTTP request method, such as `GET`, `POST`. - * - * Generated from protobuf field string method = 2; - * @return string - */ - public function getMethod() - { - return $this->method; - } - - /** - * The HTTP request method, such as `GET`, `POST`. - * - * Generated from protobuf field string method = 2; - * @param string $var - * @return $this - */ - public function setMethod($var) - { - GPBUtil::checkString($var, True); - $this->method = $var; - - return $this; - } - - /** - * The HTTP request headers. If multiple headers share the same key, they - * must be merged according to the HTTP spec. All header keys must be - * lowercased, because HTTP header keys are case-insensitive. - * - * Generated from protobuf field map headers = 3; - * @return \Google\Protobuf\Internal\MapField - */ - public function getHeaders() - { - return $this->headers; - } - - /** - * The HTTP request headers. If multiple headers share the same key, they - * must be merged according to the HTTP spec. All header keys must be - * lowercased, because HTTP header keys are case-insensitive. - * - * Generated from protobuf field map headers = 3; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setHeaders($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->headers = $arr; - - return $this; - } - - /** - * The HTTP URL path, excluding the query parameters. - * - * Generated from protobuf field string path = 4; - * @return string - */ - public function getPath() - { - return $this->path; - } - - /** - * The HTTP URL path, excluding the query parameters. - * - * Generated from protobuf field string path = 4; - * @param string $var - * @return $this - */ - public function setPath($var) - { - GPBUtil::checkString($var, True); - $this->path = $var; - - return $this; - } - - /** - * The HTTP request `Host` header value. - * - * Generated from protobuf field string host = 5; - * @return string - */ - public function getHost() - { - return $this->host; - } - - /** - * The HTTP request `Host` header value. - * - * Generated from protobuf field string host = 5; - * @param string $var - * @return $this - */ - public function setHost($var) - { - GPBUtil::checkString($var, True); - $this->host = $var; - - return $this; - } - - /** - * The HTTP URL scheme, such as `http` and `https`. - * - * Generated from protobuf field string scheme = 6; - * @return string - */ - public function getScheme() - { - return $this->scheme; - } - - /** - * The HTTP URL scheme, such as `http` and `https`. - * - * Generated from protobuf field string scheme = 6; - * @param string $var - * @return $this - */ - public function setScheme($var) - { - GPBUtil::checkString($var, True); - $this->scheme = $var; - - return $this; - } - - /** - * The HTTP URL query in the format of `name1=value1&name2=value2`, as it - * appears in the first line of the HTTP request. No decoding is performed. - * - * Generated from protobuf field string query = 7; - * @return string - */ - public function getQuery() - { - return $this->query; - } - - /** - * The HTTP URL query in the format of `name1=value1&name2=value2`, as it - * appears in the first line of the HTTP request. No decoding is performed. - * - * Generated from protobuf field string query = 7; - * @param string $var - * @return $this - */ - public function setQuery($var) - { - GPBUtil::checkString($var, True); - $this->query = $var; - - return $this; - } - - /** - * The timestamp when the `destination` service receives the last byte of - * the request. - * - * Generated from protobuf field .google.protobuf.Timestamp time = 9; - * @return \Google\Protobuf\Timestamp|null - */ - public function getTime() - { - return $this->time; - } - - public function hasTime() - { - return isset($this->time); - } - - public function clearTime() - { - unset($this->time); - } - - /** - * The timestamp when the `destination` service receives the last byte of - * the request. - * - * Generated from protobuf field .google.protobuf.Timestamp time = 9; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->time = $var; - - return $this; - } - - /** - * The HTTP request size in bytes. If unknown, it must be -1. - * - * Generated from protobuf field int64 size = 10; - * @return int|string - */ - public function getSize() - { - return $this->size; - } - - /** - * The HTTP request size in bytes. If unknown, it must be -1. - * - * Generated from protobuf field int64 size = 10; - * @param int|string $var - * @return $this - */ - public function setSize($var) - { - GPBUtil::checkInt64($var); - $this->size = $var; - - return $this; - } - - /** - * The network protocol used with the request, such as "http/1.1", - * "spdy/3", "h2", "h2c", "webrtc", "tcp", "udp", "quic". See - * https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids - * for details. - * - * Generated from protobuf field string protocol = 11; - * @return string - */ - public function getProtocol() - { - return $this->protocol; - } - - /** - * The network protocol used with the request, such as "http/1.1", - * "spdy/3", "h2", "h2c", "webrtc", "tcp", "udp", "quic". See - * https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids - * for details. - * - * Generated from protobuf field string protocol = 11; - * @param string $var - * @return $this - */ - public function setProtocol($var) - { - GPBUtil::checkString($var, True); - $this->protocol = $var; - - return $this; - } - - /** - * A special parameter for request reason. It is used by security systems - * to associate auditing information with a request. - * - * Generated from protobuf field string reason = 12; - * @return string - */ - public function getReason() - { - return $this->reason; - } - - /** - * A special parameter for request reason. It is used by security systems - * to associate auditing information with a request. - * - * Generated from protobuf field string reason = 12; - * @param string $var - * @return $this - */ - public function setReason($var) - { - GPBUtil::checkString($var, True); - $this->reason = $var; - - return $this; - } - - /** - * The request authentication. May be absent for unauthenticated requests. - * Derived from the HTTP request `Authorization` header or equivalent. - * - * Generated from protobuf field .google.rpc.context.AttributeContext.Auth auth = 13; - * @return \Google\Rpc\Context\AttributeContext\Auth|null - */ - public function getAuth() - { - return $this->auth; - } - - public function hasAuth() - { - return isset($this->auth); - } - - public function clearAuth() - { - unset($this->auth); - } - - /** - * The request authentication. May be absent for unauthenticated requests. - * Derived from the HTTP request `Authorization` header or equivalent. - * - * Generated from protobuf field .google.rpc.context.AttributeContext.Auth auth = 13; - * @param \Google\Rpc\Context\AttributeContext\Auth $var - * @return $this - */ - public function setAuth($var) - { - GPBUtil::checkMessage($var, \Google\Rpc\Context\AttributeContext\Auth::class); - $this->auth = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Resource.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Resource.php deleted file mode 100644 index c35da3f54dfc..000000000000 --- a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Resource.php +++ /dev/null @@ -1,613 +0,0 @@ -google.rpc.context.AttributeContext.Resource - */ -class Resource extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the service that this resource belongs to, such as - * `pubsub.googleapis.com`. The service may be different from the DNS - * hostname that actually serves the request. - * - * Generated from protobuf field string service = 1; - */ - protected $service = ''; - /** - * The stable identifier (name) of a resource on the `service`. A resource - * can be logically identified as "//{resource.service}/{resource.name}". - * The differences between a resource name and a URI are: - * * Resource name is a logical identifier, independent of network - * protocol and API version. For example, - * `//pubsub.googleapis.com/projects/123/topics/news-feed`. - * * URI often includes protocol and version information, so it can - * be used directly by applications. For example, - * `https://pubsub.googleapis.com/v1/projects/123/topics/news-feed`. - * See https://cloud.google.com/apis/design/resource_names for details. - * - * Generated from protobuf field string name = 2; - */ - protected $name = ''; - /** - * The type of the resource. The syntax is platform-specific because - * different platforms define their resources differently. - * For Google APIs, the type format must be "{service}/{kind}", such as - * "pubsub.googleapis.com/Topic". - * - * Generated from protobuf field string type = 3; - */ - protected $type = ''; - /** - * The labels or tags on the resource, such as AWS resource tags and - * Kubernetes resource labels. - * - * Generated from protobuf field map labels = 4; - */ - private $labels; - /** - * The unique identifier of the resource. UID is unique in the time - * and space for this resource within the scope of the service. It is - * typically generated by the server on successful creation of a resource - * and must not be changed. UID is used to uniquely identify resources - * with resource name reuses. This should be a UUID4. - * - * Generated from protobuf field string uid = 5; - */ - protected $uid = ''; - /** - * Annotations is an unstructured key-value map stored with a resource that - * may be set by external tools to store and retrieve arbitrary metadata. - * They are not queryable and should be preserved when modifying objects. - * More info: - * https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/ - * - * Generated from protobuf field map annotations = 6; - */ - private $annotations; - /** - * Mutable. The display name set by clients. Must be <= 63 characters. - * - * Generated from protobuf field string display_name = 7; - */ - protected $display_name = ''; - /** - * Output only. The timestamp when the resource was created. This may - * be either the time creation was initiated or when it was completed. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 8; - */ - protected $create_time = null; - /** - * Output only. The timestamp when the resource was last updated. Any - * change to the resource made by users must refresh this value. - * Changes to a resource made by the service should refresh this value. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 9; - */ - protected $update_time = null; - /** - * Output only. The timestamp when the resource was deleted. - * If the resource is not deleted, this must be empty. - * - * Generated from protobuf field .google.protobuf.Timestamp delete_time = 10; - */ - protected $delete_time = null; - /** - * Output only. An opaque value that uniquely identifies a version or - * generation of a resource. It can be used to confirm that the client - * and server agree on the ordering of a resource being written. - * - * Generated from protobuf field string etag = 11; - */ - protected $etag = ''; - /** - * Immutable. The location of the resource. The location encoding is - * specific to the service provider, and new encoding may be introduced - * as the service evolves. - * For Google Cloud products, the encoding is what is used by Google Cloud - * APIs, such as `us-east1`, `aws-us-east-1`, and `azure-eastus2`. The - * semantics of `location` is identical to the - * `cloud.googleapis.com/location` label used by some Google Cloud APIs. - * - * Generated from protobuf field string location = 12; - */ - protected $location = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $service - * The name of the service that this resource belongs to, such as - * `pubsub.googleapis.com`. The service may be different from the DNS - * hostname that actually serves the request. - * @type string $name - * The stable identifier (name) of a resource on the `service`. A resource - * can be logically identified as "//{resource.service}/{resource.name}". - * The differences between a resource name and a URI are: - * * Resource name is a logical identifier, independent of network - * protocol and API version. For example, - * `//pubsub.googleapis.com/projects/123/topics/news-feed`. - * * URI often includes protocol and version information, so it can - * be used directly by applications. For example, - * `https://pubsub.googleapis.com/v1/projects/123/topics/news-feed`. - * See https://cloud.google.com/apis/design/resource_names for details. - * @type string $type - * The type of the resource. The syntax is platform-specific because - * different platforms define their resources differently. - * For Google APIs, the type format must be "{service}/{kind}", such as - * "pubsub.googleapis.com/Topic". - * @type array|\Google\Protobuf\Internal\MapField $labels - * The labels or tags on the resource, such as AWS resource tags and - * Kubernetes resource labels. - * @type string $uid - * The unique identifier of the resource. UID is unique in the time - * and space for this resource within the scope of the service. It is - * typically generated by the server on successful creation of a resource - * and must not be changed. UID is used to uniquely identify resources - * with resource name reuses. This should be a UUID4. - * @type array|\Google\Protobuf\Internal\MapField $annotations - * Annotations is an unstructured key-value map stored with a resource that - * may be set by external tools to store and retrieve arbitrary metadata. - * They are not queryable and should be preserved when modifying objects. - * More info: - * https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/ - * @type string $display_name - * Mutable. The display name set by clients. Must be <= 63 characters. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The timestamp when the resource was created. This may - * be either the time creation was initiated or when it was completed. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The timestamp when the resource was last updated. Any - * change to the resource made by users must refresh this value. - * Changes to a resource made by the service should refresh this value. - * @type \Google\Protobuf\Timestamp $delete_time - * Output only. The timestamp when the resource was deleted. - * If the resource is not deleted, this must be empty. - * @type string $etag - * Output only. An opaque value that uniquely identifies a version or - * generation of a resource. It can be used to confirm that the client - * and server agree on the ordering of a resource being written. - * @type string $location - * Immutable. The location of the resource. The location encoding is - * specific to the service provider, and new encoding may be introduced - * as the service evolves. - * For Google Cloud products, the encoding is what is used by Google Cloud - * APIs, such as `us-east1`, `aws-us-east-1`, and `azure-eastus2`. The - * semantics of `location` is identical to the - * `cloud.googleapis.com/location` label used by some Google Cloud APIs. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Rpc\Context\AttributeContext::initOnce(); - parent::__construct($data); - } - - /** - * The name of the service that this resource belongs to, such as - * `pubsub.googleapis.com`. The service may be different from the DNS - * hostname that actually serves the request. - * - * Generated from protobuf field string service = 1; - * @return string - */ - public function getService() - { - return $this->service; - } - - /** - * The name of the service that this resource belongs to, such as - * `pubsub.googleapis.com`. The service may be different from the DNS - * hostname that actually serves the request. - * - * Generated from protobuf field string service = 1; - * @param string $var - * @return $this - */ - public function setService($var) - { - GPBUtil::checkString($var, True); - $this->service = $var; - - return $this; - } - - /** - * The stable identifier (name) of a resource on the `service`. A resource - * can be logically identified as "//{resource.service}/{resource.name}". - * The differences between a resource name and a URI are: - * * Resource name is a logical identifier, independent of network - * protocol and API version. For example, - * `//pubsub.googleapis.com/projects/123/topics/news-feed`. - * * URI often includes protocol and version information, so it can - * be used directly by applications. For example, - * `https://pubsub.googleapis.com/v1/projects/123/topics/news-feed`. - * See https://cloud.google.com/apis/design/resource_names for details. - * - * Generated from protobuf field string name = 2; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The stable identifier (name) of a resource on the `service`. A resource - * can be logically identified as "//{resource.service}/{resource.name}". - * The differences between a resource name and a URI are: - * * Resource name is a logical identifier, independent of network - * protocol and API version. For example, - * `//pubsub.googleapis.com/projects/123/topics/news-feed`. - * * URI often includes protocol and version information, so it can - * be used directly by applications. For example, - * `https://pubsub.googleapis.com/v1/projects/123/topics/news-feed`. - * See https://cloud.google.com/apis/design/resource_names for details. - * - * Generated from protobuf field string name = 2; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The type of the resource. The syntax is platform-specific because - * different platforms define their resources differently. - * For Google APIs, the type format must be "{service}/{kind}", such as - * "pubsub.googleapis.com/Topic". - * - * Generated from protobuf field string type = 3; - * @return string - */ - public function getType() - { - return $this->type; - } - - /** - * The type of the resource. The syntax is platform-specific because - * different platforms define their resources differently. - * For Google APIs, the type format must be "{service}/{kind}", such as - * "pubsub.googleapis.com/Topic". - * - * Generated from protobuf field string type = 3; - * @param string $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkString($var, True); - $this->type = $var; - - return $this; - } - - /** - * The labels or tags on the resource, such as AWS resource tags and - * Kubernetes resource labels. - * - * Generated from protobuf field map labels = 4; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * The labels or tags on the resource, such as AWS resource tags and - * Kubernetes resource labels. - * - * Generated from protobuf field map labels = 4; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - - /** - * The unique identifier of the resource. UID is unique in the time - * and space for this resource within the scope of the service. It is - * typically generated by the server on successful creation of a resource - * and must not be changed. UID is used to uniquely identify resources - * with resource name reuses. This should be a UUID4. - * - * Generated from protobuf field string uid = 5; - * @return string - */ - public function getUid() - { - return $this->uid; - } - - /** - * The unique identifier of the resource. UID is unique in the time - * and space for this resource within the scope of the service. It is - * typically generated by the server on successful creation of a resource - * and must not be changed. UID is used to uniquely identify resources - * with resource name reuses. This should be a UUID4. - * - * Generated from protobuf field string uid = 5; - * @param string $var - * @return $this - */ - public function setUid($var) - { - GPBUtil::checkString($var, True); - $this->uid = $var; - - return $this; - } - - /** - * Annotations is an unstructured key-value map stored with a resource that - * may be set by external tools to store and retrieve arbitrary metadata. - * They are not queryable and should be preserved when modifying objects. - * More info: - * https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/ - * - * Generated from protobuf field map annotations = 6; - * @return \Google\Protobuf\Internal\MapField - */ - public function getAnnotations() - { - return $this->annotations; - } - - /** - * Annotations is an unstructured key-value map stored with a resource that - * may be set by external tools to store and retrieve arbitrary metadata. - * They are not queryable and should be preserved when modifying objects. - * More info: - * https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/ - * - * Generated from protobuf field map annotations = 6; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setAnnotations($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->annotations = $arr; - - return $this; - } - - /** - * Mutable. The display name set by clients. Must be <= 63 characters. - * - * Generated from protobuf field string display_name = 7; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Mutable. The display name set by clients. Must be <= 63 characters. - * - * Generated from protobuf field string display_name = 7; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Output only. The timestamp when the resource was created. This may - * be either the time creation was initiated or when it was completed. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 8; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. The timestamp when the resource was created. This may - * be either the time creation was initiated or when it was completed. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 8; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. The timestamp when the resource was last updated. Any - * change to the resource made by users must refresh this value. - * Changes to a resource made by the service should refresh this value. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 9; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. The timestamp when the resource was last updated. Any - * change to the resource made by users must refresh this value. - * Changes to a resource made by the service should refresh this value. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 9; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * Output only. The timestamp when the resource was deleted. - * If the resource is not deleted, this must be empty. - * - * Generated from protobuf field .google.protobuf.Timestamp delete_time = 10; - * @return \Google\Protobuf\Timestamp|null - */ - public function getDeleteTime() - { - return $this->delete_time; - } - - public function hasDeleteTime() - { - return isset($this->delete_time); - } - - public function clearDeleteTime() - { - unset($this->delete_time); - } - - /** - * Output only. The timestamp when the resource was deleted. - * If the resource is not deleted, this must be empty. - * - * Generated from protobuf field .google.protobuf.Timestamp delete_time = 10; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setDeleteTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->delete_time = $var; - - return $this; - } - - /** - * Output only. An opaque value that uniquely identifies a version or - * generation of a resource. It can be used to confirm that the client - * and server agree on the ordering of a resource being written. - * - * Generated from protobuf field string etag = 11; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * Output only. An opaque value that uniquely identifies a version or - * generation of a resource. It can be used to confirm that the client - * and server agree on the ordering of a resource being written. - * - * Generated from protobuf field string etag = 11; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - - /** - * Immutable. The location of the resource. The location encoding is - * specific to the service provider, and new encoding may be introduced - * as the service evolves. - * For Google Cloud products, the encoding is what is used by Google Cloud - * APIs, such as `us-east1`, `aws-us-east-1`, and `azure-eastus2`. The - * semantics of `location` is identical to the - * `cloud.googleapis.com/location` label used by some Google Cloud APIs. - * - * Generated from protobuf field string location = 12; - * @return string - */ - public function getLocation() - { - return $this->location; - } - - /** - * Immutable. The location of the resource. The location encoding is - * specific to the service provider, and new encoding may be introduced - * as the service evolves. - * For Google Cloud products, the encoding is what is used by Google Cloud - * APIs, such as `us-east1`, `aws-us-east-1`, and `azure-eastus2`. The - * semantics of `location` is identical to the - * `cloud.googleapis.com/location` label used by some Google Cloud APIs. - * - * Generated from protobuf field string location = 12; - * @param string $var - * @return $this - */ - public function setLocation($var) - { - GPBUtil::checkString($var, True); - $this->location = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Response.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Response.php deleted file mode 100644 index 1745b961a0dd..000000000000 --- a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Response.php +++ /dev/null @@ -1,248 +0,0 @@ -google.rpc.context.AttributeContext.Response - */ -class Response extends \Google\Protobuf\Internal\Message -{ - /** - * The HTTP response status code, such as `200` and `404`. - * - * Generated from protobuf field int64 code = 1; - */ - protected $code = 0; - /** - * The HTTP response size in bytes. If unknown, it must be -1. - * - * Generated from protobuf field int64 size = 2; - */ - protected $size = 0; - /** - * The HTTP response headers. If multiple headers share the same key, they - * must be merged according to HTTP spec. All header keys must be - * lowercased, because HTTP header keys are case-insensitive. - * - * Generated from protobuf field map headers = 3; - */ - private $headers; - /** - * The timestamp when the `destination` service sends the last byte of - * the response. - * - * Generated from protobuf field .google.protobuf.Timestamp time = 4; - */ - protected $time = null; - /** - * The amount of time it takes the backend service to fully respond to a - * request. Measured from when the destination service starts to send the - * request to the backend until when the destination service receives the - * complete response from the backend. - * - * Generated from protobuf field .google.protobuf.Duration backend_latency = 5; - */ - protected $backend_latency = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $code - * The HTTP response status code, such as `200` and `404`. - * @type int|string $size - * The HTTP response size in bytes. If unknown, it must be -1. - * @type array|\Google\Protobuf\Internal\MapField $headers - * The HTTP response headers. If multiple headers share the same key, they - * must be merged according to HTTP spec. All header keys must be - * lowercased, because HTTP header keys are case-insensitive. - * @type \Google\Protobuf\Timestamp $time - * The timestamp when the `destination` service sends the last byte of - * the response. - * @type \Google\Protobuf\Duration $backend_latency - * The amount of time it takes the backend service to fully respond to a - * request. Measured from when the destination service starts to send the - * request to the backend until when the destination service receives the - * complete response from the backend. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Rpc\Context\AttributeContext::initOnce(); - parent::__construct($data); - } - - /** - * The HTTP response status code, such as `200` and `404`. - * - * Generated from protobuf field int64 code = 1; - * @return int|string - */ - public function getCode() - { - return $this->code; - } - - /** - * The HTTP response status code, such as `200` and `404`. - * - * Generated from protobuf field int64 code = 1; - * @param int|string $var - * @return $this - */ - public function setCode($var) - { - GPBUtil::checkInt64($var); - $this->code = $var; - - return $this; - } - - /** - * The HTTP response size in bytes. If unknown, it must be -1. - * - * Generated from protobuf field int64 size = 2; - * @return int|string - */ - public function getSize() - { - return $this->size; - } - - /** - * The HTTP response size in bytes. If unknown, it must be -1. - * - * Generated from protobuf field int64 size = 2; - * @param int|string $var - * @return $this - */ - public function setSize($var) - { - GPBUtil::checkInt64($var); - $this->size = $var; - - return $this; - } - - /** - * The HTTP response headers. If multiple headers share the same key, they - * must be merged according to HTTP spec. All header keys must be - * lowercased, because HTTP header keys are case-insensitive. - * - * Generated from protobuf field map headers = 3; - * @return \Google\Protobuf\Internal\MapField - */ - public function getHeaders() - { - return $this->headers; - } - - /** - * The HTTP response headers. If multiple headers share the same key, they - * must be merged according to HTTP spec. All header keys must be - * lowercased, because HTTP header keys are case-insensitive. - * - * Generated from protobuf field map headers = 3; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setHeaders($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->headers = $arr; - - return $this; - } - - /** - * The timestamp when the `destination` service sends the last byte of - * the response. - * - * Generated from protobuf field .google.protobuf.Timestamp time = 4; - * @return \Google\Protobuf\Timestamp|null - */ - public function getTime() - { - return $this->time; - } - - public function hasTime() - { - return isset($this->time); - } - - public function clearTime() - { - unset($this->time); - } - - /** - * The timestamp when the `destination` service sends the last byte of - * the response. - * - * Generated from protobuf field .google.protobuf.Timestamp time = 4; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->time = $var; - - return $this; - } - - /** - * The amount of time it takes the backend service to fully respond to a - * request. Measured from when the destination service starts to send the - * request to the backend until when the destination service receives the - * complete response from the backend. - * - * Generated from protobuf field .google.protobuf.Duration backend_latency = 5; - * @return \Google\Protobuf\Duration|null - */ - public function getBackendLatency() - { - return $this->backend_latency; - } - - public function hasBackendLatency() - { - return isset($this->backend_latency); - } - - public function clearBackendLatency() - { - unset($this->backend_latency); - } - - /** - * The amount of time it takes the backend service to fully respond to a - * request. Measured from when the destination service starts to send the - * request to the backend until when the destination service receives the - * complete response from the backend. - * - * Generated from protobuf field .google.protobuf.Duration backend_latency = 5; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setBackendLatency($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->backend_latency = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AuditContext.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AuditContext.php deleted file mode 100644 index f0acfa4f0859..000000000000 --- a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AuditContext.php +++ /dev/null @@ -1,247 +0,0 @@ -google.rpc.context.AuditContext - */ -class AuditContext extends \Google\Protobuf\Internal\Message -{ - /** - * Serialized audit log. - * - * Generated from protobuf field bytes audit_log = 1; - */ - protected $audit_log = ''; - /** - * An API request message that is scrubbed based on the method annotation. - * This field should only be filled if audit_log field is present. - * Service Control will use this to assemble a complete log for Cloud Audit - * Logs and Google internal audit logs. - * - * Generated from protobuf field .google.protobuf.Struct scrubbed_request = 2; - */ - protected $scrubbed_request = null; - /** - * An API response message that is scrubbed based on the method annotation. - * This field should only be filled if audit_log field is present. - * Service Control will use this to assemble a complete log for Cloud Audit - * Logs and Google internal audit logs. - * - * Generated from protobuf field .google.protobuf.Struct scrubbed_response = 3; - */ - protected $scrubbed_response = null; - /** - * Number of scrubbed response items. - * - * Generated from protobuf field int32 scrubbed_response_item_count = 4; - */ - protected $scrubbed_response_item_count = 0; - /** - * Audit resource name which is scrubbed. - * - * Generated from protobuf field string target_resource = 5; - */ - protected $target_resource = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $audit_log - * Serialized audit log. - * @type \Google\Protobuf\Struct $scrubbed_request - * An API request message that is scrubbed based on the method annotation. - * This field should only be filled if audit_log field is present. - * Service Control will use this to assemble a complete log for Cloud Audit - * Logs and Google internal audit logs. - * @type \Google\Protobuf\Struct $scrubbed_response - * An API response message that is scrubbed based on the method annotation. - * This field should only be filled if audit_log field is present. - * Service Control will use this to assemble a complete log for Cloud Audit - * Logs and Google internal audit logs. - * @type int $scrubbed_response_item_count - * Number of scrubbed response items. - * @type string $target_resource - * Audit resource name which is scrubbed. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Rpc\Context\AuditContext::initOnce(); - parent::__construct($data); - } - - /** - * Serialized audit log. - * - * Generated from protobuf field bytes audit_log = 1; - * @return string - */ - public function getAuditLog() - { - return $this->audit_log; - } - - /** - * Serialized audit log. - * - * Generated from protobuf field bytes audit_log = 1; - * @param string $var - * @return $this - */ - public function setAuditLog($var) - { - GPBUtil::checkString($var, False); - $this->audit_log = $var; - - return $this; - } - - /** - * An API request message that is scrubbed based on the method annotation. - * This field should only be filled if audit_log field is present. - * Service Control will use this to assemble a complete log for Cloud Audit - * Logs and Google internal audit logs. - * - * Generated from protobuf field .google.protobuf.Struct scrubbed_request = 2; - * @return \Google\Protobuf\Struct|null - */ - public function getScrubbedRequest() - { - return $this->scrubbed_request; - } - - public function hasScrubbedRequest() - { - return isset($this->scrubbed_request); - } - - public function clearScrubbedRequest() - { - unset($this->scrubbed_request); - } - - /** - * An API request message that is scrubbed based on the method annotation. - * This field should only be filled if audit_log field is present. - * Service Control will use this to assemble a complete log for Cloud Audit - * Logs and Google internal audit logs. - * - * Generated from protobuf field .google.protobuf.Struct scrubbed_request = 2; - * @param \Google\Protobuf\Struct $var - * @return $this - */ - public function setScrubbedRequest($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Struct::class); - $this->scrubbed_request = $var; - - return $this; - } - - /** - * An API response message that is scrubbed based on the method annotation. - * This field should only be filled if audit_log field is present. - * Service Control will use this to assemble a complete log for Cloud Audit - * Logs and Google internal audit logs. - * - * Generated from protobuf field .google.protobuf.Struct scrubbed_response = 3; - * @return \Google\Protobuf\Struct|null - */ - public function getScrubbedResponse() - { - return $this->scrubbed_response; - } - - public function hasScrubbedResponse() - { - return isset($this->scrubbed_response); - } - - public function clearScrubbedResponse() - { - unset($this->scrubbed_response); - } - - /** - * An API response message that is scrubbed based on the method annotation. - * This field should only be filled if audit_log field is present. - * Service Control will use this to assemble a complete log for Cloud Audit - * Logs and Google internal audit logs. - * - * Generated from protobuf field .google.protobuf.Struct scrubbed_response = 3; - * @param \Google\Protobuf\Struct $var - * @return $this - */ - public function setScrubbedResponse($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Struct::class); - $this->scrubbed_response = $var; - - return $this; - } - - /** - * Number of scrubbed response items. - * - * Generated from protobuf field int32 scrubbed_response_item_count = 4; - * @return int - */ - public function getScrubbedResponseItemCount() - { - return $this->scrubbed_response_item_count; - } - - /** - * Number of scrubbed response items. - * - * Generated from protobuf field int32 scrubbed_response_item_count = 4; - * @param int $var - * @return $this - */ - public function setScrubbedResponseItemCount($var) - { - GPBUtil::checkInt32($var); - $this->scrubbed_response_item_count = $var; - - return $this; - } - - /** - * Audit resource name which is scrubbed. - * - * Generated from protobuf field string target_resource = 5; - * @return string - */ - public function getTargetResource() - { - return $this->target_resource; - } - - /** - * Audit resource name which is scrubbed. - * - * Generated from protobuf field string target_resource = 5; - * @param string $var - * @return $this - */ - public function setTargetResource($var) - { - GPBUtil::checkString($var, True); - $this->target_resource = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/DebugInfo.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/DebugInfo.php deleted file mode 100644 index 1474948034c0..000000000000 --- a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/DebugInfo.php +++ /dev/null @@ -1,101 +0,0 @@ -google.rpc.DebugInfo - */ -class DebugInfo extends \Google\Protobuf\Internal\Message -{ - /** - * The stack trace entries indicating where the error occurred. - * - * Generated from protobuf field repeated string stack_entries = 1; - */ - private $stack_entries; - /** - * Additional debugging information provided by the server. - * - * Generated from protobuf field string detail = 2; - */ - protected $detail = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string[] $stack_entries - * The stack trace entries indicating where the error occurred. - * @type string $detail - * Additional debugging information provided by the server. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Rpc\ErrorDetails::initOnce(); - parent::__construct($data); - } - - /** - * The stack trace entries indicating where the error occurred. - * - * Generated from protobuf field repeated string stack_entries = 1; - * @return RepeatedField - */ - public function getStackEntries() - { - return $this->stack_entries; - } - - /** - * The stack trace entries indicating where the error occurred. - * - * Generated from protobuf field repeated string stack_entries = 1; - * @param string[] $var - * @return $this - */ - public function setStackEntries($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->stack_entries = $arr; - - return $this; - } - - /** - * Additional debugging information provided by the server. - * - * Generated from protobuf field string detail = 2; - * @return string - */ - public function getDetail() - { - return $this->detail; - } - - /** - * Additional debugging information provided by the server. - * - * Generated from protobuf field string detail = 2; - * @param string $var - * @return $this - */ - public function setDetail($var) - { - GPBUtil::checkString($var, True); - $this->detail = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/ErrorInfo.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/ErrorInfo.php deleted file mode 100644 index 158c0be7387d..000000000000 --- a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/ErrorInfo.php +++ /dev/null @@ -1,217 +0,0 @@ -google.rpc.ErrorInfo - */ -class ErrorInfo extends \Google\Protobuf\Internal\Message -{ - /** - * The reason of the error. This is a constant value that identifies the - * proximate cause of the error. Error reasons are unique within a particular - * domain of errors. This should be at most 63 characters and match a - * regular expression of `[A-Z][A-Z0-9_]+[A-Z0-9]`, which represents - * UPPER_SNAKE_CASE. - * - * Generated from protobuf field string reason = 1; - */ - protected $reason = ''; - /** - * The logical grouping to which the "reason" belongs. The error domain - * is typically the registered service name of the tool or product that - * generates the error. Example: "pubsub.googleapis.com". If the error is - * generated by some common infrastructure, the error domain must be a - * globally unique value that identifies the infrastructure. For Google API - * infrastructure, the error domain is "googleapis.com". - * - * Generated from protobuf field string domain = 2; - */ - protected $domain = ''; - /** - * Additional structured details about this error. - * Keys must match a regular expression of `[a-z][a-zA-Z0-9-_]+` but should - * ideally be lowerCamelCase. Also, they must be limited to 64 characters in - * length. When identifying the current value of an exceeded limit, the units - * should be contained in the key, not the value. For example, rather than - * `{"instanceLimit": "100/request"}`, should be returned as, - * `{"instanceLimitPerRequest": "100"}`, if the client exceeds the number of - * instances that can be created in a single (batch) request. - * - * Generated from protobuf field map metadata = 3; - */ - private $metadata; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $reason - * The reason of the error. This is a constant value that identifies the - * proximate cause of the error. Error reasons are unique within a particular - * domain of errors. This should be at most 63 characters and match a - * regular expression of `[A-Z][A-Z0-9_]+[A-Z0-9]`, which represents - * UPPER_SNAKE_CASE. - * @type string $domain - * The logical grouping to which the "reason" belongs. The error domain - * is typically the registered service name of the tool or product that - * generates the error. Example: "pubsub.googleapis.com". If the error is - * generated by some common infrastructure, the error domain must be a - * globally unique value that identifies the infrastructure. For Google API - * infrastructure, the error domain is "googleapis.com". - * @type array|\Google\Protobuf\Internal\MapField $metadata - * Additional structured details about this error. - * Keys must match a regular expression of `[a-z][a-zA-Z0-9-_]+` but should - * ideally be lowerCamelCase. Also, they must be limited to 64 characters in - * length. When identifying the current value of an exceeded limit, the units - * should be contained in the key, not the value. For example, rather than - * `{"instanceLimit": "100/request"}`, should be returned as, - * `{"instanceLimitPerRequest": "100"}`, if the client exceeds the number of - * instances that can be created in a single (batch) request. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Rpc\ErrorDetails::initOnce(); - parent::__construct($data); - } - - /** - * The reason of the error. This is a constant value that identifies the - * proximate cause of the error. Error reasons are unique within a particular - * domain of errors. This should be at most 63 characters and match a - * regular expression of `[A-Z][A-Z0-9_]+[A-Z0-9]`, which represents - * UPPER_SNAKE_CASE. - * - * Generated from protobuf field string reason = 1; - * @return string - */ - public function getReason() - { - return $this->reason; - } - - /** - * The reason of the error. This is a constant value that identifies the - * proximate cause of the error. Error reasons are unique within a particular - * domain of errors. This should be at most 63 characters and match a - * regular expression of `[A-Z][A-Z0-9_]+[A-Z0-9]`, which represents - * UPPER_SNAKE_CASE. - * - * Generated from protobuf field string reason = 1; - * @param string $var - * @return $this - */ - public function setReason($var) - { - GPBUtil::checkString($var, True); - $this->reason = $var; - - return $this; - } - - /** - * The logical grouping to which the "reason" belongs. The error domain - * is typically the registered service name of the tool or product that - * generates the error. Example: "pubsub.googleapis.com". If the error is - * generated by some common infrastructure, the error domain must be a - * globally unique value that identifies the infrastructure. For Google API - * infrastructure, the error domain is "googleapis.com". - * - * Generated from protobuf field string domain = 2; - * @return string - */ - public function getDomain() - { - return $this->domain; - } - - /** - * The logical grouping to which the "reason" belongs. The error domain - * is typically the registered service name of the tool or product that - * generates the error. Example: "pubsub.googleapis.com". If the error is - * generated by some common infrastructure, the error domain must be a - * globally unique value that identifies the infrastructure. For Google API - * infrastructure, the error domain is "googleapis.com". - * - * Generated from protobuf field string domain = 2; - * @param string $var - * @return $this - */ - public function setDomain($var) - { - GPBUtil::checkString($var, True); - $this->domain = $var; - - return $this; - } - - /** - * Additional structured details about this error. - * Keys must match a regular expression of `[a-z][a-zA-Z0-9-_]+` but should - * ideally be lowerCamelCase. Also, they must be limited to 64 characters in - * length. When identifying the current value of an exceeded limit, the units - * should be contained in the key, not the value. For example, rather than - * `{"instanceLimit": "100/request"}`, should be returned as, - * `{"instanceLimitPerRequest": "100"}`, if the client exceeds the number of - * instances that can be created in a single (batch) request. - * - * Generated from protobuf field map metadata = 3; - * @return \Google\Protobuf\Internal\MapField - */ - public function getMetadata() - { - return $this->metadata; - } - - /** - * Additional structured details about this error. - * Keys must match a regular expression of `[a-z][a-zA-Z0-9-_]+` but should - * ideally be lowerCamelCase. Also, they must be limited to 64 characters in - * length. When identifying the current value of an exceeded limit, the units - * should be contained in the key, not the value. For example, rather than - * `{"instanceLimit": "100/request"}`, should be returned as, - * `{"instanceLimitPerRequest": "100"}`, if the client exceeds the number of - * instances that can be created in a single (batch) request. - * - * Generated from protobuf field map metadata = 3; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setMetadata($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->metadata = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Help.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Help.php deleted file mode 100644 index 35ea516f8e15..000000000000 --- a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Help.php +++ /dev/null @@ -1,70 +0,0 @@ -google.rpc.Help - */ -class Help extends \Google\Protobuf\Internal\Message -{ - /** - * URL(s) pointing to additional information on handling the current error. - * - * Generated from protobuf field repeated .google.rpc.Help.Link links = 1; - */ - private $links; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Rpc\Help\Link[] $links - * URL(s) pointing to additional information on handling the current error. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Rpc\ErrorDetails::initOnce(); - parent::__construct($data); - } - - /** - * URL(s) pointing to additional information on handling the current error. - * - * Generated from protobuf field repeated .google.rpc.Help.Link links = 1; - * @return RepeatedField<\Google\Rpc\Help\Link> - */ - public function getLinks() - { - return $this->links; - } - - /** - * URL(s) pointing to additional information on handling the current error. - * - * Generated from protobuf field repeated .google.rpc.Help.Link links = 1; - * @param \Google\Rpc\Help\Link[] $var - * @return $this - */ - public function setLinks($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Rpc\Help\Link::class); - $this->links = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Help/Link.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Help/Link.php deleted file mode 100644 index fcfe169359da..000000000000 --- a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Help/Link.php +++ /dev/null @@ -1,101 +0,0 @@ -google.rpc.Help.Link - */ -class Link extends \Google\Protobuf\Internal\Message -{ - /** - * Describes what the link offers. - * - * Generated from protobuf field string description = 1; - */ - protected $description = ''; - /** - * The URL of the link. - * - * Generated from protobuf field string url = 2; - */ - protected $url = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $description - * Describes what the link offers. - * @type string $url - * The URL of the link. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Rpc\ErrorDetails::initOnce(); - parent::__construct($data); - } - - /** - * Describes what the link offers. - * - * Generated from protobuf field string description = 1; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Describes what the link offers. - * - * Generated from protobuf field string description = 1; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * The URL of the link. - * - * Generated from protobuf field string url = 2; - * @return string - */ - public function getUrl() - { - return $this->url; - } - - /** - * The URL of the link. - * - * Generated from protobuf field string url = 2; - * @param string $var - * @return $this - */ - public function setUrl($var) - { - GPBUtil::checkString($var, True); - $this->url = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/LocalizedMessage.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/LocalizedMessage.php deleted file mode 100644 index 37fc07f3de28..000000000000 --- a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/LocalizedMessage.php +++ /dev/null @@ -1,110 +0,0 @@ -google.rpc.LocalizedMessage - */ -class LocalizedMessage extends \Google\Protobuf\Internal\Message -{ - /** - * The locale used following the specification defined at - * https://www.rfc-editor.org/rfc/bcp/bcp47.txt. - * Examples are: "en-US", "fr-CH", "es-MX" - * - * Generated from protobuf field string locale = 1; - */ - protected $locale = ''; - /** - * The localized error message in the above locale. - * - * Generated from protobuf field string message = 2; - */ - protected $message = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $locale - * The locale used following the specification defined at - * https://www.rfc-editor.org/rfc/bcp/bcp47.txt. - * Examples are: "en-US", "fr-CH", "es-MX" - * @type string $message - * The localized error message in the above locale. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Rpc\ErrorDetails::initOnce(); - parent::__construct($data); - } - - /** - * The locale used following the specification defined at - * https://www.rfc-editor.org/rfc/bcp/bcp47.txt. - * Examples are: "en-US", "fr-CH", "es-MX" - * - * Generated from protobuf field string locale = 1; - * @return string - */ - public function getLocale() - { - return $this->locale; - } - - /** - * The locale used following the specification defined at - * https://www.rfc-editor.org/rfc/bcp/bcp47.txt. - * Examples are: "en-US", "fr-CH", "es-MX" - * - * Generated from protobuf field string locale = 1; - * @param string $var - * @return $this - */ - public function setLocale($var) - { - GPBUtil::checkString($var, True); - $this->locale = $var; - - return $this; - } - - /** - * The localized error message in the above locale. - * - * Generated from protobuf field string message = 2; - * @return string - */ - public function getMessage() - { - return $this->message; - } - - /** - * The localized error message in the above locale. - * - * Generated from protobuf field string message = 2; - * @param string $var - * @return $this - */ - public function setMessage($var) - { - GPBUtil::checkString($var, True); - $this->message = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/PreconditionFailure.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/PreconditionFailure.php deleted file mode 100644 index 4ab7937f2645..000000000000 --- a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/PreconditionFailure.php +++ /dev/null @@ -1,70 +0,0 @@ -google.rpc.PreconditionFailure - */ -class PreconditionFailure extends \Google\Protobuf\Internal\Message -{ - /** - * Describes all precondition violations. - * - * Generated from protobuf field repeated .google.rpc.PreconditionFailure.Violation violations = 1; - */ - private $violations; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Rpc\PreconditionFailure\Violation[] $violations - * Describes all precondition violations. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Rpc\ErrorDetails::initOnce(); - parent::__construct($data); - } - - /** - * Describes all precondition violations. - * - * Generated from protobuf field repeated .google.rpc.PreconditionFailure.Violation violations = 1; - * @return RepeatedField<\Google\Rpc\PreconditionFailure\Violation> - */ - public function getViolations() - { - return $this->violations; - } - - /** - * Describes all precondition violations. - * - * Generated from protobuf field repeated .google.rpc.PreconditionFailure.Violation violations = 1; - * @param \Google\Rpc\PreconditionFailure\Violation[] $var - * @return $this - */ - public function setViolations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Rpc\PreconditionFailure\Violation::class); - $this->violations = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/PreconditionFailure/Violation.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/PreconditionFailure/Violation.php deleted file mode 100644 index 85aa5b103fca..000000000000 --- a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/PreconditionFailure/Violation.php +++ /dev/null @@ -1,159 +0,0 @@ -google.rpc.PreconditionFailure.Violation - */ -class Violation extends \Google\Protobuf\Internal\Message -{ - /** - * The type of PreconditionFailure. We recommend using a service-specific - * enum type to define the supported precondition violation subjects. For - * example, "TOS" for "Terms of Service violation". - * - * Generated from protobuf field string type = 1; - */ - protected $type = ''; - /** - * The subject, relative to the type, that failed. - * For example, "google.com/cloud" relative to the "TOS" type would indicate - * which terms of service is being referenced. - * - * Generated from protobuf field string subject = 2; - */ - protected $subject = ''; - /** - * A description of how the precondition failed. Developers can use this - * description to understand how to fix the failure. - * For example: "Terms of service not accepted". - * - * Generated from protobuf field string description = 3; - */ - protected $description = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $type - * The type of PreconditionFailure. We recommend using a service-specific - * enum type to define the supported precondition violation subjects. For - * example, "TOS" for "Terms of Service violation". - * @type string $subject - * The subject, relative to the type, that failed. - * For example, "google.com/cloud" relative to the "TOS" type would indicate - * which terms of service is being referenced. - * @type string $description - * A description of how the precondition failed. Developers can use this - * description to understand how to fix the failure. - * For example: "Terms of service not accepted". - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Rpc\ErrorDetails::initOnce(); - parent::__construct($data); - } - - /** - * The type of PreconditionFailure. We recommend using a service-specific - * enum type to define the supported precondition violation subjects. For - * example, "TOS" for "Terms of Service violation". - * - * Generated from protobuf field string type = 1; - * @return string - */ - public function getType() - { - return $this->type; - } - - /** - * The type of PreconditionFailure. We recommend using a service-specific - * enum type to define the supported precondition violation subjects. For - * example, "TOS" for "Terms of Service violation". - * - * Generated from protobuf field string type = 1; - * @param string $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkString($var, True); - $this->type = $var; - - return $this; - } - - /** - * The subject, relative to the type, that failed. - * For example, "google.com/cloud" relative to the "TOS" type would indicate - * which terms of service is being referenced. - * - * Generated from protobuf field string subject = 2; - * @return string - */ - public function getSubject() - { - return $this->subject; - } - - /** - * The subject, relative to the type, that failed. - * For example, "google.com/cloud" relative to the "TOS" type would indicate - * which terms of service is being referenced. - * - * Generated from protobuf field string subject = 2; - * @param string $var - * @return $this - */ - public function setSubject($var) - { - GPBUtil::checkString($var, True); - $this->subject = $var; - - return $this; - } - - /** - * A description of how the precondition failed. Developers can use this - * description to understand how to fix the failure. - * For example: "Terms of service not accepted". - * - * Generated from protobuf field string description = 3; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * A description of how the precondition failed. Developers can use this - * description to understand how to fix the failure. - * For example: "Terms of service not accepted". - * - * Generated from protobuf field string description = 3; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/QuotaFailure.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/QuotaFailure.php deleted file mode 100644 index 92b235c711a2..000000000000 --- a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/QuotaFailure.php +++ /dev/null @@ -1,75 +0,0 @@ -google.rpc.QuotaFailure - */ -class QuotaFailure extends \Google\Protobuf\Internal\Message -{ - /** - * Describes all quota violations. - * - * Generated from protobuf field repeated .google.rpc.QuotaFailure.Violation violations = 1; - */ - private $violations; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Rpc\QuotaFailure\Violation[] $violations - * Describes all quota violations. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Rpc\ErrorDetails::initOnce(); - parent::__construct($data); - } - - /** - * Describes all quota violations. - * - * Generated from protobuf field repeated .google.rpc.QuotaFailure.Violation violations = 1; - * @return RepeatedField<\Google\Rpc\QuotaFailure\Violation> - */ - public function getViolations() - { - return $this->violations; - } - - /** - * Describes all quota violations. - * - * Generated from protobuf field repeated .google.rpc.QuotaFailure.Violation violations = 1; - * @param \Google\Rpc\QuotaFailure\Violation[] $var - * @return $this - */ - public function setViolations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Rpc\QuotaFailure\Violation::class); - $this->violations = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/QuotaFailure/Violation.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/QuotaFailure/Violation.php deleted file mode 100644 index e4a1a705c92f..000000000000 --- a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/QuotaFailure/Violation.php +++ /dev/null @@ -1,500 +0,0 @@ -google.rpc.QuotaFailure.Violation - */ -class Violation extends \Google\Protobuf\Internal\Message -{ - /** - * The subject on which the quota check failed. - * For example, "clientip:" or "project:". - * - * Generated from protobuf field string subject = 1; - */ - protected $subject = ''; - /** - * A description of how the quota check failed. Clients can use this - * description to find more about the quota configuration in the service's - * public documentation, or find the relevant quota limit to adjust through - * developer console. - * For example: "Service disabled" or "Daily Limit for read operations - * exceeded". - * - * Generated from protobuf field string description = 2; - */ - protected $description = ''; - /** - * The API Service from which the `QuotaFailure.Violation` orginates. In - * some cases, Quota issues originate from an API Service other than the one - * that was called. In other words, a dependency of the called API Service - * could be the cause of the `QuotaFailure`, and this field would have the - * dependency API service name. - * For example, if the called API is Kubernetes Engine API - * (container.googleapis.com), and a quota violation occurs in the - * Kubernetes Engine API itself, this field would be - * "container.googleapis.com". On the other hand, if the quota violation - * occurs when the Kubernetes Engine API creates VMs in the Compute Engine - * API (compute.googleapis.com), this field would be - * "compute.googleapis.com". - * - * Generated from protobuf field string api_service = 3; - */ - protected $api_service = ''; - /** - * The metric of the violated quota. A quota metric is a named counter to - * measure usage, such as API requests or CPUs. When an activity occurs in a - * service, such as Virtual Machine allocation, one or more quota metrics - * may be affected. - * For example, "compute.googleapis.com/cpus_per_vm_family", - * "storage.googleapis.com/internet_egress_bandwidth". - * - * Generated from protobuf field string quota_metric = 4; - */ - protected $quota_metric = ''; - /** - * The id of the violated quota. Also know as "limit name", this is the - * unique identifier of a quota in the context of an API service. - * For example, "CPUS-PER-VM-FAMILY-per-project-region". - * - * Generated from protobuf field string quota_id = 5; - */ - protected $quota_id = ''; - /** - * The dimensions of the violated quota. Every non-global quota is enforced - * on a set of dimensions. While quota metric defines what to count, the - * dimensions specify for what aspects the counter should be increased. - * For example, the quota "CPUs per region per VM family" enforces a limit - * on the metric "compute.googleapis.com/cpus_per_vm_family" on dimensions - * "region" and "vm_family". And if the violation occurred in region - * "us-central1" and for VM family "n1", the quota_dimensions would be, - * { - * "region": "us-central1", - * "vm_family": "n1", - * } - * When a quota is enforced globally, the quota_dimensions would always be - * empty. - * - * Generated from protobuf field map quota_dimensions = 6; - */ - private $quota_dimensions; - /** - * The enforced quota value at the time of the `QuotaFailure`. - * For example, if the enforced quota value at the time of the - * `QuotaFailure` on the number of CPUs is "10", then the value of this - * field would reflect this quantity. - * - * Generated from protobuf field int64 quota_value = 7; - */ - protected $quota_value = 0; - /** - * The new quota value being rolled out at the time of the violation. At the - * completion of the rollout, this value will be enforced in place of - * quota_value. If no rollout is in progress at the time of the violation, - * this field is not set. - * For example, if at the time of the violation a rollout is in progress - * changing the number of CPUs quota from 10 to 20, 20 would be the value of - * this field. - * - * Generated from protobuf field optional int64 future_quota_value = 8; - */ - protected $future_quota_value = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $subject - * The subject on which the quota check failed. - * For example, "clientip:" or "project:". - * @type string $description - * A description of how the quota check failed. Clients can use this - * description to find more about the quota configuration in the service's - * public documentation, or find the relevant quota limit to adjust through - * developer console. - * For example: "Service disabled" or "Daily Limit for read operations - * exceeded". - * @type string $api_service - * The API Service from which the `QuotaFailure.Violation` orginates. In - * some cases, Quota issues originate from an API Service other than the one - * that was called. In other words, a dependency of the called API Service - * could be the cause of the `QuotaFailure`, and this field would have the - * dependency API service name. - * For example, if the called API is Kubernetes Engine API - * (container.googleapis.com), and a quota violation occurs in the - * Kubernetes Engine API itself, this field would be - * "container.googleapis.com". On the other hand, if the quota violation - * occurs when the Kubernetes Engine API creates VMs in the Compute Engine - * API (compute.googleapis.com), this field would be - * "compute.googleapis.com". - * @type string $quota_metric - * The metric of the violated quota. A quota metric is a named counter to - * measure usage, such as API requests or CPUs. When an activity occurs in a - * service, such as Virtual Machine allocation, one or more quota metrics - * may be affected. - * For example, "compute.googleapis.com/cpus_per_vm_family", - * "storage.googleapis.com/internet_egress_bandwidth". - * @type string $quota_id - * The id of the violated quota. Also know as "limit name", this is the - * unique identifier of a quota in the context of an API service. - * For example, "CPUS-PER-VM-FAMILY-per-project-region". - * @type array|\Google\Protobuf\Internal\MapField $quota_dimensions - * The dimensions of the violated quota. Every non-global quota is enforced - * on a set of dimensions. While quota metric defines what to count, the - * dimensions specify for what aspects the counter should be increased. - * For example, the quota "CPUs per region per VM family" enforces a limit - * on the metric "compute.googleapis.com/cpus_per_vm_family" on dimensions - * "region" and "vm_family". And if the violation occurred in region - * "us-central1" and for VM family "n1", the quota_dimensions would be, - * { - * "region": "us-central1", - * "vm_family": "n1", - * } - * When a quota is enforced globally, the quota_dimensions would always be - * empty. - * @type int|string $quota_value - * The enforced quota value at the time of the `QuotaFailure`. - * For example, if the enforced quota value at the time of the - * `QuotaFailure` on the number of CPUs is "10", then the value of this - * field would reflect this quantity. - * @type int|string $future_quota_value - * The new quota value being rolled out at the time of the violation. At the - * completion of the rollout, this value will be enforced in place of - * quota_value. If no rollout is in progress at the time of the violation, - * this field is not set. - * For example, if at the time of the violation a rollout is in progress - * changing the number of CPUs quota from 10 to 20, 20 would be the value of - * this field. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Rpc\ErrorDetails::initOnce(); - parent::__construct($data); - } - - /** - * The subject on which the quota check failed. - * For example, "clientip:" or "project:". - * - * Generated from protobuf field string subject = 1; - * @return string - */ - public function getSubject() - { - return $this->subject; - } - - /** - * The subject on which the quota check failed. - * For example, "clientip:" or "project:". - * - * Generated from protobuf field string subject = 1; - * @param string $var - * @return $this - */ - public function setSubject($var) - { - GPBUtil::checkString($var, True); - $this->subject = $var; - - return $this; - } - - /** - * A description of how the quota check failed. Clients can use this - * description to find more about the quota configuration in the service's - * public documentation, or find the relevant quota limit to adjust through - * developer console. - * For example: "Service disabled" or "Daily Limit for read operations - * exceeded". - * - * Generated from protobuf field string description = 2; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * A description of how the quota check failed. Clients can use this - * description to find more about the quota configuration in the service's - * public documentation, or find the relevant quota limit to adjust through - * developer console. - * For example: "Service disabled" or "Daily Limit for read operations - * exceeded". - * - * Generated from protobuf field string description = 2; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * The API Service from which the `QuotaFailure.Violation` orginates. In - * some cases, Quota issues originate from an API Service other than the one - * that was called. In other words, a dependency of the called API Service - * could be the cause of the `QuotaFailure`, and this field would have the - * dependency API service name. - * For example, if the called API is Kubernetes Engine API - * (container.googleapis.com), and a quota violation occurs in the - * Kubernetes Engine API itself, this field would be - * "container.googleapis.com". On the other hand, if the quota violation - * occurs when the Kubernetes Engine API creates VMs in the Compute Engine - * API (compute.googleapis.com), this field would be - * "compute.googleapis.com". - * - * Generated from protobuf field string api_service = 3; - * @return string - */ - public function getApiService() - { - return $this->api_service; - } - - /** - * The API Service from which the `QuotaFailure.Violation` orginates. In - * some cases, Quota issues originate from an API Service other than the one - * that was called. In other words, a dependency of the called API Service - * could be the cause of the `QuotaFailure`, and this field would have the - * dependency API service name. - * For example, if the called API is Kubernetes Engine API - * (container.googleapis.com), and a quota violation occurs in the - * Kubernetes Engine API itself, this field would be - * "container.googleapis.com". On the other hand, if the quota violation - * occurs when the Kubernetes Engine API creates VMs in the Compute Engine - * API (compute.googleapis.com), this field would be - * "compute.googleapis.com". - * - * Generated from protobuf field string api_service = 3; - * @param string $var - * @return $this - */ - public function setApiService($var) - { - GPBUtil::checkString($var, True); - $this->api_service = $var; - - return $this; - } - - /** - * The metric of the violated quota. A quota metric is a named counter to - * measure usage, such as API requests or CPUs. When an activity occurs in a - * service, such as Virtual Machine allocation, one or more quota metrics - * may be affected. - * For example, "compute.googleapis.com/cpus_per_vm_family", - * "storage.googleapis.com/internet_egress_bandwidth". - * - * Generated from protobuf field string quota_metric = 4; - * @return string - */ - public function getQuotaMetric() - { - return $this->quota_metric; - } - - /** - * The metric of the violated quota. A quota metric is a named counter to - * measure usage, such as API requests or CPUs. When an activity occurs in a - * service, such as Virtual Machine allocation, one or more quota metrics - * may be affected. - * For example, "compute.googleapis.com/cpus_per_vm_family", - * "storage.googleapis.com/internet_egress_bandwidth". - * - * Generated from protobuf field string quota_metric = 4; - * @param string $var - * @return $this - */ - public function setQuotaMetric($var) - { - GPBUtil::checkString($var, True); - $this->quota_metric = $var; - - return $this; - } - - /** - * The id of the violated quota. Also know as "limit name", this is the - * unique identifier of a quota in the context of an API service. - * For example, "CPUS-PER-VM-FAMILY-per-project-region". - * - * Generated from protobuf field string quota_id = 5; - * @return string - */ - public function getQuotaId() - { - return $this->quota_id; - } - - /** - * The id of the violated quota. Also know as "limit name", this is the - * unique identifier of a quota in the context of an API service. - * For example, "CPUS-PER-VM-FAMILY-per-project-region". - * - * Generated from protobuf field string quota_id = 5; - * @param string $var - * @return $this - */ - public function setQuotaId($var) - { - GPBUtil::checkString($var, True); - $this->quota_id = $var; - - return $this; - } - - /** - * The dimensions of the violated quota. Every non-global quota is enforced - * on a set of dimensions. While quota metric defines what to count, the - * dimensions specify for what aspects the counter should be increased. - * For example, the quota "CPUs per region per VM family" enforces a limit - * on the metric "compute.googleapis.com/cpus_per_vm_family" on dimensions - * "region" and "vm_family". And if the violation occurred in region - * "us-central1" and for VM family "n1", the quota_dimensions would be, - * { - * "region": "us-central1", - * "vm_family": "n1", - * } - * When a quota is enforced globally, the quota_dimensions would always be - * empty. - * - * Generated from protobuf field map quota_dimensions = 6; - * @return \Google\Protobuf\Internal\MapField - */ - public function getQuotaDimensions() - { - return $this->quota_dimensions; - } - - /** - * The dimensions of the violated quota. Every non-global quota is enforced - * on a set of dimensions. While quota metric defines what to count, the - * dimensions specify for what aspects the counter should be increased. - * For example, the quota "CPUs per region per VM family" enforces a limit - * on the metric "compute.googleapis.com/cpus_per_vm_family" on dimensions - * "region" and "vm_family". And if the violation occurred in region - * "us-central1" and for VM family "n1", the quota_dimensions would be, - * { - * "region": "us-central1", - * "vm_family": "n1", - * } - * When a quota is enforced globally, the quota_dimensions would always be - * empty. - * - * Generated from protobuf field map quota_dimensions = 6; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setQuotaDimensions($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->quota_dimensions = $arr; - - return $this; - } - - /** - * The enforced quota value at the time of the `QuotaFailure`. - * For example, if the enforced quota value at the time of the - * `QuotaFailure` on the number of CPUs is "10", then the value of this - * field would reflect this quantity. - * - * Generated from protobuf field int64 quota_value = 7; - * @return int|string - */ - public function getQuotaValue() - { - return $this->quota_value; - } - - /** - * The enforced quota value at the time of the `QuotaFailure`. - * For example, if the enforced quota value at the time of the - * `QuotaFailure` on the number of CPUs is "10", then the value of this - * field would reflect this quantity. - * - * Generated from protobuf field int64 quota_value = 7; - * @param int|string $var - * @return $this - */ - public function setQuotaValue($var) - { - GPBUtil::checkInt64($var); - $this->quota_value = $var; - - return $this; - } - - /** - * The new quota value being rolled out at the time of the violation. At the - * completion of the rollout, this value will be enforced in place of - * quota_value. If no rollout is in progress at the time of the violation, - * this field is not set. - * For example, if at the time of the violation a rollout is in progress - * changing the number of CPUs quota from 10 to 20, 20 would be the value of - * this field. - * - * Generated from protobuf field optional int64 future_quota_value = 8; - * @return int|string - */ - public function getFutureQuotaValue() - { - return isset($this->future_quota_value) ? $this->future_quota_value : 0; - } - - public function hasFutureQuotaValue() - { - return isset($this->future_quota_value); - } - - public function clearFutureQuotaValue() - { - unset($this->future_quota_value); - } - - /** - * The new quota value being rolled out at the time of the violation. At the - * completion of the rollout, this value will be enforced in place of - * quota_value. If no rollout is in progress at the time of the violation, - * this field is not set. - * For example, if at the time of the violation a rollout is in progress - * changing the number of CPUs quota from 10 to 20, 20 would be the value of - * this field. - * - * Generated from protobuf field optional int64 future_quota_value = 8; - * @param int|string $var - * @return $this - */ - public function setFutureQuotaValue($var) - { - GPBUtil::checkInt64($var); - $this->future_quota_value = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/RequestInfo.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/RequestInfo.php deleted file mode 100644 index 04952a12129f..000000000000 --- a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/RequestInfo.php +++ /dev/null @@ -1,110 +0,0 @@ -google.rpc.RequestInfo - */ -class RequestInfo extends \Google\Protobuf\Internal\Message -{ - /** - * An opaque string that should only be interpreted by the service generating - * it. For example, it can be used to identify requests in the service's logs. - * - * Generated from protobuf field string request_id = 1; - */ - protected $request_id = ''; - /** - * Any data that was used to serve this request. For example, an encrypted - * stack trace that can be sent back to the service provider for debugging. - * - * Generated from protobuf field string serving_data = 2; - */ - protected $serving_data = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $request_id - * An opaque string that should only be interpreted by the service generating - * it. For example, it can be used to identify requests in the service's logs. - * @type string $serving_data - * Any data that was used to serve this request. For example, an encrypted - * stack trace that can be sent back to the service provider for debugging. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Rpc\ErrorDetails::initOnce(); - parent::__construct($data); - } - - /** - * An opaque string that should only be interpreted by the service generating - * it. For example, it can be used to identify requests in the service's logs. - * - * Generated from protobuf field string request_id = 1; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * An opaque string that should only be interpreted by the service generating - * it. For example, it can be used to identify requests in the service's logs. - * - * Generated from protobuf field string request_id = 1; - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - - /** - * Any data that was used to serve this request. For example, an encrypted - * stack trace that can be sent back to the service provider for debugging. - * - * Generated from protobuf field string serving_data = 2; - * @return string - */ - public function getServingData() - { - return $this->serving_data; - } - - /** - * Any data that was used to serve this request. For example, an encrypted - * stack trace that can be sent back to the service provider for debugging. - * - * Generated from protobuf field string serving_data = 2; - * @param string $var - * @return $this - */ - public function setServingData($var) - { - GPBUtil::checkString($var, True); - $this->serving_data = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/ResourceInfo.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/ResourceInfo.php deleted file mode 100644 index 223b5cd01471..000000000000 --- a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/ResourceInfo.php +++ /dev/null @@ -1,205 +0,0 @@ -google.rpc.ResourceInfo - */ -class ResourceInfo extends \Google\Protobuf\Internal\Message -{ - /** - * A name for the type of resource being accessed, e.g. "sql table", - * "cloud storage bucket", "file", "Google calendar"; or the type URL - * of the resource: e.g. "type.googleapis.com/google.pubsub.v1.Topic". - * - * Generated from protobuf field string resource_type = 1; - */ - protected $resource_type = ''; - /** - * The name of the resource being accessed. For example, a shared calendar - * name: "example.com_4fghdhgsrgh\@group.calendar.google.com", if the current - * error is - * [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED]. - * - * Generated from protobuf field string resource_name = 2; - */ - protected $resource_name = ''; - /** - * The owner of the resource (optional). - * For example, "user:" or "project:". - * - * Generated from protobuf field string owner = 3; - */ - protected $owner = ''; - /** - * Describes what error is encountered when accessing this resource. - * For example, updating a cloud project may require the `writer` permission - * on the developer console project. - * - * Generated from protobuf field string description = 4; - */ - protected $description = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $resource_type - * A name for the type of resource being accessed, e.g. "sql table", - * "cloud storage bucket", "file", "Google calendar"; or the type URL - * of the resource: e.g. "type.googleapis.com/google.pubsub.v1.Topic". - * @type string $resource_name - * The name of the resource being accessed. For example, a shared calendar - * name: "example.com_4fghdhgsrgh\@group.calendar.google.com", if the current - * error is - * [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED]. - * @type string $owner - * The owner of the resource (optional). - * For example, "user:" or "project:". - * @type string $description - * Describes what error is encountered when accessing this resource. - * For example, updating a cloud project may require the `writer` permission - * on the developer console project. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Rpc\ErrorDetails::initOnce(); - parent::__construct($data); - } - - /** - * A name for the type of resource being accessed, e.g. "sql table", - * "cloud storage bucket", "file", "Google calendar"; or the type URL - * of the resource: e.g. "type.googleapis.com/google.pubsub.v1.Topic". - * - * Generated from protobuf field string resource_type = 1; - * @return string - */ - public function getResourceType() - { - return $this->resource_type; - } - - /** - * A name for the type of resource being accessed, e.g. "sql table", - * "cloud storage bucket", "file", "Google calendar"; or the type URL - * of the resource: e.g. "type.googleapis.com/google.pubsub.v1.Topic". - * - * Generated from protobuf field string resource_type = 1; - * @param string $var - * @return $this - */ - public function setResourceType($var) - { - GPBUtil::checkString($var, True); - $this->resource_type = $var; - - return $this; - } - - /** - * The name of the resource being accessed. For example, a shared calendar - * name: "example.com_4fghdhgsrgh\@group.calendar.google.com", if the current - * error is - * [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED]. - * - * Generated from protobuf field string resource_name = 2; - * @return string - */ - public function getResourceName() - { - return $this->resource_name; - } - - /** - * The name of the resource being accessed. For example, a shared calendar - * name: "example.com_4fghdhgsrgh\@group.calendar.google.com", if the current - * error is - * [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED]. - * - * Generated from protobuf field string resource_name = 2; - * @param string $var - * @return $this - */ - public function setResourceName($var) - { - GPBUtil::checkString($var, True); - $this->resource_name = $var; - - return $this; - } - - /** - * The owner of the resource (optional). - * For example, "user:" or "project:". - * - * Generated from protobuf field string owner = 3; - * @return string - */ - public function getOwner() - { - return $this->owner; - } - - /** - * The owner of the resource (optional). - * For example, "user:" or "project:". - * - * Generated from protobuf field string owner = 3; - * @param string $var - * @return $this - */ - public function setOwner($var) - { - GPBUtil::checkString($var, True); - $this->owner = $var; - - return $this; - } - - /** - * Describes what error is encountered when accessing this resource. - * For example, updating a cloud project may require the `writer` permission - * on the developer console project. - * - * Generated from protobuf field string description = 4; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Describes what error is encountered when accessing this resource. - * For example, updating a cloud project may require the `writer` permission - * on the developer console project. - * - * Generated from protobuf field string description = 4; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/RetryInfo.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/RetryInfo.php deleted file mode 100644 index b661f080aa61..000000000000 --- a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/RetryInfo.php +++ /dev/null @@ -1,87 +0,0 @@ -google.rpc.RetryInfo - */ -class RetryInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Clients should wait at least this long between retrying the same request. - * - * Generated from protobuf field .google.protobuf.Duration retry_delay = 1; - */ - protected $retry_delay = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Duration $retry_delay - * Clients should wait at least this long between retrying the same request. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Rpc\ErrorDetails::initOnce(); - parent::__construct($data); - } - - /** - * Clients should wait at least this long between retrying the same request. - * - * Generated from protobuf field .google.protobuf.Duration retry_delay = 1; - * @return \Google\Protobuf\Duration|null - */ - public function getRetryDelay() - { - return $this->retry_delay; - } - - public function hasRetryDelay() - { - return isset($this->retry_delay); - } - - public function clearRetryDelay() - { - unset($this->retry_delay); - } - - /** - * Clients should wait at least this long between retrying the same request. - * - * Generated from protobuf field .google.protobuf.Duration retry_delay = 1; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setRetryDelay($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->retry_delay = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Status.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Status.php deleted file mode 100644 index 73d4800c42ab..000000000000 --- a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Status.php +++ /dev/null @@ -1,160 +0,0 @@ -google.rpc.Status - */ -class Status extends \Google\Protobuf\Internal\Message -{ - /** - * The status code, which should be an enum value of - * [google.rpc.Code][google.rpc.Code]. - * - * Generated from protobuf field int32 code = 1; - */ - protected $code = 0; - /** - * A developer-facing error message, which should be in English. Any - * user-facing error message should be localized and sent in the - * [google.rpc.Status.details][google.rpc.Status.details] field, or localized - * by the client. - * - * Generated from protobuf field string message = 2; - */ - protected $message = ''; - /** - * A list of messages that carry the error details. There is a common set of - * message types for APIs to use. - * - * Generated from protobuf field repeated .google.protobuf.Any details = 3; - */ - private $details; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $code - * The status code, which should be an enum value of - * [google.rpc.Code][google.rpc.Code]. - * @type string $message - * A developer-facing error message, which should be in English. Any - * user-facing error message should be localized and sent in the - * [google.rpc.Status.details][google.rpc.Status.details] field, or localized - * by the client. - * @type \Google\Protobuf\Any[] $details - * A list of messages that carry the error details. There is a common set of - * message types for APIs to use. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Rpc\Status::initOnce(); - parent::__construct($data); - } - - /** - * The status code, which should be an enum value of - * [google.rpc.Code][google.rpc.Code]. - * - * Generated from protobuf field int32 code = 1; - * @return int - */ - public function getCode() - { - return $this->code; - } - - /** - * The status code, which should be an enum value of - * [google.rpc.Code][google.rpc.Code]. - * - * Generated from protobuf field int32 code = 1; - * @param int $var - * @return $this - */ - public function setCode($var) - { - GPBUtil::checkInt32($var); - $this->code = $var; - - return $this; - } - - /** - * A developer-facing error message, which should be in English. Any - * user-facing error message should be localized and sent in the - * [google.rpc.Status.details][google.rpc.Status.details] field, or localized - * by the client. - * - * Generated from protobuf field string message = 2; - * @return string - */ - public function getMessage() - { - return $this->message; - } - - /** - * A developer-facing error message, which should be in English. Any - * user-facing error message should be localized and sent in the - * [google.rpc.Status.details][google.rpc.Status.details] field, or localized - * by the client. - * - * Generated from protobuf field string message = 2; - * @param string $var - * @return $this - */ - public function setMessage($var) - { - GPBUtil::checkString($var, True); - $this->message = $var; - - return $this; - } - - /** - * A list of messages that carry the error details. There is a common set of - * message types for APIs to use. - * - * Generated from protobuf field repeated .google.protobuf.Any details = 3; - * @return RepeatedField<\Google\Protobuf\Any> - */ - public function getDetails() - { - return $this->details; - } - - /** - * A list of messages that carry the error details. There is a common set of - * message types for APIs to use. - * - * Generated from protobuf field repeated .google.protobuf.Any details = 3; - * @param \Google\Protobuf\Any[] $var - * @return $this - */ - public function setDetails($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Any::class); - $this->details = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/CalendarPeriod.php b/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/CalendarPeriod.php deleted file mode 100644 index ab089774437f..000000000000 --- a/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/CalendarPeriod.php +++ /dev/null @@ -1,24 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xB3\x02\x0A!google/type/calendar_period.proto\x12\x0Bgoogle.type*\x7F\x0A\x0ECalendarPeriod\x12\x1F\x0A\x1BCALENDAR_PERIOD_UNSPECIFIED\x10\x00\x12\x07\x0A\x03DAY\x10\x01\x12\x08\x0A\x04WEEK\x10\x02\x12\x0D\x0A\x09FORTNIGHT\x10\x03\x12\x09\x0A\x05MONTH\x10\x04\x12\x0B\x0A\x07QUARTER\x10\x05\x12\x08\x0A\x04HALF\x10\x06\x12\x08\x0A\x04YEAR\x10\x07Bx\x0A\x0Fcom.google.typeB\x13CalendarPeriodProtoP\x01ZHgoogle.golang.org/genproto/googleapis/type/calendarperiod;calendarperiod\xA2\x02\x03GTPb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Color.php b/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Color.php deleted file mode 100644 index c7fdd8a9d745..000000000000 --- a/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Color.php +++ /dev/null @@ -1,25 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xEF\x01\x0A\x17google/type/color.proto\x12\x0Bgoogle.type\"]\x0A\x05Color\x12\x0B\x0A\x03red\x18\x01 \x01(\x02\x12\x0D\x0A\x05green\x18\x02 \x01(\x02\x12\x0C\x0A\x04blue\x18\x03 \x01(\x02\x12*\x0A\x05alpha\x18\x04 \x01(\x0B2\x1B.google.protobuf.FloatValueB`\x0A\x0Fcom.google.typeB\x0AColorProtoP\x01Z6google.golang.org/genproto/googleapis/type/color;color\xF8\x01\x01\xA2\x02\x03GTPb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Date.php b/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Date.php deleted file mode 100644 index dc7f1aa8e057..000000000000 --- a/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Date.php +++ /dev/null @@ -1,24 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xBE\x01\x0A\x16google/type/date.proto\x12\x0Bgoogle.type\"0\x0A\x04Date\x12\x0C\x0A\x04year\x18\x01 \x01(\x05\x12\x0D\x0A\x05month\x18\x02 \x01(\x05\x12\x0B\x0A\x03day\x18\x03 \x01(\x05B]\x0A\x0Fcom.google.typeB\x09DateProtoP\x01Z4google.golang.org/genproto/googleapis/type/date;date\xF8\x01\x01\xA2\x02\x03GTPb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Datetime.php b/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Datetime.php deleted file mode 100644 index 20ae4747068d..000000000000 --- a/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Datetime.php +++ /dev/null @@ -1,25 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xA8\x03\x0A\x1Agoogle/type/datetime.proto\x12\x0Bgoogle.type\"\xE0\x01\x0A\x08DateTime\x12\x0C\x0A\x04year\x18\x01 \x01(\x05\x12\x0D\x0A\x05month\x18\x02 \x01(\x05\x12\x0B\x0A\x03day\x18\x03 \x01(\x05\x12\x0D\x0A\x05hours\x18\x04 \x01(\x05\x12\x0F\x0A\x07minutes\x18\x05 \x01(\x05\x12\x0F\x0A\x07seconds\x18\x06 \x01(\x05\x12\x0D\x0A\x05nanos\x18\x07 \x01(\x05\x12/\x0A\x0Autc_offset\x18\x08 \x01(\x0B2\x19.google.protobuf.DurationH\x00\x12*\x0A\x09time_zone\x18\x09 \x01(\x0B2\x15.google.type.TimeZoneH\x00B\x0D\x0A\x0Btime_offset\"'\x0A\x08TimeZone\x12\x0A\x0A\x02id\x18\x01 \x01(\x09\x12\x0F\x0A\x07version\x18\x02 \x01(\x09Bi\x0A\x0Fcom.google.typeB\x0DDateTimeProtoP\x01ZinternalAddGeneratedFile( - "\x0A\xA4\x02\x0A\x1Bgoogle/type/dayofweek.proto\x12\x0Bgoogle.type*\x84\x01\x0A\x09DayOfWeek\x12\x1B\x0A\x17DAY_OF_WEEK_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06MONDAY\x10\x01\x12\x0B\x0A\x07TUESDAY\x10\x02\x12\x0D\x0A\x09WEDNESDAY\x10\x03\x12\x0C\x0A\x08THURSDAY\x10\x04\x12\x0A\x0A\x06FRIDAY\x10\x05\x12\x0C\x0A\x08SATURDAY\x10\x06\x12\x0A\x0A\x06SUNDAY\x10\x07Bi\x0A\x0Fcom.google.typeB\x0EDayOfWeekProtoP\x01Z>google.golang.org/genproto/googleapis/type/dayofweek;dayofweek\xA2\x02\x03GTPb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Decimal.php b/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Decimal.php deleted file mode 100644 index de218c971097..000000000000 --- a/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Decimal.php +++ /dev/null @@ -1,24 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xB2\x01\x0A\x19google/type/decimal.proto\x12\x0Bgoogle.type\"\x18\x0A\x07Decimal\x12\x0D\x0A\x05value\x18\x01 \x01(\x09Bf\x0A\x0Fcom.google.typeB\x0CDecimalProtoP\x01Z:google.golang.org/genproto/googleapis/type/decimal;decimal\xF8\x01\x01\xA2\x02\x03GTPb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Expr.php b/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Expr.php deleted file mode 100644 index 3c97d0abd6e7..000000000000 --- a/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Expr.php +++ /dev/null @@ -1,24 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xDB\x01\x0A\x16google/type/expr.proto\x12\x0Bgoogle.type\"P\x0A\x04Expr\x12\x12\x0A\x0Aexpression\x18\x01 \x01(\x09\x12\x0D\x0A\x05title\x18\x02 \x01(\x09\x12\x13\x0A\x0Bdescription\x18\x03 \x01(\x09\x12\x10\x0A\x08location\x18\x04 \x01(\x09BZ\x0A\x0Fcom.google.typeB\x09ExprProtoP\x01Z4google.golang.org/genproto/googleapis/type/expr;expr\xA2\x02\x03GTPb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Fraction.php b/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Fraction.php deleted file mode 100644 index 425f834380fd..000000000000 --- a/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Fraction.php +++ /dev/null @@ -1,24 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xCD\x01\x0A\x1Agoogle/type/fraction.proto\x12\x0Bgoogle.type\"2\x0A\x08Fraction\x12\x11\x0A\x09numerator\x18\x01 \x01(\x03\x12\x13\x0A\x0Bdenominator\x18\x02 \x01(\x03Bf\x0A\x0Fcom.google.typeB\x0DFractionProtoP\x01ZinternalAddGeneratedFile( - "\x0A\x86\x02\x0A\x1Agoogle/type/interval.proto\x12\x0Bgoogle.type\"h\x0A\x08Interval\x12.\x0A\x0Astart_time\x18\x01 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12,\x0A\x08end_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.TimestampBi\x0A\x0Fcom.google.typeB\x0DIntervalProtoP\x01ZinternalAddGeneratedFile( - "\x0A\xC3\x01\x0A\x18google/type/latlng.proto\x12\x0Bgoogle.type\"-\x0A\x06LatLng\x12\x10\x0A\x08latitude\x18\x01 \x01(\x01\x12\x11\x0A\x09longitude\x18\x02 \x01(\x01Bc\x0A\x0Fcom.google.typeB\x0BLatLngProtoP\x01Z8google.golang.org/genproto/googleapis/type/latlng;latlng\xF8\x01\x01\xA2\x02\x03GTPb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/LocalizedText.php b/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/LocalizedText.php deleted file mode 100644 index 73911d79e0d8..000000000000 --- a/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/LocalizedText.php +++ /dev/null @@ -1,24 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xE9\x01\x0A google/type/localized_text.proto\x12\x0Bgoogle.type\"4\x0A\x0DLocalizedText\x12\x0C\x0A\x04text\x18\x01 \x01(\x09\x12\x15\x0A\x0Dlanguage_code\x18\x02 \x01(\x09Bz\x0A\x0Fcom.google.typeB\x12LocalizedTextProtoP\x01ZHgoogle.golang.org/genproto/googleapis/type/localized_text;localized_text\xF8\x01\x01\xA2\x02\x03GTPb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Money.php b/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Money.php deleted file mode 100644 index 7b8b187ad95b..000000000000 --- a/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Money.php +++ /dev/null @@ -1,24 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xCE\x01\x0A\x17google/type/money.proto\x12\x0Bgoogle.type\"<\x0A\x05Money\x12\x15\x0A\x0Dcurrency_code\x18\x01 \x01(\x09\x12\x0D\x0A\x05units\x18\x02 \x01(\x03\x12\x0D\x0A\x05nanos\x18\x03 \x01(\x05B`\x0A\x0Fcom.google.typeB\x0AMoneyProtoP\x01Z6google.golang.org/genproto/googleapis/type/money;money\xF8\x01\x01\xA2\x02\x03GTPb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Month.php b/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Month.php deleted file mode 100644 index b634e51780aa..000000000000 --- a/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Month.php +++ /dev/null @@ -1,24 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xC0\x02\x0A\x17google/type/month.proto\x12\x0Bgoogle.type*\xB0\x01\x0A\x05Month\x12\x15\x0A\x11MONTH_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07JANUARY\x10\x01\x12\x0C\x0A\x08FEBRUARY\x10\x02\x12\x09\x0A\x05MARCH\x10\x03\x12\x09\x0A\x05APRIL\x10\x04\x12\x07\x0A\x03MAY\x10\x05\x12\x08\x0A\x04JUNE\x10\x06\x12\x08\x0A\x04JULY\x10\x07\x12\x0A\x0A\x06AUGUST\x10\x08\x12\x0D\x0A\x09SEPTEMBER\x10\x09\x12\x0B\x0A\x07OCTOBER\x10\x0A\x12\x0C\x0A\x08NOVEMBER\x10\x0B\x12\x0C\x0A\x08DECEMBER\x10\x0CB]\x0A\x0Fcom.google.typeB\x0AMonthProtoP\x01Z6google.golang.org/genproto/googleapis/type/month;month\xA2\x02\x03GTPb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/PhoneNumber.php b/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/PhoneNumber.php deleted file mode 100644 index 8434f51ba148..000000000000 --- a/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/PhoneNumber.php +++ /dev/null @@ -1,24 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xD9\x02\x0A\x1Egoogle/type/phone_number.proto\x12\x0Bgoogle.type\"\xAB\x01\x0A\x0BPhoneNumber\x12\x15\x0A\x0Be164_number\x18\x01 \x01(\x09H\x00\x128\x0A\x0Ashort_code\x18\x02 \x01(\x0B2\".google.type.PhoneNumber.ShortCodeH\x00\x12\x11\x0A\x09extension\x18\x03 \x01(\x09\x1A0\x0A\x09ShortCode\x12\x13\x0A\x0Bregion_code\x18\x01 \x01(\x09\x12\x0E\x0A\x06number\x18\x02 \x01(\x09B\x06\x0A\x04kindBt\x0A\x0Fcom.google.typeB\x10PhoneNumberProtoP\x01ZDgoogle.golang.org/genproto/googleapis/type/phone_number;phone_number\xF8\x01\x01\xA2\x02\x03GTPb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/PostalAddress.php b/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/PostalAddress.php deleted file mode 100644 index c914ed0a3cdf..000000000000 --- a/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/PostalAddress.php +++ /dev/null @@ -1,24 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xB1\x03\x0A google/type/postal_address.proto\x12\x0Bgoogle.type\"\xFD\x01\x0A\x0DPostalAddress\x12\x10\x0A\x08revision\x18\x01 \x01(\x05\x12\x13\x0A\x0Bregion_code\x18\x02 \x01(\x09\x12\x15\x0A\x0Dlanguage_code\x18\x03 \x01(\x09\x12\x13\x0A\x0Bpostal_code\x18\x04 \x01(\x09\x12\x14\x0A\x0Csorting_code\x18\x05 \x01(\x09\x12\x1B\x0A\x13administrative_area\x18\x06 \x01(\x09\x12\x10\x0A\x08locality\x18\x07 \x01(\x09\x12\x13\x0A\x0Bsublocality\x18\x08 \x01(\x09\x12\x15\x0A\x0Daddress_lines\x18\x09 \x03(\x09\x12\x12\x0A\x0Arecipients\x18\x0A \x03(\x09\x12\x14\x0A\x0Corganization\x18\x0B \x01(\x09Bx\x0A\x0Fcom.google.typeB\x12PostalAddressProtoP\x01ZFgoogle.golang.org/genproto/googleapis/type/postaladdress;postaladdress\xF8\x01\x01\xA2\x02\x03GTPb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Quaternion.php b/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Quaternion.php deleted file mode 100644 index 8db65b49e6f2..000000000000 --- a/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Quaternion.php +++ /dev/null @@ -1,24 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xDE\x01\x0A\x1Cgoogle/type/quaternion.proto\x12\x0Bgoogle.type\"8\x0A\x0AQuaternion\x12\x09\x0A\x01x\x18\x01 \x01(\x01\x12\x09\x0A\x01y\x18\x02 \x01(\x01\x12\x09\x0A\x01z\x18\x03 \x01(\x01\x12\x09\x0A\x01w\x18\x04 \x01(\x01Bo\x0A\x0Fcom.google.typeB\x0FQuaternionProtoP\x01Z@google.golang.org/genproto/googleapis/type/quaternion;quaternion\xF8\x01\x01\xA2\x02\x03GTPb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Timeofday.php b/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Timeofday.php deleted file mode 100644 index 8e2a973fdb1d..000000000000 --- a/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Timeofday.php +++ /dev/null @@ -1,24 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xED\x01\x0A\x1Bgoogle/type/timeofday.proto\x12\x0Bgoogle.type\"K\x0A\x09TimeOfDay\x12\x0D\x0A\x05hours\x18\x01 \x01(\x05\x12\x0F\x0A\x07minutes\x18\x02 \x01(\x05\x12\x0F\x0A\x07seconds\x18\x03 \x01(\x05\x12\x0D\x0A\x05nanos\x18\x04 \x01(\x05Bl\x0A\x0Fcom.google.typeB\x0ETimeOfDayProtoP\x01Z>google.golang.org/genproto/googleapis/type/timeofday;timeofday\xF8\x01\x01\xA2\x02\x03GTPb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/CalendarPeriod.php b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/CalendarPeriod.php deleted file mode 100644 index e4807c07959b..000000000000 --- a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/CalendarPeriod.php +++ /dev/null @@ -1,102 +0,0 @@ -google.type.CalendarPeriod - */ -class CalendarPeriod -{ - /** - * Undefined period, raises an error. - * - * Generated from protobuf enum CALENDAR_PERIOD_UNSPECIFIED = 0; - */ - const CALENDAR_PERIOD_UNSPECIFIED = 0; - /** - * A day. - * - * Generated from protobuf enum DAY = 1; - */ - const DAY = 1; - /** - * A week. Weeks begin on Monday, following - * [ISO 8601](https://en.wikipedia.org/wiki/ISO_week_date). - * - * Generated from protobuf enum WEEK = 2; - */ - const WEEK = 2; - /** - * A fortnight. The first calendar fortnight of the year begins at the start - * of week 1 according to - * [ISO 8601](https://en.wikipedia.org/wiki/ISO_week_date). - * - * Generated from protobuf enum FORTNIGHT = 3; - */ - const FORTNIGHT = 3; - /** - * A month. - * - * Generated from protobuf enum MONTH = 4; - */ - const MONTH = 4; - /** - * A quarter. Quarters start on dates 1-Jan, 1-Apr, 1-Jul, and 1-Oct of each - * year. - * - * Generated from protobuf enum QUARTER = 5; - */ - const QUARTER = 5; - /** - * A half-year. Half-years start on dates 1-Jan and 1-Jul. - * - * Generated from protobuf enum HALF = 6; - */ - const HALF = 6; - /** - * A year. - * - * Generated from protobuf enum YEAR = 7; - */ - const YEAR = 7; - - private static $valueToName = [ - self::CALENDAR_PERIOD_UNSPECIFIED => 'CALENDAR_PERIOD_UNSPECIFIED', - self::DAY => 'DAY', - self::WEEK => 'WEEK', - self::FORTNIGHT => 'FORTNIGHT', - self::MONTH => 'MONTH', - self::QUARTER => 'QUARTER', - self::HALF => 'HALF', - self::YEAR => 'YEAR', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Color.php b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Color.php deleted file mode 100644 index 68cd805dbc3b..000000000000 --- a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Color.php +++ /dev/null @@ -1,360 +0,0 @@ -google.type.Color - */ -class Color extends \Google\Protobuf\Internal\Message -{ - /** - * The amount of red in the color as a value in the interval [0, 1]. - * - * Generated from protobuf field float red = 1; - */ - protected $red = 0.0; - /** - * The amount of green in the color as a value in the interval [0, 1]. - * - * Generated from protobuf field float green = 2; - */ - protected $green = 0.0; - /** - * The amount of blue in the color as a value in the interval [0, 1]. - * - * Generated from protobuf field float blue = 3; - */ - protected $blue = 0.0; - /** - * The fraction of this color that should be applied to the pixel. That is, - * the final pixel color is defined by the equation: - * `pixel color = alpha * (this color) + (1.0 - alpha) * (background color)` - * This means that a value of 1.0 corresponds to a solid color, whereas - * a value of 0.0 corresponds to a completely transparent color. This - * uses a wrapper message rather than a simple float scalar so that it is - * possible to distinguish between a default value and the value being unset. - * If omitted, this color object is rendered as a solid color - * (as if the alpha value had been explicitly given a value of 1.0). - * - * Generated from protobuf field .google.protobuf.FloatValue alpha = 4; - */ - protected $alpha = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type float $red - * The amount of red in the color as a value in the interval [0, 1]. - * @type float $green - * The amount of green in the color as a value in the interval [0, 1]. - * @type float $blue - * The amount of blue in the color as a value in the interval [0, 1]. - * @type \Google\Protobuf\FloatValue $alpha - * The fraction of this color that should be applied to the pixel. That is, - * the final pixel color is defined by the equation: - * `pixel color = alpha * (this color) + (1.0 - alpha) * (background color)` - * This means that a value of 1.0 corresponds to a solid color, whereas - * a value of 0.0 corresponds to a completely transparent color. This - * uses a wrapper message rather than a simple float scalar so that it is - * possible to distinguish between a default value and the value being unset. - * If omitted, this color object is rendered as a solid color - * (as if the alpha value had been explicitly given a value of 1.0). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Type\Color::initOnce(); - parent::__construct($data); - } - - /** - * The amount of red in the color as a value in the interval [0, 1]. - * - * Generated from protobuf field float red = 1; - * @return float - */ - public function getRed() - { - return $this->red; - } - - /** - * The amount of red in the color as a value in the interval [0, 1]. - * - * Generated from protobuf field float red = 1; - * @param float $var - * @return $this - */ - public function setRed($var) - { - GPBUtil::checkFloat($var); - $this->red = $var; - - return $this; - } - - /** - * The amount of green in the color as a value in the interval [0, 1]. - * - * Generated from protobuf field float green = 2; - * @return float - */ - public function getGreen() - { - return $this->green; - } - - /** - * The amount of green in the color as a value in the interval [0, 1]. - * - * Generated from protobuf field float green = 2; - * @param float $var - * @return $this - */ - public function setGreen($var) - { - GPBUtil::checkFloat($var); - $this->green = $var; - - return $this; - } - - /** - * The amount of blue in the color as a value in the interval [0, 1]. - * - * Generated from protobuf field float blue = 3; - * @return float - */ - public function getBlue() - { - return $this->blue; - } - - /** - * The amount of blue in the color as a value in the interval [0, 1]. - * - * Generated from protobuf field float blue = 3; - * @param float $var - * @return $this - */ - public function setBlue($var) - { - GPBUtil::checkFloat($var); - $this->blue = $var; - - return $this; - } - - /** - * The fraction of this color that should be applied to the pixel. That is, - * the final pixel color is defined by the equation: - * `pixel color = alpha * (this color) + (1.0 - alpha) * (background color)` - * This means that a value of 1.0 corresponds to a solid color, whereas - * a value of 0.0 corresponds to a completely transparent color. This - * uses a wrapper message rather than a simple float scalar so that it is - * possible to distinguish between a default value and the value being unset. - * If omitted, this color object is rendered as a solid color - * (as if the alpha value had been explicitly given a value of 1.0). - * - * Generated from protobuf field .google.protobuf.FloatValue alpha = 4; - * @return \Google\Protobuf\FloatValue|null - */ - public function getAlpha() - { - return $this->alpha; - } - - public function hasAlpha() - { - return isset($this->alpha); - } - - public function clearAlpha() - { - unset($this->alpha); - } - - /** - * Returns the unboxed value from getAlpha() - - * The fraction of this color that should be applied to the pixel. That is, - * the final pixel color is defined by the equation: - * `pixel color = alpha * (this color) + (1.0 - alpha) * (background color)` - * This means that a value of 1.0 corresponds to a solid color, whereas - * a value of 0.0 corresponds to a completely transparent color. This - * uses a wrapper message rather than a simple float scalar so that it is - * possible to distinguish between a default value and the value being unset. - * If omitted, this color object is rendered as a solid color - * (as if the alpha value had been explicitly given a value of 1.0). - * - * Generated from protobuf field .google.protobuf.FloatValue alpha = 4; - * @return float|null - */ - public function getAlphaUnwrapped() - { - return $this->readWrapperValue("alpha"); - } - - /** - * The fraction of this color that should be applied to the pixel. That is, - * the final pixel color is defined by the equation: - * `pixel color = alpha * (this color) + (1.0 - alpha) * (background color)` - * This means that a value of 1.0 corresponds to a solid color, whereas - * a value of 0.0 corresponds to a completely transparent color. This - * uses a wrapper message rather than a simple float scalar so that it is - * possible to distinguish between a default value and the value being unset. - * If omitted, this color object is rendered as a solid color - * (as if the alpha value had been explicitly given a value of 1.0). - * - * Generated from protobuf field .google.protobuf.FloatValue alpha = 4; - * @param \Google\Protobuf\FloatValue $var - * @return $this - */ - public function setAlpha($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FloatValue::class); - $this->alpha = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\FloatValue object. - - * The fraction of this color that should be applied to the pixel. That is, - * the final pixel color is defined by the equation: - * `pixel color = alpha * (this color) + (1.0 - alpha) * (background color)` - * This means that a value of 1.0 corresponds to a solid color, whereas - * a value of 0.0 corresponds to a completely transparent color. This - * uses a wrapper message rather than a simple float scalar so that it is - * possible to distinguish between a default value and the value being unset. - * If omitted, this color object is rendered as a solid color - * (as if the alpha value had been explicitly given a value of 1.0). - * - * Generated from protobuf field .google.protobuf.FloatValue alpha = 4; - * @param float|null $var - * @return $this - */ - public function setAlphaUnwrapped($var) - { - $this->writeWrapperValue("alpha", $var); - return $this;} - -} - diff --git a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Date.php b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Date.php deleted file mode 100644 index a2fb0c1d337b..000000000000 --- a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Date.php +++ /dev/null @@ -1,161 +0,0 @@ -google.type.Date - */ -class Date extends \Google\Protobuf\Internal\Message -{ - /** - * Year of the date. Must be from 1 to 9999, or 0 to specify a date without - * a year. - * - * Generated from protobuf field int32 year = 1; - */ - protected $year = 0; - /** - * Month of a year. Must be from 1 to 12, or 0 to specify a year without a - * month and day. - * - * Generated from protobuf field int32 month = 2; - */ - protected $month = 0; - /** - * Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 - * to specify a year by itself or a year and month where the day isn't - * significant. - * - * Generated from protobuf field int32 day = 3; - */ - protected $day = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $year - * Year of the date. Must be from 1 to 9999, or 0 to specify a date without - * a year. - * @type int $month - * Month of a year. Must be from 1 to 12, or 0 to specify a year without a - * month and day. - * @type int $day - * Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 - * to specify a year by itself or a year and month where the day isn't - * significant. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Type\Date::initOnce(); - parent::__construct($data); - } - - /** - * Year of the date. Must be from 1 to 9999, or 0 to specify a date without - * a year. - * - * Generated from protobuf field int32 year = 1; - * @return int - */ - public function getYear() - { - return $this->year; - } - - /** - * Year of the date. Must be from 1 to 9999, or 0 to specify a date without - * a year. - * - * Generated from protobuf field int32 year = 1; - * @param int $var - * @return $this - */ - public function setYear($var) - { - GPBUtil::checkInt32($var); - $this->year = $var; - - return $this; - } - - /** - * Month of a year. Must be from 1 to 12, or 0 to specify a year without a - * month and day. - * - * Generated from protobuf field int32 month = 2; - * @return int - */ - public function getMonth() - { - return $this->month; - } - - /** - * Month of a year. Must be from 1 to 12, or 0 to specify a year without a - * month and day. - * - * Generated from protobuf field int32 month = 2; - * @param int $var - * @return $this - */ - public function setMonth($var) - { - GPBUtil::checkInt32($var); - $this->month = $var; - - return $this; - } - - /** - * Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 - * to specify a year by itself or a year and month where the day isn't - * significant. - * - * Generated from protobuf field int32 day = 3; - * @return int - */ - public function getDay() - { - return $this->day; - } - - /** - * Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 - * to specify a year by itself or a year and month where the day isn't - * significant. - * - * Generated from protobuf field int32 day = 3; - * @param int $var - * @return $this - */ - public function setDay($var) - { - GPBUtil::checkInt32($var); - $this->day = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/DateTime.php b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/DateTime.php deleted file mode 100644 index 26eb06f4e743..000000000000 --- a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/DateTime.php +++ /dev/null @@ -1,393 +0,0 @@ -google.type.DateTime - */ -class DateTime extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Year of date. Must be from 1 to 9999, or 0 if specifying a - * datetime without a year. - * - * Generated from protobuf field int32 year = 1; - */ - protected $year = 0; - /** - * Required. Month of year. Must be from 1 to 12. - * - * Generated from protobuf field int32 month = 2; - */ - protected $month = 0; - /** - * Required. Day of month. Must be from 1 to 31 and valid for the year and - * month. - * - * Generated from protobuf field int32 day = 3; - */ - protected $day = 0; - /** - * Required. Hours of day in 24 hour format. Should be from 0 to 23. An API - * may choose to allow the value "24:00:00" for scenarios like business - * closing time. - * - * Generated from protobuf field int32 hours = 4; - */ - protected $hours = 0; - /** - * Required. Minutes of hour of day. Must be from 0 to 59. - * - * Generated from protobuf field int32 minutes = 5; - */ - protected $minutes = 0; - /** - * Required. Seconds of minutes of the time. Must normally be from 0 to 59. An - * API may allow the value 60 if it allows leap-seconds. - * - * Generated from protobuf field int32 seconds = 6; - */ - protected $seconds = 0; - /** - * Required. Fractions of seconds in nanoseconds. Must be from 0 to - * 999,999,999. - * - * Generated from protobuf field int32 nanos = 7; - */ - protected $nanos = 0; - protected $time_offset; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $year - * Optional. Year of date. Must be from 1 to 9999, or 0 if specifying a - * datetime without a year. - * @type int $month - * Required. Month of year. Must be from 1 to 12. - * @type int $day - * Required. Day of month. Must be from 1 to 31 and valid for the year and - * month. - * @type int $hours - * Required. Hours of day in 24 hour format. Should be from 0 to 23. An API - * may choose to allow the value "24:00:00" for scenarios like business - * closing time. - * @type int $minutes - * Required. Minutes of hour of day. Must be from 0 to 59. - * @type int $seconds - * Required. Seconds of minutes of the time. Must normally be from 0 to 59. An - * API may allow the value 60 if it allows leap-seconds. - * @type int $nanos - * Required. Fractions of seconds in nanoseconds. Must be from 0 to - * 999,999,999. - * @type \Google\Protobuf\Duration $utc_offset - * UTC offset. Must be whole seconds, between -18 hours and +18 hours. - * For example, a UTC offset of -4:00 would be represented as - * { seconds: -14400 }. - * @type \Google\Type\TimeZone $time_zone - * Time zone. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Type\Datetime::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Year of date. Must be from 1 to 9999, or 0 if specifying a - * datetime without a year. - * - * Generated from protobuf field int32 year = 1; - * @return int - */ - public function getYear() - { - return $this->year; - } - - /** - * Optional. Year of date. Must be from 1 to 9999, or 0 if specifying a - * datetime without a year. - * - * Generated from protobuf field int32 year = 1; - * @param int $var - * @return $this - */ - public function setYear($var) - { - GPBUtil::checkInt32($var); - $this->year = $var; - - return $this; - } - - /** - * Required. Month of year. Must be from 1 to 12. - * - * Generated from protobuf field int32 month = 2; - * @return int - */ - public function getMonth() - { - return $this->month; - } - - /** - * Required. Month of year. Must be from 1 to 12. - * - * Generated from protobuf field int32 month = 2; - * @param int $var - * @return $this - */ - public function setMonth($var) - { - GPBUtil::checkInt32($var); - $this->month = $var; - - return $this; - } - - /** - * Required. Day of month. Must be from 1 to 31 and valid for the year and - * month. - * - * Generated from protobuf field int32 day = 3; - * @return int - */ - public function getDay() - { - return $this->day; - } - - /** - * Required. Day of month. Must be from 1 to 31 and valid for the year and - * month. - * - * Generated from protobuf field int32 day = 3; - * @param int $var - * @return $this - */ - public function setDay($var) - { - GPBUtil::checkInt32($var); - $this->day = $var; - - return $this; - } - - /** - * Required. Hours of day in 24 hour format. Should be from 0 to 23. An API - * may choose to allow the value "24:00:00" for scenarios like business - * closing time. - * - * Generated from protobuf field int32 hours = 4; - * @return int - */ - public function getHours() - { - return $this->hours; - } - - /** - * Required. Hours of day in 24 hour format. Should be from 0 to 23. An API - * may choose to allow the value "24:00:00" for scenarios like business - * closing time. - * - * Generated from protobuf field int32 hours = 4; - * @param int $var - * @return $this - */ - public function setHours($var) - { - GPBUtil::checkInt32($var); - $this->hours = $var; - - return $this; - } - - /** - * Required. Minutes of hour of day. Must be from 0 to 59. - * - * Generated from protobuf field int32 minutes = 5; - * @return int - */ - public function getMinutes() - { - return $this->minutes; - } - - /** - * Required. Minutes of hour of day. Must be from 0 to 59. - * - * Generated from protobuf field int32 minutes = 5; - * @param int $var - * @return $this - */ - public function setMinutes($var) - { - GPBUtil::checkInt32($var); - $this->minutes = $var; - - return $this; - } - - /** - * Required. Seconds of minutes of the time. Must normally be from 0 to 59. An - * API may allow the value 60 if it allows leap-seconds. - * - * Generated from protobuf field int32 seconds = 6; - * @return int - */ - public function getSeconds() - { - return $this->seconds; - } - - /** - * Required. Seconds of minutes of the time. Must normally be from 0 to 59. An - * API may allow the value 60 if it allows leap-seconds. - * - * Generated from protobuf field int32 seconds = 6; - * @param int $var - * @return $this - */ - public function setSeconds($var) - { - GPBUtil::checkInt32($var); - $this->seconds = $var; - - return $this; - } - - /** - * Required. Fractions of seconds in nanoseconds. Must be from 0 to - * 999,999,999. - * - * Generated from protobuf field int32 nanos = 7; - * @return int - */ - public function getNanos() - { - return $this->nanos; - } - - /** - * Required. Fractions of seconds in nanoseconds. Must be from 0 to - * 999,999,999. - * - * Generated from protobuf field int32 nanos = 7; - * @param int $var - * @return $this - */ - public function setNanos($var) - { - GPBUtil::checkInt32($var); - $this->nanos = $var; - - return $this; - } - - /** - * UTC offset. Must be whole seconds, between -18 hours and +18 hours. - * For example, a UTC offset of -4:00 would be represented as - * { seconds: -14400 }. - * - * Generated from protobuf field .google.protobuf.Duration utc_offset = 8; - * @return \Google\Protobuf\Duration|null - */ - public function getUtcOffset() - { - return $this->readOneof(8); - } - - public function hasUtcOffset() - { - return $this->hasOneof(8); - } - - /** - * UTC offset. Must be whole seconds, between -18 hours and +18 hours. - * For example, a UTC offset of -4:00 would be represented as - * { seconds: -14400 }. - * - * Generated from protobuf field .google.protobuf.Duration utc_offset = 8; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setUtcOffset($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->writeOneof(8, $var); - - return $this; - } - - /** - * Time zone. - * - * Generated from protobuf field .google.type.TimeZone time_zone = 9; - * @return \Google\Type\TimeZone|null - */ - public function getTimeZone() - { - return $this->readOneof(9); - } - - public function hasTimeZone() - { - return $this->hasOneof(9); - } - - /** - * Time zone. - * - * Generated from protobuf field .google.type.TimeZone time_zone = 9; - * @param \Google\Type\TimeZone $var - * @return $this - */ - public function setTimeZone($var) - { - GPBUtil::checkMessage($var, \Google\Type\TimeZone::class); - $this->writeOneof(9, $var); - - return $this; - } - - /** - * @return string - */ - public function getTimeOffset() - { - return $this->whichOneof("time_offset"); - } - -} - diff --git a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/DayOfWeek.php b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/DayOfWeek.php deleted file mode 100644 index 56219ffe10be..000000000000 --- a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/DayOfWeek.php +++ /dev/null @@ -1,96 +0,0 @@ -google.type.DayOfWeek - */ -class DayOfWeek -{ - /** - * The day of the week is unspecified. - * - * Generated from protobuf enum DAY_OF_WEEK_UNSPECIFIED = 0; - */ - const DAY_OF_WEEK_UNSPECIFIED = 0; - /** - * Monday - * - * Generated from protobuf enum MONDAY = 1; - */ - const MONDAY = 1; - /** - * Tuesday - * - * Generated from protobuf enum TUESDAY = 2; - */ - const TUESDAY = 2; - /** - * Wednesday - * - * Generated from protobuf enum WEDNESDAY = 3; - */ - const WEDNESDAY = 3; - /** - * Thursday - * - * Generated from protobuf enum THURSDAY = 4; - */ - const THURSDAY = 4; - /** - * Friday - * - * Generated from protobuf enum FRIDAY = 5; - */ - const FRIDAY = 5; - /** - * Saturday - * - * Generated from protobuf enum SATURDAY = 6; - */ - const SATURDAY = 6; - /** - * Sunday - * - * Generated from protobuf enum SUNDAY = 7; - */ - const SUNDAY = 7; - - private static $valueToName = [ - self::DAY_OF_WEEK_UNSPECIFIED => 'DAY_OF_WEEK_UNSPECIFIED', - self::MONDAY => 'MONDAY', - self::TUESDAY => 'TUESDAY', - self::WEDNESDAY => 'WEDNESDAY', - self::THURSDAY => 'THURSDAY', - self::FRIDAY => 'FRIDAY', - self::SATURDAY => 'SATURDAY', - self::SUNDAY => 'SUNDAY', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Decimal.php b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Decimal.php deleted file mode 100644 index eb5c1780de8a..000000000000 --- a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Decimal.php +++ /dev/null @@ -1,244 +0,0 @@ -google.type.Decimal - */ -class Decimal extends \Google\Protobuf\Internal\Message -{ - /** - * The decimal value, as a string. - * The string representation consists of an optional sign, `+` (`U+002B`) - * or `-` (`U+002D`), followed by a sequence of zero or more decimal digits - * ("the integer"), optionally followed by a fraction, optionally followed - * by an exponent. - * The fraction consists of a decimal point followed by zero or more decimal - * digits. The string must contain at least one digit in either the integer - * or the fraction. The number formed by the sign, the integer and the - * fraction is referred to as the significand. - * The exponent consists of the character `e` (`U+0065`) or `E` (`U+0045`) - * followed by one or more decimal digits. - * Services **should** normalize decimal values before storing them by: - * - Removing an explicitly-provided `+` sign (`+2.5` -> `2.5`). - * - Replacing a zero-length integer value with `0` (`.5` -> `0.5`). - * - Coercing the exponent character to lower-case (`2.5E8` -> `2.5e8`). - * - Removing an explicitly-provided zero exponent (`2.5e0` -> `2.5`). - * Services **may** perform additional normalization based on its own needs - * and the internal decimal implementation selected, such as shifting the - * decimal point and exponent value together (example: `2.5e-1` <-> `0.25`). - * Additionally, services **may** preserve trailing zeroes in the fraction - * to indicate increased precision, but are not required to do so. - * Note that only the `.` character is supported to divide the integer - * and the fraction; `,` **should not** be supported regardless of locale. - * Additionally, thousand separators **should not** be supported. If a - * service does support them, values **must** be normalized. - * The ENBF grammar is: - * DecimalString = - * [Sign] Significand [Exponent]; - * Sign = '+' | '-'; - * Significand = - * Digits ['.'] [Digits] | [Digits] '.' Digits; - * Exponent = ('e' | 'E') [Sign] Digits; - * Digits = { '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' }; - * Services **should** clearly document the range of supported values, the - * maximum supported precision (total number of digits), and, if applicable, - * the scale (number of digits after the decimal point), as well as how it - * behaves when receiving out-of-bounds values. - * Services **may** choose to accept values passed as input even when the - * value has a higher precision or scale than the service supports, and - * **should** round the value to fit the supported scale. Alternatively, the - * service **may** error with `400 Bad Request` (`INVALID_ARGUMENT` in gRPC) - * if precision would be lost. - * Services **should** error with `400 Bad Request` (`INVALID_ARGUMENT` in - * gRPC) if the service receives a value outside of the supported range. - * - * Generated from protobuf field string value = 1; - */ - protected $value = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $value - * The decimal value, as a string. - * The string representation consists of an optional sign, `+` (`U+002B`) - * or `-` (`U+002D`), followed by a sequence of zero or more decimal digits - * ("the integer"), optionally followed by a fraction, optionally followed - * by an exponent. - * The fraction consists of a decimal point followed by zero or more decimal - * digits. The string must contain at least one digit in either the integer - * or the fraction. The number formed by the sign, the integer and the - * fraction is referred to as the significand. - * The exponent consists of the character `e` (`U+0065`) or `E` (`U+0045`) - * followed by one or more decimal digits. - * Services **should** normalize decimal values before storing them by: - * - Removing an explicitly-provided `+` sign (`+2.5` -> `2.5`). - * - Replacing a zero-length integer value with `0` (`.5` -> `0.5`). - * - Coercing the exponent character to lower-case (`2.5E8` -> `2.5e8`). - * - Removing an explicitly-provided zero exponent (`2.5e0` -> `2.5`). - * Services **may** perform additional normalization based on its own needs - * and the internal decimal implementation selected, such as shifting the - * decimal point and exponent value together (example: `2.5e-1` <-> `0.25`). - * Additionally, services **may** preserve trailing zeroes in the fraction - * to indicate increased precision, but are not required to do so. - * Note that only the `.` character is supported to divide the integer - * and the fraction; `,` **should not** be supported regardless of locale. - * Additionally, thousand separators **should not** be supported. If a - * service does support them, values **must** be normalized. - * The ENBF grammar is: - * DecimalString = - * [Sign] Significand [Exponent]; - * Sign = '+' | '-'; - * Significand = - * Digits ['.'] [Digits] | [Digits] '.' Digits; - * Exponent = ('e' | 'E') [Sign] Digits; - * Digits = { '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' }; - * Services **should** clearly document the range of supported values, the - * maximum supported precision (total number of digits), and, if applicable, - * the scale (number of digits after the decimal point), as well as how it - * behaves when receiving out-of-bounds values. - * Services **may** choose to accept values passed as input even when the - * value has a higher precision or scale than the service supports, and - * **should** round the value to fit the supported scale. Alternatively, the - * service **may** error with `400 Bad Request` (`INVALID_ARGUMENT` in gRPC) - * if precision would be lost. - * Services **should** error with `400 Bad Request` (`INVALID_ARGUMENT` in - * gRPC) if the service receives a value outside of the supported range. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Type\Decimal::initOnce(); - parent::__construct($data); - } - - /** - * The decimal value, as a string. - * The string representation consists of an optional sign, `+` (`U+002B`) - * or `-` (`U+002D`), followed by a sequence of zero or more decimal digits - * ("the integer"), optionally followed by a fraction, optionally followed - * by an exponent. - * The fraction consists of a decimal point followed by zero or more decimal - * digits. The string must contain at least one digit in either the integer - * or the fraction. The number formed by the sign, the integer and the - * fraction is referred to as the significand. - * The exponent consists of the character `e` (`U+0065`) or `E` (`U+0045`) - * followed by one or more decimal digits. - * Services **should** normalize decimal values before storing them by: - * - Removing an explicitly-provided `+` sign (`+2.5` -> `2.5`). - * - Replacing a zero-length integer value with `0` (`.5` -> `0.5`). - * - Coercing the exponent character to lower-case (`2.5E8` -> `2.5e8`). - * - Removing an explicitly-provided zero exponent (`2.5e0` -> `2.5`). - * Services **may** perform additional normalization based on its own needs - * and the internal decimal implementation selected, such as shifting the - * decimal point and exponent value together (example: `2.5e-1` <-> `0.25`). - * Additionally, services **may** preserve trailing zeroes in the fraction - * to indicate increased precision, but are not required to do so. - * Note that only the `.` character is supported to divide the integer - * and the fraction; `,` **should not** be supported regardless of locale. - * Additionally, thousand separators **should not** be supported. If a - * service does support them, values **must** be normalized. - * The ENBF grammar is: - * DecimalString = - * [Sign] Significand [Exponent]; - * Sign = '+' | '-'; - * Significand = - * Digits ['.'] [Digits] | [Digits] '.' Digits; - * Exponent = ('e' | 'E') [Sign] Digits; - * Digits = { '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' }; - * Services **should** clearly document the range of supported values, the - * maximum supported precision (total number of digits), and, if applicable, - * the scale (number of digits after the decimal point), as well as how it - * behaves when receiving out-of-bounds values. - * Services **may** choose to accept values passed as input even when the - * value has a higher precision or scale than the service supports, and - * **should** round the value to fit the supported scale. Alternatively, the - * service **may** error with `400 Bad Request` (`INVALID_ARGUMENT` in gRPC) - * if precision would be lost. - * Services **should** error with `400 Bad Request` (`INVALID_ARGUMENT` in - * gRPC) if the service receives a value outside of the supported range. - * - * Generated from protobuf field string value = 1; - * @return string - */ - public function getValue() - { - return $this->value; - } - - /** - * The decimal value, as a string. - * The string representation consists of an optional sign, `+` (`U+002B`) - * or `-` (`U+002D`), followed by a sequence of zero or more decimal digits - * ("the integer"), optionally followed by a fraction, optionally followed - * by an exponent. - * The fraction consists of a decimal point followed by zero or more decimal - * digits. The string must contain at least one digit in either the integer - * or the fraction. The number formed by the sign, the integer and the - * fraction is referred to as the significand. - * The exponent consists of the character `e` (`U+0065`) or `E` (`U+0045`) - * followed by one or more decimal digits. - * Services **should** normalize decimal values before storing them by: - * - Removing an explicitly-provided `+` sign (`+2.5` -> `2.5`). - * - Replacing a zero-length integer value with `0` (`.5` -> `0.5`). - * - Coercing the exponent character to lower-case (`2.5E8` -> `2.5e8`). - * - Removing an explicitly-provided zero exponent (`2.5e0` -> `2.5`). - * Services **may** perform additional normalization based on its own needs - * and the internal decimal implementation selected, such as shifting the - * decimal point and exponent value together (example: `2.5e-1` <-> `0.25`). - * Additionally, services **may** preserve trailing zeroes in the fraction - * to indicate increased precision, but are not required to do so. - * Note that only the `.` character is supported to divide the integer - * and the fraction; `,` **should not** be supported regardless of locale. - * Additionally, thousand separators **should not** be supported. If a - * service does support them, values **must** be normalized. - * The ENBF grammar is: - * DecimalString = - * [Sign] Significand [Exponent]; - * Sign = '+' | '-'; - * Significand = - * Digits ['.'] [Digits] | [Digits] '.' Digits; - * Exponent = ('e' | 'E') [Sign] Digits; - * Digits = { '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' }; - * Services **should** clearly document the range of supported values, the - * maximum supported precision (total number of digits), and, if applicable, - * the scale (number of digits after the decimal point), as well as how it - * behaves when receiving out-of-bounds values. - * Services **may** choose to accept values passed as input even when the - * value has a higher precision or scale than the service supports, and - * **should** round the value to fit the supported scale. Alternatively, the - * service **may** error with `400 Bad Request` (`INVALID_ARGUMENT` in gRPC) - * if precision would be lost. - * Services **should** error with `400 Bad Request` (`INVALID_ARGUMENT` in - * gRPC) if the service receives a value outside of the supported range. - * - * Generated from protobuf field string value = 1; - * @param string $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkString($var, True); - $this->value = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Expr.php b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Expr.php deleted file mode 100644 index 036c5cf70d7d..000000000000 --- a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Expr.php +++ /dev/null @@ -1,210 +0,0 @@ -google.type.Expr - */ -class Expr extends \Google\Protobuf\Internal\Message -{ - /** - * Textual representation of an expression in Common Expression Language - * syntax. - * - * Generated from protobuf field string expression = 1; - */ - protected $expression = ''; - /** - * Optional. Title for the expression, i.e. a short string describing - * its purpose. This can be used e.g. in UIs which allow to enter the - * expression. - * - * Generated from protobuf field string title = 2; - */ - protected $title = ''; - /** - * Optional. Description of the expression. This is a longer text which - * describes the expression, e.g. when hovered over it in a UI. - * - * Generated from protobuf field string description = 3; - */ - protected $description = ''; - /** - * Optional. String indicating the location of the expression for error - * reporting, e.g. a file name and a position in the file. - * - * Generated from protobuf field string location = 4; - */ - protected $location = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $expression - * Textual representation of an expression in Common Expression Language - * syntax. - * @type string $title - * Optional. Title for the expression, i.e. a short string describing - * its purpose. This can be used e.g. in UIs which allow to enter the - * expression. - * @type string $description - * Optional. Description of the expression. This is a longer text which - * describes the expression, e.g. when hovered over it in a UI. - * @type string $location - * Optional. String indicating the location of the expression for error - * reporting, e.g. a file name and a position in the file. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Type\Expr::initOnce(); - parent::__construct($data); - } - - /** - * Textual representation of an expression in Common Expression Language - * syntax. - * - * Generated from protobuf field string expression = 1; - * @return string - */ - public function getExpression() - { - return $this->expression; - } - - /** - * Textual representation of an expression in Common Expression Language - * syntax. - * - * Generated from protobuf field string expression = 1; - * @param string $var - * @return $this - */ - public function setExpression($var) - { - GPBUtil::checkString($var, True); - $this->expression = $var; - - return $this; - } - - /** - * Optional. Title for the expression, i.e. a short string describing - * its purpose. This can be used e.g. in UIs which allow to enter the - * expression. - * - * Generated from protobuf field string title = 2; - * @return string - */ - public function getTitle() - { - return $this->title; - } - - /** - * Optional. Title for the expression, i.e. a short string describing - * its purpose. This can be used e.g. in UIs which allow to enter the - * expression. - * - * Generated from protobuf field string title = 2; - * @param string $var - * @return $this - */ - public function setTitle($var) - { - GPBUtil::checkString($var, True); - $this->title = $var; - - return $this; - } - - /** - * Optional. Description of the expression. This is a longer text which - * describes the expression, e.g. when hovered over it in a UI. - * - * Generated from protobuf field string description = 3; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. Description of the expression. This is a longer text which - * describes the expression, e.g. when hovered over it in a UI. - * - * Generated from protobuf field string description = 3; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Optional. String indicating the location of the expression for error - * reporting, e.g. a file name and a position in the file. - * - * Generated from protobuf field string location = 4; - * @return string - */ - public function getLocation() - { - return $this->location; - } - - /** - * Optional. String indicating the location of the expression for error - * reporting, e.g. a file name and a position in the file. - * - * Generated from protobuf field string location = 4; - * @param string $var - * @return $this - */ - public function setLocation($var) - { - GPBUtil::checkString($var, True); - $this->location = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Fraction.php b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Fraction.php deleted file mode 100644 index 02557cab0470..000000000000 --- a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Fraction.php +++ /dev/null @@ -1,105 +0,0 @@ -google.type.Fraction - */ -class Fraction extends \Google\Protobuf\Internal\Message -{ - /** - * The numerator in the fraction, e.g. 2 in 2/3. - * - * Generated from protobuf field int64 numerator = 1; - */ - protected $numerator = 0; - /** - * The value by which the numerator is divided, e.g. 3 in 2/3. Must be - * positive. - * - * Generated from protobuf field int64 denominator = 2; - */ - protected $denominator = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $numerator - * The numerator in the fraction, e.g. 2 in 2/3. - * @type int|string $denominator - * The value by which the numerator is divided, e.g. 3 in 2/3. Must be - * positive. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Type\Fraction::initOnce(); - parent::__construct($data); - } - - /** - * The numerator in the fraction, e.g. 2 in 2/3. - * - * Generated from protobuf field int64 numerator = 1; - * @return int|string - */ - public function getNumerator() - { - return $this->numerator; - } - - /** - * The numerator in the fraction, e.g. 2 in 2/3. - * - * Generated from protobuf field int64 numerator = 1; - * @param int|string $var - * @return $this - */ - public function setNumerator($var) - { - GPBUtil::checkInt64($var); - $this->numerator = $var; - - return $this; - } - - /** - * The value by which the numerator is divided, e.g. 3 in 2/3. Must be - * positive. - * - * Generated from protobuf field int64 denominator = 2; - * @return int|string - */ - public function getDenominator() - { - return $this->denominator; - } - - /** - * The value by which the numerator is divided, e.g. 3 in 2/3. Must be - * positive. - * - * Generated from protobuf field int64 denominator = 2; - * @param int|string $var - * @return $this - */ - public function setDenominator($var) - { - GPBUtil::checkInt64($var); - $this->denominator = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Interval.php b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Interval.php deleted file mode 100644 index e6cfa8578c98..000000000000 --- a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Interval.php +++ /dev/null @@ -1,141 +0,0 @@ -google.type.Interval - */ -class Interval extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Inclusive start of the interval. - * If specified, a Timestamp matching this interval will have to be the same - * or after the start. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 1; - */ - protected $start_time = null; - /** - * Optional. Exclusive end of the interval. - * If specified, a Timestamp matching this interval will have to be before the - * end. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2; - */ - protected $end_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $start_time - * Optional. Inclusive start of the interval. - * If specified, a Timestamp matching this interval will have to be the same - * or after the start. - * @type \Google\Protobuf\Timestamp $end_time - * Optional. Exclusive end of the interval. - * If specified, a Timestamp matching this interval will have to be before the - * end. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Type\Interval::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Inclusive start of the interval. - * If specified, a Timestamp matching this interval will have to be the same - * or after the start. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 1; - * @return \Google\Protobuf\Timestamp|null - */ - public function getStartTime() - { - return $this->start_time; - } - - public function hasStartTime() - { - return isset($this->start_time); - } - - public function clearStartTime() - { - unset($this->start_time); - } - - /** - * Optional. Inclusive start of the interval. - * If specified, a Timestamp matching this interval will have to be the same - * or after the start. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 1; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setStartTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->start_time = $var; - - return $this; - } - - /** - * Optional. Exclusive end of the interval. - * If specified, a Timestamp matching this interval will have to be before the - * end. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getEndTime() - { - return $this->end_time; - } - - public function hasEndTime() - { - return isset($this->end_time); - } - - public function clearEndTime() - { - unset($this->end_time); - } - - /** - * Optional. Exclusive end of the interval. - * If specified, a Timestamp matching this interval will have to be before the - * end. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEndTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->end_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/LatLng.php b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/LatLng.php deleted file mode 100644 index 0d32887832b4..000000000000 --- a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/LatLng.php +++ /dev/null @@ -1,105 +0,0 @@ -WGS84 - * standard. Values must be within normalized ranges. - * - * Generated from protobuf message google.type.LatLng - */ -class LatLng extends \Google\Protobuf\Internal\Message -{ - /** - * The latitude in degrees. It must be in the range [-90.0, +90.0]. - * - * Generated from protobuf field double latitude = 1; - */ - protected $latitude = 0.0; - /** - * The longitude in degrees. It must be in the range [-180.0, +180.0]. - * - * Generated from protobuf field double longitude = 2; - */ - protected $longitude = 0.0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type float $latitude - * The latitude in degrees. It must be in the range [-90.0, +90.0]. - * @type float $longitude - * The longitude in degrees. It must be in the range [-180.0, +180.0]. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Type\Latlng::initOnce(); - parent::__construct($data); - } - - /** - * The latitude in degrees. It must be in the range [-90.0, +90.0]. - * - * Generated from protobuf field double latitude = 1; - * @return float - */ - public function getLatitude() - { - return $this->latitude; - } - - /** - * The latitude in degrees. It must be in the range [-90.0, +90.0]. - * - * Generated from protobuf field double latitude = 1; - * @param float $var - * @return $this - */ - public function setLatitude($var) - { - GPBUtil::checkDouble($var); - $this->latitude = $var; - - return $this; - } - - /** - * The longitude in degrees. It must be in the range [-180.0, +180.0]. - * - * Generated from protobuf field double longitude = 2; - * @return float - */ - public function getLongitude() - { - return $this->longitude; - } - - /** - * The longitude in degrees. It must be in the range [-180.0, +180.0]. - * - * Generated from protobuf field double longitude = 2; - * @param float $var - * @return $this - */ - public function setLongitude($var) - { - GPBUtil::checkDouble($var); - $this->longitude = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/LocalizedText.php b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/LocalizedText.php deleted file mode 100644 index 93d8df3e876d..000000000000 --- a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/LocalizedText.php +++ /dev/null @@ -1,109 +0,0 @@ -google.type.LocalizedText - */ -class LocalizedText extends \Google\Protobuf\Internal\Message -{ - /** - * Localized string in the language corresponding to `language_code' below. - * - * Generated from protobuf field string text = 1; - */ - protected $text = ''; - /** - * The text's BCP-47 language code, such as "en-US" or "sr-Latn". - * For more information, see - * http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. - * - * Generated from protobuf field string language_code = 2; - */ - protected $language_code = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $text - * Localized string in the language corresponding to `language_code' below. - * @type string $language_code - * The text's BCP-47 language code, such as "en-US" or "sr-Latn". - * For more information, see - * http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Type\LocalizedText::initOnce(); - parent::__construct($data); - } - - /** - * Localized string in the language corresponding to `language_code' below. - * - * Generated from protobuf field string text = 1; - * @return string - */ - public function getText() - { - return $this->text; - } - - /** - * Localized string in the language corresponding to `language_code' below. - * - * Generated from protobuf field string text = 1; - * @param string $var - * @return $this - */ - public function setText($var) - { - GPBUtil::checkString($var, True); - $this->text = $var; - - return $this; - } - - /** - * The text's BCP-47 language code, such as "en-US" or "sr-Latn". - * For more information, see - * http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. - * - * Generated from protobuf field string language_code = 2; - * @return string - */ - public function getLanguageCode() - { - return $this->language_code; - } - - /** - * The text's BCP-47 language code, such as "en-US" or "sr-Latn". - * For more information, see - * http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. - * - * Generated from protobuf field string language_code = 2; - * @param string $var - * @return $this - */ - public function setLanguageCode($var) - { - GPBUtil::checkString($var, True); - $this->language_code = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Money.php b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Money.php deleted file mode 100644 index 47e3f3acdd9a..000000000000 --- a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Money.php +++ /dev/null @@ -1,159 +0,0 @@ -google.type.Money - */ -class Money extends \Google\Protobuf\Internal\Message -{ - /** - * The three-letter currency code defined in ISO 4217. - * - * Generated from protobuf field string currency_code = 1; - */ - protected $currency_code = ''; - /** - * The whole units of the amount. - * For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar. - * - * Generated from protobuf field int64 units = 2; - */ - protected $units = 0; - /** - * Number of nano (10^-9) units of the amount. - * The value must be between -999,999,999 and +999,999,999 inclusive. - * If `units` is positive, `nanos` must be positive or zero. - * If `units` is zero, `nanos` can be positive, zero, or negative. - * If `units` is negative, `nanos` must be negative or zero. - * For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000. - * - * Generated from protobuf field int32 nanos = 3; - */ - protected $nanos = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $currency_code - * The three-letter currency code defined in ISO 4217. - * @type int|string $units - * The whole units of the amount. - * For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar. - * @type int $nanos - * Number of nano (10^-9) units of the amount. - * The value must be between -999,999,999 and +999,999,999 inclusive. - * If `units` is positive, `nanos` must be positive or zero. - * If `units` is zero, `nanos` can be positive, zero, or negative. - * If `units` is negative, `nanos` must be negative or zero. - * For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Type\Money::initOnce(); - parent::__construct($data); - } - - /** - * The three-letter currency code defined in ISO 4217. - * - * Generated from protobuf field string currency_code = 1; - * @return string - */ - public function getCurrencyCode() - { - return $this->currency_code; - } - - /** - * The three-letter currency code defined in ISO 4217. - * - * Generated from protobuf field string currency_code = 1; - * @param string $var - * @return $this - */ - public function setCurrencyCode($var) - { - GPBUtil::checkString($var, True); - $this->currency_code = $var; - - return $this; - } - - /** - * The whole units of the amount. - * For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar. - * - * Generated from protobuf field int64 units = 2; - * @return int|string - */ - public function getUnits() - { - return $this->units; - } - - /** - * The whole units of the amount. - * For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar. - * - * Generated from protobuf field int64 units = 2; - * @param int|string $var - * @return $this - */ - public function setUnits($var) - { - GPBUtil::checkInt64($var); - $this->units = $var; - - return $this; - } - - /** - * Number of nano (10^-9) units of the amount. - * The value must be between -999,999,999 and +999,999,999 inclusive. - * If `units` is positive, `nanos` must be positive or zero. - * If `units` is zero, `nanos` can be positive, zero, or negative. - * If `units` is negative, `nanos` must be negative or zero. - * For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000. - * - * Generated from protobuf field int32 nanos = 3; - * @return int - */ - public function getNanos() - { - return $this->nanos; - } - - /** - * Number of nano (10^-9) units of the amount. - * The value must be between -999,999,999 and +999,999,999 inclusive. - * If `units` is positive, `nanos` must be positive or zero. - * If `units` is zero, `nanos` can be positive, zero, or negative. - * If `units` is negative, `nanos` must be negative or zero. - * For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000. - * - * Generated from protobuf field int32 nanos = 3; - * @param int $var - * @return $this - */ - public function setNanos($var) - { - GPBUtil::checkInt32($var); - $this->nanos = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Month.php b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Month.php deleted file mode 100644 index 473d62ed3c1c..000000000000 --- a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Month.php +++ /dev/null @@ -1,131 +0,0 @@ -google.type.Month - */ -class Month -{ - /** - * The unspecified month. - * - * Generated from protobuf enum MONTH_UNSPECIFIED = 0; - */ - const MONTH_UNSPECIFIED = 0; - /** - * The month of January. - * - * Generated from protobuf enum JANUARY = 1; - */ - const JANUARY = 1; - /** - * The month of February. - * - * Generated from protobuf enum FEBRUARY = 2; - */ - const FEBRUARY = 2; - /** - * The month of March. - * - * Generated from protobuf enum MARCH = 3; - */ - const MARCH = 3; - /** - * The month of April. - * - * Generated from protobuf enum APRIL = 4; - */ - const APRIL = 4; - /** - * The month of May. - * - * Generated from protobuf enum MAY = 5; - */ - const MAY = 5; - /** - * The month of June. - * - * Generated from protobuf enum JUNE = 6; - */ - const JUNE = 6; - /** - * The month of July. - * - * Generated from protobuf enum JULY = 7; - */ - const JULY = 7; - /** - * The month of August. - * - * Generated from protobuf enum AUGUST = 8; - */ - const AUGUST = 8; - /** - * The month of September. - * - * Generated from protobuf enum SEPTEMBER = 9; - */ - const SEPTEMBER = 9; - /** - * The month of October. - * - * Generated from protobuf enum OCTOBER = 10; - */ - const OCTOBER = 10; - /** - * The month of November. - * - * Generated from protobuf enum NOVEMBER = 11; - */ - const NOVEMBER = 11; - /** - * The month of December. - * - * Generated from protobuf enum DECEMBER = 12; - */ - const DECEMBER = 12; - - private static $valueToName = [ - self::MONTH_UNSPECIFIED => 'MONTH_UNSPECIFIED', - self::JANUARY => 'JANUARY', - self::FEBRUARY => 'FEBRUARY', - self::MARCH => 'MARCH', - self::APRIL => 'APRIL', - self::MAY => 'MAY', - self::JUNE => 'JUNE', - self::JULY => 'JULY', - self::AUGUST => 'AUGUST', - self::SEPTEMBER => 'SEPTEMBER', - self::OCTOBER => 'OCTOBER', - self::NOVEMBER => 'NOVEMBER', - self::DECEMBER => 'DECEMBER', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/PhoneNumber.php b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/PhoneNumber.php deleted file mode 100644 index 3fbba6370a47..000000000000 --- a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/PhoneNumber.php +++ /dev/null @@ -1,230 +0,0 @@ -google.type.PhoneNumber - */ -class PhoneNumber extends \Google\Protobuf\Internal\Message -{ - /** - * The phone number's extension. The extension is not standardized in ITU - * recommendations, except for being defined as a series of numbers with a - * maximum length of 40 digits. Other than digits, some other dialing - * characters such as ',' (indicating a wait) or '#' may be stored here. - * Note that no regions currently use extensions with short codes, so this - * field is normally only set in conjunction with an E.164 number. It is held - * separately from the E.164 number to allow for short code extensions in the - * future. - * - * Generated from protobuf field string extension = 3; - */ - protected $extension = ''; - protected $kind; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $e164_number - * The phone number, represented as a leading plus sign ('+'), followed by a - * phone number that uses a relaxed ITU E.164 format consisting of the - * country calling code (1 to 3 digits) and the subscriber number, with no - * additional spaces or formatting, e.g.: - * - correct: "+15552220123" - * - incorrect: "+1 (555) 222-01234 x123". - * The ITU E.164 format limits the latter to 12 digits, but in practice not - * all countries respect that, so we relax that restriction here. - * National-only numbers are not allowed. - * References: - * - https://www.itu.int/rec/T-REC-E.164-201011-I - * - https://en.wikipedia.org/wiki/E.164. - * - https://en.wikipedia.org/wiki/List_of_country_calling_codes - * @type \Google\Type\PhoneNumber\ShortCode $short_code - * A short code. - * Reference(s): - * - https://en.wikipedia.org/wiki/Short_code - * @type string $extension - * The phone number's extension. The extension is not standardized in ITU - * recommendations, except for being defined as a series of numbers with a - * maximum length of 40 digits. Other than digits, some other dialing - * characters such as ',' (indicating a wait) or '#' may be stored here. - * Note that no regions currently use extensions with short codes, so this - * field is normally only set in conjunction with an E.164 number. It is held - * separately from the E.164 number to allow for short code extensions in the - * future. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Type\PhoneNumber::initOnce(); - parent::__construct($data); - } - - /** - * The phone number, represented as a leading plus sign ('+'), followed by a - * phone number that uses a relaxed ITU E.164 format consisting of the - * country calling code (1 to 3 digits) and the subscriber number, with no - * additional spaces or formatting, e.g.: - * - correct: "+15552220123" - * - incorrect: "+1 (555) 222-01234 x123". - * The ITU E.164 format limits the latter to 12 digits, but in practice not - * all countries respect that, so we relax that restriction here. - * National-only numbers are not allowed. - * References: - * - https://www.itu.int/rec/T-REC-E.164-201011-I - * - https://en.wikipedia.org/wiki/E.164. - * - https://en.wikipedia.org/wiki/List_of_country_calling_codes - * - * Generated from protobuf field string e164_number = 1; - * @return string - */ - public function getE164Number() - { - return $this->readOneof(1); - } - - public function hasE164Number() - { - return $this->hasOneof(1); - } - - /** - * The phone number, represented as a leading plus sign ('+'), followed by a - * phone number that uses a relaxed ITU E.164 format consisting of the - * country calling code (1 to 3 digits) and the subscriber number, with no - * additional spaces or formatting, e.g.: - * - correct: "+15552220123" - * - incorrect: "+1 (555) 222-01234 x123". - * The ITU E.164 format limits the latter to 12 digits, but in practice not - * all countries respect that, so we relax that restriction here. - * National-only numbers are not allowed. - * References: - * - https://www.itu.int/rec/T-REC-E.164-201011-I - * - https://en.wikipedia.org/wiki/E.164. - * - https://en.wikipedia.org/wiki/List_of_country_calling_codes - * - * Generated from protobuf field string e164_number = 1; - * @param string $var - * @return $this - */ - public function setE164Number($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * A short code. - * Reference(s): - * - https://en.wikipedia.org/wiki/Short_code - * - * Generated from protobuf field .google.type.PhoneNumber.ShortCode short_code = 2; - * @return \Google\Type\PhoneNumber\ShortCode|null - */ - public function getShortCode() - { - return $this->readOneof(2); - } - - public function hasShortCode() - { - return $this->hasOneof(2); - } - - /** - * A short code. - * Reference(s): - * - https://en.wikipedia.org/wiki/Short_code - * - * Generated from protobuf field .google.type.PhoneNumber.ShortCode short_code = 2; - * @param \Google\Type\PhoneNumber\ShortCode $var - * @return $this - */ - public function setShortCode($var) - { - GPBUtil::checkMessage($var, \Google\Type\PhoneNumber\ShortCode::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * The phone number's extension. The extension is not standardized in ITU - * recommendations, except for being defined as a series of numbers with a - * maximum length of 40 digits. Other than digits, some other dialing - * characters such as ',' (indicating a wait) or '#' may be stored here. - * Note that no regions currently use extensions with short codes, so this - * field is normally only set in conjunction with an E.164 number. It is held - * separately from the E.164 number to allow for short code extensions in the - * future. - * - * Generated from protobuf field string extension = 3; - * @return string - */ - public function getExtension() - { - return $this->extension; - } - - /** - * The phone number's extension. The extension is not standardized in ITU - * recommendations, except for being defined as a series of numbers with a - * maximum length of 40 digits. Other than digits, some other dialing - * characters such as ',' (indicating a wait) or '#' may be stored here. - * Note that no regions currently use extensions with short codes, so this - * field is normally only set in conjunction with an E.164 number. It is held - * separately from the E.164 number to allow for short code extensions in the - * future. - * - * Generated from protobuf field string extension = 3; - * @param string $var - * @return $this - */ - public function setExtension($var) - { - GPBUtil::checkString($var, True); - $this->extension = $var; - - return $this; - } - - /** - * @return string - */ - public function getKind() - { - return $this->whichOneof("kind"); - } - -} - diff --git a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/PhoneNumber/ShortCode.php b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/PhoneNumber/ShortCode.php deleted file mode 100644 index 2f69623b3d30..000000000000 --- a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/PhoneNumber/ShortCode.php +++ /dev/null @@ -1,124 +0,0 @@ -google.type.PhoneNumber.ShortCode - */ -class ShortCode extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The BCP-47 region code of the location where calls to this - * short code can be made, such as "US" and "BB". - * Reference(s): - * - http://www.unicode.org/reports/tr35/#unicode_region_subtag - * - * Generated from protobuf field string region_code = 1; - */ - protected $region_code = ''; - /** - * Required. The short code digits, without a leading plus ('+') or country - * calling code, e.g. "611". - * - * Generated from protobuf field string number = 2; - */ - protected $number = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $region_code - * Required. The BCP-47 region code of the location where calls to this - * short code can be made, such as "US" and "BB". - * Reference(s): - * - http://www.unicode.org/reports/tr35/#unicode_region_subtag - * @type string $number - * Required. The short code digits, without a leading plus ('+') or country - * calling code, e.g. "611". - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Type\PhoneNumber::initOnce(); - parent::__construct($data); - } - - /** - * Required. The BCP-47 region code of the location where calls to this - * short code can be made, such as "US" and "BB". - * Reference(s): - * - http://www.unicode.org/reports/tr35/#unicode_region_subtag - * - * Generated from protobuf field string region_code = 1; - * @return string - */ - public function getRegionCode() - { - return $this->region_code; - } - - /** - * Required. The BCP-47 region code of the location where calls to this - * short code can be made, such as "US" and "BB". - * Reference(s): - * - http://www.unicode.org/reports/tr35/#unicode_region_subtag - * - * Generated from protobuf field string region_code = 1; - * @param string $var - * @return $this - */ - public function setRegionCode($var) - { - GPBUtil::checkString($var, True); - $this->region_code = $var; - - return $this; - } - - /** - * Required. The short code digits, without a leading plus ('+') or country - * calling code, e.g. "611". - * - * Generated from protobuf field string number = 2; - * @return string - */ - public function getNumber() - { - return $this->number; - } - - /** - * Required. The short code digits, without a leading plus ('+') or country - * calling code, e.g. "611". - * - * Generated from protobuf field string number = 2; - * @param string $var - * @return $this - */ - public function setNumber($var) - { - GPBUtil::checkString($var, True); - $this->number = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/PostalAddress.php b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/PostalAddress.php deleted file mode 100644 index 063fbac92ef4..000000000000 --- a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/PostalAddress.php +++ /dev/null @@ -1,628 +0,0 @@ -google.type.PostalAddress - */ -class PostalAddress extends \Google\Protobuf\Internal\Message -{ - /** - * The schema revision of the `PostalAddress`. This must be set to 0, which is - * the latest revision. - * All new revisions **must** be backward compatible with old revisions. - * - * Generated from protobuf field int32 revision = 1; - */ - protected $revision = 0; - /** - * Required. CLDR region code of the country/region of the address. This - * is never inferred and it is up to the user to ensure the value is - * correct. See http://cldr.unicode.org/ and - * http://www.unicode.org/cldr/charts/30/supplemental/territory_information.html - * for details. Example: "CH" for Switzerland. - * - * Generated from protobuf field string region_code = 2; - */ - protected $region_code = ''; - /** - * Optional. BCP-47 language code of the contents of this address (if - * known). This is often the UI language of the input form or is expected - * to match one of the languages used in the address' country/region, or their - * transliterated equivalents. - * This can affect formatting in certain countries, but is not critical - * to the correctness of the data and will never affect any validation or - * other non-formatting related operations. - * If this value is not known, it should be omitted (rather than specifying a - * possibly incorrect default). - * Examples: "zh-Hant", "ja", "ja-Latn", "en". - * - * Generated from protobuf field string language_code = 3; - */ - protected $language_code = ''; - /** - * Optional. Postal code of the address. Not all countries use or require - * postal codes to be present, but where they are used, they may trigger - * additional validation with other parts of the address (e.g. state/zip - * validation in the U.S.A.). - * - * Generated from protobuf field string postal_code = 4; - */ - protected $postal_code = ''; - /** - * Optional. Additional, country-specific, sorting code. This is not used - * in most regions. Where it is used, the value is either a string like - * "CEDEX", optionally followed by a number (e.g. "CEDEX 7"), or just a number - * alone, representing the "sector code" (Jamaica), "delivery area indicator" - * (Malawi) or "post office indicator" (e.g. Côte d'Ivoire). - * - * Generated from protobuf field string sorting_code = 5; - */ - protected $sorting_code = ''; - /** - * Optional. Highest administrative subdivision which is used for postal - * addresses of a country or region. - * For example, this can be a state, a province, an oblast, or a prefecture. - * Specifically, for Spain this is the province and not the autonomous - * community (e.g. "Barcelona" and not "Catalonia"). - * Many countries don't use an administrative area in postal addresses. E.g. - * in Switzerland this should be left unpopulated. - * - * Generated from protobuf field string administrative_area = 6; - */ - protected $administrative_area = ''; - /** - * Optional. Generally refers to the city/town portion of the address. - * Examples: US city, IT comune, UK post town. - * In regions of the world where localities are not well defined or do not fit - * into this structure well, leave locality empty and use address_lines. - * - * Generated from protobuf field string locality = 7; - */ - protected $locality = ''; - /** - * Optional. Sublocality of the address. - * For example, this can be neighborhoods, boroughs, districts. - * - * Generated from protobuf field string sublocality = 8; - */ - protected $sublocality = ''; - /** - * Unstructured address lines describing the lower levels of an address. - * Because values in address_lines do not have type information and may - * sometimes contain multiple values in a single field (e.g. - * "Austin, TX"), it is important that the line order is clear. The order of - * address lines should be "envelope order" for the country/region of the - * address. In places where this can vary (e.g. Japan), address_language is - * used to make it explicit (e.g. "ja" for large-to-small ordering and - * "ja-Latn" or "en" for small-to-large). This way, the most specific line of - * an address can be selected based on the language. - * The minimum permitted structural representation of an address consists - * of a region_code with all remaining information placed in the - * address_lines. It would be possible to format such an address very - * approximately without geocoding, but no semantic reasoning could be - * made about any of the address components until it was at least - * partially resolved. - * Creating an address only containing a region_code and address_lines, and - * then geocoding is the recommended way to handle completely unstructured - * addresses (as opposed to guessing which parts of the address should be - * localities or administrative areas). - * - * Generated from protobuf field repeated string address_lines = 9; - */ - private $address_lines; - /** - * Optional. The recipient at the address. - * This field may, under certain circumstances, contain multiline information. - * For example, it might contain "care of" information. - * - * Generated from protobuf field repeated string recipients = 10; - */ - private $recipients; - /** - * Optional. The name of the organization at the address. - * - * Generated from protobuf field string organization = 11; - */ - protected $organization = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $revision - * The schema revision of the `PostalAddress`. This must be set to 0, which is - * the latest revision. - * All new revisions **must** be backward compatible with old revisions. - * @type string $region_code - * Required. CLDR region code of the country/region of the address. This - * is never inferred and it is up to the user to ensure the value is - * correct. See http://cldr.unicode.org/ and - * http://www.unicode.org/cldr/charts/30/supplemental/territory_information.html - * for details. Example: "CH" for Switzerland. - * @type string $language_code - * Optional. BCP-47 language code of the contents of this address (if - * known). This is often the UI language of the input form or is expected - * to match one of the languages used in the address' country/region, or their - * transliterated equivalents. - * This can affect formatting in certain countries, but is not critical - * to the correctness of the data and will never affect any validation or - * other non-formatting related operations. - * If this value is not known, it should be omitted (rather than specifying a - * possibly incorrect default). - * Examples: "zh-Hant", "ja", "ja-Latn", "en". - * @type string $postal_code - * Optional. Postal code of the address. Not all countries use or require - * postal codes to be present, but where they are used, they may trigger - * additional validation with other parts of the address (e.g. state/zip - * validation in the U.S.A.). - * @type string $sorting_code - * Optional. Additional, country-specific, sorting code. This is not used - * in most regions. Where it is used, the value is either a string like - * "CEDEX", optionally followed by a number (e.g. "CEDEX 7"), or just a number - * alone, representing the "sector code" (Jamaica), "delivery area indicator" - * (Malawi) or "post office indicator" (e.g. Côte d'Ivoire). - * @type string $administrative_area - * Optional. Highest administrative subdivision which is used for postal - * addresses of a country or region. - * For example, this can be a state, a province, an oblast, or a prefecture. - * Specifically, for Spain this is the province and not the autonomous - * community (e.g. "Barcelona" and not "Catalonia"). - * Many countries don't use an administrative area in postal addresses. E.g. - * in Switzerland this should be left unpopulated. - * @type string $locality - * Optional. Generally refers to the city/town portion of the address. - * Examples: US city, IT comune, UK post town. - * In regions of the world where localities are not well defined or do not fit - * into this structure well, leave locality empty and use address_lines. - * @type string $sublocality - * Optional. Sublocality of the address. - * For example, this can be neighborhoods, boroughs, districts. - * @type string[] $address_lines - * Unstructured address lines describing the lower levels of an address. - * Because values in address_lines do not have type information and may - * sometimes contain multiple values in a single field (e.g. - * "Austin, TX"), it is important that the line order is clear. The order of - * address lines should be "envelope order" for the country/region of the - * address. In places where this can vary (e.g. Japan), address_language is - * used to make it explicit (e.g. "ja" for large-to-small ordering and - * "ja-Latn" or "en" for small-to-large). This way, the most specific line of - * an address can be selected based on the language. - * The minimum permitted structural representation of an address consists - * of a region_code with all remaining information placed in the - * address_lines. It would be possible to format such an address very - * approximately without geocoding, but no semantic reasoning could be - * made about any of the address components until it was at least - * partially resolved. - * Creating an address only containing a region_code and address_lines, and - * then geocoding is the recommended way to handle completely unstructured - * addresses (as opposed to guessing which parts of the address should be - * localities or administrative areas). - * @type string[] $recipients - * Optional. The recipient at the address. - * This field may, under certain circumstances, contain multiline information. - * For example, it might contain "care of" information. - * @type string $organization - * Optional. The name of the organization at the address. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Type\PostalAddress::initOnce(); - parent::__construct($data); - } - - /** - * The schema revision of the `PostalAddress`. This must be set to 0, which is - * the latest revision. - * All new revisions **must** be backward compatible with old revisions. - * - * Generated from protobuf field int32 revision = 1; - * @return int - */ - public function getRevision() - { - return $this->revision; - } - - /** - * The schema revision of the `PostalAddress`. This must be set to 0, which is - * the latest revision. - * All new revisions **must** be backward compatible with old revisions. - * - * Generated from protobuf field int32 revision = 1; - * @param int $var - * @return $this - */ - public function setRevision($var) - { - GPBUtil::checkInt32($var); - $this->revision = $var; - - return $this; - } - - /** - * Required. CLDR region code of the country/region of the address. This - * is never inferred and it is up to the user to ensure the value is - * correct. See http://cldr.unicode.org/ and - * http://www.unicode.org/cldr/charts/30/supplemental/territory_information.html - * for details. Example: "CH" for Switzerland. - * - * Generated from protobuf field string region_code = 2; - * @return string - */ - public function getRegionCode() - { - return $this->region_code; - } - - /** - * Required. CLDR region code of the country/region of the address. This - * is never inferred and it is up to the user to ensure the value is - * correct. See http://cldr.unicode.org/ and - * http://www.unicode.org/cldr/charts/30/supplemental/territory_information.html - * for details. Example: "CH" for Switzerland. - * - * Generated from protobuf field string region_code = 2; - * @param string $var - * @return $this - */ - public function setRegionCode($var) - { - GPBUtil::checkString($var, True); - $this->region_code = $var; - - return $this; - } - - /** - * Optional. BCP-47 language code of the contents of this address (if - * known). This is often the UI language of the input form or is expected - * to match one of the languages used in the address' country/region, or their - * transliterated equivalents. - * This can affect formatting in certain countries, but is not critical - * to the correctness of the data and will never affect any validation or - * other non-formatting related operations. - * If this value is not known, it should be omitted (rather than specifying a - * possibly incorrect default). - * Examples: "zh-Hant", "ja", "ja-Latn", "en". - * - * Generated from protobuf field string language_code = 3; - * @return string - */ - public function getLanguageCode() - { - return $this->language_code; - } - - /** - * Optional. BCP-47 language code of the contents of this address (if - * known). This is often the UI language of the input form or is expected - * to match one of the languages used in the address' country/region, or their - * transliterated equivalents. - * This can affect formatting in certain countries, but is not critical - * to the correctness of the data and will never affect any validation or - * other non-formatting related operations. - * If this value is not known, it should be omitted (rather than specifying a - * possibly incorrect default). - * Examples: "zh-Hant", "ja", "ja-Latn", "en". - * - * Generated from protobuf field string language_code = 3; - * @param string $var - * @return $this - */ - public function setLanguageCode($var) - { - GPBUtil::checkString($var, True); - $this->language_code = $var; - - return $this; - } - - /** - * Optional. Postal code of the address. Not all countries use or require - * postal codes to be present, but where they are used, they may trigger - * additional validation with other parts of the address (e.g. state/zip - * validation in the U.S.A.). - * - * Generated from protobuf field string postal_code = 4; - * @return string - */ - public function getPostalCode() - { - return $this->postal_code; - } - - /** - * Optional. Postal code of the address. Not all countries use or require - * postal codes to be present, but where they are used, they may trigger - * additional validation with other parts of the address (e.g. state/zip - * validation in the U.S.A.). - * - * Generated from protobuf field string postal_code = 4; - * @param string $var - * @return $this - */ - public function setPostalCode($var) - { - GPBUtil::checkString($var, True); - $this->postal_code = $var; - - return $this; - } - - /** - * Optional. Additional, country-specific, sorting code. This is not used - * in most regions. Where it is used, the value is either a string like - * "CEDEX", optionally followed by a number (e.g. "CEDEX 7"), or just a number - * alone, representing the "sector code" (Jamaica), "delivery area indicator" - * (Malawi) or "post office indicator" (e.g. Côte d'Ivoire). - * - * Generated from protobuf field string sorting_code = 5; - * @return string - */ - public function getSortingCode() - { - return $this->sorting_code; - } - - /** - * Optional. Additional, country-specific, sorting code. This is not used - * in most regions. Where it is used, the value is either a string like - * "CEDEX", optionally followed by a number (e.g. "CEDEX 7"), or just a number - * alone, representing the "sector code" (Jamaica), "delivery area indicator" - * (Malawi) or "post office indicator" (e.g. Côte d'Ivoire). - * - * Generated from protobuf field string sorting_code = 5; - * @param string $var - * @return $this - */ - public function setSortingCode($var) - { - GPBUtil::checkString($var, True); - $this->sorting_code = $var; - - return $this; - } - - /** - * Optional. Highest administrative subdivision which is used for postal - * addresses of a country or region. - * For example, this can be a state, a province, an oblast, or a prefecture. - * Specifically, for Spain this is the province and not the autonomous - * community (e.g. "Barcelona" and not "Catalonia"). - * Many countries don't use an administrative area in postal addresses. E.g. - * in Switzerland this should be left unpopulated. - * - * Generated from protobuf field string administrative_area = 6; - * @return string - */ - public function getAdministrativeArea() - { - return $this->administrative_area; - } - - /** - * Optional. Highest administrative subdivision which is used for postal - * addresses of a country or region. - * For example, this can be a state, a province, an oblast, or a prefecture. - * Specifically, for Spain this is the province and not the autonomous - * community (e.g. "Barcelona" and not "Catalonia"). - * Many countries don't use an administrative area in postal addresses. E.g. - * in Switzerland this should be left unpopulated. - * - * Generated from protobuf field string administrative_area = 6; - * @param string $var - * @return $this - */ - public function setAdministrativeArea($var) - { - GPBUtil::checkString($var, True); - $this->administrative_area = $var; - - return $this; - } - - /** - * Optional. Generally refers to the city/town portion of the address. - * Examples: US city, IT comune, UK post town. - * In regions of the world where localities are not well defined or do not fit - * into this structure well, leave locality empty and use address_lines. - * - * Generated from protobuf field string locality = 7; - * @return string - */ - public function getLocality() - { - return $this->locality; - } - - /** - * Optional. Generally refers to the city/town portion of the address. - * Examples: US city, IT comune, UK post town. - * In regions of the world where localities are not well defined or do not fit - * into this structure well, leave locality empty and use address_lines. - * - * Generated from protobuf field string locality = 7; - * @param string $var - * @return $this - */ - public function setLocality($var) - { - GPBUtil::checkString($var, True); - $this->locality = $var; - - return $this; - } - - /** - * Optional. Sublocality of the address. - * For example, this can be neighborhoods, boroughs, districts. - * - * Generated from protobuf field string sublocality = 8; - * @return string - */ - public function getSublocality() - { - return $this->sublocality; - } - - /** - * Optional. Sublocality of the address. - * For example, this can be neighborhoods, boroughs, districts. - * - * Generated from protobuf field string sublocality = 8; - * @param string $var - * @return $this - */ - public function setSublocality($var) - { - GPBUtil::checkString($var, True); - $this->sublocality = $var; - - return $this; - } - - /** - * Unstructured address lines describing the lower levels of an address. - * Because values in address_lines do not have type information and may - * sometimes contain multiple values in a single field (e.g. - * "Austin, TX"), it is important that the line order is clear. The order of - * address lines should be "envelope order" for the country/region of the - * address. In places where this can vary (e.g. Japan), address_language is - * used to make it explicit (e.g. "ja" for large-to-small ordering and - * "ja-Latn" or "en" for small-to-large). This way, the most specific line of - * an address can be selected based on the language. - * The minimum permitted structural representation of an address consists - * of a region_code with all remaining information placed in the - * address_lines. It would be possible to format such an address very - * approximately without geocoding, but no semantic reasoning could be - * made about any of the address components until it was at least - * partially resolved. - * Creating an address only containing a region_code and address_lines, and - * then geocoding is the recommended way to handle completely unstructured - * addresses (as opposed to guessing which parts of the address should be - * localities or administrative areas). - * - * Generated from protobuf field repeated string address_lines = 9; - * @return RepeatedField - */ - public function getAddressLines() - { - return $this->address_lines; - } - - /** - * Unstructured address lines describing the lower levels of an address. - * Because values in address_lines do not have type information and may - * sometimes contain multiple values in a single field (e.g. - * "Austin, TX"), it is important that the line order is clear. The order of - * address lines should be "envelope order" for the country/region of the - * address. In places where this can vary (e.g. Japan), address_language is - * used to make it explicit (e.g. "ja" for large-to-small ordering and - * "ja-Latn" or "en" for small-to-large). This way, the most specific line of - * an address can be selected based on the language. - * The minimum permitted structural representation of an address consists - * of a region_code with all remaining information placed in the - * address_lines. It would be possible to format such an address very - * approximately without geocoding, but no semantic reasoning could be - * made about any of the address components until it was at least - * partially resolved. - * Creating an address only containing a region_code and address_lines, and - * then geocoding is the recommended way to handle completely unstructured - * addresses (as opposed to guessing which parts of the address should be - * localities or administrative areas). - * - * Generated from protobuf field repeated string address_lines = 9; - * @param string[] $var - * @return $this - */ - public function setAddressLines($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->address_lines = $arr; - - return $this; - } - - /** - * Optional. The recipient at the address. - * This field may, under certain circumstances, contain multiline information. - * For example, it might contain "care of" information. - * - * Generated from protobuf field repeated string recipients = 10; - * @return RepeatedField - */ - public function getRecipients() - { - return $this->recipients; - } - - /** - * Optional. The recipient at the address. - * This field may, under certain circumstances, contain multiline information. - * For example, it might contain "care of" information. - * - * Generated from protobuf field repeated string recipients = 10; - * @param string[] $var - * @return $this - */ - public function setRecipients($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->recipients = $arr; - - return $this; - } - - /** - * Optional. The name of the organization at the address. - * - * Generated from protobuf field string organization = 11; - * @return string - */ - public function getOrganization() - { - return $this->organization; - } - - /** - * Optional. The name of the organization at the address. - * - * Generated from protobuf field string organization = 11; - * @param string $var - * @return $this - */ - public function setOrganization($var) - { - GPBUtil::checkString($var, True); - $this->organization = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Quaternion.php b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Quaternion.php deleted file mode 100644 index 56014dc90777..000000000000 --- a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Quaternion.php +++ /dev/null @@ -1,211 +0,0 @@ -google.type.Quaternion - */ -class Quaternion extends \Google\Protobuf\Internal\Message -{ - /** - * The x component. - * - * Generated from protobuf field double x = 1; - */ - protected $x = 0.0; - /** - * The y component. - * - * Generated from protobuf field double y = 2; - */ - protected $y = 0.0; - /** - * The z component. - * - * Generated from protobuf field double z = 3; - */ - protected $z = 0.0; - /** - * The scalar component. - * - * Generated from protobuf field double w = 4; - */ - protected $w = 0.0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type float $x - * The x component. - * @type float $y - * The y component. - * @type float $z - * The z component. - * @type float $w - * The scalar component. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Type\Quaternion::initOnce(); - parent::__construct($data); - } - - /** - * The x component. - * - * Generated from protobuf field double x = 1; - * @return float - */ - public function getX() - { - return $this->x; - } - - /** - * The x component. - * - * Generated from protobuf field double x = 1; - * @param float $var - * @return $this - */ - public function setX($var) - { - GPBUtil::checkDouble($var); - $this->x = $var; - - return $this; - } - - /** - * The y component. - * - * Generated from protobuf field double y = 2; - * @return float - */ - public function getY() - { - return $this->y; - } - - /** - * The y component. - * - * Generated from protobuf field double y = 2; - * @param float $var - * @return $this - */ - public function setY($var) - { - GPBUtil::checkDouble($var); - $this->y = $var; - - return $this; - } - - /** - * The z component. - * - * Generated from protobuf field double z = 3; - * @return float - */ - public function getZ() - { - return $this->z; - } - - /** - * The z component. - * - * Generated from protobuf field double z = 3; - * @param float $var - * @return $this - */ - public function setZ($var) - { - GPBUtil::checkDouble($var); - $this->z = $var; - - return $this; - } - - /** - * The scalar component. - * - * Generated from protobuf field double w = 4; - * @return float - */ - public function getW() - { - return $this->w; - } - - /** - * The scalar component. - * - * Generated from protobuf field double w = 4; - * @param float $var - * @return $this - */ - public function setW($var) - { - GPBUtil::checkDouble($var); - $this->w = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/TimeOfDay.php b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/TimeOfDay.php deleted file mode 100644 index 8cd8837ab4e2..000000000000 --- a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/TimeOfDay.php +++ /dev/null @@ -1,180 +0,0 @@ -google.type.TimeOfDay - */ -class TimeOfDay extends \Google\Protobuf\Internal\Message -{ - /** - * Hours of day in 24 hour format. Should be from 0 to 23. An API may choose - * to allow the value "24:00:00" for scenarios like business closing time. - * - * Generated from protobuf field int32 hours = 1; - */ - protected $hours = 0; - /** - * Minutes of hour of day. Must be from 0 to 59. - * - * Generated from protobuf field int32 minutes = 2; - */ - protected $minutes = 0; - /** - * Seconds of minutes of the time. Must normally be from 0 to 59. An API may - * allow the value 60 if it allows leap-seconds. - * - * Generated from protobuf field int32 seconds = 3; - */ - protected $seconds = 0; - /** - * Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999. - * - * Generated from protobuf field int32 nanos = 4; - */ - protected $nanos = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $hours - * Hours of day in 24 hour format. Should be from 0 to 23. An API may choose - * to allow the value "24:00:00" for scenarios like business closing time. - * @type int $minutes - * Minutes of hour of day. Must be from 0 to 59. - * @type int $seconds - * Seconds of minutes of the time. Must normally be from 0 to 59. An API may - * allow the value 60 if it allows leap-seconds. - * @type int $nanos - * Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Type\Timeofday::initOnce(); - parent::__construct($data); - } - - /** - * Hours of day in 24 hour format. Should be from 0 to 23. An API may choose - * to allow the value "24:00:00" for scenarios like business closing time. - * - * Generated from protobuf field int32 hours = 1; - * @return int - */ - public function getHours() - { - return $this->hours; - } - - /** - * Hours of day in 24 hour format. Should be from 0 to 23. An API may choose - * to allow the value "24:00:00" for scenarios like business closing time. - * - * Generated from protobuf field int32 hours = 1; - * @param int $var - * @return $this - */ - public function setHours($var) - { - GPBUtil::checkInt32($var); - $this->hours = $var; - - return $this; - } - - /** - * Minutes of hour of day. Must be from 0 to 59. - * - * Generated from protobuf field int32 minutes = 2; - * @return int - */ - public function getMinutes() - { - return $this->minutes; - } - - /** - * Minutes of hour of day. Must be from 0 to 59. - * - * Generated from protobuf field int32 minutes = 2; - * @param int $var - * @return $this - */ - public function setMinutes($var) - { - GPBUtil::checkInt32($var); - $this->minutes = $var; - - return $this; - } - - /** - * Seconds of minutes of the time. Must normally be from 0 to 59. An API may - * allow the value 60 if it allows leap-seconds. - * - * Generated from protobuf field int32 seconds = 3; - * @return int - */ - public function getSeconds() - { - return $this->seconds; - } - - /** - * Seconds of minutes of the time. Must normally be from 0 to 59. An API may - * allow the value 60 if it allows leap-seconds. - * - * Generated from protobuf field int32 seconds = 3; - * @param int $var - * @return $this - */ - public function setSeconds($var) - { - GPBUtil::checkInt32($var); - $this->seconds = $var; - - return $this; - } - - /** - * Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999. - * - * Generated from protobuf field int32 nanos = 4; - * @return int - */ - public function getNanos() - { - return $this->nanos; - } - - /** - * Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999. - * - * Generated from protobuf field int32 nanos = 4; - * @param int $var - * @return $this - */ - public function setNanos($var) - { - GPBUtil::checkInt32($var); - $this->nanos = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/TimeZone.php b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/TimeZone.php deleted file mode 100644 index db31ddee7aec..000000000000 --- a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/TimeZone.php +++ /dev/null @@ -1,102 +0,0 @@ -google.type.TimeZone - */ -class TimeZone extends \Google\Protobuf\Internal\Message -{ - /** - * IANA Time Zone Database time zone, e.g. "America/New_York". - * - * Generated from protobuf field string id = 1; - */ - protected $id = ''; - /** - * Optional. IANA Time Zone Database version number, e.g. "2019a". - * - * Generated from protobuf field string version = 2; - */ - protected $version = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $id - * IANA Time Zone Database time zone, e.g. "America/New_York". - * @type string $version - * Optional. IANA Time Zone Database version number, e.g. "2019a". - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Type\Datetime::initOnce(); - parent::__construct($data); - } - - /** - * IANA Time Zone Database time zone, e.g. "America/New_York". - * - * Generated from protobuf field string id = 1; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * IANA Time Zone Database time zone, e.g. "America/New_York". - * - * Generated from protobuf field string id = 1; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - - /** - * Optional. IANA Time Zone Database version number, e.g. "2019a". - * - * Generated from protobuf field string version = 2; - * @return string - */ - public function getVersion() - { - return $this->version; - } - - /** - * Optional. IANA Time Zone Database version number, e.g. "2019a". - * - * Generated from protobuf field string version = 2; - * @param string $var - * @return $this - */ - public function setVersion($var) - { - GPBUtil::checkString($var, True); - $this->version = $var; - - return $this; - } - -} - From 4d000ff666b1288fb5dcb271ff01e0d7cc2b4ad3 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Fri, 27 Mar 2026 22:10:07 +0000 Subject: [PATCH 3/4] docs: update API common type documentation PiperOrigin-RevId: 890591600 Source-Link: https://github.com/googleapis/googleapis/commit/208f19890d8e0a4a5bc772584246c973ff57f6c1 Source-Link: https://github.com/googleapis/googleapis-gen/commit/b10e9b25e87eabe00466b7d51b5ee4748c8c66c8 Copy-Tag: eyJwIjoiQ29tbW9uUHJvdG9zLy5Pd2xCb3QueWFtbCIsImgiOiJiMTBlOWIyNWU4N2VhYmUwMDQ2NmI3ZDUxYjVlZTQ3NDhjOGM2NmM4In0= --- .../GPBMetadata/Google/Api/Annotations.php | 25 + .../proto/src/GPBMetadata/Google/Api/Auth.php | 24 + .../src/GPBMetadata/Google/Api/Backend.php | 24 + .../src/GPBMetadata/Google/Api/Billing.php | 24 + .../src/GPBMetadata/Google/Api/Client.php | 26 + .../GPBMetadata/Google/Api/ConfigChange.php | 24 + .../src/GPBMetadata/Google/Api/Consumer.php | 24 + .../src/GPBMetadata/Google/Api/Context.php | 24 + .../src/GPBMetadata/Google/Api/Control.php | 25 + .../GPBMetadata/Google/Api/Distribution.php | 26 + .../GPBMetadata/Google/Api/Documentation.php | 24 + .../src/GPBMetadata/Google/Api/Endpoint.php | 24 + .../GPBMetadata/Google/Api/ErrorReason.php | 24 + .../GPBMetadata/Google/Api/FieldBehavior.php | 24 + .../src/GPBMetadata/Google/Api/FieldInfo.php | 24 + .../proto/src/GPBMetadata/Google/Api/Http.php | 24 + .../src/GPBMetadata/Google/Api/Httpbody.php | 25 + .../src/GPBMetadata/Google/Api/Label.php | 24 + .../GPBMetadata/Google/Api/LaunchStage.php | 24 + .../proto/src/GPBMetadata/Google/Api/Log.php | 25 + .../src/GPBMetadata/Google/Api/Logging.php | 24 + .../src/GPBMetadata/Google/Api/Metric.php | 27 + .../Google/Api/MonitoredResource.php | 27 + .../src/GPBMetadata/Google/Api/Monitoring.php | 24 + .../src/GPBMetadata/Google/Api/Policy.php | 24 + .../src/GPBMetadata/Google/Api/Quota.php | 24 + .../src/GPBMetadata/Google/Api/Resource.php | 24 + .../src/GPBMetadata/Google/Api/Routing.php | 24 + .../src/GPBMetadata/Google/Api/Service.php | 45 + .../src/GPBMetadata/Google/Api/SourceInfo.php | 25 + .../Google/Api/SystemParameter.php | 24 + .../src/GPBMetadata/Google/Api/Usage.php | 24 + .../src/GPBMetadata/Google/Api/Visibility.php | 24 + .../api/proto/src/Google/Api/Advice.php | 72 + .../api/proto/src/Google/Api/AuthProvider.php | 419 ++++++ .../proto/src/Google/Api/AuthRequirement.php | 159 +++ .../proto/src/Google/Api/Authentication.php | 120 ++ .../src/Google/Api/AuthenticationRule.php | 197 +++ .../api/proto/src/Google/Api/Backend.php | 71 + .../api/proto/src/Google/Api/BackendRule.php | 592 ++++++++ .../Api/BackendRule/PathTranslation.php | 92 ++ .../src/Google/Api/BatchingConfigProto.php | 121 ++ .../Google/Api/BatchingDescriptorProto.php | 157 +++ .../src/Google/Api/BatchingSettingsProto.php | 337 +++++ .../api/proto/src/Google/Api/Billing.php | 107 ++ .../Google/Api/Billing/BillingDestination.php | 118 ++ .../api/proto/src/Google/Api/ChangeType.php | 72 + .../Google/Api/ClientLibraryDestination.php | 63 + .../Google/Api/ClientLibraryOrganization.php | 97 ++ .../src/Google/Api/ClientLibrarySettings.php | 499 +++++++ .../src/Google/Api/CommonLanguageSettings.php | 156 +++ .../api/proto/src/Google/Api/ConfigChange.php | 251 ++++ .../api/proto/src/Google/Api/Context.php | 98 ++ .../api/proto/src/Google/Api/ContextRule.php | 228 +++ .../api/proto/src/Google/Api/Control.php | 112 ++ .../api/proto/src/Google/Api/CppSettings.php | 77 + .../src/Google/Api/CustomHttpPattern.php | 101 ++ .../api/proto/src/Google/Api/Distribution.php | 390 ++++++ .../Google/Api/Distribution/BucketOptions.php | 154 ++ .../Distribution/BucketOptions/Explicit.php | 74 + .../BucketOptions/Exponential.php | 141 ++ .../Api/Distribution/BucketOptions/Linear.php | 141 ++ .../src/Google/Api/Distribution/Exemplar.php | 177 +++ .../src/Google/Api/Distribution/Range.php | 101 ++ .../proto/src/Google/Api/Documentation.php | 362 +++++ .../src/Google/Api/DocumentationRule.php | 171 +++ .../proto/src/Google/Api/DotnetSettings.php | 307 ++++ .../api/proto/src/Google/Api/Endpoint.php | 231 +++ .../api/proto/src/Google/Api/ErrorReason.php | 895 ++++++++++++ .../proto/src/Google/Api/FieldBehavior.php | 133 ++ .../api/proto/src/Google/Api/FieldInfo.php | 117 ++ .../proto/src/Google/Api/FieldInfo/Format.php | 89 ++ .../api/proto/src/Google/Api/FieldPolicy.php | 181 +++ .../FlowControlLimitExceededBehaviorProto.php | 68 + .../api/proto/src/Google/Api/GoSettings.php | 139 ++ .../api/proto/src/Google/Api/Http.php | 123 ++ .../api/proto/src/Google/Api/HttpBody.php | 168 +++ .../api/proto/src/Google/Api/HttpRule.php | 651 +++++++++ .../api/proto/src/Google/Api/JavaSettings.php | 225 +++ .../api/proto/src/Google/Api/JwtLocation.php | 199 +++ .../proto/src/Google/Api/LabelDescriptor.php | 135 ++ .../Google/Api/LabelDescriptor/ValueType.php | 61 + .../api/proto/src/Google/Api/LaunchStage.php | 118 ++ .../proto/src/Google/Api/LogDescriptor.php | 203 +++ .../api/proto/src/Google/Api/Logging.php | 151 ++ .../Google/Api/Logging/LoggingDestination.php | 122 ++ .../api/proto/src/Google/Api/MethodPolicy.php | 121 ++ .../proto/src/Google/Api/MethodSettings.php | 321 +++++ .../Google/Api/MethodSettings/LongRunning.php | 223 +++ .../api/proto/src/Google/Api/Metric.php | 114 ++ .../proto/src/Google/Api/MetricDescriptor.php | 831 +++++++++++ .../MetricDescriptorMetadata.php | 224 +++ .../TimeSeriesResourceHierarchyLevel.php | 68 + .../Api/MetricDescriptor/MetricKind.php | 74 + .../Google/Api/MetricDescriptor/ValueType.php | 91 ++ .../api/proto/src/Google/Api/MetricRule.php | 126 ++ .../src/Google/Api/MonitoredResource.php | 147 ++ .../Api/MonitoredResourceDescriptor.php | 309 ++++ .../Google/Api/MonitoredResourceMetadata.php | 148 ++ .../api/proto/src/Google/Api/Monitoring.php | 190 +++ .../Api/Monitoring/MonitoringDestination.php | 118 ++ .../api/proto/src/Google/Api/NodeSettings.php | 77 + .../src/Google/Api/OAuthRequirements.php | 96 ++ .../api/proto/src/Google/Api/Page.php | 200 +++ .../api/proto/src/Google/Api/PhpSettings.php | 147 ++ .../src/Google/Api/ProjectProperties.php | 80 ++ .../api/proto/src/Google/Api/Property.php | 142 ++ .../src/Google/Api/Property/PropertyType.php | 75 + .../api/proto/src/Google/Api/Publishing.php | 453 ++++++ .../proto/src/Google/Api/PythonSettings.php | 121 ++ .../PythonSettings/ExperimentalFeatures.php | 173 +++ .../api/proto/src/Google/Api/Quota.php | 144 ++ .../api/proto/src/Google/Api/QuotaLimit.php | 527 +++++++ .../src/Google/Api/ResourceDescriptor.php | 495 +++++++ .../Google/Api/ResourceDescriptor/History.php | 65 + .../Google/Api/ResourceDescriptor/Style.php | 59 + .../src/Google/Api/ResourceReference.php | 190 +++ .../proto/src/Google/Api/RoutingParameter.php | 281 ++++ .../api/proto/src/Google/Api/RoutingRule.php | 356 +++++ .../api/proto/src/Google/Api/RubySettings.php | 77 + .../Google/Api/SelectiveGapicGeneration.php | 126 ++ .../api/proto/src/Google/Api/Service.php | 1242 +++++++++++++++++ .../api/proto/src/Google/Api/SourceInfo.php | 67 + .../proto/src/Google/Api/SystemParameter.php | 145 ++ .../src/Google/Api/SystemParameterRule.php | 130 ++ .../proto/src/Google/Api/SystemParameters.php | 155 ++ .../proto/src/Google/Api/TypeReference.php | 91 ++ .../api/proto/src/Google/Api/Usage.php | 191 +++ .../api/proto/src/Google/Api/UsageRule.php | 175 +++ .../api/proto/src/Google/Api/Visibility.php | 88 ++ .../proto/src/Google/Api/VisibilityRule.php | 150 ++ .../Google/Cloud/ExtendedOperations.php | 24 + .../Google/Cloud/OperationResponseMapping.php | 86 ++ .../GPBMetadata/Google/Iam/V1/IamPolicy.php | 31 + .../Google/Iam/V1/Logging/AuditData.php | 25 + .../src/GPBMetadata/Google/Iam/V1/Options.php | 24 + .../src/GPBMetadata/Google/Iam/V1/Policy.php | 25 + .../Google/Iam/V1/ResourcePolicyMember.php | 25 + .../src/Google/Cloud/Iam/V1/AuditConfig.php | 155 ++ .../Google/Cloud/Iam/V1/AuditConfigDelta.php | 202 +++ .../Cloud/Iam/V1/AuditConfigDelta/Action.php | 61 + .../Google/Cloud/Iam/V1/AuditLogConfig.php | 129 ++ .../Cloud/Iam/V1/AuditLogConfig/LogType.php | 69 + .../proto/src/Google/Cloud/Iam/V1/Binding.php | 301 ++++ .../src/Google/Cloud/Iam/V1/BindingDelta.php | 200 +++ .../Cloud/Iam/V1/BindingDelta/Action.php | 61 + .../Cloud/Iam/V1/GetIamPolicyRequest.php | 119 ++ .../Google/Cloud/Iam/V1/GetPolicyOptions.php | 119 ++ .../proto/src/Google/Cloud/Iam/V1/Policy.php | 377 +++++ .../src/Google/Cloud/Iam/V1/PolicyDelta.php | 101 ++ .../Cloud/Iam/V1/ResourcePolicyMember.php | 142 ++ .../Cloud/Iam/V1/SetIamPolicyRequest.php | 183 +++ .../Iam/V1/TestIamPermissionsRequest.php | 117 ++ .../Iam/V1/TestIamPermissionsResponse.php | 71 + .../src/Google/Iam/V1/Logging/AuditData.php | 79 ++ .../Google/Iam/V1/Logging/AuditData.php | 25 + .../src/Google/Iam/V1/Logging/AuditData.php | 79 ++ .../Google/Cloud/Location/Locations.php | 27 + .../Cloud/Location/GetLocationRequest.php | 67 + .../Cloud/Location/ListLocationsRequest.php | 169 +++ .../Cloud/Location/ListLocationsResponse.php | 101 ++ .../src/Google/Cloud/Location/Location.php | 229 +++ .../Google/Logging/Type/HttpRequest.php | 25 + .../Google/Logging/Type/LogSeverity.php | 24 + .../Google/Cloud/Logging/Type/HttpRequest.php | 627 +++++++++ .../Google/Cloud/Logging/Type/LogSeverity.php | 119 ++ .../proto/src/GPBMetadata/Google/Rpc/Code.php | 24 + .../Google/Rpc/Context/AttributeContext.php | 28 + .../Google/Rpc/Context/AuditContext.php | 25 + .../GPBMetadata/Google/Rpc/ErrorDetails.php | 25 + .../src/GPBMetadata/Google/Rpc/Status.php | 25 + .../rpc/proto/src/Google/Rpc/BadRequest.php | 68 + .../Google/Rpc/BadRequest/FieldViolation.php | 315 +++++ .../rpc/proto/src/Google/Rpc/Code.php | 243 ++++ .../Google/Rpc/Context/AttributeContext.php | 419 ++++++ .../Rpc/Context/AttributeContext/Api.php | 195 +++ .../Rpc/Context/AttributeContext/Auth.php | 355 +++++ .../Rpc/Context/AttributeContext/Peer.php | 222 +++ .../Rpc/Context/AttributeContext/Request.php | 507 +++++++ .../Rpc/Context/AttributeContext/Resource.php | 613 ++++++++ .../Rpc/Context/AttributeContext/Response.php | 248 ++++ .../src/Google/Rpc/Context/AuditContext.php | 247 ++++ .../rpc/proto/src/Google/Rpc/DebugInfo.php | 101 ++ .../rpc/proto/src/Google/Rpc/ErrorInfo.php | 217 +++ .../rpc/proto/src/Google/Rpc/Help.php | 70 + .../rpc/proto/src/Google/Rpc/Help/Link.php | 101 ++ .../proto/src/Google/Rpc/LocalizedMessage.php | 110 ++ .../src/Google/Rpc/PreconditionFailure.php | 70 + .../Rpc/PreconditionFailure/Violation.php | 159 +++ .../rpc/proto/src/Google/Rpc/QuotaFailure.php | 75 + .../src/Google/Rpc/QuotaFailure/Violation.php | 500 +++++++ .../rpc/proto/src/Google/Rpc/RequestInfo.php | 110 ++ .../rpc/proto/src/Google/Rpc/ResourceInfo.php | 205 +++ .../rpc/proto/src/Google/Rpc/RetryInfo.php | 87 ++ .../rpc/proto/src/Google/Rpc/Status.php | 160 +++ .../Google/Type/CalendarPeriod.php | 24 + .../src/GPBMetadata/Google/Type/Color.php | 25 + .../src/GPBMetadata/Google/Type/Date.php | 24 + .../src/GPBMetadata/Google/Type/Datetime.php | 25 + .../src/GPBMetadata/Google/Type/Dayofweek.php | 24 + .../src/GPBMetadata/Google/Type/Decimal.php | 24 + .../src/GPBMetadata/Google/Type/Expr.php | 24 + .../src/GPBMetadata/Google/Type/Fraction.php | 24 + .../src/GPBMetadata/Google/Type/Interval.php | 25 + .../src/GPBMetadata/Google/Type/Latlng.php | 24 + .../GPBMetadata/Google/Type/LocalizedText.php | 24 + .../src/GPBMetadata/Google/Type/Money.php | 24 + .../src/GPBMetadata/Google/Type/Month.php | 24 + .../GPBMetadata/Google/Type/PhoneNumber.php | 24 + .../GPBMetadata/Google/Type/PostalAddress.php | 24 + .../GPBMetadata/Google/Type/Quaternion.php | 24 + .../src/GPBMetadata/Google/Type/Timeofday.php | 24 + .../proto/src/Google/Type/CalendarPeriod.php | 102 ++ .../type/proto/src/Google/Type/Color.php | 360 +++++ .../type/proto/src/Google/Type/Date.php | 163 +++ .../type/proto/src/Google/Type/DateTime.php | 397 ++++++ .../type/proto/src/Google/Type/DayOfWeek.php | 96 ++ .../type/proto/src/Google/Type/Decimal.php | 247 ++++ .../type/proto/src/Google/Type/Expr.php | 210 +++ .../type/proto/src/Google/Type/Fraction.php | 105 ++ .../type/proto/src/Google/Type/Interval.php | 141 ++ .../type/proto/src/Google/Type/LatLng.php | 105 ++ .../proto/src/Google/Type/LocalizedText.php | 113 ++ .../type/proto/src/Google/Type/Money.php | 159 +++ .../type/proto/src/Google/Type/Month.php | 131 ++ .../proto/src/Google/Type/PhoneNumber.php | 230 +++ .../src/Google/Type/PhoneNumber/ShortCode.php | 125 ++ .../proto/src/Google/Type/PostalAddress.php | 631 +++++++++ .../type/proto/src/Google/Type/Quaternion.php | 212 +++ .../type/proto/src/Google/Type/TimeOfDay.php | 196 +++ .../type/proto/src/Google/Type/TimeZone.php | 102 ++ 231 files changed, 34572 insertions(+) create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Annotations.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Auth.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Backend.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Billing.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Client.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/ConfigChange.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Consumer.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Context.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Control.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Distribution.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Documentation.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Endpoint.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/ErrorReason.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/FieldBehavior.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/FieldInfo.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Http.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Httpbody.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Label.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/LaunchStage.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Log.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Logging.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Metric.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/MonitoredResource.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Monitoring.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Policy.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Quota.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Resource.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Routing.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Service.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/SourceInfo.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/SystemParameter.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Usage.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Visibility.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Advice.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/AuthProvider.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/AuthRequirement.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Authentication.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/AuthenticationRule.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Backend.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/BackendRule.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/BackendRule/PathTranslation.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/BatchingConfigProto.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/BatchingDescriptorProto.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/BatchingSettingsProto.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Billing.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Billing/BillingDestination.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ChangeType.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ClientLibraryDestination.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ClientLibraryOrganization.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ClientLibrarySettings.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/CommonLanguageSettings.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ConfigChange.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Context.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ContextRule.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Control.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/CppSettings.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/CustomHttpPattern.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/BucketOptions.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/BucketOptions/Explicit.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/BucketOptions/Exponential.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/BucketOptions/Linear.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/Exemplar.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/Range.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Documentation.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/DocumentationRule.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/DotnetSettings.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Endpoint.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ErrorReason.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/FieldBehavior.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/FieldInfo.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/FieldInfo/Format.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/FieldPolicy.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/FlowControlLimitExceededBehaviorProto.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/GoSettings.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Http.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/HttpBody.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/HttpRule.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/JavaSettings.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/JwtLocation.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/LabelDescriptor.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/LabelDescriptor/ValueType.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/LaunchStage.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/LogDescriptor.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Logging.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Logging/LoggingDestination.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MethodPolicy.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MethodSettings.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MethodSettings/LongRunning.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Metric.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricDescriptor.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricDescriptor/MetricDescriptorMetadata.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricDescriptor/MetricDescriptorMetadata/TimeSeriesResourceHierarchyLevel.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricDescriptor/MetricKind.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricDescriptor/ValueType.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricRule.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MonitoredResource.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MonitoredResourceDescriptor.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MonitoredResourceMetadata.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Monitoring.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Monitoring/MonitoringDestination.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/NodeSettings.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/OAuthRequirements.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Page.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/PhpSettings.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ProjectProperties.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Property.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Property/PropertyType.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Publishing.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/PythonSettings.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/PythonSettings/ExperimentalFeatures.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Quota.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/QuotaLimit.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ResourceDescriptor.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ResourceDescriptor/History.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ResourceDescriptor/Style.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ResourceReference.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/RoutingParameter.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/RoutingRule.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/RubySettings.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/SelectiveGapicGeneration.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Service.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/SourceInfo.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/SystemParameter.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/SystemParameterRule.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/SystemParameters.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/TypeReference.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Usage.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/UsageRule.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Visibility.php create mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/VisibilityRule.php create mode 100644 owl-bot-staging/CommonProtos/extendedoperations/proto/src/GPBMetadata/Google/Cloud/ExtendedOperations.php create mode 100644 owl-bot-staging/CommonProtos/extendedoperations/proto/src/Google/Cloud/OperationResponseMapping.php create mode 100644 owl-bot-staging/CommonProtos/iam/proto/src/GPBMetadata/Google/Iam/V1/IamPolicy.php create mode 100644 owl-bot-staging/CommonProtos/iam/proto/src/GPBMetadata/Google/Iam/V1/Logging/AuditData.php create mode 100644 owl-bot-staging/CommonProtos/iam/proto/src/GPBMetadata/Google/Iam/V1/Options.php create mode 100644 owl-bot-staging/CommonProtos/iam/proto/src/GPBMetadata/Google/Iam/V1/Policy.php create mode 100644 owl-bot-staging/CommonProtos/iam/proto/src/GPBMetadata/Google/Iam/V1/ResourcePolicyMember.php create mode 100644 owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/AuditConfig.php create mode 100644 owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/AuditConfigDelta.php create mode 100644 owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/AuditConfigDelta/Action.php create mode 100644 owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/AuditLogConfig.php create mode 100644 owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/AuditLogConfig/LogType.php create mode 100644 owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/Binding.php create mode 100644 owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/BindingDelta.php create mode 100644 owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/BindingDelta/Action.php create mode 100644 owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/GetIamPolicyRequest.php create mode 100644 owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/GetPolicyOptions.php create mode 100644 owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/Policy.php create mode 100644 owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/PolicyDelta.php create mode 100644 owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/ResourcePolicyMember.php create mode 100644 owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/SetIamPolicyRequest.php create mode 100644 owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/TestIamPermissionsRequest.php create mode 100644 owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/TestIamPermissionsResponse.php create mode 100644 owl-bot-staging/CommonProtos/iam/proto/src/Google/Iam/V1/Logging/AuditData.php create mode 100644 owl-bot-staging/CommonProtos/iamlogging/proto/src/GPBMetadata/Google/Iam/V1/Logging/AuditData.php create mode 100644 owl-bot-staging/CommonProtos/iamlogging/proto/src/Google/Iam/V1/Logging/AuditData.php create mode 100644 owl-bot-staging/CommonProtos/location/proto/src/GPBMetadata/Google/Cloud/Location/Locations.php create mode 100644 owl-bot-staging/CommonProtos/location/proto/src/Google/Cloud/Location/GetLocationRequest.php create mode 100644 owl-bot-staging/CommonProtos/location/proto/src/Google/Cloud/Location/ListLocationsRequest.php create mode 100644 owl-bot-staging/CommonProtos/location/proto/src/Google/Cloud/Location/ListLocationsResponse.php create mode 100644 owl-bot-staging/CommonProtos/location/proto/src/Google/Cloud/Location/Location.php create mode 100644 owl-bot-staging/CommonProtos/logging/proto/src/GPBMetadata/Google/Logging/Type/HttpRequest.php create mode 100644 owl-bot-staging/CommonProtos/logging/proto/src/GPBMetadata/Google/Logging/Type/LogSeverity.php create mode 100644 owl-bot-staging/CommonProtos/logging/proto/src/Google/Cloud/Logging/Type/HttpRequest.php create mode 100644 owl-bot-staging/CommonProtos/logging/proto/src/Google/Cloud/Logging/Type/LogSeverity.php create mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/GPBMetadata/Google/Rpc/Code.php create mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/GPBMetadata/Google/Rpc/Context/AttributeContext.php create mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/GPBMetadata/Google/Rpc/Context/AuditContext.php create mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/GPBMetadata/Google/Rpc/ErrorDetails.php create mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/GPBMetadata/Google/Rpc/Status.php create mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/BadRequest.php create mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/BadRequest/FieldViolation.php create mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Code.php create mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext.php create mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Api.php create mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Auth.php create mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Peer.php create mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Request.php create mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Resource.php create mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Response.php create mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AuditContext.php create mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/DebugInfo.php create mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/ErrorInfo.php create mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Help.php create mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Help/Link.php create mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/LocalizedMessage.php create mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/PreconditionFailure.php create mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/PreconditionFailure/Violation.php create mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/QuotaFailure.php create mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/QuotaFailure/Violation.php create mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/RequestInfo.php create mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/ResourceInfo.php create mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/RetryInfo.php create mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Status.php create mode 100644 owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/CalendarPeriod.php create mode 100644 owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Color.php create mode 100644 owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Date.php create mode 100644 owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Datetime.php create mode 100644 owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Dayofweek.php create mode 100644 owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Decimal.php create mode 100644 owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Expr.php create mode 100644 owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Fraction.php create mode 100644 owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Interval.php create mode 100644 owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Latlng.php create mode 100644 owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/LocalizedText.php create mode 100644 owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Money.php create mode 100644 owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Month.php create mode 100644 owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/PhoneNumber.php create mode 100644 owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/PostalAddress.php create mode 100644 owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Quaternion.php create mode 100644 owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Timeofday.php create mode 100644 owl-bot-staging/CommonProtos/type/proto/src/Google/Type/CalendarPeriod.php create mode 100644 owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Color.php create mode 100644 owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Date.php create mode 100644 owl-bot-staging/CommonProtos/type/proto/src/Google/Type/DateTime.php create mode 100644 owl-bot-staging/CommonProtos/type/proto/src/Google/Type/DayOfWeek.php create mode 100644 owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Decimal.php create mode 100644 owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Expr.php create mode 100644 owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Fraction.php create mode 100644 owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Interval.php create mode 100644 owl-bot-staging/CommonProtos/type/proto/src/Google/Type/LatLng.php create mode 100644 owl-bot-staging/CommonProtos/type/proto/src/Google/Type/LocalizedText.php create mode 100644 owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Money.php create mode 100644 owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Month.php create mode 100644 owl-bot-staging/CommonProtos/type/proto/src/Google/Type/PhoneNumber.php create mode 100644 owl-bot-staging/CommonProtos/type/proto/src/Google/Type/PhoneNumber/ShortCode.php create mode 100644 owl-bot-staging/CommonProtos/type/proto/src/Google/Type/PostalAddress.php create mode 100644 owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Quaternion.php create mode 100644 owl-bot-staging/CommonProtos/type/proto/src/Google/Type/TimeOfDay.php create mode 100644 owl-bot-staging/CommonProtos/type/proto/src/Google/Type/TimeZone.php diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Annotations.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Annotations.php new file mode 100644 index 000000000000..a700b2da7a2a --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Annotations.php @@ -0,0 +1,25 @@ +internalAddGeneratedFile( + "\x0A\xC4\x01\x0A\x1Cgoogle/api/annotations.proto\x12\x0Agoogle.api\x1A google/protobuf/descriptor.protoBn\x0A\x0Ecom.google.apiB\x10AnnotationsProtoP\x01ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\xA2\x02\x04GAPIb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Auth.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Auth.php new file mode 100644 index 000000000000..24d567740772 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Auth.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\x99\x06\x0A\x15google/api/auth.proto\x12\x0Agoogle.api\"l\x0A\x0EAuthentication\x12-\x0A\x05rules\x18\x03 \x03(\x0B2\x1E.google.api.AuthenticationRule\x12+\x0A\x09providers\x18\x04 \x03(\x0B2\x18.google.api.AuthProvider\"\xA9\x01\x0A\x12AuthenticationRule\x12\x10\x0A\x08selector\x18\x01 \x01(\x09\x12,\x0A\x05oauth\x18\x02 \x01(\x0B2\x1D.google.api.OAuthRequirements\x12 \x0A\x18allow_without_credential\x18\x05 \x01(\x08\x121\x0A\x0Crequirements\x18\x07 \x03(\x0B2\x1B.google.api.AuthRequirement\"^\x0A\x0BJwtLocation\x12\x10\x0A\x06header\x18\x01 \x01(\x09H\x00\x12\x0F\x0A\x05query\x18\x02 \x01(\x09H\x00\x12\x10\x0A\x06cookie\x18\x04 \x01(\x09H\x00\x12\x14\x0A\x0Cvalue_prefix\x18\x03 \x01(\x09B\x04\x0A\x02in\"\x9A\x01\x0A\x0CAuthProvider\x12\x0A\x0A\x02id\x18\x01 \x01(\x09\x12\x0E\x0A\x06issuer\x18\x02 \x01(\x09\x12\x10\x0A\x08jwks_uri\x18\x03 \x01(\x09\x12\x11\x0A\x09audiences\x18\x04 \x01(\x09\x12\x19\x0A\x11authorization_url\x18\x05 \x01(\x09\x12.\x0A\x0Djwt_locations\x18\x06 \x03(\x0B2\x17.google.api.JwtLocation\"-\x0A\x11OAuthRequirements\x12\x18\x0A\x10canonical_scopes\x18\x01 \x01(\x09\"9\x0A\x0FAuthRequirement\x12\x13\x0A\x0Bprovider_id\x18\x01 \x01(\x09\x12\x11\x0A\x09audiences\x18\x02 \x01(\x09Bk\x0A\x0Ecom.google.apiB\x09AuthProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xA2\x02\x04GAPIb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Backend.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Backend.php new file mode 100644 index 000000000000..9808979ecdbc --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Backend.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\xA5\x06\x0A\x18google/api/backend.proto\x12\x0Agoogle.api\"1\x0A\x07Backend\x12&\x0A\x05rules\x18\x01 \x03(\x0B2\x17.google.api.BackendRule\"\xD1\x04\x0A\x0BBackendRule\x12\x10\x0A\x08selector\x18\x01 \x01(\x09\x12\x0F\x0A\x07address\x18\x02 \x01(\x09\x12\x10\x0A\x08deadline\x18\x03 \x01(\x01\x12\x18\x0A\x0Cmin_deadline\x18\x04 \x01(\x01B\x02\x18\x01\x12\x1A\x0A\x12operation_deadline\x18\x05 \x01(\x01\x12A\x0A\x10path_translation\x18\x06 \x01(\x0E2'.google.api.BackendRule.PathTranslation\x12\x16\x0A\x0Cjwt_audience\x18\x07 \x01(\x09H\x00\x12\x16\x0A\x0Cdisable_auth\x18\x08 \x01(\x08H\x00\x12\x10\x0A\x08protocol\x18\x09 \x01(\x09\x12^\x0A\x1Doverrides_by_request_protocol\x18\x0A \x03(\x0B27.google.api.BackendRule.OverridesByRequestProtocolEntry\x12\x1D\x0A\x15load_balancing_policy\x18\x0B \x01(\x09\x1AZ\x0A\x1FOverridesByRequestProtocolEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12&\x0A\x05value\x18\x02 \x01(\x0B2\x17.google.api.BackendRule:\x028\x01\"e\x0A\x0FPathTranslation\x12 \x0A\x1CPATH_TRANSLATION_UNSPECIFIED\x10\x00\x12\x14\x0A\x10CONSTANT_ADDRESS\x10\x01\x12\x1A\x0A\x16APPEND_PATH_TO_ADDRESS\x10\x02B\x10\x0A\x0EauthenticationBn\x0A\x0Ecom.google.apiB\x0CBackendProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xA2\x02\x04GAPIb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Billing.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Billing.php new file mode 100644 index 000000000000..0bfe90cbb1b2 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Billing.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\xB4\x02\x0A\x18google/api/billing.proto\x12\x0Agoogle.api\"\x93\x01\x0A\x07Billing\x12E\x0A\x15consumer_destinations\x18\x08 \x03(\x0B2&.google.api.Billing.BillingDestination\x1AA\x0A\x12BillingDestination\x12\x1A\x0A\x12monitored_resource\x18\x01 \x01(\x09\x12\x0F\x0A\x07metrics\x18\x02 \x03(\x09Bn\x0A\x0Ecom.google.apiB\x0CBillingProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xA2\x02\x04GAPIb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Client.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Client.php new file mode 100644 index 000000000000..40704b602b2f --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Client.php @@ -0,0 +1,26 @@ +internalAddGeneratedFile( + "\x0A\x95!\x0A\x17google/api/client.proto\x12\x0Agoogle.api\x1A google/protobuf/descriptor.proto\x1A\x1Egoogle/protobuf/duration.proto\"\xBE\x01\x0A\x16CommonLanguageSettings\x12\x1E\x0A\x12reference_docs_uri\x18\x01 \x01(\x09B\x02\x18\x01\x12:\x0A\x0Cdestinations\x18\x02 \x03(\x0E2\$.google.api.ClientLibraryDestination\x12H\x0A\x1Aselective_gapic_generation\x18\x03 \x01(\x0B2\$.google.api.SelectiveGapicGeneration\"\xFB\x03\x0A\x15ClientLibrarySettings\x12\x0F\x0A\x07version\x18\x01 \x01(\x09\x12-\x0A\x0Claunch_stage\x18\x02 \x01(\x0E2\x17.google.api.LaunchStage\x12\x1A\x0A\x12rest_numeric_enums\x18\x03 \x01(\x08\x12/\x0A\x0Djava_settings\x18\x15 \x01(\x0B2\x18.google.api.JavaSettings\x12-\x0A\x0Ccpp_settings\x18\x16 \x01(\x0B2\x17.google.api.CppSettings\x12-\x0A\x0Cphp_settings\x18\x17 \x01(\x0B2\x17.google.api.PhpSettings\x123\x0A\x0Fpython_settings\x18\x18 \x01(\x0B2\x1A.google.api.PythonSettings\x12/\x0A\x0Dnode_settings\x18\x19 \x01(\x0B2\x18.google.api.NodeSettings\x123\x0A\x0Fdotnet_settings\x18\x1A \x01(\x0B2\x1A.google.api.DotnetSettings\x12/\x0A\x0Druby_settings\x18\x1B \x01(\x0B2\x18.google.api.RubySettings\x12+\x0A\x0Bgo_settings\x18\x1C \x01(\x0B2\x16.google.api.GoSettings\"\xA8\x03\x0A\x0APublishing\x123\x0A\x0Fmethod_settings\x18\x02 \x03(\x0B2\x1A.google.api.MethodSettings\x12\x15\x0A\x0Dnew_issue_uri\x18e \x01(\x09\x12\x19\x0A\x11documentation_uri\x18f \x01(\x09\x12\x16\x0A\x0Eapi_short_name\x18g \x01(\x09\x12\x14\x0A\x0Cgithub_label\x18h \x01(\x09\x12\x1E\x0A\x16codeowner_github_teams\x18i \x03(\x09\x12\x16\x0A\x0Edoc_tag_prefix\x18j \x01(\x09\x12;\x0A\x0Corganization\x18k \x01(\x0E2%.google.api.ClientLibraryOrganization\x12;\x0A\x10library_settings\x18m \x03(\x0B2!.google.api.ClientLibrarySettings\x12)\x0A!proto_reference_documentation_uri\x18n \x01(\x09\x12(\x0A rest_reference_documentation_uri\x18o \x01(\x09\"\xE3\x01\x0A\x0CJavaSettings\x12\x17\x0A\x0Flibrary_package\x18\x01 \x01(\x09\x12L\x0A\x13service_class_names\x18\x02 \x03(\x0B2/.google.api.JavaSettings.ServiceClassNamesEntry\x122\x0A\x06common\x18\x03 \x01(\x0B2\".google.api.CommonLanguageSettings\x1A8\x0A\x16ServiceClassNamesEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"A\x0A\x0BCppSettings\x122\x0A\x06common\x18\x01 \x01(\x0B2\".google.api.CommonLanguageSettings\"Z\x0A\x0BPhpSettings\x122\x0A\x06common\x18\x01 \x01(\x0B2\".google.api.CommonLanguageSettings\x12\x17\x0A\x0Flibrary_package\x18\x02 \x01(\x09\"\x9B\x02\x0A\x0EPythonSettings\x122\x0A\x06common\x18\x01 \x01(\x0B2\".google.api.CommonLanguageSettings\x12N\x0A\x15experimental_features\x18\x02 \x01(\x0B2/.google.api.PythonSettings.ExperimentalFeatures\x1A\x84\x01\x0A\x14ExperimentalFeatures\x12\x1D\x0A\x15rest_async_io_enabled\x18\x01 \x01(\x08\x12'\x0A\x1Fprotobuf_pythonic_types_enabled\x18\x02 \x01(\x08\x12\$\x0A\x1Cunversioned_package_disabled\x18\x03 \x01(\x08\"B\x0A\x0CNodeSettings\x122\x0A\x06common\x18\x01 \x01(\x0B2\".google.api.CommonLanguageSettings\"\xAA\x03\x0A\x0EDotnetSettings\x122\x0A\x06common\x18\x01 \x01(\x0B2\".google.api.CommonLanguageSettings\x12I\x0A\x10renamed_services\x18\x02 \x03(\x0B2/.google.api.DotnetSettings.RenamedServicesEntry\x12K\x0A\x11renamed_resources\x18\x03 \x03(\x0B20.google.api.DotnetSettings.RenamedResourcesEntry\x12\x19\x0A\x11ignored_resources\x18\x04 \x03(\x09\x12 \x0A\x18forced_namespace_aliases\x18\x05 \x03(\x09\x12\x1E\x0A\x16handwritten_signatures\x18\x06 \x03(\x09\x1A6\x0A\x14RenamedServicesEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\x1A7\x0A\x15RenamedResourcesEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"B\x0A\x0CRubySettings\x122\x0A\x06common\x18\x01 \x01(\x0B2\".google.api.CommonLanguageSettings\"\xBF\x01\x0A\x0AGoSettings\x122\x0A\x06common\x18\x01 \x01(\x0B2\".google.api.CommonLanguageSettings\x12E\x0A\x10renamed_services\x18\x02 \x03(\x0B2+.google.api.GoSettings.RenamedServicesEntry\x1A6\x0A\x14RenamedServicesEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"\x82\x03\x0A\x0EMethodSettings\x12\x10\x0A\x08selector\x18\x01 \x01(\x09\x12<\x0A\x0Clong_running\x18\x02 \x01(\x0B2&.google.api.MethodSettings.LongRunning\x12\x1D\x0A\x15auto_populated_fields\x18\x03 \x03(\x09\x121\x0A\x08batching\x18\x04 \x01(\x0B2\x1F.google.api.BatchingConfigProto\x1A\xCD\x01\x0A\x0BLongRunning\x125\x0A\x12initial_poll_delay\x18\x01 \x01(\x0B2\x19.google.protobuf.Duration\x12\x1D\x0A\x15poll_delay_multiplier\x18\x02 \x01(\x02\x121\x0A\x0Emax_poll_delay\x18\x03 \x01(\x0B2\x19.google.protobuf.Duration\x125\x0A\x12total_poll_timeout\x18\x04 \x01(\x0B2\x19.google.protobuf.Duration\"Q\x0A\x18SelectiveGapicGeneration\x12\x0F\x0A\x07methods\x18\x01 \x03(\x09\x12\$\x0A\x1Cgenerate_omitted_as_internal\x18\x02 \x01(\x08\"\x8B\x01\x0A\x13BatchingConfigProto\x125\x0A\x0Athresholds\x18\x01 \x01(\x0B2!.google.api.BatchingSettingsProto\x12=\x0A\x10batch_descriptor\x18\x02 \x01(\x0B2#.google.api.BatchingDescriptorProto\"\xEB\x02\x0A\x15BatchingSettingsProto\x12\x1F\x0A\x17element_count_threshold\x18\x01 \x01(\x05\x12\x1E\x0A\x16request_byte_threshold\x18\x02 \x01(\x03\x122\x0A\x0Fdelay_threshold\x18\x03 \x01(\x0B2\x19.google.protobuf.Duration\x12\x1B\x0A\x13element_count_limit\x18\x04 \x01(\x05\x12\x1A\x0A\x12request_byte_limit\x18\x05 \x01(\x05\x12\"\x0A\x1Aflow_control_element_limit\x18\x06 \x01(\x05\x12\x1F\x0A\x17flow_control_byte_limit\x18\x07 \x01(\x05\x12_\x0A\$flow_control_limit_exceeded_behavior\x18\x08 \x01(\x0E21.google.api.FlowControlLimitExceededBehaviorProto\"i\x0A\x17BatchingDescriptorProto\x12\x15\x0A\x0Dbatched_field\x18\x01 \x01(\x09\x12\x1C\x0A\x14discriminator_fields\x18\x02 \x03(\x09\x12\x19\x0A\x11subresponse_field\x18\x03 \x01(\x09*\xA3\x01\x0A\x19ClientLibraryOrganization\x12+\x0A'CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED\x10\x00\x12\x09\x0A\x05CLOUD\x10\x01\x12\x07\x0A\x03ADS\x10\x02\x12\x0A\x0A\x06PHOTOS\x10\x03\x12\x0F\x0A\x0BSTREET_VIEW\x10\x04\x12\x0C\x0A\x08SHOPPING\x10\x05\x12\x07\x0A\x03GEO\x10\x06\x12\x11\x0A\x0DGENERATIVE_AI\x10\x07*g\x0A\x18ClientLibraryDestination\x12*\x0A&CLIENT_LIBRARY_DESTINATION_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06GITHUB\x10\x0A\x12\x13\x0A\x0FPACKAGE_MANAGER\x10\x14*g\x0A%FlowControlLimitExceededBehaviorProto\x12\x12\x0A\x0EUNSET_BEHAVIOR\x10\x00\x12\x13\x0A\x0FTHROW_EXCEPTION\x10\x01\x12\x09\x0A\x05BLOCK\x10\x02\x12\x0A\x0A\x06IGNORE\x10\x03Bi\x0A\x0Ecom.google.apiB\x0BClientProtoP\x01ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\xA2\x02\x04GAPIb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/ConfigChange.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/ConfigChange.php new file mode 100644 index 000000000000..82abb6653244 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/ConfigChange.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\xB1\x03\x0A\x1Egoogle/api/config_change.proto\x12\x0Agoogle.api\"\x97\x01\x0A\x0CConfigChange\x12\x0F\x0A\x07element\x18\x01 \x01(\x09\x12\x11\x0A\x09old_value\x18\x02 \x01(\x09\x12\x11\x0A\x09new_value\x18\x03 \x01(\x09\x12+\x0A\x0Bchange_type\x18\x04 \x01(\x0E2\x16.google.api.ChangeType\x12#\x0A\x07advices\x18\x05 \x03(\x0B2\x12.google.api.Advice\"\x1D\x0A\x06Advice\x12\x13\x0A\x0Bdescription\x18\x02 \x01(\x09*O\x0A\x0AChangeType\x12\x1B\x0A\x17CHANGE_TYPE_UNSPECIFIED\x10\x00\x12\x09\x0A\x05ADDED\x10\x01\x12\x0B\x0A\x07REMOVED\x10\x02\x12\x0C\x0A\x08MODIFIED\x10\x03Bq\x0A\x0Ecom.google.apiB\x11ConfigChangeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/api/configchange;configchange\xA2\x02\x04GAPIb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Consumer.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Consumer.php new file mode 100644 index 000000000000..3e59e137926a --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Consumer.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\x87\x03\x0A\x19google/api/consumer.proto\x12\x0Agoogle.api\"=\x0A\x11ProjectProperties\x12(\x0A\x0Aproperties\x18\x01 \x03(\x0B2\x14.google.api.Property\"\xAC\x01\x0A\x08Property\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12/\x0A\x04type\x18\x02 \x01(\x0E2!.google.api.Property.PropertyType\x12\x13\x0A\x0Bdescription\x18\x03 \x01(\x09\"L\x0A\x0CPropertyType\x12\x0F\x0A\x0BUNSPECIFIED\x10\x00\x12\x09\x0A\x05INT64\x10\x01\x12\x08\x0A\x04BOOL\x10\x02\x12\x0A\x0A\x06STRING\x10\x03\x12\x0A\x0A\x06DOUBLE\x10\x04Bh\x0A\x0Ecom.google.apiB\x0DConsumerProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfigb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Context.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Context.php new file mode 100644 index 000000000000..b06c93bd719f --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Context.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\xE1\x02\x0A\x18google/api/context.proto\x12\x0Agoogle.api\"1\x0A\x07Context\x12&\x0A\x05rules\x18\x01 \x03(\x0B2\x17.google.api.ContextRule\"\x8D\x01\x0A\x0BContextRule\x12\x10\x0A\x08selector\x18\x01 \x01(\x09\x12\x11\x0A\x09requested\x18\x02 \x03(\x09\x12\x10\x0A\x08provided\x18\x03 \x03(\x09\x12\"\x0A\x1Aallowed_request_extensions\x18\x04 \x03(\x09\x12#\x0A\x1Ballowed_response_extensions\x18\x05 \x03(\x09Bn\x0A\x0Ecom.google.apiB\x0CContextProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xA2\x02\x04GAPIb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Control.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Control.php new file mode 100644 index 000000000000..ae0f4142baea --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Control.php @@ -0,0 +1,25 @@ +internalAddGeneratedFile( + "\x0A\xF1\x01\x0A\x18google/api/control.proto\x12\x0Agoogle.api\"Q\x0A\x07Control\x12\x13\x0A\x0Benvironment\x18\x01 \x01(\x09\x121\x0A\x0Fmethod_policies\x18\x04 \x03(\x0B2\x18.google.api.MethodPolicyBn\x0A\x0Ecom.google.apiB\x0CControlProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xA2\x02\x04GAPIb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Distribution.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Distribution.php new file mode 100644 index 000000000000..90f51fe3e87c --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Distribution.php @@ -0,0 +1,26 @@ +internalAddGeneratedFile( + "\x0A\xA3\x08\x0A\x1Dgoogle/api/distribution.proto\x12\x0Agoogle.api\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xD9\x06\x0A\x0CDistribution\x12\x0D\x0A\x05count\x18\x01 \x01(\x03\x12\x0C\x0A\x04mean\x18\x02 \x01(\x01\x12 \x0A\x18sum_of_squared_deviation\x18\x03 \x01(\x01\x12-\x0A\x05range\x18\x04 \x01(\x0B2\x1E.google.api.Distribution.Range\x12>\x0A\x0Ebucket_options\x18\x06 \x01(\x0B2&.google.api.Distribution.BucketOptions\x12\x15\x0A\x0Dbucket_counts\x18\x07 \x03(\x03\x124\x0A\x09exemplars\x18\x0A \x03(\x0B2!.google.api.Distribution.Exemplar\x1A!\x0A\x05Range\x12\x0B\x0A\x03min\x18\x01 \x01(\x01\x12\x0B\x0A\x03max\x18\x02 \x01(\x01\x1A\xB5\x03\x0A\x0DBucketOptions\x12G\x0A\x0Elinear_buckets\x18\x01 \x01(\x0B2-.google.api.Distribution.BucketOptions.LinearH\x00\x12Q\x0A\x13exponential_buckets\x18\x02 \x01(\x0B22.google.api.Distribution.BucketOptions.ExponentialH\x00\x12K\x0A\x10explicit_buckets\x18\x03 \x01(\x0B2/.google.api.Distribution.BucketOptions.ExplicitH\x00\x1AC\x0A\x06Linear\x12\x1A\x0A\x12num_finite_buckets\x18\x01 \x01(\x05\x12\x0D\x0A\x05width\x18\x02 \x01(\x01\x12\x0E\x0A\x06offset\x18\x03 \x01(\x01\x1AO\x0A\x0BExponential\x12\x1A\x0A\x12num_finite_buckets\x18\x01 \x01(\x05\x12\x15\x0A\x0Dgrowth_factor\x18\x02 \x01(\x01\x12\x0D\x0A\x05scale\x18\x03 \x01(\x01\x1A\x1A\x0A\x08Explicit\x12\x0E\x0A\x06bounds\x18\x01 \x03(\x01B\x09\x0A\x07options\x1As\x0A\x08Exemplar\x12\x0D\x0A\x05value\x18\x01 \x01(\x01\x12-\x0A\x09timestamp\x18\x02 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12)\x0A\x0Battachments\x18\x03 \x03(\x0B2\x14.google.protobuf.AnyBq\x0A\x0Ecom.google.apiB\x11DistributionProtoP\x01ZCgoogle.golang.org/genproto/googleapis/api/distribution;distribution\xA2\x02\x04GAPIb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Documentation.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Documentation.php new file mode 100644 index 000000000000..a83176a54c3e --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Documentation.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\x90\x04\x0A\x1Egoogle/api/documentation.proto\x12\x0Agoogle.api\"\xBB\x01\x0A\x0DDocumentation\x12\x0F\x0A\x07summary\x18\x01 \x01(\x09\x12\x1F\x0A\x05pages\x18\x05 \x03(\x0B2\x10.google.api.Page\x12,\x0A\x05rules\x18\x03 \x03(\x0B2\x1D.google.api.DocumentationRule\x12\x1E\x0A\x16documentation_root_url\x18\x04 \x01(\x09\x12\x18\x0A\x10service_root_url\x18\x06 \x01(\x09\x12\x10\x0A\x08overview\x18\x02 \x01(\x09\"[\x0A\x11DocumentationRule\x12\x10\x0A\x08selector\x18\x01 \x01(\x09\x12\x13\x0A\x0Bdescription\x18\x02 \x01(\x09\x12\x1F\x0A\x17deprecation_description\x18\x03 \x01(\x09\"I\x0A\x04Page\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12\x0F\x0A\x07content\x18\x02 \x01(\x09\x12\"\x0A\x08subpages\x18\x03 \x03(\x0B2\x10.google.api.PageBt\x0A\x0Ecom.google.apiB\x12DocumentationProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xA2\x02\x04GAPIb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Endpoint.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Endpoint.php new file mode 100644 index 000000000000..1e4fb87a4de6 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Endpoint.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\xEF\x01\x0A\x19google/api/endpoint.proto\x12\x0Agoogle.api\"M\x0A\x08Endpoint\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12\x0F\x0A\x07aliases\x18\x02 \x03(\x09\x12\x0E\x0A\x06target\x18e \x01(\x09\x12\x12\x0A\x0Aallow_cors\x18\x05 \x01(\x08Bo\x0A\x0Ecom.google.apiB\x0DEndpointProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xA2\x02\x04GAPIb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/ErrorReason.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/ErrorReason.php new file mode 100644 index 000000000000..d38f6fcc5c41 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/ErrorReason.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\xBA\x0B\x0A\x1Dgoogle/api/error_reason.proto\x12\x0Agoogle.api*\x92\x0A\x0A\x0BErrorReason\x12\x1C\x0A\x18ERROR_REASON_UNSPECIFIED\x10\x00\x12\x14\x0A\x10SERVICE_DISABLED\x10\x01\x12\x14\x0A\x10BILLING_DISABLED\x10\x02\x12\x13\x0A\x0FAPI_KEY_INVALID\x10\x03\x12\x1B\x0A\x17API_KEY_SERVICE_BLOCKED\x10\x04\x12!\x0A\x1DAPI_KEY_HTTP_REFERRER_BLOCKED\x10\x07\x12\x1E\x0A\x1AAPI_KEY_IP_ADDRESS_BLOCKED\x10\x08\x12\x1F\x0A\x1BAPI_KEY_ANDROID_APP_BLOCKED\x10\x09\x12\x1B\x0A\x17API_KEY_IOS_APP_BLOCKED\x10\x0D\x12\x17\x0A\x13RATE_LIMIT_EXCEEDED\x10\x05\x12\x1B\x0A\x17RESOURCE_QUOTA_EXCEEDED\x10\x06\x12 \x0A\x1CLOCATION_TAX_POLICY_VIOLATED\x10\x0A\x12\x17\x0A\x13USER_PROJECT_DENIED\x10\x0B\x12\x16\x0A\x12CONSUMER_SUSPENDED\x10\x0C\x12\x14\x0A\x10CONSUMER_INVALID\x10\x0E\x12\x1C\x0A\x18SECURITY_POLICY_VIOLATED\x10\x0F\x12\x18\x0A\x14ACCESS_TOKEN_EXPIRED\x10\x10\x12#\x0A\x1FACCESS_TOKEN_SCOPE_INSUFFICIENT\x10\x11\x12\x19\x0A\x15ACCOUNT_STATE_INVALID\x10\x12\x12!\x0A\x1DACCESS_TOKEN_TYPE_UNSUPPORTED\x10\x13\x12\x17\x0A\x13CREDENTIALS_MISSING\x10\x14\x12\x1C\x0A\x18RESOURCE_PROJECT_INVALID\x10\x15\x12\x1A\x0A\x16SESSION_COOKIE_INVALID\x10\x17\x12\x19\x0A\x15USER_BLOCKED_BY_ADMIN\x10\x18\x12'\x0A#RESOURCE_USAGE_RESTRICTION_VIOLATED\x10\x19\x12 \x0A\x1CSYSTEM_PARAMETER_UNSUPPORTED\x10\x1A\x12\x1D\x0A\x19ORG_RESTRICTION_VIOLATION\x10\x1B\x12\"\x0A\x1EORG_RESTRICTION_HEADER_INVALID\x10\x1C\x12\x17\x0A\x13SERVICE_NOT_VISIBLE\x10\x1D\x12\x11\x0A\x0DGCP_SUSPENDED\x10\x1E\x12\x1C\x0A\x18LOCATION_POLICY_VIOLATED\x10\x1F\x12\x12\x0A\x0EMISSING_ORIGIN\x10!\x12\x1A\x0A\x16OVERLOADED_CREDENTIALS\x10\"\x12 \x0A\x1CLOCATION_ORG_POLICY_VIOLATED\x10#\x12\x1B\x0A\x17TLS_ORG_POLICY_VIOLATED\x10\$\x12\x1B\x0A\x17EMULATOR_QUOTA_EXCEEDED\x10&\x12\"\x0A\x1ECREDENTIAL_ANDROID_APP_INVALID\x10'\x12\x19\x0A\x15IAM_PERMISSION_DENIED\x10)\x12\x15\x0A\x11JWT_TOKEN_INVALID\x10*\x12\x1F\x0A\x1BCREDENTIAL_TYPE_UNSUPPORTED\x10+\x12\x1C\x0A\x18ACCOUNT_TYPE_UNSUPPORTED\x10,\x12'\x0A#ENDPOINT_USAGE_RESTRICTION_VIOLATED\x10-\x12#\x0A\x1FTLS_CIPHER_RESTRICTION_VIOLATED\x10.\x12\x17\x0A\x13MCP_SERVER_DISABLED\x10/Bp\x0A\x0Ecom.google.apiB\x10ErrorReasonProtoP\x01ZCgoogle.golang.org/genproto/googleapis/api/error_reason;error_reason\xA2\x02\x04GAPIb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/FieldBehavior.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/FieldBehavior.php new file mode 100644 index 000000000000..72cc2439c61f --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/FieldBehavior.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\x82\x03\x0A\x1Fgoogle/api/field_behavior.proto\x12\x0Agoogle.api\x1A google/protobuf/descriptor.proto*\xB6\x01\x0A\x0DFieldBehavior\x12\x1E\x0A\x1AFIELD_BEHAVIOR_UNSPECIFIED\x10\x00\x12\x0C\x0A\x08OPTIONAL\x10\x01\x12\x0C\x0A\x08REQUIRED\x10\x02\x12\x0F\x0A\x0BOUTPUT_ONLY\x10\x03\x12\x0E\x0A\x0AINPUT_ONLY\x10\x04\x12\x0D\x0A\x09IMMUTABLE\x10\x05\x12\x12\x0A\x0EUNORDERED_LIST\x10\x06\x12\x15\x0A\x11NON_EMPTY_DEFAULT\x10\x07\x12\x0E\x0A\x0AIDENTIFIER\x10\x08Bp\x0A\x0Ecom.google.apiB\x12FieldBehaviorProtoP\x01ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\xA2\x02\x04GAPIb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/FieldInfo.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/FieldInfo.php new file mode 100644 index 000000000000..b699c4dcd537 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/FieldInfo.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\xA9\x03\x0A\x1Bgoogle/api/field_info.proto\x12\x0Agoogle.api\x1A google/protobuf/descriptor.proto\"\xC1\x01\x0A\x09FieldInfo\x12,\x0A\x06format\x18\x01 \x01(\x0E2\x1C.google.api.FieldInfo.Format\x123\x0A\x10referenced_types\x18\x02 \x03(\x0B2\x19.google.api.TypeReference\"Q\x0A\x06Format\x12\x16\x0A\x12FORMAT_UNSPECIFIED\x10\x00\x12\x09\x0A\x05UUID4\x10\x01\x12\x08\x0A\x04IPV4\x10\x02\x12\x08\x0A\x04IPV6\x10\x03\x12\x10\x0A\x0CIPV4_OR_IPV6\x10\x04\"\"\x0A\x0DTypeReference\x12\x11\x0A\x09type_name\x18\x01 \x01(\x09Bl\x0A\x0Ecom.google.apiB\x0EFieldInfoProtoP\x01ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\xA2\x02\x04GAPIb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Http.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Http.php new file mode 100644 index 000000000000..2798dde48900 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Http.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\x9F\x04\x0A\x15google/api/http.proto\x12\x0Agoogle.api\"T\x0A\x04Http\x12#\x0A\x05rules\x18\x01 \x03(\x0B2\x14.google.api.HttpRule\x12'\x0A\x1Ffully_decode_reserved_expansion\x18\x02 \x01(\x08\"\x81\x02\x0A\x08HttpRule\x12\x10\x0A\x08selector\x18\x01 \x01(\x09\x12\x0D\x0A\x03get\x18\x02 \x01(\x09H\x00\x12\x0D\x0A\x03put\x18\x03 \x01(\x09H\x00\x12\x0E\x0A\x04post\x18\x04 \x01(\x09H\x00\x12\x10\x0A\x06delete\x18\x05 \x01(\x09H\x00\x12\x0F\x0A\x05patch\x18\x06 \x01(\x09H\x00\x12/\x0A\x06custom\x18\x08 \x01(\x0B2\x1D.google.api.CustomHttpPatternH\x00\x12\x0C\x0A\x04body\x18\x07 \x01(\x09\x12\x15\x0A\x0Dresponse_body\x18\x0C \x01(\x09\x121\x0A\x13additional_bindings\x18\x0B \x03(\x0B2\x14.google.api.HttpRuleB\x09\x0A\x07pattern\"/\x0A\x11CustomHttpPattern\x12\x0C\x0A\x04kind\x18\x01 \x01(\x09\x12\x0C\x0A\x04path\x18\x02 \x01(\x09Bg\x0A\x0Ecom.google.apiB\x09HttpProtoP\x01ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\xA2\x02\x04GAPIb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Httpbody.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Httpbody.php new file mode 100644 index 000000000000..414f11115319 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Httpbody.php @@ -0,0 +1,25 @@ +internalAddGeneratedFile( + "\x0A\xF0\x01\x0A\x19google/api/httpbody.proto\x12\x0Agoogle.api\"X\x0A\x08HttpBody\x12\x14\x0A\x0Ccontent_type\x18\x01 \x01(\x09\x12\x0C\x0A\x04data\x18\x02 \x01(\x0C\x12(\x0A\x0Aextensions\x18\x03 \x03(\x0B2\x14.google.protobuf.AnyBe\x0A\x0Ecom.google.apiB\x0DHttpBodyProtoP\x01Z;google.golang.org/genproto/googleapis/api/httpbody;httpbody\xA2\x02\x04GAPIb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Label.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Label.php new file mode 100644 index 000000000000..d076fa333968 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Label.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\xA9\x02\x0A\x16google/api/label.proto\x12\x0Agoogle.api\"\x9C\x01\x0A\x0FLabelDescriptor\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x129\x0A\x0Avalue_type\x18\x02 \x01(\x0E2%.google.api.LabelDescriptor.ValueType\x12\x13\x0A\x0Bdescription\x18\x03 \x01(\x09\",\x0A\x09ValueType\x12\x0A\x0A\x06STRING\x10\x00\x12\x08\x0A\x04BOOL\x10\x01\x12\x09\x0A\x05INT64\x10\x02B\\\x0A\x0Ecom.google.apiB\x0ALabelProtoP\x01Z5google.golang.org/genproto/googleapis/api/label;label\xA2\x02\x04GAPIb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/LaunchStage.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/LaunchStage.php new file mode 100644 index 000000000000..6fd92a165718 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/LaunchStage.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\x9E\x02\x0A\x1Dgoogle/api/launch_stage.proto\x12\x0Agoogle.api*\x8C\x01\x0A\x0BLaunchStage\x12\x1C\x0A\x18LAUNCH_STAGE_UNSPECIFIED\x10\x00\x12\x11\x0A\x0DUNIMPLEMENTED\x10\x06\x12\x0D\x0A\x09PRELAUNCH\x10\x07\x12\x10\x0A\x0CEARLY_ACCESS\x10\x01\x12\x09\x0A\x05ALPHA\x10\x02\x12\x08\x0A\x04BETA\x10\x03\x12\x06\x0A\x02GA\x10\x04\x12\x0E\x0A\x0ADEPRECATED\x10\x05BZ\x0A\x0Ecom.google.apiB\x10LaunchStageProtoP\x01Z-google.golang.org/genproto/googleapis/api;api\xA2\x02\x04GAPIb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Log.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Log.php new file mode 100644 index 000000000000..5f7c45af5ae5 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Log.php @@ -0,0 +1,25 @@ +internalAddGeneratedFile( + "\x0A\x8D\x02\x0A\x14google/api/log.proto\x12\x0Agoogle.api\"u\x0A\x0DLogDescriptor\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12+\x0A\x06labels\x18\x02 \x03(\x0B2\x1B.google.api.LabelDescriptor\x12\x13\x0A\x0Bdescription\x18\x03 \x01(\x09\x12\x14\x0A\x0Cdisplay_name\x18\x04 \x01(\x09Bj\x0A\x0Ecom.google.apiB\x08LogProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xA2\x02\x04GAPIb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Logging.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Logging.php new file mode 100644 index 000000000000..921a88c8432e --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Logging.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\xF8\x02\x0A\x18google/api/logging.proto\x12\x0Agoogle.api\"\xD7\x01\x0A\x07Logging\x12E\x0A\x15producer_destinations\x18\x01 \x03(\x0B2&.google.api.Logging.LoggingDestination\x12E\x0A\x15consumer_destinations\x18\x02 \x03(\x0B2&.google.api.Logging.LoggingDestination\x1A>\x0A\x12LoggingDestination\x12\x1A\x0A\x12monitored_resource\x18\x03 \x01(\x09\x12\x0C\x0A\x04logs\x18\x01 \x03(\x09Bn\x0A\x0Ecom.google.apiB\x0CLoggingProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xA2\x02\x04GAPIb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Metric.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Metric.php new file mode 100644 index 000000000000..bac797115c35 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Metric.php @@ -0,0 +1,27 @@ +internalAddGeneratedFile( + "\x0A\xF3\x0A\x0A\x17google/api/metric.proto\x12\x0Agoogle.api\x1A\x1Dgoogle/api/launch_stage.proto\x1A\x1Egoogle/protobuf/duration.proto\"\xAC\x08\x0A\x10MetricDescriptor\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12\x0C\x0A\x04type\x18\x08 \x01(\x09\x12+\x0A\x06labels\x18\x02 \x03(\x0B2\x1B.google.api.LabelDescriptor\x12<\x0A\x0Bmetric_kind\x18\x03 \x01(\x0E2'.google.api.MetricDescriptor.MetricKind\x12:\x0A\x0Avalue_type\x18\x04 \x01(\x0E2&.google.api.MetricDescriptor.ValueType\x12\x0C\x0A\x04unit\x18\x05 \x01(\x09\x12\x13\x0A\x0Bdescription\x18\x06 \x01(\x09\x12\x14\x0A\x0Cdisplay_name\x18\x07 \x01(\x09\x12G\x0A\x08metadata\x18\x0A \x01(\x0B25.google.api.MetricDescriptor.MetricDescriptorMetadata\x12-\x0A\x0Claunch_stage\x18\x0C \x01(\x0E2\x17.google.api.LaunchStage\x12 \x0A\x18monitored_resource_types\x18\x0D \x03(\x09\x1A\xBD\x03\x0A\x18MetricDescriptorMetadata\x121\x0A\x0Claunch_stage\x18\x01 \x01(\x0E2\x17.google.api.LaunchStageB\x02\x18\x01\x120\x0A\x0Dsample_period\x18\x02 \x01(\x0B2\x19.google.protobuf.Duration\x12/\x0A\x0Cingest_delay\x18\x03 \x01(\x0B2\x19.google.protobuf.Duration\x12\x84\x01\x0A\$time_series_resource_hierarchy_level\x18\x04 \x03(\x0E2V.google.api.MetricDescriptor.MetricDescriptorMetadata.TimeSeriesResourceHierarchyLevel\"\x83\x01\x0A TimeSeriesResourceHierarchyLevel\x124\x0A0TIME_SERIES_RESOURCE_HIERARCHY_LEVEL_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07PROJECT\x10\x01\x12\x10\x0A\x0CORGANIZATION\x10\x02\x12\x0A\x0A\x06FOLDER\x10\x03\"O\x0A\x0AMetricKind\x12\x1B\x0A\x17METRIC_KIND_UNSPECIFIED\x10\x00\x12\x09\x0A\x05GAUGE\x10\x01\x12\x09\x0A\x05DELTA\x10\x02\x12\x0E\x0A\x0ACUMULATIVE\x10\x03\"q\x0A\x09ValueType\x12\x1A\x0A\x16VALUE_TYPE_UNSPECIFIED\x10\x00\x12\x08\x0A\x04BOOL\x10\x01\x12\x09\x0A\x05INT64\x10\x02\x12\x0A\x0A\x06DOUBLE\x10\x03\x12\x0A\x0A\x06STRING\x10\x04\x12\x10\x0A\x0CDISTRIBUTION\x10\x05\x12\x09\x0A\x05MONEY\x10\x06\"u\x0A\x06Metric\x12\x0C\x0A\x04type\x18\x03 \x01(\x09\x12.\x0A\x06labels\x18\x02 \x03(\x0B2\x1E.google.api.Metric.LabelsEntry\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01B_\x0A\x0Ecom.google.apiB\x0BMetricProtoP\x01Z7google.golang.org/genproto/googleapis/api/metric;metric\xA2\x02\x04GAPIb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/MonitoredResource.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/MonitoredResource.php new file mode 100644 index 000000000000..e7cb60fa0e10 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/MonitoredResource.php @@ -0,0 +1,27 @@ +internalAddGeneratedFile( + "\x0A\x8C\x06\x0A#google/api/monitored_resource.proto\x12\x0Agoogle.api\x1A\x1Dgoogle/api/launch_stage.proto\x1A\x1Cgoogle/protobuf/struct.proto\"\xC0\x01\x0A\x1BMonitoredResourceDescriptor\x12\x0C\x0A\x04name\x18\x05 \x01(\x09\x12\x0C\x0A\x04type\x18\x01 \x01(\x09\x12\x14\x0A\x0Cdisplay_name\x18\x02 \x01(\x09\x12\x13\x0A\x0Bdescription\x18\x03 \x01(\x09\x12+\x0A\x06labels\x18\x04 \x03(\x0B2\x1B.google.api.LabelDescriptor\x12-\x0A\x0Claunch_stage\x18\x07 \x01(\x0E2\x17.google.api.LaunchStage\"\x8B\x01\x0A\x11MonitoredResource\x12\x0C\x0A\x04type\x18\x01 \x01(\x09\x129\x0A\x06labels\x18\x02 \x03(\x0B2).google.api.MonitoredResource.LabelsEntry\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"\xCA\x01\x0A\x19MonitoredResourceMetadata\x12.\x0A\x0Dsystem_labels\x18\x01 \x01(\x0B2\x17.google.protobuf.Struct\x12J\x0A\x0Buser_labels\x18\x02 \x03(\x0B25.google.api.MonitoredResourceMetadata.UserLabelsEntry\x1A1\x0A\x0FUserLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01Bv\x0A\x0Ecom.google.apiB\x16MonitoredResourceProtoP\x01ZCgoogle.golang.org/genproto/googleapis/api/monitoredres;monitoredres\xA2\x02\x04GAPIb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Monitoring.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Monitoring.php new file mode 100644 index 000000000000..4c70cb0defc8 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Monitoring.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\x93\x03\x0A\x1Bgoogle/api/monitoring.proto\x12\x0Agoogle.api\"\xEC\x01\x0A\x0AMonitoring\x12K\x0A\x15producer_destinations\x18\x01 \x03(\x0B2,.google.api.Monitoring.MonitoringDestination\x12K\x0A\x15consumer_destinations\x18\x02 \x03(\x0B2,.google.api.Monitoring.MonitoringDestination\x1AD\x0A\x15MonitoringDestination\x12\x1A\x0A\x12monitored_resource\x18\x01 \x01(\x09\x12\x0F\x0A\x07metrics\x18\x02 \x03(\x09Bq\x0A\x0Ecom.google.apiB\x0FMonitoringProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xA2\x02\x04GAPIb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Policy.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Policy.php new file mode 100644 index 000000000000..5d6bd055727b --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Policy.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\xE8\x02\x0A\x17google/api/policy.proto\x12\x0Agoogle.api\x1A google/protobuf/descriptor.proto\"S\x0A\x0BFieldPolicy\x12\x10\x0A\x08selector\x18\x01 \x01(\x09\x12\x1B\x0A\x13resource_permission\x18\x02 \x01(\x09\x12\x15\x0A\x0Dresource_type\x18\x03 \x01(\x09\"S\x0A\x0CMethodPolicy\x12\x10\x0A\x08selector\x18\x09 \x01(\x09\x121\x0A\x10request_policies\x18\x02 \x03(\x0B2\x17.google.api.FieldPolicyBm\x0A\x0Ecom.google.apiB\x0BPolicyProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xA2\x02\x04GAPIb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Quota.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Quota.php new file mode 100644 index 000000000000..4f0eded77a02 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Quota.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\xA5\x05\x0A\x16google/api/quota.proto\x12\x0Agoogle.api\"]\x0A\x05Quota\x12&\x0A\x06limits\x18\x03 \x03(\x0B2\x16.google.api.QuotaLimit\x12,\x0A\x0Cmetric_rules\x18\x04 \x03(\x0B2\x16.google.api.MetricRule\"\x91\x01\x0A\x0AMetricRule\x12\x10\x0A\x08selector\x18\x01 \x01(\x09\x12=\x0A\x0Cmetric_costs\x18\x02 \x03(\x0B2'.google.api.MetricRule.MetricCostsEntry\x1A2\x0A\x10MetricCostsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x03:\x028\x01\"\x95\x02\x0A\x0AQuotaLimit\x12\x0C\x0A\x04name\x18\x06 \x01(\x09\x12\x13\x0A\x0Bdescription\x18\x02 \x01(\x09\x12\x15\x0A\x0Ddefault_limit\x18\x03 \x01(\x03\x12\x11\x0A\x09max_limit\x18\x04 \x01(\x03\x12\x11\x0A\x09free_tier\x18\x07 \x01(\x03\x12\x10\x0A\x08duration\x18\x05 \x01(\x09\x12\x0E\x0A\x06metric\x18\x08 \x01(\x09\x12\x0C\x0A\x04unit\x18\x09 \x01(\x09\x122\x0A\x06values\x18\x0A \x03(\x0B2\".google.api.QuotaLimit.ValuesEntry\x12\x14\x0A\x0Cdisplay_name\x18\x0C \x01(\x09\x1A-\x0A\x0BValuesEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x03:\x028\x01Bl\x0A\x0Ecom.google.apiB\x0AQuotaProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xA2\x02\x04GAPIb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Resource.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Resource.php new file mode 100644 index 000000000000..06f145e91841 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Resource.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\xE6\x04\x0A\x19google/api/resource.proto\x12\x0Agoogle.api\x1A google/protobuf/descriptor.proto\"\xEE\x02\x0A\x12ResourceDescriptor\x12\x0C\x0A\x04type\x18\x01 \x01(\x09\x12\x0F\x0A\x07pattern\x18\x02 \x03(\x09\x12\x12\x0A\x0Aname_field\x18\x03 \x01(\x09\x127\x0A\x07history\x18\x04 \x01(\x0E2&.google.api.ResourceDescriptor.History\x12\x0E\x0A\x06plural\x18\x05 \x01(\x09\x12\x10\x0A\x08singular\x18\x06 \x01(\x09\x123\x0A\x05style\x18\x0A \x03(\x0E2\$.google.api.ResourceDescriptor.Style\"[\x0A\x07History\x12\x17\x0A\x13HISTORY_UNSPECIFIED\x10\x00\x12\x1D\x0A\x19ORIGINALLY_SINGLE_PATTERN\x10\x01\x12\x18\x0A\x14FUTURE_MULTI_PATTERN\x10\x02\"8\x0A\x05Style\x12\x15\x0A\x11STYLE_UNSPECIFIED\x10\x00\x12\x18\x0A\x14DECLARATIVE_FRIENDLY\x10\x01\"5\x0A\x11ResourceReference\x12\x0C\x0A\x04type\x18\x01 \x01(\x09\x12\x12\x0A\x0Achild_type\x18\x02 \x01(\x09Bk\x0A\x0Ecom.google.apiB\x0DResourceProtoP\x01ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\xA2\x02\x04GAPIb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Routing.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Routing.php new file mode 100644 index 000000000000..8146395c2b21 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Routing.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\xBF\x02\x0A\x18google/api/routing.proto\x12\x0Agoogle.api\x1A google/protobuf/descriptor.proto\"G\x0A\x0BRoutingRule\x128\x0A\x12routing_parameters\x18\x02 \x03(\x0B2\x1C.google.api.RoutingParameter\"8\x0A\x10RoutingParameter\x12\x0D\x0A\x05field\x18\x01 \x01(\x09\x12\x15\x0A\x0Dpath_template\x18\x02 \x01(\x09Bj\x0A\x0Ecom.google.apiB\x0CRoutingProtoP\x01ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\xA2\x02\x04GAPIb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Service.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Service.php new file mode 100644 index 000000000000..93c4c518f2a0 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Service.php @@ -0,0 +1,45 @@ +internalAddGeneratedFile( + "\x0A\xC9\x0D\x0A\x18google/api/service.proto\x12\x0Agoogle.api\x1A\x18google/api/backend.proto\x1A\x18google/api/billing.proto\x1A\x17google/api/client.proto\x1A\x18google/api/context.proto\x1A\x18google/api/control.proto\x1A\x1Egoogle/api/documentation.proto\x1A\x19google/api/endpoint.proto\x1A\x15google/api/http.proto\x1A\x14google/api/log.proto\x1A\x18google/api/logging.proto\x1A\x17google/api/metric.proto\x1A#google/api/monitored_resource.proto\x1A\x1Bgoogle/api/monitoring.proto\x1A\x16google/api/quota.proto\x1A\x1Cgoogle/api/source_info.proto\x1A!google/api/system_parameter.proto\x1A\x16google/api/usage.proto\x1A\x19google/protobuf/api.proto\x1A\x1Agoogle/protobuf/type.proto\x1A\x1Egoogle/protobuf/wrappers.proto\"\x82\x08\x0A\x07Service\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12\x0D\x0A\x05title\x18\x02 \x01(\x09\x12\x1B\x0A\x13producer_project_id\x18\x16 \x01(\x09\x12\x0A\x0A\x02id\x18! \x01(\x09\x12\"\x0A\x04apis\x18\x03 \x03(\x0B2\x14.google.protobuf.Api\x12\$\x0A\x05types\x18\x04 \x03(\x0B2\x15.google.protobuf.Type\x12\$\x0A\x05enums\x18\x05 \x03(\x0B2\x15.google.protobuf.Enum\x120\x0A\x0Ddocumentation\x18\x06 \x01(\x0B2\x19.google.api.Documentation\x12\$\x0A\x07backend\x18\x08 \x01(\x0B2\x13.google.api.Backend\x12\x1E\x0A\x04http\x18\x09 \x01(\x0B2\x10.google.api.Http\x12 \x0A\x05quota\x18\x0A \x01(\x0B2\x11.google.api.Quota\x122\x0A\x0Eauthentication\x18\x0B \x01(\x0B2\x1A.google.api.Authentication\x12\$\x0A\x07context\x18\x0C \x01(\x0B2\x13.google.api.Context\x12 \x0A\x05usage\x18\x0F \x01(\x0B2\x11.google.api.Usage\x12'\x0A\x09endpoints\x18\x12 \x03(\x0B2\x14.google.api.Endpoint\x12\$\x0A\x07control\x18\x15 \x01(\x0B2\x13.google.api.Control\x12'\x0A\x04logs\x18\x17 \x03(\x0B2\x19.google.api.LogDescriptor\x12-\x0A\x07metrics\x18\x18 \x03(\x0B2\x1C.google.api.MetricDescriptor\x12D\x0A\x13monitored_resources\x18\x19 \x03(\x0B2'.google.api.MonitoredResourceDescriptor\x12\$\x0A\x07billing\x18\x1A \x01(\x0B2\x13.google.api.Billing\x12\$\x0A\x07logging\x18\x1B \x01(\x0B2\x13.google.api.Logging\x12*\x0A\x0Amonitoring\x18\x1C \x01(\x0B2\x16.google.api.Monitoring\x127\x0A\x11system_parameters\x18\x1D \x01(\x0B2\x1C.google.api.SystemParameters\x12+\x0A\x0Bsource_info\x18% \x01(\x0B2\x16.google.api.SourceInfo\x12*\x0A\x0Apublishing\x18- \x01(\x0B2\x16.google.api.Publishing\x124\x0A\x0Econfig_version\x18\x14 \x01(\x0B2\x1C.google.protobuf.UInt32ValueBn\x0A\x0Ecom.google.apiB\x0CServiceProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xA2\x02\x04GAPIb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/SourceInfo.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/SourceInfo.php new file mode 100644 index 000000000000..f22fde7c287a --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/SourceInfo.php @@ -0,0 +1,25 @@ +internalAddGeneratedFile( + "\x0A\xDF\x01\x0A\x1Cgoogle/api/source_info.proto\x12\x0Agoogle.api\"8\x0A\x0ASourceInfo\x12*\x0A\x0Csource_files\x18\x01 \x03(\x0B2\x14.google.protobuf.AnyBq\x0A\x0Ecom.google.apiB\x0FSourceInfoProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xA2\x02\x04GAPIb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/SystemParameter.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/SystemParameter.php new file mode 100644 index 000000000000..cc85b39549d8 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/SystemParameter.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\xA0\x03\x0A!google/api/system_parameter.proto\x12\x0Agoogle.api\"B\x0A\x10SystemParameters\x12.\x0A\x05rules\x18\x01 \x03(\x0B2\x1F.google.api.SystemParameterRule\"X\x0A\x13SystemParameterRule\x12\x10\x0A\x08selector\x18\x01 \x01(\x09\x12/\x0A\x0Aparameters\x18\x02 \x03(\x0B2\x1B.google.api.SystemParameter\"Q\x0A\x0FSystemParameter\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12\x13\x0A\x0Bhttp_header\x18\x02 \x01(\x09\x12\x1B\x0A\x13url_query_parameter\x18\x03 \x01(\x09Bv\x0A\x0Ecom.google.apiB\x14SystemParameterProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xA2\x02\x04GAPIb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Usage.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Usage.php new file mode 100644 index 000000000000..82f244faa367 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Usage.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\xE5\x02\x0A\x16google/api/usage.proto\x12\x0Agoogle.api\"j\x0A\x05Usage\x12\x14\x0A\x0Crequirements\x18\x01 \x03(\x09\x12\$\x0A\x05rules\x18\x06 \x03(\x0B2\x15.google.api.UsageRule\x12%\x0A\x1Dproducer_notification_channel\x18\x07 \x01(\x09\"]\x0A\x09UsageRule\x12\x10\x0A\x08selector\x18\x01 \x01(\x09\x12 \x0A\x18allow_unregistered_calls\x18\x02 \x01(\x08\x12\x1C\x0A\x14skip_service_control\x18\x03 \x01(\x08Bl\x0A\x0Ecom.google.apiB\x0AUsageProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xA2\x02\x04GAPIb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Visibility.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Visibility.php new file mode 100644 index 000000000000..b1f2fa0b6ccb --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Visibility.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\xB2\x02\x0A\x1Bgoogle/api/visibility.proto\x12\x0Agoogle.api\x1A google/protobuf/descriptor.proto\"7\x0A\x0AVisibility\x12)\x0A\x05rules\x18\x01 \x03(\x0B2\x1A.google.api.VisibilityRule\"7\x0A\x0EVisibilityRule\x12\x10\x0A\x08selector\x18\x01 \x01(\x09\x12\x13\x0A\x0Brestriction\x18\x02 \x01(\x09Bk\x0A\x0Ecom.google.apiB\x0FVisibilityProtoP\x01Z?google.golang.org/genproto/googleapis/api/visibility;visibility\xA2\x02\x04GAPIb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Advice.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Advice.php new file mode 100644 index 000000000000..5db1462592bd --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Advice.php @@ -0,0 +1,72 @@ +google.api.Advice + */ +class Advice extends \Google\Protobuf\Internal\Message +{ + /** + * Useful description for why this advice was applied and what actions should + * be taken to mitigate any implied risks. + * + * Generated from protobuf field string description = 2; + */ + protected $description = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $description + * Useful description for why this advice was applied and what actions should + * be taken to mitigate any implied risks. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\ConfigChange::initOnce(); + parent::__construct($data); + } + + /** + * Useful description for why this advice was applied and what actions should + * be taken to mitigate any implied risks. + * + * Generated from protobuf field string description = 2; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Useful description for why this advice was applied and what actions should + * be taken to mitigate any implied risks. + * + * Generated from protobuf field string description = 2; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/AuthProvider.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/AuthProvider.php new file mode 100644 index 000000000000..4241a3eea8a5 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/AuthProvider.php @@ -0,0 +1,419 @@ +google.api.AuthProvider + */ +class AuthProvider extends \Google\Protobuf\Internal\Message +{ + /** + * The unique identifier of the auth provider. It will be referred to by + * `AuthRequirement.provider_id`. + * Example: "bookstore_auth". + * + * Generated from protobuf field string id = 1; + */ + protected $id = ''; + /** + * Identifies the principal that issued the JWT. See + * https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1 + * Usually a URL or an email address. + * Example: https://securetoken.google.com + * Example: 1234567-compute\@developer.gserviceaccount.com + * + * Generated from protobuf field string issuer = 2; + */ + protected $issuer = ''; + /** + * URL of the provider's public key set to validate signature of the JWT. See + * [OpenID + * Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata). + * Optional if the key set document: + * - can be retrieved from + * [OpenID + * Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html) + * of the issuer. + * - can be inferred from the email domain of the issuer (e.g. a Google + * service account). + * Example: https://www.googleapis.com/oauth2/v1/certs + * + * Generated from protobuf field string jwks_uri = 3; + */ + protected $jwks_uri = ''; + /** + * The list of JWT + * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3). + * that are allowed to access. A JWT containing any of these audiences will + * be accepted. When this setting is absent, JWTs with audiences: + * - "https://[service.name]/[google.protobuf.Api.name]" + * - "https://[service.name]/" + * will be accepted. + * For example, if no audiences are in the setting, LibraryService API will + * accept JWTs with the following audiences: + * - + * https://library-example.googleapis.com/google.example.library.v1.LibraryService + * - https://library-example.googleapis.com/ + * Example: + * audiences: bookstore_android.apps.googleusercontent.com, + * bookstore_web.apps.googleusercontent.com + * + * Generated from protobuf field string audiences = 4; + */ + protected $audiences = ''; + /** + * Redirect URL if JWT token is required but not present or is expired. + * Implement authorizationUrl of securityDefinitions in OpenAPI spec. + * + * Generated from protobuf field string authorization_url = 5; + */ + protected $authorization_url = ''; + /** + * Defines the locations to extract the JWT. For now it is only used by the + * Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations] + * (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations) + * JWT locations can be one of HTTP headers, URL query parameters or + * cookies. The rule is that the first match wins. + * If not specified, default to use following 3 locations: + * 1) Authorization: Bearer + * 2) x-goog-iap-jwt-assertion + * 3) access_token query parameter + * Default locations can be specified as followings: + * jwt_locations: + * - header: Authorization + * value_prefix: "Bearer " + * - header: x-goog-iap-jwt-assertion + * - query: access_token + * + * Generated from protobuf field repeated .google.api.JwtLocation jwt_locations = 6; + */ + private $jwt_locations; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $id + * The unique identifier of the auth provider. It will be referred to by + * `AuthRequirement.provider_id`. + * Example: "bookstore_auth". + * @type string $issuer + * Identifies the principal that issued the JWT. See + * https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1 + * Usually a URL or an email address. + * Example: https://securetoken.google.com + * Example: 1234567-compute\@developer.gserviceaccount.com + * @type string $jwks_uri + * URL of the provider's public key set to validate signature of the JWT. See + * [OpenID + * Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata). + * Optional if the key set document: + * - can be retrieved from + * [OpenID + * Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html) + * of the issuer. + * - can be inferred from the email domain of the issuer (e.g. a Google + * service account). + * Example: https://www.googleapis.com/oauth2/v1/certs + * @type string $audiences + * The list of JWT + * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3). + * that are allowed to access. A JWT containing any of these audiences will + * be accepted. When this setting is absent, JWTs with audiences: + * - "https://[service.name]/[google.protobuf.Api.name]" + * - "https://[service.name]/" + * will be accepted. + * For example, if no audiences are in the setting, LibraryService API will + * accept JWTs with the following audiences: + * - + * https://library-example.googleapis.com/google.example.library.v1.LibraryService + * - https://library-example.googleapis.com/ + * Example: + * audiences: bookstore_android.apps.googleusercontent.com, + * bookstore_web.apps.googleusercontent.com + * @type string $authorization_url + * Redirect URL if JWT token is required but not present or is expired. + * Implement authorizationUrl of securityDefinitions in OpenAPI spec. + * @type \Google\Api\JwtLocation[] $jwt_locations + * Defines the locations to extract the JWT. For now it is only used by the + * Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations] + * (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations) + * JWT locations can be one of HTTP headers, URL query parameters or + * cookies. The rule is that the first match wins. + * If not specified, default to use following 3 locations: + * 1) Authorization: Bearer + * 2) x-goog-iap-jwt-assertion + * 3) access_token query parameter + * Default locations can be specified as followings: + * jwt_locations: + * - header: Authorization + * value_prefix: "Bearer " + * - header: x-goog-iap-jwt-assertion + * - query: access_token + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Auth::initOnce(); + parent::__construct($data); + } + + /** + * The unique identifier of the auth provider. It will be referred to by + * `AuthRequirement.provider_id`. + * Example: "bookstore_auth". + * + * Generated from protobuf field string id = 1; + * @return string + */ + public function getId() + { + return $this->id; + } + + /** + * The unique identifier of the auth provider. It will be referred to by + * `AuthRequirement.provider_id`. + * Example: "bookstore_auth". + * + * Generated from protobuf field string id = 1; + * @param string $var + * @return $this + */ + public function setId($var) + { + GPBUtil::checkString($var, True); + $this->id = $var; + + return $this; + } + + /** + * Identifies the principal that issued the JWT. See + * https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1 + * Usually a URL or an email address. + * Example: https://securetoken.google.com + * Example: 1234567-compute\@developer.gserviceaccount.com + * + * Generated from protobuf field string issuer = 2; + * @return string + */ + public function getIssuer() + { + return $this->issuer; + } + + /** + * Identifies the principal that issued the JWT. See + * https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1 + * Usually a URL or an email address. + * Example: https://securetoken.google.com + * Example: 1234567-compute\@developer.gserviceaccount.com + * + * Generated from protobuf field string issuer = 2; + * @param string $var + * @return $this + */ + public function setIssuer($var) + { + GPBUtil::checkString($var, True); + $this->issuer = $var; + + return $this; + } + + /** + * URL of the provider's public key set to validate signature of the JWT. See + * [OpenID + * Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata). + * Optional if the key set document: + * - can be retrieved from + * [OpenID + * Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html) + * of the issuer. + * - can be inferred from the email domain of the issuer (e.g. a Google + * service account). + * Example: https://www.googleapis.com/oauth2/v1/certs + * + * Generated from protobuf field string jwks_uri = 3; + * @return string + */ + public function getJwksUri() + { + return $this->jwks_uri; + } + + /** + * URL of the provider's public key set to validate signature of the JWT. See + * [OpenID + * Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata). + * Optional if the key set document: + * - can be retrieved from + * [OpenID + * Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html) + * of the issuer. + * - can be inferred from the email domain of the issuer (e.g. a Google + * service account). + * Example: https://www.googleapis.com/oauth2/v1/certs + * + * Generated from protobuf field string jwks_uri = 3; + * @param string $var + * @return $this + */ + public function setJwksUri($var) + { + GPBUtil::checkString($var, True); + $this->jwks_uri = $var; + + return $this; + } + + /** + * The list of JWT + * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3). + * that are allowed to access. A JWT containing any of these audiences will + * be accepted. When this setting is absent, JWTs with audiences: + * - "https://[service.name]/[google.protobuf.Api.name]" + * - "https://[service.name]/" + * will be accepted. + * For example, if no audiences are in the setting, LibraryService API will + * accept JWTs with the following audiences: + * - + * https://library-example.googleapis.com/google.example.library.v1.LibraryService + * - https://library-example.googleapis.com/ + * Example: + * audiences: bookstore_android.apps.googleusercontent.com, + * bookstore_web.apps.googleusercontent.com + * + * Generated from protobuf field string audiences = 4; + * @return string + */ + public function getAudiences() + { + return $this->audiences; + } + + /** + * The list of JWT + * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3). + * that are allowed to access. A JWT containing any of these audiences will + * be accepted. When this setting is absent, JWTs with audiences: + * - "https://[service.name]/[google.protobuf.Api.name]" + * - "https://[service.name]/" + * will be accepted. + * For example, if no audiences are in the setting, LibraryService API will + * accept JWTs with the following audiences: + * - + * https://library-example.googleapis.com/google.example.library.v1.LibraryService + * - https://library-example.googleapis.com/ + * Example: + * audiences: bookstore_android.apps.googleusercontent.com, + * bookstore_web.apps.googleusercontent.com + * + * Generated from protobuf field string audiences = 4; + * @param string $var + * @return $this + */ + public function setAudiences($var) + { + GPBUtil::checkString($var, True); + $this->audiences = $var; + + return $this; + } + + /** + * Redirect URL if JWT token is required but not present or is expired. + * Implement authorizationUrl of securityDefinitions in OpenAPI spec. + * + * Generated from protobuf field string authorization_url = 5; + * @return string + */ + public function getAuthorizationUrl() + { + return $this->authorization_url; + } + + /** + * Redirect URL if JWT token is required but not present or is expired. + * Implement authorizationUrl of securityDefinitions in OpenAPI spec. + * + * Generated from protobuf field string authorization_url = 5; + * @param string $var + * @return $this + */ + public function setAuthorizationUrl($var) + { + GPBUtil::checkString($var, True); + $this->authorization_url = $var; + + return $this; + } + + /** + * Defines the locations to extract the JWT. For now it is only used by the + * Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations] + * (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations) + * JWT locations can be one of HTTP headers, URL query parameters or + * cookies. The rule is that the first match wins. + * If not specified, default to use following 3 locations: + * 1) Authorization: Bearer + * 2) x-goog-iap-jwt-assertion + * 3) access_token query parameter + * Default locations can be specified as followings: + * jwt_locations: + * - header: Authorization + * value_prefix: "Bearer " + * - header: x-goog-iap-jwt-assertion + * - query: access_token + * + * Generated from protobuf field repeated .google.api.JwtLocation jwt_locations = 6; + * @return RepeatedField<\Google\Api\JwtLocation> + */ + public function getJwtLocations() + { + return $this->jwt_locations; + } + + /** + * Defines the locations to extract the JWT. For now it is only used by the + * Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations] + * (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations) + * JWT locations can be one of HTTP headers, URL query parameters or + * cookies. The rule is that the first match wins. + * If not specified, default to use following 3 locations: + * 1) Authorization: Bearer + * 2) x-goog-iap-jwt-assertion + * 3) access_token query parameter + * Default locations can be specified as followings: + * jwt_locations: + * - header: Authorization + * value_prefix: "Bearer " + * - header: x-goog-iap-jwt-assertion + * - query: access_token + * + * Generated from protobuf field repeated .google.api.JwtLocation jwt_locations = 6; + * @param \Google\Api\JwtLocation[] $var + * @return $this + */ + public function setJwtLocations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\JwtLocation::class); + $this->jwt_locations = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/AuthRequirement.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/AuthRequirement.php new file mode 100644 index 000000000000..01f92d53818b --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/AuthRequirement.php @@ -0,0 +1,159 @@ +google.api.AuthRequirement + */ +class AuthRequirement extends \Google\Protobuf\Internal\Message +{ + /** + * [id][google.api.AuthProvider.id] from authentication provider. + * Example: + * provider_id: bookstore_auth + * + * Generated from protobuf field string provider_id = 1; + */ + protected $provider_id = ''; + /** + * NOTE: This will be deprecated soon, once AuthProvider.audiences is + * implemented and accepted in all the runtime components. + * The list of JWT + * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3). + * that are allowed to access. A JWT containing any of these audiences will + * be accepted. When this setting is absent, only JWTs with audience + * "https://[Service_name][google.api.Service.name]/[API_name][google.protobuf.Api.name]" + * will be accepted. For example, if no audiences are in the setting, + * LibraryService API will only accept JWTs with the following audience + * "https://library-example.googleapis.com/google.example.library.v1.LibraryService". + * Example: + * audiences: bookstore_android.apps.googleusercontent.com, + * bookstore_web.apps.googleusercontent.com + * + * Generated from protobuf field string audiences = 2; + */ + protected $audiences = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $provider_id + * [id][google.api.AuthProvider.id] from authentication provider. + * Example: + * provider_id: bookstore_auth + * @type string $audiences + * NOTE: This will be deprecated soon, once AuthProvider.audiences is + * implemented and accepted in all the runtime components. + * The list of JWT + * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3). + * that are allowed to access. A JWT containing any of these audiences will + * be accepted. When this setting is absent, only JWTs with audience + * "https://[Service_name][google.api.Service.name]/[API_name][google.protobuf.Api.name]" + * will be accepted. For example, if no audiences are in the setting, + * LibraryService API will only accept JWTs with the following audience + * "https://library-example.googleapis.com/google.example.library.v1.LibraryService". + * Example: + * audiences: bookstore_android.apps.googleusercontent.com, + * bookstore_web.apps.googleusercontent.com + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Auth::initOnce(); + parent::__construct($data); + } + + /** + * [id][google.api.AuthProvider.id] from authentication provider. + * Example: + * provider_id: bookstore_auth + * + * Generated from protobuf field string provider_id = 1; + * @return string + */ + public function getProviderId() + { + return $this->provider_id; + } + + /** + * [id][google.api.AuthProvider.id] from authentication provider. + * Example: + * provider_id: bookstore_auth + * + * Generated from protobuf field string provider_id = 1; + * @param string $var + * @return $this + */ + public function setProviderId($var) + { + GPBUtil::checkString($var, True); + $this->provider_id = $var; + + return $this; + } + + /** + * NOTE: This will be deprecated soon, once AuthProvider.audiences is + * implemented and accepted in all the runtime components. + * The list of JWT + * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3). + * that are allowed to access. A JWT containing any of these audiences will + * be accepted. When this setting is absent, only JWTs with audience + * "https://[Service_name][google.api.Service.name]/[API_name][google.protobuf.Api.name]" + * will be accepted. For example, if no audiences are in the setting, + * LibraryService API will only accept JWTs with the following audience + * "https://library-example.googleapis.com/google.example.library.v1.LibraryService". + * Example: + * audiences: bookstore_android.apps.googleusercontent.com, + * bookstore_web.apps.googleusercontent.com + * + * Generated from protobuf field string audiences = 2; + * @return string + */ + public function getAudiences() + { + return $this->audiences; + } + + /** + * NOTE: This will be deprecated soon, once AuthProvider.audiences is + * implemented and accepted in all the runtime components. + * The list of JWT + * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3). + * that are allowed to access. A JWT containing any of these audiences will + * be accepted. When this setting is absent, only JWTs with audience + * "https://[Service_name][google.api.Service.name]/[API_name][google.protobuf.Api.name]" + * will be accepted. For example, if no audiences are in the setting, + * LibraryService API will only accept JWTs with the following audience + * "https://library-example.googleapis.com/google.example.library.v1.LibraryService". + * Example: + * audiences: bookstore_android.apps.googleusercontent.com, + * bookstore_web.apps.googleusercontent.com + * + * Generated from protobuf field string audiences = 2; + * @param string $var + * @return $this + */ + public function setAudiences($var) + { + GPBUtil::checkString($var, True); + $this->audiences = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Authentication.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Authentication.php new file mode 100644 index 000000000000..608c6fb23bd0 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Authentication.php @@ -0,0 +1,120 @@ +google.api.Authentication + */ +class Authentication extends \Google\Protobuf\Internal\Message +{ + /** + * A list of authentication rules that apply to individual API methods. + * **NOTE:** All service configuration rules follow "last one wins" order. + * + * Generated from protobuf field repeated .google.api.AuthenticationRule rules = 3; + */ + private $rules; + /** + * Defines a set of authentication providers that a service supports. + * + * Generated from protobuf field repeated .google.api.AuthProvider providers = 4; + */ + private $providers; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Api\AuthenticationRule[] $rules + * A list of authentication rules that apply to individual API methods. + * **NOTE:** All service configuration rules follow "last one wins" order. + * @type \Google\Api\AuthProvider[] $providers + * Defines a set of authentication providers that a service supports. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Auth::initOnce(); + parent::__construct($data); + } + + /** + * A list of authentication rules that apply to individual API methods. + * **NOTE:** All service configuration rules follow "last one wins" order. + * + * Generated from protobuf field repeated .google.api.AuthenticationRule rules = 3; + * @return RepeatedField<\Google\Api\AuthenticationRule> + */ + public function getRules() + { + return $this->rules; + } + + /** + * A list of authentication rules that apply to individual API methods. + * **NOTE:** All service configuration rules follow "last one wins" order. + * + * Generated from protobuf field repeated .google.api.AuthenticationRule rules = 3; + * @param \Google\Api\AuthenticationRule[] $var + * @return $this + */ + public function setRules($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\AuthenticationRule::class); + $this->rules = $arr; + + return $this; + } + + /** + * Defines a set of authentication providers that a service supports. + * + * Generated from protobuf field repeated .google.api.AuthProvider providers = 4; + * @return RepeatedField<\Google\Api\AuthProvider> + */ + public function getProviders() + { + return $this->providers; + } + + /** + * Defines a set of authentication providers that a service supports. + * + * Generated from protobuf field repeated .google.api.AuthProvider providers = 4; + * @param \Google\Api\AuthProvider[] $var + * @return $this + */ + public function setProviders($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\AuthProvider::class); + $this->providers = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/AuthenticationRule.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/AuthenticationRule.php new file mode 100644 index 000000000000..3abcb6dec118 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/AuthenticationRule.php @@ -0,0 +1,197 @@ +google.api.AuthenticationRule + */ +class AuthenticationRule extends \Google\Protobuf\Internal\Message +{ + /** + * Selects the methods to which this rule applies. + * Refer to [selector][google.api.DocumentationRule.selector] for syntax + * details. + * + * Generated from protobuf field string selector = 1; + */ + protected $selector = ''; + /** + * The requirements for OAuth credentials. + * + * Generated from protobuf field .google.api.OAuthRequirements oauth = 2; + */ + protected $oauth = null; + /** + * If true, the service accepts API keys without any other credential. + * This flag only applies to HTTP and gRPC requests. + * + * Generated from protobuf field bool allow_without_credential = 5; + */ + protected $allow_without_credential = false; + /** + * Requirements for additional authentication providers. + * + * Generated from protobuf field repeated .google.api.AuthRequirement requirements = 7; + */ + private $requirements; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $selector + * Selects the methods to which this rule applies. + * Refer to [selector][google.api.DocumentationRule.selector] for syntax + * details. + * @type \Google\Api\OAuthRequirements $oauth + * The requirements for OAuth credentials. + * @type bool $allow_without_credential + * If true, the service accepts API keys without any other credential. + * This flag only applies to HTTP and gRPC requests. + * @type \Google\Api\AuthRequirement[] $requirements + * Requirements for additional authentication providers. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Auth::initOnce(); + parent::__construct($data); + } + + /** + * Selects the methods to which this rule applies. + * Refer to [selector][google.api.DocumentationRule.selector] for syntax + * details. + * + * Generated from protobuf field string selector = 1; + * @return string + */ + public function getSelector() + { + return $this->selector; + } + + /** + * Selects the methods to which this rule applies. + * Refer to [selector][google.api.DocumentationRule.selector] for syntax + * details. + * + * Generated from protobuf field string selector = 1; + * @param string $var + * @return $this + */ + public function setSelector($var) + { + GPBUtil::checkString($var, True); + $this->selector = $var; + + return $this; + } + + /** + * The requirements for OAuth credentials. + * + * Generated from protobuf field .google.api.OAuthRequirements oauth = 2; + * @return \Google\Api\OAuthRequirements|null + */ + public function getOauth() + { + return $this->oauth; + } + + public function hasOauth() + { + return isset($this->oauth); + } + + public function clearOauth() + { + unset($this->oauth); + } + + /** + * The requirements for OAuth credentials. + * + * Generated from protobuf field .google.api.OAuthRequirements oauth = 2; + * @param \Google\Api\OAuthRequirements $var + * @return $this + */ + public function setOauth($var) + { + GPBUtil::checkMessage($var, \Google\Api\OAuthRequirements::class); + $this->oauth = $var; + + return $this; + } + + /** + * If true, the service accepts API keys without any other credential. + * This flag only applies to HTTP and gRPC requests. + * + * Generated from protobuf field bool allow_without_credential = 5; + * @return bool + */ + public function getAllowWithoutCredential() + { + return $this->allow_without_credential; + } + + /** + * If true, the service accepts API keys without any other credential. + * This flag only applies to HTTP and gRPC requests. + * + * Generated from protobuf field bool allow_without_credential = 5; + * @param bool $var + * @return $this + */ + public function setAllowWithoutCredential($var) + { + GPBUtil::checkBool($var); + $this->allow_without_credential = $var; + + return $this; + } + + /** + * Requirements for additional authentication providers. + * + * Generated from protobuf field repeated .google.api.AuthRequirement requirements = 7; + * @return RepeatedField<\Google\Api\AuthRequirement> + */ + public function getRequirements() + { + return $this->requirements; + } + + /** + * Requirements for additional authentication providers. + * + * Generated from protobuf field repeated .google.api.AuthRequirement requirements = 7; + * @param \Google\Api\AuthRequirement[] $var + * @return $this + */ + public function setRequirements($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\AuthRequirement::class); + $this->requirements = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Backend.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Backend.php new file mode 100644 index 000000000000..6ffebebbf701 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Backend.php @@ -0,0 +1,71 @@ +google.api.Backend + */ +class Backend extends \Google\Protobuf\Internal\Message +{ + /** + * A list of API backend rules that apply to individual API methods. + * **NOTE:** All service configuration rules follow "last one wins" order. + * + * Generated from protobuf field repeated .google.api.BackendRule rules = 1; + */ + private $rules; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Api\BackendRule[] $rules + * A list of API backend rules that apply to individual API methods. + * **NOTE:** All service configuration rules follow "last one wins" order. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Backend::initOnce(); + parent::__construct($data); + } + + /** + * A list of API backend rules that apply to individual API methods. + * **NOTE:** All service configuration rules follow "last one wins" order. + * + * Generated from protobuf field repeated .google.api.BackendRule rules = 1; + * @return RepeatedField<\Google\Api\BackendRule> + */ + public function getRules() + { + return $this->rules; + } + + /** + * A list of API backend rules that apply to individual API methods. + * **NOTE:** All service configuration rules follow "last one wins" order. + * + * Generated from protobuf field repeated .google.api.BackendRule rules = 1; + * @param \Google\Api\BackendRule[] $var + * @return $this + */ + public function setRules($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\BackendRule::class); + $this->rules = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/BackendRule.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/BackendRule.php new file mode 100644 index 000000000000..63770f4953b8 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/BackendRule.php @@ -0,0 +1,592 @@ +google.api.BackendRule + */ +class BackendRule extends \Google\Protobuf\Internal\Message +{ + /** + * Selects the methods to which this rule applies. + * Refer to [selector][google.api.DocumentationRule.selector] for syntax + * details. + * + * Generated from protobuf field string selector = 1; + */ + protected $selector = ''; + /** + * The address of the API backend. + * The scheme is used to determine the backend protocol and security. + * The following schemes are accepted: + * SCHEME PROTOCOL SECURITY + * http:// HTTP None + * https:// HTTP TLS + * grpc:// gRPC None + * grpcs:// gRPC TLS + * It is recommended to explicitly include a scheme. Leaving out the scheme + * may cause constrasting behaviors across platforms. + * If the port is unspecified, the default is: + * - 80 for schemes without TLS + * - 443 for schemes with TLS + * For HTTP backends, use [protocol][google.api.BackendRule.protocol] + * to specify the protocol version. + * + * Generated from protobuf field string address = 2; + */ + protected $address = ''; + /** + * The number of seconds to wait for a response from a request. The default + * varies based on the request protocol and deployment environment. + * + * Generated from protobuf field double deadline = 3; + */ + protected $deadline = 0.0; + /** + * Deprecated, do not use. + * + * Generated from protobuf field double min_deadline = 4 [deprecated = true]; + * @deprecated + */ + protected $min_deadline = 0.0; + /** + * The number of seconds to wait for the completion of a long running + * operation. The default is no deadline. + * + * Generated from protobuf field double operation_deadline = 5; + */ + protected $operation_deadline = 0.0; + /** + * Path translation specifies how to combine the backend address with the + * request path in order to produce the appropriate forwarding URL for the + * request. See [PathTranslation][google.api.BackendRule.PathTranslation] for + * more details. + * + * Generated from protobuf field .google.api.BackendRule.PathTranslation path_translation = 6; + */ + protected $path_translation = 0; + /** + * The protocol used for sending a request to the backend. + * The supported values are "http/1.1" and "h2". + * The default value is inferred from the scheme in the + * [address][google.api.BackendRule.address] field: + * SCHEME PROTOCOL + * http:// http/1.1 + * https:// http/1.1 + * grpc:// h2 + * grpcs:// h2 + * For secure HTTP backends (https://) that support HTTP/2, set this field + * to "h2" for improved performance. + * Configuring this field to non-default values is only supported for secure + * HTTP backends. This field will be ignored for all other backends. + * See + * https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids + * for more details on the supported values. + * + * Generated from protobuf field string protocol = 9; + */ + protected $protocol = ''; + /** + * The map between request protocol and the backend address. + * + * Generated from protobuf field map overrides_by_request_protocol = 10; + */ + private $overrides_by_request_protocol; + /** + * The load balancing policy used for connection to the application backend. + * Defined as an arbitrary string to accomondate custom load balancing + * policies supported by the underlying channel, but suggest most users use + * one of the standard policies, such as the default, "RoundRobin". + * + * Generated from protobuf field string load_balancing_policy = 11; + */ + protected $load_balancing_policy = ''; + protected $authentication; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $selector + * Selects the methods to which this rule applies. + * Refer to [selector][google.api.DocumentationRule.selector] for syntax + * details. + * @type string $address + * The address of the API backend. + * The scheme is used to determine the backend protocol and security. + * The following schemes are accepted: + * SCHEME PROTOCOL SECURITY + * http:// HTTP None + * https:// HTTP TLS + * grpc:// gRPC None + * grpcs:// gRPC TLS + * It is recommended to explicitly include a scheme. Leaving out the scheme + * may cause constrasting behaviors across platforms. + * If the port is unspecified, the default is: + * - 80 for schemes without TLS + * - 443 for schemes with TLS + * For HTTP backends, use [protocol][google.api.BackendRule.protocol] + * to specify the protocol version. + * @type float $deadline + * The number of seconds to wait for a response from a request. The default + * varies based on the request protocol and deployment environment. + * @type float $min_deadline + * Deprecated, do not use. + * @type float $operation_deadline + * The number of seconds to wait for the completion of a long running + * operation. The default is no deadline. + * @type int $path_translation + * Path translation specifies how to combine the backend address with the + * request path in order to produce the appropriate forwarding URL for the + * request. See [PathTranslation][google.api.BackendRule.PathTranslation] for + * more details. + * @type string $jwt_audience + * The JWT audience is used when generating a JWT ID token for the backend. + * This ID token will be added in the HTTP "authorization" header, and sent + * to the backend. + * @type bool $disable_auth + * When disable_auth is true, a JWT ID token won't be generated and the + * original "Authorization" HTTP header will be preserved. If the header is + * used to carry the original token and is expected by the backend, this + * field must be set to true to preserve the header. + * @type string $protocol + * The protocol used for sending a request to the backend. + * The supported values are "http/1.1" and "h2". + * The default value is inferred from the scheme in the + * [address][google.api.BackendRule.address] field: + * SCHEME PROTOCOL + * http:// http/1.1 + * https:// http/1.1 + * grpc:// h2 + * grpcs:// h2 + * For secure HTTP backends (https://) that support HTTP/2, set this field + * to "h2" for improved performance. + * Configuring this field to non-default values is only supported for secure + * HTTP backends. This field will be ignored for all other backends. + * See + * https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids + * for more details on the supported values. + * @type array|\Google\Protobuf\Internal\MapField $overrides_by_request_protocol + * The map between request protocol and the backend address. + * @type string $load_balancing_policy + * The load balancing policy used for connection to the application backend. + * Defined as an arbitrary string to accomondate custom load balancing + * policies supported by the underlying channel, but suggest most users use + * one of the standard policies, such as the default, "RoundRobin". + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Backend::initOnce(); + parent::__construct($data); + } + + /** + * Selects the methods to which this rule applies. + * Refer to [selector][google.api.DocumentationRule.selector] for syntax + * details. + * + * Generated from protobuf field string selector = 1; + * @return string + */ + public function getSelector() + { + return $this->selector; + } + + /** + * Selects the methods to which this rule applies. + * Refer to [selector][google.api.DocumentationRule.selector] for syntax + * details. + * + * Generated from protobuf field string selector = 1; + * @param string $var + * @return $this + */ + public function setSelector($var) + { + GPBUtil::checkString($var, True); + $this->selector = $var; + + return $this; + } + + /** + * The address of the API backend. + * The scheme is used to determine the backend protocol and security. + * The following schemes are accepted: + * SCHEME PROTOCOL SECURITY + * http:// HTTP None + * https:// HTTP TLS + * grpc:// gRPC None + * grpcs:// gRPC TLS + * It is recommended to explicitly include a scheme. Leaving out the scheme + * may cause constrasting behaviors across platforms. + * If the port is unspecified, the default is: + * - 80 for schemes without TLS + * - 443 for schemes with TLS + * For HTTP backends, use [protocol][google.api.BackendRule.protocol] + * to specify the protocol version. + * + * Generated from protobuf field string address = 2; + * @return string + */ + public function getAddress() + { + return $this->address; + } + + /** + * The address of the API backend. + * The scheme is used to determine the backend protocol and security. + * The following schemes are accepted: + * SCHEME PROTOCOL SECURITY + * http:// HTTP None + * https:// HTTP TLS + * grpc:// gRPC None + * grpcs:// gRPC TLS + * It is recommended to explicitly include a scheme. Leaving out the scheme + * may cause constrasting behaviors across platforms. + * If the port is unspecified, the default is: + * - 80 for schemes without TLS + * - 443 for schemes with TLS + * For HTTP backends, use [protocol][google.api.BackendRule.protocol] + * to specify the protocol version. + * + * Generated from protobuf field string address = 2; + * @param string $var + * @return $this + */ + public function setAddress($var) + { + GPBUtil::checkString($var, True); + $this->address = $var; + + return $this; + } + + /** + * The number of seconds to wait for a response from a request. The default + * varies based on the request protocol and deployment environment. + * + * Generated from protobuf field double deadline = 3; + * @return float + */ + public function getDeadline() + { + return $this->deadline; + } + + /** + * The number of seconds to wait for a response from a request. The default + * varies based on the request protocol and deployment environment. + * + * Generated from protobuf field double deadline = 3; + * @param float $var + * @return $this + */ + public function setDeadline($var) + { + GPBUtil::checkDouble($var); + $this->deadline = $var; + + return $this; + } + + /** + * Deprecated, do not use. + * + * Generated from protobuf field double min_deadline = 4 [deprecated = true]; + * @return float + * @deprecated + */ + public function getMinDeadline() + { + if ($this->min_deadline !== 0.0) { + @trigger_error('min_deadline is deprecated.', E_USER_DEPRECATED); + } + return $this->min_deadline; + } + + /** + * Deprecated, do not use. + * + * Generated from protobuf field double min_deadline = 4 [deprecated = true]; + * @param float $var + * @return $this + * @deprecated + */ + public function setMinDeadline($var) + { + @trigger_error('min_deadline is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkDouble($var); + $this->min_deadline = $var; + + return $this; + } + + /** + * The number of seconds to wait for the completion of a long running + * operation. The default is no deadline. + * + * Generated from protobuf field double operation_deadline = 5; + * @return float + */ + public function getOperationDeadline() + { + return $this->operation_deadline; + } + + /** + * The number of seconds to wait for the completion of a long running + * operation. The default is no deadline. + * + * Generated from protobuf field double operation_deadline = 5; + * @param float $var + * @return $this + */ + public function setOperationDeadline($var) + { + GPBUtil::checkDouble($var); + $this->operation_deadline = $var; + + return $this; + } + + /** + * Path translation specifies how to combine the backend address with the + * request path in order to produce the appropriate forwarding URL for the + * request. See [PathTranslation][google.api.BackendRule.PathTranslation] for + * more details. + * + * Generated from protobuf field .google.api.BackendRule.PathTranslation path_translation = 6; + * @return int + */ + public function getPathTranslation() + { + return $this->path_translation; + } + + /** + * Path translation specifies how to combine the backend address with the + * request path in order to produce the appropriate forwarding URL for the + * request. See [PathTranslation][google.api.BackendRule.PathTranslation] for + * more details. + * + * Generated from protobuf field .google.api.BackendRule.PathTranslation path_translation = 6; + * @param int $var + * @return $this + */ + public function setPathTranslation($var) + { + GPBUtil::checkEnum($var, \Google\Api\BackendRule\PathTranslation::class); + $this->path_translation = $var; + + return $this; + } + + /** + * The JWT audience is used when generating a JWT ID token for the backend. + * This ID token will be added in the HTTP "authorization" header, and sent + * to the backend. + * + * Generated from protobuf field string jwt_audience = 7; + * @return string + */ + public function getJwtAudience() + { + return $this->readOneof(7); + } + + public function hasJwtAudience() + { + return $this->hasOneof(7); + } + + /** + * The JWT audience is used when generating a JWT ID token for the backend. + * This ID token will be added in the HTTP "authorization" header, and sent + * to the backend. + * + * Generated from protobuf field string jwt_audience = 7; + * @param string $var + * @return $this + */ + public function setJwtAudience($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(7, $var); + + return $this; + } + + /** + * When disable_auth is true, a JWT ID token won't be generated and the + * original "Authorization" HTTP header will be preserved. If the header is + * used to carry the original token and is expected by the backend, this + * field must be set to true to preserve the header. + * + * Generated from protobuf field bool disable_auth = 8; + * @return bool + */ + public function getDisableAuth() + { + return $this->readOneof(8); + } + + public function hasDisableAuth() + { + return $this->hasOneof(8); + } + + /** + * When disable_auth is true, a JWT ID token won't be generated and the + * original "Authorization" HTTP header will be preserved. If the header is + * used to carry the original token and is expected by the backend, this + * field must be set to true to preserve the header. + * + * Generated from protobuf field bool disable_auth = 8; + * @param bool $var + * @return $this + */ + public function setDisableAuth($var) + { + GPBUtil::checkBool($var); + $this->writeOneof(8, $var); + + return $this; + } + + /** + * The protocol used for sending a request to the backend. + * The supported values are "http/1.1" and "h2". + * The default value is inferred from the scheme in the + * [address][google.api.BackendRule.address] field: + * SCHEME PROTOCOL + * http:// http/1.1 + * https:// http/1.1 + * grpc:// h2 + * grpcs:// h2 + * For secure HTTP backends (https://) that support HTTP/2, set this field + * to "h2" for improved performance. + * Configuring this field to non-default values is only supported for secure + * HTTP backends. This field will be ignored for all other backends. + * See + * https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids + * for more details on the supported values. + * + * Generated from protobuf field string protocol = 9; + * @return string + */ + public function getProtocol() + { + return $this->protocol; + } + + /** + * The protocol used for sending a request to the backend. + * The supported values are "http/1.1" and "h2". + * The default value is inferred from the scheme in the + * [address][google.api.BackendRule.address] field: + * SCHEME PROTOCOL + * http:// http/1.1 + * https:// http/1.1 + * grpc:// h2 + * grpcs:// h2 + * For secure HTTP backends (https://) that support HTTP/2, set this field + * to "h2" for improved performance. + * Configuring this field to non-default values is only supported for secure + * HTTP backends. This field will be ignored for all other backends. + * See + * https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids + * for more details on the supported values. + * + * Generated from protobuf field string protocol = 9; + * @param string $var + * @return $this + */ + public function setProtocol($var) + { + GPBUtil::checkString($var, True); + $this->protocol = $var; + + return $this; + } + + /** + * The map between request protocol and the backend address. + * + * Generated from protobuf field map overrides_by_request_protocol = 10; + * @return \Google\Protobuf\Internal\MapField + */ + public function getOverridesByRequestProtocol() + { + return $this->overrides_by_request_protocol; + } + + /** + * The map between request protocol and the backend address. + * + * Generated from protobuf field map overrides_by_request_protocol = 10; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setOverridesByRequestProtocol($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\BackendRule::class); + $this->overrides_by_request_protocol = $arr; + + return $this; + } + + /** + * The load balancing policy used for connection to the application backend. + * Defined as an arbitrary string to accomondate custom load balancing + * policies supported by the underlying channel, but suggest most users use + * one of the standard policies, such as the default, "RoundRobin". + * + * Generated from protobuf field string load_balancing_policy = 11; + * @return string + */ + public function getLoadBalancingPolicy() + { + return $this->load_balancing_policy; + } + + /** + * The load balancing policy used for connection to the application backend. + * Defined as an arbitrary string to accomondate custom load balancing + * policies supported by the underlying channel, but suggest most users use + * one of the standard policies, such as the default, "RoundRobin". + * + * Generated from protobuf field string load_balancing_policy = 11; + * @param string $var + * @return $this + */ + public function setLoadBalancingPolicy($var) + { + GPBUtil::checkString($var, True); + $this->load_balancing_policy = $var; + + return $this; + } + + /** + * @return string + */ + public function getAuthentication() + { + return $this->whichOneof("authentication"); + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/BackendRule/PathTranslation.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/BackendRule/PathTranslation.php new file mode 100644 index 000000000000..366c5496d121 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/BackendRule/PathTranslation.php @@ -0,0 +1,92 @@ +google.api.BackendRule.PathTranslation + */ +class PathTranslation +{ + /** + * Generated from protobuf enum PATH_TRANSLATION_UNSPECIFIED = 0; + */ + const PATH_TRANSLATION_UNSPECIFIED = 0; + /** + * Use the backend address as-is, with no modification to the path. If the + * URL pattern contains variables, the variable names and values will be + * appended to the query string. If a query string parameter and a URL + * pattern variable have the same name, this may result in duplicate keys in + * the query string. + * # Examples + * Given the following operation config: + * Method path: /api/company/{cid}/user/{uid} + * Backend address: https://example.cloudfunctions.net/getUser + * Requests to the following request paths will call the backend at the + * translated path: + * Request path: /api/company/widgetworks/user/johndoe + * Translated: + * https://example.cloudfunctions.net/getUser?cid=widgetworks&uid=johndoe + * Request path: /api/company/widgetworks/user/johndoe?timezone=EST + * Translated: + * https://example.cloudfunctions.net/getUser?timezone=EST&cid=widgetworks&uid=johndoe + * + * Generated from protobuf enum CONSTANT_ADDRESS = 1; + */ + const CONSTANT_ADDRESS = 1; + /** + * The request path will be appended to the backend address. + * # Examples + * Given the following operation config: + * Method path: /api/company/{cid}/user/{uid} + * Backend address: https://example.appspot.com + * Requests to the following request paths will call the backend at the + * translated path: + * Request path: /api/company/widgetworks/user/johndoe + * Translated: + * https://example.appspot.com/api/company/widgetworks/user/johndoe + * Request path: /api/company/widgetworks/user/johndoe?timezone=EST + * Translated: + * https://example.appspot.com/api/company/widgetworks/user/johndoe?timezone=EST + * + * Generated from protobuf enum APPEND_PATH_TO_ADDRESS = 2; + */ + const APPEND_PATH_TO_ADDRESS = 2; + + private static $valueToName = [ + self::PATH_TRANSLATION_UNSPECIFIED => 'PATH_TRANSLATION_UNSPECIFIED', + self::CONSTANT_ADDRESS => 'CONSTANT_ADDRESS', + self::APPEND_PATH_TO_ADDRESS => 'APPEND_PATH_TO_ADDRESS', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/BatchingConfigProto.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/BatchingConfigProto.php new file mode 100644 index 000000000000..a89814d51f0e --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/BatchingConfigProto.php @@ -0,0 +1,121 @@ +google.api.BatchingConfigProto + */ +class BatchingConfigProto extends \Google\Protobuf\Internal\Message +{ + /** + * The thresholds which trigger a batched request to be sent. + * + * Generated from protobuf field .google.api.BatchingSettingsProto thresholds = 1; + */ + protected $thresholds = null; + /** + * The request and response fields used in batching. + * + * Generated from protobuf field .google.api.BatchingDescriptorProto batch_descriptor = 2; + */ + protected $batch_descriptor = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Api\BatchingSettingsProto $thresholds + * The thresholds which trigger a batched request to be sent. + * @type \Google\Api\BatchingDescriptorProto $batch_descriptor + * The request and response fields used in batching. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Client::initOnce(); + parent::__construct($data); + } + + /** + * The thresholds which trigger a batched request to be sent. + * + * Generated from protobuf field .google.api.BatchingSettingsProto thresholds = 1; + * @return \Google\Api\BatchingSettingsProto|null + */ + public function getThresholds() + { + return $this->thresholds; + } + + public function hasThresholds() + { + return isset($this->thresholds); + } + + public function clearThresholds() + { + unset($this->thresholds); + } + + /** + * The thresholds which trigger a batched request to be sent. + * + * Generated from protobuf field .google.api.BatchingSettingsProto thresholds = 1; + * @param \Google\Api\BatchingSettingsProto $var + * @return $this + */ + public function setThresholds($var) + { + GPBUtil::checkMessage($var, \Google\Api\BatchingSettingsProto::class); + $this->thresholds = $var; + + return $this; + } + + /** + * The request and response fields used in batching. + * + * Generated from protobuf field .google.api.BatchingDescriptorProto batch_descriptor = 2; + * @return \Google\Api\BatchingDescriptorProto|null + */ + public function getBatchDescriptor() + { + return $this->batch_descriptor; + } + + public function hasBatchDescriptor() + { + return isset($this->batch_descriptor); + } + + public function clearBatchDescriptor() + { + unset($this->batch_descriptor); + } + + /** + * The request and response fields used in batching. + * + * Generated from protobuf field .google.api.BatchingDescriptorProto batch_descriptor = 2; + * @param \Google\Api\BatchingDescriptorProto $var + * @return $this + */ + public function setBatchDescriptor($var) + { + GPBUtil::checkMessage($var, \Google\Api\BatchingDescriptorProto::class); + $this->batch_descriptor = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/BatchingDescriptorProto.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/BatchingDescriptorProto.php new file mode 100644 index 000000000000..96179ad0f31e --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/BatchingDescriptorProto.php @@ -0,0 +1,157 @@ +google.api.BatchingDescriptorProto + */ +class BatchingDescriptorProto extends \Google\Protobuf\Internal\Message +{ + /** + * The repeated field in the request message to be aggregated by batching. + * + * Generated from protobuf field string batched_field = 1; + */ + protected $batched_field = ''; + /** + * A list of the fields in the request message. Two requests will be batched + * together only if the values of every field specified in + * `request_discriminator_fields` is equal between the two requests. + * + * Generated from protobuf field repeated string discriminator_fields = 2; + */ + private $discriminator_fields; + /** + * Optional. When present, indicates the field in the response message to be + * used to demultiplex the response into multiple response messages, in + * correspondence with the multiple request messages originally batched + * together. + * + * Generated from protobuf field string subresponse_field = 3; + */ + protected $subresponse_field = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $batched_field + * The repeated field in the request message to be aggregated by batching. + * @type string[] $discriminator_fields + * A list of the fields in the request message. Two requests will be batched + * together only if the values of every field specified in + * `request_discriminator_fields` is equal between the two requests. + * @type string $subresponse_field + * Optional. When present, indicates the field in the response message to be + * used to demultiplex the response into multiple response messages, in + * correspondence with the multiple request messages originally batched + * together. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Client::initOnce(); + parent::__construct($data); + } + + /** + * The repeated field in the request message to be aggregated by batching. + * + * Generated from protobuf field string batched_field = 1; + * @return string + */ + public function getBatchedField() + { + return $this->batched_field; + } + + /** + * The repeated field in the request message to be aggregated by batching. + * + * Generated from protobuf field string batched_field = 1; + * @param string $var + * @return $this + */ + public function setBatchedField($var) + { + GPBUtil::checkString($var, True); + $this->batched_field = $var; + + return $this; + } + + /** + * A list of the fields in the request message. Two requests will be batched + * together only if the values of every field specified in + * `request_discriminator_fields` is equal between the two requests. + * + * Generated from protobuf field repeated string discriminator_fields = 2; + * @return RepeatedField + */ + public function getDiscriminatorFields() + { + return $this->discriminator_fields; + } + + /** + * A list of the fields in the request message. Two requests will be batched + * together only if the values of every field specified in + * `request_discriminator_fields` is equal between the two requests. + * + * Generated from protobuf field repeated string discriminator_fields = 2; + * @param string[] $var + * @return $this + */ + public function setDiscriminatorFields($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->discriminator_fields = $arr; + + return $this; + } + + /** + * Optional. When present, indicates the field in the response message to be + * used to demultiplex the response into multiple response messages, in + * correspondence with the multiple request messages originally batched + * together. + * + * Generated from protobuf field string subresponse_field = 3; + * @return string + */ + public function getSubresponseField() + { + return $this->subresponse_field; + } + + /** + * Optional. When present, indicates the field in the response message to be + * used to demultiplex the response into multiple response messages, in + * correspondence with the multiple request messages originally batched + * together. + * + * Generated from protobuf field string subresponse_field = 3; + * @param string $var + * @return $this + */ + public function setSubresponseField($var) + { + GPBUtil::checkString($var, True); + $this->subresponse_field = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/BatchingSettingsProto.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/BatchingSettingsProto.php new file mode 100644 index 000000000000..35716d7235ba --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/BatchingSettingsProto.php @@ -0,0 +1,337 @@ +google.api.BatchingSettingsProto + */ +class BatchingSettingsProto extends \Google\Protobuf\Internal\Message +{ + /** + * The number of elements of a field collected into a batch which, if + * exceeded, causes the batch to be sent. + * + * Generated from protobuf field int32 element_count_threshold = 1; + */ + protected $element_count_threshold = 0; + /** + * The aggregated size of the batched field which, if exceeded, causes the + * batch to be sent. This size is computed by aggregating the sizes of the + * request field to be batched, not of the entire request message. + * + * Generated from protobuf field int64 request_byte_threshold = 2; + */ + protected $request_byte_threshold = 0; + /** + * The duration after which a batch should be sent, starting from the addition + * of the first message to that batch. + * + * Generated from protobuf field .google.protobuf.Duration delay_threshold = 3; + */ + protected $delay_threshold = null; + /** + * The maximum number of elements collected in a batch that could be accepted + * by server. + * + * Generated from protobuf field int32 element_count_limit = 4; + */ + protected $element_count_limit = 0; + /** + * The maximum size of the request that could be accepted by server. + * + * Generated from protobuf field int32 request_byte_limit = 5; + */ + protected $request_byte_limit = 0; + /** + * The maximum number of elements allowed by flow control. + * + * Generated from protobuf field int32 flow_control_element_limit = 6; + */ + protected $flow_control_element_limit = 0; + /** + * The maximum size of data allowed by flow control. + * + * Generated from protobuf field int32 flow_control_byte_limit = 7; + */ + protected $flow_control_byte_limit = 0; + /** + * The behavior to take when the flow control limit is exceeded. + * + * Generated from protobuf field .google.api.FlowControlLimitExceededBehaviorProto flow_control_limit_exceeded_behavior = 8; + */ + protected $flow_control_limit_exceeded_behavior = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $element_count_threshold + * The number of elements of a field collected into a batch which, if + * exceeded, causes the batch to be sent. + * @type int|string $request_byte_threshold + * The aggregated size of the batched field which, if exceeded, causes the + * batch to be sent. This size is computed by aggregating the sizes of the + * request field to be batched, not of the entire request message. + * @type \Google\Protobuf\Duration $delay_threshold + * The duration after which a batch should be sent, starting from the addition + * of the first message to that batch. + * @type int $element_count_limit + * The maximum number of elements collected in a batch that could be accepted + * by server. + * @type int $request_byte_limit + * The maximum size of the request that could be accepted by server. + * @type int $flow_control_element_limit + * The maximum number of elements allowed by flow control. + * @type int $flow_control_byte_limit + * The maximum size of data allowed by flow control. + * @type int $flow_control_limit_exceeded_behavior + * The behavior to take when the flow control limit is exceeded. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Client::initOnce(); + parent::__construct($data); + } + + /** + * The number of elements of a field collected into a batch which, if + * exceeded, causes the batch to be sent. + * + * Generated from protobuf field int32 element_count_threshold = 1; + * @return int + */ + public function getElementCountThreshold() + { + return $this->element_count_threshold; + } + + /** + * The number of elements of a field collected into a batch which, if + * exceeded, causes the batch to be sent. + * + * Generated from protobuf field int32 element_count_threshold = 1; + * @param int $var + * @return $this + */ + public function setElementCountThreshold($var) + { + GPBUtil::checkInt32($var); + $this->element_count_threshold = $var; + + return $this; + } + + /** + * The aggregated size of the batched field which, if exceeded, causes the + * batch to be sent. This size is computed by aggregating the sizes of the + * request field to be batched, not of the entire request message. + * + * Generated from protobuf field int64 request_byte_threshold = 2; + * @return int|string + */ + public function getRequestByteThreshold() + { + return $this->request_byte_threshold; + } + + /** + * The aggregated size of the batched field which, if exceeded, causes the + * batch to be sent. This size is computed by aggregating the sizes of the + * request field to be batched, not of the entire request message. + * + * Generated from protobuf field int64 request_byte_threshold = 2; + * @param int|string $var + * @return $this + */ + public function setRequestByteThreshold($var) + { + GPBUtil::checkInt64($var); + $this->request_byte_threshold = $var; + + return $this; + } + + /** + * The duration after which a batch should be sent, starting from the addition + * of the first message to that batch. + * + * Generated from protobuf field .google.protobuf.Duration delay_threshold = 3; + * @return \Google\Protobuf\Duration|null + */ + public function getDelayThreshold() + { + return $this->delay_threshold; + } + + public function hasDelayThreshold() + { + return isset($this->delay_threshold); + } + + public function clearDelayThreshold() + { + unset($this->delay_threshold); + } + + /** + * The duration after which a batch should be sent, starting from the addition + * of the first message to that batch. + * + * Generated from protobuf field .google.protobuf.Duration delay_threshold = 3; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setDelayThreshold($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->delay_threshold = $var; + + return $this; + } + + /** + * The maximum number of elements collected in a batch that could be accepted + * by server. + * + * Generated from protobuf field int32 element_count_limit = 4; + * @return int + */ + public function getElementCountLimit() + { + return $this->element_count_limit; + } + + /** + * The maximum number of elements collected in a batch that could be accepted + * by server. + * + * Generated from protobuf field int32 element_count_limit = 4; + * @param int $var + * @return $this + */ + public function setElementCountLimit($var) + { + GPBUtil::checkInt32($var); + $this->element_count_limit = $var; + + return $this; + } + + /** + * The maximum size of the request that could be accepted by server. + * + * Generated from protobuf field int32 request_byte_limit = 5; + * @return int + */ + public function getRequestByteLimit() + { + return $this->request_byte_limit; + } + + /** + * The maximum size of the request that could be accepted by server. + * + * Generated from protobuf field int32 request_byte_limit = 5; + * @param int $var + * @return $this + */ + public function setRequestByteLimit($var) + { + GPBUtil::checkInt32($var); + $this->request_byte_limit = $var; + + return $this; + } + + /** + * The maximum number of elements allowed by flow control. + * + * Generated from protobuf field int32 flow_control_element_limit = 6; + * @return int + */ + public function getFlowControlElementLimit() + { + return $this->flow_control_element_limit; + } + + /** + * The maximum number of elements allowed by flow control. + * + * Generated from protobuf field int32 flow_control_element_limit = 6; + * @param int $var + * @return $this + */ + public function setFlowControlElementLimit($var) + { + GPBUtil::checkInt32($var); + $this->flow_control_element_limit = $var; + + return $this; + } + + /** + * The maximum size of data allowed by flow control. + * + * Generated from protobuf field int32 flow_control_byte_limit = 7; + * @return int + */ + public function getFlowControlByteLimit() + { + return $this->flow_control_byte_limit; + } + + /** + * The maximum size of data allowed by flow control. + * + * Generated from protobuf field int32 flow_control_byte_limit = 7; + * @param int $var + * @return $this + */ + public function setFlowControlByteLimit($var) + { + GPBUtil::checkInt32($var); + $this->flow_control_byte_limit = $var; + + return $this; + } + + /** + * The behavior to take when the flow control limit is exceeded. + * + * Generated from protobuf field .google.api.FlowControlLimitExceededBehaviorProto flow_control_limit_exceeded_behavior = 8; + * @return int + */ + public function getFlowControlLimitExceededBehavior() + { + return $this->flow_control_limit_exceeded_behavior; + } + + /** + * The behavior to take when the flow control limit is exceeded. + * + * Generated from protobuf field .google.api.FlowControlLimitExceededBehaviorProto flow_control_limit_exceeded_behavior = 8; + * @param int $var + * @return $this + */ + public function setFlowControlLimitExceededBehavior($var) + { + GPBUtil::checkEnum($var, \Google\Api\FlowControlLimitExceededBehaviorProto::class); + $this->flow_control_limit_exceeded_behavior = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Billing.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Billing.php new file mode 100644 index 000000000000..860acaf9891e --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Billing.php @@ -0,0 +1,107 @@ +google.api.Billing + */ +class Billing extends \Google\Protobuf\Internal\Message +{ + /** + * Billing configurations for sending metrics to the consumer project. + * There can be multiple consumer destinations per service, each one must have + * a different monitored resource type. A metric can be used in at most + * one consumer destination. + * + * Generated from protobuf field repeated .google.api.Billing.BillingDestination consumer_destinations = 8; + */ + private $consumer_destinations; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Api\Billing\BillingDestination[] $consumer_destinations + * Billing configurations for sending metrics to the consumer project. + * There can be multiple consumer destinations per service, each one must have + * a different monitored resource type. A metric can be used in at most + * one consumer destination. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Billing::initOnce(); + parent::__construct($data); + } + + /** + * Billing configurations for sending metrics to the consumer project. + * There can be multiple consumer destinations per service, each one must have + * a different monitored resource type. A metric can be used in at most + * one consumer destination. + * + * Generated from protobuf field repeated .google.api.Billing.BillingDestination consumer_destinations = 8; + * @return RepeatedField<\Google\Api\Billing\BillingDestination> + */ + public function getConsumerDestinations() + { + return $this->consumer_destinations; + } + + /** + * Billing configurations for sending metrics to the consumer project. + * There can be multiple consumer destinations per service, each one must have + * a different monitored resource type. A metric can be used in at most + * one consumer destination. + * + * Generated from protobuf field repeated .google.api.Billing.BillingDestination consumer_destinations = 8; + * @param \Google\Api\Billing\BillingDestination[] $var + * @return $this + */ + public function setConsumerDestinations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\Billing\BillingDestination::class); + $this->consumer_destinations = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Billing/BillingDestination.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Billing/BillingDestination.php new file mode 100644 index 000000000000..1075320bd76d --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Billing/BillingDestination.php @@ -0,0 +1,118 @@ +google.api.Billing.BillingDestination + */ +class BillingDestination extends \Google\Protobuf\Internal\Message +{ + /** + * The monitored resource type. The type must be defined in + * [Service.monitored_resources][google.api.Service.monitored_resources] + * section. + * + * Generated from protobuf field string monitored_resource = 1; + */ + protected $monitored_resource = ''; + /** + * Names of the metrics to report to this billing destination. + * Each name must be defined in + * [Service.metrics][google.api.Service.metrics] section. + * + * Generated from protobuf field repeated string metrics = 2; + */ + private $metrics; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $monitored_resource + * The monitored resource type. The type must be defined in + * [Service.monitored_resources][google.api.Service.monitored_resources] + * section. + * @type string[] $metrics + * Names of the metrics to report to this billing destination. + * Each name must be defined in + * [Service.metrics][google.api.Service.metrics] section. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Billing::initOnce(); + parent::__construct($data); + } + + /** + * The monitored resource type. The type must be defined in + * [Service.monitored_resources][google.api.Service.monitored_resources] + * section. + * + * Generated from protobuf field string monitored_resource = 1; + * @return string + */ + public function getMonitoredResource() + { + return $this->monitored_resource; + } + + /** + * The monitored resource type. The type must be defined in + * [Service.monitored_resources][google.api.Service.monitored_resources] + * section. + * + * Generated from protobuf field string monitored_resource = 1; + * @param string $var + * @return $this + */ + public function setMonitoredResource($var) + { + GPBUtil::checkString($var, True); + $this->monitored_resource = $var; + + return $this; + } + + /** + * Names of the metrics to report to this billing destination. + * Each name must be defined in + * [Service.metrics][google.api.Service.metrics] section. + * + * Generated from protobuf field repeated string metrics = 2; + * @return RepeatedField + */ + public function getMetrics() + { + return $this->metrics; + } + + /** + * Names of the metrics to report to this billing destination. + * Each name must be defined in + * [Service.metrics][google.api.Service.metrics] section. + * + * Generated from protobuf field repeated string metrics = 2; + * @param string[] $var + * @return $this + */ + public function setMetrics($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->metrics = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ChangeType.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ChangeType.php new file mode 100644 index 000000000000..e39ab1bd2132 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ChangeType.php @@ -0,0 +1,72 @@ +google.api.ChangeType + */ +class ChangeType +{ + /** + * No value was provided. + * + * Generated from protobuf enum CHANGE_TYPE_UNSPECIFIED = 0; + */ + const CHANGE_TYPE_UNSPECIFIED = 0; + /** + * The changed object exists in the 'new' service configuration, but not + * in the 'old' service configuration. + * + * Generated from protobuf enum ADDED = 1; + */ + const ADDED = 1; + /** + * The changed object exists in the 'old' service configuration, but not + * in the 'new' service configuration. + * + * Generated from protobuf enum REMOVED = 2; + */ + const REMOVED = 2; + /** + * The changed object exists in both service configurations, but its value + * is different. + * + * Generated from protobuf enum MODIFIED = 3; + */ + const MODIFIED = 3; + + private static $valueToName = [ + self::CHANGE_TYPE_UNSPECIFIED => 'CHANGE_TYPE_UNSPECIFIED', + self::ADDED => 'ADDED', + self::REMOVED => 'REMOVED', + self::MODIFIED => 'MODIFIED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ClientLibraryDestination.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ClientLibraryDestination.php new file mode 100644 index 000000000000..81aee7774f4e --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ClientLibraryDestination.php @@ -0,0 +1,63 @@ +google.api.ClientLibraryDestination + */ +class ClientLibraryDestination +{ + /** + * Client libraries will neither be generated nor published to package + * managers. + * + * Generated from protobuf enum CLIENT_LIBRARY_DESTINATION_UNSPECIFIED = 0; + */ + const CLIENT_LIBRARY_DESTINATION_UNSPECIFIED = 0; + /** + * Generate the client library in a repo under github.com/googleapis, + * but don't publish it to package managers. + * + * Generated from protobuf enum GITHUB = 10; + */ + const GITHUB = 10; + /** + * Publish the library to package managers like nuget.org and npmjs.com. + * + * Generated from protobuf enum PACKAGE_MANAGER = 20; + */ + const PACKAGE_MANAGER = 20; + + private static $valueToName = [ + self::CLIENT_LIBRARY_DESTINATION_UNSPECIFIED => 'CLIENT_LIBRARY_DESTINATION_UNSPECIFIED', + self::GITHUB => 'GITHUB', + self::PACKAGE_MANAGER => 'PACKAGE_MANAGER', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ClientLibraryOrganization.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ClientLibraryOrganization.php new file mode 100644 index 000000000000..bbb985f6ae85 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ClientLibraryOrganization.php @@ -0,0 +1,97 @@ +google.api.ClientLibraryOrganization + */ +class ClientLibraryOrganization +{ + /** + * Not useful. + * + * Generated from protobuf enum CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED = 0; + */ + const CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED = 0; + /** + * Google Cloud Platform Org. + * + * Generated from protobuf enum CLOUD = 1; + */ + const CLOUD = 1; + /** + * Ads (Advertising) Org. + * + * Generated from protobuf enum ADS = 2; + */ + const ADS = 2; + /** + * Photos Org. + * + * Generated from protobuf enum PHOTOS = 3; + */ + const PHOTOS = 3; + /** + * Street View Org. + * + * Generated from protobuf enum STREET_VIEW = 4; + */ + const STREET_VIEW = 4; + /** + * Shopping Org. + * + * Generated from protobuf enum SHOPPING = 5; + */ + const SHOPPING = 5; + /** + * Geo Org. + * + * Generated from protobuf enum GEO = 6; + */ + const GEO = 6; + /** + * Generative AI - https://developers.generativeai.google + * + * Generated from protobuf enum GENERATIVE_AI = 7; + */ + const GENERATIVE_AI = 7; + + private static $valueToName = [ + self::CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED => 'CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED', + self::CLOUD => 'CLOUD', + self::ADS => 'ADS', + self::PHOTOS => 'PHOTOS', + self::STREET_VIEW => 'STREET_VIEW', + self::SHOPPING => 'SHOPPING', + self::GEO => 'GEO', + self::GENERATIVE_AI => 'GENERATIVE_AI', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ClientLibrarySettings.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ClientLibrarySettings.php new file mode 100644 index 000000000000..b4b81075cd82 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ClientLibrarySettings.php @@ -0,0 +1,499 @@ +google.api.ClientLibrarySettings + */ +class ClientLibrarySettings extends \Google\Protobuf\Internal\Message +{ + /** + * Version of the API to apply these settings to. This is the full protobuf + * package for the API, ending in the version element. + * Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1". + * + * Generated from protobuf field string version = 1; + */ + protected $version = ''; + /** + * Launch stage of this version of the API. + * + * Generated from protobuf field .google.api.LaunchStage launch_stage = 2; + */ + protected $launch_stage = 0; + /** + * When using transport=rest, the client request will encode enums as + * numbers rather than strings. + * + * Generated from protobuf field bool rest_numeric_enums = 3; + */ + protected $rest_numeric_enums = false; + /** + * Settings for legacy Java features, supported in the Service YAML. + * + * Generated from protobuf field .google.api.JavaSettings java_settings = 21; + */ + protected $java_settings = null; + /** + * Settings for C++ client libraries. + * + * Generated from protobuf field .google.api.CppSettings cpp_settings = 22; + */ + protected $cpp_settings = null; + /** + * Settings for PHP client libraries. + * + * Generated from protobuf field .google.api.PhpSettings php_settings = 23; + */ + protected $php_settings = null; + /** + * Settings for Python client libraries. + * + * Generated from protobuf field .google.api.PythonSettings python_settings = 24; + */ + protected $python_settings = null; + /** + * Settings for Node client libraries. + * + * Generated from protobuf field .google.api.NodeSettings node_settings = 25; + */ + protected $node_settings = null; + /** + * Settings for .NET client libraries. + * + * Generated from protobuf field .google.api.DotnetSettings dotnet_settings = 26; + */ + protected $dotnet_settings = null; + /** + * Settings for Ruby client libraries. + * + * Generated from protobuf field .google.api.RubySettings ruby_settings = 27; + */ + protected $ruby_settings = null; + /** + * Settings for Go client libraries. + * + * Generated from protobuf field .google.api.GoSettings go_settings = 28; + */ + protected $go_settings = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $version + * Version of the API to apply these settings to. This is the full protobuf + * package for the API, ending in the version element. + * Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1". + * @type int $launch_stage + * Launch stage of this version of the API. + * @type bool $rest_numeric_enums + * When using transport=rest, the client request will encode enums as + * numbers rather than strings. + * @type \Google\Api\JavaSettings $java_settings + * Settings for legacy Java features, supported in the Service YAML. + * @type \Google\Api\CppSettings $cpp_settings + * Settings for C++ client libraries. + * @type \Google\Api\PhpSettings $php_settings + * Settings for PHP client libraries. + * @type \Google\Api\PythonSettings $python_settings + * Settings for Python client libraries. + * @type \Google\Api\NodeSettings $node_settings + * Settings for Node client libraries. + * @type \Google\Api\DotnetSettings $dotnet_settings + * Settings for .NET client libraries. + * @type \Google\Api\RubySettings $ruby_settings + * Settings for Ruby client libraries. + * @type \Google\Api\GoSettings $go_settings + * Settings for Go client libraries. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Client::initOnce(); + parent::__construct($data); + } + + /** + * Version of the API to apply these settings to. This is the full protobuf + * package for the API, ending in the version element. + * Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1". + * + * Generated from protobuf field string version = 1; + * @return string + */ + public function getVersion() + { + return $this->version; + } + + /** + * Version of the API to apply these settings to. This is the full protobuf + * package for the API, ending in the version element. + * Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1". + * + * Generated from protobuf field string version = 1; + * @param string $var + * @return $this + */ + public function setVersion($var) + { + GPBUtil::checkString($var, True); + $this->version = $var; + + return $this; + } + + /** + * Launch stage of this version of the API. + * + * Generated from protobuf field .google.api.LaunchStage launch_stage = 2; + * @return int + */ + public function getLaunchStage() + { + return $this->launch_stage; + } + + /** + * Launch stage of this version of the API. + * + * Generated from protobuf field .google.api.LaunchStage launch_stage = 2; + * @param int $var + * @return $this + */ + public function setLaunchStage($var) + { + GPBUtil::checkEnum($var, \Google\Api\LaunchStage::class); + $this->launch_stage = $var; + + return $this; + } + + /** + * When using transport=rest, the client request will encode enums as + * numbers rather than strings. + * + * Generated from protobuf field bool rest_numeric_enums = 3; + * @return bool + */ + public function getRestNumericEnums() + { + return $this->rest_numeric_enums; + } + + /** + * When using transport=rest, the client request will encode enums as + * numbers rather than strings. + * + * Generated from protobuf field bool rest_numeric_enums = 3; + * @param bool $var + * @return $this + */ + public function setRestNumericEnums($var) + { + GPBUtil::checkBool($var); + $this->rest_numeric_enums = $var; + + return $this; + } + + /** + * Settings for legacy Java features, supported in the Service YAML. + * + * Generated from protobuf field .google.api.JavaSettings java_settings = 21; + * @return \Google\Api\JavaSettings|null + */ + public function getJavaSettings() + { + return $this->java_settings; + } + + public function hasJavaSettings() + { + return isset($this->java_settings); + } + + public function clearJavaSettings() + { + unset($this->java_settings); + } + + /** + * Settings for legacy Java features, supported in the Service YAML. + * + * Generated from protobuf field .google.api.JavaSettings java_settings = 21; + * @param \Google\Api\JavaSettings $var + * @return $this + */ + public function setJavaSettings($var) + { + GPBUtil::checkMessage($var, \Google\Api\JavaSettings::class); + $this->java_settings = $var; + + return $this; + } + + /** + * Settings for C++ client libraries. + * + * Generated from protobuf field .google.api.CppSettings cpp_settings = 22; + * @return \Google\Api\CppSettings|null + */ + public function getCppSettings() + { + return $this->cpp_settings; + } + + public function hasCppSettings() + { + return isset($this->cpp_settings); + } + + public function clearCppSettings() + { + unset($this->cpp_settings); + } + + /** + * Settings for C++ client libraries. + * + * Generated from protobuf field .google.api.CppSettings cpp_settings = 22; + * @param \Google\Api\CppSettings $var + * @return $this + */ + public function setCppSettings($var) + { + GPBUtil::checkMessage($var, \Google\Api\CppSettings::class); + $this->cpp_settings = $var; + + return $this; + } + + /** + * Settings for PHP client libraries. + * + * Generated from protobuf field .google.api.PhpSettings php_settings = 23; + * @return \Google\Api\PhpSettings|null + */ + public function getPhpSettings() + { + return $this->php_settings; + } + + public function hasPhpSettings() + { + return isset($this->php_settings); + } + + public function clearPhpSettings() + { + unset($this->php_settings); + } + + /** + * Settings for PHP client libraries. + * + * Generated from protobuf field .google.api.PhpSettings php_settings = 23; + * @param \Google\Api\PhpSettings $var + * @return $this + */ + public function setPhpSettings($var) + { + GPBUtil::checkMessage($var, \Google\Api\PhpSettings::class); + $this->php_settings = $var; + + return $this; + } + + /** + * Settings for Python client libraries. + * + * Generated from protobuf field .google.api.PythonSettings python_settings = 24; + * @return \Google\Api\PythonSettings|null + */ + public function getPythonSettings() + { + return $this->python_settings; + } + + public function hasPythonSettings() + { + return isset($this->python_settings); + } + + public function clearPythonSettings() + { + unset($this->python_settings); + } + + /** + * Settings for Python client libraries. + * + * Generated from protobuf field .google.api.PythonSettings python_settings = 24; + * @param \Google\Api\PythonSettings $var + * @return $this + */ + public function setPythonSettings($var) + { + GPBUtil::checkMessage($var, \Google\Api\PythonSettings::class); + $this->python_settings = $var; + + return $this; + } + + /** + * Settings for Node client libraries. + * + * Generated from protobuf field .google.api.NodeSettings node_settings = 25; + * @return \Google\Api\NodeSettings|null + */ + public function getNodeSettings() + { + return $this->node_settings; + } + + public function hasNodeSettings() + { + return isset($this->node_settings); + } + + public function clearNodeSettings() + { + unset($this->node_settings); + } + + /** + * Settings for Node client libraries. + * + * Generated from protobuf field .google.api.NodeSettings node_settings = 25; + * @param \Google\Api\NodeSettings $var + * @return $this + */ + public function setNodeSettings($var) + { + GPBUtil::checkMessage($var, \Google\Api\NodeSettings::class); + $this->node_settings = $var; + + return $this; + } + + /** + * Settings for .NET client libraries. + * + * Generated from protobuf field .google.api.DotnetSettings dotnet_settings = 26; + * @return \Google\Api\DotnetSettings|null + */ + public function getDotnetSettings() + { + return $this->dotnet_settings; + } + + public function hasDotnetSettings() + { + return isset($this->dotnet_settings); + } + + public function clearDotnetSettings() + { + unset($this->dotnet_settings); + } + + /** + * Settings for .NET client libraries. + * + * Generated from protobuf field .google.api.DotnetSettings dotnet_settings = 26; + * @param \Google\Api\DotnetSettings $var + * @return $this + */ + public function setDotnetSettings($var) + { + GPBUtil::checkMessage($var, \Google\Api\DotnetSettings::class); + $this->dotnet_settings = $var; + + return $this; + } + + /** + * Settings for Ruby client libraries. + * + * Generated from protobuf field .google.api.RubySettings ruby_settings = 27; + * @return \Google\Api\RubySettings|null + */ + public function getRubySettings() + { + return $this->ruby_settings; + } + + public function hasRubySettings() + { + return isset($this->ruby_settings); + } + + public function clearRubySettings() + { + unset($this->ruby_settings); + } + + /** + * Settings for Ruby client libraries. + * + * Generated from protobuf field .google.api.RubySettings ruby_settings = 27; + * @param \Google\Api\RubySettings $var + * @return $this + */ + public function setRubySettings($var) + { + GPBUtil::checkMessage($var, \Google\Api\RubySettings::class); + $this->ruby_settings = $var; + + return $this; + } + + /** + * Settings for Go client libraries. + * + * Generated from protobuf field .google.api.GoSettings go_settings = 28; + * @return \Google\Api\GoSettings|null + */ + public function getGoSettings() + { + return $this->go_settings; + } + + public function hasGoSettings() + { + return isset($this->go_settings); + } + + public function clearGoSettings() + { + unset($this->go_settings); + } + + /** + * Settings for Go client libraries. + * + * Generated from protobuf field .google.api.GoSettings go_settings = 28; + * @param \Google\Api\GoSettings $var + * @return $this + */ + public function setGoSettings($var) + { + GPBUtil::checkMessage($var, \Google\Api\GoSettings::class); + $this->go_settings = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/CommonLanguageSettings.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/CommonLanguageSettings.php new file mode 100644 index 000000000000..2a3ad65deaf8 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/CommonLanguageSettings.php @@ -0,0 +1,156 @@ +google.api.CommonLanguageSettings + */ +class CommonLanguageSettings extends \Google\Protobuf\Internal\Message +{ + /** + * Link to automatically generated reference documentation. Example: + * https://cloud.google.com/nodejs/docs/reference/asset/latest + * + * Generated from protobuf field string reference_docs_uri = 1 [deprecated = true]; + * @deprecated + */ + protected $reference_docs_uri = ''; + /** + * The destination where API teams want this client library to be published. + * + * Generated from protobuf field repeated .google.api.ClientLibraryDestination destinations = 2; + */ + private $destinations; + /** + * Configuration for which RPCs should be generated in the GAPIC client. + * + * Generated from protobuf field .google.api.SelectiveGapicGeneration selective_gapic_generation = 3; + */ + protected $selective_gapic_generation = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $reference_docs_uri + * Link to automatically generated reference documentation. Example: + * https://cloud.google.com/nodejs/docs/reference/asset/latest + * @type int[] $destinations + * The destination where API teams want this client library to be published. + * @type \Google\Api\SelectiveGapicGeneration $selective_gapic_generation + * Configuration for which RPCs should be generated in the GAPIC client. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Client::initOnce(); + parent::__construct($data); + } + + /** + * Link to automatically generated reference documentation. Example: + * https://cloud.google.com/nodejs/docs/reference/asset/latest + * + * Generated from protobuf field string reference_docs_uri = 1 [deprecated = true]; + * @return string + * @deprecated + */ + public function getReferenceDocsUri() + { + if ($this->reference_docs_uri !== '') { + @trigger_error('reference_docs_uri is deprecated.', E_USER_DEPRECATED); + } + return $this->reference_docs_uri; + } + + /** + * Link to automatically generated reference documentation. Example: + * https://cloud.google.com/nodejs/docs/reference/asset/latest + * + * Generated from protobuf field string reference_docs_uri = 1 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setReferenceDocsUri($var) + { + @trigger_error('reference_docs_uri is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->reference_docs_uri = $var; + + return $this; + } + + /** + * The destination where API teams want this client library to be published. + * + * Generated from protobuf field repeated .google.api.ClientLibraryDestination destinations = 2; + * @return RepeatedField + */ + public function getDestinations() + { + return $this->destinations; + } + + /** + * The destination where API teams want this client library to be published. + * + * Generated from protobuf field repeated .google.api.ClientLibraryDestination destinations = 2; + * @param int[] $var + * @return $this + */ + public function setDestinations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Api\ClientLibraryDestination::class); + $this->destinations = $arr; + + return $this; + } + + /** + * Configuration for which RPCs should be generated in the GAPIC client. + * + * Generated from protobuf field .google.api.SelectiveGapicGeneration selective_gapic_generation = 3; + * @return \Google\Api\SelectiveGapicGeneration|null + */ + public function getSelectiveGapicGeneration() + { + return $this->selective_gapic_generation; + } + + public function hasSelectiveGapicGeneration() + { + return isset($this->selective_gapic_generation); + } + + public function clearSelectiveGapicGeneration() + { + unset($this->selective_gapic_generation); + } + + /** + * Configuration for which RPCs should be generated in the GAPIC client. + * + * Generated from protobuf field .google.api.SelectiveGapicGeneration selective_gapic_generation = 3; + * @param \Google\Api\SelectiveGapicGeneration $var + * @return $this + */ + public function setSelectiveGapicGeneration($var) + { + GPBUtil::checkMessage($var, \Google\Api\SelectiveGapicGeneration::class); + $this->selective_gapic_generation = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ConfigChange.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ConfigChange.php new file mode 100644 index 000000000000..95968e096f0d --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ConfigChange.php @@ -0,0 +1,251 @@ +google.api.ConfigChange + */ +class ConfigChange extends \Google\Protobuf\Internal\Message +{ + /** + * Object hierarchy path to the change, with levels separated by a '.' + * character. For repeated fields, an applicable unique identifier field is + * used for the index (usually selector, name, or id). For maps, the term + * 'key' is used. If the field has no unique identifier, the numeric index + * is used. + * Examples: + * - visibility.rules[selector=="google.LibraryService.ListBooks"].restriction + * - quota.metric_rules[selector=="google"].metric_costs[key=="reads"].value + * - logging.producer_destinations[0] + * + * Generated from protobuf field string element = 1; + */ + protected $element = ''; + /** + * Value of the changed object in the old Service configuration, + * in JSON format. This field will not be populated if ChangeType == ADDED. + * + * Generated from protobuf field string old_value = 2; + */ + protected $old_value = ''; + /** + * Value of the changed object in the new Service configuration, + * in JSON format. This field will not be populated if ChangeType == REMOVED. + * + * Generated from protobuf field string new_value = 3; + */ + protected $new_value = ''; + /** + * The type for this change, either ADDED, REMOVED, or MODIFIED. + * + * Generated from protobuf field .google.api.ChangeType change_type = 4; + */ + protected $change_type = 0; + /** + * Collection of advice provided for this change, useful for determining the + * possible impact of this change. + * + * Generated from protobuf field repeated .google.api.Advice advices = 5; + */ + private $advices; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $element + * Object hierarchy path to the change, with levels separated by a '.' + * character. For repeated fields, an applicable unique identifier field is + * used for the index (usually selector, name, or id). For maps, the term + * 'key' is used. If the field has no unique identifier, the numeric index + * is used. + * Examples: + * - visibility.rules[selector=="google.LibraryService.ListBooks"].restriction + * - quota.metric_rules[selector=="google"].metric_costs[key=="reads"].value + * - logging.producer_destinations[0] + * @type string $old_value + * Value of the changed object in the old Service configuration, + * in JSON format. This field will not be populated if ChangeType == ADDED. + * @type string $new_value + * Value of the changed object in the new Service configuration, + * in JSON format. This field will not be populated if ChangeType == REMOVED. + * @type int $change_type + * The type for this change, either ADDED, REMOVED, or MODIFIED. + * @type \Google\Api\Advice[] $advices + * Collection of advice provided for this change, useful for determining the + * possible impact of this change. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\ConfigChange::initOnce(); + parent::__construct($data); + } + + /** + * Object hierarchy path to the change, with levels separated by a '.' + * character. For repeated fields, an applicable unique identifier field is + * used for the index (usually selector, name, or id). For maps, the term + * 'key' is used. If the field has no unique identifier, the numeric index + * is used. + * Examples: + * - visibility.rules[selector=="google.LibraryService.ListBooks"].restriction + * - quota.metric_rules[selector=="google"].metric_costs[key=="reads"].value + * - logging.producer_destinations[0] + * + * Generated from protobuf field string element = 1; + * @return string + */ + public function getElement() + { + return $this->element; + } + + /** + * Object hierarchy path to the change, with levels separated by a '.' + * character. For repeated fields, an applicable unique identifier field is + * used for the index (usually selector, name, or id). For maps, the term + * 'key' is used. If the field has no unique identifier, the numeric index + * is used. + * Examples: + * - visibility.rules[selector=="google.LibraryService.ListBooks"].restriction + * - quota.metric_rules[selector=="google"].metric_costs[key=="reads"].value + * - logging.producer_destinations[0] + * + * Generated from protobuf field string element = 1; + * @param string $var + * @return $this + */ + public function setElement($var) + { + GPBUtil::checkString($var, True); + $this->element = $var; + + return $this; + } + + /** + * Value of the changed object in the old Service configuration, + * in JSON format. This field will not be populated if ChangeType == ADDED. + * + * Generated from protobuf field string old_value = 2; + * @return string + */ + public function getOldValue() + { + return $this->old_value; + } + + /** + * Value of the changed object in the old Service configuration, + * in JSON format. This field will not be populated if ChangeType == ADDED. + * + * Generated from protobuf field string old_value = 2; + * @param string $var + * @return $this + */ + public function setOldValue($var) + { + GPBUtil::checkString($var, True); + $this->old_value = $var; + + return $this; + } + + /** + * Value of the changed object in the new Service configuration, + * in JSON format. This field will not be populated if ChangeType == REMOVED. + * + * Generated from protobuf field string new_value = 3; + * @return string + */ + public function getNewValue() + { + return $this->new_value; + } + + /** + * Value of the changed object in the new Service configuration, + * in JSON format. This field will not be populated if ChangeType == REMOVED. + * + * Generated from protobuf field string new_value = 3; + * @param string $var + * @return $this + */ + public function setNewValue($var) + { + GPBUtil::checkString($var, True); + $this->new_value = $var; + + return $this; + } + + /** + * The type for this change, either ADDED, REMOVED, or MODIFIED. + * + * Generated from protobuf field .google.api.ChangeType change_type = 4; + * @return int + */ + public function getChangeType() + { + return $this->change_type; + } + + /** + * The type for this change, either ADDED, REMOVED, or MODIFIED. + * + * Generated from protobuf field .google.api.ChangeType change_type = 4; + * @param int $var + * @return $this + */ + public function setChangeType($var) + { + GPBUtil::checkEnum($var, \Google\Api\ChangeType::class); + $this->change_type = $var; + + return $this; + } + + /** + * Collection of advice provided for this change, useful for determining the + * possible impact of this change. + * + * Generated from protobuf field repeated .google.api.Advice advices = 5; + * @return RepeatedField<\Google\Api\Advice> + */ + public function getAdvices() + { + return $this->advices; + } + + /** + * Collection of advice provided for this change, useful for determining the + * possible impact of this change. + * + * Generated from protobuf field repeated .google.api.Advice advices = 5; + * @param \Google\Api\Advice[] $var + * @return $this + */ + public function setAdvices($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\Advice::class); + $this->advices = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Context.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Context.php new file mode 100644 index 000000000000..a8fb3dcba8c6 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Context.php @@ -0,0 +1,98 @@ +-bin” and + * “x-goog-ext--jspb” format. For example, list any service + * specific protobuf types that can appear in grpc metadata as follows in your + * yaml file: + * Example: + * context: + * rules: + * - selector: "google.example.library.v1.LibraryService.CreateBook" + * allowed_request_extensions: + * - google.foo.v1.NewExtension + * allowed_response_extensions: + * - google.foo.v1.NewExtension + * You can also specify extension ID instead of fully qualified extension name + * here. + * + * Generated from protobuf message google.api.Context + */ +class Context extends \Google\Protobuf\Internal\Message +{ + /** + * A list of RPC context rules that apply to individual API methods. + * **NOTE:** All service configuration rules follow "last one wins" order. + * + * Generated from protobuf field repeated .google.api.ContextRule rules = 1; + */ + private $rules; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Api\ContextRule[] $rules + * A list of RPC context rules that apply to individual API methods. + * **NOTE:** All service configuration rules follow "last one wins" order. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Context::initOnce(); + parent::__construct($data); + } + + /** + * A list of RPC context rules that apply to individual API methods. + * **NOTE:** All service configuration rules follow "last one wins" order. + * + * Generated from protobuf field repeated .google.api.ContextRule rules = 1; + * @return RepeatedField<\Google\Api\ContextRule> + */ + public function getRules() + { + return $this->rules; + } + + /** + * A list of RPC context rules that apply to individual API methods. + * **NOTE:** All service configuration rules follow "last one wins" order. + * + * Generated from protobuf field repeated .google.api.ContextRule rules = 1; + * @param \Google\Api\ContextRule[] $var + * @return $this + */ + public function setRules($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\ContextRule::class); + $this->rules = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ContextRule.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ContextRule.php new file mode 100644 index 000000000000..669b1af4a0e1 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ContextRule.php @@ -0,0 +1,228 @@ +google.api.ContextRule + */ +class ContextRule extends \Google\Protobuf\Internal\Message +{ + /** + * Selects the methods to which this rule applies. + * Refer to [selector][google.api.DocumentationRule.selector] for syntax + * details. + * + * Generated from protobuf field string selector = 1; + */ + protected $selector = ''; + /** + * A list of full type names of requested contexts, only the requested context + * will be made available to the backend. + * + * Generated from protobuf field repeated string requested = 2; + */ + private $requested; + /** + * A list of full type names of provided contexts. It is used to support + * propagating HTTP headers and ETags from the response extension. + * + * Generated from protobuf field repeated string provided = 3; + */ + private $provided; + /** + * A list of full type names or extension IDs of extensions allowed in grpc + * side channel from client to backend. + * + * Generated from protobuf field repeated string allowed_request_extensions = 4; + */ + private $allowed_request_extensions; + /** + * A list of full type names or extension IDs of extensions allowed in grpc + * side channel from backend to client. + * + * Generated from protobuf field repeated string allowed_response_extensions = 5; + */ + private $allowed_response_extensions; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $selector + * Selects the methods to which this rule applies. + * Refer to [selector][google.api.DocumentationRule.selector] for syntax + * details. + * @type string[] $requested + * A list of full type names of requested contexts, only the requested context + * will be made available to the backend. + * @type string[] $provided + * A list of full type names of provided contexts. It is used to support + * propagating HTTP headers and ETags from the response extension. + * @type string[] $allowed_request_extensions + * A list of full type names or extension IDs of extensions allowed in grpc + * side channel from client to backend. + * @type string[] $allowed_response_extensions + * A list of full type names or extension IDs of extensions allowed in grpc + * side channel from backend to client. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Context::initOnce(); + parent::__construct($data); + } + + /** + * Selects the methods to which this rule applies. + * Refer to [selector][google.api.DocumentationRule.selector] for syntax + * details. + * + * Generated from protobuf field string selector = 1; + * @return string + */ + public function getSelector() + { + return $this->selector; + } + + /** + * Selects the methods to which this rule applies. + * Refer to [selector][google.api.DocumentationRule.selector] for syntax + * details. + * + * Generated from protobuf field string selector = 1; + * @param string $var + * @return $this + */ + public function setSelector($var) + { + GPBUtil::checkString($var, True); + $this->selector = $var; + + return $this; + } + + /** + * A list of full type names of requested contexts, only the requested context + * will be made available to the backend. + * + * Generated from protobuf field repeated string requested = 2; + * @return RepeatedField + */ + public function getRequested() + { + return $this->requested; + } + + /** + * A list of full type names of requested contexts, only the requested context + * will be made available to the backend. + * + * Generated from protobuf field repeated string requested = 2; + * @param string[] $var + * @return $this + */ + public function setRequested($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->requested = $arr; + + return $this; + } + + /** + * A list of full type names of provided contexts. It is used to support + * propagating HTTP headers and ETags from the response extension. + * + * Generated from protobuf field repeated string provided = 3; + * @return RepeatedField + */ + public function getProvided() + { + return $this->provided; + } + + /** + * A list of full type names of provided contexts. It is used to support + * propagating HTTP headers and ETags from the response extension. + * + * Generated from protobuf field repeated string provided = 3; + * @param string[] $var + * @return $this + */ + public function setProvided($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->provided = $arr; + + return $this; + } + + /** + * A list of full type names or extension IDs of extensions allowed in grpc + * side channel from client to backend. + * + * Generated from protobuf field repeated string allowed_request_extensions = 4; + * @return RepeatedField + */ + public function getAllowedRequestExtensions() + { + return $this->allowed_request_extensions; + } + + /** + * A list of full type names or extension IDs of extensions allowed in grpc + * side channel from client to backend. + * + * Generated from protobuf field repeated string allowed_request_extensions = 4; + * @param string[] $var + * @return $this + */ + public function setAllowedRequestExtensions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->allowed_request_extensions = $arr; + + return $this; + } + + /** + * A list of full type names or extension IDs of extensions allowed in grpc + * side channel from backend to client. + * + * Generated from protobuf field repeated string allowed_response_extensions = 5; + * @return RepeatedField + */ + public function getAllowedResponseExtensions() + { + return $this->allowed_response_extensions; + } + + /** + * A list of full type names or extension IDs of extensions allowed in grpc + * side channel from backend to client. + * + * Generated from protobuf field repeated string allowed_response_extensions = 5; + * @param string[] $var + * @return $this + */ + public function setAllowedResponseExtensions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->allowed_response_extensions = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Control.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Control.php new file mode 100644 index 000000000000..834a57015bf6 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Control.php @@ -0,0 +1,112 @@ +google.api.Control + */ +class Control extends \Google\Protobuf\Internal\Message +{ + /** + * The service controller environment to use. If empty, no control plane + * features (like quota and billing) will be enabled. The recommended value + * for most services is servicecontrol.googleapis.com. + * + * Generated from protobuf field string environment = 1; + */ + protected $environment = ''; + /** + * Defines policies applying to the API methods of the service. + * + * Generated from protobuf field repeated .google.api.MethodPolicy method_policies = 4; + */ + private $method_policies; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $environment + * The service controller environment to use. If empty, no control plane + * features (like quota and billing) will be enabled. The recommended value + * for most services is servicecontrol.googleapis.com. + * @type \Google\Api\MethodPolicy[] $method_policies + * Defines policies applying to the API methods of the service. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Control::initOnce(); + parent::__construct($data); + } + + /** + * The service controller environment to use. If empty, no control plane + * features (like quota and billing) will be enabled. The recommended value + * for most services is servicecontrol.googleapis.com. + * + * Generated from protobuf field string environment = 1; + * @return string + */ + public function getEnvironment() + { + return $this->environment; + } + + /** + * The service controller environment to use. If empty, no control plane + * features (like quota and billing) will be enabled. The recommended value + * for most services is servicecontrol.googleapis.com. + * + * Generated from protobuf field string environment = 1; + * @param string $var + * @return $this + */ + public function setEnvironment($var) + { + GPBUtil::checkString($var, True); + $this->environment = $var; + + return $this; + } + + /** + * Defines policies applying to the API methods of the service. + * + * Generated from protobuf field repeated .google.api.MethodPolicy method_policies = 4; + * @return RepeatedField<\Google\Api\MethodPolicy> + */ + public function getMethodPolicies() + { + return $this->method_policies; + } + + /** + * Defines policies applying to the API methods of the service. + * + * Generated from protobuf field repeated .google.api.MethodPolicy method_policies = 4; + * @param \Google\Api\MethodPolicy[] $var + * @return $this + */ + public function setMethodPolicies($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\MethodPolicy::class); + $this->method_policies = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/CppSettings.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/CppSettings.php new file mode 100644 index 000000000000..d19648352d9f --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/CppSettings.php @@ -0,0 +1,77 @@ +google.api.CppSettings + */ +class CppSettings extends \Google\Protobuf\Internal\Message +{ + /** + * Some settings. + * + * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; + */ + protected $common = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Api\CommonLanguageSettings $common + * Some settings. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Client::initOnce(); + parent::__construct($data); + } + + /** + * Some settings. + * + * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; + * @return \Google\Api\CommonLanguageSettings|null + */ + public function getCommon() + { + return $this->common; + } + + public function hasCommon() + { + return isset($this->common); + } + + public function clearCommon() + { + unset($this->common); + } + + /** + * Some settings. + * + * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; + * @param \Google\Api\CommonLanguageSettings $var + * @return $this + */ + public function setCommon($var) + { + GPBUtil::checkMessage($var, \Google\Api\CommonLanguageSettings::class); + $this->common = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/CustomHttpPattern.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/CustomHttpPattern.php new file mode 100644 index 000000000000..2cd8d9658420 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/CustomHttpPattern.php @@ -0,0 +1,101 @@ +google.api.CustomHttpPattern + */ +class CustomHttpPattern extends \Google\Protobuf\Internal\Message +{ + /** + * The name of this custom HTTP verb. + * + * Generated from protobuf field string kind = 1; + */ + protected $kind = ''; + /** + * The path matched by this custom verb. + * + * Generated from protobuf field string path = 2; + */ + protected $path = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $kind + * The name of this custom HTTP verb. + * @type string $path + * The path matched by this custom verb. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Http::initOnce(); + parent::__construct($data); + } + + /** + * The name of this custom HTTP verb. + * + * Generated from protobuf field string kind = 1; + * @return string + */ + public function getKind() + { + return $this->kind; + } + + /** + * The name of this custom HTTP verb. + * + * Generated from protobuf field string kind = 1; + * @param string $var + * @return $this + */ + public function setKind($var) + { + GPBUtil::checkString($var, True); + $this->kind = $var; + + return $this; + } + + /** + * The path matched by this custom verb. + * + * Generated from protobuf field string path = 2; + * @return string + */ + public function getPath() + { + return $this->path; + } + + /** + * The path matched by this custom verb. + * + * Generated from protobuf field string path = 2; + * @param string $var + * @return $this + */ + public function setPath($var) + { + GPBUtil::checkString($var, True); + $this->path = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution.php new file mode 100644 index 000000000000..21d1527b3020 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution.php @@ -0,0 +1,390 @@ +google.api.Distribution + */ +class Distribution extends \Google\Protobuf\Internal\Message +{ + /** + * The number of values in the population. Must be non-negative. This value + * must equal the sum of the values in `bucket_counts` if a histogram is + * provided. + * + * Generated from protobuf field int64 count = 1; + */ + protected $count = 0; + /** + * The arithmetic mean of the values in the population. If `count` is zero + * then this field must be zero. + * + * Generated from protobuf field double mean = 2; + */ + protected $mean = 0.0; + /** + * The sum of squared deviations from the mean of the values in the + * population. For values x_i this is: + * Sum[i=1..n]((x_i - mean)^2) + * Knuth, "The Art of Computer Programming", Vol. 2, page 232, 3rd edition + * describes Welford's method for accumulating this sum in one pass. + * If `count` is zero then this field must be zero. + * + * Generated from protobuf field double sum_of_squared_deviation = 3; + */ + protected $sum_of_squared_deviation = 0.0; + /** + * If specified, contains the range of the population values. The field + * must not be present if the `count` is zero. + * + * Generated from protobuf field .google.api.Distribution.Range range = 4; + */ + protected $range = null; + /** + * Defines the histogram bucket boundaries. If the distribution does not + * contain a histogram, then omit this field. + * + * Generated from protobuf field .google.api.Distribution.BucketOptions bucket_options = 6; + */ + protected $bucket_options = null; + /** + * The number of values in each bucket of the histogram, as described in + * `bucket_options`. If the distribution does not have a histogram, then omit + * this field. If there is a histogram, then the sum of the values in + * `bucket_counts` must equal the value in the `count` field of the + * distribution. + * If present, `bucket_counts` should contain N values, where N is the number + * of buckets specified in `bucket_options`. If you supply fewer than N + * values, the remaining values are assumed to be 0. + * The order of the values in `bucket_counts` follows the bucket numbering + * schemes described for the three bucket types. The first value must be the + * count for the underflow bucket (number 0). The next N-2 values are the + * counts for the finite buckets (number 1 through N-2). The N'th value in + * `bucket_counts` is the count for the overflow bucket (number N-1). + * + * Generated from protobuf field repeated int64 bucket_counts = 7; + */ + private $bucket_counts; + /** + * Must be in increasing order of `value` field. + * + * Generated from protobuf field repeated .google.api.Distribution.Exemplar exemplars = 10; + */ + private $exemplars; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $count + * The number of values in the population. Must be non-negative. This value + * must equal the sum of the values in `bucket_counts` if a histogram is + * provided. + * @type float $mean + * The arithmetic mean of the values in the population. If `count` is zero + * then this field must be zero. + * @type float $sum_of_squared_deviation + * The sum of squared deviations from the mean of the values in the + * population. For values x_i this is: + * Sum[i=1..n]((x_i - mean)^2) + * Knuth, "The Art of Computer Programming", Vol. 2, page 232, 3rd edition + * describes Welford's method for accumulating this sum in one pass. + * If `count` is zero then this field must be zero. + * @type \Google\Api\Distribution\Range $range + * If specified, contains the range of the population values. The field + * must not be present if the `count` is zero. + * @type \Google\Api\Distribution\BucketOptions $bucket_options + * Defines the histogram bucket boundaries. If the distribution does not + * contain a histogram, then omit this field. + * @type int[]|string[] $bucket_counts + * The number of values in each bucket of the histogram, as described in + * `bucket_options`. If the distribution does not have a histogram, then omit + * this field. If there is a histogram, then the sum of the values in + * `bucket_counts` must equal the value in the `count` field of the + * distribution. + * If present, `bucket_counts` should contain N values, where N is the number + * of buckets specified in `bucket_options`. If you supply fewer than N + * values, the remaining values are assumed to be 0. + * The order of the values in `bucket_counts` follows the bucket numbering + * schemes described for the three bucket types. The first value must be the + * count for the underflow bucket (number 0). The next N-2 values are the + * counts for the finite buckets (number 1 through N-2). The N'th value in + * `bucket_counts` is the count for the overflow bucket (number N-1). + * @type \Google\Api\Distribution\Exemplar[] $exemplars + * Must be in increasing order of `value` field. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Distribution::initOnce(); + parent::__construct($data); + } + + /** + * The number of values in the population. Must be non-negative. This value + * must equal the sum of the values in `bucket_counts` if a histogram is + * provided. + * + * Generated from protobuf field int64 count = 1; + * @return int|string + */ + public function getCount() + { + return $this->count; + } + + /** + * The number of values in the population. Must be non-negative. This value + * must equal the sum of the values in `bucket_counts` if a histogram is + * provided. + * + * Generated from protobuf field int64 count = 1; + * @param int|string $var + * @return $this + */ + public function setCount($var) + { + GPBUtil::checkInt64($var); + $this->count = $var; + + return $this; + } + + /** + * The arithmetic mean of the values in the population. If `count` is zero + * then this field must be zero. + * + * Generated from protobuf field double mean = 2; + * @return float + */ + public function getMean() + { + return $this->mean; + } + + /** + * The arithmetic mean of the values in the population. If `count` is zero + * then this field must be zero. + * + * Generated from protobuf field double mean = 2; + * @param float $var + * @return $this + */ + public function setMean($var) + { + GPBUtil::checkDouble($var); + $this->mean = $var; + + return $this; + } + + /** + * The sum of squared deviations from the mean of the values in the + * population. For values x_i this is: + * Sum[i=1..n]((x_i - mean)^2) + * Knuth, "The Art of Computer Programming", Vol. 2, page 232, 3rd edition + * describes Welford's method for accumulating this sum in one pass. + * If `count` is zero then this field must be zero. + * + * Generated from protobuf field double sum_of_squared_deviation = 3; + * @return float + */ + public function getSumOfSquaredDeviation() + { + return $this->sum_of_squared_deviation; + } + + /** + * The sum of squared deviations from the mean of the values in the + * population. For values x_i this is: + * Sum[i=1..n]((x_i - mean)^2) + * Knuth, "The Art of Computer Programming", Vol. 2, page 232, 3rd edition + * describes Welford's method for accumulating this sum in one pass. + * If `count` is zero then this field must be zero. + * + * Generated from protobuf field double sum_of_squared_deviation = 3; + * @param float $var + * @return $this + */ + public function setSumOfSquaredDeviation($var) + { + GPBUtil::checkDouble($var); + $this->sum_of_squared_deviation = $var; + + return $this; + } + + /** + * If specified, contains the range of the population values. The field + * must not be present if the `count` is zero. + * + * Generated from protobuf field .google.api.Distribution.Range range = 4; + * @return \Google\Api\Distribution\Range|null + */ + public function getRange() + { + return $this->range; + } + + public function hasRange() + { + return isset($this->range); + } + + public function clearRange() + { + unset($this->range); + } + + /** + * If specified, contains the range of the population values. The field + * must not be present if the `count` is zero. + * + * Generated from protobuf field .google.api.Distribution.Range range = 4; + * @param \Google\Api\Distribution\Range $var + * @return $this + */ + public function setRange($var) + { + GPBUtil::checkMessage($var, \Google\Api\Distribution\Range::class); + $this->range = $var; + + return $this; + } + + /** + * Defines the histogram bucket boundaries. If the distribution does not + * contain a histogram, then omit this field. + * + * Generated from protobuf field .google.api.Distribution.BucketOptions bucket_options = 6; + * @return \Google\Api\Distribution\BucketOptions|null + */ + public function getBucketOptions() + { + return $this->bucket_options; + } + + public function hasBucketOptions() + { + return isset($this->bucket_options); + } + + public function clearBucketOptions() + { + unset($this->bucket_options); + } + + /** + * Defines the histogram bucket boundaries. If the distribution does not + * contain a histogram, then omit this field. + * + * Generated from protobuf field .google.api.Distribution.BucketOptions bucket_options = 6; + * @param \Google\Api\Distribution\BucketOptions $var + * @return $this + */ + public function setBucketOptions($var) + { + GPBUtil::checkMessage($var, \Google\Api\Distribution\BucketOptions::class); + $this->bucket_options = $var; + + return $this; + } + + /** + * The number of values in each bucket of the histogram, as described in + * `bucket_options`. If the distribution does not have a histogram, then omit + * this field. If there is a histogram, then the sum of the values in + * `bucket_counts` must equal the value in the `count` field of the + * distribution. + * If present, `bucket_counts` should contain N values, where N is the number + * of buckets specified in `bucket_options`. If you supply fewer than N + * values, the remaining values are assumed to be 0. + * The order of the values in `bucket_counts` follows the bucket numbering + * schemes described for the three bucket types. The first value must be the + * count for the underflow bucket (number 0). The next N-2 values are the + * counts for the finite buckets (number 1 through N-2). The N'th value in + * `bucket_counts` is the count for the overflow bucket (number N-1). + * + * Generated from protobuf field repeated int64 bucket_counts = 7; + * @return RepeatedField|RepeatedField + */ + public function getBucketCounts() + { + return $this->bucket_counts; + } + + /** + * The number of values in each bucket of the histogram, as described in + * `bucket_options`. If the distribution does not have a histogram, then omit + * this field. If there is a histogram, then the sum of the values in + * `bucket_counts` must equal the value in the `count` field of the + * distribution. + * If present, `bucket_counts` should contain N values, where N is the number + * of buckets specified in `bucket_options`. If you supply fewer than N + * values, the remaining values are assumed to be 0. + * The order of the values in `bucket_counts` follows the bucket numbering + * schemes described for the three bucket types. The first value must be the + * count for the underflow bucket (number 0). The next N-2 values are the + * counts for the finite buckets (number 1 through N-2). The N'th value in + * `bucket_counts` is the count for the overflow bucket (number N-1). + * + * Generated from protobuf field repeated int64 bucket_counts = 7; + * @param int[]|string[] $var + * @return $this + */ + public function setBucketCounts($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT64); + $this->bucket_counts = $arr; + + return $this; + } + + /** + * Must be in increasing order of `value` field. + * + * Generated from protobuf field repeated .google.api.Distribution.Exemplar exemplars = 10; + * @return RepeatedField<\Google\Api\Distribution\Exemplar> + */ + public function getExemplars() + { + return $this->exemplars; + } + + /** + * Must be in increasing order of `value` field. + * + * Generated from protobuf field repeated .google.api.Distribution.Exemplar exemplars = 10; + * @param \Google\Api\Distribution\Exemplar[] $var + * @return $this + */ + public function setExemplars($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\Distribution\Exemplar::class); + $this->exemplars = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/BucketOptions.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/BucketOptions.php new file mode 100644 index 000000000000..9592cb4b7671 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/BucketOptions.php @@ -0,0 +1,154 @@ + 0) is the + * same as the upper bound of bucket i - 1. The buckets span the whole range + * of finite values: lower bound of the underflow bucket is -infinity and the + * upper bound of the overflow bucket is +infinity. The finite buckets are + * so-called because both bounds are finite. + * + * Generated from protobuf message google.api.Distribution.BucketOptions + */ +class BucketOptions extends \Google\Protobuf\Internal\Message +{ + protected $options; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Api\Distribution\BucketOptions\Linear $linear_buckets + * The linear bucket. + * @type \Google\Api\Distribution\BucketOptions\Exponential $exponential_buckets + * The exponential buckets. + * @type \Google\Api\Distribution\BucketOptions\Explicit $explicit_buckets + * The explicit buckets. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Distribution::initOnce(); + parent::__construct($data); + } + + /** + * The linear bucket. + * + * Generated from protobuf field .google.api.Distribution.BucketOptions.Linear linear_buckets = 1; + * @return \Google\Api\Distribution\BucketOptions\Linear|null + */ + public function getLinearBuckets() + { + return $this->readOneof(1); + } + + public function hasLinearBuckets() + { + return $this->hasOneof(1); + } + + /** + * The linear bucket. + * + * Generated from protobuf field .google.api.Distribution.BucketOptions.Linear linear_buckets = 1; + * @param \Google\Api\Distribution\BucketOptions\Linear $var + * @return $this + */ + public function setLinearBuckets($var) + { + GPBUtil::checkMessage($var, \Google\Api\Distribution\BucketOptions\Linear::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * The exponential buckets. + * + * Generated from protobuf field .google.api.Distribution.BucketOptions.Exponential exponential_buckets = 2; + * @return \Google\Api\Distribution\BucketOptions\Exponential|null + */ + public function getExponentialBuckets() + { + return $this->readOneof(2); + } + + public function hasExponentialBuckets() + { + return $this->hasOneof(2); + } + + /** + * The exponential buckets. + * + * Generated from protobuf field .google.api.Distribution.BucketOptions.Exponential exponential_buckets = 2; + * @param \Google\Api\Distribution\BucketOptions\Exponential $var + * @return $this + */ + public function setExponentialBuckets($var) + { + GPBUtil::checkMessage($var, \Google\Api\Distribution\BucketOptions\Exponential::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * The explicit buckets. + * + * Generated from protobuf field .google.api.Distribution.BucketOptions.Explicit explicit_buckets = 3; + * @return \Google\Api\Distribution\BucketOptions\Explicit|null + */ + public function getExplicitBuckets() + { + return $this->readOneof(3); + } + + public function hasExplicitBuckets() + { + return $this->hasOneof(3); + } + + /** + * The explicit buckets. + * + * Generated from protobuf field .google.api.Distribution.BucketOptions.Explicit explicit_buckets = 3; + * @param \Google\Api\Distribution\BucketOptions\Explicit $var + * @return $this + */ + public function setExplicitBuckets($var) + { + GPBUtil::checkMessage($var, \Google\Api\Distribution\BucketOptions\Explicit::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * @return string + */ + public function getOptions() + { + return $this->whichOneof("options"); + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/BucketOptions/Explicit.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/BucketOptions/Explicit.php new file mode 100644 index 000000000000..5921bd98dfbb --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/BucketOptions/Explicit.php @@ -0,0 +1,74 @@ +google.api.Distribution.BucketOptions.Explicit + */ +class Explicit extends \Google\Protobuf\Internal\Message +{ + /** + * The values must be monotonically increasing. + * + * Generated from protobuf field repeated double bounds = 1; + */ + private $bounds; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type float[] $bounds + * The values must be monotonically increasing. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Distribution::initOnce(); + parent::__construct($data); + } + + /** + * The values must be monotonically increasing. + * + * Generated from protobuf field repeated double bounds = 1; + * @return RepeatedField + */ + public function getBounds() + { + return $this->bounds; + } + + /** + * The values must be monotonically increasing. + * + * Generated from protobuf field repeated double bounds = 1; + * @param float[] $var + * @return $this + */ + public function setBounds($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::DOUBLE); + $this->bounds = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/BucketOptions/Exponential.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/BucketOptions/Exponential.php new file mode 100644 index 000000000000..58e67685834c --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/BucketOptions/Exponential.php @@ -0,0 +1,141 @@ +google.api.Distribution.BucketOptions.Exponential + */ +class Exponential extends \Google\Protobuf\Internal\Message +{ + /** + * Must be greater than 0. + * + * Generated from protobuf field int32 num_finite_buckets = 1; + */ + protected $num_finite_buckets = 0; + /** + * Must be greater than 1. + * + * Generated from protobuf field double growth_factor = 2; + */ + protected $growth_factor = 0.0; + /** + * Must be greater than 0. + * + * Generated from protobuf field double scale = 3; + */ + protected $scale = 0.0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $num_finite_buckets + * Must be greater than 0. + * @type float $growth_factor + * Must be greater than 1. + * @type float $scale + * Must be greater than 0. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Distribution::initOnce(); + parent::__construct($data); + } + + /** + * Must be greater than 0. + * + * Generated from protobuf field int32 num_finite_buckets = 1; + * @return int + */ + public function getNumFiniteBuckets() + { + return $this->num_finite_buckets; + } + + /** + * Must be greater than 0. + * + * Generated from protobuf field int32 num_finite_buckets = 1; + * @param int $var + * @return $this + */ + public function setNumFiniteBuckets($var) + { + GPBUtil::checkInt32($var); + $this->num_finite_buckets = $var; + + return $this; + } + + /** + * Must be greater than 1. + * + * Generated from protobuf field double growth_factor = 2; + * @return float + */ + public function getGrowthFactor() + { + return $this->growth_factor; + } + + /** + * Must be greater than 1. + * + * Generated from protobuf field double growth_factor = 2; + * @param float $var + * @return $this + */ + public function setGrowthFactor($var) + { + GPBUtil::checkDouble($var); + $this->growth_factor = $var; + + return $this; + } + + /** + * Must be greater than 0. + * + * Generated from protobuf field double scale = 3; + * @return float + */ + public function getScale() + { + return $this->scale; + } + + /** + * Must be greater than 0. + * + * Generated from protobuf field double scale = 3; + * @param float $var + * @return $this + */ + public function setScale($var) + { + GPBUtil::checkDouble($var); + $this->scale = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/BucketOptions/Linear.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/BucketOptions/Linear.php new file mode 100644 index 000000000000..ca602bd7463c --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/BucketOptions/Linear.php @@ -0,0 +1,141 @@ +google.api.Distribution.BucketOptions.Linear + */ +class Linear extends \Google\Protobuf\Internal\Message +{ + /** + * Must be greater than 0. + * + * Generated from protobuf field int32 num_finite_buckets = 1; + */ + protected $num_finite_buckets = 0; + /** + * Must be greater than 0. + * + * Generated from protobuf field double width = 2; + */ + protected $width = 0.0; + /** + * Lower bound of the first bucket. + * + * Generated from protobuf field double offset = 3; + */ + protected $offset = 0.0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $num_finite_buckets + * Must be greater than 0. + * @type float $width + * Must be greater than 0. + * @type float $offset + * Lower bound of the first bucket. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Distribution::initOnce(); + parent::__construct($data); + } + + /** + * Must be greater than 0. + * + * Generated from protobuf field int32 num_finite_buckets = 1; + * @return int + */ + public function getNumFiniteBuckets() + { + return $this->num_finite_buckets; + } + + /** + * Must be greater than 0. + * + * Generated from protobuf field int32 num_finite_buckets = 1; + * @param int $var + * @return $this + */ + public function setNumFiniteBuckets($var) + { + GPBUtil::checkInt32($var); + $this->num_finite_buckets = $var; + + return $this; + } + + /** + * Must be greater than 0. + * + * Generated from protobuf field double width = 2; + * @return float + */ + public function getWidth() + { + return $this->width; + } + + /** + * Must be greater than 0. + * + * Generated from protobuf field double width = 2; + * @param float $var + * @return $this + */ + public function setWidth($var) + { + GPBUtil::checkDouble($var); + $this->width = $var; + + return $this; + } + + /** + * Lower bound of the first bucket. + * + * Generated from protobuf field double offset = 3; + * @return float + */ + public function getOffset() + { + return $this->offset; + } + + /** + * Lower bound of the first bucket. + * + * Generated from protobuf field double offset = 3; + * @param float $var + * @return $this + */ + public function setOffset($var) + { + GPBUtil::checkDouble($var); + $this->offset = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/Exemplar.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/Exemplar.php new file mode 100644 index 000000000000..4c28e48e173f --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/Exemplar.php @@ -0,0 +1,177 @@ +google.api.Distribution.Exemplar + */ +class Exemplar extends \Google\Protobuf\Internal\Message +{ + /** + * Value of the exemplar point. This value determines to which bucket the + * exemplar belongs. + * + * Generated from protobuf field double value = 1; + */ + protected $value = 0.0; + /** + * The observation (sampling) time of the above value. + * + * Generated from protobuf field .google.protobuf.Timestamp timestamp = 2; + */ + protected $timestamp = null; + /** + * Contextual information about the example value. Examples are: + * Trace: type.googleapis.com/google.monitoring.v3.SpanContext + * Literal string: type.googleapis.com/google.protobuf.StringValue + * Labels dropped during aggregation: + * type.googleapis.com/google.monitoring.v3.DroppedLabels + * There may be only a single attachment of any given message type in a + * single exemplar, and this is enforced by the system. + * + * Generated from protobuf field repeated .google.protobuf.Any attachments = 3; + */ + private $attachments; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type float $value + * Value of the exemplar point. This value determines to which bucket the + * exemplar belongs. + * @type \Google\Protobuf\Timestamp $timestamp + * The observation (sampling) time of the above value. + * @type \Google\Protobuf\Any[] $attachments + * Contextual information about the example value. Examples are: + * Trace: type.googleapis.com/google.monitoring.v3.SpanContext + * Literal string: type.googleapis.com/google.protobuf.StringValue + * Labels dropped during aggregation: + * type.googleapis.com/google.monitoring.v3.DroppedLabels + * There may be only a single attachment of any given message type in a + * single exemplar, and this is enforced by the system. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Distribution::initOnce(); + parent::__construct($data); + } + + /** + * Value of the exemplar point. This value determines to which bucket the + * exemplar belongs. + * + * Generated from protobuf field double value = 1; + * @return float + */ + public function getValue() + { + return $this->value; + } + + /** + * Value of the exemplar point. This value determines to which bucket the + * exemplar belongs. + * + * Generated from protobuf field double value = 1; + * @param float $var + * @return $this + */ + public function setValue($var) + { + GPBUtil::checkDouble($var); + $this->value = $var; + + return $this; + } + + /** + * The observation (sampling) time of the above value. + * + * Generated from protobuf field .google.protobuf.Timestamp timestamp = 2; + * @return \Google\Protobuf\Timestamp|null + */ + public function getTimestamp() + { + return $this->timestamp; + } + + public function hasTimestamp() + { + return isset($this->timestamp); + } + + public function clearTimestamp() + { + unset($this->timestamp); + } + + /** + * The observation (sampling) time of the above value. + * + * Generated from protobuf field .google.protobuf.Timestamp timestamp = 2; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setTimestamp($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->timestamp = $var; + + return $this; + } + + /** + * Contextual information about the example value. Examples are: + * Trace: type.googleapis.com/google.monitoring.v3.SpanContext + * Literal string: type.googleapis.com/google.protobuf.StringValue + * Labels dropped during aggregation: + * type.googleapis.com/google.monitoring.v3.DroppedLabels + * There may be only a single attachment of any given message type in a + * single exemplar, and this is enforced by the system. + * + * Generated from protobuf field repeated .google.protobuf.Any attachments = 3; + * @return RepeatedField<\Google\Protobuf\Any> + */ + public function getAttachments() + { + return $this->attachments; + } + + /** + * Contextual information about the example value. Examples are: + * Trace: type.googleapis.com/google.monitoring.v3.SpanContext + * Literal string: type.googleapis.com/google.protobuf.StringValue + * Labels dropped during aggregation: + * type.googleapis.com/google.monitoring.v3.DroppedLabels + * There may be only a single attachment of any given message type in a + * single exemplar, and this is enforced by the system. + * + * Generated from protobuf field repeated .google.protobuf.Any attachments = 3; + * @param \Google\Protobuf\Any[] $var + * @return $this + */ + public function setAttachments($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Any::class); + $this->attachments = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/Range.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/Range.php new file mode 100644 index 000000000000..7446a794ed9f --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/Range.php @@ -0,0 +1,101 @@ +google.api.Distribution.Range + */ +class Range extends \Google\Protobuf\Internal\Message +{ + /** + * The minimum of the population values. + * + * Generated from protobuf field double min = 1; + */ + protected $min = 0.0; + /** + * The maximum of the population values. + * + * Generated from protobuf field double max = 2; + */ + protected $max = 0.0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type float $min + * The minimum of the population values. + * @type float $max + * The maximum of the population values. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Distribution::initOnce(); + parent::__construct($data); + } + + /** + * The minimum of the population values. + * + * Generated from protobuf field double min = 1; + * @return float + */ + public function getMin() + { + return $this->min; + } + + /** + * The minimum of the population values. + * + * Generated from protobuf field double min = 1; + * @param float $var + * @return $this + */ + public function setMin($var) + { + GPBUtil::checkDouble($var); + $this->min = $var; + + return $this; + } + + /** + * The maximum of the population values. + * + * Generated from protobuf field double max = 2; + * @return float + */ + public function getMax() + { + return $this->max; + } + + /** + * The maximum of the population values. + * + * Generated from protobuf field double max = 2; + * @param float $var + * @return $this + */ + public function setMax($var) + { + GPBUtil::checkDouble($var); + $this->max = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Documentation.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Documentation.php new file mode 100644 index 000000000000..6d84f784c333 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Documentation.php @@ -0,0 +1,362 @@ +documentation: + * summary: > + * The Google Calendar API gives access + * to most calendar features. + * pages: + * - name: Overview + * content: (== include google/foo/overview.md ==) + * - name: Tutorial + * content: (== include google/foo/tutorial.md ==) + * subpages: + * - name: Java + * content: (== include google/foo/tutorial_java.md ==) + * rules: + * - selector: google.calendar.Calendar.Get + * description: > + * ... + * - selector: google.calendar.Calendar.Put + * description: > + * ... + * + * Documentation is provided in markdown syntax. In addition to + * standard markdown features, definition lists, tables and fenced + * code blocks are supported. Section headers can be provided and are + * interpreted relative to the section nesting of the context where + * a documentation fragment is embedded. + * Documentation from the IDL is merged with documentation defined + * via the config at normalization time, where documentation provided + * by config rules overrides IDL provided. + * A number of constructs specific to the API platform are supported + * in documentation text. + * In order to reference a proto element, the following + * notation can be used: + *
[fully.qualified.proto.name][]
+ * To override the display text used for the link, this can be used: + *
[display text][fully.qualified.proto.name]
+ * Text can be excluded from doc using the following notation: + *
(-- internal comment --)
+ * A few directives are available in documentation. Note that + * directives must appear on a single line to be properly + * identified. The `include` directive includes a markdown file from + * an external source: + *
(== include path/to/file ==)
+ * The `resource_for` directive marks a message to be the resource of + * a collection in REST view. If it is not specified, tools attempt + * to infer the resource from the operations in a collection: + *
(== resource_for v1.shelves.books ==)
+ * The directive `suppress_warning` does not directly affect documentation + * and is documented together with service config validation. + * + * Generated from protobuf message google.api.Documentation + */ +class Documentation extends \Google\Protobuf\Internal\Message +{ + /** + * A short description of what the service does. The summary must be plain + * text. It becomes the overview of the service displayed in Google Cloud + * Console. + * NOTE: This field is equivalent to the standard field `description`. + * + * Generated from protobuf field string summary = 1; + */ + protected $summary = ''; + /** + * The top level pages for the documentation set. + * + * Generated from protobuf field repeated .google.api.Page pages = 5; + */ + private $pages; + /** + * A list of documentation rules that apply to individual API elements. + * **NOTE:** All service configuration rules follow "last one wins" order. + * + * Generated from protobuf field repeated .google.api.DocumentationRule rules = 3; + */ + private $rules; + /** + * The URL to the root of documentation. + * + * Generated from protobuf field string documentation_root_url = 4; + */ + protected $documentation_root_url = ''; + /** + * Specifies the service root url if the default one (the service name + * from the yaml file) is not suitable. This can be seen in any fully + * specified service urls as well as sections that show a base that other + * urls are relative to. + * + * Generated from protobuf field string service_root_url = 6; + */ + protected $service_root_url = ''; + /** + * Declares a single overview page. For example: + *
documentation:
+     *   summary: ...
+     *   overview: (== include overview.md ==)
+     * 
+ * This is a shortcut for the following declaration (using pages style): + *
documentation:
+     *   summary: ...
+     *   pages:
+     *   - name: Overview
+     *     content: (== include overview.md ==)
+     * 
+ * Note: you cannot specify both `overview` field and `pages` field. + * + * Generated from protobuf field string overview = 2; + */ + protected $overview = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $summary + * A short description of what the service does. The summary must be plain + * text. It becomes the overview of the service displayed in Google Cloud + * Console. + * NOTE: This field is equivalent to the standard field `description`. + * @type \Google\Api\Page[] $pages + * The top level pages for the documentation set. + * @type \Google\Api\DocumentationRule[] $rules + * A list of documentation rules that apply to individual API elements. + * **NOTE:** All service configuration rules follow "last one wins" order. + * @type string $documentation_root_url + * The URL to the root of documentation. + * @type string $service_root_url + * Specifies the service root url if the default one (the service name + * from the yaml file) is not suitable. This can be seen in any fully + * specified service urls as well as sections that show a base that other + * urls are relative to. + * @type string $overview + * Declares a single overview page. For example: + *
documentation:
+     *             summary: ...
+     *             overview: (== include overview.md ==)
+     *           
+ * This is a shortcut for the following declaration (using pages style): + *
documentation:
+     *             summary: ...
+     *             pages:
+     *             - name: Overview
+     *               content: (== include overview.md ==)
+     *           
+ * Note: you cannot specify both `overview` field and `pages` field. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Documentation::initOnce(); + parent::__construct($data); + } + + /** + * A short description of what the service does. The summary must be plain + * text. It becomes the overview of the service displayed in Google Cloud + * Console. + * NOTE: This field is equivalent to the standard field `description`. + * + * Generated from protobuf field string summary = 1; + * @return string + */ + public function getSummary() + { + return $this->summary; + } + + /** + * A short description of what the service does. The summary must be plain + * text. It becomes the overview of the service displayed in Google Cloud + * Console. + * NOTE: This field is equivalent to the standard field `description`. + * + * Generated from protobuf field string summary = 1; + * @param string $var + * @return $this + */ + public function setSummary($var) + { + GPBUtil::checkString($var, True); + $this->summary = $var; + + return $this; + } + + /** + * The top level pages for the documentation set. + * + * Generated from protobuf field repeated .google.api.Page pages = 5; + * @return RepeatedField<\Google\Api\Page> + */ + public function getPages() + { + return $this->pages; + } + + /** + * The top level pages for the documentation set. + * + * Generated from protobuf field repeated .google.api.Page pages = 5; + * @param \Google\Api\Page[] $var + * @return $this + */ + public function setPages($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\Page::class); + $this->pages = $arr; + + return $this; + } + + /** + * A list of documentation rules that apply to individual API elements. + * **NOTE:** All service configuration rules follow "last one wins" order. + * + * Generated from protobuf field repeated .google.api.DocumentationRule rules = 3; + * @return RepeatedField<\Google\Api\DocumentationRule> + */ + public function getRules() + { + return $this->rules; + } + + /** + * A list of documentation rules that apply to individual API elements. + * **NOTE:** All service configuration rules follow "last one wins" order. + * + * Generated from protobuf field repeated .google.api.DocumentationRule rules = 3; + * @param \Google\Api\DocumentationRule[] $var + * @return $this + */ + public function setRules($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\DocumentationRule::class); + $this->rules = $arr; + + return $this; + } + + /** + * The URL to the root of documentation. + * + * Generated from protobuf field string documentation_root_url = 4; + * @return string + */ + public function getDocumentationRootUrl() + { + return $this->documentation_root_url; + } + + /** + * The URL to the root of documentation. + * + * Generated from protobuf field string documentation_root_url = 4; + * @param string $var + * @return $this + */ + public function setDocumentationRootUrl($var) + { + GPBUtil::checkString($var, True); + $this->documentation_root_url = $var; + + return $this; + } + + /** + * Specifies the service root url if the default one (the service name + * from the yaml file) is not suitable. This can be seen in any fully + * specified service urls as well as sections that show a base that other + * urls are relative to. + * + * Generated from protobuf field string service_root_url = 6; + * @return string + */ + public function getServiceRootUrl() + { + return $this->service_root_url; + } + + /** + * Specifies the service root url if the default one (the service name + * from the yaml file) is not suitable. This can be seen in any fully + * specified service urls as well as sections that show a base that other + * urls are relative to. + * + * Generated from protobuf field string service_root_url = 6; + * @param string $var + * @return $this + */ + public function setServiceRootUrl($var) + { + GPBUtil::checkString($var, True); + $this->service_root_url = $var; + + return $this; + } + + /** + * Declares a single overview page. For example: + *
documentation:
+     *   summary: ...
+     *   overview: (== include overview.md ==)
+     * 
+ * This is a shortcut for the following declaration (using pages style): + *
documentation:
+     *   summary: ...
+     *   pages:
+     *   - name: Overview
+     *     content: (== include overview.md ==)
+     * 
+ * Note: you cannot specify both `overview` field and `pages` field. + * + * Generated from protobuf field string overview = 2; + * @return string + */ + public function getOverview() + { + return $this->overview; + } + + /** + * Declares a single overview page. For example: + *
documentation:
+     *   summary: ...
+     *   overview: (== include overview.md ==)
+     * 
+ * This is a shortcut for the following declaration (using pages style): + *
documentation:
+     *   summary: ...
+     *   pages:
+     *   - name: Overview
+     *     content: (== include overview.md ==)
+     * 
+ * Note: you cannot specify both `overview` field and `pages` field. + * + * Generated from protobuf field string overview = 2; + * @param string $var + * @return $this + */ + public function setOverview($var) + { + GPBUtil::checkString($var, True); + $this->overview = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/DocumentationRule.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/DocumentationRule.php new file mode 100644 index 000000000000..d6c654532551 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/DocumentationRule.php @@ -0,0 +1,171 @@ +google.api.DocumentationRule + */ +class DocumentationRule extends \Google\Protobuf\Internal\Message +{ + /** + * The selector is a comma-separated list of patterns for any element such as + * a method, a field, an enum value. Each pattern is a qualified name of the + * element which may end in "*", indicating a wildcard. Wildcards are only + * allowed at the end and for a whole component of the qualified name, + * i.e. "foo.*" is ok, but not "foo.b*" or "foo.*.bar". A wildcard will match + * one or more components. To specify a default for all applicable elements, + * the whole pattern "*" is used. + * + * Generated from protobuf field string selector = 1; + */ + protected $selector = ''; + /** + * Description of the selected proto element (e.g. a message, a method, a + * 'service' definition, or a field). Defaults to leading & trailing comments + * taken from the proto source definition of the proto element. + * + * Generated from protobuf field string description = 2; + */ + protected $description = ''; + /** + * Deprecation description of the selected element(s). It can be provided if + * an element is marked as `deprecated`. + * + * Generated from protobuf field string deprecation_description = 3; + */ + protected $deprecation_description = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $selector + * The selector is a comma-separated list of patterns for any element such as + * a method, a field, an enum value. Each pattern is a qualified name of the + * element which may end in "*", indicating a wildcard. Wildcards are only + * allowed at the end and for a whole component of the qualified name, + * i.e. "foo.*" is ok, but not "foo.b*" or "foo.*.bar". A wildcard will match + * one or more components. To specify a default for all applicable elements, + * the whole pattern "*" is used. + * @type string $description + * Description of the selected proto element (e.g. a message, a method, a + * 'service' definition, or a field). Defaults to leading & trailing comments + * taken from the proto source definition of the proto element. + * @type string $deprecation_description + * Deprecation description of the selected element(s). It can be provided if + * an element is marked as `deprecated`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Documentation::initOnce(); + parent::__construct($data); + } + + /** + * The selector is a comma-separated list of patterns for any element such as + * a method, a field, an enum value. Each pattern is a qualified name of the + * element which may end in "*", indicating a wildcard. Wildcards are only + * allowed at the end and for a whole component of the qualified name, + * i.e. "foo.*" is ok, but not "foo.b*" or "foo.*.bar". A wildcard will match + * one or more components. To specify a default for all applicable elements, + * the whole pattern "*" is used. + * + * Generated from protobuf field string selector = 1; + * @return string + */ + public function getSelector() + { + return $this->selector; + } + + /** + * The selector is a comma-separated list of patterns for any element such as + * a method, a field, an enum value. Each pattern is a qualified name of the + * element which may end in "*", indicating a wildcard. Wildcards are only + * allowed at the end and for a whole component of the qualified name, + * i.e. "foo.*" is ok, but not "foo.b*" or "foo.*.bar". A wildcard will match + * one or more components. To specify a default for all applicable elements, + * the whole pattern "*" is used. + * + * Generated from protobuf field string selector = 1; + * @param string $var + * @return $this + */ + public function setSelector($var) + { + GPBUtil::checkString($var, True); + $this->selector = $var; + + return $this; + } + + /** + * Description of the selected proto element (e.g. a message, a method, a + * 'service' definition, or a field). Defaults to leading & trailing comments + * taken from the proto source definition of the proto element. + * + * Generated from protobuf field string description = 2; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Description of the selected proto element (e.g. a message, a method, a + * 'service' definition, or a field). Defaults to leading & trailing comments + * taken from the proto source definition of the proto element. + * + * Generated from protobuf field string description = 2; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * Deprecation description of the selected element(s). It can be provided if + * an element is marked as `deprecated`. + * + * Generated from protobuf field string deprecation_description = 3; + * @return string + */ + public function getDeprecationDescription() + { + return $this->deprecation_description; + } + + /** + * Deprecation description of the selected element(s). It can be provided if + * an element is marked as `deprecated`. + * + * Generated from protobuf field string deprecation_description = 3; + * @param string $var + * @return $this + */ + public function setDeprecationDescription($var) + { + GPBUtil::checkString($var, True); + $this->deprecation_description = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/DotnetSettings.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/DotnetSettings.php new file mode 100644 index 000000000000..3f94ff3a94e5 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/DotnetSettings.php @@ -0,0 +1,307 @@ +google.api.DotnetSettings + */ +class DotnetSettings extends \Google\Protobuf\Internal\Message +{ + /** + * Some settings. + * + * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; + */ + protected $common = null; + /** + * Map from original service names to renamed versions. + * This is used when the default generated types + * would cause a naming conflict. (Neither name is + * fully-qualified.) + * Example: Subscriber to SubscriberServiceApi. + * + * Generated from protobuf field map renamed_services = 2; + */ + private $renamed_services; + /** + * Map from full resource types to the effective short name + * for the resource. This is used when otherwise resource + * named from different services would cause naming collisions. + * Example entry: + * "datalabeling.googleapis.com/Dataset": "DataLabelingDataset" + * + * Generated from protobuf field map renamed_resources = 3; + */ + private $renamed_resources; + /** + * List of full resource types to ignore during generation. + * This is typically used for API-specific Location resources, + * which should be handled by the generator as if they were actually + * the common Location resources. + * Example entry: "documentai.googleapis.com/Location" + * + * Generated from protobuf field repeated string ignored_resources = 4; + */ + private $ignored_resources; + /** + * Namespaces which must be aliased in snippets due to + * a known (but non-generator-predictable) naming collision + * + * Generated from protobuf field repeated string forced_namespace_aliases = 5; + */ + private $forced_namespace_aliases; + /** + * Method signatures (in the form "service.method(signature)") + * which are provided separately, so shouldn't be generated. + * Snippets *calling* these methods are still generated, however. + * + * Generated from protobuf field repeated string handwritten_signatures = 6; + */ + private $handwritten_signatures; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Api\CommonLanguageSettings $common + * Some settings. + * @type array|\Google\Protobuf\Internal\MapField $renamed_services + * Map from original service names to renamed versions. + * This is used when the default generated types + * would cause a naming conflict. (Neither name is + * fully-qualified.) + * Example: Subscriber to SubscriberServiceApi. + * @type array|\Google\Protobuf\Internal\MapField $renamed_resources + * Map from full resource types to the effective short name + * for the resource. This is used when otherwise resource + * named from different services would cause naming collisions. + * Example entry: + * "datalabeling.googleapis.com/Dataset": "DataLabelingDataset" + * @type string[] $ignored_resources + * List of full resource types to ignore during generation. + * This is typically used for API-specific Location resources, + * which should be handled by the generator as if they were actually + * the common Location resources. + * Example entry: "documentai.googleapis.com/Location" + * @type string[] $forced_namespace_aliases + * Namespaces which must be aliased in snippets due to + * a known (but non-generator-predictable) naming collision + * @type string[] $handwritten_signatures + * Method signatures (in the form "service.method(signature)") + * which are provided separately, so shouldn't be generated. + * Snippets *calling* these methods are still generated, however. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Client::initOnce(); + parent::__construct($data); + } + + /** + * Some settings. + * + * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; + * @return \Google\Api\CommonLanguageSettings|null + */ + public function getCommon() + { + return $this->common; + } + + public function hasCommon() + { + return isset($this->common); + } + + public function clearCommon() + { + unset($this->common); + } + + /** + * Some settings. + * + * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; + * @param \Google\Api\CommonLanguageSettings $var + * @return $this + */ + public function setCommon($var) + { + GPBUtil::checkMessage($var, \Google\Api\CommonLanguageSettings::class); + $this->common = $var; + + return $this; + } + + /** + * Map from original service names to renamed versions. + * This is used when the default generated types + * would cause a naming conflict. (Neither name is + * fully-qualified.) + * Example: Subscriber to SubscriberServiceApi. + * + * Generated from protobuf field map renamed_services = 2; + * @return \Google\Protobuf\Internal\MapField + */ + public function getRenamedServices() + { + return $this->renamed_services; + } + + /** + * Map from original service names to renamed versions. + * This is used when the default generated types + * would cause a naming conflict. (Neither name is + * fully-qualified.) + * Example: Subscriber to SubscriberServiceApi. + * + * Generated from protobuf field map renamed_services = 2; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setRenamedServices($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->renamed_services = $arr; + + return $this; + } + + /** + * Map from full resource types to the effective short name + * for the resource. This is used when otherwise resource + * named from different services would cause naming collisions. + * Example entry: + * "datalabeling.googleapis.com/Dataset": "DataLabelingDataset" + * + * Generated from protobuf field map renamed_resources = 3; + * @return \Google\Protobuf\Internal\MapField + */ + public function getRenamedResources() + { + return $this->renamed_resources; + } + + /** + * Map from full resource types to the effective short name + * for the resource. This is used when otherwise resource + * named from different services would cause naming collisions. + * Example entry: + * "datalabeling.googleapis.com/Dataset": "DataLabelingDataset" + * + * Generated from protobuf field map renamed_resources = 3; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setRenamedResources($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->renamed_resources = $arr; + + return $this; + } + + /** + * List of full resource types to ignore during generation. + * This is typically used for API-specific Location resources, + * which should be handled by the generator as if they were actually + * the common Location resources. + * Example entry: "documentai.googleapis.com/Location" + * + * Generated from protobuf field repeated string ignored_resources = 4; + * @return RepeatedField + */ + public function getIgnoredResources() + { + return $this->ignored_resources; + } + + /** + * List of full resource types to ignore during generation. + * This is typically used for API-specific Location resources, + * which should be handled by the generator as if they were actually + * the common Location resources. + * Example entry: "documentai.googleapis.com/Location" + * + * Generated from protobuf field repeated string ignored_resources = 4; + * @param string[] $var + * @return $this + */ + public function setIgnoredResources($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->ignored_resources = $arr; + + return $this; + } + + /** + * Namespaces which must be aliased in snippets due to + * a known (but non-generator-predictable) naming collision + * + * Generated from protobuf field repeated string forced_namespace_aliases = 5; + * @return RepeatedField + */ + public function getForcedNamespaceAliases() + { + return $this->forced_namespace_aliases; + } + + /** + * Namespaces which must be aliased in snippets due to + * a known (but non-generator-predictable) naming collision + * + * Generated from protobuf field repeated string forced_namespace_aliases = 5; + * @param string[] $var + * @return $this + */ + public function setForcedNamespaceAliases($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->forced_namespace_aliases = $arr; + + return $this; + } + + /** + * Method signatures (in the form "service.method(signature)") + * which are provided separately, so shouldn't be generated. + * Snippets *calling* these methods are still generated, however. + * + * Generated from protobuf field repeated string handwritten_signatures = 6; + * @return RepeatedField + */ + public function getHandwrittenSignatures() + { + return $this->handwritten_signatures; + } + + /** + * Method signatures (in the form "service.method(signature)") + * which are provided separately, so shouldn't be generated. + * Snippets *calling* these methods are still generated, however. + * + * Generated from protobuf field repeated string handwritten_signatures = 6; + * @param string[] $var + * @return $this + */ + public function setHandwrittenSignatures($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->handwritten_signatures = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Endpoint.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Endpoint.php new file mode 100644 index 000000000000..694c63a577b4 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Endpoint.php @@ -0,0 +1,231 @@ +google.api.Endpoint + */ +class Endpoint extends \Google\Protobuf\Internal\Message +{ + /** + * The canonical name of this endpoint. + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * Aliases for this endpoint, these will be served by the same UrlMap as the + * parent endpoint, and will be provisioned in the GCP stack for the Regional + * Endpoints. + * + * Generated from protobuf field repeated string aliases = 2; + */ + private $aliases; + /** + * The specification of an Internet routable address of API frontend that will + * handle requests to this [API + * Endpoint](https://cloud.google.com/apis/design/glossary). It should be + * either a valid IPv4 address or a fully-qualified domain name. For example, + * "8.8.8.8" or "myservice.appspot.com". + * + * Generated from protobuf field string target = 101; + */ + protected $target = ''; + /** + * Allowing + * [CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing), aka + * cross-domain traffic, would allow the backends served from this endpoint to + * receive and respond to HTTP OPTIONS requests. The response will be used by + * the browser to determine whether the subsequent cross-origin request is + * allowed to proceed. + * + * Generated from protobuf field bool allow_cors = 5; + */ + protected $allow_cors = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * The canonical name of this endpoint. + * @type string[] $aliases + * Aliases for this endpoint, these will be served by the same UrlMap as the + * parent endpoint, and will be provisioned in the GCP stack for the Regional + * Endpoints. + * @type string $target + * The specification of an Internet routable address of API frontend that will + * handle requests to this [API + * Endpoint](https://cloud.google.com/apis/design/glossary). It should be + * either a valid IPv4 address or a fully-qualified domain name. For example, + * "8.8.8.8" or "myservice.appspot.com". + * @type bool $allow_cors + * Allowing + * [CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing), aka + * cross-domain traffic, would allow the backends served from this endpoint to + * receive and respond to HTTP OPTIONS requests. The response will be used by + * the browser to determine whether the subsequent cross-origin request is + * allowed to proceed. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Endpoint::initOnce(); + parent::__construct($data); + } + + /** + * The canonical name of this endpoint. + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The canonical name of this endpoint. + * + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Aliases for this endpoint, these will be served by the same UrlMap as the + * parent endpoint, and will be provisioned in the GCP stack for the Regional + * Endpoints. + * + * Generated from protobuf field repeated string aliases = 2; + * @return RepeatedField + */ + public function getAliases() + { + return $this->aliases; + } + + /** + * Aliases for this endpoint, these will be served by the same UrlMap as the + * parent endpoint, and will be provisioned in the GCP stack for the Regional + * Endpoints. + * + * Generated from protobuf field repeated string aliases = 2; + * @param string[] $var + * @return $this + */ + public function setAliases($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->aliases = $arr; + + return $this; + } + + /** + * The specification of an Internet routable address of API frontend that will + * handle requests to this [API + * Endpoint](https://cloud.google.com/apis/design/glossary). It should be + * either a valid IPv4 address or a fully-qualified domain name. For example, + * "8.8.8.8" or "myservice.appspot.com". + * + * Generated from protobuf field string target = 101; + * @return string + */ + public function getTarget() + { + return $this->target; + } + + /** + * The specification of an Internet routable address of API frontend that will + * handle requests to this [API + * Endpoint](https://cloud.google.com/apis/design/glossary). It should be + * either a valid IPv4 address or a fully-qualified domain name. For example, + * "8.8.8.8" or "myservice.appspot.com". + * + * Generated from protobuf field string target = 101; + * @param string $var + * @return $this + */ + public function setTarget($var) + { + GPBUtil::checkString($var, True); + $this->target = $var; + + return $this; + } + + /** + * Allowing + * [CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing), aka + * cross-domain traffic, would allow the backends served from this endpoint to + * receive and respond to HTTP OPTIONS requests. The response will be used by + * the browser to determine whether the subsequent cross-origin request is + * allowed to proceed. + * + * Generated from protobuf field bool allow_cors = 5; + * @return bool + */ + public function getAllowCors() + { + return $this->allow_cors; + } + + /** + * Allowing + * [CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing), aka + * cross-domain traffic, would allow the backends served from this endpoint to + * receive and respond to HTTP OPTIONS requests. The response will be used by + * the browser to determine whether the subsequent cross-origin request is + * allowed to proceed. + * + * Generated from protobuf field bool allow_cors = 5; + * @param bool $var + * @return $this + */ + public function setAllowCors($var) + { + GPBUtil::checkBool($var); + $this->allow_cors = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ErrorReason.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ErrorReason.php new file mode 100644 index 000000000000..5457fb4ca9bf --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ErrorReason.php @@ -0,0 +1,895 @@ +google.api.ErrorReason + */ +class ErrorReason +{ + /** + * Do not use this default value. + * + * Generated from protobuf enum ERROR_REASON_UNSPECIFIED = 0; + */ + const ERROR_REASON_UNSPECIFIED = 0; + /** + * The request is calling a disabled service for a consumer. + * Example of an ErrorInfo when the consumer "projects/123" contacting + * "pubsub.googleapis.com" service which is disabled: + * { "reason": "SERVICE_DISABLED", + * "domain": "googleapis.com", + * "metadata": { + * "consumer": "projects/123", + * "service": "pubsub.googleapis.com" + * } + * } + * This response indicates the "pubsub.googleapis.com" has been disabled in + * "projects/123". + * + * Generated from protobuf enum SERVICE_DISABLED = 1; + */ + const SERVICE_DISABLED = 1; + /** + * The request whose associated billing account is disabled. + * Example of an ErrorInfo when the consumer "projects/123" fails to contact + * "pubsub.googleapis.com" service because the associated billing account is + * disabled: + * { "reason": "BILLING_DISABLED", + * "domain": "googleapis.com", + * "metadata": { + * "consumer": "projects/123", + * "service": "pubsub.googleapis.com" + * } + * } + * This response indicates the billing account associated has been disabled. + * + * Generated from protobuf enum BILLING_DISABLED = 2; + */ + const BILLING_DISABLED = 2; + /** + * The request is denied because the provided [API + * key](https://cloud.google.com/docs/authentication/api-keys) is invalid. It + * may be in a bad format, cannot be found, or has been expired). + * Example of an ErrorInfo when the request is contacting + * "storage.googleapis.com" service with an invalid API key: + * { "reason": "API_KEY_INVALID", + * "domain": "googleapis.com", + * "metadata": { + * "service": "storage.googleapis.com", + * } + * } + * + * Generated from protobuf enum API_KEY_INVALID = 3; + */ + const API_KEY_INVALID = 3; + /** + * The request is denied because it violates [API key API + * restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_api_restrictions). + * Example of an ErrorInfo when the consumer "projects/123" fails to call the + * "storage.googleapis.com" service because this service is restricted in the + * API key: + * { "reason": "API_KEY_SERVICE_BLOCKED", + * "domain": "googleapis.com", + * "metadata": { + * "consumer": "projects/123", + * "service": "storage.googleapis.com" + * } + * } + * + * Generated from protobuf enum API_KEY_SERVICE_BLOCKED = 4; + */ + const API_KEY_SERVICE_BLOCKED = 4; + /** + * The request is denied because it violates [API key HTTP + * restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_http_restrictions). + * Example of an ErrorInfo when the consumer "projects/123" fails to call + * "storage.googleapis.com" service because the http referrer of the request + * violates API key HTTP restrictions: + * { "reason": "API_KEY_HTTP_REFERRER_BLOCKED", + * "domain": "googleapis.com", + * "metadata": { + * "consumer": "projects/123", + * "service": "storage.googleapis.com", + * } + * } + * + * Generated from protobuf enum API_KEY_HTTP_REFERRER_BLOCKED = 7; + */ + const API_KEY_HTTP_REFERRER_BLOCKED = 7; + /** + * The request is denied because it violates [API key IP address + * restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_application_restrictions). + * Example of an ErrorInfo when the consumer "projects/123" fails to call + * "storage.googleapis.com" service because the caller IP of the request + * violates API key IP address restrictions: + * { "reason": "API_KEY_IP_ADDRESS_BLOCKED", + * "domain": "googleapis.com", + * "metadata": { + * "consumer": "projects/123", + * "service": "storage.googleapis.com", + * } + * } + * + * Generated from protobuf enum API_KEY_IP_ADDRESS_BLOCKED = 8; + */ + const API_KEY_IP_ADDRESS_BLOCKED = 8; + /** + * The request is denied because it violates [API key Android application + * restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_application_restrictions). + * Example of an ErrorInfo when the consumer "projects/123" fails to call + * "storage.googleapis.com" service because the request from the Android apps + * violates the API key Android application restrictions: + * { "reason": "API_KEY_ANDROID_APP_BLOCKED", + * "domain": "googleapis.com", + * "metadata": { + * "consumer": "projects/123", + * "service": "storage.googleapis.com" + * } + * } + * + * Generated from protobuf enum API_KEY_ANDROID_APP_BLOCKED = 9; + */ + const API_KEY_ANDROID_APP_BLOCKED = 9; + /** + * The request is denied because it violates [API key iOS application + * restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_application_restrictions). + * Example of an ErrorInfo when the consumer "projects/123" fails to call + * "storage.googleapis.com" service because the request from the iOS apps + * violates the API key iOS application restrictions: + * { "reason": "API_KEY_IOS_APP_BLOCKED", + * "domain": "googleapis.com", + * "metadata": { + * "consumer": "projects/123", + * "service": "storage.googleapis.com" + * } + * } + * + * Generated from protobuf enum API_KEY_IOS_APP_BLOCKED = 13; + */ + const API_KEY_IOS_APP_BLOCKED = 13; + /** + * The request is denied because there is not enough rate quota for the + * consumer. + * Example of an ErrorInfo when the consumer "projects/123" fails to contact + * "pubsub.googleapis.com" service because consumer's rate quota usage has + * reached the maximum value set for the quota limit + * "ReadsPerMinutePerProject" on the quota metric + * "pubsub.googleapis.com/read_requests": + * { "reason": "RATE_LIMIT_EXCEEDED", + * "domain": "googleapis.com", + * "metadata": { + * "consumer": "projects/123", + * "service": "pubsub.googleapis.com", + * "quota_metric": "pubsub.googleapis.com/read_requests", + * "quota_limit": "ReadsPerMinutePerProject" + * } + * } + * Example of an ErrorInfo when the consumer "projects/123" checks quota on + * the service "dataflow.googleapis.com" and hits the organization quota + * limit "DefaultRequestsPerMinutePerOrganization" on the metric + * "dataflow.googleapis.com/default_requests". + * { "reason": "RATE_LIMIT_EXCEEDED", + * "domain": "googleapis.com", + * "metadata": { + * "consumer": "projects/123", + * "service": "dataflow.googleapis.com", + * "quota_metric": "dataflow.googleapis.com/default_requests", + * "quota_limit": "DefaultRequestsPerMinutePerOrganization" + * } + * } + * + * Generated from protobuf enum RATE_LIMIT_EXCEEDED = 5; + */ + const RATE_LIMIT_EXCEEDED = 5; + /** + * The request is denied because there is not enough resource quota for the + * consumer. + * Example of an ErrorInfo when the consumer "projects/123" fails to contact + * "compute.googleapis.com" service because consumer's resource quota usage + * has reached the maximum value set for the quota limit "VMsPerProject" + * on the quota metric "compute.googleapis.com/vms": + * { "reason": "RESOURCE_QUOTA_EXCEEDED", + * "domain": "googleapis.com", + * "metadata": { + * "consumer": "projects/123", + * "service": "compute.googleapis.com", + * "quota_metric": "compute.googleapis.com/vms", + * "quota_limit": "VMsPerProject" + * } + * } + * Example of an ErrorInfo when the consumer "projects/123" checks resource + * quota on the service "dataflow.googleapis.com" and hits the organization + * quota limit "jobs-per-organization" on the metric + * "dataflow.googleapis.com/job_count". + * { "reason": "RESOURCE_QUOTA_EXCEEDED", + * "domain": "googleapis.com", + * "metadata": { + * "consumer": "projects/123", + * "service": "dataflow.googleapis.com", + * "quota_metric": "dataflow.googleapis.com/job_count", + * "quota_limit": "jobs-per-organization" + * } + * } + * + * Generated from protobuf enum RESOURCE_QUOTA_EXCEEDED = 6; + */ + const RESOURCE_QUOTA_EXCEEDED = 6; + /** + * The request whose associated billing account address is in a tax restricted + * location, violates the local tax restrictions when creating resources in + * the restricted region. + * Example of an ErrorInfo when creating the Cloud Storage Bucket in the + * container "projects/123" under a tax restricted region + * "locations/asia-northeast3": + * { "reason": "LOCATION_TAX_POLICY_VIOLATED", + * "domain": "googleapis.com", + * "metadata": { + * "consumer": "projects/123", + * "service": "storage.googleapis.com", + * "location": "locations/asia-northeast3" + * } + * } + * This response indicates creating the Cloud Storage Bucket in + * "locations/asia-northeast3" violates the location tax restriction. + * + * Generated from protobuf enum LOCATION_TAX_POLICY_VIOLATED = 10; + */ + const LOCATION_TAX_POLICY_VIOLATED = 10; + /** + * The request is denied because the caller does not have required permission + * on the user project "projects/123" or the user project is invalid. For more + * information, check the [userProject System + * Parameters](https://cloud.google.com/apis/docs/system-parameters). + * Example of an ErrorInfo when the caller is calling Cloud Storage service + * with insufficient permissions on the user project: + * { "reason": "USER_PROJECT_DENIED", + * "domain": "googleapis.com", + * "metadata": { + * "consumer": "projects/123", + * "service": "storage.googleapis.com" + * } + * } + * + * Generated from protobuf enum USER_PROJECT_DENIED = 11; + */ + const USER_PROJECT_DENIED = 11; + /** + * The request is denied because the consumer "projects/123" is suspended due + * to Terms of Service(Tos) violations. Check [Project suspension + * guidelines](https://cloud.google.com/resource-manager/docs/project-suspension-guidelines) + * for more information. + * Example of an ErrorInfo when calling Cloud Storage service with the + * suspended consumer "projects/123": + * { "reason": "CONSUMER_SUSPENDED", + * "domain": "googleapis.com", + * "metadata": { + * "consumer": "projects/123", + * "service": "storage.googleapis.com" + * } + * } + * + * Generated from protobuf enum CONSUMER_SUSPENDED = 12; + */ + const CONSUMER_SUSPENDED = 12; + /** + * The request is denied because the associated consumer is invalid. It may be + * in a bad format, cannot be found, or have been deleted. + * Example of an ErrorInfo when calling Cloud Storage service with the + * invalid consumer "projects/123": + * { "reason": "CONSUMER_INVALID", + * "domain": "googleapis.com", + * "metadata": { + * "consumer": "projects/123", + * "service": "storage.googleapis.com" + * } + * } + * + * Generated from protobuf enum CONSUMER_INVALID = 14; + */ + const CONSUMER_INVALID = 14; + /** + * The request is denied because it violates [VPC Service + * Controls](https://cloud.google.com/vpc-service-controls/docs/overview). + * The 'uid' field is a random generated identifier that customer can use it + * to search the audit log for a request rejected by VPC Service Controls. For + * more information, please refer [VPC Service Controls + * Troubleshooting](https://cloud.google.com/vpc-service-controls/docs/troubleshooting#unique-id) + * Example of an ErrorInfo when the consumer "projects/123" fails to call + * Cloud Storage service because the request is prohibited by the VPC Service + * Controls. + * { "reason": "SECURITY_POLICY_VIOLATED", + * "domain": "googleapis.com", + * "metadata": { + * "uid": "123456789abcde", + * "consumer": "projects/123", + * "service": "storage.googleapis.com" + * } + * } + * + * Generated from protobuf enum SECURITY_POLICY_VIOLATED = 15; + */ + const SECURITY_POLICY_VIOLATED = 15; + /** + * The request is denied because the provided access token has expired. + * Example of an ErrorInfo when the request is calling Cloud Storage service + * with an expired access token: + * { "reason": "ACCESS_TOKEN_EXPIRED", + * "domain": "googleapis.com", + * "metadata": { + * "service": "storage.googleapis.com", + * "method": "google.storage.v1.Storage.GetObject" + * } + * } + * + * Generated from protobuf enum ACCESS_TOKEN_EXPIRED = 16; + */ + const ACCESS_TOKEN_EXPIRED = 16; + /** + * The request is denied because the provided access token doesn't have at + * least one of the acceptable scopes required for the API. Please check + * [OAuth 2.0 Scopes for Google + * APIs](https://developers.google.com/identity/protocols/oauth2/scopes) for + * the list of the OAuth 2.0 scopes that you might need to request to access + * the API. + * Example of an ErrorInfo when the request is calling Cloud Storage service + * with an access token that is missing required scopes: + * { "reason": "ACCESS_TOKEN_SCOPE_INSUFFICIENT", + * "domain": "googleapis.com", + * "metadata": { + * "service": "storage.googleapis.com", + * "method": "google.storage.v1.Storage.GetObject" + * } + * } + * + * Generated from protobuf enum ACCESS_TOKEN_SCOPE_INSUFFICIENT = 17; + */ + const ACCESS_TOKEN_SCOPE_INSUFFICIENT = 17; + /** + * The request is denied because the account associated with the provided + * access token is in an invalid state, such as disabled or deleted. + * For more information, see https://cloud.google.com/docs/authentication. + * Warning: For privacy reasons, the server may not be able to disclose the + * email address for some accounts. The client MUST NOT depend on the + * availability of the `email` attribute. + * Example of an ErrorInfo when the request is to the Cloud Storage API with + * an access token that is associated with a disabled or deleted [service + * account](http://cloud/iam/docs/service-accounts): + * { "reason": "ACCOUNT_STATE_INVALID", + * "domain": "googleapis.com", + * "metadata": { + * "service": "storage.googleapis.com", + * "method": "google.storage.v1.Storage.GetObject", + * "email": "user\@123.iam.gserviceaccount.com" + * } + * } + * + * Generated from protobuf enum ACCOUNT_STATE_INVALID = 18; + */ + const ACCOUNT_STATE_INVALID = 18; + /** + * The request is denied because the type of the provided access token is not + * supported by the API being called. + * Example of an ErrorInfo when the request is to the Cloud Storage API with + * an unsupported token type. + * { "reason": "ACCESS_TOKEN_TYPE_UNSUPPORTED", + * "domain": "googleapis.com", + * "metadata": { + * "service": "storage.googleapis.com", + * "method": "google.storage.v1.Storage.GetObject" + * } + * } + * + * Generated from protobuf enum ACCESS_TOKEN_TYPE_UNSUPPORTED = 19; + */ + const ACCESS_TOKEN_TYPE_UNSUPPORTED = 19; + /** + * The request is denied because the request doesn't have any authentication + * credentials. For more information regarding the supported authentication + * strategies for Google Cloud APIs, see + * https://cloud.google.com/docs/authentication. + * Example of an ErrorInfo when the request is to the Cloud Storage API + * without any authentication credentials. + * { "reason": "CREDENTIALS_MISSING", + * "domain": "googleapis.com", + * "metadata": { + * "service": "storage.googleapis.com", + * "method": "google.storage.v1.Storage.GetObject" + * } + * } + * + * Generated from protobuf enum CREDENTIALS_MISSING = 20; + */ + const CREDENTIALS_MISSING = 20; + /** + * The request is denied because the provided project owning the resource + * which acts as the [API + * consumer](https://cloud.google.com/apis/design/glossary#api_consumer) is + * invalid. It may be in a bad format or empty. + * Example of an ErrorInfo when the request is to the Cloud Functions API, + * but the offered resource project in the request in a bad format which can't + * perform the ListFunctions method. + * { "reason": "RESOURCE_PROJECT_INVALID", + * "domain": "googleapis.com", + * "metadata": { + * "service": "cloudfunctions.googleapis.com", + * "method": + * "google.cloud.functions.v1.CloudFunctionsService.ListFunctions" + * } + * } + * + * Generated from protobuf enum RESOURCE_PROJECT_INVALID = 21; + */ + const RESOURCE_PROJECT_INVALID = 21; + /** + * The request is denied because the provided session cookie is missing, + * invalid or failed to decode. + * Example of an ErrorInfo when the request is calling Cloud Storage service + * with a SID cookie which can't be decoded. + * { "reason": "SESSION_COOKIE_INVALID", + * "domain": "googleapis.com", + * "metadata": { + * "service": "storage.googleapis.com", + * "method": "google.storage.v1.Storage.GetObject", + * "cookie": "SID" + * } + * } + * + * Generated from protobuf enum SESSION_COOKIE_INVALID = 23; + */ + const SESSION_COOKIE_INVALID = 23; + /** + * The request is denied because the user is from a Google Workspace customer + * that blocks their users from accessing a particular service. + * Example scenario: https://support.google.com/a/answer/9197205?hl=en + * Example of an ErrorInfo when access to Google Cloud Storage service is + * blocked by the Google Workspace administrator: + * { "reason": "USER_BLOCKED_BY_ADMIN", + * "domain": "googleapis.com", + * "metadata": { + * "service": "storage.googleapis.com", + * "method": "google.storage.v1.Storage.GetObject", + * } + * } + * + * Generated from protobuf enum USER_BLOCKED_BY_ADMIN = 24; + */ + const USER_BLOCKED_BY_ADMIN = 24; + /** + * The request is denied because the resource service usage is restricted + * by administrators according to the organization policy constraint. + * For more information see + * https://cloud.google.com/resource-manager/docs/organization-policy/restricting-services. + * Example of an ErrorInfo when access to Google Cloud Storage service is + * restricted by Resource Usage Restriction policy: + * { "reason": "RESOURCE_USAGE_RESTRICTION_VIOLATED", + * "domain": "googleapis.com", + * "metadata": { + * "consumer": "projects/project-123", + * "service": "storage.googleapis.com" + * } + * } + * + * Generated from protobuf enum RESOURCE_USAGE_RESTRICTION_VIOLATED = 25; + */ + const RESOURCE_USAGE_RESTRICTION_VIOLATED = 25; + /** + * Unimplemented. Do not use. + * The request is denied because it contains unsupported system parameters in + * URL query parameters or HTTP headers. For more information, + * see https://cloud.google.com/apis/docs/system-parameters + * Example of an ErrorInfo when access "pubsub.googleapis.com" service with + * a request header of "x-goog-user-ip": + * { "reason": "SYSTEM_PARAMETER_UNSUPPORTED", + * "domain": "googleapis.com", + * "metadata": { + * "service": "pubsub.googleapis.com" + * "parameter": "x-goog-user-ip" + * } + * } + * + * Generated from protobuf enum SYSTEM_PARAMETER_UNSUPPORTED = 26; + */ + const SYSTEM_PARAMETER_UNSUPPORTED = 26; + /** + * The request is denied because it violates Org Restriction: the requested + * resource does not belong to allowed organizations specified in + * "X-Goog-Allowed-Resources" header. + * Example of an ErrorInfo when accessing a GCP resource that is restricted by + * Org Restriction for "pubsub.googleapis.com" service. + * { + * reason: "ORG_RESTRICTION_VIOLATION" + * domain: "googleapis.com" + * metadata { + * "consumer":"projects/123456" + * "service": "pubsub.googleapis.com" + * } + * } + * + * Generated from protobuf enum ORG_RESTRICTION_VIOLATION = 27; + */ + const ORG_RESTRICTION_VIOLATION = 27; + /** + * The request is denied because "X-Goog-Allowed-Resources" header is in a bad + * format. + * Example of an ErrorInfo when + * accessing "pubsub.googleapis.com" service with an invalid + * "X-Goog-Allowed-Resources" request header. + * { + * reason: "ORG_RESTRICTION_HEADER_INVALID" + * domain: "googleapis.com" + * metadata { + * "consumer":"projects/123456" + * "service": "pubsub.googleapis.com" + * } + * } + * + * Generated from protobuf enum ORG_RESTRICTION_HEADER_INVALID = 28; + */ + const ORG_RESTRICTION_HEADER_INVALID = 28; + /** + * Unimplemented. Do not use. + * The request is calling a service that is not visible to the consumer. + * Example of an ErrorInfo when the consumer "projects/123" contacting + * "pubsub.googleapis.com" service which is not visible to the consumer. + * { "reason": "SERVICE_NOT_VISIBLE", + * "domain": "googleapis.com", + * "metadata": { + * "consumer": "projects/123", + * "service": "pubsub.googleapis.com" + * } + * } + * This response indicates the "pubsub.googleapis.com" is not visible to + * "projects/123" (or it may not exist). + * + * Generated from protobuf enum SERVICE_NOT_VISIBLE = 29; + */ + const SERVICE_NOT_VISIBLE = 29; + /** + * The request is related to a project for which GCP access is suspended. + * Example of an ErrorInfo when the consumer "projects/123" fails to contact + * "pubsub.googleapis.com" service because GCP access is suspended: + * { "reason": "GCP_SUSPENDED", + * "domain": "googleapis.com", + * "metadata": { + * "consumer": "projects/123", + * "service": "pubsub.googleapis.com" + * } + * } + * This response indicates the associated GCP account has been suspended. + * + * Generated from protobuf enum GCP_SUSPENDED = 30; + */ + const GCP_SUSPENDED = 30; + /** + * The request violates the location policies when creating resources in + * the restricted region. + * Example of an ErrorInfo when creating the Cloud Storage Bucket by + * "projects/123" for service storage.googleapis.com: + * { "reason": "LOCATION_POLICY_VIOLATED", + * "domain": "googleapis.com", + * "metadata": { + * "consumer": "projects/123", + * "service": "storage.googleapis.com", + * } + * } + * This response indicates creating the Cloud Storage Bucket in + * "locations/asia-northeast3" violates at least one location policy. + * The troubleshooting guidance is provided in the Help links. + * + * Generated from protobuf enum LOCATION_POLICY_VIOLATED = 31; + */ + const LOCATION_POLICY_VIOLATED = 31; + /** + * The request is denied because origin request header is missing. + * Example of an ErrorInfo when + * accessing "pubsub.googleapis.com" service with an empty "Origin" request + * header. + * { + * reason: "MISSING_ORIGIN" + * domain: "googleapis.com" + * metadata { + * "consumer":"projects/123456" + * "service": "pubsub.googleapis.com" + * } + * } + * + * Generated from protobuf enum MISSING_ORIGIN = 33; + */ + const MISSING_ORIGIN = 33; + /** + * The request is denied because the request contains more than one credential + * type that are individually acceptable, but not together. The customer + * should retry their request with only one set of credentials. + * Example of an ErrorInfo when + * accessing "pubsub.googleapis.com" service with overloaded credentials. + * { + * reason: "OVERLOADED_CREDENTIALS" + * domain: "googleapis.com" + * metadata { + * "consumer":"projects/123456" + * "service": "pubsub.googleapis.com" + * } + * } + * + * Generated from protobuf enum OVERLOADED_CREDENTIALS = 34; + */ + const OVERLOADED_CREDENTIALS = 34; + /** + * The request whose associated location violates the location org policy + * restrictions when creating resources in the restricted region. + * Example of an ErrorInfo when creating the Cloud Storage Bucket in the + * container "projects/123" under a restricted region + * "locations/asia-northeast3": + * { + * "reason": "LOCATION_ORG_POLICY_VIOLATED", + * "domain": "googleapis.com", + * "metadata": { + * "resource": "projects/123", + * "location": "locations/asia-northeast3" + * } + * } + * This response indicates creating the Cloud Storage Bucket in + * "locations/asia-northeast3" violates the location org policy restriction. + * + * Generated from protobuf enum LOCATION_ORG_POLICY_VIOLATED = 35; + */ + const LOCATION_ORG_POLICY_VIOLATED = 35; + /** + * The request is denied because it access data of regulated customers using + * TLS 1.0 and 1.1. + * Example of an ErrorInfo when accessing a GCP resource "projects/123" that + * is restricted by TLS Version Restriction for "pubsub.googleapis.com" + * service. + * { + * "reason": "TLS_ORG_POLICY_VIOLATED", + * "domain": "googleapis.com", + * "metadata": { + * "service": "pubsub.googleapis.com" + * "resource": "projects/123", + * "policyName": "constraints/gcp.restrictTLSVersion", + * "tlsVersion": "TLS_VERSION_1" + * } + * } + * + * Generated from protobuf enum TLS_ORG_POLICY_VIOLATED = 36; + */ + const TLS_ORG_POLICY_VIOLATED = 36; + /** + * The request is denied because the associated project has exceeded the + * emulator quota limit. + * Example of an ErrorInfo when the associated "projects/123" has exceeded the + * emulator quota limit. + * { + * "reason": "EMULATOR_QUOTA_EXCEEDED", + * "domain": "googleapis.com", + * "metadata": { + * "service": "pubsub.googleapis.com" + * "consumer": "projects/123" + * } + * } + * + * Generated from protobuf enum EMULATOR_QUOTA_EXCEEDED = 38; + */ + const EMULATOR_QUOTA_EXCEEDED = 38; + /** + * The request is denied because the associated application credential header + * is invalid for an Android applications. + * Example of an ErrorInfo when the request from an Android application to the + * "pubsub.googleapis.com" with an invalid application credential header. + * { + * "reason": "CREDENTIAL_ANDROID_APP_INVALID", + * "domain": "googleapis.com", + * "metadata": { + * "service": "pubsub.googleapis.com" + * } + * } + * + * Generated from protobuf enum CREDENTIAL_ANDROID_APP_INVALID = 39; + */ + const CREDENTIAL_ANDROID_APP_INVALID = 39; + /** + * The request is denied because IAM permission on resource is denied. + * Example of an ErrorInfo when the IAM permission `aiplatform.datasets.list` + * is denied on resource `projects/123`. + * { + * "reason": "IAM_PERMISSION_DENIED", + * "domain": "googleapis.com", + * "metadata": { + * "resource": "projects/123" + * "permission": "aiplatform.datasets.list" + * } + * } + * + * Generated from protobuf enum IAM_PERMISSION_DENIED = 41; + */ + const IAM_PERMISSION_DENIED = 41; + /** + * The request is denied because it contains the invalid JWT token. + * Example of an ErrorInfo when the request contains an invalid JWT token for + * service `storage.googleapis.com`. + * { + * "reason": "JWT_TOKEN_INVALID", + * "domain": "googleapis.com", + * "metadata": { + * "service": "storage.googleapis.com" + * } + * } + * + * Generated from protobuf enum JWT_TOKEN_INVALID = 42; + */ + const JWT_TOKEN_INVALID = 42; + /** + * The request is denied because it contains credential with type that is + * unsupported. + * Example of an ErrorInfo when the request contains an unsupported credential + * type for service `storage.googleapis.com`. + * { + * "reason": "CREDENTIAL_TYPE_UNSUPPORTED", + * "domain": "googleapis.com", + * "metadata": { + * "service": "storage.googleapis.com" + * } + * } + * + * Generated from protobuf enum CREDENTIAL_TYPE_UNSUPPORTED = 43; + */ + const CREDENTIAL_TYPE_UNSUPPORTED = 43; + /** + * The request is denied because it contains unsupported account type. + * Example of an ErrorInfo when the request contains an unsupported account + * type for service `storage.googleapis.com`. + * { + * "reason": "ACCOUNT_TYPE_UNSUPPORTED", + * "domain": "googleapis.com", + * "metadata": { + * "service": "storage.googleapis.com" + * } + * } + * + * Generated from protobuf enum ACCOUNT_TYPE_UNSUPPORTED = 44; + */ + const ACCOUNT_TYPE_UNSUPPORTED = 44; + /** + * The request is denied because the API endpoint is restricted by + * administrators according to the organization policy constraint. + * For more information see + * https://cloud.google.com/assured-workloads/docs/restrict-endpoint-usage. + * Example of an ErrorInfo when access to Google Cloud Storage service is + * restricted by Restrict Endpoint Usage policy: + * { + * "reason": "ENDPOINT_USAGE_RESTRICTION_VIOLATED", + * "domain": "googleapis.com/policies/endpointUsageRestriction", + * "metadata": { + * "policy_name": "constraints/gcp.restrictEndpointUsage", + * "checked_value": "storage.googleapis.com" + * "consumer": "organization/123" + * "service": "storage.googleapis.com" + * } + * } + * + * Generated from protobuf enum ENDPOINT_USAGE_RESTRICTION_VIOLATED = 45; + */ + const ENDPOINT_USAGE_RESTRICTION_VIOLATED = 45; + /** + * The request is denied because the TLS Cipher Suite is restricted by + * administrators according to the organization policy constraint. + * For more information see + * https://cloud.google.com/assured-workloads/docs/restrict-tls-cipher-suites + * Example of an ErrorInfo when access to Google Cloud BigQuery service is + * restricted by Restrict TLS Cipher Suites policy: + * { + * "reason": "TLS_CIPHER_RESTRICTION_VIOLATED", + * "domain": "googleapis.com/policies/tlsCipherRestriction", + * "metadata": { + * "policy_name": "constraints/gcp.restrictTLSCipherSuites", + * "checked_value": "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 + * "consumer": "organization/123" + * "service": "bigquery.googleapis.com" + * } + * } + * + * Generated from protobuf enum TLS_CIPHER_RESTRICTION_VIOLATED = 46; + */ + const TLS_CIPHER_RESTRICTION_VIOLATED = 46; + /** + * The request is denied because the MCP activation check fails. + * Example of an ErrorInfo when the container "projects/123" contacting + * "pubsub.googleapis.com" service which is disabled by MCP: + * { "reason": "MCP_SERVER_DISABLED", + * "domain": "googleapis.com", + * "metadata": { + * "consumer": "projects/123", + * "service": "pubsub.googleapis.com" + * } + * } + * This response indicates the "pubsub.googleapis.com" has been disabled in + * "projects/123" for MCP. + * + * Generated from protobuf enum MCP_SERVER_DISABLED = 47; + */ + const MCP_SERVER_DISABLED = 47; + + private static $valueToName = [ + self::ERROR_REASON_UNSPECIFIED => 'ERROR_REASON_UNSPECIFIED', + self::SERVICE_DISABLED => 'SERVICE_DISABLED', + self::BILLING_DISABLED => 'BILLING_DISABLED', + self::API_KEY_INVALID => 'API_KEY_INVALID', + self::API_KEY_SERVICE_BLOCKED => 'API_KEY_SERVICE_BLOCKED', + self::API_KEY_HTTP_REFERRER_BLOCKED => 'API_KEY_HTTP_REFERRER_BLOCKED', + self::API_KEY_IP_ADDRESS_BLOCKED => 'API_KEY_IP_ADDRESS_BLOCKED', + self::API_KEY_ANDROID_APP_BLOCKED => 'API_KEY_ANDROID_APP_BLOCKED', + self::API_KEY_IOS_APP_BLOCKED => 'API_KEY_IOS_APP_BLOCKED', + self::RATE_LIMIT_EXCEEDED => 'RATE_LIMIT_EXCEEDED', + self::RESOURCE_QUOTA_EXCEEDED => 'RESOURCE_QUOTA_EXCEEDED', + self::LOCATION_TAX_POLICY_VIOLATED => 'LOCATION_TAX_POLICY_VIOLATED', + self::USER_PROJECT_DENIED => 'USER_PROJECT_DENIED', + self::CONSUMER_SUSPENDED => 'CONSUMER_SUSPENDED', + self::CONSUMER_INVALID => 'CONSUMER_INVALID', + self::SECURITY_POLICY_VIOLATED => 'SECURITY_POLICY_VIOLATED', + self::ACCESS_TOKEN_EXPIRED => 'ACCESS_TOKEN_EXPIRED', + self::ACCESS_TOKEN_SCOPE_INSUFFICIENT => 'ACCESS_TOKEN_SCOPE_INSUFFICIENT', + self::ACCOUNT_STATE_INVALID => 'ACCOUNT_STATE_INVALID', + self::ACCESS_TOKEN_TYPE_UNSUPPORTED => 'ACCESS_TOKEN_TYPE_UNSUPPORTED', + self::CREDENTIALS_MISSING => 'CREDENTIALS_MISSING', + self::RESOURCE_PROJECT_INVALID => 'RESOURCE_PROJECT_INVALID', + self::SESSION_COOKIE_INVALID => 'SESSION_COOKIE_INVALID', + self::USER_BLOCKED_BY_ADMIN => 'USER_BLOCKED_BY_ADMIN', + self::RESOURCE_USAGE_RESTRICTION_VIOLATED => 'RESOURCE_USAGE_RESTRICTION_VIOLATED', + self::SYSTEM_PARAMETER_UNSUPPORTED => 'SYSTEM_PARAMETER_UNSUPPORTED', + self::ORG_RESTRICTION_VIOLATION => 'ORG_RESTRICTION_VIOLATION', + self::ORG_RESTRICTION_HEADER_INVALID => 'ORG_RESTRICTION_HEADER_INVALID', + self::SERVICE_NOT_VISIBLE => 'SERVICE_NOT_VISIBLE', + self::GCP_SUSPENDED => 'GCP_SUSPENDED', + self::LOCATION_POLICY_VIOLATED => 'LOCATION_POLICY_VIOLATED', + self::MISSING_ORIGIN => 'MISSING_ORIGIN', + self::OVERLOADED_CREDENTIALS => 'OVERLOADED_CREDENTIALS', + self::LOCATION_ORG_POLICY_VIOLATED => 'LOCATION_ORG_POLICY_VIOLATED', + self::TLS_ORG_POLICY_VIOLATED => 'TLS_ORG_POLICY_VIOLATED', + self::EMULATOR_QUOTA_EXCEEDED => 'EMULATOR_QUOTA_EXCEEDED', + self::CREDENTIAL_ANDROID_APP_INVALID => 'CREDENTIAL_ANDROID_APP_INVALID', + self::IAM_PERMISSION_DENIED => 'IAM_PERMISSION_DENIED', + self::JWT_TOKEN_INVALID => 'JWT_TOKEN_INVALID', + self::CREDENTIAL_TYPE_UNSUPPORTED => 'CREDENTIAL_TYPE_UNSUPPORTED', + self::ACCOUNT_TYPE_UNSUPPORTED => 'ACCOUNT_TYPE_UNSUPPORTED', + self::ENDPOINT_USAGE_RESTRICTION_VIOLATED => 'ENDPOINT_USAGE_RESTRICTION_VIOLATED', + self::TLS_CIPHER_RESTRICTION_VIOLATED => 'TLS_CIPHER_RESTRICTION_VIOLATED', + self::MCP_SERVER_DISABLED => 'MCP_SERVER_DISABLED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/FieldBehavior.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/FieldBehavior.php new file mode 100644 index 000000000000..4c57c5080055 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/FieldBehavior.php @@ -0,0 +1,133 @@ +google.api.FieldBehavior + */ +class FieldBehavior +{ + /** + * Conventional default for enums. Do not use this. + * + * Generated from protobuf enum FIELD_BEHAVIOR_UNSPECIFIED = 0; + */ + const FIELD_BEHAVIOR_UNSPECIFIED = 0; + /** + * Specifically denotes a field as optional. + * While all fields in protocol buffers are optional, this may be specified + * for emphasis if appropriate. + * + * Generated from protobuf enum OPTIONAL = 1; + */ + const OPTIONAL = 1; + /** + * Denotes a field as required. + * This indicates that the field **must** be provided as part of the request, + * and failure to do so will cause an error (usually `INVALID_ARGUMENT`). + * + * Generated from protobuf enum REQUIRED = 2; + */ + const REQUIRED = 2; + /** + * Denotes a field as output only. + * This indicates that the field is provided in responses, but including the + * field in a request does nothing (the server *must* ignore it and + * *must not* throw an error as a result of the field's presence). + * + * Generated from protobuf enum OUTPUT_ONLY = 3; + */ + const OUTPUT_ONLY = 3; + /** + * Denotes a field as input only. + * This indicates that the field is provided in requests, and the + * corresponding field is not included in output. + * + * Generated from protobuf enum INPUT_ONLY = 4; + */ + const INPUT_ONLY = 4; + /** + * Denotes a field as immutable. + * This indicates that the field may be set once in a request to create a + * resource, but may not be changed thereafter. + * + * Generated from protobuf enum IMMUTABLE = 5; + */ + const IMMUTABLE = 5; + /** + * Denotes that a (repeated) field is an unordered list. + * This indicates that the service may provide the elements of the list + * in any arbitrary order, rather than the order the user originally + * provided. Additionally, the list's order may or may not be stable. + * + * Generated from protobuf enum UNORDERED_LIST = 6; + */ + const UNORDERED_LIST = 6; + /** + * Denotes that this field returns a non-empty default value if not set. + * This indicates that if the user provides the empty value in a request, + * a non-empty value will be returned. The user will not be aware of what + * non-empty value to expect. + * + * Generated from protobuf enum NON_EMPTY_DEFAULT = 7; + */ + const NON_EMPTY_DEFAULT = 7; + /** + * Denotes that the field in a resource (a message annotated with + * google.api.resource) is used in the resource name to uniquely identify the + * resource. For AIP-compliant APIs, this should only be applied to the + * `name` field on the resource. + * This behavior should not be applied to references to other resources within + * the message. + * The identifier field of resources often have different field behavior + * depending on the request it is embedded in (e.g. for Create methods name + * is optional and unused, while for Update methods it is required). Instead + * of method-specific annotations, only `IDENTIFIER` is required. + * + * Generated from protobuf enum IDENTIFIER = 8; + */ + const IDENTIFIER = 8; + + private static $valueToName = [ + self::FIELD_BEHAVIOR_UNSPECIFIED => 'FIELD_BEHAVIOR_UNSPECIFIED', + self::OPTIONAL => 'OPTIONAL', + self::REQUIRED => 'REQUIRED', + self::OUTPUT_ONLY => 'OUTPUT_ONLY', + self::INPUT_ONLY => 'INPUT_ONLY', + self::IMMUTABLE => 'IMMUTABLE', + self::UNORDERED_LIST => 'UNORDERED_LIST', + self::NON_EMPTY_DEFAULT => 'NON_EMPTY_DEFAULT', + self::IDENTIFIER => 'IDENTIFIER', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/FieldInfo.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/FieldInfo.php new file mode 100644 index 000000000000..71cf35a1027a --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/FieldInfo.php @@ -0,0 +1,117 @@ +google.api.FieldInfo + */ +class FieldInfo extends \Google\Protobuf\Internal\Message +{ + /** + * The standard format of a field value. This does not explicitly configure + * any API consumer, just documents the API's format for the field it is + * applied to. + * + * Generated from protobuf field .google.api.FieldInfo.Format format = 1; + */ + protected $format = 0; + /** + * The type(s) that the annotated, generic field may represent. + * Currently, this must only be used on fields of type `google.protobuf.Any`. + * Supporting other generic types may be considered in the future. + * + * Generated from protobuf field repeated .google.api.TypeReference referenced_types = 2; + */ + private $referenced_types; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $format + * The standard format of a field value. This does not explicitly configure + * any API consumer, just documents the API's format for the field it is + * applied to. + * @type \Google\Api\TypeReference[] $referenced_types + * The type(s) that the annotated, generic field may represent. + * Currently, this must only be used on fields of type `google.protobuf.Any`. + * Supporting other generic types may be considered in the future. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\FieldInfo::initOnce(); + parent::__construct($data); + } + + /** + * The standard format of a field value. This does not explicitly configure + * any API consumer, just documents the API's format for the field it is + * applied to. + * + * Generated from protobuf field .google.api.FieldInfo.Format format = 1; + * @return int + */ + public function getFormat() + { + return $this->format; + } + + /** + * The standard format of a field value. This does not explicitly configure + * any API consumer, just documents the API's format for the field it is + * applied to. + * + * Generated from protobuf field .google.api.FieldInfo.Format format = 1; + * @param int $var + * @return $this + */ + public function setFormat($var) + { + GPBUtil::checkEnum($var, \Google\Api\FieldInfo\Format::class); + $this->format = $var; + + return $this; + } + + /** + * The type(s) that the annotated, generic field may represent. + * Currently, this must only be used on fields of type `google.protobuf.Any`. + * Supporting other generic types may be considered in the future. + * + * Generated from protobuf field repeated .google.api.TypeReference referenced_types = 2; + * @return RepeatedField<\Google\Api\TypeReference> + */ + public function getReferencedTypes() + { + return $this->referenced_types; + } + + /** + * The type(s) that the annotated, generic field may represent. + * Currently, this must only be used on fields of type `google.protobuf.Any`. + * Supporting other generic types may be considered in the future. + * + * Generated from protobuf field repeated .google.api.TypeReference referenced_types = 2; + * @param \Google\Api\TypeReference[] $var + * @return $this + */ + public function setReferencedTypes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\TypeReference::class); + $this->referenced_types = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/FieldInfo/Format.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/FieldInfo/Format.php new file mode 100644 index 000000000000..88fc61c69d22 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/FieldInfo/Format.php @@ -0,0 +1,89 @@ +google.api.FieldInfo.Format + */ +class Format +{ + /** + * Default, unspecified value. + * + * Generated from protobuf enum FORMAT_UNSPECIFIED = 0; + */ + const FORMAT_UNSPECIFIED = 0; + /** + * Universally Unique Identifier, version 4, value as defined by + * https://datatracker.ietf.org/doc/html/rfc4122. The value may be + * normalized to entirely lowercase letters. For example, the value + * `F47AC10B-58CC-0372-8567-0E02B2C3D479` would be normalized to + * `f47ac10b-58cc-0372-8567-0e02b2c3d479`. + * + * Generated from protobuf enum UUID4 = 1; + */ + const UUID4 = 1; + /** + * Internet Protocol v4 value as defined by [RFC + * 791](https://datatracker.ietf.org/doc/html/rfc791). The value may be + * condensed, with leading zeros in each octet stripped. For example, + * `001.022.233.040` would be condensed to `1.22.233.40`. + * + * Generated from protobuf enum IPV4 = 2; + */ + const IPV4 = 2; + /** + * Internet Protocol v6 value as defined by [RFC + * 2460](https://datatracker.ietf.org/doc/html/rfc2460). The value may be + * normalized to entirely lowercase letters with zeros compressed, following + * [RFC 5952](https://datatracker.ietf.org/doc/html/rfc5952). For example, + * the value `2001:0DB8:0::0` would be normalized to `2001:db8::`. + * + * Generated from protobuf enum IPV6 = 3; + */ + const IPV6 = 3; + /** + * An IP address in either v4 or v6 format as described by the individual + * values defined herein. See the comments on the IPV4 and IPV6 types for + * allowed normalizations of each. + * + * Generated from protobuf enum IPV4_OR_IPV6 = 4; + */ + const IPV4_OR_IPV6 = 4; + + private static $valueToName = [ + self::FORMAT_UNSPECIFIED => 'FORMAT_UNSPECIFIED', + self::UUID4 => 'UUID4', + self::IPV4 => 'IPV4', + self::IPV6 => 'IPV6', + self::IPV4_OR_IPV6 => 'IPV4_OR_IPV6', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/FieldPolicy.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/FieldPolicy.php new file mode 100644 index 000000000000..3600a2de91b8 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/FieldPolicy.php @@ -0,0 +1,181 @@ +google.api.FieldPolicy + */ +class FieldPolicy extends \Google\Protobuf\Internal\Message +{ + /** + * Selects one or more request or response message fields to apply this + * `FieldPolicy`. + * When a `FieldPolicy` is used in proto annotation, the selector must + * be left as empty. The service config generator will automatically fill + * the correct value. + * When a `FieldPolicy` is used in service config, the selector must be a + * comma-separated string with valid request or response field paths, + * such as "foo.bar" or "foo.bar,foo.baz". + * + * Generated from protobuf field string selector = 1; + */ + protected $selector = ''; + /** + * Specifies the required permission(s) for the resource referred to by the + * field. It requires the field contains a valid resource reference, and + * the request must pass the permission checks to proceed. For example, + * "resourcemanager.projects.get". + * + * Generated from protobuf field string resource_permission = 2; + */ + protected $resource_permission = ''; + /** + * Specifies the resource type for the resource referred to by the field. + * + * Generated from protobuf field string resource_type = 3; + */ + protected $resource_type = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $selector + * Selects one or more request or response message fields to apply this + * `FieldPolicy`. + * When a `FieldPolicy` is used in proto annotation, the selector must + * be left as empty. The service config generator will automatically fill + * the correct value. + * When a `FieldPolicy` is used in service config, the selector must be a + * comma-separated string with valid request or response field paths, + * such as "foo.bar" or "foo.bar,foo.baz". + * @type string $resource_permission + * Specifies the required permission(s) for the resource referred to by the + * field. It requires the field contains a valid resource reference, and + * the request must pass the permission checks to proceed. For example, + * "resourcemanager.projects.get". + * @type string $resource_type + * Specifies the resource type for the resource referred to by the field. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Policy::initOnce(); + parent::__construct($data); + } + + /** + * Selects one or more request or response message fields to apply this + * `FieldPolicy`. + * When a `FieldPolicy` is used in proto annotation, the selector must + * be left as empty. The service config generator will automatically fill + * the correct value. + * When a `FieldPolicy` is used in service config, the selector must be a + * comma-separated string with valid request or response field paths, + * such as "foo.bar" or "foo.bar,foo.baz". + * + * Generated from protobuf field string selector = 1; + * @return string + */ + public function getSelector() + { + return $this->selector; + } + + /** + * Selects one or more request or response message fields to apply this + * `FieldPolicy`. + * When a `FieldPolicy` is used in proto annotation, the selector must + * be left as empty. The service config generator will automatically fill + * the correct value. + * When a `FieldPolicy` is used in service config, the selector must be a + * comma-separated string with valid request or response field paths, + * such as "foo.bar" or "foo.bar,foo.baz". + * + * Generated from protobuf field string selector = 1; + * @param string $var + * @return $this + */ + public function setSelector($var) + { + GPBUtil::checkString($var, True); + $this->selector = $var; + + return $this; + } + + /** + * Specifies the required permission(s) for the resource referred to by the + * field. It requires the field contains a valid resource reference, and + * the request must pass the permission checks to proceed. For example, + * "resourcemanager.projects.get". + * + * Generated from protobuf field string resource_permission = 2; + * @return string + */ + public function getResourcePermission() + { + return $this->resource_permission; + } + + /** + * Specifies the required permission(s) for the resource referred to by the + * field. It requires the field contains a valid resource reference, and + * the request must pass the permission checks to proceed. For example, + * "resourcemanager.projects.get". + * + * Generated from protobuf field string resource_permission = 2; + * @param string $var + * @return $this + */ + public function setResourcePermission($var) + { + GPBUtil::checkString($var, True); + $this->resource_permission = $var; + + return $this; + } + + /** + * Specifies the resource type for the resource referred to by the field. + * + * Generated from protobuf field string resource_type = 3; + * @return string + */ + public function getResourceType() + { + return $this->resource_type; + } + + /** + * Specifies the resource type for the resource referred to by the field. + * + * Generated from protobuf field string resource_type = 3; + * @param string $var + * @return $this + */ + public function setResourceType($var) + { + GPBUtil::checkString($var, True); + $this->resource_type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/FlowControlLimitExceededBehaviorProto.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/FlowControlLimitExceededBehaviorProto.php new file mode 100644 index 000000000000..a1457d9f7e47 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/FlowControlLimitExceededBehaviorProto.php @@ -0,0 +1,68 @@ +google.api.FlowControlLimitExceededBehaviorProto + */ +class FlowControlLimitExceededBehaviorProto +{ + /** + * Default behavior, system-defined. + * + * Generated from protobuf enum UNSET_BEHAVIOR = 0; + */ + const UNSET_BEHAVIOR = 0; + /** + * Stop operation, raise error. + * + * Generated from protobuf enum THROW_EXCEPTION = 1; + */ + const THROW_EXCEPTION = 1; + /** + * Pause operation until limit clears. + * + * Generated from protobuf enum BLOCK = 2; + */ + const BLOCK = 2; + /** + * Continue operation, disregard limit. + * + * Generated from protobuf enum IGNORE = 3; + */ + const IGNORE = 3; + + private static $valueToName = [ + self::UNSET_BEHAVIOR => 'UNSET_BEHAVIOR', + self::THROW_EXCEPTION => 'THROW_EXCEPTION', + self::BLOCK => 'BLOCK', + self::IGNORE => 'IGNORE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/GoSettings.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/GoSettings.php new file mode 100644 index 000000000000..2a406b74d478 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/GoSettings.php @@ -0,0 +1,139 @@ +google.api.GoSettings + */ +class GoSettings extends \Google\Protobuf\Internal\Message +{ + /** + * Some settings. + * + * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; + */ + protected $common = null; + /** + * Map of service names to renamed services. Keys are the package relative + * service names and values are the name to be used for the service client + * and call options. + * Example: + * publishing: + * go_settings: + * renamed_services: + * Publisher: TopicAdmin + * + * Generated from protobuf field map renamed_services = 2; + */ + private $renamed_services; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Api\CommonLanguageSettings $common + * Some settings. + * @type array|\Google\Protobuf\Internal\MapField $renamed_services + * Map of service names to renamed services. Keys are the package relative + * service names and values are the name to be used for the service client + * and call options. + * Example: + * publishing: + * go_settings: + * renamed_services: + * Publisher: TopicAdmin + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Client::initOnce(); + parent::__construct($data); + } + + /** + * Some settings. + * + * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; + * @return \Google\Api\CommonLanguageSettings|null + */ + public function getCommon() + { + return $this->common; + } + + public function hasCommon() + { + return isset($this->common); + } + + public function clearCommon() + { + unset($this->common); + } + + /** + * Some settings. + * + * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; + * @param \Google\Api\CommonLanguageSettings $var + * @return $this + */ + public function setCommon($var) + { + GPBUtil::checkMessage($var, \Google\Api\CommonLanguageSettings::class); + $this->common = $var; + + return $this; + } + + /** + * Map of service names to renamed services. Keys are the package relative + * service names and values are the name to be used for the service client + * and call options. + * Example: + * publishing: + * go_settings: + * renamed_services: + * Publisher: TopicAdmin + * + * Generated from protobuf field map renamed_services = 2; + * @return \Google\Protobuf\Internal\MapField + */ + public function getRenamedServices() + { + return $this->renamed_services; + } + + /** + * Map of service names to renamed services. Keys are the package relative + * service names and values are the name to be used for the service client + * and call options. + * Example: + * publishing: + * go_settings: + * renamed_services: + * Publisher: TopicAdmin + * + * Generated from protobuf field map renamed_services = 2; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setRenamedServices($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->renamed_services = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Http.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Http.php new file mode 100644 index 000000000000..2f7542b434f6 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Http.php @@ -0,0 +1,123 @@ +google.api.Http + */ +class Http extends \Google\Protobuf\Internal\Message +{ + /** + * A list of HTTP configuration rules that apply to individual API methods. + * **NOTE:** All service configuration rules follow "last one wins" order. + * + * Generated from protobuf field repeated .google.api.HttpRule rules = 1; + */ + private $rules; + /** + * When set to true, URL path parameters will be fully URI-decoded except in + * cases of single segment matches in reserved expansion, where "%2F" will be + * left encoded. + * The default behavior is to not decode RFC 6570 reserved characters in multi + * segment matches. + * + * Generated from protobuf field bool fully_decode_reserved_expansion = 2; + */ + protected $fully_decode_reserved_expansion = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Api\HttpRule[] $rules + * A list of HTTP configuration rules that apply to individual API methods. + * **NOTE:** All service configuration rules follow "last one wins" order. + * @type bool $fully_decode_reserved_expansion + * When set to true, URL path parameters will be fully URI-decoded except in + * cases of single segment matches in reserved expansion, where "%2F" will be + * left encoded. + * The default behavior is to not decode RFC 6570 reserved characters in multi + * segment matches. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Http::initOnce(); + parent::__construct($data); + } + + /** + * A list of HTTP configuration rules that apply to individual API methods. + * **NOTE:** All service configuration rules follow "last one wins" order. + * + * Generated from protobuf field repeated .google.api.HttpRule rules = 1; + * @return RepeatedField<\Google\Api\HttpRule> + */ + public function getRules() + { + return $this->rules; + } + + /** + * A list of HTTP configuration rules that apply to individual API methods. + * **NOTE:** All service configuration rules follow "last one wins" order. + * + * Generated from protobuf field repeated .google.api.HttpRule rules = 1; + * @param \Google\Api\HttpRule[] $var + * @return $this + */ + public function setRules($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\HttpRule::class); + $this->rules = $arr; + + return $this; + } + + /** + * When set to true, URL path parameters will be fully URI-decoded except in + * cases of single segment matches in reserved expansion, where "%2F" will be + * left encoded. + * The default behavior is to not decode RFC 6570 reserved characters in multi + * segment matches. + * + * Generated from protobuf field bool fully_decode_reserved_expansion = 2; + * @return bool + */ + public function getFullyDecodeReservedExpansion() + { + return $this->fully_decode_reserved_expansion; + } + + /** + * When set to true, URL path parameters will be fully URI-decoded except in + * cases of single segment matches in reserved expansion, where "%2F" will be + * left encoded. + * The default behavior is to not decode RFC 6570 reserved characters in multi + * segment matches. + * + * Generated from protobuf field bool fully_decode_reserved_expansion = 2; + * @param bool $var + * @return $this + */ + public function setFullyDecodeReservedExpansion($var) + { + GPBUtil::checkBool($var); + $this->fully_decode_reserved_expansion = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/HttpBody.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/HttpBody.php new file mode 100644 index 000000000000..36b78af6f17f --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/HttpBody.php @@ -0,0 +1,168 @@ +google.api.HttpBody + */ +class HttpBody extends \Google\Protobuf\Internal\Message +{ + /** + * The HTTP Content-Type header value specifying the content type of the body. + * + * Generated from protobuf field string content_type = 1; + */ + protected $content_type = ''; + /** + * The HTTP request/response body as raw binary. + * + * Generated from protobuf field bytes data = 2; + */ + protected $data = ''; + /** + * Application specific response metadata. Must be set in the first response + * for streaming APIs. + * + * Generated from protobuf field repeated .google.protobuf.Any extensions = 3; + */ + private $extensions; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $content_type + * The HTTP Content-Type header value specifying the content type of the body. + * @type string $data + * The HTTP request/response body as raw binary. + * @type \Google\Protobuf\Any[] $extensions + * Application specific response metadata. Must be set in the first response + * for streaming APIs. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Httpbody::initOnce(); + parent::__construct($data); + } + + /** + * The HTTP Content-Type header value specifying the content type of the body. + * + * Generated from protobuf field string content_type = 1; + * @return string + */ + public function getContentType() + { + return $this->content_type; + } + + /** + * The HTTP Content-Type header value specifying the content type of the body. + * + * Generated from protobuf field string content_type = 1; + * @param string $var + * @return $this + */ + public function setContentType($var) + { + GPBUtil::checkString($var, True); + $this->content_type = $var; + + return $this; + } + + /** + * The HTTP request/response body as raw binary. + * + * Generated from protobuf field bytes data = 2; + * @return string + */ + public function getData() + { + return $this->data; + } + + /** + * The HTTP request/response body as raw binary. + * + * Generated from protobuf field bytes data = 2; + * @param string $var + * @return $this + */ + public function setData($var) + { + GPBUtil::checkString($var, False); + $this->data = $var; + + return $this; + } + + /** + * Application specific response metadata. Must be set in the first response + * for streaming APIs. + * + * Generated from protobuf field repeated .google.protobuf.Any extensions = 3; + * @return RepeatedField<\Google\Protobuf\Any> + */ + public function getExtensions() + { + return $this->extensions; + } + + /** + * Application specific response metadata. Must be set in the first response + * for streaming APIs. + * + * Generated from protobuf field repeated .google.protobuf.Any extensions = 3; + * @param \Google\Protobuf\Any[] $var + * @return $this + */ + public function setExtensions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Any::class); + $this->extensions = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/HttpRule.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/HttpRule.php new file mode 100644 index 000000000000..c7cf45ce1476 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/HttpRule.php @@ -0,0 +1,651 @@ +google.api.HttpRule + */ +class HttpRule extends \Google\Protobuf\Internal\Message +{ + /** + * Selects a method to which this rule applies. + * Refer to [selector][google.api.DocumentationRule.selector] for syntax + * details. + * + * Generated from protobuf field string selector = 1; + */ + protected $selector = ''; + /** + * The name of the request field whose value is mapped to the HTTP request + * body, or `*` for mapping all request fields not captured by the path + * pattern to the HTTP body, or omitted for not having any HTTP request body. + * NOTE: the referred field must be present at the top-level of the request + * message type. + * + * Generated from protobuf field string body = 7; + */ + protected $body = ''; + /** + * Optional. The name of the response field whose value is mapped to the HTTP + * response body. When omitted, the entire response message will be used + * as the HTTP response body. + * NOTE: The referred field must be present at the top-level of the response + * message type. + * + * Generated from protobuf field string response_body = 12; + */ + protected $response_body = ''; + /** + * Additional HTTP bindings for the selector. Nested bindings must + * not contain an `additional_bindings` field themselves (that is, + * the nesting may only be one level deep). + * + * Generated from protobuf field repeated .google.api.HttpRule additional_bindings = 11; + */ + private $additional_bindings; + protected $pattern; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $selector + * Selects a method to which this rule applies. + * Refer to [selector][google.api.DocumentationRule.selector] for syntax + * details. + * @type string $get + * Maps to HTTP GET. Used for listing and getting information about + * resources. + * @type string $put + * Maps to HTTP PUT. Used for replacing a resource. + * @type string $post + * Maps to HTTP POST. Used for creating a resource or performing an action. + * @type string $delete + * Maps to HTTP DELETE. Used for deleting a resource. + * @type string $patch + * Maps to HTTP PATCH. Used for updating a resource. + * @type \Google\Api\CustomHttpPattern $custom + * The custom pattern is used for specifying an HTTP method that is not + * included in the `pattern` field, such as HEAD, or "*" to leave the + * HTTP method unspecified for this rule. The wild-card rule is useful + * for services that provide content to Web (HTML) clients. + * @type string $body + * The name of the request field whose value is mapped to the HTTP request + * body, or `*` for mapping all request fields not captured by the path + * pattern to the HTTP body, or omitted for not having any HTTP request body. + * NOTE: the referred field must be present at the top-level of the request + * message type. + * @type string $response_body + * Optional. The name of the response field whose value is mapped to the HTTP + * response body. When omitted, the entire response message will be used + * as the HTTP response body. + * NOTE: The referred field must be present at the top-level of the response + * message type. + * @type \Google\Api\HttpRule[] $additional_bindings + * Additional HTTP bindings for the selector. Nested bindings must + * not contain an `additional_bindings` field themselves (that is, + * the nesting may only be one level deep). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Http::initOnce(); + parent::__construct($data); + } + + /** + * Selects a method to which this rule applies. + * Refer to [selector][google.api.DocumentationRule.selector] for syntax + * details. + * + * Generated from protobuf field string selector = 1; + * @return string + */ + public function getSelector() + { + return $this->selector; + } + + /** + * Selects a method to which this rule applies. + * Refer to [selector][google.api.DocumentationRule.selector] for syntax + * details. + * + * Generated from protobuf field string selector = 1; + * @param string $var + * @return $this + */ + public function setSelector($var) + { + GPBUtil::checkString($var, True); + $this->selector = $var; + + return $this; + } + + /** + * Maps to HTTP GET. Used for listing and getting information about + * resources. + * + * Generated from protobuf field string get = 2; + * @return string + */ + public function getGet() + { + return $this->readOneof(2); + } + + public function hasGet() + { + return $this->hasOneof(2); + } + + /** + * Maps to HTTP GET. Used for listing and getting information about + * resources. + * + * Generated from protobuf field string get = 2; + * @param string $var + * @return $this + */ + public function setGet($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Maps to HTTP PUT. Used for replacing a resource. + * + * Generated from protobuf field string put = 3; + * @return string + */ + public function getPut() + { + return $this->readOneof(3); + } + + public function hasPut() + { + return $this->hasOneof(3); + } + + /** + * Maps to HTTP PUT. Used for replacing a resource. + * + * Generated from protobuf field string put = 3; + * @param string $var + * @return $this + */ + public function setPut($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Maps to HTTP POST. Used for creating a resource or performing an action. + * + * Generated from protobuf field string post = 4; + * @return string + */ + public function getPost() + { + return $this->readOneof(4); + } + + public function hasPost() + { + return $this->hasOneof(4); + } + + /** + * Maps to HTTP POST. Used for creating a resource or performing an action. + * + * Generated from protobuf field string post = 4; + * @param string $var + * @return $this + */ + public function setPost($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * Maps to HTTP DELETE. Used for deleting a resource. + * + * Generated from protobuf field string delete = 5; + * @return string + */ + public function getDelete() + { + return $this->readOneof(5); + } + + public function hasDelete() + { + return $this->hasOneof(5); + } + + /** + * Maps to HTTP DELETE. Used for deleting a resource. + * + * Generated from protobuf field string delete = 5; + * @param string $var + * @return $this + */ + public function setDelete($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(5, $var); + + return $this; + } + + /** + * Maps to HTTP PATCH. Used for updating a resource. + * + * Generated from protobuf field string patch = 6; + * @return string + */ + public function getPatch() + { + return $this->readOneof(6); + } + + public function hasPatch() + { + return $this->hasOneof(6); + } + + /** + * Maps to HTTP PATCH. Used for updating a resource. + * + * Generated from protobuf field string patch = 6; + * @param string $var + * @return $this + */ + public function setPatch($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(6, $var); + + return $this; + } + + /** + * The custom pattern is used for specifying an HTTP method that is not + * included in the `pattern` field, such as HEAD, or "*" to leave the + * HTTP method unspecified for this rule. The wild-card rule is useful + * for services that provide content to Web (HTML) clients. + * + * Generated from protobuf field .google.api.CustomHttpPattern custom = 8; + * @return \Google\Api\CustomHttpPattern|null + */ + public function getCustom() + { + return $this->readOneof(8); + } + + public function hasCustom() + { + return $this->hasOneof(8); + } + + /** + * The custom pattern is used for specifying an HTTP method that is not + * included in the `pattern` field, such as HEAD, or "*" to leave the + * HTTP method unspecified for this rule. The wild-card rule is useful + * for services that provide content to Web (HTML) clients. + * + * Generated from protobuf field .google.api.CustomHttpPattern custom = 8; + * @param \Google\Api\CustomHttpPattern $var + * @return $this + */ + public function setCustom($var) + { + GPBUtil::checkMessage($var, \Google\Api\CustomHttpPattern::class); + $this->writeOneof(8, $var); + + return $this; + } + + /** + * The name of the request field whose value is mapped to the HTTP request + * body, or `*` for mapping all request fields not captured by the path + * pattern to the HTTP body, or omitted for not having any HTTP request body. + * NOTE: the referred field must be present at the top-level of the request + * message type. + * + * Generated from protobuf field string body = 7; + * @return string + */ + public function getBody() + { + return $this->body; + } + + /** + * The name of the request field whose value is mapped to the HTTP request + * body, or `*` for mapping all request fields not captured by the path + * pattern to the HTTP body, or omitted for not having any HTTP request body. + * NOTE: the referred field must be present at the top-level of the request + * message type. + * + * Generated from protobuf field string body = 7; + * @param string $var + * @return $this + */ + public function setBody($var) + { + GPBUtil::checkString($var, True); + $this->body = $var; + + return $this; + } + + /** + * Optional. The name of the response field whose value is mapped to the HTTP + * response body. When omitted, the entire response message will be used + * as the HTTP response body. + * NOTE: The referred field must be present at the top-level of the response + * message type. + * + * Generated from protobuf field string response_body = 12; + * @return string + */ + public function getResponseBody() + { + return $this->response_body; + } + + /** + * Optional. The name of the response field whose value is mapped to the HTTP + * response body. When omitted, the entire response message will be used + * as the HTTP response body. + * NOTE: The referred field must be present at the top-level of the response + * message type. + * + * Generated from protobuf field string response_body = 12; + * @param string $var + * @return $this + */ + public function setResponseBody($var) + { + GPBUtil::checkString($var, True); + $this->response_body = $var; + + return $this; + } + + /** + * Additional HTTP bindings for the selector. Nested bindings must + * not contain an `additional_bindings` field themselves (that is, + * the nesting may only be one level deep). + * + * Generated from protobuf field repeated .google.api.HttpRule additional_bindings = 11; + * @return RepeatedField<\Google\Api\HttpRule> + */ + public function getAdditionalBindings() + { + return $this->additional_bindings; + } + + /** + * Additional HTTP bindings for the selector. Nested bindings must + * not contain an `additional_bindings` field themselves (that is, + * the nesting may only be one level deep). + * + * Generated from protobuf field repeated .google.api.HttpRule additional_bindings = 11; + * @param \Google\Api\HttpRule[] $var + * @return $this + */ + public function setAdditionalBindings($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\HttpRule::class); + $this->additional_bindings = $arr; + + return $this; + } + + /** + * @return string + */ + public function getPattern() + { + return $this->whichOneof("pattern"); + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/JavaSettings.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/JavaSettings.php new file mode 100644 index 000000000000..7b05e0750051 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/JavaSettings.php @@ -0,0 +1,225 @@ +google.api.JavaSettings + */ +class JavaSettings extends \Google\Protobuf\Internal\Message +{ + /** + * The package name to use in Java. Clobbers the java_package option + * set in the protobuf. This should be used **only** by APIs + * who have already set the language_settings.java.package_name" field + * in gapic.yaml. API teams should use the protobuf java_package option + * where possible. + * Example of a YAML configuration:: + * publishing: + * library_settings: + * java_settings: + * library_package: com.google.cloud.pubsub.v1 + * + * Generated from protobuf field string library_package = 1; + */ + protected $library_package = ''; + /** + * Configure the Java class name to use instead of the service's for its + * corresponding generated GAPIC client. Keys are fully-qualified + * service names as they appear in the protobuf (including the full + * the language_settings.java.interface_names" field in gapic.yaml. API + * teams should otherwise use the service name as it appears in the + * protobuf. + * Example of a YAML configuration:: + * publishing: + * java_settings: + * service_class_names: + * - google.pubsub.v1.Publisher: TopicAdmin + * - google.pubsub.v1.Subscriber: SubscriptionAdmin + * + * Generated from protobuf field map service_class_names = 2; + */ + private $service_class_names; + /** + * Some settings. + * + * Generated from protobuf field .google.api.CommonLanguageSettings common = 3; + */ + protected $common = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $library_package + * The package name to use in Java. Clobbers the java_package option + * set in the protobuf. This should be used **only** by APIs + * who have already set the language_settings.java.package_name" field + * in gapic.yaml. API teams should use the protobuf java_package option + * where possible. + * Example of a YAML configuration:: + * publishing: + * library_settings: + * java_settings: + * library_package: com.google.cloud.pubsub.v1 + * @type array|\Google\Protobuf\Internal\MapField $service_class_names + * Configure the Java class name to use instead of the service's for its + * corresponding generated GAPIC client. Keys are fully-qualified + * service names as they appear in the protobuf (including the full + * the language_settings.java.interface_names" field in gapic.yaml. API + * teams should otherwise use the service name as it appears in the + * protobuf. + * Example of a YAML configuration:: + * publishing: + * java_settings: + * service_class_names: + * - google.pubsub.v1.Publisher: TopicAdmin + * - google.pubsub.v1.Subscriber: SubscriptionAdmin + * @type \Google\Api\CommonLanguageSettings $common + * Some settings. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Client::initOnce(); + parent::__construct($data); + } + + /** + * The package name to use in Java. Clobbers the java_package option + * set in the protobuf. This should be used **only** by APIs + * who have already set the language_settings.java.package_name" field + * in gapic.yaml. API teams should use the protobuf java_package option + * where possible. + * Example of a YAML configuration:: + * publishing: + * library_settings: + * java_settings: + * library_package: com.google.cloud.pubsub.v1 + * + * Generated from protobuf field string library_package = 1; + * @return string + */ + public function getLibraryPackage() + { + return $this->library_package; + } + + /** + * The package name to use in Java. Clobbers the java_package option + * set in the protobuf. This should be used **only** by APIs + * who have already set the language_settings.java.package_name" field + * in gapic.yaml. API teams should use the protobuf java_package option + * where possible. + * Example of a YAML configuration:: + * publishing: + * library_settings: + * java_settings: + * library_package: com.google.cloud.pubsub.v1 + * + * Generated from protobuf field string library_package = 1; + * @param string $var + * @return $this + */ + public function setLibraryPackage($var) + { + GPBUtil::checkString($var, True); + $this->library_package = $var; + + return $this; + } + + /** + * Configure the Java class name to use instead of the service's for its + * corresponding generated GAPIC client. Keys are fully-qualified + * service names as they appear in the protobuf (including the full + * the language_settings.java.interface_names" field in gapic.yaml. API + * teams should otherwise use the service name as it appears in the + * protobuf. + * Example of a YAML configuration:: + * publishing: + * java_settings: + * service_class_names: + * - google.pubsub.v1.Publisher: TopicAdmin + * - google.pubsub.v1.Subscriber: SubscriptionAdmin + * + * Generated from protobuf field map service_class_names = 2; + * @return \Google\Protobuf\Internal\MapField + */ + public function getServiceClassNames() + { + return $this->service_class_names; + } + + /** + * Configure the Java class name to use instead of the service's for its + * corresponding generated GAPIC client. Keys are fully-qualified + * service names as they appear in the protobuf (including the full + * the language_settings.java.interface_names" field in gapic.yaml. API + * teams should otherwise use the service name as it appears in the + * protobuf. + * Example of a YAML configuration:: + * publishing: + * java_settings: + * service_class_names: + * - google.pubsub.v1.Publisher: TopicAdmin + * - google.pubsub.v1.Subscriber: SubscriptionAdmin + * + * Generated from protobuf field map service_class_names = 2; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setServiceClassNames($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->service_class_names = $arr; + + return $this; + } + + /** + * Some settings. + * + * Generated from protobuf field .google.api.CommonLanguageSettings common = 3; + * @return \Google\Api\CommonLanguageSettings|null + */ + public function getCommon() + { + return $this->common; + } + + public function hasCommon() + { + return isset($this->common); + } + + public function clearCommon() + { + unset($this->common); + } + + /** + * Some settings. + * + * Generated from protobuf field .google.api.CommonLanguageSettings common = 3; + * @param \Google\Api\CommonLanguageSettings $var + * @return $this + */ + public function setCommon($var) + { + GPBUtil::checkMessage($var, \Google\Api\CommonLanguageSettings::class); + $this->common = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/JwtLocation.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/JwtLocation.php new file mode 100644 index 000000000000..9bd8ac73cc48 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/JwtLocation.php @@ -0,0 +1,199 @@ +google.api.JwtLocation + */ +class JwtLocation extends \Google\Protobuf\Internal\Message +{ + /** + * The value prefix. The value format is "value_prefix{token}" + * Only applies to "in" header type. Must be empty for "in" query type. + * If not empty, the header value has to match (case sensitive) this prefix. + * If not matched, JWT will not be extracted. If matched, JWT will be + * extracted after the prefix is removed. + * For example, for "Authorization: Bearer {JWT}", + * value_prefix="Bearer " with a space at the end. + * + * Generated from protobuf field string value_prefix = 3; + */ + protected $value_prefix = ''; + protected $in; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $header + * Specifies HTTP header name to extract JWT token. + * @type string $query + * Specifies URL query parameter name to extract JWT token. + * @type string $cookie + * Specifies cookie name to extract JWT token. + * @type string $value_prefix + * The value prefix. The value format is "value_prefix{token}" + * Only applies to "in" header type. Must be empty for "in" query type. + * If not empty, the header value has to match (case sensitive) this prefix. + * If not matched, JWT will not be extracted. If matched, JWT will be + * extracted after the prefix is removed. + * For example, for "Authorization: Bearer {JWT}", + * value_prefix="Bearer " with a space at the end. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Auth::initOnce(); + parent::__construct($data); + } + + /** + * Specifies HTTP header name to extract JWT token. + * + * Generated from protobuf field string header = 1; + * @return string + */ + public function getHeader() + { + return $this->readOneof(1); + } + + public function hasHeader() + { + return $this->hasOneof(1); + } + + /** + * Specifies HTTP header name to extract JWT token. + * + * Generated from protobuf field string header = 1; + * @param string $var + * @return $this + */ + public function setHeader($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * Specifies URL query parameter name to extract JWT token. + * + * Generated from protobuf field string query = 2; + * @return string + */ + public function getQuery() + { + return $this->readOneof(2); + } + + public function hasQuery() + { + return $this->hasOneof(2); + } + + /** + * Specifies URL query parameter name to extract JWT token. + * + * Generated from protobuf field string query = 2; + * @param string $var + * @return $this + */ + public function setQuery($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Specifies cookie name to extract JWT token. + * + * Generated from protobuf field string cookie = 4; + * @return string + */ + public function getCookie() + { + return $this->readOneof(4); + } + + public function hasCookie() + { + return $this->hasOneof(4); + } + + /** + * Specifies cookie name to extract JWT token. + * + * Generated from protobuf field string cookie = 4; + * @param string $var + * @return $this + */ + public function setCookie($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * The value prefix. The value format is "value_prefix{token}" + * Only applies to "in" header type. Must be empty for "in" query type. + * If not empty, the header value has to match (case sensitive) this prefix. + * If not matched, JWT will not be extracted. If matched, JWT will be + * extracted after the prefix is removed. + * For example, for "Authorization: Bearer {JWT}", + * value_prefix="Bearer " with a space at the end. + * + * Generated from protobuf field string value_prefix = 3; + * @return string + */ + public function getValuePrefix() + { + return $this->value_prefix; + } + + /** + * The value prefix. The value format is "value_prefix{token}" + * Only applies to "in" header type. Must be empty for "in" query type. + * If not empty, the header value has to match (case sensitive) this prefix. + * If not matched, JWT will not be extracted. If matched, JWT will be + * extracted after the prefix is removed. + * For example, for "Authorization: Bearer {JWT}", + * value_prefix="Bearer " with a space at the end. + * + * Generated from protobuf field string value_prefix = 3; + * @param string $var + * @return $this + */ + public function setValuePrefix($var) + { + GPBUtil::checkString($var, True); + $this->value_prefix = $var; + + return $this; + } + + /** + * @return string + */ + public function getIn() + { + return $this->whichOneof("in"); + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/LabelDescriptor.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/LabelDescriptor.php new file mode 100644 index 000000000000..ac1aa409607f --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/LabelDescriptor.php @@ -0,0 +1,135 @@ +google.api.LabelDescriptor + */ +class LabelDescriptor extends \Google\Protobuf\Internal\Message +{ + /** + * The label key. + * + * Generated from protobuf field string key = 1; + */ + protected $key = ''; + /** + * The type of data that can be assigned to the label. + * + * Generated from protobuf field .google.api.LabelDescriptor.ValueType value_type = 2; + */ + protected $value_type = 0; + /** + * A human-readable description for the label. + * + * Generated from protobuf field string description = 3; + */ + protected $description = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $key + * The label key. + * @type int $value_type + * The type of data that can be assigned to the label. + * @type string $description + * A human-readable description for the label. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Label::initOnce(); + parent::__construct($data); + } + + /** + * The label key. + * + * Generated from protobuf field string key = 1; + * @return string + */ + public function getKey() + { + return $this->key; + } + + /** + * The label key. + * + * Generated from protobuf field string key = 1; + * @param string $var + * @return $this + */ + public function setKey($var) + { + GPBUtil::checkString($var, True); + $this->key = $var; + + return $this; + } + + /** + * The type of data that can be assigned to the label. + * + * Generated from protobuf field .google.api.LabelDescriptor.ValueType value_type = 2; + * @return int + */ + public function getValueType() + { + return $this->value_type; + } + + /** + * The type of data that can be assigned to the label. + * + * Generated from protobuf field .google.api.LabelDescriptor.ValueType value_type = 2; + * @param int $var + * @return $this + */ + public function setValueType($var) + { + GPBUtil::checkEnum($var, \Google\Api\LabelDescriptor\ValueType::class); + $this->value_type = $var; + + return $this; + } + + /** + * A human-readable description for the label. + * + * Generated from protobuf field string description = 3; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * A human-readable description for the label. + * + * Generated from protobuf field string description = 3; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/LabelDescriptor/ValueType.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/LabelDescriptor/ValueType.php new file mode 100644 index 000000000000..42ec76a25a43 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/LabelDescriptor/ValueType.php @@ -0,0 +1,61 @@ +google.api.LabelDescriptor.ValueType + */ +class ValueType +{ + /** + * A variable-length string. This is the default. + * + * Generated from protobuf enum STRING = 0; + */ + const STRING = 0; + /** + * Boolean; true or false. + * + * Generated from protobuf enum BOOL = 1; + */ + const BOOL = 1; + /** + * A 64-bit signed integer. + * + * Generated from protobuf enum INT64 = 2; + */ + const INT64 = 2; + + private static $valueToName = [ + self::STRING => 'STRING', + self::BOOL => 'BOOL', + self::INT64 => 'INT64', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/LaunchStage.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/LaunchStage.php new file mode 100644 index 000000000000..766aa7903470 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/LaunchStage.php @@ -0,0 +1,118 @@ +google.api.LaunchStage + */ +class LaunchStage +{ + /** + * Do not use this default value. + * + * Generated from protobuf enum LAUNCH_STAGE_UNSPECIFIED = 0; + */ + const LAUNCH_STAGE_UNSPECIFIED = 0; + /** + * The feature is not yet implemented. Users can not use it. + * + * Generated from protobuf enum UNIMPLEMENTED = 6; + */ + const UNIMPLEMENTED = 6; + /** + * Prelaunch features are hidden from users and are only visible internally. + * + * Generated from protobuf enum PRELAUNCH = 7; + */ + const PRELAUNCH = 7; + /** + * Early Access features are limited to a closed group of testers. To use + * these features, you must sign up in advance and sign a Trusted Tester + * agreement (which includes confidentiality provisions). These features may + * be unstable, changed in backward-incompatible ways, and are not + * guaranteed to be released. + * + * Generated from protobuf enum EARLY_ACCESS = 1; + */ + const EARLY_ACCESS = 1; + /** + * Alpha is a limited availability test for releases before they are cleared + * for widespread use. By Alpha, all significant design issues are resolved + * and we are in the process of verifying functionality. Alpha customers + * need to apply for access, agree to applicable terms, and have their + * projects allowlisted. Alpha releases don't have to be feature complete, + * no SLAs are provided, and there are no technical support obligations, but + * they will be far enough along that customers can actually use them in + * test environments or for limited-use tests -- just like they would in + * normal production cases. + * + * Generated from protobuf enum ALPHA = 2; + */ + const ALPHA = 2; + /** + * Beta is the point at which we are ready to open a release for any + * customer to use. There are no SLA or technical support obligations in a + * Beta release. Products will be complete from a feature perspective, but + * may have some open outstanding issues. Beta releases are suitable for + * limited production use cases. + * + * Generated from protobuf enum BETA = 3; + */ + const BETA = 3; + /** + * GA features are open to all developers and are considered stable and + * fully qualified for production use. + * + * Generated from protobuf enum GA = 4; + */ + const GA = 4; + /** + * Deprecated features are scheduled to be shut down and removed. For more + * information, see the "Deprecation Policy" section of our [Terms of + * Service](https://cloud.google.com/terms/) + * and the [Google Cloud Platform Subject to the Deprecation + * Policy](https://cloud.google.com/terms/deprecation) documentation. + * + * Generated from protobuf enum DEPRECATED = 5; + */ + const DEPRECATED = 5; + + private static $valueToName = [ + self::LAUNCH_STAGE_UNSPECIFIED => 'LAUNCH_STAGE_UNSPECIFIED', + self::UNIMPLEMENTED => 'UNIMPLEMENTED', + self::PRELAUNCH => 'PRELAUNCH', + self::EARLY_ACCESS => 'EARLY_ACCESS', + self::ALPHA => 'ALPHA', + self::BETA => 'BETA', + self::GA => 'GA', + self::DEPRECATED => 'DEPRECATED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/LogDescriptor.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/LogDescriptor.php new file mode 100644 index 000000000000..6973e8d0f56c --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/LogDescriptor.php @@ -0,0 +1,203 @@ +google.api.LogDescriptor + */ +class LogDescriptor extends \Google\Protobuf\Internal\Message +{ + /** + * The name of the log. It must be less than 512 characters long and can + * include the following characters: upper- and lower-case alphanumeric + * characters [A-Za-z0-9], and punctuation characters including + * slash, underscore, hyphen, period [/_-.]. + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * The set of labels that are available to describe a specific log entry. + * Runtime requests that contain labels not specified here are + * considered invalid. + * + * Generated from protobuf field repeated .google.api.LabelDescriptor labels = 2; + */ + private $labels; + /** + * A human-readable description of this log. This information appears in + * the documentation and can contain details. + * + * Generated from protobuf field string description = 3; + */ + protected $description = ''; + /** + * The human-readable name for this log. This information appears on + * the user interface and should be concise. + * + * Generated from protobuf field string display_name = 4; + */ + protected $display_name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * The name of the log. It must be less than 512 characters long and can + * include the following characters: upper- and lower-case alphanumeric + * characters [A-Za-z0-9], and punctuation characters including + * slash, underscore, hyphen, period [/_-.]. + * @type \Google\Api\LabelDescriptor[] $labels + * The set of labels that are available to describe a specific log entry. + * Runtime requests that contain labels not specified here are + * considered invalid. + * @type string $description + * A human-readable description of this log. This information appears in + * the documentation and can contain details. + * @type string $display_name + * The human-readable name for this log. This information appears on + * the user interface and should be concise. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Log::initOnce(); + parent::__construct($data); + } + + /** + * The name of the log. It must be less than 512 characters long and can + * include the following characters: upper- and lower-case alphanumeric + * characters [A-Za-z0-9], and punctuation characters including + * slash, underscore, hyphen, period [/_-.]. + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name of the log. It must be less than 512 characters long and can + * include the following characters: upper- and lower-case alphanumeric + * characters [A-Za-z0-9], and punctuation characters including + * slash, underscore, hyphen, period [/_-.]. + * + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * The set of labels that are available to describe a specific log entry. + * Runtime requests that contain labels not specified here are + * considered invalid. + * + * Generated from protobuf field repeated .google.api.LabelDescriptor labels = 2; + * @return RepeatedField<\Google\Api\LabelDescriptor> + */ + public function getLabels() + { + return $this->labels; + } + + /** + * The set of labels that are available to describe a specific log entry. + * Runtime requests that contain labels not specified here are + * considered invalid. + * + * Generated from protobuf field repeated .google.api.LabelDescriptor labels = 2; + * @param \Google\Api\LabelDescriptor[] $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\LabelDescriptor::class); + $this->labels = $arr; + + return $this; + } + + /** + * A human-readable description of this log. This information appears in + * the documentation and can contain details. + * + * Generated from protobuf field string description = 3; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * A human-readable description of this log. This information appears in + * the documentation and can contain details. + * + * Generated from protobuf field string description = 3; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * The human-readable name for this log. This information appears on + * the user interface and should be concise. + * + * Generated from protobuf field string display_name = 4; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * The human-readable name for this log. This information appears on + * the user interface and should be concise. + * + * Generated from protobuf field string display_name = 4; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Logging.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Logging.php new file mode 100644 index 000000000000..9c2f5b086211 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Logging.php @@ -0,0 +1,151 @@ +google.api.Logging + */ +class Logging extends \Google\Protobuf\Internal\Message +{ + /** + * Logging configurations for sending logs to the producer project. + * There can be multiple producer destinations, each one must have a + * different monitored resource type. A log can be used in at most + * one producer destination. + * + * Generated from protobuf field repeated .google.api.Logging.LoggingDestination producer_destinations = 1; + */ + private $producer_destinations; + /** + * Logging configurations for sending logs to the consumer project. + * There can be multiple consumer destinations, each one must have a + * different monitored resource type. A log can be used in at most + * one consumer destination. + * + * Generated from protobuf field repeated .google.api.Logging.LoggingDestination consumer_destinations = 2; + */ + private $consumer_destinations; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Api\Logging\LoggingDestination[] $producer_destinations + * Logging configurations for sending logs to the producer project. + * There can be multiple producer destinations, each one must have a + * different monitored resource type. A log can be used in at most + * one producer destination. + * @type \Google\Api\Logging\LoggingDestination[] $consumer_destinations + * Logging configurations for sending logs to the consumer project. + * There can be multiple consumer destinations, each one must have a + * different monitored resource type. A log can be used in at most + * one consumer destination. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Logging::initOnce(); + parent::__construct($data); + } + + /** + * Logging configurations for sending logs to the producer project. + * There can be multiple producer destinations, each one must have a + * different monitored resource type. A log can be used in at most + * one producer destination. + * + * Generated from protobuf field repeated .google.api.Logging.LoggingDestination producer_destinations = 1; + * @return RepeatedField<\Google\Api\Logging\LoggingDestination> + */ + public function getProducerDestinations() + { + return $this->producer_destinations; + } + + /** + * Logging configurations for sending logs to the producer project. + * There can be multiple producer destinations, each one must have a + * different monitored resource type. A log can be used in at most + * one producer destination. + * + * Generated from protobuf field repeated .google.api.Logging.LoggingDestination producer_destinations = 1; + * @param \Google\Api\Logging\LoggingDestination[] $var + * @return $this + */ + public function setProducerDestinations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\Logging\LoggingDestination::class); + $this->producer_destinations = $arr; + + return $this; + } + + /** + * Logging configurations for sending logs to the consumer project. + * There can be multiple consumer destinations, each one must have a + * different monitored resource type. A log can be used in at most + * one consumer destination. + * + * Generated from protobuf field repeated .google.api.Logging.LoggingDestination consumer_destinations = 2; + * @return RepeatedField<\Google\Api\Logging\LoggingDestination> + */ + public function getConsumerDestinations() + { + return $this->consumer_destinations; + } + + /** + * Logging configurations for sending logs to the consumer project. + * There can be multiple consumer destinations, each one must have a + * different monitored resource type. A log can be used in at most + * one consumer destination. + * + * Generated from protobuf field repeated .google.api.Logging.LoggingDestination consumer_destinations = 2; + * @param \Google\Api\Logging\LoggingDestination[] $var + * @return $this + */ + public function setConsumerDestinations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\Logging\LoggingDestination::class); + $this->consumer_destinations = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Logging/LoggingDestination.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Logging/LoggingDestination.php new file mode 100644 index 000000000000..7c0d6fe7cf96 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Logging/LoggingDestination.php @@ -0,0 +1,122 @@ +google.api.Logging.LoggingDestination + */ +class LoggingDestination extends \Google\Protobuf\Internal\Message +{ + /** + * The monitored resource type. The type must be defined in the + * [Service.monitored_resources][google.api.Service.monitored_resources] + * section. + * + * Generated from protobuf field string monitored_resource = 3; + */ + protected $monitored_resource = ''; + /** + * Names of the logs to be sent to this destination. Each name must + * be defined in the [Service.logs][google.api.Service.logs] section. If the + * log name is not a domain scoped name, it will be automatically prefixed + * with the service name followed by "/". + * + * Generated from protobuf field repeated string logs = 1; + */ + private $logs; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $monitored_resource + * The monitored resource type. The type must be defined in the + * [Service.monitored_resources][google.api.Service.monitored_resources] + * section. + * @type string[] $logs + * Names of the logs to be sent to this destination. Each name must + * be defined in the [Service.logs][google.api.Service.logs] section. If the + * log name is not a domain scoped name, it will be automatically prefixed + * with the service name followed by "/". + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Logging::initOnce(); + parent::__construct($data); + } + + /** + * The monitored resource type. The type must be defined in the + * [Service.monitored_resources][google.api.Service.monitored_resources] + * section. + * + * Generated from protobuf field string monitored_resource = 3; + * @return string + */ + public function getMonitoredResource() + { + return $this->monitored_resource; + } + + /** + * The monitored resource type. The type must be defined in the + * [Service.monitored_resources][google.api.Service.monitored_resources] + * section. + * + * Generated from protobuf field string monitored_resource = 3; + * @param string $var + * @return $this + */ + public function setMonitoredResource($var) + { + GPBUtil::checkString($var, True); + $this->monitored_resource = $var; + + return $this; + } + + /** + * Names of the logs to be sent to this destination. Each name must + * be defined in the [Service.logs][google.api.Service.logs] section. If the + * log name is not a domain scoped name, it will be automatically prefixed + * with the service name followed by "/". + * + * Generated from protobuf field repeated string logs = 1; + * @return RepeatedField + */ + public function getLogs() + { + return $this->logs; + } + + /** + * Names of the logs to be sent to this destination. Each name must + * be defined in the [Service.logs][google.api.Service.logs] section. If the + * log name is not a domain scoped name, it will be automatically prefixed + * with the service name followed by "/". + * + * Generated from protobuf field repeated string logs = 1; + * @param string[] $var + * @return $this + */ + public function setLogs($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->logs = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MethodPolicy.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MethodPolicy.php new file mode 100644 index 000000000000..a8b98647a566 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MethodPolicy.php @@ -0,0 +1,121 @@ +google.api.MethodPolicy + */ +class MethodPolicy extends \Google\Protobuf\Internal\Message +{ + /** + * Selects a method to which these policies should be enforced, for example, + * "google.pubsub.v1.Subscriber.CreateSubscription". + * Refer to [selector][google.api.DocumentationRule.selector] for syntax + * details. + * NOTE: This field must not be set in the proto annotation. It will be + * automatically filled by the service config compiler . + * + * Generated from protobuf field string selector = 9; + */ + protected $selector = ''; + /** + * Policies that are applicable to the request message. + * + * Generated from protobuf field repeated .google.api.FieldPolicy request_policies = 2; + */ + private $request_policies; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $selector + * Selects a method to which these policies should be enforced, for example, + * "google.pubsub.v1.Subscriber.CreateSubscription". + * Refer to [selector][google.api.DocumentationRule.selector] for syntax + * details. + * NOTE: This field must not be set in the proto annotation. It will be + * automatically filled by the service config compiler . + * @type \Google\Api\FieldPolicy[] $request_policies + * Policies that are applicable to the request message. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Policy::initOnce(); + parent::__construct($data); + } + + /** + * Selects a method to which these policies should be enforced, for example, + * "google.pubsub.v1.Subscriber.CreateSubscription". + * Refer to [selector][google.api.DocumentationRule.selector] for syntax + * details. + * NOTE: This field must not be set in the proto annotation. It will be + * automatically filled by the service config compiler . + * + * Generated from protobuf field string selector = 9; + * @return string + */ + public function getSelector() + { + return $this->selector; + } + + /** + * Selects a method to which these policies should be enforced, for example, + * "google.pubsub.v1.Subscriber.CreateSubscription". + * Refer to [selector][google.api.DocumentationRule.selector] for syntax + * details. + * NOTE: This field must not be set in the proto annotation. It will be + * automatically filled by the service config compiler . + * + * Generated from protobuf field string selector = 9; + * @param string $var + * @return $this + */ + public function setSelector($var) + { + GPBUtil::checkString($var, True); + $this->selector = $var; + + return $this; + } + + /** + * Policies that are applicable to the request message. + * + * Generated from protobuf field repeated .google.api.FieldPolicy request_policies = 2; + * @return RepeatedField<\Google\Api\FieldPolicy> + */ + public function getRequestPolicies() + { + return $this->request_policies; + } + + /** + * Policies that are applicable to the request message. + * + * Generated from protobuf field repeated .google.api.FieldPolicy request_policies = 2; + * @param \Google\Api\FieldPolicy[] $var + * @return $this + */ + public function setRequestPolicies($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\FieldPolicy::class); + $this->request_policies = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MethodSettings.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MethodSettings.php new file mode 100644 index 000000000000..1669fc575fe7 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MethodSettings.php @@ -0,0 +1,321 @@ +google.api.MethodSettings + */ +class MethodSettings extends \Google\Protobuf\Internal\Message +{ + /** + * The fully qualified name of the method, for which the options below apply. + * This is used to find the method to apply the options. + * Example: + * publishing: + * method_settings: + * - selector: google.storage.control.v2.StorageControl.CreateFolder + * # method settings for CreateFolder... + * + * Generated from protobuf field string selector = 1; + */ + protected $selector = ''; + /** + * Describes settings to use for long-running operations when generating + * API methods for RPCs. Complements RPCs that use the annotations in + * google/longrunning/operations.proto. + * Example of a YAML configuration:: + * publishing: + * method_settings: + * - selector: google.cloud.speech.v2.Speech.BatchRecognize + * long_running: + * initial_poll_delay: 60s # 1 minute + * poll_delay_multiplier: 1.5 + * max_poll_delay: 360s # 6 minutes + * total_poll_timeout: 54000s # 90 minutes + * + * Generated from protobuf field .google.api.MethodSettings.LongRunning long_running = 2; + */ + protected $long_running = null; + /** + * List of top-level fields of the request message, that should be + * automatically populated by the client libraries based on their + * (google.api.field_info).format. Currently supported format: UUID4. + * Example of a YAML configuration: + * publishing: + * method_settings: + * - selector: google.example.v1.ExampleService.CreateExample + * auto_populated_fields: + * - request_id + * + * Generated from protobuf field repeated string auto_populated_fields = 3; + */ + private $auto_populated_fields; + /** + * Batching configuration for an API method in client libraries. + * Example of a YAML configuration: + * publishing: + * method_settings: + * - selector: google.example.v1.ExampleService.BatchCreateExample + * batching: + * element_count_threshold: 1000 + * request_byte_threshold: 100000000 + * delay_threshold_millis: 10 + * + * Generated from protobuf field .google.api.BatchingConfigProto batching = 4; + */ + protected $batching = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $selector + * The fully qualified name of the method, for which the options below apply. + * This is used to find the method to apply the options. + * Example: + * publishing: + * method_settings: + * - selector: google.storage.control.v2.StorageControl.CreateFolder + * # method settings for CreateFolder... + * @type \Google\Api\MethodSettings\LongRunning $long_running + * Describes settings to use for long-running operations when generating + * API methods for RPCs. Complements RPCs that use the annotations in + * google/longrunning/operations.proto. + * Example of a YAML configuration:: + * publishing: + * method_settings: + * - selector: google.cloud.speech.v2.Speech.BatchRecognize + * long_running: + * initial_poll_delay: 60s # 1 minute + * poll_delay_multiplier: 1.5 + * max_poll_delay: 360s # 6 minutes + * total_poll_timeout: 54000s # 90 minutes + * @type string[] $auto_populated_fields + * List of top-level fields of the request message, that should be + * automatically populated by the client libraries based on their + * (google.api.field_info).format. Currently supported format: UUID4. + * Example of a YAML configuration: + * publishing: + * method_settings: + * - selector: google.example.v1.ExampleService.CreateExample + * auto_populated_fields: + * - request_id + * @type \Google\Api\BatchingConfigProto $batching + * Batching configuration for an API method in client libraries. + * Example of a YAML configuration: + * publishing: + * method_settings: + * - selector: google.example.v1.ExampleService.BatchCreateExample + * batching: + * element_count_threshold: 1000 + * request_byte_threshold: 100000000 + * delay_threshold_millis: 10 + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Client::initOnce(); + parent::__construct($data); + } + + /** + * The fully qualified name of the method, for which the options below apply. + * This is used to find the method to apply the options. + * Example: + * publishing: + * method_settings: + * - selector: google.storage.control.v2.StorageControl.CreateFolder + * # method settings for CreateFolder... + * + * Generated from protobuf field string selector = 1; + * @return string + */ + public function getSelector() + { + return $this->selector; + } + + /** + * The fully qualified name of the method, for which the options below apply. + * This is used to find the method to apply the options. + * Example: + * publishing: + * method_settings: + * - selector: google.storage.control.v2.StorageControl.CreateFolder + * # method settings for CreateFolder... + * + * Generated from protobuf field string selector = 1; + * @param string $var + * @return $this + */ + public function setSelector($var) + { + GPBUtil::checkString($var, True); + $this->selector = $var; + + return $this; + } + + /** + * Describes settings to use for long-running operations when generating + * API methods for RPCs. Complements RPCs that use the annotations in + * google/longrunning/operations.proto. + * Example of a YAML configuration:: + * publishing: + * method_settings: + * - selector: google.cloud.speech.v2.Speech.BatchRecognize + * long_running: + * initial_poll_delay: 60s # 1 minute + * poll_delay_multiplier: 1.5 + * max_poll_delay: 360s # 6 minutes + * total_poll_timeout: 54000s # 90 minutes + * + * Generated from protobuf field .google.api.MethodSettings.LongRunning long_running = 2; + * @return \Google\Api\MethodSettings\LongRunning|null + */ + public function getLongRunning() + { + return $this->long_running; + } + + public function hasLongRunning() + { + return isset($this->long_running); + } + + public function clearLongRunning() + { + unset($this->long_running); + } + + /** + * Describes settings to use for long-running operations when generating + * API methods for RPCs. Complements RPCs that use the annotations in + * google/longrunning/operations.proto. + * Example of a YAML configuration:: + * publishing: + * method_settings: + * - selector: google.cloud.speech.v2.Speech.BatchRecognize + * long_running: + * initial_poll_delay: 60s # 1 minute + * poll_delay_multiplier: 1.5 + * max_poll_delay: 360s # 6 minutes + * total_poll_timeout: 54000s # 90 minutes + * + * Generated from protobuf field .google.api.MethodSettings.LongRunning long_running = 2; + * @param \Google\Api\MethodSettings\LongRunning $var + * @return $this + */ + public function setLongRunning($var) + { + GPBUtil::checkMessage($var, \Google\Api\MethodSettings\LongRunning::class); + $this->long_running = $var; + + return $this; + } + + /** + * List of top-level fields of the request message, that should be + * automatically populated by the client libraries based on their + * (google.api.field_info).format. Currently supported format: UUID4. + * Example of a YAML configuration: + * publishing: + * method_settings: + * - selector: google.example.v1.ExampleService.CreateExample + * auto_populated_fields: + * - request_id + * + * Generated from protobuf field repeated string auto_populated_fields = 3; + * @return RepeatedField + */ + public function getAutoPopulatedFields() + { + return $this->auto_populated_fields; + } + + /** + * List of top-level fields of the request message, that should be + * automatically populated by the client libraries based on their + * (google.api.field_info).format. Currently supported format: UUID4. + * Example of a YAML configuration: + * publishing: + * method_settings: + * - selector: google.example.v1.ExampleService.CreateExample + * auto_populated_fields: + * - request_id + * + * Generated from protobuf field repeated string auto_populated_fields = 3; + * @param string[] $var + * @return $this + */ + public function setAutoPopulatedFields($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->auto_populated_fields = $arr; + + return $this; + } + + /** + * Batching configuration for an API method in client libraries. + * Example of a YAML configuration: + * publishing: + * method_settings: + * - selector: google.example.v1.ExampleService.BatchCreateExample + * batching: + * element_count_threshold: 1000 + * request_byte_threshold: 100000000 + * delay_threshold_millis: 10 + * + * Generated from protobuf field .google.api.BatchingConfigProto batching = 4; + * @return \Google\Api\BatchingConfigProto|null + */ + public function getBatching() + { + return $this->batching; + } + + public function hasBatching() + { + return isset($this->batching); + } + + public function clearBatching() + { + unset($this->batching); + } + + /** + * Batching configuration for an API method in client libraries. + * Example of a YAML configuration: + * publishing: + * method_settings: + * - selector: google.example.v1.ExampleService.BatchCreateExample + * batching: + * element_count_threshold: 1000 + * request_byte_threshold: 100000000 + * delay_threshold_millis: 10 + * + * Generated from protobuf field .google.api.BatchingConfigProto batching = 4; + * @param \Google\Api\BatchingConfigProto $var + * @return $this + */ + public function setBatching($var) + { + GPBUtil::checkMessage($var, \Google\Api\BatchingConfigProto::class); + $this->batching = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MethodSettings/LongRunning.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MethodSettings/LongRunning.php new file mode 100644 index 000000000000..075592a4e868 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MethodSettings/LongRunning.php @@ -0,0 +1,223 @@ +google.api.MethodSettings.LongRunning + */ +class LongRunning extends \Google\Protobuf\Internal\Message +{ + /** + * Initial delay after which the first poll request will be made. + * Default value: 5 seconds. + * + * Generated from protobuf field .google.protobuf.Duration initial_poll_delay = 1; + */ + protected $initial_poll_delay = null; + /** + * Multiplier to gradually increase delay between subsequent polls until it + * reaches max_poll_delay. + * Default value: 1.5. + * + * Generated from protobuf field float poll_delay_multiplier = 2; + */ + protected $poll_delay_multiplier = 0.0; + /** + * Maximum time between two subsequent poll requests. + * Default value: 45 seconds. + * + * Generated from protobuf field .google.protobuf.Duration max_poll_delay = 3; + */ + protected $max_poll_delay = null; + /** + * Total polling timeout. + * Default value: 5 minutes. + * + * Generated from protobuf field .google.protobuf.Duration total_poll_timeout = 4; + */ + protected $total_poll_timeout = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\Duration $initial_poll_delay + * Initial delay after which the first poll request will be made. + * Default value: 5 seconds. + * @type float $poll_delay_multiplier + * Multiplier to gradually increase delay between subsequent polls until it + * reaches max_poll_delay. + * Default value: 1.5. + * @type \Google\Protobuf\Duration $max_poll_delay + * Maximum time between two subsequent poll requests. + * Default value: 45 seconds. + * @type \Google\Protobuf\Duration $total_poll_timeout + * Total polling timeout. + * Default value: 5 minutes. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Client::initOnce(); + parent::__construct($data); + } + + /** + * Initial delay after which the first poll request will be made. + * Default value: 5 seconds. + * + * Generated from protobuf field .google.protobuf.Duration initial_poll_delay = 1; + * @return \Google\Protobuf\Duration|null + */ + public function getInitialPollDelay() + { + return $this->initial_poll_delay; + } + + public function hasInitialPollDelay() + { + return isset($this->initial_poll_delay); + } + + public function clearInitialPollDelay() + { + unset($this->initial_poll_delay); + } + + /** + * Initial delay after which the first poll request will be made. + * Default value: 5 seconds. + * + * Generated from protobuf field .google.protobuf.Duration initial_poll_delay = 1; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setInitialPollDelay($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->initial_poll_delay = $var; + + return $this; + } + + /** + * Multiplier to gradually increase delay between subsequent polls until it + * reaches max_poll_delay. + * Default value: 1.5. + * + * Generated from protobuf field float poll_delay_multiplier = 2; + * @return float + */ + public function getPollDelayMultiplier() + { + return $this->poll_delay_multiplier; + } + + /** + * Multiplier to gradually increase delay between subsequent polls until it + * reaches max_poll_delay. + * Default value: 1.5. + * + * Generated from protobuf field float poll_delay_multiplier = 2; + * @param float $var + * @return $this + */ + public function setPollDelayMultiplier($var) + { + GPBUtil::checkFloat($var); + $this->poll_delay_multiplier = $var; + + return $this; + } + + /** + * Maximum time between two subsequent poll requests. + * Default value: 45 seconds. + * + * Generated from protobuf field .google.protobuf.Duration max_poll_delay = 3; + * @return \Google\Protobuf\Duration|null + */ + public function getMaxPollDelay() + { + return $this->max_poll_delay; + } + + public function hasMaxPollDelay() + { + return isset($this->max_poll_delay); + } + + public function clearMaxPollDelay() + { + unset($this->max_poll_delay); + } + + /** + * Maximum time between two subsequent poll requests. + * Default value: 45 seconds. + * + * Generated from protobuf field .google.protobuf.Duration max_poll_delay = 3; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setMaxPollDelay($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->max_poll_delay = $var; + + return $this; + } + + /** + * Total polling timeout. + * Default value: 5 minutes. + * + * Generated from protobuf field .google.protobuf.Duration total_poll_timeout = 4; + * @return \Google\Protobuf\Duration|null + */ + public function getTotalPollTimeout() + { + return $this->total_poll_timeout; + } + + public function hasTotalPollTimeout() + { + return isset($this->total_poll_timeout); + } + + public function clearTotalPollTimeout() + { + unset($this->total_poll_timeout); + } + + /** + * Total polling timeout. + * Default value: 5 minutes. + * + * Generated from protobuf field .google.protobuf.Duration total_poll_timeout = 4; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setTotalPollTimeout($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->total_poll_timeout = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Metric.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Metric.php new file mode 100644 index 000000000000..cbcfc0aa77fa --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Metric.php @@ -0,0 +1,114 @@ +google.api.Metric + */ +class Metric extends \Google\Protobuf\Internal\Message +{ + /** + * An existing metric type, see + * [google.api.MetricDescriptor][google.api.MetricDescriptor]. For example, + * `custom.googleapis.com/invoice/paid/amount`. + * + * Generated from protobuf field string type = 3; + */ + protected $type = ''; + /** + * The set of label values that uniquely identify this metric. All + * labels listed in the `MetricDescriptor` must be assigned values. + * + * Generated from protobuf field map labels = 2; + */ + private $labels; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $type + * An existing metric type, see + * [google.api.MetricDescriptor][google.api.MetricDescriptor]. For example, + * `custom.googleapis.com/invoice/paid/amount`. + * @type array|\Google\Protobuf\Internal\MapField $labels + * The set of label values that uniquely identify this metric. All + * labels listed in the `MetricDescriptor` must be assigned values. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Metric::initOnce(); + parent::__construct($data); + } + + /** + * An existing metric type, see + * [google.api.MetricDescriptor][google.api.MetricDescriptor]. For example, + * `custom.googleapis.com/invoice/paid/amount`. + * + * Generated from protobuf field string type = 3; + * @return string + */ + public function getType() + { + return $this->type; + } + + /** + * An existing metric type, see + * [google.api.MetricDescriptor][google.api.MetricDescriptor]. For example, + * `custom.googleapis.com/invoice/paid/amount`. + * + * Generated from protobuf field string type = 3; + * @param string $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkString($var, True); + $this->type = $var; + + return $this; + } + + /** + * The set of label values that uniquely identify this metric. All + * labels listed in the `MetricDescriptor` must be assigned values. + * + * Generated from protobuf field map labels = 2; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * The set of label values that uniquely identify this metric. All + * labels listed in the `MetricDescriptor` must be assigned values. + * + * Generated from protobuf field map labels = 2; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->labels = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricDescriptor.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricDescriptor.php new file mode 100644 index 000000000000..78b29e6d9a0d --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricDescriptor.php @@ -0,0 +1,831 @@ +google.api.MetricDescriptor + */ +class MetricDescriptor extends \Google\Protobuf\Internal\Message +{ + /** + * The resource name of the metric descriptor. + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * The metric type, including its DNS name prefix. The type is not + * URL-encoded. All user-defined metric types have the DNS name + * `custom.googleapis.com` or `external.googleapis.com`. Metric types should + * use a natural hierarchical grouping. For example: + * "custom.googleapis.com/invoice/paid/amount" + * "external.googleapis.com/prometheus/up" + * "appengine.googleapis.com/http/server/response_latencies" + * + * Generated from protobuf field string type = 8; + */ + protected $type = ''; + /** + * The set of labels that can be used to describe a specific + * instance of this metric type. For example, the + * `appengine.googleapis.com/http/server/response_latencies` metric + * type has a label for the HTTP response code, `response_code`, so + * you can look at latencies for successful responses or just + * for responses that failed. + * + * Generated from protobuf field repeated .google.api.LabelDescriptor labels = 2; + */ + private $labels; + /** + * Whether the metric records instantaneous values, changes to a value, etc. + * Some combinations of `metric_kind` and `value_type` might not be supported. + * + * Generated from protobuf field .google.api.MetricDescriptor.MetricKind metric_kind = 3; + */ + protected $metric_kind = 0; + /** + * Whether the measurement is an integer, a floating-point number, etc. + * Some combinations of `metric_kind` and `value_type` might not be supported. + * + * Generated from protobuf field .google.api.MetricDescriptor.ValueType value_type = 4; + */ + protected $value_type = 0; + /** + * The units in which the metric value is reported. It is only applicable + * if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit` + * defines the representation of the stored metric values. + * Different systems might scale the values to be more easily displayed (so a + * value of `0.02kBy` _might_ be displayed as `20By`, and a value of + * `3523kBy` _might_ be displayed as `3.5MBy`). However, if the `unit` is + * `kBy`, then the value of the metric is always in thousands of bytes, no + * matter how it might be displayed. + * If you want a custom metric to record the exact number of CPU-seconds used + * by a job, you can create an `INT64 CUMULATIVE` metric whose `unit` is + * `s{CPU}` (or equivalently `1s{CPU}` or just `s`). If the job uses 12,005 + * CPU-seconds, then the value is written as `12005`. + * Alternatively, if you want a custom metric to record data in a more + * granular way, you can create a `DOUBLE CUMULATIVE` metric whose `unit` is + * `ks{CPU}`, and then write the value `12.005` (which is `12005/1000`), + * or use `Kis{CPU}` and write `11.723` (which is `12005/1024`). + * The supported units are a subset of [The Unified Code for Units of + * Measure](https://unitsofmeasure.org/ucum.html) standard: + * **Basic units (UNIT)** + * * `bit` bit + * * `By` byte + * * `s` second + * * `min` minute + * * `h` hour + * * `d` day + * * `1` dimensionless + * **Prefixes (PREFIX)** + * * `k` kilo (10^3) + * * `M` mega (10^6) + * * `G` giga (10^9) + * * `T` tera (10^12) + * * `P` peta (10^15) + * * `E` exa (10^18) + * * `Z` zetta (10^21) + * * `Y` yotta (10^24) + * * `m` milli (10^-3) + * * `u` micro (10^-6) + * * `n` nano (10^-9) + * * `p` pico (10^-12) + * * `f` femto (10^-15) + * * `a` atto (10^-18) + * * `z` zepto (10^-21) + * * `y` yocto (10^-24) + * * `Ki` kibi (2^10) + * * `Mi` mebi (2^20) + * * `Gi` gibi (2^30) + * * `Ti` tebi (2^40) + * * `Pi` pebi (2^50) + * **Grammar** + * The grammar also includes these connectors: + * * `/` division or ratio (as an infix operator). For examples, + * `kBy/{email}` or `MiBy/10ms` (although you should almost never + * have `/s` in a metric `unit`; rates should always be computed at + * query time from the underlying cumulative or delta value). + * * `.` multiplication or composition (as an infix operator). For + * examples, `GBy.d` or `k{watt}.h`. + * The grammar for a unit is as follows: + * Expression = Component { "." Component } { "/" Component } ; + * Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ] + * | Annotation + * | "1" + * ; + * Annotation = "{" NAME "}" ; + * Notes: + * * `Annotation` is just a comment if it follows a `UNIT`. If the annotation + * is used alone, then the unit is equivalent to `1`. For examples, + * `{request}/s == 1/s`, `By{transmitted}/s == By/s`. + * * `NAME` is a sequence of non-blank printable ASCII characters not + * containing `{` or `}`. + * * `1` represents a unitary [dimensionless + * unit](https://en.wikipedia.org/wiki/Dimensionless_quantity) of 1, such + * as in `1/s`. It is typically used when none of the basic units are + * appropriate. For example, "new users per day" can be represented as + * `1/d` or `{new-users}/d` (and a metric value `5` would mean "5 new + * users). Alternatively, "thousands of page views per day" would be + * represented as `1000/d` or `k1/d` or `k{page_views}/d` (and a metric + * value of `5.3` would mean "5300 page views per day"). + * * `%` represents dimensionless value of 1/100, and annotates values giving + * a percentage (so the metric values are typically in the range of 0..100, + * and a metric value `3` means "3 percent"). + * * `10^2.%` indicates a metric contains a ratio, typically in the range + * 0..1, that will be multiplied by 100 and displayed as a percentage + * (so a metric value `0.03` means "3 percent"). + * + * Generated from protobuf field string unit = 5; + */ + protected $unit = ''; + /** + * A detailed description of the metric, which can be used in documentation. + * + * Generated from protobuf field string description = 6; + */ + protected $description = ''; + /** + * A concise name for the metric, which can be displayed in user interfaces. + * Use sentence case without an ending period, for example "Request count". + * This field is optional but it is recommended to be set for any metrics + * associated with user-visible concepts, such as Quota. + * + * Generated from protobuf field string display_name = 7; + */ + protected $display_name = ''; + /** + * Optional. Metadata which can be used to guide usage of the metric. + * + * Generated from protobuf field .google.api.MetricDescriptor.MetricDescriptorMetadata metadata = 10; + */ + protected $metadata = null; + /** + * Optional. The launch stage of the metric definition. + * + * Generated from protobuf field .google.api.LaunchStage launch_stage = 12; + */ + protected $launch_stage = 0; + /** + * Read-only. If present, then a [time + * series][google.monitoring.v3.TimeSeries], which is identified partially by + * a metric type and a + * [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor], that + * is associated with this metric type can only be associated with one of the + * monitored resource types listed here. + * + * Generated from protobuf field repeated string monitored_resource_types = 13; + */ + private $monitored_resource_types; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * The resource name of the metric descriptor. + * @type string $type + * The metric type, including its DNS name prefix. The type is not + * URL-encoded. All user-defined metric types have the DNS name + * `custom.googleapis.com` or `external.googleapis.com`. Metric types should + * use a natural hierarchical grouping. For example: + * "custom.googleapis.com/invoice/paid/amount" + * "external.googleapis.com/prometheus/up" + * "appengine.googleapis.com/http/server/response_latencies" + * @type \Google\Api\LabelDescriptor[] $labels + * The set of labels that can be used to describe a specific + * instance of this metric type. For example, the + * `appengine.googleapis.com/http/server/response_latencies` metric + * type has a label for the HTTP response code, `response_code`, so + * you can look at latencies for successful responses or just + * for responses that failed. + * @type int $metric_kind + * Whether the metric records instantaneous values, changes to a value, etc. + * Some combinations of `metric_kind` and `value_type` might not be supported. + * @type int $value_type + * Whether the measurement is an integer, a floating-point number, etc. + * Some combinations of `metric_kind` and `value_type` might not be supported. + * @type string $unit + * The units in which the metric value is reported. It is only applicable + * if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit` + * defines the representation of the stored metric values. + * Different systems might scale the values to be more easily displayed (so a + * value of `0.02kBy` _might_ be displayed as `20By`, and a value of + * `3523kBy` _might_ be displayed as `3.5MBy`). However, if the `unit` is + * `kBy`, then the value of the metric is always in thousands of bytes, no + * matter how it might be displayed. + * If you want a custom metric to record the exact number of CPU-seconds used + * by a job, you can create an `INT64 CUMULATIVE` metric whose `unit` is + * `s{CPU}` (or equivalently `1s{CPU}` or just `s`). If the job uses 12,005 + * CPU-seconds, then the value is written as `12005`. + * Alternatively, if you want a custom metric to record data in a more + * granular way, you can create a `DOUBLE CUMULATIVE` metric whose `unit` is + * `ks{CPU}`, and then write the value `12.005` (which is `12005/1000`), + * or use `Kis{CPU}` and write `11.723` (which is `12005/1024`). + * The supported units are a subset of [The Unified Code for Units of + * Measure](https://unitsofmeasure.org/ucum.html) standard: + * **Basic units (UNIT)** + * * `bit` bit + * * `By` byte + * * `s` second + * * `min` minute + * * `h` hour + * * `d` day + * * `1` dimensionless + * **Prefixes (PREFIX)** + * * `k` kilo (10^3) + * * `M` mega (10^6) + * * `G` giga (10^9) + * * `T` tera (10^12) + * * `P` peta (10^15) + * * `E` exa (10^18) + * * `Z` zetta (10^21) + * * `Y` yotta (10^24) + * * `m` milli (10^-3) + * * `u` micro (10^-6) + * * `n` nano (10^-9) + * * `p` pico (10^-12) + * * `f` femto (10^-15) + * * `a` atto (10^-18) + * * `z` zepto (10^-21) + * * `y` yocto (10^-24) + * * `Ki` kibi (2^10) + * * `Mi` mebi (2^20) + * * `Gi` gibi (2^30) + * * `Ti` tebi (2^40) + * * `Pi` pebi (2^50) + * **Grammar** + * The grammar also includes these connectors: + * * `/` division or ratio (as an infix operator). For examples, + * `kBy/{email}` or `MiBy/10ms` (although you should almost never + * have `/s` in a metric `unit`; rates should always be computed at + * query time from the underlying cumulative or delta value). + * * `.` multiplication or composition (as an infix operator). For + * examples, `GBy.d` or `k{watt}.h`. + * The grammar for a unit is as follows: + * Expression = Component { "." Component } { "/" Component } ; + * Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ] + * | Annotation + * | "1" + * ; + * Annotation = "{" NAME "}" ; + * Notes: + * * `Annotation` is just a comment if it follows a `UNIT`. If the annotation + * is used alone, then the unit is equivalent to `1`. For examples, + * `{request}/s == 1/s`, `By{transmitted}/s == By/s`. + * * `NAME` is a sequence of non-blank printable ASCII characters not + * containing `{` or `}`. + * * `1` represents a unitary [dimensionless + * unit](https://en.wikipedia.org/wiki/Dimensionless_quantity) of 1, such + * as in `1/s`. It is typically used when none of the basic units are + * appropriate. For example, "new users per day" can be represented as + * `1/d` or `{new-users}/d` (and a metric value `5` would mean "5 new + * users). Alternatively, "thousands of page views per day" would be + * represented as `1000/d` or `k1/d` or `k{page_views}/d` (and a metric + * value of `5.3` would mean "5300 page views per day"). + * * `%` represents dimensionless value of 1/100, and annotates values giving + * a percentage (so the metric values are typically in the range of 0..100, + * and a metric value `3` means "3 percent"). + * * `10^2.%` indicates a metric contains a ratio, typically in the range + * 0..1, that will be multiplied by 100 and displayed as a percentage + * (so a metric value `0.03` means "3 percent"). + * @type string $description + * A detailed description of the metric, which can be used in documentation. + * @type string $display_name + * A concise name for the metric, which can be displayed in user interfaces. + * Use sentence case without an ending period, for example "Request count". + * This field is optional but it is recommended to be set for any metrics + * associated with user-visible concepts, such as Quota. + * @type \Google\Api\MetricDescriptor\MetricDescriptorMetadata $metadata + * Optional. Metadata which can be used to guide usage of the metric. + * @type int $launch_stage + * Optional. The launch stage of the metric definition. + * @type string[] $monitored_resource_types + * Read-only. If present, then a [time + * series][google.monitoring.v3.TimeSeries], which is identified partially by + * a metric type and a + * [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor], that + * is associated with this metric type can only be associated with one of the + * monitored resource types listed here. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Metric::initOnce(); + parent::__construct($data); + } + + /** + * The resource name of the metric descriptor. + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The resource name of the metric descriptor. + * + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * The metric type, including its DNS name prefix. The type is not + * URL-encoded. All user-defined metric types have the DNS name + * `custom.googleapis.com` or `external.googleapis.com`. Metric types should + * use a natural hierarchical grouping. For example: + * "custom.googleapis.com/invoice/paid/amount" + * "external.googleapis.com/prometheus/up" + * "appengine.googleapis.com/http/server/response_latencies" + * + * Generated from protobuf field string type = 8; + * @return string + */ + public function getType() + { + return $this->type; + } + + /** + * The metric type, including its DNS name prefix. The type is not + * URL-encoded. All user-defined metric types have the DNS name + * `custom.googleapis.com` or `external.googleapis.com`. Metric types should + * use a natural hierarchical grouping. For example: + * "custom.googleapis.com/invoice/paid/amount" + * "external.googleapis.com/prometheus/up" + * "appengine.googleapis.com/http/server/response_latencies" + * + * Generated from protobuf field string type = 8; + * @param string $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkString($var, True); + $this->type = $var; + + return $this; + } + + /** + * The set of labels that can be used to describe a specific + * instance of this metric type. For example, the + * `appengine.googleapis.com/http/server/response_latencies` metric + * type has a label for the HTTP response code, `response_code`, so + * you can look at latencies for successful responses or just + * for responses that failed. + * + * Generated from protobuf field repeated .google.api.LabelDescriptor labels = 2; + * @return RepeatedField<\Google\Api\LabelDescriptor> + */ + public function getLabels() + { + return $this->labels; + } + + /** + * The set of labels that can be used to describe a specific + * instance of this metric type. For example, the + * `appengine.googleapis.com/http/server/response_latencies` metric + * type has a label for the HTTP response code, `response_code`, so + * you can look at latencies for successful responses or just + * for responses that failed. + * + * Generated from protobuf field repeated .google.api.LabelDescriptor labels = 2; + * @param \Google\Api\LabelDescriptor[] $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\LabelDescriptor::class); + $this->labels = $arr; + + return $this; + } + + /** + * Whether the metric records instantaneous values, changes to a value, etc. + * Some combinations of `metric_kind` and `value_type` might not be supported. + * + * Generated from protobuf field .google.api.MetricDescriptor.MetricKind metric_kind = 3; + * @return int + */ + public function getMetricKind() + { + return $this->metric_kind; + } + + /** + * Whether the metric records instantaneous values, changes to a value, etc. + * Some combinations of `metric_kind` and `value_type` might not be supported. + * + * Generated from protobuf field .google.api.MetricDescriptor.MetricKind metric_kind = 3; + * @param int $var + * @return $this + */ + public function setMetricKind($var) + { + GPBUtil::checkEnum($var, \Google\Api\MetricDescriptor\MetricKind::class); + $this->metric_kind = $var; + + return $this; + } + + /** + * Whether the measurement is an integer, a floating-point number, etc. + * Some combinations of `metric_kind` and `value_type` might not be supported. + * + * Generated from protobuf field .google.api.MetricDescriptor.ValueType value_type = 4; + * @return int + */ + public function getValueType() + { + return $this->value_type; + } + + /** + * Whether the measurement is an integer, a floating-point number, etc. + * Some combinations of `metric_kind` and `value_type` might not be supported. + * + * Generated from protobuf field .google.api.MetricDescriptor.ValueType value_type = 4; + * @param int $var + * @return $this + */ + public function setValueType($var) + { + GPBUtil::checkEnum($var, \Google\Api\MetricDescriptor\ValueType::class); + $this->value_type = $var; + + return $this; + } + + /** + * The units in which the metric value is reported. It is only applicable + * if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit` + * defines the representation of the stored metric values. + * Different systems might scale the values to be more easily displayed (so a + * value of `0.02kBy` _might_ be displayed as `20By`, and a value of + * `3523kBy` _might_ be displayed as `3.5MBy`). However, if the `unit` is + * `kBy`, then the value of the metric is always in thousands of bytes, no + * matter how it might be displayed. + * If you want a custom metric to record the exact number of CPU-seconds used + * by a job, you can create an `INT64 CUMULATIVE` metric whose `unit` is + * `s{CPU}` (or equivalently `1s{CPU}` or just `s`). If the job uses 12,005 + * CPU-seconds, then the value is written as `12005`. + * Alternatively, if you want a custom metric to record data in a more + * granular way, you can create a `DOUBLE CUMULATIVE` metric whose `unit` is + * `ks{CPU}`, and then write the value `12.005` (which is `12005/1000`), + * or use `Kis{CPU}` and write `11.723` (which is `12005/1024`). + * The supported units are a subset of [The Unified Code for Units of + * Measure](https://unitsofmeasure.org/ucum.html) standard: + * **Basic units (UNIT)** + * * `bit` bit + * * `By` byte + * * `s` second + * * `min` minute + * * `h` hour + * * `d` day + * * `1` dimensionless + * **Prefixes (PREFIX)** + * * `k` kilo (10^3) + * * `M` mega (10^6) + * * `G` giga (10^9) + * * `T` tera (10^12) + * * `P` peta (10^15) + * * `E` exa (10^18) + * * `Z` zetta (10^21) + * * `Y` yotta (10^24) + * * `m` milli (10^-3) + * * `u` micro (10^-6) + * * `n` nano (10^-9) + * * `p` pico (10^-12) + * * `f` femto (10^-15) + * * `a` atto (10^-18) + * * `z` zepto (10^-21) + * * `y` yocto (10^-24) + * * `Ki` kibi (2^10) + * * `Mi` mebi (2^20) + * * `Gi` gibi (2^30) + * * `Ti` tebi (2^40) + * * `Pi` pebi (2^50) + * **Grammar** + * The grammar also includes these connectors: + * * `/` division or ratio (as an infix operator). For examples, + * `kBy/{email}` or `MiBy/10ms` (although you should almost never + * have `/s` in a metric `unit`; rates should always be computed at + * query time from the underlying cumulative or delta value). + * * `.` multiplication or composition (as an infix operator). For + * examples, `GBy.d` or `k{watt}.h`. + * The grammar for a unit is as follows: + * Expression = Component { "." Component } { "/" Component } ; + * Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ] + * | Annotation + * | "1" + * ; + * Annotation = "{" NAME "}" ; + * Notes: + * * `Annotation` is just a comment if it follows a `UNIT`. If the annotation + * is used alone, then the unit is equivalent to `1`. For examples, + * `{request}/s == 1/s`, `By{transmitted}/s == By/s`. + * * `NAME` is a sequence of non-blank printable ASCII characters not + * containing `{` or `}`. + * * `1` represents a unitary [dimensionless + * unit](https://en.wikipedia.org/wiki/Dimensionless_quantity) of 1, such + * as in `1/s`. It is typically used when none of the basic units are + * appropriate. For example, "new users per day" can be represented as + * `1/d` or `{new-users}/d` (and a metric value `5` would mean "5 new + * users). Alternatively, "thousands of page views per day" would be + * represented as `1000/d` or `k1/d` or `k{page_views}/d` (and a metric + * value of `5.3` would mean "5300 page views per day"). + * * `%` represents dimensionless value of 1/100, and annotates values giving + * a percentage (so the metric values are typically in the range of 0..100, + * and a metric value `3` means "3 percent"). + * * `10^2.%` indicates a metric contains a ratio, typically in the range + * 0..1, that will be multiplied by 100 and displayed as a percentage + * (so a metric value `0.03` means "3 percent"). + * + * Generated from protobuf field string unit = 5; + * @return string + */ + public function getUnit() + { + return $this->unit; + } + + /** + * The units in which the metric value is reported. It is only applicable + * if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit` + * defines the representation of the stored metric values. + * Different systems might scale the values to be more easily displayed (so a + * value of `0.02kBy` _might_ be displayed as `20By`, and a value of + * `3523kBy` _might_ be displayed as `3.5MBy`). However, if the `unit` is + * `kBy`, then the value of the metric is always in thousands of bytes, no + * matter how it might be displayed. + * If you want a custom metric to record the exact number of CPU-seconds used + * by a job, you can create an `INT64 CUMULATIVE` metric whose `unit` is + * `s{CPU}` (or equivalently `1s{CPU}` or just `s`). If the job uses 12,005 + * CPU-seconds, then the value is written as `12005`. + * Alternatively, if you want a custom metric to record data in a more + * granular way, you can create a `DOUBLE CUMULATIVE` metric whose `unit` is + * `ks{CPU}`, and then write the value `12.005` (which is `12005/1000`), + * or use `Kis{CPU}` and write `11.723` (which is `12005/1024`). + * The supported units are a subset of [The Unified Code for Units of + * Measure](https://unitsofmeasure.org/ucum.html) standard: + * **Basic units (UNIT)** + * * `bit` bit + * * `By` byte + * * `s` second + * * `min` minute + * * `h` hour + * * `d` day + * * `1` dimensionless + * **Prefixes (PREFIX)** + * * `k` kilo (10^3) + * * `M` mega (10^6) + * * `G` giga (10^9) + * * `T` tera (10^12) + * * `P` peta (10^15) + * * `E` exa (10^18) + * * `Z` zetta (10^21) + * * `Y` yotta (10^24) + * * `m` milli (10^-3) + * * `u` micro (10^-6) + * * `n` nano (10^-9) + * * `p` pico (10^-12) + * * `f` femto (10^-15) + * * `a` atto (10^-18) + * * `z` zepto (10^-21) + * * `y` yocto (10^-24) + * * `Ki` kibi (2^10) + * * `Mi` mebi (2^20) + * * `Gi` gibi (2^30) + * * `Ti` tebi (2^40) + * * `Pi` pebi (2^50) + * **Grammar** + * The grammar also includes these connectors: + * * `/` division or ratio (as an infix operator). For examples, + * `kBy/{email}` or `MiBy/10ms` (although you should almost never + * have `/s` in a metric `unit`; rates should always be computed at + * query time from the underlying cumulative or delta value). + * * `.` multiplication or composition (as an infix operator). For + * examples, `GBy.d` or `k{watt}.h`. + * The grammar for a unit is as follows: + * Expression = Component { "." Component } { "/" Component } ; + * Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ] + * | Annotation + * | "1" + * ; + * Annotation = "{" NAME "}" ; + * Notes: + * * `Annotation` is just a comment if it follows a `UNIT`. If the annotation + * is used alone, then the unit is equivalent to `1`. For examples, + * `{request}/s == 1/s`, `By{transmitted}/s == By/s`. + * * `NAME` is a sequence of non-blank printable ASCII characters not + * containing `{` or `}`. + * * `1` represents a unitary [dimensionless + * unit](https://en.wikipedia.org/wiki/Dimensionless_quantity) of 1, such + * as in `1/s`. It is typically used when none of the basic units are + * appropriate. For example, "new users per day" can be represented as + * `1/d` or `{new-users}/d` (and a metric value `5` would mean "5 new + * users). Alternatively, "thousands of page views per day" would be + * represented as `1000/d` or `k1/d` or `k{page_views}/d` (and a metric + * value of `5.3` would mean "5300 page views per day"). + * * `%` represents dimensionless value of 1/100, and annotates values giving + * a percentage (so the metric values are typically in the range of 0..100, + * and a metric value `3` means "3 percent"). + * * `10^2.%` indicates a metric contains a ratio, typically in the range + * 0..1, that will be multiplied by 100 and displayed as a percentage + * (so a metric value `0.03` means "3 percent"). + * + * Generated from protobuf field string unit = 5; + * @param string $var + * @return $this + */ + public function setUnit($var) + { + GPBUtil::checkString($var, True); + $this->unit = $var; + + return $this; + } + + /** + * A detailed description of the metric, which can be used in documentation. + * + * Generated from protobuf field string description = 6; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * A detailed description of the metric, which can be used in documentation. + * + * Generated from protobuf field string description = 6; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * A concise name for the metric, which can be displayed in user interfaces. + * Use sentence case without an ending period, for example "Request count". + * This field is optional but it is recommended to be set for any metrics + * associated with user-visible concepts, such as Quota. + * + * Generated from protobuf field string display_name = 7; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * A concise name for the metric, which can be displayed in user interfaces. + * Use sentence case without an ending period, for example "Request count". + * This field is optional but it is recommended to be set for any metrics + * associated with user-visible concepts, such as Quota. + * + * Generated from protobuf field string display_name = 7; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Optional. Metadata which can be used to guide usage of the metric. + * + * Generated from protobuf field .google.api.MetricDescriptor.MetricDescriptorMetadata metadata = 10; + * @return \Google\Api\MetricDescriptor\MetricDescriptorMetadata|null + */ + public function getMetadata() + { + return $this->metadata; + } + + public function hasMetadata() + { + return isset($this->metadata); + } + + public function clearMetadata() + { + unset($this->metadata); + } + + /** + * Optional. Metadata which can be used to guide usage of the metric. + * + * Generated from protobuf field .google.api.MetricDescriptor.MetricDescriptorMetadata metadata = 10; + * @param \Google\Api\MetricDescriptor\MetricDescriptorMetadata $var + * @return $this + */ + public function setMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Api\MetricDescriptor\MetricDescriptorMetadata::class); + $this->metadata = $var; + + return $this; + } + + /** + * Optional. The launch stage of the metric definition. + * + * Generated from protobuf field .google.api.LaunchStage launch_stage = 12; + * @return int + */ + public function getLaunchStage() + { + return $this->launch_stage; + } + + /** + * Optional. The launch stage of the metric definition. + * + * Generated from protobuf field .google.api.LaunchStage launch_stage = 12; + * @param int $var + * @return $this + */ + public function setLaunchStage($var) + { + GPBUtil::checkEnum($var, \Google\Api\LaunchStage::class); + $this->launch_stage = $var; + + return $this; + } + + /** + * Read-only. If present, then a [time + * series][google.monitoring.v3.TimeSeries], which is identified partially by + * a metric type and a + * [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor], that + * is associated with this metric type can only be associated with one of the + * monitored resource types listed here. + * + * Generated from protobuf field repeated string monitored_resource_types = 13; + * @return RepeatedField + */ + public function getMonitoredResourceTypes() + { + return $this->monitored_resource_types; + } + + /** + * Read-only. If present, then a [time + * series][google.monitoring.v3.TimeSeries], which is identified partially by + * a metric type and a + * [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor], that + * is associated with this metric type can only be associated with one of the + * monitored resource types listed here. + * + * Generated from protobuf field repeated string monitored_resource_types = 13; + * @param string[] $var + * @return $this + */ + public function setMonitoredResourceTypes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->monitored_resource_types = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricDescriptor/MetricDescriptorMetadata.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricDescriptor/MetricDescriptorMetadata.php new file mode 100644 index 000000000000..a7fab28ba357 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricDescriptor/MetricDescriptorMetadata.php @@ -0,0 +1,224 @@ +google.api.MetricDescriptor.MetricDescriptorMetadata + */ +class MetricDescriptorMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * Deprecated. Must use the + * [MetricDescriptor.launch_stage][google.api.MetricDescriptor.launch_stage] + * instead. + * + * Generated from protobuf field .google.api.LaunchStage launch_stage = 1 [deprecated = true]; + * @deprecated + */ + protected $launch_stage = 0; + /** + * The sampling period of metric data points. For metrics which are written + * periodically, consecutive data points are stored at this time interval, + * excluding data loss due to errors. Metrics with a higher granularity have + * a smaller sampling period. + * + * Generated from protobuf field .google.protobuf.Duration sample_period = 2; + */ + protected $sample_period = null; + /** + * The delay of data points caused by ingestion. Data points older than this + * age are guaranteed to be ingested and available to be read, excluding + * data loss due to errors. + * + * Generated from protobuf field .google.protobuf.Duration ingest_delay = 3; + */ + protected $ingest_delay = null; + /** + * The scope of the timeseries data of the metric. + * + * Generated from protobuf field repeated .google.api.MetricDescriptor.MetricDescriptorMetadata.TimeSeriesResourceHierarchyLevel time_series_resource_hierarchy_level = 4; + */ + private $time_series_resource_hierarchy_level; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $launch_stage + * Deprecated. Must use the + * [MetricDescriptor.launch_stage][google.api.MetricDescriptor.launch_stage] + * instead. + * @type \Google\Protobuf\Duration $sample_period + * The sampling period of metric data points. For metrics which are written + * periodically, consecutive data points are stored at this time interval, + * excluding data loss due to errors. Metrics with a higher granularity have + * a smaller sampling period. + * @type \Google\Protobuf\Duration $ingest_delay + * The delay of data points caused by ingestion. Data points older than this + * age are guaranteed to be ingested and available to be read, excluding + * data loss due to errors. + * @type int[] $time_series_resource_hierarchy_level + * The scope of the timeseries data of the metric. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Metric::initOnce(); + parent::__construct($data); + } + + /** + * Deprecated. Must use the + * [MetricDescriptor.launch_stage][google.api.MetricDescriptor.launch_stage] + * instead. + * + * Generated from protobuf field .google.api.LaunchStage launch_stage = 1 [deprecated = true]; + * @return int + * @deprecated + */ + public function getLaunchStage() + { + if ($this->launch_stage !== 0) { + @trigger_error('launch_stage is deprecated.', E_USER_DEPRECATED); + } + return $this->launch_stage; + } + + /** + * Deprecated. Must use the + * [MetricDescriptor.launch_stage][google.api.MetricDescriptor.launch_stage] + * instead. + * + * Generated from protobuf field .google.api.LaunchStage launch_stage = 1 [deprecated = true]; + * @param int $var + * @return $this + * @deprecated + */ + public function setLaunchStage($var) + { + @trigger_error('launch_stage is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkEnum($var, \Google\Api\LaunchStage::class); + $this->launch_stage = $var; + + return $this; + } + + /** + * The sampling period of metric data points. For metrics which are written + * periodically, consecutive data points are stored at this time interval, + * excluding data loss due to errors. Metrics with a higher granularity have + * a smaller sampling period. + * + * Generated from protobuf field .google.protobuf.Duration sample_period = 2; + * @return \Google\Protobuf\Duration|null + */ + public function getSamplePeriod() + { + return $this->sample_period; + } + + public function hasSamplePeriod() + { + return isset($this->sample_period); + } + + public function clearSamplePeriod() + { + unset($this->sample_period); + } + + /** + * The sampling period of metric data points. For metrics which are written + * periodically, consecutive data points are stored at this time interval, + * excluding data loss due to errors. Metrics with a higher granularity have + * a smaller sampling period. + * + * Generated from protobuf field .google.protobuf.Duration sample_period = 2; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setSamplePeriod($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->sample_period = $var; + + return $this; + } + + /** + * The delay of data points caused by ingestion. Data points older than this + * age are guaranteed to be ingested and available to be read, excluding + * data loss due to errors. + * + * Generated from protobuf field .google.protobuf.Duration ingest_delay = 3; + * @return \Google\Protobuf\Duration|null + */ + public function getIngestDelay() + { + return $this->ingest_delay; + } + + public function hasIngestDelay() + { + return isset($this->ingest_delay); + } + + public function clearIngestDelay() + { + unset($this->ingest_delay); + } + + /** + * The delay of data points caused by ingestion. Data points older than this + * age are guaranteed to be ingested and available to be read, excluding + * data loss due to errors. + * + * Generated from protobuf field .google.protobuf.Duration ingest_delay = 3; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setIngestDelay($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->ingest_delay = $var; + + return $this; + } + + /** + * The scope of the timeseries data of the metric. + * + * Generated from protobuf field repeated .google.api.MetricDescriptor.MetricDescriptorMetadata.TimeSeriesResourceHierarchyLevel time_series_resource_hierarchy_level = 4; + * @return RepeatedField + */ + public function getTimeSeriesResourceHierarchyLevel() + { + return $this->time_series_resource_hierarchy_level; + } + + /** + * The scope of the timeseries data of the metric. + * + * Generated from protobuf field repeated .google.api.MetricDescriptor.MetricDescriptorMetadata.TimeSeriesResourceHierarchyLevel time_series_resource_hierarchy_level = 4; + * @param int[] $var + * @return $this + */ + public function setTimeSeriesResourceHierarchyLevel($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Api\MetricDescriptor\MetricDescriptorMetadata\TimeSeriesResourceHierarchyLevel::class); + $this->time_series_resource_hierarchy_level = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricDescriptor/MetricDescriptorMetadata/TimeSeriesResourceHierarchyLevel.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricDescriptor/MetricDescriptorMetadata/TimeSeriesResourceHierarchyLevel.php new file mode 100644 index 000000000000..7fb5fc26f739 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricDescriptor/MetricDescriptorMetadata/TimeSeriesResourceHierarchyLevel.php @@ -0,0 +1,68 @@ +google.api.MetricDescriptor.MetricDescriptorMetadata.TimeSeriesResourceHierarchyLevel + */ +class TimeSeriesResourceHierarchyLevel +{ + /** + * Do not use this default value. + * + * Generated from protobuf enum TIME_SERIES_RESOURCE_HIERARCHY_LEVEL_UNSPECIFIED = 0; + */ + const TIME_SERIES_RESOURCE_HIERARCHY_LEVEL_UNSPECIFIED = 0; + /** + * Scopes a metric to a project. + * + * Generated from protobuf enum PROJECT = 1; + */ + const PROJECT = 1; + /** + * Scopes a metric to an organization. + * + * Generated from protobuf enum ORGANIZATION = 2; + */ + const ORGANIZATION = 2; + /** + * Scopes a metric to a folder. + * + * Generated from protobuf enum FOLDER = 3; + */ + const FOLDER = 3; + + private static $valueToName = [ + self::TIME_SERIES_RESOURCE_HIERARCHY_LEVEL_UNSPECIFIED => 'TIME_SERIES_RESOURCE_HIERARCHY_LEVEL_UNSPECIFIED', + self::PROJECT => 'PROJECT', + self::ORGANIZATION => 'ORGANIZATION', + self::FOLDER => 'FOLDER', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricDescriptor/MetricKind.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricDescriptor/MetricKind.php new file mode 100644 index 000000000000..0ecbe6b25b09 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricDescriptor/MetricKind.php @@ -0,0 +1,74 @@ +google.api.MetricDescriptor.MetricKind + */ +class MetricKind +{ + /** + * Do not use this default value. + * + * Generated from protobuf enum METRIC_KIND_UNSPECIFIED = 0; + */ + const METRIC_KIND_UNSPECIFIED = 0; + /** + * An instantaneous measurement of a value. + * + * Generated from protobuf enum GAUGE = 1; + */ + const GAUGE = 1; + /** + * The change in a value during a time interval. + * + * Generated from protobuf enum DELTA = 2; + */ + const DELTA = 2; + /** + * A value accumulated over a time interval. Cumulative + * measurements in a time series should have the same start time + * and increasing end times, until an event resets the cumulative + * value to zero and sets a new start time for the following + * points. + * + * Generated from protobuf enum CUMULATIVE = 3; + */ + const CUMULATIVE = 3; + + private static $valueToName = [ + self::METRIC_KIND_UNSPECIFIED => 'METRIC_KIND_UNSPECIFIED', + self::GAUGE => 'GAUGE', + self::DELTA => 'DELTA', + self::CUMULATIVE => 'CUMULATIVE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricDescriptor/ValueType.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricDescriptor/ValueType.php new file mode 100644 index 000000000000..80245f5732dd --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricDescriptor/ValueType.php @@ -0,0 +1,91 @@ +google.api.MetricDescriptor.ValueType + */ +class ValueType +{ + /** + * Do not use this default value. + * + * Generated from protobuf enum VALUE_TYPE_UNSPECIFIED = 0; + */ + const VALUE_TYPE_UNSPECIFIED = 0; + /** + * The value is a boolean. + * This value type can be used only if the metric kind is `GAUGE`. + * + * Generated from protobuf enum BOOL = 1; + */ + const BOOL = 1; + /** + * The value is a signed 64-bit integer. + * + * Generated from protobuf enum INT64 = 2; + */ + const INT64 = 2; + /** + * The value is a double precision floating point number. + * + * Generated from protobuf enum DOUBLE = 3; + */ + const DOUBLE = 3; + /** + * The value is a text string. + * This value type can be used only if the metric kind is `GAUGE`. + * + * Generated from protobuf enum STRING = 4; + */ + const STRING = 4; + /** + * The value is a [`Distribution`][google.api.Distribution]. + * + * Generated from protobuf enum DISTRIBUTION = 5; + */ + const DISTRIBUTION = 5; + /** + * The value is money. + * + * Generated from protobuf enum MONEY = 6; + */ + const MONEY = 6; + + private static $valueToName = [ + self::VALUE_TYPE_UNSPECIFIED => 'VALUE_TYPE_UNSPECIFIED', + self::BOOL => 'BOOL', + self::INT64 => 'INT64', + self::DOUBLE => 'DOUBLE', + self::STRING => 'STRING', + self::DISTRIBUTION => 'DISTRIBUTION', + self::MONEY => 'MONEY', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricRule.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricRule.php new file mode 100644 index 000000000000..c7d4edb4a6ac --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricRule.php @@ -0,0 +1,126 @@ +google.api.MetricRule + */ +class MetricRule extends \Google\Protobuf\Internal\Message +{ + /** + * Selects the methods to which this rule applies. + * Refer to [selector][google.api.DocumentationRule.selector] for syntax + * details. + * + * Generated from protobuf field string selector = 1; + */ + protected $selector = ''; + /** + * Metrics to update when the selected methods are called, and the associated + * cost applied to each metric. + * The key of the map is the metric name, and the values are the amount + * increased for the metric against which the quota limits are defined. + * The value must not be negative. + * + * Generated from protobuf field map metric_costs = 2; + */ + private $metric_costs; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $selector + * Selects the methods to which this rule applies. + * Refer to [selector][google.api.DocumentationRule.selector] for syntax + * details. + * @type array|\Google\Protobuf\Internal\MapField $metric_costs + * Metrics to update when the selected methods are called, and the associated + * cost applied to each metric. + * The key of the map is the metric name, and the values are the amount + * increased for the metric against which the quota limits are defined. + * The value must not be negative. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Quota::initOnce(); + parent::__construct($data); + } + + /** + * Selects the methods to which this rule applies. + * Refer to [selector][google.api.DocumentationRule.selector] for syntax + * details. + * + * Generated from protobuf field string selector = 1; + * @return string + */ + public function getSelector() + { + return $this->selector; + } + + /** + * Selects the methods to which this rule applies. + * Refer to [selector][google.api.DocumentationRule.selector] for syntax + * details. + * + * Generated from protobuf field string selector = 1; + * @param string $var + * @return $this + */ + public function setSelector($var) + { + GPBUtil::checkString($var, True); + $this->selector = $var; + + return $this; + } + + /** + * Metrics to update when the selected methods are called, and the associated + * cost applied to each metric. + * The key of the map is the metric name, and the values are the amount + * increased for the metric against which the quota limits are defined. + * The value must not be negative. + * + * Generated from protobuf field map metric_costs = 2; + * @return \Google\Protobuf\Internal\MapField + */ + public function getMetricCosts() + { + return $this->metric_costs; + } + + /** + * Metrics to update when the selected methods are called, and the associated + * cost applied to each metric. + * The key of the map is the metric name, and the values are the amount + * increased for the metric against which the quota limits are defined. + * The value must not be negative. + * + * Generated from protobuf field map metric_costs = 2; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setMetricCosts($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::INT64); + $this->metric_costs = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MonitoredResource.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MonitoredResource.php new file mode 100644 index 000000000000..3fbac39600b6 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MonitoredResource.php @@ -0,0 +1,147 @@ +google.api.MonitoredResource + */ +class MonitoredResource extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The monitored resource type. This field must match + * the `type` field of a + * [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor] + * object. For example, the type of a Compute Engine VM instance is + * `gce_instance`. Some descriptors include the service name in the type; for + * example, the type of a Datastream stream is + * `datastream.googleapis.com/Stream`. + * + * Generated from protobuf field string type = 1; + */ + protected $type = ''; + /** + * Required. Values for all of the labels listed in the associated monitored + * resource descriptor. For example, Compute Engine VM instances use the + * labels `"project_id"`, `"instance_id"`, and `"zone"`. + * + * Generated from protobuf field map labels = 2; + */ + private $labels; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $type + * Required. The monitored resource type. This field must match + * the `type` field of a + * [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor] + * object. For example, the type of a Compute Engine VM instance is + * `gce_instance`. Some descriptors include the service name in the type; for + * example, the type of a Datastream stream is + * `datastream.googleapis.com/Stream`. + * @type array|\Google\Protobuf\Internal\MapField $labels + * Required. Values for all of the labels listed in the associated monitored + * resource descriptor. For example, Compute Engine VM instances use the + * labels `"project_id"`, `"instance_id"`, and `"zone"`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\MonitoredResource::initOnce(); + parent::__construct($data); + } + + /** + * Required. The monitored resource type. This field must match + * the `type` field of a + * [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor] + * object. For example, the type of a Compute Engine VM instance is + * `gce_instance`. Some descriptors include the service name in the type; for + * example, the type of a Datastream stream is + * `datastream.googleapis.com/Stream`. + * + * Generated from protobuf field string type = 1; + * @return string + */ + public function getType() + { + return $this->type; + } + + /** + * Required. The monitored resource type. This field must match + * the `type` field of a + * [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor] + * object. For example, the type of a Compute Engine VM instance is + * `gce_instance`. Some descriptors include the service name in the type; for + * example, the type of a Datastream stream is + * `datastream.googleapis.com/Stream`. + * + * Generated from protobuf field string type = 1; + * @param string $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkString($var, True); + $this->type = $var; + + return $this; + } + + /** + * Required. Values for all of the labels listed in the associated monitored + * resource descriptor. For example, Compute Engine VM instances use the + * labels `"project_id"`, `"instance_id"`, and `"zone"`. + * + * Generated from protobuf field map labels = 2; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * Required. Values for all of the labels listed in the associated monitored + * resource descriptor. For example, Compute Engine VM instances use the + * labels `"project_id"`, `"instance_id"`, and `"zone"`. + * + * Generated from protobuf field map labels = 2; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->labels = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MonitoredResourceDescriptor.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MonitoredResourceDescriptor.php new file mode 100644 index 000000000000..744c76dc319a --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MonitoredResourceDescriptor.php @@ -0,0 +1,309 @@ +google.api.MonitoredResourceDescriptor + */ +class MonitoredResourceDescriptor extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The resource name of the monitored resource descriptor: + * `"projects/{project_id}/monitoredResourceDescriptors/{type}"` where + * {type} is the value of the `type` field in this object and + * {project_id} is a project ID that provides API-specific context for + * accessing the type. APIs that do not use project information can use the + * resource name format `"monitoredResourceDescriptors/{type}"`. + * + * Generated from protobuf field string name = 5; + */ + protected $name = ''; + /** + * Required. The monitored resource type. For example, the type + * `"cloudsql_database"` represents databases in Google Cloud SQL. + * For a list of types, see [Monitored resource + * types](https://cloud.google.com/monitoring/api/resources) + * and [Logging resource + * types](https://cloud.google.com/logging/docs/api/v2/resource-list). + * + * Generated from protobuf field string type = 1; + */ + protected $type = ''; + /** + * Optional. A concise name for the monitored resource type that might be + * displayed in user interfaces. It should be a Title Cased Noun Phrase, + * without any article or other determiners. For example, + * `"Google Cloud SQL Database"`. + * + * Generated from protobuf field string display_name = 2; + */ + protected $display_name = ''; + /** + * Optional. A detailed description of the monitored resource type that might + * be used in documentation. + * + * Generated from protobuf field string description = 3; + */ + protected $description = ''; + /** + * Required. A set of labels used to describe instances of this monitored + * resource type. For example, an individual Google Cloud SQL database is + * identified by values for the labels `"database_id"` and `"zone"`. + * + * Generated from protobuf field repeated .google.api.LabelDescriptor labels = 4; + */ + private $labels; + /** + * Optional. The launch stage of the monitored resource definition. + * + * Generated from protobuf field .google.api.LaunchStage launch_stage = 7; + */ + protected $launch_stage = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Optional. The resource name of the monitored resource descriptor: + * `"projects/{project_id}/monitoredResourceDescriptors/{type}"` where + * {type} is the value of the `type` field in this object and + * {project_id} is a project ID that provides API-specific context for + * accessing the type. APIs that do not use project information can use the + * resource name format `"monitoredResourceDescriptors/{type}"`. + * @type string $type + * Required. The monitored resource type. For example, the type + * `"cloudsql_database"` represents databases in Google Cloud SQL. + * For a list of types, see [Monitored resource + * types](https://cloud.google.com/monitoring/api/resources) + * and [Logging resource + * types](https://cloud.google.com/logging/docs/api/v2/resource-list). + * @type string $display_name + * Optional. A concise name for the monitored resource type that might be + * displayed in user interfaces. It should be a Title Cased Noun Phrase, + * without any article or other determiners. For example, + * `"Google Cloud SQL Database"`. + * @type string $description + * Optional. A detailed description of the monitored resource type that might + * be used in documentation. + * @type \Google\Api\LabelDescriptor[] $labels + * Required. A set of labels used to describe instances of this monitored + * resource type. For example, an individual Google Cloud SQL database is + * identified by values for the labels `"database_id"` and `"zone"`. + * @type int $launch_stage + * Optional. The launch stage of the monitored resource definition. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\MonitoredResource::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The resource name of the monitored resource descriptor: + * `"projects/{project_id}/monitoredResourceDescriptors/{type}"` where + * {type} is the value of the `type` field in this object and + * {project_id} is a project ID that provides API-specific context for + * accessing the type. APIs that do not use project information can use the + * resource name format `"monitoredResourceDescriptors/{type}"`. + * + * Generated from protobuf field string name = 5; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Optional. The resource name of the monitored resource descriptor: + * `"projects/{project_id}/monitoredResourceDescriptors/{type}"` where + * {type} is the value of the `type` field in this object and + * {project_id} is a project ID that provides API-specific context for + * accessing the type. APIs that do not use project information can use the + * resource name format `"monitoredResourceDescriptors/{type}"`. + * + * Generated from protobuf field string name = 5; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. The monitored resource type. For example, the type + * `"cloudsql_database"` represents databases in Google Cloud SQL. + * For a list of types, see [Monitored resource + * types](https://cloud.google.com/monitoring/api/resources) + * and [Logging resource + * types](https://cloud.google.com/logging/docs/api/v2/resource-list). + * + * Generated from protobuf field string type = 1; + * @return string + */ + public function getType() + { + return $this->type; + } + + /** + * Required. The monitored resource type. For example, the type + * `"cloudsql_database"` represents databases in Google Cloud SQL. + * For a list of types, see [Monitored resource + * types](https://cloud.google.com/monitoring/api/resources) + * and [Logging resource + * types](https://cloud.google.com/logging/docs/api/v2/resource-list). + * + * Generated from protobuf field string type = 1; + * @param string $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkString($var, True); + $this->type = $var; + + return $this; + } + + /** + * Optional. A concise name for the monitored resource type that might be + * displayed in user interfaces. It should be a Title Cased Noun Phrase, + * without any article or other determiners. For example, + * `"Google Cloud SQL Database"`. + * + * Generated from protobuf field string display_name = 2; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Optional. A concise name for the monitored resource type that might be + * displayed in user interfaces. It should be a Title Cased Noun Phrase, + * without any article or other determiners. For example, + * `"Google Cloud SQL Database"`. + * + * Generated from protobuf field string display_name = 2; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Optional. A detailed description of the monitored resource type that might + * be used in documentation. + * + * Generated from protobuf field string description = 3; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Optional. A detailed description of the monitored resource type that might + * be used in documentation. + * + * Generated from protobuf field string description = 3; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * Required. A set of labels used to describe instances of this monitored + * resource type. For example, an individual Google Cloud SQL database is + * identified by values for the labels `"database_id"` and `"zone"`. + * + * Generated from protobuf field repeated .google.api.LabelDescriptor labels = 4; + * @return RepeatedField<\Google\Api\LabelDescriptor> + */ + public function getLabels() + { + return $this->labels; + } + + /** + * Required. A set of labels used to describe instances of this monitored + * resource type. For example, an individual Google Cloud SQL database is + * identified by values for the labels `"database_id"` and `"zone"`. + * + * Generated from protobuf field repeated .google.api.LabelDescriptor labels = 4; + * @param \Google\Api\LabelDescriptor[] $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\LabelDescriptor::class); + $this->labels = $arr; + + return $this; + } + + /** + * Optional. The launch stage of the monitored resource definition. + * + * Generated from protobuf field .google.api.LaunchStage launch_stage = 7; + * @return int + */ + public function getLaunchStage() + { + return $this->launch_stage; + } + + /** + * Optional. The launch stage of the monitored resource definition. + * + * Generated from protobuf field .google.api.LaunchStage launch_stage = 7; + * @param int $var + * @return $this + */ + public function setLaunchStage($var) + { + GPBUtil::checkEnum($var, \Google\Api\LaunchStage::class); + $this->launch_stage = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MonitoredResourceMetadata.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MonitoredResourceMetadata.php new file mode 100644 index 000000000000..842702ed5686 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MonitoredResourceMetadata.php @@ -0,0 +1,148 @@ +google.api.MonitoredResourceMetadata + */ +class MonitoredResourceMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Values for predefined system metadata labels. + * System labels are a kind of metadata extracted by Google, including + * "machine_image", "vpc", "subnet_id", + * "security_group", "name", etc. + * System label values can be only strings, Boolean values, or a list of + * strings. For example: + * { "name": "my-test-instance", + * "security_group": ["a", "b", "c"], + * "spot_instance": false } + * + * Generated from protobuf field .google.protobuf.Struct system_labels = 1; + */ + protected $system_labels = null; + /** + * Output only. A map of user-defined metadata labels. + * + * Generated from protobuf field map user_labels = 2; + */ + private $user_labels; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\Struct $system_labels + * Output only. Values for predefined system metadata labels. + * System labels are a kind of metadata extracted by Google, including + * "machine_image", "vpc", "subnet_id", + * "security_group", "name", etc. + * System label values can be only strings, Boolean values, or a list of + * strings. For example: + * { "name": "my-test-instance", + * "security_group": ["a", "b", "c"], + * "spot_instance": false } + * @type array|\Google\Protobuf\Internal\MapField $user_labels + * Output only. A map of user-defined metadata labels. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\MonitoredResource::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Values for predefined system metadata labels. + * System labels are a kind of metadata extracted by Google, including + * "machine_image", "vpc", "subnet_id", + * "security_group", "name", etc. + * System label values can be only strings, Boolean values, or a list of + * strings. For example: + * { "name": "my-test-instance", + * "security_group": ["a", "b", "c"], + * "spot_instance": false } + * + * Generated from protobuf field .google.protobuf.Struct system_labels = 1; + * @return \Google\Protobuf\Struct|null + */ + public function getSystemLabels() + { + return $this->system_labels; + } + + public function hasSystemLabels() + { + return isset($this->system_labels); + } + + public function clearSystemLabels() + { + unset($this->system_labels); + } + + /** + * Output only. Values for predefined system metadata labels. + * System labels are a kind of metadata extracted by Google, including + * "machine_image", "vpc", "subnet_id", + * "security_group", "name", etc. + * System label values can be only strings, Boolean values, or a list of + * strings. For example: + * { "name": "my-test-instance", + * "security_group": ["a", "b", "c"], + * "spot_instance": false } + * + * Generated from protobuf field .google.protobuf.Struct system_labels = 1; + * @param \Google\Protobuf\Struct $var + * @return $this + */ + public function setSystemLabels($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Struct::class); + $this->system_labels = $var; + + return $this; + } + + /** + * Output only. A map of user-defined metadata labels. + * + * Generated from protobuf field map user_labels = 2; + * @return \Google\Protobuf\Internal\MapField + */ + public function getUserLabels() + { + return $this->user_labels; + } + + /** + * Output only. A map of user-defined metadata labels. + * + * Generated from protobuf field map user_labels = 2; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setUserLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->user_labels = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Monitoring.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Monitoring.php new file mode 100644 index 000000000000..422ae2886eaa --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Monitoring.php @@ -0,0 +1,190 @@ +google.api.Monitoring + */ +class Monitoring extends \Google\Protobuf\Internal\Message +{ + /** + * Monitoring configurations for sending metrics to the producer project. + * There can be multiple producer destinations. A monitored resource type may + * appear in multiple monitoring destinations if different aggregations are + * needed for different sets of metrics associated with that monitored + * resource type. A monitored resource and metric pair may only be used once + * in the Monitoring configuration. + * + * Generated from protobuf field repeated .google.api.Monitoring.MonitoringDestination producer_destinations = 1; + */ + private $producer_destinations; + /** + * Monitoring configurations for sending metrics to the consumer project. + * There can be multiple consumer destinations. A monitored resource type may + * appear in multiple monitoring destinations if different aggregations are + * needed for different sets of metrics associated with that monitored + * resource type. A monitored resource and metric pair may only be used once + * in the Monitoring configuration. + * + * Generated from protobuf field repeated .google.api.Monitoring.MonitoringDestination consumer_destinations = 2; + */ + private $consumer_destinations; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Api\Monitoring\MonitoringDestination[] $producer_destinations + * Monitoring configurations for sending metrics to the producer project. + * There can be multiple producer destinations. A monitored resource type may + * appear in multiple monitoring destinations if different aggregations are + * needed for different sets of metrics associated with that monitored + * resource type. A monitored resource and metric pair may only be used once + * in the Monitoring configuration. + * @type \Google\Api\Monitoring\MonitoringDestination[] $consumer_destinations + * Monitoring configurations for sending metrics to the consumer project. + * There can be multiple consumer destinations. A monitored resource type may + * appear in multiple monitoring destinations if different aggregations are + * needed for different sets of metrics associated with that monitored + * resource type. A monitored resource and metric pair may only be used once + * in the Monitoring configuration. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Monitoring::initOnce(); + parent::__construct($data); + } + + /** + * Monitoring configurations for sending metrics to the producer project. + * There can be multiple producer destinations. A monitored resource type may + * appear in multiple monitoring destinations if different aggregations are + * needed for different sets of metrics associated with that monitored + * resource type. A monitored resource and metric pair may only be used once + * in the Monitoring configuration. + * + * Generated from protobuf field repeated .google.api.Monitoring.MonitoringDestination producer_destinations = 1; + * @return RepeatedField<\Google\Api\Monitoring\MonitoringDestination> + */ + public function getProducerDestinations() + { + return $this->producer_destinations; + } + + /** + * Monitoring configurations for sending metrics to the producer project. + * There can be multiple producer destinations. A monitored resource type may + * appear in multiple monitoring destinations if different aggregations are + * needed for different sets of metrics associated with that monitored + * resource type. A monitored resource and metric pair may only be used once + * in the Monitoring configuration. + * + * Generated from protobuf field repeated .google.api.Monitoring.MonitoringDestination producer_destinations = 1; + * @param \Google\Api\Monitoring\MonitoringDestination[] $var + * @return $this + */ + public function setProducerDestinations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\Monitoring\MonitoringDestination::class); + $this->producer_destinations = $arr; + + return $this; + } + + /** + * Monitoring configurations for sending metrics to the consumer project. + * There can be multiple consumer destinations. A monitored resource type may + * appear in multiple monitoring destinations if different aggregations are + * needed for different sets of metrics associated with that monitored + * resource type. A monitored resource and metric pair may only be used once + * in the Monitoring configuration. + * + * Generated from protobuf field repeated .google.api.Monitoring.MonitoringDestination consumer_destinations = 2; + * @return RepeatedField<\Google\Api\Monitoring\MonitoringDestination> + */ + public function getConsumerDestinations() + { + return $this->consumer_destinations; + } + + /** + * Monitoring configurations for sending metrics to the consumer project. + * There can be multiple consumer destinations. A monitored resource type may + * appear in multiple monitoring destinations if different aggregations are + * needed for different sets of metrics associated with that monitored + * resource type. A monitored resource and metric pair may only be used once + * in the Monitoring configuration. + * + * Generated from protobuf field repeated .google.api.Monitoring.MonitoringDestination consumer_destinations = 2; + * @param \Google\Api\Monitoring\MonitoringDestination[] $var + * @return $this + */ + public function setConsumerDestinations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\Monitoring\MonitoringDestination::class); + $this->consumer_destinations = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Monitoring/MonitoringDestination.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Monitoring/MonitoringDestination.php new file mode 100644 index 000000000000..94576a1acbf7 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Monitoring/MonitoringDestination.php @@ -0,0 +1,118 @@ +google.api.Monitoring.MonitoringDestination + */ +class MonitoringDestination extends \Google\Protobuf\Internal\Message +{ + /** + * The monitored resource type. The type must be defined in + * [Service.monitored_resources][google.api.Service.monitored_resources] + * section. + * + * Generated from protobuf field string monitored_resource = 1; + */ + protected $monitored_resource = ''; + /** + * Types of the metrics to report to this monitoring destination. + * Each type must be defined in + * [Service.metrics][google.api.Service.metrics] section. + * + * Generated from protobuf field repeated string metrics = 2; + */ + private $metrics; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $monitored_resource + * The monitored resource type. The type must be defined in + * [Service.monitored_resources][google.api.Service.monitored_resources] + * section. + * @type string[] $metrics + * Types of the metrics to report to this monitoring destination. + * Each type must be defined in + * [Service.metrics][google.api.Service.metrics] section. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Monitoring::initOnce(); + parent::__construct($data); + } + + /** + * The monitored resource type. The type must be defined in + * [Service.monitored_resources][google.api.Service.monitored_resources] + * section. + * + * Generated from protobuf field string monitored_resource = 1; + * @return string + */ + public function getMonitoredResource() + { + return $this->monitored_resource; + } + + /** + * The monitored resource type. The type must be defined in + * [Service.monitored_resources][google.api.Service.monitored_resources] + * section. + * + * Generated from protobuf field string monitored_resource = 1; + * @param string $var + * @return $this + */ + public function setMonitoredResource($var) + { + GPBUtil::checkString($var, True); + $this->monitored_resource = $var; + + return $this; + } + + /** + * Types of the metrics to report to this monitoring destination. + * Each type must be defined in + * [Service.metrics][google.api.Service.metrics] section. + * + * Generated from protobuf field repeated string metrics = 2; + * @return RepeatedField + */ + public function getMetrics() + { + return $this->metrics; + } + + /** + * Types of the metrics to report to this monitoring destination. + * Each type must be defined in + * [Service.metrics][google.api.Service.metrics] section. + * + * Generated from protobuf field repeated string metrics = 2; + * @param string[] $var + * @return $this + */ + public function setMetrics($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->metrics = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/NodeSettings.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/NodeSettings.php new file mode 100644 index 000000000000..3041432c49ee --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/NodeSettings.php @@ -0,0 +1,77 @@ +google.api.NodeSettings + */ +class NodeSettings extends \Google\Protobuf\Internal\Message +{ + /** + * Some settings. + * + * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; + */ + protected $common = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Api\CommonLanguageSettings $common + * Some settings. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Client::initOnce(); + parent::__construct($data); + } + + /** + * Some settings. + * + * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; + * @return \Google\Api\CommonLanguageSettings|null + */ + public function getCommon() + { + return $this->common; + } + + public function hasCommon() + { + return isset($this->common); + } + + public function clearCommon() + { + unset($this->common); + } + + /** + * Some settings. + * + * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; + * @param \Google\Api\CommonLanguageSettings $var + * @return $this + */ + public function setCommon($var) + { + GPBUtil::checkMessage($var, \Google\Api\CommonLanguageSettings::class); + $this->common = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/OAuthRequirements.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/OAuthRequirements.php new file mode 100644 index 000000000000..9ad55336d154 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/OAuthRequirements.php @@ -0,0 +1,96 @@ +google.api.OAuthRequirements + */ +class OAuthRequirements extends \Google\Protobuf\Internal\Message +{ + /** + * The list of publicly documented OAuth scopes that are allowed access. An + * OAuth token containing any of these scopes will be accepted. + * Example: + * canonical_scopes: https://www.googleapis.com/auth/calendar, + * https://www.googleapis.com/auth/calendar.read + * + * Generated from protobuf field string canonical_scopes = 1; + */ + protected $canonical_scopes = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $canonical_scopes + * The list of publicly documented OAuth scopes that are allowed access. An + * OAuth token containing any of these scopes will be accepted. + * Example: + * canonical_scopes: https://www.googleapis.com/auth/calendar, + * https://www.googleapis.com/auth/calendar.read + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Auth::initOnce(); + parent::__construct($data); + } + + /** + * The list of publicly documented OAuth scopes that are allowed access. An + * OAuth token containing any of these scopes will be accepted. + * Example: + * canonical_scopes: https://www.googleapis.com/auth/calendar, + * https://www.googleapis.com/auth/calendar.read + * + * Generated from protobuf field string canonical_scopes = 1; + * @return string + */ + public function getCanonicalScopes() + { + return $this->canonical_scopes; + } + + /** + * The list of publicly documented OAuth scopes that are allowed access. An + * OAuth token containing any of these scopes will be accepted. + * Example: + * canonical_scopes: https://www.googleapis.com/auth/calendar, + * https://www.googleapis.com/auth/calendar.read + * + * Generated from protobuf field string canonical_scopes = 1; + * @param string $var + * @return $this + */ + public function setCanonicalScopes($var) + { + GPBUtil::checkString($var, True); + $this->canonical_scopes = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Page.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Page.php new file mode 100644 index 000000000000..f172d0cbc038 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Page.php @@ -0,0 +1,200 @@ +google.api.Page + */ +class Page extends \Google\Protobuf\Internal\Message +{ + /** + * The name of the page. It will be used as an identity of the page to + * generate URI of the page, text of the link to this page in navigation, + * etc. The full page name (start from the root page name to this page + * concatenated with `.`) can be used as reference to the page in your + * documentation. For example: + *
pages:
+     * - name: Tutorial
+     *   content: (== include tutorial.md ==)
+     *   subpages:
+     *   - name: Java
+     *     content: (== include tutorial_java.md ==)
+     * 
+ * You can reference `Java` page using Markdown reference link syntax: + * `[Java][Tutorial.Java]`. + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * The Markdown content of the page. You can use ```(== include {path} + * ==)``` to include content from a Markdown file. The content can be used + * to produce the documentation page such as HTML format page. + * + * Generated from protobuf field string content = 2; + */ + protected $content = ''; + /** + * Subpages of this page. The order of subpages specified here will be + * honored in the generated docset. + * + * Generated from protobuf field repeated .google.api.Page subpages = 3; + */ + private $subpages; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * The name of the page. It will be used as an identity of the page to + * generate URI of the page, text of the link to this page in navigation, + * etc. The full page name (start from the root page name to this page + * concatenated with `.`) can be used as reference to the page in your + * documentation. For example: + *
pages:
+     *           - name: Tutorial
+     *             content: (== include tutorial.md ==)
+     *             subpages:
+     *             - name: Java
+     *               content: (== include tutorial_java.md ==)
+     *           
+ * You can reference `Java` page using Markdown reference link syntax: + * `[Java][Tutorial.Java]`. + * @type string $content + * The Markdown content of the page. You can use ```(== include {path} + * ==)``` to include content from a Markdown file. The content can be used + * to produce the documentation page such as HTML format page. + * @type \Google\Api\Page[] $subpages + * Subpages of this page. The order of subpages specified here will be + * honored in the generated docset. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Documentation::initOnce(); + parent::__construct($data); + } + + /** + * The name of the page. It will be used as an identity of the page to + * generate URI of the page, text of the link to this page in navigation, + * etc. The full page name (start from the root page name to this page + * concatenated with `.`) can be used as reference to the page in your + * documentation. For example: + *
pages:
+     * - name: Tutorial
+     *   content: (== include tutorial.md ==)
+     *   subpages:
+     *   - name: Java
+     *     content: (== include tutorial_java.md ==)
+     * 
+ * You can reference `Java` page using Markdown reference link syntax: + * `[Java][Tutorial.Java]`. + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name of the page. It will be used as an identity of the page to + * generate URI of the page, text of the link to this page in navigation, + * etc. The full page name (start from the root page name to this page + * concatenated with `.`) can be used as reference to the page in your + * documentation. For example: + *
pages:
+     * - name: Tutorial
+     *   content: (== include tutorial.md ==)
+     *   subpages:
+     *   - name: Java
+     *     content: (== include tutorial_java.md ==)
+     * 
+ * You can reference `Java` page using Markdown reference link syntax: + * `[Java][Tutorial.Java]`. + * + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * The Markdown content of the page. You can use ```(== include {path} + * ==)``` to include content from a Markdown file. The content can be used + * to produce the documentation page such as HTML format page. + * + * Generated from protobuf field string content = 2; + * @return string + */ + public function getContent() + { + return $this->content; + } + + /** + * The Markdown content of the page. You can use ```(== include {path} + * ==)``` to include content from a Markdown file. The content can be used + * to produce the documentation page such as HTML format page. + * + * Generated from protobuf field string content = 2; + * @param string $var + * @return $this + */ + public function setContent($var) + { + GPBUtil::checkString($var, True); + $this->content = $var; + + return $this; + } + + /** + * Subpages of this page. The order of subpages specified here will be + * honored in the generated docset. + * + * Generated from protobuf field repeated .google.api.Page subpages = 3; + * @return RepeatedField<\Google\Api\Page> + */ + public function getSubpages() + { + return $this->subpages; + } + + /** + * Subpages of this page. The order of subpages specified here will be + * honored in the generated docset. + * + * Generated from protobuf field repeated .google.api.Page subpages = 3; + * @param \Google\Api\Page[] $var + * @return $this + */ + public function setSubpages($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\Page::class); + $this->subpages = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/PhpSettings.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/PhpSettings.php new file mode 100644 index 000000000000..38cbabd68afb --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/PhpSettings.php @@ -0,0 +1,147 @@ +google.api.PhpSettings + */ +class PhpSettings extends \Google\Protobuf\Internal\Message +{ + /** + * Some settings. + * + * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; + */ + protected $common = null; + /** + * The package name to use in Php. Clobbers the php_namespace option + * set in the protobuf. This should be used **only** by APIs + * who have already set the language_settings.php.package_name" field + * in gapic.yaml. API teams should use the protobuf php_namespace option + * where possible. + * Example of a YAML configuration:: + * publishing: + * library_settings: + * php_settings: + * library_package: Google\Cloud\PubSub\V1 + * + * Generated from protobuf field string library_package = 2; + */ + protected $library_package = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Api\CommonLanguageSettings $common + * Some settings. + * @type string $library_package + * The package name to use in Php. Clobbers the php_namespace option + * set in the protobuf. This should be used **only** by APIs + * who have already set the language_settings.php.package_name" field + * in gapic.yaml. API teams should use the protobuf php_namespace option + * where possible. + * Example of a YAML configuration:: + * publishing: + * library_settings: + * php_settings: + * library_package: Google\Cloud\PubSub\V1 + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Client::initOnce(); + parent::__construct($data); + } + + /** + * Some settings. + * + * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; + * @return \Google\Api\CommonLanguageSettings|null + */ + public function getCommon() + { + return $this->common; + } + + public function hasCommon() + { + return isset($this->common); + } + + public function clearCommon() + { + unset($this->common); + } + + /** + * Some settings. + * + * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; + * @param \Google\Api\CommonLanguageSettings $var + * @return $this + */ + public function setCommon($var) + { + GPBUtil::checkMessage($var, \Google\Api\CommonLanguageSettings::class); + $this->common = $var; + + return $this; + } + + /** + * The package name to use in Php. Clobbers the php_namespace option + * set in the protobuf. This should be used **only** by APIs + * who have already set the language_settings.php.package_name" field + * in gapic.yaml. API teams should use the protobuf php_namespace option + * where possible. + * Example of a YAML configuration:: + * publishing: + * library_settings: + * php_settings: + * library_package: Google\Cloud\PubSub\V1 + * + * Generated from protobuf field string library_package = 2; + * @return string + */ + public function getLibraryPackage() + { + return $this->library_package; + } + + /** + * The package name to use in Php. Clobbers the php_namespace option + * set in the protobuf. This should be used **only** by APIs + * who have already set the language_settings.php.package_name" field + * in gapic.yaml. API teams should use the protobuf php_namespace option + * where possible. + * Example of a YAML configuration:: + * publishing: + * library_settings: + * php_settings: + * library_package: Google\Cloud\PubSub\V1 + * + * Generated from protobuf field string library_package = 2; + * @param string $var + * @return $this + */ + public function setLibraryPackage($var) + { + GPBUtil::checkString($var, True); + $this->library_package = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ProjectProperties.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ProjectProperties.php new file mode 100644 index 000000000000..7ffeb2f5fc6b --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ProjectProperties.php @@ -0,0 +1,80 @@ +google.api.ProjectProperties + */ +class ProjectProperties extends \Google\Protobuf\Internal\Message +{ + /** + * List of per consumer project-specific properties. + * + * Generated from protobuf field repeated .google.api.Property properties = 1; + */ + private $properties; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Api\Property[] $properties + * List of per consumer project-specific properties. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Consumer::initOnce(); + parent::__construct($data); + } + + /** + * List of per consumer project-specific properties. + * + * Generated from protobuf field repeated .google.api.Property properties = 1; + * @return RepeatedField<\Google\Api\Property> + */ + public function getProperties() + { + return $this->properties; + } + + /** + * List of per consumer project-specific properties. + * + * Generated from protobuf field repeated .google.api.Property properties = 1; + * @param \Google\Api\Property[] $var + * @return $this + */ + public function setProperties($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\Property::class); + $this->properties = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Property.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Property.php new file mode 100644 index 000000000000..18830cc2055e --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Property.php @@ -0,0 +1,142 @@ +google.api.Property + */ +class Property extends \Google\Protobuf\Internal\Message +{ + /** + * The name of the property (a.k.a key). + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * The type of this property. + * + * Generated from protobuf field .google.api.Property.PropertyType type = 2; + */ + protected $type = 0; + /** + * The description of the property + * + * Generated from protobuf field string description = 3; + */ + protected $description = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * The name of the property (a.k.a key). + * @type int $type + * The type of this property. + * @type string $description + * The description of the property + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Consumer::initOnce(); + parent::__construct($data); + } + + /** + * The name of the property (a.k.a key). + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name of the property (a.k.a key). + * + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * The type of this property. + * + * Generated from protobuf field .google.api.Property.PropertyType type = 2; + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * The type of this property. + * + * Generated from protobuf field .google.api.Property.PropertyType type = 2; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Api\Property\PropertyType::class); + $this->type = $var; + + return $this; + } + + /** + * The description of the property + * + * Generated from protobuf field string description = 3; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * The description of the property + * + * Generated from protobuf field string description = 3; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Property/PropertyType.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Property/PropertyType.php new file mode 100644 index 000000000000..e874e029a65c --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Property/PropertyType.php @@ -0,0 +1,75 @@ +google.api.Property.PropertyType + */ +class PropertyType +{ + /** + * The type is unspecified, and will result in an error. + * + * Generated from protobuf enum UNSPECIFIED = 0; + */ + const UNSPECIFIED = 0; + /** + * The type is `int64`. + * + * Generated from protobuf enum INT64 = 1; + */ + const INT64 = 1; + /** + * The type is `bool`. + * + * Generated from protobuf enum BOOL = 2; + */ + const BOOL = 2; + /** + * The type is `string`. + * + * Generated from protobuf enum STRING = 3; + */ + const STRING = 3; + /** + * The type is 'double'. + * + * Generated from protobuf enum DOUBLE = 4; + */ + const DOUBLE = 4; + + private static $valueToName = [ + self::UNSPECIFIED => 'UNSPECIFIED', + self::INT64 => 'INT64', + self::BOOL => 'BOOL', + self::STRING => 'STRING', + self::DOUBLE => 'DOUBLE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Publishing.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Publishing.php new file mode 100644 index 000000000000..74c394bb061b --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Publishing.php @@ -0,0 +1,453 @@ +google.api.Publishing + */ +class Publishing extends \Google\Protobuf\Internal\Message +{ + /** + * A list of API method settings, e.g. the behavior for methods that use the + * long-running operation pattern. + * + * Generated from protobuf field repeated .google.api.MethodSettings method_settings = 2; + */ + private $method_settings; + /** + * Link to a *public* URI where users can report issues. Example: + * https://issuetracker.google.com/issues/new?component=190865&template=1161103 + * + * Generated from protobuf field string new_issue_uri = 101; + */ + protected $new_issue_uri = ''; + /** + * Link to product home page. Example: + * https://cloud.google.com/asset-inventory/docs/overview + * + * Generated from protobuf field string documentation_uri = 102; + */ + protected $documentation_uri = ''; + /** + * Used as a tracking tag when collecting data about the APIs developer + * relations artifacts like docs, packages delivered to package managers, + * etc. Example: "speech". + * + * Generated from protobuf field string api_short_name = 103; + */ + protected $api_short_name = ''; + /** + * GitHub label to apply to issues and pull requests opened for this API. + * + * Generated from protobuf field string github_label = 104; + */ + protected $github_label = ''; + /** + * GitHub teams to be added to CODEOWNERS in the directory in GitHub + * containing source code for the client libraries for this API. + * + * Generated from protobuf field repeated string codeowner_github_teams = 105; + */ + private $codeowner_github_teams; + /** + * A prefix used in sample code when demarking regions to be included in + * documentation. + * + * Generated from protobuf field string doc_tag_prefix = 106; + */ + protected $doc_tag_prefix = ''; + /** + * For whom the client library is being published. + * + * Generated from protobuf field .google.api.ClientLibraryOrganization organization = 107; + */ + protected $organization = 0; + /** + * Client library settings. If the same version string appears multiple + * times in this list, then the last one wins. Settings from earlier + * settings with the same version string are discarded. + * + * Generated from protobuf field repeated .google.api.ClientLibrarySettings library_settings = 109; + */ + private $library_settings; + /** + * Optional link to proto reference documentation. Example: + * https://cloud.google.com/pubsub/lite/docs/reference/rpc + * + * Generated from protobuf field string proto_reference_documentation_uri = 110; + */ + protected $proto_reference_documentation_uri = ''; + /** + * Optional link to REST reference documentation. Example: + * https://cloud.google.com/pubsub/lite/docs/reference/rest + * + * Generated from protobuf field string rest_reference_documentation_uri = 111; + */ + protected $rest_reference_documentation_uri = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Api\MethodSettings[] $method_settings + * A list of API method settings, e.g. the behavior for methods that use the + * long-running operation pattern. + * @type string $new_issue_uri + * Link to a *public* URI where users can report issues. Example: + * https://issuetracker.google.com/issues/new?component=190865&template=1161103 + * @type string $documentation_uri + * Link to product home page. Example: + * https://cloud.google.com/asset-inventory/docs/overview + * @type string $api_short_name + * Used as a tracking tag when collecting data about the APIs developer + * relations artifacts like docs, packages delivered to package managers, + * etc. Example: "speech". + * @type string $github_label + * GitHub label to apply to issues and pull requests opened for this API. + * @type string[] $codeowner_github_teams + * GitHub teams to be added to CODEOWNERS in the directory in GitHub + * containing source code for the client libraries for this API. + * @type string $doc_tag_prefix + * A prefix used in sample code when demarking regions to be included in + * documentation. + * @type int $organization + * For whom the client library is being published. + * @type \Google\Api\ClientLibrarySettings[] $library_settings + * Client library settings. If the same version string appears multiple + * times in this list, then the last one wins. Settings from earlier + * settings with the same version string are discarded. + * @type string $proto_reference_documentation_uri + * Optional link to proto reference documentation. Example: + * https://cloud.google.com/pubsub/lite/docs/reference/rpc + * @type string $rest_reference_documentation_uri + * Optional link to REST reference documentation. Example: + * https://cloud.google.com/pubsub/lite/docs/reference/rest + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Client::initOnce(); + parent::__construct($data); + } + + /** + * A list of API method settings, e.g. the behavior for methods that use the + * long-running operation pattern. + * + * Generated from protobuf field repeated .google.api.MethodSettings method_settings = 2; + * @return RepeatedField<\Google\Api\MethodSettings> + */ + public function getMethodSettings() + { + return $this->method_settings; + } + + /** + * A list of API method settings, e.g. the behavior for methods that use the + * long-running operation pattern. + * + * Generated from protobuf field repeated .google.api.MethodSettings method_settings = 2; + * @param \Google\Api\MethodSettings[] $var + * @return $this + */ + public function setMethodSettings($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\MethodSettings::class); + $this->method_settings = $arr; + + return $this; + } + + /** + * Link to a *public* URI where users can report issues. Example: + * https://issuetracker.google.com/issues/new?component=190865&template=1161103 + * + * Generated from protobuf field string new_issue_uri = 101; + * @return string + */ + public function getNewIssueUri() + { + return $this->new_issue_uri; + } + + /** + * Link to a *public* URI where users can report issues. Example: + * https://issuetracker.google.com/issues/new?component=190865&template=1161103 + * + * Generated from protobuf field string new_issue_uri = 101; + * @param string $var + * @return $this + */ + public function setNewIssueUri($var) + { + GPBUtil::checkString($var, True); + $this->new_issue_uri = $var; + + return $this; + } + + /** + * Link to product home page. Example: + * https://cloud.google.com/asset-inventory/docs/overview + * + * Generated from protobuf field string documentation_uri = 102; + * @return string + */ + public function getDocumentationUri() + { + return $this->documentation_uri; + } + + /** + * Link to product home page. Example: + * https://cloud.google.com/asset-inventory/docs/overview + * + * Generated from protobuf field string documentation_uri = 102; + * @param string $var + * @return $this + */ + public function setDocumentationUri($var) + { + GPBUtil::checkString($var, True); + $this->documentation_uri = $var; + + return $this; + } + + /** + * Used as a tracking tag when collecting data about the APIs developer + * relations artifacts like docs, packages delivered to package managers, + * etc. Example: "speech". + * + * Generated from protobuf field string api_short_name = 103; + * @return string + */ + public function getApiShortName() + { + return $this->api_short_name; + } + + /** + * Used as a tracking tag when collecting data about the APIs developer + * relations artifacts like docs, packages delivered to package managers, + * etc. Example: "speech". + * + * Generated from protobuf field string api_short_name = 103; + * @param string $var + * @return $this + */ + public function setApiShortName($var) + { + GPBUtil::checkString($var, True); + $this->api_short_name = $var; + + return $this; + } + + /** + * GitHub label to apply to issues and pull requests opened for this API. + * + * Generated from protobuf field string github_label = 104; + * @return string + */ + public function getGithubLabel() + { + return $this->github_label; + } + + /** + * GitHub label to apply to issues and pull requests opened for this API. + * + * Generated from protobuf field string github_label = 104; + * @param string $var + * @return $this + */ + public function setGithubLabel($var) + { + GPBUtil::checkString($var, True); + $this->github_label = $var; + + return $this; + } + + /** + * GitHub teams to be added to CODEOWNERS in the directory in GitHub + * containing source code for the client libraries for this API. + * + * Generated from protobuf field repeated string codeowner_github_teams = 105; + * @return RepeatedField + */ + public function getCodeownerGithubTeams() + { + return $this->codeowner_github_teams; + } + + /** + * GitHub teams to be added to CODEOWNERS in the directory in GitHub + * containing source code for the client libraries for this API. + * + * Generated from protobuf field repeated string codeowner_github_teams = 105; + * @param string[] $var + * @return $this + */ + public function setCodeownerGithubTeams($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->codeowner_github_teams = $arr; + + return $this; + } + + /** + * A prefix used in sample code when demarking regions to be included in + * documentation. + * + * Generated from protobuf field string doc_tag_prefix = 106; + * @return string + */ + public function getDocTagPrefix() + { + return $this->doc_tag_prefix; + } + + /** + * A prefix used in sample code when demarking regions to be included in + * documentation. + * + * Generated from protobuf field string doc_tag_prefix = 106; + * @param string $var + * @return $this + */ + public function setDocTagPrefix($var) + { + GPBUtil::checkString($var, True); + $this->doc_tag_prefix = $var; + + return $this; + } + + /** + * For whom the client library is being published. + * + * Generated from protobuf field .google.api.ClientLibraryOrganization organization = 107; + * @return int + */ + public function getOrganization() + { + return $this->organization; + } + + /** + * For whom the client library is being published. + * + * Generated from protobuf field .google.api.ClientLibraryOrganization organization = 107; + * @param int $var + * @return $this + */ + public function setOrganization($var) + { + GPBUtil::checkEnum($var, \Google\Api\ClientLibraryOrganization::class); + $this->organization = $var; + + return $this; + } + + /** + * Client library settings. If the same version string appears multiple + * times in this list, then the last one wins. Settings from earlier + * settings with the same version string are discarded. + * + * Generated from protobuf field repeated .google.api.ClientLibrarySettings library_settings = 109; + * @return RepeatedField<\Google\Api\ClientLibrarySettings> + */ + public function getLibrarySettings() + { + return $this->library_settings; + } + + /** + * Client library settings. If the same version string appears multiple + * times in this list, then the last one wins. Settings from earlier + * settings with the same version string are discarded. + * + * Generated from protobuf field repeated .google.api.ClientLibrarySettings library_settings = 109; + * @param \Google\Api\ClientLibrarySettings[] $var + * @return $this + */ + public function setLibrarySettings($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\ClientLibrarySettings::class); + $this->library_settings = $arr; + + return $this; + } + + /** + * Optional link to proto reference documentation. Example: + * https://cloud.google.com/pubsub/lite/docs/reference/rpc + * + * Generated from protobuf field string proto_reference_documentation_uri = 110; + * @return string + */ + public function getProtoReferenceDocumentationUri() + { + return $this->proto_reference_documentation_uri; + } + + /** + * Optional link to proto reference documentation. Example: + * https://cloud.google.com/pubsub/lite/docs/reference/rpc + * + * Generated from protobuf field string proto_reference_documentation_uri = 110; + * @param string $var + * @return $this + */ + public function setProtoReferenceDocumentationUri($var) + { + GPBUtil::checkString($var, True); + $this->proto_reference_documentation_uri = $var; + + return $this; + } + + /** + * Optional link to REST reference documentation. Example: + * https://cloud.google.com/pubsub/lite/docs/reference/rest + * + * Generated from protobuf field string rest_reference_documentation_uri = 111; + * @return string + */ + public function getRestReferenceDocumentationUri() + { + return $this->rest_reference_documentation_uri; + } + + /** + * Optional link to REST reference documentation. Example: + * https://cloud.google.com/pubsub/lite/docs/reference/rest + * + * Generated from protobuf field string rest_reference_documentation_uri = 111; + * @param string $var + * @return $this + */ + public function setRestReferenceDocumentationUri($var) + { + GPBUtil::checkString($var, True); + $this->rest_reference_documentation_uri = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/PythonSettings.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/PythonSettings.php new file mode 100644 index 000000000000..66bd27f0fbfa --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/PythonSettings.php @@ -0,0 +1,121 @@ +google.api.PythonSettings + */ +class PythonSettings extends \Google\Protobuf\Internal\Message +{ + /** + * Some settings. + * + * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; + */ + protected $common = null; + /** + * Experimental features to be included during client library generation. + * + * Generated from protobuf field .google.api.PythonSettings.ExperimentalFeatures experimental_features = 2; + */ + protected $experimental_features = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Api\CommonLanguageSettings $common + * Some settings. + * @type \Google\Api\PythonSettings\ExperimentalFeatures $experimental_features + * Experimental features to be included during client library generation. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Client::initOnce(); + parent::__construct($data); + } + + /** + * Some settings. + * + * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; + * @return \Google\Api\CommonLanguageSettings|null + */ + public function getCommon() + { + return $this->common; + } + + public function hasCommon() + { + return isset($this->common); + } + + public function clearCommon() + { + unset($this->common); + } + + /** + * Some settings. + * + * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; + * @param \Google\Api\CommonLanguageSettings $var + * @return $this + */ + public function setCommon($var) + { + GPBUtil::checkMessage($var, \Google\Api\CommonLanguageSettings::class); + $this->common = $var; + + return $this; + } + + /** + * Experimental features to be included during client library generation. + * + * Generated from protobuf field .google.api.PythonSettings.ExperimentalFeatures experimental_features = 2; + * @return \Google\Api\PythonSettings\ExperimentalFeatures|null + */ + public function getExperimentalFeatures() + { + return $this->experimental_features; + } + + public function hasExperimentalFeatures() + { + return isset($this->experimental_features); + } + + public function clearExperimentalFeatures() + { + unset($this->experimental_features); + } + + /** + * Experimental features to be included during client library generation. + * + * Generated from protobuf field .google.api.PythonSettings.ExperimentalFeatures experimental_features = 2; + * @param \Google\Api\PythonSettings\ExperimentalFeatures $var + * @return $this + */ + public function setExperimentalFeatures($var) + { + GPBUtil::checkMessage($var, \Google\Api\PythonSettings\ExperimentalFeatures::class); + $this->experimental_features = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/PythonSettings/ExperimentalFeatures.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/PythonSettings/ExperimentalFeatures.php new file mode 100644 index 000000000000..a1230aea0cb9 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/PythonSettings/ExperimentalFeatures.php @@ -0,0 +1,173 @@ +google.api.PythonSettings.ExperimentalFeatures + */ +class ExperimentalFeatures extends \Google\Protobuf\Internal\Message +{ + /** + * Enables generation of asynchronous REST clients if `rest` transport is + * enabled. By default, asynchronous REST clients will not be generated. + * This feature will be enabled by default 1 month after launching the + * feature in preview packages. + * + * Generated from protobuf field bool rest_async_io_enabled = 1; + */ + protected $rest_async_io_enabled = false; + /** + * Enables generation of protobuf code using new types that are more + * Pythonic which are included in `protobuf>=5.29.x`. This feature will be + * enabled by default 1 month after launching the feature in preview + * packages. + * + * Generated from protobuf field bool protobuf_pythonic_types_enabled = 2; + */ + protected $protobuf_pythonic_types_enabled = false; + /** + * Disables generation of an unversioned Python package for this client + * library. This means that the module names will need to be versioned in + * import statements. For example `import google.cloud.library_v2` instead + * of `import google.cloud.library`. + * + * Generated from protobuf field bool unversioned_package_disabled = 3; + */ + protected $unversioned_package_disabled = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $rest_async_io_enabled + * Enables generation of asynchronous REST clients if `rest` transport is + * enabled. By default, asynchronous REST clients will not be generated. + * This feature will be enabled by default 1 month after launching the + * feature in preview packages. + * @type bool $protobuf_pythonic_types_enabled + * Enables generation of protobuf code using new types that are more + * Pythonic which are included in `protobuf>=5.29.x`. This feature will be + * enabled by default 1 month after launching the feature in preview + * packages. + * @type bool $unversioned_package_disabled + * Disables generation of an unversioned Python package for this client + * library. This means that the module names will need to be versioned in + * import statements. For example `import google.cloud.library_v2` instead + * of `import google.cloud.library`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Client::initOnce(); + parent::__construct($data); + } + + /** + * Enables generation of asynchronous REST clients if `rest` transport is + * enabled. By default, asynchronous REST clients will not be generated. + * This feature will be enabled by default 1 month after launching the + * feature in preview packages. + * + * Generated from protobuf field bool rest_async_io_enabled = 1; + * @return bool + */ + public function getRestAsyncIoEnabled() + { + return $this->rest_async_io_enabled; + } + + /** + * Enables generation of asynchronous REST clients if `rest` transport is + * enabled. By default, asynchronous REST clients will not be generated. + * This feature will be enabled by default 1 month after launching the + * feature in preview packages. + * + * Generated from protobuf field bool rest_async_io_enabled = 1; + * @param bool $var + * @return $this + */ + public function setRestAsyncIoEnabled($var) + { + GPBUtil::checkBool($var); + $this->rest_async_io_enabled = $var; + + return $this; + } + + /** + * Enables generation of protobuf code using new types that are more + * Pythonic which are included in `protobuf>=5.29.x`. This feature will be + * enabled by default 1 month after launching the feature in preview + * packages. + * + * Generated from protobuf field bool protobuf_pythonic_types_enabled = 2; + * @return bool + */ + public function getProtobufPythonicTypesEnabled() + { + return $this->protobuf_pythonic_types_enabled; + } + + /** + * Enables generation of protobuf code using new types that are more + * Pythonic which are included in `protobuf>=5.29.x`. This feature will be + * enabled by default 1 month after launching the feature in preview + * packages. + * + * Generated from protobuf field bool protobuf_pythonic_types_enabled = 2; + * @param bool $var + * @return $this + */ + public function setProtobufPythonicTypesEnabled($var) + { + GPBUtil::checkBool($var); + $this->protobuf_pythonic_types_enabled = $var; + + return $this; + } + + /** + * Disables generation of an unversioned Python package for this client + * library. This means that the module names will need to be versioned in + * import statements. For example `import google.cloud.library_v2` instead + * of `import google.cloud.library`. + * + * Generated from protobuf field bool unversioned_package_disabled = 3; + * @return bool + */ + public function getUnversionedPackageDisabled() + { + return $this->unversioned_package_disabled; + } + + /** + * Disables generation of an unversioned Python package for this client + * library. This means that the module names will need to be versioned in + * import statements. For example `import google.cloud.library_v2` instead + * of `import google.cloud.library`. + * + * Generated from protobuf field bool unversioned_package_disabled = 3; + * @param bool $var + * @return $this + */ + public function setUnversionedPackageDisabled($var) + { + GPBUtil::checkBool($var); + $this->unversioned_package_disabled = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Quota.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Quota.php new file mode 100644 index 000000000000..bea8ed890068 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Quota.php @@ -0,0 +1,144 @@ +google.api.Quota + */ +class Quota extends \Google\Protobuf\Internal\Message +{ + /** + * List of QuotaLimit definitions for the service. + * + * Generated from protobuf field repeated .google.api.QuotaLimit limits = 3; + */ + private $limits; + /** + * List of MetricRule definitions, each one mapping a selected method to one + * or more metrics. + * + * Generated from protobuf field repeated .google.api.MetricRule metric_rules = 4; + */ + private $metric_rules; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Api\QuotaLimit[] $limits + * List of QuotaLimit definitions for the service. + * @type \Google\Api\MetricRule[] $metric_rules + * List of MetricRule definitions, each one mapping a selected method to one + * or more metrics. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Quota::initOnce(); + parent::__construct($data); + } + + /** + * List of QuotaLimit definitions for the service. + * + * Generated from protobuf field repeated .google.api.QuotaLimit limits = 3; + * @return RepeatedField<\Google\Api\QuotaLimit> + */ + public function getLimits() + { + return $this->limits; + } + + /** + * List of QuotaLimit definitions for the service. + * + * Generated from protobuf field repeated .google.api.QuotaLimit limits = 3; + * @param \Google\Api\QuotaLimit[] $var + * @return $this + */ + public function setLimits($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\QuotaLimit::class); + $this->limits = $arr; + + return $this; + } + + /** + * List of MetricRule definitions, each one mapping a selected method to one + * or more metrics. + * + * Generated from protobuf field repeated .google.api.MetricRule metric_rules = 4; + * @return RepeatedField<\Google\Api\MetricRule> + */ + public function getMetricRules() + { + return $this->metric_rules; + } + + /** + * List of MetricRule definitions, each one mapping a selected method to one + * or more metrics. + * + * Generated from protobuf field repeated .google.api.MetricRule metric_rules = 4; + * @param \Google\Api\MetricRule[] $var + * @return $this + */ + public function setMetricRules($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\MetricRule::class); + $this->metric_rules = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/QuotaLimit.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/QuotaLimit.php new file mode 100644 index 000000000000..457cc8839770 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/QuotaLimit.php @@ -0,0 +1,527 @@ +google.api.QuotaLimit + */ +class QuotaLimit extends \Google\Protobuf\Internal\Message +{ + /** + * Name of the quota limit. + * The name must be provided, and it must be unique within the service. The + * name can only include alphanumeric characters as well as '-'. + * The maximum length of the limit name is 64 characters. + * + * Generated from protobuf field string name = 6; + */ + protected $name = ''; + /** + * Optional. User-visible, extended description for this quota limit. + * Should be used only when more context is needed to understand this limit + * than provided by the limit's display name (see: `display_name`). + * + * Generated from protobuf field string description = 2; + */ + protected $description = ''; + /** + * Default number of tokens that can be consumed during the specified + * duration. This is the number of tokens assigned when a client + * application developer activates the service for his/her project. + * Specifying a value of 0 will block all requests. This can be used if you + * are provisioning quota to selected consumers and blocking others. + * Similarly, a value of -1 will indicate an unlimited quota. No other + * negative values are allowed. + * Used by group-based quotas only. + * + * Generated from protobuf field int64 default_limit = 3; + */ + protected $default_limit = 0; + /** + * Maximum number of tokens that can be consumed during the specified + * duration. Client application developers can override the default limit up + * to this maximum. If specified, this value cannot be set to a value less + * than the default limit. If not specified, it is set to the default limit. + * To allow clients to apply overrides with no upper bound, set this to -1, + * indicating unlimited maximum quota. + * Used by group-based quotas only. + * + * Generated from protobuf field int64 max_limit = 4; + */ + protected $max_limit = 0; + /** + * Free tier value displayed in the Developers Console for this limit. + * The free tier is the number of tokens that will be subtracted from the + * billed amount when billing is enabled. + * This field can only be set on a limit with duration "1d", in a billable + * group; it is invalid on any other limit. If this field is not set, it + * defaults to 0, indicating that there is no free tier for this service. + * Used by group-based quotas only. + * + * Generated from protobuf field int64 free_tier = 7; + */ + protected $free_tier = 0; + /** + * Duration of this limit in textual notation. Must be "100s" or "1d". + * Used by group-based quotas only. + * + * Generated from protobuf field string duration = 5; + */ + protected $duration = ''; + /** + * The name of the metric this quota limit applies to. The quota limits with + * the same metric will be checked together during runtime. The metric must be + * defined within the service config. + * + * Generated from protobuf field string metric = 8; + */ + protected $metric = ''; + /** + * Specify the unit of the quota limit. It uses the same syntax as + * [MetricDescriptor.unit][google.api.MetricDescriptor.unit]. The supported + * unit kinds are determined by the quota backend system. + * Here are some examples: + * * "1/min/{project}" for quota per minute per project. + * Note: the order of unit components is insignificant. + * The "1" at the beginning is required to follow the metric unit syntax. + * + * Generated from protobuf field string unit = 9; + */ + protected $unit = ''; + /** + * Tiered limit values. You must specify this as a key:value pair, with an + * integer value that is the maximum number of requests allowed for the + * specified unit. Currently only STANDARD is supported. + * + * Generated from protobuf field map values = 10; + */ + private $values; + /** + * User-visible display name for this limit. + * Optional. If not set, the UI will provide a default display name based on + * the quota configuration. This field can be used to override the default + * display name generated from the configuration. + * + * Generated from protobuf field string display_name = 12; + */ + protected $display_name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Name of the quota limit. + * The name must be provided, and it must be unique within the service. The + * name can only include alphanumeric characters as well as '-'. + * The maximum length of the limit name is 64 characters. + * @type string $description + * Optional. User-visible, extended description for this quota limit. + * Should be used only when more context is needed to understand this limit + * than provided by the limit's display name (see: `display_name`). + * @type int|string $default_limit + * Default number of tokens that can be consumed during the specified + * duration. This is the number of tokens assigned when a client + * application developer activates the service for his/her project. + * Specifying a value of 0 will block all requests. This can be used if you + * are provisioning quota to selected consumers and blocking others. + * Similarly, a value of -1 will indicate an unlimited quota. No other + * negative values are allowed. + * Used by group-based quotas only. + * @type int|string $max_limit + * Maximum number of tokens that can be consumed during the specified + * duration. Client application developers can override the default limit up + * to this maximum. If specified, this value cannot be set to a value less + * than the default limit. If not specified, it is set to the default limit. + * To allow clients to apply overrides with no upper bound, set this to -1, + * indicating unlimited maximum quota. + * Used by group-based quotas only. + * @type int|string $free_tier + * Free tier value displayed in the Developers Console for this limit. + * The free tier is the number of tokens that will be subtracted from the + * billed amount when billing is enabled. + * This field can only be set on a limit with duration "1d", in a billable + * group; it is invalid on any other limit. If this field is not set, it + * defaults to 0, indicating that there is no free tier for this service. + * Used by group-based quotas only. + * @type string $duration + * Duration of this limit in textual notation. Must be "100s" or "1d". + * Used by group-based quotas only. + * @type string $metric + * The name of the metric this quota limit applies to. The quota limits with + * the same metric will be checked together during runtime. The metric must be + * defined within the service config. + * @type string $unit + * Specify the unit of the quota limit. It uses the same syntax as + * [MetricDescriptor.unit][google.api.MetricDescriptor.unit]. The supported + * unit kinds are determined by the quota backend system. + * Here are some examples: + * * "1/min/{project}" for quota per minute per project. + * Note: the order of unit components is insignificant. + * The "1" at the beginning is required to follow the metric unit syntax. + * @type array|\Google\Protobuf\Internal\MapField $values + * Tiered limit values. You must specify this as a key:value pair, with an + * integer value that is the maximum number of requests allowed for the + * specified unit. Currently only STANDARD is supported. + * @type string $display_name + * User-visible display name for this limit. + * Optional. If not set, the UI will provide a default display name based on + * the quota configuration. This field can be used to override the default + * display name generated from the configuration. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Quota::initOnce(); + parent::__construct($data); + } + + /** + * Name of the quota limit. + * The name must be provided, and it must be unique within the service. The + * name can only include alphanumeric characters as well as '-'. + * The maximum length of the limit name is 64 characters. + * + * Generated from protobuf field string name = 6; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Name of the quota limit. + * The name must be provided, and it must be unique within the service. The + * name can only include alphanumeric characters as well as '-'. + * The maximum length of the limit name is 64 characters. + * + * Generated from protobuf field string name = 6; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Optional. User-visible, extended description for this quota limit. + * Should be used only when more context is needed to understand this limit + * than provided by the limit's display name (see: `display_name`). + * + * Generated from protobuf field string description = 2; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Optional. User-visible, extended description for this quota limit. + * Should be used only when more context is needed to understand this limit + * than provided by the limit's display name (see: `display_name`). + * + * Generated from protobuf field string description = 2; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * Default number of tokens that can be consumed during the specified + * duration. This is the number of tokens assigned when a client + * application developer activates the service for his/her project. + * Specifying a value of 0 will block all requests. This can be used if you + * are provisioning quota to selected consumers and blocking others. + * Similarly, a value of -1 will indicate an unlimited quota. No other + * negative values are allowed. + * Used by group-based quotas only. + * + * Generated from protobuf field int64 default_limit = 3; + * @return int|string + */ + public function getDefaultLimit() + { + return $this->default_limit; + } + + /** + * Default number of tokens that can be consumed during the specified + * duration. This is the number of tokens assigned when a client + * application developer activates the service for his/her project. + * Specifying a value of 0 will block all requests. This can be used if you + * are provisioning quota to selected consumers and blocking others. + * Similarly, a value of -1 will indicate an unlimited quota. No other + * negative values are allowed. + * Used by group-based quotas only. + * + * Generated from protobuf field int64 default_limit = 3; + * @param int|string $var + * @return $this + */ + public function setDefaultLimit($var) + { + GPBUtil::checkInt64($var); + $this->default_limit = $var; + + return $this; + } + + /** + * Maximum number of tokens that can be consumed during the specified + * duration. Client application developers can override the default limit up + * to this maximum. If specified, this value cannot be set to a value less + * than the default limit. If not specified, it is set to the default limit. + * To allow clients to apply overrides with no upper bound, set this to -1, + * indicating unlimited maximum quota. + * Used by group-based quotas only. + * + * Generated from protobuf field int64 max_limit = 4; + * @return int|string + */ + public function getMaxLimit() + { + return $this->max_limit; + } + + /** + * Maximum number of tokens that can be consumed during the specified + * duration. Client application developers can override the default limit up + * to this maximum. If specified, this value cannot be set to a value less + * than the default limit. If not specified, it is set to the default limit. + * To allow clients to apply overrides with no upper bound, set this to -1, + * indicating unlimited maximum quota. + * Used by group-based quotas only. + * + * Generated from protobuf field int64 max_limit = 4; + * @param int|string $var + * @return $this + */ + public function setMaxLimit($var) + { + GPBUtil::checkInt64($var); + $this->max_limit = $var; + + return $this; + } + + /** + * Free tier value displayed in the Developers Console for this limit. + * The free tier is the number of tokens that will be subtracted from the + * billed amount when billing is enabled. + * This field can only be set on a limit with duration "1d", in a billable + * group; it is invalid on any other limit. If this field is not set, it + * defaults to 0, indicating that there is no free tier for this service. + * Used by group-based quotas only. + * + * Generated from protobuf field int64 free_tier = 7; + * @return int|string + */ + public function getFreeTier() + { + return $this->free_tier; + } + + /** + * Free tier value displayed in the Developers Console for this limit. + * The free tier is the number of tokens that will be subtracted from the + * billed amount when billing is enabled. + * This field can only be set on a limit with duration "1d", in a billable + * group; it is invalid on any other limit. If this field is not set, it + * defaults to 0, indicating that there is no free tier for this service. + * Used by group-based quotas only. + * + * Generated from protobuf field int64 free_tier = 7; + * @param int|string $var + * @return $this + */ + public function setFreeTier($var) + { + GPBUtil::checkInt64($var); + $this->free_tier = $var; + + return $this; + } + + /** + * Duration of this limit in textual notation. Must be "100s" or "1d". + * Used by group-based quotas only. + * + * Generated from protobuf field string duration = 5; + * @return string + */ + public function getDuration() + { + return $this->duration; + } + + /** + * Duration of this limit in textual notation. Must be "100s" or "1d". + * Used by group-based quotas only. + * + * Generated from protobuf field string duration = 5; + * @param string $var + * @return $this + */ + public function setDuration($var) + { + GPBUtil::checkString($var, True); + $this->duration = $var; + + return $this; + } + + /** + * The name of the metric this quota limit applies to. The quota limits with + * the same metric will be checked together during runtime. The metric must be + * defined within the service config. + * + * Generated from protobuf field string metric = 8; + * @return string + */ + public function getMetric() + { + return $this->metric; + } + + /** + * The name of the metric this quota limit applies to. The quota limits with + * the same metric will be checked together during runtime. The metric must be + * defined within the service config. + * + * Generated from protobuf field string metric = 8; + * @param string $var + * @return $this + */ + public function setMetric($var) + { + GPBUtil::checkString($var, True); + $this->metric = $var; + + return $this; + } + + /** + * Specify the unit of the quota limit. It uses the same syntax as + * [MetricDescriptor.unit][google.api.MetricDescriptor.unit]. The supported + * unit kinds are determined by the quota backend system. + * Here are some examples: + * * "1/min/{project}" for quota per minute per project. + * Note: the order of unit components is insignificant. + * The "1" at the beginning is required to follow the metric unit syntax. + * + * Generated from protobuf field string unit = 9; + * @return string + */ + public function getUnit() + { + return $this->unit; + } + + /** + * Specify the unit of the quota limit. It uses the same syntax as + * [MetricDescriptor.unit][google.api.MetricDescriptor.unit]. The supported + * unit kinds are determined by the quota backend system. + * Here are some examples: + * * "1/min/{project}" for quota per minute per project. + * Note: the order of unit components is insignificant. + * The "1" at the beginning is required to follow the metric unit syntax. + * + * Generated from protobuf field string unit = 9; + * @param string $var + * @return $this + */ + public function setUnit($var) + { + GPBUtil::checkString($var, True); + $this->unit = $var; + + return $this; + } + + /** + * Tiered limit values. You must specify this as a key:value pair, with an + * integer value that is the maximum number of requests allowed for the + * specified unit. Currently only STANDARD is supported. + * + * Generated from protobuf field map values = 10; + * @return \Google\Protobuf\Internal\MapField + */ + public function getValues() + { + return $this->values; + } + + /** + * Tiered limit values. You must specify this as a key:value pair, with an + * integer value that is the maximum number of requests allowed for the + * specified unit. Currently only STANDARD is supported. + * + * Generated from protobuf field map values = 10; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setValues($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::INT64); + $this->values = $arr; + + return $this; + } + + /** + * User-visible display name for this limit. + * Optional. If not set, the UI will provide a default display name based on + * the quota configuration. This field can be used to override the default + * display name generated from the configuration. + * + * Generated from protobuf field string display_name = 12; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * User-visible display name for this limit. + * Optional. If not set, the UI will provide a default display name based on + * the quota configuration. This field can be used to override the default + * display name generated from the configuration. + * + * Generated from protobuf field string display_name = 12; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ResourceDescriptor.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ResourceDescriptor.php new file mode 100644 index 000000000000..f6142bffc644 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ResourceDescriptor.php @@ -0,0 +1,495 @@ +google.api.ResourceDescriptor + */ +class ResourceDescriptor extends \Google\Protobuf\Internal\Message +{ + /** + * The resource type. It must be in the format of + * {service_name}/{resource_type_kind}. The `resource_type_kind` must be + * singular and must not include version numbers. + * Example: `storage.googleapis.com/Bucket` + * The value of the resource_type_kind must follow the regular expression + * /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and + * should use PascalCase (UpperCamelCase). The maximum number of + * characters allowed for the `resource_type_kind` is 100. + * + * Generated from protobuf field string type = 1; + */ + protected $type = ''; + /** + * Optional. The relative resource name pattern associated with this resource + * type. The DNS prefix of the full resource name shouldn't be specified here. + * The path pattern must follow the syntax, which aligns with HTTP binding + * syntax: + * Template = Segment { "/" Segment } ; + * Segment = LITERAL | Variable ; + * Variable = "{" LITERAL "}" ; + * Examples: + * - "projects/{project}/topics/{topic}" + * - "projects/{project}/knowledgeBases/{knowledge_base}" + * The components in braces correspond to the IDs for each resource in the + * hierarchy. It is expected that, if multiple patterns are provided, + * the same component name (e.g. "project") refers to IDs of the same + * type of resource. + * + * Generated from protobuf field repeated string pattern = 2; + */ + private $pattern; + /** + * Optional. The field on the resource that designates the resource name + * field. If omitted, this is assumed to be "name". + * + * Generated from protobuf field string name_field = 3; + */ + protected $name_field = ''; + /** + * Optional. The historical or future-looking state of the resource pattern. + * Example: + * // The InspectTemplate message originally only supported resource + * // names with organization, and project was added later. + * message InspectTemplate { + * option (google.api.resource) = { + * type: "dlp.googleapis.com/InspectTemplate" + * pattern: + * "organizations/{organization}/inspectTemplates/{inspect_template}" + * pattern: "projects/{project}/inspectTemplates/{inspect_template}" + * history: ORIGINALLY_SINGLE_PATTERN + * }; + * } + * + * Generated from protobuf field .google.api.ResourceDescriptor.History history = 4; + */ + protected $history = 0; + /** + * The plural name used in the resource name and permission names, such as + * 'projects' for the resource name of 'projects/{project}' and the permission + * name of 'cloudresourcemanager.googleapis.com/projects.get'. One exception + * to this is for Nested Collections that have stuttering names, as defined + * in [AIP-122](https://google.aip.dev/122#nested-collections), where the + * collection ID in the resource name pattern does not necessarily directly + * match the `plural` value. + * It is the same concept of the `plural` field in k8s CRD spec + * https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ + * Note: The plural form is required even for singleton resources. See + * https://aip.dev/156 + * + * Generated from protobuf field string plural = 5; + */ + protected $plural = ''; + /** + * The same concept of the `singular` field in k8s CRD spec + * https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ + * Such as "project" for the `resourcemanager.googleapis.com/Project` type. + * + * Generated from protobuf field string singular = 6; + */ + protected $singular = ''; + /** + * Style flag(s) for this resource. + * These indicate that a resource is expected to conform to a given + * style. See the specific style flags for additional information. + * + * Generated from protobuf field repeated .google.api.ResourceDescriptor.Style style = 10; + */ + private $style; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $type + * The resource type. It must be in the format of + * {service_name}/{resource_type_kind}. The `resource_type_kind` must be + * singular and must not include version numbers. + * Example: `storage.googleapis.com/Bucket` + * The value of the resource_type_kind must follow the regular expression + * /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and + * should use PascalCase (UpperCamelCase). The maximum number of + * characters allowed for the `resource_type_kind` is 100. + * @type string[] $pattern + * Optional. The relative resource name pattern associated with this resource + * type. The DNS prefix of the full resource name shouldn't be specified here. + * The path pattern must follow the syntax, which aligns with HTTP binding + * syntax: + * Template = Segment { "/" Segment } ; + * Segment = LITERAL | Variable ; + * Variable = "{" LITERAL "}" ; + * Examples: + * - "projects/{project}/topics/{topic}" + * - "projects/{project}/knowledgeBases/{knowledge_base}" + * The components in braces correspond to the IDs for each resource in the + * hierarchy. It is expected that, if multiple patterns are provided, + * the same component name (e.g. "project") refers to IDs of the same + * type of resource. + * @type string $name_field + * Optional. The field on the resource that designates the resource name + * field. If omitted, this is assumed to be "name". + * @type int $history + * Optional. The historical or future-looking state of the resource pattern. + * Example: + * // The InspectTemplate message originally only supported resource + * // names with organization, and project was added later. + * message InspectTemplate { + * option (google.api.resource) = { + * type: "dlp.googleapis.com/InspectTemplate" + * pattern: + * "organizations/{organization}/inspectTemplates/{inspect_template}" + * pattern: "projects/{project}/inspectTemplates/{inspect_template}" + * history: ORIGINALLY_SINGLE_PATTERN + * }; + * } + * @type string $plural + * The plural name used in the resource name and permission names, such as + * 'projects' for the resource name of 'projects/{project}' and the permission + * name of 'cloudresourcemanager.googleapis.com/projects.get'. One exception + * to this is for Nested Collections that have stuttering names, as defined + * in [AIP-122](https://google.aip.dev/122#nested-collections), where the + * collection ID in the resource name pattern does not necessarily directly + * match the `plural` value. + * It is the same concept of the `plural` field in k8s CRD spec + * https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ + * Note: The plural form is required even for singleton resources. See + * https://aip.dev/156 + * @type string $singular + * The same concept of the `singular` field in k8s CRD spec + * https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ + * Such as "project" for the `resourcemanager.googleapis.com/Project` type. + * @type int[] $style + * Style flag(s) for this resource. + * These indicate that a resource is expected to conform to a given + * style. See the specific style flags for additional information. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Resource::initOnce(); + parent::__construct($data); + } + + /** + * The resource type. It must be in the format of + * {service_name}/{resource_type_kind}. The `resource_type_kind` must be + * singular and must not include version numbers. + * Example: `storage.googleapis.com/Bucket` + * The value of the resource_type_kind must follow the regular expression + * /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and + * should use PascalCase (UpperCamelCase). The maximum number of + * characters allowed for the `resource_type_kind` is 100. + * + * Generated from protobuf field string type = 1; + * @return string + */ + public function getType() + { + return $this->type; + } + + /** + * The resource type. It must be in the format of + * {service_name}/{resource_type_kind}. The `resource_type_kind` must be + * singular and must not include version numbers. + * Example: `storage.googleapis.com/Bucket` + * The value of the resource_type_kind must follow the regular expression + * /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and + * should use PascalCase (UpperCamelCase). The maximum number of + * characters allowed for the `resource_type_kind` is 100. + * + * Generated from protobuf field string type = 1; + * @param string $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkString($var, True); + $this->type = $var; + + return $this; + } + + /** + * Optional. The relative resource name pattern associated with this resource + * type. The DNS prefix of the full resource name shouldn't be specified here. + * The path pattern must follow the syntax, which aligns with HTTP binding + * syntax: + * Template = Segment { "/" Segment } ; + * Segment = LITERAL | Variable ; + * Variable = "{" LITERAL "}" ; + * Examples: + * - "projects/{project}/topics/{topic}" + * - "projects/{project}/knowledgeBases/{knowledge_base}" + * The components in braces correspond to the IDs for each resource in the + * hierarchy. It is expected that, if multiple patterns are provided, + * the same component name (e.g. "project") refers to IDs of the same + * type of resource. + * + * Generated from protobuf field repeated string pattern = 2; + * @return RepeatedField + */ + public function getPattern() + { + return $this->pattern; + } + + /** + * Optional. The relative resource name pattern associated with this resource + * type. The DNS prefix of the full resource name shouldn't be specified here. + * The path pattern must follow the syntax, which aligns with HTTP binding + * syntax: + * Template = Segment { "/" Segment } ; + * Segment = LITERAL | Variable ; + * Variable = "{" LITERAL "}" ; + * Examples: + * - "projects/{project}/topics/{topic}" + * - "projects/{project}/knowledgeBases/{knowledge_base}" + * The components in braces correspond to the IDs for each resource in the + * hierarchy. It is expected that, if multiple patterns are provided, + * the same component name (e.g. "project") refers to IDs of the same + * type of resource. + * + * Generated from protobuf field repeated string pattern = 2; + * @param string[] $var + * @return $this + */ + public function setPattern($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->pattern = $arr; + + return $this; + } + + /** + * Optional. The field on the resource that designates the resource name + * field. If omitted, this is assumed to be "name". + * + * Generated from protobuf field string name_field = 3; + * @return string + */ + public function getNameField() + { + return $this->name_field; + } + + /** + * Optional. The field on the resource that designates the resource name + * field. If omitted, this is assumed to be "name". + * + * Generated from protobuf field string name_field = 3; + * @param string $var + * @return $this + */ + public function setNameField($var) + { + GPBUtil::checkString($var, True); + $this->name_field = $var; + + return $this; + } + + /** + * Optional. The historical or future-looking state of the resource pattern. + * Example: + * // The InspectTemplate message originally only supported resource + * // names with organization, and project was added later. + * message InspectTemplate { + * option (google.api.resource) = { + * type: "dlp.googleapis.com/InspectTemplate" + * pattern: + * "organizations/{organization}/inspectTemplates/{inspect_template}" + * pattern: "projects/{project}/inspectTemplates/{inspect_template}" + * history: ORIGINALLY_SINGLE_PATTERN + * }; + * } + * + * Generated from protobuf field .google.api.ResourceDescriptor.History history = 4; + * @return int + */ + public function getHistory() + { + return $this->history; + } + + /** + * Optional. The historical or future-looking state of the resource pattern. + * Example: + * // The InspectTemplate message originally only supported resource + * // names with organization, and project was added later. + * message InspectTemplate { + * option (google.api.resource) = { + * type: "dlp.googleapis.com/InspectTemplate" + * pattern: + * "organizations/{organization}/inspectTemplates/{inspect_template}" + * pattern: "projects/{project}/inspectTemplates/{inspect_template}" + * history: ORIGINALLY_SINGLE_PATTERN + * }; + * } + * + * Generated from protobuf field .google.api.ResourceDescriptor.History history = 4; + * @param int $var + * @return $this + */ + public function setHistory($var) + { + GPBUtil::checkEnum($var, \Google\Api\ResourceDescriptor\History::class); + $this->history = $var; + + return $this; + } + + /** + * The plural name used in the resource name and permission names, such as + * 'projects' for the resource name of 'projects/{project}' and the permission + * name of 'cloudresourcemanager.googleapis.com/projects.get'. One exception + * to this is for Nested Collections that have stuttering names, as defined + * in [AIP-122](https://google.aip.dev/122#nested-collections), where the + * collection ID in the resource name pattern does not necessarily directly + * match the `plural` value. + * It is the same concept of the `plural` field in k8s CRD spec + * https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ + * Note: The plural form is required even for singleton resources. See + * https://aip.dev/156 + * + * Generated from protobuf field string plural = 5; + * @return string + */ + public function getPlural() + { + return $this->plural; + } + + /** + * The plural name used in the resource name and permission names, such as + * 'projects' for the resource name of 'projects/{project}' and the permission + * name of 'cloudresourcemanager.googleapis.com/projects.get'. One exception + * to this is for Nested Collections that have stuttering names, as defined + * in [AIP-122](https://google.aip.dev/122#nested-collections), where the + * collection ID in the resource name pattern does not necessarily directly + * match the `plural` value. + * It is the same concept of the `plural` field in k8s CRD spec + * https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ + * Note: The plural form is required even for singleton resources. See + * https://aip.dev/156 + * + * Generated from protobuf field string plural = 5; + * @param string $var + * @return $this + */ + public function setPlural($var) + { + GPBUtil::checkString($var, True); + $this->plural = $var; + + return $this; + } + + /** + * The same concept of the `singular` field in k8s CRD spec + * https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ + * Such as "project" for the `resourcemanager.googleapis.com/Project` type. + * + * Generated from protobuf field string singular = 6; + * @return string + */ + public function getSingular() + { + return $this->singular; + } + + /** + * The same concept of the `singular` field in k8s CRD spec + * https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ + * Such as "project" for the `resourcemanager.googleapis.com/Project` type. + * + * Generated from protobuf field string singular = 6; + * @param string $var + * @return $this + */ + public function setSingular($var) + { + GPBUtil::checkString($var, True); + $this->singular = $var; + + return $this; + } + + /** + * Style flag(s) for this resource. + * These indicate that a resource is expected to conform to a given + * style. See the specific style flags for additional information. + * + * Generated from protobuf field repeated .google.api.ResourceDescriptor.Style style = 10; + * @return RepeatedField + */ + public function getStyle() + { + return $this->style; + } + + /** + * Style flag(s) for this resource. + * These indicate that a resource is expected to conform to a given + * style. See the specific style flags for additional information. + * + * Generated from protobuf field repeated .google.api.ResourceDescriptor.Style style = 10; + * @param int[] $var + * @return $this + */ + public function setStyle($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Api\ResourceDescriptor\Style::class); + $this->style = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ResourceDescriptor/History.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ResourceDescriptor/History.php new file mode 100644 index 000000000000..ee1ae551aac7 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ResourceDescriptor/History.php @@ -0,0 +1,65 @@ +google.api.ResourceDescriptor.History + */ +class History +{ + /** + * The "unset" value. + * + * Generated from protobuf enum HISTORY_UNSPECIFIED = 0; + */ + const HISTORY_UNSPECIFIED = 0; + /** + * The resource originally had one pattern and launched as such, and + * additional patterns were added later. + * + * Generated from protobuf enum ORIGINALLY_SINGLE_PATTERN = 1; + */ + const ORIGINALLY_SINGLE_PATTERN = 1; + /** + * The resource has one pattern, but the API owner expects to add more + * later. (This is the inverse of ORIGINALLY_SINGLE_PATTERN, and prevents + * that from being necessary once there are multiple patterns.) + * + * Generated from protobuf enum FUTURE_MULTI_PATTERN = 2; + */ + const FUTURE_MULTI_PATTERN = 2; + + private static $valueToName = [ + self::HISTORY_UNSPECIFIED => 'HISTORY_UNSPECIFIED', + self::ORIGINALLY_SINGLE_PATTERN => 'ORIGINALLY_SINGLE_PATTERN', + self::FUTURE_MULTI_PATTERN => 'FUTURE_MULTI_PATTERN', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ResourceDescriptor/Style.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ResourceDescriptor/Style.php new file mode 100644 index 000000000000..87dfba14a2a8 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ResourceDescriptor/Style.php @@ -0,0 +1,59 @@ +google.api.ResourceDescriptor.Style + */ +class Style +{ + /** + * The unspecified value. Do not use. + * + * Generated from protobuf enum STYLE_UNSPECIFIED = 0; + */ + const STYLE_UNSPECIFIED = 0; + /** + * This resource is intended to be "declarative-friendly". + * Declarative-friendly resources must be more strictly consistent, and + * setting this to true communicates to tools that this resource should + * adhere to declarative-friendly expectations. + * Note: This is used by the API linter (linter.aip.dev) to enable + * additional checks. + * + * Generated from protobuf enum DECLARATIVE_FRIENDLY = 1; + */ + const DECLARATIVE_FRIENDLY = 1; + + private static $valueToName = [ + self::STYLE_UNSPECIFIED => 'STYLE_UNSPECIFIED', + self::DECLARATIVE_FRIENDLY => 'DECLARATIVE_FRIENDLY', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ResourceReference.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ResourceReference.php new file mode 100644 index 000000000000..e6bc4e8ff3fa --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ResourceReference.php @@ -0,0 +1,190 @@ +google.api.ResourceReference + */ +class ResourceReference extends \Google\Protobuf\Internal\Message +{ + /** + * The resource type that the annotated field references. + * Example: + * message Subscription { + * string topic = 2 [(google.api.resource_reference) = { + * type: "pubsub.googleapis.com/Topic" + * }]; + * } + * Occasionally, a field may reference an arbitrary resource. In this case, + * APIs use the special value * in their resource reference. + * Example: + * message GetIamPolicyRequest { + * string resource = 2 [(google.api.resource_reference) = { + * type: "*" + * }]; + * } + * + * Generated from protobuf field string type = 1; + */ + protected $type = ''; + /** + * The resource type of a child collection that the annotated field + * references. This is useful for annotating the `parent` field that + * doesn't have a fixed resource type. + * Example: + * message ListLogEntriesRequest { + * string parent = 1 [(google.api.resource_reference) = { + * child_type: "logging.googleapis.com/LogEntry" + * }; + * } + * + * Generated from protobuf field string child_type = 2; + */ + protected $child_type = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $type + * The resource type that the annotated field references. + * Example: + * message Subscription { + * string topic = 2 [(google.api.resource_reference) = { + * type: "pubsub.googleapis.com/Topic" + * }]; + * } + * Occasionally, a field may reference an arbitrary resource. In this case, + * APIs use the special value * in their resource reference. + * Example: + * message GetIamPolicyRequest { + * string resource = 2 [(google.api.resource_reference) = { + * type: "*" + * }]; + * } + * @type string $child_type + * The resource type of a child collection that the annotated field + * references. This is useful for annotating the `parent` field that + * doesn't have a fixed resource type. + * Example: + * message ListLogEntriesRequest { + * string parent = 1 [(google.api.resource_reference) = { + * child_type: "logging.googleapis.com/LogEntry" + * }; + * } + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Resource::initOnce(); + parent::__construct($data); + } + + /** + * The resource type that the annotated field references. + * Example: + * message Subscription { + * string topic = 2 [(google.api.resource_reference) = { + * type: "pubsub.googleapis.com/Topic" + * }]; + * } + * Occasionally, a field may reference an arbitrary resource. In this case, + * APIs use the special value * in their resource reference. + * Example: + * message GetIamPolicyRequest { + * string resource = 2 [(google.api.resource_reference) = { + * type: "*" + * }]; + * } + * + * Generated from protobuf field string type = 1; + * @return string + */ + public function getType() + { + return $this->type; + } + + /** + * The resource type that the annotated field references. + * Example: + * message Subscription { + * string topic = 2 [(google.api.resource_reference) = { + * type: "pubsub.googleapis.com/Topic" + * }]; + * } + * Occasionally, a field may reference an arbitrary resource. In this case, + * APIs use the special value * in their resource reference. + * Example: + * message GetIamPolicyRequest { + * string resource = 2 [(google.api.resource_reference) = { + * type: "*" + * }]; + * } + * + * Generated from protobuf field string type = 1; + * @param string $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkString($var, True); + $this->type = $var; + + return $this; + } + + /** + * The resource type of a child collection that the annotated field + * references. This is useful for annotating the `parent` field that + * doesn't have a fixed resource type. + * Example: + * message ListLogEntriesRequest { + * string parent = 1 [(google.api.resource_reference) = { + * child_type: "logging.googleapis.com/LogEntry" + * }; + * } + * + * Generated from protobuf field string child_type = 2; + * @return string + */ + public function getChildType() + { + return $this->child_type; + } + + /** + * The resource type of a child collection that the annotated field + * references. This is useful for annotating the `parent` field that + * doesn't have a fixed resource type. + * Example: + * message ListLogEntriesRequest { + * string parent = 1 [(google.api.resource_reference) = { + * child_type: "logging.googleapis.com/LogEntry" + * }; + * } + * + * Generated from protobuf field string child_type = 2; + * @param string $var + * @return $this + */ + public function setChildType($var) + { + GPBUtil::checkString($var, True); + $this->child_type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/RoutingParameter.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/RoutingParameter.php new file mode 100644 index 000000000000..ff03816fe471 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/RoutingParameter.php @@ -0,0 +1,281 @@ +google.api.RoutingParameter + */ +class RoutingParameter extends \Google\Protobuf\Internal\Message +{ + /** + * A request field to extract the header key-value pair from. + * + * Generated from protobuf field string field = 1; + */ + protected $field = ''; + /** + * A pattern matching the key-value field. Optional. + * If not specified, the whole field specified in the `field` field will be + * taken as value, and its name used as key. If specified, it MUST contain + * exactly one named segment (along with any number of unnamed segments) The + * pattern will be matched over the field specified in the `field` field, then + * if the match is successful: + * - the name of the single named segment will be used as a header name, + * - the match value of the segment will be used as a header value; + * if the match is NOT successful, nothing will be sent. + * Example: + * -- This is a field in the request message + * | that the header value will be extracted from. + * | + * | -- This is the key name in the + * | | routing header. + * V | + * field: "table_name" v + * path_template: "projects/{@*}{table_location=instances/*}/tables/*" + * ^ ^ + * | | + * In the {} brackets is the pattern that -- | + * specifies what to extract from the | + * field as a value to be sent. | + * | + * The string in the field must match the whole pattern -- + * before brackets, inside brackets, after brackets. + * When looking at this specific example, we can see that: + * - A key-value pair with the key `table_location` + * and the value matching `instances/*` should be added + * to the x-goog-request-params routing header. + * - The value is extracted from the request message's `table_name` field + * if it matches the full pattern specified: + * `projects/{@*}instances/{@*}tables/*`. + * **NB:** If the `path_template` field is not provided, the key name is + * equal to the field name, and the whole field should be sent as a value. + * This makes the pattern for the field and the value functionally equivalent + * to `**`, and the configuration + * { + * field: "table_name" + * } + * is a functionally equivalent shorthand to: + * { + * field: "table_name" + * path_template: "{table_name=**}" + * } + * See Example 1 for more details. + * + * Generated from protobuf field string path_template = 2; + */ + protected $path_template = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $field + * A request field to extract the header key-value pair from. + * @type string $path_template + * A pattern matching the key-value field. Optional. + * If not specified, the whole field specified in the `field` field will be + * taken as value, and its name used as key. If specified, it MUST contain + * exactly one named segment (along with any number of unnamed segments) The + * pattern will be matched over the field specified in the `field` field, then + * if the match is successful: + * - the name of the single named segment will be used as a header name, + * - the match value of the segment will be used as a header value; + * if the match is NOT successful, nothing will be sent. + * Example: + * -- This is a field in the request message + * | that the header value will be extracted from. + * | + * | -- This is the key name in the + * | | routing header. + * V | + * field: "table_name" v + * path_template: "projects/{@*}{table_location=instances/*}/tables/*" + * ^ ^ + * | | + * In the {} brackets is the pattern that -- | + * specifies what to extract from the | + * field as a value to be sent. | + * | + * The string in the field must match the whole pattern -- + * before brackets, inside brackets, after brackets. + * When looking at this specific example, we can see that: + * - A key-value pair with the key `table_location` + * and the value matching `instances/*` should be added + * to the x-goog-request-params routing header. + * - The value is extracted from the request message's `table_name` field + * if it matches the full pattern specified: + * `projects/{@*}instances/{@*}tables/*`. + * **NB:** If the `path_template` field is not provided, the key name is + * equal to the field name, and the whole field should be sent as a value. + * This makes the pattern for the field and the value functionally equivalent + * to `**`, and the configuration + * { + * field: "table_name" + * } + * is a functionally equivalent shorthand to: + * { + * field: "table_name" + * path_template: "{table_name=**}" + * } + * See Example 1 for more details. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Routing::initOnce(); + parent::__construct($data); + } + + /** + * A request field to extract the header key-value pair from. + * + * Generated from protobuf field string field = 1; + * @return string + */ + public function getField() + { + return $this->field; + } + + /** + * A request field to extract the header key-value pair from. + * + * Generated from protobuf field string field = 1; + * @param string $var + * @return $this + */ + public function setField($var) + { + GPBUtil::checkString($var, True); + $this->field = $var; + + return $this; + } + + /** + * A pattern matching the key-value field. Optional. + * If not specified, the whole field specified in the `field` field will be + * taken as value, and its name used as key. If specified, it MUST contain + * exactly one named segment (along with any number of unnamed segments) The + * pattern will be matched over the field specified in the `field` field, then + * if the match is successful: + * - the name of the single named segment will be used as a header name, + * - the match value of the segment will be used as a header value; + * if the match is NOT successful, nothing will be sent. + * Example: + * -- This is a field in the request message + * | that the header value will be extracted from. + * | + * | -- This is the key name in the + * | | routing header. + * V | + * field: "table_name" v + * path_template: "projects/{@*}{table_location=instances/*}/tables/*" + * ^ ^ + * | | + * In the {} brackets is the pattern that -- | + * specifies what to extract from the | + * field as a value to be sent. | + * | + * The string in the field must match the whole pattern -- + * before brackets, inside brackets, after brackets. + * When looking at this specific example, we can see that: + * - A key-value pair with the key `table_location` + * and the value matching `instances/*` should be added + * to the x-goog-request-params routing header. + * - The value is extracted from the request message's `table_name` field + * if it matches the full pattern specified: + * `projects/{@*}instances/{@*}tables/*`. + * **NB:** If the `path_template` field is not provided, the key name is + * equal to the field name, and the whole field should be sent as a value. + * This makes the pattern for the field and the value functionally equivalent + * to `**`, and the configuration + * { + * field: "table_name" + * } + * is a functionally equivalent shorthand to: + * { + * field: "table_name" + * path_template: "{table_name=**}" + * } + * See Example 1 for more details. + * + * Generated from protobuf field string path_template = 2; + * @return string + */ + public function getPathTemplate() + { + return $this->path_template; + } + + /** + * A pattern matching the key-value field. Optional. + * If not specified, the whole field specified in the `field` field will be + * taken as value, and its name used as key. If specified, it MUST contain + * exactly one named segment (along with any number of unnamed segments) The + * pattern will be matched over the field specified in the `field` field, then + * if the match is successful: + * - the name of the single named segment will be used as a header name, + * - the match value of the segment will be used as a header value; + * if the match is NOT successful, nothing will be sent. + * Example: + * -- This is a field in the request message + * | that the header value will be extracted from. + * | + * | -- This is the key name in the + * | | routing header. + * V | + * field: "table_name" v + * path_template: "projects/{@*}{table_location=instances/*}/tables/*" + * ^ ^ + * | | + * In the {} brackets is the pattern that -- | + * specifies what to extract from the | + * field as a value to be sent. | + * | + * The string in the field must match the whole pattern -- + * before brackets, inside brackets, after brackets. + * When looking at this specific example, we can see that: + * - A key-value pair with the key `table_location` + * and the value matching `instances/*` should be added + * to the x-goog-request-params routing header. + * - The value is extracted from the request message's `table_name` field + * if it matches the full pattern specified: + * `projects/{@*}instances/{@*}tables/*`. + * **NB:** If the `path_template` field is not provided, the key name is + * equal to the field name, and the whole field should be sent as a value. + * This makes the pattern for the field and the value functionally equivalent + * to `**`, and the configuration + * { + * field: "table_name" + * } + * is a functionally equivalent shorthand to: + * { + * field: "table_name" + * path_template: "{table_name=**}" + * } + * See Example 1 for more details. + * + * Generated from protobuf field string path_template = 2; + * @param string $var + * @return $this + */ + public function setPathTemplate($var) + { + GPBUtil::checkString($var, True); + $this->path_template = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/RoutingRule.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/RoutingRule.php new file mode 100644 index 000000000000..b6f939a5263d --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/RoutingRule.php @@ -0,0 +1,356 @@ +/tables/
` + * // - `projects//instances//tables/
` + * // - `region//zones//tables/
` + * string table_name = 1; + * // This value specifies routing for replication. + * // It can be in the following formats: + * // - `profiles/` + * // - a legacy `profile_id` that can be any string + * string app_profile_id = 2; + * } + * Example message: + * { + * table_name: projects/proj_foo/instances/instance_bar/table/table_baz, + * app_profile_id: profiles/prof_qux + * } + * The routing header consists of one or multiple key-value pairs. The order of + * the key-value pairs is undefined, the order of the `routing_parameters` in + * the `RoutingRule` only matters for the evaluation order of the path + * templates when `field` is the same. See the examples below for more details. + * Every key and value in the routing header must be percent-encoded, + * and joined together in the following format: `key1=value1&key2=value2`. + * The examples below skip the percent-encoding for readability. + * Example 1 + * Extracting a field from the request to put into the routing header + * unchanged, with the key equal to the field name. + * annotation: + * option (google.api.routing) = { + * // Take the `app_profile_id`. + * routing_parameters { + * field: "app_profile_id" + * } + * }; + * result: + * x-goog-request-params: app_profile_id=profiles/prof_qux + * Example 2 + * Extracting a field from the request to put into the routing header + * unchanged, with the key different from the field name. + * annotation: + * option (google.api.routing) = { + * // Take the `app_profile_id`, but name it `routing_id` in the header. + * routing_parameters { + * field: "app_profile_id" + * path_template: "{routing_id=**}" + * } + * }; + * result: + * x-goog-request-params: routing_id=profiles/prof_qux + * Example 3 + * Extracting a field from the request to put into the routing + * header, while matching a path template syntax on the field's value. + * NB: it is more useful to send nothing than to send garbage for the purpose + * of dynamic routing, since garbage pollutes cache. Thus the matching. + * Sub-example 3a + * The field matches the template. + * annotation: + * option (google.api.routing) = { + * // Take the `table_name`, if it's well-formed (with project-based + * // syntax). + * routing_parameters { + * field: "table_name" + * path_template: "{table_name=projects/{@*}instances/{@*}**}" + * } + * }; + * result: + * x-goog-request-params: + * table_name=projects/proj_foo/instances/instance_bar/table/table_baz + * Sub-example 3b + * The field does not match the template. + * annotation: + * option (google.api.routing) = { + * // Take the `table_name`, if it's well-formed (with region-based + * // syntax). + * routing_parameters { + * field: "table_name" + * path_template: "{table_name=regions/{@*}zones/{@*}**}" + * } + * }; + * result: + * + * Sub-example 3c + * Multiple alternative conflictingly named path templates are + * specified. The one that matches is used to construct the header. + * annotation: + * option (google.api.routing) = { + * // Take the `table_name`, if it's well-formed, whether + * // using the region- or projects-based syntax. + * routing_parameters { + * field: "table_name" + * path_template: "{table_name=regions/{@*}zones/{@*}**}" + * } + * routing_parameters { + * field: "table_name" + * path_template: "{table_name=projects/{@*}instances/{@*}**}" + * } + * }; + * result: + * x-goog-request-params: + * table_name=projects/proj_foo/instances/instance_bar/table/table_baz + * Example 4 + * Extracting a single routing header key-value pair by matching a + * template syntax on (a part of) a single request field. + * annotation: + * option (google.api.routing) = { + * // Take just the project id from the `table_name` field. + * routing_parameters { + * field: "table_name" + * path_template: "{routing_id=projects/*}/**" + * } + * }; + * result: + * x-goog-request-params: routing_id=projects/proj_foo + * Example 5 + * Extracting a single routing header key-value pair by matching + * several conflictingly named path templates on (parts of) a single request + * field. The last template to match "wins" the conflict. + * annotation: + * option (google.api.routing) = { + * // If the `table_name` does not have instances information, + * // take just the project id for routing. + * // Otherwise take project + instance. + * routing_parameters { + * field: "table_name" + * path_template: "{routing_id=projects/*}/**" + * } + * routing_parameters { + * field: "table_name" + * path_template: "{routing_id=projects/{@*}instances/*}/**" + * } + * }; + * result: + * x-goog-request-params: + * routing_id=projects/proj_foo/instances/instance_bar + * Example 6 + * Extracting multiple routing header key-value pairs by matching + * several non-conflicting path templates on (parts of) a single request field. + * Sub-example 6a + * Make the templates strict, so that if the `table_name` does not + * have an instance information, nothing is sent. + * annotation: + * option (google.api.routing) = { + * // The routing code needs two keys instead of one composite + * // but works only for the tables with the "project-instance" name + * // syntax. + * routing_parameters { + * field: "table_name" + * path_template: "{project_id=projects/*}/instances/{@*}**" + * } + * routing_parameters { + * field: "table_name" + * path_template: "projects/{@*}{instance_id=instances/*}/**" + * } + * }; + * result: + * x-goog-request-params: + * project_id=projects/proj_foo&instance_id=instances/instance_bar + * Sub-example 6b + * Make the templates loose, so that if the `table_name` does not + * have an instance information, just the project id part is sent. + * annotation: + * option (google.api.routing) = { + * // The routing code wants two keys instead of one composite + * // but will work with just the `project_id` for tables without + * // an instance in the `table_name`. + * routing_parameters { + * field: "table_name" + * path_template: "{project_id=projects/*}/**" + * } + * routing_parameters { + * field: "table_name" + * path_template: "projects/{@*}{instance_id=instances/*}/**" + * } + * }; + * result (is the same as 6a for our example message because it has the instance + * information): + * x-goog-request-params: + * project_id=projects/proj_foo&instance_id=instances/instance_bar + * Example 7 + * Extracting multiple routing header key-value pairs by matching + * several path templates on multiple request fields. + * NB: note that here there is no way to specify sending nothing if one of the + * fields does not match its template. E.g. if the `table_name` is in the wrong + * format, the `project_id` will not be sent, but the `routing_id` will be. + * The backend routing code has to be aware of that and be prepared to not + * receive a full complement of keys if it expects multiple. + * annotation: + * option (google.api.routing) = { + * // The routing needs both `project_id` and `routing_id` + * // (from the `app_profile_id` field) for routing. + * routing_parameters { + * field: "table_name" + * path_template: "{project_id=projects/*}/**" + * } + * routing_parameters { + * field: "app_profile_id" + * path_template: "{routing_id=**}" + * } + * }; + * result: + * x-goog-request-params: + * project_id=projects/proj_foo&routing_id=profiles/prof_qux + * Example 8 + * Extracting a single routing header key-value pair by matching + * several conflictingly named path templates on several request fields. The + * last template to match "wins" the conflict. + * annotation: + * option (google.api.routing) = { + * // The `routing_id` can be a project id or a region id depending on + * // the table name format, but only if the `app_profile_id` is not set. + * // If `app_profile_id` is set it should be used instead. + * routing_parameters { + * field: "table_name" + * path_template: "{routing_id=projects/*}/**" + * } + * routing_parameters { + * field: "table_name" + * path_template: "{routing_id=regions/*}/**" + * } + * routing_parameters { + * field: "app_profile_id" + * path_template: "{routing_id=**}" + * } + * }; + * result: + * x-goog-request-params: routing_id=profiles/prof_qux + * Example 9 + * Bringing it all together. + * annotation: + * option (google.api.routing) = { + * // For routing both `table_location` and a `routing_id` are needed. + * // + * // table_location can be either an instance id or a region+zone id. + * // + * // For `routing_id`, take the value of `app_profile_id` + * // - If it's in the format `profiles/`, send + * // just the `` part. + * // - If it's any other literal, send it as is. + * // If the `app_profile_id` is empty, and the `table_name` starts with + * // the project_id, send that instead. + * routing_parameters { + * field: "table_name" + * path_template: "projects/{@*}{table_location=instances/*}/tables/*" + * } + * routing_parameters { + * field: "table_name" + * path_template: "{table_location=regions/{@*}zones/*}/tables/*" + * } + * routing_parameters { + * field: "table_name" + * path_template: "{routing_id=projects/*}/**" + * } + * routing_parameters { + * field: "app_profile_id" + * path_template: "{routing_id=**}" + * } + * routing_parameters { + * field: "app_profile_id" + * path_template: "profiles/{routing_id=*}" + * } + * }; + * result: + * x-goog-request-params: + * table_location=instances/instance_bar&routing_id=prof_qux + * + * Generated from protobuf message google.api.RoutingRule + */ +class RoutingRule extends \Google\Protobuf\Internal\Message +{ + /** + * A collection of Routing Parameter specifications. + * **NOTE:** If multiple Routing Parameters describe the same key + * (via the `path_template` field or via the `field` field when + * `path_template` is not provided), "last one wins" rule + * determines which Parameter gets used. + * See the examples for more details. + * + * Generated from protobuf field repeated .google.api.RoutingParameter routing_parameters = 2; + */ + private $routing_parameters; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Api\RoutingParameter[] $routing_parameters + * A collection of Routing Parameter specifications. + * **NOTE:** If multiple Routing Parameters describe the same key + * (via the `path_template` field or via the `field` field when + * `path_template` is not provided), "last one wins" rule + * determines which Parameter gets used. + * See the examples for more details. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Routing::initOnce(); + parent::__construct($data); + } + + /** + * A collection of Routing Parameter specifications. + * **NOTE:** If multiple Routing Parameters describe the same key + * (via the `path_template` field or via the `field` field when + * `path_template` is not provided), "last one wins" rule + * determines which Parameter gets used. + * See the examples for more details. + * + * Generated from protobuf field repeated .google.api.RoutingParameter routing_parameters = 2; + * @return RepeatedField<\Google\Api\RoutingParameter> + */ + public function getRoutingParameters() + { + return $this->routing_parameters; + } + + /** + * A collection of Routing Parameter specifications. + * **NOTE:** If multiple Routing Parameters describe the same key + * (via the `path_template` field or via the `field` field when + * `path_template` is not provided), "last one wins" rule + * determines which Parameter gets used. + * See the examples for more details. + * + * Generated from protobuf field repeated .google.api.RoutingParameter routing_parameters = 2; + * @param \Google\Api\RoutingParameter[] $var + * @return $this + */ + public function setRoutingParameters($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\RoutingParameter::class); + $this->routing_parameters = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/RubySettings.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/RubySettings.php new file mode 100644 index 000000000000..2bf1340bde94 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/RubySettings.php @@ -0,0 +1,77 @@ +google.api.RubySettings + */ +class RubySettings extends \Google\Protobuf\Internal\Message +{ + /** + * Some settings. + * + * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; + */ + protected $common = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Api\CommonLanguageSettings $common + * Some settings. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Client::initOnce(); + parent::__construct($data); + } + + /** + * Some settings. + * + * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; + * @return \Google\Api\CommonLanguageSettings|null + */ + public function getCommon() + { + return $this->common; + } + + public function hasCommon() + { + return isset($this->common); + } + + public function clearCommon() + { + unset($this->common); + } + + /** + * Some settings. + * + * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; + * @param \Google\Api\CommonLanguageSettings $var + * @return $this + */ + public function setCommon($var) + { + GPBUtil::checkMessage($var, \Google\Api\CommonLanguageSettings::class); + $this->common = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/SelectiveGapicGeneration.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/SelectiveGapicGeneration.php new file mode 100644 index 000000000000..a6cbea6126c3 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/SelectiveGapicGeneration.php @@ -0,0 +1,126 @@ +google.api.SelectiveGapicGeneration + */ +class SelectiveGapicGeneration extends \Google\Protobuf\Internal\Message +{ + /** + * An allowlist of the fully qualified names of RPCs that should be included + * on public client surfaces. + * + * Generated from protobuf field repeated string methods = 1; + */ + private $methods; + /** + * Setting this to true indicates to the client generators that methods + * that would be excluded from the generation should instead be generated + * in a way that indicates these methods should not be consumed by + * end users. How this is expressed is up to individual language + * implementations to decide. Some examples may be: added annotations, + * obfuscated identifiers, or other language idiomatic patterns. + * + * Generated from protobuf field bool generate_omitted_as_internal = 2; + */ + protected $generate_omitted_as_internal = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string[] $methods + * An allowlist of the fully qualified names of RPCs that should be included + * on public client surfaces. + * @type bool $generate_omitted_as_internal + * Setting this to true indicates to the client generators that methods + * that would be excluded from the generation should instead be generated + * in a way that indicates these methods should not be consumed by + * end users. How this is expressed is up to individual language + * implementations to decide. Some examples may be: added annotations, + * obfuscated identifiers, or other language idiomatic patterns. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Client::initOnce(); + parent::__construct($data); + } + + /** + * An allowlist of the fully qualified names of RPCs that should be included + * on public client surfaces. + * + * Generated from protobuf field repeated string methods = 1; + * @return RepeatedField + */ + public function getMethods() + { + return $this->methods; + } + + /** + * An allowlist of the fully qualified names of RPCs that should be included + * on public client surfaces. + * + * Generated from protobuf field repeated string methods = 1; + * @param string[] $var + * @return $this + */ + public function setMethods($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->methods = $arr; + + return $this; + } + + /** + * Setting this to true indicates to the client generators that methods + * that would be excluded from the generation should instead be generated + * in a way that indicates these methods should not be consumed by + * end users. How this is expressed is up to individual language + * implementations to decide. Some examples may be: added annotations, + * obfuscated identifiers, or other language idiomatic patterns. + * + * Generated from protobuf field bool generate_omitted_as_internal = 2; + * @return bool + */ + public function getGenerateOmittedAsInternal() + { + return $this->generate_omitted_as_internal; + } + + /** + * Setting this to true indicates to the client generators that methods + * that would be excluded from the generation should instead be generated + * in a way that indicates these methods should not be consumed by + * end users. How this is expressed is up to individual language + * implementations to decide. Some examples may be: added annotations, + * obfuscated identifiers, or other language idiomatic patterns. + * + * Generated from protobuf field bool generate_omitted_as_internal = 2; + * @param bool $var + * @return $this + */ + public function setGenerateOmittedAsInternal($var) + { + GPBUtil::checkBool($var); + $this->generate_omitted_as_internal = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Service.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Service.php new file mode 100644 index 000000000000..a5bbee008b0d --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Service.php @@ -0,0 +1,1242 @@ +google.api.Service + */ +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 string name = 1; + */ + protected $name = ''; + /** + * The product title for this service, it is the name displayed in Google + * Cloud Console. + * + * Generated from protobuf field string title = 2; + */ + protected $title = ''; + /** + * The Google project that owns this service. + * + * Generated from protobuf field string producer_project_id = 22; + */ + 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 string id = 33; + */ + 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 repeated .google.protobuf.Api apis = 3; + */ + 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 repeated .google.protobuf.Type types = 4; + */ + 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 repeated .google.protobuf.Enum enums = 5; + */ + private $enums; + /** + * Additional API documentation. + * + * Generated from protobuf field .google.api.Documentation documentation = 6; + */ + protected $documentation = null; + /** + * API backend configuration. + * + * Generated from protobuf field .google.api.Backend backend = 8; + */ + protected $backend = null; + /** + * HTTP configuration. + * + * Generated from protobuf field .google.api.Http http = 9; + */ + protected $http = null; + /** + * Quota configuration. + * + * Generated from protobuf field .google.api.Quota quota = 10; + */ + protected $quota = null; + /** + * Auth configuration. + * + * Generated from protobuf field .google.api.Authentication authentication = 11; + */ + protected $authentication = null; + /** + * Context configuration. + * + * Generated from protobuf field .google.api.Context context = 12; + */ + protected $context = null; + /** + * Configuration controlling usage of this service. + * + * Generated from protobuf field .google.api.Usage usage = 15; + */ + 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 repeated .google.api.Endpoint endpoints = 18; + */ + private $endpoints; + /** + * Configuration for the service control plane. + * + * Generated from protobuf field .google.api.Control control = 21; + */ + protected $control = null; + /** + * Defines the logs used by this service. + * + * Generated from protobuf field repeated .google.api.LogDescriptor logs = 23; + */ + private $logs; + /** + * Defines the metrics used by this service. + * + * Generated from protobuf field repeated .google.api.MetricDescriptor metrics = 24; + */ + 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 repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25; + */ + private $monitored_resources; + /** + * Billing configuration. + * + * Generated from protobuf field .google.api.Billing billing = 26; + */ + protected $billing = null; + /** + * Logging configuration. + * + * Generated from protobuf field .google.api.Logging logging = 27; + */ + protected $logging = null; + /** + * Monitoring configuration. + * + * Generated from protobuf field .google.api.Monitoring monitoring = 28; + */ + protected $monitoring = null; + /** + * System parameter configuration. + * + * Generated from protobuf field .google.api.SystemParameters system_parameters = 29; + */ + protected $system_parameters = null; + /** + * Output only. The source information for this configuration if available. + * + * Generated from protobuf field .google.api.SourceInfo source_info = 37; + */ + 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 .google.api.Publishing publishing = 45; + */ + 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 .google.protobuf.UInt32Value config_version = 20; + */ + 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 string name = 1; + * @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 string name = 1; + * @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 string title = 2; + * @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 string title = 2; + * @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 string producer_project_id = 22; + * @return string + */ + public function getProducerProjectId() + { + return $this->producer_project_id; + } + + /** + * The Google project that owns this service. + * + * Generated from protobuf field string producer_project_id = 22; + * @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 string id = 33; + * @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 string id = 33; + * @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 repeated .google.protobuf.Api apis = 3; + * @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 repeated .google.protobuf.Api apis = 3; + * @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 repeated .google.protobuf.Type types = 4; + * @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 repeated .google.protobuf.Type types = 4; + * @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 repeated .google.protobuf.Enum enums = 5; + * @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 repeated .google.protobuf.Enum enums = 5; + * @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 .google.api.Documentation documentation = 6; + * @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 .google.api.Documentation documentation = 6; + * @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 .google.api.Backend backend = 8; + * @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 .google.api.Backend backend = 8; + * @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 .google.api.Http http = 9; + * @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 .google.api.Http http = 9; + * @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 .google.api.Quota quota = 10; + * @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 .google.api.Quota quota = 10; + * @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 .google.api.Authentication authentication = 11; + * @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 .google.api.Authentication authentication = 11; + * @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 .google.api.Context context = 12; + * @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 .google.api.Context context = 12; + * @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 .google.api.Usage usage = 15; + * @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 .google.api.Usage usage = 15; + * @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 repeated .google.api.Endpoint endpoints = 18; + * @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 repeated .google.api.Endpoint endpoints = 18; + * @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 .google.api.Control control = 21; + * @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 .google.api.Control control = 21; + * @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 repeated .google.api.LogDescriptor logs = 23; + * @return RepeatedField<\Google\Api\LogDescriptor> + */ + public function getLogs() + { + return $this->logs; + } + + /** + * Defines the logs used by this service. + * + * Generated from protobuf field repeated .google.api.LogDescriptor logs = 23; + * @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 repeated .google.api.MetricDescriptor metrics = 24; + * @return RepeatedField<\Google\Api\MetricDescriptor> + */ + public function getMetrics() + { + return $this->metrics; + } + + /** + * Defines the metrics used by this service. + * + * Generated from protobuf field repeated .google.api.MetricDescriptor metrics = 24; + * @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 repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25; + * @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 repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25; + * @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 .google.api.Billing billing = 26; + * @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 .google.api.Billing billing = 26; + * @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 .google.api.Logging logging = 27; + * @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 .google.api.Logging logging = 27; + * @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 .google.api.Monitoring monitoring = 28; + * @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 .google.api.Monitoring monitoring = 28; + * @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 .google.api.SystemParameters system_parameters = 29; + * @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 .google.api.SystemParameters system_parameters = 29; + * @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 .google.api.SourceInfo source_info = 37; + * @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 .google.api.SourceInfo source_info = 37; + * @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 .google.api.Publishing publishing = 45; + * @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 .google.api.Publishing publishing = 45; + * @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 .google.protobuf.UInt32Value config_version = 20; + * @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 getConfigVersion() + + * Obsolete. Do not use. + * This field has no semantic meaning. The service config compiler always + * sets this field to `3`. + * + * Generated from protobuf field .google.protobuf.UInt32Value config_version = 20; + * @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 .google.protobuf.UInt32Value config_version = 20; + * @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 .google.protobuf.UInt32Value config_version = 20; + * @param int|null $var + * @return $this + */ + public function setConfigVersionUnwrapped($var) + { + $this->writeWrapperValue("config_version", $var); + return $this;} + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/SourceInfo.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/SourceInfo.php new file mode 100644 index 000000000000..c97ca068abce --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/SourceInfo.php @@ -0,0 +1,67 @@ +google.api.SourceInfo + */ +class SourceInfo extends \Google\Protobuf\Internal\Message +{ + /** + * All files used during config generation. + * + * Generated from protobuf field repeated .google.protobuf.Any source_files = 1; + */ + private $source_files; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\Any[] $source_files + * All files used during config generation. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\SourceInfo::initOnce(); + parent::__construct($data); + } + + /** + * All files used during config generation. + * + * Generated from protobuf field repeated .google.protobuf.Any source_files = 1; + * @return RepeatedField<\Google\Protobuf\Any> + */ + public function getSourceFiles() + { + return $this->source_files; + } + + /** + * All files used during config generation. + * + * Generated from protobuf field repeated .google.protobuf.Any source_files = 1; + * @param \Google\Protobuf\Any[] $var + * @return $this + */ + public function setSourceFiles($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Any::class); + $this->source_files = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/SystemParameter.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/SystemParameter.php new file mode 100644 index 000000000000..b8c30aa23950 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/SystemParameter.php @@ -0,0 +1,145 @@ +google.api.SystemParameter + */ +class SystemParameter extends \Google\Protobuf\Internal\Message +{ + /** + * Define the name of the parameter, such as "api_key" . It is case sensitive. + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * Define the HTTP header name to use for the parameter. It is case + * insensitive. + * + * Generated from protobuf field string http_header = 2; + */ + protected $http_header = ''; + /** + * Define the URL query parameter name to use for the parameter. It is case + * sensitive. + * + * Generated from protobuf field string url_query_parameter = 3; + */ + protected $url_query_parameter = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Define the name of the parameter, such as "api_key" . It is case sensitive. + * @type string $http_header + * Define the HTTP header name to use for the parameter. It is case + * insensitive. + * @type string $url_query_parameter + * Define the URL query parameter name to use for the parameter. It is case + * sensitive. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\SystemParameter::initOnce(); + parent::__construct($data); + } + + /** + * Define the name of the parameter, such as "api_key" . It is case sensitive. + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Define the name of the parameter, such as "api_key" . It is case sensitive. + * + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Define the HTTP header name to use for the parameter. It is case + * insensitive. + * + * Generated from protobuf field string http_header = 2; + * @return string + */ + public function getHttpHeader() + { + return $this->http_header; + } + + /** + * Define the HTTP header name to use for the parameter. It is case + * insensitive. + * + * Generated from protobuf field string http_header = 2; + * @param string $var + * @return $this + */ + public function setHttpHeader($var) + { + GPBUtil::checkString($var, True); + $this->http_header = $var; + + return $this; + } + + /** + * Define the URL query parameter name to use for the parameter. It is case + * sensitive. + * + * Generated from protobuf field string url_query_parameter = 3; + * @return string + */ + public function getUrlQueryParameter() + { + return $this->url_query_parameter; + } + + /** + * Define the URL query parameter name to use for the parameter. It is case + * sensitive. + * + * Generated from protobuf field string url_query_parameter = 3; + * @param string $var + * @return $this + */ + public function setUrlQueryParameter($var) + { + GPBUtil::checkString($var, True); + $this->url_query_parameter = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/SystemParameterRule.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/SystemParameterRule.php new file mode 100644 index 000000000000..ee62ecfc8335 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/SystemParameterRule.php @@ -0,0 +1,130 @@ +google.api.SystemParameterRule + */ +class SystemParameterRule extends \Google\Protobuf\Internal\Message +{ + /** + * Selects the methods to which this rule applies. Use '*' to indicate all + * methods in all APIs. + * Refer to [selector][google.api.DocumentationRule.selector] for syntax + * details. + * + * Generated from protobuf field string selector = 1; + */ + protected $selector = ''; + /** + * Define parameters. Multiple names may be defined for a parameter. + * For a given method call, only one of them should be used. If multiple + * names are used the behavior is implementation-dependent. + * If none of the specified names are present the behavior is + * parameter-dependent. + * + * Generated from protobuf field repeated .google.api.SystemParameter parameters = 2; + */ + private $parameters; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $selector + * Selects the methods to which this rule applies. Use '*' to indicate all + * methods in all APIs. + * Refer to [selector][google.api.DocumentationRule.selector] for syntax + * details. + * @type \Google\Api\SystemParameter[] $parameters + * Define parameters. Multiple names may be defined for a parameter. + * For a given method call, only one of them should be used. If multiple + * names are used the behavior is implementation-dependent. + * If none of the specified names are present the behavior is + * parameter-dependent. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\SystemParameter::initOnce(); + parent::__construct($data); + } + + /** + * Selects the methods to which this rule applies. Use '*' to indicate all + * methods in all APIs. + * Refer to [selector][google.api.DocumentationRule.selector] for syntax + * details. + * + * Generated from protobuf field string selector = 1; + * @return string + */ + public function getSelector() + { + return $this->selector; + } + + /** + * Selects the methods to which this rule applies. Use '*' to indicate all + * methods in all APIs. + * Refer to [selector][google.api.DocumentationRule.selector] for syntax + * details. + * + * Generated from protobuf field string selector = 1; + * @param string $var + * @return $this + */ + public function setSelector($var) + { + GPBUtil::checkString($var, True); + $this->selector = $var; + + return $this; + } + + /** + * Define parameters. Multiple names may be defined for a parameter. + * For a given method call, only one of them should be used. If multiple + * names are used the behavior is implementation-dependent. + * If none of the specified names are present the behavior is + * parameter-dependent. + * + * Generated from protobuf field repeated .google.api.SystemParameter parameters = 2; + * @return RepeatedField<\Google\Api\SystemParameter> + */ + public function getParameters() + { + return $this->parameters; + } + + /** + * Define parameters. Multiple names may be defined for a parameter. + * For a given method call, only one of them should be used. If multiple + * names are used the behavior is implementation-dependent. + * If none of the specified names are present the behavior is + * parameter-dependent. + * + * Generated from protobuf field repeated .google.api.SystemParameter parameters = 2; + * @param \Google\Api\SystemParameter[] $var + * @return $this + */ + public function setParameters($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\SystemParameter::class); + $this->parameters = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/SystemParameters.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/SystemParameters.php new file mode 100644 index 000000000000..1b51eb267f85 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/SystemParameters.php @@ -0,0 +1,155 @@ +google.api.SystemParameters + */ +class SystemParameters extends \Google\Protobuf\Internal\Message +{ + /** + * Define system parameters. + * The parameters defined here will override the default parameters + * implemented by the system. If this field is missing from the service + * config, default system parameters will be used. Default system parameters + * and names is implementation-dependent. + * Example: define api key for all methods + * system_parameters + * rules: + * - selector: "*" + * parameters: + * - name: api_key + * url_query_parameter: api_key + * Example: define 2 api key names for a specific method. + * system_parameters + * rules: + * - selector: "/ListShelves" + * parameters: + * - name: api_key + * http_header: Api-Key1 + * - name: api_key + * http_header: Api-Key2 + * **NOTE:** All service configuration rules follow "last one wins" order. + * + * Generated from protobuf field repeated .google.api.SystemParameterRule rules = 1; + */ + private $rules; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Api\SystemParameterRule[] $rules + * Define system parameters. + * The parameters defined here will override the default parameters + * implemented by the system. If this field is missing from the service + * config, default system parameters will be used. Default system parameters + * and names is implementation-dependent. + * Example: define api key for all methods + * system_parameters + * rules: + * - selector: "*" + * parameters: + * - name: api_key + * url_query_parameter: api_key + * Example: define 2 api key names for a specific method. + * system_parameters + * rules: + * - selector: "/ListShelves" + * parameters: + * - name: api_key + * http_header: Api-Key1 + * - name: api_key + * http_header: Api-Key2 + * **NOTE:** All service configuration rules follow "last one wins" order. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\SystemParameter::initOnce(); + parent::__construct($data); + } + + /** + * Define system parameters. + * The parameters defined here will override the default parameters + * implemented by the system. If this field is missing from the service + * config, default system parameters will be used. Default system parameters + * and names is implementation-dependent. + * Example: define api key for all methods + * system_parameters + * rules: + * - selector: "*" + * parameters: + * - name: api_key + * url_query_parameter: api_key + * Example: define 2 api key names for a specific method. + * system_parameters + * rules: + * - selector: "/ListShelves" + * parameters: + * - name: api_key + * http_header: Api-Key1 + * - name: api_key + * http_header: Api-Key2 + * **NOTE:** All service configuration rules follow "last one wins" order. + * + * Generated from protobuf field repeated .google.api.SystemParameterRule rules = 1; + * @return RepeatedField<\Google\Api\SystemParameterRule> + */ + public function getRules() + { + return $this->rules; + } + + /** + * Define system parameters. + * The parameters defined here will override the default parameters + * implemented by the system. If this field is missing from the service + * config, default system parameters will be used. Default system parameters + * and names is implementation-dependent. + * Example: define api key for all methods + * system_parameters + * rules: + * - selector: "*" + * parameters: + * - name: api_key + * url_query_parameter: api_key + * Example: define 2 api key names for a specific method. + * system_parameters + * rules: + * - selector: "/ListShelves" + * parameters: + * - name: api_key + * http_header: Api-Key1 + * - name: api_key + * http_header: Api-Key2 + * **NOTE:** All service configuration rules follow "last one wins" order. + * + * Generated from protobuf field repeated .google.api.SystemParameterRule rules = 1; + * @param \Google\Api\SystemParameterRule[] $var + * @return $this + */ + public function setRules($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\SystemParameterRule::class); + $this->rules = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/TypeReference.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/TypeReference.php new file mode 100644 index 000000000000..5f190607061a --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/TypeReference.php @@ -0,0 +1,91 @@ +google.api.TypeReference + */ +class TypeReference extends \Google\Protobuf\Internal\Message +{ + /** + * The name of the type that the annotated, generic field may represent. + * If the type is in the same protobuf package, the value can be the simple + * message name e.g., `"MyMessage"`. Otherwise, the value must be the + * fully-qualified message name e.g., `"google.library.v1.Book"`. + * If the type(s) are unknown to the service (e.g. the field accepts generic + * user input), use the wildcard `"*"` to denote this behavior. + * See [AIP-202](https://google.aip.dev/202#type-references) for more details. + * + * Generated from protobuf field string type_name = 1; + */ + protected $type_name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $type_name + * The name of the type that the annotated, generic field may represent. + * If the type is in the same protobuf package, the value can be the simple + * message name e.g., `"MyMessage"`. Otherwise, the value must be the + * fully-qualified message name e.g., `"google.library.v1.Book"`. + * If the type(s) are unknown to the service (e.g. the field accepts generic + * user input), use the wildcard `"*"` to denote this behavior. + * See [AIP-202](https://google.aip.dev/202#type-references) for more details. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\FieldInfo::initOnce(); + parent::__construct($data); + } + + /** + * The name of the type that the annotated, generic field may represent. + * If the type is in the same protobuf package, the value can be the simple + * message name e.g., `"MyMessage"`. Otherwise, the value must be the + * fully-qualified message name e.g., `"google.library.v1.Book"`. + * If the type(s) are unknown to the service (e.g. the field accepts generic + * user input), use the wildcard `"*"` to denote this behavior. + * See [AIP-202](https://google.aip.dev/202#type-references) for more details. + * + * Generated from protobuf field string type_name = 1; + * @return string + */ + public function getTypeName() + { + return $this->type_name; + } + + /** + * The name of the type that the annotated, generic field may represent. + * If the type is in the same protobuf package, the value can be the simple + * message name e.g., `"MyMessage"`. Otherwise, the value must be the + * fully-qualified message name e.g., `"google.library.v1.Book"`. + * If the type(s) are unknown to the service (e.g. the field accepts generic + * user input), use the wildcard `"*"` to denote this behavior. + * See [AIP-202](https://google.aip.dev/202#type-references) for more details. + * + * Generated from protobuf field string type_name = 1; + * @param string $var + * @return $this + */ + public function setTypeName($var) + { + GPBUtil::checkString($var, True); + $this->type_name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Usage.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Usage.php new file mode 100644 index 000000000000..e5d7e71c46b6 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Usage.php @@ -0,0 +1,191 @@ +google.api.Usage + */ +class Usage extends \Google\Protobuf\Internal\Message +{ + /** + * Requirements that must be satisfied before a consumer project can use the + * service. Each requirement is of the form /; + * for example 'serviceusage.googleapis.com/billing-enabled'. + * For Google APIs, a Terms of Service requirement must be included here. + * Google Cloud APIs must include "serviceusage.googleapis.com/tos/cloud". + * Other Google APIs should include + * "serviceusage.googleapis.com/tos/universal". Additional ToS can be + * included based on the business needs. + * + * Generated from protobuf field repeated string requirements = 1; + */ + private $requirements; + /** + * A list of usage rules that apply to individual API methods. + * **NOTE:** All service configuration rules follow "last one wins" order. + * + * Generated from protobuf field repeated .google.api.UsageRule rules = 6; + */ + private $rules; + /** + * The full resource name of a channel used for sending notifications to the + * service producer. + * Google Service Management currently only supports + * [Google Cloud Pub/Sub](https://cloud.google.com/pubsub) as a notification + * channel. To use Google Cloud Pub/Sub as the channel, this must be the name + * of a Cloud Pub/Sub topic that uses the Cloud Pub/Sub topic name format + * documented in https://cloud.google.com/pubsub/docs/overview. + * + * Generated from protobuf field string producer_notification_channel = 7; + */ + protected $producer_notification_channel = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string[] $requirements + * Requirements that must be satisfied before a consumer project can use the + * service. Each requirement is of the form /; + * for example 'serviceusage.googleapis.com/billing-enabled'. + * For Google APIs, a Terms of Service requirement must be included here. + * Google Cloud APIs must include "serviceusage.googleapis.com/tos/cloud". + * Other Google APIs should include + * "serviceusage.googleapis.com/tos/universal". Additional ToS can be + * included based on the business needs. + * @type \Google\Api\UsageRule[] $rules + * A list of usage rules that apply to individual API methods. + * **NOTE:** All service configuration rules follow "last one wins" order. + * @type string $producer_notification_channel + * The full resource name of a channel used for sending notifications to the + * service producer. + * Google Service Management currently only supports + * [Google Cloud Pub/Sub](https://cloud.google.com/pubsub) as a notification + * channel. To use Google Cloud Pub/Sub as the channel, this must be the name + * of a Cloud Pub/Sub topic that uses the Cloud Pub/Sub topic name format + * documented in https://cloud.google.com/pubsub/docs/overview. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Usage::initOnce(); + parent::__construct($data); + } + + /** + * Requirements that must be satisfied before a consumer project can use the + * service. Each requirement is of the form /; + * for example 'serviceusage.googleapis.com/billing-enabled'. + * For Google APIs, a Terms of Service requirement must be included here. + * Google Cloud APIs must include "serviceusage.googleapis.com/tos/cloud". + * Other Google APIs should include + * "serviceusage.googleapis.com/tos/universal". Additional ToS can be + * included based on the business needs. + * + * Generated from protobuf field repeated string requirements = 1; + * @return RepeatedField + */ + public function getRequirements() + { + return $this->requirements; + } + + /** + * Requirements that must be satisfied before a consumer project can use the + * service. Each requirement is of the form /; + * for example 'serviceusage.googleapis.com/billing-enabled'. + * For Google APIs, a Terms of Service requirement must be included here. + * Google Cloud APIs must include "serviceusage.googleapis.com/tos/cloud". + * Other Google APIs should include + * "serviceusage.googleapis.com/tos/universal". Additional ToS can be + * included based on the business needs. + * + * Generated from protobuf field repeated string requirements = 1; + * @param string[] $var + * @return $this + */ + public function setRequirements($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->requirements = $arr; + + return $this; + } + + /** + * A list of usage rules that apply to individual API methods. + * **NOTE:** All service configuration rules follow "last one wins" order. + * + * Generated from protobuf field repeated .google.api.UsageRule rules = 6; + * @return RepeatedField<\Google\Api\UsageRule> + */ + public function getRules() + { + return $this->rules; + } + + /** + * A list of usage rules that apply to individual API methods. + * **NOTE:** All service configuration rules follow "last one wins" order. + * + * Generated from protobuf field repeated .google.api.UsageRule rules = 6; + * @param \Google\Api\UsageRule[] $var + * @return $this + */ + public function setRules($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\UsageRule::class); + $this->rules = $arr; + + return $this; + } + + /** + * The full resource name of a channel used for sending notifications to the + * service producer. + * Google Service Management currently only supports + * [Google Cloud Pub/Sub](https://cloud.google.com/pubsub) as a notification + * channel. To use Google Cloud Pub/Sub as the channel, this must be the name + * of a Cloud Pub/Sub topic that uses the Cloud Pub/Sub topic name format + * documented in https://cloud.google.com/pubsub/docs/overview. + * + * Generated from protobuf field string producer_notification_channel = 7; + * @return string + */ + public function getProducerNotificationChannel() + { + return $this->producer_notification_channel; + } + + /** + * The full resource name of a channel used for sending notifications to the + * service producer. + * Google Service Management currently only supports + * [Google Cloud Pub/Sub](https://cloud.google.com/pubsub) as a notification + * channel. To use Google Cloud Pub/Sub as the channel, this must be the name + * of a Cloud Pub/Sub topic that uses the Cloud Pub/Sub topic name format + * documented in https://cloud.google.com/pubsub/docs/overview. + * + * Generated from protobuf field string producer_notification_channel = 7; + * @param string $var + * @return $this + */ + public function setProducerNotificationChannel($var) + { + GPBUtil::checkString($var, True); + $this->producer_notification_channel = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/UsageRule.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/UsageRule.php new file mode 100644 index 000000000000..73fac2210f68 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/UsageRule.php @@ -0,0 +1,175 @@ +google.api.UsageRule + */ +class UsageRule extends \Google\Protobuf\Internal\Message +{ + /** + * Selects the methods to which this rule applies. Use '*' to indicate all + * methods in all APIs. + * Refer to [selector][google.api.DocumentationRule.selector] for syntax + * details. + * + * Generated from protobuf field string selector = 1; + */ + protected $selector = ''; + /** + * Use this rule to configure unregistered calls for the service. Unregistered + * calls are calls that do not contain consumer project identity. + * (Example: calls that do not contain an API key). + * WARNING: By default, API methods do not allow unregistered calls, and each + * method call must be identified by a consumer project identity. + * + * Generated from protobuf field bool allow_unregistered_calls = 2; + */ + protected $allow_unregistered_calls = false; + /** + * If true, the selected method should skip service control and the control + * plane features, such as quota and billing, will not be available. + * This flag is used by Google Cloud Endpoints to bypass checks for internal + * methods, such as service health check methods. + * + * Generated from protobuf field bool skip_service_control = 3; + */ + protected $skip_service_control = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $selector + * Selects the methods to which this rule applies. Use '*' to indicate all + * methods in all APIs. + * Refer to [selector][google.api.DocumentationRule.selector] for syntax + * details. + * @type bool $allow_unregistered_calls + * Use this rule to configure unregistered calls for the service. Unregistered + * calls are calls that do not contain consumer project identity. + * (Example: calls that do not contain an API key). + * WARNING: By default, API methods do not allow unregistered calls, and each + * method call must be identified by a consumer project identity. + * @type bool $skip_service_control + * If true, the selected method should skip service control and the control + * plane features, such as quota and billing, will not be available. + * This flag is used by Google Cloud Endpoints to bypass checks for internal + * methods, such as service health check methods. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Usage::initOnce(); + parent::__construct($data); + } + + /** + * Selects the methods to which this rule applies. Use '*' to indicate all + * methods in all APIs. + * Refer to [selector][google.api.DocumentationRule.selector] for syntax + * details. + * + * Generated from protobuf field string selector = 1; + * @return string + */ + public function getSelector() + { + return $this->selector; + } + + /** + * Selects the methods to which this rule applies. Use '*' to indicate all + * methods in all APIs. + * Refer to [selector][google.api.DocumentationRule.selector] for syntax + * details. + * + * Generated from protobuf field string selector = 1; + * @param string $var + * @return $this + */ + public function setSelector($var) + { + GPBUtil::checkString($var, True); + $this->selector = $var; + + return $this; + } + + /** + * Use this rule to configure unregistered calls for the service. Unregistered + * calls are calls that do not contain consumer project identity. + * (Example: calls that do not contain an API key). + * WARNING: By default, API methods do not allow unregistered calls, and each + * method call must be identified by a consumer project identity. + * + * Generated from protobuf field bool allow_unregistered_calls = 2; + * @return bool + */ + public function getAllowUnregisteredCalls() + { + return $this->allow_unregistered_calls; + } + + /** + * Use this rule to configure unregistered calls for the service. Unregistered + * calls are calls that do not contain consumer project identity. + * (Example: calls that do not contain an API key). + * WARNING: By default, API methods do not allow unregistered calls, and each + * method call must be identified by a consumer project identity. + * + * Generated from protobuf field bool allow_unregistered_calls = 2; + * @param bool $var + * @return $this + */ + public function setAllowUnregisteredCalls($var) + { + GPBUtil::checkBool($var); + $this->allow_unregistered_calls = $var; + + return $this; + } + + /** + * If true, the selected method should skip service control and the control + * plane features, such as quota and billing, will not be available. + * This flag is used by Google Cloud Endpoints to bypass checks for internal + * methods, such as service health check methods. + * + * Generated from protobuf field bool skip_service_control = 3; + * @return bool + */ + public function getSkipServiceControl() + { + return $this->skip_service_control; + } + + /** + * If true, the selected method should skip service control and the control + * plane features, such as quota and billing, will not be available. + * This flag is used by Google Cloud Endpoints to bypass checks for internal + * methods, such as service health check methods. + * + * Generated from protobuf field bool skip_service_control = 3; + * @param bool $var + * @return $this + */ + public function setSkipServiceControl($var) + { + GPBUtil::checkBool($var); + $this->skip_service_control = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Visibility.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Visibility.php new file mode 100644 index 000000000000..d5292914fc4b --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Visibility.php @@ -0,0 +1,88 @@ +google.api.Visibility + */ +class Visibility extends \Google\Protobuf\Internal\Message +{ + /** + * A list of visibility rules that apply to individual API elements. + * **NOTE:** All service configuration rules follow "last one wins" order. + * + * Generated from protobuf field repeated .google.api.VisibilityRule rules = 1; + */ + private $rules; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Api\VisibilityRule[] $rules + * A list of visibility rules that apply to individual API elements. + * **NOTE:** All service configuration rules follow "last one wins" order. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Visibility::initOnce(); + parent::__construct($data); + } + + /** + * A list of visibility rules that apply to individual API elements. + * **NOTE:** All service configuration rules follow "last one wins" order. + * + * Generated from protobuf field repeated .google.api.VisibilityRule rules = 1; + * @return RepeatedField<\Google\Api\VisibilityRule> + */ + public function getRules() + { + return $this->rules; + } + + /** + * A list of visibility rules that apply to individual API elements. + * **NOTE:** All service configuration rules follow "last one wins" order. + * + * Generated from protobuf field repeated .google.api.VisibilityRule rules = 1; + * @param \Google\Api\VisibilityRule[] $var + * @return $this + */ + public function setRules($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\VisibilityRule::class); + $this->rules = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/VisibilityRule.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/VisibilityRule.php new file mode 100644 index 000000000000..74bdc3e66882 --- /dev/null +++ b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/VisibilityRule.php @@ -0,0 +1,150 @@ +google.api.VisibilityRule + */ +class VisibilityRule extends \Google\Protobuf\Internal\Message +{ + /** + * Selects methods, messages, fields, enums, etc. to which this rule applies. + * Refer to [selector][google.api.DocumentationRule.selector] for syntax + * details. + * + * Generated from protobuf field string selector = 1; + */ + protected $selector = ''; + /** + * A comma-separated list of visibility labels that apply to the `selector`. + * Any of the listed labels can be used to grant the visibility. + * If a rule has multiple labels, removing one of the labels but not all of + * them can break clients. + * Example: + * visibility: + * rules: + * - selector: google.calendar.Calendar.EnhancedSearch + * restriction: INTERNAL, PREVIEW + * Removing INTERNAL from this restriction will break clients that rely on + * this method and only had access to it through INTERNAL. + * + * Generated from protobuf field string restriction = 2; + */ + protected $restriction = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $selector + * Selects methods, messages, fields, enums, etc. to which this rule applies. + * Refer to [selector][google.api.DocumentationRule.selector] for syntax + * details. + * @type string $restriction + * A comma-separated list of visibility labels that apply to the `selector`. + * Any of the listed labels can be used to grant the visibility. + * If a rule has multiple labels, removing one of the labels but not all of + * them can break clients. + * Example: + * visibility: + * rules: + * - selector: google.calendar.Calendar.EnhancedSearch + * restriction: INTERNAL, PREVIEW + * Removing INTERNAL from this restriction will break clients that rely on + * this method and only had access to it through INTERNAL. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Visibility::initOnce(); + parent::__construct($data); + } + + /** + * Selects methods, messages, fields, enums, etc. to which this rule applies. + * Refer to [selector][google.api.DocumentationRule.selector] for syntax + * details. + * + * Generated from protobuf field string selector = 1; + * @return string + */ + public function getSelector() + { + return $this->selector; + } + + /** + * Selects methods, messages, fields, enums, etc. to which this rule applies. + * Refer to [selector][google.api.DocumentationRule.selector] for syntax + * details. + * + * Generated from protobuf field string selector = 1; + * @param string $var + * @return $this + */ + public function setSelector($var) + { + GPBUtil::checkString($var, True); + $this->selector = $var; + + return $this; + } + + /** + * A comma-separated list of visibility labels that apply to the `selector`. + * Any of the listed labels can be used to grant the visibility. + * If a rule has multiple labels, removing one of the labels but not all of + * them can break clients. + * Example: + * visibility: + * rules: + * - selector: google.calendar.Calendar.EnhancedSearch + * restriction: INTERNAL, PREVIEW + * Removing INTERNAL from this restriction will break clients that rely on + * this method and only had access to it through INTERNAL. + * + * Generated from protobuf field string restriction = 2; + * @return string + */ + public function getRestriction() + { + return $this->restriction; + } + + /** + * A comma-separated list of visibility labels that apply to the `selector`. + * Any of the listed labels can be used to grant the visibility. + * If a rule has multiple labels, removing one of the labels but not all of + * them can break clients. + * Example: + * visibility: + * rules: + * - selector: google.calendar.Calendar.EnhancedSearch + * restriction: INTERNAL, PREVIEW + * Removing INTERNAL from this restriction will break clients that rely on + * this method and only had access to it through INTERNAL. + * + * Generated from protobuf field string restriction = 2; + * @param string $var + * @return $this + */ + public function setRestriction($var) + { + GPBUtil::checkString($var, True); + $this->restriction = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/extendedoperations/proto/src/GPBMetadata/Google/Cloud/ExtendedOperations.php b/owl-bot-staging/CommonProtos/extendedoperations/proto/src/GPBMetadata/Google/Cloud/ExtendedOperations.php new file mode 100644 index 000000000000..2f09c858bb0e --- /dev/null +++ b/owl-bot-staging/CommonProtos/extendedoperations/proto/src/GPBMetadata/Google/Cloud/ExtendedOperations.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\xBF\x02\x0A&google/cloud/extended_operations.proto\x12\x0Cgoogle.cloud\x1A google/protobuf/descriptor.proto*b\x0A\x18OperationResponseMapping\x12\x0D\x0A\x09UNDEFINED\x10\x00\x12\x08\x0A\x04NAME\x10\x01\x12\x0A\x0A\x06STATUS\x10\x02\x12\x0E\x0A\x0AERROR_CODE\x10\x03\x12\x11\x0A\x0DERROR_MESSAGE\x10\x04By\x0A\x10com.google.cloudB\x17ExtendedOperationsProtoP\x01ZCgoogle.golang.org/genproto/googleapis/cloud/extendedops;extendedops\xA2\x02\x04GAPIb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/extendedoperations/proto/src/Google/Cloud/OperationResponseMapping.php b/owl-bot-staging/CommonProtos/extendedoperations/proto/src/Google/Cloud/OperationResponseMapping.php new file mode 100644 index 000000000000..c21c294e7853 --- /dev/null +++ b/owl-bot-staging/CommonProtos/extendedoperations/proto/src/Google/Cloud/OperationResponseMapping.php @@ -0,0 +1,86 @@ +google.cloud.OperationResponseMapping + */ +class OperationResponseMapping +{ + /** + * Do not use. + * + * Generated from protobuf enum UNDEFINED = 0; + */ + const UNDEFINED = 0; + /** + * A field in an API-specific (custom) Operation object which carries the same + * meaning as google.longrunning.Operation.name. + * + * Generated from protobuf enum NAME = 1; + */ + const NAME = 1; + /** + * A field in an API-specific (custom) Operation object which carries the same + * meaning as google.longrunning.Operation.done. If the annotated field is of + * an enum type, `annotated_field_name == EnumType.DONE` semantics should be + * equivalent to `Operation.done == true`. If the annotated field is of type + * boolean, then it should follow the same semantics as Operation.done. + * Otherwise, a non-empty value should be treated as `Operation.done == true`. + * + * Generated from protobuf enum STATUS = 2; + */ + const STATUS = 2; + /** + * A field in an API-specific (custom) Operation object which carries the same + * meaning as google.longrunning.Operation.error.code. + * + * Generated from protobuf enum ERROR_CODE = 3; + */ + const ERROR_CODE = 3; + /** + * A field in an API-specific (custom) Operation object which carries the same + * meaning as google.longrunning.Operation.error.message. + * + * Generated from protobuf enum ERROR_MESSAGE = 4; + */ + const ERROR_MESSAGE = 4; + + private static $valueToName = [ + self::UNDEFINED => 'UNDEFINED', + self::NAME => 'NAME', + self::STATUS => 'STATUS', + self::ERROR_CODE => 'ERROR_CODE', + self::ERROR_MESSAGE => 'ERROR_MESSAGE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/CommonProtos/iam/proto/src/GPBMetadata/Google/Iam/V1/IamPolicy.php b/owl-bot-staging/CommonProtos/iam/proto/src/GPBMetadata/Google/Iam/V1/IamPolicy.php new file mode 100644 index 000000000000..3c8924647d4b --- /dev/null +++ b/owl-bot-staging/CommonProtos/iam/proto/src/GPBMetadata/Google/Iam/V1/IamPolicy.php @@ -0,0 +1,31 @@ +internalAddGeneratedFile( + "\x0A\x9B\x09\x0A\x1Egoogle/iam/v1/iam_policy.proto\x12\x0Dgoogle.iam.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A\x1Bgoogle/iam/v1/options.proto\x1A\x1Agoogle/iam/v1/policy.proto\x1A google/protobuf/field_mask.proto\"\x8F\x01\x0A\x13SetIamPolicyRequest\x12\x1B\x0A\x08resource\x18\x01 \x01(\x09B\x09\xE0A\x02\xFAA\x03\x0A\x01*\x12*\x0A\x06policy\x18\x02 \x01(\x0B2\x15.google.iam.v1.PolicyB\x03\xE0A\x02\x12/\x0A\x0Bupdate_mask\x18\x03 \x01(\x0B2\x1A.google.protobuf.FieldMask\"d\x0A\x13GetIamPolicyRequest\x12\x1B\x0A\x08resource\x18\x01 \x01(\x09B\x09\xE0A\x02\xFAA\x03\x0A\x01*\x120\x0A\x07options\x18\x02 \x01(\x0B2\x1F.google.iam.v1.GetPolicyOptions\"R\x0A\x19TestIamPermissionsRequest\x12\x1B\x0A\x08resource\x18\x01 \x01(\x09B\x09\xE0A\x02\xFAA\x03\x0A\x01*\x12\x18\x0A\x0Bpermissions\x18\x02 \x03(\x09B\x03\xE0A\x02\"1\x0A\x1ATestIamPermissionsResponse\x12\x13\x0A\x0Bpermissions\x18\x01 \x03(\x092\xB4\x03\x0A\x09IAMPolicy\x12t\x0A\x0CSetIamPolicy\x12\".google.iam.v1.SetIamPolicyRequest\x1A\x15.google.iam.v1.Policy\")\x82\xD3\xE4\x93\x02#\"\x1E/v1/{resource=**}:setIamPolicy:\x01*\x12t\x0A\x0CGetIamPolicy\x12\".google.iam.v1.GetIamPolicyRequest\x1A\x15.google.iam.v1.Policy\")\x82\xD3\xE4\x93\x02#\"\x1E/v1/{resource=**}:getIamPolicy:\x01*\x12\x9A\x01\x0A\x12TestIamPermissions\x12(.google.iam.v1.TestIamPermissionsRequest\x1A).google.iam.v1.TestIamPermissionsResponse\"/\x82\xD3\xE4\x93\x02)\"\$/v1/{resource=**}:testIamPermissions:\x01*\x1A\x1E\xCAA\x1Biam-meta-api.googleapis.comB|\x0A\x11com.google.iam.v1B\x0EIamPolicyProtoP\x01Z)cloud.google.com/go/iam/apiv1/iampb;iampb\xAA\x02\x13Google.Cloud.Iam.V1\xCA\x02\x13Google\\Cloud\\Iam\\V1b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/iam/proto/src/GPBMetadata/Google/Iam/V1/Logging/AuditData.php b/owl-bot-staging/CommonProtos/iam/proto/src/GPBMetadata/Google/Iam/V1/Logging/AuditData.php new file mode 100644 index 000000000000..93ae1a0279ec --- /dev/null +++ b/owl-bot-staging/CommonProtos/iam/proto/src/GPBMetadata/Google/Iam/V1/Logging/AuditData.php @@ -0,0 +1,25 @@ +internalAddGeneratedFile( + "\x0A\x8F\x02\x0A&google/iam/v1/logging/audit_data.proto\x12\x15google.iam.v1.logging\"=\x0A\x09AuditData\x120\x0A\x0Cpolicy_delta\x18\x02 \x01(\x0B2\x1A.google.iam.v1.PolicyDeltaB\x86\x01\x0A\x19com.google.iam.v1.loggingB\x0EAuditDataProtoP\x01Z9cloud.google.com/go/iam/apiv1/logging/loggingpb;loggingpb\xAA\x02\x1BGoogle.Cloud.Iam.V1.Loggingb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/iam/proto/src/GPBMetadata/Google/Iam/V1/Options.php b/owl-bot-staging/CommonProtos/iam/proto/src/GPBMetadata/Google/Iam/V1/Options.php new file mode 100644 index 000000000000..c5cfe44b6d86 --- /dev/null +++ b/owl-bot-staging/CommonProtos/iam/proto/src/GPBMetadata/Google/Iam/V1/Options.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\xE9\x01\x0A\x1Bgoogle/iam/v1/options.proto\x12\x0Dgoogle.iam.v1\"4\x0A\x10GetPolicyOptions\x12 \x0A\x18requested_policy_version\x18\x01 \x01(\x05B}\x0A\x11com.google.iam.v1B\x0COptionsProtoP\x01Z)cloud.google.com/go/iam/apiv1/iampb;iampb\xF8\x01\x01\xAA\x02\x13Google.Cloud.Iam.V1\xCA\x02\x13Google\\Cloud\\Iam\\V1b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/iam/proto/src/GPBMetadata/Google/Iam/V1/Policy.php b/owl-bot-staging/CommonProtos/iam/proto/src/GPBMetadata/Google/Iam/V1/Policy.php new file mode 100644 index 000000000000..8d23aec66987 --- /dev/null +++ b/owl-bot-staging/CommonProtos/iam/proto/src/GPBMetadata/Google/Iam/V1/Policy.php @@ -0,0 +1,25 @@ +internalAddGeneratedFile( + "\x0A\x9F\x09\x0A\x1Agoogle/iam/v1/policy.proto\x12\x0Dgoogle.iam.v1\"\x84\x01\x0A\x06Policy\x12\x0F\x0A\x07version\x18\x01 \x01(\x05\x12(\x0A\x08bindings\x18\x04 \x03(\x0B2\x16.google.iam.v1.Binding\x121\x0A\x0Daudit_configs\x18\x06 \x03(\x0B2\x1A.google.iam.v1.AuditConfig\x12\x0C\x0A\x04etag\x18\x03 \x01(\x0C\"N\x0A\x07Binding\x12\x0C\x0A\x04role\x18\x01 \x01(\x09\x12\x0F\x0A\x07members\x18\x02 \x03(\x09\x12\$\x0A\x09condition\x18\x03 \x01(\x0B2\x11.google.type.Expr\"X\x0A\x0BAuditConfig\x12\x0F\x0A\x07service\x18\x01 \x01(\x09\x128\x0A\x11audit_log_configs\x18\x03 \x03(\x0B2\x1D.google.iam.v1.AuditLogConfig\"\xB7\x01\x0A\x0EAuditLogConfig\x127\x0A\x08log_type\x18\x01 \x01(\x0E2%.google.iam.v1.AuditLogConfig.LogType\x12\x18\x0A\x10exempted_members\x18\x02 \x03(\x09\"R\x0A\x07LogType\x12\x18\x0A\x14LOG_TYPE_UNSPECIFIED\x10\x00\x12\x0E\x0A\x0AADMIN_READ\x10\x01\x12\x0E\x0A\x0ADATA_WRITE\x10\x02\x12\x0D\x0A\x09DATA_READ\x10\x03\"\x80\x01\x0A\x0BPolicyDelta\x123\x0A\x0Ebinding_deltas\x18\x01 \x03(\x0B2\x1B.google.iam.v1.BindingDelta\x12<\x0A\x13audit_config_deltas\x18\x02 \x03(\x0B2\x1F.google.iam.v1.AuditConfigDelta\"\xBD\x01\x0A\x0CBindingDelta\x122\x0A\x06action\x18\x01 \x01(\x0E2\".google.iam.v1.BindingDelta.Action\x12\x0C\x0A\x04role\x18\x02 \x01(\x09\x12\x0E\x0A\x06member\x18\x03 \x01(\x09\x12\$\x0A\x09condition\x18\x04 \x01(\x0B2\x11.google.type.Expr\"5\x0A\x06Action\x12\x16\x0A\x12ACTION_UNSPECIFIED\x10\x00\x12\x07\x0A\x03ADD\x10\x01\x12\x0A\x0A\x06REMOVE\x10\x02\"\xBD\x01\x0A\x10AuditConfigDelta\x126\x0A\x06action\x18\x01 \x01(\x0E2&.google.iam.v1.AuditConfigDelta.Action\x12\x0F\x0A\x07service\x18\x02 \x01(\x09\x12\x17\x0A\x0Fexempted_member\x18\x03 \x01(\x09\x12\x10\x0A\x08log_type\x18\x04 \x01(\x09\"5\x0A\x06Action\x12\x16\x0A\x12ACTION_UNSPECIFIED\x10\x00\x12\x07\x0A\x03ADD\x10\x01\x12\x0A\x0A\x06REMOVE\x10\x02B|\x0A\x11com.google.iam.v1B\x0BPolicyProtoP\x01Z)cloud.google.com/go/iam/apiv1/iampb;iampb\xF8\x01\x01\xAA\x02\x13Google.Cloud.Iam.V1\xCA\x02\x13Google\\Cloud\\Iam\\V1b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/iam/proto/src/GPBMetadata/Google/Iam/V1/ResourcePolicyMember.php b/owl-bot-staging/CommonProtos/iam/proto/src/GPBMetadata/Google/Iam/V1/ResourcePolicyMember.php new file mode 100644 index 000000000000..e7eb2e57e0f5 --- /dev/null +++ b/owl-bot-staging/CommonProtos/iam/proto/src/GPBMetadata/Google/Iam/V1/ResourcePolicyMember.php @@ -0,0 +1,25 @@ +internalAddGeneratedFile( + "\x0A\xB4\x02\x0A*google/iam/v1/resource_policy_member.proto\x12\x0Dgoogle.iam.v1\"e\x0A\x14ResourcePolicyMember\x12&\x0A\x19iam_policy_name_principal\x18\x01 \x01(\x09B\x03\xE0A\x03\x12%\x0A\x18iam_policy_uid_principal\x18\x02 \x01(\x09B\x03\xE0A\x03B\x87\x01\x0A\x11com.google.iam.v1B\x19ResourcePolicyMemberProtoP\x01Z)cloud.google.com/go/iam/apiv1/iampb;iampb\xAA\x02\x13Google.Cloud.Iam.V1\xCA\x02\x13Google\\Cloud\\Iam\\V1b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/AuditConfig.php b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/AuditConfig.php new file mode 100644 index 000000000000..ac3bee3b3c61 --- /dev/null +++ b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/AuditConfig.php @@ -0,0 +1,155 @@ +google.iam.v1.AuditConfig + */ +class AuditConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Specifies a service that will be enabled for audit logging. + * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. + * `allServices` is a special value that covers all services. + * + * Generated from protobuf field string service = 1; + */ + protected $service = ''; + /** + * The configuration for logging of each type of permission. + * + * Generated from protobuf field repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3; + */ + private $audit_log_configs; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $service + * Specifies a service that will be enabled for audit logging. + * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. + * `allServices` is a special value that covers all services. + * @type \Google\Cloud\Iam\V1\AuditLogConfig[] $audit_log_configs + * The configuration for logging of each type of permission. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Iam\V1\Policy::initOnce(); + parent::__construct($data); + } + + /** + * Specifies a service that will be enabled for audit logging. + * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. + * `allServices` is a special value that covers all services. + * + * Generated from protobuf field string service = 1; + * @return string + */ + public function getService() + { + return $this->service; + } + + /** + * Specifies a service that will be enabled for audit logging. + * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. + * `allServices` is a special value that covers all services. + * + * Generated from protobuf field string service = 1; + * @param string $var + * @return $this + */ + public function setService($var) + { + GPBUtil::checkString($var, True); + $this->service = $var; + + return $this; + } + + /** + * The configuration for logging of each type of permission. + * + * Generated from protobuf field repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3; + * @return RepeatedField<\Google\Cloud\Iam\V1\AuditLogConfig> + */ + public function getAuditLogConfigs() + { + return $this->audit_log_configs; + } + + /** + * The configuration for logging of each type of permission. + * + * Generated from protobuf field repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3; + * @param \Google\Cloud\Iam\V1\AuditLogConfig[] $var + * @return $this + */ + public function setAuditLogConfigs($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Iam\V1\AuditLogConfig::class); + $this->audit_log_configs = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/AuditConfigDelta.php b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/AuditConfigDelta.php new file mode 100644 index 000000000000..21a0626812ee --- /dev/null +++ b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/AuditConfigDelta.php @@ -0,0 +1,202 @@ +google.iam.v1.AuditConfigDelta + */ +class AuditConfigDelta extends \Google\Protobuf\Internal\Message +{ + /** + * The action that was performed on an audit configuration in a policy. + * Required + * + * Generated from protobuf field .google.iam.v1.AuditConfigDelta.Action action = 1; + */ + protected $action = 0; + /** + * Specifies a service that was configured for Cloud Audit Logging. + * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. + * `allServices` is a special value that covers all services. + * Required + * + * Generated from protobuf field string service = 2; + */ + protected $service = ''; + /** + * A single identity that is exempted from "data access" audit + * logging for the `service` specified above. + * Follows the same format of Binding.members. + * + * Generated from protobuf field string exempted_member = 3; + */ + protected $exempted_member = ''; + /** + * Specifies the log_type that was be enabled. ADMIN_ACTIVITY is always + * enabled, and cannot be configured. + * Required + * + * Generated from protobuf field string log_type = 4; + */ + protected $log_type = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $action + * The action that was performed on an audit configuration in a policy. + * Required + * @type string $service + * Specifies a service that was configured for Cloud Audit Logging. + * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. + * `allServices` is a special value that covers all services. + * Required + * @type string $exempted_member + * A single identity that is exempted from "data access" audit + * logging for the `service` specified above. + * Follows the same format of Binding.members. + * @type string $log_type + * Specifies the log_type that was be enabled. ADMIN_ACTIVITY is always + * enabled, and cannot be configured. + * Required + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Iam\V1\Policy::initOnce(); + parent::__construct($data); + } + + /** + * The action that was performed on an audit configuration in a policy. + * Required + * + * Generated from protobuf field .google.iam.v1.AuditConfigDelta.Action action = 1; + * @return int + */ + public function getAction() + { + return $this->action; + } + + /** + * The action that was performed on an audit configuration in a policy. + * Required + * + * Generated from protobuf field .google.iam.v1.AuditConfigDelta.Action action = 1; + * @param int $var + * @return $this + */ + public function setAction($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Iam\V1\AuditConfigDelta\Action::class); + $this->action = $var; + + return $this; + } + + /** + * Specifies a service that was configured for Cloud Audit Logging. + * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. + * `allServices` is a special value that covers all services. + * Required + * + * Generated from protobuf field string service = 2; + * @return string + */ + public function getService() + { + return $this->service; + } + + /** + * Specifies a service that was configured for Cloud Audit Logging. + * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. + * `allServices` is a special value that covers all services. + * Required + * + * Generated from protobuf field string service = 2; + * @param string $var + * @return $this + */ + public function setService($var) + { + GPBUtil::checkString($var, True); + $this->service = $var; + + return $this; + } + + /** + * A single identity that is exempted from "data access" audit + * logging for the `service` specified above. + * Follows the same format of Binding.members. + * + * Generated from protobuf field string exempted_member = 3; + * @return string + */ + public function getExemptedMember() + { + return $this->exempted_member; + } + + /** + * A single identity that is exempted from "data access" audit + * logging for the `service` specified above. + * Follows the same format of Binding.members. + * + * Generated from protobuf field string exempted_member = 3; + * @param string $var + * @return $this + */ + public function setExemptedMember($var) + { + GPBUtil::checkString($var, True); + $this->exempted_member = $var; + + return $this; + } + + /** + * Specifies the log_type that was be enabled. ADMIN_ACTIVITY is always + * enabled, and cannot be configured. + * Required + * + * Generated from protobuf field string log_type = 4; + * @return string + */ + public function getLogType() + { + return $this->log_type; + } + + /** + * Specifies the log_type that was be enabled. ADMIN_ACTIVITY is always + * enabled, and cannot be configured. + * Required + * + * Generated from protobuf field string log_type = 4; + * @param string $var + * @return $this + */ + public function setLogType($var) + { + GPBUtil::checkString($var, True); + $this->log_type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/AuditConfigDelta/Action.php b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/AuditConfigDelta/Action.php new file mode 100644 index 000000000000..7f92d4fb9d3a --- /dev/null +++ b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/AuditConfigDelta/Action.php @@ -0,0 +1,61 @@ +google.iam.v1.AuditConfigDelta.Action + */ +class Action +{ + /** + * Unspecified. + * + * Generated from protobuf enum ACTION_UNSPECIFIED = 0; + */ + const ACTION_UNSPECIFIED = 0; + /** + * Addition of an audit configuration. + * + * Generated from protobuf enum ADD = 1; + */ + const ADD = 1; + /** + * Removal of an audit configuration. + * + * Generated from protobuf enum REMOVE = 2; + */ + const REMOVE = 2; + + private static $valueToName = [ + self::ACTION_UNSPECIFIED => 'ACTION_UNSPECIFIED', + self::ADD => 'ADD', + self::REMOVE => 'REMOVE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/AuditLogConfig.php b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/AuditLogConfig.php new file mode 100644 index 000000000000..acf7ef30df02 --- /dev/null +++ b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/AuditLogConfig.php @@ -0,0 +1,129 @@ +google.iam.v1.AuditLogConfig + */ +class AuditLogConfig extends \Google\Protobuf\Internal\Message +{ + /** + * The log type that this config enables. + * + * Generated from protobuf field .google.iam.v1.AuditLogConfig.LogType log_type = 1; + */ + protected $log_type = 0; + /** + * Specifies the identities that do not cause logging for this type of + * permission. + * Follows the same format of + * [Binding.members][google.iam.v1.Binding.members]. + * + * Generated from protobuf field repeated string exempted_members = 2; + */ + private $exempted_members; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $log_type + * The log type that this config enables. + * @type string[] $exempted_members + * Specifies the identities that do not cause logging for this type of + * permission. + * Follows the same format of + * [Binding.members][google.iam.v1.Binding.members]. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Iam\V1\Policy::initOnce(); + parent::__construct($data); + } + + /** + * The log type that this config enables. + * + * Generated from protobuf field .google.iam.v1.AuditLogConfig.LogType log_type = 1; + * @return int + */ + public function getLogType() + { + return $this->log_type; + } + + /** + * The log type that this config enables. + * + * Generated from protobuf field .google.iam.v1.AuditLogConfig.LogType log_type = 1; + * @param int $var + * @return $this + */ + public function setLogType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Iam\V1\AuditLogConfig\LogType::class); + $this->log_type = $var; + + return $this; + } + + /** + * Specifies the identities that do not cause logging for this type of + * permission. + * Follows the same format of + * [Binding.members][google.iam.v1.Binding.members]. + * + * Generated from protobuf field repeated string exempted_members = 2; + * @return RepeatedField + */ + public function getExemptedMembers() + { + return $this->exempted_members; + } + + /** + * Specifies the identities that do not cause logging for this type of + * permission. + * Follows the same format of + * [Binding.members][google.iam.v1.Binding.members]. + * + * Generated from protobuf field repeated string exempted_members = 2; + * @param string[] $var + * @return $this + */ + public function setExemptedMembers($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->exempted_members = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/AuditLogConfig/LogType.php b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/AuditLogConfig/LogType.php new file mode 100644 index 000000000000..5a86bc2f1bfe --- /dev/null +++ b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/AuditLogConfig/LogType.php @@ -0,0 +1,69 @@ +google.iam.v1.AuditLogConfig.LogType + */ +class LogType +{ + /** + * Default case. Should never be this. + * + * Generated from protobuf enum LOG_TYPE_UNSPECIFIED = 0; + */ + const LOG_TYPE_UNSPECIFIED = 0; + /** + * Admin reads. Example: CloudIAM getIamPolicy + * + * Generated from protobuf enum ADMIN_READ = 1; + */ + const ADMIN_READ = 1; + /** + * Data writes. Example: CloudSQL Users create + * + * Generated from protobuf enum DATA_WRITE = 2; + */ + const DATA_WRITE = 2; + /** + * Data reads. Example: CloudSQL Users list + * + * Generated from protobuf enum DATA_READ = 3; + */ + const DATA_READ = 3; + + private static $valueToName = [ + self::LOG_TYPE_UNSPECIFIED => 'LOG_TYPE_UNSPECIFIED', + self::ADMIN_READ => 'ADMIN_READ', + self::DATA_WRITE => 'DATA_WRITE', + self::DATA_READ => 'DATA_READ', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/Binding.php b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/Binding.php new file mode 100644 index 000000000000..29ee4fafde06 --- /dev/null +++ b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/Binding.php @@ -0,0 +1,301 @@ +google.iam.v1.Binding + */ +class Binding extends \Google\Protobuf\Internal\Message +{ + /** + * Role that is assigned to the list of `members`, or principals. + * For example, `roles/viewer`, `roles/editor`, or `roles/owner`. + * + * Generated from protobuf field string role = 1; + */ + protected $role = ''; + /** + * Specifies the principals requesting access for a Google Cloud resource. + * `members` can have the following values: + * * `allUsers`: A special identifier that represents anyone who is + * on the internet; with or without a Google account. + * * `allAuthenticatedUsers`: A special identifier that represents anyone + * who is authenticated with a Google account or a service account. + * * `user:{emailid}`: An email address that represents a specific Google + * account. For example, `alice\@example.com` . + * * `serviceAccount:{emailid}`: An email address that represents a service + * account. For example, `my-other-app\@appspot.gserviceaccount.com`. + * * `group:{emailid}`: An email address that represents a Google group. + * For example, `admins\@example.com`. + * * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique + * identifier) representing a user that has been recently deleted. For + * example, `alice\@example.com?uid=123456789012345678901`. If the user is + * recovered, this value reverts to `user:{emailid}` and the recovered user + * retains the role in the binding. + * * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus + * unique identifier) representing a service account that has been recently + * deleted. For example, + * `my-other-app\@appspot.gserviceaccount.com?uid=123456789012345678901`. + * If the service account is undeleted, this value reverts to + * `serviceAccount:{emailid}` and the undeleted service account retains the + * role in the binding. + * * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique + * identifier) representing a Google group that has been recently + * deleted. For example, `admins\@example.com?uid=123456789012345678901`. If + * the group is recovered, this value reverts to `group:{emailid}` and the + * recovered group retains the role in the binding. + * * `domain:{domain}`: The G Suite domain (primary) that represents all the + * users of that domain. For example, `google.com` or `example.com`. + * + * Generated from protobuf field repeated string members = 2; + */ + private $members; + /** + * The condition that is associated with this binding. + * If the condition evaluates to `true`, then this binding applies to the + * current request. + * If the condition evaluates to `false`, then this binding does not apply to + * the current request. However, a different role binding might grant the same + * role to one or more of the principals in this binding. + * To learn which resources support conditions in their IAM policies, see the + * [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + * + * Generated from protobuf field .google.type.Expr condition = 3; + */ + protected $condition = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $role + * Role that is assigned to the list of `members`, or principals. + * For example, `roles/viewer`, `roles/editor`, or `roles/owner`. + * @type string[] $members + * Specifies the principals requesting access for a Google Cloud resource. + * `members` can have the following values: + * * `allUsers`: A special identifier that represents anyone who is + * on the internet; with or without a Google account. + * * `allAuthenticatedUsers`: A special identifier that represents anyone + * who is authenticated with a Google account or a service account. + * * `user:{emailid}`: An email address that represents a specific Google + * account. For example, `alice\@example.com` . + * * `serviceAccount:{emailid}`: An email address that represents a service + * account. For example, `my-other-app\@appspot.gserviceaccount.com`. + * * `group:{emailid}`: An email address that represents a Google group. + * For example, `admins\@example.com`. + * * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique + * identifier) representing a user that has been recently deleted. For + * example, `alice\@example.com?uid=123456789012345678901`. If the user is + * recovered, this value reverts to `user:{emailid}` and the recovered user + * retains the role in the binding. + * * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus + * unique identifier) representing a service account that has been recently + * deleted. For example, + * `my-other-app\@appspot.gserviceaccount.com?uid=123456789012345678901`. + * If the service account is undeleted, this value reverts to + * `serviceAccount:{emailid}` and the undeleted service account retains the + * role in the binding. + * * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique + * identifier) representing a Google group that has been recently + * deleted. For example, `admins\@example.com?uid=123456789012345678901`. If + * the group is recovered, this value reverts to `group:{emailid}` and the + * recovered group retains the role in the binding. + * * `domain:{domain}`: The G Suite domain (primary) that represents all the + * users of that domain. For example, `google.com` or `example.com`. + * @type \Google\Type\Expr $condition + * The condition that is associated with this binding. + * If the condition evaluates to `true`, then this binding applies to the + * current request. + * If the condition evaluates to `false`, then this binding does not apply to + * the current request. However, a different role binding might grant the same + * role to one or more of the principals in this binding. + * To learn which resources support conditions in their IAM policies, see the + * [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Iam\V1\Policy::initOnce(); + parent::__construct($data); + } + + /** + * Role that is assigned to the list of `members`, or principals. + * For example, `roles/viewer`, `roles/editor`, or `roles/owner`. + * + * Generated from protobuf field string role = 1; + * @return string + */ + public function getRole() + { + return $this->role; + } + + /** + * Role that is assigned to the list of `members`, or principals. + * For example, `roles/viewer`, `roles/editor`, or `roles/owner`. + * + * Generated from protobuf field string role = 1; + * @param string $var + * @return $this + */ + public function setRole($var) + { + GPBUtil::checkString($var, True); + $this->role = $var; + + return $this; + } + + /** + * Specifies the principals requesting access for a Google Cloud resource. + * `members` can have the following values: + * * `allUsers`: A special identifier that represents anyone who is + * on the internet; with or without a Google account. + * * `allAuthenticatedUsers`: A special identifier that represents anyone + * who is authenticated with a Google account or a service account. + * * `user:{emailid}`: An email address that represents a specific Google + * account. For example, `alice\@example.com` . + * * `serviceAccount:{emailid}`: An email address that represents a service + * account. For example, `my-other-app\@appspot.gserviceaccount.com`. + * * `group:{emailid}`: An email address that represents a Google group. + * For example, `admins\@example.com`. + * * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique + * identifier) representing a user that has been recently deleted. For + * example, `alice\@example.com?uid=123456789012345678901`. If the user is + * recovered, this value reverts to `user:{emailid}` and the recovered user + * retains the role in the binding. + * * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus + * unique identifier) representing a service account that has been recently + * deleted. For example, + * `my-other-app\@appspot.gserviceaccount.com?uid=123456789012345678901`. + * If the service account is undeleted, this value reverts to + * `serviceAccount:{emailid}` and the undeleted service account retains the + * role in the binding. + * * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique + * identifier) representing a Google group that has been recently + * deleted. For example, `admins\@example.com?uid=123456789012345678901`. If + * the group is recovered, this value reverts to `group:{emailid}` and the + * recovered group retains the role in the binding. + * * `domain:{domain}`: The G Suite domain (primary) that represents all the + * users of that domain. For example, `google.com` or `example.com`. + * + * Generated from protobuf field repeated string members = 2; + * @return RepeatedField + */ + public function getMembers() + { + return $this->members; + } + + /** + * Specifies the principals requesting access for a Google Cloud resource. + * `members` can have the following values: + * * `allUsers`: A special identifier that represents anyone who is + * on the internet; with or without a Google account. + * * `allAuthenticatedUsers`: A special identifier that represents anyone + * who is authenticated with a Google account or a service account. + * * `user:{emailid}`: An email address that represents a specific Google + * account. For example, `alice\@example.com` . + * * `serviceAccount:{emailid}`: An email address that represents a service + * account. For example, `my-other-app\@appspot.gserviceaccount.com`. + * * `group:{emailid}`: An email address that represents a Google group. + * For example, `admins\@example.com`. + * * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique + * identifier) representing a user that has been recently deleted. For + * example, `alice\@example.com?uid=123456789012345678901`. If the user is + * recovered, this value reverts to `user:{emailid}` and the recovered user + * retains the role in the binding. + * * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus + * unique identifier) representing a service account that has been recently + * deleted. For example, + * `my-other-app\@appspot.gserviceaccount.com?uid=123456789012345678901`. + * If the service account is undeleted, this value reverts to + * `serviceAccount:{emailid}` and the undeleted service account retains the + * role in the binding. + * * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique + * identifier) representing a Google group that has been recently + * deleted. For example, `admins\@example.com?uid=123456789012345678901`. If + * the group is recovered, this value reverts to `group:{emailid}` and the + * recovered group retains the role in the binding. + * * `domain:{domain}`: The G Suite domain (primary) that represents all the + * users of that domain. For example, `google.com` or `example.com`. + * + * Generated from protobuf field repeated string members = 2; + * @param string[] $var + * @return $this + */ + public function setMembers($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->members = $arr; + + return $this; + } + + /** + * The condition that is associated with this binding. + * If the condition evaluates to `true`, then this binding applies to the + * current request. + * If the condition evaluates to `false`, then this binding does not apply to + * the current request. However, a different role binding might grant the same + * role to one or more of the principals in this binding. + * To learn which resources support conditions in their IAM policies, see the + * [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + * + * Generated from protobuf field .google.type.Expr condition = 3; + * @return \Google\Type\Expr|null + */ + public function getCondition() + { + return $this->condition; + } + + public function hasCondition() + { + return isset($this->condition); + } + + public function clearCondition() + { + unset($this->condition); + } + + /** + * The condition that is associated with this binding. + * If the condition evaluates to `true`, then this binding applies to the + * current request. + * If the condition evaluates to `false`, then this binding does not apply to + * the current request. However, a different role binding might grant the same + * role to one or more of the principals in this binding. + * To learn which resources support conditions in their IAM policies, see the + * [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + * + * Generated from protobuf field .google.type.Expr condition = 3; + * @param \Google\Type\Expr $var + * @return $this + */ + public function setCondition($var) + { + GPBUtil::checkMessage($var, \Google\Type\Expr::class); + $this->condition = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/BindingDelta.php b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/BindingDelta.php new file mode 100644 index 000000000000..4563d6089a6e --- /dev/null +++ b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/BindingDelta.php @@ -0,0 +1,200 @@ +google.iam.v1.BindingDelta + */ +class BindingDelta extends \Google\Protobuf\Internal\Message +{ + /** + * The action that was performed on a Binding. + * Required + * + * Generated from protobuf field .google.iam.v1.BindingDelta.Action action = 1; + */ + protected $action = 0; + /** + * Role that is assigned to `members`. + * For example, `roles/viewer`, `roles/editor`, or `roles/owner`. + * Required + * + * Generated from protobuf field string role = 2; + */ + protected $role = ''; + /** + * A single identity requesting access for a Google Cloud resource. + * Follows the same format of Binding.members. + * Required + * + * Generated from protobuf field string member = 3; + */ + protected $member = ''; + /** + * The condition that is associated with this binding. + * + * Generated from protobuf field .google.type.Expr condition = 4; + */ + protected $condition = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $action + * The action that was performed on a Binding. + * Required + * @type string $role + * Role that is assigned to `members`. + * For example, `roles/viewer`, `roles/editor`, or `roles/owner`. + * Required + * @type string $member + * A single identity requesting access for a Google Cloud resource. + * Follows the same format of Binding.members. + * Required + * @type \Google\Type\Expr $condition + * The condition that is associated with this binding. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Iam\V1\Policy::initOnce(); + parent::__construct($data); + } + + /** + * The action that was performed on a Binding. + * Required + * + * Generated from protobuf field .google.iam.v1.BindingDelta.Action action = 1; + * @return int + */ + public function getAction() + { + return $this->action; + } + + /** + * The action that was performed on a Binding. + * Required + * + * Generated from protobuf field .google.iam.v1.BindingDelta.Action action = 1; + * @param int $var + * @return $this + */ + public function setAction($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Iam\V1\BindingDelta\Action::class); + $this->action = $var; + + return $this; + } + + /** + * Role that is assigned to `members`. + * For example, `roles/viewer`, `roles/editor`, or `roles/owner`. + * Required + * + * Generated from protobuf field string role = 2; + * @return string + */ + public function getRole() + { + return $this->role; + } + + /** + * Role that is assigned to `members`. + * For example, `roles/viewer`, `roles/editor`, or `roles/owner`. + * Required + * + * Generated from protobuf field string role = 2; + * @param string $var + * @return $this + */ + public function setRole($var) + { + GPBUtil::checkString($var, True); + $this->role = $var; + + return $this; + } + + /** + * A single identity requesting access for a Google Cloud resource. + * Follows the same format of Binding.members. + * Required + * + * Generated from protobuf field string member = 3; + * @return string + */ + public function getMember() + { + return $this->member; + } + + /** + * A single identity requesting access for a Google Cloud resource. + * Follows the same format of Binding.members. + * Required + * + * Generated from protobuf field string member = 3; + * @param string $var + * @return $this + */ + public function setMember($var) + { + GPBUtil::checkString($var, True); + $this->member = $var; + + return $this; + } + + /** + * The condition that is associated with this binding. + * + * Generated from protobuf field .google.type.Expr condition = 4; + * @return \Google\Type\Expr|null + */ + public function getCondition() + { + return $this->condition; + } + + public function hasCondition() + { + return isset($this->condition); + } + + public function clearCondition() + { + unset($this->condition); + } + + /** + * The condition that is associated with this binding. + * + * Generated from protobuf field .google.type.Expr condition = 4; + * @param \Google\Type\Expr $var + * @return $this + */ + public function setCondition($var) + { + GPBUtil::checkMessage($var, \Google\Type\Expr::class); + $this->condition = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/BindingDelta/Action.php b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/BindingDelta/Action.php new file mode 100644 index 000000000000..18b7295093b6 --- /dev/null +++ b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/BindingDelta/Action.php @@ -0,0 +1,61 @@ +google.iam.v1.BindingDelta.Action + */ +class Action +{ + /** + * Unspecified. + * + * Generated from protobuf enum ACTION_UNSPECIFIED = 0; + */ + const ACTION_UNSPECIFIED = 0; + /** + * Addition of a Binding. + * + * Generated from protobuf enum ADD = 1; + */ + const ADD = 1; + /** + * Removal of a Binding. + * + * Generated from protobuf enum REMOVE = 2; + */ + const REMOVE = 2; + + private static $valueToName = [ + self::ACTION_UNSPECIFIED => 'ACTION_UNSPECIFIED', + self::ADD => 'ADD', + self::REMOVE => 'REMOVE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/GetIamPolicyRequest.php b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/GetIamPolicyRequest.php new file mode 100644 index 000000000000..231483b15f0c --- /dev/null +++ b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/GetIamPolicyRequest.php @@ -0,0 +1,119 @@ +google.iam.v1.GetIamPolicyRequest + */ +class GetIamPolicyRequest extends \Google\Protobuf\Internal\Message +{ + /** + * REQUIRED: The resource for which the policy is being requested. + * See the operation documentation for the appropriate value for this field. + * + * Generated from protobuf field string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $resource = ''; + /** + * OPTIONAL: A `GetPolicyOptions` object for specifying options to + * `GetIamPolicy`. + * + * Generated from protobuf field .google.iam.v1.GetPolicyOptions options = 2; + */ + protected $options = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $resource + * REQUIRED: The resource for which the policy is being requested. + * See the operation documentation for the appropriate value for this field. + * @type \Google\Cloud\Iam\V1\GetPolicyOptions $options + * OPTIONAL: A `GetPolicyOptions` object for specifying options to + * `GetIamPolicy`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Iam\V1\IamPolicy::initOnce(); + parent::__construct($data); + } + + /** + * REQUIRED: The resource for which the policy is being requested. + * See the operation documentation for the appropriate value for this field. + * + * Generated from protobuf field string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getResource() + { + return $this->resource; + } + + /** + * REQUIRED: The resource for which the policy is being requested. + * See the operation documentation for the appropriate value for this field. + * + * Generated from protobuf field string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setResource($var) + { + GPBUtil::checkString($var, True); + $this->resource = $var; + + return $this; + } + + /** + * OPTIONAL: A `GetPolicyOptions` object for specifying options to + * `GetIamPolicy`. + * + * Generated from protobuf field .google.iam.v1.GetPolicyOptions options = 2; + * @return \Google\Cloud\Iam\V1\GetPolicyOptions|null + */ + public function getOptions() + { + return $this->options; + } + + public function hasOptions() + { + return isset($this->options); + } + + public function clearOptions() + { + unset($this->options); + } + + /** + * OPTIONAL: A `GetPolicyOptions` object for specifying options to + * `GetIamPolicy`. + * + * Generated from protobuf field .google.iam.v1.GetPolicyOptions options = 2; + * @param \Google\Cloud\Iam\V1\GetPolicyOptions $var + * @return $this + */ + public function setOptions($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Iam\V1\GetPolicyOptions::class); + $this->options = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/GetPolicyOptions.php b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/GetPolicyOptions.php new file mode 100644 index 000000000000..0b245e12e1a2 --- /dev/null +++ b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/GetPolicyOptions.php @@ -0,0 +1,119 @@ +google.iam.v1.GetPolicyOptions + */ +class GetPolicyOptions extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The maximum policy version that will be used to format the + * policy. + * Valid values are 0, 1, and 3. Requests specifying an invalid value will be + * rejected. + * Requests for policies with any conditional role bindings must specify + * version 3. Policies with no conditional role bindings may specify any valid + * value or leave the field unset. + * The policy in the response might use the policy version that you specified, + * or it might use a lower policy version. For example, if you specify version + * 3, but the policy has no conditional role bindings, the response uses + * version 1. + * To learn which resources support conditions in their IAM policies, see the + * [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + * + * Generated from protobuf field int32 requested_policy_version = 1; + */ + protected $requested_policy_version = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $requested_policy_version + * Optional. The maximum policy version that will be used to format the + * policy. + * Valid values are 0, 1, and 3. Requests specifying an invalid value will be + * rejected. + * Requests for policies with any conditional role bindings must specify + * version 3. Policies with no conditional role bindings may specify any valid + * value or leave the field unset. + * The policy in the response might use the policy version that you specified, + * or it might use a lower policy version. For example, if you specify version + * 3, but the policy has no conditional role bindings, the response uses + * version 1. + * To learn which resources support conditions in their IAM policies, see the + * [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Iam\V1\Options::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The maximum policy version that will be used to format the + * policy. + * Valid values are 0, 1, and 3. Requests specifying an invalid value will be + * rejected. + * Requests for policies with any conditional role bindings must specify + * version 3. Policies with no conditional role bindings may specify any valid + * value or leave the field unset. + * The policy in the response might use the policy version that you specified, + * or it might use a lower policy version. For example, if you specify version + * 3, but the policy has no conditional role bindings, the response uses + * version 1. + * To learn which resources support conditions in their IAM policies, see the + * [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + * + * Generated from protobuf field int32 requested_policy_version = 1; + * @return int + */ + public function getRequestedPolicyVersion() + { + return $this->requested_policy_version; + } + + /** + * Optional. The maximum policy version that will be used to format the + * policy. + * Valid values are 0, 1, and 3. Requests specifying an invalid value will be + * rejected. + * Requests for policies with any conditional role bindings must specify + * version 3. Policies with no conditional role bindings may specify any valid + * value or leave the field unset. + * The policy in the response might use the policy version that you specified, + * or it might use a lower policy version. For example, if you specify version + * 3, but the policy has no conditional role bindings, the response uses + * version 1. + * To learn which resources support conditions in their IAM policies, see the + * [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + * + * Generated from protobuf field int32 requested_policy_version = 1; + * @param int $var + * @return $this + */ + public function setRequestedPolicyVersion($var) + { + GPBUtil::checkInt32($var); + $this->requested_policy_version = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/Policy.php b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/Policy.php new file mode 100644 index 000000000000..72e7c3f0186d --- /dev/null +++ b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/Policy.php @@ -0,0 +1,377 @@ +google.iam.v1.Policy + */ +class Policy extends \Google\Protobuf\Internal\Message +{ + /** + * Specifies the format of the policy. + * Valid values are `0`, `1`, and `3`. Requests that specify an invalid value + * are rejected. + * Any operation that affects conditional role bindings must specify version + * `3`. This requirement applies to the following operations: + * * Getting a policy that includes a conditional role binding + * * Adding a conditional role binding to a policy + * * Changing a conditional role binding in a policy + * * Removing any role binding, with or without a condition, from a policy + * that includes conditions + * **Important:** If you use IAM Conditions, you must include the `etag` field + * whenever you call `setIamPolicy`. If you omit this field, then IAM allows + * you to overwrite a version `3` policy with a version `1` policy, and all of + * the conditions in the version `3` policy are lost. + * If a policy does not include any conditions, operations on that policy may + * specify any valid version or leave the field unset. + * To learn which resources support conditions in their IAM policies, see the + * [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + * + * Generated from protobuf field int32 version = 1; + */ + protected $version = 0; + /** + * Associates a list of `members`, or principals, with a `role`. Optionally, + * may specify a `condition` that determines how and when the `bindings` are + * applied. Each of the `bindings` must contain at least one principal. + * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 + * of these principals can be Google groups. Each occurrence of a principal + * counts towards these limits. For example, if the `bindings` grant 50 + * different roles to `user:alice\@example.com`, and not to any other + * principal, then you can add another 1,450 principals to the `bindings` in + * the `Policy`. + * + * Generated from protobuf field repeated .google.iam.v1.Binding bindings = 4; + */ + private $bindings; + /** + * Specifies cloud audit logging configuration for this policy. + * + * Generated from protobuf field repeated .google.iam.v1.AuditConfig audit_configs = 6; + */ + private $audit_configs; + /** + * `etag` is used for optimistic concurrency control as a way to help + * prevent simultaneous updates of a policy from overwriting each other. + * It is strongly suggested that systems make use of the `etag` in the + * read-modify-write cycle to perform policy updates in order to avoid race + * conditions: An `etag` is returned in the response to `getIamPolicy`, and + * systems are expected to put that etag in the request to `setIamPolicy` to + * ensure that their change will be applied to the same version of the policy. + * **Important:** If you use IAM Conditions, you must include the `etag` field + * whenever you call `setIamPolicy`. If you omit this field, then IAM allows + * you to overwrite a version `3` policy with a version `1` policy, and all of + * the conditions in the version `3` policy are lost. + * + * Generated from protobuf field bytes etag = 3; + */ + protected $etag = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $version + * Specifies the format of the policy. + * Valid values are `0`, `1`, and `3`. Requests that specify an invalid value + * are rejected. + * Any operation that affects conditional role bindings must specify version + * `3`. This requirement applies to the following operations: + * * Getting a policy that includes a conditional role binding + * * Adding a conditional role binding to a policy + * * Changing a conditional role binding in a policy + * * Removing any role binding, with or without a condition, from a policy + * that includes conditions + * **Important:** If you use IAM Conditions, you must include the `etag` field + * whenever you call `setIamPolicy`. If you omit this field, then IAM allows + * you to overwrite a version `3` policy with a version `1` policy, and all of + * the conditions in the version `3` policy are lost. + * If a policy does not include any conditions, operations on that policy may + * specify any valid version or leave the field unset. + * To learn which resources support conditions in their IAM policies, see the + * [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + * @type \Google\Cloud\Iam\V1\Binding[] $bindings + * Associates a list of `members`, or principals, with a `role`. Optionally, + * may specify a `condition` that determines how and when the `bindings` are + * applied. Each of the `bindings` must contain at least one principal. + * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 + * of these principals can be Google groups. Each occurrence of a principal + * counts towards these limits. For example, if the `bindings` grant 50 + * different roles to `user:alice\@example.com`, and not to any other + * principal, then you can add another 1,450 principals to the `bindings` in + * the `Policy`. + * @type \Google\Cloud\Iam\V1\AuditConfig[] $audit_configs + * Specifies cloud audit logging configuration for this policy. + * @type string $etag + * `etag` is used for optimistic concurrency control as a way to help + * prevent simultaneous updates of a policy from overwriting each other. + * It is strongly suggested that systems make use of the `etag` in the + * read-modify-write cycle to perform policy updates in order to avoid race + * conditions: An `etag` is returned in the response to `getIamPolicy`, and + * systems are expected to put that etag in the request to `setIamPolicy` to + * ensure that their change will be applied to the same version of the policy. + * **Important:** If you use IAM Conditions, you must include the `etag` field + * whenever you call `setIamPolicy`. If you omit this field, then IAM allows + * you to overwrite a version `3` policy with a version `1` policy, and all of + * the conditions in the version `3` policy are lost. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Iam\V1\Policy::initOnce(); + parent::__construct($data); + } + + /** + * Specifies the format of the policy. + * Valid values are `0`, `1`, and `3`. Requests that specify an invalid value + * are rejected. + * Any operation that affects conditional role bindings must specify version + * `3`. This requirement applies to the following operations: + * * Getting a policy that includes a conditional role binding + * * Adding a conditional role binding to a policy + * * Changing a conditional role binding in a policy + * * Removing any role binding, with or without a condition, from a policy + * that includes conditions + * **Important:** If you use IAM Conditions, you must include the `etag` field + * whenever you call `setIamPolicy`. If you omit this field, then IAM allows + * you to overwrite a version `3` policy with a version `1` policy, and all of + * the conditions in the version `3` policy are lost. + * If a policy does not include any conditions, operations on that policy may + * specify any valid version or leave the field unset. + * To learn which resources support conditions in their IAM policies, see the + * [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + * + * Generated from protobuf field int32 version = 1; + * @return int + */ + public function getVersion() + { + return $this->version; + } + + /** + * Specifies the format of the policy. + * Valid values are `0`, `1`, and `3`. Requests that specify an invalid value + * are rejected. + * Any operation that affects conditional role bindings must specify version + * `3`. This requirement applies to the following operations: + * * Getting a policy that includes a conditional role binding + * * Adding a conditional role binding to a policy + * * Changing a conditional role binding in a policy + * * Removing any role binding, with or without a condition, from a policy + * that includes conditions + * **Important:** If you use IAM Conditions, you must include the `etag` field + * whenever you call `setIamPolicy`. If you omit this field, then IAM allows + * you to overwrite a version `3` policy with a version `1` policy, and all of + * the conditions in the version `3` policy are lost. + * If a policy does not include any conditions, operations on that policy may + * specify any valid version or leave the field unset. + * To learn which resources support conditions in their IAM policies, see the + * [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + * + * Generated from protobuf field int32 version = 1; + * @param int $var + * @return $this + */ + public function setVersion($var) + { + GPBUtil::checkInt32($var); + $this->version = $var; + + return $this; + } + + /** + * Associates a list of `members`, or principals, with a `role`. Optionally, + * may specify a `condition` that determines how and when the `bindings` are + * applied. Each of the `bindings` must contain at least one principal. + * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 + * of these principals can be Google groups. Each occurrence of a principal + * counts towards these limits. For example, if the `bindings` grant 50 + * different roles to `user:alice\@example.com`, and not to any other + * principal, then you can add another 1,450 principals to the `bindings` in + * the `Policy`. + * + * Generated from protobuf field repeated .google.iam.v1.Binding bindings = 4; + * @return RepeatedField<\Google\Cloud\Iam\V1\Binding> + */ + public function getBindings() + { + return $this->bindings; + } + + /** + * Associates a list of `members`, or principals, with a `role`. Optionally, + * may specify a `condition` that determines how and when the `bindings` are + * applied. Each of the `bindings` must contain at least one principal. + * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 + * of these principals can be Google groups. Each occurrence of a principal + * counts towards these limits. For example, if the `bindings` grant 50 + * different roles to `user:alice\@example.com`, and not to any other + * principal, then you can add another 1,450 principals to the `bindings` in + * the `Policy`. + * + * Generated from protobuf field repeated .google.iam.v1.Binding bindings = 4; + * @param \Google\Cloud\Iam\V1\Binding[] $var + * @return $this + */ + public function setBindings($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Iam\V1\Binding::class); + $this->bindings = $arr; + + return $this; + } + + /** + * Specifies cloud audit logging configuration for this policy. + * + * Generated from protobuf field repeated .google.iam.v1.AuditConfig audit_configs = 6; + * @return RepeatedField<\Google\Cloud\Iam\V1\AuditConfig> + */ + public function getAuditConfigs() + { + return $this->audit_configs; + } + + /** + * Specifies cloud audit logging configuration for this policy. + * + * Generated from protobuf field repeated .google.iam.v1.AuditConfig audit_configs = 6; + * @param \Google\Cloud\Iam\V1\AuditConfig[] $var + * @return $this + */ + public function setAuditConfigs($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Iam\V1\AuditConfig::class); + $this->audit_configs = $arr; + + return $this; + } + + /** + * `etag` is used for optimistic concurrency control as a way to help + * prevent simultaneous updates of a policy from overwriting each other. + * It is strongly suggested that systems make use of the `etag` in the + * read-modify-write cycle to perform policy updates in order to avoid race + * conditions: An `etag` is returned in the response to `getIamPolicy`, and + * systems are expected to put that etag in the request to `setIamPolicy` to + * ensure that their change will be applied to the same version of the policy. + * **Important:** If you use IAM Conditions, you must include the `etag` field + * whenever you call `setIamPolicy`. If you omit this field, then IAM allows + * you to overwrite a version `3` policy with a version `1` policy, and all of + * the conditions in the version `3` policy are lost. + * + * Generated from protobuf field bytes etag = 3; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * `etag` is used for optimistic concurrency control as a way to help + * prevent simultaneous updates of a policy from overwriting each other. + * It is strongly suggested that systems make use of the `etag` in the + * read-modify-write cycle to perform policy updates in order to avoid race + * conditions: An `etag` is returned in the response to `getIamPolicy`, and + * systems are expected to put that etag in the request to `setIamPolicy` to + * ensure that their change will be applied to the same version of the policy. + * **Important:** If you use IAM Conditions, you must include the `etag` field + * whenever you call `setIamPolicy`. If you omit this field, then IAM allows + * you to overwrite a version `3` policy with a version `1` policy, and all of + * the conditions in the version `3` policy are lost. + * + * Generated from protobuf field bytes etag = 3; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, False); + $this->etag = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/PolicyDelta.php b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/PolicyDelta.php new file mode 100644 index 000000000000..8f421643b836 --- /dev/null +++ b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/PolicyDelta.php @@ -0,0 +1,101 @@ +google.iam.v1.PolicyDelta + */ +class PolicyDelta extends \Google\Protobuf\Internal\Message +{ + /** + * The delta for Bindings between two policies. + * + * Generated from protobuf field repeated .google.iam.v1.BindingDelta binding_deltas = 1; + */ + private $binding_deltas; + /** + * The delta for AuditConfigs between two policies. + * + * Generated from protobuf field repeated .google.iam.v1.AuditConfigDelta audit_config_deltas = 2; + */ + private $audit_config_deltas; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Iam\V1\BindingDelta[] $binding_deltas + * The delta for Bindings between two policies. + * @type \Google\Cloud\Iam\V1\AuditConfigDelta[] $audit_config_deltas + * The delta for AuditConfigs between two policies. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Iam\V1\Policy::initOnce(); + parent::__construct($data); + } + + /** + * The delta for Bindings between two policies. + * + * Generated from protobuf field repeated .google.iam.v1.BindingDelta binding_deltas = 1; + * @return RepeatedField<\Google\Cloud\Iam\V1\BindingDelta> + */ + public function getBindingDeltas() + { + return $this->binding_deltas; + } + + /** + * The delta for Bindings between two policies. + * + * Generated from protobuf field repeated .google.iam.v1.BindingDelta binding_deltas = 1; + * @param \Google\Cloud\Iam\V1\BindingDelta[] $var + * @return $this + */ + public function setBindingDeltas($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Iam\V1\BindingDelta::class); + $this->binding_deltas = $arr; + + return $this; + } + + /** + * The delta for AuditConfigs between two policies. + * + * Generated from protobuf field repeated .google.iam.v1.AuditConfigDelta audit_config_deltas = 2; + * @return RepeatedField<\Google\Cloud\Iam\V1\AuditConfigDelta> + */ + public function getAuditConfigDeltas() + { + return $this->audit_config_deltas; + } + + /** + * The delta for AuditConfigs between two policies. + * + * Generated from protobuf field repeated .google.iam.v1.AuditConfigDelta audit_config_deltas = 2; + * @param \Google\Cloud\Iam\V1\AuditConfigDelta[] $var + * @return $this + */ + public function setAuditConfigDeltas($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Iam\V1\AuditConfigDelta::class); + $this->audit_config_deltas = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/ResourcePolicyMember.php b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/ResourcePolicyMember.php new file mode 100644 index 000000000000..c6deaf5bf7c8 --- /dev/null +++ b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/ResourcePolicyMember.php @@ -0,0 +1,142 @@ +google.iam.v1.ResourcePolicyMember + */ +class ResourcePolicyMember extends \Google\Protobuf\Internal\Message +{ + /** + * IAM policy binding member referring to a Google Cloud resource by + * user-assigned name (https://google.aip.dev/122). If a resource is deleted + * and recreated with the same name, the binding will be applicable to the new + * resource. + * Example: + * `principal://parametermanager.googleapis.com/projects/12345/name/locations/us-central1-a/parameters/my-parameter` + * + * Generated from protobuf field string iam_policy_name_principal = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $iam_policy_name_principal = ''; + /** + * IAM policy binding member referring to a Google Cloud resource by + * system-assigned unique identifier (https://google.aip.dev/148#uid). If a + * resource is deleted and recreated with the same name, the binding will not + * be applicable to the new resource + * Example: + * `principal://parametermanager.googleapis.com/projects/12345/uid/locations/us-central1-a/parameters/a918fed5` + * + * Generated from protobuf field string iam_policy_uid_principal = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $iam_policy_uid_principal = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $iam_policy_name_principal + * IAM policy binding member referring to a Google Cloud resource by + * user-assigned name (https://google.aip.dev/122). If a resource is deleted + * and recreated with the same name, the binding will be applicable to the new + * resource. + * Example: + * `principal://parametermanager.googleapis.com/projects/12345/name/locations/us-central1-a/parameters/my-parameter` + * @type string $iam_policy_uid_principal + * IAM policy binding member referring to a Google Cloud resource by + * system-assigned unique identifier (https://google.aip.dev/148#uid). If a + * resource is deleted and recreated with the same name, the binding will not + * be applicable to the new resource + * Example: + * `principal://parametermanager.googleapis.com/projects/12345/uid/locations/us-central1-a/parameters/a918fed5` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Iam\V1\ResourcePolicyMember::initOnce(); + parent::__construct($data); + } + + /** + * IAM policy binding member referring to a Google Cloud resource by + * user-assigned name (https://google.aip.dev/122). If a resource is deleted + * and recreated with the same name, the binding will be applicable to the new + * resource. + * Example: + * `principal://parametermanager.googleapis.com/projects/12345/name/locations/us-central1-a/parameters/my-parameter` + * + * Generated from protobuf field string iam_policy_name_principal = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getIamPolicyNamePrincipal() + { + return $this->iam_policy_name_principal; + } + + /** + * IAM policy binding member referring to a Google Cloud resource by + * user-assigned name (https://google.aip.dev/122). If a resource is deleted + * and recreated with the same name, the binding will be applicable to the new + * resource. + * Example: + * `principal://parametermanager.googleapis.com/projects/12345/name/locations/us-central1-a/parameters/my-parameter` + * + * Generated from protobuf field string iam_policy_name_principal = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setIamPolicyNamePrincipal($var) + { + GPBUtil::checkString($var, True); + $this->iam_policy_name_principal = $var; + + return $this; + } + + /** + * IAM policy binding member referring to a Google Cloud resource by + * system-assigned unique identifier (https://google.aip.dev/148#uid). If a + * resource is deleted and recreated with the same name, the binding will not + * be applicable to the new resource + * Example: + * `principal://parametermanager.googleapis.com/projects/12345/uid/locations/us-central1-a/parameters/a918fed5` + * + * Generated from protobuf field string iam_policy_uid_principal = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getIamPolicyUidPrincipal() + { + return $this->iam_policy_uid_principal; + } + + /** + * IAM policy binding member referring to a Google Cloud resource by + * system-assigned unique identifier (https://google.aip.dev/148#uid). If a + * resource is deleted and recreated with the same name, the binding will not + * be applicable to the new resource + * Example: + * `principal://parametermanager.googleapis.com/projects/12345/uid/locations/us-central1-a/parameters/a918fed5` + * + * Generated from protobuf field string iam_policy_uid_principal = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setIamPolicyUidPrincipal($var) + { + GPBUtil::checkString($var, True); + $this->iam_policy_uid_principal = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/SetIamPolicyRequest.php b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/SetIamPolicyRequest.php new file mode 100644 index 000000000000..e03e34a70735 --- /dev/null +++ b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/SetIamPolicyRequest.php @@ -0,0 +1,183 @@ +google.iam.v1.SetIamPolicyRequest + */ +class SetIamPolicyRequest extends \Google\Protobuf\Internal\Message +{ + /** + * REQUIRED: The resource for which the policy is being specified. + * See the operation documentation for the appropriate value for this field. + * + * Generated from protobuf field string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $resource = ''; + /** + * REQUIRED: The complete policy to be applied to the `resource`. The size of + * the policy is limited to a few 10s of KB. An empty policy is a + * valid policy but certain Cloud Platform services (such as Projects) + * might reject them. + * + * Generated from protobuf field .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $policy = null; + /** + * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only + * the fields in the mask will be modified. If no mask is provided, the + * following default mask is used: + * `paths: "bindings, etag"` + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; + */ + protected $update_mask = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $resource + * REQUIRED: The resource for which the policy is being specified. + * See the operation documentation for the appropriate value for this field. + * @type \Google\Cloud\Iam\V1\Policy $policy + * REQUIRED: The complete policy to be applied to the `resource`. The size of + * the policy is limited to a few 10s of KB. An empty policy is a + * valid policy but certain Cloud Platform services (such as Projects) + * might reject them. + * @type \Google\Protobuf\FieldMask $update_mask + * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only + * the fields in the mask will be modified. If no mask is provided, the + * following default mask is used: + * `paths: "bindings, etag"` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Iam\V1\IamPolicy::initOnce(); + parent::__construct($data); + } + + /** + * REQUIRED: The resource for which the policy is being specified. + * See the operation documentation for the appropriate value for this field. + * + * Generated from protobuf field string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getResource() + { + return $this->resource; + } + + /** + * REQUIRED: The resource for which the policy is being specified. + * See the operation documentation for the appropriate value for this field. + * + * Generated from protobuf field string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setResource($var) + { + GPBUtil::checkString($var, True); + $this->resource = $var; + + return $this; + } + + /** + * REQUIRED: The complete policy to be applied to the `resource`. The size of + * the policy is limited to a few 10s of KB. An empty policy is a + * valid policy but certain Cloud Platform services (such as Projects) + * might reject them. + * + * Generated from protobuf field .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Iam\V1\Policy|null + */ + public function getPolicy() + { + return $this->policy; + } + + public function hasPolicy() + { + return isset($this->policy); + } + + public function clearPolicy() + { + unset($this->policy); + } + + /** + * REQUIRED: The complete policy to be applied to the `resource`. The size of + * the policy is limited to a few 10s of KB. An empty policy is a + * valid policy but certain Cloud Platform services (such as Projects) + * might reject them. + * + * Generated from protobuf field .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Iam\V1\Policy $var + * @return $this + */ + public function setPolicy($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Iam\V1\Policy::class); + $this->policy = $var; + + return $this; + } + + /** + * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only + * the fields in the mask will be modified. If no mask is provided, the + * following default mask is used: + * `paths: "bindings, etag"` + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only + * the fields in the mask will be modified. If no mask is provided, the + * following default mask is used: + * `paths: "bindings, etag"` + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/TestIamPermissionsRequest.php b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/TestIamPermissionsRequest.php new file mode 100644 index 000000000000..cc98a3ddb997 --- /dev/null +++ b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/TestIamPermissionsRequest.php @@ -0,0 +1,117 @@ +google.iam.v1.TestIamPermissionsRequest + */ +class TestIamPermissionsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + * + * Generated from protobuf field string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $resource = ''; + /** + * The set of permissions to check for the `resource`. Permissions with + * wildcards (such as '*' or 'storage.*') are not allowed. For more + * information see + * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + * + * Generated from protobuf field repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private $permissions; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $resource + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + * @type string[] $permissions + * The set of permissions to check for the `resource`. Permissions with + * wildcards (such as '*' or 'storage.*') are not allowed. For more + * information see + * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Iam\V1\IamPolicy::initOnce(); + parent::__construct($data); + } + + /** + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + * + * Generated from protobuf field string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getResource() + { + return $this->resource; + } + + /** + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + * + * Generated from protobuf field string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setResource($var) + { + GPBUtil::checkString($var, True); + $this->resource = $var; + + return $this; + } + + /** + * The set of permissions to check for the `resource`. Permissions with + * wildcards (such as '*' or 'storage.*') are not allowed. For more + * information see + * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + * + * Generated from protobuf field repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return RepeatedField + */ + public function getPermissions() + { + return $this->permissions; + } + + /** + * The set of permissions to check for the `resource`. Permissions with + * wildcards (such as '*' or 'storage.*') are not allowed. For more + * information see + * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + * + * Generated from protobuf field repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string[] $var + * @return $this + */ + public function setPermissions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->permissions = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/TestIamPermissionsResponse.php b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/TestIamPermissionsResponse.php new file mode 100644 index 000000000000..310290095216 --- /dev/null +++ b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/TestIamPermissionsResponse.php @@ -0,0 +1,71 @@ +google.iam.v1.TestIamPermissionsResponse + */ +class TestIamPermissionsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * A subset of `TestPermissionsRequest.permissions` that the caller is + * allowed. + * + * Generated from protobuf field repeated string permissions = 1; + */ + private $permissions; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string[] $permissions + * A subset of `TestPermissionsRequest.permissions` that the caller is + * allowed. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Iam\V1\IamPolicy::initOnce(); + parent::__construct($data); + } + + /** + * A subset of `TestPermissionsRequest.permissions` that the caller is + * allowed. + * + * Generated from protobuf field repeated string permissions = 1; + * @return RepeatedField + */ + public function getPermissions() + { + return $this->permissions; + } + + /** + * A subset of `TestPermissionsRequest.permissions` that the caller is + * allowed. + * + * Generated from protobuf field repeated string permissions = 1; + * @param string[] $var + * @return $this + */ + public function setPermissions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->permissions = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Iam/V1/Logging/AuditData.php b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Iam/V1/Logging/AuditData.php new file mode 100644 index 000000000000..48aae57bd29f --- /dev/null +++ b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Iam/V1/Logging/AuditData.php @@ -0,0 +1,79 @@ +google.iam.v1.logging.AuditData + */ +class AuditData extends \Google\Protobuf\Internal\Message +{ + /** + * Policy delta between the original policy and the newly set policy. + * + * Generated from protobuf field .google.iam.v1.PolicyDelta policy_delta = 2; + */ + protected $policy_delta = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Iam\V1\PolicyDelta $policy_delta + * Policy delta between the original policy and the newly set policy. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Iam\V1\Logging\AuditData::initOnce(); + parent::__construct($data); + } + + /** + * Policy delta between the original policy and the newly set policy. + * + * Generated from protobuf field .google.iam.v1.PolicyDelta policy_delta = 2; + * @return \Google\Cloud\Iam\V1\PolicyDelta|null + */ + public function getPolicyDelta() + { + return $this->policy_delta; + } + + public function hasPolicyDelta() + { + return isset($this->policy_delta); + } + + public function clearPolicyDelta() + { + unset($this->policy_delta); + } + + /** + * Policy delta between the original policy and the newly set policy. + * + * Generated from protobuf field .google.iam.v1.PolicyDelta policy_delta = 2; + * @param \Google\Cloud\Iam\V1\PolicyDelta $var + * @return $this + */ + public function setPolicyDelta($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Iam\V1\PolicyDelta::class); + $this->policy_delta = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/iamlogging/proto/src/GPBMetadata/Google/Iam/V1/Logging/AuditData.php b/owl-bot-staging/CommonProtos/iamlogging/proto/src/GPBMetadata/Google/Iam/V1/Logging/AuditData.php new file mode 100644 index 000000000000..93ae1a0279ec --- /dev/null +++ b/owl-bot-staging/CommonProtos/iamlogging/proto/src/GPBMetadata/Google/Iam/V1/Logging/AuditData.php @@ -0,0 +1,25 @@ +internalAddGeneratedFile( + "\x0A\x8F\x02\x0A&google/iam/v1/logging/audit_data.proto\x12\x15google.iam.v1.logging\"=\x0A\x09AuditData\x120\x0A\x0Cpolicy_delta\x18\x02 \x01(\x0B2\x1A.google.iam.v1.PolicyDeltaB\x86\x01\x0A\x19com.google.iam.v1.loggingB\x0EAuditDataProtoP\x01Z9cloud.google.com/go/iam/apiv1/logging/loggingpb;loggingpb\xAA\x02\x1BGoogle.Cloud.Iam.V1.Loggingb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/iamlogging/proto/src/Google/Iam/V1/Logging/AuditData.php b/owl-bot-staging/CommonProtos/iamlogging/proto/src/Google/Iam/V1/Logging/AuditData.php new file mode 100644 index 000000000000..48aae57bd29f --- /dev/null +++ b/owl-bot-staging/CommonProtos/iamlogging/proto/src/Google/Iam/V1/Logging/AuditData.php @@ -0,0 +1,79 @@ +google.iam.v1.logging.AuditData + */ +class AuditData extends \Google\Protobuf\Internal\Message +{ + /** + * Policy delta between the original policy and the newly set policy. + * + * Generated from protobuf field .google.iam.v1.PolicyDelta policy_delta = 2; + */ + protected $policy_delta = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Iam\V1\PolicyDelta $policy_delta + * Policy delta between the original policy and the newly set policy. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Iam\V1\Logging\AuditData::initOnce(); + parent::__construct($data); + } + + /** + * Policy delta between the original policy and the newly set policy. + * + * Generated from protobuf field .google.iam.v1.PolicyDelta policy_delta = 2; + * @return \Google\Cloud\Iam\V1\PolicyDelta|null + */ + public function getPolicyDelta() + { + return $this->policy_delta; + } + + public function hasPolicyDelta() + { + return isset($this->policy_delta); + } + + public function clearPolicyDelta() + { + unset($this->policy_delta); + } + + /** + * Policy delta between the original policy and the newly set policy. + * + * Generated from protobuf field .google.iam.v1.PolicyDelta policy_delta = 2; + * @param \Google\Cloud\Iam\V1\PolicyDelta $var + * @return $this + */ + public function setPolicyDelta($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Iam\V1\PolicyDelta::class); + $this->policy_delta = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/location/proto/src/GPBMetadata/Google/Cloud/Location/Locations.php b/owl-bot-staging/CommonProtos/location/proto/src/GPBMetadata/Google/Cloud/Location/Locations.php new file mode 100644 index 000000000000..d18965d1bd1e --- /dev/null +++ b/owl-bot-staging/CommonProtos/location/proto/src/GPBMetadata/Google/Cloud/Location/Locations.php @@ -0,0 +1,27 @@ +internalAddGeneratedFile( + "\x0A\xD3\x08\x0A%google/cloud/location/locations.proto\x12\x15google.cloud.location\x1A\x19google/protobuf/any.proto\x1A\x17google/api/client.proto\"[\x0A\x14ListLocationsRequest\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12\x0E\x0A\x06filter\x18\x02 \x01(\x09\x12\x11\x0A\x09page_size\x18\x03 \x01(\x05\x12\x12\x0A\x0Apage_token\x18\x04 \x01(\x09\"d\x0A\x15ListLocationsResponse\x122\x0A\x09locations\x18\x01 \x03(\x0B2\x1F.google.cloud.location.Location\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\"\x0A\x12GetLocationRequest\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\"\xD7\x01\x0A\x08Location\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12\x13\x0A\x0Blocation_id\x18\x04 \x01(\x09\x12\x14\x0A\x0Cdisplay_name\x18\x05 \x01(\x09\x12;\x0A\x06labels\x18\x02 \x03(\x0B2+.google.cloud.location.Location.LabelsEntry\x12&\x0A\x08metadata\x18\x03 \x01(\x0B2\x14.google.protobuf.Any\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x012\xA4\x03\x0A\x09Locations\x12\xAB\x01\x0A\x0DListLocations\x12+.google.cloud.location.ListLocationsRequest\x1A,.google.cloud.location.ListLocationsResponse\"?\x82\xD3\xE4\x93\x029\x12\x14/v1/{name=locations}Z!\x12\x1F/v1/{name=projects/*}/locations\x12\x9E\x01\x0A\x0BGetLocation\x12).google.cloud.location.GetLocationRequest\x1A\x1F.google.cloud.location.Location\"C\x82\xD3\xE4\x93\x02=\x12\x16/v1/{name=locations/*}Z#\x12!/v1/{name=projects/*/locations/*}\x1AH\xCAA\x14cloud.googleapis.com\xD2A.https://www.googleapis.com/auth/cloud-platformBo\x0A\x19com.google.cloud.locationB\x0ELocationsProtoP\x01Z=google.golang.org/genproto/googleapis/cloud/location;location\xF8\x01\x01b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/location/proto/src/Google/Cloud/Location/GetLocationRequest.php b/owl-bot-staging/CommonProtos/location/proto/src/Google/Cloud/Location/GetLocationRequest.php new file mode 100644 index 000000000000..a83de9e37c51 --- /dev/null +++ b/owl-bot-staging/CommonProtos/location/proto/src/Google/Cloud/Location/GetLocationRequest.php @@ -0,0 +1,67 @@ +google.cloud.location.GetLocationRequest + */ +class GetLocationRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Resource name for the location. + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Resource name for the location. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Location\Locations::initOnce(); + parent::__construct($data); + } + + /** + * Resource name for the location. + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Resource name for the location. + * + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/location/proto/src/Google/Cloud/Location/ListLocationsRequest.php b/owl-bot-staging/CommonProtos/location/proto/src/Google/Cloud/Location/ListLocationsRequest.php new file mode 100644 index 000000000000..d7167a00f1d0 --- /dev/null +++ b/owl-bot-staging/CommonProtos/location/proto/src/Google/Cloud/Location/ListLocationsRequest.php @@ -0,0 +1,169 @@ +google.cloud.location.ListLocationsRequest + */ +class ListLocationsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * The resource that owns the locations collection, if applicable. + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * The standard list filter. + * + * Generated from protobuf field string filter = 2; + */ + protected $filter = ''; + /** + * The standard list page size. + * + * Generated from protobuf field int32 page_size = 3; + */ + protected $page_size = 0; + /** + * The standard list page token. + * + * Generated from protobuf field string page_token = 4; + */ + protected $page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * The resource that owns the locations collection, if applicable. + * @type string $filter + * The standard list filter. + * @type int $page_size + * The standard list page size. + * @type string $page_token + * The standard list page token. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Location\Locations::initOnce(); + parent::__construct($data); + } + + /** + * The resource that owns the locations collection, if applicable. + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The resource that owns the locations collection, if applicable. + * + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * The standard list filter. + * + * Generated from protobuf field string filter = 2; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * The standard list filter. + * + * Generated from protobuf field string filter = 2; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + + /** + * The standard list page size. + * + * Generated from protobuf field int32 page_size = 3; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * The standard list page size. + * + * Generated from protobuf field int32 page_size = 3; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * The standard list page token. + * + * Generated from protobuf field string page_token = 4; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * The standard list page token. + * + * Generated from protobuf field string page_token = 4; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/location/proto/src/Google/Cloud/Location/ListLocationsResponse.php b/owl-bot-staging/CommonProtos/location/proto/src/Google/Cloud/Location/ListLocationsResponse.php new file mode 100644 index 000000000000..66a1b5882369 --- /dev/null +++ b/owl-bot-staging/CommonProtos/location/proto/src/Google/Cloud/Location/ListLocationsResponse.php @@ -0,0 +1,101 @@ +google.cloud.location.ListLocationsResponse + */ +class ListLocationsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * A list of locations that matches the specified filter in the request. + * + * Generated from protobuf field repeated .google.cloud.location.Location locations = 1; + */ + private $locations; + /** + * The standard List next-page token. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Location\Location[] $locations + * A list of locations that matches the specified filter in the request. + * @type string $next_page_token + * The standard List next-page token. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Location\Locations::initOnce(); + parent::__construct($data); + } + + /** + * A list of locations that matches the specified filter in the request. + * + * Generated from protobuf field repeated .google.cloud.location.Location locations = 1; + * @return RepeatedField<\Google\Cloud\Location\Location> + */ + public function getLocations() + { + return $this->locations; + } + + /** + * A list of locations that matches the specified filter in the request. + * + * Generated from protobuf field repeated .google.cloud.location.Location locations = 1; + * @param \Google\Cloud\Location\Location[] $var + * @return $this + */ + public function setLocations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Location\Location::class); + $this->locations = $arr; + + return $this; + } + + /** + * The standard List next-page token. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * The standard List next-page token. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/location/proto/src/Google/Cloud/Location/Location.php b/owl-bot-staging/CommonProtos/location/proto/src/Google/Cloud/Location/Location.php new file mode 100644 index 000000000000..fb02c317e56f --- /dev/null +++ b/owl-bot-staging/CommonProtos/location/proto/src/Google/Cloud/Location/Location.php @@ -0,0 +1,229 @@ +google.cloud.location.Location + */ +class Location extends \Google\Protobuf\Internal\Message +{ + /** + * Resource name for the location, which may vary between implementations. + * For example: `"projects/example-project/locations/us-east1"` + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * The canonical id for this location. For example: `"us-east1"`. + * + * Generated from protobuf field string location_id = 4; + */ + protected $location_id = ''; + /** + * The friendly name for this location, typically a nearby city name. + * For example, "Tokyo". + * + * Generated from protobuf field string display_name = 5; + */ + protected $display_name = ''; + /** + * Cross-service attributes for the location. For example + * {"cloud.googleapis.com/region": "us-east1"} + * + * Generated from protobuf field map labels = 2; + */ + private $labels; + /** + * Service-specific metadata. For example the available capacity at the given + * location. + * + * Generated from protobuf field .google.protobuf.Any metadata = 3; + */ + protected $metadata = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Resource name for the location, which may vary between implementations. + * For example: `"projects/example-project/locations/us-east1"` + * @type string $location_id + * The canonical id for this location. For example: `"us-east1"`. + * @type string $display_name + * The friendly name for this location, typically a nearby city name. + * For example, "Tokyo". + * @type array|\Google\Protobuf\Internal\MapField $labels + * Cross-service attributes for the location. For example + * {"cloud.googleapis.com/region": "us-east1"} + * @type \Google\Protobuf\Any $metadata + * Service-specific metadata. For example the available capacity at the given + * location. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Location\Locations::initOnce(); + parent::__construct($data); + } + + /** + * Resource name for the location, which may vary between implementations. + * For example: `"projects/example-project/locations/us-east1"` + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Resource name for the location, which may vary between implementations. + * For example: `"projects/example-project/locations/us-east1"` + * + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * The canonical id for this location. For example: `"us-east1"`. + * + * Generated from protobuf field string location_id = 4; + * @return string + */ + public function getLocationId() + { + return $this->location_id; + } + + /** + * The canonical id for this location. For example: `"us-east1"`. + * + * Generated from protobuf field string location_id = 4; + * @param string $var + * @return $this + */ + public function setLocationId($var) + { + GPBUtil::checkString($var, True); + $this->location_id = $var; + + return $this; + } + + /** + * The friendly name for this location, typically a nearby city name. + * For example, "Tokyo". + * + * Generated from protobuf field string display_name = 5; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * The friendly name for this location, typically a nearby city name. + * For example, "Tokyo". + * + * Generated from protobuf field string display_name = 5; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Cross-service attributes for the location. For example + * {"cloud.googleapis.com/region": "us-east1"} + * + * Generated from protobuf field map labels = 2; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * Cross-service attributes for the location. For example + * {"cloud.googleapis.com/region": "us-east1"} + * + * Generated from protobuf field map labels = 2; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->labels = $arr; + + return $this; + } + + /** + * Service-specific metadata. For example the available capacity at the given + * location. + * + * Generated from protobuf field .google.protobuf.Any metadata = 3; + * @return \Google\Protobuf\Any|null + */ + public function getMetadata() + { + return $this->metadata; + } + + public function hasMetadata() + { + return isset($this->metadata); + } + + public function clearMetadata() + { + unset($this->metadata); + } + + /** + * Service-specific metadata. For example the available capacity at the given + * location. + * + * Generated from protobuf field .google.protobuf.Any metadata = 3; + * @param \Google\Protobuf\Any $var + * @return $this + */ + public function setMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Any::class); + $this->metadata = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/logging/proto/src/GPBMetadata/Google/Logging/Type/HttpRequest.php b/owl-bot-staging/CommonProtos/logging/proto/src/GPBMetadata/Google/Logging/Type/HttpRequest.php new file mode 100644 index 000000000000..5bb5ed5eb488 --- /dev/null +++ b/owl-bot-staging/CommonProtos/logging/proto/src/GPBMetadata/Google/Logging/Type/HttpRequest.php @@ -0,0 +1,25 @@ +internalAddGeneratedFile( + "\x0A\xF8\x04\x0A&google/logging/type/http_request.proto\x12\x13google.logging.type\"\xEF\x02\x0A\x0BHttpRequest\x12\x16\x0A\x0Erequest_method\x18\x01 \x01(\x09\x12\x13\x0A\x0Brequest_url\x18\x02 \x01(\x09\x12\x14\x0A\x0Crequest_size\x18\x03 \x01(\x03\x12\x0E\x0A\x06status\x18\x04 \x01(\x05\x12\x15\x0A\x0Dresponse_size\x18\x05 \x01(\x03\x12\x12\x0A\x0Auser_agent\x18\x06 \x01(\x09\x12\x11\x0A\x09remote_ip\x18\x07 \x01(\x09\x12\x11\x0A\x09server_ip\x18\x0D \x01(\x09\x12\x0F\x0A\x07referer\x18\x08 \x01(\x09\x12*\x0A\x07latency\x18\x0E \x01(\x0B2\x19.google.protobuf.Duration\x12\x14\x0A\x0Ccache_lookup\x18\x0B \x01(\x08\x12\x11\x0A\x09cache_hit\x18\x09 \x01(\x08\x12*\x0A\"cache_validated_with_origin_server\x18\x0A \x01(\x08\x12\x18\x0A\x10cache_fill_bytes\x18\x0C \x01(\x03\x12\x10\x0A\x08protocol\x18\x0F \x01(\x09B\xBE\x01\x0A\x17com.google.logging.typeB\x10HttpRequestProtoP\x01Z8google.golang.org/genproto/googleapis/logging/type;ltype\xAA\x02\x19Google.Cloud.Logging.Type\xCA\x02\x19Google\\Cloud\\Logging\\Type\xEA\x02\x1CGoogle::Cloud::Logging::Typeb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/logging/proto/src/GPBMetadata/Google/Logging/Type/LogSeverity.php b/owl-bot-staging/CommonProtos/logging/proto/src/GPBMetadata/Google/Logging/Type/LogSeverity.php new file mode 100644 index 000000000000..0955634f7305 --- /dev/null +++ b/owl-bot-staging/CommonProtos/logging/proto/src/GPBMetadata/Google/Logging/Type/LogSeverity.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\x92\x03\x0A&google/logging/type/log_severity.proto\x12\x13google.logging.type*\x82\x01\x0A\x0BLogSeverity\x12\x0B\x0A\x07DEFAULT\x10\x00\x12\x09\x0A\x05DEBUG\x10d\x12\x09\x0A\x04INFO\x10\xC8\x01\x12\x0B\x0A\x06NOTICE\x10\xAC\x02\x12\x0C\x0A\x07WARNING\x10\x90\x03\x12\x0A\x0A\x05ERROR\x10\xF4\x03\x12\x0D\x0A\x08CRITICAL\x10\xD8\x04\x12\x0A\x0A\x05ALERT\x10\xBC\x05\x12\x0E\x0A\x09EMERGENCY\x10\xA0\x06B\xC5\x01\x0A\x17com.google.logging.typeB\x10LogSeverityProtoP\x01Z8google.golang.org/genproto/googleapis/logging/type;ltype\xA2\x02\x04GLOG\xAA\x02\x19Google.Cloud.Logging.Type\xCA\x02\x19Google\\Cloud\\Logging\\Type\xEA\x02\x1CGoogle::Cloud::Logging::Typeb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/logging/proto/src/Google/Cloud/Logging/Type/HttpRequest.php b/owl-bot-staging/CommonProtos/logging/proto/src/Google/Cloud/Logging/Type/HttpRequest.php new file mode 100644 index 000000000000..6ccdd4078b5b --- /dev/null +++ b/owl-bot-staging/CommonProtos/logging/proto/src/Google/Cloud/Logging/Type/HttpRequest.php @@ -0,0 +1,627 @@ +google.logging.type.HttpRequest + */ +class HttpRequest extends \Google\Protobuf\Internal\Message +{ + /** + * The request method. Examples: `"GET"`, `"HEAD"`, `"PUT"`, `"POST"`. + * + * Generated from protobuf field string request_method = 1; + */ + protected $request_method = ''; + /** + * The scheme (http, https), the host name, the path and the query + * portion of the URL that was requested. + * Example: `"http://example.com/some/info?color=red"`. + * + * Generated from protobuf field string request_url = 2; + */ + protected $request_url = ''; + /** + * The size of the HTTP request message in bytes, including the request + * headers and the request body. + * + * Generated from protobuf field int64 request_size = 3; + */ + protected $request_size = 0; + /** + * The response code indicating the status of response. + * Examples: 200, 404. + * + * Generated from protobuf field int32 status = 4; + */ + protected $status = 0; + /** + * The size of the HTTP response message sent back to the client, in bytes, + * including the response headers and the response body. + * + * Generated from protobuf field int64 response_size = 5; + */ + protected $response_size = 0; + /** + * The user agent sent by the client. Example: + * `"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET + * CLR 1.0.3705)"`. + * + * Generated from protobuf field string user_agent = 6; + */ + protected $user_agent = ''; + /** + * The IP address (IPv4 or IPv6) of the client that issued the HTTP + * request. This field can include port information. Examples: + * `"192.168.1.1"`, `"10.0.0.1:80"`, `"FE80::0202:B3FF:FE1E:8329"`. + * + * Generated from protobuf field string remote_ip = 7; + */ + protected $remote_ip = ''; + /** + * The IP address (IPv4 or IPv6) of the origin server that the request was + * sent to. This field can include port information. Examples: + * `"192.168.1.1"`, `"10.0.0.1:80"`, `"FE80::0202:B3FF:FE1E:8329"`. + * + * Generated from protobuf field string server_ip = 13; + */ + protected $server_ip = ''; + /** + * The referer URL of the request, as defined in + * [HTTP/1.1 Header Field + * Definitions](https://datatracker.ietf.org/doc/html/rfc2616#section-14.36). + * + * Generated from protobuf field string referer = 8; + */ + protected $referer = ''; + /** + * The request processing latency on the server, from the time the request was + * received until the response was sent. + * + * Generated from protobuf field .google.protobuf.Duration latency = 14; + */ + protected $latency = null; + /** + * Whether or not a cache lookup was attempted. + * + * Generated from protobuf field bool cache_lookup = 11; + */ + protected $cache_lookup = false; + /** + * Whether or not an entity was served from cache + * (with or without validation). + * + * Generated from protobuf field bool cache_hit = 9; + */ + protected $cache_hit = false; + /** + * Whether or not the response was validated with the origin server before + * being served from cache. This field is only meaningful if `cache_hit` is + * True. + * + * Generated from protobuf field bool cache_validated_with_origin_server = 10; + */ + protected $cache_validated_with_origin_server = false; + /** + * The number of HTTP response bytes inserted into cache. Set only when a + * cache fill was attempted. + * + * Generated from protobuf field int64 cache_fill_bytes = 12; + */ + protected $cache_fill_bytes = 0; + /** + * Protocol used for the request. Examples: "HTTP/1.1", "HTTP/2", "websocket" + * + * Generated from protobuf field string protocol = 15; + */ + protected $protocol = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $request_method + * The request method. Examples: `"GET"`, `"HEAD"`, `"PUT"`, `"POST"`. + * @type string $request_url + * The scheme (http, https), the host name, the path and the query + * portion of the URL that was requested. + * Example: `"http://example.com/some/info?color=red"`. + * @type int|string $request_size + * The size of the HTTP request message in bytes, including the request + * headers and the request body. + * @type int $status + * The response code indicating the status of response. + * Examples: 200, 404. + * @type int|string $response_size + * The size of the HTTP response message sent back to the client, in bytes, + * including the response headers and the response body. + * @type string $user_agent + * The user agent sent by the client. Example: + * `"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET + * CLR 1.0.3705)"`. + * @type string $remote_ip + * The IP address (IPv4 or IPv6) of the client that issued the HTTP + * request. This field can include port information. Examples: + * `"192.168.1.1"`, `"10.0.0.1:80"`, `"FE80::0202:B3FF:FE1E:8329"`. + * @type string $server_ip + * The IP address (IPv4 or IPv6) of the origin server that the request was + * sent to. This field can include port information. Examples: + * `"192.168.1.1"`, `"10.0.0.1:80"`, `"FE80::0202:B3FF:FE1E:8329"`. + * @type string $referer + * The referer URL of the request, as defined in + * [HTTP/1.1 Header Field + * Definitions](https://datatracker.ietf.org/doc/html/rfc2616#section-14.36). + * @type \Google\Protobuf\Duration $latency + * The request processing latency on the server, from the time the request was + * received until the response was sent. + * @type bool $cache_lookup + * Whether or not a cache lookup was attempted. + * @type bool $cache_hit + * Whether or not an entity was served from cache + * (with or without validation). + * @type bool $cache_validated_with_origin_server + * Whether or not the response was validated with the origin server before + * being served from cache. This field is only meaningful if `cache_hit` is + * True. + * @type int|string $cache_fill_bytes + * The number of HTTP response bytes inserted into cache. Set only when a + * cache fill was attempted. + * @type string $protocol + * Protocol used for the request. Examples: "HTTP/1.1", "HTTP/2", "websocket" + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Logging\Type\HttpRequest::initOnce(); + parent::__construct($data); + } + + /** + * The request method. Examples: `"GET"`, `"HEAD"`, `"PUT"`, `"POST"`. + * + * Generated from protobuf field string request_method = 1; + * @return string + */ + public function getRequestMethod() + { + return $this->request_method; + } + + /** + * The request method. Examples: `"GET"`, `"HEAD"`, `"PUT"`, `"POST"`. + * + * Generated from protobuf field string request_method = 1; + * @param string $var + * @return $this + */ + public function setRequestMethod($var) + { + GPBUtil::checkString($var, True); + $this->request_method = $var; + + return $this; + } + + /** + * The scheme (http, https), the host name, the path and the query + * portion of the URL that was requested. + * Example: `"http://example.com/some/info?color=red"`. + * + * Generated from protobuf field string request_url = 2; + * @return string + */ + public function getRequestUrl() + { + return $this->request_url; + } + + /** + * The scheme (http, https), the host name, the path and the query + * portion of the URL that was requested. + * Example: `"http://example.com/some/info?color=red"`. + * + * Generated from protobuf field string request_url = 2; + * @param string $var + * @return $this + */ + public function setRequestUrl($var) + { + GPBUtil::checkString($var, True); + $this->request_url = $var; + + return $this; + } + + /** + * The size of the HTTP request message in bytes, including the request + * headers and the request body. + * + * Generated from protobuf field int64 request_size = 3; + * @return int|string + */ + public function getRequestSize() + { + return $this->request_size; + } + + /** + * The size of the HTTP request message in bytes, including the request + * headers and the request body. + * + * Generated from protobuf field int64 request_size = 3; + * @param int|string $var + * @return $this + */ + public function setRequestSize($var) + { + GPBUtil::checkInt64($var); + $this->request_size = $var; + + return $this; + } + + /** + * The response code indicating the status of response. + * Examples: 200, 404. + * + * Generated from protobuf field int32 status = 4; + * @return int + */ + public function getStatus() + { + return $this->status; + } + + /** + * The response code indicating the status of response. + * Examples: 200, 404. + * + * Generated from protobuf field int32 status = 4; + * @param int $var + * @return $this + */ + public function setStatus($var) + { + GPBUtil::checkInt32($var); + $this->status = $var; + + return $this; + } + + /** + * The size of the HTTP response message sent back to the client, in bytes, + * including the response headers and the response body. + * + * Generated from protobuf field int64 response_size = 5; + * @return int|string + */ + public function getResponseSize() + { + return $this->response_size; + } + + /** + * The size of the HTTP response message sent back to the client, in bytes, + * including the response headers and the response body. + * + * Generated from protobuf field int64 response_size = 5; + * @param int|string $var + * @return $this + */ + public function setResponseSize($var) + { + GPBUtil::checkInt64($var); + $this->response_size = $var; + + return $this; + } + + /** + * The user agent sent by the client. Example: + * `"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET + * CLR 1.0.3705)"`. + * + * Generated from protobuf field string user_agent = 6; + * @return string + */ + public function getUserAgent() + { + return $this->user_agent; + } + + /** + * The user agent sent by the client. Example: + * `"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET + * CLR 1.0.3705)"`. + * + * Generated from protobuf field string user_agent = 6; + * @param string $var + * @return $this + */ + public function setUserAgent($var) + { + GPBUtil::checkString($var, True); + $this->user_agent = $var; + + return $this; + } + + /** + * The IP address (IPv4 or IPv6) of the client that issued the HTTP + * request. This field can include port information. Examples: + * `"192.168.1.1"`, `"10.0.0.1:80"`, `"FE80::0202:B3FF:FE1E:8329"`. + * + * Generated from protobuf field string remote_ip = 7; + * @return string + */ + public function getRemoteIp() + { + return $this->remote_ip; + } + + /** + * The IP address (IPv4 or IPv6) of the client that issued the HTTP + * request. This field can include port information. Examples: + * `"192.168.1.1"`, `"10.0.0.1:80"`, `"FE80::0202:B3FF:FE1E:8329"`. + * + * Generated from protobuf field string remote_ip = 7; + * @param string $var + * @return $this + */ + public function setRemoteIp($var) + { + GPBUtil::checkString($var, True); + $this->remote_ip = $var; + + return $this; + } + + /** + * The IP address (IPv4 or IPv6) of the origin server that the request was + * sent to. This field can include port information. Examples: + * `"192.168.1.1"`, `"10.0.0.1:80"`, `"FE80::0202:B3FF:FE1E:8329"`. + * + * Generated from protobuf field string server_ip = 13; + * @return string + */ + public function getServerIp() + { + return $this->server_ip; + } + + /** + * The IP address (IPv4 or IPv6) of the origin server that the request was + * sent to. This field can include port information. Examples: + * `"192.168.1.1"`, `"10.0.0.1:80"`, `"FE80::0202:B3FF:FE1E:8329"`. + * + * Generated from protobuf field string server_ip = 13; + * @param string $var + * @return $this + */ + public function setServerIp($var) + { + GPBUtil::checkString($var, True); + $this->server_ip = $var; + + return $this; + } + + /** + * The referer URL of the request, as defined in + * [HTTP/1.1 Header Field + * Definitions](https://datatracker.ietf.org/doc/html/rfc2616#section-14.36). + * + * Generated from protobuf field string referer = 8; + * @return string + */ + public function getReferer() + { + return $this->referer; + } + + /** + * The referer URL of the request, as defined in + * [HTTP/1.1 Header Field + * Definitions](https://datatracker.ietf.org/doc/html/rfc2616#section-14.36). + * + * Generated from protobuf field string referer = 8; + * @param string $var + * @return $this + */ + public function setReferer($var) + { + GPBUtil::checkString($var, True); + $this->referer = $var; + + return $this; + } + + /** + * The request processing latency on the server, from the time the request was + * received until the response was sent. + * + * Generated from protobuf field .google.protobuf.Duration latency = 14; + * @return \Google\Protobuf\Duration|null + */ + public function getLatency() + { + return $this->latency; + } + + public function hasLatency() + { + return isset($this->latency); + } + + public function clearLatency() + { + unset($this->latency); + } + + /** + * The request processing latency on the server, from the time the request was + * received until the response was sent. + * + * Generated from protobuf field .google.protobuf.Duration latency = 14; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setLatency($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->latency = $var; + + return $this; + } + + /** + * Whether or not a cache lookup was attempted. + * + * Generated from protobuf field bool cache_lookup = 11; + * @return bool + */ + public function getCacheLookup() + { + return $this->cache_lookup; + } + + /** + * Whether or not a cache lookup was attempted. + * + * Generated from protobuf field bool cache_lookup = 11; + * @param bool $var + * @return $this + */ + public function setCacheLookup($var) + { + GPBUtil::checkBool($var); + $this->cache_lookup = $var; + + return $this; + } + + /** + * Whether or not an entity was served from cache + * (with or without validation). + * + * Generated from protobuf field bool cache_hit = 9; + * @return bool + */ + public function getCacheHit() + { + return $this->cache_hit; + } + + /** + * Whether or not an entity was served from cache + * (with or without validation). + * + * Generated from protobuf field bool cache_hit = 9; + * @param bool $var + * @return $this + */ + public function setCacheHit($var) + { + GPBUtil::checkBool($var); + $this->cache_hit = $var; + + return $this; + } + + /** + * Whether or not the response was validated with the origin server before + * being served from cache. This field is only meaningful if `cache_hit` is + * True. + * + * Generated from protobuf field bool cache_validated_with_origin_server = 10; + * @return bool + */ + public function getCacheValidatedWithOriginServer() + { + return $this->cache_validated_with_origin_server; + } + + /** + * Whether or not the response was validated with the origin server before + * being served from cache. This field is only meaningful if `cache_hit` is + * True. + * + * Generated from protobuf field bool cache_validated_with_origin_server = 10; + * @param bool $var + * @return $this + */ + public function setCacheValidatedWithOriginServer($var) + { + GPBUtil::checkBool($var); + $this->cache_validated_with_origin_server = $var; + + return $this; + } + + /** + * The number of HTTP response bytes inserted into cache. Set only when a + * cache fill was attempted. + * + * Generated from protobuf field int64 cache_fill_bytes = 12; + * @return int|string + */ + public function getCacheFillBytes() + { + return $this->cache_fill_bytes; + } + + /** + * The number of HTTP response bytes inserted into cache. Set only when a + * cache fill was attempted. + * + * Generated from protobuf field int64 cache_fill_bytes = 12; + * @param int|string $var + * @return $this + */ + public function setCacheFillBytes($var) + { + GPBUtil::checkInt64($var); + $this->cache_fill_bytes = $var; + + return $this; + } + + /** + * Protocol used for the request. Examples: "HTTP/1.1", "HTTP/2", "websocket" + * + * Generated from protobuf field string protocol = 15; + * @return string + */ + public function getProtocol() + { + return $this->protocol; + } + + /** + * Protocol used for the request. Examples: "HTTP/1.1", "HTTP/2", "websocket" + * + * Generated from protobuf field string protocol = 15; + * @param string $var + * @return $this + */ + public function setProtocol($var) + { + GPBUtil::checkString($var, True); + $this->protocol = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/logging/proto/src/Google/Cloud/Logging/Type/LogSeverity.php b/owl-bot-staging/CommonProtos/logging/proto/src/Google/Cloud/Logging/Type/LogSeverity.php new file mode 100644 index 000000000000..dc64792e5661 --- /dev/null +++ b/owl-bot-staging/CommonProtos/logging/proto/src/Google/Cloud/Logging/Type/LogSeverity.php @@ -0,0 +1,119 @@ + DEBUG AND severity <= WARNING + * If you are writing log entries, you should map other severity encodings to + * one of these standard levels. For example, you might map all of Java's FINE, + * FINER, and FINEST levels to `LogSeverity.DEBUG`. You can preserve the + * original severity level in the log entry payload if you wish. + * + * Protobuf type google.logging.type.LogSeverity + */ +class LogSeverity +{ + /** + * (0) The log entry has no assigned severity level. + * + * Generated from protobuf enum DEFAULT = 0; + */ + const PBDEFAULT = 0; + /** + * (100) Debug or trace information. + * + * Generated from protobuf enum DEBUG = 100; + */ + const DEBUG = 100; + /** + * (200) Routine information, such as ongoing status or performance. + * + * Generated from protobuf enum INFO = 200; + */ + const INFO = 200; + /** + * (300) Normal but significant events, such as start up, shut down, or + * a configuration change. + * + * Generated from protobuf enum NOTICE = 300; + */ + const NOTICE = 300; + /** + * (400) Warning events might cause problems. + * + * Generated from protobuf enum WARNING = 400; + */ + const WARNING = 400; + /** + * (500) Error events are likely to cause problems. + * + * Generated from protobuf enum ERROR = 500; + */ + const ERROR = 500; + /** + * (600) Critical events cause more severe problems or outages. + * + * Generated from protobuf enum CRITICAL = 600; + */ + const CRITICAL = 600; + /** + * (700) A person must take an action immediately. + * + * Generated from protobuf enum ALERT = 700; + */ + const ALERT = 700; + /** + * (800) One or more systems are unusable. + * + * Generated from protobuf enum EMERGENCY = 800; + */ + const EMERGENCY = 800; + + private static $valueToName = [ + self::PBDEFAULT => 'DEFAULT', + self::DEBUG => 'DEBUG', + self::INFO => 'INFO', + self::NOTICE => 'NOTICE', + self::WARNING => 'WARNING', + self::ERROR => 'ERROR', + self::CRITICAL => 'CRITICAL', + self::ALERT => 'ALERT', + self::EMERGENCY => 'EMERGENCY', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + $pbconst = __CLASS__. '::PB' . strtoupper($name); + if (!defined($pbconst)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($pbconst); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/GPBMetadata/Google/Rpc/Code.php b/owl-bot-staging/CommonProtos/rpc/proto/src/GPBMetadata/Google/Rpc/Code.php new file mode 100644 index 000000000000..fe364e8ea743 --- /dev/null +++ b/owl-bot-staging/CommonProtos/rpc/proto/src/GPBMetadata/Google/Rpc/Code.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\xBF\x03\x0A\x15google/rpc/code.proto\x12\x0Agoogle.rpc*\xB7\x02\x0A\x04Code\x12\x06\x0A\x02OK\x10\x00\x12\x0D\x0A\x09CANCELLED\x10\x01\x12\x0B\x0A\x07UNKNOWN\x10\x02\x12\x14\x0A\x10INVALID_ARGUMENT\x10\x03\x12\x15\x0A\x11DEADLINE_EXCEEDED\x10\x04\x12\x0D\x0A\x09NOT_FOUND\x10\x05\x12\x12\x0A\x0EALREADY_EXISTS\x10\x06\x12\x15\x0A\x11PERMISSION_DENIED\x10\x07\x12\x13\x0A\x0FUNAUTHENTICATED\x10\x10\x12\x16\x0A\x12RESOURCE_EXHAUSTED\x10\x08\x12\x17\x0A\x13FAILED_PRECONDITION\x10\x09\x12\x0B\x0A\x07ABORTED\x10\x0A\x12\x10\x0A\x0COUT_OF_RANGE\x10\x0B\x12\x11\x0A\x0DUNIMPLEMENTED\x10\x0C\x12\x0C\x0A\x08INTERNAL\x10\x0D\x12\x0F\x0A\x0BUNAVAILABLE\x10\x0E\x12\x0D\x0A\x09DATA_LOSS\x10\x0FBX\x0A\x0Ecom.google.rpcB\x09CodeProtoP\x01Z3google.golang.org/genproto/googleapis/rpc/code;code\xA2\x02\x03RPCb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/GPBMetadata/Google/Rpc/Context/AttributeContext.php b/owl-bot-staging/CommonProtos/rpc/proto/src/GPBMetadata/Google/Rpc/Context/AttributeContext.php new file mode 100644 index 000000000000..6336f6a66484 --- /dev/null +++ b/owl-bot-staging/CommonProtos/rpc/proto/src/GPBMetadata/Google/Rpc/Context/AttributeContext.php @@ -0,0 +1,28 @@ +internalAddGeneratedFile( + "\x0A\xBB\x12\x0A*google/rpc/context/attribute_context.proto\x12\x12google.rpc.context\x1A\x1Egoogle/protobuf/duration.proto\x1A\x1Cgoogle/protobuf/struct.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\x83\x10\x0A\x10AttributeContext\x129\x0A\x06origin\x18\x07 \x01(\x0B2).google.rpc.context.AttributeContext.Peer\x129\x0A\x06source\x18\x01 \x01(\x0B2).google.rpc.context.AttributeContext.Peer\x12>\x0A\x0Bdestination\x18\x02 \x01(\x0B2).google.rpc.context.AttributeContext.Peer\x12=\x0A\x07request\x18\x03 \x01(\x0B2,.google.rpc.context.AttributeContext.Request\x12?\x0A\x08response\x18\x04 \x01(\x0B2-.google.rpc.context.AttributeContext.Response\x12?\x0A\x08resource\x18\x05 \x01(\x0B2-.google.rpc.context.AttributeContext.Resource\x125\x0A\x03api\x18\x06 \x01(\x0B2(.google.rpc.context.AttributeContext.Api\x12(\x0A\x0Aextensions\x18\x08 \x03(\x0B2\x14.google.protobuf.Any\x1A\xBE\x01\x0A\x04Peer\x12\x0A\x0A\x02ip\x18\x01 \x01(\x09\x12\x0C\x0A\x04port\x18\x02 \x01(\x03\x12E\x0A\x06labels\x18\x06 \x03(\x0B25.google.rpc.context.AttributeContext.Peer.LabelsEntry\x12\x11\x0A\x09principal\x18\x07 \x01(\x09\x12\x13\x0A\x0Bregion_code\x18\x08 \x01(\x09\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\x1AL\x0A\x03Api\x12\x0F\x0A\x07service\x18\x01 \x01(\x09\x12\x11\x0A\x09operation\x18\x02 \x01(\x09\x12\x10\x0A\x08protocol\x18\x03 \x01(\x09\x12\x0F\x0A\x07version\x18\x04 \x01(\x09\x1A\x7F\x0A\x04Auth\x12\x11\x0A\x09principal\x18\x01 \x01(\x09\x12\x11\x0A\x09audiences\x18\x02 \x03(\x09\x12\x11\x0A\x09presenter\x18\x03 \x01(\x09\x12'\x0A\x06claims\x18\x04 \x01(\x0B2\x17.google.protobuf.Struct\x12\x15\x0A\x0Daccess_levels\x18\x05 \x03(\x09\x1A\xEF\x02\x0A\x07Request\x12\x0A\x0A\x02id\x18\x01 \x01(\x09\x12\x0E\x0A\x06method\x18\x02 \x01(\x09\x12J\x0A\x07headers\x18\x03 \x03(\x0B29.google.rpc.context.AttributeContext.Request.HeadersEntry\x12\x0C\x0A\x04path\x18\x04 \x01(\x09\x12\x0C\x0A\x04host\x18\x05 \x01(\x09\x12\x0E\x0A\x06scheme\x18\x06 \x01(\x09\x12\x0D\x0A\x05query\x18\x07 \x01(\x09\x12(\x0A\x04time\x18\x09 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12\x0C\x0A\x04size\x18\x0A \x01(\x03\x12\x10\x0A\x08protocol\x18\x0B \x01(\x09\x12\x0E\x0A\x06reason\x18\x0C \x01(\x09\x127\x0A\x04auth\x18\x0D \x01(\x0B2).google.rpc.context.AttributeContext.Auth\x1A.\x0A\x0CHeadersEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\x1A\x81\x02\x0A\x08Response\x12\x0C\x0A\x04code\x18\x01 \x01(\x03\x12\x0C\x0A\x04size\x18\x02 \x01(\x03\x12K\x0A\x07headers\x18\x03 \x03(\x0B2:.google.rpc.context.AttributeContext.Response.HeadersEntry\x12(\x0A\x04time\x18\x04 \x01(\x0B2\x1A.google.protobuf.Timestamp\x122\x0A\x0Fbackend_latency\x18\x05 \x01(\x0B2\x19.google.protobuf.Duration\x1A.\x0A\x0CHeadersEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\x1A\x90\x04\x0A\x08Resource\x12\x0F\x0A\x07service\x18\x01 \x01(\x09\x12\x0C\x0A\x04name\x18\x02 \x01(\x09\x12\x0C\x0A\x04type\x18\x03 \x01(\x09\x12I\x0A\x06labels\x18\x04 \x03(\x0B29.google.rpc.context.AttributeContext.Resource.LabelsEntry\x12\x0B\x0A\x03uid\x18\x05 \x01(\x09\x12S\x0A\x0Bannotations\x18\x06 \x03(\x0B2>.google.rpc.context.AttributeContext.Resource.AnnotationsEntry\x12\x14\x0A\x0Cdisplay_name\x18\x07 \x01(\x09\x12/\x0A\x0Bcreate_time\x18\x08 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12/\x0A\x0Bupdate_time\x18\x09 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12/\x0A\x0Bdelete_time\x18\x0A \x01(\x0B2\x1A.google.protobuf.Timestamp\x12\x0C\x0A\x04etag\x18\x0B \x01(\x09\x12\x10\x0A\x08location\x18\x0C \x01(\x09\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\x1A2\x0A\x10AnnotationsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01B\x8B\x01\x0A\x16com.google.rpc.contextB\x15AttributeContextProtoP\x01ZUgoogle.golang.org/genproto/googleapis/rpc/context/attribute_context;attribute_context\xF8\x01\x01b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/GPBMetadata/Google/Rpc/Context/AuditContext.php b/owl-bot-staging/CommonProtos/rpc/proto/src/GPBMetadata/Google/Rpc/Context/AuditContext.php new file mode 100644 index 000000000000..285c3acb9fb1 --- /dev/null +++ b/owl-bot-staging/CommonProtos/rpc/proto/src/GPBMetadata/Google/Rpc/Context/AuditContext.php @@ -0,0 +1,25 @@ +internalAddGeneratedFile( + "\x0A\xF8\x02\x0A&google/rpc/context/audit_context.proto\x12\x12google.rpc.context\"\xC7\x01\x0A\x0CAuditContext\x12\x11\x0A\x09audit_log\x18\x01 \x01(\x0C\x121\x0A\x10scrubbed_request\x18\x02 \x01(\x0B2\x17.google.protobuf.Struct\x122\x0A\x11scrubbed_response\x18\x03 \x01(\x0B2\x17.google.protobuf.Struct\x12\$\x0A\x1Cscrubbed_response_item_count\x18\x04 \x01(\x05\x12\x17\x0A\x0Ftarget_resource\x18\x05 \x01(\x09Bh\x0A\x16com.google.rpc.contextB\x11AuditContextProtoP\x01Z9google.golang.org/genproto/googleapis/rpc/context;contextb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/GPBMetadata/Google/Rpc/ErrorDetails.php b/owl-bot-staging/CommonProtos/rpc/proto/src/GPBMetadata/Google/Rpc/ErrorDetails.php new file mode 100644 index 000000000000..4b9f0d7941e1 --- /dev/null +++ b/owl-bot-staging/CommonProtos/rpc/proto/src/GPBMetadata/Google/Rpc/ErrorDetails.php @@ -0,0 +1,25 @@ +internalAddGeneratedFile( + "\x0A\xCA\x0B\x0A\x1Egoogle/rpc/error_details.proto\x12\x0Agoogle.rpc\"\x93\x01\x0A\x09ErrorInfo\x12\x0E\x0A\x06reason\x18\x01 \x01(\x09\x12\x0E\x0A\x06domain\x18\x02 \x01(\x09\x125\x0A\x08metadata\x18\x03 \x03(\x0B2#.google.rpc.ErrorInfo.MetadataEntry\x1A/\x0A\x0DMetadataEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\";\x0A\x09RetryInfo\x12.\x0A\x0Bretry_delay\x18\x01 \x01(\x0B2\x19.google.protobuf.Duration\"2\x0A\x09DebugInfo\x12\x15\x0A\x0Dstack_entries\x18\x01 \x03(\x09\x12\x0E\x0A\x06detail\x18\x02 \x01(\x09\"\x8F\x03\x0A\x0CQuotaFailure\x126\x0A\x0Aviolations\x18\x01 \x03(\x0B2\".google.rpc.QuotaFailure.Violation\x1A\xC6\x02\x0A\x09Violation\x12\x0F\x0A\x07subject\x18\x01 \x01(\x09\x12\x13\x0A\x0Bdescription\x18\x02 \x01(\x09\x12\x13\x0A\x0Bapi_service\x18\x03 \x01(\x09\x12\x14\x0A\x0Cquota_metric\x18\x04 \x01(\x09\x12\x10\x0A\x08quota_id\x18\x05 \x01(\x09\x12Q\x0A\x10quota_dimensions\x18\x06 \x03(\x0B27.google.rpc.QuotaFailure.Violation.QuotaDimensionsEntry\x12\x13\x0A\x0Bquota_value\x18\x07 \x01(\x03\x12\x1F\x0A\x12future_quota_value\x18\x08 \x01(\x03H\x00\x88\x01\x01\x1A6\x0A\x14QuotaDimensionsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01B\x15\x0A\x13_future_quota_value\"\x95\x01\x0A\x13PreconditionFailure\x12=\x0A\x0Aviolations\x18\x01 \x03(\x0B2).google.rpc.PreconditionFailure.Violation\x1A?\x0A\x09Violation\x12\x0C\x0A\x04type\x18\x01 \x01(\x09\x12\x0F\x0A\x07subject\x18\x02 \x01(\x09\x12\x13\x0A\x0Bdescription\x18\x03 \x01(\x09\"\xCC\x01\x0A\x0ABadRequest\x12?\x0A\x10field_violations\x18\x01 \x03(\x0B2%.google.rpc.BadRequest.FieldViolation\x1A}\x0A\x0EFieldViolation\x12\x0D\x0A\x05field\x18\x01 \x01(\x09\x12\x13\x0A\x0Bdescription\x18\x02 \x01(\x09\x12\x0E\x0A\x06reason\x18\x03 \x01(\x09\x127\x0A\x11localized_message\x18\x04 \x01(\x0B2\x1C.google.rpc.LocalizedMessage\"7\x0A\x0BRequestInfo\x12\x12\x0A\x0Arequest_id\x18\x01 \x01(\x09\x12\x14\x0A\x0Cserving_data\x18\x02 \x01(\x09\"`\x0A\x0CResourceInfo\x12\x15\x0A\x0Dresource_type\x18\x01 \x01(\x09\x12\x15\x0A\x0Dresource_name\x18\x02 \x01(\x09\x12\x0D\x0A\x05owner\x18\x03 \x01(\x09\x12\x13\x0A\x0Bdescription\x18\x04 \x01(\x09\"V\x0A\x04Help\x12\$\x0A\x05links\x18\x01 \x03(\x0B2\x15.google.rpc.Help.Link\x1A(\x0A\x04Link\x12\x13\x0A\x0Bdescription\x18\x01 \x01(\x09\x12\x0B\x0A\x03url\x18\x02 \x01(\x09\"3\x0A\x10LocalizedMessage\x12\x0E\x0A\x06locale\x18\x01 \x01(\x09\x12\x0F\x0A\x07message\x18\x02 \x01(\x09Bl\x0A\x0Ecom.google.rpcB\x11ErrorDetailsProtoP\x01Z?google.golang.org/genproto/googleapis/rpc/errdetails;errdetails\xA2\x02\x03RPCb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/GPBMetadata/Google/Rpc/Status.php b/owl-bot-staging/CommonProtos/rpc/proto/src/GPBMetadata/Google/Rpc/Status.php new file mode 100644 index 000000000000..6122a2706632 --- /dev/null +++ b/owl-bot-staging/CommonProtos/rpc/proto/src/GPBMetadata/Google/Rpc/Status.php @@ -0,0 +1,25 @@ +internalAddGeneratedFile( + "\x0A\xE0\x01\x0A\x17google/rpc/status.proto\x12\x0Agoogle.rpc\"N\x0A\x06Status\x12\x0C\x0A\x04code\x18\x01 \x01(\x05\x12\x0F\x0A\x07message\x18\x02 \x01(\x09\x12%\x0A\x07details\x18\x03 \x03(\x0B2\x14.google.protobuf.AnyBa\x0A\x0Ecom.google.rpcB\x0BStatusProtoP\x01Z7google.golang.org/genproto/googleapis/rpc/status;status\xF8\x01\x01\xA2\x02\x03RPCb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/BadRequest.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/BadRequest.php new file mode 100644 index 000000000000..de1d80815113 --- /dev/null +++ b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/BadRequest.php @@ -0,0 +1,68 @@ +google.rpc.BadRequest + */ +class BadRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Describes all violations in a client request. + * + * Generated from protobuf field repeated .google.rpc.BadRequest.FieldViolation field_violations = 1; + */ + private $field_violations; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Rpc\BadRequest\FieldViolation[] $field_violations + * Describes all violations in a client request. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Rpc\ErrorDetails::initOnce(); + parent::__construct($data); + } + + /** + * Describes all violations in a client request. + * + * Generated from protobuf field repeated .google.rpc.BadRequest.FieldViolation field_violations = 1; + * @return RepeatedField<\Google\Rpc\BadRequest\FieldViolation> + */ + public function getFieldViolations() + { + return $this->field_violations; + } + + /** + * Describes all violations in a client request. + * + * Generated from protobuf field repeated .google.rpc.BadRequest.FieldViolation field_violations = 1; + * @param \Google\Rpc\BadRequest\FieldViolation[] $var + * @return $this + */ + public function setFieldViolations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Rpc\BadRequest\FieldViolation::class); + $this->field_violations = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/BadRequest/FieldViolation.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/BadRequest/FieldViolation.php new file mode 100644 index 000000000000..7c1dde3c12cd --- /dev/null +++ b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/BadRequest/FieldViolation.php @@ -0,0 +1,315 @@ +google.rpc.BadRequest.FieldViolation + */ +class FieldViolation extends \Google\Protobuf\Internal\Message +{ + /** + * A path that leads to a field in the request body. The value will be a + * sequence of dot-separated identifiers that identify a protocol buffer + * field. + * Consider the following: + * message CreateContactRequest { + * message EmailAddress { + * enum Type { + * TYPE_UNSPECIFIED = 0; + * HOME = 1; + * WORK = 2; + * } + * optional string email = 1; + * repeated EmailType type = 2; + * } + * string full_name = 1; + * repeated EmailAddress email_addresses = 2; + * } + * In this example, in proto `field` could take one of the following values: + * * `full_name` for a violation in the `full_name` value + * * `email_addresses[1].email` for a violation in the `email` field of the + * first `email_addresses` message + * * `email_addresses[3].type[2]` for a violation in the second `type` + * value in the third `email_addresses` message. + * In JSON, the same values are represented as: + * * `fullName` for a violation in the `fullName` value + * * `emailAddresses[1].email` for a violation in the `email` field of the + * first `emailAddresses` message + * * `emailAddresses[3].type[2]` for a violation in the second `type` + * value in the third `emailAddresses` message. + * + * Generated from protobuf field string field = 1; + */ + protected $field = ''; + /** + * A description of why the request element is bad. + * + * Generated from protobuf field string description = 2; + */ + protected $description = ''; + /** + * The reason of the field-level error. This is a constant value that + * identifies the proximate cause of the field-level error. It should + * uniquely identify the type of the FieldViolation within the scope of the + * google.rpc.ErrorInfo.domain. This should be at most 63 + * characters and match a regular expression of `[A-Z][A-Z0-9_]+[A-Z0-9]`, + * which represents UPPER_SNAKE_CASE. + * + * Generated from protobuf field string reason = 3; + */ + protected $reason = ''; + /** + * Provides a localized error message for field-level errors that is safe to + * return to the API consumer. + * + * Generated from protobuf field .google.rpc.LocalizedMessage localized_message = 4; + */ + protected $localized_message = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $field + * A path that leads to a field in the request body. The value will be a + * sequence of dot-separated identifiers that identify a protocol buffer + * field. + * Consider the following: + * message CreateContactRequest { + * message EmailAddress { + * enum Type { + * TYPE_UNSPECIFIED = 0; + * HOME = 1; + * WORK = 2; + * } + * optional string email = 1; + * repeated EmailType type = 2; + * } + * string full_name = 1; + * repeated EmailAddress email_addresses = 2; + * } + * In this example, in proto `field` could take one of the following values: + * * `full_name` for a violation in the `full_name` value + * * `email_addresses[1].email` for a violation in the `email` field of the + * first `email_addresses` message + * * `email_addresses[3].type[2]` for a violation in the second `type` + * value in the third `email_addresses` message. + * In JSON, the same values are represented as: + * * `fullName` for a violation in the `fullName` value + * * `emailAddresses[1].email` for a violation in the `email` field of the + * first `emailAddresses` message + * * `emailAddresses[3].type[2]` for a violation in the second `type` + * value in the third `emailAddresses` message. + * @type string $description + * A description of why the request element is bad. + * @type string $reason + * The reason of the field-level error. This is a constant value that + * identifies the proximate cause of the field-level error. It should + * uniquely identify the type of the FieldViolation within the scope of the + * google.rpc.ErrorInfo.domain. This should be at most 63 + * characters and match a regular expression of `[A-Z][A-Z0-9_]+[A-Z0-9]`, + * which represents UPPER_SNAKE_CASE. + * @type \Google\Rpc\LocalizedMessage $localized_message + * Provides a localized error message for field-level errors that is safe to + * return to the API consumer. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Rpc\ErrorDetails::initOnce(); + parent::__construct($data); + } + + /** + * A path that leads to a field in the request body. The value will be a + * sequence of dot-separated identifiers that identify a protocol buffer + * field. + * Consider the following: + * message CreateContactRequest { + * message EmailAddress { + * enum Type { + * TYPE_UNSPECIFIED = 0; + * HOME = 1; + * WORK = 2; + * } + * optional string email = 1; + * repeated EmailType type = 2; + * } + * string full_name = 1; + * repeated EmailAddress email_addresses = 2; + * } + * In this example, in proto `field` could take one of the following values: + * * `full_name` for a violation in the `full_name` value + * * `email_addresses[1].email` for a violation in the `email` field of the + * first `email_addresses` message + * * `email_addresses[3].type[2]` for a violation in the second `type` + * value in the third `email_addresses` message. + * In JSON, the same values are represented as: + * * `fullName` for a violation in the `fullName` value + * * `emailAddresses[1].email` for a violation in the `email` field of the + * first `emailAddresses` message + * * `emailAddresses[3].type[2]` for a violation in the second `type` + * value in the third `emailAddresses` message. + * + * Generated from protobuf field string field = 1; + * @return string + */ + public function getField() + { + return $this->field; + } + + /** + * A path that leads to a field in the request body. The value will be a + * sequence of dot-separated identifiers that identify a protocol buffer + * field. + * Consider the following: + * message CreateContactRequest { + * message EmailAddress { + * enum Type { + * TYPE_UNSPECIFIED = 0; + * HOME = 1; + * WORK = 2; + * } + * optional string email = 1; + * repeated EmailType type = 2; + * } + * string full_name = 1; + * repeated EmailAddress email_addresses = 2; + * } + * In this example, in proto `field` could take one of the following values: + * * `full_name` for a violation in the `full_name` value + * * `email_addresses[1].email` for a violation in the `email` field of the + * first `email_addresses` message + * * `email_addresses[3].type[2]` for a violation in the second `type` + * value in the third `email_addresses` message. + * In JSON, the same values are represented as: + * * `fullName` for a violation in the `fullName` value + * * `emailAddresses[1].email` for a violation in the `email` field of the + * first `emailAddresses` message + * * `emailAddresses[3].type[2]` for a violation in the second `type` + * value in the third `emailAddresses` message. + * + * Generated from protobuf field string field = 1; + * @param string $var + * @return $this + */ + public function setField($var) + { + GPBUtil::checkString($var, True); + $this->field = $var; + + return $this; + } + + /** + * A description of why the request element is bad. + * + * Generated from protobuf field string description = 2; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * A description of why the request element is bad. + * + * Generated from protobuf field string description = 2; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * The reason of the field-level error. This is a constant value that + * identifies the proximate cause of the field-level error. It should + * uniquely identify the type of the FieldViolation within the scope of the + * google.rpc.ErrorInfo.domain. This should be at most 63 + * characters and match a regular expression of `[A-Z][A-Z0-9_]+[A-Z0-9]`, + * which represents UPPER_SNAKE_CASE. + * + * Generated from protobuf field string reason = 3; + * @return string + */ + public function getReason() + { + return $this->reason; + } + + /** + * The reason of the field-level error. This is a constant value that + * identifies the proximate cause of the field-level error. It should + * uniquely identify the type of the FieldViolation within the scope of the + * google.rpc.ErrorInfo.domain. This should be at most 63 + * characters and match a regular expression of `[A-Z][A-Z0-9_]+[A-Z0-9]`, + * which represents UPPER_SNAKE_CASE. + * + * Generated from protobuf field string reason = 3; + * @param string $var + * @return $this + */ + public function setReason($var) + { + GPBUtil::checkString($var, True); + $this->reason = $var; + + return $this; + } + + /** + * Provides a localized error message for field-level errors that is safe to + * return to the API consumer. + * + * Generated from protobuf field .google.rpc.LocalizedMessage localized_message = 4; + * @return \Google\Rpc\LocalizedMessage|null + */ + public function getLocalizedMessage() + { + return $this->localized_message; + } + + public function hasLocalizedMessage() + { + return isset($this->localized_message); + } + + public function clearLocalizedMessage() + { + unset($this->localized_message); + } + + /** + * Provides a localized error message for field-level errors that is safe to + * return to the API consumer. + * + * Generated from protobuf field .google.rpc.LocalizedMessage localized_message = 4; + * @param \Google\Rpc\LocalizedMessage $var + * @return $this + */ + public function setLocalizedMessage($var) + { + GPBUtil::checkMessage($var, \Google\Rpc\LocalizedMessage::class); + $this->localized_message = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Code.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Code.php new file mode 100644 index 000000000000..b82e88f3bf4d --- /dev/null +++ b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Code.php @@ -0,0 +1,243 @@ +google.rpc.Code + */ +class Code +{ + /** + * Not an error; returned on success. + * HTTP Mapping: 200 OK + * + * Generated from protobuf enum OK = 0; + */ + const OK = 0; + /** + * The operation was cancelled, typically by the caller. + * HTTP Mapping: 499 Client Closed Request + * + * Generated from protobuf enum CANCELLED = 1; + */ + const CANCELLED = 1; + /** + * Unknown error. For example, this error may be returned when + * a `Status` value received from another address space belongs to + * an error space that is not known in this address space. Also + * errors raised by APIs that do not return enough error information + * may be converted to this error. + * HTTP Mapping: 500 Internal Server Error + * + * Generated from protobuf enum UNKNOWN = 2; + */ + const UNKNOWN = 2; + /** + * The client specified an invalid argument. Note that this differs + * from `FAILED_PRECONDITION`. `INVALID_ARGUMENT` indicates arguments + * that are problematic regardless of the state of the system + * (e.g., a malformed file name). + * HTTP Mapping: 400 Bad Request + * + * Generated from protobuf enum INVALID_ARGUMENT = 3; + */ + const INVALID_ARGUMENT = 3; + /** + * The deadline expired before the operation could complete. For operations + * that change the state of the system, this error may be returned + * even if the operation has completed successfully. For example, a + * successful response from a server could have been delayed long + * enough for the deadline to expire. + * HTTP Mapping: 504 Gateway Timeout + * + * Generated from protobuf enum DEADLINE_EXCEEDED = 4; + */ + const DEADLINE_EXCEEDED = 4; + /** + * Some requested entity (e.g., file or directory) was not found. + * Note to server developers: if a request is denied for an entire class + * of users, such as gradual feature rollout or undocumented allowlist, + * `NOT_FOUND` may be used. If a request is denied for some users within + * a class of users, such as user-based access control, `PERMISSION_DENIED` + * must be used. + * HTTP Mapping: 404 Not Found + * + * Generated from protobuf enum NOT_FOUND = 5; + */ + const NOT_FOUND = 5; + /** + * The entity that a client attempted to create (e.g., file or directory) + * already exists. + * HTTP Mapping: 409 Conflict + * + * Generated from protobuf enum ALREADY_EXISTS = 6; + */ + const ALREADY_EXISTS = 6; + /** + * The caller does not have permission to execute the specified + * operation. `PERMISSION_DENIED` must not be used for rejections + * caused by exhausting some resource (use `RESOURCE_EXHAUSTED` + * instead for those errors). `PERMISSION_DENIED` must not be + * used if the caller can not be identified (use `UNAUTHENTICATED` + * instead for those errors). This error code does not imply the + * request is valid or the requested entity exists or satisfies + * other pre-conditions. + * HTTP Mapping: 403 Forbidden + * + * Generated from protobuf enum PERMISSION_DENIED = 7; + */ + const PERMISSION_DENIED = 7; + /** + * The request does not have valid authentication credentials for the + * operation. + * HTTP Mapping: 401 Unauthorized + * + * Generated from protobuf enum UNAUTHENTICATED = 16; + */ + const UNAUTHENTICATED = 16; + /** + * Some resource has been exhausted, perhaps a per-user quota, or + * perhaps the entire file system is out of space. + * HTTP Mapping: 429 Too Many Requests + * + * Generated from protobuf enum RESOURCE_EXHAUSTED = 8; + */ + const RESOURCE_EXHAUSTED = 8; + /** + * The operation was rejected because the system is not in a state + * required for the operation's execution. For example, the directory + * to be deleted is non-empty, an rmdir operation is applied to + * a non-directory, etc. + * Service implementors can use the following guidelines to decide + * between `FAILED_PRECONDITION`, `ABORTED`, and `UNAVAILABLE`: + * (a) Use `UNAVAILABLE` if the client can retry just the failing call. + * (b) Use `ABORTED` if the client should retry at a higher level. For + * example, when a client-specified test-and-set fails, indicating the + * client should restart a read-modify-write sequence. + * (c) Use `FAILED_PRECONDITION` if the client should not retry until + * the system state has been explicitly fixed. For example, if an "rmdir" + * fails because the directory is non-empty, `FAILED_PRECONDITION` + * should be returned since the client should not retry unless + * the files are deleted from the directory. + * HTTP Mapping: 400 Bad Request + * + * Generated from protobuf enum FAILED_PRECONDITION = 9; + */ + const FAILED_PRECONDITION = 9; + /** + * The operation was aborted, typically due to a concurrency issue such as + * a sequencer check failure or transaction abort. + * See the guidelines above for deciding between `FAILED_PRECONDITION`, + * `ABORTED`, and `UNAVAILABLE`. + * HTTP Mapping: 409 Conflict + * + * Generated from protobuf enum ABORTED = 10; + */ + const ABORTED = 10; + /** + * The operation was attempted past the valid range. E.g., seeking or + * reading past end-of-file. + * Unlike `INVALID_ARGUMENT`, this error indicates a problem that may + * be fixed if the system state changes. For example, a 32-bit file + * system will generate `INVALID_ARGUMENT` if asked to read at an + * offset that is not in the range [0,2^32-1], but it will generate + * `OUT_OF_RANGE` if asked to read from an offset past the current + * file size. + * There is a fair bit of overlap between `FAILED_PRECONDITION` and + * `OUT_OF_RANGE`. We recommend using `OUT_OF_RANGE` (the more specific + * error) when it applies so that callers who are iterating through + * a space can easily look for an `OUT_OF_RANGE` error to detect when + * they are done. + * HTTP Mapping: 400 Bad Request + * + * Generated from protobuf enum OUT_OF_RANGE = 11; + */ + const OUT_OF_RANGE = 11; + /** + * The operation is not implemented or is not supported/enabled in this + * service. + * HTTP Mapping: 501 Not Implemented + * + * Generated from protobuf enum UNIMPLEMENTED = 12; + */ + const UNIMPLEMENTED = 12; + /** + * Internal errors. This means that some invariants expected by the + * underlying system have been broken. This error code is reserved + * for serious errors. + * HTTP Mapping: 500 Internal Server Error + * + * Generated from protobuf enum INTERNAL = 13; + */ + const INTERNAL = 13; + /** + * The service is currently unavailable. This is most likely a + * transient condition, which can be corrected by retrying with + * a backoff. Note that it is not always safe to retry + * non-idempotent operations. + * See the guidelines above for deciding between `FAILED_PRECONDITION`, + * `ABORTED`, and `UNAVAILABLE`. + * HTTP Mapping: 503 Service Unavailable + * + * Generated from protobuf enum UNAVAILABLE = 14; + */ + const UNAVAILABLE = 14; + /** + * Unrecoverable data loss or corruption. + * HTTP Mapping: 500 Internal Server Error + * + * Generated from protobuf enum DATA_LOSS = 15; + */ + const DATA_LOSS = 15; + + private static $valueToName = [ + self::OK => 'OK', + self::CANCELLED => 'CANCELLED', + self::UNKNOWN => 'UNKNOWN', + self::INVALID_ARGUMENT => 'INVALID_ARGUMENT', + self::DEADLINE_EXCEEDED => 'DEADLINE_EXCEEDED', + self::NOT_FOUND => 'NOT_FOUND', + self::ALREADY_EXISTS => 'ALREADY_EXISTS', + self::PERMISSION_DENIED => 'PERMISSION_DENIED', + self::UNAUTHENTICATED => 'UNAUTHENTICATED', + self::RESOURCE_EXHAUSTED => 'RESOURCE_EXHAUSTED', + self::FAILED_PRECONDITION => 'FAILED_PRECONDITION', + self::ABORTED => 'ABORTED', + self::OUT_OF_RANGE => 'OUT_OF_RANGE', + self::UNIMPLEMENTED => 'UNIMPLEMENTED', + self::INTERNAL => 'INTERNAL', + self::UNAVAILABLE => 'UNAVAILABLE', + self::DATA_LOSS => 'DATA_LOSS', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext.php new file mode 100644 index 000000000000..59cb20720c8f --- /dev/null +++ b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext.php @@ -0,0 +1,419 @@ +google.rpc.context.AttributeContext + */ +class AttributeContext extends \Google\Protobuf\Internal\Message +{ + /** + * The origin of a network activity. In a multi hop network activity, + * the origin represents the sender of the first hop. For the first hop, + * the `source` and the `origin` must have the same content. + * + * Generated from protobuf field .google.rpc.context.AttributeContext.Peer origin = 7; + */ + protected $origin = null; + /** + * The source of a network activity, such as starting a TCP connection. + * In a multi hop network activity, the source represents the sender of the + * last hop. + * + * Generated from protobuf field .google.rpc.context.AttributeContext.Peer source = 1; + */ + protected $source = null; + /** + * The destination of a network activity, such as accepting a TCP connection. + * In a multi hop network activity, the destination represents the receiver of + * the last hop. + * + * Generated from protobuf field .google.rpc.context.AttributeContext.Peer destination = 2; + */ + protected $destination = null; + /** + * Represents a network request, such as an HTTP request. + * + * Generated from protobuf field .google.rpc.context.AttributeContext.Request request = 3; + */ + protected $request = null; + /** + * Represents a network response, such as an HTTP response. + * + * Generated from protobuf field .google.rpc.context.AttributeContext.Response response = 4; + */ + protected $response = null; + /** + * Represents a target resource that is involved with a network activity. + * If multiple resources are involved with an activity, this must be the + * primary one. + * + * Generated from protobuf field .google.rpc.context.AttributeContext.Resource resource = 5; + */ + protected $resource = null; + /** + * Represents an API operation that is involved to a network activity. + * + * Generated from protobuf field .google.rpc.context.AttributeContext.Api api = 6; + */ + protected $api = null; + /** + * Supports extensions for advanced use cases, such as logs and metrics. + * + * Generated from protobuf field repeated .google.protobuf.Any extensions = 8; + */ + private $extensions; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Rpc\Context\AttributeContext\Peer $origin + * The origin of a network activity. In a multi hop network activity, + * the origin represents the sender of the first hop. For the first hop, + * the `source` and the `origin` must have the same content. + * @type \Google\Rpc\Context\AttributeContext\Peer $source + * The source of a network activity, such as starting a TCP connection. + * In a multi hop network activity, the source represents the sender of the + * last hop. + * @type \Google\Rpc\Context\AttributeContext\Peer $destination + * The destination of a network activity, such as accepting a TCP connection. + * In a multi hop network activity, the destination represents the receiver of + * the last hop. + * @type \Google\Rpc\Context\AttributeContext\Request $request + * Represents a network request, such as an HTTP request. + * @type \Google\Rpc\Context\AttributeContext\Response $response + * Represents a network response, such as an HTTP response. + * @type \Google\Rpc\Context\AttributeContext\Resource $resource + * Represents a target resource that is involved with a network activity. + * If multiple resources are involved with an activity, this must be the + * primary one. + * @type \Google\Rpc\Context\AttributeContext\Api $api + * Represents an API operation that is involved to a network activity. + * @type \Google\Protobuf\Any[] $extensions + * Supports extensions for advanced use cases, such as logs and metrics. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Rpc\Context\AttributeContext::initOnce(); + parent::__construct($data); + } + + /** + * The origin of a network activity. In a multi hop network activity, + * the origin represents the sender of the first hop. For the first hop, + * the `source` and the `origin` must have the same content. + * + * Generated from protobuf field .google.rpc.context.AttributeContext.Peer origin = 7; + * @return \Google\Rpc\Context\AttributeContext\Peer|null + */ + public function getOrigin() + { + return $this->origin; + } + + public function hasOrigin() + { + return isset($this->origin); + } + + public function clearOrigin() + { + unset($this->origin); + } + + /** + * The origin of a network activity. In a multi hop network activity, + * the origin represents the sender of the first hop. For the first hop, + * the `source` and the `origin` must have the same content. + * + * Generated from protobuf field .google.rpc.context.AttributeContext.Peer origin = 7; + * @param \Google\Rpc\Context\AttributeContext\Peer $var + * @return $this + */ + public function setOrigin($var) + { + GPBUtil::checkMessage($var, \Google\Rpc\Context\AttributeContext\Peer::class); + $this->origin = $var; + + return $this; + } + + /** + * The source of a network activity, such as starting a TCP connection. + * In a multi hop network activity, the source represents the sender of the + * last hop. + * + * Generated from protobuf field .google.rpc.context.AttributeContext.Peer source = 1; + * @return \Google\Rpc\Context\AttributeContext\Peer|null + */ + public function getSource() + { + return $this->source; + } + + public function hasSource() + { + return isset($this->source); + } + + public function clearSource() + { + unset($this->source); + } + + /** + * The source of a network activity, such as starting a TCP connection. + * In a multi hop network activity, the source represents the sender of the + * last hop. + * + * Generated from protobuf field .google.rpc.context.AttributeContext.Peer source = 1; + * @param \Google\Rpc\Context\AttributeContext\Peer $var + * @return $this + */ + public function setSource($var) + { + GPBUtil::checkMessage($var, \Google\Rpc\Context\AttributeContext\Peer::class); + $this->source = $var; + + return $this; + } + + /** + * The destination of a network activity, such as accepting a TCP connection. + * In a multi hop network activity, the destination represents the receiver of + * the last hop. + * + * Generated from protobuf field .google.rpc.context.AttributeContext.Peer destination = 2; + * @return \Google\Rpc\Context\AttributeContext\Peer|null + */ + public function getDestination() + { + return $this->destination; + } + + public function hasDestination() + { + return isset($this->destination); + } + + public function clearDestination() + { + unset($this->destination); + } + + /** + * The destination of a network activity, such as accepting a TCP connection. + * In a multi hop network activity, the destination represents the receiver of + * the last hop. + * + * Generated from protobuf field .google.rpc.context.AttributeContext.Peer destination = 2; + * @param \Google\Rpc\Context\AttributeContext\Peer $var + * @return $this + */ + public function setDestination($var) + { + GPBUtil::checkMessage($var, \Google\Rpc\Context\AttributeContext\Peer::class); + $this->destination = $var; + + return $this; + } + + /** + * Represents a network request, such as an HTTP request. + * + * Generated from protobuf field .google.rpc.context.AttributeContext.Request request = 3; + * @return \Google\Rpc\Context\AttributeContext\Request|null + */ + public function getRequest() + { + return $this->request; + } + + public function hasRequest() + { + return isset($this->request); + } + + public function clearRequest() + { + unset($this->request); + } + + /** + * Represents a network request, such as an HTTP request. + * + * Generated from protobuf field .google.rpc.context.AttributeContext.Request request = 3; + * @param \Google\Rpc\Context\AttributeContext\Request $var + * @return $this + */ + public function setRequest($var) + { + GPBUtil::checkMessage($var, \Google\Rpc\Context\AttributeContext\Request::class); + $this->request = $var; + + return $this; + } + + /** + * Represents a network response, such as an HTTP response. + * + * Generated from protobuf field .google.rpc.context.AttributeContext.Response response = 4; + * @return \Google\Rpc\Context\AttributeContext\Response|null + */ + public function getResponse() + { + return $this->response; + } + + public function hasResponse() + { + return isset($this->response); + } + + public function clearResponse() + { + unset($this->response); + } + + /** + * Represents a network response, such as an HTTP response. + * + * Generated from protobuf field .google.rpc.context.AttributeContext.Response response = 4; + * @param \Google\Rpc\Context\AttributeContext\Response $var + * @return $this + */ + public function setResponse($var) + { + GPBUtil::checkMessage($var, \Google\Rpc\Context\AttributeContext\Response::class); + $this->response = $var; + + return $this; + } + + /** + * Represents a target resource that is involved with a network activity. + * If multiple resources are involved with an activity, this must be the + * primary one. + * + * Generated from protobuf field .google.rpc.context.AttributeContext.Resource resource = 5; + * @return \Google\Rpc\Context\AttributeContext\Resource|null + */ + public function getResource() + { + return $this->resource; + } + + public function hasResource() + { + return isset($this->resource); + } + + public function clearResource() + { + unset($this->resource); + } + + /** + * Represents a target resource that is involved with a network activity. + * If multiple resources are involved with an activity, this must be the + * primary one. + * + * Generated from protobuf field .google.rpc.context.AttributeContext.Resource resource = 5; + * @param \Google\Rpc\Context\AttributeContext\Resource $var + * @return $this + */ + public function setResource($var) + { + GPBUtil::checkMessage($var, \Google\Rpc\Context\AttributeContext\Resource::class); + $this->resource = $var; + + return $this; + } + + /** + * Represents an API operation that is involved to a network activity. + * + * Generated from protobuf field .google.rpc.context.AttributeContext.Api api = 6; + * @return \Google\Rpc\Context\AttributeContext\Api|null + */ + public function getApi() + { + return $this->api; + } + + public function hasApi() + { + return isset($this->api); + } + + public function clearApi() + { + unset($this->api); + } + + /** + * Represents an API operation that is involved to a network activity. + * + * Generated from protobuf field .google.rpc.context.AttributeContext.Api api = 6; + * @param \Google\Rpc\Context\AttributeContext\Api $var + * @return $this + */ + public function setApi($var) + { + GPBUtil::checkMessage($var, \Google\Rpc\Context\AttributeContext\Api::class); + $this->api = $var; + + return $this; + } + + /** + * Supports extensions for advanced use cases, such as logs and metrics. + * + * Generated from protobuf field repeated .google.protobuf.Any extensions = 8; + * @return RepeatedField<\Google\Protobuf\Any> + */ + public function getExtensions() + { + return $this->extensions; + } + + /** + * Supports extensions for advanced use cases, such as logs and metrics. + * + * Generated from protobuf field repeated .google.protobuf.Any extensions = 8; + * @param \Google\Protobuf\Any[] $var + * @return $this + */ + public function setExtensions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Any::class); + $this->extensions = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Api.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Api.php new file mode 100644 index 000000000000..3f08a6e90ed9 --- /dev/null +++ b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Api.php @@ -0,0 +1,195 @@ +google.rpc.context.AttributeContext.Api + */ +class Api extends \Google\Protobuf\Internal\Message +{ + /** + * The API service name. It is a logical identifier for a networked API, + * such as "pubsub.googleapis.com". The naming syntax depends on the + * API management system being used for handling the request. + * + * Generated from protobuf field string service = 1; + */ + protected $service = ''; + /** + * The API operation name. For gRPC requests, it is the fully qualified API + * method name, such as "google.pubsub.v1.Publisher.Publish". For OpenAPI + * requests, it is the `operationId`, such as "getPet". + * + * Generated from protobuf field string operation = 2; + */ + protected $operation = ''; + /** + * The API protocol used for sending the request, such as "http", "https", + * "grpc", or "internal". + * + * Generated from protobuf field string protocol = 3; + */ + protected $protocol = ''; + /** + * The API version associated with the API operation above, such as "v1" or + * "v1alpha1". + * + * Generated from protobuf field string version = 4; + */ + protected $version = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $service + * The API service name. It is a logical identifier for a networked API, + * such as "pubsub.googleapis.com". The naming syntax depends on the + * API management system being used for handling the request. + * @type string $operation + * The API operation name. For gRPC requests, it is the fully qualified API + * method name, such as "google.pubsub.v1.Publisher.Publish". For OpenAPI + * requests, it is the `operationId`, such as "getPet". + * @type string $protocol + * The API protocol used for sending the request, such as "http", "https", + * "grpc", or "internal". + * @type string $version + * The API version associated with the API operation above, such as "v1" or + * "v1alpha1". + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Rpc\Context\AttributeContext::initOnce(); + parent::__construct($data); + } + + /** + * The API service name. It is a logical identifier for a networked API, + * such as "pubsub.googleapis.com". The naming syntax depends on the + * API management system being used for handling the request. + * + * Generated from protobuf field string service = 1; + * @return string + */ + public function getService() + { + return $this->service; + } + + /** + * The API service name. It is a logical identifier for a networked API, + * such as "pubsub.googleapis.com". The naming syntax depends on the + * API management system being used for handling the request. + * + * Generated from protobuf field string service = 1; + * @param string $var + * @return $this + */ + public function setService($var) + { + GPBUtil::checkString($var, True); + $this->service = $var; + + return $this; + } + + /** + * The API operation name. For gRPC requests, it is the fully qualified API + * method name, such as "google.pubsub.v1.Publisher.Publish". For OpenAPI + * requests, it is the `operationId`, such as "getPet". + * + * Generated from protobuf field string operation = 2; + * @return string + */ + public function getOperation() + { + return $this->operation; + } + + /** + * The API operation name. For gRPC requests, it is the fully qualified API + * method name, such as "google.pubsub.v1.Publisher.Publish". For OpenAPI + * requests, it is the `operationId`, such as "getPet". + * + * Generated from protobuf field string operation = 2; + * @param string $var + * @return $this + */ + public function setOperation($var) + { + GPBUtil::checkString($var, True); + $this->operation = $var; + + return $this; + } + + /** + * The API protocol used for sending the request, such as "http", "https", + * "grpc", or "internal". + * + * Generated from protobuf field string protocol = 3; + * @return string + */ + public function getProtocol() + { + return $this->protocol; + } + + /** + * The API protocol used for sending the request, such as "http", "https", + * "grpc", or "internal". + * + * Generated from protobuf field string protocol = 3; + * @param string $var + * @return $this + */ + public function setProtocol($var) + { + GPBUtil::checkString($var, True); + $this->protocol = $var; + + return $this; + } + + /** + * The API version associated with the API operation above, such as "v1" or + * "v1alpha1". + * + * Generated from protobuf field string version = 4; + * @return string + */ + public function getVersion() + { + return $this->version; + } + + /** + * The API version associated with the API operation above, such as "v1" or + * "v1alpha1". + * + * Generated from protobuf field string version = 4; + * @param string $var + * @return $this + */ + public function setVersion($var) + { + GPBUtil::checkString($var, True); + $this->version = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Auth.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Auth.php new file mode 100644 index 000000000000..07a824302c8d --- /dev/null +++ b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Auth.php @@ -0,0 +1,355 @@ +google.rpc.context.AttributeContext.Auth + */ +class Auth extends \Google\Protobuf\Internal\Message +{ + /** + * The authenticated principal. Reflects the issuer (`iss`) and subject + * (`sub`) claims within a JWT. The issuer and subject should be `/` + * delimited, with `/` percent-encoded within the subject fragment. For + * Google accounts, the principal format is: + * "https://accounts.google.com/{id}" + * + * Generated from protobuf field string principal = 1; + */ + protected $principal = ''; + /** + * The intended audience(s) for this authentication information. Reflects + * the audience (`aud`) claim within a JWT. The audience + * value(s) depends on the `issuer`, but typically include one or more of + * the following pieces of information: + * * The services intended to receive the credential. For example, + * ["https://pubsub.googleapis.com/", "https://storage.googleapis.com/"]. + * * A set of service-based scopes. For example, + * ["https://www.googleapis.com/auth/cloud-platform"]. + * * The client id of an app, such as the Firebase project id for JWTs + * from Firebase Auth. + * Consult the documentation for the credential issuer to determine the + * information provided. + * + * Generated from protobuf field repeated string audiences = 2; + */ + private $audiences; + /** + * The authorized presenter of the credential. Reflects the optional + * Authorized Presenter (`azp`) claim within a JWT or the + * OAuth client id. For example, a Google Cloud Platform client id looks + * as follows: "123456789012.apps.googleusercontent.com". + * + * Generated from protobuf field string presenter = 3; + */ + protected $presenter = ''; + /** + * Structured claims presented with the credential. JWTs include + * `{key: value}` pairs for standard and private claims. The following + * is a subset of the standard required and optional claims that would + * typically be presented for a Google-based JWT: + * {'iss': 'accounts.google.com', + * 'sub': '113289723416554971153', + * 'aud': ['123456789012', 'pubsub.googleapis.com'], + * 'azp': '123456789012.apps.googleusercontent.com', + * 'email': 'jsmith\@example.com', + * 'iat': 1353601026, + * 'exp': 1353604926} + * SAML assertions are similarly specified, but with an identity provider + * dependent structure. + * + * Generated from protobuf field .google.protobuf.Struct claims = 4; + */ + protected $claims = null; + /** + * A list of access level resource names that allow resources to be + * accessed by authenticated requester. It is part of Secure GCP processing + * for the incoming request. An access level string has the format: + * "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}" + * Example: + * "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL" + * + * Generated from protobuf field repeated string access_levels = 5; + */ + private $access_levels; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $principal + * The authenticated principal. Reflects the issuer (`iss`) and subject + * (`sub`) claims within a JWT. The issuer and subject should be `/` + * delimited, with `/` percent-encoded within the subject fragment. For + * Google accounts, the principal format is: + * "https://accounts.google.com/{id}" + * @type string[] $audiences + * The intended audience(s) for this authentication information. Reflects + * the audience (`aud`) claim within a JWT. The audience + * value(s) depends on the `issuer`, but typically include one or more of + * the following pieces of information: + * * The services intended to receive the credential. For example, + * ["https://pubsub.googleapis.com/", "https://storage.googleapis.com/"]. + * * A set of service-based scopes. For example, + * ["https://www.googleapis.com/auth/cloud-platform"]. + * * The client id of an app, such as the Firebase project id for JWTs + * from Firebase Auth. + * Consult the documentation for the credential issuer to determine the + * information provided. + * @type string $presenter + * The authorized presenter of the credential. Reflects the optional + * Authorized Presenter (`azp`) claim within a JWT or the + * OAuth client id. For example, a Google Cloud Platform client id looks + * as follows: "123456789012.apps.googleusercontent.com". + * @type \Google\Protobuf\Struct $claims + * Structured claims presented with the credential. JWTs include + * `{key: value}` pairs for standard and private claims. The following + * is a subset of the standard required and optional claims that would + * typically be presented for a Google-based JWT: + * {'iss': 'accounts.google.com', + * 'sub': '113289723416554971153', + * 'aud': ['123456789012', 'pubsub.googleapis.com'], + * 'azp': '123456789012.apps.googleusercontent.com', + * 'email': 'jsmith\@example.com', + * 'iat': 1353601026, + * 'exp': 1353604926} + * SAML assertions are similarly specified, but with an identity provider + * dependent structure. + * @type string[] $access_levels + * A list of access level resource names that allow resources to be + * accessed by authenticated requester. It is part of Secure GCP processing + * for the incoming request. An access level string has the format: + * "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}" + * Example: + * "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL" + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Rpc\Context\AttributeContext::initOnce(); + parent::__construct($data); + } + + /** + * The authenticated principal. Reflects the issuer (`iss`) and subject + * (`sub`) claims within a JWT. The issuer and subject should be `/` + * delimited, with `/` percent-encoded within the subject fragment. For + * Google accounts, the principal format is: + * "https://accounts.google.com/{id}" + * + * Generated from protobuf field string principal = 1; + * @return string + */ + public function getPrincipal() + { + return $this->principal; + } + + /** + * The authenticated principal. Reflects the issuer (`iss`) and subject + * (`sub`) claims within a JWT. The issuer and subject should be `/` + * delimited, with `/` percent-encoded within the subject fragment. For + * Google accounts, the principal format is: + * "https://accounts.google.com/{id}" + * + * Generated from protobuf field string principal = 1; + * @param string $var + * @return $this + */ + public function setPrincipal($var) + { + GPBUtil::checkString($var, True); + $this->principal = $var; + + return $this; + } + + /** + * The intended audience(s) for this authentication information. Reflects + * the audience (`aud`) claim within a JWT. The audience + * value(s) depends on the `issuer`, but typically include one or more of + * the following pieces of information: + * * The services intended to receive the credential. For example, + * ["https://pubsub.googleapis.com/", "https://storage.googleapis.com/"]. + * * A set of service-based scopes. For example, + * ["https://www.googleapis.com/auth/cloud-platform"]. + * * The client id of an app, such as the Firebase project id for JWTs + * from Firebase Auth. + * Consult the documentation for the credential issuer to determine the + * information provided. + * + * Generated from protobuf field repeated string audiences = 2; + * @return RepeatedField + */ + public function getAudiences() + { + return $this->audiences; + } + + /** + * The intended audience(s) for this authentication information. Reflects + * the audience (`aud`) claim within a JWT. The audience + * value(s) depends on the `issuer`, but typically include one or more of + * the following pieces of information: + * * The services intended to receive the credential. For example, + * ["https://pubsub.googleapis.com/", "https://storage.googleapis.com/"]. + * * A set of service-based scopes. For example, + * ["https://www.googleapis.com/auth/cloud-platform"]. + * * The client id of an app, such as the Firebase project id for JWTs + * from Firebase Auth. + * Consult the documentation for the credential issuer to determine the + * information provided. + * + * Generated from protobuf field repeated string audiences = 2; + * @param string[] $var + * @return $this + */ + public function setAudiences($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->audiences = $arr; + + return $this; + } + + /** + * The authorized presenter of the credential. Reflects the optional + * Authorized Presenter (`azp`) claim within a JWT or the + * OAuth client id. For example, a Google Cloud Platform client id looks + * as follows: "123456789012.apps.googleusercontent.com". + * + * Generated from protobuf field string presenter = 3; + * @return string + */ + public function getPresenter() + { + return $this->presenter; + } + + /** + * The authorized presenter of the credential. Reflects the optional + * Authorized Presenter (`azp`) claim within a JWT or the + * OAuth client id. For example, a Google Cloud Platform client id looks + * as follows: "123456789012.apps.googleusercontent.com". + * + * Generated from protobuf field string presenter = 3; + * @param string $var + * @return $this + */ + public function setPresenter($var) + { + GPBUtil::checkString($var, True); + $this->presenter = $var; + + return $this; + } + + /** + * Structured claims presented with the credential. JWTs include + * `{key: value}` pairs for standard and private claims. The following + * is a subset of the standard required and optional claims that would + * typically be presented for a Google-based JWT: + * {'iss': 'accounts.google.com', + * 'sub': '113289723416554971153', + * 'aud': ['123456789012', 'pubsub.googleapis.com'], + * 'azp': '123456789012.apps.googleusercontent.com', + * 'email': 'jsmith\@example.com', + * 'iat': 1353601026, + * 'exp': 1353604926} + * SAML assertions are similarly specified, but with an identity provider + * dependent structure. + * + * Generated from protobuf field .google.protobuf.Struct claims = 4; + * @return \Google\Protobuf\Struct|null + */ + public function getClaims() + { + return $this->claims; + } + + public function hasClaims() + { + return isset($this->claims); + } + + public function clearClaims() + { + unset($this->claims); + } + + /** + * Structured claims presented with the credential. JWTs include + * `{key: value}` pairs for standard and private claims. The following + * is a subset of the standard required and optional claims that would + * typically be presented for a Google-based JWT: + * {'iss': 'accounts.google.com', + * 'sub': '113289723416554971153', + * 'aud': ['123456789012', 'pubsub.googleapis.com'], + * 'azp': '123456789012.apps.googleusercontent.com', + * 'email': 'jsmith\@example.com', + * 'iat': 1353601026, + * 'exp': 1353604926} + * SAML assertions are similarly specified, but with an identity provider + * dependent structure. + * + * Generated from protobuf field .google.protobuf.Struct claims = 4; + * @param \Google\Protobuf\Struct $var + * @return $this + */ + public function setClaims($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Struct::class); + $this->claims = $var; + + return $this; + } + + /** + * A list of access level resource names that allow resources to be + * accessed by authenticated requester. It is part of Secure GCP processing + * for the incoming request. An access level string has the format: + * "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}" + * Example: + * "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL" + * + * Generated from protobuf field repeated string access_levels = 5; + * @return RepeatedField + */ + public function getAccessLevels() + { + return $this->access_levels; + } + + /** + * A list of access level resource names that allow resources to be + * accessed by authenticated requester. It is part of Secure GCP processing + * for the incoming request. An access level string has the format: + * "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}" + * Example: + * "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL" + * + * Generated from protobuf field repeated string access_levels = 5; + * @param string[] $var + * @return $this + */ + public function setAccessLevels($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->access_levels = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Peer.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Peer.php new file mode 100644 index 000000000000..2433710547ca --- /dev/null +++ b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Peer.php @@ -0,0 +1,222 @@ +google.rpc.context.AttributeContext.Peer + */ +class Peer extends \Google\Protobuf\Internal\Message +{ + /** + * The IP address of the peer. + * + * Generated from protobuf field string ip = 1; + */ + protected $ip = ''; + /** + * The network port of the peer. + * + * Generated from protobuf field int64 port = 2; + */ + protected $port = 0; + /** + * The labels associated with the peer. + * + * Generated from protobuf field map labels = 6; + */ + private $labels; + /** + * The identity of this peer. Similar to `Request.auth.principal`, but + * relative to the peer instead of the request. For example, the + * identity associated with a load balancer that forwarded the request. + * + * Generated from protobuf field string principal = 7; + */ + protected $principal = ''; + /** + * The CLDR country/region code associated with the above IP address. + * If the IP address is private, the `region_code` should reflect the + * physical location where this peer is running. + * + * Generated from protobuf field string region_code = 8; + */ + protected $region_code = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $ip + * The IP address of the peer. + * @type int|string $port + * The network port of the peer. + * @type array|\Google\Protobuf\Internal\MapField $labels + * The labels associated with the peer. + * @type string $principal + * The identity of this peer. Similar to `Request.auth.principal`, but + * relative to the peer instead of the request. For example, the + * identity associated with a load balancer that forwarded the request. + * @type string $region_code + * The CLDR country/region code associated with the above IP address. + * If the IP address is private, the `region_code` should reflect the + * physical location where this peer is running. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Rpc\Context\AttributeContext::initOnce(); + parent::__construct($data); + } + + /** + * The IP address of the peer. + * + * Generated from protobuf field string ip = 1; + * @return string + */ + public function getIp() + { + return $this->ip; + } + + /** + * The IP address of the peer. + * + * Generated from protobuf field string ip = 1; + * @param string $var + * @return $this + */ + public function setIp($var) + { + GPBUtil::checkString($var, True); + $this->ip = $var; + + return $this; + } + + /** + * The network port of the peer. + * + * Generated from protobuf field int64 port = 2; + * @return int|string + */ + public function getPort() + { + return $this->port; + } + + /** + * The network port of the peer. + * + * Generated from protobuf field int64 port = 2; + * @param int|string $var + * @return $this + */ + public function setPort($var) + { + GPBUtil::checkInt64($var); + $this->port = $var; + + return $this; + } + + /** + * The labels associated with the peer. + * + * Generated from protobuf field map labels = 6; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * The labels associated with the peer. + * + * Generated from protobuf field map labels = 6; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->labels = $arr; + + return $this; + } + + /** + * The identity of this peer. Similar to `Request.auth.principal`, but + * relative to the peer instead of the request. For example, the + * identity associated with a load balancer that forwarded the request. + * + * Generated from protobuf field string principal = 7; + * @return string + */ + public function getPrincipal() + { + return $this->principal; + } + + /** + * The identity of this peer. Similar to `Request.auth.principal`, but + * relative to the peer instead of the request. For example, the + * identity associated with a load balancer that forwarded the request. + * + * Generated from protobuf field string principal = 7; + * @param string $var + * @return $this + */ + public function setPrincipal($var) + { + GPBUtil::checkString($var, True); + $this->principal = $var; + + return $this; + } + + /** + * The CLDR country/region code associated with the above IP address. + * If the IP address is private, the `region_code` should reflect the + * physical location where this peer is running. + * + * Generated from protobuf field string region_code = 8; + * @return string + */ + public function getRegionCode() + { + return $this->region_code; + } + + /** + * The CLDR country/region code associated with the above IP address. + * If the IP address is private, the `region_code` should reflect the + * physical location where this peer is running. + * + * Generated from protobuf field string region_code = 8; + * @param string $var + * @return $this + */ + public function setRegionCode($var) + { + GPBUtil::checkString($var, True); + $this->region_code = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Request.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Request.php new file mode 100644 index 000000000000..9d0a1ed62e87 --- /dev/null +++ b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Request.php @@ -0,0 +1,507 @@ +google.rpc.context.AttributeContext.Request + */ +class Request extends \Google\Protobuf\Internal\Message +{ + /** + * The unique ID for a request, which can be propagated to downstream + * systems. The ID should have low probability of collision + * within a single day for a specific service. + * + * Generated from protobuf field string id = 1; + */ + protected $id = ''; + /** + * The HTTP request method, such as `GET`, `POST`. + * + * Generated from protobuf field string method = 2; + */ + protected $method = ''; + /** + * The HTTP request headers. If multiple headers share the same key, they + * must be merged according to the HTTP spec. All header keys must be + * lowercased, because HTTP header keys are case-insensitive. + * + * Generated from protobuf field map headers = 3; + */ + private $headers; + /** + * The HTTP URL path, excluding the query parameters. + * + * Generated from protobuf field string path = 4; + */ + protected $path = ''; + /** + * The HTTP request `Host` header value. + * + * Generated from protobuf field string host = 5; + */ + protected $host = ''; + /** + * The HTTP URL scheme, such as `http` and `https`. + * + * Generated from protobuf field string scheme = 6; + */ + protected $scheme = ''; + /** + * The HTTP URL query in the format of `name1=value1&name2=value2`, as it + * appears in the first line of the HTTP request. No decoding is performed. + * + * Generated from protobuf field string query = 7; + */ + protected $query = ''; + /** + * The timestamp when the `destination` service receives the last byte of + * the request. + * + * Generated from protobuf field .google.protobuf.Timestamp time = 9; + */ + protected $time = null; + /** + * The HTTP request size in bytes. If unknown, it must be -1. + * + * Generated from protobuf field int64 size = 10; + */ + protected $size = 0; + /** + * The network protocol used with the request, such as "http/1.1", + * "spdy/3", "h2", "h2c", "webrtc", "tcp", "udp", "quic". See + * https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids + * for details. + * + * Generated from protobuf field string protocol = 11; + */ + protected $protocol = ''; + /** + * A special parameter for request reason. It is used by security systems + * to associate auditing information with a request. + * + * Generated from protobuf field string reason = 12; + */ + protected $reason = ''; + /** + * The request authentication. May be absent for unauthenticated requests. + * Derived from the HTTP request `Authorization` header or equivalent. + * + * Generated from protobuf field .google.rpc.context.AttributeContext.Auth auth = 13; + */ + protected $auth = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $id + * The unique ID for a request, which can be propagated to downstream + * systems. The ID should have low probability of collision + * within a single day for a specific service. + * @type string $method + * The HTTP request method, such as `GET`, `POST`. + * @type array|\Google\Protobuf\Internal\MapField $headers + * The HTTP request headers. If multiple headers share the same key, they + * must be merged according to the HTTP spec. All header keys must be + * lowercased, because HTTP header keys are case-insensitive. + * @type string $path + * The HTTP URL path, excluding the query parameters. + * @type string $host + * The HTTP request `Host` header value. + * @type string $scheme + * The HTTP URL scheme, such as `http` and `https`. + * @type string $query + * The HTTP URL query in the format of `name1=value1&name2=value2`, as it + * appears in the first line of the HTTP request. No decoding is performed. + * @type \Google\Protobuf\Timestamp $time + * The timestamp when the `destination` service receives the last byte of + * the request. + * @type int|string $size + * The HTTP request size in bytes. If unknown, it must be -1. + * @type string $protocol + * The network protocol used with the request, such as "http/1.1", + * "spdy/3", "h2", "h2c", "webrtc", "tcp", "udp", "quic". See + * https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids + * for details. + * @type string $reason + * A special parameter for request reason. It is used by security systems + * to associate auditing information with a request. + * @type \Google\Rpc\Context\AttributeContext\Auth $auth + * The request authentication. May be absent for unauthenticated requests. + * Derived from the HTTP request `Authorization` header or equivalent. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Rpc\Context\AttributeContext::initOnce(); + parent::__construct($data); + } + + /** + * The unique ID for a request, which can be propagated to downstream + * systems. The ID should have low probability of collision + * within a single day for a specific service. + * + * Generated from protobuf field string id = 1; + * @return string + */ + public function getId() + { + return $this->id; + } + + /** + * The unique ID for a request, which can be propagated to downstream + * systems. The ID should have low probability of collision + * within a single day for a specific service. + * + * Generated from protobuf field string id = 1; + * @param string $var + * @return $this + */ + public function setId($var) + { + GPBUtil::checkString($var, True); + $this->id = $var; + + return $this; + } + + /** + * The HTTP request method, such as `GET`, `POST`. + * + * Generated from protobuf field string method = 2; + * @return string + */ + public function getMethod() + { + return $this->method; + } + + /** + * The HTTP request method, such as `GET`, `POST`. + * + * Generated from protobuf field string method = 2; + * @param string $var + * @return $this + */ + public function setMethod($var) + { + GPBUtil::checkString($var, True); + $this->method = $var; + + return $this; + } + + /** + * The HTTP request headers. If multiple headers share the same key, they + * must be merged according to the HTTP spec. All header keys must be + * lowercased, because HTTP header keys are case-insensitive. + * + * Generated from protobuf field map headers = 3; + * @return \Google\Protobuf\Internal\MapField + */ + public function getHeaders() + { + return $this->headers; + } + + /** + * The HTTP request headers. If multiple headers share the same key, they + * must be merged according to the HTTP spec. All header keys must be + * lowercased, because HTTP header keys are case-insensitive. + * + * Generated from protobuf field map headers = 3; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setHeaders($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->headers = $arr; + + return $this; + } + + /** + * The HTTP URL path, excluding the query parameters. + * + * Generated from protobuf field string path = 4; + * @return string + */ + public function getPath() + { + return $this->path; + } + + /** + * The HTTP URL path, excluding the query parameters. + * + * Generated from protobuf field string path = 4; + * @param string $var + * @return $this + */ + public function setPath($var) + { + GPBUtil::checkString($var, True); + $this->path = $var; + + return $this; + } + + /** + * The HTTP request `Host` header value. + * + * Generated from protobuf field string host = 5; + * @return string + */ + public function getHost() + { + return $this->host; + } + + /** + * The HTTP request `Host` header value. + * + * Generated from protobuf field string host = 5; + * @param string $var + * @return $this + */ + public function setHost($var) + { + GPBUtil::checkString($var, True); + $this->host = $var; + + return $this; + } + + /** + * The HTTP URL scheme, such as `http` and `https`. + * + * Generated from protobuf field string scheme = 6; + * @return string + */ + public function getScheme() + { + return $this->scheme; + } + + /** + * The HTTP URL scheme, such as `http` and `https`. + * + * Generated from protobuf field string scheme = 6; + * @param string $var + * @return $this + */ + public function setScheme($var) + { + GPBUtil::checkString($var, True); + $this->scheme = $var; + + return $this; + } + + /** + * The HTTP URL query in the format of `name1=value1&name2=value2`, as it + * appears in the first line of the HTTP request. No decoding is performed. + * + * Generated from protobuf field string query = 7; + * @return string + */ + public function getQuery() + { + return $this->query; + } + + /** + * The HTTP URL query in the format of `name1=value1&name2=value2`, as it + * appears in the first line of the HTTP request. No decoding is performed. + * + * Generated from protobuf field string query = 7; + * @param string $var + * @return $this + */ + public function setQuery($var) + { + GPBUtil::checkString($var, True); + $this->query = $var; + + return $this; + } + + /** + * The timestamp when the `destination` service receives the last byte of + * the request. + * + * Generated from protobuf field .google.protobuf.Timestamp time = 9; + * @return \Google\Protobuf\Timestamp|null + */ + public function getTime() + { + return $this->time; + } + + public function hasTime() + { + return isset($this->time); + } + + public function clearTime() + { + unset($this->time); + } + + /** + * The timestamp when the `destination` service receives the last byte of + * the request. + * + * Generated from protobuf field .google.protobuf.Timestamp time = 9; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->time = $var; + + return $this; + } + + /** + * The HTTP request size in bytes. If unknown, it must be -1. + * + * Generated from protobuf field int64 size = 10; + * @return int|string + */ + public function getSize() + { + return $this->size; + } + + /** + * The HTTP request size in bytes. If unknown, it must be -1. + * + * Generated from protobuf field int64 size = 10; + * @param int|string $var + * @return $this + */ + public function setSize($var) + { + GPBUtil::checkInt64($var); + $this->size = $var; + + return $this; + } + + /** + * The network protocol used with the request, such as "http/1.1", + * "spdy/3", "h2", "h2c", "webrtc", "tcp", "udp", "quic". See + * https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids + * for details. + * + * Generated from protobuf field string protocol = 11; + * @return string + */ + public function getProtocol() + { + return $this->protocol; + } + + /** + * The network protocol used with the request, such as "http/1.1", + * "spdy/3", "h2", "h2c", "webrtc", "tcp", "udp", "quic". See + * https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids + * for details. + * + * Generated from protobuf field string protocol = 11; + * @param string $var + * @return $this + */ + public function setProtocol($var) + { + GPBUtil::checkString($var, True); + $this->protocol = $var; + + return $this; + } + + /** + * A special parameter for request reason. It is used by security systems + * to associate auditing information with a request. + * + * Generated from protobuf field string reason = 12; + * @return string + */ + public function getReason() + { + return $this->reason; + } + + /** + * A special parameter for request reason. It is used by security systems + * to associate auditing information with a request. + * + * Generated from protobuf field string reason = 12; + * @param string $var + * @return $this + */ + public function setReason($var) + { + GPBUtil::checkString($var, True); + $this->reason = $var; + + return $this; + } + + /** + * The request authentication. May be absent for unauthenticated requests. + * Derived from the HTTP request `Authorization` header or equivalent. + * + * Generated from protobuf field .google.rpc.context.AttributeContext.Auth auth = 13; + * @return \Google\Rpc\Context\AttributeContext\Auth|null + */ + public function getAuth() + { + return $this->auth; + } + + public function hasAuth() + { + return isset($this->auth); + } + + public function clearAuth() + { + unset($this->auth); + } + + /** + * The request authentication. May be absent for unauthenticated requests. + * Derived from the HTTP request `Authorization` header or equivalent. + * + * Generated from protobuf field .google.rpc.context.AttributeContext.Auth auth = 13; + * @param \Google\Rpc\Context\AttributeContext\Auth $var + * @return $this + */ + public function setAuth($var) + { + GPBUtil::checkMessage($var, \Google\Rpc\Context\AttributeContext\Auth::class); + $this->auth = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Resource.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Resource.php new file mode 100644 index 000000000000..c35da3f54dfc --- /dev/null +++ b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Resource.php @@ -0,0 +1,613 @@ +google.rpc.context.AttributeContext.Resource + */ +class Resource extends \Google\Protobuf\Internal\Message +{ + /** + * The name of the service that this resource belongs to, such as + * `pubsub.googleapis.com`. The service may be different from the DNS + * hostname that actually serves the request. + * + * Generated from protobuf field string service = 1; + */ + protected $service = ''; + /** + * The stable identifier (name) of a resource on the `service`. A resource + * can be logically identified as "//{resource.service}/{resource.name}". + * The differences between a resource name and a URI are: + * * Resource name is a logical identifier, independent of network + * protocol and API version. For example, + * `//pubsub.googleapis.com/projects/123/topics/news-feed`. + * * URI often includes protocol and version information, so it can + * be used directly by applications. For example, + * `https://pubsub.googleapis.com/v1/projects/123/topics/news-feed`. + * See https://cloud.google.com/apis/design/resource_names for details. + * + * Generated from protobuf field string name = 2; + */ + protected $name = ''; + /** + * The type of the resource. The syntax is platform-specific because + * different platforms define their resources differently. + * For Google APIs, the type format must be "{service}/{kind}", such as + * "pubsub.googleapis.com/Topic". + * + * Generated from protobuf field string type = 3; + */ + protected $type = ''; + /** + * The labels or tags on the resource, such as AWS resource tags and + * Kubernetes resource labels. + * + * Generated from protobuf field map labels = 4; + */ + private $labels; + /** + * The unique identifier of the resource. UID is unique in the time + * and space for this resource within the scope of the service. It is + * typically generated by the server on successful creation of a resource + * and must not be changed. UID is used to uniquely identify resources + * with resource name reuses. This should be a UUID4. + * + * Generated from protobuf field string uid = 5; + */ + protected $uid = ''; + /** + * Annotations is an unstructured key-value map stored with a resource that + * may be set by external tools to store and retrieve arbitrary metadata. + * They are not queryable and should be preserved when modifying objects. + * More info: + * https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/ + * + * Generated from protobuf field map annotations = 6; + */ + private $annotations; + /** + * Mutable. The display name set by clients. Must be <= 63 characters. + * + * Generated from protobuf field string display_name = 7; + */ + protected $display_name = ''; + /** + * Output only. The timestamp when the resource was created. This may + * be either the time creation was initiated or when it was completed. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 8; + */ + protected $create_time = null; + /** + * Output only. The timestamp when the resource was last updated. Any + * change to the resource made by users must refresh this value. + * Changes to a resource made by the service should refresh this value. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 9; + */ + protected $update_time = null; + /** + * Output only. The timestamp when the resource was deleted. + * If the resource is not deleted, this must be empty. + * + * Generated from protobuf field .google.protobuf.Timestamp delete_time = 10; + */ + protected $delete_time = null; + /** + * Output only. An opaque value that uniquely identifies a version or + * generation of a resource. It can be used to confirm that the client + * and server agree on the ordering of a resource being written. + * + * Generated from protobuf field string etag = 11; + */ + protected $etag = ''; + /** + * Immutable. The location of the resource. The location encoding is + * specific to the service provider, and new encoding may be introduced + * as the service evolves. + * For Google Cloud products, the encoding is what is used by Google Cloud + * APIs, such as `us-east1`, `aws-us-east-1`, and `azure-eastus2`. The + * semantics of `location` is identical to the + * `cloud.googleapis.com/location` label used by some Google Cloud APIs. + * + * Generated from protobuf field string location = 12; + */ + protected $location = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $service + * The name of the service that this resource belongs to, such as + * `pubsub.googleapis.com`. The service may be different from the DNS + * hostname that actually serves the request. + * @type string $name + * The stable identifier (name) of a resource on the `service`. A resource + * can be logically identified as "//{resource.service}/{resource.name}". + * The differences between a resource name and a URI are: + * * Resource name is a logical identifier, independent of network + * protocol and API version. For example, + * `//pubsub.googleapis.com/projects/123/topics/news-feed`. + * * URI often includes protocol and version information, so it can + * be used directly by applications. For example, + * `https://pubsub.googleapis.com/v1/projects/123/topics/news-feed`. + * See https://cloud.google.com/apis/design/resource_names for details. + * @type string $type + * The type of the resource. The syntax is platform-specific because + * different platforms define their resources differently. + * For Google APIs, the type format must be "{service}/{kind}", such as + * "pubsub.googleapis.com/Topic". + * @type array|\Google\Protobuf\Internal\MapField $labels + * The labels or tags on the resource, such as AWS resource tags and + * Kubernetes resource labels. + * @type string $uid + * The unique identifier of the resource. UID is unique in the time + * and space for this resource within the scope of the service. It is + * typically generated by the server on successful creation of a resource + * and must not be changed. UID is used to uniquely identify resources + * with resource name reuses. This should be a UUID4. + * @type array|\Google\Protobuf\Internal\MapField $annotations + * Annotations is an unstructured key-value map stored with a resource that + * may be set by external tools to store and retrieve arbitrary metadata. + * They are not queryable and should be preserved when modifying objects. + * More info: + * https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/ + * @type string $display_name + * Mutable. The display name set by clients. Must be <= 63 characters. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The timestamp when the resource was created. This may + * be either the time creation was initiated or when it was completed. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. The timestamp when the resource was last updated. Any + * change to the resource made by users must refresh this value. + * Changes to a resource made by the service should refresh this value. + * @type \Google\Protobuf\Timestamp $delete_time + * Output only. The timestamp when the resource was deleted. + * If the resource is not deleted, this must be empty. + * @type string $etag + * Output only. An opaque value that uniquely identifies a version or + * generation of a resource. It can be used to confirm that the client + * and server agree on the ordering of a resource being written. + * @type string $location + * Immutable. The location of the resource. The location encoding is + * specific to the service provider, and new encoding may be introduced + * as the service evolves. + * For Google Cloud products, the encoding is what is used by Google Cloud + * APIs, such as `us-east1`, `aws-us-east-1`, and `azure-eastus2`. The + * semantics of `location` is identical to the + * `cloud.googleapis.com/location` label used by some Google Cloud APIs. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Rpc\Context\AttributeContext::initOnce(); + parent::__construct($data); + } + + /** + * The name of the service that this resource belongs to, such as + * `pubsub.googleapis.com`. The service may be different from the DNS + * hostname that actually serves the request. + * + * Generated from protobuf field string service = 1; + * @return string + */ + public function getService() + { + return $this->service; + } + + /** + * The name of the service that this resource belongs to, such as + * `pubsub.googleapis.com`. The service may be different from the DNS + * hostname that actually serves the request. + * + * Generated from protobuf field string service = 1; + * @param string $var + * @return $this + */ + public function setService($var) + { + GPBUtil::checkString($var, True); + $this->service = $var; + + return $this; + } + + /** + * The stable identifier (name) of a resource on the `service`. A resource + * can be logically identified as "//{resource.service}/{resource.name}". + * The differences between a resource name and a URI are: + * * Resource name is a logical identifier, independent of network + * protocol and API version. For example, + * `//pubsub.googleapis.com/projects/123/topics/news-feed`. + * * URI often includes protocol and version information, so it can + * be used directly by applications. For example, + * `https://pubsub.googleapis.com/v1/projects/123/topics/news-feed`. + * See https://cloud.google.com/apis/design/resource_names for details. + * + * Generated from protobuf field string name = 2; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The stable identifier (name) of a resource on the `service`. A resource + * can be logically identified as "//{resource.service}/{resource.name}". + * The differences between a resource name and a URI are: + * * Resource name is a logical identifier, independent of network + * protocol and API version. For example, + * `//pubsub.googleapis.com/projects/123/topics/news-feed`. + * * URI often includes protocol and version information, so it can + * be used directly by applications. For example, + * `https://pubsub.googleapis.com/v1/projects/123/topics/news-feed`. + * See https://cloud.google.com/apis/design/resource_names for details. + * + * Generated from protobuf field string name = 2; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * The type of the resource. The syntax is platform-specific because + * different platforms define their resources differently. + * For Google APIs, the type format must be "{service}/{kind}", such as + * "pubsub.googleapis.com/Topic". + * + * Generated from protobuf field string type = 3; + * @return string + */ + public function getType() + { + return $this->type; + } + + /** + * The type of the resource. The syntax is platform-specific because + * different platforms define their resources differently. + * For Google APIs, the type format must be "{service}/{kind}", such as + * "pubsub.googleapis.com/Topic". + * + * Generated from protobuf field string type = 3; + * @param string $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkString($var, True); + $this->type = $var; + + return $this; + } + + /** + * The labels or tags on the resource, such as AWS resource tags and + * Kubernetes resource labels. + * + * Generated from protobuf field map labels = 4; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * The labels or tags on the resource, such as AWS resource tags and + * Kubernetes resource labels. + * + * Generated from protobuf field map labels = 4; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->labels = $arr; + + return $this; + } + + /** + * The unique identifier of the resource. UID is unique in the time + * and space for this resource within the scope of the service. It is + * typically generated by the server on successful creation of a resource + * and must not be changed. UID is used to uniquely identify resources + * with resource name reuses. This should be a UUID4. + * + * Generated from protobuf field string uid = 5; + * @return string + */ + public function getUid() + { + return $this->uid; + } + + /** + * The unique identifier of the resource. UID is unique in the time + * and space for this resource within the scope of the service. It is + * typically generated by the server on successful creation of a resource + * and must not be changed. UID is used to uniquely identify resources + * with resource name reuses. This should be a UUID4. + * + * Generated from protobuf field string uid = 5; + * @param string $var + * @return $this + */ + public function setUid($var) + { + GPBUtil::checkString($var, True); + $this->uid = $var; + + return $this; + } + + /** + * Annotations is an unstructured key-value map stored with a resource that + * may be set by external tools to store and retrieve arbitrary metadata. + * They are not queryable and should be preserved when modifying objects. + * More info: + * https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/ + * + * Generated from protobuf field map annotations = 6; + * @return \Google\Protobuf\Internal\MapField + */ + public function getAnnotations() + { + return $this->annotations; + } + + /** + * Annotations is an unstructured key-value map stored with a resource that + * may be set by external tools to store and retrieve arbitrary metadata. + * They are not queryable and should be preserved when modifying objects. + * More info: + * https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/ + * + * Generated from protobuf field map annotations = 6; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setAnnotations($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->annotations = $arr; + + return $this; + } + + /** + * Mutable. The display name set by clients. Must be <= 63 characters. + * + * Generated from protobuf field string display_name = 7; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Mutable. The display name set by clients. Must be <= 63 characters. + * + * Generated from protobuf field string display_name = 7; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Output only. The timestamp when the resource was created. This may + * be either the time creation was initiated or when it was completed. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 8; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. The timestamp when the resource was created. This may + * be either the time creation was initiated or when it was completed. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 8; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. The timestamp when the resource was last updated. Any + * change to the resource made by users must refresh this value. + * Changes to a resource made by the service should refresh this value. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 9; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. The timestamp when the resource was last updated. Any + * change to the resource made by users must refresh this value. + * Changes to a resource made by the service should refresh this value. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 9; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * Output only. The timestamp when the resource was deleted. + * If the resource is not deleted, this must be empty. + * + * Generated from protobuf field .google.protobuf.Timestamp delete_time = 10; + * @return \Google\Protobuf\Timestamp|null + */ + public function getDeleteTime() + { + return $this->delete_time; + } + + public function hasDeleteTime() + { + return isset($this->delete_time); + } + + public function clearDeleteTime() + { + unset($this->delete_time); + } + + /** + * Output only. The timestamp when the resource was deleted. + * If the resource is not deleted, this must be empty. + * + * Generated from protobuf field .google.protobuf.Timestamp delete_time = 10; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setDeleteTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->delete_time = $var; + + return $this; + } + + /** + * Output only. An opaque value that uniquely identifies a version or + * generation of a resource. It can be used to confirm that the client + * and server agree on the ordering of a resource being written. + * + * Generated from protobuf field string etag = 11; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * Output only. An opaque value that uniquely identifies a version or + * generation of a resource. It can be used to confirm that the client + * and server agree on the ordering of a resource being written. + * + * Generated from protobuf field string etag = 11; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + + /** + * Immutable. The location of the resource. The location encoding is + * specific to the service provider, and new encoding may be introduced + * as the service evolves. + * For Google Cloud products, the encoding is what is used by Google Cloud + * APIs, such as `us-east1`, `aws-us-east-1`, and `azure-eastus2`. The + * semantics of `location` is identical to the + * `cloud.googleapis.com/location` label used by some Google Cloud APIs. + * + * Generated from protobuf field string location = 12; + * @return string + */ + public function getLocation() + { + return $this->location; + } + + /** + * Immutable. The location of the resource. The location encoding is + * specific to the service provider, and new encoding may be introduced + * as the service evolves. + * For Google Cloud products, the encoding is what is used by Google Cloud + * APIs, such as `us-east1`, `aws-us-east-1`, and `azure-eastus2`. The + * semantics of `location` is identical to the + * `cloud.googleapis.com/location` label used by some Google Cloud APIs. + * + * Generated from protobuf field string location = 12; + * @param string $var + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkString($var, True); + $this->location = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Response.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Response.php new file mode 100644 index 000000000000..1745b961a0dd --- /dev/null +++ b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Response.php @@ -0,0 +1,248 @@ +google.rpc.context.AttributeContext.Response + */ +class Response extends \Google\Protobuf\Internal\Message +{ + /** + * The HTTP response status code, such as `200` and `404`. + * + * Generated from protobuf field int64 code = 1; + */ + protected $code = 0; + /** + * The HTTP response size in bytes. If unknown, it must be -1. + * + * Generated from protobuf field int64 size = 2; + */ + protected $size = 0; + /** + * The HTTP response headers. If multiple headers share the same key, they + * must be merged according to HTTP spec. All header keys must be + * lowercased, because HTTP header keys are case-insensitive. + * + * Generated from protobuf field map headers = 3; + */ + private $headers; + /** + * The timestamp when the `destination` service sends the last byte of + * the response. + * + * Generated from protobuf field .google.protobuf.Timestamp time = 4; + */ + protected $time = null; + /** + * The amount of time it takes the backend service to fully respond to a + * request. Measured from when the destination service starts to send the + * request to the backend until when the destination service receives the + * complete response from the backend. + * + * Generated from protobuf field .google.protobuf.Duration backend_latency = 5; + */ + protected $backend_latency = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $code + * The HTTP response status code, such as `200` and `404`. + * @type int|string $size + * The HTTP response size in bytes. If unknown, it must be -1. + * @type array|\Google\Protobuf\Internal\MapField $headers + * The HTTP response headers. If multiple headers share the same key, they + * must be merged according to HTTP spec. All header keys must be + * lowercased, because HTTP header keys are case-insensitive. + * @type \Google\Protobuf\Timestamp $time + * The timestamp when the `destination` service sends the last byte of + * the response. + * @type \Google\Protobuf\Duration $backend_latency + * The amount of time it takes the backend service to fully respond to a + * request. Measured from when the destination service starts to send the + * request to the backend until when the destination service receives the + * complete response from the backend. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Rpc\Context\AttributeContext::initOnce(); + parent::__construct($data); + } + + /** + * The HTTP response status code, such as `200` and `404`. + * + * Generated from protobuf field int64 code = 1; + * @return int|string + */ + public function getCode() + { + return $this->code; + } + + /** + * The HTTP response status code, such as `200` and `404`. + * + * Generated from protobuf field int64 code = 1; + * @param int|string $var + * @return $this + */ + public function setCode($var) + { + GPBUtil::checkInt64($var); + $this->code = $var; + + return $this; + } + + /** + * The HTTP response size in bytes. If unknown, it must be -1. + * + * Generated from protobuf field int64 size = 2; + * @return int|string + */ + public function getSize() + { + return $this->size; + } + + /** + * The HTTP response size in bytes. If unknown, it must be -1. + * + * Generated from protobuf field int64 size = 2; + * @param int|string $var + * @return $this + */ + public function setSize($var) + { + GPBUtil::checkInt64($var); + $this->size = $var; + + return $this; + } + + /** + * The HTTP response headers. If multiple headers share the same key, they + * must be merged according to HTTP spec. All header keys must be + * lowercased, because HTTP header keys are case-insensitive. + * + * Generated from protobuf field map headers = 3; + * @return \Google\Protobuf\Internal\MapField + */ + public function getHeaders() + { + return $this->headers; + } + + /** + * The HTTP response headers. If multiple headers share the same key, they + * must be merged according to HTTP spec. All header keys must be + * lowercased, because HTTP header keys are case-insensitive. + * + * Generated from protobuf field map headers = 3; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setHeaders($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->headers = $arr; + + return $this; + } + + /** + * The timestamp when the `destination` service sends the last byte of + * the response. + * + * Generated from protobuf field .google.protobuf.Timestamp time = 4; + * @return \Google\Protobuf\Timestamp|null + */ + public function getTime() + { + return $this->time; + } + + public function hasTime() + { + return isset($this->time); + } + + public function clearTime() + { + unset($this->time); + } + + /** + * The timestamp when the `destination` service sends the last byte of + * the response. + * + * Generated from protobuf field .google.protobuf.Timestamp time = 4; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->time = $var; + + return $this; + } + + /** + * The amount of time it takes the backend service to fully respond to a + * request. Measured from when the destination service starts to send the + * request to the backend until when the destination service receives the + * complete response from the backend. + * + * Generated from protobuf field .google.protobuf.Duration backend_latency = 5; + * @return \Google\Protobuf\Duration|null + */ + public function getBackendLatency() + { + return $this->backend_latency; + } + + public function hasBackendLatency() + { + return isset($this->backend_latency); + } + + public function clearBackendLatency() + { + unset($this->backend_latency); + } + + /** + * The amount of time it takes the backend service to fully respond to a + * request. Measured from when the destination service starts to send the + * request to the backend until when the destination service receives the + * complete response from the backend. + * + * Generated from protobuf field .google.protobuf.Duration backend_latency = 5; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setBackendLatency($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->backend_latency = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AuditContext.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AuditContext.php new file mode 100644 index 000000000000..f0acfa4f0859 --- /dev/null +++ b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AuditContext.php @@ -0,0 +1,247 @@ +google.rpc.context.AuditContext + */ +class AuditContext extends \Google\Protobuf\Internal\Message +{ + /** + * Serialized audit log. + * + * Generated from protobuf field bytes audit_log = 1; + */ + protected $audit_log = ''; + /** + * An API request message that is scrubbed based on the method annotation. + * This field should only be filled if audit_log field is present. + * Service Control will use this to assemble a complete log for Cloud Audit + * Logs and Google internal audit logs. + * + * Generated from protobuf field .google.protobuf.Struct scrubbed_request = 2; + */ + protected $scrubbed_request = null; + /** + * An API response message that is scrubbed based on the method annotation. + * This field should only be filled if audit_log field is present. + * Service Control will use this to assemble a complete log for Cloud Audit + * Logs and Google internal audit logs. + * + * Generated from protobuf field .google.protobuf.Struct scrubbed_response = 3; + */ + protected $scrubbed_response = null; + /** + * Number of scrubbed response items. + * + * Generated from protobuf field int32 scrubbed_response_item_count = 4; + */ + protected $scrubbed_response_item_count = 0; + /** + * Audit resource name which is scrubbed. + * + * Generated from protobuf field string target_resource = 5; + */ + protected $target_resource = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $audit_log + * Serialized audit log. + * @type \Google\Protobuf\Struct $scrubbed_request + * An API request message that is scrubbed based on the method annotation. + * This field should only be filled if audit_log field is present. + * Service Control will use this to assemble a complete log for Cloud Audit + * Logs and Google internal audit logs. + * @type \Google\Protobuf\Struct $scrubbed_response + * An API response message that is scrubbed based on the method annotation. + * This field should only be filled if audit_log field is present. + * Service Control will use this to assemble a complete log for Cloud Audit + * Logs and Google internal audit logs. + * @type int $scrubbed_response_item_count + * Number of scrubbed response items. + * @type string $target_resource + * Audit resource name which is scrubbed. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Rpc\Context\AuditContext::initOnce(); + parent::__construct($data); + } + + /** + * Serialized audit log. + * + * Generated from protobuf field bytes audit_log = 1; + * @return string + */ + public function getAuditLog() + { + return $this->audit_log; + } + + /** + * Serialized audit log. + * + * Generated from protobuf field bytes audit_log = 1; + * @param string $var + * @return $this + */ + public function setAuditLog($var) + { + GPBUtil::checkString($var, False); + $this->audit_log = $var; + + return $this; + } + + /** + * An API request message that is scrubbed based on the method annotation. + * This field should only be filled if audit_log field is present. + * Service Control will use this to assemble a complete log for Cloud Audit + * Logs and Google internal audit logs. + * + * Generated from protobuf field .google.protobuf.Struct scrubbed_request = 2; + * @return \Google\Protobuf\Struct|null + */ + public function getScrubbedRequest() + { + return $this->scrubbed_request; + } + + public function hasScrubbedRequest() + { + return isset($this->scrubbed_request); + } + + public function clearScrubbedRequest() + { + unset($this->scrubbed_request); + } + + /** + * An API request message that is scrubbed based on the method annotation. + * This field should only be filled if audit_log field is present. + * Service Control will use this to assemble a complete log for Cloud Audit + * Logs and Google internal audit logs. + * + * Generated from protobuf field .google.protobuf.Struct scrubbed_request = 2; + * @param \Google\Protobuf\Struct $var + * @return $this + */ + public function setScrubbedRequest($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Struct::class); + $this->scrubbed_request = $var; + + return $this; + } + + /** + * An API response message that is scrubbed based on the method annotation. + * This field should only be filled if audit_log field is present. + * Service Control will use this to assemble a complete log for Cloud Audit + * Logs and Google internal audit logs. + * + * Generated from protobuf field .google.protobuf.Struct scrubbed_response = 3; + * @return \Google\Protobuf\Struct|null + */ + public function getScrubbedResponse() + { + return $this->scrubbed_response; + } + + public function hasScrubbedResponse() + { + return isset($this->scrubbed_response); + } + + public function clearScrubbedResponse() + { + unset($this->scrubbed_response); + } + + /** + * An API response message that is scrubbed based on the method annotation. + * This field should only be filled if audit_log field is present. + * Service Control will use this to assemble a complete log for Cloud Audit + * Logs and Google internal audit logs. + * + * Generated from protobuf field .google.protobuf.Struct scrubbed_response = 3; + * @param \Google\Protobuf\Struct $var + * @return $this + */ + public function setScrubbedResponse($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Struct::class); + $this->scrubbed_response = $var; + + return $this; + } + + /** + * Number of scrubbed response items. + * + * Generated from protobuf field int32 scrubbed_response_item_count = 4; + * @return int + */ + public function getScrubbedResponseItemCount() + { + return $this->scrubbed_response_item_count; + } + + /** + * Number of scrubbed response items. + * + * Generated from protobuf field int32 scrubbed_response_item_count = 4; + * @param int $var + * @return $this + */ + public function setScrubbedResponseItemCount($var) + { + GPBUtil::checkInt32($var); + $this->scrubbed_response_item_count = $var; + + return $this; + } + + /** + * Audit resource name which is scrubbed. + * + * Generated from protobuf field string target_resource = 5; + * @return string + */ + public function getTargetResource() + { + return $this->target_resource; + } + + /** + * Audit resource name which is scrubbed. + * + * Generated from protobuf field string target_resource = 5; + * @param string $var + * @return $this + */ + public function setTargetResource($var) + { + GPBUtil::checkString($var, True); + $this->target_resource = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/DebugInfo.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/DebugInfo.php new file mode 100644 index 000000000000..1474948034c0 --- /dev/null +++ b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/DebugInfo.php @@ -0,0 +1,101 @@ +google.rpc.DebugInfo + */ +class DebugInfo extends \Google\Protobuf\Internal\Message +{ + /** + * The stack trace entries indicating where the error occurred. + * + * Generated from protobuf field repeated string stack_entries = 1; + */ + private $stack_entries; + /** + * Additional debugging information provided by the server. + * + * Generated from protobuf field string detail = 2; + */ + protected $detail = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string[] $stack_entries + * The stack trace entries indicating where the error occurred. + * @type string $detail + * Additional debugging information provided by the server. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Rpc\ErrorDetails::initOnce(); + parent::__construct($data); + } + + /** + * The stack trace entries indicating where the error occurred. + * + * Generated from protobuf field repeated string stack_entries = 1; + * @return RepeatedField + */ + public function getStackEntries() + { + return $this->stack_entries; + } + + /** + * The stack trace entries indicating where the error occurred. + * + * Generated from protobuf field repeated string stack_entries = 1; + * @param string[] $var + * @return $this + */ + public function setStackEntries($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->stack_entries = $arr; + + return $this; + } + + /** + * Additional debugging information provided by the server. + * + * Generated from protobuf field string detail = 2; + * @return string + */ + public function getDetail() + { + return $this->detail; + } + + /** + * Additional debugging information provided by the server. + * + * Generated from protobuf field string detail = 2; + * @param string $var + * @return $this + */ + public function setDetail($var) + { + GPBUtil::checkString($var, True); + $this->detail = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/ErrorInfo.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/ErrorInfo.php new file mode 100644 index 000000000000..158c0be7387d --- /dev/null +++ b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/ErrorInfo.php @@ -0,0 +1,217 @@ +google.rpc.ErrorInfo + */ +class ErrorInfo extends \Google\Protobuf\Internal\Message +{ + /** + * The reason of the error. This is a constant value that identifies the + * proximate cause of the error. Error reasons are unique within a particular + * domain of errors. This should be at most 63 characters and match a + * regular expression of `[A-Z][A-Z0-9_]+[A-Z0-9]`, which represents + * UPPER_SNAKE_CASE. + * + * Generated from protobuf field string reason = 1; + */ + protected $reason = ''; + /** + * The logical grouping to which the "reason" belongs. The error domain + * is typically the registered service name of the tool or product that + * generates the error. Example: "pubsub.googleapis.com". If the error is + * generated by some common infrastructure, the error domain must be a + * globally unique value that identifies the infrastructure. For Google API + * infrastructure, the error domain is "googleapis.com". + * + * Generated from protobuf field string domain = 2; + */ + protected $domain = ''; + /** + * Additional structured details about this error. + * Keys must match a regular expression of `[a-z][a-zA-Z0-9-_]+` but should + * ideally be lowerCamelCase. Also, they must be limited to 64 characters in + * length. When identifying the current value of an exceeded limit, the units + * should be contained in the key, not the value. For example, rather than + * `{"instanceLimit": "100/request"}`, should be returned as, + * `{"instanceLimitPerRequest": "100"}`, if the client exceeds the number of + * instances that can be created in a single (batch) request. + * + * Generated from protobuf field map metadata = 3; + */ + private $metadata; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $reason + * The reason of the error. This is a constant value that identifies the + * proximate cause of the error. Error reasons are unique within a particular + * domain of errors. This should be at most 63 characters and match a + * regular expression of `[A-Z][A-Z0-9_]+[A-Z0-9]`, which represents + * UPPER_SNAKE_CASE. + * @type string $domain + * The logical grouping to which the "reason" belongs. The error domain + * is typically the registered service name of the tool or product that + * generates the error. Example: "pubsub.googleapis.com". If the error is + * generated by some common infrastructure, the error domain must be a + * globally unique value that identifies the infrastructure. For Google API + * infrastructure, the error domain is "googleapis.com". + * @type array|\Google\Protobuf\Internal\MapField $metadata + * Additional structured details about this error. + * Keys must match a regular expression of `[a-z][a-zA-Z0-9-_]+` but should + * ideally be lowerCamelCase. Also, they must be limited to 64 characters in + * length. When identifying the current value of an exceeded limit, the units + * should be contained in the key, not the value. For example, rather than + * `{"instanceLimit": "100/request"}`, should be returned as, + * `{"instanceLimitPerRequest": "100"}`, if the client exceeds the number of + * instances that can be created in a single (batch) request. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Rpc\ErrorDetails::initOnce(); + parent::__construct($data); + } + + /** + * The reason of the error. This is a constant value that identifies the + * proximate cause of the error. Error reasons are unique within a particular + * domain of errors. This should be at most 63 characters and match a + * regular expression of `[A-Z][A-Z0-9_]+[A-Z0-9]`, which represents + * UPPER_SNAKE_CASE. + * + * Generated from protobuf field string reason = 1; + * @return string + */ + public function getReason() + { + return $this->reason; + } + + /** + * The reason of the error. This is a constant value that identifies the + * proximate cause of the error. Error reasons are unique within a particular + * domain of errors. This should be at most 63 characters and match a + * regular expression of `[A-Z][A-Z0-9_]+[A-Z0-9]`, which represents + * UPPER_SNAKE_CASE. + * + * Generated from protobuf field string reason = 1; + * @param string $var + * @return $this + */ + public function setReason($var) + { + GPBUtil::checkString($var, True); + $this->reason = $var; + + return $this; + } + + /** + * The logical grouping to which the "reason" belongs. The error domain + * is typically the registered service name of the tool or product that + * generates the error. Example: "pubsub.googleapis.com". If the error is + * generated by some common infrastructure, the error domain must be a + * globally unique value that identifies the infrastructure. For Google API + * infrastructure, the error domain is "googleapis.com". + * + * Generated from protobuf field string domain = 2; + * @return string + */ + public function getDomain() + { + return $this->domain; + } + + /** + * The logical grouping to which the "reason" belongs. The error domain + * is typically the registered service name of the tool or product that + * generates the error. Example: "pubsub.googleapis.com". If the error is + * generated by some common infrastructure, the error domain must be a + * globally unique value that identifies the infrastructure. For Google API + * infrastructure, the error domain is "googleapis.com". + * + * Generated from protobuf field string domain = 2; + * @param string $var + * @return $this + */ + public function setDomain($var) + { + GPBUtil::checkString($var, True); + $this->domain = $var; + + return $this; + } + + /** + * Additional structured details about this error. + * Keys must match a regular expression of `[a-z][a-zA-Z0-9-_]+` but should + * ideally be lowerCamelCase. Also, they must be limited to 64 characters in + * length. When identifying the current value of an exceeded limit, the units + * should be contained in the key, not the value. For example, rather than + * `{"instanceLimit": "100/request"}`, should be returned as, + * `{"instanceLimitPerRequest": "100"}`, if the client exceeds the number of + * instances that can be created in a single (batch) request. + * + * Generated from protobuf field map metadata = 3; + * @return \Google\Protobuf\Internal\MapField + */ + public function getMetadata() + { + return $this->metadata; + } + + /** + * Additional structured details about this error. + * Keys must match a regular expression of `[a-z][a-zA-Z0-9-_]+` but should + * ideally be lowerCamelCase. Also, they must be limited to 64 characters in + * length. When identifying the current value of an exceeded limit, the units + * should be contained in the key, not the value. For example, rather than + * `{"instanceLimit": "100/request"}`, should be returned as, + * `{"instanceLimitPerRequest": "100"}`, if the client exceeds the number of + * instances that can be created in a single (batch) request. + * + * Generated from protobuf field map metadata = 3; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setMetadata($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->metadata = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Help.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Help.php new file mode 100644 index 000000000000..35ea516f8e15 --- /dev/null +++ b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Help.php @@ -0,0 +1,70 @@ +google.rpc.Help + */ +class Help extends \Google\Protobuf\Internal\Message +{ + /** + * URL(s) pointing to additional information on handling the current error. + * + * Generated from protobuf field repeated .google.rpc.Help.Link links = 1; + */ + private $links; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Rpc\Help\Link[] $links + * URL(s) pointing to additional information on handling the current error. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Rpc\ErrorDetails::initOnce(); + parent::__construct($data); + } + + /** + * URL(s) pointing to additional information on handling the current error. + * + * Generated from protobuf field repeated .google.rpc.Help.Link links = 1; + * @return RepeatedField<\Google\Rpc\Help\Link> + */ + public function getLinks() + { + return $this->links; + } + + /** + * URL(s) pointing to additional information on handling the current error. + * + * Generated from protobuf field repeated .google.rpc.Help.Link links = 1; + * @param \Google\Rpc\Help\Link[] $var + * @return $this + */ + public function setLinks($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Rpc\Help\Link::class); + $this->links = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Help/Link.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Help/Link.php new file mode 100644 index 000000000000..fcfe169359da --- /dev/null +++ b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Help/Link.php @@ -0,0 +1,101 @@ +google.rpc.Help.Link + */ +class Link extends \Google\Protobuf\Internal\Message +{ + /** + * Describes what the link offers. + * + * Generated from protobuf field string description = 1; + */ + protected $description = ''; + /** + * The URL of the link. + * + * Generated from protobuf field string url = 2; + */ + protected $url = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $description + * Describes what the link offers. + * @type string $url + * The URL of the link. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Rpc\ErrorDetails::initOnce(); + parent::__construct($data); + } + + /** + * Describes what the link offers. + * + * Generated from protobuf field string description = 1; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Describes what the link offers. + * + * Generated from protobuf field string description = 1; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * The URL of the link. + * + * Generated from protobuf field string url = 2; + * @return string + */ + public function getUrl() + { + return $this->url; + } + + /** + * The URL of the link. + * + * Generated from protobuf field string url = 2; + * @param string $var + * @return $this + */ + public function setUrl($var) + { + GPBUtil::checkString($var, True); + $this->url = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/LocalizedMessage.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/LocalizedMessage.php new file mode 100644 index 000000000000..37fc07f3de28 --- /dev/null +++ b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/LocalizedMessage.php @@ -0,0 +1,110 @@ +google.rpc.LocalizedMessage + */ +class LocalizedMessage extends \Google\Protobuf\Internal\Message +{ + /** + * The locale used following the specification defined at + * https://www.rfc-editor.org/rfc/bcp/bcp47.txt. + * Examples are: "en-US", "fr-CH", "es-MX" + * + * Generated from protobuf field string locale = 1; + */ + protected $locale = ''; + /** + * The localized error message in the above locale. + * + * Generated from protobuf field string message = 2; + */ + protected $message = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $locale + * The locale used following the specification defined at + * https://www.rfc-editor.org/rfc/bcp/bcp47.txt. + * Examples are: "en-US", "fr-CH", "es-MX" + * @type string $message + * The localized error message in the above locale. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Rpc\ErrorDetails::initOnce(); + parent::__construct($data); + } + + /** + * The locale used following the specification defined at + * https://www.rfc-editor.org/rfc/bcp/bcp47.txt. + * Examples are: "en-US", "fr-CH", "es-MX" + * + * Generated from protobuf field string locale = 1; + * @return string + */ + public function getLocale() + { + return $this->locale; + } + + /** + * The locale used following the specification defined at + * https://www.rfc-editor.org/rfc/bcp/bcp47.txt. + * Examples are: "en-US", "fr-CH", "es-MX" + * + * Generated from protobuf field string locale = 1; + * @param string $var + * @return $this + */ + public function setLocale($var) + { + GPBUtil::checkString($var, True); + $this->locale = $var; + + return $this; + } + + /** + * The localized error message in the above locale. + * + * Generated from protobuf field string message = 2; + * @return string + */ + public function getMessage() + { + return $this->message; + } + + /** + * The localized error message in the above locale. + * + * Generated from protobuf field string message = 2; + * @param string $var + * @return $this + */ + public function setMessage($var) + { + GPBUtil::checkString($var, True); + $this->message = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/PreconditionFailure.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/PreconditionFailure.php new file mode 100644 index 000000000000..4ab7937f2645 --- /dev/null +++ b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/PreconditionFailure.php @@ -0,0 +1,70 @@ +google.rpc.PreconditionFailure + */ +class PreconditionFailure extends \Google\Protobuf\Internal\Message +{ + /** + * Describes all precondition violations. + * + * Generated from protobuf field repeated .google.rpc.PreconditionFailure.Violation violations = 1; + */ + private $violations; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Rpc\PreconditionFailure\Violation[] $violations + * Describes all precondition violations. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Rpc\ErrorDetails::initOnce(); + parent::__construct($data); + } + + /** + * Describes all precondition violations. + * + * Generated from protobuf field repeated .google.rpc.PreconditionFailure.Violation violations = 1; + * @return RepeatedField<\Google\Rpc\PreconditionFailure\Violation> + */ + public function getViolations() + { + return $this->violations; + } + + /** + * Describes all precondition violations. + * + * Generated from protobuf field repeated .google.rpc.PreconditionFailure.Violation violations = 1; + * @param \Google\Rpc\PreconditionFailure\Violation[] $var + * @return $this + */ + public function setViolations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Rpc\PreconditionFailure\Violation::class); + $this->violations = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/PreconditionFailure/Violation.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/PreconditionFailure/Violation.php new file mode 100644 index 000000000000..85aa5b103fca --- /dev/null +++ b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/PreconditionFailure/Violation.php @@ -0,0 +1,159 @@ +google.rpc.PreconditionFailure.Violation + */ +class Violation extends \Google\Protobuf\Internal\Message +{ + /** + * The type of PreconditionFailure. We recommend using a service-specific + * enum type to define the supported precondition violation subjects. For + * example, "TOS" for "Terms of Service violation". + * + * Generated from protobuf field string type = 1; + */ + protected $type = ''; + /** + * The subject, relative to the type, that failed. + * For example, "google.com/cloud" relative to the "TOS" type would indicate + * which terms of service is being referenced. + * + * Generated from protobuf field string subject = 2; + */ + protected $subject = ''; + /** + * A description of how the precondition failed. Developers can use this + * description to understand how to fix the failure. + * For example: "Terms of service not accepted". + * + * Generated from protobuf field string description = 3; + */ + protected $description = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $type + * The type of PreconditionFailure. We recommend using a service-specific + * enum type to define the supported precondition violation subjects. For + * example, "TOS" for "Terms of Service violation". + * @type string $subject + * The subject, relative to the type, that failed. + * For example, "google.com/cloud" relative to the "TOS" type would indicate + * which terms of service is being referenced. + * @type string $description + * A description of how the precondition failed. Developers can use this + * description to understand how to fix the failure. + * For example: "Terms of service not accepted". + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Rpc\ErrorDetails::initOnce(); + parent::__construct($data); + } + + /** + * The type of PreconditionFailure. We recommend using a service-specific + * enum type to define the supported precondition violation subjects. For + * example, "TOS" for "Terms of Service violation". + * + * Generated from protobuf field string type = 1; + * @return string + */ + public function getType() + { + return $this->type; + } + + /** + * The type of PreconditionFailure. We recommend using a service-specific + * enum type to define the supported precondition violation subjects. For + * example, "TOS" for "Terms of Service violation". + * + * Generated from protobuf field string type = 1; + * @param string $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkString($var, True); + $this->type = $var; + + return $this; + } + + /** + * The subject, relative to the type, that failed. + * For example, "google.com/cloud" relative to the "TOS" type would indicate + * which terms of service is being referenced. + * + * Generated from protobuf field string subject = 2; + * @return string + */ + public function getSubject() + { + return $this->subject; + } + + /** + * The subject, relative to the type, that failed. + * For example, "google.com/cloud" relative to the "TOS" type would indicate + * which terms of service is being referenced. + * + * Generated from protobuf field string subject = 2; + * @param string $var + * @return $this + */ + public function setSubject($var) + { + GPBUtil::checkString($var, True); + $this->subject = $var; + + return $this; + } + + /** + * A description of how the precondition failed. Developers can use this + * description to understand how to fix the failure. + * For example: "Terms of service not accepted". + * + * Generated from protobuf field string description = 3; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * A description of how the precondition failed. Developers can use this + * description to understand how to fix the failure. + * For example: "Terms of service not accepted". + * + * Generated from protobuf field string description = 3; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/QuotaFailure.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/QuotaFailure.php new file mode 100644 index 000000000000..92b235c711a2 --- /dev/null +++ b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/QuotaFailure.php @@ -0,0 +1,75 @@ +google.rpc.QuotaFailure + */ +class QuotaFailure extends \Google\Protobuf\Internal\Message +{ + /** + * Describes all quota violations. + * + * Generated from protobuf field repeated .google.rpc.QuotaFailure.Violation violations = 1; + */ + private $violations; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Rpc\QuotaFailure\Violation[] $violations + * Describes all quota violations. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Rpc\ErrorDetails::initOnce(); + parent::__construct($data); + } + + /** + * Describes all quota violations. + * + * Generated from protobuf field repeated .google.rpc.QuotaFailure.Violation violations = 1; + * @return RepeatedField<\Google\Rpc\QuotaFailure\Violation> + */ + public function getViolations() + { + return $this->violations; + } + + /** + * Describes all quota violations. + * + * Generated from protobuf field repeated .google.rpc.QuotaFailure.Violation violations = 1; + * @param \Google\Rpc\QuotaFailure\Violation[] $var + * @return $this + */ + public function setViolations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Rpc\QuotaFailure\Violation::class); + $this->violations = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/QuotaFailure/Violation.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/QuotaFailure/Violation.php new file mode 100644 index 000000000000..e4a1a705c92f --- /dev/null +++ b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/QuotaFailure/Violation.php @@ -0,0 +1,500 @@ +google.rpc.QuotaFailure.Violation + */ +class Violation extends \Google\Protobuf\Internal\Message +{ + /** + * The subject on which the quota check failed. + * For example, "clientip:" or "project:". + * + * Generated from protobuf field string subject = 1; + */ + protected $subject = ''; + /** + * A description of how the quota check failed. Clients can use this + * description to find more about the quota configuration in the service's + * public documentation, or find the relevant quota limit to adjust through + * developer console. + * For example: "Service disabled" or "Daily Limit for read operations + * exceeded". + * + * Generated from protobuf field string description = 2; + */ + protected $description = ''; + /** + * The API Service from which the `QuotaFailure.Violation` orginates. In + * some cases, Quota issues originate from an API Service other than the one + * that was called. In other words, a dependency of the called API Service + * could be the cause of the `QuotaFailure`, and this field would have the + * dependency API service name. + * For example, if the called API is Kubernetes Engine API + * (container.googleapis.com), and a quota violation occurs in the + * Kubernetes Engine API itself, this field would be + * "container.googleapis.com". On the other hand, if the quota violation + * occurs when the Kubernetes Engine API creates VMs in the Compute Engine + * API (compute.googleapis.com), this field would be + * "compute.googleapis.com". + * + * Generated from protobuf field string api_service = 3; + */ + protected $api_service = ''; + /** + * The metric of the violated quota. A quota metric is a named counter to + * measure usage, such as API requests or CPUs. When an activity occurs in a + * service, such as Virtual Machine allocation, one or more quota metrics + * may be affected. + * For example, "compute.googleapis.com/cpus_per_vm_family", + * "storage.googleapis.com/internet_egress_bandwidth". + * + * Generated from protobuf field string quota_metric = 4; + */ + protected $quota_metric = ''; + /** + * The id of the violated quota. Also know as "limit name", this is the + * unique identifier of a quota in the context of an API service. + * For example, "CPUS-PER-VM-FAMILY-per-project-region". + * + * Generated from protobuf field string quota_id = 5; + */ + protected $quota_id = ''; + /** + * The dimensions of the violated quota. Every non-global quota is enforced + * on a set of dimensions. While quota metric defines what to count, the + * dimensions specify for what aspects the counter should be increased. + * For example, the quota "CPUs per region per VM family" enforces a limit + * on the metric "compute.googleapis.com/cpus_per_vm_family" on dimensions + * "region" and "vm_family". And if the violation occurred in region + * "us-central1" and for VM family "n1", the quota_dimensions would be, + * { + * "region": "us-central1", + * "vm_family": "n1", + * } + * When a quota is enforced globally, the quota_dimensions would always be + * empty. + * + * Generated from protobuf field map quota_dimensions = 6; + */ + private $quota_dimensions; + /** + * The enforced quota value at the time of the `QuotaFailure`. + * For example, if the enforced quota value at the time of the + * `QuotaFailure` on the number of CPUs is "10", then the value of this + * field would reflect this quantity. + * + * Generated from protobuf field int64 quota_value = 7; + */ + protected $quota_value = 0; + /** + * The new quota value being rolled out at the time of the violation. At the + * completion of the rollout, this value will be enforced in place of + * quota_value. If no rollout is in progress at the time of the violation, + * this field is not set. + * For example, if at the time of the violation a rollout is in progress + * changing the number of CPUs quota from 10 to 20, 20 would be the value of + * this field. + * + * Generated from protobuf field optional int64 future_quota_value = 8; + */ + protected $future_quota_value = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $subject + * The subject on which the quota check failed. + * For example, "clientip:" or "project:". + * @type string $description + * A description of how the quota check failed. Clients can use this + * description to find more about the quota configuration in the service's + * public documentation, or find the relevant quota limit to adjust through + * developer console. + * For example: "Service disabled" or "Daily Limit for read operations + * exceeded". + * @type string $api_service + * The API Service from which the `QuotaFailure.Violation` orginates. In + * some cases, Quota issues originate from an API Service other than the one + * that was called. In other words, a dependency of the called API Service + * could be the cause of the `QuotaFailure`, and this field would have the + * dependency API service name. + * For example, if the called API is Kubernetes Engine API + * (container.googleapis.com), and a quota violation occurs in the + * Kubernetes Engine API itself, this field would be + * "container.googleapis.com". On the other hand, if the quota violation + * occurs when the Kubernetes Engine API creates VMs in the Compute Engine + * API (compute.googleapis.com), this field would be + * "compute.googleapis.com". + * @type string $quota_metric + * The metric of the violated quota. A quota metric is a named counter to + * measure usage, such as API requests or CPUs. When an activity occurs in a + * service, such as Virtual Machine allocation, one or more quota metrics + * may be affected. + * For example, "compute.googleapis.com/cpus_per_vm_family", + * "storage.googleapis.com/internet_egress_bandwidth". + * @type string $quota_id + * The id of the violated quota. Also know as "limit name", this is the + * unique identifier of a quota in the context of an API service. + * For example, "CPUS-PER-VM-FAMILY-per-project-region". + * @type array|\Google\Protobuf\Internal\MapField $quota_dimensions + * The dimensions of the violated quota. Every non-global quota is enforced + * on a set of dimensions. While quota metric defines what to count, the + * dimensions specify for what aspects the counter should be increased. + * For example, the quota "CPUs per region per VM family" enforces a limit + * on the metric "compute.googleapis.com/cpus_per_vm_family" on dimensions + * "region" and "vm_family". And if the violation occurred in region + * "us-central1" and for VM family "n1", the quota_dimensions would be, + * { + * "region": "us-central1", + * "vm_family": "n1", + * } + * When a quota is enforced globally, the quota_dimensions would always be + * empty. + * @type int|string $quota_value + * The enforced quota value at the time of the `QuotaFailure`. + * For example, if the enforced quota value at the time of the + * `QuotaFailure` on the number of CPUs is "10", then the value of this + * field would reflect this quantity. + * @type int|string $future_quota_value + * The new quota value being rolled out at the time of the violation. At the + * completion of the rollout, this value will be enforced in place of + * quota_value. If no rollout is in progress at the time of the violation, + * this field is not set. + * For example, if at the time of the violation a rollout is in progress + * changing the number of CPUs quota from 10 to 20, 20 would be the value of + * this field. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Rpc\ErrorDetails::initOnce(); + parent::__construct($data); + } + + /** + * The subject on which the quota check failed. + * For example, "clientip:" or "project:". + * + * Generated from protobuf field string subject = 1; + * @return string + */ + public function getSubject() + { + return $this->subject; + } + + /** + * The subject on which the quota check failed. + * For example, "clientip:" or "project:". + * + * Generated from protobuf field string subject = 1; + * @param string $var + * @return $this + */ + public function setSubject($var) + { + GPBUtil::checkString($var, True); + $this->subject = $var; + + return $this; + } + + /** + * A description of how the quota check failed. Clients can use this + * description to find more about the quota configuration in the service's + * public documentation, or find the relevant quota limit to adjust through + * developer console. + * For example: "Service disabled" or "Daily Limit for read operations + * exceeded". + * + * Generated from protobuf field string description = 2; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * A description of how the quota check failed. Clients can use this + * description to find more about the quota configuration in the service's + * public documentation, or find the relevant quota limit to adjust through + * developer console. + * For example: "Service disabled" or "Daily Limit for read operations + * exceeded". + * + * Generated from protobuf field string description = 2; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * The API Service from which the `QuotaFailure.Violation` orginates. In + * some cases, Quota issues originate from an API Service other than the one + * that was called. In other words, a dependency of the called API Service + * could be the cause of the `QuotaFailure`, and this field would have the + * dependency API service name. + * For example, if the called API is Kubernetes Engine API + * (container.googleapis.com), and a quota violation occurs in the + * Kubernetes Engine API itself, this field would be + * "container.googleapis.com". On the other hand, if the quota violation + * occurs when the Kubernetes Engine API creates VMs in the Compute Engine + * API (compute.googleapis.com), this field would be + * "compute.googleapis.com". + * + * Generated from protobuf field string api_service = 3; + * @return string + */ + public function getApiService() + { + return $this->api_service; + } + + /** + * The API Service from which the `QuotaFailure.Violation` orginates. In + * some cases, Quota issues originate from an API Service other than the one + * that was called. In other words, a dependency of the called API Service + * could be the cause of the `QuotaFailure`, and this field would have the + * dependency API service name. + * For example, if the called API is Kubernetes Engine API + * (container.googleapis.com), and a quota violation occurs in the + * Kubernetes Engine API itself, this field would be + * "container.googleapis.com". On the other hand, if the quota violation + * occurs when the Kubernetes Engine API creates VMs in the Compute Engine + * API (compute.googleapis.com), this field would be + * "compute.googleapis.com". + * + * Generated from protobuf field string api_service = 3; + * @param string $var + * @return $this + */ + public function setApiService($var) + { + GPBUtil::checkString($var, True); + $this->api_service = $var; + + return $this; + } + + /** + * The metric of the violated quota. A quota metric is a named counter to + * measure usage, such as API requests or CPUs. When an activity occurs in a + * service, such as Virtual Machine allocation, one or more quota metrics + * may be affected. + * For example, "compute.googleapis.com/cpus_per_vm_family", + * "storage.googleapis.com/internet_egress_bandwidth". + * + * Generated from protobuf field string quota_metric = 4; + * @return string + */ + public function getQuotaMetric() + { + return $this->quota_metric; + } + + /** + * The metric of the violated quota. A quota metric is a named counter to + * measure usage, such as API requests or CPUs. When an activity occurs in a + * service, such as Virtual Machine allocation, one or more quota metrics + * may be affected. + * For example, "compute.googleapis.com/cpus_per_vm_family", + * "storage.googleapis.com/internet_egress_bandwidth". + * + * Generated from protobuf field string quota_metric = 4; + * @param string $var + * @return $this + */ + public function setQuotaMetric($var) + { + GPBUtil::checkString($var, True); + $this->quota_metric = $var; + + return $this; + } + + /** + * The id of the violated quota. Also know as "limit name", this is the + * unique identifier of a quota in the context of an API service. + * For example, "CPUS-PER-VM-FAMILY-per-project-region". + * + * Generated from protobuf field string quota_id = 5; + * @return string + */ + public function getQuotaId() + { + return $this->quota_id; + } + + /** + * The id of the violated quota. Also know as "limit name", this is the + * unique identifier of a quota in the context of an API service. + * For example, "CPUS-PER-VM-FAMILY-per-project-region". + * + * Generated from protobuf field string quota_id = 5; + * @param string $var + * @return $this + */ + public function setQuotaId($var) + { + GPBUtil::checkString($var, True); + $this->quota_id = $var; + + return $this; + } + + /** + * The dimensions of the violated quota. Every non-global quota is enforced + * on a set of dimensions. While quota metric defines what to count, the + * dimensions specify for what aspects the counter should be increased. + * For example, the quota "CPUs per region per VM family" enforces a limit + * on the metric "compute.googleapis.com/cpus_per_vm_family" on dimensions + * "region" and "vm_family". And if the violation occurred in region + * "us-central1" and for VM family "n1", the quota_dimensions would be, + * { + * "region": "us-central1", + * "vm_family": "n1", + * } + * When a quota is enforced globally, the quota_dimensions would always be + * empty. + * + * Generated from protobuf field map quota_dimensions = 6; + * @return \Google\Protobuf\Internal\MapField + */ + public function getQuotaDimensions() + { + return $this->quota_dimensions; + } + + /** + * The dimensions of the violated quota. Every non-global quota is enforced + * on a set of dimensions. While quota metric defines what to count, the + * dimensions specify for what aspects the counter should be increased. + * For example, the quota "CPUs per region per VM family" enforces a limit + * on the metric "compute.googleapis.com/cpus_per_vm_family" on dimensions + * "region" and "vm_family". And if the violation occurred in region + * "us-central1" and for VM family "n1", the quota_dimensions would be, + * { + * "region": "us-central1", + * "vm_family": "n1", + * } + * When a quota is enforced globally, the quota_dimensions would always be + * empty. + * + * Generated from protobuf field map quota_dimensions = 6; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setQuotaDimensions($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->quota_dimensions = $arr; + + return $this; + } + + /** + * The enforced quota value at the time of the `QuotaFailure`. + * For example, if the enforced quota value at the time of the + * `QuotaFailure` on the number of CPUs is "10", then the value of this + * field would reflect this quantity. + * + * Generated from protobuf field int64 quota_value = 7; + * @return int|string + */ + public function getQuotaValue() + { + return $this->quota_value; + } + + /** + * The enforced quota value at the time of the `QuotaFailure`. + * For example, if the enforced quota value at the time of the + * `QuotaFailure` on the number of CPUs is "10", then the value of this + * field would reflect this quantity. + * + * Generated from protobuf field int64 quota_value = 7; + * @param int|string $var + * @return $this + */ + public function setQuotaValue($var) + { + GPBUtil::checkInt64($var); + $this->quota_value = $var; + + return $this; + } + + /** + * The new quota value being rolled out at the time of the violation. At the + * completion of the rollout, this value will be enforced in place of + * quota_value. If no rollout is in progress at the time of the violation, + * this field is not set. + * For example, if at the time of the violation a rollout is in progress + * changing the number of CPUs quota from 10 to 20, 20 would be the value of + * this field. + * + * Generated from protobuf field optional int64 future_quota_value = 8; + * @return int|string + */ + public function getFutureQuotaValue() + { + return isset($this->future_quota_value) ? $this->future_quota_value : 0; + } + + public function hasFutureQuotaValue() + { + return isset($this->future_quota_value); + } + + public function clearFutureQuotaValue() + { + unset($this->future_quota_value); + } + + /** + * The new quota value being rolled out at the time of the violation. At the + * completion of the rollout, this value will be enforced in place of + * quota_value. If no rollout is in progress at the time of the violation, + * this field is not set. + * For example, if at the time of the violation a rollout is in progress + * changing the number of CPUs quota from 10 to 20, 20 would be the value of + * this field. + * + * Generated from protobuf field optional int64 future_quota_value = 8; + * @param int|string $var + * @return $this + */ + public function setFutureQuotaValue($var) + { + GPBUtil::checkInt64($var); + $this->future_quota_value = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/RequestInfo.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/RequestInfo.php new file mode 100644 index 000000000000..04952a12129f --- /dev/null +++ b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/RequestInfo.php @@ -0,0 +1,110 @@ +google.rpc.RequestInfo + */ +class RequestInfo extends \Google\Protobuf\Internal\Message +{ + /** + * An opaque string that should only be interpreted by the service generating + * it. For example, it can be used to identify requests in the service's logs. + * + * Generated from protobuf field string request_id = 1; + */ + protected $request_id = ''; + /** + * Any data that was used to serve this request. For example, an encrypted + * stack trace that can be sent back to the service provider for debugging. + * + * Generated from protobuf field string serving_data = 2; + */ + protected $serving_data = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $request_id + * An opaque string that should only be interpreted by the service generating + * it. For example, it can be used to identify requests in the service's logs. + * @type string $serving_data + * Any data that was used to serve this request. For example, an encrypted + * stack trace that can be sent back to the service provider for debugging. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Rpc\ErrorDetails::initOnce(); + parent::__construct($data); + } + + /** + * An opaque string that should only be interpreted by the service generating + * it. For example, it can be used to identify requests in the service's logs. + * + * Generated from protobuf field string request_id = 1; + * @return string + */ + public function getRequestId() + { + return $this->request_id; + } + + /** + * An opaque string that should only be interpreted by the service generating + * it. For example, it can be used to identify requests in the service's logs. + * + * Generated from protobuf field string request_id = 1; + * @param string $var + * @return $this + */ + public function setRequestId($var) + { + GPBUtil::checkString($var, True); + $this->request_id = $var; + + return $this; + } + + /** + * Any data that was used to serve this request. For example, an encrypted + * stack trace that can be sent back to the service provider for debugging. + * + * Generated from protobuf field string serving_data = 2; + * @return string + */ + public function getServingData() + { + return $this->serving_data; + } + + /** + * Any data that was used to serve this request. For example, an encrypted + * stack trace that can be sent back to the service provider for debugging. + * + * Generated from protobuf field string serving_data = 2; + * @param string $var + * @return $this + */ + public function setServingData($var) + { + GPBUtil::checkString($var, True); + $this->serving_data = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/ResourceInfo.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/ResourceInfo.php new file mode 100644 index 000000000000..223b5cd01471 --- /dev/null +++ b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/ResourceInfo.php @@ -0,0 +1,205 @@ +google.rpc.ResourceInfo + */ +class ResourceInfo extends \Google\Protobuf\Internal\Message +{ + /** + * A name for the type of resource being accessed, e.g. "sql table", + * "cloud storage bucket", "file", "Google calendar"; or the type URL + * of the resource: e.g. "type.googleapis.com/google.pubsub.v1.Topic". + * + * Generated from protobuf field string resource_type = 1; + */ + protected $resource_type = ''; + /** + * The name of the resource being accessed. For example, a shared calendar + * name: "example.com_4fghdhgsrgh\@group.calendar.google.com", if the current + * error is + * [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED]. + * + * Generated from protobuf field string resource_name = 2; + */ + protected $resource_name = ''; + /** + * The owner of the resource (optional). + * For example, "user:" or "project:". + * + * Generated from protobuf field string owner = 3; + */ + protected $owner = ''; + /** + * Describes what error is encountered when accessing this resource. + * For example, updating a cloud project may require the `writer` permission + * on the developer console project. + * + * Generated from protobuf field string description = 4; + */ + protected $description = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $resource_type + * A name for the type of resource being accessed, e.g. "sql table", + * "cloud storage bucket", "file", "Google calendar"; or the type URL + * of the resource: e.g. "type.googleapis.com/google.pubsub.v1.Topic". + * @type string $resource_name + * The name of the resource being accessed. For example, a shared calendar + * name: "example.com_4fghdhgsrgh\@group.calendar.google.com", if the current + * error is + * [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED]. + * @type string $owner + * The owner of the resource (optional). + * For example, "user:" or "project:". + * @type string $description + * Describes what error is encountered when accessing this resource. + * For example, updating a cloud project may require the `writer` permission + * on the developer console project. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Rpc\ErrorDetails::initOnce(); + parent::__construct($data); + } + + /** + * A name for the type of resource being accessed, e.g. "sql table", + * "cloud storage bucket", "file", "Google calendar"; or the type URL + * of the resource: e.g. "type.googleapis.com/google.pubsub.v1.Topic". + * + * Generated from protobuf field string resource_type = 1; + * @return string + */ + public function getResourceType() + { + return $this->resource_type; + } + + /** + * A name for the type of resource being accessed, e.g. "sql table", + * "cloud storage bucket", "file", "Google calendar"; or the type URL + * of the resource: e.g. "type.googleapis.com/google.pubsub.v1.Topic". + * + * Generated from protobuf field string resource_type = 1; + * @param string $var + * @return $this + */ + public function setResourceType($var) + { + GPBUtil::checkString($var, True); + $this->resource_type = $var; + + return $this; + } + + /** + * The name of the resource being accessed. For example, a shared calendar + * name: "example.com_4fghdhgsrgh\@group.calendar.google.com", if the current + * error is + * [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED]. + * + * Generated from protobuf field string resource_name = 2; + * @return string + */ + public function getResourceName() + { + return $this->resource_name; + } + + /** + * The name of the resource being accessed. For example, a shared calendar + * name: "example.com_4fghdhgsrgh\@group.calendar.google.com", if the current + * error is + * [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED]. + * + * Generated from protobuf field string resource_name = 2; + * @param string $var + * @return $this + */ + public function setResourceName($var) + { + GPBUtil::checkString($var, True); + $this->resource_name = $var; + + return $this; + } + + /** + * The owner of the resource (optional). + * For example, "user:" or "project:". + * + * Generated from protobuf field string owner = 3; + * @return string + */ + public function getOwner() + { + return $this->owner; + } + + /** + * The owner of the resource (optional). + * For example, "user:" or "project:". + * + * Generated from protobuf field string owner = 3; + * @param string $var + * @return $this + */ + public function setOwner($var) + { + GPBUtil::checkString($var, True); + $this->owner = $var; + + return $this; + } + + /** + * Describes what error is encountered when accessing this resource. + * For example, updating a cloud project may require the `writer` permission + * on the developer console project. + * + * Generated from protobuf field string description = 4; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Describes what error is encountered when accessing this resource. + * For example, updating a cloud project may require the `writer` permission + * on the developer console project. + * + * Generated from protobuf field string description = 4; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/RetryInfo.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/RetryInfo.php new file mode 100644 index 000000000000..b661f080aa61 --- /dev/null +++ b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/RetryInfo.php @@ -0,0 +1,87 @@ +google.rpc.RetryInfo + */ +class RetryInfo extends \Google\Protobuf\Internal\Message +{ + /** + * Clients should wait at least this long between retrying the same request. + * + * Generated from protobuf field .google.protobuf.Duration retry_delay = 1; + */ + protected $retry_delay = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\Duration $retry_delay + * Clients should wait at least this long between retrying the same request. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Rpc\ErrorDetails::initOnce(); + parent::__construct($data); + } + + /** + * Clients should wait at least this long between retrying the same request. + * + * Generated from protobuf field .google.protobuf.Duration retry_delay = 1; + * @return \Google\Protobuf\Duration|null + */ + public function getRetryDelay() + { + return $this->retry_delay; + } + + public function hasRetryDelay() + { + return isset($this->retry_delay); + } + + public function clearRetryDelay() + { + unset($this->retry_delay); + } + + /** + * Clients should wait at least this long between retrying the same request. + * + * Generated from protobuf field .google.protobuf.Duration retry_delay = 1; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setRetryDelay($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->retry_delay = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Status.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Status.php new file mode 100644 index 000000000000..73d4800c42ab --- /dev/null +++ b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Status.php @@ -0,0 +1,160 @@ +google.rpc.Status + */ +class Status extends \Google\Protobuf\Internal\Message +{ + /** + * The status code, which should be an enum value of + * [google.rpc.Code][google.rpc.Code]. + * + * Generated from protobuf field int32 code = 1; + */ + protected $code = 0; + /** + * A developer-facing error message, which should be in English. Any + * user-facing error message should be localized and sent in the + * [google.rpc.Status.details][google.rpc.Status.details] field, or localized + * by the client. + * + * Generated from protobuf field string message = 2; + */ + protected $message = ''; + /** + * A list of messages that carry the error details. There is a common set of + * message types for APIs to use. + * + * Generated from protobuf field repeated .google.protobuf.Any details = 3; + */ + private $details; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $code + * The status code, which should be an enum value of + * [google.rpc.Code][google.rpc.Code]. + * @type string $message + * A developer-facing error message, which should be in English. Any + * user-facing error message should be localized and sent in the + * [google.rpc.Status.details][google.rpc.Status.details] field, or localized + * by the client. + * @type \Google\Protobuf\Any[] $details + * A list of messages that carry the error details. There is a common set of + * message types for APIs to use. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Rpc\Status::initOnce(); + parent::__construct($data); + } + + /** + * The status code, which should be an enum value of + * [google.rpc.Code][google.rpc.Code]. + * + * Generated from protobuf field int32 code = 1; + * @return int + */ + public function getCode() + { + return $this->code; + } + + /** + * The status code, which should be an enum value of + * [google.rpc.Code][google.rpc.Code]. + * + * Generated from protobuf field int32 code = 1; + * @param int $var + * @return $this + */ + public function setCode($var) + { + GPBUtil::checkInt32($var); + $this->code = $var; + + return $this; + } + + /** + * A developer-facing error message, which should be in English. Any + * user-facing error message should be localized and sent in the + * [google.rpc.Status.details][google.rpc.Status.details] field, or localized + * by the client. + * + * Generated from protobuf field string message = 2; + * @return string + */ + public function getMessage() + { + return $this->message; + } + + /** + * A developer-facing error message, which should be in English. Any + * user-facing error message should be localized and sent in the + * [google.rpc.Status.details][google.rpc.Status.details] field, or localized + * by the client. + * + * Generated from protobuf field string message = 2; + * @param string $var + * @return $this + */ + public function setMessage($var) + { + GPBUtil::checkString($var, True); + $this->message = $var; + + return $this; + } + + /** + * A list of messages that carry the error details. There is a common set of + * message types for APIs to use. + * + * Generated from protobuf field repeated .google.protobuf.Any details = 3; + * @return RepeatedField<\Google\Protobuf\Any> + */ + public function getDetails() + { + return $this->details; + } + + /** + * A list of messages that carry the error details. There is a common set of + * message types for APIs to use. + * + * Generated from protobuf field repeated .google.protobuf.Any details = 3; + * @param \Google\Protobuf\Any[] $var + * @return $this + */ + public function setDetails($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Any::class); + $this->details = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/CalendarPeriod.php b/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/CalendarPeriod.php new file mode 100644 index 000000000000..ab089774437f --- /dev/null +++ b/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/CalendarPeriod.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\xB3\x02\x0A!google/type/calendar_period.proto\x12\x0Bgoogle.type*\x7F\x0A\x0ECalendarPeriod\x12\x1F\x0A\x1BCALENDAR_PERIOD_UNSPECIFIED\x10\x00\x12\x07\x0A\x03DAY\x10\x01\x12\x08\x0A\x04WEEK\x10\x02\x12\x0D\x0A\x09FORTNIGHT\x10\x03\x12\x09\x0A\x05MONTH\x10\x04\x12\x0B\x0A\x07QUARTER\x10\x05\x12\x08\x0A\x04HALF\x10\x06\x12\x08\x0A\x04YEAR\x10\x07Bx\x0A\x0Fcom.google.typeB\x13CalendarPeriodProtoP\x01ZHgoogle.golang.org/genproto/googleapis/type/calendarperiod;calendarperiod\xA2\x02\x03GTPb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Color.php b/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Color.php new file mode 100644 index 000000000000..939b31ee6872 --- /dev/null +++ b/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Color.php @@ -0,0 +1,25 @@ +internalAddGeneratedFile( + "\x0A\xEC\x01\x0A\x17google/type/color.proto\x12\x0Bgoogle.type\"]\x0A\x05Color\x12\x0B\x0A\x03red\x18\x01 \x01(\x02\x12\x0D\x0A\x05green\x18\x02 \x01(\x02\x12\x0C\x0A\x04blue\x18\x03 \x01(\x02\x12*\x0A\x05alpha\x18\x04 \x01(\x0B2\x1B.google.protobuf.FloatValueB]\x0A\x0Fcom.google.typeB\x0AColorProtoP\x01Z6google.golang.org/genproto/googleapis/type/color;color\xA2\x02\x03GTPb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Date.php b/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Date.php new file mode 100644 index 000000000000..9713a2270f37 --- /dev/null +++ b/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Date.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\xBB\x01\x0A\x16google/type/date.proto\x12\x0Bgoogle.type\"0\x0A\x04Date\x12\x0C\x0A\x04year\x18\x01 \x01(\x05\x12\x0D\x0A\x05month\x18\x02 \x01(\x05\x12\x0B\x0A\x03day\x18\x03 \x01(\x05BZ\x0A\x0Fcom.google.typeB\x09DateProtoP\x01Z4google.golang.org/genproto/googleapis/type/date;date\xA2\x02\x03GTPb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Datetime.php b/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Datetime.php new file mode 100644 index 000000000000..60c0063cbd1e --- /dev/null +++ b/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Datetime.php @@ -0,0 +1,25 @@ +internalAddGeneratedFile( + "\x0A\xA5\x03\x0A\x1Agoogle/type/datetime.proto\x12\x0Bgoogle.type\"\xE0\x01\x0A\x08DateTime\x12\x0C\x0A\x04year\x18\x01 \x01(\x05\x12\x0D\x0A\x05month\x18\x02 \x01(\x05\x12\x0B\x0A\x03day\x18\x03 \x01(\x05\x12\x0D\x0A\x05hours\x18\x04 \x01(\x05\x12\x0F\x0A\x07minutes\x18\x05 \x01(\x05\x12\x0F\x0A\x07seconds\x18\x06 \x01(\x05\x12\x0D\x0A\x05nanos\x18\x07 \x01(\x05\x12/\x0A\x0Autc_offset\x18\x08 \x01(\x0B2\x19.google.protobuf.DurationH\x00\x12*\x0A\x09time_zone\x18\x09 \x01(\x0B2\x15.google.type.TimeZoneH\x00B\x0D\x0A\x0Btime_offset\"'\x0A\x08TimeZone\x12\x0A\x0A\x02id\x18\x01 \x01(\x09\x12\x0F\x0A\x07version\x18\x02 \x01(\x09Bf\x0A\x0Fcom.google.typeB\x0DDateTimeProtoP\x01ZinternalAddGeneratedFile( + "\x0A\xA4\x02\x0A\x1Bgoogle/type/dayofweek.proto\x12\x0Bgoogle.type*\x84\x01\x0A\x09DayOfWeek\x12\x1B\x0A\x17DAY_OF_WEEK_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06MONDAY\x10\x01\x12\x0B\x0A\x07TUESDAY\x10\x02\x12\x0D\x0A\x09WEDNESDAY\x10\x03\x12\x0C\x0A\x08THURSDAY\x10\x04\x12\x0A\x0A\x06FRIDAY\x10\x05\x12\x0C\x0A\x08SATURDAY\x10\x06\x12\x0A\x0A\x06SUNDAY\x10\x07Bi\x0A\x0Fcom.google.typeB\x0EDayOfWeekProtoP\x01Z>google.golang.org/genproto/googleapis/type/dayofweek;dayofweek\xA2\x02\x03GTPb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Decimal.php b/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Decimal.php new file mode 100644 index 000000000000..05978c28b141 --- /dev/null +++ b/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Decimal.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\xAF\x01\x0A\x19google/type/decimal.proto\x12\x0Bgoogle.type\"\x18\x0A\x07Decimal\x12\x0D\x0A\x05value\x18\x01 \x01(\x09Bc\x0A\x0Fcom.google.typeB\x0CDecimalProtoP\x01Z:google.golang.org/genproto/googleapis/type/decimal;decimal\xA2\x02\x03GTPb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Expr.php b/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Expr.php new file mode 100644 index 000000000000..3c97d0abd6e7 --- /dev/null +++ b/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Expr.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\xDB\x01\x0A\x16google/type/expr.proto\x12\x0Bgoogle.type\"P\x0A\x04Expr\x12\x12\x0A\x0Aexpression\x18\x01 \x01(\x09\x12\x0D\x0A\x05title\x18\x02 \x01(\x09\x12\x13\x0A\x0Bdescription\x18\x03 \x01(\x09\x12\x10\x0A\x08location\x18\x04 \x01(\x09BZ\x0A\x0Fcom.google.typeB\x09ExprProtoP\x01Z4google.golang.org/genproto/googleapis/type/expr;expr\xA2\x02\x03GTPb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Fraction.php b/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Fraction.php new file mode 100644 index 000000000000..425f834380fd --- /dev/null +++ b/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Fraction.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\xCD\x01\x0A\x1Agoogle/type/fraction.proto\x12\x0Bgoogle.type\"2\x0A\x08Fraction\x12\x11\x0A\x09numerator\x18\x01 \x01(\x03\x12\x13\x0A\x0Bdenominator\x18\x02 \x01(\x03Bf\x0A\x0Fcom.google.typeB\x0DFractionProtoP\x01ZinternalAddGeneratedFile( + "\x0A\x83\x02\x0A\x1Agoogle/type/interval.proto\x12\x0Bgoogle.type\"h\x0A\x08Interval\x12.\x0A\x0Astart_time\x18\x01 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12,\x0A\x08end_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.TimestampBf\x0A\x0Fcom.google.typeB\x0DIntervalProtoP\x01ZinternalAddGeneratedFile( + "\x0A\xC0\x01\x0A\x18google/type/latlng.proto\x12\x0Bgoogle.type\"-\x0A\x06LatLng\x12\x10\x0A\x08latitude\x18\x01 \x01(\x01\x12\x11\x0A\x09longitude\x18\x02 \x01(\x01B`\x0A\x0Fcom.google.typeB\x0BLatLngProtoP\x01Z8google.golang.org/genproto/googleapis/type/latlng;latlng\xA2\x02\x03GTPb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/LocalizedText.php b/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/LocalizedText.php new file mode 100644 index 000000000000..a96beba449b3 --- /dev/null +++ b/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/LocalizedText.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\xE6\x01\x0A google/type/localized_text.proto\x12\x0Bgoogle.type\"4\x0A\x0DLocalizedText\x12\x0C\x0A\x04text\x18\x01 \x01(\x09\x12\x15\x0A\x0Dlanguage_code\x18\x02 \x01(\x09Bw\x0A\x0Fcom.google.typeB\x12LocalizedTextProtoP\x01ZHgoogle.golang.org/genproto/googleapis/type/localized_text;localized_text\xA2\x02\x03GTPb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Money.php b/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Money.php new file mode 100644 index 000000000000..8a06499dace4 --- /dev/null +++ b/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Money.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\xCB\x01\x0A\x17google/type/money.proto\x12\x0Bgoogle.type\"<\x0A\x05Money\x12\x15\x0A\x0Dcurrency_code\x18\x01 \x01(\x09\x12\x0D\x0A\x05units\x18\x02 \x01(\x03\x12\x0D\x0A\x05nanos\x18\x03 \x01(\x05B]\x0A\x0Fcom.google.typeB\x0AMoneyProtoP\x01Z6google.golang.org/genproto/googleapis/type/money;money\xA2\x02\x03GTPb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Month.php b/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Month.php new file mode 100644 index 000000000000..b634e51780aa --- /dev/null +++ b/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Month.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\xC0\x02\x0A\x17google/type/month.proto\x12\x0Bgoogle.type*\xB0\x01\x0A\x05Month\x12\x15\x0A\x11MONTH_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07JANUARY\x10\x01\x12\x0C\x0A\x08FEBRUARY\x10\x02\x12\x09\x0A\x05MARCH\x10\x03\x12\x09\x0A\x05APRIL\x10\x04\x12\x07\x0A\x03MAY\x10\x05\x12\x08\x0A\x04JUNE\x10\x06\x12\x08\x0A\x04JULY\x10\x07\x12\x0A\x0A\x06AUGUST\x10\x08\x12\x0D\x0A\x09SEPTEMBER\x10\x09\x12\x0B\x0A\x07OCTOBER\x10\x0A\x12\x0C\x0A\x08NOVEMBER\x10\x0B\x12\x0C\x0A\x08DECEMBER\x10\x0CB]\x0A\x0Fcom.google.typeB\x0AMonthProtoP\x01Z6google.golang.org/genproto/googleapis/type/month;month\xA2\x02\x03GTPb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/PhoneNumber.php b/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/PhoneNumber.php new file mode 100644 index 000000000000..2c3bcb80745d --- /dev/null +++ b/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/PhoneNumber.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\xD6\x02\x0A\x1Egoogle/type/phone_number.proto\x12\x0Bgoogle.type\"\xAB\x01\x0A\x0BPhoneNumber\x12\x15\x0A\x0Be164_number\x18\x01 \x01(\x09H\x00\x128\x0A\x0Ashort_code\x18\x02 \x01(\x0B2\".google.type.PhoneNumber.ShortCodeH\x00\x12\x11\x0A\x09extension\x18\x03 \x01(\x09\x1A0\x0A\x09ShortCode\x12\x13\x0A\x0Bregion_code\x18\x01 \x01(\x09\x12\x0E\x0A\x06number\x18\x02 \x01(\x09B\x06\x0A\x04kindBq\x0A\x0Fcom.google.typeB\x10PhoneNumberProtoP\x01ZDgoogle.golang.org/genproto/googleapis/type/phone_number;phone_number\xA2\x02\x03GTPb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/PostalAddress.php b/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/PostalAddress.php new file mode 100644 index 000000000000..ecbf07694b64 --- /dev/null +++ b/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/PostalAddress.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\xAE\x03\x0A google/type/postal_address.proto\x12\x0Bgoogle.type\"\xFD\x01\x0A\x0DPostalAddress\x12\x10\x0A\x08revision\x18\x01 \x01(\x05\x12\x13\x0A\x0Bregion_code\x18\x02 \x01(\x09\x12\x15\x0A\x0Dlanguage_code\x18\x03 \x01(\x09\x12\x13\x0A\x0Bpostal_code\x18\x04 \x01(\x09\x12\x14\x0A\x0Csorting_code\x18\x05 \x01(\x09\x12\x1B\x0A\x13administrative_area\x18\x06 \x01(\x09\x12\x10\x0A\x08locality\x18\x07 \x01(\x09\x12\x13\x0A\x0Bsublocality\x18\x08 \x01(\x09\x12\x15\x0A\x0Daddress_lines\x18\x09 \x03(\x09\x12\x12\x0A\x0Arecipients\x18\x0A \x03(\x09\x12\x14\x0A\x0Corganization\x18\x0B \x01(\x09Bu\x0A\x0Fcom.google.typeB\x12PostalAddressProtoP\x01ZFgoogle.golang.org/genproto/googleapis/type/postaladdress;postaladdress\xA2\x02\x03GTPb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Quaternion.php b/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Quaternion.php new file mode 100644 index 000000000000..ba38da693c32 --- /dev/null +++ b/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Quaternion.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\xDB\x01\x0A\x1Cgoogle/type/quaternion.proto\x12\x0Bgoogle.type\"8\x0A\x0AQuaternion\x12\x09\x0A\x01x\x18\x01 \x01(\x01\x12\x09\x0A\x01y\x18\x02 \x01(\x01\x12\x09\x0A\x01z\x18\x03 \x01(\x01\x12\x09\x0A\x01w\x18\x04 \x01(\x01Bl\x0A\x0Fcom.google.typeB\x0FQuaternionProtoP\x01Z@google.golang.org/genproto/googleapis/type/quaternion;quaternion\xA2\x02\x03GTPb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Timeofday.php b/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Timeofday.php new file mode 100644 index 000000000000..bc407c485071 --- /dev/null +++ b/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Timeofday.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\xEA\x01\x0A\x1Bgoogle/type/timeofday.proto\x12\x0Bgoogle.type\"K\x0A\x09TimeOfDay\x12\x0D\x0A\x05hours\x18\x01 \x01(\x05\x12\x0F\x0A\x07minutes\x18\x02 \x01(\x05\x12\x0F\x0A\x07seconds\x18\x03 \x01(\x05\x12\x0D\x0A\x05nanos\x18\x04 \x01(\x05Bi\x0A\x0Fcom.google.typeB\x0ETimeOfDayProtoP\x01Z>google.golang.org/genproto/googleapis/type/timeofday;timeofday\xA2\x02\x03GTPb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/CalendarPeriod.php b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/CalendarPeriod.php new file mode 100644 index 000000000000..e4807c07959b --- /dev/null +++ b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/CalendarPeriod.php @@ -0,0 +1,102 @@ +google.type.CalendarPeriod + */ +class CalendarPeriod +{ + /** + * Undefined period, raises an error. + * + * Generated from protobuf enum CALENDAR_PERIOD_UNSPECIFIED = 0; + */ + const CALENDAR_PERIOD_UNSPECIFIED = 0; + /** + * A day. + * + * Generated from protobuf enum DAY = 1; + */ + const DAY = 1; + /** + * A week. Weeks begin on Monday, following + * [ISO 8601](https://en.wikipedia.org/wiki/ISO_week_date). + * + * Generated from protobuf enum WEEK = 2; + */ + const WEEK = 2; + /** + * A fortnight. The first calendar fortnight of the year begins at the start + * of week 1 according to + * [ISO 8601](https://en.wikipedia.org/wiki/ISO_week_date). + * + * Generated from protobuf enum FORTNIGHT = 3; + */ + const FORTNIGHT = 3; + /** + * A month. + * + * Generated from protobuf enum MONTH = 4; + */ + const MONTH = 4; + /** + * A quarter. Quarters start on dates 1-Jan, 1-Apr, 1-Jul, and 1-Oct of each + * year. + * + * Generated from protobuf enum QUARTER = 5; + */ + const QUARTER = 5; + /** + * A half-year. Half-years start on dates 1-Jan and 1-Jul. + * + * Generated from protobuf enum HALF = 6; + */ + const HALF = 6; + /** + * A year. + * + * Generated from protobuf enum YEAR = 7; + */ + const YEAR = 7; + + private static $valueToName = [ + self::CALENDAR_PERIOD_UNSPECIFIED => 'CALENDAR_PERIOD_UNSPECIFIED', + self::DAY => 'DAY', + self::WEEK => 'WEEK', + self::FORTNIGHT => 'FORTNIGHT', + self::MONTH => 'MONTH', + self::QUARTER => 'QUARTER', + self::HALF => 'HALF', + self::YEAR => 'YEAR', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Color.php b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Color.php new file mode 100644 index 000000000000..ae4a591a3057 --- /dev/null +++ b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Color.php @@ -0,0 +1,360 @@ +google.type.Color + */ +class Color extends \Google\Protobuf\Internal\Message +{ + /** + * The amount of red in the color as a value in the interval [0, 1]. + * + * Generated from protobuf field float red = 1; + */ + protected $red = 0.0; + /** + * The amount of green in the color as a value in the interval [0, 1]. + * + * Generated from protobuf field float green = 2; + */ + protected $green = 0.0; + /** + * The amount of blue in the color as a value in the interval [0, 1]. + * + * Generated from protobuf field float blue = 3; + */ + protected $blue = 0.0; + /** + * The fraction of this color that should be applied to the pixel. That is, + * the final pixel color is defined by the equation: + * `pixel color = alpha * (this color) + (1.0 - alpha) * (background color)` + * This means that a value of 1.0 corresponds to a solid color, whereas + * a value of 0.0 corresponds to a completely transparent color. This + * uses a wrapper message rather than a simple float scalar so that it is + * possible to distinguish between a default value and the value being unset. + * If omitted, this color object is rendered as a solid color + * (as if the alpha value had been explicitly given a value of 1.0). + * + * Generated from protobuf field .google.protobuf.FloatValue alpha = 4; + */ + protected $alpha = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type float $red + * The amount of red in the color as a value in the interval [0, 1]. + * @type float $green + * The amount of green in the color as a value in the interval [0, 1]. + * @type float $blue + * The amount of blue in the color as a value in the interval [0, 1]. + * @type \Google\Protobuf\FloatValue $alpha + * The fraction of this color that should be applied to the pixel. That is, + * the final pixel color is defined by the equation: + * `pixel color = alpha * (this color) + (1.0 - alpha) * (background color)` + * This means that a value of 1.0 corresponds to a solid color, whereas + * a value of 0.0 corresponds to a completely transparent color. This + * uses a wrapper message rather than a simple float scalar so that it is + * possible to distinguish between a default value and the value being unset. + * If omitted, this color object is rendered as a solid color + * (as if the alpha value had been explicitly given a value of 1.0). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Type\Color::initOnce(); + parent::__construct($data); + } + + /** + * The amount of red in the color as a value in the interval [0, 1]. + * + * Generated from protobuf field float red = 1; + * @return float + */ + public function getRed() + { + return $this->red; + } + + /** + * The amount of red in the color as a value in the interval [0, 1]. + * + * Generated from protobuf field float red = 1; + * @param float $var + * @return $this + */ + public function setRed($var) + { + GPBUtil::checkFloat($var); + $this->red = $var; + + return $this; + } + + /** + * The amount of green in the color as a value in the interval [0, 1]. + * + * Generated from protobuf field float green = 2; + * @return float + */ + public function getGreen() + { + return $this->green; + } + + /** + * The amount of green in the color as a value in the interval [0, 1]. + * + * Generated from protobuf field float green = 2; + * @param float $var + * @return $this + */ + public function setGreen($var) + { + GPBUtil::checkFloat($var); + $this->green = $var; + + return $this; + } + + /** + * The amount of blue in the color as a value in the interval [0, 1]. + * + * Generated from protobuf field float blue = 3; + * @return float + */ + public function getBlue() + { + return $this->blue; + } + + /** + * The amount of blue in the color as a value in the interval [0, 1]. + * + * Generated from protobuf field float blue = 3; + * @param float $var + * @return $this + */ + public function setBlue($var) + { + GPBUtil::checkFloat($var); + $this->blue = $var; + + return $this; + } + + /** + * The fraction of this color that should be applied to the pixel. That is, + * the final pixel color is defined by the equation: + * `pixel color = alpha * (this color) + (1.0 - alpha) * (background color)` + * This means that a value of 1.0 corresponds to a solid color, whereas + * a value of 0.0 corresponds to a completely transparent color. This + * uses a wrapper message rather than a simple float scalar so that it is + * possible to distinguish between a default value and the value being unset. + * If omitted, this color object is rendered as a solid color + * (as if the alpha value had been explicitly given a value of 1.0). + * + * Generated from protobuf field .google.protobuf.FloatValue alpha = 4; + * @return \Google\Protobuf\FloatValue|null + */ + public function getAlpha() + { + return $this->alpha; + } + + public function hasAlpha() + { + return isset($this->alpha); + } + + public function clearAlpha() + { + unset($this->alpha); + } + + /** + * Returns the unboxed value from getAlpha() + + * The fraction of this color that should be applied to the pixel. That is, + * the final pixel color is defined by the equation: + * `pixel color = alpha * (this color) + (1.0 - alpha) * (background color)` + * This means that a value of 1.0 corresponds to a solid color, whereas + * a value of 0.0 corresponds to a completely transparent color. This + * uses a wrapper message rather than a simple float scalar so that it is + * possible to distinguish between a default value and the value being unset. + * If omitted, this color object is rendered as a solid color + * (as if the alpha value had been explicitly given a value of 1.0). + * + * Generated from protobuf field .google.protobuf.FloatValue alpha = 4; + * @return float|null + */ + public function getAlphaUnwrapped() + { + return $this->readWrapperValue("alpha"); + } + + /** + * The fraction of this color that should be applied to the pixel. That is, + * the final pixel color is defined by the equation: + * `pixel color = alpha * (this color) + (1.0 - alpha) * (background color)` + * This means that a value of 1.0 corresponds to a solid color, whereas + * a value of 0.0 corresponds to a completely transparent color. This + * uses a wrapper message rather than a simple float scalar so that it is + * possible to distinguish between a default value and the value being unset. + * If omitted, this color object is rendered as a solid color + * (as if the alpha value had been explicitly given a value of 1.0). + * + * Generated from protobuf field .google.protobuf.FloatValue alpha = 4; + * @param \Google\Protobuf\FloatValue $var + * @return $this + */ + public function setAlpha($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FloatValue::class); + $this->alpha = $var; + + return $this; + } + + /** + * Sets the field by wrapping a primitive type in a Google\Protobuf\FloatValue object. + + * The fraction of this color that should be applied to the pixel. That is, + * the final pixel color is defined by the equation: + * `pixel color = alpha * (this color) + (1.0 - alpha) * (background color)` + * This means that a value of 1.0 corresponds to a solid color, whereas + * a value of 0.0 corresponds to a completely transparent color. This + * uses a wrapper message rather than a simple float scalar so that it is + * possible to distinguish between a default value and the value being unset. + * If omitted, this color object is rendered as a solid color + * (as if the alpha value had been explicitly given a value of 1.0). + * + * Generated from protobuf field .google.protobuf.FloatValue alpha = 4; + * @param float|null $var + * @return $this + */ + public function setAlphaUnwrapped($var) + { + $this->writeWrapperValue("alpha", $var); + return $this;} + +} + diff --git a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Date.php b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Date.php new file mode 100644 index 000000000000..a14cf9d38a92 --- /dev/null +++ b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Date.php @@ -0,0 +1,163 @@ +google.type.Date + */ +class Date extends \Google\Protobuf\Internal\Message +{ + /** + * Year of the date. Must be from 1 to 9999, or 0 to specify a date without + * a year. + * + * Generated from protobuf field int32 year = 1; + */ + protected $year = 0; + /** + * Month of a year. Must be from 1 to 12, or 0 to specify a year without a + * month and day. + * + * Generated from protobuf field int32 month = 2; + */ + protected $month = 0; + /** + * Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 + * to specify a year by itself or a year and month where the day isn't + * significant. + * + * Generated from protobuf field int32 day = 3; + */ + protected $day = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $year + * Year of the date. Must be from 1 to 9999, or 0 to specify a date without + * a year. + * @type int $month + * Month of a year. Must be from 1 to 12, or 0 to specify a year without a + * month and day. + * @type int $day + * Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 + * to specify a year by itself or a year and month where the day isn't + * significant. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Type\Date::initOnce(); + parent::__construct($data); + } + + /** + * Year of the date. Must be from 1 to 9999, or 0 to specify a date without + * a year. + * + * Generated from protobuf field int32 year = 1; + * @return int + */ + public function getYear() + { + return $this->year; + } + + /** + * Year of the date. Must be from 1 to 9999, or 0 to specify a date without + * a year. + * + * Generated from protobuf field int32 year = 1; + * @param int $var + * @return $this + */ + public function setYear($var) + { + GPBUtil::checkInt32($var); + $this->year = $var; + + return $this; + } + + /** + * Month of a year. Must be from 1 to 12, or 0 to specify a year without a + * month and day. + * + * Generated from protobuf field int32 month = 2; + * @return int + */ + public function getMonth() + { + return $this->month; + } + + /** + * Month of a year. Must be from 1 to 12, or 0 to specify a year without a + * month and day. + * + * Generated from protobuf field int32 month = 2; + * @param int $var + * @return $this + */ + public function setMonth($var) + { + GPBUtil::checkInt32($var); + $this->month = $var; + + return $this; + } + + /** + * Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 + * to specify a year by itself or a year and month where the day isn't + * significant. + * + * Generated from protobuf field int32 day = 3; + * @return int + */ + public function getDay() + { + return $this->day; + } + + /** + * Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 + * to specify a year by itself or a year and month where the day isn't + * significant. + * + * Generated from protobuf field int32 day = 3; + * @param int $var + * @return $this + */ + public function setDay($var) + { + GPBUtil::checkInt32($var); + $this->day = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/DateTime.php b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/DateTime.php new file mode 100644 index 000000000000..42375f16ec96 --- /dev/null +++ b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/DateTime.php @@ -0,0 +1,397 @@ +google.type.DateTime + */ +class DateTime extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Year of date. Must be from 1 to 9999, or 0 if specifying a + * datetime without a year. + * + * Generated from protobuf field int32 year = 1; + */ + protected $year = 0; + /** + * Optional. Month of year. Must be from 1 to 12, or 0 if specifying a + * datetime without a month. + * + * Generated from protobuf field int32 month = 2; + */ + protected $month = 0; + /** + * Optional. Day of month. Must be from 1 to 31 and valid for the year and + * month, or 0 if specifying a datetime without a day. + * + * Generated from protobuf field int32 day = 3; + */ + protected $day = 0; + /** + * Optional. Hours of day in 24 hour format. Should be from 0 to 23, defaults + * to 0 (midnight). An API may choose to allow the value "24:00:00" for + * scenarios like business closing time. + * + * Generated from protobuf field int32 hours = 4; + */ + protected $hours = 0; + /** + * Optional. Minutes of hour of day. Must be from 0 to 59, defaults to 0. + * + * Generated from protobuf field int32 minutes = 5; + */ + protected $minutes = 0; + /** + * Optional. Seconds of minutes of the time. Must normally be from 0 to 59, + * defaults to 0. An API may allow the value 60 if it allows leap-seconds. + * + * Generated from protobuf field int32 seconds = 6; + */ + protected $seconds = 0; + /** + * Optional. Fractions of seconds in nanoseconds. Must be from 0 to + * 999,999,999, defaults to 0. + * + * Generated from protobuf field int32 nanos = 7; + */ + protected $nanos = 0; + protected $time_offset; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $year + * Optional. Year of date. Must be from 1 to 9999, or 0 if specifying a + * datetime without a year. + * @type int $month + * Optional. Month of year. Must be from 1 to 12, or 0 if specifying a + * datetime without a month. + * @type int $day + * Optional. Day of month. Must be from 1 to 31 and valid for the year and + * month, or 0 if specifying a datetime without a day. + * @type int $hours + * Optional. Hours of day in 24 hour format. Should be from 0 to 23, defaults + * to 0 (midnight). An API may choose to allow the value "24:00:00" for + * scenarios like business closing time. + * @type int $minutes + * Optional. Minutes of hour of day. Must be from 0 to 59, defaults to 0. + * @type int $seconds + * Optional. Seconds of minutes of the time. Must normally be from 0 to 59, + * defaults to 0. An API may allow the value 60 if it allows leap-seconds. + * @type int $nanos + * Optional. Fractions of seconds in nanoseconds. Must be from 0 to + * 999,999,999, defaults to 0. + * @type \Google\Protobuf\Duration $utc_offset + * UTC offset. Must be whole seconds, between -18 hours and +18 hours. + * For example, a UTC offset of -4:00 would be represented as + * { seconds: -14400 }. + * @type \Google\Type\TimeZone $time_zone + * Time zone. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Type\Datetime::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Year of date. Must be from 1 to 9999, or 0 if specifying a + * datetime without a year. + * + * Generated from protobuf field int32 year = 1; + * @return int + */ + public function getYear() + { + return $this->year; + } + + /** + * Optional. Year of date. Must be from 1 to 9999, or 0 if specifying a + * datetime without a year. + * + * Generated from protobuf field int32 year = 1; + * @param int $var + * @return $this + */ + public function setYear($var) + { + GPBUtil::checkInt32($var); + $this->year = $var; + + return $this; + } + + /** + * Optional. Month of year. Must be from 1 to 12, or 0 if specifying a + * datetime without a month. + * + * Generated from protobuf field int32 month = 2; + * @return int + */ + public function getMonth() + { + return $this->month; + } + + /** + * Optional. Month of year. Must be from 1 to 12, or 0 if specifying a + * datetime without a month. + * + * Generated from protobuf field int32 month = 2; + * @param int $var + * @return $this + */ + public function setMonth($var) + { + GPBUtil::checkInt32($var); + $this->month = $var; + + return $this; + } + + /** + * Optional. Day of month. Must be from 1 to 31 and valid for the year and + * month, or 0 if specifying a datetime without a day. + * + * Generated from protobuf field int32 day = 3; + * @return int + */ + public function getDay() + { + return $this->day; + } + + /** + * Optional. Day of month. Must be from 1 to 31 and valid for the year and + * month, or 0 if specifying a datetime without a day. + * + * Generated from protobuf field int32 day = 3; + * @param int $var + * @return $this + */ + public function setDay($var) + { + GPBUtil::checkInt32($var); + $this->day = $var; + + return $this; + } + + /** + * Optional. Hours of day in 24 hour format. Should be from 0 to 23, defaults + * to 0 (midnight). An API may choose to allow the value "24:00:00" for + * scenarios like business closing time. + * + * Generated from protobuf field int32 hours = 4; + * @return int + */ + public function getHours() + { + return $this->hours; + } + + /** + * Optional. Hours of day in 24 hour format. Should be from 0 to 23, defaults + * to 0 (midnight). An API may choose to allow the value "24:00:00" for + * scenarios like business closing time. + * + * Generated from protobuf field int32 hours = 4; + * @param int $var + * @return $this + */ + public function setHours($var) + { + GPBUtil::checkInt32($var); + $this->hours = $var; + + return $this; + } + + /** + * Optional. Minutes of hour of day. Must be from 0 to 59, defaults to 0. + * + * Generated from protobuf field int32 minutes = 5; + * @return int + */ + public function getMinutes() + { + return $this->minutes; + } + + /** + * Optional. Minutes of hour of day. Must be from 0 to 59, defaults to 0. + * + * Generated from protobuf field int32 minutes = 5; + * @param int $var + * @return $this + */ + public function setMinutes($var) + { + GPBUtil::checkInt32($var); + $this->minutes = $var; + + return $this; + } + + /** + * Optional. Seconds of minutes of the time. Must normally be from 0 to 59, + * defaults to 0. An API may allow the value 60 if it allows leap-seconds. + * + * Generated from protobuf field int32 seconds = 6; + * @return int + */ + public function getSeconds() + { + return $this->seconds; + } + + /** + * Optional. Seconds of minutes of the time. Must normally be from 0 to 59, + * defaults to 0. An API may allow the value 60 if it allows leap-seconds. + * + * Generated from protobuf field int32 seconds = 6; + * @param int $var + * @return $this + */ + public function setSeconds($var) + { + GPBUtil::checkInt32($var); + $this->seconds = $var; + + return $this; + } + + /** + * Optional. Fractions of seconds in nanoseconds. Must be from 0 to + * 999,999,999, defaults to 0. + * + * Generated from protobuf field int32 nanos = 7; + * @return int + */ + public function getNanos() + { + return $this->nanos; + } + + /** + * Optional. Fractions of seconds in nanoseconds. Must be from 0 to + * 999,999,999, defaults to 0. + * + * Generated from protobuf field int32 nanos = 7; + * @param int $var + * @return $this + */ + public function setNanos($var) + { + GPBUtil::checkInt32($var); + $this->nanos = $var; + + return $this; + } + + /** + * UTC offset. Must be whole seconds, between -18 hours and +18 hours. + * For example, a UTC offset of -4:00 would be represented as + * { seconds: -14400 }. + * + * Generated from protobuf field .google.protobuf.Duration utc_offset = 8; + * @return \Google\Protobuf\Duration|null + */ + public function getUtcOffset() + { + return $this->readOneof(8); + } + + public function hasUtcOffset() + { + return $this->hasOneof(8); + } + + /** + * UTC offset. Must be whole seconds, between -18 hours and +18 hours. + * For example, a UTC offset of -4:00 would be represented as + * { seconds: -14400 }. + * + * Generated from protobuf field .google.protobuf.Duration utc_offset = 8; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setUtcOffset($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->writeOneof(8, $var); + + return $this; + } + + /** + * Time zone. + * + * Generated from protobuf field .google.type.TimeZone time_zone = 9; + * @return \Google\Type\TimeZone|null + */ + public function getTimeZone() + { + return $this->readOneof(9); + } + + public function hasTimeZone() + { + return $this->hasOneof(9); + } + + /** + * Time zone. + * + * Generated from protobuf field .google.type.TimeZone time_zone = 9; + * @param \Google\Type\TimeZone $var + * @return $this + */ + public function setTimeZone($var) + { + GPBUtil::checkMessage($var, \Google\Type\TimeZone::class); + $this->writeOneof(9, $var); + + return $this; + } + + /** + * @return string + */ + public function getTimeOffset() + { + return $this->whichOneof("time_offset"); + } + +} + diff --git a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/DayOfWeek.php b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/DayOfWeek.php new file mode 100644 index 000000000000..56219ffe10be --- /dev/null +++ b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/DayOfWeek.php @@ -0,0 +1,96 @@ +google.type.DayOfWeek + */ +class DayOfWeek +{ + /** + * The day of the week is unspecified. + * + * Generated from protobuf enum DAY_OF_WEEK_UNSPECIFIED = 0; + */ + const DAY_OF_WEEK_UNSPECIFIED = 0; + /** + * Monday + * + * Generated from protobuf enum MONDAY = 1; + */ + const MONDAY = 1; + /** + * Tuesday + * + * Generated from protobuf enum TUESDAY = 2; + */ + const TUESDAY = 2; + /** + * Wednesday + * + * Generated from protobuf enum WEDNESDAY = 3; + */ + const WEDNESDAY = 3; + /** + * Thursday + * + * Generated from protobuf enum THURSDAY = 4; + */ + const THURSDAY = 4; + /** + * Friday + * + * Generated from protobuf enum FRIDAY = 5; + */ + const FRIDAY = 5; + /** + * Saturday + * + * Generated from protobuf enum SATURDAY = 6; + */ + const SATURDAY = 6; + /** + * Sunday + * + * Generated from protobuf enum SUNDAY = 7; + */ + const SUNDAY = 7; + + private static $valueToName = [ + self::DAY_OF_WEEK_UNSPECIFIED => 'DAY_OF_WEEK_UNSPECIFIED', + self::MONDAY => 'MONDAY', + self::TUESDAY => 'TUESDAY', + self::WEDNESDAY => 'WEDNESDAY', + self::THURSDAY => 'THURSDAY', + self::FRIDAY => 'FRIDAY', + self::SATURDAY => 'SATURDAY', + self::SUNDAY => 'SUNDAY', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Decimal.php b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Decimal.php new file mode 100644 index 000000000000..687024e29acc --- /dev/null +++ b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Decimal.php @@ -0,0 +1,247 @@ +google.type.Decimal + */ +class Decimal extends \Google\Protobuf\Internal\Message +{ + /** + * The decimal value, as a string. + * The string representation consists of an optional sign, `+` (`U+002B`) + * or `-` (`U+002D`), followed by a sequence of zero or more decimal digits + * ("the integer"), optionally followed by a fraction, optionally followed + * by an exponent. An empty string **should** be interpreted as `0`. + * The fraction consists of a decimal point followed by zero or more decimal + * digits. The string must contain at least one digit in either the integer + * or the fraction. The number formed by the sign, the integer and the + * fraction is referred to as the significand. + * The exponent consists of the character `e` (`U+0065`) or `E` (`U+0045`) + * followed by one or more decimal digits. + * Services **should** normalize decimal values before storing them by: + * - Removing an explicitly-provided `+` sign (`+2.5` -> `2.5`). + * - Replacing a zero-length integer value with `0` (`.5` -> `0.5`). + * - Coercing the exponent character to upper-case, with explicit sign + * (`2.5e8` -> `2.5E+8`). + * - Removing an explicitly-provided zero exponent (`2.5E0` -> `2.5`). + * Services **may** perform additional normalization based on its own needs + * and the internal decimal implementation selected, such as shifting the + * decimal point and exponent value together (example: `2.5E-1` <-> `0.25`). + * Additionally, services **may** preserve trailing zeroes in the fraction + * to indicate increased precision, but are not required to do so. + * Note that only the `.` character is supported to divide the integer + * and the fraction; `,` **should not** be supported regardless of locale. + * Additionally, thousand separators **should not** be supported. If a + * service does support them, values **must** be normalized. + * The ENBF grammar is: + * DecimalString = + * '' | [Sign] Significand [Exponent]; + * Sign = '+' | '-'; + * Significand = + * Digits ['.'] [Digits] | [Digits] '.' Digits; + * Exponent = ('e' | 'E') [Sign] Digits; + * Digits = { '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' }; + * Services **should** clearly document the range of supported values, the + * maximum supported precision (total number of digits), and, if applicable, + * the scale (number of digits after the decimal point), as well as how it + * behaves when receiving out-of-bounds values. + * Services **may** choose to accept values passed as input even when the + * value has a higher precision or scale than the service supports, and + * **should** round the value to fit the supported scale. Alternatively, the + * service **may** error with `400 Bad Request` (`INVALID_ARGUMENT` in gRPC) + * if precision would be lost. + * Services **should** error with `400 Bad Request` (`INVALID_ARGUMENT` in + * gRPC) if the service receives a value outside of the supported range. + * + * Generated from protobuf field string value = 1; + */ + protected $value = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $value + * The decimal value, as a string. + * The string representation consists of an optional sign, `+` (`U+002B`) + * or `-` (`U+002D`), followed by a sequence of zero or more decimal digits + * ("the integer"), optionally followed by a fraction, optionally followed + * by an exponent. An empty string **should** be interpreted as `0`. + * The fraction consists of a decimal point followed by zero or more decimal + * digits. The string must contain at least one digit in either the integer + * or the fraction. The number formed by the sign, the integer and the + * fraction is referred to as the significand. + * The exponent consists of the character `e` (`U+0065`) or `E` (`U+0045`) + * followed by one or more decimal digits. + * Services **should** normalize decimal values before storing them by: + * - Removing an explicitly-provided `+` sign (`+2.5` -> `2.5`). + * - Replacing a zero-length integer value with `0` (`.5` -> `0.5`). + * - Coercing the exponent character to upper-case, with explicit sign + * (`2.5e8` -> `2.5E+8`). + * - Removing an explicitly-provided zero exponent (`2.5E0` -> `2.5`). + * Services **may** perform additional normalization based on its own needs + * and the internal decimal implementation selected, such as shifting the + * decimal point and exponent value together (example: `2.5E-1` <-> `0.25`). + * Additionally, services **may** preserve trailing zeroes in the fraction + * to indicate increased precision, but are not required to do so. + * Note that only the `.` character is supported to divide the integer + * and the fraction; `,` **should not** be supported regardless of locale. + * Additionally, thousand separators **should not** be supported. If a + * service does support them, values **must** be normalized. + * The ENBF grammar is: + * DecimalString = + * '' | [Sign] Significand [Exponent]; + * Sign = '+' | '-'; + * Significand = + * Digits ['.'] [Digits] | [Digits] '.' Digits; + * Exponent = ('e' | 'E') [Sign] Digits; + * Digits = { '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' }; + * Services **should** clearly document the range of supported values, the + * maximum supported precision (total number of digits), and, if applicable, + * the scale (number of digits after the decimal point), as well as how it + * behaves when receiving out-of-bounds values. + * Services **may** choose to accept values passed as input even when the + * value has a higher precision or scale than the service supports, and + * **should** round the value to fit the supported scale. Alternatively, the + * service **may** error with `400 Bad Request` (`INVALID_ARGUMENT` in gRPC) + * if precision would be lost. + * Services **should** error with `400 Bad Request` (`INVALID_ARGUMENT` in + * gRPC) if the service receives a value outside of the supported range. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Type\Decimal::initOnce(); + parent::__construct($data); + } + + /** + * The decimal value, as a string. + * The string representation consists of an optional sign, `+` (`U+002B`) + * or `-` (`U+002D`), followed by a sequence of zero or more decimal digits + * ("the integer"), optionally followed by a fraction, optionally followed + * by an exponent. An empty string **should** be interpreted as `0`. + * The fraction consists of a decimal point followed by zero or more decimal + * digits. The string must contain at least one digit in either the integer + * or the fraction. The number formed by the sign, the integer and the + * fraction is referred to as the significand. + * The exponent consists of the character `e` (`U+0065`) or `E` (`U+0045`) + * followed by one or more decimal digits. + * Services **should** normalize decimal values before storing them by: + * - Removing an explicitly-provided `+` sign (`+2.5` -> `2.5`). + * - Replacing a zero-length integer value with `0` (`.5` -> `0.5`). + * - Coercing the exponent character to upper-case, with explicit sign + * (`2.5e8` -> `2.5E+8`). + * - Removing an explicitly-provided zero exponent (`2.5E0` -> `2.5`). + * Services **may** perform additional normalization based on its own needs + * and the internal decimal implementation selected, such as shifting the + * decimal point and exponent value together (example: `2.5E-1` <-> `0.25`). + * Additionally, services **may** preserve trailing zeroes in the fraction + * to indicate increased precision, but are not required to do so. + * Note that only the `.` character is supported to divide the integer + * and the fraction; `,` **should not** be supported regardless of locale. + * Additionally, thousand separators **should not** be supported. If a + * service does support them, values **must** be normalized. + * The ENBF grammar is: + * DecimalString = + * '' | [Sign] Significand [Exponent]; + * Sign = '+' | '-'; + * Significand = + * Digits ['.'] [Digits] | [Digits] '.' Digits; + * Exponent = ('e' | 'E') [Sign] Digits; + * Digits = { '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' }; + * Services **should** clearly document the range of supported values, the + * maximum supported precision (total number of digits), and, if applicable, + * the scale (number of digits after the decimal point), as well as how it + * behaves when receiving out-of-bounds values. + * Services **may** choose to accept values passed as input even when the + * value has a higher precision or scale than the service supports, and + * **should** round the value to fit the supported scale. Alternatively, the + * service **may** error with `400 Bad Request` (`INVALID_ARGUMENT` in gRPC) + * if precision would be lost. + * Services **should** error with `400 Bad Request` (`INVALID_ARGUMENT` in + * gRPC) if the service receives a value outside of the supported range. + * + * Generated from protobuf field string value = 1; + * @return string + */ + public function getValue() + { + return $this->value; + } + + /** + * The decimal value, as a string. + * The string representation consists of an optional sign, `+` (`U+002B`) + * or `-` (`U+002D`), followed by a sequence of zero or more decimal digits + * ("the integer"), optionally followed by a fraction, optionally followed + * by an exponent. An empty string **should** be interpreted as `0`. + * The fraction consists of a decimal point followed by zero or more decimal + * digits. The string must contain at least one digit in either the integer + * or the fraction. The number formed by the sign, the integer and the + * fraction is referred to as the significand. + * The exponent consists of the character `e` (`U+0065`) or `E` (`U+0045`) + * followed by one or more decimal digits. + * Services **should** normalize decimal values before storing them by: + * - Removing an explicitly-provided `+` sign (`+2.5` -> `2.5`). + * - Replacing a zero-length integer value with `0` (`.5` -> `0.5`). + * - Coercing the exponent character to upper-case, with explicit sign + * (`2.5e8` -> `2.5E+8`). + * - Removing an explicitly-provided zero exponent (`2.5E0` -> `2.5`). + * Services **may** perform additional normalization based on its own needs + * and the internal decimal implementation selected, such as shifting the + * decimal point and exponent value together (example: `2.5E-1` <-> `0.25`). + * Additionally, services **may** preserve trailing zeroes in the fraction + * to indicate increased precision, but are not required to do so. + * Note that only the `.` character is supported to divide the integer + * and the fraction; `,` **should not** be supported regardless of locale. + * Additionally, thousand separators **should not** be supported. If a + * service does support them, values **must** be normalized. + * The ENBF grammar is: + * DecimalString = + * '' | [Sign] Significand [Exponent]; + * Sign = '+' | '-'; + * Significand = + * Digits ['.'] [Digits] | [Digits] '.' Digits; + * Exponent = ('e' | 'E') [Sign] Digits; + * Digits = { '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' }; + * Services **should** clearly document the range of supported values, the + * maximum supported precision (total number of digits), and, if applicable, + * the scale (number of digits after the decimal point), as well as how it + * behaves when receiving out-of-bounds values. + * Services **may** choose to accept values passed as input even when the + * value has a higher precision or scale than the service supports, and + * **should** round the value to fit the supported scale. Alternatively, the + * service **may** error with `400 Bad Request` (`INVALID_ARGUMENT` in gRPC) + * if precision would be lost. + * Services **should** error with `400 Bad Request` (`INVALID_ARGUMENT` in + * gRPC) if the service receives a value outside of the supported range. + * + * Generated from protobuf field string value = 1; + * @param string $var + * @return $this + */ + public function setValue($var) + { + GPBUtil::checkString($var, True); + $this->value = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Expr.php b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Expr.php new file mode 100644 index 000000000000..036c5cf70d7d --- /dev/null +++ b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Expr.php @@ -0,0 +1,210 @@ +google.type.Expr + */ +class Expr extends \Google\Protobuf\Internal\Message +{ + /** + * Textual representation of an expression in Common Expression Language + * syntax. + * + * Generated from protobuf field string expression = 1; + */ + protected $expression = ''; + /** + * Optional. Title for the expression, i.e. a short string describing + * its purpose. This can be used e.g. in UIs which allow to enter the + * expression. + * + * Generated from protobuf field string title = 2; + */ + protected $title = ''; + /** + * Optional. Description of the expression. This is a longer text which + * describes the expression, e.g. when hovered over it in a UI. + * + * Generated from protobuf field string description = 3; + */ + protected $description = ''; + /** + * Optional. String indicating the location of the expression for error + * reporting, e.g. a file name and a position in the file. + * + * Generated from protobuf field string location = 4; + */ + protected $location = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $expression + * Textual representation of an expression in Common Expression Language + * syntax. + * @type string $title + * Optional. Title for the expression, i.e. a short string describing + * its purpose. This can be used e.g. in UIs which allow to enter the + * expression. + * @type string $description + * Optional. Description of the expression. This is a longer text which + * describes the expression, e.g. when hovered over it in a UI. + * @type string $location + * Optional. String indicating the location of the expression for error + * reporting, e.g. a file name and a position in the file. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Type\Expr::initOnce(); + parent::__construct($data); + } + + /** + * Textual representation of an expression in Common Expression Language + * syntax. + * + * Generated from protobuf field string expression = 1; + * @return string + */ + public function getExpression() + { + return $this->expression; + } + + /** + * Textual representation of an expression in Common Expression Language + * syntax. + * + * Generated from protobuf field string expression = 1; + * @param string $var + * @return $this + */ + public function setExpression($var) + { + GPBUtil::checkString($var, True); + $this->expression = $var; + + return $this; + } + + /** + * Optional. Title for the expression, i.e. a short string describing + * its purpose. This can be used e.g. in UIs which allow to enter the + * expression. + * + * Generated from protobuf field string title = 2; + * @return string + */ + public function getTitle() + { + return $this->title; + } + + /** + * Optional. Title for the expression, i.e. a short string describing + * its purpose. This can be used e.g. in UIs which allow to enter the + * expression. + * + * Generated from protobuf field string title = 2; + * @param string $var + * @return $this + */ + public function setTitle($var) + { + GPBUtil::checkString($var, True); + $this->title = $var; + + return $this; + } + + /** + * Optional. Description of the expression. This is a longer text which + * describes the expression, e.g. when hovered over it in a UI. + * + * Generated from protobuf field string description = 3; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Optional. Description of the expression. This is a longer text which + * describes the expression, e.g. when hovered over it in a UI. + * + * Generated from protobuf field string description = 3; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * Optional. String indicating the location of the expression for error + * reporting, e.g. a file name and a position in the file. + * + * Generated from protobuf field string location = 4; + * @return string + */ + public function getLocation() + { + return $this->location; + } + + /** + * Optional. String indicating the location of the expression for error + * reporting, e.g. a file name and a position in the file. + * + * Generated from protobuf field string location = 4; + * @param string $var + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkString($var, True); + $this->location = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Fraction.php b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Fraction.php new file mode 100644 index 000000000000..02557cab0470 --- /dev/null +++ b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Fraction.php @@ -0,0 +1,105 @@ +google.type.Fraction + */ +class Fraction extends \Google\Protobuf\Internal\Message +{ + /** + * The numerator in the fraction, e.g. 2 in 2/3. + * + * Generated from protobuf field int64 numerator = 1; + */ + protected $numerator = 0; + /** + * The value by which the numerator is divided, e.g. 3 in 2/3. Must be + * positive. + * + * Generated from protobuf field int64 denominator = 2; + */ + protected $denominator = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $numerator + * The numerator in the fraction, e.g. 2 in 2/3. + * @type int|string $denominator + * The value by which the numerator is divided, e.g. 3 in 2/3. Must be + * positive. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Type\Fraction::initOnce(); + parent::__construct($data); + } + + /** + * The numerator in the fraction, e.g. 2 in 2/3. + * + * Generated from protobuf field int64 numerator = 1; + * @return int|string + */ + public function getNumerator() + { + return $this->numerator; + } + + /** + * The numerator in the fraction, e.g. 2 in 2/3. + * + * Generated from protobuf field int64 numerator = 1; + * @param int|string $var + * @return $this + */ + public function setNumerator($var) + { + GPBUtil::checkInt64($var); + $this->numerator = $var; + + return $this; + } + + /** + * The value by which the numerator is divided, e.g. 3 in 2/3. Must be + * positive. + * + * Generated from protobuf field int64 denominator = 2; + * @return int|string + */ + public function getDenominator() + { + return $this->denominator; + } + + /** + * The value by which the numerator is divided, e.g. 3 in 2/3. Must be + * positive. + * + * Generated from protobuf field int64 denominator = 2; + * @param int|string $var + * @return $this + */ + public function setDenominator($var) + { + GPBUtil::checkInt64($var); + $this->denominator = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Interval.php b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Interval.php new file mode 100644 index 000000000000..e6cfa8578c98 --- /dev/null +++ b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Interval.php @@ -0,0 +1,141 @@ +google.type.Interval + */ +class Interval extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Inclusive start of the interval. + * If specified, a Timestamp matching this interval will have to be the same + * or after the start. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 1; + */ + protected $start_time = null; + /** + * Optional. Exclusive end of the interval. + * If specified, a Timestamp matching this interval will have to be before the + * end. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 2; + */ + protected $end_time = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\Timestamp $start_time + * Optional. Inclusive start of the interval. + * If specified, a Timestamp matching this interval will have to be the same + * or after the start. + * @type \Google\Protobuf\Timestamp $end_time + * Optional. Exclusive end of the interval. + * If specified, a Timestamp matching this interval will have to be before the + * end. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Type\Interval::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Inclusive start of the interval. + * If specified, a Timestamp matching this interval will have to be the same + * or after the start. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 1; + * @return \Google\Protobuf\Timestamp|null + */ + public function getStartTime() + { + return $this->start_time; + } + + public function hasStartTime() + { + return isset($this->start_time); + } + + public function clearStartTime() + { + unset($this->start_time); + } + + /** + * Optional. Inclusive start of the interval. + * If specified, a Timestamp matching this interval will have to be the same + * or after the start. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 1; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setStartTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->start_time = $var; + + return $this; + } + + /** + * Optional. Exclusive end of the interval. + * If specified, a Timestamp matching this interval will have to be before the + * end. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 2; + * @return \Google\Protobuf\Timestamp|null + */ + public function getEndTime() + { + return $this->end_time; + } + + public function hasEndTime() + { + return isset($this->end_time); + } + + public function clearEndTime() + { + unset($this->end_time); + } + + /** + * Optional. Exclusive end of the interval. + * If specified, a Timestamp matching this interval will have to be before the + * end. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 2; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setEndTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->end_time = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/LatLng.php b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/LatLng.php new file mode 100644 index 000000000000..51358f7448da --- /dev/null +++ b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/LatLng.php @@ -0,0 +1,105 @@ + + * WGS84 standard. Values must be within normalized ranges. + * + * Generated from protobuf message google.type.LatLng + */ +class LatLng extends \Google\Protobuf\Internal\Message +{ + /** + * The latitude in degrees. It must be in the range [-90.0, +90.0]. + * + * Generated from protobuf field double latitude = 1; + */ + protected $latitude = 0.0; + /** + * The longitude in degrees. It must be in the range [-180.0, +180.0]. + * + * Generated from protobuf field double longitude = 2; + */ + protected $longitude = 0.0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type float $latitude + * The latitude in degrees. It must be in the range [-90.0, +90.0]. + * @type float $longitude + * The longitude in degrees. It must be in the range [-180.0, +180.0]. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Type\Latlng::initOnce(); + parent::__construct($data); + } + + /** + * The latitude in degrees. It must be in the range [-90.0, +90.0]. + * + * Generated from protobuf field double latitude = 1; + * @return float + */ + public function getLatitude() + { + return $this->latitude; + } + + /** + * The latitude in degrees. It must be in the range [-90.0, +90.0]. + * + * Generated from protobuf field double latitude = 1; + * @param float $var + * @return $this + */ + public function setLatitude($var) + { + GPBUtil::checkDouble($var); + $this->latitude = $var; + + return $this; + } + + /** + * The longitude in degrees. It must be in the range [-180.0, +180.0]. + * + * Generated from protobuf field double longitude = 2; + * @return float + */ + public function getLongitude() + { + return $this->longitude; + } + + /** + * The longitude in degrees. It must be in the range [-180.0, +180.0]. + * + * Generated from protobuf field double longitude = 2; + * @param float $var + * @return $this + */ + public function setLongitude($var) + { + GPBUtil::checkDouble($var); + $this->longitude = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/LocalizedText.php b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/LocalizedText.php new file mode 100644 index 000000000000..d8bf0743e737 --- /dev/null +++ b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/LocalizedText.php @@ -0,0 +1,113 @@ +google.type.LocalizedText + */ +class LocalizedText extends \Google\Protobuf\Internal\Message +{ + /** + * Localized string in the language corresponding to + * [language_code][google.type.LocalizedText.language_code] below. + * + * Generated from protobuf field string text = 1; + */ + protected $text = ''; + /** + * The text's BCP-47 language code, such as "en-US" or "sr-Latn". + * For more information, see + * http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. + * + * Generated from protobuf field string language_code = 2; + */ + protected $language_code = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $text + * Localized string in the language corresponding to + * [language_code][google.type.LocalizedText.language_code] below. + * @type string $language_code + * The text's BCP-47 language code, such as "en-US" or "sr-Latn". + * For more information, see + * http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Type\LocalizedText::initOnce(); + parent::__construct($data); + } + + /** + * Localized string in the language corresponding to + * [language_code][google.type.LocalizedText.language_code] below. + * + * Generated from protobuf field string text = 1; + * @return string + */ + public function getText() + { + return $this->text; + } + + /** + * Localized string in the language corresponding to + * [language_code][google.type.LocalizedText.language_code] below. + * + * Generated from protobuf field string text = 1; + * @param string $var + * @return $this + */ + public function setText($var) + { + GPBUtil::checkString($var, True); + $this->text = $var; + + return $this; + } + + /** + * The text's BCP-47 language code, such as "en-US" or "sr-Latn". + * For more information, see + * http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. + * + * Generated from protobuf field string language_code = 2; + * @return string + */ + public function getLanguageCode() + { + return $this->language_code; + } + + /** + * The text's BCP-47 language code, such as "en-US" or "sr-Latn". + * For more information, see + * http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. + * + * Generated from protobuf field string language_code = 2; + * @param string $var + * @return $this + */ + public function setLanguageCode($var) + { + GPBUtil::checkString($var, True); + $this->language_code = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Money.php b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Money.php new file mode 100644 index 000000000000..47e3f3acdd9a --- /dev/null +++ b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Money.php @@ -0,0 +1,159 @@ +google.type.Money + */ +class Money extends \Google\Protobuf\Internal\Message +{ + /** + * The three-letter currency code defined in ISO 4217. + * + * Generated from protobuf field string currency_code = 1; + */ + protected $currency_code = ''; + /** + * The whole units of the amount. + * For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar. + * + * Generated from protobuf field int64 units = 2; + */ + protected $units = 0; + /** + * Number of nano (10^-9) units of the amount. + * The value must be between -999,999,999 and +999,999,999 inclusive. + * If `units` is positive, `nanos` must be positive or zero. + * If `units` is zero, `nanos` can be positive, zero, or negative. + * If `units` is negative, `nanos` must be negative or zero. + * For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000. + * + * Generated from protobuf field int32 nanos = 3; + */ + protected $nanos = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $currency_code + * The three-letter currency code defined in ISO 4217. + * @type int|string $units + * The whole units of the amount. + * For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar. + * @type int $nanos + * Number of nano (10^-9) units of the amount. + * The value must be between -999,999,999 and +999,999,999 inclusive. + * If `units` is positive, `nanos` must be positive or zero. + * If `units` is zero, `nanos` can be positive, zero, or negative. + * If `units` is negative, `nanos` must be negative or zero. + * For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Type\Money::initOnce(); + parent::__construct($data); + } + + /** + * The three-letter currency code defined in ISO 4217. + * + * Generated from protobuf field string currency_code = 1; + * @return string + */ + public function getCurrencyCode() + { + return $this->currency_code; + } + + /** + * The three-letter currency code defined in ISO 4217. + * + * Generated from protobuf field string currency_code = 1; + * @param string $var + * @return $this + */ + public function setCurrencyCode($var) + { + GPBUtil::checkString($var, True); + $this->currency_code = $var; + + return $this; + } + + /** + * The whole units of the amount. + * For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar. + * + * Generated from protobuf field int64 units = 2; + * @return int|string + */ + public function getUnits() + { + return $this->units; + } + + /** + * The whole units of the amount. + * For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar. + * + * Generated from protobuf field int64 units = 2; + * @param int|string $var + * @return $this + */ + public function setUnits($var) + { + GPBUtil::checkInt64($var); + $this->units = $var; + + return $this; + } + + /** + * Number of nano (10^-9) units of the amount. + * The value must be between -999,999,999 and +999,999,999 inclusive. + * If `units` is positive, `nanos` must be positive or zero. + * If `units` is zero, `nanos` can be positive, zero, or negative. + * If `units` is negative, `nanos` must be negative or zero. + * For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000. + * + * Generated from protobuf field int32 nanos = 3; + * @return int + */ + public function getNanos() + { + return $this->nanos; + } + + /** + * Number of nano (10^-9) units of the amount. + * The value must be between -999,999,999 and +999,999,999 inclusive. + * If `units` is positive, `nanos` must be positive or zero. + * If `units` is zero, `nanos` can be positive, zero, or negative. + * If `units` is negative, `nanos` must be negative or zero. + * For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000. + * + * Generated from protobuf field int32 nanos = 3; + * @param int $var + * @return $this + */ + public function setNanos($var) + { + GPBUtil::checkInt32($var); + $this->nanos = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Month.php b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Month.php new file mode 100644 index 000000000000..473d62ed3c1c --- /dev/null +++ b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Month.php @@ -0,0 +1,131 @@ +google.type.Month + */ +class Month +{ + /** + * The unspecified month. + * + * Generated from protobuf enum MONTH_UNSPECIFIED = 0; + */ + const MONTH_UNSPECIFIED = 0; + /** + * The month of January. + * + * Generated from protobuf enum JANUARY = 1; + */ + const JANUARY = 1; + /** + * The month of February. + * + * Generated from protobuf enum FEBRUARY = 2; + */ + const FEBRUARY = 2; + /** + * The month of March. + * + * Generated from protobuf enum MARCH = 3; + */ + const MARCH = 3; + /** + * The month of April. + * + * Generated from protobuf enum APRIL = 4; + */ + const APRIL = 4; + /** + * The month of May. + * + * Generated from protobuf enum MAY = 5; + */ + const MAY = 5; + /** + * The month of June. + * + * Generated from protobuf enum JUNE = 6; + */ + const JUNE = 6; + /** + * The month of July. + * + * Generated from protobuf enum JULY = 7; + */ + const JULY = 7; + /** + * The month of August. + * + * Generated from protobuf enum AUGUST = 8; + */ + const AUGUST = 8; + /** + * The month of September. + * + * Generated from protobuf enum SEPTEMBER = 9; + */ + const SEPTEMBER = 9; + /** + * The month of October. + * + * Generated from protobuf enum OCTOBER = 10; + */ + const OCTOBER = 10; + /** + * The month of November. + * + * Generated from protobuf enum NOVEMBER = 11; + */ + const NOVEMBER = 11; + /** + * The month of December. + * + * Generated from protobuf enum DECEMBER = 12; + */ + const DECEMBER = 12; + + private static $valueToName = [ + self::MONTH_UNSPECIFIED => 'MONTH_UNSPECIFIED', + self::JANUARY => 'JANUARY', + self::FEBRUARY => 'FEBRUARY', + self::MARCH => 'MARCH', + self::APRIL => 'APRIL', + self::MAY => 'MAY', + self::JUNE => 'JUNE', + self::JULY => 'JULY', + self::AUGUST => 'AUGUST', + self::SEPTEMBER => 'SEPTEMBER', + self::OCTOBER => 'OCTOBER', + self::NOVEMBER => 'NOVEMBER', + self::DECEMBER => 'DECEMBER', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/PhoneNumber.php b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/PhoneNumber.php new file mode 100644 index 000000000000..59c87e38eaae --- /dev/null +++ b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/PhoneNumber.php @@ -0,0 +1,230 @@ +google.type.PhoneNumber + */ +class PhoneNumber extends \Google\Protobuf\Internal\Message +{ + /** + * The phone number's extension. The extension is not standardized in ITU + * recommendations, except for being defined as a series of numbers with a + * maximum length of 40 digits. Other than digits, some other dialing + * characters such as ',' (indicating a wait) or '#' may be stored here. + * Note that no regions currently use extensions with short codes, so this + * field is normally only set in conjunction with an E.164 number. It is held + * separately from the E.164 number to allow for short code extensions in the + * future. + * + * Generated from protobuf field string extension = 3; + */ + protected $extension = ''; + protected $kind; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $e164_number + * The phone number, represented as a leading plus sign ('+'), followed by a + * phone number that uses a relaxed ITU E.164 format consisting of the + * country calling code (1 to 3 digits) and the subscriber number, with no + * additional spaces or formatting. For example: + * - correct: "+15552220123" + * - incorrect: "+1 (555) 222-01234 x123" + * The ITU E.164 format limits the latter to 12 digits, but in practice not + * all countries respect that, so we relax that restriction here. + * National-only numbers are not allowed. + * References: + * - https://www.itu.int/rec/T-REC-E.164-201011-I + * - https://en.wikipedia.org/wiki/E.164. + * - https://en.wikipedia.org/wiki/List_of_country_calling_codes + * @type \Google\Type\PhoneNumber\ShortCode $short_code + * A short code. + * Reference(s): + * - https://wikipedia.org/wiki/Short_code + * @type string $extension + * The phone number's extension. The extension is not standardized in ITU + * recommendations, except for being defined as a series of numbers with a + * maximum length of 40 digits. Other than digits, some other dialing + * characters such as ',' (indicating a wait) or '#' may be stored here. + * Note that no regions currently use extensions with short codes, so this + * field is normally only set in conjunction with an E.164 number. It is held + * separately from the E.164 number to allow for short code extensions in the + * future. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Type\PhoneNumber::initOnce(); + parent::__construct($data); + } + + /** + * The phone number, represented as a leading plus sign ('+'), followed by a + * phone number that uses a relaxed ITU E.164 format consisting of the + * country calling code (1 to 3 digits) and the subscriber number, with no + * additional spaces or formatting. For example: + * - correct: "+15552220123" + * - incorrect: "+1 (555) 222-01234 x123" + * The ITU E.164 format limits the latter to 12 digits, but in practice not + * all countries respect that, so we relax that restriction here. + * National-only numbers are not allowed. + * References: + * - https://www.itu.int/rec/T-REC-E.164-201011-I + * - https://en.wikipedia.org/wiki/E.164. + * - https://en.wikipedia.org/wiki/List_of_country_calling_codes + * + * Generated from protobuf field string e164_number = 1; + * @return string + */ + public function getE164Number() + { + return $this->readOneof(1); + } + + public function hasE164Number() + { + return $this->hasOneof(1); + } + + /** + * The phone number, represented as a leading plus sign ('+'), followed by a + * phone number that uses a relaxed ITU E.164 format consisting of the + * country calling code (1 to 3 digits) and the subscriber number, with no + * additional spaces or formatting. For example: + * - correct: "+15552220123" + * - incorrect: "+1 (555) 222-01234 x123" + * The ITU E.164 format limits the latter to 12 digits, but in practice not + * all countries respect that, so we relax that restriction here. + * National-only numbers are not allowed. + * References: + * - https://www.itu.int/rec/T-REC-E.164-201011-I + * - https://en.wikipedia.org/wiki/E.164. + * - https://en.wikipedia.org/wiki/List_of_country_calling_codes + * + * Generated from protobuf field string e164_number = 1; + * @param string $var + * @return $this + */ + public function setE164Number($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * A short code. + * Reference(s): + * - https://wikipedia.org/wiki/Short_code + * + * Generated from protobuf field .google.type.PhoneNumber.ShortCode short_code = 2; + * @return \Google\Type\PhoneNumber\ShortCode|null + */ + public function getShortCode() + { + return $this->readOneof(2); + } + + public function hasShortCode() + { + return $this->hasOneof(2); + } + + /** + * A short code. + * Reference(s): + * - https://wikipedia.org/wiki/Short_code + * + * Generated from protobuf field .google.type.PhoneNumber.ShortCode short_code = 2; + * @param \Google\Type\PhoneNumber\ShortCode $var + * @return $this + */ + public function setShortCode($var) + { + GPBUtil::checkMessage($var, \Google\Type\PhoneNumber\ShortCode::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * The phone number's extension. The extension is not standardized in ITU + * recommendations, except for being defined as a series of numbers with a + * maximum length of 40 digits. Other than digits, some other dialing + * characters such as ',' (indicating a wait) or '#' may be stored here. + * Note that no regions currently use extensions with short codes, so this + * field is normally only set in conjunction with an E.164 number. It is held + * separately from the E.164 number to allow for short code extensions in the + * future. + * + * Generated from protobuf field string extension = 3; + * @return string + */ + public function getExtension() + { + return $this->extension; + } + + /** + * The phone number's extension. The extension is not standardized in ITU + * recommendations, except for being defined as a series of numbers with a + * maximum length of 40 digits. Other than digits, some other dialing + * characters such as ',' (indicating a wait) or '#' may be stored here. + * Note that no regions currently use extensions with short codes, so this + * field is normally only set in conjunction with an E.164 number. It is held + * separately from the E.164 number to allow for short code extensions in the + * future. + * + * Generated from protobuf field string extension = 3; + * @param string $var + * @return $this + */ + public function setExtension($var) + { + GPBUtil::checkString($var, True); + $this->extension = $var; + + return $this; + } + + /** + * @return string + */ + public function getKind() + { + return $this->whichOneof("kind"); + } + +} + diff --git a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/PhoneNumber/ShortCode.php b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/PhoneNumber/ShortCode.php new file mode 100644 index 000000000000..9969db91ca95 --- /dev/null +++ b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/PhoneNumber/ShortCode.php @@ -0,0 +1,125 @@ +google.type.PhoneNumber.ShortCode + */ +class ShortCode extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The BCP-47 region code of the location where calls to this + * short code can be made, such as "US" and "BB". + * Reference(s): + * - http://www.unicode.org/reports/tr35/#unicode_region_subtag + * + * Generated from protobuf field string region_code = 1; + */ + protected $region_code = ''; + /** + * Required. The short code digits, without a leading plus ('+') or country + * calling code. For example "611". + * + * Generated from protobuf field string number = 2; + */ + protected $number = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $region_code + * Required. The BCP-47 region code of the location where calls to this + * short code can be made, such as "US" and "BB". + * Reference(s): + * - http://www.unicode.org/reports/tr35/#unicode_region_subtag + * @type string $number + * Required. The short code digits, without a leading plus ('+') or country + * calling code. For example "611". + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Type\PhoneNumber::initOnce(); + parent::__construct($data); + } + + /** + * Required. The BCP-47 region code of the location where calls to this + * short code can be made, such as "US" and "BB". + * Reference(s): + * - http://www.unicode.org/reports/tr35/#unicode_region_subtag + * + * Generated from protobuf field string region_code = 1; + * @return string + */ + public function getRegionCode() + { + return $this->region_code; + } + + /** + * Required. The BCP-47 region code of the location where calls to this + * short code can be made, such as "US" and "BB". + * Reference(s): + * - http://www.unicode.org/reports/tr35/#unicode_region_subtag + * + * Generated from protobuf field string region_code = 1; + * @param string $var + * @return $this + */ + public function setRegionCode($var) + { + GPBUtil::checkString($var, True); + $this->region_code = $var; + + return $this; + } + + /** + * Required. The short code digits, without a leading plus ('+') or country + * calling code. For example "611". + * + * Generated from protobuf field string number = 2; + * @return string + */ + public function getNumber() + { + return $this->number; + } + + /** + * Required. The short code digits, without a leading plus ('+') or country + * calling code. For example "611". + * + * Generated from protobuf field string number = 2; + * @param string $var + * @return $this + */ + public function setNumber($var) + { + GPBUtil::checkString($var, True); + $this->number = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/PostalAddress.php b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/PostalAddress.php new file mode 100644 index 000000000000..8ffb01a3ed25 --- /dev/null +++ b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/PostalAddress.php @@ -0,0 +1,631 @@ +google.type.PostalAddress + */ +class PostalAddress extends \Google\Protobuf\Internal\Message +{ + /** + * The schema revision of the `PostalAddress`. This must be set to 0, which is + * the latest revision. + * All new revisions **must** be backward compatible with old revisions. + * + * Generated from protobuf field int32 revision = 1; + */ + protected $revision = 0; + /** + * Required. CLDR region code of the country/region of the address. This + * is never inferred and it is up to the user to ensure the value is + * correct. See https://cldr.unicode.org/ and + * https://www.unicode.org/cldr/charts/30/supplemental/territory_information.html + * for details. Example: "CH" for Switzerland. + * + * Generated from protobuf field string region_code = 2; + */ + protected $region_code = ''; + /** + * Optional. BCP-47 language code of the contents of this address (if + * known). This is often the UI language of the input form or is expected + * to match one of the languages used in the address' country/region, or their + * transliterated equivalents. + * This can affect formatting in certain countries, but is not critical + * to the correctness of the data and will never affect any validation or + * other non-formatting related operations. + * If this value is not known, it should be omitted (rather than specifying a + * possibly incorrect default). + * Examples: "zh-Hant", "ja", "ja-Latn", "en". + * + * Generated from protobuf field string language_code = 3; + */ + protected $language_code = ''; + /** + * Optional. Postal code of the address. Not all countries use or require + * postal codes to be present, but where they are used, they may trigger + * additional validation with other parts of the address (for example, + * state or zip code validation in the United States). + * + * Generated from protobuf field string postal_code = 4; + */ + protected $postal_code = ''; + /** + * Optional. Additional, country-specific, sorting code. This is not used + * in most regions. Where it is used, the value is either a string like + * "CEDEX", optionally followed by a number (for example, "CEDEX 7"), or just + * a number alone, representing the "sector code" (Jamaica), "delivery area + * indicator" (Malawi) or "post office indicator" (Côte d'Ivoire). + * + * Generated from protobuf field string sorting_code = 5; + */ + protected $sorting_code = ''; + /** + * Optional. Highest administrative subdivision which is used for postal + * addresses of a country or region. + * For example, this can be a state, a province, an oblast, or a prefecture. + * For Spain, this is the province and not the autonomous + * community (for example, "Barcelona" and not "Catalonia"). + * Many countries don't use an administrative area in postal addresses. For + * example, in Switzerland, this should be left unpopulated. + * + * Generated from protobuf field string administrative_area = 6; + */ + protected $administrative_area = ''; + /** + * Optional. Generally refers to the city or town portion of the address. + * Examples: US city, IT comune, UK post town. + * In regions of the world where localities are not well defined or do not fit + * into this structure well, leave `locality` empty and use `address_lines`. + * + * Generated from protobuf field string locality = 7; + */ + protected $locality = ''; + /** + * Optional. Sublocality of the address. + * For example, this can be a neighborhood, borough, or district. + * + * Generated from protobuf field string sublocality = 8; + */ + protected $sublocality = ''; + /** + * Unstructured address lines describing the lower levels of an address. + * Because values in `address_lines` do not have type information and may + * sometimes contain multiple values in a single field (for example, + * "Austin, TX"), it is important that the line order is clear. The order of + * address lines should be "envelope order" for the country or region of the + * address. In places where this can vary (for example, Japan), + * `address_language` is used to make it explicit (for example, "ja" for + * large-to-small ordering and "ja-Latn" or "en" for small-to-large). In this + * way, the most specific line of an address can be selected based on the + * language. + * The minimum permitted structural representation of an address consists + * of a `region_code` with all remaining information placed in the + * `address_lines`. It would be possible to format such an address very + * approximately without geocoding, but no semantic reasoning could be + * made about any of the address components until it was at least + * partially resolved. + * Creating an address only containing a `region_code` and `address_lines` and + * then geocoding is the recommended way to handle completely unstructured + * addresses (as opposed to guessing which parts of the address should be + * localities or administrative areas). + * + * Generated from protobuf field repeated string address_lines = 9; + */ + private $address_lines; + /** + * Optional. The recipient at the address. + * This field may, under certain circumstances, contain multiline information. + * For example, it might contain "care of" information. + * + * Generated from protobuf field repeated string recipients = 10; + */ + private $recipients; + /** + * Optional. The name of the organization at the address. + * + * Generated from protobuf field string organization = 11; + */ + protected $organization = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $revision + * The schema revision of the `PostalAddress`. This must be set to 0, which is + * the latest revision. + * All new revisions **must** be backward compatible with old revisions. + * @type string $region_code + * Required. CLDR region code of the country/region of the address. This + * is never inferred and it is up to the user to ensure the value is + * correct. See https://cldr.unicode.org/ and + * https://www.unicode.org/cldr/charts/30/supplemental/territory_information.html + * for details. Example: "CH" for Switzerland. + * @type string $language_code + * Optional. BCP-47 language code of the contents of this address (if + * known). This is often the UI language of the input form or is expected + * to match one of the languages used in the address' country/region, or their + * transliterated equivalents. + * This can affect formatting in certain countries, but is not critical + * to the correctness of the data and will never affect any validation or + * other non-formatting related operations. + * If this value is not known, it should be omitted (rather than specifying a + * possibly incorrect default). + * Examples: "zh-Hant", "ja", "ja-Latn", "en". + * @type string $postal_code + * Optional. Postal code of the address. Not all countries use or require + * postal codes to be present, but where they are used, they may trigger + * additional validation with other parts of the address (for example, + * state or zip code validation in the United States). + * @type string $sorting_code + * Optional. Additional, country-specific, sorting code. This is not used + * in most regions. Where it is used, the value is either a string like + * "CEDEX", optionally followed by a number (for example, "CEDEX 7"), or just + * a number alone, representing the "sector code" (Jamaica), "delivery area + * indicator" (Malawi) or "post office indicator" (Côte d'Ivoire). + * @type string $administrative_area + * Optional. Highest administrative subdivision which is used for postal + * addresses of a country or region. + * For example, this can be a state, a province, an oblast, or a prefecture. + * For Spain, this is the province and not the autonomous + * community (for example, "Barcelona" and not "Catalonia"). + * Many countries don't use an administrative area in postal addresses. For + * example, in Switzerland, this should be left unpopulated. + * @type string $locality + * Optional. Generally refers to the city or town portion of the address. + * Examples: US city, IT comune, UK post town. + * In regions of the world where localities are not well defined or do not fit + * into this structure well, leave `locality` empty and use `address_lines`. + * @type string $sublocality + * Optional. Sublocality of the address. + * For example, this can be a neighborhood, borough, or district. + * @type string[] $address_lines + * Unstructured address lines describing the lower levels of an address. + * Because values in `address_lines` do not have type information and may + * sometimes contain multiple values in a single field (for example, + * "Austin, TX"), it is important that the line order is clear. The order of + * address lines should be "envelope order" for the country or region of the + * address. In places where this can vary (for example, Japan), + * `address_language` is used to make it explicit (for example, "ja" for + * large-to-small ordering and "ja-Latn" or "en" for small-to-large). In this + * way, the most specific line of an address can be selected based on the + * language. + * The minimum permitted structural representation of an address consists + * of a `region_code` with all remaining information placed in the + * `address_lines`. It would be possible to format such an address very + * approximately without geocoding, but no semantic reasoning could be + * made about any of the address components until it was at least + * partially resolved. + * Creating an address only containing a `region_code` and `address_lines` and + * then geocoding is the recommended way to handle completely unstructured + * addresses (as opposed to guessing which parts of the address should be + * localities or administrative areas). + * @type string[] $recipients + * Optional. The recipient at the address. + * This field may, under certain circumstances, contain multiline information. + * For example, it might contain "care of" information. + * @type string $organization + * Optional. The name of the organization at the address. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Type\PostalAddress::initOnce(); + parent::__construct($data); + } + + /** + * The schema revision of the `PostalAddress`. This must be set to 0, which is + * the latest revision. + * All new revisions **must** be backward compatible with old revisions. + * + * Generated from protobuf field int32 revision = 1; + * @return int + */ + public function getRevision() + { + return $this->revision; + } + + /** + * The schema revision of the `PostalAddress`. This must be set to 0, which is + * the latest revision. + * All new revisions **must** be backward compatible with old revisions. + * + * Generated from protobuf field int32 revision = 1; + * @param int $var + * @return $this + */ + public function setRevision($var) + { + GPBUtil::checkInt32($var); + $this->revision = $var; + + return $this; + } + + /** + * Required. CLDR region code of the country/region of the address. This + * is never inferred and it is up to the user to ensure the value is + * correct. See https://cldr.unicode.org/ and + * https://www.unicode.org/cldr/charts/30/supplemental/territory_information.html + * for details. Example: "CH" for Switzerland. + * + * Generated from protobuf field string region_code = 2; + * @return string + */ + public function getRegionCode() + { + return $this->region_code; + } + + /** + * Required. CLDR region code of the country/region of the address. This + * is never inferred and it is up to the user to ensure the value is + * correct. See https://cldr.unicode.org/ and + * https://www.unicode.org/cldr/charts/30/supplemental/territory_information.html + * for details. Example: "CH" for Switzerland. + * + * Generated from protobuf field string region_code = 2; + * @param string $var + * @return $this + */ + public function setRegionCode($var) + { + GPBUtil::checkString($var, True); + $this->region_code = $var; + + return $this; + } + + /** + * Optional. BCP-47 language code of the contents of this address (if + * known). This is often the UI language of the input form or is expected + * to match one of the languages used in the address' country/region, or their + * transliterated equivalents. + * This can affect formatting in certain countries, but is not critical + * to the correctness of the data and will never affect any validation or + * other non-formatting related operations. + * If this value is not known, it should be omitted (rather than specifying a + * possibly incorrect default). + * Examples: "zh-Hant", "ja", "ja-Latn", "en". + * + * Generated from protobuf field string language_code = 3; + * @return string + */ + public function getLanguageCode() + { + return $this->language_code; + } + + /** + * Optional. BCP-47 language code of the contents of this address (if + * known). This is often the UI language of the input form or is expected + * to match one of the languages used in the address' country/region, or their + * transliterated equivalents. + * This can affect formatting in certain countries, but is not critical + * to the correctness of the data and will never affect any validation or + * other non-formatting related operations. + * If this value is not known, it should be omitted (rather than specifying a + * possibly incorrect default). + * Examples: "zh-Hant", "ja", "ja-Latn", "en". + * + * Generated from protobuf field string language_code = 3; + * @param string $var + * @return $this + */ + public function setLanguageCode($var) + { + GPBUtil::checkString($var, True); + $this->language_code = $var; + + return $this; + } + + /** + * Optional. Postal code of the address. Not all countries use or require + * postal codes to be present, but where they are used, they may trigger + * additional validation with other parts of the address (for example, + * state or zip code validation in the United States). + * + * Generated from protobuf field string postal_code = 4; + * @return string + */ + public function getPostalCode() + { + return $this->postal_code; + } + + /** + * Optional. Postal code of the address. Not all countries use or require + * postal codes to be present, but where they are used, they may trigger + * additional validation with other parts of the address (for example, + * state or zip code validation in the United States). + * + * Generated from protobuf field string postal_code = 4; + * @param string $var + * @return $this + */ + public function setPostalCode($var) + { + GPBUtil::checkString($var, True); + $this->postal_code = $var; + + return $this; + } + + /** + * Optional. Additional, country-specific, sorting code. This is not used + * in most regions. Where it is used, the value is either a string like + * "CEDEX", optionally followed by a number (for example, "CEDEX 7"), or just + * a number alone, representing the "sector code" (Jamaica), "delivery area + * indicator" (Malawi) or "post office indicator" (Côte d'Ivoire). + * + * Generated from protobuf field string sorting_code = 5; + * @return string + */ + public function getSortingCode() + { + return $this->sorting_code; + } + + /** + * Optional. Additional, country-specific, sorting code. This is not used + * in most regions. Where it is used, the value is either a string like + * "CEDEX", optionally followed by a number (for example, "CEDEX 7"), or just + * a number alone, representing the "sector code" (Jamaica), "delivery area + * indicator" (Malawi) or "post office indicator" (Côte d'Ivoire). + * + * Generated from protobuf field string sorting_code = 5; + * @param string $var + * @return $this + */ + public function setSortingCode($var) + { + GPBUtil::checkString($var, True); + $this->sorting_code = $var; + + return $this; + } + + /** + * Optional. Highest administrative subdivision which is used for postal + * addresses of a country or region. + * For example, this can be a state, a province, an oblast, or a prefecture. + * For Spain, this is the province and not the autonomous + * community (for example, "Barcelona" and not "Catalonia"). + * Many countries don't use an administrative area in postal addresses. For + * example, in Switzerland, this should be left unpopulated. + * + * Generated from protobuf field string administrative_area = 6; + * @return string + */ + public function getAdministrativeArea() + { + return $this->administrative_area; + } + + /** + * Optional. Highest administrative subdivision which is used for postal + * addresses of a country or region. + * For example, this can be a state, a province, an oblast, or a prefecture. + * For Spain, this is the province and not the autonomous + * community (for example, "Barcelona" and not "Catalonia"). + * Many countries don't use an administrative area in postal addresses. For + * example, in Switzerland, this should be left unpopulated. + * + * Generated from protobuf field string administrative_area = 6; + * @param string $var + * @return $this + */ + public function setAdministrativeArea($var) + { + GPBUtil::checkString($var, True); + $this->administrative_area = $var; + + return $this; + } + + /** + * Optional. Generally refers to the city or town portion of the address. + * Examples: US city, IT comune, UK post town. + * In regions of the world where localities are not well defined or do not fit + * into this structure well, leave `locality` empty and use `address_lines`. + * + * Generated from protobuf field string locality = 7; + * @return string + */ + public function getLocality() + { + return $this->locality; + } + + /** + * Optional. Generally refers to the city or town portion of the address. + * Examples: US city, IT comune, UK post town. + * In regions of the world where localities are not well defined or do not fit + * into this structure well, leave `locality` empty and use `address_lines`. + * + * Generated from protobuf field string locality = 7; + * @param string $var + * @return $this + */ + public function setLocality($var) + { + GPBUtil::checkString($var, True); + $this->locality = $var; + + return $this; + } + + /** + * Optional. Sublocality of the address. + * For example, this can be a neighborhood, borough, or district. + * + * Generated from protobuf field string sublocality = 8; + * @return string + */ + public function getSublocality() + { + return $this->sublocality; + } + + /** + * Optional. Sublocality of the address. + * For example, this can be a neighborhood, borough, or district. + * + * Generated from protobuf field string sublocality = 8; + * @param string $var + * @return $this + */ + public function setSublocality($var) + { + GPBUtil::checkString($var, True); + $this->sublocality = $var; + + return $this; + } + + /** + * Unstructured address lines describing the lower levels of an address. + * Because values in `address_lines` do not have type information and may + * sometimes contain multiple values in a single field (for example, + * "Austin, TX"), it is important that the line order is clear. The order of + * address lines should be "envelope order" for the country or region of the + * address. In places where this can vary (for example, Japan), + * `address_language` is used to make it explicit (for example, "ja" for + * large-to-small ordering and "ja-Latn" or "en" for small-to-large). In this + * way, the most specific line of an address can be selected based on the + * language. + * The minimum permitted structural representation of an address consists + * of a `region_code` with all remaining information placed in the + * `address_lines`. It would be possible to format such an address very + * approximately without geocoding, but no semantic reasoning could be + * made about any of the address components until it was at least + * partially resolved. + * Creating an address only containing a `region_code` and `address_lines` and + * then geocoding is the recommended way to handle completely unstructured + * addresses (as opposed to guessing which parts of the address should be + * localities or administrative areas). + * + * Generated from protobuf field repeated string address_lines = 9; + * @return RepeatedField + */ + public function getAddressLines() + { + return $this->address_lines; + } + + /** + * Unstructured address lines describing the lower levels of an address. + * Because values in `address_lines` do not have type information and may + * sometimes contain multiple values in a single field (for example, + * "Austin, TX"), it is important that the line order is clear. The order of + * address lines should be "envelope order" for the country or region of the + * address. In places where this can vary (for example, Japan), + * `address_language` is used to make it explicit (for example, "ja" for + * large-to-small ordering and "ja-Latn" or "en" for small-to-large). In this + * way, the most specific line of an address can be selected based on the + * language. + * The minimum permitted structural representation of an address consists + * of a `region_code` with all remaining information placed in the + * `address_lines`. It would be possible to format such an address very + * approximately without geocoding, but no semantic reasoning could be + * made about any of the address components until it was at least + * partially resolved. + * Creating an address only containing a `region_code` and `address_lines` and + * then geocoding is the recommended way to handle completely unstructured + * addresses (as opposed to guessing which parts of the address should be + * localities or administrative areas). + * + * Generated from protobuf field repeated string address_lines = 9; + * @param string[] $var + * @return $this + */ + public function setAddressLines($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->address_lines = $arr; + + return $this; + } + + /** + * Optional. The recipient at the address. + * This field may, under certain circumstances, contain multiline information. + * For example, it might contain "care of" information. + * + * Generated from protobuf field repeated string recipients = 10; + * @return RepeatedField + */ + public function getRecipients() + { + return $this->recipients; + } + + /** + * Optional. The recipient at the address. + * This field may, under certain circumstances, contain multiline information. + * For example, it might contain "care of" information. + * + * Generated from protobuf field repeated string recipients = 10; + * @param string[] $var + * @return $this + */ + public function setRecipients($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->recipients = $arr; + + return $this; + } + + /** + * Optional. The name of the organization at the address. + * + * Generated from protobuf field string organization = 11; + * @return string + */ + public function getOrganization() + { + return $this->organization; + } + + /** + * Optional. The name of the organization at the address. + * + * Generated from protobuf field string organization = 11; + * @param string $var + * @return $this + */ + public function setOrganization($var) + { + GPBUtil::checkString($var, True); + $this->organization = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Quaternion.php b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Quaternion.php new file mode 100644 index 000000000000..61437a5940dd --- /dev/null +++ b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Quaternion.php @@ -0,0 +1,212 @@ +google.type.Quaternion + */ +class Quaternion extends \Google\Protobuf\Internal\Message +{ + /** + * The x component. + * + * Generated from protobuf field double x = 1; + */ + protected $x = 0.0; + /** + * The y component. + * + * Generated from protobuf field double y = 2; + */ + protected $y = 0.0; + /** + * The z component. + * + * Generated from protobuf field double z = 3; + */ + protected $z = 0.0; + /** + * The scalar component. + * + * Generated from protobuf field double w = 4; + */ + protected $w = 0.0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type float $x + * The x component. + * @type float $y + * The y component. + * @type float $z + * The z component. + * @type float $w + * The scalar component. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Type\Quaternion::initOnce(); + parent::__construct($data); + } + + /** + * The x component. + * + * Generated from protobuf field double x = 1; + * @return float + */ + public function getX() + { + return $this->x; + } + + /** + * The x component. + * + * Generated from protobuf field double x = 1; + * @param float $var + * @return $this + */ + public function setX($var) + { + GPBUtil::checkDouble($var); + $this->x = $var; + + return $this; + } + + /** + * The y component. + * + * Generated from protobuf field double y = 2; + * @return float + */ + public function getY() + { + return $this->y; + } + + /** + * The y component. + * + * Generated from protobuf field double y = 2; + * @param float $var + * @return $this + */ + public function setY($var) + { + GPBUtil::checkDouble($var); + $this->y = $var; + + return $this; + } + + /** + * The z component. + * + * Generated from protobuf field double z = 3; + * @return float + */ + public function getZ() + { + return $this->z; + } + + /** + * The z component. + * + * Generated from protobuf field double z = 3; + * @param float $var + * @return $this + */ + public function setZ($var) + { + GPBUtil::checkDouble($var); + $this->z = $var; + + return $this; + } + + /** + * The scalar component. + * + * Generated from protobuf field double w = 4; + * @return float + */ + public function getW() + { + return $this->w; + } + + /** + * The scalar component. + * + * Generated from protobuf field double w = 4; + * @param float $var + * @return $this + */ + public function setW($var) + { + GPBUtil::checkDouble($var); + $this->w = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/TimeOfDay.php b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/TimeOfDay.php new file mode 100644 index 000000000000..ce64f28515bc --- /dev/null +++ b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/TimeOfDay.php @@ -0,0 +1,196 @@ +google.type.TimeOfDay + */ +class TimeOfDay extends \Google\Protobuf\Internal\Message +{ + /** + * Hours of a day in 24 hour format. Must be greater than or equal to 0 and + * typically must be less than or equal to 23. An API may choose to allow the + * value "24:00:00" for scenarios like business closing time. + * + * Generated from protobuf field int32 hours = 1; + */ + protected $hours = 0; + /** + * Minutes of an hour. Must be greater than or equal to 0 and less than or + * equal to 59. + * + * Generated from protobuf field int32 minutes = 2; + */ + protected $minutes = 0; + /** + * Seconds of a minute. Must be greater than or equal to 0 and typically must + * be less than or equal to 59. An API may allow the value 60 if it allows + * leap-seconds. + * + * Generated from protobuf field int32 seconds = 3; + */ + protected $seconds = 0; + /** + * Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 + * and less than or equal to 999,999,999. + * + * Generated from protobuf field int32 nanos = 4; + */ + protected $nanos = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $hours + * Hours of a day in 24 hour format. Must be greater than or equal to 0 and + * typically must be less than or equal to 23. An API may choose to allow the + * value "24:00:00" for scenarios like business closing time. + * @type int $minutes + * Minutes of an hour. Must be greater than or equal to 0 and less than or + * equal to 59. + * @type int $seconds + * Seconds of a minute. Must be greater than or equal to 0 and typically must + * be less than or equal to 59. An API may allow the value 60 if it allows + * leap-seconds. + * @type int $nanos + * Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 + * and less than or equal to 999,999,999. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Type\Timeofday::initOnce(); + parent::__construct($data); + } + + /** + * Hours of a day in 24 hour format. Must be greater than or equal to 0 and + * typically must be less than or equal to 23. An API may choose to allow the + * value "24:00:00" for scenarios like business closing time. + * + * Generated from protobuf field int32 hours = 1; + * @return int + */ + public function getHours() + { + return $this->hours; + } + + /** + * Hours of a day in 24 hour format. Must be greater than or equal to 0 and + * typically must be less than or equal to 23. An API may choose to allow the + * value "24:00:00" for scenarios like business closing time. + * + * Generated from protobuf field int32 hours = 1; + * @param int $var + * @return $this + */ + public function setHours($var) + { + GPBUtil::checkInt32($var); + $this->hours = $var; + + return $this; + } + + /** + * Minutes of an hour. Must be greater than or equal to 0 and less than or + * equal to 59. + * + * Generated from protobuf field int32 minutes = 2; + * @return int + */ + public function getMinutes() + { + return $this->minutes; + } + + /** + * Minutes of an hour. Must be greater than or equal to 0 and less than or + * equal to 59. + * + * Generated from protobuf field int32 minutes = 2; + * @param int $var + * @return $this + */ + public function setMinutes($var) + { + GPBUtil::checkInt32($var); + $this->minutes = $var; + + return $this; + } + + /** + * Seconds of a minute. Must be greater than or equal to 0 and typically must + * be less than or equal to 59. An API may allow the value 60 if it allows + * leap-seconds. + * + * Generated from protobuf field int32 seconds = 3; + * @return int + */ + public function getSeconds() + { + return $this->seconds; + } + + /** + * Seconds of a minute. Must be greater than or equal to 0 and typically must + * be less than or equal to 59. An API may allow the value 60 if it allows + * leap-seconds. + * + * Generated from protobuf field int32 seconds = 3; + * @param int $var + * @return $this + */ + public function setSeconds($var) + { + GPBUtil::checkInt32($var); + $this->seconds = $var; + + return $this; + } + + /** + * Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 + * and less than or equal to 999,999,999. + * + * Generated from protobuf field int32 nanos = 4; + * @return int + */ + public function getNanos() + { + return $this->nanos; + } + + /** + * Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 + * and less than or equal to 999,999,999. + * + * Generated from protobuf field int32 nanos = 4; + * @param int $var + * @return $this + */ + public function setNanos($var) + { + GPBUtil::checkInt32($var); + $this->nanos = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/TimeZone.php b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/TimeZone.php new file mode 100644 index 000000000000..2657d6f7d664 --- /dev/null +++ b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/TimeZone.php @@ -0,0 +1,102 @@ +google.type.TimeZone + */ +class TimeZone extends \Google\Protobuf\Internal\Message +{ + /** + * IANA Time Zone Database time zone. For example "America/New_York". + * + * Generated from protobuf field string id = 1; + */ + protected $id = ''; + /** + * Optional. IANA Time Zone Database version number. For example "2019a". + * + * Generated from protobuf field string version = 2; + */ + protected $version = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $id + * IANA Time Zone Database time zone. For example "America/New_York". + * @type string $version + * Optional. IANA Time Zone Database version number. For example "2019a". + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Type\Datetime::initOnce(); + parent::__construct($data); + } + + /** + * IANA Time Zone Database time zone. For example "America/New_York". + * + * Generated from protobuf field string id = 1; + * @return string + */ + public function getId() + { + return $this->id; + } + + /** + * IANA Time Zone Database time zone. For example "America/New_York". + * + * Generated from protobuf field string id = 1; + * @param string $var + * @return $this + */ + public function setId($var) + { + GPBUtil::checkString($var, True); + $this->id = $var; + + return $this; + } + + /** + * Optional. IANA Time Zone Database version number. For example "2019a". + * + * Generated from protobuf field string version = 2; + * @return string + */ + public function getVersion() + { + return $this->version; + } + + /** + * Optional. IANA Time Zone Database version number. For example "2019a". + * + * Generated from protobuf field string version = 2; + * @param string $var + * @return $this + */ + public function setVersion($var) + { + GPBUtil::checkString($var, True); + $this->version = $var; + + return $this; + } + +} + From a96f9d7a2c1cb3ef91e5cb3c984543824647e4fb Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Fri, 27 Mar 2026 22:13:23 +0000 Subject: [PATCH 4/4] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?= =?UTF-8?q?st-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- CommonProtos/metadata/Type/Color.php | 2 +- CommonProtos/metadata/Type/Date.php | 2 +- CommonProtos/metadata/Type/Datetime.php | 2 +- CommonProtos/metadata/Type/Decimal.php | 2 +- CommonProtos/metadata/Type/Interval.php | 2 +- CommonProtos/metadata/Type/Latlng.php | 2 +- CommonProtos/metadata/Type/LocalizedText.php | 2 +- CommonProtos/metadata/Type/Money.php | 2 +- CommonProtos/metadata/Type/PhoneNumber.php | 2 +- CommonProtos/metadata/Type/PostalAddress.php | 2 +- CommonProtos/metadata/Type/Quaternion.php | 2 +- CommonProtos/metadata/Type/Timeofday.php | 2 +- CommonProtos/src/Type/Color.php | 16 +- CommonProtos/src/Type/Date.php | 16 +- CommonProtos/src/Type/DateTime.php | 96 +- CommonProtos/src/Type/Decimal.php | 53 +- CommonProtos/src/Type/LatLng.php | 6 +- CommonProtos/src/Type/LocalizedText.php | 12 +- CommonProtos/src/Type/PhoneNumber.php | 32 +- .../src/Type/PhoneNumber/ShortCode.php | 13 +- CommonProtos/src/Type/PostalAddress.php | 221 +-- CommonProtos/src/Type/Quaternion.php | 3 +- CommonProtos/src/Type/TimeOfDay.php | 64 +- CommonProtos/src/Type/TimeZone.php | 16 +- .../GPBMetadata/Google/Api/Annotations.php | 25 - .../proto/src/GPBMetadata/Google/Api/Auth.php | 24 - .../src/GPBMetadata/Google/Api/Backend.php | 24 - .../src/GPBMetadata/Google/Api/Billing.php | 24 - .../src/GPBMetadata/Google/Api/Client.php | 26 - .../GPBMetadata/Google/Api/ConfigChange.php | 24 - .../src/GPBMetadata/Google/Api/Consumer.php | 24 - .../src/GPBMetadata/Google/Api/Context.php | 24 - .../src/GPBMetadata/Google/Api/Control.php | 25 - .../GPBMetadata/Google/Api/Distribution.php | 26 - .../GPBMetadata/Google/Api/Documentation.php | 24 - .../src/GPBMetadata/Google/Api/Endpoint.php | 24 - .../GPBMetadata/Google/Api/ErrorReason.php | 24 - .../GPBMetadata/Google/Api/FieldBehavior.php | 24 - .../src/GPBMetadata/Google/Api/FieldInfo.php | 24 - .../proto/src/GPBMetadata/Google/Api/Http.php | 24 - .../src/GPBMetadata/Google/Api/Httpbody.php | 25 - .../src/GPBMetadata/Google/Api/Label.php | 24 - .../GPBMetadata/Google/Api/LaunchStage.php | 24 - .../proto/src/GPBMetadata/Google/Api/Log.php | 25 - .../src/GPBMetadata/Google/Api/Logging.php | 24 - .../src/GPBMetadata/Google/Api/Metric.php | 27 - .../Google/Api/MonitoredResource.php | 27 - .../src/GPBMetadata/Google/Api/Monitoring.php | 24 - .../src/GPBMetadata/Google/Api/Policy.php | 24 - .../src/GPBMetadata/Google/Api/Quota.php | 24 - .../src/GPBMetadata/Google/Api/Resource.php | 24 - .../src/GPBMetadata/Google/Api/Routing.php | 24 - .../src/GPBMetadata/Google/Api/Service.php | 45 - .../src/GPBMetadata/Google/Api/SourceInfo.php | 25 - .../Google/Api/SystemParameter.php | 24 - .../src/GPBMetadata/Google/Api/Usage.php | 24 - .../src/GPBMetadata/Google/Api/Visibility.php | 24 - .../api/proto/src/Google/Api/Advice.php | 72 - .../api/proto/src/Google/Api/AuthProvider.php | 419 ------ .../proto/src/Google/Api/AuthRequirement.php | 159 --- .../proto/src/Google/Api/Authentication.php | 120 -- .../src/Google/Api/AuthenticationRule.php | 197 --- .../api/proto/src/Google/Api/Backend.php | 71 - .../api/proto/src/Google/Api/BackendRule.php | 592 -------- .../Api/BackendRule/PathTranslation.php | 92 -- .../src/Google/Api/BatchingConfigProto.php | 121 -- .../Google/Api/BatchingDescriptorProto.php | 157 --- .../src/Google/Api/BatchingSettingsProto.php | 337 ----- .../api/proto/src/Google/Api/Billing.php | 107 -- .../Google/Api/Billing/BillingDestination.php | 118 -- .../api/proto/src/Google/Api/ChangeType.php | 72 - .../Google/Api/ClientLibraryDestination.php | 63 - .../Google/Api/ClientLibraryOrganization.php | 97 -- .../src/Google/Api/ClientLibrarySettings.php | 499 ------- .../src/Google/Api/CommonLanguageSettings.php | 156 --- .../api/proto/src/Google/Api/ConfigChange.php | 251 ---- .../api/proto/src/Google/Api/Context.php | 98 -- .../api/proto/src/Google/Api/ContextRule.php | 228 --- .../api/proto/src/Google/Api/Control.php | 112 -- .../api/proto/src/Google/Api/CppSettings.php | 77 - .../src/Google/Api/CustomHttpPattern.php | 101 -- .../api/proto/src/Google/Api/Distribution.php | 390 ------ .../Google/Api/Distribution/BucketOptions.php | 154 -- .../Distribution/BucketOptions/Explicit.php | 74 - .../BucketOptions/Exponential.php | 141 -- .../Api/Distribution/BucketOptions/Linear.php | 141 -- .../src/Google/Api/Distribution/Exemplar.php | 177 --- .../src/Google/Api/Distribution/Range.php | 101 -- .../proto/src/Google/Api/Documentation.php | 362 ----- .../src/Google/Api/DocumentationRule.php | 171 --- .../proto/src/Google/Api/DotnetSettings.php | 307 ---- .../api/proto/src/Google/Api/Endpoint.php | 231 --- .../api/proto/src/Google/Api/ErrorReason.php | 895 ------------ .../proto/src/Google/Api/FieldBehavior.php | 133 -- .../api/proto/src/Google/Api/FieldInfo.php | 117 -- .../proto/src/Google/Api/FieldInfo/Format.php | 89 -- .../api/proto/src/Google/Api/FieldPolicy.php | 181 --- .../FlowControlLimitExceededBehaviorProto.php | 68 - .../api/proto/src/Google/Api/GoSettings.php | 139 -- .../api/proto/src/Google/Api/Http.php | 123 -- .../api/proto/src/Google/Api/HttpBody.php | 168 --- .../api/proto/src/Google/Api/HttpRule.php | 651 --------- .../api/proto/src/Google/Api/JavaSettings.php | 225 --- .../api/proto/src/Google/Api/JwtLocation.php | 199 --- .../proto/src/Google/Api/LabelDescriptor.php | 135 -- .../Google/Api/LabelDescriptor/ValueType.php | 61 - .../api/proto/src/Google/Api/LaunchStage.php | 118 -- .../proto/src/Google/Api/LogDescriptor.php | 203 --- .../api/proto/src/Google/Api/Logging.php | 151 -- .../Google/Api/Logging/LoggingDestination.php | 122 -- .../api/proto/src/Google/Api/MethodPolicy.php | 121 -- .../proto/src/Google/Api/MethodSettings.php | 321 ----- .../Google/Api/MethodSettings/LongRunning.php | 223 --- .../api/proto/src/Google/Api/Metric.php | 114 -- .../proto/src/Google/Api/MetricDescriptor.php | 831 ----------- .../MetricDescriptorMetadata.php | 224 --- .../TimeSeriesResourceHierarchyLevel.php | 68 - .../Api/MetricDescriptor/MetricKind.php | 74 - .../Google/Api/MetricDescriptor/ValueType.php | 91 -- .../api/proto/src/Google/Api/MetricRule.php | 126 -- .../src/Google/Api/MonitoredResource.php | 147 -- .../Api/MonitoredResourceDescriptor.php | 309 ---- .../Google/Api/MonitoredResourceMetadata.php | 148 -- .../api/proto/src/Google/Api/Monitoring.php | 190 --- .../Api/Monitoring/MonitoringDestination.php | 118 -- .../api/proto/src/Google/Api/NodeSettings.php | 77 - .../src/Google/Api/OAuthRequirements.php | 96 -- .../api/proto/src/Google/Api/Page.php | 200 --- .../api/proto/src/Google/Api/PhpSettings.php | 147 -- .../src/Google/Api/ProjectProperties.php | 80 -- .../api/proto/src/Google/Api/Property.php | 142 -- .../src/Google/Api/Property/PropertyType.php | 75 - .../api/proto/src/Google/Api/Publishing.php | 453 ------ .../proto/src/Google/Api/PythonSettings.php | 121 -- .../PythonSettings/ExperimentalFeatures.php | 173 --- .../api/proto/src/Google/Api/Quota.php | 144 -- .../api/proto/src/Google/Api/QuotaLimit.php | 527 ------- .../src/Google/Api/ResourceDescriptor.php | 495 ------- .../Google/Api/ResourceDescriptor/History.php | 65 - .../Google/Api/ResourceDescriptor/Style.php | 59 - .../src/Google/Api/ResourceReference.php | 190 --- .../proto/src/Google/Api/RoutingParameter.php | 281 ---- .../api/proto/src/Google/Api/RoutingRule.php | 356 ----- .../api/proto/src/Google/Api/RubySettings.php | 77 - .../Google/Api/SelectiveGapicGeneration.php | 126 -- .../api/proto/src/Google/Api/Service.php | 1242 ----------------- .../api/proto/src/Google/Api/SourceInfo.php | 67 - .../proto/src/Google/Api/SystemParameter.php | 145 -- .../src/Google/Api/SystemParameterRule.php | 130 -- .../proto/src/Google/Api/SystemParameters.php | 155 -- .../proto/src/Google/Api/TypeReference.php | 91 -- .../api/proto/src/Google/Api/Usage.php | 191 --- .../api/proto/src/Google/Api/UsageRule.php | 175 --- .../api/proto/src/Google/Api/Visibility.php | 88 -- .../proto/src/Google/Api/VisibilityRule.php | 150 -- .../Google/Cloud/ExtendedOperations.php | 24 - .../Google/Cloud/OperationResponseMapping.php | 86 -- .../GPBMetadata/Google/Iam/V1/IamPolicy.php | 31 - .../Google/Iam/V1/Logging/AuditData.php | 25 - .../src/GPBMetadata/Google/Iam/V1/Options.php | 24 - .../src/GPBMetadata/Google/Iam/V1/Policy.php | 25 - .../Google/Iam/V1/ResourcePolicyMember.php | 25 - .../src/Google/Cloud/Iam/V1/AuditConfig.php | 155 -- .../Google/Cloud/Iam/V1/AuditConfigDelta.php | 202 --- .../Cloud/Iam/V1/AuditConfigDelta/Action.php | 61 - .../Google/Cloud/Iam/V1/AuditLogConfig.php | 129 -- .../Cloud/Iam/V1/AuditLogConfig/LogType.php | 69 - .../proto/src/Google/Cloud/Iam/V1/Binding.php | 301 ---- .../src/Google/Cloud/Iam/V1/BindingDelta.php | 200 --- .../Cloud/Iam/V1/BindingDelta/Action.php | 61 - .../Cloud/Iam/V1/GetIamPolicyRequest.php | 119 -- .../Google/Cloud/Iam/V1/GetPolicyOptions.php | 119 -- .../proto/src/Google/Cloud/Iam/V1/Policy.php | 377 ----- .../src/Google/Cloud/Iam/V1/PolicyDelta.php | 101 -- .../Cloud/Iam/V1/ResourcePolicyMember.php | 142 -- .../Cloud/Iam/V1/SetIamPolicyRequest.php | 183 --- .../Iam/V1/TestIamPermissionsRequest.php | 117 -- .../Iam/V1/TestIamPermissionsResponse.php | 71 - .../src/Google/Iam/V1/Logging/AuditData.php | 79 -- .../Google/Iam/V1/Logging/AuditData.php | 25 - .../src/Google/Iam/V1/Logging/AuditData.php | 79 -- .../Google/Cloud/Location/Locations.php | 27 - .../Cloud/Location/GetLocationRequest.php | 67 - .../Cloud/Location/ListLocationsRequest.php | 169 --- .../Cloud/Location/ListLocationsResponse.php | 101 -- .../src/Google/Cloud/Location/Location.php | 229 --- .../Google/Logging/Type/HttpRequest.php | 25 - .../Google/Logging/Type/LogSeverity.php | 24 - .../Google/Cloud/Logging/Type/HttpRequest.php | 627 --------- .../Google/Cloud/Logging/Type/LogSeverity.php | 119 -- .../proto/src/GPBMetadata/Google/Rpc/Code.php | 24 - .../Google/Rpc/Context/AttributeContext.php | 28 - .../Google/Rpc/Context/AuditContext.php | 25 - .../GPBMetadata/Google/Rpc/ErrorDetails.php | 25 - .../src/GPBMetadata/Google/Rpc/Status.php | 25 - .../rpc/proto/src/Google/Rpc/BadRequest.php | 68 - .../Google/Rpc/BadRequest/FieldViolation.php | 315 ----- .../rpc/proto/src/Google/Rpc/Code.php | 243 ---- .../Google/Rpc/Context/AttributeContext.php | 419 ------ .../Rpc/Context/AttributeContext/Api.php | 195 --- .../Rpc/Context/AttributeContext/Auth.php | 355 ----- .../Rpc/Context/AttributeContext/Peer.php | 222 --- .../Rpc/Context/AttributeContext/Request.php | 507 ------- .../Rpc/Context/AttributeContext/Resource.php | 613 -------- .../Rpc/Context/AttributeContext/Response.php | 248 ---- .../src/Google/Rpc/Context/AuditContext.php | 247 ---- .../rpc/proto/src/Google/Rpc/DebugInfo.php | 101 -- .../rpc/proto/src/Google/Rpc/ErrorInfo.php | 217 --- .../rpc/proto/src/Google/Rpc/Help.php | 70 - .../rpc/proto/src/Google/Rpc/Help/Link.php | 101 -- .../proto/src/Google/Rpc/LocalizedMessage.php | 110 -- .../src/Google/Rpc/PreconditionFailure.php | 70 - .../Rpc/PreconditionFailure/Violation.php | 159 --- .../rpc/proto/src/Google/Rpc/QuotaFailure.php | 75 - .../src/Google/Rpc/QuotaFailure/Violation.php | 500 ------- .../rpc/proto/src/Google/Rpc/RequestInfo.php | 110 -- .../rpc/proto/src/Google/Rpc/ResourceInfo.php | 205 --- .../rpc/proto/src/Google/Rpc/RetryInfo.php | 87 -- .../rpc/proto/src/Google/Rpc/Status.php | 160 --- .../Google/Type/CalendarPeriod.php | 24 - .../src/GPBMetadata/Google/Type/Color.php | 25 - .../src/GPBMetadata/Google/Type/Date.php | 24 - .../src/GPBMetadata/Google/Type/Datetime.php | 25 - .../src/GPBMetadata/Google/Type/Dayofweek.php | 24 - .../src/GPBMetadata/Google/Type/Decimal.php | 24 - .../src/GPBMetadata/Google/Type/Expr.php | 24 - .../src/GPBMetadata/Google/Type/Fraction.php | 24 - .../src/GPBMetadata/Google/Type/Interval.php | 25 - .../src/GPBMetadata/Google/Type/Latlng.php | 24 - .../GPBMetadata/Google/Type/LocalizedText.php | 24 - .../src/GPBMetadata/Google/Type/Money.php | 24 - .../src/GPBMetadata/Google/Type/Month.php | 24 - .../GPBMetadata/Google/Type/PhoneNumber.php | 24 - .../GPBMetadata/Google/Type/PostalAddress.php | 24 - .../GPBMetadata/Google/Type/Quaternion.php | 24 - .../src/GPBMetadata/Google/Type/Timeofday.php | 24 - .../proto/src/Google/Type/CalendarPeriod.php | 102 -- .../type/proto/src/Google/Type/Color.php | 360 ----- .../type/proto/src/Google/Type/Date.php | 163 --- .../type/proto/src/Google/Type/DateTime.php | 397 ------ .../type/proto/src/Google/Type/DayOfWeek.php | 96 -- .../type/proto/src/Google/Type/Decimal.php | 247 ---- .../type/proto/src/Google/Type/Expr.php | 210 --- .../type/proto/src/Google/Type/Fraction.php | 105 -- .../type/proto/src/Google/Type/Interval.php | 141 -- .../type/proto/src/Google/Type/LatLng.php | 105 -- .../proto/src/Google/Type/LocalizedText.php | 113 -- .../type/proto/src/Google/Type/Money.php | 159 --- .../type/proto/src/Google/Type/Month.php | 131 -- .../proto/src/Google/Type/PhoneNumber.php | 230 --- .../src/Google/Type/PhoneNumber/ShortCode.php | 125 -- .../proto/src/Google/Type/PostalAddress.php | 631 --------- .../type/proto/src/Google/Type/Quaternion.php | 212 --- .../type/proto/src/Google/Type/TimeOfDay.php | 196 --- .../type/proto/src/Google/Type/TimeZone.php | 102 -- 255 files changed, 303 insertions(+), 34841 deletions(-) delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Annotations.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Auth.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Backend.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Billing.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Client.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/ConfigChange.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Consumer.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Context.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Control.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Distribution.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Documentation.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Endpoint.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/ErrorReason.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/FieldBehavior.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/FieldInfo.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Http.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Httpbody.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Label.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/LaunchStage.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Log.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Logging.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Metric.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/MonitoredResource.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Monitoring.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Policy.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Quota.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Resource.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Routing.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Service.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/SourceInfo.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/SystemParameter.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Usage.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Visibility.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Advice.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/AuthProvider.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/AuthRequirement.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Authentication.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/AuthenticationRule.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Backend.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/BackendRule.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/BackendRule/PathTranslation.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/BatchingConfigProto.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/BatchingDescriptorProto.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/BatchingSettingsProto.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Billing.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Billing/BillingDestination.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ChangeType.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ClientLibraryDestination.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ClientLibraryOrganization.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ClientLibrarySettings.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/CommonLanguageSettings.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ConfigChange.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Context.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ContextRule.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Control.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/CppSettings.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/CustomHttpPattern.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/BucketOptions.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/BucketOptions/Explicit.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/BucketOptions/Exponential.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/BucketOptions/Linear.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/Exemplar.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/Range.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Documentation.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/DocumentationRule.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/DotnetSettings.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Endpoint.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ErrorReason.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/FieldBehavior.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/FieldInfo.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/FieldInfo/Format.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/FieldPolicy.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/FlowControlLimitExceededBehaviorProto.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/GoSettings.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Http.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/HttpBody.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/HttpRule.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/JavaSettings.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/JwtLocation.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/LabelDescriptor.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/LabelDescriptor/ValueType.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/LaunchStage.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/LogDescriptor.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Logging.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Logging/LoggingDestination.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MethodPolicy.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MethodSettings.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MethodSettings/LongRunning.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Metric.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricDescriptor.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricDescriptor/MetricDescriptorMetadata.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricDescriptor/MetricDescriptorMetadata/TimeSeriesResourceHierarchyLevel.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricDescriptor/MetricKind.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricDescriptor/ValueType.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricRule.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MonitoredResource.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MonitoredResourceDescriptor.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MonitoredResourceMetadata.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Monitoring.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Monitoring/MonitoringDestination.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/NodeSettings.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/OAuthRequirements.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Page.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/PhpSettings.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ProjectProperties.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Property.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Property/PropertyType.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Publishing.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/PythonSettings.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/PythonSettings/ExperimentalFeatures.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Quota.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/QuotaLimit.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ResourceDescriptor.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ResourceDescriptor/History.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ResourceDescriptor/Style.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ResourceReference.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/RoutingParameter.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/RoutingRule.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/RubySettings.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/SelectiveGapicGeneration.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Service.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/SourceInfo.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/SystemParameter.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/SystemParameterRule.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/SystemParameters.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/TypeReference.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Usage.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/UsageRule.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Visibility.php delete mode 100644 owl-bot-staging/CommonProtos/api/proto/src/Google/Api/VisibilityRule.php delete mode 100644 owl-bot-staging/CommonProtos/extendedoperations/proto/src/GPBMetadata/Google/Cloud/ExtendedOperations.php delete mode 100644 owl-bot-staging/CommonProtos/extendedoperations/proto/src/Google/Cloud/OperationResponseMapping.php delete mode 100644 owl-bot-staging/CommonProtos/iam/proto/src/GPBMetadata/Google/Iam/V1/IamPolicy.php delete mode 100644 owl-bot-staging/CommonProtos/iam/proto/src/GPBMetadata/Google/Iam/V1/Logging/AuditData.php delete mode 100644 owl-bot-staging/CommonProtos/iam/proto/src/GPBMetadata/Google/Iam/V1/Options.php delete mode 100644 owl-bot-staging/CommonProtos/iam/proto/src/GPBMetadata/Google/Iam/V1/Policy.php delete mode 100644 owl-bot-staging/CommonProtos/iam/proto/src/GPBMetadata/Google/Iam/V1/ResourcePolicyMember.php delete mode 100644 owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/AuditConfig.php delete mode 100644 owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/AuditConfigDelta.php delete mode 100644 owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/AuditConfigDelta/Action.php delete mode 100644 owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/AuditLogConfig.php delete mode 100644 owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/AuditLogConfig/LogType.php delete mode 100644 owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/Binding.php delete mode 100644 owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/BindingDelta.php delete mode 100644 owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/BindingDelta/Action.php delete mode 100644 owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/GetIamPolicyRequest.php delete mode 100644 owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/GetPolicyOptions.php delete mode 100644 owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/Policy.php delete mode 100644 owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/PolicyDelta.php delete mode 100644 owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/ResourcePolicyMember.php delete mode 100644 owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/SetIamPolicyRequest.php delete mode 100644 owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/TestIamPermissionsRequest.php delete mode 100644 owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/TestIamPermissionsResponse.php delete mode 100644 owl-bot-staging/CommonProtos/iam/proto/src/Google/Iam/V1/Logging/AuditData.php delete mode 100644 owl-bot-staging/CommonProtos/iamlogging/proto/src/GPBMetadata/Google/Iam/V1/Logging/AuditData.php delete mode 100644 owl-bot-staging/CommonProtos/iamlogging/proto/src/Google/Iam/V1/Logging/AuditData.php delete mode 100644 owl-bot-staging/CommonProtos/location/proto/src/GPBMetadata/Google/Cloud/Location/Locations.php delete mode 100644 owl-bot-staging/CommonProtos/location/proto/src/Google/Cloud/Location/GetLocationRequest.php delete mode 100644 owl-bot-staging/CommonProtos/location/proto/src/Google/Cloud/Location/ListLocationsRequest.php delete mode 100644 owl-bot-staging/CommonProtos/location/proto/src/Google/Cloud/Location/ListLocationsResponse.php delete mode 100644 owl-bot-staging/CommonProtos/location/proto/src/Google/Cloud/Location/Location.php delete mode 100644 owl-bot-staging/CommonProtos/logging/proto/src/GPBMetadata/Google/Logging/Type/HttpRequest.php delete mode 100644 owl-bot-staging/CommonProtos/logging/proto/src/GPBMetadata/Google/Logging/Type/LogSeverity.php delete mode 100644 owl-bot-staging/CommonProtos/logging/proto/src/Google/Cloud/Logging/Type/HttpRequest.php delete mode 100644 owl-bot-staging/CommonProtos/logging/proto/src/Google/Cloud/Logging/Type/LogSeverity.php delete mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/GPBMetadata/Google/Rpc/Code.php delete mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/GPBMetadata/Google/Rpc/Context/AttributeContext.php delete mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/GPBMetadata/Google/Rpc/Context/AuditContext.php delete mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/GPBMetadata/Google/Rpc/ErrorDetails.php delete mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/GPBMetadata/Google/Rpc/Status.php delete mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/BadRequest.php delete mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/BadRequest/FieldViolation.php delete mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Code.php delete mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext.php delete mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Api.php delete mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Auth.php delete mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Peer.php delete mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Request.php delete mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Resource.php delete mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Response.php delete mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AuditContext.php delete mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/DebugInfo.php delete mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/ErrorInfo.php delete mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Help.php delete mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Help/Link.php delete mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/LocalizedMessage.php delete mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/PreconditionFailure.php delete mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/PreconditionFailure/Violation.php delete mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/QuotaFailure.php delete mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/QuotaFailure/Violation.php delete mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/RequestInfo.php delete mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/ResourceInfo.php delete mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/RetryInfo.php delete mode 100644 owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Status.php delete mode 100644 owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/CalendarPeriod.php delete mode 100644 owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Color.php delete mode 100644 owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Date.php delete mode 100644 owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Datetime.php delete mode 100644 owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Dayofweek.php delete mode 100644 owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Decimal.php delete mode 100644 owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Expr.php delete mode 100644 owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Fraction.php delete mode 100644 owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Interval.php delete mode 100644 owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Latlng.php delete mode 100644 owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/LocalizedText.php delete mode 100644 owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Money.php delete mode 100644 owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Month.php delete mode 100644 owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/PhoneNumber.php delete mode 100644 owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/PostalAddress.php delete mode 100644 owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Quaternion.php delete mode 100644 owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Timeofday.php delete mode 100644 owl-bot-staging/CommonProtos/type/proto/src/Google/Type/CalendarPeriod.php delete mode 100644 owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Color.php delete mode 100644 owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Date.php delete mode 100644 owl-bot-staging/CommonProtos/type/proto/src/Google/Type/DateTime.php delete mode 100644 owl-bot-staging/CommonProtos/type/proto/src/Google/Type/DayOfWeek.php delete mode 100644 owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Decimal.php delete mode 100644 owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Expr.php delete mode 100644 owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Fraction.php delete mode 100644 owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Interval.php delete mode 100644 owl-bot-staging/CommonProtos/type/proto/src/Google/Type/LatLng.php delete mode 100644 owl-bot-staging/CommonProtos/type/proto/src/Google/Type/LocalizedText.php delete mode 100644 owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Money.php delete mode 100644 owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Month.php delete mode 100644 owl-bot-staging/CommonProtos/type/proto/src/Google/Type/PhoneNumber.php delete mode 100644 owl-bot-staging/CommonProtos/type/proto/src/Google/Type/PhoneNumber/ShortCode.php delete mode 100644 owl-bot-staging/CommonProtos/type/proto/src/Google/Type/PostalAddress.php delete mode 100644 owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Quaternion.php delete mode 100644 owl-bot-staging/CommonProtos/type/proto/src/Google/Type/TimeOfDay.php delete mode 100644 owl-bot-staging/CommonProtos/type/proto/src/Google/Type/TimeZone.php diff --git a/CommonProtos/metadata/Type/Color.php b/CommonProtos/metadata/Type/Color.php index c7fdd8a9d745..939b31ee6872 100644 --- a/CommonProtos/metadata/Type/Color.php +++ b/CommonProtos/metadata/Type/Color.php @@ -16,7 +16,7 @@ public static function initOnce() { } \GPBMetadata\Google\Protobuf\Wrappers::initOnce(); $pool->internalAddGeneratedFile( - "\x0A\xEF\x01\x0A\x17google/type/color.proto\x12\x0Bgoogle.type\"]\x0A\x05Color\x12\x0B\x0A\x03red\x18\x01 \x01(\x02\x12\x0D\x0A\x05green\x18\x02 \x01(\x02\x12\x0C\x0A\x04blue\x18\x03 \x01(\x02\x12*\x0A\x05alpha\x18\x04 \x01(\x0B2\x1B.google.protobuf.FloatValueB`\x0A\x0Fcom.google.typeB\x0AColorProtoP\x01Z6google.golang.org/genproto/googleapis/type/color;color\xF8\x01\x01\xA2\x02\x03GTPb\x06proto3" + "\x0A\xEC\x01\x0A\x17google/type/color.proto\x12\x0Bgoogle.type\"]\x0A\x05Color\x12\x0B\x0A\x03red\x18\x01 \x01(\x02\x12\x0D\x0A\x05green\x18\x02 \x01(\x02\x12\x0C\x0A\x04blue\x18\x03 \x01(\x02\x12*\x0A\x05alpha\x18\x04 \x01(\x0B2\x1B.google.protobuf.FloatValueB]\x0A\x0Fcom.google.typeB\x0AColorProtoP\x01Z6google.golang.org/genproto/googleapis/type/color;color\xA2\x02\x03GTPb\x06proto3" , true); static::$is_initialized = true; diff --git a/CommonProtos/metadata/Type/Date.php b/CommonProtos/metadata/Type/Date.php index dc7f1aa8e057..9713a2270f37 100644 --- a/CommonProtos/metadata/Type/Date.php +++ b/CommonProtos/metadata/Type/Date.php @@ -15,7 +15,7 @@ public static function initOnce() { return; } $pool->internalAddGeneratedFile( - "\x0A\xBE\x01\x0A\x16google/type/date.proto\x12\x0Bgoogle.type\"0\x0A\x04Date\x12\x0C\x0A\x04year\x18\x01 \x01(\x05\x12\x0D\x0A\x05month\x18\x02 \x01(\x05\x12\x0B\x0A\x03day\x18\x03 \x01(\x05B]\x0A\x0Fcom.google.typeB\x09DateProtoP\x01Z4google.golang.org/genproto/googleapis/type/date;date\xF8\x01\x01\xA2\x02\x03GTPb\x06proto3" + "\x0A\xBB\x01\x0A\x16google/type/date.proto\x12\x0Bgoogle.type\"0\x0A\x04Date\x12\x0C\x0A\x04year\x18\x01 \x01(\x05\x12\x0D\x0A\x05month\x18\x02 \x01(\x05\x12\x0B\x0A\x03day\x18\x03 \x01(\x05BZ\x0A\x0Fcom.google.typeB\x09DateProtoP\x01Z4google.golang.org/genproto/googleapis/type/date;date\xA2\x02\x03GTPb\x06proto3" , true); static::$is_initialized = true; diff --git a/CommonProtos/metadata/Type/Datetime.php b/CommonProtos/metadata/Type/Datetime.php index 20ae4747068d..60c0063cbd1e 100644 --- a/CommonProtos/metadata/Type/Datetime.php +++ b/CommonProtos/metadata/Type/Datetime.php @@ -16,7 +16,7 @@ public static function initOnce() { } \GPBMetadata\Google\Protobuf\Duration::initOnce(); $pool->internalAddGeneratedFile( - "\x0A\xA8\x03\x0A\x1Agoogle/type/datetime.proto\x12\x0Bgoogle.type\"\xE0\x01\x0A\x08DateTime\x12\x0C\x0A\x04year\x18\x01 \x01(\x05\x12\x0D\x0A\x05month\x18\x02 \x01(\x05\x12\x0B\x0A\x03day\x18\x03 \x01(\x05\x12\x0D\x0A\x05hours\x18\x04 \x01(\x05\x12\x0F\x0A\x07minutes\x18\x05 \x01(\x05\x12\x0F\x0A\x07seconds\x18\x06 \x01(\x05\x12\x0D\x0A\x05nanos\x18\x07 \x01(\x05\x12/\x0A\x0Autc_offset\x18\x08 \x01(\x0B2\x19.google.protobuf.DurationH\x00\x12*\x0A\x09time_zone\x18\x09 \x01(\x0B2\x15.google.type.TimeZoneH\x00B\x0D\x0A\x0Btime_offset\"'\x0A\x08TimeZone\x12\x0A\x0A\x02id\x18\x01 \x01(\x09\x12\x0F\x0A\x07version\x18\x02 \x01(\x09Bi\x0A\x0Fcom.google.typeB\x0DDateTimeProtoP\x01ZinternalAddGeneratedFile( - "\x0A\xB2\x01\x0A\x19google/type/decimal.proto\x12\x0Bgoogle.type\"\x18\x0A\x07Decimal\x12\x0D\x0A\x05value\x18\x01 \x01(\x09Bf\x0A\x0Fcom.google.typeB\x0CDecimalProtoP\x01Z:google.golang.org/genproto/googleapis/type/decimal;decimal\xF8\x01\x01\xA2\x02\x03GTPb\x06proto3" + "\x0A\xAF\x01\x0A\x19google/type/decimal.proto\x12\x0Bgoogle.type\"\x18\x0A\x07Decimal\x12\x0D\x0A\x05value\x18\x01 \x01(\x09Bc\x0A\x0Fcom.google.typeB\x0CDecimalProtoP\x01Z:google.golang.org/genproto/googleapis/type/decimal;decimal\xA2\x02\x03GTPb\x06proto3" , true); static::$is_initialized = true; diff --git a/CommonProtos/metadata/Type/Interval.php b/CommonProtos/metadata/Type/Interval.php index 82ea2e9f9a5a..99b0fd2591a9 100644 --- a/CommonProtos/metadata/Type/Interval.php +++ b/CommonProtos/metadata/Type/Interval.php @@ -16,7 +16,7 @@ public static function initOnce() { } \GPBMetadata\Google\Protobuf\Timestamp::initOnce(); $pool->internalAddGeneratedFile( - "\x0A\x86\x02\x0A\x1Agoogle/type/interval.proto\x12\x0Bgoogle.type\"h\x0A\x08Interval\x12.\x0A\x0Astart_time\x18\x01 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12,\x0A\x08end_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.TimestampBi\x0A\x0Fcom.google.typeB\x0DIntervalProtoP\x01ZinternalAddGeneratedFile( - "\x0A\xC3\x01\x0A\x18google/type/latlng.proto\x12\x0Bgoogle.type\"-\x0A\x06LatLng\x12\x10\x0A\x08latitude\x18\x01 \x01(\x01\x12\x11\x0A\x09longitude\x18\x02 \x01(\x01Bc\x0A\x0Fcom.google.typeB\x0BLatLngProtoP\x01Z8google.golang.org/genproto/googleapis/type/latlng;latlng\xF8\x01\x01\xA2\x02\x03GTPb\x06proto3" + "\x0A\xC0\x01\x0A\x18google/type/latlng.proto\x12\x0Bgoogle.type\"-\x0A\x06LatLng\x12\x10\x0A\x08latitude\x18\x01 \x01(\x01\x12\x11\x0A\x09longitude\x18\x02 \x01(\x01B`\x0A\x0Fcom.google.typeB\x0BLatLngProtoP\x01Z8google.golang.org/genproto/googleapis/type/latlng;latlng\xA2\x02\x03GTPb\x06proto3" , true); static::$is_initialized = true; diff --git a/CommonProtos/metadata/Type/LocalizedText.php b/CommonProtos/metadata/Type/LocalizedText.php index 73911d79e0d8..a96beba449b3 100644 --- a/CommonProtos/metadata/Type/LocalizedText.php +++ b/CommonProtos/metadata/Type/LocalizedText.php @@ -15,7 +15,7 @@ public static function initOnce() { return; } $pool->internalAddGeneratedFile( - "\x0A\xE9\x01\x0A google/type/localized_text.proto\x12\x0Bgoogle.type\"4\x0A\x0DLocalizedText\x12\x0C\x0A\x04text\x18\x01 \x01(\x09\x12\x15\x0A\x0Dlanguage_code\x18\x02 \x01(\x09Bz\x0A\x0Fcom.google.typeB\x12LocalizedTextProtoP\x01ZHgoogle.golang.org/genproto/googleapis/type/localized_text;localized_text\xF8\x01\x01\xA2\x02\x03GTPb\x06proto3" + "\x0A\xE6\x01\x0A google/type/localized_text.proto\x12\x0Bgoogle.type\"4\x0A\x0DLocalizedText\x12\x0C\x0A\x04text\x18\x01 \x01(\x09\x12\x15\x0A\x0Dlanguage_code\x18\x02 \x01(\x09Bw\x0A\x0Fcom.google.typeB\x12LocalizedTextProtoP\x01ZHgoogle.golang.org/genproto/googleapis/type/localized_text;localized_text\xA2\x02\x03GTPb\x06proto3" , true); static::$is_initialized = true; diff --git a/CommonProtos/metadata/Type/Money.php b/CommonProtos/metadata/Type/Money.php index 7b8b187ad95b..8a06499dace4 100644 --- a/CommonProtos/metadata/Type/Money.php +++ b/CommonProtos/metadata/Type/Money.php @@ -15,7 +15,7 @@ public static function initOnce() { return; } $pool->internalAddGeneratedFile( - "\x0A\xCE\x01\x0A\x17google/type/money.proto\x12\x0Bgoogle.type\"<\x0A\x05Money\x12\x15\x0A\x0Dcurrency_code\x18\x01 \x01(\x09\x12\x0D\x0A\x05units\x18\x02 \x01(\x03\x12\x0D\x0A\x05nanos\x18\x03 \x01(\x05B`\x0A\x0Fcom.google.typeB\x0AMoneyProtoP\x01Z6google.golang.org/genproto/googleapis/type/money;money\xF8\x01\x01\xA2\x02\x03GTPb\x06proto3" + "\x0A\xCB\x01\x0A\x17google/type/money.proto\x12\x0Bgoogle.type\"<\x0A\x05Money\x12\x15\x0A\x0Dcurrency_code\x18\x01 \x01(\x09\x12\x0D\x0A\x05units\x18\x02 \x01(\x03\x12\x0D\x0A\x05nanos\x18\x03 \x01(\x05B]\x0A\x0Fcom.google.typeB\x0AMoneyProtoP\x01Z6google.golang.org/genproto/googleapis/type/money;money\xA2\x02\x03GTPb\x06proto3" , true); static::$is_initialized = true; diff --git a/CommonProtos/metadata/Type/PhoneNumber.php b/CommonProtos/metadata/Type/PhoneNumber.php index 8434f51ba148..2c3bcb80745d 100644 --- a/CommonProtos/metadata/Type/PhoneNumber.php +++ b/CommonProtos/metadata/Type/PhoneNumber.php @@ -15,7 +15,7 @@ public static function initOnce() { return; } $pool->internalAddGeneratedFile( - "\x0A\xD9\x02\x0A\x1Egoogle/type/phone_number.proto\x12\x0Bgoogle.type\"\xAB\x01\x0A\x0BPhoneNumber\x12\x15\x0A\x0Be164_number\x18\x01 \x01(\x09H\x00\x128\x0A\x0Ashort_code\x18\x02 \x01(\x0B2\".google.type.PhoneNumber.ShortCodeH\x00\x12\x11\x0A\x09extension\x18\x03 \x01(\x09\x1A0\x0A\x09ShortCode\x12\x13\x0A\x0Bregion_code\x18\x01 \x01(\x09\x12\x0E\x0A\x06number\x18\x02 \x01(\x09B\x06\x0A\x04kindBt\x0A\x0Fcom.google.typeB\x10PhoneNumberProtoP\x01ZDgoogle.golang.org/genproto/googleapis/type/phone_number;phone_number\xF8\x01\x01\xA2\x02\x03GTPb\x06proto3" + "\x0A\xD6\x02\x0A\x1Egoogle/type/phone_number.proto\x12\x0Bgoogle.type\"\xAB\x01\x0A\x0BPhoneNumber\x12\x15\x0A\x0Be164_number\x18\x01 \x01(\x09H\x00\x128\x0A\x0Ashort_code\x18\x02 \x01(\x0B2\".google.type.PhoneNumber.ShortCodeH\x00\x12\x11\x0A\x09extension\x18\x03 \x01(\x09\x1A0\x0A\x09ShortCode\x12\x13\x0A\x0Bregion_code\x18\x01 \x01(\x09\x12\x0E\x0A\x06number\x18\x02 \x01(\x09B\x06\x0A\x04kindBq\x0A\x0Fcom.google.typeB\x10PhoneNumberProtoP\x01ZDgoogle.golang.org/genproto/googleapis/type/phone_number;phone_number\xA2\x02\x03GTPb\x06proto3" , true); static::$is_initialized = true; diff --git a/CommonProtos/metadata/Type/PostalAddress.php b/CommonProtos/metadata/Type/PostalAddress.php index c914ed0a3cdf..ecbf07694b64 100644 --- a/CommonProtos/metadata/Type/PostalAddress.php +++ b/CommonProtos/metadata/Type/PostalAddress.php @@ -15,7 +15,7 @@ public static function initOnce() { return; } $pool->internalAddGeneratedFile( - "\x0A\xB1\x03\x0A google/type/postal_address.proto\x12\x0Bgoogle.type\"\xFD\x01\x0A\x0DPostalAddress\x12\x10\x0A\x08revision\x18\x01 \x01(\x05\x12\x13\x0A\x0Bregion_code\x18\x02 \x01(\x09\x12\x15\x0A\x0Dlanguage_code\x18\x03 \x01(\x09\x12\x13\x0A\x0Bpostal_code\x18\x04 \x01(\x09\x12\x14\x0A\x0Csorting_code\x18\x05 \x01(\x09\x12\x1B\x0A\x13administrative_area\x18\x06 \x01(\x09\x12\x10\x0A\x08locality\x18\x07 \x01(\x09\x12\x13\x0A\x0Bsublocality\x18\x08 \x01(\x09\x12\x15\x0A\x0Daddress_lines\x18\x09 \x03(\x09\x12\x12\x0A\x0Arecipients\x18\x0A \x03(\x09\x12\x14\x0A\x0Corganization\x18\x0B \x01(\x09Bx\x0A\x0Fcom.google.typeB\x12PostalAddressProtoP\x01ZFgoogle.golang.org/genproto/googleapis/type/postaladdress;postaladdress\xF8\x01\x01\xA2\x02\x03GTPb\x06proto3" + "\x0A\xAE\x03\x0A google/type/postal_address.proto\x12\x0Bgoogle.type\"\xFD\x01\x0A\x0DPostalAddress\x12\x10\x0A\x08revision\x18\x01 \x01(\x05\x12\x13\x0A\x0Bregion_code\x18\x02 \x01(\x09\x12\x15\x0A\x0Dlanguage_code\x18\x03 \x01(\x09\x12\x13\x0A\x0Bpostal_code\x18\x04 \x01(\x09\x12\x14\x0A\x0Csorting_code\x18\x05 \x01(\x09\x12\x1B\x0A\x13administrative_area\x18\x06 \x01(\x09\x12\x10\x0A\x08locality\x18\x07 \x01(\x09\x12\x13\x0A\x0Bsublocality\x18\x08 \x01(\x09\x12\x15\x0A\x0Daddress_lines\x18\x09 \x03(\x09\x12\x12\x0A\x0Arecipients\x18\x0A \x03(\x09\x12\x14\x0A\x0Corganization\x18\x0B \x01(\x09Bu\x0A\x0Fcom.google.typeB\x12PostalAddressProtoP\x01ZFgoogle.golang.org/genproto/googleapis/type/postaladdress;postaladdress\xA2\x02\x03GTPb\x06proto3" , true); static::$is_initialized = true; diff --git a/CommonProtos/metadata/Type/Quaternion.php b/CommonProtos/metadata/Type/Quaternion.php index 8db65b49e6f2..ba38da693c32 100644 --- a/CommonProtos/metadata/Type/Quaternion.php +++ b/CommonProtos/metadata/Type/Quaternion.php @@ -15,7 +15,7 @@ public static function initOnce() { return; } $pool->internalAddGeneratedFile( - "\x0A\xDE\x01\x0A\x1Cgoogle/type/quaternion.proto\x12\x0Bgoogle.type\"8\x0A\x0AQuaternion\x12\x09\x0A\x01x\x18\x01 \x01(\x01\x12\x09\x0A\x01y\x18\x02 \x01(\x01\x12\x09\x0A\x01z\x18\x03 \x01(\x01\x12\x09\x0A\x01w\x18\x04 \x01(\x01Bo\x0A\x0Fcom.google.typeB\x0FQuaternionProtoP\x01Z@google.golang.org/genproto/googleapis/type/quaternion;quaternion\xF8\x01\x01\xA2\x02\x03GTPb\x06proto3" + "\x0A\xDB\x01\x0A\x1Cgoogle/type/quaternion.proto\x12\x0Bgoogle.type\"8\x0A\x0AQuaternion\x12\x09\x0A\x01x\x18\x01 \x01(\x01\x12\x09\x0A\x01y\x18\x02 \x01(\x01\x12\x09\x0A\x01z\x18\x03 \x01(\x01\x12\x09\x0A\x01w\x18\x04 \x01(\x01Bl\x0A\x0Fcom.google.typeB\x0FQuaternionProtoP\x01Z@google.golang.org/genproto/googleapis/type/quaternion;quaternion\xA2\x02\x03GTPb\x06proto3" , true); static::$is_initialized = true; diff --git a/CommonProtos/metadata/Type/Timeofday.php b/CommonProtos/metadata/Type/Timeofday.php index 8e2a973fdb1d..bc407c485071 100644 --- a/CommonProtos/metadata/Type/Timeofday.php +++ b/CommonProtos/metadata/Type/Timeofday.php @@ -15,7 +15,7 @@ public static function initOnce() { return; } $pool->internalAddGeneratedFile( - "\x0A\xED\x01\x0A\x1Bgoogle/type/timeofday.proto\x12\x0Bgoogle.type\"K\x0A\x09TimeOfDay\x12\x0D\x0A\x05hours\x18\x01 \x01(\x05\x12\x0F\x0A\x07minutes\x18\x02 \x01(\x05\x12\x0F\x0A\x07seconds\x18\x03 \x01(\x05\x12\x0D\x0A\x05nanos\x18\x04 \x01(\x05Bl\x0A\x0Fcom.google.typeB\x0ETimeOfDayProtoP\x01Z>google.golang.org/genproto/googleapis/type/timeofday;timeofday\xF8\x01\x01\xA2\x02\x03GTPb\x06proto3" + "\x0A\xEA\x01\x0A\x1Bgoogle/type/timeofday.proto\x12\x0Bgoogle.type\"K\x0A\x09TimeOfDay\x12\x0D\x0A\x05hours\x18\x01 \x01(\x05\x12\x0F\x0A\x07minutes\x18\x02 \x01(\x05\x12\x0F\x0A\x07seconds\x18\x03 \x01(\x05\x12\x0D\x0A\x05nanos\x18\x04 \x01(\x05Bi\x0A\x0Fcom.google.typeB\x0ETimeOfDayProtoP\x01Z>google.golang.org/genproto/googleapis/type/timeofday;timeofday\xA2\x02\x03GTPb\x06proto3" , true); static::$is_initialized = true; diff --git a/CommonProtos/src/Type/Color.php b/CommonProtos/src/Type/Color.php index 68cd805dbc3b..ae4a591a3057 100644 --- a/CommonProtos/src/Type/Color.php +++ b/CommonProtos/src/Type/Color.php @@ -10,20 +10,20 @@ /** * Represents a color in the RGBA color space. This representation is designed - * for simplicity of conversion to/from color representations in various + * for simplicity of conversion to and from color representations in various * languages over compactness. For example, the fields of this representation * can be trivially provided to the constructor of `java.awt.Color` in Java; it * can also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha` * method in iOS; and, with just a little work, it can be easily formatted into * a CSS `rgba()` string in JavaScript. - * This reference page doesn't carry information about the absolute color - * space - * that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB, - * DCI-P3, BT.2020, etc.). By default, applications should assume the sRGB color + * This reference page doesn't have information about the absolute color + * space that should be used to interpret the RGB value—for example, sRGB, + * Adobe RGB, + * DCI-P3, and BT.2020. By default, applications should assume the sRGB color * space. - * When color equality needs to be decided, implementations, unless - * documented otherwise, treat two colors as equal if all their red, - * green, blue, and alpha values each differ by at most 1e-5. + * When color equality needs to be decided, implementations, unless documented + * otherwise, treat two colors as equal if all their red, green, blue, and alpha + * values each differ by at most `1e-5`. * Example (Java): * import com.google.type.Color; * // ... diff --git a/CommonProtos/src/Type/Date.php b/CommonProtos/src/Type/Date.php index a2fb0c1d337b..a14cf9d38a92 100644 --- a/CommonProtos/src/Type/Date.php +++ b/CommonProtos/src/Type/Date.php @@ -13,13 +13,15 @@ * day and time zone are either specified elsewhere or are insignificant. The * date is relative to the Gregorian Calendar. This can represent one of the * following: - * * A full date, with non-zero year, month, and day values - * * A month and day value, with a zero year, such as an anniversary - * * A year on its own, with zero month and day values - * * A year and month value, with a zero day, such as a credit card expiration - * date - * Related types are [google.type.TimeOfDay][google.type.TimeOfDay] and - * `google.protobuf.Timestamp`. + * * A full date, with non-zero year, month, and day values. + * * A month and day, with a zero year (for example, an anniversary). + * * A year on its own, with a zero month and a zero day. + * * A year and month, with a zero day (for example, a credit card expiration + * date). + * Related types: + * * [google.type.TimeOfDay][google.type.TimeOfDay] + * * [google.type.DateTime][google.type.DateTime] + * * [google.protobuf.Timestamp][google.protobuf.Timestamp] * * Generated from protobuf message google.type.Date */ diff --git a/CommonProtos/src/Type/DateTime.php b/CommonProtos/src/Type/DateTime.php index 26eb06f4e743..42375f16ec96 100644 --- a/CommonProtos/src/Type/DateTime.php +++ b/CommonProtos/src/Type/DateTime.php @@ -18,8 +18,8 @@ * * When neither time_zone nor utc_offset is set: a civil time on a calendar * day in local time. * The date is relative to the Proleptic Gregorian Calendar. - * If year is 0, the DateTime is considered not to have a specific year. month - * and day must have valid, non-zero values. + * If year, month, or day are 0, the DateTime is considered not to have a + * specific year, month, or day respectively. * This type may also be used to represent a physical time if all the date and * time fields are set and either case of the `time_offset` oneof is set. * Consider using `Timestamp` message for physical time instead. If your use @@ -40,42 +40,43 @@ class DateTime extends \Google\Protobuf\Internal\Message */ protected $year = 0; /** - * Required. Month of year. Must be from 1 to 12. + * Optional. Month of year. Must be from 1 to 12, or 0 if specifying a + * datetime without a month. * * Generated from protobuf field int32 month = 2; */ protected $month = 0; /** - * Required. Day of month. Must be from 1 to 31 and valid for the year and - * month. + * Optional. Day of month. Must be from 1 to 31 and valid for the year and + * month, or 0 if specifying a datetime without a day. * * Generated from protobuf field int32 day = 3; */ protected $day = 0; /** - * Required. Hours of day in 24 hour format. Should be from 0 to 23. An API - * may choose to allow the value "24:00:00" for scenarios like business - * closing time. + * Optional. Hours of day in 24 hour format. Should be from 0 to 23, defaults + * to 0 (midnight). An API may choose to allow the value "24:00:00" for + * scenarios like business closing time. * * Generated from protobuf field int32 hours = 4; */ protected $hours = 0; /** - * Required. Minutes of hour of day. Must be from 0 to 59. + * Optional. Minutes of hour of day. Must be from 0 to 59, defaults to 0. * * Generated from protobuf field int32 minutes = 5; */ protected $minutes = 0; /** - * Required. Seconds of minutes of the time. Must normally be from 0 to 59. An - * API may allow the value 60 if it allows leap-seconds. + * Optional. Seconds of minutes of the time. Must normally be from 0 to 59, + * defaults to 0. An API may allow the value 60 if it allows leap-seconds. * * Generated from protobuf field int32 seconds = 6; */ protected $seconds = 0; /** - * Required. Fractions of seconds in nanoseconds. Must be from 0 to - * 999,999,999. + * Optional. Fractions of seconds in nanoseconds. Must be from 0 to + * 999,999,999, defaults to 0. * * Generated from protobuf field int32 nanos = 7; */ @@ -92,22 +93,23 @@ class DateTime extends \Google\Protobuf\Internal\Message * Optional. Year of date. Must be from 1 to 9999, or 0 if specifying a * datetime without a year. * @type int $month - * Required. Month of year. Must be from 1 to 12. + * Optional. Month of year. Must be from 1 to 12, or 0 if specifying a + * datetime without a month. * @type int $day - * Required. Day of month. Must be from 1 to 31 and valid for the year and - * month. + * Optional. Day of month. Must be from 1 to 31 and valid for the year and + * month, or 0 if specifying a datetime without a day. * @type int $hours - * Required. Hours of day in 24 hour format. Should be from 0 to 23. An API - * may choose to allow the value "24:00:00" for scenarios like business - * closing time. + * Optional. Hours of day in 24 hour format. Should be from 0 to 23, defaults + * to 0 (midnight). An API may choose to allow the value "24:00:00" for + * scenarios like business closing time. * @type int $minutes - * Required. Minutes of hour of day. Must be from 0 to 59. + * Optional. Minutes of hour of day. Must be from 0 to 59, defaults to 0. * @type int $seconds - * Required. Seconds of minutes of the time. Must normally be from 0 to 59. An - * API may allow the value 60 if it allows leap-seconds. + * Optional. Seconds of minutes of the time. Must normally be from 0 to 59, + * defaults to 0. An API may allow the value 60 if it allows leap-seconds. * @type int $nanos - * Required. Fractions of seconds in nanoseconds. Must be from 0 to - * 999,999,999. + * Optional. Fractions of seconds in nanoseconds. Must be from 0 to + * 999,999,999, defaults to 0. * @type \Google\Protobuf\Duration $utc_offset * UTC offset. Must be whole seconds, between -18 hours and +18 hours. * For example, a UTC offset of -4:00 would be represented as @@ -150,7 +152,8 @@ public function setYear($var) } /** - * Required. Month of year. Must be from 1 to 12. + * Optional. Month of year. Must be from 1 to 12, or 0 if specifying a + * datetime without a month. * * Generated from protobuf field int32 month = 2; * @return int @@ -161,7 +164,8 @@ public function getMonth() } /** - * Required. Month of year. Must be from 1 to 12. + * Optional. Month of year. Must be from 1 to 12, or 0 if specifying a + * datetime without a month. * * Generated from protobuf field int32 month = 2; * @param int $var @@ -176,8 +180,8 @@ public function setMonth($var) } /** - * Required. Day of month. Must be from 1 to 31 and valid for the year and - * month. + * Optional. Day of month. Must be from 1 to 31 and valid for the year and + * month, or 0 if specifying a datetime without a day. * * Generated from protobuf field int32 day = 3; * @return int @@ -188,8 +192,8 @@ public function getDay() } /** - * Required. Day of month. Must be from 1 to 31 and valid for the year and - * month. + * Optional. Day of month. Must be from 1 to 31 and valid for the year and + * month, or 0 if specifying a datetime without a day. * * Generated from protobuf field int32 day = 3; * @param int $var @@ -204,9 +208,9 @@ public function setDay($var) } /** - * Required. Hours of day in 24 hour format. Should be from 0 to 23. An API - * may choose to allow the value "24:00:00" for scenarios like business - * closing time. + * Optional. Hours of day in 24 hour format. Should be from 0 to 23, defaults + * to 0 (midnight). An API may choose to allow the value "24:00:00" for + * scenarios like business closing time. * * Generated from protobuf field int32 hours = 4; * @return int @@ -217,9 +221,9 @@ public function getHours() } /** - * Required. Hours of day in 24 hour format. Should be from 0 to 23. An API - * may choose to allow the value "24:00:00" for scenarios like business - * closing time. + * Optional. Hours of day in 24 hour format. Should be from 0 to 23, defaults + * to 0 (midnight). An API may choose to allow the value "24:00:00" for + * scenarios like business closing time. * * Generated from protobuf field int32 hours = 4; * @param int $var @@ -234,7 +238,7 @@ public function setHours($var) } /** - * Required. Minutes of hour of day. Must be from 0 to 59. + * Optional. Minutes of hour of day. Must be from 0 to 59, defaults to 0. * * Generated from protobuf field int32 minutes = 5; * @return int @@ -245,7 +249,7 @@ public function getMinutes() } /** - * Required. Minutes of hour of day. Must be from 0 to 59. + * Optional. Minutes of hour of day. Must be from 0 to 59, defaults to 0. * * Generated from protobuf field int32 minutes = 5; * @param int $var @@ -260,8 +264,8 @@ public function setMinutes($var) } /** - * Required. Seconds of minutes of the time. Must normally be from 0 to 59. An - * API may allow the value 60 if it allows leap-seconds. + * Optional. Seconds of minutes of the time. Must normally be from 0 to 59, + * defaults to 0. An API may allow the value 60 if it allows leap-seconds. * * Generated from protobuf field int32 seconds = 6; * @return int @@ -272,8 +276,8 @@ public function getSeconds() } /** - * Required. Seconds of minutes of the time. Must normally be from 0 to 59. An - * API may allow the value 60 if it allows leap-seconds. + * Optional. Seconds of minutes of the time. Must normally be from 0 to 59, + * defaults to 0. An API may allow the value 60 if it allows leap-seconds. * * Generated from protobuf field int32 seconds = 6; * @param int $var @@ -288,8 +292,8 @@ public function setSeconds($var) } /** - * Required. Fractions of seconds in nanoseconds. Must be from 0 to - * 999,999,999. + * Optional. Fractions of seconds in nanoseconds. Must be from 0 to + * 999,999,999, defaults to 0. * * Generated from protobuf field int32 nanos = 7; * @return int @@ -300,8 +304,8 @@ public function getNanos() } /** - * Required. Fractions of seconds in nanoseconds. Must be from 0 to - * 999,999,999. + * Optional. Fractions of seconds in nanoseconds. Must be from 0 to + * 999,999,999, defaults to 0. * * Generated from protobuf field int32 nanos = 7; * @param int $var diff --git a/CommonProtos/src/Type/Decimal.php b/CommonProtos/src/Type/Decimal.php index eb5c1780de8a..687024e29acc 100644 --- a/CommonProtos/src/Type/Decimal.php +++ b/CommonProtos/src/Type/Decimal.php @@ -10,11 +10,10 @@ /** * A representation of a decimal value, such as 2.5. Clients may convert values - * into language-native decimal formats, such as Java's [BigDecimal][] or - * Python's [decimal.Decimal][]. - * [BigDecimal]: - * https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/math/BigDecimal.html - * [decimal.Decimal]: https://docs.python.org/3/library/decimal.html + * into language-native decimal formats, such as Java's + * [BigDecimal](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/math/BigDecimal.html) + * or Python's + * [decimal.Decimal](https://docs.python.org/3/library/decimal.html). * * Generated from protobuf message google.type.Decimal */ @@ -25,7 +24,7 @@ class Decimal extends \Google\Protobuf\Internal\Message * The string representation consists of an optional sign, `+` (`U+002B`) * or `-` (`U+002D`), followed by a sequence of zero or more decimal digits * ("the integer"), optionally followed by a fraction, optionally followed - * by an exponent. + * by an exponent. An empty string **should** be interpreted as `0`. * The fraction consists of a decimal point followed by zero or more decimal * digits. The string must contain at least one digit in either the integer * or the fraction. The number formed by the sign, the integer and the @@ -35,11 +34,12 @@ class Decimal extends \Google\Protobuf\Internal\Message * Services **should** normalize decimal values before storing them by: * - Removing an explicitly-provided `+` sign (`+2.5` -> `2.5`). * - Replacing a zero-length integer value with `0` (`.5` -> `0.5`). - * - Coercing the exponent character to lower-case (`2.5E8` -> `2.5e8`). - * - Removing an explicitly-provided zero exponent (`2.5e0` -> `2.5`). + * - Coercing the exponent character to upper-case, with explicit sign + * (`2.5e8` -> `2.5E+8`). + * - Removing an explicitly-provided zero exponent (`2.5E0` -> `2.5`). * Services **may** perform additional normalization based on its own needs * and the internal decimal implementation selected, such as shifting the - * decimal point and exponent value together (example: `2.5e-1` <-> `0.25`). + * decimal point and exponent value together (example: `2.5E-1` <-> `0.25`). * Additionally, services **may** preserve trailing zeroes in the fraction * to indicate increased precision, but are not required to do so. * Note that only the `.` character is supported to divide the integer @@ -48,7 +48,7 @@ class Decimal extends \Google\Protobuf\Internal\Message * service does support them, values **must** be normalized. * The ENBF grammar is: * DecimalString = - * [Sign] Significand [Exponent]; + * '' | [Sign] Significand [Exponent]; * Sign = '+' | '-'; * Significand = * Digits ['.'] [Digits] | [Digits] '.' Digits; @@ -81,7 +81,7 @@ class Decimal extends \Google\Protobuf\Internal\Message * The string representation consists of an optional sign, `+` (`U+002B`) * or `-` (`U+002D`), followed by a sequence of zero or more decimal digits * ("the integer"), optionally followed by a fraction, optionally followed - * by an exponent. + * by an exponent. An empty string **should** be interpreted as `0`. * The fraction consists of a decimal point followed by zero or more decimal * digits. The string must contain at least one digit in either the integer * or the fraction. The number formed by the sign, the integer and the @@ -91,11 +91,12 @@ class Decimal extends \Google\Protobuf\Internal\Message * Services **should** normalize decimal values before storing them by: * - Removing an explicitly-provided `+` sign (`+2.5` -> `2.5`). * - Replacing a zero-length integer value with `0` (`.5` -> `0.5`). - * - Coercing the exponent character to lower-case (`2.5E8` -> `2.5e8`). - * - Removing an explicitly-provided zero exponent (`2.5e0` -> `2.5`). + * - Coercing the exponent character to upper-case, with explicit sign + * (`2.5e8` -> `2.5E+8`). + * - Removing an explicitly-provided zero exponent (`2.5E0` -> `2.5`). * Services **may** perform additional normalization based on its own needs * and the internal decimal implementation selected, such as shifting the - * decimal point and exponent value together (example: `2.5e-1` <-> `0.25`). + * decimal point and exponent value together (example: `2.5E-1` <-> `0.25`). * Additionally, services **may** preserve trailing zeroes in the fraction * to indicate increased precision, but are not required to do so. * Note that only the `.` character is supported to divide the integer @@ -104,7 +105,7 @@ class Decimal extends \Google\Protobuf\Internal\Message * service does support them, values **must** be normalized. * The ENBF grammar is: * DecimalString = - * [Sign] Significand [Exponent]; + * '' | [Sign] Significand [Exponent]; * Sign = '+' | '-'; * Significand = * Digits ['.'] [Digits] | [Digits] '.' Digits; @@ -133,7 +134,7 @@ public function __construct($data = NULL) { * The string representation consists of an optional sign, `+` (`U+002B`) * or `-` (`U+002D`), followed by a sequence of zero or more decimal digits * ("the integer"), optionally followed by a fraction, optionally followed - * by an exponent. + * by an exponent. An empty string **should** be interpreted as `0`. * The fraction consists of a decimal point followed by zero or more decimal * digits. The string must contain at least one digit in either the integer * or the fraction. The number formed by the sign, the integer and the @@ -143,11 +144,12 @@ public function __construct($data = NULL) { * Services **should** normalize decimal values before storing them by: * - Removing an explicitly-provided `+` sign (`+2.5` -> `2.5`). * - Replacing a zero-length integer value with `0` (`.5` -> `0.5`). - * - Coercing the exponent character to lower-case (`2.5E8` -> `2.5e8`). - * - Removing an explicitly-provided zero exponent (`2.5e0` -> `2.5`). + * - Coercing the exponent character to upper-case, with explicit sign + * (`2.5e8` -> `2.5E+8`). + * - Removing an explicitly-provided zero exponent (`2.5E0` -> `2.5`). * Services **may** perform additional normalization based on its own needs * and the internal decimal implementation selected, such as shifting the - * decimal point and exponent value together (example: `2.5e-1` <-> `0.25`). + * decimal point and exponent value together (example: `2.5E-1` <-> `0.25`). * Additionally, services **may** preserve trailing zeroes in the fraction * to indicate increased precision, but are not required to do so. * Note that only the `.` character is supported to divide the integer @@ -156,7 +158,7 @@ public function __construct($data = NULL) { * service does support them, values **must** be normalized. * The ENBF grammar is: * DecimalString = - * [Sign] Significand [Exponent]; + * '' | [Sign] Significand [Exponent]; * Sign = '+' | '-'; * Significand = * Digits ['.'] [Digits] | [Digits] '.' Digits; @@ -187,7 +189,7 @@ public function getValue() * The string representation consists of an optional sign, `+` (`U+002B`) * or `-` (`U+002D`), followed by a sequence of zero or more decimal digits * ("the integer"), optionally followed by a fraction, optionally followed - * by an exponent. + * by an exponent. An empty string **should** be interpreted as `0`. * The fraction consists of a decimal point followed by zero or more decimal * digits. The string must contain at least one digit in either the integer * or the fraction. The number formed by the sign, the integer and the @@ -197,11 +199,12 @@ public function getValue() * Services **should** normalize decimal values before storing them by: * - Removing an explicitly-provided `+` sign (`+2.5` -> `2.5`). * - Replacing a zero-length integer value with `0` (`.5` -> `0.5`). - * - Coercing the exponent character to lower-case (`2.5E8` -> `2.5e8`). - * - Removing an explicitly-provided zero exponent (`2.5e0` -> `2.5`). + * - Coercing the exponent character to upper-case, with explicit sign + * (`2.5e8` -> `2.5E+8`). + * - Removing an explicitly-provided zero exponent (`2.5E0` -> `2.5`). * Services **may** perform additional normalization based on its own needs * and the internal decimal implementation selected, such as shifting the - * decimal point and exponent value together (example: `2.5e-1` <-> `0.25`). + * decimal point and exponent value together (example: `2.5E-1` <-> `0.25`). * Additionally, services **may** preserve trailing zeroes in the fraction * to indicate increased precision, but are not required to do so. * Note that only the `.` character is supported to divide the integer @@ -210,7 +213,7 @@ public function getValue() * service does support them, values **must** be normalized. * The ENBF grammar is: * DecimalString = - * [Sign] Significand [Exponent]; + * '' | [Sign] Significand [Exponent]; * Sign = '+' | '-'; * Significand = * Digits ['.'] [Digits] | [Digits] '.' Digits; diff --git a/CommonProtos/src/Type/LatLng.php b/CommonProtos/src/Type/LatLng.php index 0d32887832b4..51358f7448da 100644 --- a/CommonProtos/src/Type/LatLng.php +++ b/CommonProtos/src/Type/LatLng.php @@ -11,9 +11,9 @@ /** * An object that represents a latitude/longitude pair. This is expressed as a * pair of doubles to represent degrees latitude and degrees longitude. Unless - * specified otherwise, this must conform to the - * WGS84 - * standard. Values must be within normalized ranges. + * specified otherwise, this object must conform to the + * + * WGS84 standard. Values must be within normalized ranges. * * Generated from protobuf message google.type.LatLng */ diff --git a/CommonProtos/src/Type/LocalizedText.php b/CommonProtos/src/Type/LocalizedText.php index 93d8df3e876d..d8bf0743e737 100644 --- a/CommonProtos/src/Type/LocalizedText.php +++ b/CommonProtos/src/Type/LocalizedText.php @@ -16,7 +16,8 @@ class LocalizedText extends \Google\Protobuf\Internal\Message { /** - * Localized string in the language corresponding to `language_code' below. + * Localized string in the language corresponding to + * [language_code][google.type.LocalizedText.language_code] below. * * Generated from protobuf field string text = 1; */ @@ -37,7 +38,8 @@ class LocalizedText extends \Google\Protobuf\Internal\Message * Optional. Data for populating the Message object. * * @type string $text - * Localized string in the language corresponding to `language_code' below. + * Localized string in the language corresponding to + * [language_code][google.type.LocalizedText.language_code] below. * @type string $language_code * The text's BCP-47 language code, such as "en-US" or "sr-Latn". * For more information, see @@ -50,7 +52,8 @@ public function __construct($data = NULL) { } /** - * Localized string in the language corresponding to `language_code' below. + * Localized string in the language corresponding to + * [language_code][google.type.LocalizedText.language_code] below. * * Generated from protobuf field string text = 1; * @return string @@ -61,7 +64,8 @@ public function getText() } /** - * Localized string in the language corresponding to `language_code' below. + * Localized string in the language corresponding to + * [language_code][google.type.LocalizedText.language_code] below. * * Generated from protobuf field string text = 1; * @param string $var diff --git a/CommonProtos/src/Type/PhoneNumber.php b/CommonProtos/src/Type/PhoneNumber.php index 3fbba6370a47..59c87e38eaae 100644 --- a/CommonProtos/src/Type/PhoneNumber.php +++ b/CommonProtos/src/Type/PhoneNumber.php @@ -19,13 +19,13 @@ * To do something meaningful with this number, such as format it for various * use-cases, convert it to an `i18n.phonenumbers.PhoneNumber` object first. * For instance, in Java this would be: - * com.google.type.PhoneNumber wireProto = - * com.google.type.PhoneNumber.newBuilder().build(); - * com.google.i18n.phonenumbers.Phonenumber.PhoneNumber phoneNumber = - * PhoneNumberUtil.getInstance().parse(wireProto.getE164Number(), "ZZ"); - * if (!wireProto.getExtension().isEmpty()) { - * phoneNumber.setExtension(wireProto.getExtension()); - * } + * com.google.type.PhoneNumber wireProto = + * com.google.type.PhoneNumber.newBuilder().build(); + * com.google.i18n.phonenumbers.Phonenumber.PhoneNumber phoneNumber = + * PhoneNumberUtil.getInstance().parse(wireProto.getE164Number(), "ZZ"); + * if (!wireProto.getExtension().isEmpty()) { + * phoneNumber.setExtension(wireProto.getExtension()); + * } * Reference(s): * - https://github.com/google/libphonenumber * @@ -58,9 +58,9 @@ class PhoneNumber extends \Google\Protobuf\Internal\Message * The phone number, represented as a leading plus sign ('+'), followed by a * phone number that uses a relaxed ITU E.164 format consisting of the * country calling code (1 to 3 digits) and the subscriber number, with no - * additional spaces or formatting, e.g.: + * additional spaces or formatting. For example: * - correct: "+15552220123" - * - incorrect: "+1 (555) 222-01234 x123". + * - incorrect: "+1 (555) 222-01234 x123" * The ITU E.164 format limits the latter to 12 digits, but in practice not * all countries respect that, so we relax that restriction here. * National-only numbers are not allowed. @@ -71,7 +71,7 @@ class PhoneNumber extends \Google\Protobuf\Internal\Message * @type \Google\Type\PhoneNumber\ShortCode $short_code * A short code. * Reference(s): - * - https://en.wikipedia.org/wiki/Short_code + * - https://wikipedia.org/wiki/Short_code * @type string $extension * The phone number's extension. The extension is not standardized in ITU * recommendations, except for being defined as a series of numbers with a @@ -92,9 +92,9 @@ public function __construct($data = NULL) { * The phone number, represented as a leading plus sign ('+'), followed by a * phone number that uses a relaxed ITU E.164 format consisting of the * country calling code (1 to 3 digits) and the subscriber number, with no - * additional spaces or formatting, e.g.: + * additional spaces or formatting. For example: * - correct: "+15552220123" - * - incorrect: "+1 (555) 222-01234 x123". + * - incorrect: "+1 (555) 222-01234 x123" * The ITU E.164 format limits the latter to 12 digits, but in practice not * all countries respect that, so we relax that restriction here. * National-only numbers are not allowed. @@ -120,9 +120,9 @@ public function hasE164Number() * The phone number, represented as a leading plus sign ('+'), followed by a * phone number that uses a relaxed ITU E.164 format consisting of the * country calling code (1 to 3 digits) and the subscriber number, with no - * additional spaces or formatting, e.g.: + * additional spaces or formatting. For example: * - correct: "+15552220123" - * - incorrect: "+1 (555) 222-01234 x123". + * - incorrect: "+1 (555) 222-01234 x123" * The ITU E.164 format limits the latter to 12 digits, but in practice not * all countries respect that, so we relax that restriction here. * National-only numbers are not allowed. @@ -146,7 +146,7 @@ public function setE164Number($var) /** * A short code. * Reference(s): - * - https://en.wikipedia.org/wiki/Short_code + * - https://wikipedia.org/wiki/Short_code * * Generated from protobuf field .google.type.PhoneNumber.ShortCode short_code = 2; * @return \Google\Type\PhoneNumber\ShortCode|null @@ -164,7 +164,7 @@ public function hasShortCode() /** * A short code. * Reference(s): - * - https://en.wikipedia.org/wiki/Short_code + * - https://wikipedia.org/wiki/Short_code * * Generated from protobuf field .google.type.PhoneNumber.ShortCode short_code = 2; * @param \Google\Type\PhoneNumber\ShortCode $var diff --git a/CommonProtos/src/Type/PhoneNumber/ShortCode.php b/CommonProtos/src/Type/PhoneNumber/ShortCode.php index 2f69623b3d30..9969db91ca95 100644 --- a/CommonProtos/src/Type/PhoneNumber/ShortCode.php +++ b/CommonProtos/src/Type/PhoneNumber/ShortCode.php @@ -12,11 +12,12 @@ * An object representing a short code, which is a phone number that is * typically much shorter than regular phone numbers and can be used to * address messages in MMS and SMS systems, as well as for abbreviated dialing - * (e.g. "Text 611 to see how many minutes you have remaining on your plan."). + * (For example "Text 611 to see how many minutes you have remaining on your + * plan."). * Short codes are restricted to a region and are not internationally * dialable, which means the same short code can exist in different regions, * with different usage and pricing, even if those regions share the same - * country calling code (e.g. US and CA). + * country calling code (For example: US and CA). * * Generated from protobuf message google.type.PhoneNumber.ShortCode */ @@ -33,7 +34,7 @@ class ShortCode extends \Google\Protobuf\Internal\Message protected $region_code = ''; /** * Required. The short code digits, without a leading plus ('+') or country - * calling code, e.g. "611". + * calling code. For example "611". * * Generated from protobuf field string number = 2; */ @@ -52,7 +53,7 @@ class ShortCode extends \Google\Protobuf\Internal\Message * - http://www.unicode.org/reports/tr35/#unicode_region_subtag * @type string $number * Required. The short code digits, without a leading plus ('+') or country - * calling code, e.g. "611". + * calling code. For example "611". * } */ public function __construct($data = NULL) { @@ -94,7 +95,7 @@ public function setRegionCode($var) /** * Required. The short code digits, without a leading plus ('+') or country - * calling code, e.g. "611". + * calling code. For example "611". * * Generated from protobuf field string number = 2; * @return string @@ -106,7 +107,7 @@ public function getNumber() /** * Required. The short code digits, without a leading plus ('+') or country - * calling code, e.g. "611". + * calling code. For example "611". * * Generated from protobuf field string number = 2; * @param string $var diff --git a/CommonProtos/src/Type/PostalAddress.php b/CommonProtos/src/Type/PostalAddress.php index 063fbac92ef4..8ffb01a3ed25 100644 --- a/CommonProtos/src/Type/PostalAddress.php +++ b/CommonProtos/src/Type/PostalAddress.php @@ -9,20 +9,19 @@ use Google\Protobuf\RepeatedField; /** - * Represents a postal address, e.g. for postal delivery or payments addresses. - * Given a postal address, a postal service can deliver items to a premise, P.O. - * Box or similar. - * It is not intended to model geographical locations (roads, towns, - * mountains). - * In typical usage an address would be created via user input or from importing + * Represents a postal address, such as for postal delivery or payments + * addresses. With a postal address, a postal service can deliver items to a + * premise, P.O. box, or similar. A postal address is not intended to model + * geographical locations like roads, towns, or mountains. + * In typical usage, an address would be created by user input or from importing * existing data, depending on the type of process. - * Advice on address input / editing: - * - Use an i18n-ready address widget such as - * https://github.com/google/libaddressinput) - * - Users should not be presented with UI elements for input or editing of - * fields outside countries where that field is used. - * For more guidance on how to use this schema, please see: - * https://support.google.com/business/answer/6397478 + * Advice on address input or editing: + * - Use an internationalization-ready address widget such as + * https://github.com/google/libaddressinput. + * - Users should not be presented with UI elements for input or editing of + * fields outside countries where that field is used. + * For more guidance on how to use this schema, see: + * https://support.google.com/business/answer/6397478. * * Generated from protobuf message google.type.PostalAddress */ @@ -39,8 +38,8 @@ class PostalAddress extends \Google\Protobuf\Internal\Message /** * Required. CLDR region code of the country/region of the address. This * is never inferred and it is up to the user to ensure the value is - * correct. See http://cldr.unicode.org/ and - * http://www.unicode.org/cldr/charts/30/supplemental/territory_information.html + * correct. See https://cldr.unicode.org/ and + * https://www.unicode.org/cldr/charts/30/supplemental/territory_information.html * for details. Example: "CH" for Switzerland. * * Generated from protobuf field string region_code = 2; @@ -64,8 +63,8 @@ class PostalAddress extends \Google\Protobuf\Internal\Message /** * Optional. Postal code of the address. Not all countries use or require * postal codes to be present, but where they are used, they may trigger - * additional validation with other parts of the address (e.g. state/zip - * validation in the U.S.A.). + * additional validation with other parts of the address (for example, + * state or zip code validation in the United States). * * Generated from protobuf field string postal_code = 4; */ @@ -73,9 +72,9 @@ class PostalAddress extends \Google\Protobuf\Internal\Message /** * Optional. Additional, country-specific, sorting code. This is not used * in most regions. Where it is used, the value is either a string like - * "CEDEX", optionally followed by a number (e.g. "CEDEX 7"), or just a number - * alone, representing the "sector code" (Jamaica), "delivery area indicator" - * (Malawi) or "post office indicator" (e.g. Côte d'Ivoire). + * "CEDEX", optionally followed by a number (for example, "CEDEX 7"), or just + * a number alone, representing the "sector code" (Jamaica), "delivery area + * indicator" (Malawi) or "post office indicator" (Côte d'Ivoire). * * Generated from protobuf field string sorting_code = 5; */ @@ -84,47 +83,48 @@ class PostalAddress extends \Google\Protobuf\Internal\Message * Optional. Highest administrative subdivision which is used for postal * addresses of a country or region. * For example, this can be a state, a province, an oblast, or a prefecture. - * Specifically, for Spain this is the province and not the autonomous - * community (e.g. "Barcelona" and not "Catalonia"). - * Many countries don't use an administrative area in postal addresses. E.g. - * in Switzerland this should be left unpopulated. + * For Spain, this is the province and not the autonomous + * community (for example, "Barcelona" and not "Catalonia"). + * Many countries don't use an administrative area in postal addresses. For + * example, in Switzerland, this should be left unpopulated. * * Generated from protobuf field string administrative_area = 6; */ protected $administrative_area = ''; /** - * Optional. Generally refers to the city/town portion of the address. + * Optional. Generally refers to the city or town portion of the address. * Examples: US city, IT comune, UK post town. * In regions of the world where localities are not well defined or do not fit - * into this structure well, leave locality empty and use address_lines. + * into this structure well, leave `locality` empty and use `address_lines`. * * Generated from protobuf field string locality = 7; */ protected $locality = ''; /** * Optional. Sublocality of the address. - * For example, this can be neighborhoods, boroughs, districts. + * For example, this can be a neighborhood, borough, or district. * * Generated from protobuf field string sublocality = 8; */ protected $sublocality = ''; /** * Unstructured address lines describing the lower levels of an address. - * Because values in address_lines do not have type information and may - * sometimes contain multiple values in a single field (e.g. + * Because values in `address_lines` do not have type information and may + * sometimes contain multiple values in a single field (for example, * "Austin, TX"), it is important that the line order is clear. The order of - * address lines should be "envelope order" for the country/region of the - * address. In places where this can vary (e.g. Japan), address_language is - * used to make it explicit (e.g. "ja" for large-to-small ordering and - * "ja-Latn" or "en" for small-to-large). This way, the most specific line of - * an address can be selected based on the language. + * address lines should be "envelope order" for the country or region of the + * address. In places where this can vary (for example, Japan), + * `address_language` is used to make it explicit (for example, "ja" for + * large-to-small ordering and "ja-Latn" or "en" for small-to-large). In this + * way, the most specific line of an address can be selected based on the + * language. * The minimum permitted structural representation of an address consists - * of a region_code with all remaining information placed in the - * address_lines. It would be possible to format such an address very + * of a `region_code` with all remaining information placed in the + * `address_lines`. It would be possible to format such an address very * approximately without geocoding, but no semantic reasoning could be * made about any of the address components until it was at least * partially resolved. - * Creating an address only containing a region_code and address_lines, and + * Creating an address only containing a `region_code` and `address_lines` and * then geocoding is the recommended way to handle completely unstructured * addresses (as opposed to guessing which parts of the address should be * localities or administrative areas). @@ -160,8 +160,8 @@ class PostalAddress extends \Google\Protobuf\Internal\Message * @type string $region_code * Required. CLDR region code of the country/region of the address. This * is never inferred and it is up to the user to ensure the value is - * correct. See http://cldr.unicode.org/ and - * http://www.unicode.org/cldr/charts/30/supplemental/territory_information.html + * correct. See https://cldr.unicode.org/ and + * https://www.unicode.org/cldr/charts/30/supplemental/territory_information.html * for details. Example: "CH" for Switzerland. * @type string $language_code * Optional. BCP-47 language code of the contents of this address (if @@ -177,47 +177,48 @@ class PostalAddress extends \Google\Protobuf\Internal\Message * @type string $postal_code * Optional. Postal code of the address. Not all countries use or require * postal codes to be present, but where they are used, they may trigger - * additional validation with other parts of the address (e.g. state/zip - * validation in the U.S.A.). + * additional validation with other parts of the address (for example, + * state or zip code validation in the United States). * @type string $sorting_code * Optional. Additional, country-specific, sorting code. This is not used * in most regions. Where it is used, the value is either a string like - * "CEDEX", optionally followed by a number (e.g. "CEDEX 7"), or just a number - * alone, representing the "sector code" (Jamaica), "delivery area indicator" - * (Malawi) or "post office indicator" (e.g. Côte d'Ivoire). + * "CEDEX", optionally followed by a number (for example, "CEDEX 7"), or just + * a number alone, representing the "sector code" (Jamaica), "delivery area + * indicator" (Malawi) or "post office indicator" (Côte d'Ivoire). * @type string $administrative_area * Optional. Highest administrative subdivision which is used for postal * addresses of a country or region. * For example, this can be a state, a province, an oblast, or a prefecture. - * Specifically, for Spain this is the province and not the autonomous - * community (e.g. "Barcelona" and not "Catalonia"). - * Many countries don't use an administrative area in postal addresses. E.g. - * in Switzerland this should be left unpopulated. + * For Spain, this is the province and not the autonomous + * community (for example, "Barcelona" and not "Catalonia"). + * Many countries don't use an administrative area in postal addresses. For + * example, in Switzerland, this should be left unpopulated. * @type string $locality - * Optional. Generally refers to the city/town portion of the address. + * Optional. Generally refers to the city or town portion of the address. * Examples: US city, IT comune, UK post town. * In regions of the world where localities are not well defined or do not fit - * into this structure well, leave locality empty and use address_lines. + * into this structure well, leave `locality` empty and use `address_lines`. * @type string $sublocality * Optional. Sublocality of the address. - * For example, this can be neighborhoods, boroughs, districts. + * For example, this can be a neighborhood, borough, or district. * @type string[] $address_lines * Unstructured address lines describing the lower levels of an address. - * Because values in address_lines do not have type information and may - * sometimes contain multiple values in a single field (e.g. + * Because values in `address_lines` do not have type information and may + * sometimes contain multiple values in a single field (for example, * "Austin, TX"), it is important that the line order is clear. The order of - * address lines should be "envelope order" for the country/region of the - * address. In places where this can vary (e.g. Japan), address_language is - * used to make it explicit (e.g. "ja" for large-to-small ordering and - * "ja-Latn" or "en" for small-to-large). This way, the most specific line of - * an address can be selected based on the language. + * address lines should be "envelope order" for the country or region of the + * address. In places where this can vary (for example, Japan), + * `address_language` is used to make it explicit (for example, "ja" for + * large-to-small ordering and "ja-Latn" or "en" for small-to-large). In this + * way, the most specific line of an address can be selected based on the + * language. * The minimum permitted structural representation of an address consists - * of a region_code with all remaining information placed in the - * address_lines. It would be possible to format such an address very + * of a `region_code` with all remaining information placed in the + * `address_lines`. It would be possible to format such an address very * approximately without geocoding, but no semantic reasoning could be * made about any of the address components until it was at least * partially resolved. - * Creating an address only containing a region_code and address_lines, and + * Creating an address only containing a `region_code` and `address_lines` and * then geocoding is the recommended way to handle completely unstructured * addresses (as opposed to guessing which parts of the address should be * localities or administrative areas). @@ -267,8 +268,8 @@ public function setRevision($var) /** * Required. CLDR region code of the country/region of the address. This * is never inferred and it is up to the user to ensure the value is - * correct. See http://cldr.unicode.org/ and - * http://www.unicode.org/cldr/charts/30/supplemental/territory_information.html + * correct. See https://cldr.unicode.org/ and + * https://www.unicode.org/cldr/charts/30/supplemental/territory_information.html * for details. Example: "CH" for Switzerland. * * Generated from protobuf field string region_code = 2; @@ -282,8 +283,8 @@ public function getRegionCode() /** * Required. CLDR region code of the country/region of the address. This * is never inferred and it is up to the user to ensure the value is - * correct. See http://cldr.unicode.org/ and - * http://www.unicode.org/cldr/charts/30/supplemental/territory_information.html + * correct. See https://cldr.unicode.org/ and + * https://www.unicode.org/cldr/charts/30/supplemental/territory_information.html * for details. Example: "CH" for Switzerland. * * Generated from protobuf field string region_code = 2; @@ -345,8 +346,8 @@ public function setLanguageCode($var) /** * Optional. Postal code of the address. Not all countries use or require * postal codes to be present, but where they are used, they may trigger - * additional validation with other parts of the address (e.g. state/zip - * validation in the U.S.A.). + * additional validation with other parts of the address (for example, + * state or zip code validation in the United States). * * Generated from protobuf field string postal_code = 4; * @return string @@ -359,8 +360,8 @@ public function getPostalCode() /** * Optional. Postal code of the address. Not all countries use or require * postal codes to be present, but where they are used, they may trigger - * additional validation with other parts of the address (e.g. state/zip - * validation in the U.S.A.). + * additional validation with other parts of the address (for example, + * state or zip code validation in the United States). * * Generated from protobuf field string postal_code = 4; * @param string $var @@ -377,9 +378,9 @@ public function setPostalCode($var) /** * Optional. Additional, country-specific, sorting code. This is not used * in most regions. Where it is used, the value is either a string like - * "CEDEX", optionally followed by a number (e.g. "CEDEX 7"), or just a number - * alone, representing the "sector code" (Jamaica), "delivery area indicator" - * (Malawi) or "post office indicator" (e.g. Côte d'Ivoire). + * "CEDEX", optionally followed by a number (for example, "CEDEX 7"), or just + * a number alone, representing the "sector code" (Jamaica), "delivery area + * indicator" (Malawi) or "post office indicator" (Côte d'Ivoire). * * Generated from protobuf field string sorting_code = 5; * @return string @@ -392,9 +393,9 @@ public function getSortingCode() /** * Optional. Additional, country-specific, sorting code. This is not used * in most regions. Where it is used, the value is either a string like - * "CEDEX", optionally followed by a number (e.g. "CEDEX 7"), or just a number - * alone, representing the "sector code" (Jamaica), "delivery area indicator" - * (Malawi) or "post office indicator" (e.g. Côte d'Ivoire). + * "CEDEX", optionally followed by a number (for example, "CEDEX 7"), or just + * a number alone, representing the "sector code" (Jamaica), "delivery area + * indicator" (Malawi) or "post office indicator" (Côte d'Ivoire). * * Generated from protobuf field string sorting_code = 5; * @param string $var @@ -412,10 +413,10 @@ public function setSortingCode($var) * Optional. Highest administrative subdivision which is used for postal * addresses of a country or region. * For example, this can be a state, a province, an oblast, or a prefecture. - * Specifically, for Spain this is the province and not the autonomous - * community (e.g. "Barcelona" and not "Catalonia"). - * Many countries don't use an administrative area in postal addresses. E.g. - * in Switzerland this should be left unpopulated. + * For Spain, this is the province and not the autonomous + * community (for example, "Barcelona" and not "Catalonia"). + * Many countries don't use an administrative area in postal addresses. For + * example, in Switzerland, this should be left unpopulated. * * Generated from protobuf field string administrative_area = 6; * @return string @@ -429,10 +430,10 @@ public function getAdministrativeArea() * Optional. Highest administrative subdivision which is used for postal * addresses of a country or region. * For example, this can be a state, a province, an oblast, or a prefecture. - * Specifically, for Spain this is the province and not the autonomous - * community (e.g. "Barcelona" and not "Catalonia"). - * Many countries don't use an administrative area in postal addresses. E.g. - * in Switzerland this should be left unpopulated. + * For Spain, this is the province and not the autonomous + * community (for example, "Barcelona" and not "Catalonia"). + * Many countries don't use an administrative area in postal addresses. For + * example, in Switzerland, this should be left unpopulated. * * Generated from protobuf field string administrative_area = 6; * @param string $var @@ -447,10 +448,10 @@ public function setAdministrativeArea($var) } /** - * Optional. Generally refers to the city/town portion of the address. + * Optional. Generally refers to the city or town portion of the address. * Examples: US city, IT comune, UK post town. * In regions of the world where localities are not well defined or do not fit - * into this structure well, leave locality empty and use address_lines. + * into this structure well, leave `locality` empty and use `address_lines`. * * Generated from protobuf field string locality = 7; * @return string @@ -461,10 +462,10 @@ public function getLocality() } /** - * Optional. Generally refers to the city/town portion of the address. + * Optional. Generally refers to the city or town portion of the address. * Examples: US city, IT comune, UK post town. * In regions of the world where localities are not well defined or do not fit - * into this structure well, leave locality empty and use address_lines. + * into this structure well, leave `locality` empty and use `address_lines`. * * Generated from protobuf field string locality = 7; * @param string $var @@ -480,7 +481,7 @@ public function setLocality($var) /** * Optional. Sublocality of the address. - * For example, this can be neighborhoods, boroughs, districts. + * For example, this can be a neighborhood, borough, or district. * * Generated from protobuf field string sublocality = 8; * @return string @@ -492,7 +493,7 @@ public function getSublocality() /** * Optional. Sublocality of the address. - * For example, this can be neighborhoods, boroughs, districts. + * For example, this can be a neighborhood, borough, or district. * * Generated from protobuf field string sublocality = 8; * @param string $var @@ -508,21 +509,22 @@ public function setSublocality($var) /** * Unstructured address lines describing the lower levels of an address. - * Because values in address_lines do not have type information and may - * sometimes contain multiple values in a single field (e.g. + * Because values in `address_lines` do not have type information and may + * sometimes contain multiple values in a single field (for example, * "Austin, TX"), it is important that the line order is clear. The order of - * address lines should be "envelope order" for the country/region of the - * address. In places where this can vary (e.g. Japan), address_language is - * used to make it explicit (e.g. "ja" for large-to-small ordering and - * "ja-Latn" or "en" for small-to-large). This way, the most specific line of - * an address can be selected based on the language. + * address lines should be "envelope order" for the country or region of the + * address. In places where this can vary (for example, Japan), + * `address_language` is used to make it explicit (for example, "ja" for + * large-to-small ordering and "ja-Latn" or "en" for small-to-large). In this + * way, the most specific line of an address can be selected based on the + * language. * The minimum permitted structural representation of an address consists - * of a region_code with all remaining information placed in the - * address_lines. It would be possible to format such an address very + * of a `region_code` with all remaining information placed in the + * `address_lines`. It would be possible to format such an address very * approximately without geocoding, but no semantic reasoning could be * made about any of the address components until it was at least * partially resolved. - * Creating an address only containing a region_code and address_lines, and + * Creating an address only containing a `region_code` and `address_lines` and * then geocoding is the recommended way to handle completely unstructured * addresses (as opposed to guessing which parts of the address should be * localities or administrative areas). @@ -537,21 +539,22 @@ public function getAddressLines() /** * Unstructured address lines describing the lower levels of an address. - * Because values in address_lines do not have type information and may - * sometimes contain multiple values in a single field (e.g. + * Because values in `address_lines` do not have type information and may + * sometimes contain multiple values in a single field (for example, * "Austin, TX"), it is important that the line order is clear. The order of - * address lines should be "envelope order" for the country/region of the - * address. In places where this can vary (e.g. Japan), address_language is - * used to make it explicit (e.g. "ja" for large-to-small ordering and - * "ja-Latn" or "en" for small-to-large). This way, the most specific line of - * an address can be selected based on the language. + * address lines should be "envelope order" for the country or region of the + * address. In places where this can vary (for example, Japan), + * `address_language` is used to make it explicit (for example, "ja" for + * large-to-small ordering and "ja-Latn" or "en" for small-to-large). In this + * way, the most specific line of an address can be selected based on the + * language. * The minimum permitted structural representation of an address consists - * of a region_code with all remaining information placed in the - * address_lines. It would be possible to format such an address very + * of a `region_code` with all remaining information placed in the + * `address_lines`. It would be possible to format such an address very * approximately without geocoding, but no semantic reasoning could be * made about any of the address components until it was at least * partially resolved. - * Creating an address only containing a region_code and address_lines, and + * Creating an address only containing a `region_code` and `address_lines` and * then geocoding is the recommended way to handle completely unstructured * addresses (as opposed to guessing which parts of the address should be * localities or administrative areas). diff --git a/CommonProtos/src/Type/Quaternion.php b/CommonProtos/src/Type/Quaternion.php index 56014dc90777..61437a5940dd 100644 --- a/CommonProtos/src/Type/Quaternion.php +++ b/CommonProtos/src/Type/Quaternion.php @@ -9,6 +9,7 @@ use Google\Protobuf\RepeatedField; /** + * A quaternion, represented by four 64-bit floating point values. * A quaternion is defined as the quotient of two directed lines in a * three-dimensional space or equivalently as the quotient of two Euclidean * vectors (https://en.wikipedia.org/wiki/Quaternion). @@ -21,7 +22,7 @@ * w + xi + yj + zk * where x, y, z, and w are real numbers, and i, j, and k are three imaginary * numbers. - * Our naming choice `(x, y, z, w)` comes from the desire to avoid confusion for + * The naming choice `(x, y, z, w)` comes from the desire to avoid confusion for * those interested in the geometric properties of the quaternion in the 3D * Cartesian space. Other texts often use alternative names or subscripts, such * as `(a, b, c, d)`, `(1, i, j, k)`, or `(0, 1, 2, 3)`, which are perhaps diff --git a/CommonProtos/src/Type/TimeOfDay.php b/CommonProtos/src/Type/TimeOfDay.php index 8cd8837ab4e2..ce64f28515bc 100644 --- a/CommonProtos/src/Type/TimeOfDay.php +++ b/CommonProtos/src/Type/TimeOfDay.php @@ -19,27 +19,31 @@ class TimeOfDay extends \Google\Protobuf\Internal\Message { /** - * Hours of day in 24 hour format. Should be from 0 to 23. An API may choose - * to allow the value "24:00:00" for scenarios like business closing time. + * Hours of a day in 24 hour format. Must be greater than or equal to 0 and + * typically must be less than or equal to 23. An API may choose to allow the + * value "24:00:00" for scenarios like business closing time. * * Generated from protobuf field int32 hours = 1; */ protected $hours = 0; /** - * Minutes of hour of day. Must be from 0 to 59. + * Minutes of an hour. Must be greater than or equal to 0 and less than or + * equal to 59. * * Generated from protobuf field int32 minutes = 2; */ protected $minutes = 0; /** - * Seconds of minutes of the time. Must normally be from 0 to 59. An API may - * allow the value 60 if it allows leap-seconds. + * Seconds of a minute. Must be greater than or equal to 0 and typically must + * be less than or equal to 59. An API may allow the value 60 if it allows + * leap-seconds. * * Generated from protobuf field int32 seconds = 3; */ protected $seconds = 0; /** - * Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999. + * Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 + * and less than or equal to 999,999,999. * * Generated from protobuf field int32 nanos = 4; */ @@ -52,15 +56,19 @@ class TimeOfDay extends \Google\Protobuf\Internal\Message * Optional. Data for populating the Message object. * * @type int $hours - * Hours of day in 24 hour format. Should be from 0 to 23. An API may choose - * to allow the value "24:00:00" for scenarios like business closing time. + * Hours of a day in 24 hour format. Must be greater than or equal to 0 and + * typically must be less than or equal to 23. An API may choose to allow the + * value "24:00:00" for scenarios like business closing time. * @type int $minutes - * Minutes of hour of day. Must be from 0 to 59. + * Minutes of an hour. Must be greater than or equal to 0 and less than or + * equal to 59. * @type int $seconds - * Seconds of minutes of the time. Must normally be from 0 to 59. An API may - * allow the value 60 if it allows leap-seconds. + * Seconds of a minute. Must be greater than or equal to 0 and typically must + * be less than or equal to 59. An API may allow the value 60 if it allows + * leap-seconds. * @type int $nanos - * Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999. + * Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 + * and less than or equal to 999,999,999. * } */ public function __construct($data = NULL) { @@ -69,8 +77,9 @@ public function __construct($data = NULL) { } /** - * Hours of day in 24 hour format. Should be from 0 to 23. An API may choose - * to allow the value "24:00:00" for scenarios like business closing time. + * Hours of a day in 24 hour format. Must be greater than or equal to 0 and + * typically must be less than or equal to 23. An API may choose to allow the + * value "24:00:00" for scenarios like business closing time. * * Generated from protobuf field int32 hours = 1; * @return int @@ -81,8 +90,9 @@ public function getHours() } /** - * Hours of day in 24 hour format. Should be from 0 to 23. An API may choose - * to allow the value "24:00:00" for scenarios like business closing time. + * Hours of a day in 24 hour format. Must be greater than or equal to 0 and + * typically must be less than or equal to 23. An API may choose to allow the + * value "24:00:00" for scenarios like business closing time. * * Generated from protobuf field int32 hours = 1; * @param int $var @@ -97,7 +107,8 @@ public function setHours($var) } /** - * Minutes of hour of day. Must be from 0 to 59. + * Minutes of an hour. Must be greater than or equal to 0 and less than or + * equal to 59. * * Generated from protobuf field int32 minutes = 2; * @return int @@ -108,7 +119,8 @@ public function getMinutes() } /** - * Minutes of hour of day. Must be from 0 to 59. + * Minutes of an hour. Must be greater than or equal to 0 and less than or + * equal to 59. * * Generated from protobuf field int32 minutes = 2; * @param int $var @@ -123,8 +135,9 @@ public function setMinutes($var) } /** - * Seconds of minutes of the time. Must normally be from 0 to 59. An API may - * allow the value 60 if it allows leap-seconds. + * Seconds of a minute. Must be greater than or equal to 0 and typically must + * be less than or equal to 59. An API may allow the value 60 if it allows + * leap-seconds. * * Generated from protobuf field int32 seconds = 3; * @return int @@ -135,8 +148,9 @@ public function getSeconds() } /** - * Seconds of minutes of the time. Must normally be from 0 to 59. An API may - * allow the value 60 if it allows leap-seconds. + * Seconds of a minute. Must be greater than or equal to 0 and typically must + * be less than or equal to 59. An API may allow the value 60 if it allows + * leap-seconds. * * Generated from protobuf field int32 seconds = 3; * @param int $var @@ -151,7 +165,8 @@ public function setSeconds($var) } /** - * Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999. + * Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 + * and less than or equal to 999,999,999. * * Generated from protobuf field int32 nanos = 4; * @return int @@ -162,7 +177,8 @@ public function getNanos() } /** - * Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999. + * Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 + * and less than or equal to 999,999,999. * * Generated from protobuf field int32 nanos = 4; * @param int $var diff --git a/CommonProtos/src/Type/TimeZone.php b/CommonProtos/src/Type/TimeZone.php index db31ddee7aec..2657d6f7d664 100644 --- a/CommonProtos/src/Type/TimeZone.php +++ b/CommonProtos/src/Type/TimeZone.php @@ -17,13 +17,13 @@ class TimeZone extends \Google\Protobuf\Internal\Message { /** - * IANA Time Zone Database time zone, e.g. "America/New_York". + * IANA Time Zone Database time zone. For example "America/New_York". * * Generated from protobuf field string id = 1; */ protected $id = ''; /** - * Optional. IANA Time Zone Database version number, e.g. "2019a". + * Optional. IANA Time Zone Database version number. For example "2019a". * * Generated from protobuf field string version = 2; */ @@ -36,9 +36,9 @@ class TimeZone extends \Google\Protobuf\Internal\Message * Optional. Data for populating the Message object. * * @type string $id - * IANA Time Zone Database time zone, e.g. "America/New_York". + * IANA Time Zone Database time zone. For example "America/New_York". * @type string $version - * Optional. IANA Time Zone Database version number, e.g. "2019a". + * Optional. IANA Time Zone Database version number. For example "2019a". * } */ public function __construct($data = NULL) { @@ -47,7 +47,7 @@ public function __construct($data = NULL) { } /** - * IANA Time Zone Database time zone, e.g. "America/New_York". + * IANA Time Zone Database time zone. For example "America/New_York". * * Generated from protobuf field string id = 1; * @return string @@ -58,7 +58,7 @@ public function getId() } /** - * IANA Time Zone Database time zone, e.g. "America/New_York". + * IANA Time Zone Database time zone. For example "America/New_York". * * Generated from protobuf field string id = 1; * @param string $var @@ -73,7 +73,7 @@ public function setId($var) } /** - * Optional. IANA Time Zone Database version number, e.g. "2019a". + * Optional. IANA Time Zone Database version number. For example "2019a". * * Generated from protobuf field string version = 2; * @return string @@ -84,7 +84,7 @@ public function getVersion() } /** - * Optional. IANA Time Zone Database version number, e.g. "2019a". + * Optional. IANA Time Zone Database version number. For example "2019a". * * Generated from protobuf field string version = 2; * @param string $var diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Annotations.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Annotations.php deleted file mode 100644 index a700b2da7a2a..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Annotations.php +++ /dev/null @@ -1,25 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xC4\x01\x0A\x1Cgoogle/api/annotations.proto\x12\x0Agoogle.api\x1A google/protobuf/descriptor.protoBn\x0A\x0Ecom.google.apiB\x10AnnotationsProtoP\x01ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\xA2\x02\x04GAPIb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Auth.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Auth.php deleted file mode 100644 index 24d567740772..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Auth.php +++ /dev/null @@ -1,24 +0,0 @@ -internalAddGeneratedFile( - "\x0A\x99\x06\x0A\x15google/api/auth.proto\x12\x0Agoogle.api\"l\x0A\x0EAuthentication\x12-\x0A\x05rules\x18\x03 \x03(\x0B2\x1E.google.api.AuthenticationRule\x12+\x0A\x09providers\x18\x04 \x03(\x0B2\x18.google.api.AuthProvider\"\xA9\x01\x0A\x12AuthenticationRule\x12\x10\x0A\x08selector\x18\x01 \x01(\x09\x12,\x0A\x05oauth\x18\x02 \x01(\x0B2\x1D.google.api.OAuthRequirements\x12 \x0A\x18allow_without_credential\x18\x05 \x01(\x08\x121\x0A\x0Crequirements\x18\x07 \x03(\x0B2\x1B.google.api.AuthRequirement\"^\x0A\x0BJwtLocation\x12\x10\x0A\x06header\x18\x01 \x01(\x09H\x00\x12\x0F\x0A\x05query\x18\x02 \x01(\x09H\x00\x12\x10\x0A\x06cookie\x18\x04 \x01(\x09H\x00\x12\x14\x0A\x0Cvalue_prefix\x18\x03 \x01(\x09B\x04\x0A\x02in\"\x9A\x01\x0A\x0CAuthProvider\x12\x0A\x0A\x02id\x18\x01 \x01(\x09\x12\x0E\x0A\x06issuer\x18\x02 \x01(\x09\x12\x10\x0A\x08jwks_uri\x18\x03 \x01(\x09\x12\x11\x0A\x09audiences\x18\x04 \x01(\x09\x12\x19\x0A\x11authorization_url\x18\x05 \x01(\x09\x12.\x0A\x0Djwt_locations\x18\x06 \x03(\x0B2\x17.google.api.JwtLocation\"-\x0A\x11OAuthRequirements\x12\x18\x0A\x10canonical_scopes\x18\x01 \x01(\x09\"9\x0A\x0FAuthRequirement\x12\x13\x0A\x0Bprovider_id\x18\x01 \x01(\x09\x12\x11\x0A\x09audiences\x18\x02 \x01(\x09Bk\x0A\x0Ecom.google.apiB\x09AuthProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xA2\x02\x04GAPIb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Backend.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Backend.php deleted file mode 100644 index 9808979ecdbc..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Backend.php +++ /dev/null @@ -1,24 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xA5\x06\x0A\x18google/api/backend.proto\x12\x0Agoogle.api\"1\x0A\x07Backend\x12&\x0A\x05rules\x18\x01 \x03(\x0B2\x17.google.api.BackendRule\"\xD1\x04\x0A\x0BBackendRule\x12\x10\x0A\x08selector\x18\x01 \x01(\x09\x12\x0F\x0A\x07address\x18\x02 \x01(\x09\x12\x10\x0A\x08deadline\x18\x03 \x01(\x01\x12\x18\x0A\x0Cmin_deadline\x18\x04 \x01(\x01B\x02\x18\x01\x12\x1A\x0A\x12operation_deadline\x18\x05 \x01(\x01\x12A\x0A\x10path_translation\x18\x06 \x01(\x0E2'.google.api.BackendRule.PathTranslation\x12\x16\x0A\x0Cjwt_audience\x18\x07 \x01(\x09H\x00\x12\x16\x0A\x0Cdisable_auth\x18\x08 \x01(\x08H\x00\x12\x10\x0A\x08protocol\x18\x09 \x01(\x09\x12^\x0A\x1Doverrides_by_request_protocol\x18\x0A \x03(\x0B27.google.api.BackendRule.OverridesByRequestProtocolEntry\x12\x1D\x0A\x15load_balancing_policy\x18\x0B \x01(\x09\x1AZ\x0A\x1FOverridesByRequestProtocolEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12&\x0A\x05value\x18\x02 \x01(\x0B2\x17.google.api.BackendRule:\x028\x01\"e\x0A\x0FPathTranslation\x12 \x0A\x1CPATH_TRANSLATION_UNSPECIFIED\x10\x00\x12\x14\x0A\x10CONSTANT_ADDRESS\x10\x01\x12\x1A\x0A\x16APPEND_PATH_TO_ADDRESS\x10\x02B\x10\x0A\x0EauthenticationBn\x0A\x0Ecom.google.apiB\x0CBackendProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xA2\x02\x04GAPIb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Billing.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Billing.php deleted file mode 100644 index 0bfe90cbb1b2..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Billing.php +++ /dev/null @@ -1,24 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xB4\x02\x0A\x18google/api/billing.proto\x12\x0Agoogle.api\"\x93\x01\x0A\x07Billing\x12E\x0A\x15consumer_destinations\x18\x08 \x03(\x0B2&.google.api.Billing.BillingDestination\x1AA\x0A\x12BillingDestination\x12\x1A\x0A\x12monitored_resource\x18\x01 \x01(\x09\x12\x0F\x0A\x07metrics\x18\x02 \x03(\x09Bn\x0A\x0Ecom.google.apiB\x0CBillingProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xA2\x02\x04GAPIb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Client.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Client.php deleted file mode 100644 index 40704b602b2f..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Client.php +++ /dev/null @@ -1,26 +0,0 @@ -internalAddGeneratedFile( - "\x0A\x95!\x0A\x17google/api/client.proto\x12\x0Agoogle.api\x1A google/protobuf/descriptor.proto\x1A\x1Egoogle/protobuf/duration.proto\"\xBE\x01\x0A\x16CommonLanguageSettings\x12\x1E\x0A\x12reference_docs_uri\x18\x01 \x01(\x09B\x02\x18\x01\x12:\x0A\x0Cdestinations\x18\x02 \x03(\x0E2\$.google.api.ClientLibraryDestination\x12H\x0A\x1Aselective_gapic_generation\x18\x03 \x01(\x0B2\$.google.api.SelectiveGapicGeneration\"\xFB\x03\x0A\x15ClientLibrarySettings\x12\x0F\x0A\x07version\x18\x01 \x01(\x09\x12-\x0A\x0Claunch_stage\x18\x02 \x01(\x0E2\x17.google.api.LaunchStage\x12\x1A\x0A\x12rest_numeric_enums\x18\x03 \x01(\x08\x12/\x0A\x0Djava_settings\x18\x15 \x01(\x0B2\x18.google.api.JavaSettings\x12-\x0A\x0Ccpp_settings\x18\x16 \x01(\x0B2\x17.google.api.CppSettings\x12-\x0A\x0Cphp_settings\x18\x17 \x01(\x0B2\x17.google.api.PhpSettings\x123\x0A\x0Fpython_settings\x18\x18 \x01(\x0B2\x1A.google.api.PythonSettings\x12/\x0A\x0Dnode_settings\x18\x19 \x01(\x0B2\x18.google.api.NodeSettings\x123\x0A\x0Fdotnet_settings\x18\x1A \x01(\x0B2\x1A.google.api.DotnetSettings\x12/\x0A\x0Druby_settings\x18\x1B \x01(\x0B2\x18.google.api.RubySettings\x12+\x0A\x0Bgo_settings\x18\x1C \x01(\x0B2\x16.google.api.GoSettings\"\xA8\x03\x0A\x0APublishing\x123\x0A\x0Fmethod_settings\x18\x02 \x03(\x0B2\x1A.google.api.MethodSettings\x12\x15\x0A\x0Dnew_issue_uri\x18e \x01(\x09\x12\x19\x0A\x11documentation_uri\x18f \x01(\x09\x12\x16\x0A\x0Eapi_short_name\x18g \x01(\x09\x12\x14\x0A\x0Cgithub_label\x18h \x01(\x09\x12\x1E\x0A\x16codeowner_github_teams\x18i \x03(\x09\x12\x16\x0A\x0Edoc_tag_prefix\x18j \x01(\x09\x12;\x0A\x0Corganization\x18k \x01(\x0E2%.google.api.ClientLibraryOrganization\x12;\x0A\x10library_settings\x18m \x03(\x0B2!.google.api.ClientLibrarySettings\x12)\x0A!proto_reference_documentation_uri\x18n \x01(\x09\x12(\x0A rest_reference_documentation_uri\x18o \x01(\x09\"\xE3\x01\x0A\x0CJavaSettings\x12\x17\x0A\x0Flibrary_package\x18\x01 \x01(\x09\x12L\x0A\x13service_class_names\x18\x02 \x03(\x0B2/.google.api.JavaSettings.ServiceClassNamesEntry\x122\x0A\x06common\x18\x03 \x01(\x0B2\".google.api.CommonLanguageSettings\x1A8\x0A\x16ServiceClassNamesEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"A\x0A\x0BCppSettings\x122\x0A\x06common\x18\x01 \x01(\x0B2\".google.api.CommonLanguageSettings\"Z\x0A\x0BPhpSettings\x122\x0A\x06common\x18\x01 \x01(\x0B2\".google.api.CommonLanguageSettings\x12\x17\x0A\x0Flibrary_package\x18\x02 \x01(\x09\"\x9B\x02\x0A\x0EPythonSettings\x122\x0A\x06common\x18\x01 \x01(\x0B2\".google.api.CommonLanguageSettings\x12N\x0A\x15experimental_features\x18\x02 \x01(\x0B2/.google.api.PythonSettings.ExperimentalFeatures\x1A\x84\x01\x0A\x14ExperimentalFeatures\x12\x1D\x0A\x15rest_async_io_enabled\x18\x01 \x01(\x08\x12'\x0A\x1Fprotobuf_pythonic_types_enabled\x18\x02 \x01(\x08\x12\$\x0A\x1Cunversioned_package_disabled\x18\x03 \x01(\x08\"B\x0A\x0CNodeSettings\x122\x0A\x06common\x18\x01 \x01(\x0B2\".google.api.CommonLanguageSettings\"\xAA\x03\x0A\x0EDotnetSettings\x122\x0A\x06common\x18\x01 \x01(\x0B2\".google.api.CommonLanguageSettings\x12I\x0A\x10renamed_services\x18\x02 \x03(\x0B2/.google.api.DotnetSettings.RenamedServicesEntry\x12K\x0A\x11renamed_resources\x18\x03 \x03(\x0B20.google.api.DotnetSettings.RenamedResourcesEntry\x12\x19\x0A\x11ignored_resources\x18\x04 \x03(\x09\x12 \x0A\x18forced_namespace_aliases\x18\x05 \x03(\x09\x12\x1E\x0A\x16handwritten_signatures\x18\x06 \x03(\x09\x1A6\x0A\x14RenamedServicesEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\x1A7\x0A\x15RenamedResourcesEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"B\x0A\x0CRubySettings\x122\x0A\x06common\x18\x01 \x01(\x0B2\".google.api.CommonLanguageSettings\"\xBF\x01\x0A\x0AGoSettings\x122\x0A\x06common\x18\x01 \x01(\x0B2\".google.api.CommonLanguageSettings\x12E\x0A\x10renamed_services\x18\x02 \x03(\x0B2+.google.api.GoSettings.RenamedServicesEntry\x1A6\x0A\x14RenamedServicesEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"\x82\x03\x0A\x0EMethodSettings\x12\x10\x0A\x08selector\x18\x01 \x01(\x09\x12<\x0A\x0Clong_running\x18\x02 \x01(\x0B2&.google.api.MethodSettings.LongRunning\x12\x1D\x0A\x15auto_populated_fields\x18\x03 \x03(\x09\x121\x0A\x08batching\x18\x04 \x01(\x0B2\x1F.google.api.BatchingConfigProto\x1A\xCD\x01\x0A\x0BLongRunning\x125\x0A\x12initial_poll_delay\x18\x01 \x01(\x0B2\x19.google.protobuf.Duration\x12\x1D\x0A\x15poll_delay_multiplier\x18\x02 \x01(\x02\x121\x0A\x0Emax_poll_delay\x18\x03 \x01(\x0B2\x19.google.protobuf.Duration\x125\x0A\x12total_poll_timeout\x18\x04 \x01(\x0B2\x19.google.protobuf.Duration\"Q\x0A\x18SelectiveGapicGeneration\x12\x0F\x0A\x07methods\x18\x01 \x03(\x09\x12\$\x0A\x1Cgenerate_omitted_as_internal\x18\x02 \x01(\x08\"\x8B\x01\x0A\x13BatchingConfigProto\x125\x0A\x0Athresholds\x18\x01 \x01(\x0B2!.google.api.BatchingSettingsProto\x12=\x0A\x10batch_descriptor\x18\x02 \x01(\x0B2#.google.api.BatchingDescriptorProto\"\xEB\x02\x0A\x15BatchingSettingsProto\x12\x1F\x0A\x17element_count_threshold\x18\x01 \x01(\x05\x12\x1E\x0A\x16request_byte_threshold\x18\x02 \x01(\x03\x122\x0A\x0Fdelay_threshold\x18\x03 \x01(\x0B2\x19.google.protobuf.Duration\x12\x1B\x0A\x13element_count_limit\x18\x04 \x01(\x05\x12\x1A\x0A\x12request_byte_limit\x18\x05 \x01(\x05\x12\"\x0A\x1Aflow_control_element_limit\x18\x06 \x01(\x05\x12\x1F\x0A\x17flow_control_byte_limit\x18\x07 \x01(\x05\x12_\x0A\$flow_control_limit_exceeded_behavior\x18\x08 \x01(\x0E21.google.api.FlowControlLimitExceededBehaviorProto\"i\x0A\x17BatchingDescriptorProto\x12\x15\x0A\x0Dbatched_field\x18\x01 \x01(\x09\x12\x1C\x0A\x14discriminator_fields\x18\x02 \x03(\x09\x12\x19\x0A\x11subresponse_field\x18\x03 \x01(\x09*\xA3\x01\x0A\x19ClientLibraryOrganization\x12+\x0A'CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED\x10\x00\x12\x09\x0A\x05CLOUD\x10\x01\x12\x07\x0A\x03ADS\x10\x02\x12\x0A\x0A\x06PHOTOS\x10\x03\x12\x0F\x0A\x0BSTREET_VIEW\x10\x04\x12\x0C\x0A\x08SHOPPING\x10\x05\x12\x07\x0A\x03GEO\x10\x06\x12\x11\x0A\x0DGENERATIVE_AI\x10\x07*g\x0A\x18ClientLibraryDestination\x12*\x0A&CLIENT_LIBRARY_DESTINATION_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06GITHUB\x10\x0A\x12\x13\x0A\x0FPACKAGE_MANAGER\x10\x14*g\x0A%FlowControlLimitExceededBehaviorProto\x12\x12\x0A\x0EUNSET_BEHAVIOR\x10\x00\x12\x13\x0A\x0FTHROW_EXCEPTION\x10\x01\x12\x09\x0A\x05BLOCK\x10\x02\x12\x0A\x0A\x06IGNORE\x10\x03Bi\x0A\x0Ecom.google.apiB\x0BClientProtoP\x01ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\xA2\x02\x04GAPIb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/ConfigChange.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/ConfigChange.php deleted file mode 100644 index 82abb6653244..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/ConfigChange.php +++ /dev/null @@ -1,24 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xB1\x03\x0A\x1Egoogle/api/config_change.proto\x12\x0Agoogle.api\"\x97\x01\x0A\x0CConfigChange\x12\x0F\x0A\x07element\x18\x01 \x01(\x09\x12\x11\x0A\x09old_value\x18\x02 \x01(\x09\x12\x11\x0A\x09new_value\x18\x03 \x01(\x09\x12+\x0A\x0Bchange_type\x18\x04 \x01(\x0E2\x16.google.api.ChangeType\x12#\x0A\x07advices\x18\x05 \x03(\x0B2\x12.google.api.Advice\"\x1D\x0A\x06Advice\x12\x13\x0A\x0Bdescription\x18\x02 \x01(\x09*O\x0A\x0AChangeType\x12\x1B\x0A\x17CHANGE_TYPE_UNSPECIFIED\x10\x00\x12\x09\x0A\x05ADDED\x10\x01\x12\x0B\x0A\x07REMOVED\x10\x02\x12\x0C\x0A\x08MODIFIED\x10\x03Bq\x0A\x0Ecom.google.apiB\x11ConfigChangeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/api/configchange;configchange\xA2\x02\x04GAPIb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Consumer.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Consumer.php deleted file mode 100644 index 3e59e137926a..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Consumer.php +++ /dev/null @@ -1,24 +0,0 @@ -internalAddGeneratedFile( - "\x0A\x87\x03\x0A\x19google/api/consumer.proto\x12\x0Agoogle.api\"=\x0A\x11ProjectProperties\x12(\x0A\x0Aproperties\x18\x01 \x03(\x0B2\x14.google.api.Property\"\xAC\x01\x0A\x08Property\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12/\x0A\x04type\x18\x02 \x01(\x0E2!.google.api.Property.PropertyType\x12\x13\x0A\x0Bdescription\x18\x03 \x01(\x09\"L\x0A\x0CPropertyType\x12\x0F\x0A\x0BUNSPECIFIED\x10\x00\x12\x09\x0A\x05INT64\x10\x01\x12\x08\x0A\x04BOOL\x10\x02\x12\x0A\x0A\x06STRING\x10\x03\x12\x0A\x0A\x06DOUBLE\x10\x04Bh\x0A\x0Ecom.google.apiB\x0DConsumerProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfigb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Context.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Context.php deleted file mode 100644 index b06c93bd719f..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Context.php +++ /dev/null @@ -1,24 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xE1\x02\x0A\x18google/api/context.proto\x12\x0Agoogle.api\"1\x0A\x07Context\x12&\x0A\x05rules\x18\x01 \x03(\x0B2\x17.google.api.ContextRule\"\x8D\x01\x0A\x0BContextRule\x12\x10\x0A\x08selector\x18\x01 \x01(\x09\x12\x11\x0A\x09requested\x18\x02 \x03(\x09\x12\x10\x0A\x08provided\x18\x03 \x03(\x09\x12\"\x0A\x1Aallowed_request_extensions\x18\x04 \x03(\x09\x12#\x0A\x1Ballowed_response_extensions\x18\x05 \x03(\x09Bn\x0A\x0Ecom.google.apiB\x0CContextProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xA2\x02\x04GAPIb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Control.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Control.php deleted file mode 100644 index ae0f4142baea..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Control.php +++ /dev/null @@ -1,25 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xF1\x01\x0A\x18google/api/control.proto\x12\x0Agoogle.api\"Q\x0A\x07Control\x12\x13\x0A\x0Benvironment\x18\x01 \x01(\x09\x121\x0A\x0Fmethod_policies\x18\x04 \x03(\x0B2\x18.google.api.MethodPolicyBn\x0A\x0Ecom.google.apiB\x0CControlProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xA2\x02\x04GAPIb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Distribution.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Distribution.php deleted file mode 100644 index 90f51fe3e87c..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Distribution.php +++ /dev/null @@ -1,26 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xA3\x08\x0A\x1Dgoogle/api/distribution.proto\x12\x0Agoogle.api\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xD9\x06\x0A\x0CDistribution\x12\x0D\x0A\x05count\x18\x01 \x01(\x03\x12\x0C\x0A\x04mean\x18\x02 \x01(\x01\x12 \x0A\x18sum_of_squared_deviation\x18\x03 \x01(\x01\x12-\x0A\x05range\x18\x04 \x01(\x0B2\x1E.google.api.Distribution.Range\x12>\x0A\x0Ebucket_options\x18\x06 \x01(\x0B2&.google.api.Distribution.BucketOptions\x12\x15\x0A\x0Dbucket_counts\x18\x07 \x03(\x03\x124\x0A\x09exemplars\x18\x0A \x03(\x0B2!.google.api.Distribution.Exemplar\x1A!\x0A\x05Range\x12\x0B\x0A\x03min\x18\x01 \x01(\x01\x12\x0B\x0A\x03max\x18\x02 \x01(\x01\x1A\xB5\x03\x0A\x0DBucketOptions\x12G\x0A\x0Elinear_buckets\x18\x01 \x01(\x0B2-.google.api.Distribution.BucketOptions.LinearH\x00\x12Q\x0A\x13exponential_buckets\x18\x02 \x01(\x0B22.google.api.Distribution.BucketOptions.ExponentialH\x00\x12K\x0A\x10explicit_buckets\x18\x03 \x01(\x0B2/.google.api.Distribution.BucketOptions.ExplicitH\x00\x1AC\x0A\x06Linear\x12\x1A\x0A\x12num_finite_buckets\x18\x01 \x01(\x05\x12\x0D\x0A\x05width\x18\x02 \x01(\x01\x12\x0E\x0A\x06offset\x18\x03 \x01(\x01\x1AO\x0A\x0BExponential\x12\x1A\x0A\x12num_finite_buckets\x18\x01 \x01(\x05\x12\x15\x0A\x0Dgrowth_factor\x18\x02 \x01(\x01\x12\x0D\x0A\x05scale\x18\x03 \x01(\x01\x1A\x1A\x0A\x08Explicit\x12\x0E\x0A\x06bounds\x18\x01 \x03(\x01B\x09\x0A\x07options\x1As\x0A\x08Exemplar\x12\x0D\x0A\x05value\x18\x01 \x01(\x01\x12-\x0A\x09timestamp\x18\x02 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12)\x0A\x0Battachments\x18\x03 \x03(\x0B2\x14.google.protobuf.AnyBq\x0A\x0Ecom.google.apiB\x11DistributionProtoP\x01ZCgoogle.golang.org/genproto/googleapis/api/distribution;distribution\xA2\x02\x04GAPIb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Documentation.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Documentation.php deleted file mode 100644 index a83176a54c3e..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Documentation.php +++ /dev/null @@ -1,24 +0,0 @@ -internalAddGeneratedFile( - "\x0A\x90\x04\x0A\x1Egoogle/api/documentation.proto\x12\x0Agoogle.api\"\xBB\x01\x0A\x0DDocumentation\x12\x0F\x0A\x07summary\x18\x01 \x01(\x09\x12\x1F\x0A\x05pages\x18\x05 \x03(\x0B2\x10.google.api.Page\x12,\x0A\x05rules\x18\x03 \x03(\x0B2\x1D.google.api.DocumentationRule\x12\x1E\x0A\x16documentation_root_url\x18\x04 \x01(\x09\x12\x18\x0A\x10service_root_url\x18\x06 \x01(\x09\x12\x10\x0A\x08overview\x18\x02 \x01(\x09\"[\x0A\x11DocumentationRule\x12\x10\x0A\x08selector\x18\x01 \x01(\x09\x12\x13\x0A\x0Bdescription\x18\x02 \x01(\x09\x12\x1F\x0A\x17deprecation_description\x18\x03 \x01(\x09\"I\x0A\x04Page\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12\x0F\x0A\x07content\x18\x02 \x01(\x09\x12\"\x0A\x08subpages\x18\x03 \x03(\x0B2\x10.google.api.PageBt\x0A\x0Ecom.google.apiB\x12DocumentationProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xA2\x02\x04GAPIb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Endpoint.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Endpoint.php deleted file mode 100644 index 1e4fb87a4de6..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Endpoint.php +++ /dev/null @@ -1,24 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xEF\x01\x0A\x19google/api/endpoint.proto\x12\x0Agoogle.api\"M\x0A\x08Endpoint\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12\x0F\x0A\x07aliases\x18\x02 \x03(\x09\x12\x0E\x0A\x06target\x18e \x01(\x09\x12\x12\x0A\x0Aallow_cors\x18\x05 \x01(\x08Bo\x0A\x0Ecom.google.apiB\x0DEndpointProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xA2\x02\x04GAPIb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/ErrorReason.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/ErrorReason.php deleted file mode 100644 index d38f6fcc5c41..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/ErrorReason.php +++ /dev/null @@ -1,24 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xBA\x0B\x0A\x1Dgoogle/api/error_reason.proto\x12\x0Agoogle.api*\x92\x0A\x0A\x0BErrorReason\x12\x1C\x0A\x18ERROR_REASON_UNSPECIFIED\x10\x00\x12\x14\x0A\x10SERVICE_DISABLED\x10\x01\x12\x14\x0A\x10BILLING_DISABLED\x10\x02\x12\x13\x0A\x0FAPI_KEY_INVALID\x10\x03\x12\x1B\x0A\x17API_KEY_SERVICE_BLOCKED\x10\x04\x12!\x0A\x1DAPI_KEY_HTTP_REFERRER_BLOCKED\x10\x07\x12\x1E\x0A\x1AAPI_KEY_IP_ADDRESS_BLOCKED\x10\x08\x12\x1F\x0A\x1BAPI_KEY_ANDROID_APP_BLOCKED\x10\x09\x12\x1B\x0A\x17API_KEY_IOS_APP_BLOCKED\x10\x0D\x12\x17\x0A\x13RATE_LIMIT_EXCEEDED\x10\x05\x12\x1B\x0A\x17RESOURCE_QUOTA_EXCEEDED\x10\x06\x12 \x0A\x1CLOCATION_TAX_POLICY_VIOLATED\x10\x0A\x12\x17\x0A\x13USER_PROJECT_DENIED\x10\x0B\x12\x16\x0A\x12CONSUMER_SUSPENDED\x10\x0C\x12\x14\x0A\x10CONSUMER_INVALID\x10\x0E\x12\x1C\x0A\x18SECURITY_POLICY_VIOLATED\x10\x0F\x12\x18\x0A\x14ACCESS_TOKEN_EXPIRED\x10\x10\x12#\x0A\x1FACCESS_TOKEN_SCOPE_INSUFFICIENT\x10\x11\x12\x19\x0A\x15ACCOUNT_STATE_INVALID\x10\x12\x12!\x0A\x1DACCESS_TOKEN_TYPE_UNSUPPORTED\x10\x13\x12\x17\x0A\x13CREDENTIALS_MISSING\x10\x14\x12\x1C\x0A\x18RESOURCE_PROJECT_INVALID\x10\x15\x12\x1A\x0A\x16SESSION_COOKIE_INVALID\x10\x17\x12\x19\x0A\x15USER_BLOCKED_BY_ADMIN\x10\x18\x12'\x0A#RESOURCE_USAGE_RESTRICTION_VIOLATED\x10\x19\x12 \x0A\x1CSYSTEM_PARAMETER_UNSUPPORTED\x10\x1A\x12\x1D\x0A\x19ORG_RESTRICTION_VIOLATION\x10\x1B\x12\"\x0A\x1EORG_RESTRICTION_HEADER_INVALID\x10\x1C\x12\x17\x0A\x13SERVICE_NOT_VISIBLE\x10\x1D\x12\x11\x0A\x0DGCP_SUSPENDED\x10\x1E\x12\x1C\x0A\x18LOCATION_POLICY_VIOLATED\x10\x1F\x12\x12\x0A\x0EMISSING_ORIGIN\x10!\x12\x1A\x0A\x16OVERLOADED_CREDENTIALS\x10\"\x12 \x0A\x1CLOCATION_ORG_POLICY_VIOLATED\x10#\x12\x1B\x0A\x17TLS_ORG_POLICY_VIOLATED\x10\$\x12\x1B\x0A\x17EMULATOR_QUOTA_EXCEEDED\x10&\x12\"\x0A\x1ECREDENTIAL_ANDROID_APP_INVALID\x10'\x12\x19\x0A\x15IAM_PERMISSION_DENIED\x10)\x12\x15\x0A\x11JWT_TOKEN_INVALID\x10*\x12\x1F\x0A\x1BCREDENTIAL_TYPE_UNSUPPORTED\x10+\x12\x1C\x0A\x18ACCOUNT_TYPE_UNSUPPORTED\x10,\x12'\x0A#ENDPOINT_USAGE_RESTRICTION_VIOLATED\x10-\x12#\x0A\x1FTLS_CIPHER_RESTRICTION_VIOLATED\x10.\x12\x17\x0A\x13MCP_SERVER_DISABLED\x10/Bp\x0A\x0Ecom.google.apiB\x10ErrorReasonProtoP\x01ZCgoogle.golang.org/genproto/googleapis/api/error_reason;error_reason\xA2\x02\x04GAPIb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/FieldBehavior.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/FieldBehavior.php deleted file mode 100644 index 72cc2439c61f..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/FieldBehavior.php +++ /dev/null @@ -1,24 +0,0 @@ -internalAddGeneratedFile( - "\x0A\x82\x03\x0A\x1Fgoogle/api/field_behavior.proto\x12\x0Agoogle.api\x1A google/protobuf/descriptor.proto*\xB6\x01\x0A\x0DFieldBehavior\x12\x1E\x0A\x1AFIELD_BEHAVIOR_UNSPECIFIED\x10\x00\x12\x0C\x0A\x08OPTIONAL\x10\x01\x12\x0C\x0A\x08REQUIRED\x10\x02\x12\x0F\x0A\x0BOUTPUT_ONLY\x10\x03\x12\x0E\x0A\x0AINPUT_ONLY\x10\x04\x12\x0D\x0A\x09IMMUTABLE\x10\x05\x12\x12\x0A\x0EUNORDERED_LIST\x10\x06\x12\x15\x0A\x11NON_EMPTY_DEFAULT\x10\x07\x12\x0E\x0A\x0AIDENTIFIER\x10\x08Bp\x0A\x0Ecom.google.apiB\x12FieldBehaviorProtoP\x01ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\xA2\x02\x04GAPIb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/FieldInfo.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/FieldInfo.php deleted file mode 100644 index b699c4dcd537..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/FieldInfo.php +++ /dev/null @@ -1,24 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xA9\x03\x0A\x1Bgoogle/api/field_info.proto\x12\x0Agoogle.api\x1A google/protobuf/descriptor.proto\"\xC1\x01\x0A\x09FieldInfo\x12,\x0A\x06format\x18\x01 \x01(\x0E2\x1C.google.api.FieldInfo.Format\x123\x0A\x10referenced_types\x18\x02 \x03(\x0B2\x19.google.api.TypeReference\"Q\x0A\x06Format\x12\x16\x0A\x12FORMAT_UNSPECIFIED\x10\x00\x12\x09\x0A\x05UUID4\x10\x01\x12\x08\x0A\x04IPV4\x10\x02\x12\x08\x0A\x04IPV6\x10\x03\x12\x10\x0A\x0CIPV4_OR_IPV6\x10\x04\"\"\x0A\x0DTypeReference\x12\x11\x0A\x09type_name\x18\x01 \x01(\x09Bl\x0A\x0Ecom.google.apiB\x0EFieldInfoProtoP\x01ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\xA2\x02\x04GAPIb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Http.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Http.php deleted file mode 100644 index 2798dde48900..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Http.php +++ /dev/null @@ -1,24 +0,0 @@ -internalAddGeneratedFile( - "\x0A\x9F\x04\x0A\x15google/api/http.proto\x12\x0Agoogle.api\"T\x0A\x04Http\x12#\x0A\x05rules\x18\x01 \x03(\x0B2\x14.google.api.HttpRule\x12'\x0A\x1Ffully_decode_reserved_expansion\x18\x02 \x01(\x08\"\x81\x02\x0A\x08HttpRule\x12\x10\x0A\x08selector\x18\x01 \x01(\x09\x12\x0D\x0A\x03get\x18\x02 \x01(\x09H\x00\x12\x0D\x0A\x03put\x18\x03 \x01(\x09H\x00\x12\x0E\x0A\x04post\x18\x04 \x01(\x09H\x00\x12\x10\x0A\x06delete\x18\x05 \x01(\x09H\x00\x12\x0F\x0A\x05patch\x18\x06 \x01(\x09H\x00\x12/\x0A\x06custom\x18\x08 \x01(\x0B2\x1D.google.api.CustomHttpPatternH\x00\x12\x0C\x0A\x04body\x18\x07 \x01(\x09\x12\x15\x0A\x0Dresponse_body\x18\x0C \x01(\x09\x121\x0A\x13additional_bindings\x18\x0B \x03(\x0B2\x14.google.api.HttpRuleB\x09\x0A\x07pattern\"/\x0A\x11CustomHttpPattern\x12\x0C\x0A\x04kind\x18\x01 \x01(\x09\x12\x0C\x0A\x04path\x18\x02 \x01(\x09Bg\x0A\x0Ecom.google.apiB\x09HttpProtoP\x01ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\xA2\x02\x04GAPIb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Httpbody.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Httpbody.php deleted file mode 100644 index 414f11115319..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Httpbody.php +++ /dev/null @@ -1,25 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xF0\x01\x0A\x19google/api/httpbody.proto\x12\x0Agoogle.api\"X\x0A\x08HttpBody\x12\x14\x0A\x0Ccontent_type\x18\x01 \x01(\x09\x12\x0C\x0A\x04data\x18\x02 \x01(\x0C\x12(\x0A\x0Aextensions\x18\x03 \x03(\x0B2\x14.google.protobuf.AnyBe\x0A\x0Ecom.google.apiB\x0DHttpBodyProtoP\x01Z;google.golang.org/genproto/googleapis/api/httpbody;httpbody\xA2\x02\x04GAPIb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Label.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Label.php deleted file mode 100644 index d076fa333968..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Label.php +++ /dev/null @@ -1,24 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xA9\x02\x0A\x16google/api/label.proto\x12\x0Agoogle.api\"\x9C\x01\x0A\x0FLabelDescriptor\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x129\x0A\x0Avalue_type\x18\x02 \x01(\x0E2%.google.api.LabelDescriptor.ValueType\x12\x13\x0A\x0Bdescription\x18\x03 \x01(\x09\",\x0A\x09ValueType\x12\x0A\x0A\x06STRING\x10\x00\x12\x08\x0A\x04BOOL\x10\x01\x12\x09\x0A\x05INT64\x10\x02B\\\x0A\x0Ecom.google.apiB\x0ALabelProtoP\x01Z5google.golang.org/genproto/googleapis/api/label;label\xA2\x02\x04GAPIb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/LaunchStage.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/LaunchStage.php deleted file mode 100644 index 6fd92a165718..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/LaunchStage.php +++ /dev/null @@ -1,24 +0,0 @@ -internalAddGeneratedFile( - "\x0A\x9E\x02\x0A\x1Dgoogle/api/launch_stage.proto\x12\x0Agoogle.api*\x8C\x01\x0A\x0BLaunchStage\x12\x1C\x0A\x18LAUNCH_STAGE_UNSPECIFIED\x10\x00\x12\x11\x0A\x0DUNIMPLEMENTED\x10\x06\x12\x0D\x0A\x09PRELAUNCH\x10\x07\x12\x10\x0A\x0CEARLY_ACCESS\x10\x01\x12\x09\x0A\x05ALPHA\x10\x02\x12\x08\x0A\x04BETA\x10\x03\x12\x06\x0A\x02GA\x10\x04\x12\x0E\x0A\x0ADEPRECATED\x10\x05BZ\x0A\x0Ecom.google.apiB\x10LaunchStageProtoP\x01Z-google.golang.org/genproto/googleapis/api;api\xA2\x02\x04GAPIb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Log.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Log.php deleted file mode 100644 index 5f7c45af5ae5..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Log.php +++ /dev/null @@ -1,25 +0,0 @@ -internalAddGeneratedFile( - "\x0A\x8D\x02\x0A\x14google/api/log.proto\x12\x0Agoogle.api\"u\x0A\x0DLogDescriptor\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12+\x0A\x06labels\x18\x02 \x03(\x0B2\x1B.google.api.LabelDescriptor\x12\x13\x0A\x0Bdescription\x18\x03 \x01(\x09\x12\x14\x0A\x0Cdisplay_name\x18\x04 \x01(\x09Bj\x0A\x0Ecom.google.apiB\x08LogProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xA2\x02\x04GAPIb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Logging.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Logging.php deleted file mode 100644 index 921a88c8432e..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Logging.php +++ /dev/null @@ -1,24 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xF8\x02\x0A\x18google/api/logging.proto\x12\x0Agoogle.api\"\xD7\x01\x0A\x07Logging\x12E\x0A\x15producer_destinations\x18\x01 \x03(\x0B2&.google.api.Logging.LoggingDestination\x12E\x0A\x15consumer_destinations\x18\x02 \x03(\x0B2&.google.api.Logging.LoggingDestination\x1A>\x0A\x12LoggingDestination\x12\x1A\x0A\x12monitored_resource\x18\x03 \x01(\x09\x12\x0C\x0A\x04logs\x18\x01 \x03(\x09Bn\x0A\x0Ecom.google.apiB\x0CLoggingProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xA2\x02\x04GAPIb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Metric.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Metric.php deleted file mode 100644 index bac797115c35..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Metric.php +++ /dev/null @@ -1,27 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xF3\x0A\x0A\x17google/api/metric.proto\x12\x0Agoogle.api\x1A\x1Dgoogle/api/launch_stage.proto\x1A\x1Egoogle/protobuf/duration.proto\"\xAC\x08\x0A\x10MetricDescriptor\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12\x0C\x0A\x04type\x18\x08 \x01(\x09\x12+\x0A\x06labels\x18\x02 \x03(\x0B2\x1B.google.api.LabelDescriptor\x12<\x0A\x0Bmetric_kind\x18\x03 \x01(\x0E2'.google.api.MetricDescriptor.MetricKind\x12:\x0A\x0Avalue_type\x18\x04 \x01(\x0E2&.google.api.MetricDescriptor.ValueType\x12\x0C\x0A\x04unit\x18\x05 \x01(\x09\x12\x13\x0A\x0Bdescription\x18\x06 \x01(\x09\x12\x14\x0A\x0Cdisplay_name\x18\x07 \x01(\x09\x12G\x0A\x08metadata\x18\x0A \x01(\x0B25.google.api.MetricDescriptor.MetricDescriptorMetadata\x12-\x0A\x0Claunch_stage\x18\x0C \x01(\x0E2\x17.google.api.LaunchStage\x12 \x0A\x18monitored_resource_types\x18\x0D \x03(\x09\x1A\xBD\x03\x0A\x18MetricDescriptorMetadata\x121\x0A\x0Claunch_stage\x18\x01 \x01(\x0E2\x17.google.api.LaunchStageB\x02\x18\x01\x120\x0A\x0Dsample_period\x18\x02 \x01(\x0B2\x19.google.protobuf.Duration\x12/\x0A\x0Cingest_delay\x18\x03 \x01(\x0B2\x19.google.protobuf.Duration\x12\x84\x01\x0A\$time_series_resource_hierarchy_level\x18\x04 \x03(\x0E2V.google.api.MetricDescriptor.MetricDescriptorMetadata.TimeSeriesResourceHierarchyLevel\"\x83\x01\x0A TimeSeriesResourceHierarchyLevel\x124\x0A0TIME_SERIES_RESOURCE_HIERARCHY_LEVEL_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07PROJECT\x10\x01\x12\x10\x0A\x0CORGANIZATION\x10\x02\x12\x0A\x0A\x06FOLDER\x10\x03\"O\x0A\x0AMetricKind\x12\x1B\x0A\x17METRIC_KIND_UNSPECIFIED\x10\x00\x12\x09\x0A\x05GAUGE\x10\x01\x12\x09\x0A\x05DELTA\x10\x02\x12\x0E\x0A\x0ACUMULATIVE\x10\x03\"q\x0A\x09ValueType\x12\x1A\x0A\x16VALUE_TYPE_UNSPECIFIED\x10\x00\x12\x08\x0A\x04BOOL\x10\x01\x12\x09\x0A\x05INT64\x10\x02\x12\x0A\x0A\x06DOUBLE\x10\x03\x12\x0A\x0A\x06STRING\x10\x04\x12\x10\x0A\x0CDISTRIBUTION\x10\x05\x12\x09\x0A\x05MONEY\x10\x06\"u\x0A\x06Metric\x12\x0C\x0A\x04type\x18\x03 \x01(\x09\x12.\x0A\x06labels\x18\x02 \x03(\x0B2\x1E.google.api.Metric.LabelsEntry\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01B_\x0A\x0Ecom.google.apiB\x0BMetricProtoP\x01Z7google.golang.org/genproto/googleapis/api/metric;metric\xA2\x02\x04GAPIb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/MonitoredResource.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/MonitoredResource.php deleted file mode 100644 index e7cb60fa0e10..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/MonitoredResource.php +++ /dev/null @@ -1,27 +0,0 @@ -internalAddGeneratedFile( - "\x0A\x8C\x06\x0A#google/api/monitored_resource.proto\x12\x0Agoogle.api\x1A\x1Dgoogle/api/launch_stage.proto\x1A\x1Cgoogle/protobuf/struct.proto\"\xC0\x01\x0A\x1BMonitoredResourceDescriptor\x12\x0C\x0A\x04name\x18\x05 \x01(\x09\x12\x0C\x0A\x04type\x18\x01 \x01(\x09\x12\x14\x0A\x0Cdisplay_name\x18\x02 \x01(\x09\x12\x13\x0A\x0Bdescription\x18\x03 \x01(\x09\x12+\x0A\x06labels\x18\x04 \x03(\x0B2\x1B.google.api.LabelDescriptor\x12-\x0A\x0Claunch_stage\x18\x07 \x01(\x0E2\x17.google.api.LaunchStage\"\x8B\x01\x0A\x11MonitoredResource\x12\x0C\x0A\x04type\x18\x01 \x01(\x09\x129\x0A\x06labels\x18\x02 \x03(\x0B2).google.api.MonitoredResource.LabelsEntry\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"\xCA\x01\x0A\x19MonitoredResourceMetadata\x12.\x0A\x0Dsystem_labels\x18\x01 \x01(\x0B2\x17.google.protobuf.Struct\x12J\x0A\x0Buser_labels\x18\x02 \x03(\x0B25.google.api.MonitoredResourceMetadata.UserLabelsEntry\x1A1\x0A\x0FUserLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01Bv\x0A\x0Ecom.google.apiB\x16MonitoredResourceProtoP\x01ZCgoogle.golang.org/genproto/googleapis/api/monitoredres;monitoredres\xA2\x02\x04GAPIb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Monitoring.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Monitoring.php deleted file mode 100644 index 4c70cb0defc8..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Monitoring.php +++ /dev/null @@ -1,24 +0,0 @@ -internalAddGeneratedFile( - "\x0A\x93\x03\x0A\x1Bgoogle/api/monitoring.proto\x12\x0Agoogle.api\"\xEC\x01\x0A\x0AMonitoring\x12K\x0A\x15producer_destinations\x18\x01 \x03(\x0B2,.google.api.Monitoring.MonitoringDestination\x12K\x0A\x15consumer_destinations\x18\x02 \x03(\x0B2,.google.api.Monitoring.MonitoringDestination\x1AD\x0A\x15MonitoringDestination\x12\x1A\x0A\x12monitored_resource\x18\x01 \x01(\x09\x12\x0F\x0A\x07metrics\x18\x02 \x03(\x09Bq\x0A\x0Ecom.google.apiB\x0FMonitoringProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xA2\x02\x04GAPIb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Policy.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Policy.php deleted file mode 100644 index 5d6bd055727b..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Policy.php +++ /dev/null @@ -1,24 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xE8\x02\x0A\x17google/api/policy.proto\x12\x0Agoogle.api\x1A google/protobuf/descriptor.proto\"S\x0A\x0BFieldPolicy\x12\x10\x0A\x08selector\x18\x01 \x01(\x09\x12\x1B\x0A\x13resource_permission\x18\x02 \x01(\x09\x12\x15\x0A\x0Dresource_type\x18\x03 \x01(\x09\"S\x0A\x0CMethodPolicy\x12\x10\x0A\x08selector\x18\x09 \x01(\x09\x121\x0A\x10request_policies\x18\x02 \x03(\x0B2\x17.google.api.FieldPolicyBm\x0A\x0Ecom.google.apiB\x0BPolicyProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xA2\x02\x04GAPIb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Quota.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Quota.php deleted file mode 100644 index 4f0eded77a02..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Quota.php +++ /dev/null @@ -1,24 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xA5\x05\x0A\x16google/api/quota.proto\x12\x0Agoogle.api\"]\x0A\x05Quota\x12&\x0A\x06limits\x18\x03 \x03(\x0B2\x16.google.api.QuotaLimit\x12,\x0A\x0Cmetric_rules\x18\x04 \x03(\x0B2\x16.google.api.MetricRule\"\x91\x01\x0A\x0AMetricRule\x12\x10\x0A\x08selector\x18\x01 \x01(\x09\x12=\x0A\x0Cmetric_costs\x18\x02 \x03(\x0B2'.google.api.MetricRule.MetricCostsEntry\x1A2\x0A\x10MetricCostsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x03:\x028\x01\"\x95\x02\x0A\x0AQuotaLimit\x12\x0C\x0A\x04name\x18\x06 \x01(\x09\x12\x13\x0A\x0Bdescription\x18\x02 \x01(\x09\x12\x15\x0A\x0Ddefault_limit\x18\x03 \x01(\x03\x12\x11\x0A\x09max_limit\x18\x04 \x01(\x03\x12\x11\x0A\x09free_tier\x18\x07 \x01(\x03\x12\x10\x0A\x08duration\x18\x05 \x01(\x09\x12\x0E\x0A\x06metric\x18\x08 \x01(\x09\x12\x0C\x0A\x04unit\x18\x09 \x01(\x09\x122\x0A\x06values\x18\x0A \x03(\x0B2\".google.api.QuotaLimit.ValuesEntry\x12\x14\x0A\x0Cdisplay_name\x18\x0C \x01(\x09\x1A-\x0A\x0BValuesEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x03:\x028\x01Bl\x0A\x0Ecom.google.apiB\x0AQuotaProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xA2\x02\x04GAPIb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Resource.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Resource.php deleted file mode 100644 index 06f145e91841..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Resource.php +++ /dev/null @@ -1,24 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xE6\x04\x0A\x19google/api/resource.proto\x12\x0Agoogle.api\x1A google/protobuf/descriptor.proto\"\xEE\x02\x0A\x12ResourceDescriptor\x12\x0C\x0A\x04type\x18\x01 \x01(\x09\x12\x0F\x0A\x07pattern\x18\x02 \x03(\x09\x12\x12\x0A\x0Aname_field\x18\x03 \x01(\x09\x127\x0A\x07history\x18\x04 \x01(\x0E2&.google.api.ResourceDescriptor.History\x12\x0E\x0A\x06plural\x18\x05 \x01(\x09\x12\x10\x0A\x08singular\x18\x06 \x01(\x09\x123\x0A\x05style\x18\x0A \x03(\x0E2\$.google.api.ResourceDescriptor.Style\"[\x0A\x07History\x12\x17\x0A\x13HISTORY_UNSPECIFIED\x10\x00\x12\x1D\x0A\x19ORIGINALLY_SINGLE_PATTERN\x10\x01\x12\x18\x0A\x14FUTURE_MULTI_PATTERN\x10\x02\"8\x0A\x05Style\x12\x15\x0A\x11STYLE_UNSPECIFIED\x10\x00\x12\x18\x0A\x14DECLARATIVE_FRIENDLY\x10\x01\"5\x0A\x11ResourceReference\x12\x0C\x0A\x04type\x18\x01 \x01(\x09\x12\x12\x0A\x0Achild_type\x18\x02 \x01(\x09Bk\x0A\x0Ecom.google.apiB\x0DResourceProtoP\x01ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\xA2\x02\x04GAPIb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Routing.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Routing.php deleted file mode 100644 index 8146395c2b21..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Routing.php +++ /dev/null @@ -1,24 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xBF\x02\x0A\x18google/api/routing.proto\x12\x0Agoogle.api\x1A google/protobuf/descriptor.proto\"G\x0A\x0BRoutingRule\x128\x0A\x12routing_parameters\x18\x02 \x03(\x0B2\x1C.google.api.RoutingParameter\"8\x0A\x10RoutingParameter\x12\x0D\x0A\x05field\x18\x01 \x01(\x09\x12\x15\x0A\x0Dpath_template\x18\x02 \x01(\x09Bj\x0A\x0Ecom.google.apiB\x0CRoutingProtoP\x01ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\xA2\x02\x04GAPIb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Service.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Service.php deleted file mode 100644 index 93c4c518f2a0..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Service.php +++ /dev/null @@ -1,45 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xC9\x0D\x0A\x18google/api/service.proto\x12\x0Agoogle.api\x1A\x18google/api/backend.proto\x1A\x18google/api/billing.proto\x1A\x17google/api/client.proto\x1A\x18google/api/context.proto\x1A\x18google/api/control.proto\x1A\x1Egoogle/api/documentation.proto\x1A\x19google/api/endpoint.proto\x1A\x15google/api/http.proto\x1A\x14google/api/log.proto\x1A\x18google/api/logging.proto\x1A\x17google/api/metric.proto\x1A#google/api/monitored_resource.proto\x1A\x1Bgoogle/api/monitoring.proto\x1A\x16google/api/quota.proto\x1A\x1Cgoogle/api/source_info.proto\x1A!google/api/system_parameter.proto\x1A\x16google/api/usage.proto\x1A\x19google/protobuf/api.proto\x1A\x1Agoogle/protobuf/type.proto\x1A\x1Egoogle/protobuf/wrappers.proto\"\x82\x08\x0A\x07Service\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12\x0D\x0A\x05title\x18\x02 \x01(\x09\x12\x1B\x0A\x13producer_project_id\x18\x16 \x01(\x09\x12\x0A\x0A\x02id\x18! \x01(\x09\x12\"\x0A\x04apis\x18\x03 \x03(\x0B2\x14.google.protobuf.Api\x12\$\x0A\x05types\x18\x04 \x03(\x0B2\x15.google.protobuf.Type\x12\$\x0A\x05enums\x18\x05 \x03(\x0B2\x15.google.protobuf.Enum\x120\x0A\x0Ddocumentation\x18\x06 \x01(\x0B2\x19.google.api.Documentation\x12\$\x0A\x07backend\x18\x08 \x01(\x0B2\x13.google.api.Backend\x12\x1E\x0A\x04http\x18\x09 \x01(\x0B2\x10.google.api.Http\x12 \x0A\x05quota\x18\x0A \x01(\x0B2\x11.google.api.Quota\x122\x0A\x0Eauthentication\x18\x0B \x01(\x0B2\x1A.google.api.Authentication\x12\$\x0A\x07context\x18\x0C \x01(\x0B2\x13.google.api.Context\x12 \x0A\x05usage\x18\x0F \x01(\x0B2\x11.google.api.Usage\x12'\x0A\x09endpoints\x18\x12 \x03(\x0B2\x14.google.api.Endpoint\x12\$\x0A\x07control\x18\x15 \x01(\x0B2\x13.google.api.Control\x12'\x0A\x04logs\x18\x17 \x03(\x0B2\x19.google.api.LogDescriptor\x12-\x0A\x07metrics\x18\x18 \x03(\x0B2\x1C.google.api.MetricDescriptor\x12D\x0A\x13monitored_resources\x18\x19 \x03(\x0B2'.google.api.MonitoredResourceDescriptor\x12\$\x0A\x07billing\x18\x1A \x01(\x0B2\x13.google.api.Billing\x12\$\x0A\x07logging\x18\x1B \x01(\x0B2\x13.google.api.Logging\x12*\x0A\x0Amonitoring\x18\x1C \x01(\x0B2\x16.google.api.Monitoring\x127\x0A\x11system_parameters\x18\x1D \x01(\x0B2\x1C.google.api.SystemParameters\x12+\x0A\x0Bsource_info\x18% \x01(\x0B2\x16.google.api.SourceInfo\x12*\x0A\x0Apublishing\x18- \x01(\x0B2\x16.google.api.Publishing\x124\x0A\x0Econfig_version\x18\x14 \x01(\x0B2\x1C.google.protobuf.UInt32ValueBn\x0A\x0Ecom.google.apiB\x0CServiceProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xA2\x02\x04GAPIb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/SourceInfo.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/SourceInfo.php deleted file mode 100644 index f22fde7c287a..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/SourceInfo.php +++ /dev/null @@ -1,25 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xDF\x01\x0A\x1Cgoogle/api/source_info.proto\x12\x0Agoogle.api\"8\x0A\x0ASourceInfo\x12*\x0A\x0Csource_files\x18\x01 \x03(\x0B2\x14.google.protobuf.AnyBq\x0A\x0Ecom.google.apiB\x0FSourceInfoProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xA2\x02\x04GAPIb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/SystemParameter.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/SystemParameter.php deleted file mode 100644 index cc85b39549d8..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/SystemParameter.php +++ /dev/null @@ -1,24 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xA0\x03\x0A!google/api/system_parameter.proto\x12\x0Agoogle.api\"B\x0A\x10SystemParameters\x12.\x0A\x05rules\x18\x01 \x03(\x0B2\x1F.google.api.SystemParameterRule\"X\x0A\x13SystemParameterRule\x12\x10\x0A\x08selector\x18\x01 \x01(\x09\x12/\x0A\x0Aparameters\x18\x02 \x03(\x0B2\x1B.google.api.SystemParameter\"Q\x0A\x0FSystemParameter\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12\x13\x0A\x0Bhttp_header\x18\x02 \x01(\x09\x12\x1B\x0A\x13url_query_parameter\x18\x03 \x01(\x09Bv\x0A\x0Ecom.google.apiB\x14SystemParameterProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xA2\x02\x04GAPIb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Usage.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Usage.php deleted file mode 100644 index 82f244faa367..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Usage.php +++ /dev/null @@ -1,24 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xE5\x02\x0A\x16google/api/usage.proto\x12\x0Agoogle.api\"j\x0A\x05Usage\x12\x14\x0A\x0Crequirements\x18\x01 \x03(\x09\x12\$\x0A\x05rules\x18\x06 \x03(\x0B2\x15.google.api.UsageRule\x12%\x0A\x1Dproducer_notification_channel\x18\x07 \x01(\x09\"]\x0A\x09UsageRule\x12\x10\x0A\x08selector\x18\x01 \x01(\x09\x12 \x0A\x18allow_unregistered_calls\x18\x02 \x01(\x08\x12\x1C\x0A\x14skip_service_control\x18\x03 \x01(\x08Bl\x0A\x0Ecom.google.apiB\x0AUsageProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xA2\x02\x04GAPIb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Visibility.php b/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Visibility.php deleted file mode 100644 index b1f2fa0b6ccb..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/GPBMetadata/Google/Api/Visibility.php +++ /dev/null @@ -1,24 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xB2\x02\x0A\x1Bgoogle/api/visibility.proto\x12\x0Agoogle.api\x1A google/protobuf/descriptor.proto\"7\x0A\x0AVisibility\x12)\x0A\x05rules\x18\x01 \x03(\x0B2\x1A.google.api.VisibilityRule\"7\x0A\x0EVisibilityRule\x12\x10\x0A\x08selector\x18\x01 \x01(\x09\x12\x13\x0A\x0Brestriction\x18\x02 \x01(\x09Bk\x0A\x0Ecom.google.apiB\x0FVisibilityProtoP\x01Z?google.golang.org/genproto/googleapis/api/visibility;visibility\xA2\x02\x04GAPIb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Advice.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Advice.php deleted file mode 100644 index 5db1462592bd..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Advice.php +++ /dev/null @@ -1,72 +0,0 @@ -google.api.Advice - */ -class Advice extends \Google\Protobuf\Internal\Message -{ - /** - * Useful description for why this advice was applied and what actions should - * be taken to mitigate any implied risks. - * - * Generated from protobuf field string description = 2; - */ - protected $description = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $description - * Useful description for why this advice was applied and what actions should - * be taken to mitigate any implied risks. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\ConfigChange::initOnce(); - parent::__construct($data); - } - - /** - * Useful description for why this advice was applied and what actions should - * be taken to mitigate any implied risks. - * - * Generated from protobuf field string description = 2; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Useful description for why this advice was applied and what actions should - * be taken to mitigate any implied risks. - * - * Generated from protobuf field string description = 2; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/AuthProvider.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/AuthProvider.php deleted file mode 100644 index 4241a3eea8a5..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/AuthProvider.php +++ /dev/null @@ -1,419 +0,0 @@ -google.api.AuthProvider - */ -class AuthProvider extends \Google\Protobuf\Internal\Message -{ - /** - * The unique identifier of the auth provider. It will be referred to by - * `AuthRequirement.provider_id`. - * Example: "bookstore_auth". - * - * Generated from protobuf field string id = 1; - */ - protected $id = ''; - /** - * Identifies the principal that issued the JWT. See - * https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1 - * Usually a URL or an email address. - * Example: https://securetoken.google.com - * Example: 1234567-compute\@developer.gserviceaccount.com - * - * Generated from protobuf field string issuer = 2; - */ - protected $issuer = ''; - /** - * URL of the provider's public key set to validate signature of the JWT. See - * [OpenID - * Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata). - * Optional if the key set document: - * - can be retrieved from - * [OpenID - * Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html) - * of the issuer. - * - can be inferred from the email domain of the issuer (e.g. a Google - * service account). - * Example: https://www.googleapis.com/oauth2/v1/certs - * - * Generated from protobuf field string jwks_uri = 3; - */ - protected $jwks_uri = ''; - /** - * The list of JWT - * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3). - * that are allowed to access. A JWT containing any of these audiences will - * be accepted. When this setting is absent, JWTs with audiences: - * - "https://[service.name]/[google.protobuf.Api.name]" - * - "https://[service.name]/" - * will be accepted. - * For example, if no audiences are in the setting, LibraryService API will - * accept JWTs with the following audiences: - * - - * https://library-example.googleapis.com/google.example.library.v1.LibraryService - * - https://library-example.googleapis.com/ - * Example: - * audiences: bookstore_android.apps.googleusercontent.com, - * bookstore_web.apps.googleusercontent.com - * - * Generated from protobuf field string audiences = 4; - */ - protected $audiences = ''; - /** - * Redirect URL if JWT token is required but not present or is expired. - * Implement authorizationUrl of securityDefinitions in OpenAPI spec. - * - * Generated from protobuf field string authorization_url = 5; - */ - protected $authorization_url = ''; - /** - * Defines the locations to extract the JWT. For now it is only used by the - * Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations] - * (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations) - * JWT locations can be one of HTTP headers, URL query parameters or - * cookies. The rule is that the first match wins. - * If not specified, default to use following 3 locations: - * 1) Authorization: Bearer - * 2) x-goog-iap-jwt-assertion - * 3) access_token query parameter - * Default locations can be specified as followings: - * jwt_locations: - * - header: Authorization - * value_prefix: "Bearer " - * - header: x-goog-iap-jwt-assertion - * - query: access_token - * - * Generated from protobuf field repeated .google.api.JwtLocation jwt_locations = 6; - */ - private $jwt_locations; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $id - * The unique identifier of the auth provider. It will be referred to by - * `AuthRequirement.provider_id`. - * Example: "bookstore_auth". - * @type string $issuer - * Identifies the principal that issued the JWT. See - * https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1 - * Usually a URL or an email address. - * Example: https://securetoken.google.com - * Example: 1234567-compute\@developer.gserviceaccount.com - * @type string $jwks_uri - * URL of the provider's public key set to validate signature of the JWT. See - * [OpenID - * Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata). - * Optional if the key set document: - * - can be retrieved from - * [OpenID - * Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html) - * of the issuer. - * - can be inferred from the email domain of the issuer (e.g. a Google - * service account). - * Example: https://www.googleapis.com/oauth2/v1/certs - * @type string $audiences - * The list of JWT - * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3). - * that are allowed to access. A JWT containing any of these audiences will - * be accepted. When this setting is absent, JWTs with audiences: - * - "https://[service.name]/[google.protobuf.Api.name]" - * - "https://[service.name]/" - * will be accepted. - * For example, if no audiences are in the setting, LibraryService API will - * accept JWTs with the following audiences: - * - - * https://library-example.googleapis.com/google.example.library.v1.LibraryService - * - https://library-example.googleapis.com/ - * Example: - * audiences: bookstore_android.apps.googleusercontent.com, - * bookstore_web.apps.googleusercontent.com - * @type string $authorization_url - * Redirect URL if JWT token is required but not present or is expired. - * Implement authorizationUrl of securityDefinitions in OpenAPI spec. - * @type \Google\Api\JwtLocation[] $jwt_locations - * Defines the locations to extract the JWT. For now it is only used by the - * Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations] - * (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations) - * JWT locations can be one of HTTP headers, URL query parameters or - * cookies. The rule is that the first match wins. - * If not specified, default to use following 3 locations: - * 1) Authorization: Bearer - * 2) x-goog-iap-jwt-assertion - * 3) access_token query parameter - * Default locations can be specified as followings: - * jwt_locations: - * - header: Authorization - * value_prefix: "Bearer " - * - header: x-goog-iap-jwt-assertion - * - query: access_token - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Auth::initOnce(); - parent::__construct($data); - } - - /** - * The unique identifier of the auth provider. It will be referred to by - * `AuthRequirement.provider_id`. - * Example: "bookstore_auth". - * - * Generated from protobuf field string id = 1; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * The unique identifier of the auth provider. It will be referred to by - * `AuthRequirement.provider_id`. - * Example: "bookstore_auth". - * - * Generated from protobuf field string id = 1; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - - /** - * Identifies the principal that issued the JWT. See - * https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1 - * Usually a URL or an email address. - * Example: https://securetoken.google.com - * Example: 1234567-compute\@developer.gserviceaccount.com - * - * Generated from protobuf field string issuer = 2; - * @return string - */ - public function getIssuer() - { - return $this->issuer; - } - - /** - * Identifies the principal that issued the JWT. See - * https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1 - * Usually a URL or an email address. - * Example: https://securetoken.google.com - * Example: 1234567-compute\@developer.gserviceaccount.com - * - * Generated from protobuf field string issuer = 2; - * @param string $var - * @return $this - */ - public function setIssuer($var) - { - GPBUtil::checkString($var, True); - $this->issuer = $var; - - return $this; - } - - /** - * URL of the provider's public key set to validate signature of the JWT. See - * [OpenID - * Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata). - * Optional if the key set document: - * - can be retrieved from - * [OpenID - * Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html) - * of the issuer. - * - can be inferred from the email domain of the issuer (e.g. a Google - * service account). - * Example: https://www.googleapis.com/oauth2/v1/certs - * - * Generated from protobuf field string jwks_uri = 3; - * @return string - */ - public function getJwksUri() - { - return $this->jwks_uri; - } - - /** - * URL of the provider's public key set to validate signature of the JWT. See - * [OpenID - * Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata). - * Optional if the key set document: - * - can be retrieved from - * [OpenID - * Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html) - * of the issuer. - * - can be inferred from the email domain of the issuer (e.g. a Google - * service account). - * Example: https://www.googleapis.com/oauth2/v1/certs - * - * Generated from protobuf field string jwks_uri = 3; - * @param string $var - * @return $this - */ - public function setJwksUri($var) - { - GPBUtil::checkString($var, True); - $this->jwks_uri = $var; - - return $this; - } - - /** - * The list of JWT - * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3). - * that are allowed to access. A JWT containing any of these audiences will - * be accepted. When this setting is absent, JWTs with audiences: - * - "https://[service.name]/[google.protobuf.Api.name]" - * - "https://[service.name]/" - * will be accepted. - * For example, if no audiences are in the setting, LibraryService API will - * accept JWTs with the following audiences: - * - - * https://library-example.googleapis.com/google.example.library.v1.LibraryService - * - https://library-example.googleapis.com/ - * Example: - * audiences: bookstore_android.apps.googleusercontent.com, - * bookstore_web.apps.googleusercontent.com - * - * Generated from protobuf field string audiences = 4; - * @return string - */ - public function getAudiences() - { - return $this->audiences; - } - - /** - * The list of JWT - * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3). - * that are allowed to access. A JWT containing any of these audiences will - * be accepted. When this setting is absent, JWTs with audiences: - * - "https://[service.name]/[google.protobuf.Api.name]" - * - "https://[service.name]/" - * will be accepted. - * For example, if no audiences are in the setting, LibraryService API will - * accept JWTs with the following audiences: - * - - * https://library-example.googleapis.com/google.example.library.v1.LibraryService - * - https://library-example.googleapis.com/ - * Example: - * audiences: bookstore_android.apps.googleusercontent.com, - * bookstore_web.apps.googleusercontent.com - * - * Generated from protobuf field string audiences = 4; - * @param string $var - * @return $this - */ - public function setAudiences($var) - { - GPBUtil::checkString($var, True); - $this->audiences = $var; - - return $this; - } - - /** - * Redirect URL if JWT token is required but not present or is expired. - * Implement authorizationUrl of securityDefinitions in OpenAPI spec. - * - * Generated from protobuf field string authorization_url = 5; - * @return string - */ - public function getAuthorizationUrl() - { - return $this->authorization_url; - } - - /** - * Redirect URL if JWT token is required but not present or is expired. - * Implement authorizationUrl of securityDefinitions in OpenAPI spec. - * - * Generated from protobuf field string authorization_url = 5; - * @param string $var - * @return $this - */ - public function setAuthorizationUrl($var) - { - GPBUtil::checkString($var, True); - $this->authorization_url = $var; - - return $this; - } - - /** - * Defines the locations to extract the JWT. For now it is only used by the - * Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations] - * (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations) - * JWT locations can be one of HTTP headers, URL query parameters or - * cookies. The rule is that the first match wins. - * If not specified, default to use following 3 locations: - * 1) Authorization: Bearer - * 2) x-goog-iap-jwt-assertion - * 3) access_token query parameter - * Default locations can be specified as followings: - * jwt_locations: - * - header: Authorization - * value_prefix: "Bearer " - * - header: x-goog-iap-jwt-assertion - * - query: access_token - * - * Generated from protobuf field repeated .google.api.JwtLocation jwt_locations = 6; - * @return RepeatedField<\Google\Api\JwtLocation> - */ - public function getJwtLocations() - { - return $this->jwt_locations; - } - - /** - * Defines the locations to extract the JWT. For now it is only used by the - * Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations] - * (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations) - * JWT locations can be one of HTTP headers, URL query parameters or - * cookies. The rule is that the first match wins. - * If not specified, default to use following 3 locations: - * 1) Authorization: Bearer - * 2) x-goog-iap-jwt-assertion - * 3) access_token query parameter - * Default locations can be specified as followings: - * jwt_locations: - * - header: Authorization - * value_prefix: "Bearer " - * - header: x-goog-iap-jwt-assertion - * - query: access_token - * - * Generated from protobuf field repeated .google.api.JwtLocation jwt_locations = 6; - * @param \Google\Api\JwtLocation[] $var - * @return $this - */ - public function setJwtLocations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\JwtLocation::class); - $this->jwt_locations = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/AuthRequirement.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/AuthRequirement.php deleted file mode 100644 index 01f92d53818b..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/AuthRequirement.php +++ /dev/null @@ -1,159 +0,0 @@ -google.api.AuthRequirement - */ -class AuthRequirement extends \Google\Protobuf\Internal\Message -{ - /** - * [id][google.api.AuthProvider.id] from authentication provider. - * Example: - * provider_id: bookstore_auth - * - * Generated from protobuf field string provider_id = 1; - */ - protected $provider_id = ''; - /** - * NOTE: This will be deprecated soon, once AuthProvider.audiences is - * implemented and accepted in all the runtime components. - * The list of JWT - * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3). - * that are allowed to access. A JWT containing any of these audiences will - * be accepted. When this setting is absent, only JWTs with audience - * "https://[Service_name][google.api.Service.name]/[API_name][google.protobuf.Api.name]" - * will be accepted. For example, if no audiences are in the setting, - * LibraryService API will only accept JWTs with the following audience - * "https://library-example.googleapis.com/google.example.library.v1.LibraryService". - * Example: - * audiences: bookstore_android.apps.googleusercontent.com, - * bookstore_web.apps.googleusercontent.com - * - * Generated from protobuf field string audiences = 2; - */ - protected $audiences = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $provider_id - * [id][google.api.AuthProvider.id] from authentication provider. - * Example: - * provider_id: bookstore_auth - * @type string $audiences - * NOTE: This will be deprecated soon, once AuthProvider.audiences is - * implemented and accepted in all the runtime components. - * The list of JWT - * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3). - * that are allowed to access. A JWT containing any of these audiences will - * be accepted. When this setting is absent, only JWTs with audience - * "https://[Service_name][google.api.Service.name]/[API_name][google.protobuf.Api.name]" - * will be accepted. For example, if no audiences are in the setting, - * LibraryService API will only accept JWTs with the following audience - * "https://library-example.googleapis.com/google.example.library.v1.LibraryService". - * Example: - * audiences: bookstore_android.apps.googleusercontent.com, - * bookstore_web.apps.googleusercontent.com - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Auth::initOnce(); - parent::__construct($data); - } - - /** - * [id][google.api.AuthProvider.id] from authentication provider. - * Example: - * provider_id: bookstore_auth - * - * Generated from protobuf field string provider_id = 1; - * @return string - */ - public function getProviderId() - { - return $this->provider_id; - } - - /** - * [id][google.api.AuthProvider.id] from authentication provider. - * Example: - * provider_id: bookstore_auth - * - * Generated from protobuf field string provider_id = 1; - * @param string $var - * @return $this - */ - public function setProviderId($var) - { - GPBUtil::checkString($var, True); - $this->provider_id = $var; - - return $this; - } - - /** - * NOTE: This will be deprecated soon, once AuthProvider.audiences is - * implemented and accepted in all the runtime components. - * The list of JWT - * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3). - * that are allowed to access. A JWT containing any of these audiences will - * be accepted. When this setting is absent, only JWTs with audience - * "https://[Service_name][google.api.Service.name]/[API_name][google.protobuf.Api.name]" - * will be accepted. For example, if no audiences are in the setting, - * LibraryService API will only accept JWTs with the following audience - * "https://library-example.googleapis.com/google.example.library.v1.LibraryService". - * Example: - * audiences: bookstore_android.apps.googleusercontent.com, - * bookstore_web.apps.googleusercontent.com - * - * Generated from protobuf field string audiences = 2; - * @return string - */ - public function getAudiences() - { - return $this->audiences; - } - - /** - * NOTE: This will be deprecated soon, once AuthProvider.audiences is - * implemented and accepted in all the runtime components. - * The list of JWT - * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3). - * that are allowed to access. A JWT containing any of these audiences will - * be accepted. When this setting is absent, only JWTs with audience - * "https://[Service_name][google.api.Service.name]/[API_name][google.protobuf.Api.name]" - * will be accepted. For example, if no audiences are in the setting, - * LibraryService API will only accept JWTs with the following audience - * "https://library-example.googleapis.com/google.example.library.v1.LibraryService". - * Example: - * audiences: bookstore_android.apps.googleusercontent.com, - * bookstore_web.apps.googleusercontent.com - * - * Generated from protobuf field string audiences = 2; - * @param string $var - * @return $this - */ - public function setAudiences($var) - { - GPBUtil::checkString($var, True); - $this->audiences = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Authentication.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Authentication.php deleted file mode 100644 index 608c6fb23bd0..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Authentication.php +++ /dev/null @@ -1,120 +0,0 @@ -google.api.Authentication - */ -class Authentication extends \Google\Protobuf\Internal\Message -{ - /** - * A list of authentication rules that apply to individual API methods. - * **NOTE:** All service configuration rules follow "last one wins" order. - * - * Generated from protobuf field repeated .google.api.AuthenticationRule rules = 3; - */ - private $rules; - /** - * Defines a set of authentication providers that a service supports. - * - * Generated from protobuf field repeated .google.api.AuthProvider providers = 4; - */ - private $providers; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Api\AuthenticationRule[] $rules - * A list of authentication rules that apply to individual API methods. - * **NOTE:** All service configuration rules follow "last one wins" order. - * @type \Google\Api\AuthProvider[] $providers - * Defines a set of authentication providers that a service supports. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Auth::initOnce(); - parent::__construct($data); - } - - /** - * A list of authentication rules that apply to individual API methods. - * **NOTE:** All service configuration rules follow "last one wins" order. - * - * Generated from protobuf field repeated .google.api.AuthenticationRule rules = 3; - * @return RepeatedField<\Google\Api\AuthenticationRule> - */ - public function getRules() - { - return $this->rules; - } - - /** - * A list of authentication rules that apply to individual API methods. - * **NOTE:** All service configuration rules follow "last one wins" order. - * - * Generated from protobuf field repeated .google.api.AuthenticationRule rules = 3; - * @param \Google\Api\AuthenticationRule[] $var - * @return $this - */ - public function setRules($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\AuthenticationRule::class); - $this->rules = $arr; - - return $this; - } - - /** - * Defines a set of authentication providers that a service supports. - * - * Generated from protobuf field repeated .google.api.AuthProvider providers = 4; - * @return RepeatedField<\Google\Api\AuthProvider> - */ - public function getProviders() - { - return $this->providers; - } - - /** - * Defines a set of authentication providers that a service supports. - * - * Generated from protobuf field repeated .google.api.AuthProvider providers = 4; - * @param \Google\Api\AuthProvider[] $var - * @return $this - */ - public function setProviders($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\AuthProvider::class); - $this->providers = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/AuthenticationRule.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/AuthenticationRule.php deleted file mode 100644 index 3abcb6dec118..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/AuthenticationRule.php +++ /dev/null @@ -1,197 +0,0 @@ -google.api.AuthenticationRule - */ -class AuthenticationRule extends \Google\Protobuf\Internal\Message -{ - /** - * Selects the methods to which this rule applies. - * Refer to [selector][google.api.DocumentationRule.selector] for syntax - * details. - * - * Generated from protobuf field string selector = 1; - */ - protected $selector = ''; - /** - * The requirements for OAuth credentials. - * - * Generated from protobuf field .google.api.OAuthRequirements oauth = 2; - */ - protected $oauth = null; - /** - * If true, the service accepts API keys without any other credential. - * This flag only applies to HTTP and gRPC requests. - * - * Generated from protobuf field bool allow_without_credential = 5; - */ - protected $allow_without_credential = false; - /** - * Requirements for additional authentication providers. - * - * Generated from protobuf field repeated .google.api.AuthRequirement requirements = 7; - */ - private $requirements; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $selector - * Selects the methods to which this rule applies. - * Refer to [selector][google.api.DocumentationRule.selector] for syntax - * details. - * @type \Google\Api\OAuthRequirements $oauth - * The requirements for OAuth credentials. - * @type bool $allow_without_credential - * If true, the service accepts API keys without any other credential. - * This flag only applies to HTTP and gRPC requests. - * @type \Google\Api\AuthRequirement[] $requirements - * Requirements for additional authentication providers. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Auth::initOnce(); - parent::__construct($data); - } - - /** - * Selects the methods to which this rule applies. - * Refer to [selector][google.api.DocumentationRule.selector] for syntax - * details. - * - * Generated from protobuf field string selector = 1; - * @return string - */ - public function getSelector() - { - return $this->selector; - } - - /** - * Selects the methods to which this rule applies. - * Refer to [selector][google.api.DocumentationRule.selector] for syntax - * details. - * - * Generated from protobuf field string selector = 1; - * @param string $var - * @return $this - */ - public function setSelector($var) - { - GPBUtil::checkString($var, True); - $this->selector = $var; - - return $this; - } - - /** - * The requirements for OAuth credentials. - * - * Generated from protobuf field .google.api.OAuthRequirements oauth = 2; - * @return \Google\Api\OAuthRequirements|null - */ - public function getOauth() - { - return $this->oauth; - } - - public function hasOauth() - { - return isset($this->oauth); - } - - public function clearOauth() - { - unset($this->oauth); - } - - /** - * The requirements for OAuth credentials. - * - * Generated from protobuf field .google.api.OAuthRequirements oauth = 2; - * @param \Google\Api\OAuthRequirements $var - * @return $this - */ - public function setOauth($var) - { - GPBUtil::checkMessage($var, \Google\Api\OAuthRequirements::class); - $this->oauth = $var; - - return $this; - } - - /** - * If true, the service accepts API keys without any other credential. - * This flag only applies to HTTP and gRPC requests. - * - * Generated from protobuf field bool allow_without_credential = 5; - * @return bool - */ - public function getAllowWithoutCredential() - { - return $this->allow_without_credential; - } - - /** - * If true, the service accepts API keys without any other credential. - * This flag only applies to HTTP and gRPC requests. - * - * Generated from protobuf field bool allow_without_credential = 5; - * @param bool $var - * @return $this - */ - public function setAllowWithoutCredential($var) - { - GPBUtil::checkBool($var); - $this->allow_without_credential = $var; - - return $this; - } - - /** - * Requirements for additional authentication providers. - * - * Generated from protobuf field repeated .google.api.AuthRequirement requirements = 7; - * @return RepeatedField<\Google\Api\AuthRequirement> - */ - public function getRequirements() - { - return $this->requirements; - } - - /** - * Requirements for additional authentication providers. - * - * Generated from protobuf field repeated .google.api.AuthRequirement requirements = 7; - * @param \Google\Api\AuthRequirement[] $var - * @return $this - */ - public function setRequirements($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\AuthRequirement::class); - $this->requirements = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Backend.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Backend.php deleted file mode 100644 index 6ffebebbf701..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Backend.php +++ /dev/null @@ -1,71 +0,0 @@ -google.api.Backend - */ -class Backend extends \Google\Protobuf\Internal\Message -{ - /** - * A list of API backend rules that apply to individual API methods. - * **NOTE:** All service configuration rules follow "last one wins" order. - * - * Generated from protobuf field repeated .google.api.BackendRule rules = 1; - */ - private $rules; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Api\BackendRule[] $rules - * A list of API backend rules that apply to individual API methods. - * **NOTE:** All service configuration rules follow "last one wins" order. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Backend::initOnce(); - parent::__construct($data); - } - - /** - * A list of API backend rules that apply to individual API methods. - * **NOTE:** All service configuration rules follow "last one wins" order. - * - * Generated from protobuf field repeated .google.api.BackendRule rules = 1; - * @return RepeatedField<\Google\Api\BackendRule> - */ - public function getRules() - { - return $this->rules; - } - - /** - * A list of API backend rules that apply to individual API methods. - * **NOTE:** All service configuration rules follow "last one wins" order. - * - * Generated from protobuf field repeated .google.api.BackendRule rules = 1; - * @param \Google\Api\BackendRule[] $var - * @return $this - */ - public function setRules($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\BackendRule::class); - $this->rules = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/BackendRule.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/BackendRule.php deleted file mode 100644 index 63770f4953b8..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/BackendRule.php +++ /dev/null @@ -1,592 +0,0 @@ -google.api.BackendRule - */ -class BackendRule extends \Google\Protobuf\Internal\Message -{ - /** - * Selects the methods to which this rule applies. - * Refer to [selector][google.api.DocumentationRule.selector] for syntax - * details. - * - * Generated from protobuf field string selector = 1; - */ - protected $selector = ''; - /** - * The address of the API backend. - * The scheme is used to determine the backend protocol and security. - * The following schemes are accepted: - * SCHEME PROTOCOL SECURITY - * http:// HTTP None - * https:// HTTP TLS - * grpc:// gRPC None - * grpcs:// gRPC TLS - * It is recommended to explicitly include a scheme. Leaving out the scheme - * may cause constrasting behaviors across platforms. - * If the port is unspecified, the default is: - * - 80 for schemes without TLS - * - 443 for schemes with TLS - * For HTTP backends, use [protocol][google.api.BackendRule.protocol] - * to specify the protocol version. - * - * Generated from protobuf field string address = 2; - */ - protected $address = ''; - /** - * The number of seconds to wait for a response from a request. The default - * varies based on the request protocol and deployment environment. - * - * Generated from protobuf field double deadline = 3; - */ - protected $deadline = 0.0; - /** - * Deprecated, do not use. - * - * Generated from protobuf field double min_deadline = 4 [deprecated = true]; - * @deprecated - */ - protected $min_deadline = 0.0; - /** - * The number of seconds to wait for the completion of a long running - * operation. The default is no deadline. - * - * Generated from protobuf field double operation_deadline = 5; - */ - protected $operation_deadline = 0.0; - /** - * Path translation specifies how to combine the backend address with the - * request path in order to produce the appropriate forwarding URL for the - * request. See [PathTranslation][google.api.BackendRule.PathTranslation] for - * more details. - * - * Generated from protobuf field .google.api.BackendRule.PathTranslation path_translation = 6; - */ - protected $path_translation = 0; - /** - * The protocol used for sending a request to the backend. - * The supported values are "http/1.1" and "h2". - * The default value is inferred from the scheme in the - * [address][google.api.BackendRule.address] field: - * SCHEME PROTOCOL - * http:// http/1.1 - * https:// http/1.1 - * grpc:// h2 - * grpcs:// h2 - * For secure HTTP backends (https://) that support HTTP/2, set this field - * to "h2" for improved performance. - * Configuring this field to non-default values is only supported for secure - * HTTP backends. This field will be ignored for all other backends. - * See - * https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids - * for more details on the supported values. - * - * Generated from protobuf field string protocol = 9; - */ - protected $protocol = ''; - /** - * The map between request protocol and the backend address. - * - * Generated from protobuf field map overrides_by_request_protocol = 10; - */ - private $overrides_by_request_protocol; - /** - * The load balancing policy used for connection to the application backend. - * Defined as an arbitrary string to accomondate custom load balancing - * policies supported by the underlying channel, but suggest most users use - * one of the standard policies, such as the default, "RoundRobin". - * - * Generated from protobuf field string load_balancing_policy = 11; - */ - protected $load_balancing_policy = ''; - protected $authentication; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $selector - * Selects the methods to which this rule applies. - * Refer to [selector][google.api.DocumentationRule.selector] for syntax - * details. - * @type string $address - * The address of the API backend. - * The scheme is used to determine the backend protocol and security. - * The following schemes are accepted: - * SCHEME PROTOCOL SECURITY - * http:// HTTP None - * https:// HTTP TLS - * grpc:// gRPC None - * grpcs:// gRPC TLS - * It is recommended to explicitly include a scheme. Leaving out the scheme - * may cause constrasting behaviors across platforms. - * If the port is unspecified, the default is: - * - 80 for schemes without TLS - * - 443 for schemes with TLS - * For HTTP backends, use [protocol][google.api.BackendRule.protocol] - * to specify the protocol version. - * @type float $deadline - * The number of seconds to wait for a response from a request. The default - * varies based on the request protocol and deployment environment. - * @type float $min_deadline - * Deprecated, do not use. - * @type float $operation_deadline - * The number of seconds to wait for the completion of a long running - * operation. The default is no deadline. - * @type int $path_translation - * Path translation specifies how to combine the backend address with the - * request path in order to produce the appropriate forwarding URL for the - * request. See [PathTranslation][google.api.BackendRule.PathTranslation] for - * more details. - * @type string $jwt_audience - * The JWT audience is used when generating a JWT ID token for the backend. - * This ID token will be added in the HTTP "authorization" header, and sent - * to the backend. - * @type bool $disable_auth - * When disable_auth is true, a JWT ID token won't be generated and the - * original "Authorization" HTTP header will be preserved. If the header is - * used to carry the original token and is expected by the backend, this - * field must be set to true to preserve the header. - * @type string $protocol - * The protocol used for sending a request to the backend. - * The supported values are "http/1.1" and "h2". - * The default value is inferred from the scheme in the - * [address][google.api.BackendRule.address] field: - * SCHEME PROTOCOL - * http:// http/1.1 - * https:// http/1.1 - * grpc:// h2 - * grpcs:// h2 - * For secure HTTP backends (https://) that support HTTP/2, set this field - * to "h2" for improved performance. - * Configuring this field to non-default values is only supported for secure - * HTTP backends. This field will be ignored for all other backends. - * See - * https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids - * for more details on the supported values. - * @type array|\Google\Protobuf\Internal\MapField $overrides_by_request_protocol - * The map between request protocol and the backend address. - * @type string $load_balancing_policy - * The load balancing policy used for connection to the application backend. - * Defined as an arbitrary string to accomondate custom load balancing - * policies supported by the underlying channel, but suggest most users use - * one of the standard policies, such as the default, "RoundRobin". - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Backend::initOnce(); - parent::__construct($data); - } - - /** - * Selects the methods to which this rule applies. - * Refer to [selector][google.api.DocumentationRule.selector] for syntax - * details. - * - * Generated from protobuf field string selector = 1; - * @return string - */ - public function getSelector() - { - return $this->selector; - } - - /** - * Selects the methods to which this rule applies. - * Refer to [selector][google.api.DocumentationRule.selector] for syntax - * details. - * - * Generated from protobuf field string selector = 1; - * @param string $var - * @return $this - */ - public function setSelector($var) - { - GPBUtil::checkString($var, True); - $this->selector = $var; - - return $this; - } - - /** - * The address of the API backend. - * The scheme is used to determine the backend protocol and security. - * The following schemes are accepted: - * SCHEME PROTOCOL SECURITY - * http:// HTTP None - * https:// HTTP TLS - * grpc:// gRPC None - * grpcs:// gRPC TLS - * It is recommended to explicitly include a scheme. Leaving out the scheme - * may cause constrasting behaviors across platforms. - * If the port is unspecified, the default is: - * - 80 for schemes without TLS - * - 443 for schemes with TLS - * For HTTP backends, use [protocol][google.api.BackendRule.protocol] - * to specify the protocol version. - * - * Generated from protobuf field string address = 2; - * @return string - */ - public function getAddress() - { - return $this->address; - } - - /** - * The address of the API backend. - * The scheme is used to determine the backend protocol and security. - * The following schemes are accepted: - * SCHEME PROTOCOL SECURITY - * http:// HTTP None - * https:// HTTP TLS - * grpc:// gRPC None - * grpcs:// gRPC TLS - * It is recommended to explicitly include a scheme. Leaving out the scheme - * may cause constrasting behaviors across platforms. - * If the port is unspecified, the default is: - * - 80 for schemes without TLS - * - 443 for schemes with TLS - * For HTTP backends, use [protocol][google.api.BackendRule.protocol] - * to specify the protocol version. - * - * Generated from protobuf field string address = 2; - * @param string $var - * @return $this - */ - public function setAddress($var) - { - GPBUtil::checkString($var, True); - $this->address = $var; - - return $this; - } - - /** - * The number of seconds to wait for a response from a request. The default - * varies based on the request protocol and deployment environment. - * - * Generated from protobuf field double deadline = 3; - * @return float - */ - public function getDeadline() - { - return $this->deadline; - } - - /** - * The number of seconds to wait for a response from a request. The default - * varies based on the request protocol and deployment environment. - * - * Generated from protobuf field double deadline = 3; - * @param float $var - * @return $this - */ - public function setDeadline($var) - { - GPBUtil::checkDouble($var); - $this->deadline = $var; - - return $this; - } - - /** - * Deprecated, do not use. - * - * Generated from protobuf field double min_deadline = 4 [deprecated = true]; - * @return float - * @deprecated - */ - public function getMinDeadline() - { - if ($this->min_deadline !== 0.0) { - @trigger_error('min_deadline is deprecated.', E_USER_DEPRECATED); - } - return $this->min_deadline; - } - - /** - * Deprecated, do not use. - * - * Generated from protobuf field double min_deadline = 4 [deprecated = true]; - * @param float $var - * @return $this - * @deprecated - */ - public function setMinDeadline($var) - { - @trigger_error('min_deadline is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkDouble($var); - $this->min_deadline = $var; - - return $this; - } - - /** - * The number of seconds to wait for the completion of a long running - * operation. The default is no deadline. - * - * Generated from protobuf field double operation_deadline = 5; - * @return float - */ - public function getOperationDeadline() - { - return $this->operation_deadline; - } - - /** - * The number of seconds to wait for the completion of a long running - * operation. The default is no deadline. - * - * Generated from protobuf field double operation_deadline = 5; - * @param float $var - * @return $this - */ - public function setOperationDeadline($var) - { - GPBUtil::checkDouble($var); - $this->operation_deadline = $var; - - return $this; - } - - /** - * Path translation specifies how to combine the backend address with the - * request path in order to produce the appropriate forwarding URL for the - * request. See [PathTranslation][google.api.BackendRule.PathTranslation] for - * more details. - * - * Generated from protobuf field .google.api.BackendRule.PathTranslation path_translation = 6; - * @return int - */ - public function getPathTranslation() - { - return $this->path_translation; - } - - /** - * Path translation specifies how to combine the backend address with the - * request path in order to produce the appropriate forwarding URL for the - * request. See [PathTranslation][google.api.BackendRule.PathTranslation] for - * more details. - * - * Generated from protobuf field .google.api.BackendRule.PathTranslation path_translation = 6; - * @param int $var - * @return $this - */ - public function setPathTranslation($var) - { - GPBUtil::checkEnum($var, \Google\Api\BackendRule\PathTranslation::class); - $this->path_translation = $var; - - return $this; - } - - /** - * The JWT audience is used when generating a JWT ID token for the backend. - * This ID token will be added in the HTTP "authorization" header, and sent - * to the backend. - * - * Generated from protobuf field string jwt_audience = 7; - * @return string - */ - public function getJwtAudience() - { - return $this->readOneof(7); - } - - public function hasJwtAudience() - { - return $this->hasOneof(7); - } - - /** - * The JWT audience is used when generating a JWT ID token for the backend. - * This ID token will be added in the HTTP "authorization" header, and sent - * to the backend. - * - * Generated from protobuf field string jwt_audience = 7; - * @param string $var - * @return $this - */ - public function setJwtAudience($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(7, $var); - - return $this; - } - - /** - * When disable_auth is true, a JWT ID token won't be generated and the - * original "Authorization" HTTP header will be preserved. If the header is - * used to carry the original token and is expected by the backend, this - * field must be set to true to preserve the header. - * - * Generated from protobuf field bool disable_auth = 8; - * @return bool - */ - public function getDisableAuth() - { - return $this->readOneof(8); - } - - public function hasDisableAuth() - { - return $this->hasOneof(8); - } - - /** - * When disable_auth is true, a JWT ID token won't be generated and the - * original "Authorization" HTTP header will be preserved. If the header is - * used to carry the original token and is expected by the backend, this - * field must be set to true to preserve the header. - * - * Generated from protobuf field bool disable_auth = 8; - * @param bool $var - * @return $this - */ - public function setDisableAuth($var) - { - GPBUtil::checkBool($var); - $this->writeOneof(8, $var); - - return $this; - } - - /** - * The protocol used for sending a request to the backend. - * The supported values are "http/1.1" and "h2". - * The default value is inferred from the scheme in the - * [address][google.api.BackendRule.address] field: - * SCHEME PROTOCOL - * http:// http/1.1 - * https:// http/1.1 - * grpc:// h2 - * grpcs:// h2 - * For secure HTTP backends (https://) that support HTTP/2, set this field - * to "h2" for improved performance. - * Configuring this field to non-default values is only supported for secure - * HTTP backends. This field will be ignored for all other backends. - * See - * https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids - * for more details on the supported values. - * - * Generated from protobuf field string protocol = 9; - * @return string - */ - public function getProtocol() - { - return $this->protocol; - } - - /** - * The protocol used for sending a request to the backend. - * The supported values are "http/1.1" and "h2". - * The default value is inferred from the scheme in the - * [address][google.api.BackendRule.address] field: - * SCHEME PROTOCOL - * http:// http/1.1 - * https:// http/1.1 - * grpc:// h2 - * grpcs:// h2 - * For secure HTTP backends (https://) that support HTTP/2, set this field - * to "h2" for improved performance. - * Configuring this field to non-default values is only supported for secure - * HTTP backends. This field will be ignored for all other backends. - * See - * https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids - * for more details on the supported values. - * - * Generated from protobuf field string protocol = 9; - * @param string $var - * @return $this - */ - public function setProtocol($var) - { - GPBUtil::checkString($var, True); - $this->protocol = $var; - - return $this; - } - - /** - * The map between request protocol and the backend address. - * - * Generated from protobuf field map overrides_by_request_protocol = 10; - * @return \Google\Protobuf\Internal\MapField - */ - public function getOverridesByRequestProtocol() - { - return $this->overrides_by_request_protocol; - } - - /** - * The map between request protocol and the backend address. - * - * Generated from protobuf field map overrides_by_request_protocol = 10; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setOverridesByRequestProtocol($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\BackendRule::class); - $this->overrides_by_request_protocol = $arr; - - return $this; - } - - /** - * The load balancing policy used for connection to the application backend. - * Defined as an arbitrary string to accomondate custom load balancing - * policies supported by the underlying channel, but suggest most users use - * one of the standard policies, such as the default, "RoundRobin". - * - * Generated from protobuf field string load_balancing_policy = 11; - * @return string - */ - public function getLoadBalancingPolicy() - { - return $this->load_balancing_policy; - } - - /** - * The load balancing policy used for connection to the application backend. - * Defined as an arbitrary string to accomondate custom load balancing - * policies supported by the underlying channel, but suggest most users use - * one of the standard policies, such as the default, "RoundRobin". - * - * Generated from protobuf field string load_balancing_policy = 11; - * @param string $var - * @return $this - */ - public function setLoadBalancingPolicy($var) - { - GPBUtil::checkString($var, True); - $this->load_balancing_policy = $var; - - return $this; - } - - /** - * @return string - */ - public function getAuthentication() - { - return $this->whichOneof("authentication"); - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/BackendRule/PathTranslation.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/BackendRule/PathTranslation.php deleted file mode 100644 index 366c5496d121..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/BackendRule/PathTranslation.php +++ /dev/null @@ -1,92 +0,0 @@ -google.api.BackendRule.PathTranslation - */ -class PathTranslation -{ - /** - * Generated from protobuf enum PATH_TRANSLATION_UNSPECIFIED = 0; - */ - const PATH_TRANSLATION_UNSPECIFIED = 0; - /** - * Use the backend address as-is, with no modification to the path. If the - * URL pattern contains variables, the variable names and values will be - * appended to the query string. If a query string parameter and a URL - * pattern variable have the same name, this may result in duplicate keys in - * the query string. - * # Examples - * Given the following operation config: - * Method path: /api/company/{cid}/user/{uid} - * Backend address: https://example.cloudfunctions.net/getUser - * Requests to the following request paths will call the backend at the - * translated path: - * Request path: /api/company/widgetworks/user/johndoe - * Translated: - * https://example.cloudfunctions.net/getUser?cid=widgetworks&uid=johndoe - * Request path: /api/company/widgetworks/user/johndoe?timezone=EST - * Translated: - * https://example.cloudfunctions.net/getUser?timezone=EST&cid=widgetworks&uid=johndoe - * - * Generated from protobuf enum CONSTANT_ADDRESS = 1; - */ - const CONSTANT_ADDRESS = 1; - /** - * The request path will be appended to the backend address. - * # Examples - * Given the following operation config: - * Method path: /api/company/{cid}/user/{uid} - * Backend address: https://example.appspot.com - * Requests to the following request paths will call the backend at the - * translated path: - * Request path: /api/company/widgetworks/user/johndoe - * Translated: - * https://example.appspot.com/api/company/widgetworks/user/johndoe - * Request path: /api/company/widgetworks/user/johndoe?timezone=EST - * Translated: - * https://example.appspot.com/api/company/widgetworks/user/johndoe?timezone=EST - * - * Generated from protobuf enum APPEND_PATH_TO_ADDRESS = 2; - */ - const APPEND_PATH_TO_ADDRESS = 2; - - private static $valueToName = [ - self::PATH_TRANSLATION_UNSPECIFIED => 'PATH_TRANSLATION_UNSPECIFIED', - self::CONSTANT_ADDRESS => 'CONSTANT_ADDRESS', - self::APPEND_PATH_TO_ADDRESS => 'APPEND_PATH_TO_ADDRESS', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/BatchingConfigProto.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/BatchingConfigProto.php deleted file mode 100644 index a89814d51f0e..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/BatchingConfigProto.php +++ /dev/null @@ -1,121 +0,0 @@ -google.api.BatchingConfigProto - */ -class BatchingConfigProto extends \Google\Protobuf\Internal\Message -{ - /** - * The thresholds which trigger a batched request to be sent. - * - * Generated from protobuf field .google.api.BatchingSettingsProto thresholds = 1; - */ - protected $thresholds = null; - /** - * The request and response fields used in batching. - * - * Generated from protobuf field .google.api.BatchingDescriptorProto batch_descriptor = 2; - */ - protected $batch_descriptor = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Api\BatchingSettingsProto $thresholds - * The thresholds which trigger a batched request to be sent. - * @type \Google\Api\BatchingDescriptorProto $batch_descriptor - * The request and response fields used in batching. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Client::initOnce(); - parent::__construct($data); - } - - /** - * The thresholds which trigger a batched request to be sent. - * - * Generated from protobuf field .google.api.BatchingSettingsProto thresholds = 1; - * @return \Google\Api\BatchingSettingsProto|null - */ - public function getThresholds() - { - return $this->thresholds; - } - - public function hasThresholds() - { - return isset($this->thresholds); - } - - public function clearThresholds() - { - unset($this->thresholds); - } - - /** - * The thresholds which trigger a batched request to be sent. - * - * Generated from protobuf field .google.api.BatchingSettingsProto thresholds = 1; - * @param \Google\Api\BatchingSettingsProto $var - * @return $this - */ - public function setThresholds($var) - { - GPBUtil::checkMessage($var, \Google\Api\BatchingSettingsProto::class); - $this->thresholds = $var; - - return $this; - } - - /** - * The request and response fields used in batching. - * - * Generated from protobuf field .google.api.BatchingDescriptorProto batch_descriptor = 2; - * @return \Google\Api\BatchingDescriptorProto|null - */ - public function getBatchDescriptor() - { - return $this->batch_descriptor; - } - - public function hasBatchDescriptor() - { - return isset($this->batch_descriptor); - } - - public function clearBatchDescriptor() - { - unset($this->batch_descriptor); - } - - /** - * The request and response fields used in batching. - * - * Generated from protobuf field .google.api.BatchingDescriptorProto batch_descriptor = 2; - * @param \Google\Api\BatchingDescriptorProto $var - * @return $this - */ - public function setBatchDescriptor($var) - { - GPBUtil::checkMessage($var, \Google\Api\BatchingDescriptorProto::class); - $this->batch_descriptor = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/BatchingDescriptorProto.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/BatchingDescriptorProto.php deleted file mode 100644 index 96179ad0f31e..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/BatchingDescriptorProto.php +++ /dev/null @@ -1,157 +0,0 @@ -google.api.BatchingDescriptorProto - */ -class BatchingDescriptorProto extends \Google\Protobuf\Internal\Message -{ - /** - * The repeated field in the request message to be aggregated by batching. - * - * Generated from protobuf field string batched_field = 1; - */ - protected $batched_field = ''; - /** - * A list of the fields in the request message. Two requests will be batched - * together only if the values of every field specified in - * `request_discriminator_fields` is equal between the two requests. - * - * Generated from protobuf field repeated string discriminator_fields = 2; - */ - private $discriminator_fields; - /** - * Optional. When present, indicates the field in the response message to be - * used to demultiplex the response into multiple response messages, in - * correspondence with the multiple request messages originally batched - * together. - * - * Generated from protobuf field string subresponse_field = 3; - */ - protected $subresponse_field = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $batched_field - * The repeated field in the request message to be aggregated by batching. - * @type string[] $discriminator_fields - * A list of the fields in the request message. Two requests will be batched - * together only if the values of every field specified in - * `request_discriminator_fields` is equal between the two requests. - * @type string $subresponse_field - * Optional. When present, indicates the field in the response message to be - * used to demultiplex the response into multiple response messages, in - * correspondence with the multiple request messages originally batched - * together. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Client::initOnce(); - parent::__construct($data); - } - - /** - * The repeated field in the request message to be aggregated by batching. - * - * Generated from protobuf field string batched_field = 1; - * @return string - */ - public function getBatchedField() - { - return $this->batched_field; - } - - /** - * The repeated field in the request message to be aggregated by batching. - * - * Generated from protobuf field string batched_field = 1; - * @param string $var - * @return $this - */ - public function setBatchedField($var) - { - GPBUtil::checkString($var, True); - $this->batched_field = $var; - - return $this; - } - - /** - * A list of the fields in the request message. Two requests will be batched - * together only if the values of every field specified in - * `request_discriminator_fields` is equal between the two requests. - * - * Generated from protobuf field repeated string discriminator_fields = 2; - * @return RepeatedField - */ - public function getDiscriminatorFields() - { - return $this->discriminator_fields; - } - - /** - * A list of the fields in the request message. Two requests will be batched - * together only if the values of every field specified in - * `request_discriminator_fields` is equal between the two requests. - * - * Generated from protobuf field repeated string discriminator_fields = 2; - * @param string[] $var - * @return $this - */ - public function setDiscriminatorFields($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->discriminator_fields = $arr; - - return $this; - } - - /** - * Optional. When present, indicates the field in the response message to be - * used to demultiplex the response into multiple response messages, in - * correspondence with the multiple request messages originally batched - * together. - * - * Generated from protobuf field string subresponse_field = 3; - * @return string - */ - public function getSubresponseField() - { - return $this->subresponse_field; - } - - /** - * Optional. When present, indicates the field in the response message to be - * used to demultiplex the response into multiple response messages, in - * correspondence with the multiple request messages originally batched - * together. - * - * Generated from protobuf field string subresponse_field = 3; - * @param string $var - * @return $this - */ - public function setSubresponseField($var) - { - GPBUtil::checkString($var, True); - $this->subresponse_field = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/BatchingSettingsProto.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/BatchingSettingsProto.php deleted file mode 100644 index 35716d7235ba..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/BatchingSettingsProto.php +++ /dev/null @@ -1,337 +0,0 @@ -google.api.BatchingSettingsProto - */ -class BatchingSettingsProto extends \Google\Protobuf\Internal\Message -{ - /** - * The number of elements of a field collected into a batch which, if - * exceeded, causes the batch to be sent. - * - * Generated from protobuf field int32 element_count_threshold = 1; - */ - protected $element_count_threshold = 0; - /** - * The aggregated size of the batched field which, if exceeded, causes the - * batch to be sent. This size is computed by aggregating the sizes of the - * request field to be batched, not of the entire request message. - * - * Generated from protobuf field int64 request_byte_threshold = 2; - */ - protected $request_byte_threshold = 0; - /** - * The duration after which a batch should be sent, starting from the addition - * of the first message to that batch. - * - * Generated from protobuf field .google.protobuf.Duration delay_threshold = 3; - */ - protected $delay_threshold = null; - /** - * The maximum number of elements collected in a batch that could be accepted - * by server. - * - * Generated from protobuf field int32 element_count_limit = 4; - */ - protected $element_count_limit = 0; - /** - * The maximum size of the request that could be accepted by server. - * - * Generated from protobuf field int32 request_byte_limit = 5; - */ - protected $request_byte_limit = 0; - /** - * The maximum number of elements allowed by flow control. - * - * Generated from protobuf field int32 flow_control_element_limit = 6; - */ - protected $flow_control_element_limit = 0; - /** - * The maximum size of data allowed by flow control. - * - * Generated from protobuf field int32 flow_control_byte_limit = 7; - */ - protected $flow_control_byte_limit = 0; - /** - * The behavior to take when the flow control limit is exceeded. - * - * Generated from protobuf field .google.api.FlowControlLimitExceededBehaviorProto flow_control_limit_exceeded_behavior = 8; - */ - protected $flow_control_limit_exceeded_behavior = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $element_count_threshold - * The number of elements of a field collected into a batch which, if - * exceeded, causes the batch to be sent. - * @type int|string $request_byte_threshold - * The aggregated size of the batched field which, if exceeded, causes the - * batch to be sent. This size is computed by aggregating the sizes of the - * request field to be batched, not of the entire request message. - * @type \Google\Protobuf\Duration $delay_threshold - * The duration after which a batch should be sent, starting from the addition - * of the first message to that batch. - * @type int $element_count_limit - * The maximum number of elements collected in a batch that could be accepted - * by server. - * @type int $request_byte_limit - * The maximum size of the request that could be accepted by server. - * @type int $flow_control_element_limit - * The maximum number of elements allowed by flow control. - * @type int $flow_control_byte_limit - * The maximum size of data allowed by flow control. - * @type int $flow_control_limit_exceeded_behavior - * The behavior to take when the flow control limit is exceeded. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Client::initOnce(); - parent::__construct($data); - } - - /** - * The number of elements of a field collected into a batch which, if - * exceeded, causes the batch to be sent. - * - * Generated from protobuf field int32 element_count_threshold = 1; - * @return int - */ - public function getElementCountThreshold() - { - return $this->element_count_threshold; - } - - /** - * The number of elements of a field collected into a batch which, if - * exceeded, causes the batch to be sent. - * - * Generated from protobuf field int32 element_count_threshold = 1; - * @param int $var - * @return $this - */ - public function setElementCountThreshold($var) - { - GPBUtil::checkInt32($var); - $this->element_count_threshold = $var; - - return $this; - } - - /** - * The aggregated size of the batched field which, if exceeded, causes the - * batch to be sent. This size is computed by aggregating the sizes of the - * request field to be batched, not of the entire request message. - * - * Generated from protobuf field int64 request_byte_threshold = 2; - * @return int|string - */ - public function getRequestByteThreshold() - { - return $this->request_byte_threshold; - } - - /** - * The aggregated size of the batched field which, if exceeded, causes the - * batch to be sent. This size is computed by aggregating the sizes of the - * request field to be batched, not of the entire request message. - * - * Generated from protobuf field int64 request_byte_threshold = 2; - * @param int|string $var - * @return $this - */ - public function setRequestByteThreshold($var) - { - GPBUtil::checkInt64($var); - $this->request_byte_threshold = $var; - - return $this; - } - - /** - * The duration after which a batch should be sent, starting from the addition - * of the first message to that batch. - * - * Generated from protobuf field .google.protobuf.Duration delay_threshold = 3; - * @return \Google\Protobuf\Duration|null - */ - public function getDelayThreshold() - { - return $this->delay_threshold; - } - - public function hasDelayThreshold() - { - return isset($this->delay_threshold); - } - - public function clearDelayThreshold() - { - unset($this->delay_threshold); - } - - /** - * The duration after which a batch should be sent, starting from the addition - * of the first message to that batch. - * - * Generated from protobuf field .google.protobuf.Duration delay_threshold = 3; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setDelayThreshold($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->delay_threshold = $var; - - return $this; - } - - /** - * The maximum number of elements collected in a batch that could be accepted - * by server. - * - * Generated from protobuf field int32 element_count_limit = 4; - * @return int - */ - public function getElementCountLimit() - { - return $this->element_count_limit; - } - - /** - * The maximum number of elements collected in a batch that could be accepted - * by server. - * - * Generated from protobuf field int32 element_count_limit = 4; - * @param int $var - * @return $this - */ - public function setElementCountLimit($var) - { - GPBUtil::checkInt32($var); - $this->element_count_limit = $var; - - return $this; - } - - /** - * The maximum size of the request that could be accepted by server. - * - * Generated from protobuf field int32 request_byte_limit = 5; - * @return int - */ - public function getRequestByteLimit() - { - return $this->request_byte_limit; - } - - /** - * The maximum size of the request that could be accepted by server. - * - * Generated from protobuf field int32 request_byte_limit = 5; - * @param int $var - * @return $this - */ - public function setRequestByteLimit($var) - { - GPBUtil::checkInt32($var); - $this->request_byte_limit = $var; - - return $this; - } - - /** - * The maximum number of elements allowed by flow control. - * - * Generated from protobuf field int32 flow_control_element_limit = 6; - * @return int - */ - public function getFlowControlElementLimit() - { - return $this->flow_control_element_limit; - } - - /** - * The maximum number of elements allowed by flow control. - * - * Generated from protobuf field int32 flow_control_element_limit = 6; - * @param int $var - * @return $this - */ - public function setFlowControlElementLimit($var) - { - GPBUtil::checkInt32($var); - $this->flow_control_element_limit = $var; - - return $this; - } - - /** - * The maximum size of data allowed by flow control. - * - * Generated from protobuf field int32 flow_control_byte_limit = 7; - * @return int - */ - public function getFlowControlByteLimit() - { - return $this->flow_control_byte_limit; - } - - /** - * The maximum size of data allowed by flow control. - * - * Generated from protobuf field int32 flow_control_byte_limit = 7; - * @param int $var - * @return $this - */ - public function setFlowControlByteLimit($var) - { - GPBUtil::checkInt32($var); - $this->flow_control_byte_limit = $var; - - return $this; - } - - /** - * The behavior to take when the flow control limit is exceeded. - * - * Generated from protobuf field .google.api.FlowControlLimitExceededBehaviorProto flow_control_limit_exceeded_behavior = 8; - * @return int - */ - public function getFlowControlLimitExceededBehavior() - { - return $this->flow_control_limit_exceeded_behavior; - } - - /** - * The behavior to take when the flow control limit is exceeded. - * - * Generated from protobuf field .google.api.FlowControlLimitExceededBehaviorProto flow_control_limit_exceeded_behavior = 8; - * @param int $var - * @return $this - */ - public function setFlowControlLimitExceededBehavior($var) - { - GPBUtil::checkEnum($var, \Google\Api\FlowControlLimitExceededBehaviorProto::class); - $this->flow_control_limit_exceeded_behavior = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Billing.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Billing.php deleted file mode 100644 index 860acaf9891e..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Billing.php +++ /dev/null @@ -1,107 +0,0 @@ -google.api.Billing - */ -class Billing extends \Google\Protobuf\Internal\Message -{ - /** - * Billing configurations for sending metrics to the consumer project. - * There can be multiple consumer destinations per service, each one must have - * a different monitored resource type. A metric can be used in at most - * one consumer destination. - * - * Generated from protobuf field repeated .google.api.Billing.BillingDestination consumer_destinations = 8; - */ - private $consumer_destinations; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Api\Billing\BillingDestination[] $consumer_destinations - * Billing configurations for sending metrics to the consumer project. - * There can be multiple consumer destinations per service, each one must have - * a different monitored resource type. A metric can be used in at most - * one consumer destination. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Billing::initOnce(); - parent::__construct($data); - } - - /** - * Billing configurations for sending metrics to the consumer project. - * There can be multiple consumer destinations per service, each one must have - * a different monitored resource type. A metric can be used in at most - * one consumer destination. - * - * Generated from protobuf field repeated .google.api.Billing.BillingDestination consumer_destinations = 8; - * @return RepeatedField<\Google\Api\Billing\BillingDestination> - */ - public function getConsumerDestinations() - { - return $this->consumer_destinations; - } - - /** - * Billing configurations for sending metrics to the consumer project. - * There can be multiple consumer destinations per service, each one must have - * a different monitored resource type. A metric can be used in at most - * one consumer destination. - * - * Generated from protobuf field repeated .google.api.Billing.BillingDestination consumer_destinations = 8; - * @param \Google\Api\Billing\BillingDestination[] $var - * @return $this - */ - public function setConsumerDestinations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\Billing\BillingDestination::class); - $this->consumer_destinations = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Billing/BillingDestination.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Billing/BillingDestination.php deleted file mode 100644 index 1075320bd76d..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Billing/BillingDestination.php +++ /dev/null @@ -1,118 +0,0 @@ -google.api.Billing.BillingDestination - */ -class BillingDestination extends \Google\Protobuf\Internal\Message -{ - /** - * The monitored resource type. The type must be defined in - * [Service.monitored_resources][google.api.Service.monitored_resources] - * section. - * - * Generated from protobuf field string monitored_resource = 1; - */ - protected $monitored_resource = ''; - /** - * Names of the metrics to report to this billing destination. - * Each name must be defined in - * [Service.metrics][google.api.Service.metrics] section. - * - * Generated from protobuf field repeated string metrics = 2; - */ - private $metrics; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $monitored_resource - * The monitored resource type. The type must be defined in - * [Service.monitored_resources][google.api.Service.monitored_resources] - * section. - * @type string[] $metrics - * Names of the metrics to report to this billing destination. - * Each name must be defined in - * [Service.metrics][google.api.Service.metrics] section. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Billing::initOnce(); - parent::__construct($data); - } - - /** - * The monitored resource type. The type must be defined in - * [Service.monitored_resources][google.api.Service.monitored_resources] - * section. - * - * Generated from protobuf field string monitored_resource = 1; - * @return string - */ - public function getMonitoredResource() - { - return $this->monitored_resource; - } - - /** - * The monitored resource type. The type must be defined in - * [Service.monitored_resources][google.api.Service.monitored_resources] - * section. - * - * Generated from protobuf field string monitored_resource = 1; - * @param string $var - * @return $this - */ - public function setMonitoredResource($var) - { - GPBUtil::checkString($var, True); - $this->monitored_resource = $var; - - return $this; - } - - /** - * Names of the metrics to report to this billing destination. - * Each name must be defined in - * [Service.metrics][google.api.Service.metrics] section. - * - * Generated from protobuf field repeated string metrics = 2; - * @return RepeatedField - */ - public function getMetrics() - { - return $this->metrics; - } - - /** - * Names of the metrics to report to this billing destination. - * Each name must be defined in - * [Service.metrics][google.api.Service.metrics] section. - * - * Generated from protobuf field repeated string metrics = 2; - * @param string[] $var - * @return $this - */ - public function setMetrics($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->metrics = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ChangeType.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ChangeType.php deleted file mode 100644 index e39ab1bd2132..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ChangeType.php +++ /dev/null @@ -1,72 +0,0 @@ -google.api.ChangeType - */ -class ChangeType -{ - /** - * No value was provided. - * - * Generated from protobuf enum CHANGE_TYPE_UNSPECIFIED = 0; - */ - const CHANGE_TYPE_UNSPECIFIED = 0; - /** - * The changed object exists in the 'new' service configuration, but not - * in the 'old' service configuration. - * - * Generated from protobuf enum ADDED = 1; - */ - const ADDED = 1; - /** - * The changed object exists in the 'old' service configuration, but not - * in the 'new' service configuration. - * - * Generated from protobuf enum REMOVED = 2; - */ - const REMOVED = 2; - /** - * The changed object exists in both service configurations, but its value - * is different. - * - * Generated from protobuf enum MODIFIED = 3; - */ - const MODIFIED = 3; - - private static $valueToName = [ - self::CHANGE_TYPE_UNSPECIFIED => 'CHANGE_TYPE_UNSPECIFIED', - self::ADDED => 'ADDED', - self::REMOVED => 'REMOVED', - self::MODIFIED => 'MODIFIED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ClientLibraryDestination.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ClientLibraryDestination.php deleted file mode 100644 index 81aee7774f4e..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ClientLibraryDestination.php +++ /dev/null @@ -1,63 +0,0 @@ -google.api.ClientLibraryDestination - */ -class ClientLibraryDestination -{ - /** - * Client libraries will neither be generated nor published to package - * managers. - * - * Generated from protobuf enum CLIENT_LIBRARY_DESTINATION_UNSPECIFIED = 0; - */ - const CLIENT_LIBRARY_DESTINATION_UNSPECIFIED = 0; - /** - * Generate the client library in a repo under github.com/googleapis, - * but don't publish it to package managers. - * - * Generated from protobuf enum GITHUB = 10; - */ - const GITHUB = 10; - /** - * Publish the library to package managers like nuget.org and npmjs.com. - * - * Generated from protobuf enum PACKAGE_MANAGER = 20; - */ - const PACKAGE_MANAGER = 20; - - private static $valueToName = [ - self::CLIENT_LIBRARY_DESTINATION_UNSPECIFIED => 'CLIENT_LIBRARY_DESTINATION_UNSPECIFIED', - self::GITHUB => 'GITHUB', - self::PACKAGE_MANAGER => 'PACKAGE_MANAGER', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ClientLibraryOrganization.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ClientLibraryOrganization.php deleted file mode 100644 index bbb985f6ae85..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ClientLibraryOrganization.php +++ /dev/null @@ -1,97 +0,0 @@ -google.api.ClientLibraryOrganization - */ -class ClientLibraryOrganization -{ - /** - * Not useful. - * - * Generated from protobuf enum CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED = 0; - */ - const CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED = 0; - /** - * Google Cloud Platform Org. - * - * Generated from protobuf enum CLOUD = 1; - */ - const CLOUD = 1; - /** - * Ads (Advertising) Org. - * - * Generated from protobuf enum ADS = 2; - */ - const ADS = 2; - /** - * Photos Org. - * - * Generated from protobuf enum PHOTOS = 3; - */ - const PHOTOS = 3; - /** - * Street View Org. - * - * Generated from protobuf enum STREET_VIEW = 4; - */ - const STREET_VIEW = 4; - /** - * Shopping Org. - * - * Generated from protobuf enum SHOPPING = 5; - */ - const SHOPPING = 5; - /** - * Geo Org. - * - * Generated from protobuf enum GEO = 6; - */ - const GEO = 6; - /** - * Generative AI - https://developers.generativeai.google - * - * Generated from protobuf enum GENERATIVE_AI = 7; - */ - const GENERATIVE_AI = 7; - - private static $valueToName = [ - self::CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED => 'CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED', - self::CLOUD => 'CLOUD', - self::ADS => 'ADS', - self::PHOTOS => 'PHOTOS', - self::STREET_VIEW => 'STREET_VIEW', - self::SHOPPING => 'SHOPPING', - self::GEO => 'GEO', - self::GENERATIVE_AI => 'GENERATIVE_AI', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ClientLibrarySettings.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ClientLibrarySettings.php deleted file mode 100644 index b4b81075cd82..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ClientLibrarySettings.php +++ /dev/null @@ -1,499 +0,0 @@ -google.api.ClientLibrarySettings - */ -class ClientLibrarySettings extends \Google\Protobuf\Internal\Message -{ - /** - * Version of the API to apply these settings to. This is the full protobuf - * package for the API, ending in the version element. - * Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1". - * - * Generated from protobuf field string version = 1; - */ - protected $version = ''; - /** - * Launch stage of this version of the API. - * - * Generated from protobuf field .google.api.LaunchStage launch_stage = 2; - */ - protected $launch_stage = 0; - /** - * When using transport=rest, the client request will encode enums as - * numbers rather than strings. - * - * Generated from protobuf field bool rest_numeric_enums = 3; - */ - protected $rest_numeric_enums = false; - /** - * Settings for legacy Java features, supported in the Service YAML. - * - * Generated from protobuf field .google.api.JavaSettings java_settings = 21; - */ - protected $java_settings = null; - /** - * Settings for C++ client libraries. - * - * Generated from protobuf field .google.api.CppSettings cpp_settings = 22; - */ - protected $cpp_settings = null; - /** - * Settings for PHP client libraries. - * - * Generated from protobuf field .google.api.PhpSettings php_settings = 23; - */ - protected $php_settings = null; - /** - * Settings for Python client libraries. - * - * Generated from protobuf field .google.api.PythonSettings python_settings = 24; - */ - protected $python_settings = null; - /** - * Settings for Node client libraries. - * - * Generated from protobuf field .google.api.NodeSettings node_settings = 25; - */ - protected $node_settings = null; - /** - * Settings for .NET client libraries. - * - * Generated from protobuf field .google.api.DotnetSettings dotnet_settings = 26; - */ - protected $dotnet_settings = null; - /** - * Settings for Ruby client libraries. - * - * Generated from protobuf field .google.api.RubySettings ruby_settings = 27; - */ - protected $ruby_settings = null; - /** - * Settings for Go client libraries. - * - * Generated from protobuf field .google.api.GoSettings go_settings = 28; - */ - protected $go_settings = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $version - * Version of the API to apply these settings to. This is the full protobuf - * package for the API, ending in the version element. - * Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1". - * @type int $launch_stage - * Launch stage of this version of the API. - * @type bool $rest_numeric_enums - * When using transport=rest, the client request will encode enums as - * numbers rather than strings. - * @type \Google\Api\JavaSettings $java_settings - * Settings for legacy Java features, supported in the Service YAML. - * @type \Google\Api\CppSettings $cpp_settings - * Settings for C++ client libraries. - * @type \Google\Api\PhpSettings $php_settings - * Settings for PHP client libraries. - * @type \Google\Api\PythonSettings $python_settings - * Settings for Python client libraries. - * @type \Google\Api\NodeSettings $node_settings - * Settings for Node client libraries. - * @type \Google\Api\DotnetSettings $dotnet_settings - * Settings for .NET client libraries. - * @type \Google\Api\RubySettings $ruby_settings - * Settings for Ruby client libraries. - * @type \Google\Api\GoSettings $go_settings - * Settings for Go client libraries. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Client::initOnce(); - parent::__construct($data); - } - - /** - * Version of the API to apply these settings to. This is the full protobuf - * package for the API, ending in the version element. - * Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1". - * - * Generated from protobuf field string version = 1; - * @return string - */ - public function getVersion() - { - return $this->version; - } - - /** - * Version of the API to apply these settings to. This is the full protobuf - * package for the API, ending in the version element. - * Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1". - * - * Generated from protobuf field string version = 1; - * @param string $var - * @return $this - */ - public function setVersion($var) - { - GPBUtil::checkString($var, True); - $this->version = $var; - - return $this; - } - - /** - * Launch stage of this version of the API. - * - * Generated from protobuf field .google.api.LaunchStage launch_stage = 2; - * @return int - */ - public function getLaunchStage() - { - return $this->launch_stage; - } - - /** - * Launch stage of this version of the API. - * - * Generated from protobuf field .google.api.LaunchStage launch_stage = 2; - * @param int $var - * @return $this - */ - public function setLaunchStage($var) - { - GPBUtil::checkEnum($var, \Google\Api\LaunchStage::class); - $this->launch_stage = $var; - - return $this; - } - - /** - * When using transport=rest, the client request will encode enums as - * numbers rather than strings. - * - * Generated from protobuf field bool rest_numeric_enums = 3; - * @return bool - */ - public function getRestNumericEnums() - { - return $this->rest_numeric_enums; - } - - /** - * When using transport=rest, the client request will encode enums as - * numbers rather than strings. - * - * Generated from protobuf field bool rest_numeric_enums = 3; - * @param bool $var - * @return $this - */ - public function setRestNumericEnums($var) - { - GPBUtil::checkBool($var); - $this->rest_numeric_enums = $var; - - return $this; - } - - /** - * Settings for legacy Java features, supported in the Service YAML. - * - * Generated from protobuf field .google.api.JavaSettings java_settings = 21; - * @return \Google\Api\JavaSettings|null - */ - public function getJavaSettings() - { - return $this->java_settings; - } - - public function hasJavaSettings() - { - return isset($this->java_settings); - } - - public function clearJavaSettings() - { - unset($this->java_settings); - } - - /** - * Settings for legacy Java features, supported in the Service YAML. - * - * Generated from protobuf field .google.api.JavaSettings java_settings = 21; - * @param \Google\Api\JavaSettings $var - * @return $this - */ - public function setJavaSettings($var) - { - GPBUtil::checkMessage($var, \Google\Api\JavaSettings::class); - $this->java_settings = $var; - - return $this; - } - - /** - * Settings for C++ client libraries. - * - * Generated from protobuf field .google.api.CppSettings cpp_settings = 22; - * @return \Google\Api\CppSettings|null - */ - public function getCppSettings() - { - return $this->cpp_settings; - } - - public function hasCppSettings() - { - return isset($this->cpp_settings); - } - - public function clearCppSettings() - { - unset($this->cpp_settings); - } - - /** - * Settings for C++ client libraries. - * - * Generated from protobuf field .google.api.CppSettings cpp_settings = 22; - * @param \Google\Api\CppSettings $var - * @return $this - */ - public function setCppSettings($var) - { - GPBUtil::checkMessage($var, \Google\Api\CppSettings::class); - $this->cpp_settings = $var; - - return $this; - } - - /** - * Settings for PHP client libraries. - * - * Generated from protobuf field .google.api.PhpSettings php_settings = 23; - * @return \Google\Api\PhpSettings|null - */ - public function getPhpSettings() - { - return $this->php_settings; - } - - public function hasPhpSettings() - { - return isset($this->php_settings); - } - - public function clearPhpSettings() - { - unset($this->php_settings); - } - - /** - * Settings for PHP client libraries. - * - * Generated from protobuf field .google.api.PhpSettings php_settings = 23; - * @param \Google\Api\PhpSettings $var - * @return $this - */ - public function setPhpSettings($var) - { - GPBUtil::checkMessage($var, \Google\Api\PhpSettings::class); - $this->php_settings = $var; - - return $this; - } - - /** - * Settings for Python client libraries. - * - * Generated from protobuf field .google.api.PythonSettings python_settings = 24; - * @return \Google\Api\PythonSettings|null - */ - public function getPythonSettings() - { - return $this->python_settings; - } - - public function hasPythonSettings() - { - return isset($this->python_settings); - } - - public function clearPythonSettings() - { - unset($this->python_settings); - } - - /** - * Settings for Python client libraries. - * - * Generated from protobuf field .google.api.PythonSettings python_settings = 24; - * @param \Google\Api\PythonSettings $var - * @return $this - */ - public function setPythonSettings($var) - { - GPBUtil::checkMessage($var, \Google\Api\PythonSettings::class); - $this->python_settings = $var; - - return $this; - } - - /** - * Settings for Node client libraries. - * - * Generated from protobuf field .google.api.NodeSettings node_settings = 25; - * @return \Google\Api\NodeSettings|null - */ - public function getNodeSettings() - { - return $this->node_settings; - } - - public function hasNodeSettings() - { - return isset($this->node_settings); - } - - public function clearNodeSettings() - { - unset($this->node_settings); - } - - /** - * Settings for Node client libraries. - * - * Generated from protobuf field .google.api.NodeSettings node_settings = 25; - * @param \Google\Api\NodeSettings $var - * @return $this - */ - public function setNodeSettings($var) - { - GPBUtil::checkMessage($var, \Google\Api\NodeSettings::class); - $this->node_settings = $var; - - return $this; - } - - /** - * Settings for .NET client libraries. - * - * Generated from protobuf field .google.api.DotnetSettings dotnet_settings = 26; - * @return \Google\Api\DotnetSettings|null - */ - public function getDotnetSettings() - { - return $this->dotnet_settings; - } - - public function hasDotnetSettings() - { - return isset($this->dotnet_settings); - } - - public function clearDotnetSettings() - { - unset($this->dotnet_settings); - } - - /** - * Settings for .NET client libraries. - * - * Generated from protobuf field .google.api.DotnetSettings dotnet_settings = 26; - * @param \Google\Api\DotnetSettings $var - * @return $this - */ - public function setDotnetSettings($var) - { - GPBUtil::checkMessage($var, \Google\Api\DotnetSettings::class); - $this->dotnet_settings = $var; - - return $this; - } - - /** - * Settings for Ruby client libraries. - * - * Generated from protobuf field .google.api.RubySettings ruby_settings = 27; - * @return \Google\Api\RubySettings|null - */ - public function getRubySettings() - { - return $this->ruby_settings; - } - - public function hasRubySettings() - { - return isset($this->ruby_settings); - } - - public function clearRubySettings() - { - unset($this->ruby_settings); - } - - /** - * Settings for Ruby client libraries. - * - * Generated from protobuf field .google.api.RubySettings ruby_settings = 27; - * @param \Google\Api\RubySettings $var - * @return $this - */ - public function setRubySettings($var) - { - GPBUtil::checkMessage($var, \Google\Api\RubySettings::class); - $this->ruby_settings = $var; - - return $this; - } - - /** - * Settings for Go client libraries. - * - * Generated from protobuf field .google.api.GoSettings go_settings = 28; - * @return \Google\Api\GoSettings|null - */ - public function getGoSettings() - { - return $this->go_settings; - } - - public function hasGoSettings() - { - return isset($this->go_settings); - } - - public function clearGoSettings() - { - unset($this->go_settings); - } - - /** - * Settings for Go client libraries. - * - * Generated from protobuf field .google.api.GoSettings go_settings = 28; - * @param \Google\Api\GoSettings $var - * @return $this - */ - public function setGoSettings($var) - { - GPBUtil::checkMessage($var, \Google\Api\GoSettings::class); - $this->go_settings = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/CommonLanguageSettings.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/CommonLanguageSettings.php deleted file mode 100644 index 2a3ad65deaf8..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/CommonLanguageSettings.php +++ /dev/null @@ -1,156 +0,0 @@ -google.api.CommonLanguageSettings - */ -class CommonLanguageSettings extends \Google\Protobuf\Internal\Message -{ - /** - * Link to automatically generated reference documentation. Example: - * https://cloud.google.com/nodejs/docs/reference/asset/latest - * - * Generated from protobuf field string reference_docs_uri = 1 [deprecated = true]; - * @deprecated - */ - protected $reference_docs_uri = ''; - /** - * The destination where API teams want this client library to be published. - * - * Generated from protobuf field repeated .google.api.ClientLibraryDestination destinations = 2; - */ - private $destinations; - /** - * Configuration for which RPCs should be generated in the GAPIC client. - * - * Generated from protobuf field .google.api.SelectiveGapicGeneration selective_gapic_generation = 3; - */ - protected $selective_gapic_generation = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $reference_docs_uri - * Link to automatically generated reference documentation. Example: - * https://cloud.google.com/nodejs/docs/reference/asset/latest - * @type int[] $destinations - * The destination where API teams want this client library to be published. - * @type \Google\Api\SelectiveGapicGeneration $selective_gapic_generation - * Configuration for which RPCs should be generated in the GAPIC client. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Client::initOnce(); - parent::__construct($data); - } - - /** - * Link to automatically generated reference documentation. Example: - * https://cloud.google.com/nodejs/docs/reference/asset/latest - * - * Generated from protobuf field string reference_docs_uri = 1 [deprecated = true]; - * @return string - * @deprecated - */ - public function getReferenceDocsUri() - { - if ($this->reference_docs_uri !== '') { - @trigger_error('reference_docs_uri is deprecated.', E_USER_DEPRECATED); - } - return $this->reference_docs_uri; - } - - /** - * Link to automatically generated reference documentation. Example: - * https://cloud.google.com/nodejs/docs/reference/asset/latest - * - * Generated from protobuf field string reference_docs_uri = 1 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setReferenceDocsUri($var) - { - @trigger_error('reference_docs_uri is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->reference_docs_uri = $var; - - return $this; - } - - /** - * The destination where API teams want this client library to be published. - * - * Generated from protobuf field repeated .google.api.ClientLibraryDestination destinations = 2; - * @return RepeatedField - */ - public function getDestinations() - { - return $this->destinations; - } - - /** - * The destination where API teams want this client library to be published. - * - * Generated from protobuf field repeated .google.api.ClientLibraryDestination destinations = 2; - * @param int[] $var - * @return $this - */ - public function setDestinations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Api\ClientLibraryDestination::class); - $this->destinations = $arr; - - return $this; - } - - /** - * Configuration for which RPCs should be generated in the GAPIC client. - * - * Generated from protobuf field .google.api.SelectiveGapicGeneration selective_gapic_generation = 3; - * @return \Google\Api\SelectiveGapicGeneration|null - */ - public function getSelectiveGapicGeneration() - { - return $this->selective_gapic_generation; - } - - public function hasSelectiveGapicGeneration() - { - return isset($this->selective_gapic_generation); - } - - public function clearSelectiveGapicGeneration() - { - unset($this->selective_gapic_generation); - } - - /** - * Configuration for which RPCs should be generated in the GAPIC client. - * - * Generated from protobuf field .google.api.SelectiveGapicGeneration selective_gapic_generation = 3; - * @param \Google\Api\SelectiveGapicGeneration $var - * @return $this - */ - public function setSelectiveGapicGeneration($var) - { - GPBUtil::checkMessage($var, \Google\Api\SelectiveGapicGeneration::class); - $this->selective_gapic_generation = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ConfigChange.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ConfigChange.php deleted file mode 100644 index 95968e096f0d..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ConfigChange.php +++ /dev/null @@ -1,251 +0,0 @@ -google.api.ConfigChange - */ -class ConfigChange extends \Google\Protobuf\Internal\Message -{ - /** - * Object hierarchy path to the change, with levels separated by a '.' - * character. For repeated fields, an applicable unique identifier field is - * used for the index (usually selector, name, or id). For maps, the term - * 'key' is used. If the field has no unique identifier, the numeric index - * is used. - * Examples: - * - visibility.rules[selector=="google.LibraryService.ListBooks"].restriction - * - quota.metric_rules[selector=="google"].metric_costs[key=="reads"].value - * - logging.producer_destinations[0] - * - * Generated from protobuf field string element = 1; - */ - protected $element = ''; - /** - * Value of the changed object in the old Service configuration, - * in JSON format. This field will not be populated if ChangeType == ADDED. - * - * Generated from protobuf field string old_value = 2; - */ - protected $old_value = ''; - /** - * Value of the changed object in the new Service configuration, - * in JSON format. This field will not be populated if ChangeType == REMOVED. - * - * Generated from protobuf field string new_value = 3; - */ - protected $new_value = ''; - /** - * The type for this change, either ADDED, REMOVED, or MODIFIED. - * - * Generated from protobuf field .google.api.ChangeType change_type = 4; - */ - protected $change_type = 0; - /** - * Collection of advice provided for this change, useful for determining the - * possible impact of this change. - * - * Generated from protobuf field repeated .google.api.Advice advices = 5; - */ - private $advices; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $element - * Object hierarchy path to the change, with levels separated by a '.' - * character. For repeated fields, an applicable unique identifier field is - * used for the index (usually selector, name, or id). For maps, the term - * 'key' is used. If the field has no unique identifier, the numeric index - * is used. - * Examples: - * - visibility.rules[selector=="google.LibraryService.ListBooks"].restriction - * - quota.metric_rules[selector=="google"].metric_costs[key=="reads"].value - * - logging.producer_destinations[0] - * @type string $old_value - * Value of the changed object in the old Service configuration, - * in JSON format. This field will not be populated if ChangeType == ADDED. - * @type string $new_value - * Value of the changed object in the new Service configuration, - * in JSON format. This field will not be populated if ChangeType == REMOVED. - * @type int $change_type - * The type for this change, either ADDED, REMOVED, or MODIFIED. - * @type \Google\Api\Advice[] $advices - * Collection of advice provided for this change, useful for determining the - * possible impact of this change. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\ConfigChange::initOnce(); - parent::__construct($data); - } - - /** - * Object hierarchy path to the change, with levels separated by a '.' - * character. For repeated fields, an applicable unique identifier field is - * used for the index (usually selector, name, or id). For maps, the term - * 'key' is used. If the field has no unique identifier, the numeric index - * is used. - * Examples: - * - visibility.rules[selector=="google.LibraryService.ListBooks"].restriction - * - quota.metric_rules[selector=="google"].metric_costs[key=="reads"].value - * - logging.producer_destinations[0] - * - * Generated from protobuf field string element = 1; - * @return string - */ - public function getElement() - { - return $this->element; - } - - /** - * Object hierarchy path to the change, with levels separated by a '.' - * character. For repeated fields, an applicable unique identifier field is - * used for the index (usually selector, name, or id). For maps, the term - * 'key' is used. If the field has no unique identifier, the numeric index - * is used. - * Examples: - * - visibility.rules[selector=="google.LibraryService.ListBooks"].restriction - * - quota.metric_rules[selector=="google"].metric_costs[key=="reads"].value - * - logging.producer_destinations[0] - * - * Generated from protobuf field string element = 1; - * @param string $var - * @return $this - */ - public function setElement($var) - { - GPBUtil::checkString($var, True); - $this->element = $var; - - return $this; - } - - /** - * Value of the changed object in the old Service configuration, - * in JSON format. This field will not be populated if ChangeType == ADDED. - * - * Generated from protobuf field string old_value = 2; - * @return string - */ - public function getOldValue() - { - return $this->old_value; - } - - /** - * Value of the changed object in the old Service configuration, - * in JSON format. This field will not be populated if ChangeType == ADDED. - * - * Generated from protobuf field string old_value = 2; - * @param string $var - * @return $this - */ - public function setOldValue($var) - { - GPBUtil::checkString($var, True); - $this->old_value = $var; - - return $this; - } - - /** - * Value of the changed object in the new Service configuration, - * in JSON format. This field will not be populated if ChangeType == REMOVED. - * - * Generated from protobuf field string new_value = 3; - * @return string - */ - public function getNewValue() - { - return $this->new_value; - } - - /** - * Value of the changed object in the new Service configuration, - * in JSON format. This field will not be populated if ChangeType == REMOVED. - * - * Generated from protobuf field string new_value = 3; - * @param string $var - * @return $this - */ - public function setNewValue($var) - { - GPBUtil::checkString($var, True); - $this->new_value = $var; - - return $this; - } - - /** - * The type for this change, either ADDED, REMOVED, or MODIFIED. - * - * Generated from protobuf field .google.api.ChangeType change_type = 4; - * @return int - */ - public function getChangeType() - { - return $this->change_type; - } - - /** - * The type for this change, either ADDED, REMOVED, or MODIFIED. - * - * Generated from protobuf field .google.api.ChangeType change_type = 4; - * @param int $var - * @return $this - */ - public function setChangeType($var) - { - GPBUtil::checkEnum($var, \Google\Api\ChangeType::class); - $this->change_type = $var; - - return $this; - } - - /** - * Collection of advice provided for this change, useful for determining the - * possible impact of this change. - * - * Generated from protobuf field repeated .google.api.Advice advices = 5; - * @return RepeatedField<\Google\Api\Advice> - */ - public function getAdvices() - { - return $this->advices; - } - - /** - * Collection of advice provided for this change, useful for determining the - * possible impact of this change. - * - * Generated from protobuf field repeated .google.api.Advice advices = 5; - * @param \Google\Api\Advice[] $var - * @return $this - */ - public function setAdvices($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\Advice::class); - $this->advices = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Context.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Context.php deleted file mode 100644 index a8fb3dcba8c6..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Context.php +++ /dev/null @@ -1,98 +0,0 @@ --bin” and - * “x-goog-ext--jspb” format. For example, list any service - * specific protobuf types that can appear in grpc metadata as follows in your - * yaml file: - * Example: - * context: - * rules: - * - selector: "google.example.library.v1.LibraryService.CreateBook" - * allowed_request_extensions: - * - google.foo.v1.NewExtension - * allowed_response_extensions: - * - google.foo.v1.NewExtension - * You can also specify extension ID instead of fully qualified extension name - * here. - * - * Generated from protobuf message google.api.Context - */ -class Context extends \Google\Protobuf\Internal\Message -{ - /** - * A list of RPC context rules that apply to individual API methods. - * **NOTE:** All service configuration rules follow "last one wins" order. - * - * Generated from protobuf field repeated .google.api.ContextRule rules = 1; - */ - private $rules; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Api\ContextRule[] $rules - * A list of RPC context rules that apply to individual API methods. - * **NOTE:** All service configuration rules follow "last one wins" order. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Context::initOnce(); - parent::__construct($data); - } - - /** - * A list of RPC context rules that apply to individual API methods. - * **NOTE:** All service configuration rules follow "last one wins" order. - * - * Generated from protobuf field repeated .google.api.ContextRule rules = 1; - * @return RepeatedField<\Google\Api\ContextRule> - */ - public function getRules() - { - return $this->rules; - } - - /** - * A list of RPC context rules that apply to individual API methods. - * **NOTE:** All service configuration rules follow "last one wins" order. - * - * Generated from protobuf field repeated .google.api.ContextRule rules = 1; - * @param \Google\Api\ContextRule[] $var - * @return $this - */ - public function setRules($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\ContextRule::class); - $this->rules = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ContextRule.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ContextRule.php deleted file mode 100644 index 669b1af4a0e1..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ContextRule.php +++ /dev/null @@ -1,228 +0,0 @@ -google.api.ContextRule - */ -class ContextRule extends \Google\Protobuf\Internal\Message -{ - /** - * Selects the methods to which this rule applies. - * Refer to [selector][google.api.DocumentationRule.selector] for syntax - * details. - * - * Generated from protobuf field string selector = 1; - */ - protected $selector = ''; - /** - * A list of full type names of requested contexts, only the requested context - * will be made available to the backend. - * - * Generated from protobuf field repeated string requested = 2; - */ - private $requested; - /** - * A list of full type names of provided contexts. It is used to support - * propagating HTTP headers and ETags from the response extension. - * - * Generated from protobuf field repeated string provided = 3; - */ - private $provided; - /** - * A list of full type names or extension IDs of extensions allowed in grpc - * side channel from client to backend. - * - * Generated from protobuf field repeated string allowed_request_extensions = 4; - */ - private $allowed_request_extensions; - /** - * A list of full type names or extension IDs of extensions allowed in grpc - * side channel from backend to client. - * - * Generated from protobuf field repeated string allowed_response_extensions = 5; - */ - private $allowed_response_extensions; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $selector - * Selects the methods to which this rule applies. - * Refer to [selector][google.api.DocumentationRule.selector] for syntax - * details. - * @type string[] $requested - * A list of full type names of requested contexts, only the requested context - * will be made available to the backend. - * @type string[] $provided - * A list of full type names of provided contexts. It is used to support - * propagating HTTP headers and ETags from the response extension. - * @type string[] $allowed_request_extensions - * A list of full type names or extension IDs of extensions allowed in grpc - * side channel from client to backend. - * @type string[] $allowed_response_extensions - * A list of full type names or extension IDs of extensions allowed in grpc - * side channel from backend to client. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Context::initOnce(); - parent::__construct($data); - } - - /** - * Selects the methods to which this rule applies. - * Refer to [selector][google.api.DocumentationRule.selector] for syntax - * details. - * - * Generated from protobuf field string selector = 1; - * @return string - */ - public function getSelector() - { - return $this->selector; - } - - /** - * Selects the methods to which this rule applies. - * Refer to [selector][google.api.DocumentationRule.selector] for syntax - * details. - * - * Generated from protobuf field string selector = 1; - * @param string $var - * @return $this - */ - public function setSelector($var) - { - GPBUtil::checkString($var, True); - $this->selector = $var; - - return $this; - } - - /** - * A list of full type names of requested contexts, only the requested context - * will be made available to the backend. - * - * Generated from protobuf field repeated string requested = 2; - * @return RepeatedField - */ - public function getRequested() - { - return $this->requested; - } - - /** - * A list of full type names of requested contexts, only the requested context - * will be made available to the backend. - * - * Generated from protobuf field repeated string requested = 2; - * @param string[] $var - * @return $this - */ - public function setRequested($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->requested = $arr; - - return $this; - } - - /** - * A list of full type names of provided contexts. It is used to support - * propagating HTTP headers and ETags from the response extension. - * - * Generated from protobuf field repeated string provided = 3; - * @return RepeatedField - */ - public function getProvided() - { - return $this->provided; - } - - /** - * A list of full type names of provided contexts. It is used to support - * propagating HTTP headers and ETags from the response extension. - * - * Generated from protobuf field repeated string provided = 3; - * @param string[] $var - * @return $this - */ - public function setProvided($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->provided = $arr; - - return $this; - } - - /** - * A list of full type names or extension IDs of extensions allowed in grpc - * side channel from client to backend. - * - * Generated from protobuf field repeated string allowed_request_extensions = 4; - * @return RepeatedField - */ - public function getAllowedRequestExtensions() - { - return $this->allowed_request_extensions; - } - - /** - * A list of full type names or extension IDs of extensions allowed in grpc - * side channel from client to backend. - * - * Generated from protobuf field repeated string allowed_request_extensions = 4; - * @param string[] $var - * @return $this - */ - public function setAllowedRequestExtensions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->allowed_request_extensions = $arr; - - return $this; - } - - /** - * A list of full type names or extension IDs of extensions allowed in grpc - * side channel from backend to client. - * - * Generated from protobuf field repeated string allowed_response_extensions = 5; - * @return RepeatedField - */ - public function getAllowedResponseExtensions() - { - return $this->allowed_response_extensions; - } - - /** - * A list of full type names or extension IDs of extensions allowed in grpc - * side channel from backend to client. - * - * Generated from protobuf field repeated string allowed_response_extensions = 5; - * @param string[] $var - * @return $this - */ - public function setAllowedResponseExtensions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->allowed_response_extensions = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Control.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Control.php deleted file mode 100644 index 834a57015bf6..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Control.php +++ /dev/null @@ -1,112 +0,0 @@ -google.api.Control - */ -class Control extends \Google\Protobuf\Internal\Message -{ - /** - * The service controller environment to use. If empty, no control plane - * features (like quota and billing) will be enabled. The recommended value - * for most services is servicecontrol.googleapis.com. - * - * Generated from protobuf field string environment = 1; - */ - protected $environment = ''; - /** - * Defines policies applying to the API methods of the service. - * - * Generated from protobuf field repeated .google.api.MethodPolicy method_policies = 4; - */ - private $method_policies; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $environment - * The service controller environment to use. If empty, no control plane - * features (like quota and billing) will be enabled. The recommended value - * for most services is servicecontrol.googleapis.com. - * @type \Google\Api\MethodPolicy[] $method_policies - * Defines policies applying to the API methods of the service. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Control::initOnce(); - parent::__construct($data); - } - - /** - * The service controller environment to use. If empty, no control plane - * features (like quota and billing) will be enabled. The recommended value - * for most services is servicecontrol.googleapis.com. - * - * Generated from protobuf field string environment = 1; - * @return string - */ - public function getEnvironment() - { - return $this->environment; - } - - /** - * The service controller environment to use. If empty, no control plane - * features (like quota and billing) will be enabled. The recommended value - * for most services is servicecontrol.googleapis.com. - * - * Generated from protobuf field string environment = 1; - * @param string $var - * @return $this - */ - public function setEnvironment($var) - { - GPBUtil::checkString($var, True); - $this->environment = $var; - - return $this; - } - - /** - * Defines policies applying to the API methods of the service. - * - * Generated from protobuf field repeated .google.api.MethodPolicy method_policies = 4; - * @return RepeatedField<\Google\Api\MethodPolicy> - */ - public function getMethodPolicies() - { - return $this->method_policies; - } - - /** - * Defines policies applying to the API methods of the service. - * - * Generated from protobuf field repeated .google.api.MethodPolicy method_policies = 4; - * @param \Google\Api\MethodPolicy[] $var - * @return $this - */ - public function setMethodPolicies($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\MethodPolicy::class); - $this->method_policies = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/CppSettings.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/CppSettings.php deleted file mode 100644 index d19648352d9f..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/CppSettings.php +++ /dev/null @@ -1,77 +0,0 @@ -google.api.CppSettings - */ -class CppSettings extends \Google\Protobuf\Internal\Message -{ - /** - * Some settings. - * - * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; - */ - protected $common = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Api\CommonLanguageSettings $common - * Some settings. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Client::initOnce(); - parent::__construct($data); - } - - /** - * Some settings. - * - * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; - * @return \Google\Api\CommonLanguageSettings|null - */ - public function getCommon() - { - return $this->common; - } - - public function hasCommon() - { - return isset($this->common); - } - - public function clearCommon() - { - unset($this->common); - } - - /** - * Some settings. - * - * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; - * @param \Google\Api\CommonLanguageSettings $var - * @return $this - */ - public function setCommon($var) - { - GPBUtil::checkMessage($var, \Google\Api\CommonLanguageSettings::class); - $this->common = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/CustomHttpPattern.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/CustomHttpPattern.php deleted file mode 100644 index 2cd8d9658420..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/CustomHttpPattern.php +++ /dev/null @@ -1,101 +0,0 @@ -google.api.CustomHttpPattern - */ -class CustomHttpPattern extends \Google\Protobuf\Internal\Message -{ - /** - * The name of this custom HTTP verb. - * - * Generated from protobuf field string kind = 1; - */ - protected $kind = ''; - /** - * The path matched by this custom verb. - * - * Generated from protobuf field string path = 2; - */ - protected $path = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $kind - * The name of this custom HTTP verb. - * @type string $path - * The path matched by this custom verb. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Http::initOnce(); - parent::__construct($data); - } - - /** - * The name of this custom HTTP verb. - * - * Generated from protobuf field string kind = 1; - * @return string - */ - public function getKind() - { - return $this->kind; - } - - /** - * The name of this custom HTTP verb. - * - * Generated from protobuf field string kind = 1; - * @param string $var - * @return $this - */ - public function setKind($var) - { - GPBUtil::checkString($var, True); - $this->kind = $var; - - return $this; - } - - /** - * The path matched by this custom verb. - * - * Generated from protobuf field string path = 2; - * @return string - */ - public function getPath() - { - return $this->path; - } - - /** - * The path matched by this custom verb. - * - * Generated from protobuf field string path = 2; - * @param string $var - * @return $this - */ - public function setPath($var) - { - GPBUtil::checkString($var, True); - $this->path = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution.php deleted file mode 100644 index 21d1527b3020..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution.php +++ /dev/null @@ -1,390 +0,0 @@ -google.api.Distribution - */ -class Distribution extends \Google\Protobuf\Internal\Message -{ - /** - * The number of values in the population. Must be non-negative. This value - * must equal the sum of the values in `bucket_counts` if a histogram is - * provided. - * - * Generated from protobuf field int64 count = 1; - */ - protected $count = 0; - /** - * The arithmetic mean of the values in the population. If `count` is zero - * then this field must be zero. - * - * Generated from protobuf field double mean = 2; - */ - protected $mean = 0.0; - /** - * The sum of squared deviations from the mean of the values in the - * population. For values x_i this is: - * Sum[i=1..n]((x_i - mean)^2) - * Knuth, "The Art of Computer Programming", Vol. 2, page 232, 3rd edition - * describes Welford's method for accumulating this sum in one pass. - * If `count` is zero then this field must be zero. - * - * Generated from protobuf field double sum_of_squared_deviation = 3; - */ - protected $sum_of_squared_deviation = 0.0; - /** - * If specified, contains the range of the population values. The field - * must not be present if the `count` is zero. - * - * Generated from protobuf field .google.api.Distribution.Range range = 4; - */ - protected $range = null; - /** - * Defines the histogram bucket boundaries. If the distribution does not - * contain a histogram, then omit this field. - * - * Generated from protobuf field .google.api.Distribution.BucketOptions bucket_options = 6; - */ - protected $bucket_options = null; - /** - * The number of values in each bucket of the histogram, as described in - * `bucket_options`. If the distribution does not have a histogram, then omit - * this field. If there is a histogram, then the sum of the values in - * `bucket_counts` must equal the value in the `count` field of the - * distribution. - * If present, `bucket_counts` should contain N values, where N is the number - * of buckets specified in `bucket_options`. If you supply fewer than N - * values, the remaining values are assumed to be 0. - * The order of the values in `bucket_counts` follows the bucket numbering - * schemes described for the three bucket types. The first value must be the - * count for the underflow bucket (number 0). The next N-2 values are the - * counts for the finite buckets (number 1 through N-2). The N'th value in - * `bucket_counts` is the count for the overflow bucket (number N-1). - * - * Generated from protobuf field repeated int64 bucket_counts = 7; - */ - private $bucket_counts; - /** - * Must be in increasing order of `value` field. - * - * Generated from protobuf field repeated .google.api.Distribution.Exemplar exemplars = 10; - */ - private $exemplars; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $count - * The number of values in the population. Must be non-negative. This value - * must equal the sum of the values in `bucket_counts` if a histogram is - * provided. - * @type float $mean - * The arithmetic mean of the values in the population. If `count` is zero - * then this field must be zero. - * @type float $sum_of_squared_deviation - * The sum of squared deviations from the mean of the values in the - * population. For values x_i this is: - * Sum[i=1..n]((x_i - mean)^2) - * Knuth, "The Art of Computer Programming", Vol. 2, page 232, 3rd edition - * describes Welford's method for accumulating this sum in one pass. - * If `count` is zero then this field must be zero. - * @type \Google\Api\Distribution\Range $range - * If specified, contains the range of the population values. The field - * must not be present if the `count` is zero. - * @type \Google\Api\Distribution\BucketOptions $bucket_options - * Defines the histogram bucket boundaries. If the distribution does not - * contain a histogram, then omit this field. - * @type int[]|string[] $bucket_counts - * The number of values in each bucket of the histogram, as described in - * `bucket_options`. If the distribution does not have a histogram, then omit - * this field. If there is a histogram, then the sum of the values in - * `bucket_counts` must equal the value in the `count` field of the - * distribution. - * If present, `bucket_counts` should contain N values, where N is the number - * of buckets specified in `bucket_options`. If you supply fewer than N - * values, the remaining values are assumed to be 0. - * The order of the values in `bucket_counts` follows the bucket numbering - * schemes described for the three bucket types. The first value must be the - * count for the underflow bucket (number 0). The next N-2 values are the - * counts for the finite buckets (number 1 through N-2). The N'th value in - * `bucket_counts` is the count for the overflow bucket (number N-1). - * @type \Google\Api\Distribution\Exemplar[] $exemplars - * Must be in increasing order of `value` field. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Distribution::initOnce(); - parent::__construct($data); - } - - /** - * The number of values in the population. Must be non-negative. This value - * must equal the sum of the values in `bucket_counts` if a histogram is - * provided. - * - * Generated from protobuf field int64 count = 1; - * @return int|string - */ - public function getCount() - { - return $this->count; - } - - /** - * The number of values in the population. Must be non-negative. This value - * must equal the sum of the values in `bucket_counts` if a histogram is - * provided. - * - * Generated from protobuf field int64 count = 1; - * @param int|string $var - * @return $this - */ - public function setCount($var) - { - GPBUtil::checkInt64($var); - $this->count = $var; - - return $this; - } - - /** - * The arithmetic mean of the values in the population. If `count` is zero - * then this field must be zero. - * - * Generated from protobuf field double mean = 2; - * @return float - */ - public function getMean() - { - return $this->mean; - } - - /** - * The arithmetic mean of the values in the population. If `count` is zero - * then this field must be zero. - * - * Generated from protobuf field double mean = 2; - * @param float $var - * @return $this - */ - public function setMean($var) - { - GPBUtil::checkDouble($var); - $this->mean = $var; - - return $this; - } - - /** - * The sum of squared deviations from the mean of the values in the - * population. For values x_i this is: - * Sum[i=1..n]((x_i - mean)^2) - * Knuth, "The Art of Computer Programming", Vol. 2, page 232, 3rd edition - * describes Welford's method for accumulating this sum in one pass. - * If `count` is zero then this field must be zero. - * - * Generated from protobuf field double sum_of_squared_deviation = 3; - * @return float - */ - public function getSumOfSquaredDeviation() - { - return $this->sum_of_squared_deviation; - } - - /** - * The sum of squared deviations from the mean of the values in the - * population. For values x_i this is: - * Sum[i=1..n]((x_i - mean)^2) - * Knuth, "The Art of Computer Programming", Vol. 2, page 232, 3rd edition - * describes Welford's method for accumulating this sum in one pass. - * If `count` is zero then this field must be zero. - * - * Generated from protobuf field double sum_of_squared_deviation = 3; - * @param float $var - * @return $this - */ - public function setSumOfSquaredDeviation($var) - { - GPBUtil::checkDouble($var); - $this->sum_of_squared_deviation = $var; - - return $this; - } - - /** - * If specified, contains the range of the population values. The field - * must not be present if the `count` is zero. - * - * Generated from protobuf field .google.api.Distribution.Range range = 4; - * @return \Google\Api\Distribution\Range|null - */ - public function getRange() - { - return $this->range; - } - - public function hasRange() - { - return isset($this->range); - } - - public function clearRange() - { - unset($this->range); - } - - /** - * If specified, contains the range of the population values. The field - * must not be present if the `count` is zero. - * - * Generated from protobuf field .google.api.Distribution.Range range = 4; - * @param \Google\Api\Distribution\Range $var - * @return $this - */ - public function setRange($var) - { - GPBUtil::checkMessage($var, \Google\Api\Distribution\Range::class); - $this->range = $var; - - return $this; - } - - /** - * Defines the histogram bucket boundaries. If the distribution does not - * contain a histogram, then omit this field. - * - * Generated from protobuf field .google.api.Distribution.BucketOptions bucket_options = 6; - * @return \Google\Api\Distribution\BucketOptions|null - */ - public function getBucketOptions() - { - return $this->bucket_options; - } - - public function hasBucketOptions() - { - return isset($this->bucket_options); - } - - public function clearBucketOptions() - { - unset($this->bucket_options); - } - - /** - * Defines the histogram bucket boundaries. If the distribution does not - * contain a histogram, then omit this field. - * - * Generated from protobuf field .google.api.Distribution.BucketOptions bucket_options = 6; - * @param \Google\Api\Distribution\BucketOptions $var - * @return $this - */ - public function setBucketOptions($var) - { - GPBUtil::checkMessage($var, \Google\Api\Distribution\BucketOptions::class); - $this->bucket_options = $var; - - return $this; - } - - /** - * The number of values in each bucket of the histogram, as described in - * `bucket_options`. If the distribution does not have a histogram, then omit - * this field. If there is a histogram, then the sum of the values in - * `bucket_counts` must equal the value in the `count` field of the - * distribution. - * If present, `bucket_counts` should contain N values, where N is the number - * of buckets specified in `bucket_options`. If you supply fewer than N - * values, the remaining values are assumed to be 0. - * The order of the values in `bucket_counts` follows the bucket numbering - * schemes described for the three bucket types. The first value must be the - * count for the underflow bucket (number 0). The next N-2 values are the - * counts for the finite buckets (number 1 through N-2). The N'th value in - * `bucket_counts` is the count for the overflow bucket (number N-1). - * - * Generated from protobuf field repeated int64 bucket_counts = 7; - * @return RepeatedField|RepeatedField - */ - public function getBucketCounts() - { - return $this->bucket_counts; - } - - /** - * The number of values in each bucket of the histogram, as described in - * `bucket_options`. If the distribution does not have a histogram, then omit - * this field. If there is a histogram, then the sum of the values in - * `bucket_counts` must equal the value in the `count` field of the - * distribution. - * If present, `bucket_counts` should contain N values, where N is the number - * of buckets specified in `bucket_options`. If you supply fewer than N - * values, the remaining values are assumed to be 0. - * The order of the values in `bucket_counts` follows the bucket numbering - * schemes described for the three bucket types. The first value must be the - * count for the underflow bucket (number 0). The next N-2 values are the - * counts for the finite buckets (number 1 through N-2). The N'th value in - * `bucket_counts` is the count for the overflow bucket (number N-1). - * - * Generated from protobuf field repeated int64 bucket_counts = 7; - * @param int[]|string[] $var - * @return $this - */ - public function setBucketCounts($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT64); - $this->bucket_counts = $arr; - - return $this; - } - - /** - * Must be in increasing order of `value` field. - * - * Generated from protobuf field repeated .google.api.Distribution.Exemplar exemplars = 10; - * @return RepeatedField<\Google\Api\Distribution\Exemplar> - */ - public function getExemplars() - { - return $this->exemplars; - } - - /** - * Must be in increasing order of `value` field. - * - * Generated from protobuf field repeated .google.api.Distribution.Exemplar exemplars = 10; - * @param \Google\Api\Distribution\Exemplar[] $var - * @return $this - */ - public function setExemplars($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\Distribution\Exemplar::class); - $this->exemplars = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/BucketOptions.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/BucketOptions.php deleted file mode 100644 index 9592cb4b7671..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/BucketOptions.php +++ /dev/null @@ -1,154 +0,0 @@ - 0) is the - * same as the upper bound of bucket i - 1. The buckets span the whole range - * of finite values: lower bound of the underflow bucket is -infinity and the - * upper bound of the overflow bucket is +infinity. The finite buckets are - * so-called because both bounds are finite. - * - * Generated from protobuf message google.api.Distribution.BucketOptions - */ -class BucketOptions extends \Google\Protobuf\Internal\Message -{ - protected $options; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Api\Distribution\BucketOptions\Linear $linear_buckets - * The linear bucket. - * @type \Google\Api\Distribution\BucketOptions\Exponential $exponential_buckets - * The exponential buckets. - * @type \Google\Api\Distribution\BucketOptions\Explicit $explicit_buckets - * The explicit buckets. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Distribution::initOnce(); - parent::__construct($data); - } - - /** - * The linear bucket. - * - * Generated from protobuf field .google.api.Distribution.BucketOptions.Linear linear_buckets = 1; - * @return \Google\Api\Distribution\BucketOptions\Linear|null - */ - public function getLinearBuckets() - { - return $this->readOneof(1); - } - - public function hasLinearBuckets() - { - return $this->hasOneof(1); - } - - /** - * The linear bucket. - * - * Generated from protobuf field .google.api.Distribution.BucketOptions.Linear linear_buckets = 1; - * @param \Google\Api\Distribution\BucketOptions\Linear $var - * @return $this - */ - public function setLinearBuckets($var) - { - GPBUtil::checkMessage($var, \Google\Api\Distribution\BucketOptions\Linear::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * The exponential buckets. - * - * Generated from protobuf field .google.api.Distribution.BucketOptions.Exponential exponential_buckets = 2; - * @return \Google\Api\Distribution\BucketOptions\Exponential|null - */ - public function getExponentialBuckets() - { - return $this->readOneof(2); - } - - public function hasExponentialBuckets() - { - return $this->hasOneof(2); - } - - /** - * The exponential buckets. - * - * Generated from protobuf field .google.api.Distribution.BucketOptions.Exponential exponential_buckets = 2; - * @param \Google\Api\Distribution\BucketOptions\Exponential $var - * @return $this - */ - public function setExponentialBuckets($var) - { - GPBUtil::checkMessage($var, \Google\Api\Distribution\BucketOptions\Exponential::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * The explicit buckets. - * - * Generated from protobuf field .google.api.Distribution.BucketOptions.Explicit explicit_buckets = 3; - * @return \Google\Api\Distribution\BucketOptions\Explicit|null - */ - public function getExplicitBuckets() - { - return $this->readOneof(3); - } - - public function hasExplicitBuckets() - { - return $this->hasOneof(3); - } - - /** - * The explicit buckets. - * - * Generated from protobuf field .google.api.Distribution.BucketOptions.Explicit explicit_buckets = 3; - * @param \Google\Api\Distribution\BucketOptions\Explicit $var - * @return $this - */ - public function setExplicitBuckets($var) - { - GPBUtil::checkMessage($var, \Google\Api\Distribution\BucketOptions\Explicit::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * @return string - */ - public function getOptions() - { - return $this->whichOneof("options"); - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/BucketOptions/Explicit.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/BucketOptions/Explicit.php deleted file mode 100644 index 5921bd98dfbb..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/BucketOptions/Explicit.php +++ /dev/null @@ -1,74 +0,0 @@ -google.api.Distribution.BucketOptions.Explicit - */ -class Explicit extends \Google\Protobuf\Internal\Message -{ - /** - * The values must be monotonically increasing. - * - * Generated from protobuf field repeated double bounds = 1; - */ - private $bounds; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type float[] $bounds - * The values must be monotonically increasing. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Distribution::initOnce(); - parent::__construct($data); - } - - /** - * The values must be monotonically increasing. - * - * Generated from protobuf field repeated double bounds = 1; - * @return RepeatedField - */ - public function getBounds() - { - return $this->bounds; - } - - /** - * The values must be monotonically increasing. - * - * Generated from protobuf field repeated double bounds = 1; - * @param float[] $var - * @return $this - */ - public function setBounds($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::DOUBLE); - $this->bounds = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/BucketOptions/Exponential.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/BucketOptions/Exponential.php deleted file mode 100644 index 58e67685834c..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/BucketOptions/Exponential.php +++ /dev/null @@ -1,141 +0,0 @@ -google.api.Distribution.BucketOptions.Exponential - */ -class Exponential extends \Google\Protobuf\Internal\Message -{ - /** - * Must be greater than 0. - * - * Generated from protobuf field int32 num_finite_buckets = 1; - */ - protected $num_finite_buckets = 0; - /** - * Must be greater than 1. - * - * Generated from protobuf field double growth_factor = 2; - */ - protected $growth_factor = 0.0; - /** - * Must be greater than 0. - * - * Generated from protobuf field double scale = 3; - */ - protected $scale = 0.0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $num_finite_buckets - * Must be greater than 0. - * @type float $growth_factor - * Must be greater than 1. - * @type float $scale - * Must be greater than 0. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Distribution::initOnce(); - parent::__construct($data); - } - - /** - * Must be greater than 0. - * - * Generated from protobuf field int32 num_finite_buckets = 1; - * @return int - */ - public function getNumFiniteBuckets() - { - return $this->num_finite_buckets; - } - - /** - * Must be greater than 0. - * - * Generated from protobuf field int32 num_finite_buckets = 1; - * @param int $var - * @return $this - */ - public function setNumFiniteBuckets($var) - { - GPBUtil::checkInt32($var); - $this->num_finite_buckets = $var; - - return $this; - } - - /** - * Must be greater than 1. - * - * Generated from protobuf field double growth_factor = 2; - * @return float - */ - public function getGrowthFactor() - { - return $this->growth_factor; - } - - /** - * Must be greater than 1. - * - * Generated from protobuf field double growth_factor = 2; - * @param float $var - * @return $this - */ - public function setGrowthFactor($var) - { - GPBUtil::checkDouble($var); - $this->growth_factor = $var; - - return $this; - } - - /** - * Must be greater than 0. - * - * Generated from protobuf field double scale = 3; - * @return float - */ - public function getScale() - { - return $this->scale; - } - - /** - * Must be greater than 0. - * - * Generated from protobuf field double scale = 3; - * @param float $var - * @return $this - */ - public function setScale($var) - { - GPBUtil::checkDouble($var); - $this->scale = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/BucketOptions/Linear.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/BucketOptions/Linear.php deleted file mode 100644 index ca602bd7463c..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/BucketOptions/Linear.php +++ /dev/null @@ -1,141 +0,0 @@ -google.api.Distribution.BucketOptions.Linear - */ -class Linear extends \Google\Protobuf\Internal\Message -{ - /** - * Must be greater than 0. - * - * Generated from protobuf field int32 num_finite_buckets = 1; - */ - protected $num_finite_buckets = 0; - /** - * Must be greater than 0. - * - * Generated from protobuf field double width = 2; - */ - protected $width = 0.0; - /** - * Lower bound of the first bucket. - * - * Generated from protobuf field double offset = 3; - */ - protected $offset = 0.0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $num_finite_buckets - * Must be greater than 0. - * @type float $width - * Must be greater than 0. - * @type float $offset - * Lower bound of the first bucket. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Distribution::initOnce(); - parent::__construct($data); - } - - /** - * Must be greater than 0. - * - * Generated from protobuf field int32 num_finite_buckets = 1; - * @return int - */ - public function getNumFiniteBuckets() - { - return $this->num_finite_buckets; - } - - /** - * Must be greater than 0. - * - * Generated from protobuf field int32 num_finite_buckets = 1; - * @param int $var - * @return $this - */ - public function setNumFiniteBuckets($var) - { - GPBUtil::checkInt32($var); - $this->num_finite_buckets = $var; - - return $this; - } - - /** - * Must be greater than 0. - * - * Generated from protobuf field double width = 2; - * @return float - */ - public function getWidth() - { - return $this->width; - } - - /** - * Must be greater than 0. - * - * Generated from protobuf field double width = 2; - * @param float $var - * @return $this - */ - public function setWidth($var) - { - GPBUtil::checkDouble($var); - $this->width = $var; - - return $this; - } - - /** - * Lower bound of the first bucket. - * - * Generated from protobuf field double offset = 3; - * @return float - */ - public function getOffset() - { - return $this->offset; - } - - /** - * Lower bound of the first bucket. - * - * Generated from protobuf field double offset = 3; - * @param float $var - * @return $this - */ - public function setOffset($var) - { - GPBUtil::checkDouble($var); - $this->offset = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/Exemplar.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/Exemplar.php deleted file mode 100644 index 4c28e48e173f..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/Exemplar.php +++ /dev/null @@ -1,177 +0,0 @@ -google.api.Distribution.Exemplar - */ -class Exemplar extends \Google\Protobuf\Internal\Message -{ - /** - * Value of the exemplar point. This value determines to which bucket the - * exemplar belongs. - * - * Generated from protobuf field double value = 1; - */ - protected $value = 0.0; - /** - * The observation (sampling) time of the above value. - * - * Generated from protobuf field .google.protobuf.Timestamp timestamp = 2; - */ - protected $timestamp = null; - /** - * Contextual information about the example value. Examples are: - * Trace: type.googleapis.com/google.monitoring.v3.SpanContext - * Literal string: type.googleapis.com/google.protobuf.StringValue - * Labels dropped during aggregation: - * type.googleapis.com/google.monitoring.v3.DroppedLabels - * There may be only a single attachment of any given message type in a - * single exemplar, and this is enforced by the system. - * - * Generated from protobuf field repeated .google.protobuf.Any attachments = 3; - */ - private $attachments; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type float $value - * Value of the exemplar point. This value determines to which bucket the - * exemplar belongs. - * @type \Google\Protobuf\Timestamp $timestamp - * The observation (sampling) time of the above value. - * @type \Google\Protobuf\Any[] $attachments - * Contextual information about the example value. Examples are: - * Trace: type.googleapis.com/google.monitoring.v3.SpanContext - * Literal string: type.googleapis.com/google.protobuf.StringValue - * Labels dropped during aggregation: - * type.googleapis.com/google.monitoring.v3.DroppedLabels - * There may be only a single attachment of any given message type in a - * single exemplar, and this is enforced by the system. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Distribution::initOnce(); - parent::__construct($data); - } - - /** - * Value of the exemplar point. This value determines to which bucket the - * exemplar belongs. - * - * Generated from protobuf field double value = 1; - * @return float - */ - public function getValue() - { - return $this->value; - } - - /** - * Value of the exemplar point. This value determines to which bucket the - * exemplar belongs. - * - * Generated from protobuf field double value = 1; - * @param float $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkDouble($var); - $this->value = $var; - - return $this; - } - - /** - * The observation (sampling) time of the above value. - * - * Generated from protobuf field .google.protobuf.Timestamp timestamp = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getTimestamp() - { - return $this->timestamp; - } - - public function hasTimestamp() - { - return isset($this->timestamp); - } - - public function clearTimestamp() - { - unset($this->timestamp); - } - - /** - * The observation (sampling) time of the above value. - * - * Generated from protobuf field .google.protobuf.Timestamp timestamp = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setTimestamp($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->timestamp = $var; - - return $this; - } - - /** - * Contextual information about the example value. Examples are: - * Trace: type.googleapis.com/google.monitoring.v3.SpanContext - * Literal string: type.googleapis.com/google.protobuf.StringValue - * Labels dropped during aggregation: - * type.googleapis.com/google.monitoring.v3.DroppedLabels - * There may be only a single attachment of any given message type in a - * single exemplar, and this is enforced by the system. - * - * Generated from protobuf field repeated .google.protobuf.Any attachments = 3; - * @return RepeatedField<\Google\Protobuf\Any> - */ - public function getAttachments() - { - return $this->attachments; - } - - /** - * Contextual information about the example value. Examples are: - * Trace: type.googleapis.com/google.monitoring.v3.SpanContext - * Literal string: type.googleapis.com/google.protobuf.StringValue - * Labels dropped during aggregation: - * type.googleapis.com/google.monitoring.v3.DroppedLabels - * There may be only a single attachment of any given message type in a - * single exemplar, and this is enforced by the system. - * - * Generated from protobuf field repeated .google.protobuf.Any attachments = 3; - * @param \Google\Protobuf\Any[] $var - * @return $this - */ - public function setAttachments($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Any::class); - $this->attachments = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/Range.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/Range.php deleted file mode 100644 index 7446a794ed9f..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Distribution/Range.php +++ /dev/null @@ -1,101 +0,0 @@ -google.api.Distribution.Range - */ -class Range extends \Google\Protobuf\Internal\Message -{ - /** - * The minimum of the population values. - * - * Generated from protobuf field double min = 1; - */ - protected $min = 0.0; - /** - * The maximum of the population values. - * - * Generated from protobuf field double max = 2; - */ - protected $max = 0.0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type float $min - * The minimum of the population values. - * @type float $max - * The maximum of the population values. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Distribution::initOnce(); - parent::__construct($data); - } - - /** - * The minimum of the population values. - * - * Generated from protobuf field double min = 1; - * @return float - */ - public function getMin() - { - return $this->min; - } - - /** - * The minimum of the population values. - * - * Generated from protobuf field double min = 1; - * @param float $var - * @return $this - */ - public function setMin($var) - { - GPBUtil::checkDouble($var); - $this->min = $var; - - return $this; - } - - /** - * The maximum of the population values. - * - * Generated from protobuf field double max = 2; - * @return float - */ - public function getMax() - { - return $this->max; - } - - /** - * The maximum of the population values. - * - * Generated from protobuf field double max = 2; - * @param float $var - * @return $this - */ - public function setMax($var) - { - GPBUtil::checkDouble($var); - $this->max = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Documentation.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Documentation.php deleted file mode 100644 index 6d84f784c333..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Documentation.php +++ /dev/null @@ -1,362 +0,0 @@ -documentation: - * summary: > - * The Google Calendar API gives access - * to most calendar features. - * pages: - * - name: Overview - * content: (== include google/foo/overview.md ==) - * - name: Tutorial - * content: (== include google/foo/tutorial.md ==) - * subpages: - * - name: Java - * content: (== include google/foo/tutorial_java.md ==) - * rules: - * - selector: google.calendar.Calendar.Get - * description: > - * ... - * - selector: google.calendar.Calendar.Put - * description: > - * ... - * - * Documentation is provided in markdown syntax. In addition to - * standard markdown features, definition lists, tables and fenced - * code blocks are supported. Section headers can be provided and are - * interpreted relative to the section nesting of the context where - * a documentation fragment is embedded. - * Documentation from the IDL is merged with documentation defined - * via the config at normalization time, where documentation provided - * by config rules overrides IDL provided. - * A number of constructs specific to the API platform are supported - * in documentation text. - * In order to reference a proto element, the following - * notation can be used: - *
[fully.qualified.proto.name][]
- * To override the display text used for the link, this can be used: - *
[display text][fully.qualified.proto.name]
- * Text can be excluded from doc using the following notation: - *
(-- internal comment --)
- * A few directives are available in documentation. Note that - * directives must appear on a single line to be properly - * identified. The `include` directive includes a markdown file from - * an external source: - *
(== include path/to/file ==)
- * The `resource_for` directive marks a message to be the resource of - * a collection in REST view. If it is not specified, tools attempt - * to infer the resource from the operations in a collection: - *
(== resource_for v1.shelves.books ==)
- * The directive `suppress_warning` does not directly affect documentation - * and is documented together with service config validation. - * - * Generated from protobuf message google.api.Documentation - */ -class Documentation extends \Google\Protobuf\Internal\Message -{ - /** - * A short description of what the service does. The summary must be plain - * text. It becomes the overview of the service displayed in Google Cloud - * Console. - * NOTE: This field is equivalent to the standard field `description`. - * - * Generated from protobuf field string summary = 1; - */ - protected $summary = ''; - /** - * The top level pages for the documentation set. - * - * Generated from protobuf field repeated .google.api.Page pages = 5; - */ - private $pages; - /** - * A list of documentation rules that apply to individual API elements. - * **NOTE:** All service configuration rules follow "last one wins" order. - * - * Generated from protobuf field repeated .google.api.DocumentationRule rules = 3; - */ - private $rules; - /** - * The URL to the root of documentation. - * - * Generated from protobuf field string documentation_root_url = 4; - */ - protected $documentation_root_url = ''; - /** - * Specifies the service root url if the default one (the service name - * from the yaml file) is not suitable. This can be seen in any fully - * specified service urls as well as sections that show a base that other - * urls are relative to. - * - * Generated from protobuf field string service_root_url = 6; - */ - protected $service_root_url = ''; - /** - * Declares a single overview page. For example: - *
documentation:
-     *   summary: ...
-     *   overview: (== include overview.md ==)
-     * 
- * This is a shortcut for the following declaration (using pages style): - *
documentation:
-     *   summary: ...
-     *   pages:
-     *   - name: Overview
-     *     content: (== include overview.md ==)
-     * 
- * Note: you cannot specify both `overview` field and `pages` field. - * - * Generated from protobuf field string overview = 2; - */ - protected $overview = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $summary - * A short description of what the service does. The summary must be plain - * text. It becomes the overview of the service displayed in Google Cloud - * Console. - * NOTE: This field is equivalent to the standard field `description`. - * @type \Google\Api\Page[] $pages - * The top level pages for the documentation set. - * @type \Google\Api\DocumentationRule[] $rules - * A list of documentation rules that apply to individual API elements. - * **NOTE:** All service configuration rules follow "last one wins" order. - * @type string $documentation_root_url - * The URL to the root of documentation. - * @type string $service_root_url - * Specifies the service root url if the default one (the service name - * from the yaml file) is not suitable. This can be seen in any fully - * specified service urls as well as sections that show a base that other - * urls are relative to. - * @type string $overview - * Declares a single overview page. For example: - *
documentation:
-     *             summary: ...
-     *             overview: (== include overview.md ==)
-     *           
- * This is a shortcut for the following declaration (using pages style): - *
documentation:
-     *             summary: ...
-     *             pages:
-     *             - name: Overview
-     *               content: (== include overview.md ==)
-     *           
- * Note: you cannot specify both `overview` field and `pages` field. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Documentation::initOnce(); - parent::__construct($data); - } - - /** - * A short description of what the service does. The summary must be plain - * text. It becomes the overview of the service displayed in Google Cloud - * Console. - * NOTE: This field is equivalent to the standard field `description`. - * - * Generated from protobuf field string summary = 1; - * @return string - */ - public function getSummary() - { - return $this->summary; - } - - /** - * A short description of what the service does. The summary must be plain - * text. It becomes the overview of the service displayed in Google Cloud - * Console. - * NOTE: This field is equivalent to the standard field `description`. - * - * Generated from protobuf field string summary = 1; - * @param string $var - * @return $this - */ - public function setSummary($var) - { - GPBUtil::checkString($var, True); - $this->summary = $var; - - return $this; - } - - /** - * The top level pages for the documentation set. - * - * Generated from protobuf field repeated .google.api.Page pages = 5; - * @return RepeatedField<\Google\Api\Page> - */ - public function getPages() - { - return $this->pages; - } - - /** - * The top level pages for the documentation set. - * - * Generated from protobuf field repeated .google.api.Page pages = 5; - * @param \Google\Api\Page[] $var - * @return $this - */ - public function setPages($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\Page::class); - $this->pages = $arr; - - return $this; - } - - /** - * A list of documentation rules that apply to individual API elements. - * **NOTE:** All service configuration rules follow "last one wins" order. - * - * Generated from protobuf field repeated .google.api.DocumentationRule rules = 3; - * @return RepeatedField<\Google\Api\DocumentationRule> - */ - public function getRules() - { - return $this->rules; - } - - /** - * A list of documentation rules that apply to individual API elements. - * **NOTE:** All service configuration rules follow "last one wins" order. - * - * Generated from protobuf field repeated .google.api.DocumentationRule rules = 3; - * @param \Google\Api\DocumentationRule[] $var - * @return $this - */ - public function setRules($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\DocumentationRule::class); - $this->rules = $arr; - - return $this; - } - - /** - * The URL to the root of documentation. - * - * Generated from protobuf field string documentation_root_url = 4; - * @return string - */ - public function getDocumentationRootUrl() - { - return $this->documentation_root_url; - } - - /** - * The URL to the root of documentation. - * - * Generated from protobuf field string documentation_root_url = 4; - * @param string $var - * @return $this - */ - public function setDocumentationRootUrl($var) - { - GPBUtil::checkString($var, True); - $this->documentation_root_url = $var; - - return $this; - } - - /** - * Specifies the service root url if the default one (the service name - * from the yaml file) is not suitable. This can be seen in any fully - * specified service urls as well as sections that show a base that other - * urls are relative to. - * - * Generated from protobuf field string service_root_url = 6; - * @return string - */ - public function getServiceRootUrl() - { - return $this->service_root_url; - } - - /** - * Specifies the service root url if the default one (the service name - * from the yaml file) is not suitable. This can be seen in any fully - * specified service urls as well as sections that show a base that other - * urls are relative to. - * - * Generated from protobuf field string service_root_url = 6; - * @param string $var - * @return $this - */ - public function setServiceRootUrl($var) - { - GPBUtil::checkString($var, True); - $this->service_root_url = $var; - - return $this; - } - - /** - * Declares a single overview page. For example: - *
documentation:
-     *   summary: ...
-     *   overview: (== include overview.md ==)
-     * 
- * This is a shortcut for the following declaration (using pages style): - *
documentation:
-     *   summary: ...
-     *   pages:
-     *   - name: Overview
-     *     content: (== include overview.md ==)
-     * 
- * Note: you cannot specify both `overview` field and `pages` field. - * - * Generated from protobuf field string overview = 2; - * @return string - */ - public function getOverview() - { - return $this->overview; - } - - /** - * Declares a single overview page. For example: - *
documentation:
-     *   summary: ...
-     *   overview: (== include overview.md ==)
-     * 
- * This is a shortcut for the following declaration (using pages style): - *
documentation:
-     *   summary: ...
-     *   pages:
-     *   - name: Overview
-     *     content: (== include overview.md ==)
-     * 
- * Note: you cannot specify both `overview` field and `pages` field. - * - * Generated from protobuf field string overview = 2; - * @param string $var - * @return $this - */ - public function setOverview($var) - { - GPBUtil::checkString($var, True); - $this->overview = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/DocumentationRule.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/DocumentationRule.php deleted file mode 100644 index d6c654532551..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/DocumentationRule.php +++ /dev/null @@ -1,171 +0,0 @@ -google.api.DocumentationRule - */ -class DocumentationRule extends \Google\Protobuf\Internal\Message -{ - /** - * The selector is a comma-separated list of patterns for any element such as - * a method, a field, an enum value. Each pattern is a qualified name of the - * element which may end in "*", indicating a wildcard. Wildcards are only - * allowed at the end and for a whole component of the qualified name, - * i.e. "foo.*" is ok, but not "foo.b*" or "foo.*.bar". A wildcard will match - * one or more components. To specify a default for all applicable elements, - * the whole pattern "*" is used. - * - * Generated from protobuf field string selector = 1; - */ - protected $selector = ''; - /** - * Description of the selected proto element (e.g. a message, a method, a - * 'service' definition, or a field). Defaults to leading & trailing comments - * taken from the proto source definition of the proto element. - * - * Generated from protobuf field string description = 2; - */ - protected $description = ''; - /** - * Deprecation description of the selected element(s). It can be provided if - * an element is marked as `deprecated`. - * - * Generated from protobuf field string deprecation_description = 3; - */ - protected $deprecation_description = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $selector - * The selector is a comma-separated list of patterns for any element such as - * a method, a field, an enum value. Each pattern is a qualified name of the - * element which may end in "*", indicating a wildcard. Wildcards are only - * allowed at the end and for a whole component of the qualified name, - * i.e. "foo.*" is ok, but not "foo.b*" or "foo.*.bar". A wildcard will match - * one or more components. To specify a default for all applicable elements, - * the whole pattern "*" is used. - * @type string $description - * Description of the selected proto element (e.g. a message, a method, a - * 'service' definition, or a field). Defaults to leading & trailing comments - * taken from the proto source definition of the proto element. - * @type string $deprecation_description - * Deprecation description of the selected element(s). It can be provided if - * an element is marked as `deprecated`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Documentation::initOnce(); - parent::__construct($data); - } - - /** - * The selector is a comma-separated list of patterns for any element such as - * a method, a field, an enum value. Each pattern is a qualified name of the - * element which may end in "*", indicating a wildcard. Wildcards are only - * allowed at the end and for a whole component of the qualified name, - * i.e. "foo.*" is ok, but not "foo.b*" or "foo.*.bar". A wildcard will match - * one or more components. To specify a default for all applicable elements, - * the whole pattern "*" is used. - * - * Generated from protobuf field string selector = 1; - * @return string - */ - public function getSelector() - { - return $this->selector; - } - - /** - * The selector is a comma-separated list of patterns for any element such as - * a method, a field, an enum value. Each pattern is a qualified name of the - * element which may end in "*", indicating a wildcard. Wildcards are only - * allowed at the end and for a whole component of the qualified name, - * i.e. "foo.*" is ok, but not "foo.b*" or "foo.*.bar". A wildcard will match - * one or more components. To specify a default for all applicable elements, - * the whole pattern "*" is used. - * - * Generated from protobuf field string selector = 1; - * @param string $var - * @return $this - */ - public function setSelector($var) - { - GPBUtil::checkString($var, True); - $this->selector = $var; - - return $this; - } - - /** - * Description of the selected proto element (e.g. a message, a method, a - * 'service' definition, or a field). Defaults to leading & trailing comments - * taken from the proto source definition of the proto element. - * - * Generated from protobuf field string description = 2; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Description of the selected proto element (e.g. a message, a method, a - * 'service' definition, or a field). Defaults to leading & trailing comments - * taken from the proto source definition of the proto element. - * - * Generated from protobuf field string description = 2; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Deprecation description of the selected element(s). It can be provided if - * an element is marked as `deprecated`. - * - * Generated from protobuf field string deprecation_description = 3; - * @return string - */ - public function getDeprecationDescription() - { - return $this->deprecation_description; - } - - /** - * Deprecation description of the selected element(s). It can be provided if - * an element is marked as `deprecated`. - * - * Generated from protobuf field string deprecation_description = 3; - * @param string $var - * @return $this - */ - public function setDeprecationDescription($var) - { - GPBUtil::checkString($var, True); - $this->deprecation_description = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/DotnetSettings.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/DotnetSettings.php deleted file mode 100644 index 3f94ff3a94e5..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/DotnetSettings.php +++ /dev/null @@ -1,307 +0,0 @@ -google.api.DotnetSettings - */ -class DotnetSettings extends \Google\Protobuf\Internal\Message -{ - /** - * Some settings. - * - * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; - */ - protected $common = null; - /** - * Map from original service names to renamed versions. - * This is used when the default generated types - * would cause a naming conflict. (Neither name is - * fully-qualified.) - * Example: Subscriber to SubscriberServiceApi. - * - * Generated from protobuf field map renamed_services = 2; - */ - private $renamed_services; - /** - * Map from full resource types to the effective short name - * for the resource. This is used when otherwise resource - * named from different services would cause naming collisions. - * Example entry: - * "datalabeling.googleapis.com/Dataset": "DataLabelingDataset" - * - * Generated from protobuf field map renamed_resources = 3; - */ - private $renamed_resources; - /** - * List of full resource types to ignore during generation. - * This is typically used for API-specific Location resources, - * which should be handled by the generator as if they were actually - * the common Location resources. - * Example entry: "documentai.googleapis.com/Location" - * - * Generated from protobuf field repeated string ignored_resources = 4; - */ - private $ignored_resources; - /** - * Namespaces which must be aliased in snippets due to - * a known (but non-generator-predictable) naming collision - * - * Generated from protobuf field repeated string forced_namespace_aliases = 5; - */ - private $forced_namespace_aliases; - /** - * Method signatures (in the form "service.method(signature)") - * which are provided separately, so shouldn't be generated. - * Snippets *calling* these methods are still generated, however. - * - * Generated from protobuf field repeated string handwritten_signatures = 6; - */ - private $handwritten_signatures; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Api\CommonLanguageSettings $common - * Some settings. - * @type array|\Google\Protobuf\Internal\MapField $renamed_services - * Map from original service names to renamed versions. - * This is used when the default generated types - * would cause a naming conflict. (Neither name is - * fully-qualified.) - * Example: Subscriber to SubscriberServiceApi. - * @type array|\Google\Protobuf\Internal\MapField $renamed_resources - * Map from full resource types to the effective short name - * for the resource. This is used when otherwise resource - * named from different services would cause naming collisions. - * Example entry: - * "datalabeling.googleapis.com/Dataset": "DataLabelingDataset" - * @type string[] $ignored_resources - * List of full resource types to ignore during generation. - * This is typically used for API-specific Location resources, - * which should be handled by the generator as if they were actually - * the common Location resources. - * Example entry: "documentai.googleapis.com/Location" - * @type string[] $forced_namespace_aliases - * Namespaces which must be aliased in snippets due to - * a known (but non-generator-predictable) naming collision - * @type string[] $handwritten_signatures - * Method signatures (in the form "service.method(signature)") - * which are provided separately, so shouldn't be generated. - * Snippets *calling* these methods are still generated, however. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Client::initOnce(); - parent::__construct($data); - } - - /** - * Some settings. - * - * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; - * @return \Google\Api\CommonLanguageSettings|null - */ - public function getCommon() - { - return $this->common; - } - - public function hasCommon() - { - return isset($this->common); - } - - public function clearCommon() - { - unset($this->common); - } - - /** - * Some settings. - * - * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; - * @param \Google\Api\CommonLanguageSettings $var - * @return $this - */ - public function setCommon($var) - { - GPBUtil::checkMessage($var, \Google\Api\CommonLanguageSettings::class); - $this->common = $var; - - return $this; - } - - /** - * Map from original service names to renamed versions. - * This is used when the default generated types - * would cause a naming conflict. (Neither name is - * fully-qualified.) - * Example: Subscriber to SubscriberServiceApi. - * - * Generated from protobuf field map renamed_services = 2; - * @return \Google\Protobuf\Internal\MapField - */ - public function getRenamedServices() - { - return $this->renamed_services; - } - - /** - * Map from original service names to renamed versions. - * This is used when the default generated types - * would cause a naming conflict. (Neither name is - * fully-qualified.) - * Example: Subscriber to SubscriberServiceApi. - * - * Generated from protobuf field map renamed_services = 2; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setRenamedServices($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->renamed_services = $arr; - - return $this; - } - - /** - * Map from full resource types to the effective short name - * for the resource. This is used when otherwise resource - * named from different services would cause naming collisions. - * Example entry: - * "datalabeling.googleapis.com/Dataset": "DataLabelingDataset" - * - * Generated from protobuf field map renamed_resources = 3; - * @return \Google\Protobuf\Internal\MapField - */ - public function getRenamedResources() - { - return $this->renamed_resources; - } - - /** - * Map from full resource types to the effective short name - * for the resource. This is used when otherwise resource - * named from different services would cause naming collisions. - * Example entry: - * "datalabeling.googleapis.com/Dataset": "DataLabelingDataset" - * - * Generated from protobuf field map renamed_resources = 3; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setRenamedResources($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->renamed_resources = $arr; - - return $this; - } - - /** - * List of full resource types to ignore during generation. - * This is typically used for API-specific Location resources, - * which should be handled by the generator as if they were actually - * the common Location resources. - * Example entry: "documentai.googleapis.com/Location" - * - * Generated from protobuf field repeated string ignored_resources = 4; - * @return RepeatedField - */ - public function getIgnoredResources() - { - return $this->ignored_resources; - } - - /** - * List of full resource types to ignore during generation. - * This is typically used for API-specific Location resources, - * which should be handled by the generator as if they were actually - * the common Location resources. - * Example entry: "documentai.googleapis.com/Location" - * - * Generated from protobuf field repeated string ignored_resources = 4; - * @param string[] $var - * @return $this - */ - public function setIgnoredResources($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->ignored_resources = $arr; - - return $this; - } - - /** - * Namespaces which must be aliased in snippets due to - * a known (but non-generator-predictable) naming collision - * - * Generated from protobuf field repeated string forced_namespace_aliases = 5; - * @return RepeatedField - */ - public function getForcedNamespaceAliases() - { - return $this->forced_namespace_aliases; - } - - /** - * Namespaces which must be aliased in snippets due to - * a known (but non-generator-predictable) naming collision - * - * Generated from protobuf field repeated string forced_namespace_aliases = 5; - * @param string[] $var - * @return $this - */ - public function setForcedNamespaceAliases($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->forced_namespace_aliases = $arr; - - return $this; - } - - /** - * Method signatures (in the form "service.method(signature)") - * which are provided separately, so shouldn't be generated. - * Snippets *calling* these methods are still generated, however. - * - * Generated from protobuf field repeated string handwritten_signatures = 6; - * @return RepeatedField - */ - public function getHandwrittenSignatures() - { - return $this->handwritten_signatures; - } - - /** - * Method signatures (in the form "service.method(signature)") - * which are provided separately, so shouldn't be generated. - * Snippets *calling* these methods are still generated, however. - * - * Generated from protobuf field repeated string handwritten_signatures = 6; - * @param string[] $var - * @return $this - */ - public function setHandwrittenSignatures($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->handwritten_signatures = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Endpoint.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Endpoint.php deleted file mode 100644 index 694c63a577b4..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Endpoint.php +++ /dev/null @@ -1,231 +0,0 @@ -google.api.Endpoint - */ -class Endpoint extends \Google\Protobuf\Internal\Message -{ - /** - * The canonical name of this endpoint. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Aliases for this endpoint, these will be served by the same UrlMap as the - * parent endpoint, and will be provisioned in the GCP stack for the Regional - * Endpoints. - * - * Generated from protobuf field repeated string aliases = 2; - */ - private $aliases; - /** - * The specification of an Internet routable address of API frontend that will - * handle requests to this [API - * Endpoint](https://cloud.google.com/apis/design/glossary). It should be - * either a valid IPv4 address or a fully-qualified domain name. For example, - * "8.8.8.8" or "myservice.appspot.com". - * - * Generated from protobuf field string target = 101; - */ - protected $target = ''; - /** - * Allowing - * [CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing), aka - * cross-domain traffic, would allow the backends served from this endpoint to - * receive and respond to HTTP OPTIONS requests. The response will be used by - * the browser to determine whether the subsequent cross-origin request is - * allowed to proceed. - * - * Generated from protobuf field bool allow_cors = 5; - */ - protected $allow_cors = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The canonical name of this endpoint. - * @type string[] $aliases - * Aliases for this endpoint, these will be served by the same UrlMap as the - * parent endpoint, and will be provisioned in the GCP stack for the Regional - * Endpoints. - * @type string $target - * The specification of an Internet routable address of API frontend that will - * handle requests to this [API - * Endpoint](https://cloud.google.com/apis/design/glossary). It should be - * either a valid IPv4 address or a fully-qualified domain name. For example, - * "8.8.8.8" or "myservice.appspot.com". - * @type bool $allow_cors - * Allowing - * [CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing), aka - * cross-domain traffic, would allow the backends served from this endpoint to - * receive and respond to HTTP OPTIONS requests. The response will be used by - * the browser to determine whether the subsequent cross-origin request is - * allowed to proceed. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Endpoint::initOnce(); - parent::__construct($data); - } - - /** - * The canonical name of this endpoint. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The canonical name of this endpoint. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Aliases for this endpoint, these will be served by the same UrlMap as the - * parent endpoint, and will be provisioned in the GCP stack for the Regional - * Endpoints. - * - * Generated from protobuf field repeated string aliases = 2; - * @return RepeatedField - */ - public function getAliases() - { - return $this->aliases; - } - - /** - * Aliases for this endpoint, these will be served by the same UrlMap as the - * parent endpoint, and will be provisioned in the GCP stack for the Regional - * Endpoints. - * - * Generated from protobuf field repeated string aliases = 2; - * @param string[] $var - * @return $this - */ - public function setAliases($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->aliases = $arr; - - return $this; - } - - /** - * The specification of an Internet routable address of API frontend that will - * handle requests to this [API - * Endpoint](https://cloud.google.com/apis/design/glossary). It should be - * either a valid IPv4 address or a fully-qualified domain name. For example, - * "8.8.8.8" or "myservice.appspot.com". - * - * Generated from protobuf field string target = 101; - * @return string - */ - public function getTarget() - { - return $this->target; - } - - /** - * The specification of an Internet routable address of API frontend that will - * handle requests to this [API - * Endpoint](https://cloud.google.com/apis/design/glossary). It should be - * either a valid IPv4 address or a fully-qualified domain name. For example, - * "8.8.8.8" or "myservice.appspot.com". - * - * Generated from protobuf field string target = 101; - * @param string $var - * @return $this - */ - public function setTarget($var) - { - GPBUtil::checkString($var, True); - $this->target = $var; - - return $this; - } - - /** - * Allowing - * [CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing), aka - * cross-domain traffic, would allow the backends served from this endpoint to - * receive and respond to HTTP OPTIONS requests. The response will be used by - * the browser to determine whether the subsequent cross-origin request is - * allowed to proceed. - * - * Generated from protobuf field bool allow_cors = 5; - * @return bool - */ - public function getAllowCors() - { - return $this->allow_cors; - } - - /** - * Allowing - * [CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing), aka - * cross-domain traffic, would allow the backends served from this endpoint to - * receive and respond to HTTP OPTIONS requests. The response will be used by - * the browser to determine whether the subsequent cross-origin request is - * allowed to proceed. - * - * Generated from protobuf field bool allow_cors = 5; - * @param bool $var - * @return $this - */ - public function setAllowCors($var) - { - GPBUtil::checkBool($var); - $this->allow_cors = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ErrorReason.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ErrorReason.php deleted file mode 100644 index 5457fb4ca9bf..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ErrorReason.php +++ /dev/null @@ -1,895 +0,0 @@ -google.api.ErrorReason - */ -class ErrorReason -{ - /** - * Do not use this default value. - * - * Generated from protobuf enum ERROR_REASON_UNSPECIFIED = 0; - */ - const ERROR_REASON_UNSPECIFIED = 0; - /** - * The request is calling a disabled service for a consumer. - * Example of an ErrorInfo when the consumer "projects/123" contacting - * "pubsub.googleapis.com" service which is disabled: - * { "reason": "SERVICE_DISABLED", - * "domain": "googleapis.com", - * "metadata": { - * "consumer": "projects/123", - * "service": "pubsub.googleapis.com" - * } - * } - * This response indicates the "pubsub.googleapis.com" has been disabled in - * "projects/123". - * - * Generated from protobuf enum SERVICE_DISABLED = 1; - */ - const SERVICE_DISABLED = 1; - /** - * The request whose associated billing account is disabled. - * Example of an ErrorInfo when the consumer "projects/123" fails to contact - * "pubsub.googleapis.com" service because the associated billing account is - * disabled: - * { "reason": "BILLING_DISABLED", - * "domain": "googleapis.com", - * "metadata": { - * "consumer": "projects/123", - * "service": "pubsub.googleapis.com" - * } - * } - * This response indicates the billing account associated has been disabled. - * - * Generated from protobuf enum BILLING_DISABLED = 2; - */ - const BILLING_DISABLED = 2; - /** - * The request is denied because the provided [API - * key](https://cloud.google.com/docs/authentication/api-keys) is invalid. It - * may be in a bad format, cannot be found, or has been expired). - * Example of an ErrorInfo when the request is contacting - * "storage.googleapis.com" service with an invalid API key: - * { "reason": "API_KEY_INVALID", - * "domain": "googleapis.com", - * "metadata": { - * "service": "storage.googleapis.com", - * } - * } - * - * Generated from protobuf enum API_KEY_INVALID = 3; - */ - const API_KEY_INVALID = 3; - /** - * The request is denied because it violates [API key API - * restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_api_restrictions). - * Example of an ErrorInfo when the consumer "projects/123" fails to call the - * "storage.googleapis.com" service because this service is restricted in the - * API key: - * { "reason": "API_KEY_SERVICE_BLOCKED", - * "domain": "googleapis.com", - * "metadata": { - * "consumer": "projects/123", - * "service": "storage.googleapis.com" - * } - * } - * - * Generated from protobuf enum API_KEY_SERVICE_BLOCKED = 4; - */ - const API_KEY_SERVICE_BLOCKED = 4; - /** - * The request is denied because it violates [API key HTTP - * restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_http_restrictions). - * Example of an ErrorInfo when the consumer "projects/123" fails to call - * "storage.googleapis.com" service because the http referrer of the request - * violates API key HTTP restrictions: - * { "reason": "API_KEY_HTTP_REFERRER_BLOCKED", - * "domain": "googleapis.com", - * "metadata": { - * "consumer": "projects/123", - * "service": "storage.googleapis.com", - * } - * } - * - * Generated from protobuf enum API_KEY_HTTP_REFERRER_BLOCKED = 7; - */ - const API_KEY_HTTP_REFERRER_BLOCKED = 7; - /** - * The request is denied because it violates [API key IP address - * restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_application_restrictions). - * Example of an ErrorInfo when the consumer "projects/123" fails to call - * "storage.googleapis.com" service because the caller IP of the request - * violates API key IP address restrictions: - * { "reason": "API_KEY_IP_ADDRESS_BLOCKED", - * "domain": "googleapis.com", - * "metadata": { - * "consumer": "projects/123", - * "service": "storage.googleapis.com", - * } - * } - * - * Generated from protobuf enum API_KEY_IP_ADDRESS_BLOCKED = 8; - */ - const API_KEY_IP_ADDRESS_BLOCKED = 8; - /** - * The request is denied because it violates [API key Android application - * restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_application_restrictions). - * Example of an ErrorInfo when the consumer "projects/123" fails to call - * "storage.googleapis.com" service because the request from the Android apps - * violates the API key Android application restrictions: - * { "reason": "API_KEY_ANDROID_APP_BLOCKED", - * "domain": "googleapis.com", - * "metadata": { - * "consumer": "projects/123", - * "service": "storage.googleapis.com" - * } - * } - * - * Generated from protobuf enum API_KEY_ANDROID_APP_BLOCKED = 9; - */ - const API_KEY_ANDROID_APP_BLOCKED = 9; - /** - * The request is denied because it violates [API key iOS application - * restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_application_restrictions). - * Example of an ErrorInfo when the consumer "projects/123" fails to call - * "storage.googleapis.com" service because the request from the iOS apps - * violates the API key iOS application restrictions: - * { "reason": "API_KEY_IOS_APP_BLOCKED", - * "domain": "googleapis.com", - * "metadata": { - * "consumer": "projects/123", - * "service": "storage.googleapis.com" - * } - * } - * - * Generated from protobuf enum API_KEY_IOS_APP_BLOCKED = 13; - */ - const API_KEY_IOS_APP_BLOCKED = 13; - /** - * The request is denied because there is not enough rate quota for the - * consumer. - * Example of an ErrorInfo when the consumer "projects/123" fails to contact - * "pubsub.googleapis.com" service because consumer's rate quota usage has - * reached the maximum value set for the quota limit - * "ReadsPerMinutePerProject" on the quota metric - * "pubsub.googleapis.com/read_requests": - * { "reason": "RATE_LIMIT_EXCEEDED", - * "domain": "googleapis.com", - * "metadata": { - * "consumer": "projects/123", - * "service": "pubsub.googleapis.com", - * "quota_metric": "pubsub.googleapis.com/read_requests", - * "quota_limit": "ReadsPerMinutePerProject" - * } - * } - * Example of an ErrorInfo when the consumer "projects/123" checks quota on - * the service "dataflow.googleapis.com" and hits the organization quota - * limit "DefaultRequestsPerMinutePerOrganization" on the metric - * "dataflow.googleapis.com/default_requests". - * { "reason": "RATE_LIMIT_EXCEEDED", - * "domain": "googleapis.com", - * "metadata": { - * "consumer": "projects/123", - * "service": "dataflow.googleapis.com", - * "quota_metric": "dataflow.googleapis.com/default_requests", - * "quota_limit": "DefaultRequestsPerMinutePerOrganization" - * } - * } - * - * Generated from protobuf enum RATE_LIMIT_EXCEEDED = 5; - */ - const RATE_LIMIT_EXCEEDED = 5; - /** - * The request is denied because there is not enough resource quota for the - * consumer. - * Example of an ErrorInfo when the consumer "projects/123" fails to contact - * "compute.googleapis.com" service because consumer's resource quota usage - * has reached the maximum value set for the quota limit "VMsPerProject" - * on the quota metric "compute.googleapis.com/vms": - * { "reason": "RESOURCE_QUOTA_EXCEEDED", - * "domain": "googleapis.com", - * "metadata": { - * "consumer": "projects/123", - * "service": "compute.googleapis.com", - * "quota_metric": "compute.googleapis.com/vms", - * "quota_limit": "VMsPerProject" - * } - * } - * Example of an ErrorInfo when the consumer "projects/123" checks resource - * quota on the service "dataflow.googleapis.com" and hits the organization - * quota limit "jobs-per-organization" on the metric - * "dataflow.googleapis.com/job_count". - * { "reason": "RESOURCE_QUOTA_EXCEEDED", - * "domain": "googleapis.com", - * "metadata": { - * "consumer": "projects/123", - * "service": "dataflow.googleapis.com", - * "quota_metric": "dataflow.googleapis.com/job_count", - * "quota_limit": "jobs-per-organization" - * } - * } - * - * Generated from protobuf enum RESOURCE_QUOTA_EXCEEDED = 6; - */ - const RESOURCE_QUOTA_EXCEEDED = 6; - /** - * The request whose associated billing account address is in a tax restricted - * location, violates the local tax restrictions when creating resources in - * the restricted region. - * Example of an ErrorInfo when creating the Cloud Storage Bucket in the - * container "projects/123" under a tax restricted region - * "locations/asia-northeast3": - * { "reason": "LOCATION_TAX_POLICY_VIOLATED", - * "domain": "googleapis.com", - * "metadata": { - * "consumer": "projects/123", - * "service": "storage.googleapis.com", - * "location": "locations/asia-northeast3" - * } - * } - * This response indicates creating the Cloud Storage Bucket in - * "locations/asia-northeast3" violates the location tax restriction. - * - * Generated from protobuf enum LOCATION_TAX_POLICY_VIOLATED = 10; - */ - const LOCATION_TAX_POLICY_VIOLATED = 10; - /** - * The request is denied because the caller does not have required permission - * on the user project "projects/123" or the user project is invalid. For more - * information, check the [userProject System - * Parameters](https://cloud.google.com/apis/docs/system-parameters). - * Example of an ErrorInfo when the caller is calling Cloud Storage service - * with insufficient permissions on the user project: - * { "reason": "USER_PROJECT_DENIED", - * "domain": "googleapis.com", - * "metadata": { - * "consumer": "projects/123", - * "service": "storage.googleapis.com" - * } - * } - * - * Generated from protobuf enum USER_PROJECT_DENIED = 11; - */ - const USER_PROJECT_DENIED = 11; - /** - * The request is denied because the consumer "projects/123" is suspended due - * to Terms of Service(Tos) violations. Check [Project suspension - * guidelines](https://cloud.google.com/resource-manager/docs/project-suspension-guidelines) - * for more information. - * Example of an ErrorInfo when calling Cloud Storage service with the - * suspended consumer "projects/123": - * { "reason": "CONSUMER_SUSPENDED", - * "domain": "googleapis.com", - * "metadata": { - * "consumer": "projects/123", - * "service": "storage.googleapis.com" - * } - * } - * - * Generated from protobuf enum CONSUMER_SUSPENDED = 12; - */ - const CONSUMER_SUSPENDED = 12; - /** - * The request is denied because the associated consumer is invalid. It may be - * in a bad format, cannot be found, or have been deleted. - * Example of an ErrorInfo when calling Cloud Storage service with the - * invalid consumer "projects/123": - * { "reason": "CONSUMER_INVALID", - * "domain": "googleapis.com", - * "metadata": { - * "consumer": "projects/123", - * "service": "storage.googleapis.com" - * } - * } - * - * Generated from protobuf enum CONSUMER_INVALID = 14; - */ - const CONSUMER_INVALID = 14; - /** - * The request is denied because it violates [VPC Service - * Controls](https://cloud.google.com/vpc-service-controls/docs/overview). - * The 'uid' field is a random generated identifier that customer can use it - * to search the audit log for a request rejected by VPC Service Controls. For - * more information, please refer [VPC Service Controls - * Troubleshooting](https://cloud.google.com/vpc-service-controls/docs/troubleshooting#unique-id) - * Example of an ErrorInfo when the consumer "projects/123" fails to call - * Cloud Storage service because the request is prohibited by the VPC Service - * Controls. - * { "reason": "SECURITY_POLICY_VIOLATED", - * "domain": "googleapis.com", - * "metadata": { - * "uid": "123456789abcde", - * "consumer": "projects/123", - * "service": "storage.googleapis.com" - * } - * } - * - * Generated from protobuf enum SECURITY_POLICY_VIOLATED = 15; - */ - const SECURITY_POLICY_VIOLATED = 15; - /** - * The request is denied because the provided access token has expired. - * Example of an ErrorInfo when the request is calling Cloud Storage service - * with an expired access token: - * { "reason": "ACCESS_TOKEN_EXPIRED", - * "domain": "googleapis.com", - * "metadata": { - * "service": "storage.googleapis.com", - * "method": "google.storage.v1.Storage.GetObject" - * } - * } - * - * Generated from protobuf enum ACCESS_TOKEN_EXPIRED = 16; - */ - const ACCESS_TOKEN_EXPIRED = 16; - /** - * The request is denied because the provided access token doesn't have at - * least one of the acceptable scopes required for the API. Please check - * [OAuth 2.0 Scopes for Google - * APIs](https://developers.google.com/identity/protocols/oauth2/scopes) for - * the list of the OAuth 2.0 scopes that you might need to request to access - * the API. - * Example of an ErrorInfo when the request is calling Cloud Storage service - * with an access token that is missing required scopes: - * { "reason": "ACCESS_TOKEN_SCOPE_INSUFFICIENT", - * "domain": "googleapis.com", - * "metadata": { - * "service": "storage.googleapis.com", - * "method": "google.storage.v1.Storage.GetObject" - * } - * } - * - * Generated from protobuf enum ACCESS_TOKEN_SCOPE_INSUFFICIENT = 17; - */ - const ACCESS_TOKEN_SCOPE_INSUFFICIENT = 17; - /** - * The request is denied because the account associated with the provided - * access token is in an invalid state, such as disabled or deleted. - * For more information, see https://cloud.google.com/docs/authentication. - * Warning: For privacy reasons, the server may not be able to disclose the - * email address for some accounts. The client MUST NOT depend on the - * availability of the `email` attribute. - * Example of an ErrorInfo when the request is to the Cloud Storage API with - * an access token that is associated with a disabled or deleted [service - * account](http://cloud/iam/docs/service-accounts): - * { "reason": "ACCOUNT_STATE_INVALID", - * "domain": "googleapis.com", - * "metadata": { - * "service": "storage.googleapis.com", - * "method": "google.storage.v1.Storage.GetObject", - * "email": "user\@123.iam.gserviceaccount.com" - * } - * } - * - * Generated from protobuf enum ACCOUNT_STATE_INVALID = 18; - */ - const ACCOUNT_STATE_INVALID = 18; - /** - * The request is denied because the type of the provided access token is not - * supported by the API being called. - * Example of an ErrorInfo when the request is to the Cloud Storage API with - * an unsupported token type. - * { "reason": "ACCESS_TOKEN_TYPE_UNSUPPORTED", - * "domain": "googleapis.com", - * "metadata": { - * "service": "storage.googleapis.com", - * "method": "google.storage.v1.Storage.GetObject" - * } - * } - * - * Generated from protobuf enum ACCESS_TOKEN_TYPE_UNSUPPORTED = 19; - */ - const ACCESS_TOKEN_TYPE_UNSUPPORTED = 19; - /** - * The request is denied because the request doesn't have any authentication - * credentials. For more information regarding the supported authentication - * strategies for Google Cloud APIs, see - * https://cloud.google.com/docs/authentication. - * Example of an ErrorInfo when the request is to the Cloud Storage API - * without any authentication credentials. - * { "reason": "CREDENTIALS_MISSING", - * "domain": "googleapis.com", - * "metadata": { - * "service": "storage.googleapis.com", - * "method": "google.storage.v1.Storage.GetObject" - * } - * } - * - * Generated from protobuf enum CREDENTIALS_MISSING = 20; - */ - const CREDENTIALS_MISSING = 20; - /** - * The request is denied because the provided project owning the resource - * which acts as the [API - * consumer](https://cloud.google.com/apis/design/glossary#api_consumer) is - * invalid. It may be in a bad format or empty. - * Example of an ErrorInfo when the request is to the Cloud Functions API, - * but the offered resource project in the request in a bad format which can't - * perform the ListFunctions method. - * { "reason": "RESOURCE_PROJECT_INVALID", - * "domain": "googleapis.com", - * "metadata": { - * "service": "cloudfunctions.googleapis.com", - * "method": - * "google.cloud.functions.v1.CloudFunctionsService.ListFunctions" - * } - * } - * - * Generated from protobuf enum RESOURCE_PROJECT_INVALID = 21; - */ - const RESOURCE_PROJECT_INVALID = 21; - /** - * The request is denied because the provided session cookie is missing, - * invalid or failed to decode. - * Example of an ErrorInfo when the request is calling Cloud Storage service - * with a SID cookie which can't be decoded. - * { "reason": "SESSION_COOKIE_INVALID", - * "domain": "googleapis.com", - * "metadata": { - * "service": "storage.googleapis.com", - * "method": "google.storage.v1.Storage.GetObject", - * "cookie": "SID" - * } - * } - * - * Generated from protobuf enum SESSION_COOKIE_INVALID = 23; - */ - const SESSION_COOKIE_INVALID = 23; - /** - * The request is denied because the user is from a Google Workspace customer - * that blocks their users from accessing a particular service. - * Example scenario: https://support.google.com/a/answer/9197205?hl=en - * Example of an ErrorInfo when access to Google Cloud Storage service is - * blocked by the Google Workspace administrator: - * { "reason": "USER_BLOCKED_BY_ADMIN", - * "domain": "googleapis.com", - * "metadata": { - * "service": "storage.googleapis.com", - * "method": "google.storage.v1.Storage.GetObject", - * } - * } - * - * Generated from protobuf enum USER_BLOCKED_BY_ADMIN = 24; - */ - const USER_BLOCKED_BY_ADMIN = 24; - /** - * The request is denied because the resource service usage is restricted - * by administrators according to the organization policy constraint. - * For more information see - * https://cloud.google.com/resource-manager/docs/organization-policy/restricting-services. - * Example of an ErrorInfo when access to Google Cloud Storage service is - * restricted by Resource Usage Restriction policy: - * { "reason": "RESOURCE_USAGE_RESTRICTION_VIOLATED", - * "domain": "googleapis.com", - * "metadata": { - * "consumer": "projects/project-123", - * "service": "storage.googleapis.com" - * } - * } - * - * Generated from protobuf enum RESOURCE_USAGE_RESTRICTION_VIOLATED = 25; - */ - const RESOURCE_USAGE_RESTRICTION_VIOLATED = 25; - /** - * Unimplemented. Do not use. - * The request is denied because it contains unsupported system parameters in - * URL query parameters or HTTP headers. For more information, - * see https://cloud.google.com/apis/docs/system-parameters - * Example of an ErrorInfo when access "pubsub.googleapis.com" service with - * a request header of "x-goog-user-ip": - * { "reason": "SYSTEM_PARAMETER_UNSUPPORTED", - * "domain": "googleapis.com", - * "metadata": { - * "service": "pubsub.googleapis.com" - * "parameter": "x-goog-user-ip" - * } - * } - * - * Generated from protobuf enum SYSTEM_PARAMETER_UNSUPPORTED = 26; - */ - const SYSTEM_PARAMETER_UNSUPPORTED = 26; - /** - * The request is denied because it violates Org Restriction: the requested - * resource does not belong to allowed organizations specified in - * "X-Goog-Allowed-Resources" header. - * Example of an ErrorInfo when accessing a GCP resource that is restricted by - * Org Restriction for "pubsub.googleapis.com" service. - * { - * reason: "ORG_RESTRICTION_VIOLATION" - * domain: "googleapis.com" - * metadata { - * "consumer":"projects/123456" - * "service": "pubsub.googleapis.com" - * } - * } - * - * Generated from protobuf enum ORG_RESTRICTION_VIOLATION = 27; - */ - const ORG_RESTRICTION_VIOLATION = 27; - /** - * The request is denied because "X-Goog-Allowed-Resources" header is in a bad - * format. - * Example of an ErrorInfo when - * accessing "pubsub.googleapis.com" service with an invalid - * "X-Goog-Allowed-Resources" request header. - * { - * reason: "ORG_RESTRICTION_HEADER_INVALID" - * domain: "googleapis.com" - * metadata { - * "consumer":"projects/123456" - * "service": "pubsub.googleapis.com" - * } - * } - * - * Generated from protobuf enum ORG_RESTRICTION_HEADER_INVALID = 28; - */ - const ORG_RESTRICTION_HEADER_INVALID = 28; - /** - * Unimplemented. Do not use. - * The request is calling a service that is not visible to the consumer. - * Example of an ErrorInfo when the consumer "projects/123" contacting - * "pubsub.googleapis.com" service which is not visible to the consumer. - * { "reason": "SERVICE_NOT_VISIBLE", - * "domain": "googleapis.com", - * "metadata": { - * "consumer": "projects/123", - * "service": "pubsub.googleapis.com" - * } - * } - * This response indicates the "pubsub.googleapis.com" is not visible to - * "projects/123" (or it may not exist). - * - * Generated from protobuf enum SERVICE_NOT_VISIBLE = 29; - */ - const SERVICE_NOT_VISIBLE = 29; - /** - * The request is related to a project for which GCP access is suspended. - * Example of an ErrorInfo when the consumer "projects/123" fails to contact - * "pubsub.googleapis.com" service because GCP access is suspended: - * { "reason": "GCP_SUSPENDED", - * "domain": "googleapis.com", - * "metadata": { - * "consumer": "projects/123", - * "service": "pubsub.googleapis.com" - * } - * } - * This response indicates the associated GCP account has been suspended. - * - * Generated from protobuf enum GCP_SUSPENDED = 30; - */ - const GCP_SUSPENDED = 30; - /** - * The request violates the location policies when creating resources in - * the restricted region. - * Example of an ErrorInfo when creating the Cloud Storage Bucket by - * "projects/123" for service storage.googleapis.com: - * { "reason": "LOCATION_POLICY_VIOLATED", - * "domain": "googleapis.com", - * "metadata": { - * "consumer": "projects/123", - * "service": "storage.googleapis.com", - * } - * } - * This response indicates creating the Cloud Storage Bucket in - * "locations/asia-northeast3" violates at least one location policy. - * The troubleshooting guidance is provided in the Help links. - * - * Generated from protobuf enum LOCATION_POLICY_VIOLATED = 31; - */ - const LOCATION_POLICY_VIOLATED = 31; - /** - * The request is denied because origin request header is missing. - * Example of an ErrorInfo when - * accessing "pubsub.googleapis.com" service with an empty "Origin" request - * header. - * { - * reason: "MISSING_ORIGIN" - * domain: "googleapis.com" - * metadata { - * "consumer":"projects/123456" - * "service": "pubsub.googleapis.com" - * } - * } - * - * Generated from protobuf enum MISSING_ORIGIN = 33; - */ - const MISSING_ORIGIN = 33; - /** - * The request is denied because the request contains more than one credential - * type that are individually acceptable, but not together. The customer - * should retry their request with only one set of credentials. - * Example of an ErrorInfo when - * accessing "pubsub.googleapis.com" service with overloaded credentials. - * { - * reason: "OVERLOADED_CREDENTIALS" - * domain: "googleapis.com" - * metadata { - * "consumer":"projects/123456" - * "service": "pubsub.googleapis.com" - * } - * } - * - * Generated from protobuf enum OVERLOADED_CREDENTIALS = 34; - */ - const OVERLOADED_CREDENTIALS = 34; - /** - * The request whose associated location violates the location org policy - * restrictions when creating resources in the restricted region. - * Example of an ErrorInfo when creating the Cloud Storage Bucket in the - * container "projects/123" under a restricted region - * "locations/asia-northeast3": - * { - * "reason": "LOCATION_ORG_POLICY_VIOLATED", - * "domain": "googleapis.com", - * "metadata": { - * "resource": "projects/123", - * "location": "locations/asia-northeast3" - * } - * } - * This response indicates creating the Cloud Storage Bucket in - * "locations/asia-northeast3" violates the location org policy restriction. - * - * Generated from protobuf enum LOCATION_ORG_POLICY_VIOLATED = 35; - */ - const LOCATION_ORG_POLICY_VIOLATED = 35; - /** - * The request is denied because it access data of regulated customers using - * TLS 1.0 and 1.1. - * Example of an ErrorInfo when accessing a GCP resource "projects/123" that - * is restricted by TLS Version Restriction for "pubsub.googleapis.com" - * service. - * { - * "reason": "TLS_ORG_POLICY_VIOLATED", - * "domain": "googleapis.com", - * "metadata": { - * "service": "pubsub.googleapis.com" - * "resource": "projects/123", - * "policyName": "constraints/gcp.restrictTLSVersion", - * "tlsVersion": "TLS_VERSION_1" - * } - * } - * - * Generated from protobuf enum TLS_ORG_POLICY_VIOLATED = 36; - */ - const TLS_ORG_POLICY_VIOLATED = 36; - /** - * The request is denied because the associated project has exceeded the - * emulator quota limit. - * Example of an ErrorInfo when the associated "projects/123" has exceeded the - * emulator quota limit. - * { - * "reason": "EMULATOR_QUOTA_EXCEEDED", - * "domain": "googleapis.com", - * "metadata": { - * "service": "pubsub.googleapis.com" - * "consumer": "projects/123" - * } - * } - * - * Generated from protobuf enum EMULATOR_QUOTA_EXCEEDED = 38; - */ - const EMULATOR_QUOTA_EXCEEDED = 38; - /** - * The request is denied because the associated application credential header - * is invalid for an Android applications. - * Example of an ErrorInfo when the request from an Android application to the - * "pubsub.googleapis.com" with an invalid application credential header. - * { - * "reason": "CREDENTIAL_ANDROID_APP_INVALID", - * "domain": "googleapis.com", - * "metadata": { - * "service": "pubsub.googleapis.com" - * } - * } - * - * Generated from protobuf enum CREDENTIAL_ANDROID_APP_INVALID = 39; - */ - const CREDENTIAL_ANDROID_APP_INVALID = 39; - /** - * The request is denied because IAM permission on resource is denied. - * Example of an ErrorInfo when the IAM permission `aiplatform.datasets.list` - * is denied on resource `projects/123`. - * { - * "reason": "IAM_PERMISSION_DENIED", - * "domain": "googleapis.com", - * "metadata": { - * "resource": "projects/123" - * "permission": "aiplatform.datasets.list" - * } - * } - * - * Generated from protobuf enum IAM_PERMISSION_DENIED = 41; - */ - const IAM_PERMISSION_DENIED = 41; - /** - * The request is denied because it contains the invalid JWT token. - * Example of an ErrorInfo when the request contains an invalid JWT token for - * service `storage.googleapis.com`. - * { - * "reason": "JWT_TOKEN_INVALID", - * "domain": "googleapis.com", - * "metadata": { - * "service": "storage.googleapis.com" - * } - * } - * - * Generated from protobuf enum JWT_TOKEN_INVALID = 42; - */ - const JWT_TOKEN_INVALID = 42; - /** - * The request is denied because it contains credential with type that is - * unsupported. - * Example of an ErrorInfo when the request contains an unsupported credential - * type for service `storage.googleapis.com`. - * { - * "reason": "CREDENTIAL_TYPE_UNSUPPORTED", - * "domain": "googleapis.com", - * "metadata": { - * "service": "storage.googleapis.com" - * } - * } - * - * Generated from protobuf enum CREDENTIAL_TYPE_UNSUPPORTED = 43; - */ - const CREDENTIAL_TYPE_UNSUPPORTED = 43; - /** - * The request is denied because it contains unsupported account type. - * Example of an ErrorInfo when the request contains an unsupported account - * type for service `storage.googleapis.com`. - * { - * "reason": "ACCOUNT_TYPE_UNSUPPORTED", - * "domain": "googleapis.com", - * "metadata": { - * "service": "storage.googleapis.com" - * } - * } - * - * Generated from protobuf enum ACCOUNT_TYPE_UNSUPPORTED = 44; - */ - const ACCOUNT_TYPE_UNSUPPORTED = 44; - /** - * The request is denied because the API endpoint is restricted by - * administrators according to the organization policy constraint. - * For more information see - * https://cloud.google.com/assured-workloads/docs/restrict-endpoint-usage. - * Example of an ErrorInfo when access to Google Cloud Storage service is - * restricted by Restrict Endpoint Usage policy: - * { - * "reason": "ENDPOINT_USAGE_RESTRICTION_VIOLATED", - * "domain": "googleapis.com/policies/endpointUsageRestriction", - * "metadata": { - * "policy_name": "constraints/gcp.restrictEndpointUsage", - * "checked_value": "storage.googleapis.com" - * "consumer": "organization/123" - * "service": "storage.googleapis.com" - * } - * } - * - * Generated from protobuf enum ENDPOINT_USAGE_RESTRICTION_VIOLATED = 45; - */ - const ENDPOINT_USAGE_RESTRICTION_VIOLATED = 45; - /** - * The request is denied because the TLS Cipher Suite is restricted by - * administrators according to the organization policy constraint. - * For more information see - * https://cloud.google.com/assured-workloads/docs/restrict-tls-cipher-suites - * Example of an ErrorInfo when access to Google Cloud BigQuery service is - * restricted by Restrict TLS Cipher Suites policy: - * { - * "reason": "TLS_CIPHER_RESTRICTION_VIOLATED", - * "domain": "googleapis.com/policies/tlsCipherRestriction", - * "metadata": { - * "policy_name": "constraints/gcp.restrictTLSCipherSuites", - * "checked_value": "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 - * "consumer": "organization/123" - * "service": "bigquery.googleapis.com" - * } - * } - * - * Generated from protobuf enum TLS_CIPHER_RESTRICTION_VIOLATED = 46; - */ - const TLS_CIPHER_RESTRICTION_VIOLATED = 46; - /** - * The request is denied because the MCP activation check fails. - * Example of an ErrorInfo when the container "projects/123" contacting - * "pubsub.googleapis.com" service which is disabled by MCP: - * { "reason": "MCP_SERVER_DISABLED", - * "domain": "googleapis.com", - * "metadata": { - * "consumer": "projects/123", - * "service": "pubsub.googleapis.com" - * } - * } - * This response indicates the "pubsub.googleapis.com" has been disabled in - * "projects/123" for MCP. - * - * Generated from protobuf enum MCP_SERVER_DISABLED = 47; - */ - const MCP_SERVER_DISABLED = 47; - - private static $valueToName = [ - self::ERROR_REASON_UNSPECIFIED => 'ERROR_REASON_UNSPECIFIED', - self::SERVICE_DISABLED => 'SERVICE_DISABLED', - self::BILLING_DISABLED => 'BILLING_DISABLED', - self::API_KEY_INVALID => 'API_KEY_INVALID', - self::API_KEY_SERVICE_BLOCKED => 'API_KEY_SERVICE_BLOCKED', - self::API_KEY_HTTP_REFERRER_BLOCKED => 'API_KEY_HTTP_REFERRER_BLOCKED', - self::API_KEY_IP_ADDRESS_BLOCKED => 'API_KEY_IP_ADDRESS_BLOCKED', - self::API_KEY_ANDROID_APP_BLOCKED => 'API_KEY_ANDROID_APP_BLOCKED', - self::API_KEY_IOS_APP_BLOCKED => 'API_KEY_IOS_APP_BLOCKED', - self::RATE_LIMIT_EXCEEDED => 'RATE_LIMIT_EXCEEDED', - self::RESOURCE_QUOTA_EXCEEDED => 'RESOURCE_QUOTA_EXCEEDED', - self::LOCATION_TAX_POLICY_VIOLATED => 'LOCATION_TAX_POLICY_VIOLATED', - self::USER_PROJECT_DENIED => 'USER_PROJECT_DENIED', - self::CONSUMER_SUSPENDED => 'CONSUMER_SUSPENDED', - self::CONSUMER_INVALID => 'CONSUMER_INVALID', - self::SECURITY_POLICY_VIOLATED => 'SECURITY_POLICY_VIOLATED', - self::ACCESS_TOKEN_EXPIRED => 'ACCESS_TOKEN_EXPIRED', - self::ACCESS_TOKEN_SCOPE_INSUFFICIENT => 'ACCESS_TOKEN_SCOPE_INSUFFICIENT', - self::ACCOUNT_STATE_INVALID => 'ACCOUNT_STATE_INVALID', - self::ACCESS_TOKEN_TYPE_UNSUPPORTED => 'ACCESS_TOKEN_TYPE_UNSUPPORTED', - self::CREDENTIALS_MISSING => 'CREDENTIALS_MISSING', - self::RESOURCE_PROJECT_INVALID => 'RESOURCE_PROJECT_INVALID', - self::SESSION_COOKIE_INVALID => 'SESSION_COOKIE_INVALID', - self::USER_BLOCKED_BY_ADMIN => 'USER_BLOCKED_BY_ADMIN', - self::RESOURCE_USAGE_RESTRICTION_VIOLATED => 'RESOURCE_USAGE_RESTRICTION_VIOLATED', - self::SYSTEM_PARAMETER_UNSUPPORTED => 'SYSTEM_PARAMETER_UNSUPPORTED', - self::ORG_RESTRICTION_VIOLATION => 'ORG_RESTRICTION_VIOLATION', - self::ORG_RESTRICTION_HEADER_INVALID => 'ORG_RESTRICTION_HEADER_INVALID', - self::SERVICE_NOT_VISIBLE => 'SERVICE_NOT_VISIBLE', - self::GCP_SUSPENDED => 'GCP_SUSPENDED', - self::LOCATION_POLICY_VIOLATED => 'LOCATION_POLICY_VIOLATED', - self::MISSING_ORIGIN => 'MISSING_ORIGIN', - self::OVERLOADED_CREDENTIALS => 'OVERLOADED_CREDENTIALS', - self::LOCATION_ORG_POLICY_VIOLATED => 'LOCATION_ORG_POLICY_VIOLATED', - self::TLS_ORG_POLICY_VIOLATED => 'TLS_ORG_POLICY_VIOLATED', - self::EMULATOR_QUOTA_EXCEEDED => 'EMULATOR_QUOTA_EXCEEDED', - self::CREDENTIAL_ANDROID_APP_INVALID => 'CREDENTIAL_ANDROID_APP_INVALID', - self::IAM_PERMISSION_DENIED => 'IAM_PERMISSION_DENIED', - self::JWT_TOKEN_INVALID => 'JWT_TOKEN_INVALID', - self::CREDENTIAL_TYPE_UNSUPPORTED => 'CREDENTIAL_TYPE_UNSUPPORTED', - self::ACCOUNT_TYPE_UNSUPPORTED => 'ACCOUNT_TYPE_UNSUPPORTED', - self::ENDPOINT_USAGE_RESTRICTION_VIOLATED => 'ENDPOINT_USAGE_RESTRICTION_VIOLATED', - self::TLS_CIPHER_RESTRICTION_VIOLATED => 'TLS_CIPHER_RESTRICTION_VIOLATED', - self::MCP_SERVER_DISABLED => 'MCP_SERVER_DISABLED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/FieldBehavior.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/FieldBehavior.php deleted file mode 100644 index 4c57c5080055..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/FieldBehavior.php +++ /dev/null @@ -1,133 +0,0 @@ -google.api.FieldBehavior - */ -class FieldBehavior -{ - /** - * Conventional default for enums. Do not use this. - * - * Generated from protobuf enum FIELD_BEHAVIOR_UNSPECIFIED = 0; - */ - const FIELD_BEHAVIOR_UNSPECIFIED = 0; - /** - * Specifically denotes a field as optional. - * While all fields in protocol buffers are optional, this may be specified - * for emphasis if appropriate. - * - * Generated from protobuf enum OPTIONAL = 1; - */ - const OPTIONAL = 1; - /** - * Denotes a field as required. - * This indicates that the field **must** be provided as part of the request, - * and failure to do so will cause an error (usually `INVALID_ARGUMENT`). - * - * Generated from protobuf enum REQUIRED = 2; - */ - const REQUIRED = 2; - /** - * Denotes a field as output only. - * This indicates that the field is provided in responses, but including the - * field in a request does nothing (the server *must* ignore it and - * *must not* throw an error as a result of the field's presence). - * - * Generated from protobuf enum OUTPUT_ONLY = 3; - */ - const OUTPUT_ONLY = 3; - /** - * Denotes a field as input only. - * This indicates that the field is provided in requests, and the - * corresponding field is not included in output. - * - * Generated from protobuf enum INPUT_ONLY = 4; - */ - const INPUT_ONLY = 4; - /** - * Denotes a field as immutable. - * This indicates that the field may be set once in a request to create a - * resource, but may not be changed thereafter. - * - * Generated from protobuf enum IMMUTABLE = 5; - */ - const IMMUTABLE = 5; - /** - * Denotes that a (repeated) field is an unordered list. - * This indicates that the service may provide the elements of the list - * in any arbitrary order, rather than the order the user originally - * provided. Additionally, the list's order may or may not be stable. - * - * Generated from protobuf enum UNORDERED_LIST = 6; - */ - const UNORDERED_LIST = 6; - /** - * Denotes that this field returns a non-empty default value if not set. - * This indicates that if the user provides the empty value in a request, - * a non-empty value will be returned. The user will not be aware of what - * non-empty value to expect. - * - * Generated from protobuf enum NON_EMPTY_DEFAULT = 7; - */ - const NON_EMPTY_DEFAULT = 7; - /** - * Denotes that the field in a resource (a message annotated with - * google.api.resource) is used in the resource name to uniquely identify the - * resource. For AIP-compliant APIs, this should only be applied to the - * `name` field on the resource. - * This behavior should not be applied to references to other resources within - * the message. - * The identifier field of resources often have different field behavior - * depending on the request it is embedded in (e.g. for Create methods name - * is optional and unused, while for Update methods it is required). Instead - * of method-specific annotations, only `IDENTIFIER` is required. - * - * Generated from protobuf enum IDENTIFIER = 8; - */ - const IDENTIFIER = 8; - - private static $valueToName = [ - self::FIELD_BEHAVIOR_UNSPECIFIED => 'FIELD_BEHAVIOR_UNSPECIFIED', - self::OPTIONAL => 'OPTIONAL', - self::REQUIRED => 'REQUIRED', - self::OUTPUT_ONLY => 'OUTPUT_ONLY', - self::INPUT_ONLY => 'INPUT_ONLY', - self::IMMUTABLE => 'IMMUTABLE', - self::UNORDERED_LIST => 'UNORDERED_LIST', - self::NON_EMPTY_DEFAULT => 'NON_EMPTY_DEFAULT', - self::IDENTIFIER => 'IDENTIFIER', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/FieldInfo.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/FieldInfo.php deleted file mode 100644 index 71cf35a1027a..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/FieldInfo.php +++ /dev/null @@ -1,117 +0,0 @@ -google.api.FieldInfo - */ -class FieldInfo extends \Google\Protobuf\Internal\Message -{ - /** - * The standard format of a field value. This does not explicitly configure - * any API consumer, just documents the API's format for the field it is - * applied to. - * - * Generated from protobuf field .google.api.FieldInfo.Format format = 1; - */ - protected $format = 0; - /** - * The type(s) that the annotated, generic field may represent. - * Currently, this must only be used on fields of type `google.protobuf.Any`. - * Supporting other generic types may be considered in the future. - * - * Generated from protobuf field repeated .google.api.TypeReference referenced_types = 2; - */ - private $referenced_types; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $format - * The standard format of a field value. This does not explicitly configure - * any API consumer, just documents the API's format for the field it is - * applied to. - * @type \Google\Api\TypeReference[] $referenced_types - * The type(s) that the annotated, generic field may represent. - * Currently, this must only be used on fields of type `google.protobuf.Any`. - * Supporting other generic types may be considered in the future. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\FieldInfo::initOnce(); - parent::__construct($data); - } - - /** - * The standard format of a field value. This does not explicitly configure - * any API consumer, just documents the API's format for the field it is - * applied to. - * - * Generated from protobuf field .google.api.FieldInfo.Format format = 1; - * @return int - */ - public function getFormat() - { - return $this->format; - } - - /** - * The standard format of a field value. This does not explicitly configure - * any API consumer, just documents the API's format for the field it is - * applied to. - * - * Generated from protobuf field .google.api.FieldInfo.Format format = 1; - * @param int $var - * @return $this - */ - public function setFormat($var) - { - GPBUtil::checkEnum($var, \Google\Api\FieldInfo\Format::class); - $this->format = $var; - - return $this; - } - - /** - * The type(s) that the annotated, generic field may represent. - * Currently, this must only be used on fields of type `google.protobuf.Any`. - * Supporting other generic types may be considered in the future. - * - * Generated from protobuf field repeated .google.api.TypeReference referenced_types = 2; - * @return RepeatedField<\Google\Api\TypeReference> - */ - public function getReferencedTypes() - { - return $this->referenced_types; - } - - /** - * The type(s) that the annotated, generic field may represent. - * Currently, this must only be used on fields of type `google.protobuf.Any`. - * Supporting other generic types may be considered in the future. - * - * Generated from protobuf field repeated .google.api.TypeReference referenced_types = 2; - * @param \Google\Api\TypeReference[] $var - * @return $this - */ - public function setReferencedTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\TypeReference::class); - $this->referenced_types = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/FieldInfo/Format.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/FieldInfo/Format.php deleted file mode 100644 index 88fc61c69d22..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/FieldInfo/Format.php +++ /dev/null @@ -1,89 +0,0 @@ -google.api.FieldInfo.Format - */ -class Format -{ - /** - * Default, unspecified value. - * - * Generated from protobuf enum FORMAT_UNSPECIFIED = 0; - */ - const FORMAT_UNSPECIFIED = 0; - /** - * Universally Unique Identifier, version 4, value as defined by - * https://datatracker.ietf.org/doc/html/rfc4122. The value may be - * normalized to entirely lowercase letters. For example, the value - * `F47AC10B-58CC-0372-8567-0E02B2C3D479` would be normalized to - * `f47ac10b-58cc-0372-8567-0e02b2c3d479`. - * - * Generated from protobuf enum UUID4 = 1; - */ - const UUID4 = 1; - /** - * Internet Protocol v4 value as defined by [RFC - * 791](https://datatracker.ietf.org/doc/html/rfc791). The value may be - * condensed, with leading zeros in each octet stripped. For example, - * `001.022.233.040` would be condensed to `1.22.233.40`. - * - * Generated from protobuf enum IPV4 = 2; - */ - const IPV4 = 2; - /** - * Internet Protocol v6 value as defined by [RFC - * 2460](https://datatracker.ietf.org/doc/html/rfc2460). The value may be - * normalized to entirely lowercase letters with zeros compressed, following - * [RFC 5952](https://datatracker.ietf.org/doc/html/rfc5952). For example, - * the value `2001:0DB8:0::0` would be normalized to `2001:db8::`. - * - * Generated from protobuf enum IPV6 = 3; - */ - const IPV6 = 3; - /** - * An IP address in either v4 or v6 format as described by the individual - * values defined herein. See the comments on the IPV4 and IPV6 types for - * allowed normalizations of each. - * - * Generated from protobuf enum IPV4_OR_IPV6 = 4; - */ - const IPV4_OR_IPV6 = 4; - - private static $valueToName = [ - self::FORMAT_UNSPECIFIED => 'FORMAT_UNSPECIFIED', - self::UUID4 => 'UUID4', - self::IPV4 => 'IPV4', - self::IPV6 => 'IPV6', - self::IPV4_OR_IPV6 => 'IPV4_OR_IPV6', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/FieldPolicy.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/FieldPolicy.php deleted file mode 100644 index 3600a2de91b8..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/FieldPolicy.php +++ /dev/null @@ -1,181 +0,0 @@ -google.api.FieldPolicy - */ -class FieldPolicy extends \Google\Protobuf\Internal\Message -{ - /** - * Selects one or more request or response message fields to apply this - * `FieldPolicy`. - * When a `FieldPolicy` is used in proto annotation, the selector must - * be left as empty. The service config generator will automatically fill - * the correct value. - * When a `FieldPolicy` is used in service config, the selector must be a - * comma-separated string with valid request or response field paths, - * such as "foo.bar" or "foo.bar,foo.baz". - * - * Generated from protobuf field string selector = 1; - */ - protected $selector = ''; - /** - * Specifies the required permission(s) for the resource referred to by the - * field. It requires the field contains a valid resource reference, and - * the request must pass the permission checks to proceed. For example, - * "resourcemanager.projects.get". - * - * Generated from protobuf field string resource_permission = 2; - */ - protected $resource_permission = ''; - /** - * Specifies the resource type for the resource referred to by the field. - * - * Generated from protobuf field string resource_type = 3; - */ - protected $resource_type = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $selector - * Selects one or more request or response message fields to apply this - * `FieldPolicy`. - * When a `FieldPolicy` is used in proto annotation, the selector must - * be left as empty. The service config generator will automatically fill - * the correct value. - * When a `FieldPolicy` is used in service config, the selector must be a - * comma-separated string with valid request or response field paths, - * such as "foo.bar" or "foo.bar,foo.baz". - * @type string $resource_permission - * Specifies the required permission(s) for the resource referred to by the - * field. It requires the field contains a valid resource reference, and - * the request must pass the permission checks to proceed. For example, - * "resourcemanager.projects.get". - * @type string $resource_type - * Specifies the resource type for the resource referred to by the field. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Policy::initOnce(); - parent::__construct($data); - } - - /** - * Selects one or more request or response message fields to apply this - * `FieldPolicy`. - * When a `FieldPolicy` is used in proto annotation, the selector must - * be left as empty. The service config generator will automatically fill - * the correct value. - * When a `FieldPolicy` is used in service config, the selector must be a - * comma-separated string with valid request or response field paths, - * such as "foo.bar" or "foo.bar,foo.baz". - * - * Generated from protobuf field string selector = 1; - * @return string - */ - public function getSelector() - { - return $this->selector; - } - - /** - * Selects one or more request or response message fields to apply this - * `FieldPolicy`. - * When a `FieldPolicy` is used in proto annotation, the selector must - * be left as empty. The service config generator will automatically fill - * the correct value. - * When a `FieldPolicy` is used in service config, the selector must be a - * comma-separated string with valid request or response field paths, - * such as "foo.bar" or "foo.bar,foo.baz". - * - * Generated from protobuf field string selector = 1; - * @param string $var - * @return $this - */ - public function setSelector($var) - { - GPBUtil::checkString($var, True); - $this->selector = $var; - - return $this; - } - - /** - * Specifies the required permission(s) for the resource referred to by the - * field. It requires the field contains a valid resource reference, and - * the request must pass the permission checks to proceed. For example, - * "resourcemanager.projects.get". - * - * Generated from protobuf field string resource_permission = 2; - * @return string - */ - public function getResourcePermission() - { - return $this->resource_permission; - } - - /** - * Specifies the required permission(s) for the resource referred to by the - * field. It requires the field contains a valid resource reference, and - * the request must pass the permission checks to proceed. For example, - * "resourcemanager.projects.get". - * - * Generated from protobuf field string resource_permission = 2; - * @param string $var - * @return $this - */ - public function setResourcePermission($var) - { - GPBUtil::checkString($var, True); - $this->resource_permission = $var; - - return $this; - } - - /** - * Specifies the resource type for the resource referred to by the field. - * - * Generated from protobuf field string resource_type = 3; - * @return string - */ - public function getResourceType() - { - return $this->resource_type; - } - - /** - * Specifies the resource type for the resource referred to by the field. - * - * Generated from protobuf field string resource_type = 3; - * @param string $var - * @return $this - */ - public function setResourceType($var) - { - GPBUtil::checkString($var, True); - $this->resource_type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/FlowControlLimitExceededBehaviorProto.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/FlowControlLimitExceededBehaviorProto.php deleted file mode 100644 index a1457d9f7e47..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/FlowControlLimitExceededBehaviorProto.php +++ /dev/null @@ -1,68 +0,0 @@ -google.api.FlowControlLimitExceededBehaviorProto - */ -class FlowControlLimitExceededBehaviorProto -{ - /** - * Default behavior, system-defined. - * - * Generated from protobuf enum UNSET_BEHAVIOR = 0; - */ - const UNSET_BEHAVIOR = 0; - /** - * Stop operation, raise error. - * - * Generated from protobuf enum THROW_EXCEPTION = 1; - */ - const THROW_EXCEPTION = 1; - /** - * Pause operation until limit clears. - * - * Generated from protobuf enum BLOCK = 2; - */ - const BLOCK = 2; - /** - * Continue operation, disregard limit. - * - * Generated from protobuf enum IGNORE = 3; - */ - const IGNORE = 3; - - private static $valueToName = [ - self::UNSET_BEHAVIOR => 'UNSET_BEHAVIOR', - self::THROW_EXCEPTION => 'THROW_EXCEPTION', - self::BLOCK => 'BLOCK', - self::IGNORE => 'IGNORE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/GoSettings.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/GoSettings.php deleted file mode 100644 index 2a406b74d478..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/GoSettings.php +++ /dev/null @@ -1,139 +0,0 @@ -google.api.GoSettings - */ -class GoSettings extends \Google\Protobuf\Internal\Message -{ - /** - * Some settings. - * - * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; - */ - protected $common = null; - /** - * Map of service names to renamed services. Keys are the package relative - * service names and values are the name to be used for the service client - * and call options. - * Example: - * publishing: - * go_settings: - * renamed_services: - * Publisher: TopicAdmin - * - * Generated from protobuf field map renamed_services = 2; - */ - private $renamed_services; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Api\CommonLanguageSettings $common - * Some settings. - * @type array|\Google\Protobuf\Internal\MapField $renamed_services - * Map of service names to renamed services. Keys are the package relative - * service names and values are the name to be used for the service client - * and call options. - * Example: - * publishing: - * go_settings: - * renamed_services: - * Publisher: TopicAdmin - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Client::initOnce(); - parent::__construct($data); - } - - /** - * Some settings. - * - * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; - * @return \Google\Api\CommonLanguageSettings|null - */ - public function getCommon() - { - return $this->common; - } - - public function hasCommon() - { - return isset($this->common); - } - - public function clearCommon() - { - unset($this->common); - } - - /** - * Some settings. - * - * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; - * @param \Google\Api\CommonLanguageSettings $var - * @return $this - */ - public function setCommon($var) - { - GPBUtil::checkMessage($var, \Google\Api\CommonLanguageSettings::class); - $this->common = $var; - - return $this; - } - - /** - * Map of service names to renamed services. Keys are the package relative - * service names and values are the name to be used for the service client - * and call options. - * Example: - * publishing: - * go_settings: - * renamed_services: - * Publisher: TopicAdmin - * - * Generated from protobuf field map renamed_services = 2; - * @return \Google\Protobuf\Internal\MapField - */ - public function getRenamedServices() - { - return $this->renamed_services; - } - - /** - * Map of service names to renamed services. Keys are the package relative - * service names and values are the name to be used for the service client - * and call options. - * Example: - * publishing: - * go_settings: - * renamed_services: - * Publisher: TopicAdmin - * - * Generated from protobuf field map renamed_services = 2; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setRenamedServices($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->renamed_services = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Http.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Http.php deleted file mode 100644 index 2f7542b434f6..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Http.php +++ /dev/null @@ -1,123 +0,0 @@ -google.api.Http - */ -class Http extends \Google\Protobuf\Internal\Message -{ - /** - * A list of HTTP configuration rules that apply to individual API methods. - * **NOTE:** All service configuration rules follow "last one wins" order. - * - * Generated from protobuf field repeated .google.api.HttpRule rules = 1; - */ - private $rules; - /** - * When set to true, URL path parameters will be fully URI-decoded except in - * cases of single segment matches in reserved expansion, where "%2F" will be - * left encoded. - * The default behavior is to not decode RFC 6570 reserved characters in multi - * segment matches. - * - * Generated from protobuf field bool fully_decode_reserved_expansion = 2; - */ - protected $fully_decode_reserved_expansion = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Api\HttpRule[] $rules - * A list of HTTP configuration rules that apply to individual API methods. - * **NOTE:** All service configuration rules follow "last one wins" order. - * @type bool $fully_decode_reserved_expansion - * When set to true, URL path parameters will be fully URI-decoded except in - * cases of single segment matches in reserved expansion, where "%2F" will be - * left encoded. - * The default behavior is to not decode RFC 6570 reserved characters in multi - * segment matches. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Http::initOnce(); - parent::__construct($data); - } - - /** - * A list of HTTP configuration rules that apply to individual API methods. - * **NOTE:** All service configuration rules follow "last one wins" order. - * - * Generated from protobuf field repeated .google.api.HttpRule rules = 1; - * @return RepeatedField<\Google\Api\HttpRule> - */ - public function getRules() - { - return $this->rules; - } - - /** - * A list of HTTP configuration rules that apply to individual API methods. - * **NOTE:** All service configuration rules follow "last one wins" order. - * - * Generated from protobuf field repeated .google.api.HttpRule rules = 1; - * @param \Google\Api\HttpRule[] $var - * @return $this - */ - public function setRules($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\HttpRule::class); - $this->rules = $arr; - - return $this; - } - - /** - * When set to true, URL path parameters will be fully URI-decoded except in - * cases of single segment matches in reserved expansion, where "%2F" will be - * left encoded. - * The default behavior is to not decode RFC 6570 reserved characters in multi - * segment matches. - * - * Generated from protobuf field bool fully_decode_reserved_expansion = 2; - * @return bool - */ - public function getFullyDecodeReservedExpansion() - { - return $this->fully_decode_reserved_expansion; - } - - /** - * When set to true, URL path parameters will be fully URI-decoded except in - * cases of single segment matches in reserved expansion, where "%2F" will be - * left encoded. - * The default behavior is to not decode RFC 6570 reserved characters in multi - * segment matches. - * - * Generated from protobuf field bool fully_decode_reserved_expansion = 2; - * @param bool $var - * @return $this - */ - public function setFullyDecodeReservedExpansion($var) - { - GPBUtil::checkBool($var); - $this->fully_decode_reserved_expansion = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/HttpBody.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/HttpBody.php deleted file mode 100644 index 36b78af6f17f..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/HttpBody.php +++ /dev/null @@ -1,168 +0,0 @@ -google.api.HttpBody - */ -class HttpBody extends \Google\Protobuf\Internal\Message -{ - /** - * The HTTP Content-Type header value specifying the content type of the body. - * - * Generated from protobuf field string content_type = 1; - */ - protected $content_type = ''; - /** - * The HTTP request/response body as raw binary. - * - * Generated from protobuf field bytes data = 2; - */ - protected $data = ''; - /** - * Application specific response metadata. Must be set in the first response - * for streaming APIs. - * - * Generated from protobuf field repeated .google.protobuf.Any extensions = 3; - */ - private $extensions; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $content_type - * The HTTP Content-Type header value specifying the content type of the body. - * @type string $data - * The HTTP request/response body as raw binary. - * @type \Google\Protobuf\Any[] $extensions - * Application specific response metadata. Must be set in the first response - * for streaming APIs. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Httpbody::initOnce(); - parent::__construct($data); - } - - /** - * The HTTP Content-Type header value specifying the content type of the body. - * - * Generated from protobuf field string content_type = 1; - * @return string - */ - public function getContentType() - { - return $this->content_type; - } - - /** - * The HTTP Content-Type header value specifying the content type of the body. - * - * Generated from protobuf field string content_type = 1; - * @param string $var - * @return $this - */ - public function setContentType($var) - { - GPBUtil::checkString($var, True); - $this->content_type = $var; - - return $this; - } - - /** - * The HTTP request/response body as raw binary. - * - * Generated from protobuf field bytes data = 2; - * @return string - */ - public function getData() - { - return $this->data; - } - - /** - * The HTTP request/response body as raw binary. - * - * Generated from protobuf field bytes data = 2; - * @param string $var - * @return $this - */ - public function setData($var) - { - GPBUtil::checkString($var, False); - $this->data = $var; - - return $this; - } - - /** - * Application specific response metadata. Must be set in the first response - * for streaming APIs. - * - * Generated from protobuf field repeated .google.protobuf.Any extensions = 3; - * @return RepeatedField<\Google\Protobuf\Any> - */ - public function getExtensions() - { - return $this->extensions; - } - - /** - * Application specific response metadata. Must be set in the first response - * for streaming APIs. - * - * Generated from protobuf field repeated .google.protobuf.Any extensions = 3; - * @param \Google\Protobuf\Any[] $var - * @return $this - */ - public function setExtensions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Any::class); - $this->extensions = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/HttpRule.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/HttpRule.php deleted file mode 100644 index c7cf45ce1476..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/HttpRule.php +++ /dev/null @@ -1,651 +0,0 @@ -google.api.HttpRule - */ -class HttpRule extends \Google\Protobuf\Internal\Message -{ - /** - * Selects a method to which this rule applies. - * Refer to [selector][google.api.DocumentationRule.selector] for syntax - * details. - * - * Generated from protobuf field string selector = 1; - */ - protected $selector = ''; - /** - * The name of the request field whose value is mapped to the HTTP request - * body, or `*` for mapping all request fields not captured by the path - * pattern to the HTTP body, or omitted for not having any HTTP request body. - * NOTE: the referred field must be present at the top-level of the request - * message type. - * - * Generated from protobuf field string body = 7; - */ - protected $body = ''; - /** - * Optional. The name of the response field whose value is mapped to the HTTP - * response body. When omitted, the entire response message will be used - * as the HTTP response body. - * NOTE: The referred field must be present at the top-level of the response - * message type. - * - * Generated from protobuf field string response_body = 12; - */ - protected $response_body = ''; - /** - * Additional HTTP bindings for the selector. Nested bindings must - * not contain an `additional_bindings` field themselves (that is, - * the nesting may only be one level deep). - * - * Generated from protobuf field repeated .google.api.HttpRule additional_bindings = 11; - */ - private $additional_bindings; - protected $pattern; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $selector - * Selects a method to which this rule applies. - * Refer to [selector][google.api.DocumentationRule.selector] for syntax - * details. - * @type string $get - * Maps to HTTP GET. Used for listing and getting information about - * resources. - * @type string $put - * Maps to HTTP PUT. Used for replacing a resource. - * @type string $post - * Maps to HTTP POST. Used for creating a resource or performing an action. - * @type string $delete - * Maps to HTTP DELETE. Used for deleting a resource. - * @type string $patch - * Maps to HTTP PATCH. Used for updating a resource. - * @type \Google\Api\CustomHttpPattern $custom - * The custom pattern is used for specifying an HTTP method that is not - * included in the `pattern` field, such as HEAD, or "*" to leave the - * HTTP method unspecified for this rule. The wild-card rule is useful - * for services that provide content to Web (HTML) clients. - * @type string $body - * The name of the request field whose value is mapped to the HTTP request - * body, or `*` for mapping all request fields not captured by the path - * pattern to the HTTP body, or omitted for not having any HTTP request body. - * NOTE: the referred field must be present at the top-level of the request - * message type. - * @type string $response_body - * Optional. The name of the response field whose value is mapped to the HTTP - * response body. When omitted, the entire response message will be used - * as the HTTP response body. - * NOTE: The referred field must be present at the top-level of the response - * message type. - * @type \Google\Api\HttpRule[] $additional_bindings - * Additional HTTP bindings for the selector. Nested bindings must - * not contain an `additional_bindings` field themselves (that is, - * the nesting may only be one level deep). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Http::initOnce(); - parent::__construct($data); - } - - /** - * Selects a method to which this rule applies. - * Refer to [selector][google.api.DocumentationRule.selector] for syntax - * details. - * - * Generated from protobuf field string selector = 1; - * @return string - */ - public function getSelector() - { - return $this->selector; - } - - /** - * Selects a method to which this rule applies. - * Refer to [selector][google.api.DocumentationRule.selector] for syntax - * details. - * - * Generated from protobuf field string selector = 1; - * @param string $var - * @return $this - */ - public function setSelector($var) - { - GPBUtil::checkString($var, True); - $this->selector = $var; - - return $this; - } - - /** - * Maps to HTTP GET. Used for listing and getting information about - * resources. - * - * Generated from protobuf field string get = 2; - * @return string - */ - public function getGet() - { - return $this->readOneof(2); - } - - public function hasGet() - { - return $this->hasOneof(2); - } - - /** - * Maps to HTTP GET. Used for listing and getting information about - * resources. - * - * Generated from protobuf field string get = 2; - * @param string $var - * @return $this - */ - public function setGet($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Maps to HTTP PUT. Used for replacing a resource. - * - * Generated from protobuf field string put = 3; - * @return string - */ - public function getPut() - { - return $this->readOneof(3); - } - - public function hasPut() - { - return $this->hasOneof(3); - } - - /** - * Maps to HTTP PUT. Used for replacing a resource. - * - * Generated from protobuf field string put = 3; - * @param string $var - * @return $this - */ - public function setPut($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Maps to HTTP POST. Used for creating a resource or performing an action. - * - * Generated from protobuf field string post = 4; - * @return string - */ - public function getPost() - { - return $this->readOneof(4); - } - - public function hasPost() - { - return $this->hasOneof(4); - } - - /** - * Maps to HTTP POST. Used for creating a resource or performing an action. - * - * Generated from protobuf field string post = 4; - * @param string $var - * @return $this - */ - public function setPost($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Maps to HTTP DELETE. Used for deleting a resource. - * - * Generated from protobuf field string delete = 5; - * @return string - */ - public function getDelete() - { - return $this->readOneof(5); - } - - public function hasDelete() - { - return $this->hasOneof(5); - } - - /** - * Maps to HTTP DELETE. Used for deleting a resource. - * - * Generated from protobuf field string delete = 5; - * @param string $var - * @return $this - */ - public function setDelete($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * Maps to HTTP PATCH. Used for updating a resource. - * - * Generated from protobuf field string patch = 6; - * @return string - */ - public function getPatch() - { - return $this->readOneof(6); - } - - public function hasPatch() - { - return $this->hasOneof(6); - } - - /** - * Maps to HTTP PATCH. Used for updating a resource. - * - * Generated from protobuf field string patch = 6; - * @param string $var - * @return $this - */ - public function setPatch($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * The custom pattern is used for specifying an HTTP method that is not - * included in the `pattern` field, such as HEAD, or "*" to leave the - * HTTP method unspecified for this rule. The wild-card rule is useful - * for services that provide content to Web (HTML) clients. - * - * Generated from protobuf field .google.api.CustomHttpPattern custom = 8; - * @return \Google\Api\CustomHttpPattern|null - */ - public function getCustom() - { - return $this->readOneof(8); - } - - public function hasCustom() - { - return $this->hasOneof(8); - } - - /** - * The custom pattern is used for specifying an HTTP method that is not - * included in the `pattern` field, such as HEAD, or "*" to leave the - * HTTP method unspecified for this rule. The wild-card rule is useful - * for services that provide content to Web (HTML) clients. - * - * Generated from protobuf field .google.api.CustomHttpPattern custom = 8; - * @param \Google\Api\CustomHttpPattern $var - * @return $this - */ - public function setCustom($var) - { - GPBUtil::checkMessage($var, \Google\Api\CustomHttpPattern::class); - $this->writeOneof(8, $var); - - return $this; - } - - /** - * The name of the request field whose value is mapped to the HTTP request - * body, or `*` for mapping all request fields not captured by the path - * pattern to the HTTP body, or omitted for not having any HTTP request body. - * NOTE: the referred field must be present at the top-level of the request - * message type. - * - * Generated from protobuf field string body = 7; - * @return string - */ - public function getBody() - { - return $this->body; - } - - /** - * The name of the request field whose value is mapped to the HTTP request - * body, or `*` for mapping all request fields not captured by the path - * pattern to the HTTP body, or omitted for not having any HTTP request body. - * NOTE: the referred field must be present at the top-level of the request - * message type. - * - * Generated from protobuf field string body = 7; - * @param string $var - * @return $this - */ - public function setBody($var) - { - GPBUtil::checkString($var, True); - $this->body = $var; - - return $this; - } - - /** - * Optional. The name of the response field whose value is mapped to the HTTP - * response body. When omitted, the entire response message will be used - * as the HTTP response body. - * NOTE: The referred field must be present at the top-level of the response - * message type. - * - * Generated from protobuf field string response_body = 12; - * @return string - */ - public function getResponseBody() - { - return $this->response_body; - } - - /** - * Optional. The name of the response field whose value is mapped to the HTTP - * response body. When omitted, the entire response message will be used - * as the HTTP response body. - * NOTE: The referred field must be present at the top-level of the response - * message type. - * - * Generated from protobuf field string response_body = 12; - * @param string $var - * @return $this - */ - public function setResponseBody($var) - { - GPBUtil::checkString($var, True); - $this->response_body = $var; - - return $this; - } - - /** - * Additional HTTP bindings for the selector. Nested bindings must - * not contain an `additional_bindings` field themselves (that is, - * the nesting may only be one level deep). - * - * Generated from protobuf field repeated .google.api.HttpRule additional_bindings = 11; - * @return RepeatedField<\Google\Api\HttpRule> - */ - public function getAdditionalBindings() - { - return $this->additional_bindings; - } - - /** - * Additional HTTP bindings for the selector. Nested bindings must - * not contain an `additional_bindings` field themselves (that is, - * the nesting may only be one level deep). - * - * Generated from protobuf field repeated .google.api.HttpRule additional_bindings = 11; - * @param \Google\Api\HttpRule[] $var - * @return $this - */ - public function setAdditionalBindings($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\HttpRule::class); - $this->additional_bindings = $arr; - - return $this; - } - - /** - * @return string - */ - public function getPattern() - { - return $this->whichOneof("pattern"); - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/JavaSettings.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/JavaSettings.php deleted file mode 100644 index 7b05e0750051..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/JavaSettings.php +++ /dev/null @@ -1,225 +0,0 @@ -google.api.JavaSettings - */ -class JavaSettings extends \Google\Protobuf\Internal\Message -{ - /** - * The package name to use in Java. Clobbers the java_package option - * set in the protobuf. This should be used **only** by APIs - * who have already set the language_settings.java.package_name" field - * in gapic.yaml. API teams should use the protobuf java_package option - * where possible. - * Example of a YAML configuration:: - * publishing: - * library_settings: - * java_settings: - * library_package: com.google.cloud.pubsub.v1 - * - * Generated from protobuf field string library_package = 1; - */ - protected $library_package = ''; - /** - * Configure the Java class name to use instead of the service's for its - * corresponding generated GAPIC client. Keys are fully-qualified - * service names as they appear in the protobuf (including the full - * the language_settings.java.interface_names" field in gapic.yaml. API - * teams should otherwise use the service name as it appears in the - * protobuf. - * Example of a YAML configuration:: - * publishing: - * java_settings: - * service_class_names: - * - google.pubsub.v1.Publisher: TopicAdmin - * - google.pubsub.v1.Subscriber: SubscriptionAdmin - * - * Generated from protobuf field map service_class_names = 2; - */ - private $service_class_names; - /** - * Some settings. - * - * Generated from protobuf field .google.api.CommonLanguageSettings common = 3; - */ - protected $common = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $library_package - * The package name to use in Java. Clobbers the java_package option - * set in the protobuf. This should be used **only** by APIs - * who have already set the language_settings.java.package_name" field - * in gapic.yaml. API teams should use the protobuf java_package option - * where possible. - * Example of a YAML configuration:: - * publishing: - * library_settings: - * java_settings: - * library_package: com.google.cloud.pubsub.v1 - * @type array|\Google\Protobuf\Internal\MapField $service_class_names - * Configure the Java class name to use instead of the service's for its - * corresponding generated GAPIC client. Keys are fully-qualified - * service names as they appear in the protobuf (including the full - * the language_settings.java.interface_names" field in gapic.yaml. API - * teams should otherwise use the service name as it appears in the - * protobuf. - * Example of a YAML configuration:: - * publishing: - * java_settings: - * service_class_names: - * - google.pubsub.v1.Publisher: TopicAdmin - * - google.pubsub.v1.Subscriber: SubscriptionAdmin - * @type \Google\Api\CommonLanguageSettings $common - * Some settings. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Client::initOnce(); - parent::__construct($data); - } - - /** - * The package name to use in Java. Clobbers the java_package option - * set in the protobuf. This should be used **only** by APIs - * who have already set the language_settings.java.package_name" field - * in gapic.yaml. API teams should use the protobuf java_package option - * where possible. - * Example of a YAML configuration:: - * publishing: - * library_settings: - * java_settings: - * library_package: com.google.cloud.pubsub.v1 - * - * Generated from protobuf field string library_package = 1; - * @return string - */ - public function getLibraryPackage() - { - return $this->library_package; - } - - /** - * The package name to use in Java. Clobbers the java_package option - * set in the protobuf. This should be used **only** by APIs - * who have already set the language_settings.java.package_name" field - * in gapic.yaml. API teams should use the protobuf java_package option - * where possible. - * Example of a YAML configuration:: - * publishing: - * library_settings: - * java_settings: - * library_package: com.google.cloud.pubsub.v1 - * - * Generated from protobuf field string library_package = 1; - * @param string $var - * @return $this - */ - public function setLibraryPackage($var) - { - GPBUtil::checkString($var, True); - $this->library_package = $var; - - return $this; - } - - /** - * Configure the Java class name to use instead of the service's for its - * corresponding generated GAPIC client. Keys are fully-qualified - * service names as they appear in the protobuf (including the full - * the language_settings.java.interface_names" field in gapic.yaml. API - * teams should otherwise use the service name as it appears in the - * protobuf. - * Example of a YAML configuration:: - * publishing: - * java_settings: - * service_class_names: - * - google.pubsub.v1.Publisher: TopicAdmin - * - google.pubsub.v1.Subscriber: SubscriptionAdmin - * - * Generated from protobuf field map service_class_names = 2; - * @return \Google\Protobuf\Internal\MapField - */ - public function getServiceClassNames() - { - return $this->service_class_names; - } - - /** - * Configure the Java class name to use instead of the service's for its - * corresponding generated GAPIC client. Keys are fully-qualified - * service names as they appear in the protobuf (including the full - * the language_settings.java.interface_names" field in gapic.yaml. API - * teams should otherwise use the service name as it appears in the - * protobuf. - * Example of a YAML configuration:: - * publishing: - * java_settings: - * service_class_names: - * - google.pubsub.v1.Publisher: TopicAdmin - * - google.pubsub.v1.Subscriber: SubscriptionAdmin - * - * Generated from protobuf field map service_class_names = 2; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setServiceClassNames($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->service_class_names = $arr; - - return $this; - } - - /** - * Some settings. - * - * Generated from protobuf field .google.api.CommonLanguageSettings common = 3; - * @return \Google\Api\CommonLanguageSettings|null - */ - public function getCommon() - { - return $this->common; - } - - public function hasCommon() - { - return isset($this->common); - } - - public function clearCommon() - { - unset($this->common); - } - - /** - * Some settings. - * - * Generated from protobuf field .google.api.CommonLanguageSettings common = 3; - * @param \Google\Api\CommonLanguageSettings $var - * @return $this - */ - public function setCommon($var) - { - GPBUtil::checkMessage($var, \Google\Api\CommonLanguageSettings::class); - $this->common = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/JwtLocation.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/JwtLocation.php deleted file mode 100644 index 9bd8ac73cc48..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/JwtLocation.php +++ /dev/null @@ -1,199 +0,0 @@ -google.api.JwtLocation - */ -class JwtLocation extends \Google\Protobuf\Internal\Message -{ - /** - * The value prefix. The value format is "value_prefix{token}" - * Only applies to "in" header type. Must be empty for "in" query type. - * If not empty, the header value has to match (case sensitive) this prefix. - * If not matched, JWT will not be extracted. If matched, JWT will be - * extracted after the prefix is removed. - * For example, for "Authorization: Bearer {JWT}", - * value_prefix="Bearer " with a space at the end. - * - * Generated from protobuf field string value_prefix = 3; - */ - protected $value_prefix = ''; - protected $in; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $header - * Specifies HTTP header name to extract JWT token. - * @type string $query - * Specifies URL query parameter name to extract JWT token. - * @type string $cookie - * Specifies cookie name to extract JWT token. - * @type string $value_prefix - * The value prefix. The value format is "value_prefix{token}" - * Only applies to "in" header type. Must be empty for "in" query type. - * If not empty, the header value has to match (case sensitive) this prefix. - * If not matched, JWT will not be extracted. If matched, JWT will be - * extracted after the prefix is removed. - * For example, for "Authorization: Bearer {JWT}", - * value_prefix="Bearer " with a space at the end. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Auth::initOnce(); - parent::__construct($data); - } - - /** - * Specifies HTTP header name to extract JWT token. - * - * Generated from protobuf field string header = 1; - * @return string - */ - public function getHeader() - { - return $this->readOneof(1); - } - - public function hasHeader() - { - return $this->hasOneof(1); - } - - /** - * Specifies HTTP header name to extract JWT token. - * - * Generated from protobuf field string header = 1; - * @param string $var - * @return $this - */ - public function setHeader($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Specifies URL query parameter name to extract JWT token. - * - * Generated from protobuf field string query = 2; - * @return string - */ - public function getQuery() - { - return $this->readOneof(2); - } - - public function hasQuery() - { - return $this->hasOneof(2); - } - - /** - * Specifies URL query parameter name to extract JWT token. - * - * Generated from protobuf field string query = 2; - * @param string $var - * @return $this - */ - public function setQuery($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Specifies cookie name to extract JWT token. - * - * Generated from protobuf field string cookie = 4; - * @return string - */ - public function getCookie() - { - return $this->readOneof(4); - } - - public function hasCookie() - { - return $this->hasOneof(4); - } - - /** - * Specifies cookie name to extract JWT token. - * - * Generated from protobuf field string cookie = 4; - * @param string $var - * @return $this - */ - public function setCookie($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * The value prefix. The value format is "value_prefix{token}" - * Only applies to "in" header type. Must be empty for "in" query type. - * If not empty, the header value has to match (case sensitive) this prefix. - * If not matched, JWT will not be extracted. If matched, JWT will be - * extracted after the prefix is removed. - * For example, for "Authorization: Bearer {JWT}", - * value_prefix="Bearer " with a space at the end. - * - * Generated from protobuf field string value_prefix = 3; - * @return string - */ - public function getValuePrefix() - { - return $this->value_prefix; - } - - /** - * The value prefix. The value format is "value_prefix{token}" - * Only applies to "in" header type. Must be empty for "in" query type. - * If not empty, the header value has to match (case sensitive) this prefix. - * If not matched, JWT will not be extracted. If matched, JWT will be - * extracted after the prefix is removed. - * For example, for "Authorization: Bearer {JWT}", - * value_prefix="Bearer " with a space at the end. - * - * Generated from protobuf field string value_prefix = 3; - * @param string $var - * @return $this - */ - public function setValuePrefix($var) - { - GPBUtil::checkString($var, True); - $this->value_prefix = $var; - - return $this; - } - - /** - * @return string - */ - public function getIn() - { - return $this->whichOneof("in"); - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/LabelDescriptor.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/LabelDescriptor.php deleted file mode 100644 index ac1aa409607f..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/LabelDescriptor.php +++ /dev/null @@ -1,135 +0,0 @@ -google.api.LabelDescriptor - */ -class LabelDescriptor extends \Google\Protobuf\Internal\Message -{ - /** - * The label key. - * - * Generated from protobuf field string key = 1; - */ - protected $key = ''; - /** - * The type of data that can be assigned to the label. - * - * Generated from protobuf field .google.api.LabelDescriptor.ValueType value_type = 2; - */ - protected $value_type = 0; - /** - * A human-readable description for the label. - * - * Generated from protobuf field string description = 3; - */ - protected $description = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $key - * The label key. - * @type int $value_type - * The type of data that can be assigned to the label. - * @type string $description - * A human-readable description for the label. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Label::initOnce(); - parent::__construct($data); - } - - /** - * The label key. - * - * Generated from protobuf field string key = 1; - * @return string - */ - public function getKey() - { - return $this->key; - } - - /** - * The label key. - * - * Generated from protobuf field string key = 1; - * @param string $var - * @return $this - */ - public function setKey($var) - { - GPBUtil::checkString($var, True); - $this->key = $var; - - return $this; - } - - /** - * The type of data that can be assigned to the label. - * - * Generated from protobuf field .google.api.LabelDescriptor.ValueType value_type = 2; - * @return int - */ - public function getValueType() - { - return $this->value_type; - } - - /** - * The type of data that can be assigned to the label. - * - * Generated from protobuf field .google.api.LabelDescriptor.ValueType value_type = 2; - * @param int $var - * @return $this - */ - public function setValueType($var) - { - GPBUtil::checkEnum($var, \Google\Api\LabelDescriptor\ValueType::class); - $this->value_type = $var; - - return $this; - } - - /** - * A human-readable description for the label. - * - * Generated from protobuf field string description = 3; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * A human-readable description for the label. - * - * Generated from protobuf field string description = 3; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/LabelDescriptor/ValueType.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/LabelDescriptor/ValueType.php deleted file mode 100644 index 42ec76a25a43..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/LabelDescriptor/ValueType.php +++ /dev/null @@ -1,61 +0,0 @@ -google.api.LabelDescriptor.ValueType - */ -class ValueType -{ - /** - * A variable-length string. This is the default. - * - * Generated from protobuf enum STRING = 0; - */ - const STRING = 0; - /** - * Boolean; true or false. - * - * Generated from protobuf enum BOOL = 1; - */ - const BOOL = 1; - /** - * A 64-bit signed integer. - * - * Generated from protobuf enum INT64 = 2; - */ - const INT64 = 2; - - private static $valueToName = [ - self::STRING => 'STRING', - self::BOOL => 'BOOL', - self::INT64 => 'INT64', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/LaunchStage.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/LaunchStage.php deleted file mode 100644 index 766aa7903470..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/LaunchStage.php +++ /dev/null @@ -1,118 +0,0 @@ -google.api.LaunchStage - */ -class LaunchStage -{ - /** - * Do not use this default value. - * - * Generated from protobuf enum LAUNCH_STAGE_UNSPECIFIED = 0; - */ - const LAUNCH_STAGE_UNSPECIFIED = 0; - /** - * The feature is not yet implemented. Users can not use it. - * - * Generated from protobuf enum UNIMPLEMENTED = 6; - */ - const UNIMPLEMENTED = 6; - /** - * Prelaunch features are hidden from users and are only visible internally. - * - * Generated from protobuf enum PRELAUNCH = 7; - */ - const PRELAUNCH = 7; - /** - * Early Access features are limited to a closed group of testers. To use - * these features, you must sign up in advance and sign a Trusted Tester - * agreement (which includes confidentiality provisions). These features may - * be unstable, changed in backward-incompatible ways, and are not - * guaranteed to be released. - * - * Generated from protobuf enum EARLY_ACCESS = 1; - */ - const EARLY_ACCESS = 1; - /** - * Alpha is a limited availability test for releases before they are cleared - * for widespread use. By Alpha, all significant design issues are resolved - * and we are in the process of verifying functionality. Alpha customers - * need to apply for access, agree to applicable terms, and have their - * projects allowlisted. Alpha releases don't have to be feature complete, - * no SLAs are provided, and there are no technical support obligations, but - * they will be far enough along that customers can actually use them in - * test environments or for limited-use tests -- just like they would in - * normal production cases. - * - * Generated from protobuf enum ALPHA = 2; - */ - const ALPHA = 2; - /** - * Beta is the point at which we are ready to open a release for any - * customer to use. There are no SLA or technical support obligations in a - * Beta release. Products will be complete from a feature perspective, but - * may have some open outstanding issues. Beta releases are suitable for - * limited production use cases. - * - * Generated from protobuf enum BETA = 3; - */ - const BETA = 3; - /** - * GA features are open to all developers and are considered stable and - * fully qualified for production use. - * - * Generated from protobuf enum GA = 4; - */ - const GA = 4; - /** - * Deprecated features are scheduled to be shut down and removed. For more - * information, see the "Deprecation Policy" section of our [Terms of - * Service](https://cloud.google.com/terms/) - * and the [Google Cloud Platform Subject to the Deprecation - * Policy](https://cloud.google.com/terms/deprecation) documentation. - * - * Generated from protobuf enum DEPRECATED = 5; - */ - const DEPRECATED = 5; - - private static $valueToName = [ - self::LAUNCH_STAGE_UNSPECIFIED => 'LAUNCH_STAGE_UNSPECIFIED', - self::UNIMPLEMENTED => 'UNIMPLEMENTED', - self::PRELAUNCH => 'PRELAUNCH', - self::EARLY_ACCESS => 'EARLY_ACCESS', - self::ALPHA => 'ALPHA', - self::BETA => 'BETA', - self::GA => 'GA', - self::DEPRECATED => 'DEPRECATED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/LogDescriptor.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/LogDescriptor.php deleted file mode 100644 index 6973e8d0f56c..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/LogDescriptor.php +++ /dev/null @@ -1,203 +0,0 @@ -google.api.LogDescriptor - */ -class LogDescriptor extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the log. It must be less than 512 characters long and can - * include the following characters: upper- and lower-case alphanumeric - * characters [A-Za-z0-9], and punctuation characters including - * slash, underscore, hyphen, period [/_-.]. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * The set of labels that are available to describe a specific log entry. - * Runtime requests that contain labels not specified here are - * considered invalid. - * - * Generated from protobuf field repeated .google.api.LabelDescriptor labels = 2; - */ - private $labels; - /** - * A human-readable description of this log. This information appears in - * the documentation and can contain details. - * - * Generated from protobuf field string description = 3; - */ - protected $description = ''; - /** - * The human-readable name for this log. This information appears on - * the user interface and should be concise. - * - * Generated from protobuf field string display_name = 4; - */ - protected $display_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The name of the log. It must be less than 512 characters long and can - * include the following characters: upper- and lower-case alphanumeric - * characters [A-Za-z0-9], and punctuation characters including - * slash, underscore, hyphen, period [/_-.]. - * @type \Google\Api\LabelDescriptor[] $labels - * The set of labels that are available to describe a specific log entry. - * Runtime requests that contain labels not specified here are - * considered invalid. - * @type string $description - * A human-readable description of this log. This information appears in - * the documentation and can contain details. - * @type string $display_name - * The human-readable name for this log. This information appears on - * the user interface and should be concise. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Log::initOnce(); - parent::__construct($data); - } - - /** - * The name of the log. It must be less than 512 characters long and can - * include the following characters: upper- and lower-case alphanumeric - * characters [A-Za-z0-9], and punctuation characters including - * slash, underscore, hyphen, period [/_-.]. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name of the log. It must be less than 512 characters long and can - * include the following characters: upper- and lower-case alphanumeric - * characters [A-Za-z0-9], and punctuation characters including - * slash, underscore, hyphen, period [/_-.]. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The set of labels that are available to describe a specific log entry. - * Runtime requests that contain labels not specified here are - * considered invalid. - * - * Generated from protobuf field repeated .google.api.LabelDescriptor labels = 2; - * @return RepeatedField<\Google\Api\LabelDescriptor> - */ - public function getLabels() - { - return $this->labels; - } - - /** - * The set of labels that are available to describe a specific log entry. - * Runtime requests that contain labels not specified here are - * considered invalid. - * - * Generated from protobuf field repeated .google.api.LabelDescriptor labels = 2; - * @param \Google\Api\LabelDescriptor[] $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\LabelDescriptor::class); - $this->labels = $arr; - - return $this; - } - - /** - * A human-readable description of this log. This information appears in - * the documentation and can contain details. - * - * Generated from protobuf field string description = 3; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * A human-readable description of this log. This information appears in - * the documentation and can contain details. - * - * Generated from protobuf field string description = 3; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * The human-readable name for this log. This information appears on - * the user interface and should be concise. - * - * Generated from protobuf field string display_name = 4; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * The human-readable name for this log. This information appears on - * the user interface and should be concise. - * - * Generated from protobuf field string display_name = 4; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Logging.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Logging.php deleted file mode 100644 index 9c2f5b086211..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Logging.php +++ /dev/null @@ -1,151 +0,0 @@ -google.api.Logging - */ -class Logging extends \Google\Protobuf\Internal\Message -{ - /** - * Logging configurations for sending logs to the producer project. - * There can be multiple producer destinations, each one must have a - * different monitored resource type. A log can be used in at most - * one producer destination. - * - * Generated from protobuf field repeated .google.api.Logging.LoggingDestination producer_destinations = 1; - */ - private $producer_destinations; - /** - * Logging configurations for sending logs to the consumer project. - * There can be multiple consumer destinations, each one must have a - * different monitored resource type. A log can be used in at most - * one consumer destination. - * - * Generated from protobuf field repeated .google.api.Logging.LoggingDestination consumer_destinations = 2; - */ - private $consumer_destinations; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Api\Logging\LoggingDestination[] $producer_destinations - * Logging configurations for sending logs to the producer project. - * There can be multiple producer destinations, each one must have a - * different monitored resource type. A log can be used in at most - * one producer destination. - * @type \Google\Api\Logging\LoggingDestination[] $consumer_destinations - * Logging configurations for sending logs to the consumer project. - * There can be multiple consumer destinations, each one must have a - * different monitored resource type. A log can be used in at most - * one consumer destination. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Logging::initOnce(); - parent::__construct($data); - } - - /** - * Logging configurations for sending logs to the producer project. - * There can be multiple producer destinations, each one must have a - * different monitored resource type. A log can be used in at most - * one producer destination. - * - * Generated from protobuf field repeated .google.api.Logging.LoggingDestination producer_destinations = 1; - * @return RepeatedField<\Google\Api\Logging\LoggingDestination> - */ - public function getProducerDestinations() - { - return $this->producer_destinations; - } - - /** - * Logging configurations for sending logs to the producer project. - * There can be multiple producer destinations, each one must have a - * different monitored resource type. A log can be used in at most - * one producer destination. - * - * Generated from protobuf field repeated .google.api.Logging.LoggingDestination producer_destinations = 1; - * @param \Google\Api\Logging\LoggingDestination[] $var - * @return $this - */ - public function setProducerDestinations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\Logging\LoggingDestination::class); - $this->producer_destinations = $arr; - - return $this; - } - - /** - * Logging configurations for sending logs to the consumer project. - * There can be multiple consumer destinations, each one must have a - * different monitored resource type. A log can be used in at most - * one consumer destination. - * - * Generated from protobuf field repeated .google.api.Logging.LoggingDestination consumer_destinations = 2; - * @return RepeatedField<\Google\Api\Logging\LoggingDestination> - */ - public function getConsumerDestinations() - { - return $this->consumer_destinations; - } - - /** - * Logging configurations for sending logs to the consumer project. - * There can be multiple consumer destinations, each one must have a - * different monitored resource type. A log can be used in at most - * one consumer destination. - * - * Generated from protobuf field repeated .google.api.Logging.LoggingDestination consumer_destinations = 2; - * @param \Google\Api\Logging\LoggingDestination[] $var - * @return $this - */ - public function setConsumerDestinations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\Logging\LoggingDestination::class); - $this->consumer_destinations = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Logging/LoggingDestination.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Logging/LoggingDestination.php deleted file mode 100644 index 7c0d6fe7cf96..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Logging/LoggingDestination.php +++ /dev/null @@ -1,122 +0,0 @@ -google.api.Logging.LoggingDestination - */ -class LoggingDestination extends \Google\Protobuf\Internal\Message -{ - /** - * The monitored resource type. The type must be defined in the - * [Service.monitored_resources][google.api.Service.monitored_resources] - * section. - * - * Generated from protobuf field string monitored_resource = 3; - */ - protected $monitored_resource = ''; - /** - * Names of the logs to be sent to this destination. Each name must - * be defined in the [Service.logs][google.api.Service.logs] section. If the - * log name is not a domain scoped name, it will be automatically prefixed - * with the service name followed by "/". - * - * Generated from protobuf field repeated string logs = 1; - */ - private $logs; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $monitored_resource - * The monitored resource type. The type must be defined in the - * [Service.monitored_resources][google.api.Service.monitored_resources] - * section. - * @type string[] $logs - * Names of the logs to be sent to this destination. Each name must - * be defined in the [Service.logs][google.api.Service.logs] section. If the - * log name is not a domain scoped name, it will be automatically prefixed - * with the service name followed by "/". - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Logging::initOnce(); - parent::__construct($data); - } - - /** - * The monitored resource type. The type must be defined in the - * [Service.monitored_resources][google.api.Service.monitored_resources] - * section. - * - * Generated from protobuf field string monitored_resource = 3; - * @return string - */ - public function getMonitoredResource() - { - return $this->monitored_resource; - } - - /** - * The monitored resource type. The type must be defined in the - * [Service.monitored_resources][google.api.Service.monitored_resources] - * section. - * - * Generated from protobuf field string monitored_resource = 3; - * @param string $var - * @return $this - */ - public function setMonitoredResource($var) - { - GPBUtil::checkString($var, True); - $this->monitored_resource = $var; - - return $this; - } - - /** - * Names of the logs to be sent to this destination. Each name must - * be defined in the [Service.logs][google.api.Service.logs] section. If the - * log name is not a domain scoped name, it will be automatically prefixed - * with the service name followed by "/". - * - * Generated from protobuf field repeated string logs = 1; - * @return RepeatedField - */ - public function getLogs() - { - return $this->logs; - } - - /** - * Names of the logs to be sent to this destination. Each name must - * be defined in the [Service.logs][google.api.Service.logs] section. If the - * log name is not a domain scoped name, it will be automatically prefixed - * with the service name followed by "/". - * - * Generated from protobuf field repeated string logs = 1; - * @param string[] $var - * @return $this - */ - public function setLogs($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->logs = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MethodPolicy.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MethodPolicy.php deleted file mode 100644 index a8b98647a566..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MethodPolicy.php +++ /dev/null @@ -1,121 +0,0 @@ -google.api.MethodPolicy - */ -class MethodPolicy extends \Google\Protobuf\Internal\Message -{ - /** - * Selects a method to which these policies should be enforced, for example, - * "google.pubsub.v1.Subscriber.CreateSubscription". - * Refer to [selector][google.api.DocumentationRule.selector] for syntax - * details. - * NOTE: This field must not be set in the proto annotation. It will be - * automatically filled by the service config compiler . - * - * Generated from protobuf field string selector = 9; - */ - protected $selector = ''; - /** - * Policies that are applicable to the request message. - * - * Generated from protobuf field repeated .google.api.FieldPolicy request_policies = 2; - */ - private $request_policies; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $selector - * Selects a method to which these policies should be enforced, for example, - * "google.pubsub.v1.Subscriber.CreateSubscription". - * Refer to [selector][google.api.DocumentationRule.selector] for syntax - * details. - * NOTE: This field must not be set in the proto annotation. It will be - * automatically filled by the service config compiler . - * @type \Google\Api\FieldPolicy[] $request_policies - * Policies that are applicable to the request message. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Policy::initOnce(); - parent::__construct($data); - } - - /** - * Selects a method to which these policies should be enforced, for example, - * "google.pubsub.v1.Subscriber.CreateSubscription". - * Refer to [selector][google.api.DocumentationRule.selector] for syntax - * details. - * NOTE: This field must not be set in the proto annotation. It will be - * automatically filled by the service config compiler . - * - * Generated from protobuf field string selector = 9; - * @return string - */ - public function getSelector() - { - return $this->selector; - } - - /** - * Selects a method to which these policies should be enforced, for example, - * "google.pubsub.v1.Subscriber.CreateSubscription". - * Refer to [selector][google.api.DocumentationRule.selector] for syntax - * details. - * NOTE: This field must not be set in the proto annotation. It will be - * automatically filled by the service config compiler . - * - * Generated from protobuf field string selector = 9; - * @param string $var - * @return $this - */ - public function setSelector($var) - { - GPBUtil::checkString($var, True); - $this->selector = $var; - - return $this; - } - - /** - * Policies that are applicable to the request message. - * - * Generated from protobuf field repeated .google.api.FieldPolicy request_policies = 2; - * @return RepeatedField<\Google\Api\FieldPolicy> - */ - public function getRequestPolicies() - { - return $this->request_policies; - } - - /** - * Policies that are applicable to the request message. - * - * Generated from protobuf field repeated .google.api.FieldPolicy request_policies = 2; - * @param \Google\Api\FieldPolicy[] $var - * @return $this - */ - public function setRequestPolicies($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\FieldPolicy::class); - $this->request_policies = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MethodSettings.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MethodSettings.php deleted file mode 100644 index 1669fc575fe7..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MethodSettings.php +++ /dev/null @@ -1,321 +0,0 @@ -google.api.MethodSettings - */ -class MethodSettings extends \Google\Protobuf\Internal\Message -{ - /** - * The fully qualified name of the method, for which the options below apply. - * This is used to find the method to apply the options. - * Example: - * publishing: - * method_settings: - * - selector: google.storage.control.v2.StorageControl.CreateFolder - * # method settings for CreateFolder... - * - * Generated from protobuf field string selector = 1; - */ - protected $selector = ''; - /** - * Describes settings to use for long-running operations when generating - * API methods for RPCs. Complements RPCs that use the annotations in - * google/longrunning/operations.proto. - * Example of a YAML configuration:: - * publishing: - * method_settings: - * - selector: google.cloud.speech.v2.Speech.BatchRecognize - * long_running: - * initial_poll_delay: 60s # 1 minute - * poll_delay_multiplier: 1.5 - * max_poll_delay: 360s # 6 minutes - * total_poll_timeout: 54000s # 90 minutes - * - * Generated from protobuf field .google.api.MethodSettings.LongRunning long_running = 2; - */ - protected $long_running = null; - /** - * List of top-level fields of the request message, that should be - * automatically populated by the client libraries based on their - * (google.api.field_info).format. Currently supported format: UUID4. - * Example of a YAML configuration: - * publishing: - * method_settings: - * - selector: google.example.v1.ExampleService.CreateExample - * auto_populated_fields: - * - request_id - * - * Generated from protobuf field repeated string auto_populated_fields = 3; - */ - private $auto_populated_fields; - /** - * Batching configuration for an API method in client libraries. - * Example of a YAML configuration: - * publishing: - * method_settings: - * - selector: google.example.v1.ExampleService.BatchCreateExample - * batching: - * element_count_threshold: 1000 - * request_byte_threshold: 100000000 - * delay_threshold_millis: 10 - * - * Generated from protobuf field .google.api.BatchingConfigProto batching = 4; - */ - protected $batching = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $selector - * The fully qualified name of the method, for which the options below apply. - * This is used to find the method to apply the options. - * Example: - * publishing: - * method_settings: - * - selector: google.storage.control.v2.StorageControl.CreateFolder - * # method settings for CreateFolder... - * @type \Google\Api\MethodSettings\LongRunning $long_running - * Describes settings to use for long-running operations when generating - * API methods for RPCs. Complements RPCs that use the annotations in - * google/longrunning/operations.proto. - * Example of a YAML configuration:: - * publishing: - * method_settings: - * - selector: google.cloud.speech.v2.Speech.BatchRecognize - * long_running: - * initial_poll_delay: 60s # 1 minute - * poll_delay_multiplier: 1.5 - * max_poll_delay: 360s # 6 minutes - * total_poll_timeout: 54000s # 90 minutes - * @type string[] $auto_populated_fields - * List of top-level fields of the request message, that should be - * automatically populated by the client libraries based on their - * (google.api.field_info).format. Currently supported format: UUID4. - * Example of a YAML configuration: - * publishing: - * method_settings: - * - selector: google.example.v1.ExampleService.CreateExample - * auto_populated_fields: - * - request_id - * @type \Google\Api\BatchingConfigProto $batching - * Batching configuration for an API method in client libraries. - * Example of a YAML configuration: - * publishing: - * method_settings: - * - selector: google.example.v1.ExampleService.BatchCreateExample - * batching: - * element_count_threshold: 1000 - * request_byte_threshold: 100000000 - * delay_threshold_millis: 10 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Client::initOnce(); - parent::__construct($data); - } - - /** - * The fully qualified name of the method, for which the options below apply. - * This is used to find the method to apply the options. - * Example: - * publishing: - * method_settings: - * - selector: google.storage.control.v2.StorageControl.CreateFolder - * # method settings for CreateFolder... - * - * Generated from protobuf field string selector = 1; - * @return string - */ - public function getSelector() - { - return $this->selector; - } - - /** - * The fully qualified name of the method, for which the options below apply. - * This is used to find the method to apply the options. - * Example: - * publishing: - * method_settings: - * - selector: google.storage.control.v2.StorageControl.CreateFolder - * # method settings for CreateFolder... - * - * Generated from protobuf field string selector = 1; - * @param string $var - * @return $this - */ - public function setSelector($var) - { - GPBUtil::checkString($var, True); - $this->selector = $var; - - return $this; - } - - /** - * Describes settings to use for long-running operations when generating - * API methods for RPCs. Complements RPCs that use the annotations in - * google/longrunning/operations.proto. - * Example of a YAML configuration:: - * publishing: - * method_settings: - * - selector: google.cloud.speech.v2.Speech.BatchRecognize - * long_running: - * initial_poll_delay: 60s # 1 minute - * poll_delay_multiplier: 1.5 - * max_poll_delay: 360s # 6 minutes - * total_poll_timeout: 54000s # 90 minutes - * - * Generated from protobuf field .google.api.MethodSettings.LongRunning long_running = 2; - * @return \Google\Api\MethodSettings\LongRunning|null - */ - public function getLongRunning() - { - return $this->long_running; - } - - public function hasLongRunning() - { - return isset($this->long_running); - } - - public function clearLongRunning() - { - unset($this->long_running); - } - - /** - * Describes settings to use for long-running operations when generating - * API methods for RPCs. Complements RPCs that use the annotations in - * google/longrunning/operations.proto. - * Example of a YAML configuration:: - * publishing: - * method_settings: - * - selector: google.cloud.speech.v2.Speech.BatchRecognize - * long_running: - * initial_poll_delay: 60s # 1 minute - * poll_delay_multiplier: 1.5 - * max_poll_delay: 360s # 6 minutes - * total_poll_timeout: 54000s # 90 minutes - * - * Generated from protobuf field .google.api.MethodSettings.LongRunning long_running = 2; - * @param \Google\Api\MethodSettings\LongRunning $var - * @return $this - */ - public function setLongRunning($var) - { - GPBUtil::checkMessage($var, \Google\Api\MethodSettings\LongRunning::class); - $this->long_running = $var; - - return $this; - } - - /** - * List of top-level fields of the request message, that should be - * automatically populated by the client libraries based on their - * (google.api.field_info).format. Currently supported format: UUID4. - * Example of a YAML configuration: - * publishing: - * method_settings: - * - selector: google.example.v1.ExampleService.CreateExample - * auto_populated_fields: - * - request_id - * - * Generated from protobuf field repeated string auto_populated_fields = 3; - * @return RepeatedField - */ - public function getAutoPopulatedFields() - { - return $this->auto_populated_fields; - } - - /** - * List of top-level fields of the request message, that should be - * automatically populated by the client libraries based on their - * (google.api.field_info).format. Currently supported format: UUID4. - * Example of a YAML configuration: - * publishing: - * method_settings: - * - selector: google.example.v1.ExampleService.CreateExample - * auto_populated_fields: - * - request_id - * - * Generated from protobuf field repeated string auto_populated_fields = 3; - * @param string[] $var - * @return $this - */ - public function setAutoPopulatedFields($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->auto_populated_fields = $arr; - - return $this; - } - - /** - * Batching configuration for an API method in client libraries. - * Example of a YAML configuration: - * publishing: - * method_settings: - * - selector: google.example.v1.ExampleService.BatchCreateExample - * batching: - * element_count_threshold: 1000 - * request_byte_threshold: 100000000 - * delay_threshold_millis: 10 - * - * Generated from protobuf field .google.api.BatchingConfigProto batching = 4; - * @return \Google\Api\BatchingConfigProto|null - */ - public function getBatching() - { - return $this->batching; - } - - public function hasBatching() - { - return isset($this->batching); - } - - public function clearBatching() - { - unset($this->batching); - } - - /** - * Batching configuration for an API method in client libraries. - * Example of a YAML configuration: - * publishing: - * method_settings: - * - selector: google.example.v1.ExampleService.BatchCreateExample - * batching: - * element_count_threshold: 1000 - * request_byte_threshold: 100000000 - * delay_threshold_millis: 10 - * - * Generated from protobuf field .google.api.BatchingConfigProto batching = 4; - * @param \Google\Api\BatchingConfigProto $var - * @return $this - */ - public function setBatching($var) - { - GPBUtil::checkMessage($var, \Google\Api\BatchingConfigProto::class); - $this->batching = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MethodSettings/LongRunning.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MethodSettings/LongRunning.php deleted file mode 100644 index 075592a4e868..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MethodSettings/LongRunning.php +++ /dev/null @@ -1,223 +0,0 @@ -google.api.MethodSettings.LongRunning - */ -class LongRunning extends \Google\Protobuf\Internal\Message -{ - /** - * Initial delay after which the first poll request will be made. - * Default value: 5 seconds. - * - * Generated from protobuf field .google.protobuf.Duration initial_poll_delay = 1; - */ - protected $initial_poll_delay = null; - /** - * Multiplier to gradually increase delay between subsequent polls until it - * reaches max_poll_delay. - * Default value: 1.5. - * - * Generated from protobuf field float poll_delay_multiplier = 2; - */ - protected $poll_delay_multiplier = 0.0; - /** - * Maximum time between two subsequent poll requests. - * Default value: 45 seconds. - * - * Generated from protobuf field .google.protobuf.Duration max_poll_delay = 3; - */ - protected $max_poll_delay = null; - /** - * Total polling timeout. - * Default value: 5 minutes. - * - * Generated from protobuf field .google.protobuf.Duration total_poll_timeout = 4; - */ - protected $total_poll_timeout = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Duration $initial_poll_delay - * Initial delay after which the first poll request will be made. - * Default value: 5 seconds. - * @type float $poll_delay_multiplier - * Multiplier to gradually increase delay between subsequent polls until it - * reaches max_poll_delay. - * Default value: 1.5. - * @type \Google\Protobuf\Duration $max_poll_delay - * Maximum time between two subsequent poll requests. - * Default value: 45 seconds. - * @type \Google\Protobuf\Duration $total_poll_timeout - * Total polling timeout. - * Default value: 5 minutes. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Client::initOnce(); - parent::__construct($data); - } - - /** - * Initial delay after which the first poll request will be made. - * Default value: 5 seconds. - * - * Generated from protobuf field .google.protobuf.Duration initial_poll_delay = 1; - * @return \Google\Protobuf\Duration|null - */ - public function getInitialPollDelay() - { - return $this->initial_poll_delay; - } - - public function hasInitialPollDelay() - { - return isset($this->initial_poll_delay); - } - - public function clearInitialPollDelay() - { - unset($this->initial_poll_delay); - } - - /** - * Initial delay after which the first poll request will be made. - * Default value: 5 seconds. - * - * Generated from protobuf field .google.protobuf.Duration initial_poll_delay = 1; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setInitialPollDelay($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->initial_poll_delay = $var; - - return $this; - } - - /** - * Multiplier to gradually increase delay between subsequent polls until it - * reaches max_poll_delay. - * Default value: 1.5. - * - * Generated from protobuf field float poll_delay_multiplier = 2; - * @return float - */ - public function getPollDelayMultiplier() - { - return $this->poll_delay_multiplier; - } - - /** - * Multiplier to gradually increase delay between subsequent polls until it - * reaches max_poll_delay. - * Default value: 1.5. - * - * Generated from protobuf field float poll_delay_multiplier = 2; - * @param float $var - * @return $this - */ - public function setPollDelayMultiplier($var) - { - GPBUtil::checkFloat($var); - $this->poll_delay_multiplier = $var; - - return $this; - } - - /** - * Maximum time between two subsequent poll requests. - * Default value: 45 seconds. - * - * Generated from protobuf field .google.protobuf.Duration max_poll_delay = 3; - * @return \Google\Protobuf\Duration|null - */ - public function getMaxPollDelay() - { - return $this->max_poll_delay; - } - - public function hasMaxPollDelay() - { - return isset($this->max_poll_delay); - } - - public function clearMaxPollDelay() - { - unset($this->max_poll_delay); - } - - /** - * Maximum time between two subsequent poll requests. - * Default value: 45 seconds. - * - * Generated from protobuf field .google.protobuf.Duration max_poll_delay = 3; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setMaxPollDelay($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->max_poll_delay = $var; - - return $this; - } - - /** - * Total polling timeout. - * Default value: 5 minutes. - * - * Generated from protobuf field .google.protobuf.Duration total_poll_timeout = 4; - * @return \Google\Protobuf\Duration|null - */ - public function getTotalPollTimeout() - { - return $this->total_poll_timeout; - } - - public function hasTotalPollTimeout() - { - return isset($this->total_poll_timeout); - } - - public function clearTotalPollTimeout() - { - unset($this->total_poll_timeout); - } - - /** - * Total polling timeout. - * Default value: 5 minutes. - * - * Generated from protobuf field .google.protobuf.Duration total_poll_timeout = 4; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setTotalPollTimeout($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->total_poll_timeout = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Metric.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Metric.php deleted file mode 100644 index cbcfc0aa77fa..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Metric.php +++ /dev/null @@ -1,114 +0,0 @@ -google.api.Metric - */ -class Metric extends \Google\Protobuf\Internal\Message -{ - /** - * An existing metric type, see - * [google.api.MetricDescriptor][google.api.MetricDescriptor]. For example, - * `custom.googleapis.com/invoice/paid/amount`. - * - * Generated from protobuf field string type = 3; - */ - protected $type = ''; - /** - * The set of label values that uniquely identify this metric. All - * labels listed in the `MetricDescriptor` must be assigned values. - * - * Generated from protobuf field map labels = 2; - */ - private $labels; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $type - * An existing metric type, see - * [google.api.MetricDescriptor][google.api.MetricDescriptor]. For example, - * `custom.googleapis.com/invoice/paid/amount`. - * @type array|\Google\Protobuf\Internal\MapField $labels - * The set of label values that uniquely identify this metric. All - * labels listed in the `MetricDescriptor` must be assigned values. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Metric::initOnce(); - parent::__construct($data); - } - - /** - * An existing metric type, see - * [google.api.MetricDescriptor][google.api.MetricDescriptor]. For example, - * `custom.googleapis.com/invoice/paid/amount`. - * - * Generated from protobuf field string type = 3; - * @return string - */ - public function getType() - { - return $this->type; - } - - /** - * An existing metric type, see - * [google.api.MetricDescriptor][google.api.MetricDescriptor]. For example, - * `custom.googleapis.com/invoice/paid/amount`. - * - * Generated from protobuf field string type = 3; - * @param string $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkString($var, True); - $this->type = $var; - - return $this; - } - - /** - * The set of label values that uniquely identify this metric. All - * labels listed in the `MetricDescriptor` must be assigned values. - * - * Generated from protobuf field map labels = 2; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * The set of label values that uniquely identify this metric. All - * labels listed in the `MetricDescriptor` must be assigned values. - * - * Generated from protobuf field map labels = 2; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricDescriptor.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricDescriptor.php deleted file mode 100644 index 78b29e6d9a0d..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricDescriptor.php +++ /dev/null @@ -1,831 +0,0 @@ -google.api.MetricDescriptor - */ -class MetricDescriptor extends \Google\Protobuf\Internal\Message -{ - /** - * The resource name of the metric descriptor. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * The metric type, including its DNS name prefix. The type is not - * URL-encoded. All user-defined metric types have the DNS name - * `custom.googleapis.com` or `external.googleapis.com`. Metric types should - * use a natural hierarchical grouping. For example: - * "custom.googleapis.com/invoice/paid/amount" - * "external.googleapis.com/prometheus/up" - * "appengine.googleapis.com/http/server/response_latencies" - * - * Generated from protobuf field string type = 8; - */ - protected $type = ''; - /** - * The set of labels that can be used to describe a specific - * instance of this metric type. For example, the - * `appengine.googleapis.com/http/server/response_latencies` metric - * type has a label for the HTTP response code, `response_code`, so - * you can look at latencies for successful responses or just - * for responses that failed. - * - * Generated from protobuf field repeated .google.api.LabelDescriptor labels = 2; - */ - private $labels; - /** - * Whether the metric records instantaneous values, changes to a value, etc. - * Some combinations of `metric_kind` and `value_type` might not be supported. - * - * Generated from protobuf field .google.api.MetricDescriptor.MetricKind metric_kind = 3; - */ - protected $metric_kind = 0; - /** - * Whether the measurement is an integer, a floating-point number, etc. - * Some combinations of `metric_kind` and `value_type` might not be supported. - * - * Generated from protobuf field .google.api.MetricDescriptor.ValueType value_type = 4; - */ - protected $value_type = 0; - /** - * The units in which the metric value is reported. It is only applicable - * if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit` - * defines the representation of the stored metric values. - * Different systems might scale the values to be more easily displayed (so a - * value of `0.02kBy` _might_ be displayed as `20By`, and a value of - * `3523kBy` _might_ be displayed as `3.5MBy`). However, if the `unit` is - * `kBy`, then the value of the metric is always in thousands of bytes, no - * matter how it might be displayed. - * If you want a custom metric to record the exact number of CPU-seconds used - * by a job, you can create an `INT64 CUMULATIVE` metric whose `unit` is - * `s{CPU}` (or equivalently `1s{CPU}` or just `s`). If the job uses 12,005 - * CPU-seconds, then the value is written as `12005`. - * Alternatively, if you want a custom metric to record data in a more - * granular way, you can create a `DOUBLE CUMULATIVE` metric whose `unit` is - * `ks{CPU}`, and then write the value `12.005` (which is `12005/1000`), - * or use `Kis{CPU}` and write `11.723` (which is `12005/1024`). - * The supported units are a subset of [The Unified Code for Units of - * Measure](https://unitsofmeasure.org/ucum.html) standard: - * **Basic units (UNIT)** - * * `bit` bit - * * `By` byte - * * `s` second - * * `min` minute - * * `h` hour - * * `d` day - * * `1` dimensionless - * **Prefixes (PREFIX)** - * * `k` kilo (10^3) - * * `M` mega (10^6) - * * `G` giga (10^9) - * * `T` tera (10^12) - * * `P` peta (10^15) - * * `E` exa (10^18) - * * `Z` zetta (10^21) - * * `Y` yotta (10^24) - * * `m` milli (10^-3) - * * `u` micro (10^-6) - * * `n` nano (10^-9) - * * `p` pico (10^-12) - * * `f` femto (10^-15) - * * `a` atto (10^-18) - * * `z` zepto (10^-21) - * * `y` yocto (10^-24) - * * `Ki` kibi (2^10) - * * `Mi` mebi (2^20) - * * `Gi` gibi (2^30) - * * `Ti` tebi (2^40) - * * `Pi` pebi (2^50) - * **Grammar** - * The grammar also includes these connectors: - * * `/` division or ratio (as an infix operator). For examples, - * `kBy/{email}` or `MiBy/10ms` (although you should almost never - * have `/s` in a metric `unit`; rates should always be computed at - * query time from the underlying cumulative or delta value). - * * `.` multiplication or composition (as an infix operator). For - * examples, `GBy.d` or `k{watt}.h`. - * The grammar for a unit is as follows: - * Expression = Component { "." Component } { "/" Component } ; - * Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ] - * | Annotation - * | "1" - * ; - * Annotation = "{" NAME "}" ; - * Notes: - * * `Annotation` is just a comment if it follows a `UNIT`. If the annotation - * is used alone, then the unit is equivalent to `1`. For examples, - * `{request}/s == 1/s`, `By{transmitted}/s == By/s`. - * * `NAME` is a sequence of non-blank printable ASCII characters not - * containing `{` or `}`. - * * `1` represents a unitary [dimensionless - * unit](https://en.wikipedia.org/wiki/Dimensionless_quantity) of 1, such - * as in `1/s`. It is typically used when none of the basic units are - * appropriate. For example, "new users per day" can be represented as - * `1/d` or `{new-users}/d` (and a metric value `5` would mean "5 new - * users). Alternatively, "thousands of page views per day" would be - * represented as `1000/d` or `k1/d` or `k{page_views}/d` (and a metric - * value of `5.3` would mean "5300 page views per day"). - * * `%` represents dimensionless value of 1/100, and annotates values giving - * a percentage (so the metric values are typically in the range of 0..100, - * and a metric value `3` means "3 percent"). - * * `10^2.%` indicates a metric contains a ratio, typically in the range - * 0..1, that will be multiplied by 100 and displayed as a percentage - * (so a metric value `0.03` means "3 percent"). - * - * Generated from protobuf field string unit = 5; - */ - protected $unit = ''; - /** - * A detailed description of the metric, which can be used in documentation. - * - * Generated from protobuf field string description = 6; - */ - protected $description = ''; - /** - * A concise name for the metric, which can be displayed in user interfaces. - * Use sentence case without an ending period, for example "Request count". - * This field is optional but it is recommended to be set for any metrics - * associated with user-visible concepts, such as Quota. - * - * Generated from protobuf field string display_name = 7; - */ - protected $display_name = ''; - /** - * Optional. Metadata which can be used to guide usage of the metric. - * - * Generated from protobuf field .google.api.MetricDescriptor.MetricDescriptorMetadata metadata = 10; - */ - protected $metadata = null; - /** - * Optional. The launch stage of the metric definition. - * - * Generated from protobuf field .google.api.LaunchStage launch_stage = 12; - */ - protected $launch_stage = 0; - /** - * Read-only. If present, then a [time - * series][google.monitoring.v3.TimeSeries], which is identified partially by - * a metric type and a - * [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor], that - * is associated with this metric type can only be associated with one of the - * monitored resource types listed here. - * - * Generated from protobuf field repeated string monitored_resource_types = 13; - */ - private $monitored_resource_types; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The resource name of the metric descriptor. - * @type string $type - * The metric type, including its DNS name prefix. The type is not - * URL-encoded. All user-defined metric types have the DNS name - * `custom.googleapis.com` or `external.googleapis.com`. Metric types should - * use a natural hierarchical grouping. For example: - * "custom.googleapis.com/invoice/paid/amount" - * "external.googleapis.com/prometheus/up" - * "appengine.googleapis.com/http/server/response_latencies" - * @type \Google\Api\LabelDescriptor[] $labels - * The set of labels that can be used to describe a specific - * instance of this metric type. For example, the - * `appengine.googleapis.com/http/server/response_latencies` metric - * type has a label for the HTTP response code, `response_code`, so - * you can look at latencies for successful responses or just - * for responses that failed. - * @type int $metric_kind - * Whether the metric records instantaneous values, changes to a value, etc. - * Some combinations of `metric_kind` and `value_type` might not be supported. - * @type int $value_type - * Whether the measurement is an integer, a floating-point number, etc. - * Some combinations of `metric_kind` and `value_type` might not be supported. - * @type string $unit - * The units in which the metric value is reported. It is only applicable - * if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit` - * defines the representation of the stored metric values. - * Different systems might scale the values to be more easily displayed (so a - * value of `0.02kBy` _might_ be displayed as `20By`, and a value of - * `3523kBy` _might_ be displayed as `3.5MBy`). However, if the `unit` is - * `kBy`, then the value of the metric is always in thousands of bytes, no - * matter how it might be displayed. - * If you want a custom metric to record the exact number of CPU-seconds used - * by a job, you can create an `INT64 CUMULATIVE` metric whose `unit` is - * `s{CPU}` (or equivalently `1s{CPU}` or just `s`). If the job uses 12,005 - * CPU-seconds, then the value is written as `12005`. - * Alternatively, if you want a custom metric to record data in a more - * granular way, you can create a `DOUBLE CUMULATIVE` metric whose `unit` is - * `ks{CPU}`, and then write the value `12.005` (which is `12005/1000`), - * or use `Kis{CPU}` and write `11.723` (which is `12005/1024`). - * The supported units are a subset of [The Unified Code for Units of - * Measure](https://unitsofmeasure.org/ucum.html) standard: - * **Basic units (UNIT)** - * * `bit` bit - * * `By` byte - * * `s` second - * * `min` minute - * * `h` hour - * * `d` day - * * `1` dimensionless - * **Prefixes (PREFIX)** - * * `k` kilo (10^3) - * * `M` mega (10^6) - * * `G` giga (10^9) - * * `T` tera (10^12) - * * `P` peta (10^15) - * * `E` exa (10^18) - * * `Z` zetta (10^21) - * * `Y` yotta (10^24) - * * `m` milli (10^-3) - * * `u` micro (10^-6) - * * `n` nano (10^-9) - * * `p` pico (10^-12) - * * `f` femto (10^-15) - * * `a` atto (10^-18) - * * `z` zepto (10^-21) - * * `y` yocto (10^-24) - * * `Ki` kibi (2^10) - * * `Mi` mebi (2^20) - * * `Gi` gibi (2^30) - * * `Ti` tebi (2^40) - * * `Pi` pebi (2^50) - * **Grammar** - * The grammar also includes these connectors: - * * `/` division or ratio (as an infix operator). For examples, - * `kBy/{email}` or `MiBy/10ms` (although you should almost never - * have `/s` in a metric `unit`; rates should always be computed at - * query time from the underlying cumulative or delta value). - * * `.` multiplication or composition (as an infix operator). For - * examples, `GBy.d` or `k{watt}.h`. - * The grammar for a unit is as follows: - * Expression = Component { "." Component } { "/" Component } ; - * Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ] - * | Annotation - * | "1" - * ; - * Annotation = "{" NAME "}" ; - * Notes: - * * `Annotation` is just a comment if it follows a `UNIT`. If the annotation - * is used alone, then the unit is equivalent to `1`. For examples, - * `{request}/s == 1/s`, `By{transmitted}/s == By/s`. - * * `NAME` is a sequence of non-blank printable ASCII characters not - * containing `{` or `}`. - * * `1` represents a unitary [dimensionless - * unit](https://en.wikipedia.org/wiki/Dimensionless_quantity) of 1, such - * as in `1/s`. It is typically used when none of the basic units are - * appropriate. For example, "new users per day" can be represented as - * `1/d` or `{new-users}/d` (and a metric value `5` would mean "5 new - * users). Alternatively, "thousands of page views per day" would be - * represented as `1000/d` or `k1/d` or `k{page_views}/d` (and a metric - * value of `5.3` would mean "5300 page views per day"). - * * `%` represents dimensionless value of 1/100, and annotates values giving - * a percentage (so the metric values are typically in the range of 0..100, - * and a metric value `3` means "3 percent"). - * * `10^2.%` indicates a metric contains a ratio, typically in the range - * 0..1, that will be multiplied by 100 and displayed as a percentage - * (so a metric value `0.03` means "3 percent"). - * @type string $description - * A detailed description of the metric, which can be used in documentation. - * @type string $display_name - * A concise name for the metric, which can be displayed in user interfaces. - * Use sentence case without an ending period, for example "Request count". - * This field is optional but it is recommended to be set for any metrics - * associated with user-visible concepts, such as Quota. - * @type \Google\Api\MetricDescriptor\MetricDescriptorMetadata $metadata - * Optional. Metadata which can be used to guide usage of the metric. - * @type int $launch_stage - * Optional. The launch stage of the metric definition. - * @type string[] $monitored_resource_types - * Read-only. If present, then a [time - * series][google.monitoring.v3.TimeSeries], which is identified partially by - * a metric type and a - * [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor], that - * is associated with this metric type can only be associated with one of the - * monitored resource types listed here. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Metric::initOnce(); - parent::__construct($data); - } - - /** - * The resource name of the metric descriptor. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The resource name of the metric descriptor. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The metric type, including its DNS name prefix. The type is not - * URL-encoded. All user-defined metric types have the DNS name - * `custom.googleapis.com` or `external.googleapis.com`. Metric types should - * use a natural hierarchical grouping. For example: - * "custom.googleapis.com/invoice/paid/amount" - * "external.googleapis.com/prometheus/up" - * "appengine.googleapis.com/http/server/response_latencies" - * - * Generated from protobuf field string type = 8; - * @return string - */ - public function getType() - { - return $this->type; - } - - /** - * The metric type, including its DNS name prefix. The type is not - * URL-encoded. All user-defined metric types have the DNS name - * `custom.googleapis.com` or `external.googleapis.com`. Metric types should - * use a natural hierarchical grouping. For example: - * "custom.googleapis.com/invoice/paid/amount" - * "external.googleapis.com/prometheus/up" - * "appengine.googleapis.com/http/server/response_latencies" - * - * Generated from protobuf field string type = 8; - * @param string $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkString($var, True); - $this->type = $var; - - return $this; - } - - /** - * The set of labels that can be used to describe a specific - * instance of this metric type. For example, the - * `appengine.googleapis.com/http/server/response_latencies` metric - * type has a label for the HTTP response code, `response_code`, so - * you can look at latencies for successful responses or just - * for responses that failed. - * - * Generated from protobuf field repeated .google.api.LabelDescriptor labels = 2; - * @return RepeatedField<\Google\Api\LabelDescriptor> - */ - public function getLabels() - { - return $this->labels; - } - - /** - * The set of labels that can be used to describe a specific - * instance of this metric type. For example, the - * `appengine.googleapis.com/http/server/response_latencies` metric - * type has a label for the HTTP response code, `response_code`, so - * you can look at latencies for successful responses or just - * for responses that failed. - * - * Generated from protobuf field repeated .google.api.LabelDescriptor labels = 2; - * @param \Google\Api\LabelDescriptor[] $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\LabelDescriptor::class); - $this->labels = $arr; - - return $this; - } - - /** - * Whether the metric records instantaneous values, changes to a value, etc. - * Some combinations of `metric_kind` and `value_type` might not be supported. - * - * Generated from protobuf field .google.api.MetricDescriptor.MetricKind metric_kind = 3; - * @return int - */ - public function getMetricKind() - { - return $this->metric_kind; - } - - /** - * Whether the metric records instantaneous values, changes to a value, etc. - * Some combinations of `metric_kind` and `value_type` might not be supported. - * - * Generated from protobuf field .google.api.MetricDescriptor.MetricKind metric_kind = 3; - * @param int $var - * @return $this - */ - public function setMetricKind($var) - { - GPBUtil::checkEnum($var, \Google\Api\MetricDescriptor\MetricKind::class); - $this->metric_kind = $var; - - return $this; - } - - /** - * Whether the measurement is an integer, a floating-point number, etc. - * Some combinations of `metric_kind` and `value_type` might not be supported. - * - * Generated from protobuf field .google.api.MetricDescriptor.ValueType value_type = 4; - * @return int - */ - public function getValueType() - { - return $this->value_type; - } - - /** - * Whether the measurement is an integer, a floating-point number, etc. - * Some combinations of `metric_kind` and `value_type` might not be supported. - * - * Generated from protobuf field .google.api.MetricDescriptor.ValueType value_type = 4; - * @param int $var - * @return $this - */ - public function setValueType($var) - { - GPBUtil::checkEnum($var, \Google\Api\MetricDescriptor\ValueType::class); - $this->value_type = $var; - - return $this; - } - - /** - * The units in which the metric value is reported. It is only applicable - * if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit` - * defines the representation of the stored metric values. - * Different systems might scale the values to be more easily displayed (so a - * value of `0.02kBy` _might_ be displayed as `20By`, and a value of - * `3523kBy` _might_ be displayed as `3.5MBy`). However, if the `unit` is - * `kBy`, then the value of the metric is always in thousands of bytes, no - * matter how it might be displayed. - * If you want a custom metric to record the exact number of CPU-seconds used - * by a job, you can create an `INT64 CUMULATIVE` metric whose `unit` is - * `s{CPU}` (or equivalently `1s{CPU}` or just `s`). If the job uses 12,005 - * CPU-seconds, then the value is written as `12005`. - * Alternatively, if you want a custom metric to record data in a more - * granular way, you can create a `DOUBLE CUMULATIVE` metric whose `unit` is - * `ks{CPU}`, and then write the value `12.005` (which is `12005/1000`), - * or use `Kis{CPU}` and write `11.723` (which is `12005/1024`). - * The supported units are a subset of [The Unified Code for Units of - * Measure](https://unitsofmeasure.org/ucum.html) standard: - * **Basic units (UNIT)** - * * `bit` bit - * * `By` byte - * * `s` second - * * `min` minute - * * `h` hour - * * `d` day - * * `1` dimensionless - * **Prefixes (PREFIX)** - * * `k` kilo (10^3) - * * `M` mega (10^6) - * * `G` giga (10^9) - * * `T` tera (10^12) - * * `P` peta (10^15) - * * `E` exa (10^18) - * * `Z` zetta (10^21) - * * `Y` yotta (10^24) - * * `m` milli (10^-3) - * * `u` micro (10^-6) - * * `n` nano (10^-9) - * * `p` pico (10^-12) - * * `f` femto (10^-15) - * * `a` atto (10^-18) - * * `z` zepto (10^-21) - * * `y` yocto (10^-24) - * * `Ki` kibi (2^10) - * * `Mi` mebi (2^20) - * * `Gi` gibi (2^30) - * * `Ti` tebi (2^40) - * * `Pi` pebi (2^50) - * **Grammar** - * The grammar also includes these connectors: - * * `/` division or ratio (as an infix operator). For examples, - * `kBy/{email}` or `MiBy/10ms` (although you should almost never - * have `/s` in a metric `unit`; rates should always be computed at - * query time from the underlying cumulative or delta value). - * * `.` multiplication or composition (as an infix operator). For - * examples, `GBy.d` or `k{watt}.h`. - * The grammar for a unit is as follows: - * Expression = Component { "." Component } { "/" Component } ; - * Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ] - * | Annotation - * | "1" - * ; - * Annotation = "{" NAME "}" ; - * Notes: - * * `Annotation` is just a comment if it follows a `UNIT`. If the annotation - * is used alone, then the unit is equivalent to `1`. For examples, - * `{request}/s == 1/s`, `By{transmitted}/s == By/s`. - * * `NAME` is a sequence of non-blank printable ASCII characters not - * containing `{` or `}`. - * * `1` represents a unitary [dimensionless - * unit](https://en.wikipedia.org/wiki/Dimensionless_quantity) of 1, such - * as in `1/s`. It is typically used when none of the basic units are - * appropriate. For example, "new users per day" can be represented as - * `1/d` or `{new-users}/d` (and a metric value `5` would mean "5 new - * users). Alternatively, "thousands of page views per day" would be - * represented as `1000/d` or `k1/d` or `k{page_views}/d` (and a metric - * value of `5.3` would mean "5300 page views per day"). - * * `%` represents dimensionless value of 1/100, and annotates values giving - * a percentage (so the metric values are typically in the range of 0..100, - * and a metric value `3` means "3 percent"). - * * `10^2.%` indicates a metric contains a ratio, typically in the range - * 0..1, that will be multiplied by 100 and displayed as a percentage - * (so a metric value `0.03` means "3 percent"). - * - * Generated from protobuf field string unit = 5; - * @return string - */ - public function getUnit() - { - return $this->unit; - } - - /** - * The units in which the metric value is reported. It is only applicable - * if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit` - * defines the representation of the stored metric values. - * Different systems might scale the values to be more easily displayed (so a - * value of `0.02kBy` _might_ be displayed as `20By`, and a value of - * `3523kBy` _might_ be displayed as `3.5MBy`). However, if the `unit` is - * `kBy`, then the value of the metric is always in thousands of bytes, no - * matter how it might be displayed. - * If you want a custom metric to record the exact number of CPU-seconds used - * by a job, you can create an `INT64 CUMULATIVE` metric whose `unit` is - * `s{CPU}` (or equivalently `1s{CPU}` or just `s`). If the job uses 12,005 - * CPU-seconds, then the value is written as `12005`. - * Alternatively, if you want a custom metric to record data in a more - * granular way, you can create a `DOUBLE CUMULATIVE` metric whose `unit` is - * `ks{CPU}`, and then write the value `12.005` (which is `12005/1000`), - * or use `Kis{CPU}` and write `11.723` (which is `12005/1024`). - * The supported units are a subset of [The Unified Code for Units of - * Measure](https://unitsofmeasure.org/ucum.html) standard: - * **Basic units (UNIT)** - * * `bit` bit - * * `By` byte - * * `s` second - * * `min` minute - * * `h` hour - * * `d` day - * * `1` dimensionless - * **Prefixes (PREFIX)** - * * `k` kilo (10^3) - * * `M` mega (10^6) - * * `G` giga (10^9) - * * `T` tera (10^12) - * * `P` peta (10^15) - * * `E` exa (10^18) - * * `Z` zetta (10^21) - * * `Y` yotta (10^24) - * * `m` milli (10^-3) - * * `u` micro (10^-6) - * * `n` nano (10^-9) - * * `p` pico (10^-12) - * * `f` femto (10^-15) - * * `a` atto (10^-18) - * * `z` zepto (10^-21) - * * `y` yocto (10^-24) - * * `Ki` kibi (2^10) - * * `Mi` mebi (2^20) - * * `Gi` gibi (2^30) - * * `Ti` tebi (2^40) - * * `Pi` pebi (2^50) - * **Grammar** - * The grammar also includes these connectors: - * * `/` division or ratio (as an infix operator). For examples, - * `kBy/{email}` or `MiBy/10ms` (although you should almost never - * have `/s` in a metric `unit`; rates should always be computed at - * query time from the underlying cumulative or delta value). - * * `.` multiplication or composition (as an infix operator). For - * examples, `GBy.d` or `k{watt}.h`. - * The grammar for a unit is as follows: - * Expression = Component { "." Component } { "/" Component } ; - * Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ] - * | Annotation - * | "1" - * ; - * Annotation = "{" NAME "}" ; - * Notes: - * * `Annotation` is just a comment if it follows a `UNIT`. If the annotation - * is used alone, then the unit is equivalent to `1`. For examples, - * `{request}/s == 1/s`, `By{transmitted}/s == By/s`. - * * `NAME` is a sequence of non-blank printable ASCII characters not - * containing `{` or `}`. - * * `1` represents a unitary [dimensionless - * unit](https://en.wikipedia.org/wiki/Dimensionless_quantity) of 1, such - * as in `1/s`. It is typically used when none of the basic units are - * appropriate. For example, "new users per day" can be represented as - * `1/d` or `{new-users}/d` (and a metric value `5` would mean "5 new - * users). Alternatively, "thousands of page views per day" would be - * represented as `1000/d` or `k1/d` or `k{page_views}/d` (and a metric - * value of `5.3` would mean "5300 page views per day"). - * * `%` represents dimensionless value of 1/100, and annotates values giving - * a percentage (so the metric values are typically in the range of 0..100, - * and a metric value `3` means "3 percent"). - * * `10^2.%` indicates a metric contains a ratio, typically in the range - * 0..1, that will be multiplied by 100 and displayed as a percentage - * (so a metric value `0.03` means "3 percent"). - * - * Generated from protobuf field string unit = 5; - * @param string $var - * @return $this - */ - public function setUnit($var) - { - GPBUtil::checkString($var, True); - $this->unit = $var; - - return $this; - } - - /** - * A detailed description of the metric, which can be used in documentation. - * - * Generated from protobuf field string description = 6; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * A detailed description of the metric, which can be used in documentation. - * - * Generated from protobuf field string description = 6; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * A concise name for the metric, which can be displayed in user interfaces. - * Use sentence case without an ending period, for example "Request count". - * This field is optional but it is recommended to be set for any metrics - * associated with user-visible concepts, such as Quota. - * - * Generated from protobuf field string display_name = 7; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * A concise name for the metric, which can be displayed in user interfaces. - * Use sentence case without an ending period, for example "Request count". - * This field is optional but it is recommended to be set for any metrics - * associated with user-visible concepts, such as Quota. - * - * Generated from protobuf field string display_name = 7; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Optional. Metadata which can be used to guide usage of the metric. - * - * Generated from protobuf field .google.api.MetricDescriptor.MetricDescriptorMetadata metadata = 10; - * @return \Google\Api\MetricDescriptor\MetricDescriptorMetadata|null - */ - public function getMetadata() - { - return $this->metadata; - } - - public function hasMetadata() - { - return isset($this->metadata); - } - - public function clearMetadata() - { - unset($this->metadata); - } - - /** - * Optional. Metadata which can be used to guide usage of the metric. - * - * Generated from protobuf field .google.api.MetricDescriptor.MetricDescriptorMetadata metadata = 10; - * @param \Google\Api\MetricDescriptor\MetricDescriptorMetadata $var - * @return $this - */ - public function setMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Api\MetricDescriptor\MetricDescriptorMetadata::class); - $this->metadata = $var; - - return $this; - } - - /** - * Optional. The launch stage of the metric definition. - * - * Generated from protobuf field .google.api.LaunchStage launch_stage = 12; - * @return int - */ - public function getLaunchStage() - { - return $this->launch_stage; - } - - /** - * Optional. The launch stage of the metric definition. - * - * Generated from protobuf field .google.api.LaunchStage launch_stage = 12; - * @param int $var - * @return $this - */ - public function setLaunchStage($var) - { - GPBUtil::checkEnum($var, \Google\Api\LaunchStage::class); - $this->launch_stage = $var; - - return $this; - } - - /** - * Read-only. If present, then a [time - * series][google.monitoring.v3.TimeSeries], which is identified partially by - * a metric type and a - * [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor], that - * is associated with this metric type can only be associated with one of the - * monitored resource types listed here. - * - * Generated from protobuf field repeated string monitored_resource_types = 13; - * @return RepeatedField - */ - public function getMonitoredResourceTypes() - { - return $this->monitored_resource_types; - } - - /** - * Read-only. If present, then a [time - * series][google.monitoring.v3.TimeSeries], which is identified partially by - * a metric type and a - * [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor], that - * is associated with this metric type can only be associated with one of the - * monitored resource types listed here. - * - * Generated from protobuf field repeated string monitored_resource_types = 13; - * @param string[] $var - * @return $this - */ - public function setMonitoredResourceTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->monitored_resource_types = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricDescriptor/MetricDescriptorMetadata.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricDescriptor/MetricDescriptorMetadata.php deleted file mode 100644 index a7fab28ba357..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricDescriptor/MetricDescriptorMetadata.php +++ /dev/null @@ -1,224 +0,0 @@ -google.api.MetricDescriptor.MetricDescriptorMetadata - */ -class MetricDescriptorMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. Must use the - * [MetricDescriptor.launch_stage][google.api.MetricDescriptor.launch_stage] - * instead. - * - * Generated from protobuf field .google.api.LaunchStage launch_stage = 1 [deprecated = true]; - * @deprecated - */ - protected $launch_stage = 0; - /** - * The sampling period of metric data points. For metrics which are written - * periodically, consecutive data points are stored at this time interval, - * excluding data loss due to errors. Metrics with a higher granularity have - * a smaller sampling period. - * - * Generated from protobuf field .google.protobuf.Duration sample_period = 2; - */ - protected $sample_period = null; - /** - * The delay of data points caused by ingestion. Data points older than this - * age are guaranteed to be ingested and available to be read, excluding - * data loss due to errors. - * - * Generated from protobuf field .google.protobuf.Duration ingest_delay = 3; - */ - protected $ingest_delay = null; - /** - * The scope of the timeseries data of the metric. - * - * Generated from protobuf field repeated .google.api.MetricDescriptor.MetricDescriptorMetadata.TimeSeriesResourceHierarchyLevel time_series_resource_hierarchy_level = 4; - */ - private $time_series_resource_hierarchy_level; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $launch_stage - * Deprecated. Must use the - * [MetricDescriptor.launch_stage][google.api.MetricDescriptor.launch_stage] - * instead. - * @type \Google\Protobuf\Duration $sample_period - * The sampling period of metric data points. For metrics which are written - * periodically, consecutive data points are stored at this time interval, - * excluding data loss due to errors. Metrics with a higher granularity have - * a smaller sampling period. - * @type \Google\Protobuf\Duration $ingest_delay - * The delay of data points caused by ingestion. Data points older than this - * age are guaranteed to be ingested and available to be read, excluding - * data loss due to errors. - * @type int[] $time_series_resource_hierarchy_level - * The scope of the timeseries data of the metric. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Metric::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated. Must use the - * [MetricDescriptor.launch_stage][google.api.MetricDescriptor.launch_stage] - * instead. - * - * Generated from protobuf field .google.api.LaunchStage launch_stage = 1 [deprecated = true]; - * @return int - * @deprecated - */ - public function getLaunchStage() - { - if ($this->launch_stage !== 0) { - @trigger_error('launch_stage is deprecated.', E_USER_DEPRECATED); - } - return $this->launch_stage; - } - - /** - * Deprecated. Must use the - * [MetricDescriptor.launch_stage][google.api.MetricDescriptor.launch_stage] - * instead. - * - * Generated from protobuf field .google.api.LaunchStage launch_stage = 1 [deprecated = true]; - * @param int $var - * @return $this - * @deprecated - */ - public function setLaunchStage($var) - { - @trigger_error('launch_stage is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkEnum($var, \Google\Api\LaunchStage::class); - $this->launch_stage = $var; - - return $this; - } - - /** - * The sampling period of metric data points. For metrics which are written - * periodically, consecutive data points are stored at this time interval, - * excluding data loss due to errors. Metrics with a higher granularity have - * a smaller sampling period. - * - * Generated from protobuf field .google.protobuf.Duration sample_period = 2; - * @return \Google\Protobuf\Duration|null - */ - public function getSamplePeriod() - { - return $this->sample_period; - } - - public function hasSamplePeriod() - { - return isset($this->sample_period); - } - - public function clearSamplePeriod() - { - unset($this->sample_period); - } - - /** - * The sampling period of metric data points. For metrics which are written - * periodically, consecutive data points are stored at this time interval, - * excluding data loss due to errors. Metrics with a higher granularity have - * a smaller sampling period. - * - * Generated from protobuf field .google.protobuf.Duration sample_period = 2; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setSamplePeriod($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->sample_period = $var; - - return $this; - } - - /** - * The delay of data points caused by ingestion. Data points older than this - * age are guaranteed to be ingested and available to be read, excluding - * data loss due to errors. - * - * Generated from protobuf field .google.protobuf.Duration ingest_delay = 3; - * @return \Google\Protobuf\Duration|null - */ - public function getIngestDelay() - { - return $this->ingest_delay; - } - - public function hasIngestDelay() - { - return isset($this->ingest_delay); - } - - public function clearIngestDelay() - { - unset($this->ingest_delay); - } - - /** - * The delay of data points caused by ingestion. Data points older than this - * age are guaranteed to be ingested and available to be read, excluding - * data loss due to errors. - * - * Generated from protobuf field .google.protobuf.Duration ingest_delay = 3; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setIngestDelay($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->ingest_delay = $var; - - return $this; - } - - /** - * The scope of the timeseries data of the metric. - * - * Generated from protobuf field repeated .google.api.MetricDescriptor.MetricDescriptorMetadata.TimeSeriesResourceHierarchyLevel time_series_resource_hierarchy_level = 4; - * @return RepeatedField - */ - public function getTimeSeriesResourceHierarchyLevel() - { - return $this->time_series_resource_hierarchy_level; - } - - /** - * The scope of the timeseries data of the metric. - * - * Generated from protobuf field repeated .google.api.MetricDescriptor.MetricDescriptorMetadata.TimeSeriesResourceHierarchyLevel time_series_resource_hierarchy_level = 4; - * @param int[] $var - * @return $this - */ - public function setTimeSeriesResourceHierarchyLevel($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Api\MetricDescriptor\MetricDescriptorMetadata\TimeSeriesResourceHierarchyLevel::class); - $this->time_series_resource_hierarchy_level = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricDescriptor/MetricDescriptorMetadata/TimeSeriesResourceHierarchyLevel.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricDescriptor/MetricDescriptorMetadata/TimeSeriesResourceHierarchyLevel.php deleted file mode 100644 index 7fb5fc26f739..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricDescriptor/MetricDescriptorMetadata/TimeSeriesResourceHierarchyLevel.php +++ /dev/null @@ -1,68 +0,0 @@ -google.api.MetricDescriptor.MetricDescriptorMetadata.TimeSeriesResourceHierarchyLevel - */ -class TimeSeriesResourceHierarchyLevel -{ - /** - * Do not use this default value. - * - * Generated from protobuf enum TIME_SERIES_RESOURCE_HIERARCHY_LEVEL_UNSPECIFIED = 0; - */ - const TIME_SERIES_RESOURCE_HIERARCHY_LEVEL_UNSPECIFIED = 0; - /** - * Scopes a metric to a project. - * - * Generated from protobuf enum PROJECT = 1; - */ - const PROJECT = 1; - /** - * Scopes a metric to an organization. - * - * Generated from protobuf enum ORGANIZATION = 2; - */ - const ORGANIZATION = 2; - /** - * Scopes a metric to a folder. - * - * Generated from protobuf enum FOLDER = 3; - */ - const FOLDER = 3; - - private static $valueToName = [ - self::TIME_SERIES_RESOURCE_HIERARCHY_LEVEL_UNSPECIFIED => 'TIME_SERIES_RESOURCE_HIERARCHY_LEVEL_UNSPECIFIED', - self::PROJECT => 'PROJECT', - self::ORGANIZATION => 'ORGANIZATION', - self::FOLDER => 'FOLDER', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricDescriptor/MetricKind.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricDescriptor/MetricKind.php deleted file mode 100644 index 0ecbe6b25b09..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricDescriptor/MetricKind.php +++ /dev/null @@ -1,74 +0,0 @@ -google.api.MetricDescriptor.MetricKind - */ -class MetricKind -{ - /** - * Do not use this default value. - * - * Generated from protobuf enum METRIC_KIND_UNSPECIFIED = 0; - */ - const METRIC_KIND_UNSPECIFIED = 0; - /** - * An instantaneous measurement of a value. - * - * Generated from protobuf enum GAUGE = 1; - */ - const GAUGE = 1; - /** - * The change in a value during a time interval. - * - * Generated from protobuf enum DELTA = 2; - */ - const DELTA = 2; - /** - * A value accumulated over a time interval. Cumulative - * measurements in a time series should have the same start time - * and increasing end times, until an event resets the cumulative - * value to zero and sets a new start time for the following - * points. - * - * Generated from protobuf enum CUMULATIVE = 3; - */ - const CUMULATIVE = 3; - - private static $valueToName = [ - self::METRIC_KIND_UNSPECIFIED => 'METRIC_KIND_UNSPECIFIED', - self::GAUGE => 'GAUGE', - self::DELTA => 'DELTA', - self::CUMULATIVE => 'CUMULATIVE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricDescriptor/ValueType.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricDescriptor/ValueType.php deleted file mode 100644 index 80245f5732dd..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricDescriptor/ValueType.php +++ /dev/null @@ -1,91 +0,0 @@ -google.api.MetricDescriptor.ValueType - */ -class ValueType -{ - /** - * Do not use this default value. - * - * Generated from protobuf enum VALUE_TYPE_UNSPECIFIED = 0; - */ - const VALUE_TYPE_UNSPECIFIED = 0; - /** - * The value is a boolean. - * This value type can be used only if the metric kind is `GAUGE`. - * - * Generated from protobuf enum BOOL = 1; - */ - const BOOL = 1; - /** - * The value is a signed 64-bit integer. - * - * Generated from protobuf enum INT64 = 2; - */ - const INT64 = 2; - /** - * The value is a double precision floating point number. - * - * Generated from protobuf enum DOUBLE = 3; - */ - const DOUBLE = 3; - /** - * The value is a text string. - * This value type can be used only if the metric kind is `GAUGE`. - * - * Generated from protobuf enum STRING = 4; - */ - const STRING = 4; - /** - * The value is a [`Distribution`][google.api.Distribution]. - * - * Generated from protobuf enum DISTRIBUTION = 5; - */ - const DISTRIBUTION = 5; - /** - * The value is money. - * - * Generated from protobuf enum MONEY = 6; - */ - const MONEY = 6; - - private static $valueToName = [ - self::VALUE_TYPE_UNSPECIFIED => 'VALUE_TYPE_UNSPECIFIED', - self::BOOL => 'BOOL', - self::INT64 => 'INT64', - self::DOUBLE => 'DOUBLE', - self::STRING => 'STRING', - self::DISTRIBUTION => 'DISTRIBUTION', - self::MONEY => 'MONEY', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricRule.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricRule.php deleted file mode 100644 index c7d4edb4a6ac..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MetricRule.php +++ /dev/null @@ -1,126 +0,0 @@ -google.api.MetricRule - */ -class MetricRule extends \Google\Protobuf\Internal\Message -{ - /** - * Selects the methods to which this rule applies. - * Refer to [selector][google.api.DocumentationRule.selector] for syntax - * details. - * - * Generated from protobuf field string selector = 1; - */ - protected $selector = ''; - /** - * Metrics to update when the selected methods are called, and the associated - * cost applied to each metric. - * The key of the map is the metric name, and the values are the amount - * increased for the metric against which the quota limits are defined. - * The value must not be negative. - * - * Generated from protobuf field map metric_costs = 2; - */ - private $metric_costs; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $selector - * Selects the methods to which this rule applies. - * Refer to [selector][google.api.DocumentationRule.selector] for syntax - * details. - * @type array|\Google\Protobuf\Internal\MapField $metric_costs - * Metrics to update when the selected methods are called, and the associated - * cost applied to each metric. - * The key of the map is the metric name, and the values are the amount - * increased for the metric against which the quota limits are defined. - * The value must not be negative. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Quota::initOnce(); - parent::__construct($data); - } - - /** - * Selects the methods to which this rule applies. - * Refer to [selector][google.api.DocumentationRule.selector] for syntax - * details. - * - * Generated from protobuf field string selector = 1; - * @return string - */ - public function getSelector() - { - return $this->selector; - } - - /** - * Selects the methods to which this rule applies. - * Refer to [selector][google.api.DocumentationRule.selector] for syntax - * details. - * - * Generated from protobuf field string selector = 1; - * @param string $var - * @return $this - */ - public function setSelector($var) - { - GPBUtil::checkString($var, True); - $this->selector = $var; - - return $this; - } - - /** - * Metrics to update when the selected methods are called, and the associated - * cost applied to each metric. - * The key of the map is the metric name, and the values are the amount - * increased for the metric against which the quota limits are defined. - * The value must not be negative. - * - * Generated from protobuf field map metric_costs = 2; - * @return \Google\Protobuf\Internal\MapField - */ - public function getMetricCosts() - { - return $this->metric_costs; - } - - /** - * Metrics to update when the selected methods are called, and the associated - * cost applied to each metric. - * The key of the map is the metric name, and the values are the amount - * increased for the metric against which the quota limits are defined. - * The value must not be negative. - * - * Generated from protobuf field map metric_costs = 2; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setMetricCosts($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::INT64); - $this->metric_costs = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MonitoredResource.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MonitoredResource.php deleted file mode 100644 index 3fbac39600b6..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MonitoredResource.php +++ /dev/null @@ -1,147 +0,0 @@ -google.api.MonitoredResource - */ -class MonitoredResource extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The monitored resource type. This field must match - * the `type` field of a - * [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor] - * object. For example, the type of a Compute Engine VM instance is - * `gce_instance`. Some descriptors include the service name in the type; for - * example, the type of a Datastream stream is - * `datastream.googleapis.com/Stream`. - * - * Generated from protobuf field string type = 1; - */ - protected $type = ''; - /** - * Required. Values for all of the labels listed in the associated monitored - * resource descriptor. For example, Compute Engine VM instances use the - * labels `"project_id"`, `"instance_id"`, and `"zone"`. - * - * Generated from protobuf field map labels = 2; - */ - private $labels; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $type - * Required. The monitored resource type. This field must match - * the `type` field of a - * [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor] - * object. For example, the type of a Compute Engine VM instance is - * `gce_instance`. Some descriptors include the service name in the type; for - * example, the type of a Datastream stream is - * `datastream.googleapis.com/Stream`. - * @type array|\Google\Protobuf\Internal\MapField $labels - * Required. Values for all of the labels listed in the associated monitored - * resource descriptor. For example, Compute Engine VM instances use the - * labels `"project_id"`, `"instance_id"`, and `"zone"`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\MonitoredResource::initOnce(); - parent::__construct($data); - } - - /** - * Required. The monitored resource type. This field must match - * the `type` field of a - * [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor] - * object. For example, the type of a Compute Engine VM instance is - * `gce_instance`. Some descriptors include the service name in the type; for - * example, the type of a Datastream stream is - * `datastream.googleapis.com/Stream`. - * - * Generated from protobuf field string type = 1; - * @return string - */ - public function getType() - { - return $this->type; - } - - /** - * Required. The monitored resource type. This field must match - * the `type` field of a - * [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor] - * object. For example, the type of a Compute Engine VM instance is - * `gce_instance`. Some descriptors include the service name in the type; for - * example, the type of a Datastream stream is - * `datastream.googleapis.com/Stream`. - * - * Generated from protobuf field string type = 1; - * @param string $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkString($var, True); - $this->type = $var; - - return $this; - } - - /** - * Required. Values for all of the labels listed in the associated monitored - * resource descriptor. For example, Compute Engine VM instances use the - * labels `"project_id"`, `"instance_id"`, and `"zone"`. - * - * Generated from protobuf field map labels = 2; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Required. Values for all of the labels listed in the associated monitored - * resource descriptor. For example, Compute Engine VM instances use the - * labels `"project_id"`, `"instance_id"`, and `"zone"`. - * - * Generated from protobuf field map labels = 2; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MonitoredResourceDescriptor.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MonitoredResourceDescriptor.php deleted file mode 100644 index 744c76dc319a..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MonitoredResourceDescriptor.php +++ /dev/null @@ -1,309 +0,0 @@ -google.api.MonitoredResourceDescriptor - */ -class MonitoredResourceDescriptor extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The resource name of the monitored resource descriptor: - * `"projects/{project_id}/monitoredResourceDescriptors/{type}"` where - * {type} is the value of the `type` field in this object and - * {project_id} is a project ID that provides API-specific context for - * accessing the type. APIs that do not use project information can use the - * resource name format `"monitoredResourceDescriptors/{type}"`. - * - * Generated from protobuf field string name = 5; - */ - protected $name = ''; - /** - * Required. The monitored resource type. For example, the type - * `"cloudsql_database"` represents databases in Google Cloud SQL. - * For a list of types, see [Monitored resource - * types](https://cloud.google.com/monitoring/api/resources) - * and [Logging resource - * types](https://cloud.google.com/logging/docs/api/v2/resource-list). - * - * Generated from protobuf field string type = 1; - */ - protected $type = ''; - /** - * Optional. A concise name for the monitored resource type that might be - * displayed in user interfaces. It should be a Title Cased Noun Phrase, - * without any article or other determiners. For example, - * `"Google Cloud SQL Database"`. - * - * Generated from protobuf field string display_name = 2; - */ - protected $display_name = ''; - /** - * Optional. A detailed description of the monitored resource type that might - * be used in documentation. - * - * Generated from protobuf field string description = 3; - */ - protected $description = ''; - /** - * Required. A set of labels used to describe instances of this monitored - * resource type. For example, an individual Google Cloud SQL database is - * identified by values for the labels `"database_id"` and `"zone"`. - * - * Generated from protobuf field repeated .google.api.LabelDescriptor labels = 4; - */ - private $labels; - /** - * Optional. The launch stage of the monitored resource definition. - * - * Generated from protobuf field .google.api.LaunchStage launch_stage = 7; - */ - protected $launch_stage = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Optional. The resource name of the monitored resource descriptor: - * `"projects/{project_id}/monitoredResourceDescriptors/{type}"` where - * {type} is the value of the `type` field in this object and - * {project_id} is a project ID that provides API-specific context for - * accessing the type. APIs that do not use project information can use the - * resource name format `"monitoredResourceDescriptors/{type}"`. - * @type string $type - * Required. The monitored resource type. For example, the type - * `"cloudsql_database"` represents databases in Google Cloud SQL. - * For a list of types, see [Monitored resource - * types](https://cloud.google.com/monitoring/api/resources) - * and [Logging resource - * types](https://cloud.google.com/logging/docs/api/v2/resource-list). - * @type string $display_name - * Optional. A concise name for the monitored resource type that might be - * displayed in user interfaces. It should be a Title Cased Noun Phrase, - * without any article or other determiners. For example, - * `"Google Cloud SQL Database"`. - * @type string $description - * Optional. A detailed description of the monitored resource type that might - * be used in documentation. - * @type \Google\Api\LabelDescriptor[] $labels - * Required. A set of labels used to describe instances of this monitored - * resource type. For example, an individual Google Cloud SQL database is - * identified by values for the labels `"database_id"` and `"zone"`. - * @type int $launch_stage - * Optional. The launch stage of the monitored resource definition. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\MonitoredResource::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The resource name of the monitored resource descriptor: - * `"projects/{project_id}/monitoredResourceDescriptors/{type}"` where - * {type} is the value of the `type` field in this object and - * {project_id} is a project ID that provides API-specific context for - * accessing the type. APIs that do not use project information can use the - * resource name format `"monitoredResourceDescriptors/{type}"`. - * - * Generated from protobuf field string name = 5; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Optional. The resource name of the monitored resource descriptor: - * `"projects/{project_id}/monitoredResourceDescriptors/{type}"` where - * {type} is the value of the `type` field in this object and - * {project_id} is a project ID that provides API-specific context for - * accessing the type. APIs that do not use project information can use the - * resource name format `"monitoredResourceDescriptors/{type}"`. - * - * Generated from protobuf field string name = 5; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. The monitored resource type. For example, the type - * `"cloudsql_database"` represents databases in Google Cloud SQL. - * For a list of types, see [Monitored resource - * types](https://cloud.google.com/monitoring/api/resources) - * and [Logging resource - * types](https://cloud.google.com/logging/docs/api/v2/resource-list). - * - * Generated from protobuf field string type = 1; - * @return string - */ - public function getType() - { - return $this->type; - } - - /** - * Required. The monitored resource type. For example, the type - * `"cloudsql_database"` represents databases in Google Cloud SQL. - * For a list of types, see [Monitored resource - * types](https://cloud.google.com/monitoring/api/resources) - * and [Logging resource - * types](https://cloud.google.com/logging/docs/api/v2/resource-list). - * - * Generated from protobuf field string type = 1; - * @param string $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkString($var, True); - $this->type = $var; - - return $this; - } - - /** - * Optional. A concise name for the monitored resource type that might be - * displayed in user interfaces. It should be a Title Cased Noun Phrase, - * without any article or other determiners. For example, - * `"Google Cloud SQL Database"`. - * - * Generated from protobuf field string display_name = 2; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Optional. A concise name for the monitored resource type that might be - * displayed in user interfaces. It should be a Title Cased Noun Phrase, - * without any article or other determiners. For example, - * `"Google Cloud SQL Database"`. - * - * Generated from protobuf field string display_name = 2; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Optional. A detailed description of the monitored resource type that might - * be used in documentation. - * - * Generated from protobuf field string description = 3; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. A detailed description of the monitored resource type that might - * be used in documentation. - * - * Generated from protobuf field string description = 3; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Required. A set of labels used to describe instances of this monitored - * resource type. For example, an individual Google Cloud SQL database is - * identified by values for the labels `"database_id"` and `"zone"`. - * - * Generated from protobuf field repeated .google.api.LabelDescriptor labels = 4; - * @return RepeatedField<\Google\Api\LabelDescriptor> - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Required. A set of labels used to describe instances of this monitored - * resource type. For example, an individual Google Cloud SQL database is - * identified by values for the labels `"database_id"` and `"zone"`. - * - * Generated from protobuf field repeated .google.api.LabelDescriptor labels = 4; - * @param \Google\Api\LabelDescriptor[] $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\LabelDescriptor::class); - $this->labels = $arr; - - return $this; - } - - /** - * Optional. The launch stage of the monitored resource definition. - * - * Generated from protobuf field .google.api.LaunchStage launch_stage = 7; - * @return int - */ - public function getLaunchStage() - { - return $this->launch_stage; - } - - /** - * Optional. The launch stage of the monitored resource definition. - * - * Generated from protobuf field .google.api.LaunchStage launch_stage = 7; - * @param int $var - * @return $this - */ - public function setLaunchStage($var) - { - GPBUtil::checkEnum($var, \Google\Api\LaunchStage::class); - $this->launch_stage = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MonitoredResourceMetadata.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MonitoredResourceMetadata.php deleted file mode 100644 index 842702ed5686..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/MonitoredResourceMetadata.php +++ /dev/null @@ -1,148 +0,0 @@ -google.api.MonitoredResourceMetadata - */ -class MonitoredResourceMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Values for predefined system metadata labels. - * System labels are a kind of metadata extracted by Google, including - * "machine_image", "vpc", "subnet_id", - * "security_group", "name", etc. - * System label values can be only strings, Boolean values, or a list of - * strings. For example: - * { "name": "my-test-instance", - * "security_group": ["a", "b", "c"], - * "spot_instance": false } - * - * Generated from protobuf field .google.protobuf.Struct system_labels = 1; - */ - protected $system_labels = null; - /** - * Output only. A map of user-defined metadata labels. - * - * Generated from protobuf field map user_labels = 2; - */ - private $user_labels; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Struct $system_labels - * Output only. Values for predefined system metadata labels. - * System labels are a kind of metadata extracted by Google, including - * "machine_image", "vpc", "subnet_id", - * "security_group", "name", etc. - * System label values can be only strings, Boolean values, or a list of - * strings. For example: - * { "name": "my-test-instance", - * "security_group": ["a", "b", "c"], - * "spot_instance": false } - * @type array|\Google\Protobuf\Internal\MapField $user_labels - * Output only. A map of user-defined metadata labels. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\MonitoredResource::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Values for predefined system metadata labels. - * System labels are a kind of metadata extracted by Google, including - * "machine_image", "vpc", "subnet_id", - * "security_group", "name", etc. - * System label values can be only strings, Boolean values, or a list of - * strings. For example: - * { "name": "my-test-instance", - * "security_group": ["a", "b", "c"], - * "spot_instance": false } - * - * Generated from protobuf field .google.protobuf.Struct system_labels = 1; - * @return \Google\Protobuf\Struct|null - */ - public function getSystemLabels() - { - return $this->system_labels; - } - - public function hasSystemLabels() - { - return isset($this->system_labels); - } - - public function clearSystemLabels() - { - unset($this->system_labels); - } - - /** - * Output only. Values for predefined system metadata labels. - * System labels are a kind of metadata extracted by Google, including - * "machine_image", "vpc", "subnet_id", - * "security_group", "name", etc. - * System label values can be only strings, Boolean values, or a list of - * strings. For example: - * { "name": "my-test-instance", - * "security_group": ["a", "b", "c"], - * "spot_instance": false } - * - * Generated from protobuf field .google.protobuf.Struct system_labels = 1; - * @param \Google\Protobuf\Struct $var - * @return $this - */ - public function setSystemLabels($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Struct::class); - $this->system_labels = $var; - - return $this; - } - - /** - * Output only. A map of user-defined metadata labels. - * - * Generated from protobuf field map user_labels = 2; - * @return \Google\Protobuf\Internal\MapField - */ - public function getUserLabels() - { - return $this->user_labels; - } - - /** - * Output only. A map of user-defined metadata labels. - * - * Generated from protobuf field map user_labels = 2; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setUserLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->user_labels = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Monitoring.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Monitoring.php deleted file mode 100644 index 422ae2886eaa..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Monitoring.php +++ /dev/null @@ -1,190 +0,0 @@ -google.api.Monitoring - */ -class Monitoring extends \Google\Protobuf\Internal\Message -{ - /** - * Monitoring configurations for sending metrics to the producer project. - * There can be multiple producer destinations. A monitored resource type may - * appear in multiple monitoring destinations if different aggregations are - * needed for different sets of metrics associated with that monitored - * resource type. A monitored resource and metric pair may only be used once - * in the Monitoring configuration. - * - * Generated from protobuf field repeated .google.api.Monitoring.MonitoringDestination producer_destinations = 1; - */ - private $producer_destinations; - /** - * Monitoring configurations for sending metrics to the consumer project. - * There can be multiple consumer destinations. A monitored resource type may - * appear in multiple monitoring destinations if different aggregations are - * needed for different sets of metrics associated with that monitored - * resource type. A monitored resource and metric pair may only be used once - * in the Monitoring configuration. - * - * Generated from protobuf field repeated .google.api.Monitoring.MonitoringDestination consumer_destinations = 2; - */ - private $consumer_destinations; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Api\Monitoring\MonitoringDestination[] $producer_destinations - * Monitoring configurations for sending metrics to the producer project. - * There can be multiple producer destinations. A monitored resource type may - * appear in multiple monitoring destinations if different aggregations are - * needed for different sets of metrics associated with that monitored - * resource type. A monitored resource and metric pair may only be used once - * in the Monitoring configuration. - * @type \Google\Api\Monitoring\MonitoringDestination[] $consumer_destinations - * Monitoring configurations for sending metrics to the consumer project. - * There can be multiple consumer destinations. A monitored resource type may - * appear in multiple monitoring destinations if different aggregations are - * needed for different sets of metrics associated with that monitored - * resource type. A monitored resource and metric pair may only be used once - * in the Monitoring configuration. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Monitoring::initOnce(); - parent::__construct($data); - } - - /** - * Monitoring configurations for sending metrics to the producer project. - * There can be multiple producer destinations. A monitored resource type may - * appear in multiple monitoring destinations if different aggregations are - * needed for different sets of metrics associated with that monitored - * resource type. A monitored resource and metric pair may only be used once - * in the Monitoring configuration. - * - * Generated from protobuf field repeated .google.api.Monitoring.MonitoringDestination producer_destinations = 1; - * @return RepeatedField<\Google\Api\Monitoring\MonitoringDestination> - */ - public function getProducerDestinations() - { - return $this->producer_destinations; - } - - /** - * Monitoring configurations for sending metrics to the producer project. - * There can be multiple producer destinations. A monitored resource type may - * appear in multiple monitoring destinations if different aggregations are - * needed for different sets of metrics associated with that monitored - * resource type. A monitored resource and metric pair may only be used once - * in the Monitoring configuration. - * - * Generated from protobuf field repeated .google.api.Monitoring.MonitoringDestination producer_destinations = 1; - * @param \Google\Api\Monitoring\MonitoringDestination[] $var - * @return $this - */ - public function setProducerDestinations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\Monitoring\MonitoringDestination::class); - $this->producer_destinations = $arr; - - return $this; - } - - /** - * Monitoring configurations for sending metrics to the consumer project. - * There can be multiple consumer destinations. A monitored resource type may - * appear in multiple monitoring destinations if different aggregations are - * needed for different sets of metrics associated with that monitored - * resource type. A monitored resource and metric pair may only be used once - * in the Monitoring configuration. - * - * Generated from protobuf field repeated .google.api.Monitoring.MonitoringDestination consumer_destinations = 2; - * @return RepeatedField<\Google\Api\Monitoring\MonitoringDestination> - */ - public function getConsumerDestinations() - { - return $this->consumer_destinations; - } - - /** - * Monitoring configurations for sending metrics to the consumer project. - * There can be multiple consumer destinations. A monitored resource type may - * appear in multiple monitoring destinations if different aggregations are - * needed for different sets of metrics associated with that monitored - * resource type. A monitored resource and metric pair may only be used once - * in the Monitoring configuration. - * - * Generated from protobuf field repeated .google.api.Monitoring.MonitoringDestination consumer_destinations = 2; - * @param \Google\Api\Monitoring\MonitoringDestination[] $var - * @return $this - */ - public function setConsumerDestinations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\Monitoring\MonitoringDestination::class); - $this->consumer_destinations = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Monitoring/MonitoringDestination.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Monitoring/MonitoringDestination.php deleted file mode 100644 index 94576a1acbf7..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Monitoring/MonitoringDestination.php +++ /dev/null @@ -1,118 +0,0 @@ -google.api.Monitoring.MonitoringDestination - */ -class MonitoringDestination extends \Google\Protobuf\Internal\Message -{ - /** - * The monitored resource type. The type must be defined in - * [Service.monitored_resources][google.api.Service.monitored_resources] - * section. - * - * Generated from protobuf field string monitored_resource = 1; - */ - protected $monitored_resource = ''; - /** - * Types of the metrics to report to this monitoring destination. - * Each type must be defined in - * [Service.metrics][google.api.Service.metrics] section. - * - * Generated from protobuf field repeated string metrics = 2; - */ - private $metrics; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $monitored_resource - * The monitored resource type. The type must be defined in - * [Service.monitored_resources][google.api.Service.monitored_resources] - * section. - * @type string[] $metrics - * Types of the metrics to report to this monitoring destination. - * Each type must be defined in - * [Service.metrics][google.api.Service.metrics] section. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Monitoring::initOnce(); - parent::__construct($data); - } - - /** - * The monitored resource type. The type must be defined in - * [Service.monitored_resources][google.api.Service.monitored_resources] - * section. - * - * Generated from protobuf field string monitored_resource = 1; - * @return string - */ - public function getMonitoredResource() - { - return $this->monitored_resource; - } - - /** - * The monitored resource type. The type must be defined in - * [Service.monitored_resources][google.api.Service.monitored_resources] - * section. - * - * Generated from protobuf field string monitored_resource = 1; - * @param string $var - * @return $this - */ - public function setMonitoredResource($var) - { - GPBUtil::checkString($var, True); - $this->monitored_resource = $var; - - return $this; - } - - /** - * Types of the metrics to report to this monitoring destination. - * Each type must be defined in - * [Service.metrics][google.api.Service.metrics] section. - * - * Generated from protobuf field repeated string metrics = 2; - * @return RepeatedField - */ - public function getMetrics() - { - return $this->metrics; - } - - /** - * Types of the metrics to report to this monitoring destination. - * Each type must be defined in - * [Service.metrics][google.api.Service.metrics] section. - * - * Generated from protobuf field repeated string metrics = 2; - * @param string[] $var - * @return $this - */ - public function setMetrics($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->metrics = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/NodeSettings.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/NodeSettings.php deleted file mode 100644 index 3041432c49ee..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/NodeSettings.php +++ /dev/null @@ -1,77 +0,0 @@ -google.api.NodeSettings - */ -class NodeSettings extends \Google\Protobuf\Internal\Message -{ - /** - * Some settings. - * - * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; - */ - protected $common = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Api\CommonLanguageSettings $common - * Some settings. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Client::initOnce(); - parent::__construct($data); - } - - /** - * Some settings. - * - * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; - * @return \Google\Api\CommonLanguageSettings|null - */ - public function getCommon() - { - return $this->common; - } - - public function hasCommon() - { - return isset($this->common); - } - - public function clearCommon() - { - unset($this->common); - } - - /** - * Some settings. - * - * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; - * @param \Google\Api\CommonLanguageSettings $var - * @return $this - */ - public function setCommon($var) - { - GPBUtil::checkMessage($var, \Google\Api\CommonLanguageSettings::class); - $this->common = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/OAuthRequirements.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/OAuthRequirements.php deleted file mode 100644 index 9ad55336d154..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/OAuthRequirements.php +++ /dev/null @@ -1,96 +0,0 @@ -google.api.OAuthRequirements - */ -class OAuthRequirements extends \Google\Protobuf\Internal\Message -{ - /** - * The list of publicly documented OAuth scopes that are allowed access. An - * OAuth token containing any of these scopes will be accepted. - * Example: - * canonical_scopes: https://www.googleapis.com/auth/calendar, - * https://www.googleapis.com/auth/calendar.read - * - * Generated from protobuf field string canonical_scopes = 1; - */ - protected $canonical_scopes = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $canonical_scopes - * The list of publicly documented OAuth scopes that are allowed access. An - * OAuth token containing any of these scopes will be accepted. - * Example: - * canonical_scopes: https://www.googleapis.com/auth/calendar, - * https://www.googleapis.com/auth/calendar.read - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Auth::initOnce(); - parent::__construct($data); - } - - /** - * The list of publicly documented OAuth scopes that are allowed access. An - * OAuth token containing any of these scopes will be accepted. - * Example: - * canonical_scopes: https://www.googleapis.com/auth/calendar, - * https://www.googleapis.com/auth/calendar.read - * - * Generated from protobuf field string canonical_scopes = 1; - * @return string - */ - public function getCanonicalScopes() - { - return $this->canonical_scopes; - } - - /** - * The list of publicly documented OAuth scopes that are allowed access. An - * OAuth token containing any of these scopes will be accepted. - * Example: - * canonical_scopes: https://www.googleapis.com/auth/calendar, - * https://www.googleapis.com/auth/calendar.read - * - * Generated from protobuf field string canonical_scopes = 1; - * @param string $var - * @return $this - */ - public function setCanonicalScopes($var) - { - GPBUtil::checkString($var, True); - $this->canonical_scopes = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Page.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Page.php deleted file mode 100644 index f172d0cbc038..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Page.php +++ /dev/null @@ -1,200 +0,0 @@ -google.api.Page - */ -class Page extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the page. It will be used as an identity of the page to - * generate URI of the page, text of the link to this page in navigation, - * etc. The full page name (start from the root page name to this page - * concatenated with `.`) can be used as reference to the page in your - * documentation. For example: - *
pages:
-     * - name: Tutorial
-     *   content: (== include tutorial.md ==)
-     *   subpages:
-     *   - name: Java
-     *     content: (== include tutorial_java.md ==)
-     * 
- * You can reference `Java` page using Markdown reference link syntax: - * `[Java][Tutorial.Java]`. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * The Markdown content of the page. You can use ```(== include {path} - * ==)``` to include content from a Markdown file. The content can be used - * to produce the documentation page such as HTML format page. - * - * Generated from protobuf field string content = 2; - */ - protected $content = ''; - /** - * Subpages of this page. The order of subpages specified here will be - * honored in the generated docset. - * - * Generated from protobuf field repeated .google.api.Page subpages = 3; - */ - private $subpages; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The name of the page. It will be used as an identity of the page to - * generate URI of the page, text of the link to this page in navigation, - * etc. The full page name (start from the root page name to this page - * concatenated with `.`) can be used as reference to the page in your - * documentation. For example: - *
pages:
-     *           - name: Tutorial
-     *             content: (== include tutorial.md ==)
-     *             subpages:
-     *             - name: Java
-     *               content: (== include tutorial_java.md ==)
-     *           
- * You can reference `Java` page using Markdown reference link syntax: - * `[Java][Tutorial.Java]`. - * @type string $content - * The Markdown content of the page. You can use ```(== include {path} - * ==)``` to include content from a Markdown file. The content can be used - * to produce the documentation page such as HTML format page. - * @type \Google\Api\Page[] $subpages - * Subpages of this page. The order of subpages specified here will be - * honored in the generated docset. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Documentation::initOnce(); - parent::__construct($data); - } - - /** - * The name of the page. It will be used as an identity of the page to - * generate URI of the page, text of the link to this page in navigation, - * etc. The full page name (start from the root page name to this page - * concatenated with `.`) can be used as reference to the page in your - * documentation. For example: - *
pages:
-     * - name: Tutorial
-     *   content: (== include tutorial.md ==)
-     *   subpages:
-     *   - name: Java
-     *     content: (== include tutorial_java.md ==)
-     * 
- * You can reference `Java` page using Markdown reference link syntax: - * `[Java][Tutorial.Java]`. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name of the page. It will be used as an identity of the page to - * generate URI of the page, text of the link to this page in navigation, - * etc. The full page name (start from the root page name to this page - * concatenated with `.`) can be used as reference to the page in your - * documentation. For example: - *
pages:
-     * - name: Tutorial
-     *   content: (== include tutorial.md ==)
-     *   subpages:
-     *   - name: Java
-     *     content: (== include tutorial_java.md ==)
-     * 
- * You can reference `Java` page using Markdown reference link syntax: - * `[Java][Tutorial.Java]`. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The Markdown content of the page. You can use ```(== include {path} - * ==)``` to include content from a Markdown file. The content can be used - * to produce the documentation page such as HTML format page. - * - * Generated from protobuf field string content = 2; - * @return string - */ - public function getContent() - { - return $this->content; - } - - /** - * The Markdown content of the page. You can use ```(== include {path} - * ==)``` to include content from a Markdown file. The content can be used - * to produce the documentation page such as HTML format page. - * - * Generated from protobuf field string content = 2; - * @param string $var - * @return $this - */ - public function setContent($var) - { - GPBUtil::checkString($var, True); - $this->content = $var; - - return $this; - } - - /** - * Subpages of this page. The order of subpages specified here will be - * honored in the generated docset. - * - * Generated from protobuf field repeated .google.api.Page subpages = 3; - * @return RepeatedField<\Google\Api\Page> - */ - public function getSubpages() - { - return $this->subpages; - } - - /** - * Subpages of this page. The order of subpages specified here will be - * honored in the generated docset. - * - * Generated from protobuf field repeated .google.api.Page subpages = 3; - * @param \Google\Api\Page[] $var - * @return $this - */ - public function setSubpages($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\Page::class); - $this->subpages = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/PhpSettings.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/PhpSettings.php deleted file mode 100644 index 38cbabd68afb..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/PhpSettings.php +++ /dev/null @@ -1,147 +0,0 @@ -google.api.PhpSettings - */ -class PhpSettings extends \Google\Protobuf\Internal\Message -{ - /** - * Some settings. - * - * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; - */ - protected $common = null; - /** - * The package name to use in Php. Clobbers the php_namespace option - * set in the protobuf. This should be used **only** by APIs - * who have already set the language_settings.php.package_name" field - * in gapic.yaml. API teams should use the protobuf php_namespace option - * where possible. - * Example of a YAML configuration:: - * publishing: - * library_settings: - * php_settings: - * library_package: Google\Cloud\PubSub\V1 - * - * Generated from protobuf field string library_package = 2; - */ - protected $library_package = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Api\CommonLanguageSettings $common - * Some settings. - * @type string $library_package - * The package name to use in Php. Clobbers the php_namespace option - * set in the protobuf. This should be used **only** by APIs - * who have already set the language_settings.php.package_name" field - * in gapic.yaml. API teams should use the protobuf php_namespace option - * where possible. - * Example of a YAML configuration:: - * publishing: - * library_settings: - * php_settings: - * library_package: Google\Cloud\PubSub\V1 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Client::initOnce(); - parent::__construct($data); - } - - /** - * Some settings. - * - * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; - * @return \Google\Api\CommonLanguageSettings|null - */ - public function getCommon() - { - return $this->common; - } - - public function hasCommon() - { - return isset($this->common); - } - - public function clearCommon() - { - unset($this->common); - } - - /** - * Some settings. - * - * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; - * @param \Google\Api\CommonLanguageSettings $var - * @return $this - */ - public function setCommon($var) - { - GPBUtil::checkMessage($var, \Google\Api\CommonLanguageSettings::class); - $this->common = $var; - - return $this; - } - - /** - * The package name to use in Php. Clobbers the php_namespace option - * set in the protobuf. This should be used **only** by APIs - * who have already set the language_settings.php.package_name" field - * in gapic.yaml. API teams should use the protobuf php_namespace option - * where possible. - * Example of a YAML configuration:: - * publishing: - * library_settings: - * php_settings: - * library_package: Google\Cloud\PubSub\V1 - * - * Generated from protobuf field string library_package = 2; - * @return string - */ - public function getLibraryPackage() - { - return $this->library_package; - } - - /** - * The package name to use in Php. Clobbers the php_namespace option - * set in the protobuf. This should be used **only** by APIs - * who have already set the language_settings.php.package_name" field - * in gapic.yaml. API teams should use the protobuf php_namespace option - * where possible. - * Example of a YAML configuration:: - * publishing: - * library_settings: - * php_settings: - * library_package: Google\Cloud\PubSub\V1 - * - * Generated from protobuf field string library_package = 2; - * @param string $var - * @return $this - */ - public function setLibraryPackage($var) - { - GPBUtil::checkString($var, True); - $this->library_package = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ProjectProperties.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ProjectProperties.php deleted file mode 100644 index 7ffeb2f5fc6b..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ProjectProperties.php +++ /dev/null @@ -1,80 +0,0 @@ -google.api.ProjectProperties - */ -class ProjectProperties extends \Google\Protobuf\Internal\Message -{ - /** - * List of per consumer project-specific properties. - * - * Generated from protobuf field repeated .google.api.Property properties = 1; - */ - private $properties; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Api\Property[] $properties - * List of per consumer project-specific properties. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Consumer::initOnce(); - parent::__construct($data); - } - - /** - * List of per consumer project-specific properties. - * - * Generated from protobuf field repeated .google.api.Property properties = 1; - * @return RepeatedField<\Google\Api\Property> - */ - public function getProperties() - { - return $this->properties; - } - - /** - * List of per consumer project-specific properties. - * - * Generated from protobuf field repeated .google.api.Property properties = 1; - * @param \Google\Api\Property[] $var - * @return $this - */ - public function setProperties($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\Property::class); - $this->properties = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Property.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Property.php deleted file mode 100644 index 18830cc2055e..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Property.php +++ /dev/null @@ -1,142 +0,0 @@ -google.api.Property - */ -class Property extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the property (a.k.a key). - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * The type of this property. - * - * Generated from protobuf field .google.api.Property.PropertyType type = 2; - */ - protected $type = 0; - /** - * The description of the property - * - * Generated from protobuf field string description = 3; - */ - protected $description = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The name of the property (a.k.a key). - * @type int $type - * The type of this property. - * @type string $description - * The description of the property - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Consumer::initOnce(); - parent::__construct($data); - } - - /** - * The name of the property (a.k.a key). - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name of the property (a.k.a key). - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The type of this property. - * - * Generated from protobuf field .google.api.Property.PropertyType type = 2; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * The type of this property. - * - * Generated from protobuf field .google.api.Property.PropertyType type = 2; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Api\Property\PropertyType::class); - $this->type = $var; - - return $this; - } - - /** - * The description of the property - * - * Generated from protobuf field string description = 3; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * The description of the property - * - * Generated from protobuf field string description = 3; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Property/PropertyType.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Property/PropertyType.php deleted file mode 100644 index e874e029a65c..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Property/PropertyType.php +++ /dev/null @@ -1,75 +0,0 @@ -google.api.Property.PropertyType - */ -class PropertyType -{ - /** - * The type is unspecified, and will result in an error. - * - * Generated from protobuf enum UNSPECIFIED = 0; - */ - const UNSPECIFIED = 0; - /** - * The type is `int64`. - * - * Generated from protobuf enum INT64 = 1; - */ - const INT64 = 1; - /** - * The type is `bool`. - * - * Generated from protobuf enum BOOL = 2; - */ - const BOOL = 2; - /** - * The type is `string`. - * - * Generated from protobuf enum STRING = 3; - */ - const STRING = 3; - /** - * The type is 'double'. - * - * Generated from protobuf enum DOUBLE = 4; - */ - const DOUBLE = 4; - - private static $valueToName = [ - self::UNSPECIFIED => 'UNSPECIFIED', - self::INT64 => 'INT64', - self::BOOL => 'BOOL', - self::STRING => 'STRING', - self::DOUBLE => 'DOUBLE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Publishing.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Publishing.php deleted file mode 100644 index 74c394bb061b..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Publishing.php +++ /dev/null @@ -1,453 +0,0 @@ -google.api.Publishing - */ -class Publishing extends \Google\Protobuf\Internal\Message -{ - /** - * A list of API method settings, e.g. the behavior for methods that use the - * long-running operation pattern. - * - * Generated from protobuf field repeated .google.api.MethodSettings method_settings = 2; - */ - private $method_settings; - /** - * Link to a *public* URI where users can report issues. Example: - * https://issuetracker.google.com/issues/new?component=190865&template=1161103 - * - * Generated from protobuf field string new_issue_uri = 101; - */ - protected $new_issue_uri = ''; - /** - * Link to product home page. Example: - * https://cloud.google.com/asset-inventory/docs/overview - * - * Generated from protobuf field string documentation_uri = 102; - */ - protected $documentation_uri = ''; - /** - * Used as a tracking tag when collecting data about the APIs developer - * relations artifacts like docs, packages delivered to package managers, - * etc. Example: "speech". - * - * Generated from protobuf field string api_short_name = 103; - */ - protected $api_short_name = ''; - /** - * GitHub label to apply to issues and pull requests opened for this API. - * - * Generated from protobuf field string github_label = 104; - */ - protected $github_label = ''; - /** - * GitHub teams to be added to CODEOWNERS in the directory in GitHub - * containing source code for the client libraries for this API. - * - * Generated from protobuf field repeated string codeowner_github_teams = 105; - */ - private $codeowner_github_teams; - /** - * A prefix used in sample code when demarking regions to be included in - * documentation. - * - * Generated from protobuf field string doc_tag_prefix = 106; - */ - protected $doc_tag_prefix = ''; - /** - * For whom the client library is being published. - * - * Generated from protobuf field .google.api.ClientLibraryOrganization organization = 107; - */ - protected $organization = 0; - /** - * Client library settings. If the same version string appears multiple - * times in this list, then the last one wins. Settings from earlier - * settings with the same version string are discarded. - * - * Generated from protobuf field repeated .google.api.ClientLibrarySettings library_settings = 109; - */ - private $library_settings; - /** - * Optional link to proto reference documentation. Example: - * https://cloud.google.com/pubsub/lite/docs/reference/rpc - * - * Generated from protobuf field string proto_reference_documentation_uri = 110; - */ - protected $proto_reference_documentation_uri = ''; - /** - * Optional link to REST reference documentation. Example: - * https://cloud.google.com/pubsub/lite/docs/reference/rest - * - * Generated from protobuf field string rest_reference_documentation_uri = 111; - */ - protected $rest_reference_documentation_uri = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Api\MethodSettings[] $method_settings - * A list of API method settings, e.g. the behavior for methods that use the - * long-running operation pattern. - * @type string $new_issue_uri - * Link to a *public* URI where users can report issues. Example: - * https://issuetracker.google.com/issues/new?component=190865&template=1161103 - * @type string $documentation_uri - * Link to product home page. Example: - * https://cloud.google.com/asset-inventory/docs/overview - * @type string $api_short_name - * Used as a tracking tag when collecting data about the APIs developer - * relations artifacts like docs, packages delivered to package managers, - * etc. Example: "speech". - * @type string $github_label - * GitHub label to apply to issues and pull requests opened for this API. - * @type string[] $codeowner_github_teams - * GitHub teams to be added to CODEOWNERS in the directory in GitHub - * containing source code for the client libraries for this API. - * @type string $doc_tag_prefix - * A prefix used in sample code when demarking regions to be included in - * documentation. - * @type int $organization - * For whom the client library is being published. - * @type \Google\Api\ClientLibrarySettings[] $library_settings - * Client library settings. If the same version string appears multiple - * times in this list, then the last one wins. Settings from earlier - * settings with the same version string are discarded. - * @type string $proto_reference_documentation_uri - * Optional link to proto reference documentation. Example: - * https://cloud.google.com/pubsub/lite/docs/reference/rpc - * @type string $rest_reference_documentation_uri - * Optional link to REST reference documentation. Example: - * https://cloud.google.com/pubsub/lite/docs/reference/rest - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Client::initOnce(); - parent::__construct($data); - } - - /** - * A list of API method settings, e.g. the behavior for methods that use the - * long-running operation pattern. - * - * Generated from protobuf field repeated .google.api.MethodSettings method_settings = 2; - * @return RepeatedField<\Google\Api\MethodSettings> - */ - public function getMethodSettings() - { - return $this->method_settings; - } - - /** - * A list of API method settings, e.g. the behavior for methods that use the - * long-running operation pattern. - * - * Generated from protobuf field repeated .google.api.MethodSettings method_settings = 2; - * @param \Google\Api\MethodSettings[] $var - * @return $this - */ - public function setMethodSettings($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\MethodSettings::class); - $this->method_settings = $arr; - - return $this; - } - - /** - * Link to a *public* URI where users can report issues. Example: - * https://issuetracker.google.com/issues/new?component=190865&template=1161103 - * - * Generated from protobuf field string new_issue_uri = 101; - * @return string - */ - public function getNewIssueUri() - { - return $this->new_issue_uri; - } - - /** - * Link to a *public* URI where users can report issues. Example: - * https://issuetracker.google.com/issues/new?component=190865&template=1161103 - * - * Generated from protobuf field string new_issue_uri = 101; - * @param string $var - * @return $this - */ - public function setNewIssueUri($var) - { - GPBUtil::checkString($var, True); - $this->new_issue_uri = $var; - - return $this; - } - - /** - * Link to product home page. Example: - * https://cloud.google.com/asset-inventory/docs/overview - * - * Generated from protobuf field string documentation_uri = 102; - * @return string - */ - public function getDocumentationUri() - { - return $this->documentation_uri; - } - - /** - * Link to product home page. Example: - * https://cloud.google.com/asset-inventory/docs/overview - * - * Generated from protobuf field string documentation_uri = 102; - * @param string $var - * @return $this - */ - public function setDocumentationUri($var) - { - GPBUtil::checkString($var, True); - $this->documentation_uri = $var; - - return $this; - } - - /** - * Used as a tracking tag when collecting data about the APIs developer - * relations artifacts like docs, packages delivered to package managers, - * etc. Example: "speech". - * - * Generated from protobuf field string api_short_name = 103; - * @return string - */ - public function getApiShortName() - { - return $this->api_short_name; - } - - /** - * Used as a tracking tag when collecting data about the APIs developer - * relations artifacts like docs, packages delivered to package managers, - * etc. Example: "speech". - * - * Generated from protobuf field string api_short_name = 103; - * @param string $var - * @return $this - */ - public function setApiShortName($var) - { - GPBUtil::checkString($var, True); - $this->api_short_name = $var; - - return $this; - } - - /** - * GitHub label to apply to issues and pull requests opened for this API. - * - * Generated from protobuf field string github_label = 104; - * @return string - */ - public function getGithubLabel() - { - return $this->github_label; - } - - /** - * GitHub label to apply to issues and pull requests opened for this API. - * - * Generated from protobuf field string github_label = 104; - * @param string $var - * @return $this - */ - public function setGithubLabel($var) - { - GPBUtil::checkString($var, True); - $this->github_label = $var; - - return $this; - } - - /** - * GitHub teams to be added to CODEOWNERS in the directory in GitHub - * containing source code for the client libraries for this API. - * - * Generated from protobuf field repeated string codeowner_github_teams = 105; - * @return RepeatedField - */ - public function getCodeownerGithubTeams() - { - return $this->codeowner_github_teams; - } - - /** - * GitHub teams to be added to CODEOWNERS in the directory in GitHub - * containing source code for the client libraries for this API. - * - * Generated from protobuf field repeated string codeowner_github_teams = 105; - * @param string[] $var - * @return $this - */ - public function setCodeownerGithubTeams($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->codeowner_github_teams = $arr; - - return $this; - } - - /** - * A prefix used in sample code when demarking regions to be included in - * documentation. - * - * Generated from protobuf field string doc_tag_prefix = 106; - * @return string - */ - public function getDocTagPrefix() - { - return $this->doc_tag_prefix; - } - - /** - * A prefix used in sample code when demarking regions to be included in - * documentation. - * - * Generated from protobuf field string doc_tag_prefix = 106; - * @param string $var - * @return $this - */ - public function setDocTagPrefix($var) - { - GPBUtil::checkString($var, True); - $this->doc_tag_prefix = $var; - - return $this; - } - - /** - * For whom the client library is being published. - * - * Generated from protobuf field .google.api.ClientLibraryOrganization organization = 107; - * @return int - */ - public function getOrganization() - { - return $this->organization; - } - - /** - * For whom the client library is being published. - * - * Generated from protobuf field .google.api.ClientLibraryOrganization organization = 107; - * @param int $var - * @return $this - */ - public function setOrganization($var) - { - GPBUtil::checkEnum($var, \Google\Api\ClientLibraryOrganization::class); - $this->organization = $var; - - return $this; - } - - /** - * Client library settings. If the same version string appears multiple - * times in this list, then the last one wins. Settings from earlier - * settings with the same version string are discarded. - * - * Generated from protobuf field repeated .google.api.ClientLibrarySettings library_settings = 109; - * @return RepeatedField<\Google\Api\ClientLibrarySettings> - */ - public function getLibrarySettings() - { - return $this->library_settings; - } - - /** - * Client library settings. If the same version string appears multiple - * times in this list, then the last one wins. Settings from earlier - * settings with the same version string are discarded. - * - * Generated from protobuf field repeated .google.api.ClientLibrarySettings library_settings = 109; - * @param \Google\Api\ClientLibrarySettings[] $var - * @return $this - */ - public function setLibrarySettings($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\ClientLibrarySettings::class); - $this->library_settings = $arr; - - return $this; - } - - /** - * Optional link to proto reference documentation. Example: - * https://cloud.google.com/pubsub/lite/docs/reference/rpc - * - * Generated from protobuf field string proto_reference_documentation_uri = 110; - * @return string - */ - public function getProtoReferenceDocumentationUri() - { - return $this->proto_reference_documentation_uri; - } - - /** - * Optional link to proto reference documentation. Example: - * https://cloud.google.com/pubsub/lite/docs/reference/rpc - * - * Generated from protobuf field string proto_reference_documentation_uri = 110; - * @param string $var - * @return $this - */ - public function setProtoReferenceDocumentationUri($var) - { - GPBUtil::checkString($var, True); - $this->proto_reference_documentation_uri = $var; - - return $this; - } - - /** - * Optional link to REST reference documentation. Example: - * https://cloud.google.com/pubsub/lite/docs/reference/rest - * - * Generated from protobuf field string rest_reference_documentation_uri = 111; - * @return string - */ - public function getRestReferenceDocumentationUri() - { - return $this->rest_reference_documentation_uri; - } - - /** - * Optional link to REST reference documentation. Example: - * https://cloud.google.com/pubsub/lite/docs/reference/rest - * - * Generated from protobuf field string rest_reference_documentation_uri = 111; - * @param string $var - * @return $this - */ - public function setRestReferenceDocumentationUri($var) - { - GPBUtil::checkString($var, True); - $this->rest_reference_documentation_uri = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/PythonSettings.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/PythonSettings.php deleted file mode 100644 index 66bd27f0fbfa..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/PythonSettings.php +++ /dev/null @@ -1,121 +0,0 @@ -google.api.PythonSettings - */ -class PythonSettings extends \Google\Protobuf\Internal\Message -{ - /** - * Some settings. - * - * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; - */ - protected $common = null; - /** - * Experimental features to be included during client library generation. - * - * Generated from protobuf field .google.api.PythonSettings.ExperimentalFeatures experimental_features = 2; - */ - protected $experimental_features = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Api\CommonLanguageSettings $common - * Some settings. - * @type \Google\Api\PythonSettings\ExperimentalFeatures $experimental_features - * Experimental features to be included during client library generation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Client::initOnce(); - parent::__construct($data); - } - - /** - * Some settings. - * - * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; - * @return \Google\Api\CommonLanguageSettings|null - */ - public function getCommon() - { - return $this->common; - } - - public function hasCommon() - { - return isset($this->common); - } - - public function clearCommon() - { - unset($this->common); - } - - /** - * Some settings. - * - * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; - * @param \Google\Api\CommonLanguageSettings $var - * @return $this - */ - public function setCommon($var) - { - GPBUtil::checkMessage($var, \Google\Api\CommonLanguageSettings::class); - $this->common = $var; - - return $this; - } - - /** - * Experimental features to be included during client library generation. - * - * Generated from protobuf field .google.api.PythonSettings.ExperimentalFeatures experimental_features = 2; - * @return \Google\Api\PythonSettings\ExperimentalFeatures|null - */ - public function getExperimentalFeatures() - { - return $this->experimental_features; - } - - public function hasExperimentalFeatures() - { - return isset($this->experimental_features); - } - - public function clearExperimentalFeatures() - { - unset($this->experimental_features); - } - - /** - * Experimental features to be included during client library generation. - * - * Generated from protobuf field .google.api.PythonSettings.ExperimentalFeatures experimental_features = 2; - * @param \Google\Api\PythonSettings\ExperimentalFeatures $var - * @return $this - */ - public function setExperimentalFeatures($var) - { - GPBUtil::checkMessage($var, \Google\Api\PythonSettings\ExperimentalFeatures::class); - $this->experimental_features = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/PythonSettings/ExperimentalFeatures.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/PythonSettings/ExperimentalFeatures.php deleted file mode 100644 index a1230aea0cb9..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/PythonSettings/ExperimentalFeatures.php +++ /dev/null @@ -1,173 +0,0 @@ -google.api.PythonSettings.ExperimentalFeatures - */ -class ExperimentalFeatures extends \Google\Protobuf\Internal\Message -{ - /** - * Enables generation of asynchronous REST clients if `rest` transport is - * enabled. By default, asynchronous REST clients will not be generated. - * This feature will be enabled by default 1 month after launching the - * feature in preview packages. - * - * Generated from protobuf field bool rest_async_io_enabled = 1; - */ - protected $rest_async_io_enabled = false; - /** - * Enables generation of protobuf code using new types that are more - * Pythonic which are included in `protobuf>=5.29.x`. This feature will be - * enabled by default 1 month after launching the feature in preview - * packages. - * - * Generated from protobuf field bool protobuf_pythonic_types_enabled = 2; - */ - protected $protobuf_pythonic_types_enabled = false; - /** - * Disables generation of an unversioned Python package for this client - * library. This means that the module names will need to be versioned in - * import statements. For example `import google.cloud.library_v2` instead - * of `import google.cloud.library`. - * - * Generated from protobuf field bool unversioned_package_disabled = 3; - */ - protected $unversioned_package_disabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $rest_async_io_enabled - * Enables generation of asynchronous REST clients if `rest` transport is - * enabled. By default, asynchronous REST clients will not be generated. - * This feature will be enabled by default 1 month after launching the - * feature in preview packages. - * @type bool $protobuf_pythonic_types_enabled - * Enables generation of protobuf code using new types that are more - * Pythonic which are included in `protobuf>=5.29.x`. This feature will be - * enabled by default 1 month after launching the feature in preview - * packages. - * @type bool $unversioned_package_disabled - * Disables generation of an unversioned Python package for this client - * library. This means that the module names will need to be versioned in - * import statements. For example `import google.cloud.library_v2` instead - * of `import google.cloud.library`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Client::initOnce(); - parent::__construct($data); - } - - /** - * Enables generation of asynchronous REST clients if `rest` transport is - * enabled. By default, asynchronous REST clients will not be generated. - * This feature will be enabled by default 1 month after launching the - * feature in preview packages. - * - * Generated from protobuf field bool rest_async_io_enabled = 1; - * @return bool - */ - public function getRestAsyncIoEnabled() - { - return $this->rest_async_io_enabled; - } - - /** - * Enables generation of asynchronous REST clients if `rest` transport is - * enabled. By default, asynchronous REST clients will not be generated. - * This feature will be enabled by default 1 month after launching the - * feature in preview packages. - * - * Generated from protobuf field bool rest_async_io_enabled = 1; - * @param bool $var - * @return $this - */ - public function setRestAsyncIoEnabled($var) - { - GPBUtil::checkBool($var); - $this->rest_async_io_enabled = $var; - - return $this; - } - - /** - * Enables generation of protobuf code using new types that are more - * Pythonic which are included in `protobuf>=5.29.x`. This feature will be - * enabled by default 1 month after launching the feature in preview - * packages. - * - * Generated from protobuf field bool protobuf_pythonic_types_enabled = 2; - * @return bool - */ - public function getProtobufPythonicTypesEnabled() - { - return $this->protobuf_pythonic_types_enabled; - } - - /** - * Enables generation of protobuf code using new types that are more - * Pythonic which are included in `protobuf>=5.29.x`. This feature will be - * enabled by default 1 month after launching the feature in preview - * packages. - * - * Generated from protobuf field bool protobuf_pythonic_types_enabled = 2; - * @param bool $var - * @return $this - */ - public function setProtobufPythonicTypesEnabled($var) - { - GPBUtil::checkBool($var); - $this->protobuf_pythonic_types_enabled = $var; - - return $this; - } - - /** - * Disables generation of an unversioned Python package for this client - * library. This means that the module names will need to be versioned in - * import statements. For example `import google.cloud.library_v2` instead - * of `import google.cloud.library`. - * - * Generated from protobuf field bool unversioned_package_disabled = 3; - * @return bool - */ - public function getUnversionedPackageDisabled() - { - return $this->unversioned_package_disabled; - } - - /** - * Disables generation of an unversioned Python package for this client - * library. This means that the module names will need to be versioned in - * import statements. For example `import google.cloud.library_v2` instead - * of `import google.cloud.library`. - * - * Generated from protobuf field bool unversioned_package_disabled = 3; - * @param bool $var - * @return $this - */ - public function setUnversionedPackageDisabled($var) - { - GPBUtil::checkBool($var); - $this->unversioned_package_disabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Quota.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Quota.php deleted file mode 100644 index bea8ed890068..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Quota.php +++ /dev/null @@ -1,144 +0,0 @@ -google.api.Quota - */ -class Quota extends \Google\Protobuf\Internal\Message -{ - /** - * List of QuotaLimit definitions for the service. - * - * Generated from protobuf field repeated .google.api.QuotaLimit limits = 3; - */ - private $limits; - /** - * List of MetricRule definitions, each one mapping a selected method to one - * or more metrics. - * - * Generated from protobuf field repeated .google.api.MetricRule metric_rules = 4; - */ - private $metric_rules; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Api\QuotaLimit[] $limits - * List of QuotaLimit definitions for the service. - * @type \Google\Api\MetricRule[] $metric_rules - * List of MetricRule definitions, each one mapping a selected method to one - * or more metrics. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Quota::initOnce(); - parent::__construct($data); - } - - /** - * List of QuotaLimit definitions for the service. - * - * Generated from protobuf field repeated .google.api.QuotaLimit limits = 3; - * @return RepeatedField<\Google\Api\QuotaLimit> - */ - public function getLimits() - { - return $this->limits; - } - - /** - * List of QuotaLimit definitions for the service. - * - * Generated from protobuf field repeated .google.api.QuotaLimit limits = 3; - * @param \Google\Api\QuotaLimit[] $var - * @return $this - */ - public function setLimits($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\QuotaLimit::class); - $this->limits = $arr; - - return $this; - } - - /** - * List of MetricRule definitions, each one mapping a selected method to one - * or more metrics. - * - * Generated from protobuf field repeated .google.api.MetricRule metric_rules = 4; - * @return RepeatedField<\Google\Api\MetricRule> - */ - public function getMetricRules() - { - return $this->metric_rules; - } - - /** - * List of MetricRule definitions, each one mapping a selected method to one - * or more metrics. - * - * Generated from protobuf field repeated .google.api.MetricRule metric_rules = 4; - * @param \Google\Api\MetricRule[] $var - * @return $this - */ - public function setMetricRules($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\MetricRule::class); - $this->metric_rules = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/QuotaLimit.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/QuotaLimit.php deleted file mode 100644 index 457cc8839770..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/QuotaLimit.php +++ /dev/null @@ -1,527 +0,0 @@ -google.api.QuotaLimit - */ -class QuotaLimit extends \Google\Protobuf\Internal\Message -{ - /** - * Name of the quota limit. - * The name must be provided, and it must be unique within the service. The - * name can only include alphanumeric characters as well as '-'. - * The maximum length of the limit name is 64 characters. - * - * Generated from protobuf field string name = 6; - */ - protected $name = ''; - /** - * Optional. User-visible, extended description for this quota limit. - * Should be used only when more context is needed to understand this limit - * than provided by the limit's display name (see: `display_name`). - * - * Generated from protobuf field string description = 2; - */ - protected $description = ''; - /** - * Default number of tokens that can be consumed during the specified - * duration. This is the number of tokens assigned when a client - * application developer activates the service for his/her project. - * Specifying a value of 0 will block all requests. This can be used if you - * are provisioning quota to selected consumers and blocking others. - * Similarly, a value of -1 will indicate an unlimited quota. No other - * negative values are allowed. - * Used by group-based quotas only. - * - * Generated from protobuf field int64 default_limit = 3; - */ - protected $default_limit = 0; - /** - * Maximum number of tokens that can be consumed during the specified - * duration. Client application developers can override the default limit up - * to this maximum. If specified, this value cannot be set to a value less - * than the default limit. If not specified, it is set to the default limit. - * To allow clients to apply overrides with no upper bound, set this to -1, - * indicating unlimited maximum quota. - * Used by group-based quotas only. - * - * Generated from protobuf field int64 max_limit = 4; - */ - protected $max_limit = 0; - /** - * Free tier value displayed in the Developers Console for this limit. - * The free tier is the number of tokens that will be subtracted from the - * billed amount when billing is enabled. - * This field can only be set on a limit with duration "1d", in a billable - * group; it is invalid on any other limit. If this field is not set, it - * defaults to 0, indicating that there is no free tier for this service. - * Used by group-based quotas only. - * - * Generated from protobuf field int64 free_tier = 7; - */ - protected $free_tier = 0; - /** - * Duration of this limit in textual notation. Must be "100s" or "1d". - * Used by group-based quotas only. - * - * Generated from protobuf field string duration = 5; - */ - protected $duration = ''; - /** - * The name of the metric this quota limit applies to. The quota limits with - * the same metric will be checked together during runtime. The metric must be - * defined within the service config. - * - * Generated from protobuf field string metric = 8; - */ - protected $metric = ''; - /** - * Specify the unit of the quota limit. It uses the same syntax as - * [MetricDescriptor.unit][google.api.MetricDescriptor.unit]. The supported - * unit kinds are determined by the quota backend system. - * Here are some examples: - * * "1/min/{project}" for quota per minute per project. - * Note: the order of unit components is insignificant. - * The "1" at the beginning is required to follow the metric unit syntax. - * - * Generated from protobuf field string unit = 9; - */ - protected $unit = ''; - /** - * Tiered limit values. You must specify this as a key:value pair, with an - * integer value that is the maximum number of requests allowed for the - * specified unit. Currently only STANDARD is supported. - * - * Generated from protobuf field map values = 10; - */ - private $values; - /** - * User-visible display name for this limit. - * Optional. If not set, the UI will provide a default display name based on - * the quota configuration. This field can be used to override the default - * display name generated from the configuration. - * - * Generated from protobuf field string display_name = 12; - */ - protected $display_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Name of the quota limit. - * The name must be provided, and it must be unique within the service. The - * name can only include alphanumeric characters as well as '-'. - * The maximum length of the limit name is 64 characters. - * @type string $description - * Optional. User-visible, extended description for this quota limit. - * Should be used only when more context is needed to understand this limit - * than provided by the limit's display name (see: `display_name`). - * @type int|string $default_limit - * Default number of tokens that can be consumed during the specified - * duration. This is the number of tokens assigned when a client - * application developer activates the service for his/her project. - * Specifying a value of 0 will block all requests. This can be used if you - * are provisioning quota to selected consumers and blocking others. - * Similarly, a value of -1 will indicate an unlimited quota. No other - * negative values are allowed. - * Used by group-based quotas only. - * @type int|string $max_limit - * Maximum number of tokens that can be consumed during the specified - * duration. Client application developers can override the default limit up - * to this maximum. If specified, this value cannot be set to a value less - * than the default limit. If not specified, it is set to the default limit. - * To allow clients to apply overrides with no upper bound, set this to -1, - * indicating unlimited maximum quota. - * Used by group-based quotas only. - * @type int|string $free_tier - * Free tier value displayed in the Developers Console for this limit. - * The free tier is the number of tokens that will be subtracted from the - * billed amount when billing is enabled. - * This field can only be set on a limit with duration "1d", in a billable - * group; it is invalid on any other limit. If this field is not set, it - * defaults to 0, indicating that there is no free tier for this service. - * Used by group-based quotas only. - * @type string $duration - * Duration of this limit in textual notation. Must be "100s" or "1d". - * Used by group-based quotas only. - * @type string $metric - * The name of the metric this quota limit applies to. The quota limits with - * the same metric will be checked together during runtime. The metric must be - * defined within the service config. - * @type string $unit - * Specify the unit of the quota limit. It uses the same syntax as - * [MetricDescriptor.unit][google.api.MetricDescriptor.unit]. The supported - * unit kinds are determined by the quota backend system. - * Here are some examples: - * * "1/min/{project}" for quota per minute per project. - * Note: the order of unit components is insignificant. - * The "1" at the beginning is required to follow the metric unit syntax. - * @type array|\Google\Protobuf\Internal\MapField $values - * Tiered limit values. You must specify this as a key:value pair, with an - * integer value that is the maximum number of requests allowed for the - * specified unit. Currently only STANDARD is supported. - * @type string $display_name - * User-visible display name for this limit. - * Optional. If not set, the UI will provide a default display name based on - * the quota configuration. This field can be used to override the default - * display name generated from the configuration. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Quota::initOnce(); - parent::__construct($data); - } - - /** - * Name of the quota limit. - * The name must be provided, and it must be unique within the service. The - * name can only include alphanumeric characters as well as '-'. - * The maximum length of the limit name is 64 characters. - * - * Generated from protobuf field string name = 6; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Name of the quota limit. - * The name must be provided, and it must be unique within the service. The - * name can only include alphanumeric characters as well as '-'. - * The maximum length of the limit name is 64 characters. - * - * Generated from protobuf field string name = 6; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. User-visible, extended description for this quota limit. - * Should be used only when more context is needed to understand this limit - * than provided by the limit's display name (see: `display_name`). - * - * Generated from protobuf field string description = 2; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. User-visible, extended description for this quota limit. - * Should be used only when more context is needed to understand this limit - * than provided by the limit's display name (see: `display_name`). - * - * Generated from protobuf field string description = 2; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Default number of tokens that can be consumed during the specified - * duration. This is the number of tokens assigned when a client - * application developer activates the service for his/her project. - * Specifying a value of 0 will block all requests. This can be used if you - * are provisioning quota to selected consumers and blocking others. - * Similarly, a value of -1 will indicate an unlimited quota. No other - * negative values are allowed. - * Used by group-based quotas only. - * - * Generated from protobuf field int64 default_limit = 3; - * @return int|string - */ - public function getDefaultLimit() - { - return $this->default_limit; - } - - /** - * Default number of tokens that can be consumed during the specified - * duration. This is the number of tokens assigned when a client - * application developer activates the service for his/her project. - * Specifying a value of 0 will block all requests. This can be used if you - * are provisioning quota to selected consumers and blocking others. - * Similarly, a value of -1 will indicate an unlimited quota. No other - * negative values are allowed. - * Used by group-based quotas only. - * - * Generated from protobuf field int64 default_limit = 3; - * @param int|string $var - * @return $this - */ - public function setDefaultLimit($var) - { - GPBUtil::checkInt64($var); - $this->default_limit = $var; - - return $this; - } - - /** - * Maximum number of tokens that can be consumed during the specified - * duration. Client application developers can override the default limit up - * to this maximum. If specified, this value cannot be set to a value less - * than the default limit. If not specified, it is set to the default limit. - * To allow clients to apply overrides with no upper bound, set this to -1, - * indicating unlimited maximum quota. - * Used by group-based quotas only. - * - * Generated from protobuf field int64 max_limit = 4; - * @return int|string - */ - public function getMaxLimit() - { - return $this->max_limit; - } - - /** - * Maximum number of tokens that can be consumed during the specified - * duration. Client application developers can override the default limit up - * to this maximum. If specified, this value cannot be set to a value less - * than the default limit. If not specified, it is set to the default limit. - * To allow clients to apply overrides with no upper bound, set this to -1, - * indicating unlimited maximum quota. - * Used by group-based quotas only. - * - * Generated from protobuf field int64 max_limit = 4; - * @param int|string $var - * @return $this - */ - public function setMaxLimit($var) - { - GPBUtil::checkInt64($var); - $this->max_limit = $var; - - return $this; - } - - /** - * Free tier value displayed in the Developers Console for this limit. - * The free tier is the number of tokens that will be subtracted from the - * billed amount when billing is enabled. - * This field can only be set on a limit with duration "1d", in a billable - * group; it is invalid on any other limit. If this field is not set, it - * defaults to 0, indicating that there is no free tier for this service. - * Used by group-based quotas only. - * - * Generated from protobuf field int64 free_tier = 7; - * @return int|string - */ - public function getFreeTier() - { - return $this->free_tier; - } - - /** - * Free tier value displayed in the Developers Console for this limit. - * The free tier is the number of tokens that will be subtracted from the - * billed amount when billing is enabled. - * This field can only be set on a limit with duration "1d", in a billable - * group; it is invalid on any other limit. If this field is not set, it - * defaults to 0, indicating that there is no free tier for this service. - * Used by group-based quotas only. - * - * Generated from protobuf field int64 free_tier = 7; - * @param int|string $var - * @return $this - */ - public function setFreeTier($var) - { - GPBUtil::checkInt64($var); - $this->free_tier = $var; - - return $this; - } - - /** - * Duration of this limit in textual notation. Must be "100s" or "1d". - * Used by group-based quotas only. - * - * Generated from protobuf field string duration = 5; - * @return string - */ - public function getDuration() - { - return $this->duration; - } - - /** - * Duration of this limit in textual notation. Must be "100s" or "1d". - * Used by group-based quotas only. - * - * Generated from protobuf field string duration = 5; - * @param string $var - * @return $this - */ - public function setDuration($var) - { - GPBUtil::checkString($var, True); - $this->duration = $var; - - return $this; - } - - /** - * The name of the metric this quota limit applies to. The quota limits with - * the same metric will be checked together during runtime. The metric must be - * defined within the service config. - * - * Generated from protobuf field string metric = 8; - * @return string - */ - public function getMetric() - { - return $this->metric; - } - - /** - * The name of the metric this quota limit applies to. The quota limits with - * the same metric will be checked together during runtime. The metric must be - * defined within the service config. - * - * Generated from protobuf field string metric = 8; - * @param string $var - * @return $this - */ - public function setMetric($var) - { - GPBUtil::checkString($var, True); - $this->metric = $var; - - return $this; - } - - /** - * Specify the unit of the quota limit. It uses the same syntax as - * [MetricDescriptor.unit][google.api.MetricDescriptor.unit]. The supported - * unit kinds are determined by the quota backend system. - * Here are some examples: - * * "1/min/{project}" for quota per minute per project. - * Note: the order of unit components is insignificant. - * The "1" at the beginning is required to follow the metric unit syntax. - * - * Generated from protobuf field string unit = 9; - * @return string - */ - public function getUnit() - { - return $this->unit; - } - - /** - * Specify the unit of the quota limit. It uses the same syntax as - * [MetricDescriptor.unit][google.api.MetricDescriptor.unit]. The supported - * unit kinds are determined by the quota backend system. - * Here are some examples: - * * "1/min/{project}" for quota per minute per project. - * Note: the order of unit components is insignificant. - * The "1" at the beginning is required to follow the metric unit syntax. - * - * Generated from protobuf field string unit = 9; - * @param string $var - * @return $this - */ - public function setUnit($var) - { - GPBUtil::checkString($var, True); - $this->unit = $var; - - return $this; - } - - /** - * Tiered limit values. You must specify this as a key:value pair, with an - * integer value that is the maximum number of requests allowed for the - * specified unit. Currently only STANDARD is supported. - * - * Generated from protobuf field map values = 10; - * @return \Google\Protobuf\Internal\MapField - */ - public function getValues() - { - return $this->values; - } - - /** - * Tiered limit values. You must specify this as a key:value pair, with an - * integer value that is the maximum number of requests allowed for the - * specified unit. Currently only STANDARD is supported. - * - * Generated from protobuf field map values = 10; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setValues($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::INT64); - $this->values = $arr; - - return $this; - } - - /** - * User-visible display name for this limit. - * Optional. If not set, the UI will provide a default display name based on - * the quota configuration. This field can be used to override the default - * display name generated from the configuration. - * - * Generated from protobuf field string display_name = 12; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * User-visible display name for this limit. - * Optional. If not set, the UI will provide a default display name based on - * the quota configuration. This field can be used to override the default - * display name generated from the configuration. - * - * Generated from protobuf field string display_name = 12; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ResourceDescriptor.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ResourceDescriptor.php deleted file mode 100644 index f6142bffc644..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ResourceDescriptor.php +++ /dev/null @@ -1,495 +0,0 @@ -google.api.ResourceDescriptor - */ -class ResourceDescriptor extends \Google\Protobuf\Internal\Message -{ - /** - * The resource type. It must be in the format of - * {service_name}/{resource_type_kind}. The `resource_type_kind` must be - * singular and must not include version numbers. - * Example: `storage.googleapis.com/Bucket` - * The value of the resource_type_kind must follow the regular expression - * /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and - * should use PascalCase (UpperCamelCase). The maximum number of - * characters allowed for the `resource_type_kind` is 100. - * - * Generated from protobuf field string type = 1; - */ - protected $type = ''; - /** - * Optional. The relative resource name pattern associated with this resource - * type. The DNS prefix of the full resource name shouldn't be specified here. - * The path pattern must follow the syntax, which aligns with HTTP binding - * syntax: - * Template = Segment { "/" Segment } ; - * Segment = LITERAL | Variable ; - * Variable = "{" LITERAL "}" ; - * Examples: - * - "projects/{project}/topics/{topic}" - * - "projects/{project}/knowledgeBases/{knowledge_base}" - * The components in braces correspond to the IDs for each resource in the - * hierarchy. It is expected that, if multiple patterns are provided, - * the same component name (e.g. "project") refers to IDs of the same - * type of resource. - * - * Generated from protobuf field repeated string pattern = 2; - */ - private $pattern; - /** - * Optional. The field on the resource that designates the resource name - * field. If omitted, this is assumed to be "name". - * - * Generated from protobuf field string name_field = 3; - */ - protected $name_field = ''; - /** - * Optional. The historical or future-looking state of the resource pattern. - * Example: - * // The InspectTemplate message originally only supported resource - * // names with organization, and project was added later. - * message InspectTemplate { - * option (google.api.resource) = { - * type: "dlp.googleapis.com/InspectTemplate" - * pattern: - * "organizations/{organization}/inspectTemplates/{inspect_template}" - * pattern: "projects/{project}/inspectTemplates/{inspect_template}" - * history: ORIGINALLY_SINGLE_PATTERN - * }; - * } - * - * Generated from protobuf field .google.api.ResourceDescriptor.History history = 4; - */ - protected $history = 0; - /** - * The plural name used in the resource name and permission names, such as - * 'projects' for the resource name of 'projects/{project}' and the permission - * name of 'cloudresourcemanager.googleapis.com/projects.get'. One exception - * to this is for Nested Collections that have stuttering names, as defined - * in [AIP-122](https://google.aip.dev/122#nested-collections), where the - * collection ID in the resource name pattern does not necessarily directly - * match the `plural` value. - * It is the same concept of the `plural` field in k8s CRD spec - * https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ - * Note: The plural form is required even for singleton resources. See - * https://aip.dev/156 - * - * Generated from protobuf field string plural = 5; - */ - protected $plural = ''; - /** - * The same concept of the `singular` field in k8s CRD spec - * https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ - * Such as "project" for the `resourcemanager.googleapis.com/Project` type. - * - * Generated from protobuf field string singular = 6; - */ - protected $singular = ''; - /** - * Style flag(s) for this resource. - * These indicate that a resource is expected to conform to a given - * style. See the specific style flags for additional information. - * - * Generated from protobuf field repeated .google.api.ResourceDescriptor.Style style = 10; - */ - private $style; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $type - * The resource type. It must be in the format of - * {service_name}/{resource_type_kind}. The `resource_type_kind` must be - * singular and must not include version numbers. - * Example: `storage.googleapis.com/Bucket` - * The value of the resource_type_kind must follow the regular expression - * /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and - * should use PascalCase (UpperCamelCase). The maximum number of - * characters allowed for the `resource_type_kind` is 100. - * @type string[] $pattern - * Optional. The relative resource name pattern associated with this resource - * type. The DNS prefix of the full resource name shouldn't be specified here. - * The path pattern must follow the syntax, which aligns with HTTP binding - * syntax: - * Template = Segment { "/" Segment } ; - * Segment = LITERAL | Variable ; - * Variable = "{" LITERAL "}" ; - * Examples: - * - "projects/{project}/topics/{topic}" - * - "projects/{project}/knowledgeBases/{knowledge_base}" - * The components in braces correspond to the IDs for each resource in the - * hierarchy. It is expected that, if multiple patterns are provided, - * the same component name (e.g. "project") refers to IDs of the same - * type of resource. - * @type string $name_field - * Optional. The field on the resource that designates the resource name - * field. If omitted, this is assumed to be "name". - * @type int $history - * Optional. The historical or future-looking state of the resource pattern. - * Example: - * // The InspectTemplate message originally only supported resource - * // names with organization, and project was added later. - * message InspectTemplate { - * option (google.api.resource) = { - * type: "dlp.googleapis.com/InspectTemplate" - * pattern: - * "organizations/{organization}/inspectTemplates/{inspect_template}" - * pattern: "projects/{project}/inspectTemplates/{inspect_template}" - * history: ORIGINALLY_SINGLE_PATTERN - * }; - * } - * @type string $plural - * The plural name used in the resource name and permission names, such as - * 'projects' for the resource name of 'projects/{project}' and the permission - * name of 'cloudresourcemanager.googleapis.com/projects.get'. One exception - * to this is for Nested Collections that have stuttering names, as defined - * in [AIP-122](https://google.aip.dev/122#nested-collections), where the - * collection ID in the resource name pattern does not necessarily directly - * match the `plural` value. - * It is the same concept of the `plural` field in k8s CRD spec - * https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ - * Note: The plural form is required even for singleton resources. See - * https://aip.dev/156 - * @type string $singular - * The same concept of the `singular` field in k8s CRD spec - * https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ - * Such as "project" for the `resourcemanager.googleapis.com/Project` type. - * @type int[] $style - * Style flag(s) for this resource. - * These indicate that a resource is expected to conform to a given - * style. See the specific style flags for additional information. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Resource::initOnce(); - parent::__construct($data); - } - - /** - * The resource type. It must be in the format of - * {service_name}/{resource_type_kind}. The `resource_type_kind` must be - * singular and must not include version numbers. - * Example: `storage.googleapis.com/Bucket` - * The value of the resource_type_kind must follow the regular expression - * /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and - * should use PascalCase (UpperCamelCase). The maximum number of - * characters allowed for the `resource_type_kind` is 100. - * - * Generated from protobuf field string type = 1; - * @return string - */ - public function getType() - { - return $this->type; - } - - /** - * The resource type. It must be in the format of - * {service_name}/{resource_type_kind}. The `resource_type_kind` must be - * singular and must not include version numbers. - * Example: `storage.googleapis.com/Bucket` - * The value of the resource_type_kind must follow the regular expression - * /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and - * should use PascalCase (UpperCamelCase). The maximum number of - * characters allowed for the `resource_type_kind` is 100. - * - * Generated from protobuf field string type = 1; - * @param string $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkString($var, True); - $this->type = $var; - - return $this; - } - - /** - * Optional. The relative resource name pattern associated with this resource - * type. The DNS prefix of the full resource name shouldn't be specified here. - * The path pattern must follow the syntax, which aligns with HTTP binding - * syntax: - * Template = Segment { "/" Segment } ; - * Segment = LITERAL | Variable ; - * Variable = "{" LITERAL "}" ; - * Examples: - * - "projects/{project}/topics/{topic}" - * - "projects/{project}/knowledgeBases/{knowledge_base}" - * The components in braces correspond to the IDs for each resource in the - * hierarchy. It is expected that, if multiple patterns are provided, - * the same component name (e.g. "project") refers to IDs of the same - * type of resource. - * - * Generated from protobuf field repeated string pattern = 2; - * @return RepeatedField - */ - public function getPattern() - { - return $this->pattern; - } - - /** - * Optional. The relative resource name pattern associated with this resource - * type. The DNS prefix of the full resource name shouldn't be specified here. - * The path pattern must follow the syntax, which aligns with HTTP binding - * syntax: - * Template = Segment { "/" Segment } ; - * Segment = LITERAL | Variable ; - * Variable = "{" LITERAL "}" ; - * Examples: - * - "projects/{project}/topics/{topic}" - * - "projects/{project}/knowledgeBases/{knowledge_base}" - * The components in braces correspond to the IDs for each resource in the - * hierarchy. It is expected that, if multiple patterns are provided, - * the same component name (e.g. "project") refers to IDs of the same - * type of resource. - * - * Generated from protobuf field repeated string pattern = 2; - * @param string[] $var - * @return $this - */ - public function setPattern($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->pattern = $arr; - - return $this; - } - - /** - * Optional. The field on the resource that designates the resource name - * field. If omitted, this is assumed to be "name". - * - * Generated from protobuf field string name_field = 3; - * @return string - */ - public function getNameField() - { - return $this->name_field; - } - - /** - * Optional. The field on the resource that designates the resource name - * field. If omitted, this is assumed to be "name". - * - * Generated from protobuf field string name_field = 3; - * @param string $var - * @return $this - */ - public function setNameField($var) - { - GPBUtil::checkString($var, True); - $this->name_field = $var; - - return $this; - } - - /** - * Optional. The historical or future-looking state of the resource pattern. - * Example: - * // The InspectTemplate message originally only supported resource - * // names with organization, and project was added later. - * message InspectTemplate { - * option (google.api.resource) = { - * type: "dlp.googleapis.com/InspectTemplate" - * pattern: - * "organizations/{organization}/inspectTemplates/{inspect_template}" - * pattern: "projects/{project}/inspectTemplates/{inspect_template}" - * history: ORIGINALLY_SINGLE_PATTERN - * }; - * } - * - * Generated from protobuf field .google.api.ResourceDescriptor.History history = 4; - * @return int - */ - public function getHistory() - { - return $this->history; - } - - /** - * Optional. The historical or future-looking state of the resource pattern. - * Example: - * // The InspectTemplate message originally only supported resource - * // names with organization, and project was added later. - * message InspectTemplate { - * option (google.api.resource) = { - * type: "dlp.googleapis.com/InspectTemplate" - * pattern: - * "organizations/{organization}/inspectTemplates/{inspect_template}" - * pattern: "projects/{project}/inspectTemplates/{inspect_template}" - * history: ORIGINALLY_SINGLE_PATTERN - * }; - * } - * - * Generated from protobuf field .google.api.ResourceDescriptor.History history = 4; - * @param int $var - * @return $this - */ - public function setHistory($var) - { - GPBUtil::checkEnum($var, \Google\Api\ResourceDescriptor\History::class); - $this->history = $var; - - return $this; - } - - /** - * The plural name used in the resource name and permission names, such as - * 'projects' for the resource name of 'projects/{project}' and the permission - * name of 'cloudresourcemanager.googleapis.com/projects.get'. One exception - * to this is for Nested Collections that have stuttering names, as defined - * in [AIP-122](https://google.aip.dev/122#nested-collections), where the - * collection ID in the resource name pattern does not necessarily directly - * match the `plural` value. - * It is the same concept of the `plural` field in k8s CRD spec - * https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ - * Note: The plural form is required even for singleton resources. See - * https://aip.dev/156 - * - * Generated from protobuf field string plural = 5; - * @return string - */ - public function getPlural() - { - return $this->plural; - } - - /** - * The plural name used in the resource name and permission names, such as - * 'projects' for the resource name of 'projects/{project}' and the permission - * name of 'cloudresourcemanager.googleapis.com/projects.get'. One exception - * to this is for Nested Collections that have stuttering names, as defined - * in [AIP-122](https://google.aip.dev/122#nested-collections), where the - * collection ID in the resource name pattern does not necessarily directly - * match the `plural` value. - * It is the same concept of the `plural` field in k8s CRD spec - * https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ - * Note: The plural form is required even for singleton resources. See - * https://aip.dev/156 - * - * Generated from protobuf field string plural = 5; - * @param string $var - * @return $this - */ - public function setPlural($var) - { - GPBUtil::checkString($var, True); - $this->plural = $var; - - return $this; - } - - /** - * The same concept of the `singular` field in k8s CRD spec - * https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ - * Such as "project" for the `resourcemanager.googleapis.com/Project` type. - * - * Generated from protobuf field string singular = 6; - * @return string - */ - public function getSingular() - { - return $this->singular; - } - - /** - * The same concept of the `singular` field in k8s CRD spec - * https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ - * Such as "project" for the `resourcemanager.googleapis.com/Project` type. - * - * Generated from protobuf field string singular = 6; - * @param string $var - * @return $this - */ - public function setSingular($var) - { - GPBUtil::checkString($var, True); - $this->singular = $var; - - return $this; - } - - /** - * Style flag(s) for this resource. - * These indicate that a resource is expected to conform to a given - * style. See the specific style flags for additional information. - * - * Generated from protobuf field repeated .google.api.ResourceDescriptor.Style style = 10; - * @return RepeatedField - */ - public function getStyle() - { - return $this->style; - } - - /** - * Style flag(s) for this resource. - * These indicate that a resource is expected to conform to a given - * style. See the specific style flags for additional information. - * - * Generated from protobuf field repeated .google.api.ResourceDescriptor.Style style = 10; - * @param int[] $var - * @return $this - */ - public function setStyle($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Api\ResourceDescriptor\Style::class); - $this->style = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ResourceDescriptor/History.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ResourceDescriptor/History.php deleted file mode 100644 index ee1ae551aac7..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ResourceDescriptor/History.php +++ /dev/null @@ -1,65 +0,0 @@ -google.api.ResourceDescriptor.History - */ -class History -{ - /** - * The "unset" value. - * - * Generated from protobuf enum HISTORY_UNSPECIFIED = 0; - */ - const HISTORY_UNSPECIFIED = 0; - /** - * The resource originally had one pattern and launched as such, and - * additional patterns were added later. - * - * Generated from protobuf enum ORIGINALLY_SINGLE_PATTERN = 1; - */ - const ORIGINALLY_SINGLE_PATTERN = 1; - /** - * The resource has one pattern, but the API owner expects to add more - * later. (This is the inverse of ORIGINALLY_SINGLE_PATTERN, and prevents - * that from being necessary once there are multiple patterns.) - * - * Generated from protobuf enum FUTURE_MULTI_PATTERN = 2; - */ - const FUTURE_MULTI_PATTERN = 2; - - private static $valueToName = [ - self::HISTORY_UNSPECIFIED => 'HISTORY_UNSPECIFIED', - self::ORIGINALLY_SINGLE_PATTERN => 'ORIGINALLY_SINGLE_PATTERN', - self::FUTURE_MULTI_PATTERN => 'FUTURE_MULTI_PATTERN', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ResourceDescriptor/Style.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ResourceDescriptor/Style.php deleted file mode 100644 index 87dfba14a2a8..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ResourceDescriptor/Style.php +++ /dev/null @@ -1,59 +0,0 @@ -google.api.ResourceDescriptor.Style - */ -class Style -{ - /** - * The unspecified value. Do not use. - * - * Generated from protobuf enum STYLE_UNSPECIFIED = 0; - */ - const STYLE_UNSPECIFIED = 0; - /** - * This resource is intended to be "declarative-friendly". - * Declarative-friendly resources must be more strictly consistent, and - * setting this to true communicates to tools that this resource should - * adhere to declarative-friendly expectations. - * Note: This is used by the API linter (linter.aip.dev) to enable - * additional checks. - * - * Generated from protobuf enum DECLARATIVE_FRIENDLY = 1; - */ - const DECLARATIVE_FRIENDLY = 1; - - private static $valueToName = [ - self::STYLE_UNSPECIFIED => 'STYLE_UNSPECIFIED', - self::DECLARATIVE_FRIENDLY => 'DECLARATIVE_FRIENDLY', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ResourceReference.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ResourceReference.php deleted file mode 100644 index e6bc4e8ff3fa..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/ResourceReference.php +++ /dev/null @@ -1,190 +0,0 @@ -google.api.ResourceReference - */ -class ResourceReference extends \Google\Protobuf\Internal\Message -{ - /** - * The resource type that the annotated field references. - * Example: - * message Subscription { - * string topic = 2 [(google.api.resource_reference) = { - * type: "pubsub.googleapis.com/Topic" - * }]; - * } - * Occasionally, a field may reference an arbitrary resource. In this case, - * APIs use the special value * in their resource reference. - * Example: - * message GetIamPolicyRequest { - * string resource = 2 [(google.api.resource_reference) = { - * type: "*" - * }]; - * } - * - * Generated from protobuf field string type = 1; - */ - protected $type = ''; - /** - * The resource type of a child collection that the annotated field - * references. This is useful for annotating the `parent` field that - * doesn't have a fixed resource type. - * Example: - * message ListLogEntriesRequest { - * string parent = 1 [(google.api.resource_reference) = { - * child_type: "logging.googleapis.com/LogEntry" - * }; - * } - * - * Generated from protobuf field string child_type = 2; - */ - protected $child_type = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $type - * The resource type that the annotated field references. - * Example: - * message Subscription { - * string topic = 2 [(google.api.resource_reference) = { - * type: "pubsub.googleapis.com/Topic" - * }]; - * } - * Occasionally, a field may reference an arbitrary resource. In this case, - * APIs use the special value * in their resource reference. - * Example: - * message GetIamPolicyRequest { - * string resource = 2 [(google.api.resource_reference) = { - * type: "*" - * }]; - * } - * @type string $child_type - * The resource type of a child collection that the annotated field - * references. This is useful for annotating the `parent` field that - * doesn't have a fixed resource type. - * Example: - * message ListLogEntriesRequest { - * string parent = 1 [(google.api.resource_reference) = { - * child_type: "logging.googleapis.com/LogEntry" - * }; - * } - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Resource::initOnce(); - parent::__construct($data); - } - - /** - * The resource type that the annotated field references. - * Example: - * message Subscription { - * string topic = 2 [(google.api.resource_reference) = { - * type: "pubsub.googleapis.com/Topic" - * }]; - * } - * Occasionally, a field may reference an arbitrary resource. In this case, - * APIs use the special value * in their resource reference. - * Example: - * message GetIamPolicyRequest { - * string resource = 2 [(google.api.resource_reference) = { - * type: "*" - * }]; - * } - * - * Generated from protobuf field string type = 1; - * @return string - */ - public function getType() - { - return $this->type; - } - - /** - * The resource type that the annotated field references. - * Example: - * message Subscription { - * string topic = 2 [(google.api.resource_reference) = { - * type: "pubsub.googleapis.com/Topic" - * }]; - * } - * Occasionally, a field may reference an arbitrary resource. In this case, - * APIs use the special value * in their resource reference. - * Example: - * message GetIamPolicyRequest { - * string resource = 2 [(google.api.resource_reference) = { - * type: "*" - * }]; - * } - * - * Generated from protobuf field string type = 1; - * @param string $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkString($var, True); - $this->type = $var; - - return $this; - } - - /** - * The resource type of a child collection that the annotated field - * references. This is useful for annotating the `parent` field that - * doesn't have a fixed resource type. - * Example: - * message ListLogEntriesRequest { - * string parent = 1 [(google.api.resource_reference) = { - * child_type: "logging.googleapis.com/LogEntry" - * }; - * } - * - * Generated from protobuf field string child_type = 2; - * @return string - */ - public function getChildType() - { - return $this->child_type; - } - - /** - * The resource type of a child collection that the annotated field - * references. This is useful for annotating the `parent` field that - * doesn't have a fixed resource type. - * Example: - * message ListLogEntriesRequest { - * string parent = 1 [(google.api.resource_reference) = { - * child_type: "logging.googleapis.com/LogEntry" - * }; - * } - * - * Generated from protobuf field string child_type = 2; - * @param string $var - * @return $this - */ - public function setChildType($var) - { - GPBUtil::checkString($var, True); - $this->child_type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/RoutingParameter.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/RoutingParameter.php deleted file mode 100644 index ff03816fe471..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/RoutingParameter.php +++ /dev/null @@ -1,281 +0,0 @@ -google.api.RoutingParameter - */ -class RoutingParameter extends \Google\Protobuf\Internal\Message -{ - /** - * A request field to extract the header key-value pair from. - * - * Generated from protobuf field string field = 1; - */ - protected $field = ''; - /** - * A pattern matching the key-value field. Optional. - * If not specified, the whole field specified in the `field` field will be - * taken as value, and its name used as key. If specified, it MUST contain - * exactly one named segment (along with any number of unnamed segments) The - * pattern will be matched over the field specified in the `field` field, then - * if the match is successful: - * - the name of the single named segment will be used as a header name, - * - the match value of the segment will be used as a header value; - * if the match is NOT successful, nothing will be sent. - * Example: - * -- This is a field in the request message - * | that the header value will be extracted from. - * | - * | -- This is the key name in the - * | | routing header. - * V | - * field: "table_name" v - * path_template: "projects/{@*}{table_location=instances/*}/tables/*" - * ^ ^ - * | | - * In the {} brackets is the pattern that -- | - * specifies what to extract from the | - * field as a value to be sent. | - * | - * The string in the field must match the whole pattern -- - * before brackets, inside brackets, after brackets. - * When looking at this specific example, we can see that: - * - A key-value pair with the key `table_location` - * and the value matching `instances/*` should be added - * to the x-goog-request-params routing header. - * - The value is extracted from the request message's `table_name` field - * if it matches the full pattern specified: - * `projects/{@*}instances/{@*}tables/*`. - * **NB:** If the `path_template` field is not provided, the key name is - * equal to the field name, and the whole field should be sent as a value. - * This makes the pattern for the field and the value functionally equivalent - * to `**`, and the configuration - * { - * field: "table_name" - * } - * is a functionally equivalent shorthand to: - * { - * field: "table_name" - * path_template: "{table_name=**}" - * } - * See Example 1 for more details. - * - * Generated from protobuf field string path_template = 2; - */ - protected $path_template = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $field - * A request field to extract the header key-value pair from. - * @type string $path_template - * A pattern matching the key-value field. Optional. - * If not specified, the whole field specified in the `field` field will be - * taken as value, and its name used as key. If specified, it MUST contain - * exactly one named segment (along with any number of unnamed segments) The - * pattern will be matched over the field specified in the `field` field, then - * if the match is successful: - * - the name of the single named segment will be used as a header name, - * - the match value of the segment will be used as a header value; - * if the match is NOT successful, nothing will be sent. - * Example: - * -- This is a field in the request message - * | that the header value will be extracted from. - * | - * | -- This is the key name in the - * | | routing header. - * V | - * field: "table_name" v - * path_template: "projects/{@*}{table_location=instances/*}/tables/*" - * ^ ^ - * | | - * In the {} brackets is the pattern that -- | - * specifies what to extract from the | - * field as a value to be sent. | - * | - * The string in the field must match the whole pattern -- - * before brackets, inside brackets, after brackets. - * When looking at this specific example, we can see that: - * - A key-value pair with the key `table_location` - * and the value matching `instances/*` should be added - * to the x-goog-request-params routing header. - * - The value is extracted from the request message's `table_name` field - * if it matches the full pattern specified: - * `projects/{@*}instances/{@*}tables/*`. - * **NB:** If the `path_template` field is not provided, the key name is - * equal to the field name, and the whole field should be sent as a value. - * This makes the pattern for the field and the value functionally equivalent - * to `**`, and the configuration - * { - * field: "table_name" - * } - * is a functionally equivalent shorthand to: - * { - * field: "table_name" - * path_template: "{table_name=**}" - * } - * See Example 1 for more details. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Routing::initOnce(); - parent::__construct($data); - } - - /** - * A request field to extract the header key-value pair from. - * - * Generated from protobuf field string field = 1; - * @return string - */ - public function getField() - { - return $this->field; - } - - /** - * A request field to extract the header key-value pair from. - * - * Generated from protobuf field string field = 1; - * @param string $var - * @return $this - */ - public function setField($var) - { - GPBUtil::checkString($var, True); - $this->field = $var; - - return $this; - } - - /** - * A pattern matching the key-value field. Optional. - * If not specified, the whole field specified in the `field` field will be - * taken as value, and its name used as key. If specified, it MUST contain - * exactly one named segment (along with any number of unnamed segments) The - * pattern will be matched over the field specified in the `field` field, then - * if the match is successful: - * - the name of the single named segment will be used as a header name, - * - the match value of the segment will be used as a header value; - * if the match is NOT successful, nothing will be sent. - * Example: - * -- This is a field in the request message - * | that the header value will be extracted from. - * | - * | -- This is the key name in the - * | | routing header. - * V | - * field: "table_name" v - * path_template: "projects/{@*}{table_location=instances/*}/tables/*" - * ^ ^ - * | | - * In the {} brackets is the pattern that -- | - * specifies what to extract from the | - * field as a value to be sent. | - * | - * The string in the field must match the whole pattern -- - * before brackets, inside brackets, after brackets. - * When looking at this specific example, we can see that: - * - A key-value pair with the key `table_location` - * and the value matching `instances/*` should be added - * to the x-goog-request-params routing header. - * - The value is extracted from the request message's `table_name` field - * if it matches the full pattern specified: - * `projects/{@*}instances/{@*}tables/*`. - * **NB:** If the `path_template` field is not provided, the key name is - * equal to the field name, and the whole field should be sent as a value. - * This makes the pattern for the field and the value functionally equivalent - * to `**`, and the configuration - * { - * field: "table_name" - * } - * is a functionally equivalent shorthand to: - * { - * field: "table_name" - * path_template: "{table_name=**}" - * } - * See Example 1 for more details. - * - * Generated from protobuf field string path_template = 2; - * @return string - */ - public function getPathTemplate() - { - return $this->path_template; - } - - /** - * A pattern matching the key-value field. Optional. - * If not specified, the whole field specified in the `field` field will be - * taken as value, and its name used as key. If specified, it MUST contain - * exactly one named segment (along with any number of unnamed segments) The - * pattern will be matched over the field specified in the `field` field, then - * if the match is successful: - * - the name of the single named segment will be used as a header name, - * - the match value of the segment will be used as a header value; - * if the match is NOT successful, nothing will be sent. - * Example: - * -- This is a field in the request message - * | that the header value will be extracted from. - * | - * | -- This is the key name in the - * | | routing header. - * V | - * field: "table_name" v - * path_template: "projects/{@*}{table_location=instances/*}/tables/*" - * ^ ^ - * | | - * In the {} brackets is the pattern that -- | - * specifies what to extract from the | - * field as a value to be sent. | - * | - * The string in the field must match the whole pattern -- - * before brackets, inside brackets, after brackets. - * When looking at this specific example, we can see that: - * - A key-value pair with the key `table_location` - * and the value matching `instances/*` should be added - * to the x-goog-request-params routing header. - * - The value is extracted from the request message's `table_name` field - * if it matches the full pattern specified: - * `projects/{@*}instances/{@*}tables/*`. - * **NB:** If the `path_template` field is not provided, the key name is - * equal to the field name, and the whole field should be sent as a value. - * This makes the pattern for the field and the value functionally equivalent - * to `**`, and the configuration - * { - * field: "table_name" - * } - * is a functionally equivalent shorthand to: - * { - * field: "table_name" - * path_template: "{table_name=**}" - * } - * See Example 1 for more details. - * - * Generated from protobuf field string path_template = 2; - * @param string $var - * @return $this - */ - public function setPathTemplate($var) - { - GPBUtil::checkString($var, True); - $this->path_template = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/RoutingRule.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/RoutingRule.php deleted file mode 100644 index b6f939a5263d..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/RoutingRule.php +++ /dev/null @@ -1,356 +0,0 @@ -/tables/
` - * // - `projects//instances//tables/
` - * // - `region//zones//tables/
` - * string table_name = 1; - * // This value specifies routing for replication. - * // It can be in the following formats: - * // - `profiles/` - * // - a legacy `profile_id` that can be any string - * string app_profile_id = 2; - * } - * Example message: - * { - * table_name: projects/proj_foo/instances/instance_bar/table/table_baz, - * app_profile_id: profiles/prof_qux - * } - * The routing header consists of one or multiple key-value pairs. The order of - * the key-value pairs is undefined, the order of the `routing_parameters` in - * the `RoutingRule` only matters for the evaluation order of the path - * templates when `field` is the same. See the examples below for more details. - * Every key and value in the routing header must be percent-encoded, - * and joined together in the following format: `key1=value1&key2=value2`. - * The examples below skip the percent-encoding for readability. - * Example 1 - * Extracting a field from the request to put into the routing header - * unchanged, with the key equal to the field name. - * annotation: - * option (google.api.routing) = { - * // Take the `app_profile_id`. - * routing_parameters { - * field: "app_profile_id" - * } - * }; - * result: - * x-goog-request-params: app_profile_id=profiles/prof_qux - * Example 2 - * Extracting a field from the request to put into the routing header - * unchanged, with the key different from the field name. - * annotation: - * option (google.api.routing) = { - * // Take the `app_profile_id`, but name it `routing_id` in the header. - * routing_parameters { - * field: "app_profile_id" - * path_template: "{routing_id=**}" - * } - * }; - * result: - * x-goog-request-params: routing_id=profiles/prof_qux - * Example 3 - * Extracting a field from the request to put into the routing - * header, while matching a path template syntax on the field's value. - * NB: it is more useful to send nothing than to send garbage for the purpose - * of dynamic routing, since garbage pollutes cache. Thus the matching. - * Sub-example 3a - * The field matches the template. - * annotation: - * option (google.api.routing) = { - * // Take the `table_name`, if it's well-formed (with project-based - * // syntax). - * routing_parameters { - * field: "table_name" - * path_template: "{table_name=projects/{@*}instances/{@*}**}" - * } - * }; - * result: - * x-goog-request-params: - * table_name=projects/proj_foo/instances/instance_bar/table/table_baz - * Sub-example 3b - * The field does not match the template. - * annotation: - * option (google.api.routing) = { - * // Take the `table_name`, if it's well-formed (with region-based - * // syntax). - * routing_parameters { - * field: "table_name" - * path_template: "{table_name=regions/{@*}zones/{@*}**}" - * } - * }; - * result: - * - * Sub-example 3c - * Multiple alternative conflictingly named path templates are - * specified. The one that matches is used to construct the header. - * annotation: - * option (google.api.routing) = { - * // Take the `table_name`, if it's well-formed, whether - * // using the region- or projects-based syntax. - * routing_parameters { - * field: "table_name" - * path_template: "{table_name=regions/{@*}zones/{@*}**}" - * } - * routing_parameters { - * field: "table_name" - * path_template: "{table_name=projects/{@*}instances/{@*}**}" - * } - * }; - * result: - * x-goog-request-params: - * table_name=projects/proj_foo/instances/instance_bar/table/table_baz - * Example 4 - * Extracting a single routing header key-value pair by matching a - * template syntax on (a part of) a single request field. - * annotation: - * option (google.api.routing) = { - * // Take just the project id from the `table_name` field. - * routing_parameters { - * field: "table_name" - * path_template: "{routing_id=projects/*}/**" - * } - * }; - * result: - * x-goog-request-params: routing_id=projects/proj_foo - * Example 5 - * Extracting a single routing header key-value pair by matching - * several conflictingly named path templates on (parts of) a single request - * field. The last template to match "wins" the conflict. - * annotation: - * option (google.api.routing) = { - * // If the `table_name` does not have instances information, - * // take just the project id for routing. - * // Otherwise take project + instance. - * routing_parameters { - * field: "table_name" - * path_template: "{routing_id=projects/*}/**" - * } - * routing_parameters { - * field: "table_name" - * path_template: "{routing_id=projects/{@*}instances/*}/**" - * } - * }; - * result: - * x-goog-request-params: - * routing_id=projects/proj_foo/instances/instance_bar - * Example 6 - * Extracting multiple routing header key-value pairs by matching - * several non-conflicting path templates on (parts of) a single request field. - * Sub-example 6a - * Make the templates strict, so that if the `table_name` does not - * have an instance information, nothing is sent. - * annotation: - * option (google.api.routing) = { - * // The routing code needs two keys instead of one composite - * // but works only for the tables with the "project-instance" name - * // syntax. - * routing_parameters { - * field: "table_name" - * path_template: "{project_id=projects/*}/instances/{@*}**" - * } - * routing_parameters { - * field: "table_name" - * path_template: "projects/{@*}{instance_id=instances/*}/**" - * } - * }; - * result: - * x-goog-request-params: - * project_id=projects/proj_foo&instance_id=instances/instance_bar - * Sub-example 6b - * Make the templates loose, so that if the `table_name` does not - * have an instance information, just the project id part is sent. - * annotation: - * option (google.api.routing) = { - * // The routing code wants two keys instead of one composite - * // but will work with just the `project_id` for tables without - * // an instance in the `table_name`. - * routing_parameters { - * field: "table_name" - * path_template: "{project_id=projects/*}/**" - * } - * routing_parameters { - * field: "table_name" - * path_template: "projects/{@*}{instance_id=instances/*}/**" - * } - * }; - * result (is the same as 6a for our example message because it has the instance - * information): - * x-goog-request-params: - * project_id=projects/proj_foo&instance_id=instances/instance_bar - * Example 7 - * Extracting multiple routing header key-value pairs by matching - * several path templates on multiple request fields. - * NB: note that here there is no way to specify sending nothing if one of the - * fields does not match its template. E.g. if the `table_name` is in the wrong - * format, the `project_id` will not be sent, but the `routing_id` will be. - * The backend routing code has to be aware of that and be prepared to not - * receive a full complement of keys if it expects multiple. - * annotation: - * option (google.api.routing) = { - * // The routing needs both `project_id` and `routing_id` - * // (from the `app_profile_id` field) for routing. - * routing_parameters { - * field: "table_name" - * path_template: "{project_id=projects/*}/**" - * } - * routing_parameters { - * field: "app_profile_id" - * path_template: "{routing_id=**}" - * } - * }; - * result: - * x-goog-request-params: - * project_id=projects/proj_foo&routing_id=profiles/prof_qux - * Example 8 - * Extracting a single routing header key-value pair by matching - * several conflictingly named path templates on several request fields. The - * last template to match "wins" the conflict. - * annotation: - * option (google.api.routing) = { - * // The `routing_id` can be a project id or a region id depending on - * // the table name format, but only if the `app_profile_id` is not set. - * // If `app_profile_id` is set it should be used instead. - * routing_parameters { - * field: "table_name" - * path_template: "{routing_id=projects/*}/**" - * } - * routing_parameters { - * field: "table_name" - * path_template: "{routing_id=regions/*}/**" - * } - * routing_parameters { - * field: "app_profile_id" - * path_template: "{routing_id=**}" - * } - * }; - * result: - * x-goog-request-params: routing_id=profiles/prof_qux - * Example 9 - * Bringing it all together. - * annotation: - * option (google.api.routing) = { - * // For routing both `table_location` and a `routing_id` are needed. - * // - * // table_location can be either an instance id or a region+zone id. - * // - * // For `routing_id`, take the value of `app_profile_id` - * // - If it's in the format `profiles/`, send - * // just the `` part. - * // - If it's any other literal, send it as is. - * // If the `app_profile_id` is empty, and the `table_name` starts with - * // the project_id, send that instead. - * routing_parameters { - * field: "table_name" - * path_template: "projects/{@*}{table_location=instances/*}/tables/*" - * } - * routing_parameters { - * field: "table_name" - * path_template: "{table_location=regions/{@*}zones/*}/tables/*" - * } - * routing_parameters { - * field: "table_name" - * path_template: "{routing_id=projects/*}/**" - * } - * routing_parameters { - * field: "app_profile_id" - * path_template: "{routing_id=**}" - * } - * routing_parameters { - * field: "app_profile_id" - * path_template: "profiles/{routing_id=*}" - * } - * }; - * result: - * x-goog-request-params: - * table_location=instances/instance_bar&routing_id=prof_qux - * - * Generated from protobuf message google.api.RoutingRule - */ -class RoutingRule extends \Google\Protobuf\Internal\Message -{ - /** - * A collection of Routing Parameter specifications. - * **NOTE:** If multiple Routing Parameters describe the same key - * (via the `path_template` field or via the `field` field when - * `path_template` is not provided), "last one wins" rule - * determines which Parameter gets used. - * See the examples for more details. - * - * Generated from protobuf field repeated .google.api.RoutingParameter routing_parameters = 2; - */ - private $routing_parameters; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Api\RoutingParameter[] $routing_parameters - * A collection of Routing Parameter specifications. - * **NOTE:** If multiple Routing Parameters describe the same key - * (via the `path_template` field or via the `field` field when - * `path_template` is not provided), "last one wins" rule - * determines which Parameter gets used. - * See the examples for more details. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Routing::initOnce(); - parent::__construct($data); - } - - /** - * A collection of Routing Parameter specifications. - * **NOTE:** If multiple Routing Parameters describe the same key - * (via the `path_template` field or via the `field` field when - * `path_template` is not provided), "last one wins" rule - * determines which Parameter gets used. - * See the examples for more details. - * - * Generated from protobuf field repeated .google.api.RoutingParameter routing_parameters = 2; - * @return RepeatedField<\Google\Api\RoutingParameter> - */ - public function getRoutingParameters() - { - return $this->routing_parameters; - } - - /** - * A collection of Routing Parameter specifications. - * **NOTE:** If multiple Routing Parameters describe the same key - * (via the `path_template` field or via the `field` field when - * `path_template` is not provided), "last one wins" rule - * determines which Parameter gets used. - * See the examples for more details. - * - * Generated from protobuf field repeated .google.api.RoutingParameter routing_parameters = 2; - * @param \Google\Api\RoutingParameter[] $var - * @return $this - */ - public function setRoutingParameters($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\RoutingParameter::class); - $this->routing_parameters = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/RubySettings.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/RubySettings.php deleted file mode 100644 index 2bf1340bde94..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/RubySettings.php +++ /dev/null @@ -1,77 +0,0 @@ -google.api.RubySettings - */ -class RubySettings extends \Google\Protobuf\Internal\Message -{ - /** - * Some settings. - * - * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; - */ - protected $common = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Api\CommonLanguageSettings $common - * Some settings. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Client::initOnce(); - parent::__construct($data); - } - - /** - * Some settings. - * - * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; - * @return \Google\Api\CommonLanguageSettings|null - */ - public function getCommon() - { - return $this->common; - } - - public function hasCommon() - { - return isset($this->common); - } - - public function clearCommon() - { - unset($this->common); - } - - /** - * Some settings. - * - * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; - * @param \Google\Api\CommonLanguageSettings $var - * @return $this - */ - public function setCommon($var) - { - GPBUtil::checkMessage($var, \Google\Api\CommonLanguageSettings::class); - $this->common = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/SelectiveGapicGeneration.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/SelectiveGapicGeneration.php deleted file mode 100644 index a6cbea6126c3..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/SelectiveGapicGeneration.php +++ /dev/null @@ -1,126 +0,0 @@ -google.api.SelectiveGapicGeneration - */ -class SelectiveGapicGeneration extends \Google\Protobuf\Internal\Message -{ - /** - * An allowlist of the fully qualified names of RPCs that should be included - * on public client surfaces. - * - * Generated from protobuf field repeated string methods = 1; - */ - private $methods; - /** - * Setting this to true indicates to the client generators that methods - * that would be excluded from the generation should instead be generated - * in a way that indicates these methods should not be consumed by - * end users. How this is expressed is up to individual language - * implementations to decide. Some examples may be: added annotations, - * obfuscated identifiers, or other language idiomatic patterns. - * - * Generated from protobuf field bool generate_omitted_as_internal = 2; - */ - protected $generate_omitted_as_internal = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string[] $methods - * An allowlist of the fully qualified names of RPCs that should be included - * on public client surfaces. - * @type bool $generate_omitted_as_internal - * Setting this to true indicates to the client generators that methods - * that would be excluded from the generation should instead be generated - * in a way that indicates these methods should not be consumed by - * end users. How this is expressed is up to individual language - * implementations to decide. Some examples may be: added annotations, - * obfuscated identifiers, or other language idiomatic patterns. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Client::initOnce(); - parent::__construct($data); - } - - /** - * An allowlist of the fully qualified names of RPCs that should be included - * on public client surfaces. - * - * Generated from protobuf field repeated string methods = 1; - * @return RepeatedField - */ - public function getMethods() - { - return $this->methods; - } - - /** - * An allowlist of the fully qualified names of RPCs that should be included - * on public client surfaces. - * - * Generated from protobuf field repeated string methods = 1; - * @param string[] $var - * @return $this - */ - public function setMethods($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->methods = $arr; - - return $this; - } - - /** - * Setting this to true indicates to the client generators that methods - * that would be excluded from the generation should instead be generated - * in a way that indicates these methods should not be consumed by - * end users. How this is expressed is up to individual language - * implementations to decide. Some examples may be: added annotations, - * obfuscated identifiers, or other language idiomatic patterns. - * - * Generated from protobuf field bool generate_omitted_as_internal = 2; - * @return bool - */ - public function getGenerateOmittedAsInternal() - { - return $this->generate_omitted_as_internal; - } - - /** - * Setting this to true indicates to the client generators that methods - * that would be excluded from the generation should instead be generated - * in a way that indicates these methods should not be consumed by - * end users. How this is expressed is up to individual language - * implementations to decide. Some examples may be: added annotations, - * obfuscated identifiers, or other language idiomatic patterns. - * - * Generated from protobuf field bool generate_omitted_as_internal = 2; - * @param bool $var - * @return $this - */ - public function setGenerateOmittedAsInternal($var) - { - GPBUtil::checkBool($var); - $this->generate_omitted_as_internal = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Service.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Service.php deleted file mode 100644 index a5bbee008b0d..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Service.php +++ /dev/null @@ -1,1242 +0,0 @@ -google.api.Service - */ -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 string name = 1; - */ - protected $name = ''; - /** - * The product title for this service, it is the name displayed in Google - * Cloud Console. - * - * Generated from protobuf field string title = 2; - */ - protected $title = ''; - /** - * The Google project that owns this service. - * - * Generated from protobuf field string producer_project_id = 22; - */ - 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 string id = 33; - */ - 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 repeated .google.protobuf.Api apis = 3; - */ - 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 repeated .google.protobuf.Type types = 4; - */ - 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 repeated .google.protobuf.Enum enums = 5; - */ - private $enums; - /** - * Additional API documentation. - * - * Generated from protobuf field .google.api.Documentation documentation = 6; - */ - protected $documentation = null; - /** - * API backend configuration. - * - * Generated from protobuf field .google.api.Backend backend = 8; - */ - protected $backend = null; - /** - * HTTP configuration. - * - * Generated from protobuf field .google.api.Http http = 9; - */ - protected $http = null; - /** - * Quota configuration. - * - * Generated from protobuf field .google.api.Quota quota = 10; - */ - protected $quota = null; - /** - * Auth configuration. - * - * Generated from protobuf field .google.api.Authentication authentication = 11; - */ - protected $authentication = null; - /** - * Context configuration. - * - * Generated from protobuf field .google.api.Context context = 12; - */ - protected $context = null; - /** - * Configuration controlling usage of this service. - * - * Generated from protobuf field .google.api.Usage usage = 15; - */ - 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 repeated .google.api.Endpoint endpoints = 18; - */ - private $endpoints; - /** - * Configuration for the service control plane. - * - * Generated from protobuf field .google.api.Control control = 21; - */ - protected $control = null; - /** - * Defines the logs used by this service. - * - * Generated from protobuf field repeated .google.api.LogDescriptor logs = 23; - */ - private $logs; - /** - * Defines the metrics used by this service. - * - * Generated from protobuf field repeated .google.api.MetricDescriptor metrics = 24; - */ - 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 repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25; - */ - private $monitored_resources; - /** - * Billing configuration. - * - * Generated from protobuf field .google.api.Billing billing = 26; - */ - protected $billing = null; - /** - * Logging configuration. - * - * Generated from protobuf field .google.api.Logging logging = 27; - */ - protected $logging = null; - /** - * Monitoring configuration. - * - * Generated from protobuf field .google.api.Monitoring monitoring = 28; - */ - protected $monitoring = null; - /** - * System parameter configuration. - * - * Generated from protobuf field .google.api.SystemParameters system_parameters = 29; - */ - protected $system_parameters = null; - /** - * Output only. The source information for this configuration if available. - * - * Generated from protobuf field .google.api.SourceInfo source_info = 37; - */ - 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 .google.api.Publishing publishing = 45; - */ - 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 .google.protobuf.UInt32Value config_version = 20; - */ - 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 string name = 1; - * @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 string name = 1; - * @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 string title = 2; - * @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 string title = 2; - * @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 string producer_project_id = 22; - * @return string - */ - public function getProducerProjectId() - { - return $this->producer_project_id; - } - - /** - * The Google project that owns this service. - * - * Generated from protobuf field string producer_project_id = 22; - * @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 string id = 33; - * @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 string id = 33; - * @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 repeated .google.protobuf.Api apis = 3; - * @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 repeated .google.protobuf.Api apis = 3; - * @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 repeated .google.protobuf.Type types = 4; - * @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 repeated .google.protobuf.Type types = 4; - * @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 repeated .google.protobuf.Enum enums = 5; - * @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 repeated .google.protobuf.Enum enums = 5; - * @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 .google.api.Documentation documentation = 6; - * @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 .google.api.Documentation documentation = 6; - * @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 .google.api.Backend backend = 8; - * @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 .google.api.Backend backend = 8; - * @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 .google.api.Http http = 9; - * @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 .google.api.Http http = 9; - * @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 .google.api.Quota quota = 10; - * @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 .google.api.Quota quota = 10; - * @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 .google.api.Authentication authentication = 11; - * @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 .google.api.Authentication authentication = 11; - * @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 .google.api.Context context = 12; - * @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 .google.api.Context context = 12; - * @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 .google.api.Usage usage = 15; - * @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 .google.api.Usage usage = 15; - * @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 repeated .google.api.Endpoint endpoints = 18; - * @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 repeated .google.api.Endpoint endpoints = 18; - * @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 .google.api.Control control = 21; - * @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 .google.api.Control control = 21; - * @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 repeated .google.api.LogDescriptor logs = 23; - * @return RepeatedField<\Google\Api\LogDescriptor> - */ - public function getLogs() - { - return $this->logs; - } - - /** - * Defines the logs used by this service. - * - * Generated from protobuf field repeated .google.api.LogDescriptor logs = 23; - * @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 repeated .google.api.MetricDescriptor metrics = 24; - * @return RepeatedField<\Google\Api\MetricDescriptor> - */ - public function getMetrics() - { - return $this->metrics; - } - - /** - * Defines the metrics used by this service. - * - * Generated from protobuf field repeated .google.api.MetricDescriptor metrics = 24; - * @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 repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25; - * @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 repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25; - * @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 .google.api.Billing billing = 26; - * @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 .google.api.Billing billing = 26; - * @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 .google.api.Logging logging = 27; - * @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 .google.api.Logging logging = 27; - * @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 .google.api.Monitoring monitoring = 28; - * @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 .google.api.Monitoring monitoring = 28; - * @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 .google.api.SystemParameters system_parameters = 29; - * @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 .google.api.SystemParameters system_parameters = 29; - * @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 .google.api.SourceInfo source_info = 37; - * @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 .google.api.SourceInfo source_info = 37; - * @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 .google.api.Publishing publishing = 45; - * @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 .google.api.Publishing publishing = 45; - * @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 .google.protobuf.UInt32Value config_version = 20; - * @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 getConfigVersion() - - * Obsolete. Do not use. - * This field has no semantic meaning. The service config compiler always - * sets this field to `3`. - * - * Generated from protobuf field .google.protobuf.UInt32Value config_version = 20; - * @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 .google.protobuf.UInt32Value config_version = 20; - * @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 .google.protobuf.UInt32Value config_version = 20; - * @param int|null $var - * @return $this - */ - public function setConfigVersionUnwrapped($var) - { - $this->writeWrapperValue("config_version", $var); - return $this;} - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/SourceInfo.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/SourceInfo.php deleted file mode 100644 index c97ca068abce..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/SourceInfo.php +++ /dev/null @@ -1,67 +0,0 @@ -google.api.SourceInfo - */ -class SourceInfo extends \Google\Protobuf\Internal\Message -{ - /** - * All files used during config generation. - * - * Generated from protobuf field repeated .google.protobuf.Any source_files = 1; - */ - private $source_files; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Any[] $source_files - * All files used during config generation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\SourceInfo::initOnce(); - parent::__construct($data); - } - - /** - * All files used during config generation. - * - * Generated from protobuf field repeated .google.protobuf.Any source_files = 1; - * @return RepeatedField<\Google\Protobuf\Any> - */ - public function getSourceFiles() - { - return $this->source_files; - } - - /** - * All files used during config generation. - * - * Generated from protobuf field repeated .google.protobuf.Any source_files = 1; - * @param \Google\Protobuf\Any[] $var - * @return $this - */ - public function setSourceFiles($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Any::class); - $this->source_files = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/SystemParameter.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/SystemParameter.php deleted file mode 100644 index b8c30aa23950..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/SystemParameter.php +++ /dev/null @@ -1,145 +0,0 @@ -google.api.SystemParameter - */ -class SystemParameter extends \Google\Protobuf\Internal\Message -{ - /** - * Define the name of the parameter, such as "api_key" . It is case sensitive. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Define the HTTP header name to use for the parameter. It is case - * insensitive. - * - * Generated from protobuf field string http_header = 2; - */ - protected $http_header = ''; - /** - * Define the URL query parameter name to use for the parameter. It is case - * sensitive. - * - * Generated from protobuf field string url_query_parameter = 3; - */ - protected $url_query_parameter = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Define the name of the parameter, such as "api_key" . It is case sensitive. - * @type string $http_header - * Define the HTTP header name to use for the parameter. It is case - * insensitive. - * @type string $url_query_parameter - * Define the URL query parameter name to use for the parameter. It is case - * sensitive. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\SystemParameter::initOnce(); - parent::__construct($data); - } - - /** - * Define the name of the parameter, such as "api_key" . It is case sensitive. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Define the name of the parameter, such as "api_key" . It is case sensitive. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Define the HTTP header name to use for the parameter. It is case - * insensitive. - * - * Generated from protobuf field string http_header = 2; - * @return string - */ - public function getHttpHeader() - { - return $this->http_header; - } - - /** - * Define the HTTP header name to use for the parameter. It is case - * insensitive. - * - * Generated from protobuf field string http_header = 2; - * @param string $var - * @return $this - */ - public function setHttpHeader($var) - { - GPBUtil::checkString($var, True); - $this->http_header = $var; - - return $this; - } - - /** - * Define the URL query parameter name to use for the parameter. It is case - * sensitive. - * - * Generated from protobuf field string url_query_parameter = 3; - * @return string - */ - public function getUrlQueryParameter() - { - return $this->url_query_parameter; - } - - /** - * Define the URL query parameter name to use for the parameter. It is case - * sensitive. - * - * Generated from protobuf field string url_query_parameter = 3; - * @param string $var - * @return $this - */ - public function setUrlQueryParameter($var) - { - GPBUtil::checkString($var, True); - $this->url_query_parameter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/SystemParameterRule.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/SystemParameterRule.php deleted file mode 100644 index ee62ecfc8335..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/SystemParameterRule.php +++ /dev/null @@ -1,130 +0,0 @@ -google.api.SystemParameterRule - */ -class SystemParameterRule extends \Google\Protobuf\Internal\Message -{ - /** - * Selects the methods to which this rule applies. Use '*' to indicate all - * methods in all APIs. - * Refer to [selector][google.api.DocumentationRule.selector] for syntax - * details. - * - * Generated from protobuf field string selector = 1; - */ - protected $selector = ''; - /** - * Define parameters. Multiple names may be defined for a parameter. - * For a given method call, only one of them should be used. If multiple - * names are used the behavior is implementation-dependent. - * If none of the specified names are present the behavior is - * parameter-dependent. - * - * Generated from protobuf field repeated .google.api.SystemParameter parameters = 2; - */ - private $parameters; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $selector - * Selects the methods to which this rule applies. Use '*' to indicate all - * methods in all APIs. - * Refer to [selector][google.api.DocumentationRule.selector] for syntax - * details. - * @type \Google\Api\SystemParameter[] $parameters - * Define parameters. Multiple names may be defined for a parameter. - * For a given method call, only one of them should be used. If multiple - * names are used the behavior is implementation-dependent. - * If none of the specified names are present the behavior is - * parameter-dependent. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\SystemParameter::initOnce(); - parent::__construct($data); - } - - /** - * Selects the methods to which this rule applies. Use '*' to indicate all - * methods in all APIs. - * Refer to [selector][google.api.DocumentationRule.selector] for syntax - * details. - * - * Generated from protobuf field string selector = 1; - * @return string - */ - public function getSelector() - { - return $this->selector; - } - - /** - * Selects the methods to which this rule applies. Use '*' to indicate all - * methods in all APIs. - * Refer to [selector][google.api.DocumentationRule.selector] for syntax - * details. - * - * Generated from protobuf field string selector = 1; - * @param string $var - * @return $this - */ - public function setSelector($var) - { - GPBUtil::checkString($var, True); - $this->selector = $var; - - return $this; - } - - /** - * Define parameters. Multiple names may be defined for a parameter. - * For a given method call, only one of them should be used. If multiple - * names are used the behavior is implementation-dependent. - * If none of the specified names are present the behavior is - * parameter-dependent. - * - * Generated from protobuf field repeated .google.api.SystemParameter parameters = 2; - * @return RepeatedField<\Google\Api\SystemParameter> - */ - public function getParameters() - { - return $this->parameters; - } - - /** - * Define parameters. Multiple names may be defined for a parameter. - * For a given method call, only one of them should be used. If multiple - * names are used the behavior is implementation-dependent. - * If none of the specified names are present the behavior is - * parameter-dependent. - * - * Generated from protobuf field repeated .google.api.SystemParameter parameters = 2; - * @param \Google\Api\SystemParameter[] $var - * @return $this - */ - public function setParameters($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\SystemParameter::class); - $this->parameters = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/SystemParameters.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/SystemParameters.php deleted file mode 100644 index 1b51eb267f85..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/SystemParameters.php +++ /dev/null @@ -1,155 +0,0 @@ -google.api.SystemParameters - */ -class SystemParameters extends \Google\Protobuf\Internal\Message -{ - /** - * Define system parameters. - * The parameters defined here will override the default parameters - * implemented by the system. If this field is missing from the service - * config, default system parameters will be used. Default system parameters - * and names is implementation-dependent. - * Example: define api key for all methods - * system_parameters - * rules: - * - selector: "*" - * parameters: - * - name: api_key - * url_query_parameter: api_key - * Example: define 2 api key names for a specific method. - * system_parameters - * rules: - * - selector: "/ListShelves" - * parameters: - * - name: api_key - * http_header: Api-Key1 - * - name: api_key - * http_header: Api-Key2 - * **NOTE:** All service configuration rules follow "last one wins" order. - * - * Generated from protobuf field repeated .google.api.SystemParameterRule rules = 1; - */ - private $rules; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Api\SystemParameterRule[] $rules - * Define system parameters. - * The parameters defined here will override the default parameters - * implemented by the system. If this field is missing from the service - * config, default system parameters will be used. Default system parameters - * and names is implementation-dependent. - * Example: define api key for all methods - * system_parameters - * rules: - * - selector: "*" - * parameters: - * - name: api_key - * url_query_parameter: api_key - * Example: define 2 api key names for a specific method. - * system_parameters - * rules: - * - selector: "/ListShelves" - * parameters: - * - name: api_key - * http_header: Api-Key1 - * - name: api_key - * http_header: Api-Key2 - * **NOTE:** All service configuration rules follow "last one wins" order. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\SystemParameter::initOnce(); - parent::__construct($data); - } - - /** - * Define system parameters. - * The parameters defined here will override the default parameters - * implemented by the system. If this field is missing from the service - * config, default system parameters will be used. Default system parameters - * and names is implementation-dependent. - * Example: define api key for all methods - * system_parameters - * rules: - * - selector: "*" - * parameters: - * - name: api_key - * url_query_parameter: api_key - * Example: define 2 api key names for a specific method. - * system_parameters - * rules: - * - selector: "/ListShelves" - * parameters: - * - name: api_key - * http_header: Api-Key1 - * - name: api_key - * http_header: Api-Key2 - * **NOTE:** All service configuration rules follow "last one wins" order. - * - * Generated from protobuf field repeated .google.api.SystemParameterRule rules = 1; - * @return RepeatedField<\Google\Api\SystemParameterRule> - */ - public function getRules() - { - return $this->rules; - } - - /** - * Define system parameters. - * The parameters defined here will override the default parameters - * implemented by the system. If this field is missing from the service - * config, default system parameters will be used. Default system parameters - * and names is implementation-dependent. - * Example: define api key for all methods - * system_parameters - * rules: - * - selector: "*" - * parameters: - * - name: api_key - * url_query_parameter: api_key - * Example: define 2 api key names for a specific method. - * system_parameters - * rules: - * - selector: "/ListShelves" - * parameters: - * - name: api_key - * http_header: Api-Key1 - * - name: api_key - * http_header: Api-Key2 - * **NOTE:** All service configuration rules follow "last one wins" order. - * - * Generated from protobuf field repeated .google.api.SystemParameterRule rules = 1; - * @param \Google\Api\SystemParameterRule[] $var - * @return $this - */ - public function setRules($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\SystemParameterRule::class); - $this->rules = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/TypeReference.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/TypeReference.php deleted file mode 100644 index 5f190607061a..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/TypeReference.php +++ /dev/null @@ -1,91 +0,0 @@ -google.api.TypeReference - */ -class TypeReference extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the type that the annotated, generic field may represent. - * If the type is in the same protobuf package, the value can be the simple - * message name e.g., `"MyMessage"`. Otherwise, the value must be the - * fully-qualified message name e.g., `"google.library.v1.Book"`. - * If the type(s) are unknown to the service (e.g. the field accepts generic - * user input), use the wildcard `"*"` to denote this behavior. - * See [AIP-202](https://google.aip.dev/202#type-references) for more details. - * - * Generated from protobuf field string type_name = 1; - */ - protected $type_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $type_name - * The name of the type that the annotated, generic field may represent. - * If the type is in the same protobuf package, the value can be the simple - * message name e.g., `"MyMessage"`. Otherwise, the value must be the - * fully-qualified message name e.g., `"google.library.v1.Book"`. - * If the type(s) are unknown to the service (e.g. the field accepts generic - * user input), use the wildcard `"*"` to denote this behavior. - * See [AIP-202](https://google.aip.dev/202#type-references) for more details. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\FieldInfo::initOnce(); - parent::__construct($data); - } - - /** - * The name of the type that the annotated, generic field may represent. - * If the type is in the same protobuf package, the value can be the simple - * message name e.g., `"MyMessage"`. Otherwise, the value must be the - * fully-qualified message name e.g., `"google.library.v1.Book"`. - * If the type(s) are unknown to the service (e.g. the field accepts generic - * user input), use the wildcard `"*"` to denote this behavior. - * See [AIP-202](https://google.aip.dev/202#type-references) for more details. - * - * Generated from protobuf field string type_name = 1; - * @return string - */ - public function getTypeName() - { - return $this->type_name; - } - - /** - * The name of the type that the annotated, generic field may represent. - * If the type is in the same protobuf package, the value can be the simple - * message name e.g., `"MyMessage"`. Otherwise, the value must be the - * fully-qualified message name e.g., `"google.library.v1.Book"`. - * If the type(s) are unknown to the service (e.g. the field accepts generic - * user input), use the wildcard `"*"` to denote this behavior. - * See [AIP-202](https://google.aip.dev/202#type-references) for more details. - * - * Generated from protobuf field string type_name = 1; - * @param string $var - * @return $this - */ - public function setTypeName($var) - { - GPBUtil::checkString($var, True); - $this->type_name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Usage.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Usage.php deleted file mode 100644 index e5d7e71c46b6..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Usage.php +++ /dev/null @@ -1,191 +0,0 @@ -google.api.Usage - */ -class Usage extends \Google\Protobuf\Internal\Message -{ - /** - * Requirements that must be satisfied before a consumer project can use the - * service. Each requirement is of the form /; - * for example 'serviceusage.googleapis.com/billing-enabled'. - * For Google APIs, a Terms of Service requirement must be included here. - * Google Cloud APIs must include "serviceusage.googleapis.com/tos/cloud". - * Other Google APIs should include - * "serviceusage.googleapis.com/tos/universal". Additional ToS can be - * included based on the business needs. - * - * Generated from protobuf field repeated string requirements = 1; - */ - private $requirements; - /** - * A list of usage rules that apply to individual API methods. - * **NOTE:** All service configuration rules follow "last one wins" order. - * - * Generated from protobuf field repeated .google.api.UsageRule rules = 6; - */ - private $rules; - /** - * The full resource name of a channel used for sending notifications to the - * service producer. - * Google Service Management currently only supports - * [Google Cloud Pub/Sub](https://cloud.google.com/pubsub) as a notification - * channel. To use Google Cloud Pub/Sub as the channel, this must be the name - * of a Cloud Pub/Sub topic that uses the Cloud Pub/Sub topic name format - * documented in https://cloud.google.com/pubsub/docs/overview. - * - * Generated from protobuf field string producer_notification_channel = 7; - */ - protected $producer_notification_channel = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string[] $requirements - * Requirements that must be satisfied before a consumer project can use the - * service. Each requirement is of the form /; - * for example 'serviceusage.googleapis.com/billing-enabled'. - * For Google APIs, a Terms of Service requirement must be included here. - * Google Cloud APIs must include "serviceusage.googleapis.com/tos/cloud". - * Other Google APIs should include - * "serviceusage.googleapis.com/tos/universal". Additional ToS can be - * included based on the business needs. - * @type \Google\Api\UsageRule[] $rules - * A list of usage rules that apply to individual API methods. - * **NOTE:** All service configuration rules follow "last one wins" order. - * @type string $producer_notification_channel - * The full resource name of a channel used for sending notifications to the - * service producer. - * Google Service Management currently only supports - * [Google Cloud Pub/Sub](https://cloud.google.com/pubsub) as a notification - * channel. To use Google Cloud Pub/Sub as the channel, this must be the name - * of a Cloud Pub/Sub topic that uses the Cloud Pub/Sub topic name format - * documented in https://cloud.google.com/pubsub/docs/overview. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Usage::initOnce(); - parent::__construct($data); - } - - /** - * Requirements that must be satisfied before a consumer project can use the - * service. Each requirement is of the form /; - * for example 'serviceusage.googleapis.com/billing-enabled'. - * For Google APIs, a Terms of Service requirement must be included here. - * Google Cloud APIs must include "serviceusage.googleapis.com/tos/cloud". - * Other Google APIs should include - * "serviceusage.googleapis.com/tos/universal". Additional ToS can be - * included based on the business needs. - * - * Generated from protobuf field repeated string requirements = 1; - * @return RepeatedField - */ - public function getRequirements() - { - return $this->requirements; - } - - /** - * Requirements that must be satisfied before a consumer project can use the - * service. Each requirement is of the form /; - * for example 'serviceusage.googleapis.com/billing-enabled'. - * For Google APIs, a Terms of Service requirement must be included here. - * Google Cloud APIs must include "serviceusage.googleapis.com/tos/cloud". - * Other Google APIs should include - * "serviceusage.googleapis.com/tos/universal". Additional ToS can be - * included based on the business needs. - * - * Generated from protobuf field repeated string requirements = 1; - * @param string[] $var - * @return $this - */ - public function setRequirements($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->requirements = $arr; - - return $this; - } - - /** - * A list of usage rules that apply to individual API methods. - * **NOTE:** All service configuration rules follow "last one wins" order. - * - * Generated from protobuf field repeated .google.api.UsageRule rules = 6; - * @return RepeatedField<\Google\Api\UsageRule> - */ - public function getRules() - { - return $this->rules; - } - - /** - * A list of usage rules that apply to individual API methods. - * **NOTE:** All service configuration rules follow "last one wins" order. - * - * Generated from protobuf field repeated .google.api.UsageRule rules = 6; - * @param \Google\Api\UsageRule[] $var - * @return $this - */ - public function setRules($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\UsageRule::class); - $this->rules = $arr; - - return $this; - } - - /** - * The full resource name of a channel used for sending notifications to the - * service producer. - * Google Service Management currently only supports - * [Google Cloud Pub/Sub](https://cloud.google.com/pubsub) as a notification - * channel. To use Google Cloud Pub/Sub as the channel, this must be the name - * of a Cloud Pub/Sub topic that uses the Cloud Pub/Sub topic name format - * documented in https://cloud.google.com/pubsub/docs/overview. - * - * Generated from protobuf field string producer_notification_channel = 7; - * @return string - */ - public function getProducerNotificationChannel() - { - return $this->producer_notification_channel; - } - - /** - * The full resource name of a channel used for sending notifications to the - * service producer. - * Google Service Management currently only supports - * [Google Cloud Pub/Sub](https://cloud.google.com/pubsub) as a notification - * channel. To use Google Cloud Pub/Sub as the channel, this must be the name - * of a Cloud Pub/Sub topic that uses the Cloud Pub/Sub topic name format - * documented in https://cloud.google.com/pubsub/docs/overview. - * - * Generated from protobuf field string producer_notification_channel = 7; - * @param string $var - * @return $this - */ - public function setProducerNotificationChannel($var) - { - GPBUtil::checkString($var, True); - $this->producer_notification_channel = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/UsageRule.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/UsageRule.php deleted file mode 100644 index 73fac2210f68..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/UsageRule.php +++ /dev/null @@ -1,175 +0,0 @@ -google.api.UsageRule - */ -class UsageRule extends \Google\Protobuf\Internal\Message -{ - /** - * Selects the methods to which this rule applies. Use '*' to indicate all - * methods in all APIs. - * Refer to [selector][google.api.DocumentationRule.selector] for syntax - * details. - * - * Generated from protobuf field string selector = 1; - */ - protected $selector = ''; - /** - * Use this rule to configure unregistered calls for the service. Unregistered - * calls are calls that do not contain consumer project identity. - * (Example: calls that do not contain an API key). - * WARNING: By default, API methods do not allow unregistered calls, and each - * method call must be identified by a consumer project identity. - * - * Generated from protobuf field bool allow_unregistered_calls = 2; - */ - protected $allow_unregistered_calls = false; - /** - * If true, the selected method should skip service control and the control - * plane features, such as quota and billing, will not be available. - * This flag is used by Google Cloud Endpoints to bypass checks for internal - * methods, such as service health check methods. - * - * Generated from protobuf field bool skip_service_control = 3; - */ - protected $skip_service_control = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $selector - * Selects the methods to which this rule applies. Use '*' to indicate all - * methods in all APIs. - * Refer to [selector][google.api.DocumentationRule.selector] for syntax - * details. - * @type bool $allow_unregistered_calls - * Use this rule to configure unregistered calls for the service. Unregistered - * calls are calls that do not contain consumer project identity. - * (Example: calls that do not contain an API key). - * WARNING: By default, API methods do not allow unregistered calls, and each - * method call must be identified by a consumer project identity. - * @type bool $skip_service_control - * If true, the selected method should skip service control and the control - * plane features, such as quota and billing, will not be available. - * This flag is used by Google Cloud Endpoints to bypass checks for internal - * methods, such as service health check methods. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Usage::initOnce(); - parent::__construct($data); - } - - /** - * Selects the methods to which this rule applies. Use '*' to indicate all - * methods in all APIs. - * Refer to [selector][google.api.DocumentationRule.selector] for syntax - * details. - * - * Generated from protobuf field string selector = 1; - * @return string - */ - public function getSelector() - { - return $this->selector; - } - - /** - * Selects the methods to which this rule applies. Use '*' to indicate all - * methods in all APIs. - * Refer to [selector][google.api.DocumentationRule.selector] for syntax - * details. - * - * Generated from protobuf field string selector = 1; - * @param string $var - * @return $this - */ - public function setSelector($var) - { - GPBUtil::checkString($var, True); - $this->selector = $var; - - return $this; - } - - /** - * Use this rule to configure unregistered calls for the service. Unregistered - * calls are calls that do not contain consumer project identity. - * (Example: calls that do not contain an API key). - * WARNING: By default, API methods do not allow unregistered calls, and each - * method call must be identified by a consumer project identity. - * - * Generated from protobuf field bool allow_unregistered_calls = 2; - * @return bool - */ - public function getAllowUnregisteredCalls() - { - return $this->allow_unregistered_calls; - } - - /** - * Use this rule to configure unregistered calls for the service. Unregistered - * calls are calls that do not contain consumer project identity. - * (Example: calls that do not contain an API key). - * WARNING: By default, API methods do not allow unregistered calls, and each - * method call must be identified by a consumer project identity. - * - * Generated from protobuf field bool allow_unregistered_calls = 2; - * @param bool $var - * @return $this - */ - public function setAllowUnregisteredCalls($var) - { - GPBUtil::checkBool($var); - $this->allow_unregistered_calls = $var; - - return $this; - } - - /** - * If true, the selected method should skip service control and the control - * plane features, such as quota and billing, will not be available. - * This flag is used by Google Cloud Endpoints to bypass checks for internal - * methods, such as service health check methods. - * - * Generated from protobuf field bool skip_service_control = 3; - * @return bool - */ - public function getSkipServiceControl() - { - return $this->skip_service_control; - } - - /** - * If true, the selected method should skip service control and the control - * plane features, such as quota and billing, will not be available. - * This flag is used by Google Cloud Endpoints to bypass checks for internal - * methods, such as service health check methods. - * - * Generated from protobuf field bool skip_service_control = 3; - * @param bool $var - * @return $this - */ - public function setSkipServiceControl($var) - { - GPBUtil::checkBool($var); - $this->skip_service_control = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Visibility.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Visibility.php deleted file mode 100644 index d5292914fc4b..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/Visibility.php +++ /dev/null @@ -1,88 +0,0 @@ -google.api.Visibility - */ -class Visibility extends \Google\Protobuf\Internal\Message -{ - /** - * A list of visibility rules that apply to individual API elements. - * **NOTE:** All service configuration rules follow "last one wins" order. - * - * Generated from protobuf field repeated .google.api.VisibilityRule rules = 1; - */ - private $rules; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Api\VisibilityRule[] $rules - * A list of visibility rules that apply to individual API elements. - * **NOTE:** All service configuration rules follow "last one wins" order. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Visibility::initOnce(); - parent::__construct($data); - } - - /** - * A list of visibility rules that apply to individual API elements. - * **NOTE:** All service configuration rules follow "last one wins" order. - * - * Generated from protobuf field repeated .google.api.VisibilityRule rules = 1; - * @return RepeatedField<\Google\Api\VisibilityRule> - */ - public function getRules() - { - return $this->rules; - } - - /** - * A list of visibility rules that apply to individual API elements. - * **NOTE:** All service configuration rules follow "last one wins" order. - * - * Generated from protobuf field repeated .google.api.VisibilityRule rules = 1; - * @param \Google\Api\VisibilityRule[] $var - * @return $this - */ - public function setRules($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\VisibilityRule::class); - $this->rules = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/VisibilityRule.php b/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/VisibilityRule.php deleted file mode 100644 index 74bdc3e66882..000000000000 --- a/owl-bot-staging/CommonProtos/api/proto/src/Google/Api/VisibilityRule.php +++ /dev/null @@ -1,150 +0,0 @@ -google.api.VisibilityRule - */ -class VisibilityRule extends \Google\Protobuf\Internal\Message -{ - /** - * Selects methods, messages, fields, enums, etc. to which this rule applies. - * Refer to [selector][google.api.DocumentationRule.selector] for syntax - * details. - * - * Generated from protobuf field string selector = 1; - */ - protected $selector = ''; - /** - * A comma-separated list of visibility labels that apply to the `selector`. - * Any of the listed labels can be used to grant the visibility. - * If a rule has multiple labels, removing one of the labels but not all of - * them can break clients. - * Example: - * visibility: - * rules: - * - selector: google.calendar.Calendar.EnhancedSearch - * restriction: INTERNAL, PREVIEW - * Removing INTERNAL from this restriction will break clients that rely on - * this method and only had access to it through INTERNAL. - * - * Generated from protobuf field string restriction = 2; - */ - protected $restriction = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $selector - * Selects methods, messages, fields, enums, etc. to which this rule applies. - * Refer to [selector][google.api.DocumentationRule.selector] for syntax - * details. - * @type string $restriction - * A comma-separated list of visibility labels that apply to the `selector`. - * Any of the listed labels can be used to grant the visibility. - * If a rule has multiple labels, removing one of the labels but not all of - * them can break clients. - * Example: - * visibility: - * rules: - * - selector: google.calendar.Calendar.EnhancedSearch - * restriction: INTERNAL, PREVIEW - * Removing INTERNAL from this restriction will break clients that rely on - * this method and only had access to it through INTERNAL. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Visibility::initOnce(); - parent::__construct($data); - } - - /** - * Selects methods, messages, fields, enums, etc. to which this rule applies. - * Refer to [selector][google.api.DocumentationRule.selector] for syntax - * details. - * - * Generated from protobuf field string selector = 1; - * @return string - */ - public function getSelector() - { - return $this->selector; - } - - /** - * Selects methods, messages, fields, enums, etc. to which this rule applies. - * Refer to [selector][google.api.DocumentationRule.selector] for syntax - * details. - * - * Generated from protobuf field string selector = 1; - * @param string $var - * @return $this - */ - public function setSelector($var) - { - GPBUtil::checkString($var, True); - $this->selector = $var; - - return $this; - } - - /** - * A comma-separated list of visibility labels that apply to the `selector`. - * Any of the listed labels can be used to grant the visibility. - * If a rule has multiple labels, removing one of the labels but not all of - * them can break clients. - * Example: - * visibility: - * rules: - * - selector: google.calendar.Calendar.EnhancedSearch - * restriction: INTERNAL, PREVIEW - * Removing INTERNAL from this restriction will break clients that rely on - * this method and only had access to it through INTERNAL. - * - * Generated from protobuf field string restriction = 2; - * @return string - */ - public function getRestriction() - { - return $this->restriction; - } - - /** - * A comma-separated list of visibility labels that apply to the `selector`. - * Any of the listed labels can be used to grant the visibility. - * If a rule has multiple labels, removing one of the labels but not all of - * them can break clients. - * Example: - * visibility: - * rules: - * - selector: google.calendar.Calendar.EnhancedSearch - * restriction: INTERNAL, PREVIEW - * Removing INTERNAL from this restriction will break clients that rely on - * this method and only had access to it through INTERNAL. - * - * Generated from protobuf field string restriction = 2; - * @param string $var - * @return $this - */ - public function setRestriction($var) - { - GPBUtil::checkString($var, True); - $this->restriction = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/extendedoperations/proto/src/GPBMetadata/Google/Cloud/ExtendedOperations.php b/owl-bot-staging/CommonProtos/extendedoperations/proto/src/GPBMetadata/Google/Cloud/ExtendedOperations.php deleted file mode 100644 index 2f09c858bb0e..000000000000 --- a/owl-bot-staging/CommonProtos/extendedoperations/proto/src/GPBMetadata/Google/Cloud/ExtendedOperations.php +++ /dev/null @@ -1,24 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xBF\x02\x0A&google/cloud/extended_operations.proto\x12\x0Cgoogle.cloud\x1A google/protobuf/descriptor.proto*b\x0A\x18OperationResponseMapping\x12\x0D\x0A\x09UNDEFINED\x10\x00\x12\x08\x0A\x04NAME\x10\x01\x12\x0A\x0A\x06STATUS\x10\x02\x12\x0E\x0A\x0AERROR_CODE\x10\x03\x12\x11\x0A\x0DERROR_MESSAGE\x10\x04By\x0A\x10com.google.cloudB\x17ExtendedOperationsProtoP\x01ZCgoogle.golang.org/genproto/googleapis/cloud/extendedops;extendedops\xA2\x02\x04GAPIb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/extendedoperations/proto/src/Google/Cloud/OperationResponseMapping.php b/owl-bot-staging/CommonProtos/extendedoperations/proto/src/Google/Cloud/OperationResponseMapping.php deleted file mode 100644 index c21c294e7853..000000000000 --- a/owl-bot-staging/CommonProtos/extendedoperations/proto/src/Google/Cloud/OperationResponseMapping.php +++ /dev/null @@ -1,86 +0,0 @@ -google.cloud.OperationResponseMapping - */ -class OperationResponseMapping -{ - /** - * Do not use. - * - * Generated from protobuf enum UNDEFINED = 0; - */ - const UNDEFINED = 0; - /** - * A field in an API-specific (custom) Operation object which carries the same - * meaning as google.longrunning.Operation.name. - * - * Generated from protobuf enum NAME = 1; - */ - const NAME = 1; - /** - * A field in an API-specific (custom) Operation object which carries the same - * meaning as google.longrunning.Operation.done. If the annotated field is of - * an enum type, `annotated_field_name == EnumType.DONE` semantics should be - * equivalent to `Operation.done == true`. If the annotated field is of type - * boolean, then it should follow the same semantics as Operation.done. - * Otherwise, a non-empty value should be treated as `Operation.done == true`. - * - * Generated from protobuf enum STATUS = 2; - */ - const STATUS = 2; - /** - * A field in an API-specific (custom) Operation object which carries the same - * meaning as google.longrunning.Operation.error.code. - * - * Generated from protobuf enum ERROR_CODE = 3; - */ - const ERROR_CODE = 3; - /** - * A field in an API-specific (custom) Operation object which carries the same - * meaning as google.longrunning.Operation.error.message. - * - * Generated from protobuf enum ERROR_MESSAGE = 4; - */ - const ERROR_MESSAGE = 4; - - private static $valueToName = [ - self::UNDEFINED => 'UNDEFINED', - self::NAME => 'NAME', - self::STATUS => 'STATUS', - self::ERROR_CODE => 'ERROR_CODE', - self::ERROR_MESSAGE => 'ERROR_MESSAGE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/CommonProtos/iam/proto/src/GPBMetadata/Google/Iam/V1/IamPolicy.php b/owl-bot-staging/CommonProtos/iam/proto/src/GPBMetadata/Google/Iam/V1/IamPolicy.php deleted file mode 100644 index 3c8924647d4b..000000000000 --- a/owl-bot-staging/CommonProtos/iam/proto/src/GPBMetadata/Google/Iam/V1/IamPolicy.php +++ /dev/null @@ -1,31 +0,0 @@ -internalAddGeneratedFile( - "\x0A\x9B\x09\x0A\x1Egoogle/iam/v1/iam_policy.proto\x12\x0Dgoogle.iam.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A\x1Bgoogle/iam/v1/options.proto\x1A\x1Agoogle/iam/v1/policy.proto\x1A google/protobuf/field_mask.proto\"\x8F\x01\x0A\x13SetIamPolicyRequest\x12\x1B\x0A\x08resource\x18\x01 \x01(\x09B\x09\xE0A\x02\xFAA\x03\x0A\x01*\x12*\x0A\x06policy\x18\x02 \x01(\x0B2\x15.google.iam.v1.PolicyB\x03\xE0A\x02\x12/\x0A\x0Bupdate_mask\x18\x03 \x01(\x0B2\x1A.google.protobuf.FieldMask\"d\x0A\x13GetIamPolicyRequest\x12\x1B\x0A\x08resource\x18\x01 \x01(\x09B\x09\xE0A\x02\xFAA\x03\x0A\x01*\x120\x0A\x07options\x18\x02 \x01(\x0B2\x1F.google.iam.v1.GetPolicyOptions\"R\x0A\x19TestIamPermissionsRequest\x12\x1B\x0A\x08resource\x18\x01 \x01(\x09B\x09\xE0A\x02\xFAA\x03\x0A\x01*\x12\x18\x0A\x0Bpermissions\x18\x02 \x03(\x09B\x03\xE0A\x02\"1\x0A\x1ATestIamPermissionsResponse\x12\x13\x0A\x0Bpermissions\x18\x01 \x03(\x092\xB4\x03\x0A\x09IAMPolicy\x12t\x0A\x0CSetIamPolicy\x12\".google.iam.v1.SetIamPolicyRequest\x1A\x15.google.iam.v1.Policy\")\x82\xD3\xE4\x93\x02#\"\x1E/v1/{resource=**}:setIamPolicy:\x01*\x12t\x0A\x0CGetIamPolicy\x12\".google.iam.v1.GetIamPolicyRequest\x1A\x15.google.iam.v1.Policy\")\x82\xD3\xE4\x93\x02#\"\x1E/v1/{resource=**}:getIamPolicy:\x01*\x12\x9A\x01\x0A\x12TestIamPermissions\x12(.google.iam.v1.TestIamPermissionsRequest\x1A).google.iam.v1.TestIamPermissionsResponse\"/\x82\xD3\xE4\x93\x02)\"\$/v1/{resource=**}:testIamPermissions:\x01*\x1A\x1E\xCAA\x1Biam-meta-api.googleapis.comB|\x0A\x11com.google.iam.v1B\x0EIamPolicyProtoP\x01Z)cloud.google.com/go/iam/apiv1/iampb;iampb\xAA\x02\x13Google.Cloud.Iam.V1\xCA\x02\x13Google\\Cloud\\Iam\\V1b\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/iam/proto/src/GPBMetadata/Google/Iam/V1/Logging/AuditData.php b/owl-bot-staging/CommonProtos/iam/proto/src/GPBMetadata/Google/Iam/V1/Logging/AuditData.php deleted file mode 100644 index 93ae1a0279ec..000000000000 --- a/owl-bot-staging/CommonProtos/iam/proto/src/GPBMetadata/Google/Iam/V1/Logging/AuditData.php +++ /dev/null @@ -1,25 +0,0 @@ -internalAddGeneratedFile( - "\x0A\x8F\x02\x0A&google/iam/v1/logging/audit_data.proto\x12\x15google.iam.v1.logging\"=\x0A\x09AuditData\x120\x0A\x0Cpolicy_delta\x18\x02 \x01(\x0B2\x1A.google.iam.v1.PolicyDeltaB\x86\x01\x0A\x19com.google.iam.v1.loggingB\x0EAuditDataProtoP\x01Z9cloud.google.com/go/iam/apiv1/logging/loggingpb;loggingpb\xAA\x02\x1BGoogle.Cloud.Iam.V1.Loggingb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/iam/proto/src/GPBMetadata/Google/Iam/V1/Options.php b/owl-bot-staging/CommonProtos/iam/proto/src/GPBMetadata/Google/Iam/V1/Options.php deleted file mode 100644 index c5cfe44b6d86..000000000000 --- a/owl-bot-staging/CommonProtos/iam/proto/src/GPBMetadata/Google/Iam/V1/Options.php +++ /dev/null @@ -1,24 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xE9\x01\x0A\x1Bgoogle/iam/v1/options.proto\x12\x0Dgoogle.iam.v1\"4\x0A\x10GetPolicyOptions\x12 \x0A\x18requested_policy_version\x18\x01 \x01(\x05B}\x0A\x11com.google.iam.v1B\x0COptionsProtoP\x01Z)cloud.google.com/go/iam/apiv1/iampb;iampb\xF8\x01\x01\xAA\x02\x13Google.Cloud.Iam.V1\xCA\x02\x13Google\\Cloud\\Iam\\V1b\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/iam/proto/src/GPBMetadata/Google/Iam/V1/Policy.php b/owl-bot-staging/CommonProtos/iam/proto/src/GPBMetadata/Google/Iam/V1/Policy.php deleted file mode 100644 index 8d23aec66987..000000000000 --- a/owl-bot-staging/CommonProtos/iam/proto/src/GPBMetadata/Google/Iam/V1/Policy.php +++ /dev/null @@ -1,25 +0,0 @@ -internalAddGeneratedFile( - "\x0A\x9F\x09\x0A\x1Agoogle/iam/v1/policy.proto\x12\x0Dgoogle.iam.v1\"\x84\x01\x0A\x06Policy\x12\x0F\x0A\x07version\x18\x01 \x01(\x05\x12(\x0A\x08bindings\x18\x04 \x03(\x0B2\x16.google.iam.v1.Binding\x121\x0A\x0Daudit_configs\x18\x06 \x03(\x0B2\x1A.google.iam.v1.AuditConfig\x12\x0C\x0A\x04etag\x18\x03 \x01(\x0C\"N\x0A\x07Binding\x12\x0C\x0A\x04role\x18\x01 \x01(\x09\x12\x0F\x0A\x07members\x18\x02 \x03(\x09\x12\$\x0A\x09condition\x18\x03 \x01(\x0B2\x11.google.type.Expr\"X\x0A\x0BAuditConfig\x12\x0F\x0A\x07service\x18\x01 \x01(\x09\x128\x0A\x11audit_log_configs\x18\x03 \x03(\x0B2\x1D.google.iam.v1.AuditLogConfig\"\xB7\x01\x0A\x0EAuditLogConfig\x127\x0A\x08log_type\x18\x01 \x01(\x0E2%.google.iam.v1.AuditLogConfig.LogType\x12\x18\x0A\x10exempted_members\x18\x02 \x03(\x09\"R\x0A\x07LogType\x12\x18\x0A\x14LOG_TYPE_UNSPECIFIED\x10\x00\x12\x0E\x0A\x0AADMIN_READ\x10\x01\x12\x0E\x0A\x0ADATA_WRITE\x10\x02\x12\x0D\x0A\x09DATA_READ\x10\x03\"\x80\x01\x0A\x0BPolicyDelta\x123\x0A\x0Ebinding_deltas\x18\x01 \x03(\x0B2\x1B.google.iam.v1.BindingDelta\x12<\x0A\x13audit_config_deltas\x18\x02 \x03(\x0B2\x1F.google.iam.v1.AuditConfigDelta\"\xBD\x01\x0A\x0CBindingDelta\x122\x0A\x06action\x18\x01 \x01(\x0E2\".google.iam.v1.BindingDelta.Action\x12\x0C\x0A\x04role\x18\x02 \x01(\x09\x12\x0E\x0A\x06member\x18\x03 \x01(\x09\x12\$\x0A\x09condition\x18\x04 \x01(\x0B2\x11.google.type.Expr\"5\x0A\x06Action\x12\x16\x0A\x12ACTION_UNSPECIFIED\x10\x00\x12\x07\x0A\x03ADD\x10\x01\x12\x0A\x0A\x06REMOVE\x10\x02\"\xBD\x01\x0A\x10AuditConfigDelta\x126\x0A\x06action\x18\x01 \x01(\x0E2&.google.iam.v1.AuditConfigDelta.Action\x12\x0F\x0A\x07service\x18\x02 \x01(\x09\x12\x17\x0A\x0Fexempted_member\x18\x03 \x01(\x09\x12\x10\x0A\x08log_type\x18\x04 \x01(\x09\"5\x0A\x06Action\x12\x16\x0A\x12ACTION_UNSPECIFIED\x10\x00\x12\x07\x0A\x03ADD\x10\x01\x12\x0A\x0A\x06REMOVE\x10\x02B|\x0A\x11com.google.iam.v1B\x0BPolicyProtoP\x01Z)cloud.google.com/go/iam/apiv1/iampb;iampb\xF8\x01\x01\xAA\x02\x13Google.Cloud.Iam.V1\xCA\x02\x13Google\\Cloud\\Iam\\V1b\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/iam/proto/src/GPBMetadata/Google/Iam/V1/ResourcePolicyMember.php b/owl-bot-staging/CommonProtos/iam/proto/src/GPBMetadata/Google/Iam/V1/ResourcePolicyMember.php deleted file mode 100644 index e7eb2e57e0f5..000000000000 --- a/owl-bot-staging/CommonProtos/iam/proto/src/GPBMetadata/Google/Iam/V1/ResourcePolicyMember.php +++ /dev/null @@ -1,25 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xB4\x02\x0A*google/iam/v1/resource_policy_member.proto\x12\x0Dgoogle.iam.v1\"e\x0A\x14ResourcePolicyMember\x12&\x0A\x19iam_policy_name_principal\x18\x01 \x01(\x09B\x03\xE0A\x03\x12%\x0A\x18iam_policy_uid_principal\x18\x02 \x01(\x09B\x03\xE0A\x03B\x87\x01\x0A\x11com.google.iam.v1B\x19ResourcePolicyMemberProtoP\x01Z)cloud.google.com/go/iam/apiv1/iampb;iampb\xAA\x02\x13Google.Cloud.Iam.V1\xCA\x02\x13Google\\Cloud\\Iam\\V1b\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/AuditConfig.php b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/AuditConfig.php deleted file mode 100644 index ac3bee3b3c61..000000000000 --- a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/AuditConfig.php +++ /dev/null @@ -1,155 +0,0 @@ -google.iam.v1.AuditConfig - */ -class AuditConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Specifies a service that will be enabled for audit logging. - * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. - * `allServices` is a special value that covers all services. - * - * Generated from protobuf field string service = 1; - */ - protected $service = ''; - /** - * The configuration for logging of each type of permission. - * - * Generated from protobuf field repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3; - */ - private $audit_log_configs; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $service - * Specifies a service that will be enabled for audit logging. - * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. - * `allServices` is a special value that covers all services. - * @type \Google\Cloud\Iam\V1\AuditLogConfig[] $audit_log_configs - * The configuration for logging of each type of permission. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Iam\V1\Policy::initOnce(); - parent::__construct($data); - } - - /** - * Specifies a service that will be enabled for audit logging. - * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. - * `allServices` is a special value that covers all services. - * - * Generated from protobuf field string service = 1; - * @return string - */ - public function getService() - { - return $this->service; - } - - /** - * Specifies a service that will be enabled for audit logging. - * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. - * `allServices` is a special value that covers all services. - * - * Generated from protobuf field string service = 1; - * @param string $var - * @return $this - */ - public function setService($var) - { - GPBUtil::checkString($var, True); - $this->service = $var; - - return $this; - } - - /** - * The configuration for logging of each type of permission. - * - * Generated from protobuf field repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3; - * @return RepeatedField<\Google\Cloud\Iam\V1\AuditLogConfig> - */ - public function getAuditLogConfigs() - { - return $this->audit_log_configs; - } - - /** - * The configuration for logging of each type of permission. - * - * Generated from protobuf field repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3; - * @param \Google\Cloud\Iam\V1\AuditLogConfig[] $var - * @return $this - */ - public function setAuditLogConfigs($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Iam\V1\AuditLogConfig::class); - $this->audit_log_configs = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/AuditConfigDelta.php b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/AuditConfigDelta.php deleted file mode 100644 index 21a0626812ee..000000000000 --- a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/AuditConfigDelta.php +++ /dev/null @@ -1,202 +0,0 @@ -google.iam.v1.AuditConfigDelta - */ -class AuditConfigDelta extends \Google\Protobuf\Internal\Message -{ - /** - * The action that was performed on an audit configuration in a policy. - * Required - * - * Generated from protobuf field .google.iam.v1.AuditConfigDelta.Action action = 1; - */ - protected $action = 0; - /** - * Specifies a service that was configured for Cloud Audit Logging. - * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. - * `allServices` is a special value that covers all services. - * Required - * - * Generated from protobuf field string service = 2; - */ - protected $service = ''; - /** - * A single identity that is exempted from "data access" audit - * logging for the `service` specified above. - * Follows the same format of Binding.members. - * - * Generated from protobuf field string exempted_member = 3; - */ - protected $exempted_member = ''; - /** - * Specifies the log_type that was be enabled. ADMIN_ACTIVITY is always - * enabled, and cannot be configured. - * Required - * - * Generated from protobuf field string log_type = 4; - */ - protected $log_type = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $action - * The action that was performed on an audit configuration in a policy. - * Required - * @type string $service - * Specifies a service that was configured for Cloud Audit Logging. - * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. - * `allServices` is a special value that covers all services. - * Required - * @type string $exempted_member - * A single identity that is exempted from "data access" audit - * logging for the `service` specified above. - * Follows the same format of Binding.members. - * @type string $log_type - * Specifies the log_type that was be enabled. ADMIN_ACTIVITY is always - * enabled, and cannot be configured. - * Required - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Iam\V1\Policy::initOnce(); - parent::__construct($data); - } - - /** - * The action that was performed on an audit configuration in a policy. - * Required - * - * Generated from protobuf field .google.iam.v1.AuditConfigDelta.Action action = 1; - * @return int - */ - public function getAction() - { - return $this->action; - } - - /** - * The action that was performed on an audit configuration in a policy. - * Required - * - * Generated from protobuf field .google.iam.v1.AuditConfigDelta.Action action = 1; - * @param int $var - * @return $this - */ - public function setAction($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Iam\V1\AuditConfigDelta\Action::class); - $this->action = $var; - - return $this; - } - - /** - * Specifies a service that was configured for Cloud Audit Logging. - * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. - * `allServices` is a special value that covers all services. - * Required - * - * Generated from protobuf field string service = 2; - * @return string - */ - public function getService() - { - return $this->service; - } - - /** - * Specifies a service that was configured for Cloud Audit Logging. - * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. - * `allServices` is a special value that covers all services. - * Required - * - * Generated from protobuf field string service = 2; - * @param string $var - * @return $this - */ - public function setService($var) - { - GPBUtil::checkString($var, True); - $this->service = $var; - - return $this; - } - - /** - * A single identity that is exempted from "data access" audit - * logging for the `service` specified above. - * Follows the same format of Binding.members. - * - * Generated from protobuf field string exempted_member = 3; - * @return string - */ - public function getExemptedMember() - { - return $this->exempted_member; - } - - /** - * A single identity that is exempted from "data access" audit - * logging for the `service` specified above. - * Follows the same format of Binding.members. - * - * Generated from protobuf field string exempted_member = 3; - * @param string $var - * @return $this - */ - public function setExemptedMember($var) - { - GPBUtil::checkString($var, True); - $this->exempted_member = $var; - - return $this; - } - - /** - * Specifies the log_type that was be enabled. ADMIN_ACTIVITY is always - * enabled, and cannot be configured. - * Required - * - * Generated from protobuf field string log_type = 4; - * @return string - */ - public function getLogType() - { - return $this->log_type; - } - - /** - * Specifies the log_type that was be enabled. ADMIN_ACTIVITY is always - * enabled, and cannot be configured. - * Required - * - * Generated from protobuf field string log_type = 4; - * @param string $var - * @return $this - */ - public function setLogType($var) - { - GPBUtil::checkString($var, True); - $this->log_type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/AuditConfigDelta/Action.php b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/AuditConfigDelta/Action.php deleted file mode 100644 index 7f92d4fb9d3a..000000000000 --- a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/AuditConfigDelta/Action.php +++ /dev/null @@ -1,61 +0,0 @@ -google.iam.v1.AuditConfigDelta.Action - */ -class Action -{ - /** - * Unspecified. - * - * Generated from protobuf enum ACTION_UNSPECIFIED = 0; - */ - const ACTION_UNSPECIFIED = 0; - /** - * Addition of an audit configuration. - * - * Generated from protobuf enum ADD = 1; - */ - const ADD = 1; - /** - * Removal of an audit configuration. - * - * Generated from protobuf enum REMOVE = 2; - */ - const REMOVE = 2; - - private static $valueToName = [ - self::ACTION_UNSPECIFIED => 'ACTION_UNSPECIFIED', - self::ADD => 'ADD', - self::REMOVE => 'REMOVE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/AuditLogConfig.php b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/AuditLogConfig.php deleted file mode 100644 index acf7ef30df02..000000000000 --- a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/AuditLogConfig.php +++ /dev/null @@ -1,129 +0,0 @@ -google.iam.v1.AuditLogConfig - */ -class AuditLogConfig extends \Google\Protobuf\Internal\Message -{ - /** - * The log type that this config enables. - * - * Generated from protobuf field .google.iam.v1.AuditLogConfig.LogType log_type = 1; - */ - protected $log_type = 0; - /** - * Specifies the identities that do not cause logging for this type of - * permission. - * Follows the same format of - * [Binding.members][google.iam.v1.Binding.members]. - * - * Generated from protobuf field repeated string exempted_members = 2; - */ - private $exempted_members; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $log_type - * The log type that this config enables. - * @type string[] $exempted_members - * Specifies the identities that do not cause logging for this type of - * permission. - * Follows the same format of - * [Binding.members][google.iam.v1.Binding.members]. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Iam\V1\Policy::initOnce(); - parent::__construct($data); - } - - /** - * The log type that this config enables. - * - * Generated from protobuf field .google.iam.v1.AuditLogConfig.LogType log_type = 1; - * @return int - */ - public function getLogType() - { - return $this->log_type; - } - - /** - * The log type that this config enables. - * - * Generated from protobuf field .google.iam.v1.AuditLogConfig.LogType log_type = 1; - * @param int $var - * @return $this - */ - public function setLogType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Iam\V1\AuditLogConfig\LogType::class); - $this->log_type = $var; - - return $this; - } - - /** - * Specifies the identities that do not cause logging for this type of - * permission. - * Follows the same format of - * [Binding.members][google.iam.v1.Binding.members]. - * - * Generated from protobuf field repeated string exempted_members = 2; - * @return RepeatedField - */ - public function getExemptedMembers() - { - return $this->exempted_members; - } - - /** - * Specifies the identities that do not cause logging for this type of - * permission. - * Follows the same format of - * [Binding.members][google.iam.v1.Binding.members]. - * - * Generated from protobuf field repeated string exempted_members = 2; - * @param string[] $var - * @return $this - */ - public function setExemptedMembers($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->exempted_members = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/AuditLogConfig/LogType.php b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/AuditLogConfig/LogType.php deleted file mode 100644 index 5a86bc2f1bfe..000000000000 --- a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/AuditLogConfig/LogType.php +++ /dev/null @@ -1,69 +0,0 @@ -google.iam.v1.AuditLogConfig.LogType - */ -class LogType -{ - /** - * Default case. Should never be this. - * - * Generated from protobuf enum LOG_TYPE_UNSPECIFIED = 0; - */ - const LOG_TYPE_UNSPECIFIED = 0; - /** - * Admin reads. Example: CloudIAM getIamPolicy - * - * Generated from protobuf enum ADMIN_READ = 1; - */ - const ADMIN_READ = 1; - /** - * Data writes. Example: CloudSQL Users create - * - * Generated from protobuf enum DATA_WRITE = 2; - */ - const DATA_WRITE = 2; - /** - * Data reads. Example: CloudSQL Users list - * - * Generated from protobuf enum DATA_READ = 3; - */ - const DATA_READ = 3; - - private static $valueToName = [ - self::LOG_TYPE_UNSPECIFIED => 'LOG_TYPE_UNSPECIFIED', - self::ADMIN_READ => 'ADMIN_READ', - self::DATA_WRITE => 'DATA_WRITE', - self::DATA_READ => 'DATA_READ', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/Binding.php b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/Binding.php deleted file mode 100644 index 29ee4fafde06..000000000000 --- a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/Binding.php +++ /dev/null @@ -1,301 +0,0 @@ -google.iam.v1.Binding - */ -class Binding extends \Google\Protobuf\Internal\Message -{ - /** - * Role that is assigned to the list of `members`, or principals. - * For example, `roles/viewer`, `roles/editor`, or `roles/owner`. - * - * Generated from protobuf field string role = 1; - */ - protected $role = ''; - /** - * Specifies the principals requesting access for a Google Cloud resource. - * `members` can have the following values: - * * `allUsers`: A special identifier that represents anyone who is - * on the internet; with or without a Google account. - * * `allAuthenticatedUsers`: A special identifier that represents anyone - * who is authenticated with a Google account or a service account. - * * `user:{emailid}`: An email address that represents a specific Google - * account. For example, `alice\@example.com` . - * * `serviceAccount:{emailid}`: An email address that represents a service - * account. For example, `my-other-app\@appspot.gserviceaccount.com`. - * * `group:{emailid}`: An email address that represents a Google group. - * For example, `admins\@example.com`. - * * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique - * identifier) representing a user that has been recently deleted. For - * example, `alice\@example.com?uid=123456789012345678901`. If the user is - * recovered, this value reverts to `user:{emailid}` and the recovered user - * retains the role in the binding. - * * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus - * unique identifier) representing a service account that has been recently - * deleted. For example, - * `my-other-app\@appspot.gserviceaccount.com?uid=123456789012345678901`. - * If the service account is undeleted, this value reverts to - * `serviceAccount:{emailid}` and the undeleted service account retains the - * role in the binding. - * * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique - * identifier) representing a Google group that has been recently - * deleted. For example, `admins\@example.com?uid=123456789012345678901`. If - * the group is recovered, this value reverts to `group:{emailid}` and the - * recovered group retains the role in the binding. - * * `domain:{domain}`: The G Suite domain (primary) that represents all the - * users of that domain. For example, `google.com` or `example.com`. - * - * Generated from protobuf field repeated string members = 2; - */ - private $members; - /** - * The condition that is associated with this binding. - * If the condition evaluates to `true`, then this binding applies to the - * current request. - * If the condition evaluates to `false`, then this binding does not apply to - * the current request. However, a different role binding might grant the same - * role to one or more of the principals in this binding. - * To learn which resources support conditions in their IAM policies, see the - * [IAM - * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - * - * Generated from protobuf field .google.type.Expr condition = 3; - */ - protected $condition = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $role - * Role that is assigned to the list of `members`, or principals. - * For example, `roles/viewer`, `roles/editor`, or `roles/owner`. - * @type string[] $members - * Specifies the principals requesting access for a Google Cloud resource. - * `members` can have the following values: - * * `allUsers`: A special identifier that represents anyone who is - * on the internet; with or without a Google account. - * * `allAuthenticatedUsers`: A special identifier that represents anyone - * who is authenticated with a Google account or a service account. - * * `user:{emailid}`: An email address that represents a specific Google - * account. For example, `alice\@example.com` . - * * `serviceAccount:{emailid}`: An email address that represents a service - * account. For example, `my-other-app\@appspot.gserviceaccount.com`. - * * `group:{emailid}`: An email address that represents a Google group. - * For example, `admins\@example.com`. - * * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique - * identifier) representing a user that has been recently deleted. For - * example, `alice\@example.com?uid=123456789012345678901`. If the user is - * recovered, this value reverts to `user:{emailid}` and the recovered user - * retains the role in the binding. - * * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus - * unique identifier) representing a service account that has been recently - * deleted. For example, - * `my-other-app\@appspot.gserviceaccount.com?uid=123456789012345678901`. - * If the service account is undeleted, this value reverts to - * `serviceAccount:{emailid}` and the undeleted service account retains the - * role in the binding. - * * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique - * identifier) representing a Google group that has been recently - * deleted. For example, `admins\@example.com?uid=123456789012345678901`. If - * the group is recovered, this value reverts to `group:{emailid}` and the - * recovered group retains the role in the binding. - * * `domain:{domain}`: The G Suite domain (primary) that represents all the - * users of that domain. For example, `google.com` or `example.com`. - * @type \Google\Type\Expr $condition - * The condition that is associated with this binding. - * If the condition evaluates to `true`, then this binding applies to the - * current request. - * If the condition evaluates to `false`, then this binding does not apply to - * the current request. However, a different role binding might grant the same - * role to one or more of the principals in this binding. - * To learn which resources support conditions in their IAM policies, see the - * [IAM - * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Iam\V1\Policy::initOnce(); - parent::__construct($data); - } - - /** - * Role that is assigned to the list of `members`, or principals. - * For example, `roles/viewer`, `roles/editor`, or `roles/owner`. - * - * Generated from protobuf field string role = 1; - * @return string - */ - public function getRole() - { - return $this->role; - } - - /** - * Role that is assigned to the list of `members`, or principals. - * For example, `roles/viewer`, `roles/editor`, or `roles/owner`. - * - * Generated from protobuf field string role = 1; - * @param string $var - * @return $this - */ - public function setRole($var) - { - GPBUtil::checkString($var, True); - $this->role = $var; - - return $this; - } - - /** - * Specifies the principals requesting access for a Google Cloud resource. - * `members` can have the following values: - * * `allUsers`: A special identifier that represents anyone who is - * on the internet; with or without a Google account. - * * `allAuthenticatedUsers`: A special identifier that represents anyone - * who is authenticated with a Google account or a service account. - * * `user:{emailid}`: An email address that represents a specific Google - * account. For example, `alice\@example.com` . - * * `serviceAccount:{emailid}`: An email address that represents a service - * account. For example, `my-other-app\@appspot.gserviceaccount.com`. - * * `group:{emailid}`: An email address that represents a Google group. - * For example, `admins\@example.com`. - * * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique - * identifier) representing a user that has been recently deleted. For - * example, `alice\@example.com?uid=123456789012345678901`. If the user is - * recovered, this value reverts to `user:{emailid}` and the recovered user - * retains the role in the binding. - * * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus - * unique identifier) representing a service account that has been recently - * deleted. For example, - * `my-other-app\@appspot.gserviceaccount.com?uid=123456789012345678901`. - * If the service account is undeleted, this value reverts to - * `serviceAccount:{emailid}` and the undeleted service account retains the - * role in the binding. - * * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique - * identifier) representing a Google group that has been recently - * deleted. For example, `admins\@example.com?uid=123456789012345678901`. If - * the group is recovered, this value reverts to `group:{emailid}` and the - * recovered group retains the role in the binding. - * * `domain:{domain}`: The G Suite domain (primary) that represents all the - * users of that domain. For example, `google.com` or `example.com`. - * - * Generated from protobuf field repeated string members = 2; - * @return RepeatedField - */ - public function getMembers() - { - return $this->members; - } - - /** - * Specifies the principals requesting access for a Google Cloud resource. - * `members` can have the following values: - * * `allUsers`: A special identifier that represents anyone who is - * on the internet; with or without a Google account. - * * `allAuthenticatedUsers`: A special identifier that represents anyone - * who is authenticated with a Google account or a service account. - * * `user:{emailid}`: An email address that represents a specific Google - * account. For example, `alice\@example.com` . - * * `serviceAccount:{emailid}`: An email address that represents a service - * account. For example, `my-other-app\@appspot.gserviceaccount.com`. - * * `group:{emailid}`: An email address that represents a Google group. - * For example, `admins\@example.com`. - * * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique - * identifier) representing a user that has been recently deleted. For - * example, `alice\@example.com?uid=123456789012345678901`. If the user is - * recovered, this value reverts to `user:{emailid}` and the recovered user - * retains the role in the binding. - * * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus - * unique identifier) representing a service account that has been recently - * deleted. For example, - * `my-other-app\@appspot.gserviceaccount.com?uid=123456789012345678901`. - * If the service account is undeleted, this value reverts to - * `serviceAccount:{emailid}` and the undeleted service account retains the - * role in the binding. - * * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique - * identifier) representing a Google group that has been recently - * deleted. For example, `admins\@example.com?uid=123456789012345678901`. If - * the group is recovered, this value reverts to `group:{emailid}` and the - * recovered group retains the role in the binding. - * * `domain:{domain}`: The G Suite domain (primary) that represents all the - * users of that domain. For example, `google.com` or `example.com`. - * - * Generated from protobuf field repeated string members = 2; - * @param string[] $var - * @return $this - */ - public function setMembers($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->members = $arr; - - return $this; - } - - /** - * The condition that is associated with this binding. - * If the condition evaluates to `true`, then this binding applies to the - * current request. - * If the condition evaluates to `false`, then this binding does not apply to - * the current request. However, a different role binding might grant the same - * role to one or more of the principals in this binding. - * To learn which resources support conditions in their IAM policies, see the - * [IAM - * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - * - * Generated from protobuf field .google.type.Expr condition = 3; - * @return \Google\Type\Expr|null - */ - public function getCondition() - { - return $this->condition; - } - - public function hasCondition() - { - return isset($this->condition); - } - - public function clearCondition() - { - unset($this->condition); - } - - /** - * The condition that is associated with this binding. - * If the condition evaluates to `true`, then this binding applies to the - * current request. - * If the condition evaluates to `false`, then this binding does not apply to - * the current request. However, a different role binding might grant the same - * role to one or more of the principals in this binding. - * To learn which resources support conditions in their IAM policies, see the - * [IAM - * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - * - * Generated from protobuf field .google.type.Expr condition = 3; - * @param \Google\Type\Expr $var - * @return $this - */ - public function setCondition($var) - { - GPBUtil::checkMessage($var, \Google\Type\Expr::class); - $this->condition = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/BindingDelta.php b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/BindingDelta.php deleted file mode 100644 index 4563d6089a6e..000000000000 --- a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/BindingDelta.php +++ /dev/null @@ -1,200 +0,0 @@ -google.iam.v1.BindingDelta - */ -class BindingDelta extends \Google\Protobuf\Internal\Message -{ - /** - * The action that was performed on a Binding. - * Required - * - * Generated from protobuf field .google.iam.v1.BindingDelta.Action action = 1; - */ - protected $action = 0; - /** - * Role that is assigned to `members`. - * For example, `roles/viewer`, `roles/editor`, or `roles/owner`. - * Required - * - * Generated from protobuf field string role = 2; - */ - protected $role = ''; - /** - * A single identity requesting access for a Google Cloud resource. - * Follows the same format of Binding.members. - * Required - * - * Generated from protobuf field string member = 3; - */ - protected $member = ''; - /** - * The condition that is associated with this binding. - * - * Generated from protobuf field .google.type.Expr condition = 4; - */ - protected $condition = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $action - * The action that was performed on a Binding. - * Required - * @type string $role - * Role that is assigned to `members`. - * For example, `roles/viewer`, `roles/editor`, or `roles/owner`. - * Required - * @type string $member - * A single identity requesting access for a Google Cloud resource. - * Follows the same format of Binding.members. - * Required - * @type \Google\Type\Expr $condition - * The condition that is associated with this binding. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Iam\V1\Policy::initOnce(); - parent::__construct($data); - } - - /** - * The action that was performed on a Binding. - * Required - * - * Generated from protobuf field .google.iam.v1.BindingDelta.Action action = 1; - * @return int - */ - public function getAction() - { - return $this->action; - } - - /** - * The action that was performed on a Binding. - * Required - * - * Generated from protobuf field .google.iam.v1.BindingDelta.Action action = 1; - * @param int $var - * @return $this - */ - public function setAction($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Iam\V1\BindingDelta\Action::class); - $this->action = $var; - - return $this; - } - - /** - * Role that is assigned to `members`. - * For example, `roles/viewer`, `roles/editor`, or `roles/owner`. - * Required - * - * Generated from protobuf field string role = 2; - * @return string - */ - public function getRole() - { - return $this->role; - } - - /** - * Role that is assigned to `members`. - * For example, `roles/viewer`, `roles/editor`, or `roles/owner`. - * Required - * - * Generated from protobuf field string role = 2; - * @param string $var - * @return $this - */ - public function setRole($var) - { - GPBUtil::checkString($var, True); - $this->role = $var; - - return $this; - } - - /** - * A single identity requesting access for a Google Cloud resource. - * Follows the same format of Binding.members. - * Required - * - * Generated from protobuf field string member = 3; - * @return string - */ - public function getMember() - { - return $this->member; - } - - /** - * A single identity requesting access for a Google Cloud resource. - * Follows the same format of Binding.members. - * Required - * - * Generated from protobuf field string member = 3; - * @param string $var - * @return $this - */ - public function setMember($var) - { - GPBUtil::checkString($var, True); - $this->member = $var; - - return $this; - } - - /** - * The condition that is associated with this binding. - * - * Generated from protobuf field .google.type.Expr condition = 4; - * @return \Google\Type\Expr|null - */ - public function getCondition() - { - return $this->condition; - } - - public function hasCondition() - { - return isset($this->condition); - } - - public function clearCondition() - { - unset($this->condition); - } - - /** - * The condition that is associated with this binding. - * - * Generated from protobuf field .google.type.Expr condition = 4; - * @param \Google\Type\Expr $var - * @return $this - */ - public function setCondition($var) - { - GPBUtil::checkMessage($var, \Google\Type\Expr::class); - $this->condition = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/BindingDelta/Action.php b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/BindingDelta/Action.php deleted file mode 100644 index 18b7295093b6..000000000000 --- a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/BindingDelta/Action.php +++ /dev/null @@ -1,61 +0,0 @@ -google.iam.v1.BindingDelta.Action - */ -class Action -{ - /** - * Unspecified. - * - * Generated from protobuf enum ACTION_UNSPECIFIED = 0; - */ - const ACTION_UNSPECIFIED = 0; - /** - * Addition of a Binding. - * - * Generated from protobuf enum ADD = 1; - */ - const ADD = 1; - /** - * Removal of a Binding. - * - * Generated from protobuf enum REMOVE = 2; - */ - const REMOVE = 2; - - private static $valueToName = [ - self::ACTION_UNSPECIFIED => 'ACTION_UNSPECIFIED', - self::ADD => 'ADD', - self::REMOVE => 'REMOVE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/GetIamPolicyRequest.php b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/GetIamPolicyRequest.php deleted file mode 100644 index 231483b15f0c..000000000000 --- a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/GetIamPolicyRequest.php +++ /dev/null @@ -1,119 +0,0 @@ -google.iam.v1.GetIamPolicyRequest - */ -class GetIamPolicyRequest extends \Google\Protobuf\Internal\Message -{ - /** - * REQUIRED: The resource for which the policy is being requested. - * See the operation documentation for the appropriate value for this field. - * - * Generated from protobuf field string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $resource = ''; - /** - * OPTIONAL: A `GetPolicyOptions` object for specifying options to - * `GetIamPolicy`. - * - * Generated from protobuf field .google.iam.v1.GetPolicyOptions options = 2; - */ - protected $options = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $resource - * REQUIRED: The resource for which the policy is being requested. - * See the operation documentation for the appropriate value for this field. - * @type \Google\Cloud\Iam\V1\GetPolicyOptions $options - * OPTIONAL: A `GetPolicyOptions` object for specifying options to - * `GetIamPolicy`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Iam\V1\IamPolicy::initOnce(); - parent::__construct($data); - } - - /** - * REQUIRED: The resource for which the policy is being requested. - * See the operation documentation for the appropriate value for this field. - * - * Generated from protobuf field string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getResource() - { - return $this->resource; - } - - /** - * REQUIRED: The resource for which the policy is being requested. - * See the operation documentation for the appropriate value for this field. - * - * Generated from protobuf field string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setResource($var) - { - GPBUtil::checkString($var, True); - $this->resource = $var; - - return $this; - } - - /** - * OPTIONAL: A `GetPolicyOptions` object for specifying options to - * `GetIamPolicy`. - * - * Generated from protobuf field .google.iam.v1.GetPolicyOptions options = 2; - * @return \Google\Cloud\Iam\V1\GetPolicyOptions|null - */ - public function getOptions() - { - return $this->options; - } - - public function hasOptions() - { - return isset($this->options); - } - - public function clearOptions() - { - unset($this->options); - } - - /** - * OPTIONAL: A `GetPolicyOptions` object for specifying options to - * `GetIamPolicy`. - * - * Generated from protobuf field .google.iam.v1.GetPolicyOptions options = 2; - * @param \Google\Cloud\Iam\V1\GetPolicyOptions $var - * @return $this - */ - public function setOptions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Iam\V1\GetPolicyOptions::class); - $this->options = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/GetPolicyOptions.php b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/GetPolicyOptions.php deleted file mode 100644 index 0b245e12e1a2..000000000000 --- a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/GetPolicyOptions.php +++ /dev/null @@ -1,119 +0,0 @@ -google.iam.v1.GetPolicyOptions - */ -class GetPolicyOptions extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The maximum policy version that will be used to format the - * policy. - * Valid values are 0, 1, and 3. Requests specifying an invalid value will be - * rejected. - * Requests for policies with any conditional role bindings must specify - * version 3. Policies with no conditional role bindings may specify any valid - * value or leave the field unset. - * The policy in the response might use the policy version that you specified, - * or it might use a lower policy version. For example, if you specify version - * 3, but the policy has no conditional role bindings, the response uses - * version 1. - * To learn which resources support conditions in their IAM policies, see the - * [IAM - * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - * - * Generated from protobuf field int32 requested_policy_version = 1; - */ - protected $requested_policy_version = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $requested_policy_version - * Optional. The maximum policy version that will be used to format the - * policy. - * Valid values are 0, 1, and 3. Requests specifying an invalid value will be - * rejected. - * Requests for policies with any conditional role bindings must specify - * version 3. Policies with no conditional role bindings may specify any valid - * value or leave the field unset. - * The policy in the response might use the policy version that you specified, - * or it might use a lower policy version. For example, if you specify version - * 3, but the policy has no conditional role bindings, the response uses - * version 1. - * To learn which resources support conditions in their IAM policies, see the - * [IAM - * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Iam\V1\Options::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The maximum policy version that will be used to format the - * policy. - * Valid values are 0, 1, and 3. Requests specifying an invalid value will be - * rejected. - * Requests for policies with any conditional role bindings must specify - * version 3. Policies with no conditional role bindings may specify any valid - * value or leave the field unset. - * The policy in the response might use the policy version that you specified, - * or it might use a lower policy version. For example, if you specify version - * 3, but the policy has no conditional role bindings, the response uses - * version 1. - * To learn which resources support conditions in their IAM policies, see the - * [IAM - * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - * - * Generated from protobuf field int32 requested_policy_version = 1; - * @return int - */ - public function getRequestedPolicyVersion() - { - return $this->requested_policy_version; - } - - /** - * Optional. The maximum policy version that will be used to format the - * policy. - * Valid values are 0, 1, and 3. Requests specifying an invalid value will be - * rejected. - * Requests for policies with any conditional role bindings must specify - * version 3. Policies with no conditional role bindings may specify any valid - * value or leave the field unset. - * The policy in the response might use the policy version that you specified, - * or it might use a lower policy version. For example, if you specify version - * 3, but the policy has no conditional role bindings, the response uses - * version 1. - * To learn which resources support conditions in their IAM policies, see the - * [IAM - * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - * - * Generated from protobuf field int32 requested_policy_version = 1; - * @param int $var - * @return $this - */ - public function setRequestedPolicyVersion($var) - { - GPBUtil::checkInt32($var); - $this->requested_policy_version = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/Policy.php b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/Policy.php deleted file mode 100644 index 72e7c3f0186d..000000000000 --- a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/Policy.php +++ /dev/null @@ -1,377 +0,0 @@ -google.iam.v1.Policy - */ -class Policy extends \Google\Protobuf\Internal\Message -{ - /** - * Specifies the format of the policy. - * Valid values are `0`, `1`, and `3`. Requests that specify an invalid value - * are rejected. - * Any operation that affects conditional role bindings must specify version - * `3`. This requirement applies to the following operations: - * * Getting a policy that includes a conditional role binding - * * Adding a conditional role binding to a policy - * * Changing a conditional role binding in a policy - * * Removing any role binding, with or without a condition, from a policy - * that includes conditions - * **Important:** If you use IAM Conditions, you must include the `etag` field - * whenever you call `setIamPolicy`. If you omit this field, then IAM allows - * you to overwrite a version `3` policy with a version `1` policy, and all of - * the conditions in the version `3` policy are lost. - * If a policy does not include any conditions, operations on that policy may - * specify any valid version or leave the field unset. - * To learn which resources support conditions in their IAM policies, see the - * [IAM - * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - * - * Generated from protobuf field int32 version = 1; - */ - protected $version = 0; - /** - * Associates a list of `members`, or principals, with a `role`. Optionally, - * may specify a `condition` that determines how and when the `bindings` are - * applied. Each of the `bindings` must contain at least one principal. - * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 - * of these principals can be Google groups. Each occurrence of a principal - * counts towards these limits. For example, if the `bindings` grant 50 - * different roles to `user:alice\@example.com`, and not to any other - * principal, then you can add another 1,450 principals to the `bindings` in - * the `Policy`. - * - * Generated from protobuf field repeated .google.iam.v1.Binding bindings = 4; - */ - private $bindings; - /** - * Specifies cloud audit logging configuration for this policy. - * - * Generated from protobuf field repeated .google.iam.v1.AuditConfig audit_configs = 6; - */ - private $audit_configs; - /** - * `etag` is used for optimistic concurrency control as a way to help - * prevent simultaneous updates of a policy from overwriting each other. - * It is strongly suggested that systems make use of the `etag` in the - * read-modify-write cycle to perform policy updates in order to avoid race - * conditions: An `etag` is returned in the response to `getIamPolicy`, and - * systems are expected to put that etag in the request to `setIamPolicy` to - * ensure that their change will be applied to the same version of the policy. - * **Important:** If you use IAM Conditions, you must include the `etag` field - * whenever you call `setIamPolicy`. If you omit this field, then IAM allows - * you to overwrite a version `3` policy with a version `1` policy, and all of - * the conditions in the version `3` policy are lost. - * - * Generated from protobuf field bytes etag = 3; - */ - protected $etag = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $version - * Specifies the format of the policy. - * Valid values are `0`, `1`, and `3`. Requests that specify an invalid value - * are rejected. - * Any operation that affects conditional role bindings must specify version - * `3`. This requirement applies to the following operations: - * * Getting a policy that includes a conditional role binding - * * Adding a conditional role binding to a policy - * * Changing a conditional role binding in a policy - * * Removing any role binding, with or without a condition, from a policy - * that includes conditions - * **Important:** If you use IAM Conditions, you must include the `etag` field - * whenever you call `setIamPolicy`. If you omit this field, then IAM allows - * you to overwrite a version `3` policy with a version `1` policy, and all of - * the conditions in the version `3` policy are lost. - * If a policy does not include any conditions, operations on that policy may - * specify any valid version or leave the field unset. - * To learn which resources support conditions in their IAM policies, see the - * [IAM - * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - * @type \Google\Cloud\Iam\V1\Binding[] $bindings - * Associates a list of `members`, or principals, with a `role`. Optionally, - * may specify a `condition` that determines how and when the `bindings` are - * applied. Each of the `bindings` must contain at least one principal. - * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 - * of these principals can be Google groups. Each occurrence of a principal - * counts towards these limits. For example, if the `bindings` grant 50 - * different roles to `user:alice\@example.com`, and not to any other - * principal, then you can add another 1,450 principals to the `bindings` in - * the `Policy`. - * @type \Google\Cloud\Iam\V1\AuditConfig[] $audit_configs - * Specifies cloud audit logging configuration for this policy. - * @type string $etag - * `etag` is used for optimistic concurrency control as a way to help - * prevent simultaneous updates of a policy from overwriting each other. - * It is strongly suggested that systems make use of the `etag` in the - * read-modify-write cycle to perform policy updates in order to avoid race - * conditions: An `etag` is returned in the response to `getIamPolicy`, and - * systems are expected to put that etag in the request to `setIamPolicy` to - * ensure that their change will be applied to the same version of the policy. - * **Important:** If you use IAM Conditions, you must include the `etag` field - * whenever you call `setIamPolicy`. If you omit this field, then IAM allows - * you to overwrite a version `3` policy with a version `1` policy, and all of - * the conditions in the version `3` policy are lost. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Iam\V1\Policy::initOnce(); - parent::__construct($data); - } - - /** - * Specifies the format of the policy. - * Valid values are `0`, `1`, and `3`. Requests that specify an invalid value - * are rejected. - * Any operation that affects conditional role bindings must specify version - * `3`. This requirement applies to the following operations: - * * Getting a policy that includes a conditional role binding - * * Adding a conditional role binding to a policy - * * Changing a conditional role binding in a policy - * * Removing any role binding, with or without a condition, from a policy - * that includes conditions - * **Important:** If you use IAM Conditions, you must include the `etag` field - * whenever you call `setIamPolicy`. If you omit this field, then IAM allows - * you to overwrite a version `3` policy with a version `1` policy, and all of - * the conditions in the version `3` policy are lost. - * If a policy does not include any conditions, operations on that policy may - * specify any valid version or leave the field unset. - * To learn which resources support conditions in their IAM policies, see the - * [IAM - * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - * - * Generated from protobuf field int32 version = 1; - * @return int - */ - public function getVersion() - { - return $this->version; - } - - /** - * Specifies the format of the policy. - * Valid values are `0`, `1`, and `3`. Requests that specify an invalid value - * are rejected. - * Any operation that affects conditional role bindings must specify version - * `3`. This requirement applies to the following operations: - * * Getting a policy that includes a conditional role binding - * * Adding a conditional role binding to a policy - * * Changing a conditional role binding in a policy - * * Removing any role binding, with or without a condition, from a policy - * that includes conditions - * **Important:** If you use IAM Conditions, you must include the `etag` field - * whenever you call `setIamPolicy`. If you omit this field, then IAM allows - * you to overwrite a version `3` policy with a version `1` policy, and all of - * the conditions in the version `3` policy are lost. - * If a policy does not include any conditions, operations on that policy may - * specify any valid version or leave the field unset. - * To learn which resources support conditions in their IAM policies, see the - * [IAM - * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - * - * Generated from protobuf field int32 version = 1; - * @param int $var - * @return $this - */ - public function setVersion($var) - { - GPBUtil::checkInt32($var); - $this->version = $var; - - return $this; - } - - /** - * Associates a list of `members`, or principals, with a `role`. Optionally, - * may specify a `condition` that determines how and when the `bindings` are - * applied. Each of the `bindings` must contain at least one principal. - * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 - * of these principals can be Google groups. Each occurrence of a principal - * counts towards these limits. For example, if the `bindings` grant 50 - * different roles to `user:alice\@example.com`, and not to any other - * principal, then you can add another 1,450 principals to the `bindings` in - * the `Policy`. - * - * Generated from protobuf field repeated .google.iam.v1.Binding bindings = 4; - * @return RepeatedField<\Google\Cloud\Iam\V1\Binding> - */ - public function getBindings() - { - return $this->bindings; - } - - /** - * Associates a list of `members`, or principals, with a `role`. Optionally, - * may specify a `condition` that determines how and when the `bindings` are - * applied. Each of the `bindings` must contain at least one principal. - * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 - * of these principals can be Google groups. Each occurrence of a principal - * counts towards these limits. For example, if the `bindings` grant 50 - * different roles to `user:alice\@example.com`, and not to any other - * principal, then you can add another 1,450 principals to the `bindings` in - * the `Policy`. - * - * Generated from protobuf field repeated .google.iam.v1.Binding bindings = 4; - * @param \Google\Cloud\Iam\V1\Binding[] $var - * @return $this - */ - public function setBindings($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Iam\V1\Binding::class); - $this->bindings = $arr; - - return $this; - } - - /** - * Specifies cloud audit logging configuration for this policy. - * - * Generated from protobuf field repeated .google.iam.v1.AuditConfig audit_configs = 6; - * @return RepeatedField<\Google\Cloud\Iam\V1\AuditConfig> - */ - public function getAuditConfigs() - { - return $this->audit_configs; - } - - /** - * Specifies cloud audit logging configuration for this policy. - * - * Generated from protobuf field repeated .google.iam.v1.AuditConfig audit_configs = 6; - * @param \Google\Cloud\Iam\V1\AuditConfig[] $var - * @return $this - */ - public function setAuditConfigs($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Iam\V1\AuditConfig::class); - $this->audit_configs = $arr; - - return $this; - } - - /** - * `etag` is used for optimistic concurrency control as a way to help - * prevent simultaneous updates of a policy from overwriting each other. - * It is strongly suggested that systems make use of the `etag` in the - * read-modify-write cycle to perform policy updates in order to avoid race - * conditions: An `etag` is returned in the response to `getIamPolicy`, and - * systems are expected to put that etag in the request to `setIamPolicy` to - * ensure that their change will be applied to the same version of the policy. - * **Important:** If you use IAM Conditions, you must include the `etag` field - * whenever you call `setIamPolicy`. If you omit this field, then IAM allows - * you to overwrite a version `3` policy with a version `1` policy, and all of - * the conditions in the version `3` policy are lost. - * - * Generated from protobuf field bytes etag = 3; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * `etag` is used for optimistic concurrency control as a way to help - * prevent simultaneous updates of a policy from overwriting each other. - * It is strongly suggested that systems make use of the `etag` in the - * read-modify-write cycle to perform policy updates in order to avoid race - * conditions: An `etag` is returned in the response to `getIamPolicy`, and - * systems are expected to put that etag in the request to `setIamPolicy` to - * ensure that their change will be applied to the same version of the policy. - * **Important:** If you use IAM Conditions, you must include the `etag` field - * whenever you call `setIamPolicy`. If you omit this field, then IAM allows - * you to overwrite a version `3` policy with a version `1` policy, and all of - * the conditions in the version `3` policy are lost. - * - * Generated from protobuf field bytes etag = 3; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, False); - $this->etag = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/PolicyDelta.php b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/PolicyDelta.php deleted file mode 100644 index 8f421643b836..000000000000 --- a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/PolicyDelta.php +++ /dev/null @@ -1,101 +0,0 @@ -google.iam.v1.PolicyDelta - */ -class PolicyDelta extends \Google\Protobuf\Internal\Message -{ - /** - * The delta for Bindings between two policies. - * - * Generated from protobuf field repeated .google.iam.v1.BindingDelta binding_deltas = 1; - */ - private $binding_deltas; - /** - * The delta for AuditConfigs between two policies. - * - * Generated from protobuf field repeated .google.iam.v1.AuditConfigDelta audit_config_deltas = 2; - */ - private $audit_config_deltas; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Iam\V1\BindingDelta[] $binding_deltas - * The delta for Bindings between two policies. - * @type \Google\Cloud\Iam\V1\AuditConfigDelta[] $audit_config_deltas - * The delta for AuditConfigs between two policies. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Iam\V1\Policy::initOnce(); - parent::__construct($data); - } - - /** - * The delta for Bindings between two policies. - * - * Generated from protobuf field repeated .google.iam.v1.BindingDelta binding_deltas = 1; - * @return RepeatedField<\Google\Cloud\Iam\V1\BindingDelta> - */ - public function getBindingDeltas() - { - return $this->binding_deltas; - } - - /** - * The delta for Bindings between two policies. - * - * Generated from protobuf field repeated .google.iam.v1.BindingDelta binding_deltas = 1; - * @param \Google\Cloud\Iam\V1\BindingDelta[] $var - * @return $this - */ - public function setBindingDeltas($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Iam\V1\BindingDelta::class); - $this->binding_deltas = $arr; - - return $this; - } - - /** - * The delta for AuditConfigs between two policies. - * - * Generated from protobuf field repeated .google.iam.v1.AuditConfigDelta audit_config_deltas = 2; - * @return RepeatedField<\Google\Cloud\Iam\V1\AuditConfigDelta> - */ - public function getAuditConfigDeltas() - { - return $this->audit_config_deltas; - } - - /** - * The delta for AuditConfigs between two policies. - * - * Generated from protobuf field repeated .google.iam.v1.AuditConfigDelta audit_config_deltas = 2; - * @param \Google\Cloud\Iam\V1\AuditConfigDelta[] $var - * @return $this - */ - public function setAuditConfigDeltas($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Iam\V1\AuditConfigDelta::class); - $this->audit_config_deltas = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/ResourcePolicyMember.php b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/ResourcePolicyMember.php deleted file mode 100644 index c6deaf5bf7c8..000000000000 --- a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/ResourcePolicyMember.php +++ /dev/null @@ -1,142 +0,0 @@ -google.iam.v1.ResourcePolicyMember - */ -class ResourcePolicyMember extends \Google\Protobuf\Internal\Message -{ - /** - * IAM policy binding member referring to a Google Cloud resource by - * user-assigned name (https://google.aip.dev/122). If a resource is deleted - * and recreated with the same name, the binding will be applicable to the new - * resource. - * Example: - * `principal://parametermanager.googleapis.com/projects/12345/name/locations/us-central1-a/parameters/my-parameter` - * - * Generated from protobuf field string iam_policy_name_principal = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $iam_policy_name_principal = ''; - /** - * IAM policy binding member referring to a Google Cloud resource by - * system-assigned unique identifier (https://google.aip.dev/148#uid). If a - * resource is deleted and recreated with the same name, the binding will not - * be applicable to the new resource - * Example: - * `principal://parametermanager.googleapis.com/projects/12345/uid/locations/us-central1-a/parameters/a918fed5` - * - * Generated from protobuf field string iam_policy_uid_principal = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $iam_policy_uid_principal = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $iam_policy_name_principal - * IAM policy binding member referring to a Google Cloud resource by - * user-assigned name (https://google.aip.dev/122). If a resource is deleted - * and recreated with the same name, the binding will be applicable to the new - * resource. - * Example: - * `principal://parametermanager.googleapis.com/projects/12345/name/locations/us-central1-a/parameters/my-parameter` - * @type string $iam_policy_uid_principal - * IAM policy binding member referring to a Google Cloud resource by - * system-assigned unique identifier (https://google.aip.dev/148#uid). If a - * resource is deleted and recreated with the same name, the binding will not - * be applicable to the new resource - * Example: - * `principal://parametermanager.googleapis.com/projects/12345/uid/locations/us-central1-a/parameters/a918fed5` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Iam\V1\ResourcePolicyMember::initOnce(); - parent::__construct($data); - } - - /** - * IAM policy binding member referring to a Google Cloud resource by - * user-assigned name (https://google.aip.dev/122). If a resource is deleted - * and recreated with the same name, the binding will be applicable to the new - * resource. - * Example: - * `principal://parametermanager.googleapis.com/projects/12345/name/locations/us-central1-a/parameters/my-parameter` - * - * Generated from protobuf field string iam_policy_name_principal = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getIamPolicyNamePrincipal() - { - return $this->iam_policy_name_principal; - } - - /** - * IAM policy binding member referring to a Google Cloud resource by - * user-assigned name (https://google.aip.dev/122). If a resource is deleted - * and recreated with the same name, the binding will be applicable to the new - * resource. - * Example: - * `principal://parametermanager.googleapis.com/projects/12345/name/locations/us-central1-a/parameters/my-parameter` - * - * Generated from protobuf field string iam_policy_name_principal = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setIamPolicyNamePrincipal($var) - { - GPBUtil::checkString($var, True); - $this->iam_policy_name_principal = $var; - - return $this; - } - - /** - * IAM policy binding member referring to a Google Cloud resource by - * system-assigned unique identifier (https://google.aip.dev/148#uid). If a - * resource is deleted and recreated with the same name, the binding will not - * be applicable to the new resource - * Example: - * `principal://parametermanager.googleapis.com/projects/12345/uid/locations/us-central1-a/parameters/a918fed5` - * - * Generated from protobuf field string iam_policy_uid_principal = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getIamPolicyUidPrincipal() - { - return $this->iam_policy_uid_principal; - } - - /** - * IAM policy binding member referring to a Google Cloud resource by - * system-assigned unique identifier (https://google.aip.dev/148#uid). If a - * resource is deleted and recreated with the same name, the binding will not - * be applicable to the new resource - * Example: - * `principal://parametermanager.googleapis.com/projects/12345/uid/locations/us-central1-a/parameters/a918fed5` - * - * Generated from protobuf field string iam_policy_uid_principal = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setIamPolicyUidPrincipal($var) - { - GPBUtil::checkString($var, True); - $this->iam_policy_uid_principal = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/SetIamPolicyRequest.php b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/SetIamPolicyRequest.php deleted file mode 100644 index e03e34a70735..000000000000 --- a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/SetIamPolicyRequest.php +++ /dev/null @@ -1,183 +0,0 @@ -google.iam.v1.SetIamPolicyRequest - */ -class SetIamPolicyRequest extends \Google\Protobuf\Internal\Message -{ - /** - * REQUIRED: The resource for which the policy is being specified. - * See the operation documentation for the appropriate value for this field. - * - * Generated from protobuf field string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $resource = ''; - /** - * REQUIRED: The complete policy to be applied to the `resource`. The size of - * the policy is limited to a few 10s of KB. An empty policy is a - * valid policy but certain Cloud Platform services (such as Projects) - * might reject them. - * - * Generated from protobuf field .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $policy = null; - /** - * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only - * the fields in the mask will be modified. If no mask is provided, the - * following default mask is used: - * `paths: "bindings, etag"` - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; - */ - protected $update_mask = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $resource - * REQUIRED: The resource for which the policy is being specified. - * See the operation documentation for the appropriate value for this field. - * @type \Google\Cloud\Iam\V1\Policy $policy - * REQUIRED: The complete policy to be applied to the `resource`. The size of - * the policy is limited to a few 10s of KB. An empty policy is a - * valid policy but certain Cloud Platform services (such as Projects) - * might reject them. - * @type \Google\Protobuf\FieldMask $update_mask - * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only - * the fields in the mask will be modified. If no mask is provided, the - * following default mask is used: - * `paths: "bindings, etag"` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Iam\V1\IamPolicy::initOnce(); - parent::__construct($data); - } - - /** - * REQUIRED: The resource for which the policy is being specified. - * See the operation documentation for the appropriate value for this field. - * - * Generated from protobuf field string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getResource() - { - return $this->resource; - } - - /** - * REQUIRED: The resource for which the policy is being specified. - * See the operation documentation for the appropriate value for this field. - * - * Generated from protobuf field string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setResource($var) - { - GPBUtil::checkString($var, True); - $this->resource = $var; - - return $this; - } - - /** - * REQUIRED: The complete policy to be applied to the `resource`. The size of - * the policy is limited to a few 10s of KB. An empty policy is a - * valid policy but certain Cloud Platform services (such as Projects) - * might reject them. - * - * Generated from protobuf field .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Iam\V1\Policy|null - */ - public function getPolicy() - { - return $this->policy; - } - - public function hasPolicy() - { - return isset($this->policy); - } - - public function clearPolicy() - { - unset($this->policy); - } - - /** - * REQUIRED: The complete policy to be applied to the `resource`. The size of - * the policy is limited to a few 10s of KB. An empty policy is a - * valid policy but certain Cloud Platform services (such as Projects) - * might reject them. - * - * Generated from protobuf field .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Iam\V1\Policy $var - * @return $this - */ - public function setPolicy($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Iam\V1\Policy::class); - $this->policy = $var; - - return $this; - } - - /** - * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only - * the fields in the mask will be modified. If no mask is provided, the - * following default mask is used: - * `paths: "bindings, etag"` - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only - * the fields in the mask will be modified. If no mask is provided, the - * following default mask is used: - * `paths: "bindings, etag"` - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/TestIamPermissionsRequest.php b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/TestIamPermissionsRequest.php deleted file mode 100644 index cc98a3ddb997..000000000000 --- a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/TestIamPermissionsRequest.php +++ /dev/null @@ -1,117 +0,0 @@ -google.iam.v1.TestIamPermissionsRequest - */ -class TestIamPermissionsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * REQUIRED: The resource for which the policy detail is being requested. - * See the operation documentation for the appropriate value for this field. - * - * Generated from protobuf field string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $resource = ''; - /** - * The set of permissions to check for the `resource`. Permissions with - * wildcards (such as '*' or 'storage.*') are not allowed. For more - * information see - * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). - * - * Generated from protobuf field repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private $permissions; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $resource - * REQUIRED: The resource for which the policy detail is being requested. - * See the operation documentation for the appropriate value for this field. - * @type string[] $permissions - * The set of permissions to check for the `resource`. Permissions with - * wildcards (such as '*' or 'storage.*') are not allowed. For more - * information see - * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Iam\V1\IamPolicy::initOnce(); - parent::__construct($data); - } - - /** - * REQUIRED: The resource for which the policy detail is being requested. - * See the operation documentation for the appropriate value for this field. - * - * Generated from protobuf field string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getResource() - { - return $this->resource; - } - - /** - * REQUIRED: The resource for which the policy detail is being requested. - * See the operation documentation for the appropriate value for this field. - * - * Generated from protobuf field string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setResource($var) - { - GPBUtil::checkString($var, True); - $this->resource = $var; - - return $this; - } - - /** - * The set of permissions to check for the `resource`. Permissions with - * wildcards (such as '*' or 'storage.*') are not allowed. For more - * information see - * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). - * - * Generated from protobuf field repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return RepeatedField - */ - public function getPermissions() - { - return $this->permissions; - } - - /** - * The set of permissions to check for the `resource`. Permissions with - * wildcards (such as '*' or 'storage.*') are not allowed. For more - * information see - * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). - * - * Generated from protobuf field repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string[] $var - * @return $this - */ - public function setPermissions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->permissions = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/TestIamPermissionsResponse.php b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/TestIamPermissionsResponse.php deleted file mode 100644 index 310290095216..000000000000 --- a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Cloud/Iam/V1/TestIamPermissionsResponse.php +++ /dev/null @@ -1,71 +0,0 @@ -google.iam.v1.TestIamPermissionsResponse - */ -class TestIamPermissionsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * A subset of `TestPermissionsRequest.permissions` that the caller is - * allowed. - * - * Generated from protobuf field repeated string permissions = 1; - */ - private $permissions; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string[] $permissions - * A subset of `TestPermissionsRequest.permissions` that the caller is - * allowed. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Iam\V1\IamPolicy::initOnce(); - parent::__construct($data); - } - - /** - * A subset of `TestPermissionsRequest.permissions` that the caller is - * allowed. - * - * Generated from protobuf field repeated string permissions = 1; - * @return RepeatedField - */ - public function getPermissions() - { - return $this->permissions; - } - - /** - * A subset of `TestPermissionsRequest.permissions` that the caller is - * allowed. - * - * Generated from protobuf field repeated string permissions = 1; - * @param string[] $var - * @return $this - */ - public function setPermissions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->permissions = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Iam/V1/Logging/AuditData.php b/owl-bot-staging/CommonProtos/iam/proto/src/Google/Iam/V1/Logging/AuditData.php deleted file mode 100644 index 48aae57bd29f..000000000000 --- a/owl-bot-staging/CommonProtos/iam/proto/src/Google/Iam/V1/Logging/AuditData.php +++ /dev/null @@ -1,79 +0,0 @@ -google.iam.v1.logging.AuditData - */ -class AuditData extends \Google\Protobuf\Internal\Message -{ - /** - * Policy delta between the original policy and the newly set policy. - * - * Generated from protobuf field .google.iam.v1.PolicyDelta policy_delta = 2; - */ - protected $policy_delta = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Iam\V1\PolicyDelta $policy_delta - * Policy delta between the original policy and the newly set policy. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Iam\V1\Logging\AuditData::initOnce(); - parent::__construct($data); - } - - /** - * Policy delta between the original policy and the newly set policy. - * - * Generated from protobuf field .google.iam.v1.PolicyDelta policy_delta = 2; - * @return \Google\Cloud\Iam\V1\PolicyDelta|null - */ - public function getPolicyDelta() - { - return $this->policy_delta; - } - - public function hasPolicyDelta() - { - return isset($this->policy_delta); - } - - public function clearPolicyDelta() - { - unset($this->policy_delta); - } - - /** - * Policy delta between the original policy and the newly set policy. - * - * Generated from protobuf field .google.iam.v1.PolicyDelta policy_delta = 2; - * @param \Google\Cloud\Iam\V1\PolicyDelta $var - * @return $this - */ - public function setPolicyDelta($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Iam\V1\PolicyDelta::class); - $this->policy_delta = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/iamlogging/proto/src/GPBMetadata/Google/Iam/V1/Logging/AuditData.php b/owl-bot-staging/CommonProtos/iamlogging/proto/src/GPBMetadata/Google/Iam/V1/Logging/AuditData.php deleted file mode 100644 index 93ae1a0279ec..000000000000 --- a/owl-bot-staging/CommonProtos/iamlogging/proto/src/GPBMetadata/Google/Iam/V1/Logging/AuditData.php +++ /dev/null @@ -1,25 +0,0 @@ -internalAddGeneratedFile( - "\x0A\x8F\x02\x0A&google/iam/v1/logging/audit_data.proto\x12\x15google.iam.v1.logging\"=\x0A\x09AuditData\x120\x0A\x0Cpolicy_delta\x18\x02 \x01(\x0B2\x1A.google.iam.v1.PolicyDeltaB\x86\x01\x0A\x19com.google.iam.v1.loggingB\x0EAuditDataProtoP\x01Z9cloud.google.com/go/iam/apiv1/logging/loggingpb;loggingpb\xAA\x02\x1BGoogle.Cloud.Iam.V1.Loggingb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/iamlogging/proto/src/Google/Iam/V1/Logging/AuditData.php b/owl-bot-staging/CommonProtos/iamlogging/proto/src/Google/Iam/V1/Logging/AuditData.php deleted file mode 100644 index 48aae57bd29f..000000000000 --- a/owl-bot-staging/CommonProtos/iamlogging/proto/src/Google/Iam/V1/Logging/AuditData.php +++ /dev/null @@ -1,79 +0,0 @@ -google.iam.v1.logging.AuditData - */ -class AuditData extends \Google\Protobuf\Internal\Message -{ - /** - * Policy delta between the original policy and the newly set policy. - * - * Generated from protobuf field .google.iam.v1.PolicyDelta policy_delta = 2; - */ - protected $policy_delta = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Iam\V1\PolicyDelta $policy_delta - * Policy delta between the original policy and the newly set policy. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Iam\V1\Logging\AuditData::initOnce(); - parent::__construct($data); - } - - /** - * Policy delta between the original policy and the newly set policy. - * - * Generated from protobuf field .google.iam.v1.PolicyDelta policy_delta = 2; - * @return \Google\Cloud\Iam\V1\PolicyDelta|null - */ - public function getPolicyDelta() - { - return $this->policy_delta; - } - - public function hasPolicyDelta() - { - return isset($this->policy_delta); - } - - public function clearPolicyDelta() - { - unset($this->policy_delta); - } - - /** - * Policy delta between the original policy and the newly set policy. - * - * Generated from protobuf field .google.iam.v1.PolicyDelta policy_delta = 2; - * @param \Google\Cloud\Iam\V1\PolicyDelta $var - * @return $this - */ - public function setPolicyDelta($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Iam\V1\PolicyDelta::class); - $this->policy_delta = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/location/proto/src/GPBMetadata/Google/Cloud/Location/Locations.php b/owl-bot-staging/CommonProtos/location/proto/src/GPBMetadata/Google/Cloud/Location/Locations.php deleted file mode 100644 index d18965d1bd1e..000000000000 --- a/owl-bot-staging/CommonProtos/location/proto/src/GPBMetadata/Google/Cloud/Location/Locations.php +++ /dev/null @@ -1,27 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xD3\x08\x0A%google/cloud/location/locations.proto\x12\x15google.cloud.location\x1A\x19google/protobuf/any.proto\x1A\x17google/api/client.proto\"[\x0A\x14ListLocationsRequest\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12\x0E\x0A\x06filter\x18\x02 \x01(\x09\x12\x11\x0A\x09page_size\x18\x03 \x01(\x05\x12\x12\x0A\x0Apage_token\x18\x04 \x01(\x09\"d\x0A\x15ListLocationsResponse\x122\x0A\x09locations\x18\x01 \x03(\x0B2\x1F.google.cloud.location.Location\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\"\x0A\x12GetLocationRequest\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\"\xD7\x01\x0A\x08Location\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12\x13\x0A\x0Blocation_id\x18\x04 \x01(\x09\x12\x14\x0A\x0Cdisplay_name\x18\x05 \x01(\x09\x12;\x0A\x06labels\x18\x02 \x03(\x0B2+.google.cloud.location.Location.LabelsEntry\x12&\x0A\x08metadata\x18\x03 \x01(\x0B2\x14.google.protobuf.Any\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x012\xA4\x03\x0A\x09Locations\x12\xAB\x01\x0A\x0DListLocations\x12+.google.cloud.location.ListLocationsRequest\x1A,.google.cloud.location.ListLocationsResponse\"?\x82\xD3\xE4\x93\x029\x12\x14/v1/{name=locations}Z!\x12\x1F/v1/{name=projects/*}/locations\x12\x9E\x01\x0A\x0BGetLocation\x12).google.cloud.location.GetLocationRequest\x1A\x1F.google.cloud.location.Location\"C\x82\xD3\xE4\x93\x02=\x12\x16/v1/{name=locations/*}Z#\x12!/v1/{name=projects/*/locations/*}\x1AH\xCAA\x14cloud.googleapis.com\xD2A.https://www.googleapis.com/auth/cloud-platformBo\x0A\x19com.google.cloud.locationB\x0ELocationsProtoP\x01Z=google.golang.org/genproto/googleapis/cloud/location;location\xF8\x01\x01b\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/location/proto/src/Google/Cloud/Location/GetLocationRequest.php b/owl-bot-staging/CommonProtos/location/proto/src/Google/Cloud/Location/GetLocationRequest.php deleted file mode 100644 index a83de9e37c51..000000000000 --- a/owl-bot-staging/CommonProtos/location/proto/src/Google/Cloud/Location/GetLocationRequest.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.location.GetLocationRequest - */ -class GetLocationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Resource name for the location. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Resource name for the location. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Location\Locations::initOnce(); - parent::__construct($data); - } - - /** - * Resource name for the location. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Resource name for the location. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/location/proto/src/Google/Cloud/Location/ListLocationsRequest.php b/owl-bot-staging/CommonProtos/location/proto/src/Google/Cloud/Location/ListLocationsRequest.php deleted file mode 100644 index d7167a00f1d0..000000000000 --- a/owl-bot-staging/CommonProtos/location/proto/src/Google/Cloud/Location/ListLocationsRequest.php +++ /dev/null @@ -1,169 +0,0 @@ -google.cloud.location.ListLocationsRequest - */ -class ListLocationsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The resource that owns the locations collection, if applicable. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * The standard list filter. - * - * Generated from protobuf field string filter = 2; - */ - protected $filter = ''; - /** - * The standard list page size. - * - * Generated from protobuf field int32 page_size = 3; - */ - protected $page_size = 0; - /** - * The standard list page token. - * - * Generated from protobuf field string page_token = 4; - */ - protected $page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The resource that owns the locations collection, if applicable. - * @type string $filter - * The standard list filter. - * @type int $page_size - * The standard list page size. - * @type string $page_token - * The standard list page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Location\Locations::initOnce(); - parent::__construct($data); - } - - /** - * The resource that owns the locations collection, if applicable. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The resource that owns the locations collection, if applicable. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The standard list filter. - * - * Generated from protobuf field string filter = 2; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * The standard list filter. - * - * Generated from protobuf field string filter = 2; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * The standard list page size. - * - * Generated from protobuf field int32 page_size = 3; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The standard list page size. - * - * Generated from protobuf field int32 page_size = 3; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * The standard list page token. - * - * Generated from protobuf field string page_token = 4; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * The standard list page token. - * - * Generated from protobuf field string page_token = 4; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/location/proto/src/Google/Cloud/Location/ListLocationsResponse.php b/owl-bot-staging/CommonProtos/location/proto/src/Google/Cloud/Location/ListLocationsResponse.php deleted file mode 100644 index 66a1b5882369..000000000000 --- a/owl-bot-staging/CommonProtos/location/proto/src/Google/Cloud/Location/ListLocationsResponse.php +++ /dev/null @@ -1,101 +0,0 @@ -google.cloud.location.ListLocationsResponse - */ -class ListLocationsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * A list of locations that matches the specified filter in the request. - * - * Generated from protobuf field repeated .google.cloud.location.Location locations = 1; - */ - private $locations; - /** - * The standard List next-page token. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Location\Location[] $locations - * A list of locations that matches the specified filter in the request. - * @type string $next_page_token - * The standard List next-page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Location\Locations::initOnce(); - parent::__construct($data); - } - - /** - * A list of locations that matches the specified filter in the request. - * - * Generated from protobuf field repeated .google.cloud.location.Location locations = 1; - * @return RepeatedField<\Google\Cloud\Location\Location> - */ - public function getLocations() - { - return $this->locations; - } - - /** - * A list of locations that matches the specified filter in the request. - * - * Generated from protobuf field repeated .google.cloud.location.Location locations = 1; - * @param \Google\Cloud\Location\Location[] $var - * @return $this - */ - public function setLocations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Location\Location::class); - $this->locations = $arr; - - return $this; - } - - /** - * The standard List next-page token. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * The standard List next-page token. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/location/proto/src/Google/Cloud/Location/Location.php b/owl-bot-staging/CommonProtos/location/proto/src/Google/Cloud/Location/Location.php deleted file mode 100644 index fb02c317e56f..000000000000 --- a/owl-bot-staging/CommonProtos/location/proto/src/Google/Cloud/Location/Location.php +++ /dev/null @@ -1,229 +0,0 @@ -google.cloud.location.Location - */ -class Location extends \Google\Protobuf\Internal\Message -{ - /** - * Resource name for the location, which may vary between implementations. - * For example: `"projects/example-project/locations/us-east1"` - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * The canonical id for this location. For example: `"us-east1"`. - * - * Generated from protobuf field string location_id = 4; - */ - protected $location_id = ''; - /** - * The friendly name for this location, typically a nearby city name. - * For example, "Tokyo". - * - * Generated from protobuf field string display_name = 5; - */ - protected $display_name = ''; - /** - * Cross-service attributes for the location. For example - * {"cloud.googleapis.com/region": "us-east1"} - * - * Generated from protobuf field map labels = 2; - */ - private $labels; - /** - * Service-specific metadata. For example the available capacity at the given - * location. - * - * Generated from protobuf field .google.protobuf.Any metadata = 3; - */ - protected $metadata = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Resource name for the location, which may vary between implementations. - * For example: `"projects/example-project/locations/us-east1"` - * @type string $location_id - * The canonical id for this location. For example: `"us-east1"`. - * @type string $display_name - * The friendly name for this location, typically a nearby city name. - * For example, "Tokyo". - * @type array|\Google\Protobuf\Internal\MapField $labels - * Cross-service attributes for the location. For example - * {"cloud.googleapis.com/region": "us-east1"} - * @type \Google\Protobuf\Any $metadata - * Service-specific metadata. For example the available capacity at the given - * location. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Location\Locations::initOnce(); - parent::__construct($data); - } - - /** - * Resource name for the location, which may vary between implementations. - * For example: `"projects/example-project/locations/us-east1"` - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Resource name for the location, which may vary between implementations. - * For example: `"projects/example-project/locations/us-east1"` - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The canonical id for this location. For example: `"us-east1"`. - * - * Generated from protobuf field string location_id = 4; - * @return string - */ - public function getLocationId() - { - return $this->location_id; - } - - /** - * The canonical id for this location. For example: `"us-east1"`. - * - * Generated from protobuf field string location_id = 4; - * @param string $var - * @return $this - */ - public function setLocationId($var) - { - GPBUtil::checkString($var, True); - $this->location_id = $var; - - return $this; - } - - /** - * The friendly name for this location, typically a nearby city name. - * For example, "Tokyo". - * - * Generated from protobuf field string display_name = 5; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * The friendly name for this location, typically a nearby city name. - * For example, "Tokyo". - * - * Generated from protobuf field string display_name = 5; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Cross-service attributes for the location. For example - * {"cloud.googleapis.com/region": "us-east1"} - * - * Generated from protobuf field map labels = 2; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Cross-service attributes for the location. For example - * {"cloud.googleapis.com/region": "us-east1"} - * - * Generated from protobuf field map labels = 2; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - - /** - * Service-specific metadata. For example the available capacity at the given - * location. - * - * Generated from protobuf field .google.protobuf.Any metadata = 3; - * @return \Google\Protobuf\Any|null - */ - public function getMetadata() - { - return $this->metadata; - } - - public function hasMetadata() - { - return isset($this->metadata); - } - - public function clearMetadata() - { - unset($this->metadata); - } - - /** - * Service-specific metadata. For example the available capacity at the given - * location. - * - * Generated from protobuf field .google.protobuf.Any metadata = 3; - * @param \Google\Protobuf\Any $var - * @return $this - */ - public function setMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Any::class); - $this->metadata = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/logging/proto/src/GPBMetadata/Google/Logging/Type/HttpRequest.php b/owl-bot-staging/CommonProtos/logging/proto/src/GPBMetadata/Google/Logging/Type/HttpRequest.php deleted file mode 100644 index 5bb5ed5eb488..000000000000 --- a/owl-bot-staging/CommonProtos/logging/proto/src/GPBMetadata/Google/Logging/Type/HttpRequest.php +++ /dev/null @@ -1,25 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xF8\x04\x0A&google/logging/type/http_request.proto\x12\x13google.logging.type\"\xEF\x02\x0A\x0BHttpRequest\x12\x16\x0A\x0Erequest_method\x18\x01 \x01(\x09\x12\x13\x0A\x0Brequest_url\x18\x02 \x01(\x09\x12\x14\x0A\x0Crequest_size\x18\x03 \x01(\x03\x12\x0E\x0A\x06status\x18\x04 \x01(\x05\x12\x15\x0A\x0Dresponse_size\x18\x05 \x01(\x03\x12\x12\x0A\x0Auser_agent\x18\x06 \x01(\x09\x12\x11\x0A\x09remote_ip\x18\x07 \x01(\x09\x12\x11\x0A\x09server_ip\x18\x0D \x01(\x09\x12\x0F\x0A\x07referer\x18\x08 \x01(\x09\x12*\x0A\x07latency\x18\x0E \x01(\x0B2\x19.google.protobuf.Duration\x12\x14\x0A\x0Ccache_lookup\x18\x0B \x01(\x08\x12\x11\x0A\x09cache_hit\x18\x09 \x01(\x08\x12*\x0A\"cache_validated_with_origin_server\x18\x0A \x01(\x08\x12\x18\x0A\x10cache_fill_bytes\x18\x0C \x01(\x03\x12\x10\x0A\x08protocol\x18\x0F \x01(\x09B\xBE\x01\x0A\x17com.google.logging.typeB\x10HttpRequestProtoP\x01Z8google.golang.org/genproto/googleapis/logging/type;ltype\xAA\x02\x19Google.Cloud.Logging.Type\xCA\x02\x19Google\\Cloud\\Logging\\Type\xEA\x02\x1CGoogle::Cloud::Logging::Typeb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/logging/proto/src/GPBMetadata/Google/Logging/Type/LogSeverity.php b/owl-bot-staging/CommonProtos/logging/proto/src/GPBMetadata/Google/Logging/Type/LogSeverity.php deleted file mode 100644 index 0955634f7305..000000000000 --- a/owl-bot-staging/CommonProtos/logging/proto/src/GPBMetadata/Google/Logging/Type/LogSeverity.php +++ /dev/null @@ -1,24 +0,0 @@ -internalAddGeneratedFile( - "\x0A\x92\x03\x0A&google/logging/type/log_severity.proto\x12\x13google.logging.type*\x82\x01\x0A\x0BLogSeverity\x12\x0B\x0A\x07DEFAULT\x10\x00\x12\x09\x0A\x05DEBUG\x10d\x12\x09\x0A\x04INFO\x10\xC8\x01\x12\x0B\x0A\x06NOTICE\x10\xAC\x02\x12\x0C\x0A\x07WARNING\x10\x90\x03\x12\x0A\x0A\x05ERROR\x10\xF4\x03\x12\x0D\x0A\x08CRITICAL\x10\xD8\x04\x12\x0A\x0A\x05ALERT\x10\xBC\x05\x12\x0E\x0A\x09EMERGENCY\x10\xA0\x06B\xC5\x01\x0A\x17com.google.logging.typeB\x10LogSeverityProtoP\x01Z8google.golang.org/genproto/googleapis/logging/type;ltype\xA2\x02\x04GLOG\xAA\x02\x19Google.Cloud.Logging.Type\xCA\x02\x19Google\\Cloud\\Logging\\Type\xEA\x02\x1CGoogle::Cloud::Logging::Typeb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/logging/proto/src/Google/Cloud/Logging/Type/HttpRequest.php b/owl-bot-staging/CommonProtos/logging/proto/src/Google/Cloud/Logging/Type/HttpRequest.php deleted file mode 100644 index 6ccdd4078b5b..000000000000 --- a/owl-bot-staging/CommonProtos/logging/proto/src/Google/Cloud/Logging/Type/HttpRequest.php +++ /dev/null @@ -1,627 +0,0 @@ -google.logging.type.HttpRequest - */ -class HttpRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The request method. Examples: `"GET"`, `"HEAD"`, `"PUT"`, `"POST"`. - * - * Generated from protobuf field string request_method = 1; - */ - protected $request_method = ''; - /** - * The scheme (http, https), the host name, the path and the query - * portion of the URL that was requested. - * Example: `"http://example.com/some/info?color=red"`. - * - * Generated from protobuf field string request_url = 2; - */ - protected $request_url = ''; - /** - * The size of the HTTP request message in bytes, including the request - * headers and the request body. - * - * Generated from protobuf field int64 request_size = 3; - */ - protected $request_size = 0; - /** - * The response code indicating the status of response. - * Examples: 200, 404. - * - * Generated from protobuf field int32 status = 4; - */ - protected $status = 0; - /** - * The size of the HTTP response message sent back to the client, in bytes, - * including the response headers and the response body. - * - * Generated from protobuf field int64 response_size = 5; - */ - protected $response_size = 0; - /** - * The user agent sent by the client. Example: - * `"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET - * CLR 1.0.3705)"`. - * - * Generated from protobuf field string user_agent = 6; - */ - protected $user_agent = ''; - /** - * The IP address (IPv4 or IPv6) of the client that issued the HTTP - * request. This field can include port information. Examples: - * `"192.168.1.1"`, `"10.0.0.1:80"`, `"FE80::0202:B3FF:FE1E:8329"`. - * - * Generated from protobuf field string remote_ip = 7; - */ - protected $remote_ip = ''; - /** - * The IP address (IPv4 or IPv6) of the origin server that the request was - * sent to. This field can include port information. Examples: - * `"192.168.1.1"`, `"10.0.0.1:80"`, `"FE80::0202:B3FF:FE1E:8329"`. - * - * Generated from protobuf field string server_ip = 13; - */ - protected $server_ip = ''; - /** - * The referer URL of the request, as defined in - * [HTTP/1.1 Header Field - * Definitions](https://datatracker.ietf.org/doc/html/rfc2616#section-14.36). - * - * Generated from protobuf field string referer = 8; - */ - protected $referer = ''; - /** - * The request processing latency on the server, from the time the request was - * received until the response was sent. - * - * Generated from protobuf field .google.protobuf.Duration latency = 14; - */ - protected $latency = null; - /** - * Whether or not a cache lookup was attempted. - * - * Generated from protobuf field bool cache_lookup = 11; - */ - protected $cache_lookup = false; - /** - * Whether or not an entity was served from cache - * (with or without validation). - * - * Generated from protobuf field bool cache_hit = 9; - */ - protected $cache_hit = false; - /** - * Whether or not the response was validated with the origin server before - * being served from cache. This field is only meaningful if `cache_hit` is - * True. - * - * Generated from protobuf field bool cache_validated_with_origin_server = 10; - */ - protected $cache_validated_with_origin_server = false; - /** - * The number of HTTP response bytes inserted into cache. Set only when a - * cache fill was attempted. - * - * Generated from protobuf field int64 cache_fill_bytes = 12; - */ - protected $cache_fill_bytes = 0; - /** - * Protocol used for the request. Examples: "HTTP/1.1", "HTTP/2", "websocket" - * - * Generated from protobuf field string protocol = 15; - */ - protected $protocol = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $request_method - * The request method. Examples: `"GET"`, `"HEAD"`, `"PUT"`, `"POST"`. - * @type string $request_url - * The scheme (http, https), the host name, the path and the query - * portion of the URL that was requested. - * Example: `"http://example.com/some/info?color=red"`. - * @type int|string $request_size - * The size of the HTTP request message in bytes, including the request - * headers and the request body. - * @type int $status - * The response code indicating the status of response. - * Examples: 200, 404. - * @type int|string $response_size - * The size of the HTTP response message sent back to the client, in bytes, - * including the response headers and the response body. - * @type string $user_agent - * The user agent sent by the client. Example: - * `"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET - * CLR 1.0.3705)"`. - * @type string $remote_ip - * The IP address (IPv4 or IPv6) of the client that issued the HTTP - * request. This field can include port information. Examples: - * `"192.168.1.1"`, `"10.0.0.1:80"`, `"FE80::0202:B3FF:FE1E:8329"`. - * @type string $server_ip - * The IP address (IPv4 or IPv6) of the origin server that the request was - * sent to. This field can include port information. Examples: - * `"192.168.1.1"`, `"10.0.0.1:80"`, `"FE80::0202:B3FF:FE1E:8329"`. - * @type string $referer - * The referer URL of the request, as defined in - * [HTTP/1.1 Header Field - * Definitions](https://datatracker.ietf.org/doc/html/rfc2616#section-14.36). - * @type \Google\Protobuf\Duration $latency - * The request processing latency on the server, from the time the request was - * received until the response was sent. - * @type bool $cache_lookup - * Whether or not a cache lookup was attempted. - * @type bool $cache_hit - * Whether or not an entity was served from cache - * (with or without validation). - * @type bool $cache_validated_with_origin_server - * Whether or not the response was validated with the origin server before - * being served from cache. This field is only meaningful if `cache_hit` is - * True. - * @type int|string $cache_fill_bytes - * The number of HTTP response bytes inserted into cache. Set only when a - * cache fill was attempted. - * @type string $protocol - * Protocol used for the request. Examples: "HTTP/1.1", "HTTP/2", "websocket" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Logging\Type\HttpRequest::initOnce(); - parent::__construct($data); - } - - /** - * The request method. Examples: `"GET"`, `"HEAD"`, `"PUT"`, `"POST"`. - * - * Generated from protobuf field string request_method = 1; - * @return string - */ - public function getRequestMethod() - { - return $this->request_method; - } - - /** - * The request method. Examples: `"GET"`, `"HEAD"`, `"PUT"`, `"POST"`. - * - * Generated from protobuf field string request_method = 1; - * @param string $var - * @return $this - */ - public function setRequestMethod($var) - { - GPBUtil::checkString($var, True); - $this->request_method = $var; - - return $this; - } - - /** - * The scheme (http, https), the host name, the path and the query - * portion of the URL that was requested. - * Example: `"http://example.com/some/info?color=red"`. - * - * Generated from protobuf field string request_url = 2; - * @return string - */ - public function getRequestUrl() - { - return $this->request_url; - } - - /** - * The scheme (http, https), the host name, the path and the query - * portion of the URL that was requested. - * Example: `"http://example.com/some/info?color=red"`. - * - * Generated from protobuf field string request_url = 2; - * @param string $var - * @return $this - */ - public function setRequestUrl($var) - { - GPBUtil::checkString($var, True); - $this->request_url = $var; - - return $this; - } - - /** - * The size of the HTTP request message in bytes, including the request - * headers and the request body. - * - * Generated from protobuf field int64 request_size = 3; - * @return int|string - */ - public function getRequestSize() - { - return $this->request_size; - } - - /** - * The size of the HTTP request message in bytes, including the request - * headers and the request body. - * - * Generated from protobuf field int64 request_size = 3; - * @param int|string $var - * @return $this - */ - public function setRequestSize($var) - { - GPBUtil::checkInt64($var); - $this->request_size = $var; - - return $this; - } - - /** - * The response code indicating the status of response. - * Examples: 200, 404. - * - * Generated from protobuf field int32 status = 4; - * @return int - */ - public function getStatus() - { - return $this->status; - } - - /** - * The response code indicating the status of response. - * Examples: 200, 404. - * - * Generated from protobuf field int32 status = 4; - * @param int $var - * @return $this - */ - public function setStatus($var) - { - GPBUtil::checkInt32($var); - $this->status = $var; - - return $this; - } - - /** - * The size of the HTTP response message sent back to the client, in bytes, - * including the response headers and the response body. - * - * Generated from protobuf field int64 response_size = 5; - * @return int|string - */ - public function getResponseSize() - { - return $this->response_size; - } - - /** - * The size of the HTTP response message sent back to the client, in bytes, - * including the response headers and the response body. - * - * Generated from protobuf field int64 response_size = 5; - * @param int|string $var - * @return $this - */ - public function setResponseSize($var) - { - GPBUtil::checkInt64($var); - $this->response_size = $var; - - return $this; - } - - /** - * The user agent sent by the client. Example: - * `"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET - * CLR 1.0.3705)"`. - * - * Generated from protobuf field string user_agent = 6; - * @return string - */ - public function getUserAgent() - { - return $this->user_agent; - } - - /** - * The user agent sent by the client. Example: - * `"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET - * CLR 1.0.3705)"`. - * - * Generated from protobuf field string user_agent = 6; - * @param string $var - * @return $this - */ - public function setUserAgent($var) - { - GPBUtil::checkString($var, True); - $this->user_agent = $var; - - return $this; - } - - /** - * The IP address (IPv4 or IPv6) of the client that issued the HTTP - * request. This field can include port information. Examples: - * `"192.168.1.1"`, `"10.0.0.1:80"`, `"FE80::0202:B3FF:FE1E:8329"`. - * - * Generated from protobuf field string remote_ip = 7; - * @return string - */ - public function getRemoteIp() - { - return $this->remote_ip; - } - - /** - * The IP address (IPv4 or IPv6) of the client that issued the HTTP - * request. This field can include port information. Examples: - * `"192.168.1.1"`, `"10.0.0.1:80"`, `"FE80::0202:B3FF:FE1E:8329"`. - * - * Generated from protobuf field string remote_ip = 7; - * @param string $var - * @return $this - */ - public function setRemoteIp($var) - { - GPBUtil::checkString($var, True); - $this->remote_ip = $var; - - return $this; - } - - /** - * The IP address (IPv4 or IPv6) of the origin server that the request was - * sent to. This field can include port information. Examples: - * `"192.168.1.1"`, `"10.0.0.1:80"`, `"FE80::0202:B3FF:FE1E:8329"`. - * - * Generated from protobuf field string server_ip = 13; - * @return string - */ - public function getServerIp() - { - return $this->server_ip; - } - - /** - * The IP address (IPv4 or IPv6) of the origin server that the request was - * sent to. This field can include port information. Examples: - * `"192.168.1.1"`, `"10.0.0.1:80"`, `"FE80::0202:B3FF:FE1E:8329"`. - * - * Generated from protobuf field string server_ip = 13; - * @param string $var - * @return $this - */ - public function setServerIp($var) - { - GPBUtil::checkString($var, True); - $this->server_ip = $var; - - return $this; - } - - /** - * The referer URL of the request, as defined in - * [HTTP/1.1 Header Field - * Definitions](https://datatracker.ietf.org/doc/html/rfc2616#section-14.36). - * - * Generated from protobuf field string referer = 8; - * @return string - */ - public function getReferer() - { - return $this->referer; - } - - /** - * The referer URL of the request, as defined in - * [HTTP/1.1 Header Field - * Definitions](https://datatracker.ietf.org/doc/html/rfc2616#section-14.36). - * - * Generated from protobuf field string referer = 8; - * @param string $var - * @return $this - */ - public function setReferer($var) - { - GPBUtil::checkString($var, True); - $this->referer = $var; - - return $this; - } - - /** - * The request processing latency on the server, from the time the request was - * received until the response was sent. - * - * Generated from protobuf field .google.protobuf.Duration latency = 14; - * @return \Google\Protobuf\Duration|null - */ - public function getLatency() - { - return $this->latency; - } - - public function hasLatency() - { - return isset($this->latency); - } - - public function clearLatency() - { - unset($this->latency); - } - - /** - * The request processing latency on the server, from the time the request was - * received until the response was sent. - * - * Generated from protobuf field .google.protobuf.Duration latency = 14; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setLatency($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->latency = $var; - - return $this; - } - - /** - * Whether or not a cache lookup was attempted. - * - * Generated from protobuf field bool cache_lookup = 11; - * @return bool - */ - public function getCacheLookup() - { - return $this->cache_lookup; - } - - /** - * Whether or not a cache lookup was attempted. - * - * Generated from protobuf field bool cache_lookup = 11; - * @param bool $var - * @return $this - */ - public function setCacheLookup($var) - { - GPBUtil::checkBool($var); - $this->cache_lookup = $var; - - return $this; - } - - /** - * Whether or not an entity was served from cache - * (with or without validation). - * - * Generated from protobuf field bool cache_hit = 9; - * @return bool - */ - public function getCacheHit() - { - return $this->cache_hit; - } - - /** - * Whether or not an entity was served from cache - * (with or without validation). - * - * Generated from protobuf field bool cache_hit = 9; - * @param bool $var - * @return $this - */ - public function setCacheHit($var) - { - GPBUtil::checkBool($var); - $this->cache_hit = $var; - - return $this; - } - - /** - * Whether or not the response was validated with the origin server before - * being served from cache. This field is only meaningful if `cache_hit` is - * True. - * - * Generated from protobuf field bool cache_validated_with_origin_server = 10; - * @return bool - */ - public function getCacheValidatedWithOriginServer() - { - return $this->cache_validated_with_origin_server; - } - - /** - * Whether or not the response was validated with the origin server before - * being served from cache. This field is only meaningful if `cache_hit` is - * True. - * - * Generated from protobuf field bool cache_validated_with_origin_server = 10; - * @param bool $var - * @return $this - */ - public function setCacheValidatedWithOriginServer($var) - { - GPBUtil::checkBool($var); - $this->cache_validated_with_origin_server = $var; - - return $this; - } - - /** - * The number of HTTP response bytes inserted into cache. Set only when a - * cache fill was attempted. - * - * Generated from protobuf field int64 cache_fill_bytes = 12; - * @return int|string - */ - public function getCacheFillBytes() - { - return $this->cache_fill_bytes; - } - - /** - * The number of HTTP response bytes inserted into cache. Set only when a - * cache fill was attempted. - * - * Generated from protobuf field int64 cache_fill_bytes = 12; - * @param int|string $var - * @return $this - */ - public function setCacheFillBytes($var) - { - GPBUtil::checkInt64($var); - $this->cache_fill_bytes = $var; - - return $this; - } - - /** - * Protocol used for the request. Examples: "HTTP/1.1", "HTTP/2", "websocket" - * - * Generated from protobuf field string protocol = 15; - * @return string - */ - public function getProtocol() - { - return $this->protocol; - } - - /** - * Protocol used for the request. Examples: "HTTP/1.1", "HTTP/2", "websocket" - * - * Generated from protobuf field string protocol = 15; - * @param string $var - * @return $this - */ - public function setProtocol($var) - { - GPBUtil::checkString($var, True); - $this->protocol = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/logging/proto/src/Google/Cloud/Logging/Type/LogSeverity.php b/owl-bot-staging/CommonProtos/logging/proto/src/Google/Cloud/Logging/Type/LogSeverity.php deleted file mode 100644 index dc64792e5661..000000000000 --- a/owl-bot-staging/CommonProtos/logging/proto/src/Google/Cloud/Logging/Type/LogSeverity.php +++ /dev/null @@ -1,119 +0,0 @@ - DEBUG AND severity <= WARNING - * If you are writing log entries, you should map other severity encodings to - * one of these standard levels. For example, you might map all of Java's FINE, - * FINER, and FINEST levels to `LogSeverity.DEBUG`. You can preserve the - * original severity level in the log entry payload if you wish. - * - * Protobuf type google.logging.type.LogSeverity - */ -class LogSeverity -{ - /** - * (0) The log entry has no assigned severity level. - * - * Generated from protobuf enum DEFAULT = 0; - */ - const PBDEFAULT = 0; - /** - * (100) Debug or trace information. - * - * Generated from protobuf enum DEBUG = 100; - */ - const DEBUG = 100; - /** - * (200) Routine information, such as ongoing status or performance. - * - * Generated from protobuf enum INFO = 200; - */ - const INFO = 200; - /** - * (300) Normal but significant events, such as start up, shut down, or - * a configuration change. - * - * Generated from protobuf enum NOTICE = 300; - */ - const NOTICE = 300; - /** - * (400) Warning events might cause problems. - * - * Generated from protobuf enum WARNING = 400; - */ - const WARNING = 400; - /** - * (500) Error events are likely to cause problems. - * - * Generated from protobuf enum ERROR = 500; - */ - const ERROR = 500; - /** - * (600) Critical events cause more severe problems or outages. - * - * Generated from protobuf enum CRITICAL = 600; - */ - const CRITICAL = 600; - /** - * (700) A person must take an action immediately. - * - * Generated from protobuf enum ALERT = 700; - */ - const ALERT = 700; - /** - * (800) One or more systems are unusable. - * - * Generated from protobuf enum EMERGENCY = 800; - */ - const EMERGENCY = 800; - - private static $valueToName = [ - self::PBDEFAULT => 'DEFAULT', - self::DEBUG => 'DEBUG', - self::INFO => 'INFO', - self::NOTICE => 'NOTICE', - self::WARNING => 'WARNING', - self::ERROR => 'ERROR', - self::CRITICAL => 'CRITICAL', - self::ALERT => 'ALERT', - self::EMERGENCY => 'EMERGENCY', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - $pbconst = __CLASS__. '::PB' . strtoupper($name); - if (!defined($pbconst)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($pbconst); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/GPBMetadata/Google/Rpc/Code.php b/owl-bot-staging/CommonProtos/rpc/proto/src/GPBMetadata/Google/Rpc/Code.php deleted file mode 100644 index fe364e8ea743..000000000000 --- a/owl-bot-staging/CommonProtos/rpc/proto/src/GPBMetadata/Google/Rpc/Code.php +++ /dev/null @@ -1,24 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xBF\x03\x0A\x15google/rpc/code.proto\x12\x0Agoogle.rpc*\xB7\x02\x0A\x04Code\x12\x06\x0A\x02OK\x10\x00\x12\x0D\x0A\x09CANCELLED\x10\x01\x12\x0B\x0A\x07UNKNOWN\x10\x02\x12\x14\x0A\x10INVALID_ARGUMENT\x10\x03\x12\x15\x0A\x11DEADLINE_EXCEEDED\x10\x04\x12\x0D\x0A\x09NOT_FOUND\x10\x05\x12\x12\x0A\x0EALREADY_EXISTS\x10\x06\x12\x15\x0A\x11PERMISSION_DENIED\x10\x07\x12\x13\x0A\x0FUNAUTHENTICATED\x10\x10\x12\x16\x0A\x12RESOURCE_EXHAUSTED\x10\x08\x12\x17\x0A\x13FAILED_PRECONDITION\x10\x09\x12\x0B\x0A\x07ABORTED\x10\x0A\x12\x10\x0A\x0COUT_OF_RANGE\x10\x0B\x12\x11\x0A\x0DUNIMPLEMENTED\x10\x0C\x12\x0C\x0A\x08INTERNAL\x10\x0D\x12\x0F\x0A\x0BUNAVAILABLE\x10\x0E\x12\x0D\x0A\x09DATA_LOSS\x10\x0FBX\x0A\x0Ecom.google.rpcB\x09CodeProtoP\x01Z3google.golang.org/genproto/googleapis/rpc/code;code\xA2\x02\x03RPCb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/GPBMetadata/Google/Rpc/Context/AttributeContext.php b/owl-bot-staging/CommonProtos/rpc/proto/src/GPBMetadata/Google/Rpc/Context/AttributeContext.php deleted file mode 100644 index 6336f6a66484..000000000000 --- a/owl-bot-staging/CommonProtos/rpc/proto/src/GPBMetadata/Google/Rpc/Context/AttributeContext.php +++ /dev/null @@ -1,28 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xBB\x12\x0A*google/rpc/context/attribute_context.proto\x12\x12google.rpc.context\x1A\x1Egoogle/protobuf/duration.proto\x1A\x1Cgoogle/protobuf/struct.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\x83\x10\x0A\x10AttributeContext\x129\x0A\x06origin\x18\x07 \x01(\x0B2).google.rpc.context.AttributeContext.Peer\x129\x0A\x06source\x18\x01 \x01(\x0B2).google.rpc.context.AttributeContext.Peer\x12>\x0A\x0Bdestination\x18\x02 \x01(\x0B2).google.rpc.context.AttributeContext.Peer\x12=\x0A\x07request\x18\x03 \x01(\x0B2,.google.rpc.context.AttributeContext.Request\x12?\x0A\x08response\x18\x04 \x01(\x0B2-.google.rpc.context.AttributeContext.Response\x12?\x0A\x08resource\x18\x05 \x01(\x0B2-.google.rpc.context.AttributeContext.Resource\x125\x0A\x03api\x18\x06 \x01(\x0B2(.google.rpc.context.AttributeContext.Api\x12(\x0A\x0Aextensions\x18\x08 \x03(\x0B2\x14.google.protobuf.Any\x1A\xBE\x01\x0A\x04Peer\x12\x0A\x0A\x02ip\x18\x01 \x01(\x09\x12\x0C\x0A\x04port\x18\x02 \x01(\x03\x12E\x0A\x06labels\x18\x06 \x03(\x0B25.google.rpc.context.AttributeContext.Peer.LabelsEntry\x12\x11\x0A\x09principal\x18\x07 \x01(\x09\x12\x13\x0A\x0Bregion_code\x18\x08 \x01(\x09\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\x1AL\x0A\x03Api\x12\x0F\x0A\x07service\x18\x01 \x01(\x09\x12\x11\x0A\x09operation\x18\x02 \x01(\x09\x12\x10\x0A\x08protocol\x18\x03 \x01(\x09\x12\x0F\x0A\x07version\x18\x04 \x01(\x09\x1A\x7F\x0A\x04Auth\x12\x11\x0A\x09principal\x18\x01 \x01(\x09\x12\x11\x0A\x09audiences\x18\x02 \x03(\x09\x12\x11\x0A\x09presenter\x18\x03 \x01(\x09\x12'\x0A\x06claims\x18\x04 \x01(\x0B2\x17.google.protobuf.Struct\x12\x15\x0A\x0Daccess_levels\x18\x05 \x03(\x09\x1A\xEF\x02\x0A\x07Request\x12\x0A\x0A\x02id\x18\x01 \x01(\x09\x12\x0E\x0A\x06method\x18\x02 \x01(\x09\x12J\x0A\x07headers\x18\x03 \x03(\x0B29.google.rpc.context.AttributeContext.Request.HeadersEntry\x12\x0C\x0A\x04path\x18\x04 \x01(\x09\x12\x0C\x0A\x04host\x18\x05 \x01(\x09\x12\x0E\x0A\x06scheme\x18\x06 \x01(\x09\x12\x0D\x0A\x05query\x18\x07 \x01(\x09\x12(\x0A\x04time\x18\x09 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12\x0C\x0A\x04size\x18\x0A \x01(\x03\x12\x10\x0A\x08protocol\x18\x0B \x01(\x09\x12\x0E\x0A\x06reason\x18\x0C \x01(\x09\x127\x0A\x04auth\x18\x0D \x01(\x0B2).google.rpc.context.AttributeContext.Auth\x1A.\x0A\x0CHeadersEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\x1A\x81\x02\x0A\x08Response\x12\x0C\x0A\x04code\x18\x01 \x01(\x03\x12\x0C\x0A\x04size\x18\x02 \x01(\x03\x12K\x0A\x07headers\x18\x03 \x03(\x0B2:.google.rpc.context.AttributeContext.Response.HeadersEntry\x12(\x0A\x04time\x18\x04 \x01(\x0B2\x1A.google.protobuf.Timestamp\x122\x0A\x0Fbackend_latency\x18\x05 \x01(\x0B2\x19.google.protobuf.Duration\x1A.\x0A\x0CHeadersEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\x1A\x90\x04\x0A\x08Resource\x12\x0F\x0A\x07service\x18\x01 \x01(\x09\x12\x0C\x0A\x04name\x18\x02 \x01(\x09\x12\x0C\x0A\x04type\x18\x03 \x01(\x09\x12I\x0A\x06labels\x18\x04 \x03(\x0B29.google.rpc.context.AttributeContext.Resource.LabelsEntry\x12\x0B\x0A\x03uid\x18\x05 \x01(\x09\x12S\x0A\x0Bannotations\x18\x06 \x03(\x0B2>.google.rpc.context.AttributeContext.Resource.AnnotationsEntry\x12\x14\x0A\x0Cdisplay_name\x18\x07 \x01(\x09\x12/\x0A\x0Bcreate_time\x18\x08 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12/\x0A\x0Bupdate_time\x18\x09 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12/\x0A\x0Bdelete_time\x18\x0A \x01(\x0B2\x1A.google.protobuf.Timestamp\x12\x0C\x0A\x04etag\x18\x0B \x01(\x09\x12\x10\x0A\x08location\x18\x0C \x01(\x09\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\x1A2\x0A\x10AnnotationsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01B\x8B\x01\x0A\x16com.google.rpc.contextB\x15AttributeContextProtoP\x01ZUgoogle.golang.org/genproto/googleapis/rpc/context/attribute_context;attribute_context\xF8\x01\x01b\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/GPBMetadata/Google/Rpc/Context/AuditContext.php b/owl-bot-staging/CommonProtos/rpc/proto/src/GPBMetadata/Google/Rpc/Context/AuditContext.php deleted file mode 100644 index 285c3acb9fb1..000000000000 --- a/owl-bot-staging/CommonProtos/rpc/proto/src/GPBMetadata/Google/Rpc/Context/AuditContext.php +++ /dev/null @@ -1,25 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xF8\x02\x0A&google/rpc/context/audit_context.proto\x12\x12google.rpc.context\"\xC7\x01\x0A\x0CAuditContext\x12\x11\x0A\x09audit_log\x18\x01 \x01(\x0C\x121\x0A\x10scrubbed_request\x18\x02 \x01(\x0B2\x17.google.protobuf.Struct\x122\x0A\x11scrubbed_response\x18\x03 \x01(\x0B2\x17.google.protobuf.Struct\x12\$\x0A\x1Cscrubbed_response_item_count\x18\x04 \x01(\x05\x12\x17\x0A\x0Ftarget_resource\x18\x05 \x01(\x09Bh\x0A\x16com.google.rpc.contextB\x11AuditContextProtoP\x01Z9google.golang.org/genproto/googleapis/rpc/context;contextb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/GPBMetadata/Google/Rpc/ErrorDetails.php b/owl-bot-staging/CommonProtos/rpc/proto/src/GPBMetadata/Google/Rpc/ErrorDetails.php deleted file mode 100644 index 4b9f0d7941e1..000000000000 --- a/owl-bot-staging/CommonProtos/rpc/proto/src/GPBMetadata/Google/Rpc/ErrorDetails.php +++ /dev/null @@ -1,25 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xCA\x0B\x0A\x1Egoogle/rpc/error_details.proto\x12\x0Agoogle.rpc\"\x93\x01\x0A\x09ErrorInfo\x12\x0E\x0A\x06reason\x18\x01 \x01(\x09\x12\x0E\x0A\x06domain\x18\x02 \x01(\x09\x125\x0A\x08metadata\x18\x03 \x03(\x0B2#.google.rpc.ErrorInfo.MetadataEntry\x1A/\x0A\x0DMetadataEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\";\x0A\x09RetryInfo\x12.\x0A\x0Bretry_delay\x18\x01 \x01(\x0B2\x19.google.protobuf.Duration\"2\x0A\x09DebugInfo\x12\x15\x0A\x0Dstack_entries\x18\x01 \x03(\x09\x12\x0E\x0A\x06detail\x18\x02 \x01(\x09\"\x8F\x03\x0A\x0CQuotaFailure\x126\x0A\x0Aviolations\x18\x01 \x03(\x0B2\".google.rpc.QuotaFailure.Violation\x1A\xC6\x02\x0A\x09Violation\x12\x0F\x0A\x07subject\x18\x01 \x01(\x09\x12\x13\x0A\x0Bdescription\x18\x02 \x01(\x09\x12\x13\x0A\x0Bapi_service\x18\x03 \x01(\x09\x12\x14\x0A\x0Cquota_metric\x18\x04 \x01(\x09\x12\x10\x0A\x08quota_id\x18\x05 \x01(\x09\x12Q\x0A\x10quota_dimensions\x18\x06 \x03(\x0B27.google.rpc.QuotaFailure.Violation.QuotaDimensionsEntry\x12\x13\x0A\x0Bquota_value\x18\x07 \x01(\x03\x12\x1F\x0A\x12future_quota_value\x18\x08 \x01(\x03H\x00\x88\x01\x01\x1A6\x0A\x14QuotaDimensionsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01B\x15\x0A\x13_future_quota_value\"\x95\x01\x0A\x13PreconditionFailure\x12=\x0A\x0Aviolations\x18\x01 \x03(\x0B2).google.rpc.PreconditionFailure.Violation\x1A?\x0A\x09Violation\x12\x0C\x0A\x04type\x18\x01 \x01(\x09\x12\x0F\x0A\x07subject\x18\x02 \x01(\x09\x12\x13\x0A\x0Bdescription\x18\x03 \x01(\x09\"\xCC\x01\x0A\x0ABadRequest\x12?\x0A\x10field_violations\x18\x01 \x03(\x0B2%.google.rpc.BadRequest.FieldViolation\x1A}\x0A\x0EFieldViolation\x12\x0D\x0A\x05field\x18\x01 \x01(\x09\x12\x13\x0A\x0Bdescription\x18\x02 \x01(\x09\x12\x0E\x0A\x06reason\x18\x03 \x01(\x09\x127\x0A\x11localized_message\x18\x04 \x01(\x0B2\x1C.google.rpc.LocalizedMessage\"7\x0A\x0BRequestInfo\x12\x12\x0A\x0Arequest_id\x18\x01 \x01(\x09\x12\x14\x0A\x0Cserving_data\x18\x02 \x01(\x09\"`\x0A\x0CResourceInfo\x12\x15\x0A\x0Dresource_type\x18\x01 \x01(\x09\x12\x15\x0A\x0Dresource_name\x18\x02 \x01(\x09\x12\x0D\x0A\x05owner\x18\x03 \x01(\x09\x12\x13\x0A\x0Bdescription\x18\x04 \x01(\x09\"V\x0A\x04Help\x12\$\x0A\x05links\x18\x01 \x03(\x0B2\x15.google.rpc.Help.Link\x1A(\x0A\x04Link\x12\x13\x0A\x0Bdescription\x18\x01 \x01(\x09\x12\x0B\x0A\x03url\x18\x02 \x01(\x09\"3\x0A\x10LocalizedMessage\x12\x0E\x0A\x06locale\x18\x01 \x01(\x09\x12\x0F\x0A\x07message\x18\x02 \x01(\x09Bl\x0A\x0Ecom.google.rpcB\x11ErrorDetailsProtoP\x01Z?google.golang.org/genproto/googleapis/rpc/errdetails;errdetails\xA2\x02\x03RPCb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/GPBMetadata/Google/Rpc/Status.php b/owl-bot-staging/CommonProtos/rpc/proto/src/GPBMetadata/Google/Rpc/Status.php deleted file mode 100644 index 6122a2706632..000000000000 --- a/owl-bot-staging/CommonProtos/rpc/proto/src/GPBMetadata/Google/Rpc/Status.php +++ /dev/null @@ -1,25 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xE0\x01\x0A\x17google/rpc/status.proto\x12\x0Agoogle.rpc\"N\x0A\x06Status\x12\x0C\x0A\x04code\x18\x01 \x01(\x05\x12\x0F\x0A\x07message\x18\x02 \x01(\x09\x12%\x0A\x07details\x18\x03 \x03(\x0B2\x14.google.protobuf.AnyBa\x0A\x0Ecom.google.rpcB\x0BStatusProtoP\x01Z7google.golang.org/genproto/googleapis/rpc/status;status\xF8\x01\x01\xA2\x02\x03RPCb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/BadRequest.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/BadRequest.php deleted file mode 100644 index de1d80815113..000000000000 --- a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/BadRequest.php +++ /dev/null @@ -1,68 +0,0 @@ -google.rpc.BadRequest - */ -class BadRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Describes all violations in a client request. - * - * Generated from protobuf field repeated .google.rpc.BadRequest.FieldViolation field_violations = 1; - */ - private $field_violations; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Rpc\BadRequest\FieldViolation[] $field_violations - * Describes all violations in a client request. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Rpc\ErrorDetails::initOnce(); - parent::__construct($data); - } - - /** - * Describes all violations in a client request. - * - * Generated from protobuf field repeated .google.rpc.BadRequest.FieldViolation field_violations = 1; - * @return RepeatedField<\Google\Rpc\BadRequest\FieldViolation> - */ - public function getFieldViolations() - { - return $this->field_violations; - } - - /** - * Describes all violations in a client request. - * - * Generated from protobuf field repeated .google.rpc.BadRequest.FieldViolation field_violations = 1; - * @param \Google\Rpc\BadRequest\FieldViolation[] $var - * @return $this - */ - public function setFieldViolations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Rpc\BadRequest\FieldViolation::class); - $this->field_violations = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/BadRequest/FieldViolation.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/BadRequest/FieldViolation.php deleted file mode 100644 index 7c1dde3c12cd..000000000000 --- a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/BadRequest/FieldViolation.php +++ /dev/null @@ -1,315 +0,0 @@ -google.rpc.BadRequest.FieldViolation - */ -class FieldViolation extends \Google\Protobuf\Internal\Message -{ - /** - * A path that leads to a field in the request body. The value will be a - * sequence of dot-separated identifiers that identify a protocol buffer - * field. - * Consider the following: - * message CreateContactRequest { - * message EmailAddress { - * enum Type { - * TYPE_UNSPECIFIED = 0; - * HOME = 1; - * WORK = 2; - * } - * optional string email = 1; - * repeated EmailType type = 2; - * } - * string full_name = 1; - * repeated EmailAddress email_addresses = 2; - * } - * In this example, in proto `field` could take one of the following values: - * * `full_name` for a violation in the `full_name` value - * * `email_addresses[1].email` for a violation in the `email` field of the - * first `email_addresses` message - * * `email_addresses[3].type[2]` for a violation in the second `type` - * value in the third `email_addresses` message. - * In JSON, the same values are represented as: - * * `fullName` for a violation in the `fullName` value - * * `emailAddresses[1].email` for a violation in the `email` field of the - * first `emailAddresses` message - * * `emailAddresses[3].type[2]` for a violation in the second `type` - * value in the third `emailAddresses` message. - * - * Generated from protobuf field string field = 1; - */ - protected $field = ''; - /** - * A description of why the request element is bad. - * - * Generated from protobuf field string description = 2; - */ - protected $description = ''; - /** - * The reason of the field-level error. This is a constant value that - * identifies the proximate cause of the field-level error. It should - * uniquely identify the type of the FieldViolation within the scope of the - * google.rpc.ErrorInfo.domain. This should be at most 63 - * characters and match a regular expression of `[A-Z][A-Z0-9_]+[A-Z0-9]`, - * which represents UPPER_SNAKE_CASE. - * - * Generated from protobuf field string reason = 3; - */ - protected $reason = ''; - /** - * Provides a localized error message for field-level errors that is safe to - * return to the API consumer. - * - * Generated from protobuf field .google.rpc.LocalizedMessage localized_message = 4; - */ - protected $localized_message = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $field - * A path that leads to a field in the request body. The value will be a - * sequence of dot-separated identifiers that identify a protocol buffer - * field. - * Consider the following: - * message CreateContactRequest { - * message EmailAddress { - * enum Type { - * TYPE_UNSPECIFIED = 0; - * HOME = 1; - * WORK = 2; - * } - * optional string email = 1; - * repeated EmailType type = 2; - * } - * string full_name = 1; - * repeated EmailAddress email_addresses = 2; - * } - * In this example, in proto `field` could take one of the following values: - * * `full_name` for a violation in the `full_name` value - * * `email_addresses[1].email` for a violation in the `email` field of the - * first `email_addresses` message - * * `email_addresses[3].type[2]` for a violation in the second `type` - * value in the third `email_addresses` message. - * In JSON, the same values are represented as: - * * `fullName` for a violation in the `fullName` value - * * `emailAddresses[1].email` for a violation in the `email` field of the - * first `emailAddresses` message - * * `emailAddresses[3].type[2]` for a violation in the second `type` - * value in the third `emailAddresses` message. - * @type string $description - * A description of why the request element is bad. - * @type string $reason - * The reason of the field-level error. This is a constant value that - * identifies the proximate cause of the field-level error. It should - * uniquely identify the type of the FieldViolation within the scope of the - * google.rpc.ErrorInfo.domain. This should be at most 63 - * characters and match a regular expression of `[A-Z][A-Z0-9_]+[A-Z0-9]`, - * which represents UPPER_SNAKE_CASE. - * @type \Google\Rpc\LocalizedMessage $localized_message - * Provides a localized error message for field-level errors that is safe to - * return to the API consumer. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Rpc\ErrorDetails::initOnce(); - parent::__construct($data); - } - - /** - * A path that leads to a field in the request body. The value will be a - * sequence of dot-separated identifiers that identify a protocol buffer - * field. - * Consider the following: - * message CreateContactRequest { - * message EmailAddress { - * enum Type { - * TYPE_UNSPECIFIED = 0; - * HOME = 1; - * WORK = 2; - * } - * optional string email = 1; - * repeated EmailType type = 2; - * } - * string full_name = 1; - * repeated EmailAddress email_addresses = 2; - * } - * In this example, in proto `field` could take one of the following values: - * * `full_name` for a violation in the `full_name` value - * * `email_addresses[1].email` for a violation in the `email` field of the - * first `email_addresses` message - * * `email_addresses[3].type[2]` for a violation in the second `type` - * value in the third `email_addresses` message. - * In JSON, the same values are represented as: - * * `fullName` for a violation in the `fullName` value - * * `emailAddresses[1].email` for a violation in the `email` field of the - * first `emailAddresses` message - * * `emailAddresses[3].type[2]` for a violation in the second `type` - * value in the third `emailAddresses` message. - * - * Generated from protobuf field string field = 1; - * @return string - */ - public function getField() - { - return $this->field; - } - - /** - * A path that leads to a field in the request body. The value will be a - * sequence of dot-separated identifiers that identify a protocol buffer - * field. - * Consider the following: - * message CreateContactRequest { - * message EmailAddress { - * enum Type { - * TYPE_UNSPECIFIED = 0; - * HOME = 1; - * WORK = 2; - * } - * optional string email = 1; - * repeated EmailType type = 2; - * } - * string full_name = 1; - * repeated EmailAddress email_addresses = 2; - * } - * In this example, in proto `field` could take one of the following values: - * * `full_name` for a violation in the `full_name` value - * * `email_addresses[1].email` for a violation in the `email` field of the - * first `email_addresses` message - * * `email_addresses[3].type[2]` for a violation in the second `type` - * value in the third `email_addresses` message. - * In JSON, the same values are represented as: - * * `fullName` for a violation in the `fullName` value - * * `emailAddresses[1].email` for a violation in the `email` field of the - * first `emailAddresses` message - * * `emailAddresses[3].type[2]` for a violation in the second `type` - * value in the third `emailAddresses` message. - * - * Generated from protobuf field string field = 1; - * @param string $var - * @return $this - */ - public function setField($var) - { - GPBUtil::checkString($var, True); - $this->field = $var; - - return $this; - } - - /** - * A description of why the request element is bad. - * - * Generated from protobuf field string description = 2; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * A description of why the request element is bad. - * - * Generated from protobuf field string description = 2; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * The reason of the field-level error. This is a constant value that - * identifies the proximate cause of the field-level error. It should - * uniquely identify the type of the FieldViolation within the scope of the - * google.rpc.ErrorInfo.domain. This should be at most 63 - * characters and match a regular expression of `[A-Z][A-Z0-9_]+[A-Z0-9]`, - * which represents UPPER_SNAKE_CASE. - * - * Generated from protobuf field string reason = 3; - * @return string - */ - public function getReason() - { - return $this->reason; - } - - /** - * The reason of the field-level error. This is a constant value that - * identifies the proximate cause of the field-level error. It should - * uniquely identify the type of the FieldViolation within the scope of the - * google.rpc.ErrorInfo.domain. This should be at most 63 - * characters and match a regular expression of `[A-Z][A-Z0-9_]+[A-Z0-9]`, - * which represents UPPER_SNAKE_CASE. - * - * Generated from protobuf field string reason = 3; - * @param string $var - * @return $this - */ - public function setReason($var) - { - GPBUtil::checkString($var, True); - $this->reason = $var; - - return $this; - } - - /** - * Provides a localized error message for field-level errors that is safe to - * return to the API consumer. - * - * Generated from protobuf field .google.rpc.LocalizedMessage localized_message = 4; - * @return \Google\Rpc\LocalizedMessage|null - */ - public function getLocalizedMessage() - { - return $this->localized_message; - } - - public function hasLocalizedMessage() - { - return isset($this->localized_message); - } - - public function clearLocalizedMessage() - { - unset($this->localized_message); - } - - /** - * Provides a localized error message for field-level errors that is safe to - * return to the API consumer. - * - * Generated from protobuf field .google.rpc.LocalizedMessage localized_message = 4; - * @param \Google\Rpc\LocalizedMessage $var - * @return $this - */ - public function setLocalizedMessage($var) - { - GPBUtil::checkMessage($var, \Google\Rpc\LocalizedMessage::class); - $this->localized_message = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Code.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Code.php deleted file mode 100644 index b82e88f3bf4d..000000000000 --- a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Code.php +++ /dev/null @@ -1,243 +0,0 @@ -google.rpc.Code - */ -class Code -{ - /** - * Not an error; returned on success. - * HTTP Mapping: 200 OK - * - * Generated from protobuf enum OK = 0; - */ - const OK = 0; - /** - * The operation was cancelled, typically by the caller. - * HTTP Mapping: 499 Client Closed Request - * - * Generated from protobuf enum CANCELLED = 1; - */ - const CANCELLED = 1; - /** - * Unknown error. For example, this error may be returned when - * a `Status` value received from another address space belongs to - * an error space that is not known in this address space. Also - * errors raised by APIs that do not return enough error information - * may be converted to this error. - * HTTP Mapping: 500 Internal Server Error - * - * Generated from protobuf enum UNKNOWN = 2; - */ - const UNKNOWN = 2; - /** - * The client specified an invalid argument. Note that this differs - * from `FAILED_PRECONDITION`. `INVALID_ARGUMENT` indicates arguments - * that are problematic regardless of the state of the system - * (e.g., a malformed file name). - * HTTP Mapping: 400 Bad Request - * - * Generated from protobuf enum INVALID_ARGUMENT = 3; - */ - const INVALID_ARGUMENT = 3; - /** - * The deadline expired before the operation could complete. For operations - * that change the state of the system, this error may be returned - * even if the operation has completed successfully. For example, a - * successful response from a server could have been delayed long - * enough for the deadline to expire. - * HTTP Mapping: 504 Gateway Timeout - * - * Generated from protobuf enum DEADLINE_EXCEEDED = 4; - */ - const DEADLINE_EXCEEDED = 4; - /** - * Some requested entity (e.g., file or directory) was not found. - * Note to server developers: if a request is denied for an entire class - * of users, such as gradual feature rollout or undocumented allowlist, - * `NOT_FOUND` may be used. If a request is denied for some users within - * a class of users, such as user-based access control, `PERMISSION_DENIED` - * must be used. - * HTTP Mapping: 404 Not Found - * - * Generated from protobuf enum NOT_FOUND = 5; - */ - const NOT_FOUND = 5; - /** - * The entity that a client attempted to create (e.g., file or directory) - * already exists. - * HTTP Mapping: 409 Conflict - * - * Generated from protobuf enum ALREADY_EXISTS = 6; - */ - const ALREADY_EXISTS = 6; - /** - * The caller does not have permission to execute the specified - * operation. `PERMISSION_DENIED` must not be used for rejections - * caused by exhausting some resource (use `RESOURCE_EXHAUSTED` - * instead for those errors). `PERMISSION_DENIED` must not be - * used if the caller can not be identified (use `UNAUTHENTICATED` - * instead for those errors). This error code does not imply the - * request is valid or the requested entity exists or satisfies - * other pre-conditions. - * HTTP Mapping: 403 Forbidden - * - * Generated from protobuf enum PERMISSION_DENIED = 7; - */ - const PERMISSION_DENIED = 7; - /** - * The request does not have valid authentication credentials for the - * operation. - * HTTP Mapping: 401 Unauthorized - * - * Generated from protobuf enum UNAUTHENTICATED = 16; - */ - const UNAUTHENTICATED = 16; - /** - * Some resource has been exhausted, perhaps a per-user quota, or - * perhaps the entire file system is out of space. - * HTTP Mapping: 429 Too Many Requests - * - * Generated from protobuf enum RESOURCE_EXHAUSTED = 8; - */ - const RESOURCE_EXHAUSTED = 8; - /** - * The operation was rejected because the system is not in a state - * required for the operation's execution. For example, the directory - * to be deleted is non-empty, an rmdir operation is applied to - * a non-directory, etc. - * Service implementors can use the following guidelines to decide - * between `FAILED_PRECONDITION`, `ABORTED`, and `UNAVAILABLE`: - * (a) Use `UNAVAILABLE` if the client can retry just the failing call. - * (b) Use `ABORTED` if the client should retry at a higher level. For - * example, when a client-specified test-and-set fails, indicating the - * client should restart a read-modify-write sequence. - * (c) Use `FAILED_PRECONDITION` if the client should not retry until - * the system state has been explicitly fixed. For example, if an "rmdir" - * fails because the directory is non-empty, `FAILED_PRECONDITION` - * should be returned since the client should not retry unless - * the files are deleted from the directory. - * HTTP Mapping: 400 Bad Request - * - * Generated from protobuf enum FAILED_PRECONDITION = 9; - */ - const FAILED_PRECONDITION = 9; - /** - * The operation was aborted, typically due to a concurrency issue such as - * a sequencer check failure or transaction abort. - * See the guidelines above for deciding between `FAILED_PRECONDITION`, - * `ABORTED`, and `UNAVAILABLE`. - * HTTP Mapping: 409 Conflict - * - * Generated from protobuf enum ABORTED = 10; - */ - const ABORTED = 10; - /** - * The operation was attempted past the valid range. E.g., seeking or - * reading past end-of-file. - * Unlike `INVALID_ARGUMENT`, this error indicates a problem that may - * be fixed if the system state changes. For example, a 32-bit file - * system will generate `INVALID_ARGUMENT` if asked to read at an - * offset that is not in the range [0,2^32-1], but it will generate - * `OUT_OF_RANGE` if asked to read from an offset past the current - * file size. - * There is a fair bit of overlap between `FAILED_PRECONDITION` and - * `OUT_OF_RANGE`. We recommend using `OUT_OF_RANGE` (the more specific - * error) when it applies so that callers who are iterating through - * a space can easily look for an `OUT_OF_RANGE` error to detect when - * they are done. - * HTTP Mapping: 400 Bad Request - * - * Generated from protobuf enum OUT_OF_RANGE = 11; - */ - const OUT_OF_RANGE = 11; - /** - * The operation is not implemented or is not supported/enabled in this - * service. - * HTTP Mapping: 501 Not Implemented - * - * Generated from protobuf enum UNIMPLEMENTED = 12; - */ - const UNIMPLEMENTED = 12; - /** - * Internal errors. This means that some invariants expected by the - * underlying system have been broken. This error code is reserved - * for serious errors. - * HTTP Mapping: 500 Internal Server Error - * - * Generated from protobuf enum INTERNAL = 13; - */ - const INTERNAL = 13; - /** - * The service is currently unavailable. This is most likely a - * transient condition, which can be corrected by retrying with - * a backoff. Note that it is not always safe to retry - * non-idempotent operations. - * See the guidelines above for deciding between `FAILED_PRECONDITION`, - * `ABORTED`, and `UNAVAILABLE`. - * HTTP Mapping: 503 Service Unavailable - * - * Generated from protobuf enum UNAVAILABLE = 14; - */ - const UNAVAILABLE = 14; - /** - * Unrecoverable data loss or corruption. - * HTTP Mapping: 500 Internal Server Error - * - * Generated from protobuf enum DATA_LOSS = 15; - */ - const DATA_LOSS = 15; - - private static $valueToName = [ - self::OK => 'OK', - self::CANCELLED => 'CANCELLED', - self::UNKNOWN => 'UNKNOWN', - self::INVALID_ARGUMENT => 'INVALID_ARGUMENT', - self::DEADLINE_EXCEEDED => 'DEADLINE_EXCEEDED', - self::NOT_FOUND => 'NOT_FOUND', - self::ALREADY_EXISTS => 'ALREADY_EXISTS', - self::PERMISSION_DENIED => 'PERMISSION_DENIED', - self::UNAUTHENTICATED => 'UNAUTHENTICATED', - self::RESOURCE_EXHAUSTED => 'RESOURCE_EXHAUSTED', - self::FAILED_PRECONDITION => 'FAILED_PRECONDITION', - self::ABORTED => 'ABORTED', - self::OUT_OF_RANGE => 'OUT_OF_RANGE', - self::UNIMPLEMENTED => 'UNIMPLEMENTED', - self::INTERNAL => 'INTERNAL', - self::UNAVAILABLE => 'UNAVAILABLE', - self::DATA_LOSS => 'DATA_LOSS', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext.php deleted file mode 100644 index 59cb20720c8f..000000000000 --- a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext.php +++ /dev/null @@ -1,419 +0,0 @@ -google.rpc.context.AttributeContext - */ -class AttributeContext extends \Google\Protobuf\Internal\Message -{ - /** - * The origin of a network activity. In a multi hop network activity, - * the origin represents the sender of the first hop. For the first hop, - * the `source` and the `origin` must have the same content. - * - * Generated from protobuf field .google.rpc.context.AttributeContext.Peer origin = 7; - */ - protected $origin = null; - /** - * The source of a network activity, such as starting a TCP connection. - * In a multi hop network activity, the source represents the sender of the - * last hop. - * - * Generated from protobuf field .google.rpc.context.AttributeContext.Peer source = 1; - */ - protected $source = null; - /** - * The destination of a network activity, such as accepting a TCP connection. - * In a multi hop network activity, the destination represents the receiver of - * the last hop. - * - * Generated from protobuf field .google.rpc.context.AttributeContext.Peer destination = 2; - */ - protected $destination = null; - /** - * Represents a network request, such as an HTTP request. - * - * Generated from protobuf field .google.rpc.context.AttributeContext.Request request = 3; - */ - protected $request = null; - /** - * Represents a network response, such as an HTTP response. - * - * Generated from protobuf field .google.rpc.context.AttributeContext.Response response = 4; - */ - protected $response = null; - /** - * Represents a target resource that is involved with a network activity. - * If multiple resources are involved with an activity, this must be the - * primary one. - * - * Generated from protobuf field .google.rpc.context.AttributeContext.Resource resource = 5; - */ - protected $resource = null; - /** - * Represents an API operation that is involved to a network activity. - * - * Generated from protobuf field .google.rpc.context.AttributeContext.Api api = 6; - */ - protected $api = null; - /** - * Supports extensions for advanced use cases, such as logs and metrics. - * - * Generated from protobuf field repeated .google.protobuf.Any extensions = 8; - */ - private $extensions; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Rpc\Context\AttributeContext\Peer $origin - * The origin of a network activity. In a multi hop network activity, - * the origin represents the sender of the first hop. For the first hop, - * the `source` and the `origin` must have the same content. - * @type \Google\Rpc\Context\AttributeContext\Peer $source - * The source of a network activity, such as starting a TCP connection. - * In a multi hop network activity, the source represents the sender of the - * last hop. - * @type \Google\Rpc\Context\AttributeContext\Peer $destination - * The destination of a network activity, such as accepting a TCP connection. - * In a multi hop network activity, the destination represents the receiver of - * the last hop. - * @type \Google\Rpc\Context\AttributeContext\Request $request - * Represents a network request, such as an HTTP request. - * @type \Google\Rpc\Context\AttributeContext\Response $response - * Represents a network response, such as an HTTP response. - * @type \Google\Rpc\Context\AttributeContext\Resource $resource - * Represents a target resource that is involved with a network activity. - * If multiple resources are involved with an activity, this must be the - * primary one. - * @type \Google\Rpc\Context\AttributeContext\Api $api - * Represents an API operation that is involved to a network activity. - * @type \Google\Protobuf\Any[] $extensions - * Supports extensions for advanced use cases, such as logs and metrics. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Rpc\Context\AttributeContext::initOnce(); - parent::__construct($data); - } - - /** - * The origin of a network activity. In a multi hop network activity, - * the origin represents the sender of the first hop. For the first hop, - * the `source` and the `origin` must have the same content. - * - * Generated from protobuf field .google.rpc.context.AttributeContext.Peer origin = 7; - * @return \Google\Rpc\Context\AttributeContext\Peer|null - */ - public function getOrigin() - { - return $this->origin; - } - - public function hasOrigin() - { - return isset($this->origin); - } - - public function clearOrigin() - { - unset($this->origin); - } - - /** - * The origin of a network activity. In a multi hop network activity, - * the origin represents the sender of the first hop. For the first hop, - * the `source` and the `origin` must have the same content. - * - * Generated from protobuf field .google.rpc.context.AttributeContext.Peer origin = 7; - * @param \Google\Rpc\Context\AttributeContext\Peer $var - * @return $this - */ - public function setOrigin($var) - { - GPBUtil::checkMessage($var, \Google\Rpc\Context\AttributeContext\Peer::class); - $this->origin = $var; - - return $this; - } - - /** - * The source of a network activity, such as starting a TCP connection. - * In a multi hop network activity, the source represents the sender of the - * last hop. - * - * Generated from protobuf field .google.rpc.context.AttributeContext.Peer source = 1; - * @return \Google\Rpc\Context\AttributeContext\Peer|null - */ - public function getSource() - { - return $this->source; - } - - public function hasSource() - { - return isset($this->source); - } - - public function clearSource() - { - unset($this->source); - } - - /** - * The source of a network activity, such as starting a TCP connection. - * In a multi hop network activity, the source represents the sender of the - * last hop. - * - * Generated from protobuf field .google.rpc.context.AttributeContext.Peer source = 1; - * @param \Google\Rpc\Context\AttributeContext\Peer $var - * @return $this - */ - public function setSource($var) - { - GPBUtil::checkMessage($var, \Google\Rpc\Context\AttributeContext\Peer::class); - $this->source = $var; - - return $this; - } - - /** - * The destination of a network activity, such as accepting a TCP connection. - * In a multi hop network activity, the destination represents the receiver of - * the last hop. - * - * Generated from protobuf field .google.rpc.context.AttributeContext.Peer destination = 2; - * @return \Google\Rpc\Context\AttributeContext\Peer|null - */ - public function getDestination() - { - return $this->destination; - } - - public function hasDestination() - { - return isset($this->destination); - } - - public function clearDestination() - { - unset($this->destination); - } - - /** - * The destination of a network activity, such as accepting a TCP connection. - * In a multi hop network activity, the destination represents the receiver of - * the last hop. - * - * Generated from protobuf field .google.rpc.context.AttributeContext.Peer destination = 2; - * @param \Google\Rpc\Context\AttributeContext\Peer $var - * @return $this - */ - public function setDestination($var) - { - GPBUtil::checkMessage($var, \Google\Rpc\Context\AttributeContext\Peer::class); - $this->destination = $var; - - return $this; - } - - /** - * Represents a network request, such as an HTTP request. - * - * Generated from protobuf field .google.rpc.context.AttributeContext.Request request = 3; - * @return \Google\Rpc\Context\AttributeContext\Request|null - */ - public function getRequest() - { - return $this->request; - } - - public function hasRequest() - { - return isset($this->request); - } - - public function clearRequest() - { - unset($this->request); - } - - /** - * Represents a network request, such as an HTTP request. - * - * Generated from protobuf field .google.rpc.context.AttributeContext.Request request = 3; - * @param \Google\Rpc\Context\AttributeContext\Request $var - * @return $this - */ - public function setRequest($var) - { - GPBUtil::checkMessage($var, \Google\Rpc\Context\AttributeContext\Request::class); - $this->request = $var; - - return $this; - } - - /** - * Represents a network response, such as an HTTP response. - * - * Generated from protobuf field .google.rpc.context.AttributeContext.Response response = 4; - * @return \Google\Rpc\Context\AttributeContext\Response|null - */ - public function getResponse() - { - return $this->response; - } - - public function hasResponse() - { - return isset($this->response); - } - - public function clearResponse() - { - unset($this->response); - } - - /** - * Represents a network response, such as an HTTP response. - * - * Generated from protobuf field .google.rpc.context.AttributeContext.Response response = 4; - * @param \Google\Rpc\Context\AttributeContext\Response $var - * @return $this - */ - public function setResponse($var) - { - GPBUtil::checkMessage($var, \Google\Rpc\Context\AttributeContext\Response::class); - $this->response = $var; - - return $this; - } - - /** - * Represents a target resource that is involved with a network activity. - * If multiple resources are involved with an activity, this must be the - * primary one. - * - * Generated from protobuf field .google.rpc.context.AttributeContext.Resource resource = 5; - * @return \Google\Rpc\Context\AttributeContext\Resource|null - */ - public function getResource() - { - return $this->resource; - } - - public function hasResource() - { - return isset($this->resource); - } - - public function clearResource() - { - unset($this->resource); - } - - /** - * Represents a target resource that is involved with a network activity. - * If multiple resources are involved with an activity, this must be the - * primary one. - * - * Generated from protobuf field .google.rpc.context.AttributeContext.Resource resource = 5; - * @param \Google\Rpc\Context\AttributeContext\Resource $var - * @return $this - */ - public function setResource($var) - { - GPBUtil::checkMessage($var, \Google\Rpc\Context\AttributeContext\Resource::class); - $this->resource = $var; - - return $this; - } - - /** - * Represents an API operation that is involved to a network activity. - * - * Generated from protobuf field .google.rpc.context.AttributeContext.Api api = 6; - * @return \Google\Rpc\Context\AttributeContext\Api|null - */ - public function getApi() - { - return $this->api; - } - - public function hasApi() - { - return isset($this->api); - } - - public function clearApi() - { - unset($this->api); - } - - /** - * Represents an API operation that is involved to a network activity. - * - * Generated from protobuf field .google.rpc.context.AttributeContext.Api api = 6; - * @param \Google\Rpc\Context\AttributeContext\Api $var - * @return $this - */ - public function setApi($var) - { - GPBUtil::checkMessage($var, \Google\Rpc\Context\AttributeContext\Api::class); - $this->api = $var; - - return $this; - } - - /** - * Supports extensions for advanced use cases, such as logs and metrics. - * - * Generated from protobuf field repeated .google.protobuf.Any extensions = 8; - * @return RepeatedField<\Google\Protobuf\Any> - */ - public function getExtensions() - { - return $this->extensions; - } - - /** - * Supports extensions for advanced use cases, such as logs and metrics. - * - * Generated from protobuf field repeated .google.protobuf.Any extensions = 8; - * @param \Google\Protobuf\Any[] $var - * @return $this - */ - public function setExtensions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Any::class); - $this->extensions = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Api.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Api.php deleted file mode 100644 index 3f08a6e90ed9..000000000000 --- a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Api.php +++ /dev/null @@ -1,195 +0,0 @@ -google.rpc.context.AttributeContext.Api - */ -class Api extends \Google\Protobuf\Internal\Message -{ - /** - * The API service name. It is a logical identifier for a networked API, - * such as "pubsub.googleapis.com". The naming syntax depends on the - * API management system being used for handling the request. - * - * Generated from protobuf field string service = 1; - */ - protected $service = ''; - /** - * The API operation name. For gRPC requests, it is the fully qualified API - * method name, such as "google.pubsub.v1.Publisher.Publish". For OpenAPI - * requests, it is the `operationId`, such as "getPet". - * - * Generated from protobuf field string operation = 2; - */ - protected $operation = ''; - /** - * The API protocol used for sending the request, such as "http", "https", - * "grpc", or "internal". - * - * Generated from protobuf field string protocol = 3; - */ - protected $protocol = ''; - /** - * The API version associated with the API operation above, such as "v1" or - * "v1alpha1". - * - * Generated from protobuf field string version = 4; - */ - protected $version = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $service - * The API service name. It is a logical identifier for a networked API, - * such as "pubsub.googleapis.com". The naming syntax depends on the - * API management system being used for handling the request. - * @type string $operation - * The API operation name. For gRPC requests, it is the fully qualified API - * method name, such as "google.pubsub.v1.Publisher.Publish". For OpenAPI - * requests, it is the `operationId`, such as "getPet". - * @type string $protocol - * The API protocol used for sending the request, such as "http", "https", - * "grpc", or "internal". - * @type string $version - * The API version associated with the API operation above, such as "v1" or - * "v1alpha1". - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Rpc\Context\AttributeContext::initOnce(); - parent::__construct($data); - } - - /** - * The API service name. It is a logical identifier for a networked API, - * such as "pubsub.googleapis.com". The naming syntax depends on the - * API management system being used for handling the request. - * - * Generated from protobuf field string service = 1; - * @return string - */ - public function getService() - { - return $this->service; - } - - /** - * The API service name. It is a logical identifier for a networked API, - * such as "pubsub.googleapis.com". The naming syntax depends on the - * API management system being used for handling the request. - * - * Generated from protobuf field string service = 1; - * @param string $var - * @return $this - */ - public function setService($var) - { - GPBUtil::checkString($var, True); - $this->service = $var; - - return $this; - } - - /** - * The API operation name. For gRPC requests, it is the fully qualified API - * method name, such as "google.pubsub.v1.Publisher.Publish". For OpenAPI - * requests, it is the `operationId`, such as "getPet". - * - * Generated from protobuf field string operation = 2; - * @return string - */ - public function getOperation() - { - return $this->operation; - } - - /** - * The API operation name. For gRPC requests, it is the fully qualified API - * method name, such as "google.pubsub.v1.Publisher.Publish". For OpenAPI - * requests, it is the `operationId`, such as "getPet". - * - * Generated from protobuf field string operation = 2; - * @param string $var - * @return $this - */ - public function setOperation($var) - { - GPBUtil::checkString($var, True); - $this->operation = $var; - - return $this; - } - - /** - * The API protocol used for sending the request, such as "http", "https", - * "grpc", or "internal". - * - * Generated from protobuf field string protocol = 3; - * @return string - */ - public function getProtocol() - { - return $this->protocol; - } - - /** - * The API protocol used for sending the request, such as "http", "https", - * "grpc", or "internal". - * - * Generated from protobuf field string protocol = 3; - * @param string $var - * @return $this - */ - public function setProtocol($var) - { - GPBUtil::checkString($var, True); - $this->protocol = $var; - - return $this; - } - - /** - * The API version associated with the API operation above, such as "v1" or - * "v1alpha1". - * - * Generated from protobuf field string version = 4; - * @return string - */ - public function getVersion() - { - return $this->version; - } - - /** - * The API version associated with the API operation above, such as "v1" or - * "v1alpha1". - * - * Generated from protobuf field string version = 4; - * @param string $var - * @return $this - */ - public function setVersion($var) - { - GPBUtil::checkString($var, True); - $this->version = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Auth.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Auth.php deleted file mode 100644 index 07a824302c8d..000000000000 --- a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Auth.php +++ /dev/null @@ -1,355 +0,0 @@ -google.rpc.context.AttributeContext.Auth - */ -class Auth extends \Google\Protobuf\Internal\Message -{ - /** - * The authenticated principal. Reflects the issuer (`iss`) and subject - * (`sub`) claims within a JWT. The issuer and subject should be `/` - * delimited, with `/` percent-encoded within the subject fragment. For - * Google accounts, the principal format is: - * "https://accounts.google.com/{id}" - * - * Generated from protobuf field string principal = 1; - */ - protected $principal = ''; - /** - * The intended audience(s) for this authentication information. Reflects - * the audience (`aud`) claim within a JWT. The audience - * value(s) depends on the `issuer`, but typically include one or more of - * the following pieces of information: - * * The services intended to receive the credential. For example, - * ["https://pubsub.googleapis.com/", "https://storage.googleapis.com/"]. - * * A set of service-based scopes. For example, - * ["https://www.googleapis.com/auth/cloud-platform"]. - * * The client id of an app, such as the Firebase project id for JWTs - * from Firebase Auth. - * Consult the documentation for the credential issuer to determine the - * information provided. - * - * Generated from protobuf field repeated string audiences = 2; - */ - private $audiences; - /** - * The authorized presenter of the credential. Reflects the optional - * Authorized Presenter (`azp`) claim within a JWT or the - * OAuth client id. For example, a Google Cloud Platform client id looks - * as follows: "123456789012.apps.googleusercontent.com". - * - * Generated from protobuf field string presenter = 3; - */ - protected $presenter = ''; - /** - * Structured claims presented with the credential. JWTs include - * `{key: value}` pairs for standard and private claims. The following - * is a subset of the standard required and optional claims that would - * typically be presented for a Google-based JWT: - * {'iss': 'accounts.google.com', - * 'sub': '113289723416554971153', - * 'aud': ['123456789012', 'pubsub.googleapis.com'], - * 'azp': '123456789012.apps.googleusercontent.com', - * 'email': 'jsmith\@example.com', - * 'iat': 1353601026, - * 'exp': 1353604926} - * SAML assertions are similarly specified, but with an identity provider - * dependent structure. - * - * Generated from protobuf field .google.protobuf.Struct claims = 4; - */ - protected $claims = null; - /** - * A list of access level resource names that allow resources to be - * accessed by authenticated requester. It is part of Secure GCP processing - * for the incoming request. An access level string has the format: - * "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}" - * Example: - * "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL" - * - * Generated from protobuf field repeated string access_levels = 5; - */ - private $access_levels; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $principal - * The authenticated principal. Reflects the issuer (`iss`) and subject - * (`sub`) claims within a JWT. The issuer and subject should be `/` - * delimited, with `/` percent-encoded within the subject fragment. For - * Google accounts, the principal format is: - * "https://accounts.google.com/{id}" - * @type string[] $audiences - * The intended audience(s) for this authentication information. Reflects - * the audience (`aud`) claim within a JWT. The audience - * value(s) depends on the `issuer`, but typically include one or more of - * the following pieces of information: - * * The services intended to receive the credential. For example, - * ["https://pubsub.googleapis.com/", "https://storage.googleapis.com/"]. - * * A set of service-based scopes. For example, - * ["https://www.googleapis.com/auth/cloud-platform"]. - * * The client id of an app, such as the Firebase project id for JWTs - * from Firebase Auth. - * Consult the documentation for the credential issuer to determine the - * information provided. - * @type string $presenter - * The authorized presenter of the credential. Reflects the optional - * Authorized Presenter (`azp`) claim within a JWT or the - * OAuth client id. For example, a Google Cloud Platform client id looks - * as follows: "123456789012.apps.googleusercontent.com". - * @type \Google\Protobuf\Struct $claims - * Structured claims presented with the credential. JWTs include - * `{key: value}` pairs for standard and private claims. The following - * is a subset of the standard required and optional claims that would - * typically be presented for a Google-based JWT: - * {'iss': 'accounts.google.com', - * 'sub': '113289723416554971153', - * 'aud': ['123456789012', 'pubsub.googleapis.com'], - * 'azp': '123456789012.apps.googleusercontent.com', - * 'email': 'jsmith\@example.com', - * 'iat': 1353601026, - * 'exp': 1353604926} - * SAML assertions are similarly specified, but with an identity provider - * dependent structure. - * @type string[] $access_levels - * A list of access level resource names that allow resources to be - * accessed by authenticated requester. It is part of Secure GCP processing - * for the incoming request. An access level string has the format: - * "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}" - * Example: - * "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Rpc\Context\AttributeContext::initOnce(); - parent::__construct($data); - } - - /** - * The authenticated principal. Reflects the issuer (`iss`) and subject - * (`sub`) claims within a JWT. The issuer and subject should be `/` - * delimited, with `/` percent-encoded within the subject fragment. For - * Google accounts, the principal format is: - * "https://accounts.google.com/{id}" - * - * Generated from protobuf field string principal = 1; - * @return string - */ - public function getPrincipal() - { - return $this->principal; - } - - /** - * The authenticated principal. Reflects the issuer (`iss`) and subject - * (`sub`) claims within a JWT. The issuer and subject should be `/` - * delimited, with `/` percent-encoded within the subject fragment. For - * Google accounts, the principal format is: - * "https://accounts.google.com/{id}" - * - * Generated from protobuf field string principal = 1; - * @param string $var - * @return $this - */ - public function setPrincipal($var) - { - GPBUtil::checkString($var, True); - $this->principal = $var; - - return $this; - } - - /** - * The intended audience(s) for this authentication information. Reflects - * the audience (`aud`) claim within a JWT. The audience - * value(s) depends on the `issuer`, but typically include one or more of - * the following pieces of information: - * * The services intended to receive the credential. For example, - * ["https://pubsub.googleapis.com/", "https://storage.googleapis.com/"]. - * * A set of service-based scopes. For example, - * ["https://www.googleapis.com/auth/cloud-platform"]. - * * The client id of an app, such as the Firebase project id for JWTs - * from Firebase Auth. - * Consult the documentation for the credential issuer to determine the - * information provided. - * - * Generated from protobuf field repeated string audiences = 2; - * @return RepeatedField - */ - public function getAudiences() - { - return $this->audiences; - } - - /** - * The intended audience(s) for this authentication information. Reflects - * the audience (`aud`) claim within a JWT. The audience - * value(s) depends on the `issuer`, but typically include one or more of - * the following pieces of information: - * * The services intended to receive the credential. For example, - * ["https://pubsub.googleapis.com/", "https://storage.googleapis.com/"]. - * * A set of service-based scopes. For example, - * ["https://www.googleapis.com/auth/cloud-platform"]. - * * The client id of an app, such as the Firebase project id for JWTs - * from Firebase Auth. - * Consult the documentation for the credential issuer to determine the - * information provided. - * - * Generated from protobuf field repeated string audiences = 2; - * @param string[] $var - * @return $this - */ - public function setAudiences($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->audiences = $arr; - - return $this; - } - - /** - * The authorized presenter of the credential. Reflects the optional - * Authorized Presenter (`azp`) claim within a JWT or the - * OAuth client id. For example, a Google Cloud Platform client id looks - * as follows: "123456789012.apps.googleusercontent.com". - * - * Generated from protobuf field string presenter = 3; - * @return string - */ - public function getPresenter() - { - return $this->presenter; - } - - /** - * The authorized presenter of the credential. Reflects the optional - * Authorized Presenter (`azp`) claim within a JWT or the - * OAuth client id. For example, a Google Cloud Platform client id looks - * as follows: "123456789012.apps.googleusercontent.com". - * - * Generated from protobuf field string presenter = 3; - * @param string $var - * @return $this - */ - public function setPresenter($var) - { - GPBUtil::checkString($var, True); - $this->presenter = $var; - - return $this; - } - - /** - * Structured claims presented with the credential. JWTs include - * `{key: value}` pairs for standard and private claims. The following - * is a subset of the standard required and optional claims that would - * typically be presented for a Google-based JWT: - * {'iss': 'accounts.google.com', - * 'sub': '113289723416554971153', - * 'aud': ['123456789012', 'pubsub.googleapis.com'], - * 'azp': '123456789012.apps.googleusercontent.com', - * 'email': 'jsmith\@example.com', - * 'iat': 1353601026, - * 'exp': 1353604926} - * SAML assertions are similarly specified, but with an identity provider - * dependent structure. - * - * Generated from protobuf field .google.protobuf.Struct claims = 4; - * @return \Google\Protobuf\Struct|null - */ - public function getClaims() - { - return $this->claims; - } - - public function hasClaims() - { - return isset($this->claims); - } - - public function clearClaims() - { - unset($this->claims); - } - - /** - * Structured claims presented with the credential. JWTs include - * `{key: value}` pairs for standard and private claims. The following - * is a subset of the standard required and optional claims that would - * typically be presented for a Google-based JWT: - * {'iss': 'accounts.google.com', - * 'sub': '113289723416554971153', - * 'aud': ['123456789012', 'pubsub.googleapis.com'], - * 'azp': '123456789012.apps.googleusercontent.com', - * 'email': 'jsmith\@example.com', - * 'iat': 1353601026, - * 'exp': 1353604926} - * SAML assertions are similarly specified, but with an identity provider - * dependent structure. - * - * Generated from protobuf field .google.protobuf.Struct claims = 4; - * @param \Google\Protobuf\Struct $var - * @return $this - */ - public function setClaims($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Struct::class); - $this->claims = $var; - - return $this; - } - - /** - * A list of access level resource names that allow resources to be - * accessed by authenticated requester. It is part of Secure GCP processing - * for the incoming request. An access level string has the format: - * "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}" - * Example: - * "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL" - * - * Generated from protobuf field repeated string access_levels = 5; - * @return RepeatedField - */ - public function getAccessLevels() - { - return $this->access_levels; - } - - /** - * A list of access level resource names that allow resources to be - * accessed by authenticated requester. It is part of Secure GCP processing - * for the incoming request. An access level string has the format: - * "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}" - * Example: - * "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL" - * - * Generated from protobuf field repeated string access_levels = 5; - * @param string[] $var - * @return $this - */ - public function setAccessLevels($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->access_levels = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Peer.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Peer.php deleted file mode 100644 index 2433710547ca..000000000000 --- a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Peer.php +++ /dev/null @@ -1,222 +0,0 @@ -google.rpc.context.AttributeContext.Peer - */ -class Peer extends \Google\Protobuf\Internal\Message -{ - /** - * The IP address of the peer. - * - * Generated from protobuf field string ip = 1; - */ - protected $ip = ''; - /** - * The network port of the peer. - * - * Generated from protobuf field int64 port = 2; - */ - protected $port = 0; - /** - * The labels associated with the peer. - * - * Generated from protobuf field map labels = 6; - */ - private $labels; - /** - * The identity of this peer. Similar to `Request.auth.principal`, but - * relative to the peer instead of the request. For example, the - * identity associated with a load balancer that forwarded the request. - * - * Generated from protobuf field string principal = 7; - */ - protected $principal = ''; - /** - * The CLDR country/region code associated with the above IP address. - * If the IP address is private, the `region_code` should reflect the - * physical location where this peer is running. - * - * Generated from protobuf field string region_code = 8; - */ - protected $region_code = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $ip - * The IP address of the peer. - * @type int|string $port - * The network port of the peer. - * @type array|\Google\Protobuf\Internal\MapField $labels - * The labels associated with the peer. - * @type string $principal - * The identity of this peer. Similar to `Request.auth.principal`, but - * relative to the peer instead of the request. For example, the - * identity associated with a load balancer that forwarded the request. - * @type string $region_code - * The CLDR country/region code associated with the above IP address. - * If the IP address is private, the `region_code` should reflect the - * physical location where this peer is running. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Rpc\Context\AttributeContext::initOnce(); - parent::__construct($data); - } - - /** - * The IP address of the peer. - * - * Generated from protobuf field string ip = 1; - * @return string - */ - public function getIp() - { - return $this->ip; - } - - /** - * The IP address of the peer. - * - * Generated from protobuf field string ip = 1; - * @param string $var - * @return $this - */ - public function setIp($var) - { - GPBUtil::checkString($var, True); - $this->ip = $var; - - return $this; - } - - /** - * The network port of the peer. - * - * Generated from protobuf field int64 port = 2; - * @return int|string - */ - public function getPort() - { - return $this->port; - } - - /** - * The network port of the peer. - * - * Generated from protobuf field int64 port = 2; - * @param int|string $var - * @return $this - */ - public function setPort($var) - { - GPBUtil::checkInt64($var); - $this->port = $var; - - return $this; - } - - /** - * The labels associated with the peer. - * - * Generated from protobuf field map labels = 6; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * The labels associated with the peer. - * - * Generated from protobuf field map labels = 6; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - - /** - * The identity of this peer. Similar to `Request.auth.principal`, but - * relative to the peer instead of the request. For example, the - * identity associated with a load balancer that forwarded the request. - * - * Generated from protobuf field string principal = 7; - * @return string - */ - public function getPrincipal() - { - return $this->principal; - } - - /** - * The identity of this peer. Similar to `Request.auth.principal`, but - * relative to the peer instead of the request. For example, the - * identity associated with a load balancer that forwarded the request. - * - * Generated from protobuf field string principal = 7; - * @param string $var - * @return $this - */ - public function setPrincipal($var) - { - GPBUtil::checkString($var, True); - $this->principal = $var; - - return $this; - } - - /** - * The CLDR country/region code associated with the above IP address. - * If the IP address is private, the `region_code` should reflect the - * physical location where this peer is running. - * - * Generated from protobuf field string region_code = 8; - * @return string - */ - public function getRegionCode() - { - return $this->region_code; - } - - /** - * The CLDR country/region code associated with the above IP address. - * If the IP address is private, the `region_code` should reflect the - * physical location where this peer is running. - * - * Generated from protobuf field string region_code = 8; - * @param string $var - * @return $this - */ - public function setRegionCode($var) - { - GPBUtil::checkString($var, True); - $this->region_code = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Request.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Request.php deleted file mode 100644 index 9d0a1ed62e87..000000000000 --- a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Request.php +++ /dev/null @@ -1,507 +0,0 @@ -google.rpc.context.AttributeContext.Request - */ -class Request extends \Google\Protobuf\Internal\Message -{ - /** - * The unique ID for a request, which can be propagated to downstream - * systems. The ID should have low probability of collision - * within a single day for a specific service. - * - * Generated from protobuf field string id = 1; - */ - protected $id = ''; - /** - * The HTTP request method, such as `GET`, `POST`. - * - * Generated from protobuf field string method = 2; - */ - protected $method = ''; - /** - * The HTTP request headers. If multiple headers share the same key, they - * must be merged according to the HTTP spec. All header keys must be - * lowercased, because HTTP header keys are case-insensitive. - * - * Generated from protobuf field map headers = 3; - */ - private $headers; - /** - * The HTTP URL path, excluding the query parameters. - * - * Generated from protobuf field string path = 4; - */ - protected $path = ''; - /** - * The HTTP request `Host` header value. - * - * Generated from protobuf field string host = 5; - */ - protected $host = ''; - /** - * The HTTP URL scheme, such as `http` and `https`. - * - * Generated from protobuf field string scheme = 6; - */ - protected $scheme = ''; - /** - * The HTTP URL query in the format of `name1=value1&name2=value2`, as it - * appears in the first line of the HTTP request. No decoding is performed. - * - * Generated from protobuf field string query = 7; - */ - protected $query = ''; - /** - * The timestamp when the `destination` service receives the last byte of - * the request. - * - * Generated from protobuf field .google.protobuf.Timestamp time = 9; - */ - protected $time = null; - /** - * The HTTP request size in bytes. If unknown, it must be -1. - * - * Generated from protobuf field int64 size = 10; - */ - protected $size = 0; - /** - * The network protocol used with the request, such as "http/1.1", - * "spdy/3", "h2", "h2c", "webrtc", "tcp", "udp", "quic". See - * https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids - * for details. - * - * Generated from protobuf field string protocol = 11; - */ - protected $protocol = ''; - /** - * A special parameter for request reason. It is used by security systems - * to associate auditing information with a request. - * - * Generated from protobuf field string reason = 12; - */ - protected $reason = ''; - /** - * The request authentication. May be absent for unauthenticated requests. - * Derived from the HTTP request `Authorization` header or equivalent. - * - * Generated from protobuf field .google.rpc.context.AttributeContext.Auth auth = 13; - */ - protected $auth = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $id - * The unique ID for a request, which can be propagated to downstream - * systems. The ID should have low probability of collision - * within a single day for a specific service. - * @type string $method - * The HTTP request method, such as `GET`, `POST`. - * @type array|\Google\Protobuf\Internal\MapField $headers - * The HTTP request headers. If multiple headers share the same key, they - * must be merged according to the HTTP spec. All header keys must be - * lowercased, because HTTP header keys are case-insensitive. - * @type string $path - * The HTTP URL path, excluding the query parameters. - * @type string $host - * The HTTP request `Host` header value. - * @type string $scheme - * The HTTP URL scheme, such as `http` and `https`. - * @type string $query - * The HTTP URL query in the format of `name1=value1&name2=value2`, as it - * appears in the first line of the HTTP request. No decoding is performed. - * @type \Google\Protobuf\Timestamp $time - * The timestamp when the `destination` service receives the last byte of - * the request. - * @type int|string $size - * The HTTP request size in bytes. If unknown, it must be -1. - * @type string $protocol - * The network protocol used with the request, such as "http/1.1", - * "spdy/3", "h2", "h2c", "webrtc", "tcp", "udp", "quic". See - * https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids - * for details. - * @type string $reason - * A special parameter for request reason. It is used by security systems - * to associate auditing information with a request. - * @type \Google\Rpc\Context\AttributeContext\Auth $auth - * The request authentication. May be absent for unauthenticated requests. - * Derived from the HTTP request `Authorization` header or equivalent. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Rpc\Context\AttributeContext::initOnce(); - parent::__construct($data); - } - - /** - * The unique ID for a request, which can be propagated to downstream - * systems. The ID should have low probability of collision - * within a single day for a specific service. - * - * Generated from protobuf field string id = 1; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * The unique ID for a request, which can be propagated to downstream - * systems. The ID should have low probability of collision - * within a single day for a specific service. - * - * Generated from protobuf field string id = 1; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - - /** - * The HTTP request method, such as `GET`, `POST`. - * - * Generated from protobuf field string method = 2; - * @return string - */ - public function getMethod() - { - return $this->method; - } - - /** - * The HTTP request method, such as `GET`, `POST`. - * - * Generated from protobuf field string method = 2; - * @param string $var - * @return $this - */ - public function setMethod($var) - { - GPBUtil::checkString($var, True); - $this->method = $var; - - return $this; - } - - /** - * The HTTP request headers. If multiple headers share the same key, they - * must be merged according to the HTTP spec. All header keys must be - * lowercased, because HTTP header keys are case-insensitive. - * - * Generated from protobuf field map headers = 3; - * @return \Google\Protobuf\Internal\MapField - */ - public function getHeaders() - { - return $this->headers; - } - - /** - * The HTTP request headers. If multiple headers share the same key, they - * must be merged according to the HTTP spec. All header keys must be - * lowercased, because HTTP header keys are case-insensitive. - * - * Generated from protobuf field map headers = 3; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setHeaders($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->headers = $arr; - - return $this; - } - - /** - * The HTTP URL path, excluding the query parameters. - * - * Generated from protobuf field string path = 4; - * @return string - */ - public function getPath() - { - return $this->path; - } - - /** - * The HTTP URL path, excluding the query parameters. - * - * Generated from protobuf field string path = 4; - * @param string $var - * @return $this - */ - public function setPath($var) - { - GPBUtil::checkString($var, True); - $this->path = $var; - - return $this; - } - - /** - * The HTTP request `Host` header value. - * - * Generated from protobuf field string host = 5; - * @return string - */ - public function getHost() - { - return $this->host; - } - - /** - * The HTTP request `Host` header value. - * - * Generated from protobuf field string host = 5; - * @param string $var - * @return $this - */ - public function setHost($var) - { - GPBUtil::checkString($var, True); - $this->host = $var; - - return $this; - } - - /** - * The HTTP URL scheme, such as `http` and `https`. - * - * Generated from protobuf field string scheme = 6; - * @return string - */ - public function getScheme() - { - return $this->scheme; - } - - /** - * The HTTP URL scheme, such as `http` and `https`. - * - * Generated from protobuf field string scheme = 6; - * @param string $var - * @return $this - */ - public function setScheme($var) - { - GPBUtil::checkString($var, True); - $this->scheme = $var; - - return $this; - } - - /** - * The HTTP URL query in the format of `name1=value1&name2=value2`, as it - * appears in the first line of the HTTP request. No decoding is performed. - * - * Generated from protobuf field string query = 7; - * @return string - */ - public function getQuery() - { - return $this->query; - } - - /** - * The HTTP URL query in the format of `name1=value1&name2=value2`, as it - * appears in the first line of the HTTP request. No decoding is performed. - * - * Generated from protobuf field string query = 7; - * @param string $var - * @return $this - */ - public function setQuery($var) - { - GPBUtil::checkString($var, True); - $this->query = $var; - - return $this; - } - - /** - * The timestamp when the `destination` service receives the last byte of - * the request. - * - * Generated from protobuf field .google.protobuf.Timestamp time = 9; - * @return \Google\Protobuf\Timestamp|null - */ - public function getTime() - { - return $this->time; - } - - public function hasTime() - { - return isset($this->time); - } - - public function clearTime() - { - unset($this->time); - } - - /** - * The timestamp when the `destination` service receives the last byte of - * the request. - * - * Generated from protobuf field .google.protobuf.Timestamp time = 9; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->time = $var; - - return $this; - } - - /** - * The HTTP request size in bytes. If unknown, it must be -1. - * - * Generated from protobuf field int64 size = 10; - * @return int|string - */ - public function getSize() - { - return $this->size; - } - - /** - * The HTTP request size in bytes. If unknown, it must be -1. - * - * Generated from protobuf field int64 size = 10; - * @param int|string $var - * @return $this - */ - public function setSize($var) - { - GPBUtil::checkInt64($var); - $this->size = $var; - - return $this; - } - - /** - * The network protocol used with the request, such as "http/1.1", - * "spdy/3", "h2", "h2c", "webrtc", "tcp", "udp", "quic". See - * https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids - * for details. - * - * Generated from protobuf field string protocol = 11; - * @return string - */ - public function getProtocol() - { - return $this->protocol; - } - - /** - * The network protocol used with the request, such as "http/1.1", - * "spdy/3", "h2", "h2c", "webrtc", "tcp", "udp", "quic". See - * https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids - * for details. - * - * Generated from protobuf field string protocol = 11; - * @param string $var - * @return $this - */ - public function setProtocol($var) - { - GPBUtil::checkString($var, True); - $this->protocol = $var; - - return $this; - } - - /** - * A special parameter for request reason. It is used by security systems - * to associate auditing information with a request. - * - * Generated from protobuf field string reason = 12; - * @return string - */ - public function getReason() - { - return $this->reason; - } - - /** - * A special parameter for request reason. It is used by security systems - * to associate auditing information with a request. - * - * Generated from protobuf field string reason = 12; - * @param string $var - * @return $this - */ - public function setReason($var) - { - GPBUtil::checkString($var, True); - $this->reason = $var; - - return $this; - } - - /** - * The request authentication. May be absent for unauthenticated requests. - * Derived from the HTTP request `Authorization` header or equivalent. - * - * Generated from protobuf field .google.rpc.context.AttributeContext.Auth auth = 13; - * @return \Google\Rpc\Context\AttributeContext\Auth|null - */ - public function getAuth() - { - return $this->auth; - } - - public function hasAuth() - { - return isset($this->auth); - } - - public function clearAuth() - { - unset($this->auth); - } - - /** - * The request authentication. May be absent for unauthenticated requests. - * Derived from the HTTP request `Authorization` header or equivalent. - * - * Generated from protobuf field .google.rpc.context.AttributeContext.Auth auth = 13; - * @param \Google\Rpc\Context\AttributeContext\Auth $var - * @return $this - */ - public function setAuth($var) - { - GPBUtil::checkMessage($var, \Google\Rpc\Context\AttributeContext\Auth::class); - $this->auth = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Resource.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Resource.php deleted file mode 100644 index c35da3f54dfc..000000000000 --- a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Resource.php +++ /dev/null @@ -1,613 +0,0 @@ -google.rpc.context.AttributeContext.Resource - */ -class Resource extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the service that this resource belongs to, such as - * `pubsub.googleapis.com`. The service may be different from the DNS - * hostname that actually serves the request. - * - * Generated from protobuf field string service = 1; - */ - protected $service = ''; - /** - * The stable identifier (name) of a resource on the `service`. A resource - * can be logically identified as "//{resource.service}/{resource.name}". - * The differences between a resource name and a URI are: - * * Resource name is a logical identifier, independent of network - * protocol and API version. For example, - * `//pubsub.googleapis.com/projects/123/topics/news-feed`. - * * URI often includes protocol and version information, so it can - * be used directly by applications. For example, - * `https://pubsub.googleapis.com/v1/projects/123/topics/news-feed`. - * See https://cloud.google.com/apis/design/resource_names for details. - * - * Generated from protobuf field string name = 2; - */ - protected $name = ''; - /** - * The type of the resource. The syntax is platform-specific because - * different platforms define their resources differently. - * For Google APIs, the type format must be "{service}/{kind}", such as - * "pubsub.googleapis.com/Topic". - * - * Generated from protobuf field string type = 3; - */ - protected $type = ''; - /** - * The labels or tags on the resource, such as AWS resource tags and - * Kubernetes resource labels. - * - * Generated from protobuf field map labels = 4; - */ - private $labels; - /** - * The unique identifier of the resource. UID is unique in the time - * and space for this resource within the scope of the service. It is - * typically generated by the server on successful creation of a resource - * and must not be changed. UID is used to uniquely identify resources - * with resource name reuses. This should be a UUID4. - * - * Generated from protobuf field string uid = 5; - */ - protected $uid = ''; - /** - * Annotations is an unstructured key-value map stored with a resource that - * may be set by external tools to store and retrieve arbitrary metadata. - * They are not queryable and should be preserved when modifying objects. - * More info: - * https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/ - * - * Generated from protobuf field map annotations = 6; - */ - private $annotations; - /** - * Mutable. The display name set by clients. Must be <= 63 characters. - * - * Generated from protobuf field string display_name = 7; - */ - protected $display_name = ''; - /** - * Output only. The timestamp when the resource was created. This may - * be either the time creation was initiated or when it was completed. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 8; - */ - protected $create_time = null; - /** - * Output only. The timestamp when the resource was last updated. Any - * change to the resource made by users must refresh this value. - * Changes to a resource made by the service should refresh this value. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 9; - */ - protected $update_time = null; - /** - * Output only. The timestamp when the resource was deleted. - * If the resource is not deleted, this must be empty. - * - * Generated from protobuf field .google.protobuf.Timestamp delete_time = 10; - */ - protected $delete_time = null; - /** - * Output only. An opaque value that uniquely identifies a version or - * generation of a resource. It can be used to confirm that the client - * and server agree on the ordering of a resource being written. - * - * Generated from protobuf field string etag = 11; - */ - protected $etag = ''; - /** - * Immutable. The location of the resource. The location encoding is - * specific to the service provider, and new encoding may be introduced - * as the service evolves. - * For Google Cloud products, the encoding is what is used by Google Cloud - * APIs, such as `us-east1`, `aws-us-east-1`, and `azure-eastus2`. The - * semantics of `location` is identical to the - * `cloud.googleapis.com/location` label used by some Google Cloud APIs. - * - * Generated from protobuf field string location = 12; - */ - protected $location = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $service - * The name of the service that this resource belongs to, such as - * `pubsub.googleapis.com`. The service may be different from the DNS - * hostname that actually serves the request. - * @type string $name - * The stable identifier (name) of a resource on the `service`. A resource - * can be logically identified as "//{resource.service}/{resource.name}". - * The differences between a resource name and a URI are: - * * Resource name is a logical identifier, independent of network - * protocol and API version. For example, - * `//pubsub.googleapis.com/projects/123/topics/news-feed`. - * * URI often includes protocol and version information, so it can - * be used directly by applications. For example, - * `https://pubsub.googleapis.com/v1/projects/123/topics/news-feed`. - * See https://cloud.google.com/apis/design/resource_names for details. - * @type string $type - * The type of the resource. The syntax is platform-specific because - * different platforms define their resources differently. - * For Google APIs, the type format must be "{service}/{kind}", such as - * "pubsub.googleapis.com/Topic". - * @type array|\Google\Protobuf\Internal\MapField $labels - * The labels or tags on the resource, such as AWS resource tags and - * Kubernetes resource labels. - * @type string $uid - * The unique identifier of the resource. UID is unique in the time - * and space for this resource within the scope of the service. It is - * typically generated by the server on successful creation of a resource - * and must not be changed. UID is used to uniquely identify resources - * with resource name reuses. This should be a UUID4. - * @type array|\Google\Protobuf\Internal\MapField $annotations - * Annotations is an unstructured key-value map stored with a resource that - * may be set by external tools to store and retrieve arbitrary metadata. - * They are not queryable and should be preserved when modifying objects. - * More info: - * https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/ - * @type string $display_name - * Mutable. The display name set by clients. Must be <= 63 characters. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The timestamp when the resource was created. This may - * be either the time creation was initiated or when it was completed. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The timestamp when the resource was last updated. Any - * change to the resource made by users must refresh this value. - * Changes to a resource made by the service should refresh this value. - * @type \Google\Protobuf\Timestamp $delete_time - * Output only. The timestamp when the resource was deleted. - * If the resource is not deleted, this must be empty. - * @type string $etag - * Output only. An opaque value that uniquely identifies a version or - * generation of a resource. It can be used to confirm that the client - * and server agree on the ordering of a resource being written. - * @type string $location - * Immutable. The location of the resource. The location encoding is - * specific to the service provider, and new encoding may be introduced - * as the service evolves. - * For Google Cloud products, the encoding is what is used by Google Cloud - * APIs, such as `us-east1`, `aws-us-east-1`, and `azure-eastus2`. The - * semantics of `location` is identical to the - * `cloud.googleapis.com/location` label used by some Google Cloud APIs. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Rpc\Context\AttributeContext::initOnce(); - parent::__construct($data); - } - - /** - * The name of the service that this resource belongs to, such as - * `pubsub.googleapis.com`. The service may be different from the DNS - * hostname that actually serves the request. - * - * Generated from protobuf field string service = 1; - * @return string - */ - public function getService() - { - return $this->service; - } - - /** - * The name of the service that this resource belongs to, such as - * `pubsub.googleapis.com`. The service may be different from the DNS - * hostname that actually serves the request. - * - * Generated from protobuf field string service = 1; - * @param string $var - * @return $this - */ - public function setService($var) - { - GPBUtil::checkString($var, True); - $this->service = $var; - - return $this; - } - - /** - * The stable identifier (name) of a resource on the `service`. A resource - * can be logically identified as "//{resource.service}/{resource.name}". - * The differences between a resource name and a URI are: - * * Resource name is a logical identifier, independent of network - * protocol and API version. For example, - * `//pubsub.googleapis.com/projects/123/topics/news-feed`. - * * URI often includes protocol and version information, so it can - * be used directly by applications. For example, - * `https://pubsub.googleapis.com/v1/projects/123/topics/news-feed`. - * See https://cloud.google.com/apis/design/resource_names for details. - * - * Generated from protobuf field string name = 2; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The stable identifier (name) of a resource on the `service`. A resource - * can be logically identified as "//{resource.service}/{resource.name}". - * The differences between a resource name and a URI are: - * * Resource name is a logical identifier, independent of network - * protocol and API version. For example, - * `//pubsub.googleapis.com/projects/123/topics/news-feed`. - * * URI often includes protocol and version information, so it can - * be used directly by applications. For example, - * `https://pubsub.googleapis.com/v1/projects/123/topics/news-feed`. - * See https://cloud.google.com/apis/design/resource_names for details. - * - * Generated from protobuf field string name = 2; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The type of the resource. The syntax is platform-specific because - * different platforms define their resources differently. - * For Google APIs, the type format must be "{service}/{kind}", such as - * "pubsub.googleapis.com/Topic". - * - * Generated from protobuf field string type = 3; - * @return string - */ - public function getType() - { - return $this->type; - } - - /** - * The type of the resource. The syntax is platform-specific because - * different platforms define their resources differently. - * For Google APIs, the type format must be "{service}/{kind}", such as - * "pubsub.googleapis.com/Topic". - * - * Generated from protobuf field string type = 3; - * @param string $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkString($var, True); - $this->type = $var; - - return $this; - } - - /** - * The labels or tags on the resource, such as AWS resource tags and - * Kubernetes resource labels. - * - * Generated from protobuf field map labels = 4; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * The labels or tags on the resource, such as AWS resource tags and - * Kubernetes resource labels. - * - * Generated from protobuf field map labels = 4; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - - /** - * The unique identifier of the resource. UID is unique in the time - * and space for this resource within the scope of the service. It is - * typically generated by the server on successful creation of a resource - * and must not be changed. UID is used to uniquely identify resources - * with resource name reuses. This should be a UUID4. - * - * Generated from protobuf field string uid = 5; - * @return string - */ - public function getUid() - { - return $this->uid; - } - - /** - * The unique identifier of the resource. UID is unique in the time - * and space for this resource within the scope of the service. It is - * typically generated by the server on successful creation of a resource - * and must not be changed. UID is used to uniquely identify resources - * with resource name reuses. This should be a UUID4. - * - * Generated from protobuf field string uid = 5; - * @param string $var - * @return $this - */ - public function setUid($var) - { - GPBUtil::checkString($var, True); - $this->uid = $var; - - return $this; - } - - /** - * Annotations is an unstructured key-value map stored with a resource that - * may be set by external tools to store and retrieve arbitrary metadata. - * They are not queryable and should be preserved when modifying objects. - * More info: - * https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/ - * - * Generated from protobuf field map annotations = 6; - * @return \Google\Protobuf\Internal\MapField - */ - public function getAnnotations() - { - return $this->annotations; - } - - /** - * Annotations is an unstructured key-value map stored with a resource that - * may be set by external tools to store and retrieve arbitrary metadata. - * They are not queryable and should be preserved when modifying objects. - * More info: - * https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/ - * - * Generated from protobuf field map annotations = 6; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setAnnotations($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->annotations = $arr; - - return $this; - } - - /** - * Mutable. The display name set by clients. Must be <= 63 characters. - * - * Generated from protobuf field string display_name = 7; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Mutable. The display name set by clients. Must be <= 63 characters. - * - * Generated from protobuf field string display_name = 7; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Output only. The timestamp when the resource was created. This may - * be either the time creation was initiated or when it was completed. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 8; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. The timestamp when the resource was created. This may - * be either the time creation was initiated or when it was completed. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 8; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. The timestamp when the resource was last updated. Any - * change to the resource made by users must refresh this value. - * Changes to a resource made by the service should refresh this value. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 9; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. The timestamp when the resource was last updated. Any - * change to the resource made by users must refresh this value. - * Changes to a resource made by the service should refresh this value. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 9; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * Output only. The timestamp when the resource was deleted. - * If the resource is not deleted, this must be empty. - * - * Generated from protobuf field .google.protobuf.Timestamp delete_time = 10; - * @return \Google\Protobuf\Timestamp|null - */ - public function getDeleteTime() - { - return $this->delete_time; - } - - public function hasDeleteTime() - { - return isset($this->delete_time); - } - - public function clearDeleteTime() - { - unset($this->delete_time); - } - - /** - * Output only. The timestamp when the resource was deleted. - * If the resource is not deleted, this must be empty. - * - * Generated from protobuf field .google.protobuf.Timestamp delete_time = 10; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setDeleteTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->delete_time = $var; - - return $this; - } - - /** - * Output only. An opaque value that uniquely identifies a version or - * generation of a resource. It can be used to confirm that the client - * and server agree on the ordering of a resource being written. - * - * Generated from protobuf field string etag = 11; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * Output only. An opaque value that uniquely identifies a version or - * generation of a resource. It can be used to confirm that the client - * and server agree on the ordering of a resource being written. - * - * Generated from protobuf field string etag = 11; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - - /** - * Immutable. The location of the resource. The location encoding is - * specific to the service provider, and new encoding may be introduced - * as the service evolves. - * For Google Cloud products, the encoding is what is used by Google Cloud - * APIs, such as `us-east1`, `aws-us-east-1`, and `azure-eastus2`. The - * semantics of `location` is identical to the - * `cloud.googleapis.com/location` label used by some Google Cloud APIs. - * - * Generated from protobuf field string location = 12; - * @return string - */ - public function getLocation() - { - return $this->location; - } - - /** - * Immutable. The location of the resource. The location encoding is - * specific to the service provider, and new encoding may be introduced - * as the service evolves. - * For Google Cloud products, the encoding is what is used by Google Cloud - * APIs, such as `us-east1`, `aws-us-east-1`, and `azure-eastus2`. The - * semantics of `location` is identical to the - * `cloud.googleapis.com/location` label used by some Google Cloud APIs. - * - * Generated from protobuf field string location = 12; - * @param string $var - * @return $this - */ - public function setLocation($var) - { - GPBUtil::checkString($var, True); - $this->location = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Response.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Response.php deleted file mode 100644 index 1745b961a0dd..000000000000 --- a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AttributeContext/Response.php +++ /dev/null @@ -1,248 +0,0 @@ -google.rpc.context.AttributeContext.Response - */ -class Response extends \Google\Protobuf\Internal\Message -{ - /** - * The HTTP response status code, such as `200` and `404`. - * - * Generated from protobuf field int64 code = 1; - */ - protected $code = 0; - /** - * The HTTP response size in bytes. If unknown, it must be -1. - * - * Generated from protobuf field int64 size = 2; - */ - protected $size = 0; - /** - * The HTTP response headers. If multiple headers share the same key, they - * must be merged according to HTTP spec. All header keys must be - * lowercased, because HTTP header keys are case-insensitive. - * - * Generated from protobuf field map headers = 3; - */ - private $headers; - /** - * The timestamp when the `destination` service sends the last byte of - * the response. - * - * Generated from protobuf field .google.protobuf.Timestamp time = 4; - */ - protected $time = null; - /** - * The amount of time it takes the backend service to fully respond to a - * request. Measured from when the destination service starts to send the - * request to the backend until when the destination service receives the - * complete response from the backend. - * - * Generated from protobuf field .google.protobuf.Duration backend_latency = 5; - */ - protected $backend_latency = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $code - * The HTTP response status code, such as `200` and `404`. - * @type int|string $size - * The HTTP response size in bytes. If unknown, it must be -1. - * @type array|\Google\Protobuf\Internal\MapField $headers - * The HTTP response headers. If multiple headers share the same key, they - * must be merged according to HTTP spec. All header keys must be - * lowercased, because HTTP header keys are case-insensitive. - * @type \Google\Protobuf\Timestamp $time - * The timestamp when the `destination` service sends the last byte of - * the response. - * @type \Google\Protobuf\Duration $backend_latency - * The amount of time it takes the backend service to fully respond to a - * request. Measured from when the destination service starts to send the - * request to the backend until when the destination service receives the - * complete response from the backend. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Rpc\Context\AttributeContext::initOnce(); - parent::__construct($data); - } - - /** - * The HTTP response status code, such as `200` and `404`. - * - * Generated from protobuf field int64 code = 1; - * @return int|string - */ - public function getCode() - { - return $this->code; - } - - /** - * The HTTP response status code, such as `200` and `404`. - * - * Generated from protobuf field int64 code = 1; - * @param int|string $var - * @return $this - */ - public function setCode($var) - { - GPBUtil::checkInt64($var); - $this->code = $var; - - return $this; - } - - /** - * The HTTP response size in bytes. If unknown, it must be -1. - * - * Generated from protobuf field int64 size = 2; - * @return int|string - */ - public function getSize() - { - return $this->size; - } - - /** - * The HTTP response size in bytes. If unknown, it must be -1. - * - * Generated from protobuf field int64 size = 2; - * @param int|string $var - * @return $this - */ - public function setSize($var) - { - GPBUtil::checkInt64($var); - $this->size = $var; - - return $this; - } - - /** - * The HTTP response headers. If multiple headers share the same key, they - * must be merged according to HTTP spec. All header keys must be - * lowercased, because HTTP header keys are case-insensitive. - * - * Generated from protobuf field map headers = 3; - * @return \Google\Protobuf\Internal\MapField - */ - public function getHeaders() - { - return $this->headers; - } - - /** - * The HTTP response headers. If multiple headers share the same key, they - * must be merged according to HTTP spec. All header keys must be - * lowercased, because HTTP header keys are case-insensitive. - * - * Generated from protobuf field map headers = 3; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setHeaders($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->headers = $arr; - - return $this; - } - - /** - * The timestamp when the `destination` service sends the last byte of - * the response. - * - * Generated from protobuf field .google.protobuf.Timestamp time = 4; - * @return \Google\Protobuf\Timestamp|null - */ - public function getTime() - { - return $this->time; - } - - public function hasTime() - { - return isset($this->time); - } - - public function clearTime() - { - unset($this->time); - } - - /** - * The timestamp when the `destination` service sends the last byte of - * the response. - * - * Generated from protobuf field .google.protobuf.Timestamp time = 4; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->time = $var; - - return $this; - } - - /** - * The amount of time it takes the backend service to fully respond to a - * request. Measured from when the destination service starts to send the - * request to the backend until when the destination service receives the - * complete response from the backend. - * - * Generated from protobuf field .google.protobuf.Duration backend_latency = 5; - * @return \Google\Protobuf\Duration|null - */ - public function getBackendLatency() - { - return $this->backend_latency; - } - - public function hasBackendLatency() - { - return isset($this->backend_latency); - } - - public function clearBackendLatency() - { - unset($this->backend_latency); - } - - /** - * The amount of time it takes the backend service to fully respond to a - * request. Measured from when the destination service starts to send the - * request to the backend until when the destination service receives the - * complete response from the backend. - * - * Generated from protobuf field .google.protobuf.Duration backend_latency = 5; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setBackendLatency($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->backend_latency = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AuditContext.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AuditContext.php deleted file mode 100644 index f0acfa4f0859..000000000000 --- a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Context/AuditContext.php +++ /dev/null @@ -1,247 +0,0 @@ -google.rpc.context.AuditContext - */ -class AuditContext extends \Google\Protobuf\Internal\Message -{ - /** - * Serialized audit log. - * - * Generated from protobuf field bytes audit_log = 1; - */ - protected $audit_log = ''; - /** - * An API request message that is scrubbed based on the method annotation. - * This field should only be filled if audit_log field is present. - * Service Control will use this to assemble a complete log for Cloud Audit - * Logs and Google internal audit logs. - * - * Generated from protobuf field .google.protobuf.Struct scrubbed_request = 2; - */ - protected $scrubbed_request = null; - /** - * An API response message that is scrubbed based on the method annotation. - * This field should only be filled if audit_log field is present. - * Service Control will use this to assemble a complete log for Cloud Audit - * Logs and Google internal audit logs. - * - * Generated from protobuf field .google.protobuf.Struct scrubbed_response = 3; - */ - protected $scrubbed_response = null; - /** - * Number of scrubbed response items. - * - * Generated from protobuf field int32 scrubbed_response_item_count = 4; - */ - protected $scrubbed_response_item_count = 0; - /** - * Audit resource name which is scrubbed. - * - * Generated from protobuf field string target_resource = 5; - */ - protected $target_resource = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $audit_log - * Serialized audit log. - * @type \Google\Protobuf\Struct $scrubbed_request - * An API request message that is scrubbed based on the method annotation. - * This field should only be filled if audit_log field is present. - * Service Control will use this to assemble a complete log for Cloud Audit - * Logs and Google internal audit logs. - * @type \Google\Protobuf\Struct $scrubbed_response - * An API response message that is scrubbed based on the method annotation. - * This field should only be filled if audit_log field is present. - * Service Control will use this to assemble a complete log for Cloud Audit - * Logs and Google internal audit logs. - * @type int $scrubbed_response_item_count - * Number of scrubbed response items. - * @type string $target_resource - * Audit resource name which is scrubbed. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Rpc\Context\AuditContext::initOnce(); - parent::__construct($data); - } - - /** - * Serialized audit log. - * - * Generated from protobuf field bytes audit_log = 1; - * @return string - */ - public function getAuditLog() - { - return $this->audit_log; - } - - /** - * Serialized audit log. - * - * Generated from protobuf field bytes audit_log = 1; - * @param string $var - * @return $this - */ - public function setAuditLog($var) - { - GPBUtil::checkString($var, False); - $this->audit_log = $var; - - return $this; - } - - /** - * An API request message that is scrubbed based on the method annotation. - * This field should only be filled if audit_log field is present. - * Service Control will use this to assemble a complete log for Cloud Audit - * Logs and Google internal audit logs. - * - * Generated from protobuf field .google.protobuf.Struct scrubbed_request = 2; - * @return \Google\Protobuf\Struct|null - */ - public function getScrubbedRequest() - { - return $this->scrubbed_request; - } - - public function hasScrubbedRequest() - { - return isset($this->scrubbed_request); - } - - public function clearScrubbedRequest() - { - unset($this->scrubbed_request); - } - - /** - * An API request message that is scrubbed based on the method annotation. - * This field should only be filled if audit_log field is present. - * Service Control will use this to assemble a complete log for Cloud Audit - * Logs and Google internal audit logs. - * - * Generated from protobuf field .google.protobuf.Struct scrubbed_request = 2; - * @param \Google\Protobuf\Struct $var - * @return $this - */ - public function setScrubbedRequest($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Struct::class); - $this->scrubbed_request = $var; - - return $this; - } - - /** - * An API response message that is scrubbed based on the method annotation. - * This field should only be filled if audit_log field is present. - * Service Control will use this to assemble a complete log for Cloud Audit - * Logs and Google internal audit logs. - * - * Generated from protobuf field .google.protobuf.Struct scrubbed_response = 3; - * @return \Google\Protobuf\Struct|null - */ - public function getScrubbedResponse() - { - return $this->scrubbed_response; - } - - public function hasScrubbedResponse() - { - return isset($this->scrubbed_response); - } - - public function clearScrubbedResponse() - { - unset($this->scrubbed_response); - } - - /** - * An API response message that is scrubbed based on the method annotation. - * This field should only be filled if audit_log field is present. - * Service Control will use this to assemble a complete log for Cloud Audit - * Logs and Google internal audit logs. - * - * Generated from protobuf field .google.protobuf.Struct scrubbed_response = 3; - * @param \Google\Protobuf\Struct $var - * @return $this - */ - public function setScrubbedResponse($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Struct::class); - $this->scrubbed_response = $var; - - return $this; - } - - /** - * Number of scrubbed response items. - * - * Generated from protobuf field int32 scrubbed_response_item_count = 4; - * @return int - */ - public function getScrubbedResponseItemCount() - { - return $this->scrubbed_response_item_count; - } - - /** - * Number of scrubbed response items. - * - * Generated from protobuf field int32 scrubbed_response_item_count = 4; - * @param int $var - * @return $this - */ - public function setScrubbedResponseItemCount($var) - { - GPBUtil::checkInt32($var); - $this->scrubbed_response_item_count = $var; - - return $this; - } - - /** - * Audit resource name which is scrubbed. - * - * Generated from protobuf field string target_resource = 5; - * @return string - */ - public function getTargetResource() - { - return $this->target_resource; - } - - /** - * Audit resource name which is scrubbed. - * - * Generated from protobuf field string target_resource = 5; - * @param string $var - * @return $this - */ - public function setTargetResource($var) - { - GPBUtil::checkString($var, True); - $this->target_resource = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/DebugInfo.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/DebugInfo.php deleted file mode 100644 index 1474948034c0..000000000000 --- a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/DebugInfo.php +++ /dev/null @@ -1,101 +0,0 @@ -google.rpc.DebugInfo - */ -class DebugInfo extends \Google\Protobuf\Internal\Message -{ - /** - * The stack trace entries indicating where the error occurred. - * - * Generated from protobuf field repeated string stack_entries = 1; - */ - private $stack_entries; - /** - * Additional debugging information provided by the server. - * - * Generated from protobuf field string detail = 2; - */ - protected $detail = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string[] $stack_entries - * The stack trace entries indicating where the error occurred. - * @type string $detail - * Additional debugging information provided by the server. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Rpc\ErrorDetails::initOnce(); - parent::__construct($data); - } - - /** - * The stack trace entries indicating where the error occurred. - * - * Generated from protobuf field repeated string stack_entries = 1; - * @return RepeatedField - */ - public function getStackEntries() - { - return $this->stack_entries; - } - - /** - * The stack trace entries indicating where the error occurred. - * - * Generated from protobuf field repeated string stack_entries = 1; - * @param string[] $var - * @return $this - */ - public function setStackEntries($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->stack_entries = $arr; - - return $this; - } - - /** - * Additional debugging information provided by the server. - * - * Generated from protobuf field string detail = 2; - * @return string - */ - public function getDetail() - { - return $this->detail; - } - - /** - * Additional debugging information provided by the server. - * - * Generated from protobuf field string detail = 2; - * @param string $var - * @return $this - */ - public function setDetail($var) - { - GPBUtil::checkString($var, True); - $this->detail = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/ErrorInfo.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/ErrorInfo.php deleted file mode 100644 index 158c0be7387d..000000000000 --- a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/ErrorInfo.php +++ /dev/null @@ -1,217 +0,0 @@ -google.rpc.ErrorInfo - */ -class ErrorInfo extends \Google\Protobuf\Internal\Message -{ - /** - * The reason of the error. This is a constant value that identifies the - * proximate cause of the error. Error reasons are unique within a particular - * domain of errors. This should be at most 63 characters and match a - * regular expression of `[A-Z][A-Z0-9_]+[A-Z0-9]`, which represents - * UPPER_SNAKE_CASE. - * - * Generated from protobuf field string reason = 1; - */ - protected $reason = ''; - /** - * The logical grouping to which the "reason" belongs. The error domain - * is typically the registered service name of the tool or product that - * generates the error. Example: "pubsub.googleapis.com". If the error is - * generated by some common infrastructure, the error domain must be a - * globally unique value that identifies the infrastructure. For Google API - * infrastructure, the error domain is "googleapis.com". - * - * Generated from protobuf field string domain = 2; - */ - protected $domain = ''; - /** - * Additional structured details about this error. - * Keys must match a regular expression of `[a-z][a-zA-Z0-9-_]+` but should - * ideally be lowerCamelCase. Also, they must be limited to 64 characters in - * length. When identifying the current value of an exceeded limit, the units - * should be contained in the key, not the value. For example, rather than - * `{"instanceLimit": "100/request"}`, should be returned as, - * `{"instanceLimitPerRequest": "100"}`, if the client exceeds the number of - * instances that can be created in a single (batch) request. - * - * Generated from protobuf field map metadata = 3; - */ - private $metadata; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $reason - * The reason of the error. This is a constant value that identifies the - * proximate cause of the error. Error reasons are unique within a particular - * domain of errors. This should be at most 63 characters and match a - * regular expression of `[A-Z][A-Z0-9_]+[A-Z0-9]`, which represents - * UPPER_SNAKE_CASE. - * @type string $domain - * The logical grouping to which the "reason" belongs. The error domain - * is typically the registered service name of the tool or product that - * generates the error. Example: "pubsub.googleapis.com". If the error is - * generated by some common infrastructure, the error domain must be a - * globally unique value that identifies the infrastructure. For Google API - * infrastructure, the error domain is "googleapis.com". - * @type array|\Google\Protobuf\Internal\MapField $metadata - * Additional structured details about this error. - * Keys must match a regular expression of `[a-z][a-zA-Z0-9-_]+` but should - * ideally be lowerCamelCase. Also, they must be limited to 64 characters in - * length. When identifying the current value of an exceeded limit, the units - * should be contained in the key, not the value. For example, rather than - * `{"instanceLimit": "100/request"}`, should be returned as, - * `{"instanceLimitPerRequest": "100"}`, if the client exceeds the number of - * instances that can be created in a single (batch) request. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Rpc\ErrorDetails::initOnce(); - parent::__construct($data); - } - - /** - * The reason of the error. This is a constant value that identifies the - * proximate cause of the error. Error reasons are unique within a particular - * domain of errors. This should be at most 63 characters and match a - * regular expression of `[A-Z][A-Z0-9_]+[A-Z0-9]`, which represents - * UPPER_SNAKE_CASE. - * - * Generated from protobuf field string reason = 1; - * @return string - */ - public function getReason() - { - return $this->reason; - } - - /** - * The reason of the error. This is a constant value that identifies the - * proximate cause of the error. Error reasons are unique within a particular - * domain of errors. This should be at most 63 characters and match a - * regular expression of `[A-Z][A-Z0-9_]+[A-Z0-9]`, which represents - * UPPER_SNAKE_CASE. - * - * Generated from protobuf field string reason = 1; - * @param string $var - * @return $this - */ - public function setReason($var) - { - GPBUtil::checkString($var, True); - $this->reason = $var; - - return $this; - } - - /** - * The logical grouping to which the "reason" belongs. The error domain - * is typically the registered service name of the tool or product that - * generates the error. Example: "pubsub.googleapis.com". If the error is - * generated by some common infrastructure, the error domain must be a - * globally unique value that identifies the infrastructure. For Google API - * infrastructure, the error domain is "googleapis.com". - * - * Generated from protobuf field string domain = 2; - * @return string - */ - public function getDomain() - { - return $this->domain; - } - - /** - * The logical grouping to which the "reason" belongs. The error domain - * is typically the registered service name of the tool or product that - * generates the error. Example: "pubsub.googleapis.com". If the error is - * generated by some common infrastructure, the error domain must be a - * globally unique value that identifies the infrastructure. For Google API - * infrastructure, the error domain is "googleapis.com". - * - * Generated from protobuf field string domain = 2; - * @param string $var - * @return $this - */ - public function setDomain($var) - { - GPBUtil::checkString($var, True); - $this->domain = $var; - - return $this; - } - - /** - * Additional structured details about this error. - * Keys must match a regular expression of `[a-z][a-zA-Z0-9-_]+` but should - * ideally be lowerCamelCase. Also, they must be limited to 64 characters in - * length. When identifying the current value of an exceeded limit, the units - * should be contained in the key, not the value. For example, rather than - * `{"instanceLimit": "100/request"}`, should be returned as, - * `{"instanceLimitPerRequest": "100"}`, if the client exceeds the number of - * instances that can be created in a single (batch) request. - * - * Generated from protobuf field map metadata = 3; - * @return \Google\Protobuf\Internal\MapField - */ - public function getMetadata() - { - return $this->metadata; - } - - /** - * Additional structured details about this error. - * Keys must match a regular expression of `[a-z][a-zA-Z0-9-_]+` but should - * ideally be lowerCamelCase. Also, they must be limited to 64 characters in - * length. When identifying the current value of an exceeded limit, the units - * should be contained in the key, not the value. For example, rather than - * `{"instanceLimit": "100/request"}`, should be returned as, - * `{"instanceLimitPerRequest": "100"}`, if the client exceeds the number of - * instances that can be created in a single (batch) request. - * - * Generated from protobuf field map metadata = 3; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setMetadata($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->metadata = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Help.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Help.php deleted file mode 100644 index 35ea516f8e15..000000000000 --- a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Help.php +++ /dev/null @@ -1,70 +0,0 @@ -google.rpc.Help - */ -class Help extends \Google\Protobuf\Internal\Message -{ - /** - * URL(s) pointing to additional information on handling the current error. - * - * Generated from protobuf field repeated .google.rpc.Help.Link links = 1; - */ - private $links; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Rpc\Help\Link[] $links - * URL(s) pointing to additional information on handling the current error. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Rpc\ErrorDetails::initOnce(); - parent::__construct($data); - } - - /** - * URL(s) pointing to additional information on handling the current error. - * - * Generated from protobuf field repeated .google.rpc.Help.Link links = 1; - * @return RepeatedField<\Google\Rpc\Help\Link> - */ - public function getLinks() - { - return $this->links; - } - - /** - * URL(s) pointing to additional information on handling the current error. - * - * Generated from protobuf field repeated .google.rpc.Help.Link links = 1; - * @param \Google\Rpc\Help\Link[] $var - * @return $this - */ - public function setLinks($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Rpc\Help\Link::class); - $this->links = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Help/Link.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Help/Link.php deleted file mode 100644 index fcfe169359da..000000000000 --- a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Help/Link.php +++ /dev/null @@ -1,101 +0,0 @@ -google.rpc.Help.Link - */ -class Link extends \Google\Protobuf\Internal\Message -{ - /** - * Describes what the link offers. - * - * Generated from protobuf field string description = 1; - */ - protected $description = ''; - /** - * The URL of the link. - * - * Generated from protobuf field string url = 2; - */ - protected $url = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $description - * Describes what the link offers. - * @type string $url - * The URL of the link. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Rpc\ErrorDetails::initOnce(); - parent::__construct($data); - } - - /** - * Describes what the link offers. - * - * Generated from protobuf field string description = 1; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Describes what the link offers. - * - * Generated from protobuf field string description = 1; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * The URL of the link. - * - * Generated from protobuf field string url = 2; - * @return string - */ - public function getUrl() - { - return $this->url; - } - - /** - * The URL of the link. - * - * Generated from protobuf field string url = 2; - * @param string $var - * @return $this - */ - public function setUrl($var) - { - GPBUtil::checkString($var, True); - $this->url = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/LocalizedMessage.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/LocalizedMessage.php deleted file mode 100644 index 37fc07f3de28..000000000000 --- a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/LocalizedMessage.php +++ /dev/null @@ -1,110 +0,0 @@ -google.rpc.LocalizedMessage - */ -class LocalizedMessage extends \Google\Protobuf\Internal\Message -{ - /** - * The locale used following the specification defined at - * https://www.rfc-editor.org/rfc/bcp/bcp47.txt. - * Examples are: "en-US", "fr-CH", "es-MX" - * - * Generated from protobuf field string locale = 1; - */ - protected $locale = ''; - /** - * The localized error message in the above locale. - * - * Generated from protobuf field string message = 2; - */ - protected $message = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $locale - * The locale used following the specification defined at - * https://www.rfc-editor.org/rfc/bcp/bcp47.txt. - * Examples are: "en-US", "fr-CH", "es-MX" - * @type string $message - * The localized error message in the above locale. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Rpc\ErrorDetails::initOnce(); - parent::__construct($data); - } - - /** - * The locale used following the specification defined at - * https://www.rfc-editor.org/rfc/bcp/bcp47.txt. - * Examples are: "en-US", "fr-CH", "es-MX" - * - * Generated from protobuf field string locale = 1; - * @return string - */ - public function getLocale() - { - return $this->locale; - } - - /** - * The locale used following the specification defined at - * https://www.rfc-editor.org/rfc/bcp/bcp47.txt. - * Examples are: "en-US", "fr-CH", "es-MX" - * - * Generated from protobuf field string locale = 1; - * @param string $var - * @return $this - */ - public function setLocale($var) - { - GPBUtil::checkString($var, True); - $this->locale = $var; - - return $this; - } - - /** - * The localized error message in the above locale. - * - * Generated from protobuf field string message = 2; - * @return string - */ - public function getMessage() - { - return $this->message; - } - - /** - * The localized error message in the above locale. - * - * Generated from protobuf field string message = 2; - * @param string $var - * @return $this - */ - public function setMessage($var) - { - GPBUtil::checkString($var, True); - $this->message = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/PreconditionFailure.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/PreconditionFailure.php deleted file mode 100644 index 4ab7937f2645..000000000000 --- a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/PreconditionFailure.php +++ /dev/null @@ -1,70 +0,0 @@ -google.rpc.PreconditionFailure - */ -class PreconditionFailure extends \Google\Protobuf\Internal\Message -{ - /** - * Describes all precondition violations. - * - * Generated from protobuf field repeated .google.rpc.PreconditionFailure.Violation violations = 1; - */ - private $violations; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Rpc\PreconditionFailure\Violation[] $violations - * Describes all precondition violations. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Rpc\ErrorDetails::initOnce(); - parent::__construct($data); - } - - /** - * Describes all precondition violations. - * - * Generated from protobuf field repeated .google.rpc.PreconditionFailure.Violation violations = 1; - * @return RepeatedField<\Google\Rpc\PreconditionFailure\Violation> - */ - public function getViolations() - { - return $this->violations; - } - - /** - * Describes all precondition violations. - * - * Generated from protobuf field repeated .google.rpc.PreconditionFailure.Violation violations = 1; - * @param \Google\Rpc\PreconditionFailure\Violation[] $var - * @return $this - */ - public function setViolations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Rpc\PreconditionFailure\Violation::class); - $this->violations = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/PreconditionFailure/Violation.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/PreconditionFailure/Violation.php deleted file mode 100644 index 85aa5b103fca..000000000000 --- a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/PreconditionFailure/Violation.php +++ /dev/null @@ -1,159 +0,0 @@ -google.rpc.PreconditionFailure.Violation - */ -class Violation extends \Google\Protobuf\Internal\Message -{ - /** - * The type of PreconditionFailure. We recommend using a service-specific - * enum type to define the supported precondition violation subjects. For - * example, "TOS" for "Terms of Service violation". - * - * Generated from protobuf field string type = 1; - */ - protected $type = ''; - /** - * The subject, relative to the type, that failed. - * For example, "google.com/cloud" relative to the "TOS" type would indicate - * which terms of service is being referenced. - * - * Generated from protobuf field string subject = 2; - */ - protected $subject = ''; - /** - * A description of how the precondition failed. Developers can use this - * description to understand how to fix the failure. - * For example: "Terms of service not accepted". - * - * Generated from protobuf field string description = 3; - */ - protected $description = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $type - * The type of PreconditionFailure. We recommend using a service-specific - * enum type to define the supported precondition violation subjects. For - * example, "TOS" for "Terms of Service violation". - * @type string $subject - * The subject, relative to the type, that failed. - * For example, "google.com/cloud" relative to the "TOS" type would indicate - * which terms of service is being referenced. - * @type string $description - * A description of how the precondition failed. Developers can use this - * description to understand how to fix the failure. - * For example: "Terms of service not accepted". - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Rpc\ErrorDetails::initOnce(); - parent::__construct($data); - } - - /** - * The type of PreconditionFailure. We recommend using a service-specific - * enum type to define the supported precondition violation subjects. For - * example, "TOS" for "Terms of Service violation". - * - * Generated from protobuf field string type = 1; - * @return string - */ - public function getType() - { - return $this->type; - } - - /** - * The type of PreconditionFailure. We recommend using a service-specific - * enum type to define the supported precondition violation subjects. For - * example, "TOS" for "Terms of Service violation". - * - * Generated from protobuf field string type = 1; - * @param string $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkString($var, True); - $this->type = $var; - - return $this; - } - - /** - * The subject, relative to the type, that failed. - * For example, "google.com/cloud" relative to the "TOS" type would indicate - * which terms of service is being referenced. - * - * Generated from protobuf field string subject = 2; - * @return string - */ - public function getSubject() - { - return $this->subject; - } - - /** - * The subject, relative to the type, that failed. - * For example, "google.com/cloud" relative to the "TOS" type would indicate - * which terms of service is being referenced. - * - * Generated from protobuf field string subject = 2; - * @param string $var - * @return $this - */ - public function setSubject($var) - { - GPBUtil::checkString($var, True); - $this->subject = $var; - - return $this; - } - - /** - * A description of how the precondition failed. Developers can use this - * description to understand how to fix the failure. - * For example: "Terms of service not accepted". - * - * Generated from protobuf field string description = 3; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * A description of how the precondition failed. Developers can use this - * description to understand how to fix the failure. - * For example: "Terms of service not accepted". - * - * Generated from protobuf field string description = 3; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/QuotaFailure.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/QuotaFailure.php deleted file mode 100644 index 92b235c711a2..000000000000 --- a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/QuotaFailure.php +++ /dev/null @@ -1,75 +0,0 @@ -google.rpc.QuotaFailure - */ -class QuotaFailure extends \Google\Protobuf\Internal\Message -{ - /** - * Describes all quota violations. - * - * Generated from protobuf field repeated .google.rpc.QuotaFailure.Violation violations = 1; - */ - private $violations; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Rpc\QuotaFailure\Violation[] $violations - * Describes all quota violations. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Rpc\ErrorDetails::initOnce(); - parent::__construct($data); - } - - /** - * Describes all quota violations. - * - * Generated from protobuf field repeated .google.rpc.QuotaFailure.Violation violations = 1; - * @return RepeatedField<\Google\Rpc\QuotaFailure\Violation> - */ - public function getViolations() - { - return $this->violations; - } - - /** - * Describes all quota violations. - * - * Generated from protobuf field repeated .google.rpc.QuotaFailure.Violation violations = 1; - * @param \Google\Rpc\QuotaFailure\Violation[] $var - * @return $this - */ - public function setViolations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Rpc\QuotaFailure\Violation::class); - $this->violations = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/QuotaFailure/Violation.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/QuotaFailure/Violation.php deleted file mode 100644 index e4a1a705c92f..000000000000 --- a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/QuotaFailure/Violation.php +++ /dev/null @@ -1,500 +0,0 @@ -google.rpc.QuotaFailure.Violation - */ -class Violation extends \Google\Protobuf\Internal\Message -{ - /** - * The subject on which the quota check failed. - * For example, "clientip:" or "project:". - * - * Generated from protobuf field string subject = 1; - */ - protected $subject = ''; - /** - * A description of how the quota check failed. Clients can use this - * description to find more about the quota configuration in the service's - * public documentation, or find the relevant quota limit to adjust through - * developer console. - * For example: "Service disabled" or "Daily Limit for read operations - * exceeded". - * - * Generated from protobuf field string description = 2; - */ - protected $description = ''; - /** - * The API Service from which the `QuotaFailure.Violation` orginates. In - * some cases, Quota issues originate from an API Service other than the one - * that was called. In other words, a dependency of the called API Service - * could be the cause of the `QuotaFailure`, and this field would have the - * dependency API service name. - * For example, if the called API is Kubernetes Engine API - * (container.googleapis.com), and a quota violation occurs in the - * Kubernetes Engine API itself, this field would be - * "container.googleapis.com". On the other hand, if the quota violation - * occurs when the Kubernetes Engine API creates VMs in the Compute Engine - * API (compute.googleapis.com), this field would be - * "compute.googleapis.com". - * - * Generated from protobuf field string api_service = 3; - */ - protected $api_service = ''; - /** - * The metric of the violated quota. A quota metric is a named counter to - * measure usage, such as API requests or CPUs. When an activity occurs in a - * service, such as Virtual Machine allocation, one or more quota metrics - * may be affected. - * For example, "compute.googleapis.com/cpus_per_vm_family", - * "storage.googleapis.com/internet_egress_bandwidth". - * - * Generated from protobuf field string quota_metric = 4; - */ - protected $quota_metric = ''; - /** - * The id of the violated quota. Also know as "limit name", this is the - * unique identifier of a quota in the context of an API service. - * For example, "CPUS-PER-VM-FAMILY-per-project-region". - * - * Generated from protobuf field string quota_id = 5; - */ - protected $quota_id = ''; - /** - * The dimensions of the violated quota. Every non-global quota is enforced - * on a set of dimensions. While quota metric defines what to count, the - * dimensions specify for what aspects the counter should be increased. - * For example, the quota "CPUs per region per VM family" enforces a limit - * on the metric "compute.googleapis.com/cpus_per_vm_family" on dimensions - * "region" and "vm_family". And if the violation occurred in region - * "us-central1" and for VM family "n1", the quota_dimensions would be, - * { - * "region": "us-central1", - * "vm_family": "n1", - * } - * When a quota is enforced globally, the quota_dimensions would always be - * empty. - * - * Generated from protobuf field map quota_dimensions = 6; - */ - private $quota_dimensions; - /** - * The enforced quota value at the time of the `QuotaFailure`. - * For example, if the enforced quota value at the time of the - * `QuotaFailure` on the number of CPUs is "10", then the value of this - * field would reflect this quantity. - * - * Generated from protobuf field int64 quota_value = 7; - */ - protected $quota_value = 0; - /** - * The new quota value being rolled out at the time of the violation. At the - * completion of the rollout, this value will be enforced in place of - * quota_value. If no rollout is in progress at the time of the violation, - * this field is not set. - * For example, if at the time of the violation a rollout is in progress - * changing the number of CPUs quota from 10 to 20, 20 would be the value of - * this field. - * - * Generated from protobuf field optional int64 future_quota_value = 8; - */ - protected $future_quota_value = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $subject - * The subject on which the quota check failed. - * For example, "clientip:" or "project:". - * @type string $description - * A description of how the quota check failed. Clients can use this - * description to find more about the quota configuration in the service's - * public documentation, or find the relevant quota limit to adjust through - * developer console. - * For example: "Service disabled" or "Daily Limit for read operations - * exceeded". - * @type string $api_service - * The API Service from which the `QuotaFailure.Violation` orginates. In - * some cases, Quota issues originate from an API Service other than the one - * that was called. In other words, a dependency of the called API Service - * could be the cause of the `QuotaFailure`, and this field would have the - * dependency API service name. - * For example, if the called API is Kubernetes Engine API - * (container.googleapis.com), and a quota violation occurs in the - * Kubernetes Engine API itself, this field would be - * "container.googleapis.com". On the other hand, if the quota violation - * occurs when the Kubernetes Engine API creates VMs in the Compute Engine - * API (compute.googleapis.com), this field would be - * "compute.googleapis.com". - * @type string $quota_metric - * The metric of the violated quota. A quota metric is a named counter to - * measure usage, such as API requests or CPUs. When an activity occurs in a - * service, such as Virtual Machine allocation, one or more quota metrics - * may be affected. - * For example, "compute.googleapis.com/cpus_per_vm_family", - * "storage.googleapis.com/internet_egress_bandwidth". - * @type string $quota_id - * The id of the violated quota. Also know as "limit name", this is the - * unique identifier of a quota in the context of an API service. - * For example, "CPUS-PER-VM-FAMILY-per-project-region". - * @type array|\Google\Protobuf\Internal\MapField $quota_dimensions - * The dimensions of the violated quota. Every non-global quota is enforced - * on a set of dimensions. While quota metric defines what to count, the - * dimensions specify for what aspects the counter should be increased. - * For example, the quota "CPUs per region per VM family" enforces a limit - * on the metric "compute.googleapis.com/cpus_per_vm_family" on dimensions - * "region" and "vm_family". And if the violation occurred in region - * "us-central1" and for VM family "n1", the quota_dimensions would be, - * { - * "region": "us-central1", - * "vm_family": "n1", - * } - * When a quota is enforced globally, the quota_dimensions would always be - * empty. - * @type int|string $quota_value - * The enforced quota value at the time of the `QuotaFailure`. - * For example, if the enforced quota value at the time of the - * `QuotaFailure` on the number of CPUs is "10", then the value of this - * field would reflect this quantity. - * @type int|string $future_quota_value - * The new quota value being rolled out at the time of the violation. At the - * completion of the rollout, this value will be enforced in place of - * quota_value. If no rollout is in progress at the time of the violation, - * this field is not set. - * For example, if at the time of the violation a rollout is in progress - * changing the number of CPUs quota from 10 to 20, 20 would be the value of - * this field. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Rpc\ErrorDetails::initOnce(); - parent::__construct($data); - } - - /** - * The subject on which the quota check failed. - * For example, "clientip:" or "project:". - * - * Generated from protobuf field string subject = 1; - * @return string - */ - public function getSubject() - { - return $this->subject; - } - - /** - * The subject on which the quota check failed. - * For example, "clientip:" or "project:". - * - * Generated from protobuf field string subject = 1; - * @param string $var - * @return $this - */ - public function setSubject($var) - { - GPBUtil::checkString($var, True); - $this->subject = $var; - - return $this; - } - - /** - * A description of how the quota check failed. Clients can use this - * description to find more about the quota configuration in the service's - * public documentation, or find the relevant quota limit to adjust through - * developer console. - * For example: "Service disabled" or "Daily Limit for read operations - * exceeded". - * - * Generated from protobuf field string description = 2; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * A description of how the quota check failed. Clients can use this - * description to find more about the quota configuration in the service's - * public documentation, or find the relevant quota limit to adjust through - * developer console. - * For example: "Service disabled" or "Daily Limit for read operations - * exceeded". - * - * Generated from protobuf field string description = 2; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * The API Service from which the `QuotaFailure.Violation` orginates. In - * some cases, Quota issues originate from an API Service other than the one - * that was called. In other words, a dependency of the called API Service - * could be the cause of the `QuotaFailure`, and this field would have the - * dependency API service name. - * For example, if the called API is Kubernetes Engine API - * (container.googleapis.com), and a quota violation occurs in the - * Kubernetes Engine API itself, this field would be - * "container.googleapis.com". On the other hand, if the quota violation - * occurs when the Kubernetes Engine API creates VMs in the Compute Engine - * API (compute.googleapis.com), this field would be - * "compute.googleapis.com". - * - * Generated from protobuf field string api_service = 3; - * @return string - */ - public function getApiService() - { - return $this->api_service; - } - - /** - * The API Service from which the `QuotaFailure.Violation` orginates. In - * some cases, Quota issues originate from an API Service other than the one - * that was called. In other words, a dependency of the called API Service - * could be the cause of the `QuotaFailure`, and this field would have the - * dependency API service name. - * For example, if the called API is Kubernetes Engine API - * (container.googleapis.com), and a quota violation occurs in the - * Kubernetes Engine API itself, this field would be - * "container.googleapis.com". On the other hand, if the quota violation - * occurs when the Kubernetes Engine API creates VMs in the Compute Engine - * API (compute.googleapis.com), this field would be - * "compute.googleapis.com". - * - * Generated from protobuf field string api_service = 3; - * @param string $var - * @return $this - */ - public function setApiService($var) - { - GPBUtil::checkString($var, True); - $this->api_service = $var; - - return $this; - } - - /** - * The metric of the violated quota. A quota metric is a named counter to - * measure usage, such as API requests or CPUs. When an activity occurs in a - * service, such as Virtual Machine allocation, one or more quota metrics - * may be affected. - * For example, "compute.googleapis.com/cpus_per_vm_family", - * "storage.googleapis.com/internet_egress_bandwidth". - * - * Generated from protobuf field string quota_metric = 4; - * @return string - */ - public function getQuotaMetric() - { - return $this->quota_metric; - } - - /** - * The metric of the violated quota. A quota metric is a named counter to - * measure usage, such as API requests or CPUs. When an activity occurs in a - * service, such as Virtual Machine allocation, one or more quota metrics - * may be affected. - * For example, "compute.googleapis.com/cpus_per_vm_family", - * "storage.googleapis.com/internet_egress_bandwidth". - * - * Generated from protobuf field string quota_metric = 4; - * @param string $var - * @return $this - */ - public function setQuotaMetric($var) - { - GPBUtil::checkString($var, True); - $this->quota_metric = $var; - - return $this; - } - - /** - * The id of the violated quota. Also know as "limit name", this is the - * unique identifier of a quota in the context of an API service. - * For example, "CPUS-PER-VM-FAMILY-per-project-region". - * - * Generated from protobuf field string quota_id = 5; - * @return string - */ - public function getQuotaId() - { - return $this->quota_id; - } - - /** - * The id of the violated quota. Also know as "limit name", this is the - * unique identifier of a quota in the context of an API service. - * For example, "CPUS-PER-VM-FAMILY-per-project-region". - * - * Generated from protobuf field string quota_id = 5; - * @param string $var - * @return $this - */ - public function setQuotaId($var) - { - GPBUtil::checkString($var, True); - $this->quota_id = $var; - - return $this; - } - - /** - * The dimensions of the violated quota. Every non-global quota is enforced - * on a set of dimensions. While quota metric defines what to count, the - * dimensions specify for what aspects the counter should be increased. - * For example, the quota "CPUs per region per VM family" enforces a limit - * on the metric "compute.googleapis.com/cpus_per_vm_family" on dimensions - * "region" and "vm_family". And if the violation occurred in region - * "us-central1" and for VM family "n1", the quota_dimensions would be, - * { - * "region": "us-central1", - * "vm_family": "n1", - * } - * When a quota is enforced globally, the quota_dimensions would always be - * empty. - * - * Generated from protobuf field map quota_dimensions = 6; - * @return \Google\Protobuf\Internal\MapField - */ - public function getQuotaDimensions() - { - return $this->quota_dimensions; - } - - /** - * The dimensions of the violated quota. Every non-global quota is enforced - * on a set of dimensions. While quota metric defines what to count, the - * dimensions specify for what aspects the counter should be increased. - * For example, the quota "CPUs per region per VM family" enforces a limit - * on the metric "compute.googleapis.com/cpus_per_vm_family" on dimensions - * "region" and "vm_family". And if the violation occurred in region - * "us-central1" and for VM family "n1", the quota_dimensions would be, - * { - * "region": "us-central1", - * "vm_family": "n1", - * } - * When a quota is enforced globally, the quota_dimensions would always be - * empty. - * - * Generated from protobuf field map quota_dimensions = 6; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setQuotaDimensions($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->quota_dimensions = $arr; - - return $this; - } - - /** - * The enforced quota value at the time of the `QuotaFailure`. - * For example, if the enforced quota value at the time of the - * `QuotaFailure` on the number of CPUs is "10", then the value of this - * field would reflect this quantity. - * - * Generated from protobuf field int64 quota_value = 7; - * @return int|string - */ - public function getQuotaValue() - { - return $this->quota_value; - } - - /** - * The enforced quota value at the time of the `QuotaFailure`. - * For example, if the enforced quota value at the time of the - * `QuotaFailure` on the number of CPUs is "10", then the value of this - * field would reflect this quantity. - * - * Generated from protobuf field int64 quota_value = 7; - * @param int|string $var - * @return $this - */ - public function setQuotaValue($var) - { - GPBUtil::checkInt64($var); - $this->quota_value = $var; - - return $this; - } - - /** - * The new quota value being rolled out at the time of the violation. At the - * completion of the rollout, this value will be enforced in place of - * quota_value. If no rollout is in progress at the time of the violation, - * this field is not set. - * For example, if at the time of the violation a rollout is in progress - * changing the number of CPUs quota from 10 to 20, 20 would be the value of - * this field. - * - * Generated from protobuf field optional int64 future_quota_value = 8; - * @return int|string - */ - public function getFutureQuotaValue() - { - return isset($this->future_quota_value) ? $this->future_quota_value : 0; - } - - public function hasFutureQuotaValue() - { - return isset($this->future_quota_value); - } - - public function clearFutureQuotaValue() - { - unset($this->future_quota_value); - } - - /** - * The new quota value being rolled out at the time of the violation. At the - * completion of the rollout, this value will be enforced in place of - * quota_value. If no rollout is in progress at the time of the violation, - * this field is not set. - * For example, if at the time of the violation a rollout is in progress - * changing the number of CPUs quota from 10 to 20, 20 would be the value of - * this field. - * - * Generated from protobuf field optional int64 future_quota_value = 8; - * @param int|string $var - * @return $this - */ - public function setFutureQuotaValue($var) - { - GPBUtil::checkInt64($var); - $this->future_quota_value = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/RequestInfo.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/RequestInfo.php deleted file mode 100644 index 04952a12129f..000000000000 --- a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/RequestInfo.php +++ /dev/null @@ -1,110 +0,0 @@ -google.rpc.RequestInfo - */ -class RequestInfo extends \Google\Protobuf\Internal\Message -{ - /** - * An opaque string that should only be interpreted by the service generating - * it. For example, it can be used to identify requests in the service's logs. - * - * Generated from protobuf field string request_id = 1; - */ - protected $request_id = ''; - /** - * Any data that was used to serve this request. For example, an encrypted - * stack trace that can be sent back to the service provider for debugging. - * - * Generated from protobuf field string serving_data = 2; - */ - protected $serving_data = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $request_id - * An opaque string that should only be interpreted by the service generating - * it. For example, it can be used to identify requests in the service's logs. - * @type string $serving_data - * Any data that was used to serve this request. For example, an encrypted - * stack trace that can be sent back to the service provider for debugging. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Rpc\ErrorDetails::initOnce(); - parent::__construct($data); - } - - /** - * An opaque string that should only be interpreted by the service generating - * it. For example, it can be used to identify requests in the service's logs. - * - * Generated from protobuf field string request_id = 1; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * An opaque string that should only be interpreted by the service generating - * it. For example, it can be used to identify requests in the service's logs. - * - * Generated from protobuf field string request_id = 1; - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - - /** - * Any data that was used to serve this request. For example, an encrypted - * stack trace that can be sent back to the service provider for debugging. - * - * Generated from protobuf field string serving_data = 2; - * @return string - */ - public function getServingData() - { - return $this->serving_data; - } - - /** - * Any data that was used to serve this request. For example, an encrypted - * stack trace that can be sent back to the service provider for debugging. - * - * Generated from protobuf field string serving_data = 2; - * @param string $var - * @return $this - */ - public function setServingData($var) - { - GPBUtil::checkString($var, True); - $this->serving_data = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/ResourceInfo.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/ResourceInfo.php deleted file mode 100644 index 223b5cd01471..000000000000 --- a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/ResourceInfo.php +++ /dev/null @@ -1,205 +0,0 @@ -google.rpc.ResourceInfo - */ -class ResourceInfo extends \Google\Protobuf\Internal\Message -{ - /** - * A name for the type of resource being accessed, e.g. "sql table", - * "cloud storage bucket", "file", "Google calendar"; or the type URL - * of the resource: e.g. "type.googleapis.com/google.pubsub.v1.Topic". - * - * Generated from protobuf field string resource_type = 1; - */ - protected $resource_type = ''; - /** - * The name of the resource being accessed. For example, a shared calendar - * name: "example.com_4fghdhgsrgh\@group.calendar.google.com", if the current - * error is - * [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED]. - * - * Generated from protobuf field string resource_name = 2; - */ - protected $resource_name = ''; - /** - * The owner of the resource (optional). - * For example, "user:" or "project:". - * - * Generated from protobuf field string owner = 3; - */ - protected $owner = ''; - /** - * Describes what error is encountered when accessing this resource. - * For example, updating a cloud project may require the `writer` permission - * on the developer console project. - * - * Generated from protobuf field string description = 4; - */ - protected $description = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $resource_type - * A name for the type of resource being accessed, e.g. "sql table", - * "cloud storage bucket", "file", "Google calendar"; or the type URL - * of the resource: e.g. "type.googleapis.com/google.pubsub.v1.Topic". - * @type string $resource_name - * The name of the resource being accessed. For example, a shared calendar - * name: "example.com_4fghdhgsrgh\@group.calendar.google.com", if the current - * error is - * [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED]. - * @type string $owner - * The owner of the resource (optional). - * For example, "user:" or "project:". - * @type string $description - * Describes what error is encountered when accessing this resource. - * For example, updating a cloud project may require the `writer` permission - * on the developer console project. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Rpc\ErrorDetails::initOnce(); - parent::__construct($data); - } - - /** - * A name for the type of resource being accessed, e.g. "sql table", - * "cloud storage bucket", "file", "Google calendar"; or the type URL - * of the resource: e.g. "type.googleapis.com/google.pubsub.v1.Topic". - * - * Generated from protobuf field string resource_type = 1; - * @return string - */ - public function getResourceType() - { - return $this->resource_type; - } - - /** - * A name for the type of resource being accessed, e.g. "sql table", - * "cloud storage bucket", "file", "Google calendar"; or the type URL - * of the resource: e.g. "type.googleapis.com/google.pubsub.v1.Topic". - * - * Generated from protobuf field string resource_type = 1; - * @param string $var - * @return $this - */ - public function setResourceType($var) - { - GPBUtil::checkString($var, True); - $this->resource_type = $var; - - return $this; - } - - /** - * The name of the resource being accessed. For example, a shared calendar - * name: "example.com_4fghdhgsrgh\@group.calendar.google.com", if the current - * error is - * [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED]. - * - * Generated from protobuf field string resource_name = 2; - * @return string - */ - public function getResourceName() - { - return $this->resource_name; - } - - /** - * The name of the resource being accessed. For example, a shared calendar - * name: "example.com_4fghdhgsrgh\@group.calendar.google.com", if the current - * error is - * [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED]. - * - * Generated from protobuf field string resource_name = 2; - * @param string $var - * @return $this - */ - public function setResourceName($var) - { - GPBUtil::checkString($var, True); - $this->resource_name = $var; - - return $this; - } - - /** - * The owner of the resource (optional). - * For example, "user:" or "project:". - * - * Generated from protobuf field string owner = 3; - * @return string - */ - public function getOwner() - { - return $this->owner; - } - - /** - * The owner of the resource (optional). - * For example, "user:" or "project:". - * - * Generated from protobuf field string owner = 3; - * @param string $var - * @return $this - */ - public function setOwner($var) - { - GPBUtil::checkString($var, True); - $this->owner = $var; - - return $this; - } - - /** - * Describes what error is encountered when accessing this resource. - * For example, updating a cloud project may require the `writer` permission - * on the developer console project. - * - * Generated from protobuf field string description = 4; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Describes what error is encountered when accessing this resource. - * For example, updating a cloud project may require the `writer` permission - * on the developer console project. - * - * Generated from protobuf field string description = 4; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/RetryInfo.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/RetryInfo.php deleted file mode 100644 index b661f080aa61..000000000000 --- a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/RetryInfo.php +++ /dev/null @@ -1,87 +0,0 @@ -google.rpc.RetryInfo - */ -class RetryInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Clients should wait at least this long between retrying the same request. - * - * Generated from protobuf field .google.protobuf.Duration retry_delay = 1; - */ - protected $retry_delay = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Duration $retry_delay - * Clients should wait at least this long between retrying the same request. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Rpc\ErrorDetails::initOnce(); - parent::__construct($data); - } - - /** - * Clients should wait at least this long between retrying the same request. - * - * Generated from protobuf field .google.protobuf.Duration retry_delay = 1; - * @return \Google\Protobuf\Duration|null - */ - public function getRetryDelay() - { - return $this->retry_delay; - } - - public function hasRetryDelay() - { - return isset($this->retry_delay); - } - - public function clearRetryDelay() - { - unset($this->retry_delay); - } - - /** - * Clients should wait at least this long between retrying the same request. - * - * Generated from protobuf field .google.protobuf.Duration retry_delay = 1; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setRetryDelay($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->retry_delay = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Status.php b/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Status.php deleted file mode 100644 index 73d4800c42ab..000000000000 --- a/owl-bot-staging/CommonProtos/rpc/proto/src/Google/Rpc/Status.php +++ /dev/null @@ -1,160 +0,0 @@ -google.rpc.Status - */ -class Status extends \Google\Protobuf\Internal\Message -{ - /** - * The status code, which should be an enum value of - * [google.rpc.Code][google.rpc.Code]. - * - * Generated from protobuf field int32 code = 1; - */ - protected $code = 0; - /** - * A developer-facing error message, which should be in English. Any - * user-facing error message should be localized and sent in the - * [google.rpc.Status.details][google.rpc.Status.details] field, or localized - * by the client. - * - * Generated from protobuf field string message = 2; - */ - protected $message = ''; - /** - * A list of messages that carry the error details. There is a common set of - * message types for APIs to use. - * - * Generated from protobuf field repeated .google.protobuf.Any details = 3; - */ - private $details; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $code - * The status code, which should be an enum value of - * [google.rpc.Code][google.rpc.Code]. - * @type string $message - * A developer-facing error message, which should be in English. Any - * user-facing error message should be localized and sent in the - * [google.rpc.Status.details][google.rpc.Status.details] field, or localized - * by the client. - * @type \Google\Protobuf\Any[] $details - * A list of messages that carry the error details. There is a common set of - * message types for APIs to use. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Rpc\Status::initOnce(); - parent::__construct($data); - } - - /** - * The status code, which should be an enum value of - * [google.rpc.Code][google.rpc.Code]. - * - * Generated from protobuf field int32 code = 1; - * @return int - */ - public function getCode() - { - return $this->code; - } - - /** - * The status code, which should be an enum value of - * [google.rpc.Code][google.rpc.Code]. - * - * Generated from protobuf field int32 code = 1; - * @param int $var - * @return $this - */ - public function setCode($var) - { - GPBUtil::checkInt32($var); - $this->code = $var; - - return $this; - } - - /** - * A developer-facing error message, which should be in English. Any - * user-facing error message should be localized and sent in the - * [google.rpc.Status.details][google.rpc.Status.details] field, or localized - * by the client. - * - * Generated from protobuf field string message = 2; - * @return string - */ - public function getMessage() - { - return $this->message; - } - - /** - * A developer-facing error message, which should be in English. Any - * user-facing error message should be localized and sent in the - * [google.rpc.Status.details][google.rpc.Status.details] field, or localized - * by the client. - * - * Generated from protobuf field string message = 2; - * @param string $var - * @return $this - */ - public function setMessage($var) - { - GPBUtil::checkString($var, True); - $this->message = $var; - - return $this; - } - - /** - * A list of messages that carry the error details. There is a common set of - * message types for APIs to use. - * - * Generated from protobuf field repeated .google.protobuf.Any details = 3; - * @return RepeatedField<\Google\Protobuf\Any> - */ - public function getDetails() - { - return $this->details; - } - - /** - * A list of messages that carry the error details. There is a common set of - * message types for APIs to use. - * - * Generated from protobuf field repeated .google.protobuf.Any details = 3; - * @param \Google\Protobuf\Any[] $var - * @return $this - */ - public function setDetails($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Any::class); - $this->details = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/CalendarPeriod.php b/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/CalendarPeriod.php deleted file mode 100644 index ab089774437f..000000000000 --- a/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/CalendarPeriod.php +++ /dev/null @@ -1,24 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xB3\x02\x0A!google/type/calendar_period.proto\x12\x0Bgoogle.type*\x7F\x0A\x0ECalendarPeriod\x12\x1F\x0A\x1BCALENDAR_PERIOD_UNSPECIFIED\x10\x00\x12\x07\x0A\x03DAY\x10\x01\x12\x08\x0A\x04WEEK\x10\x02\x12\x0D\x0A\x09FORTNIGHT\x10\x03\x12\x09\x0A\x05MONTH\x10\x04\x12\x0B\x0A\x07QUARTER\x10\x05\x12\x08\x0A\x04HALF\x10\x06\x12\x08\x0A\x04YEAR\x10\x07Bx\x0A\x0Fcom.google.typeB\x13CalendarPeriodProtoP\x01ZHgoogle.golang.org/genproto/googleapis/type/calendarperiod;calendarperiod\xA2\x02\x03GTPb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Color.php b/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Color.php deleted file mode 100644 index 939b31ee6872..000000000000 --- a/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Color.php +++ /dev/null @@ -1,25 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xEC\x01\x0A\x17google/type/color.proto\x12\x0Bgoogle.type\"]\x0A\x05Color\x12\x0B\x0A\x03red\x18\x01 \x01(\x02\x12\x0D\x0A\x05green\x18\x02 \x01(\x02\x12\x0C\x0A\x04blue\x18\x03 \x01(\x02\x12*\x0A\x05alpha\x18\x04 \x01(\x0B2\x1B.google.protobuf.FloatValueB]\x0A\x0Fcom.google.typeB\x0AColorProtoP\x01Z6google.golang.org/genproto/googleapis/type/color;color\xA2\x02\x03GTPb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Date.php b/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Date.php deleted file mode 100644 index 9713a2270f37..000000000000 --- a/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Date.php +++ /dev/null @@ -1,24 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xBB\x01\x0A\x16google/type/date.proto\x12\x0Bgoogle.type\"0\x0A\x04Date\x12\x0C\x0A\x04year\x18\x01 \x01(\x05\x12\x0D\x0A\x05month\x18\x02 \x01(\x05\x12\x0B\x0A\x03day\x18\x03 \x01(\x05BZ\x0A\x0Fcom.google.typeB\x09DateProtoP\x01Z4google.golang.org/genproto/googleapis/type/date;date\xA2\x02\x03GTPb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Datetime.php b/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Datetime.php deleted file mode 100644 index 60c0063cbd1e..000000000000 --- a/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Datetime.php +++ /dev/null @@ -1,25 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xA5\x03\x0A\x1Agoogle/type/datetime.proto\x12\x0Bgoogle.type\"\xE0\x01\x0A\x08DateTime\x12\x0C\x0A\x04year\x18\x01 \x01(\x05\x12\x0D\x0A\x05month\x18\x02 \x01(\x05\x12\x0B\x0A\x03day\x18\x03 \x01(\x05\x12\x0D\x0A\x05hours\x18\x04 \x01(\x05\x12\x0F\x0A\x07minutes\x18\x05 \x01(\x05\x12\x0F\x0A\x07seconds\x18\x06 \x01(\x05\x12\x0D\x0A\x05nanos\x18\x07 \x01(\x05\x12/\x0A\x0Autc_offset\x18\x08 \x01(\x0B2\x19.google.protobuf.DurationH\x00\x12*\x0A\x09time_zone\x18\x09 \x01(\x0B2\x15.google.type.TimeZoneH\x00B\x0D\x0A\x0Btime_offset\"'\x0A\x08TimeZone\x12\x0A\x0A\x02id\x18\x01 \x01(\x09\x12\x0F\x0A\x07version\x18\x02 \x01(\x09Bf\x0A\x0Fcom.google.typeB\x0DDateTimeProtoP\x01ZinternalAddGeneratedFile( - "\x0A\xA4\x02\x0A\x1Bgoogle/type/dayofweek.proto\x12\x0Bgoogle.type*\x84\x01\x0A\x09DayOfWeek\x12\x1B\x0A\x17DAY_OF_WEEK_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06MONDAY\x10\x01\x12\x0B\x0A\x07TUESDAY\x10\x02\x12\x0D\x0A\x09WEDNESDAY\x10\x03\x12\x0C\x0A\x08THURSDAY\x10\x04\x12\x0A\x0A\x06FRIDAY\x10\x05\x12\x0C\x0A\x08SATURDAY\x10\x06\x12\x0A\x0A\x06SUNDAY\x10\x07Bi\x0A\x0Fcom.google.typeB\x0EDayOfWeekProtoP\x01Z>google.golang.org/genproto/googleapis/type/dayofweek;dayofweek\xA2\x02\x03GTPb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Decimal.php b/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Decimal.php deleted file mode 100644 index 05978c28b141..000000000000 --- a/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Decimal.php +++ /dev/null @@ -1,24 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xAF\x01\x0A\x19google/type/decimal.proto\x12\x0Bgoogle.type\"\x18\x0A\x07Decimal\x12\x0D\x0A\x05value\x18\x01 \x01(\x09Bc\x0A\x0Fcom.google.typeB\x0CDecimalProtoP\x01Z:google.golang.org/genproto/googleapis/type/decimal;decimal\xA2\x02\x03GTPb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Expr.php b/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Expr.php deleted file mode 100644 index 3c97d0abd6e7..000000000000 --- a/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Expr.php +++ /dev/null @@ -1,24 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xDB\x01\x0A\x16google/type/expr.proto\x12\x0Bgoogle.type\"P\x0A\x04Expr\x12\x12\x0A\x0Aexpression\x18\x01 \x01(\x09\x12\x0D\x0A\x05title\x18\x02 \x01(\x09\x12\x13\x0A\x0Bdescription\x18\x03 \x01(\x09\x12\x10\x0A\x08location\x18\x04 \x01(\x09BZ\x0A\x0Fcom.google.typeB\x09ExprProtoP\x01Z4google.golang.org/genproto/googleapis/type/expr;expr\xA2\x02\x03GTPb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Fraction.php b/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Fraction.php deleted file mode 100644 index 425f834380fd..000000000000 --- a/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Fraction.php +++ /dev/null @@ -1,24 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xCD\x01\x0A\x1Agoogle/type/fraction.proto\x12\x0Bgoogle.type\"2\x0A\x08Fraction\x12\x11\x0A\x09numerator\x18\x01 \x01(\x03\x12\x13\x0A\x0Bdenominator\x18\x02 \x01(\x03Bf\x0A\x0Fcom.google.typeB\x0DFractionProtoP\x01ZinternalAddGeneratedFile( - "\x0A\x83\x02\x0A\x1Agoogle/type/interval.proto\x12\x0Bgoogle.type\"h\x0A\x08Interval\x12.\x0A\x0Astart_time\x18\x01 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12,\x0A\x08end_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.TimestampBf\x0A\x0Fcom.google.typeB\x0DIntervalProtoP\x01ZinternalAddGeneratedFile( - "\x0A\xC0\x01\x0A\x18google/type/latlng.proto\x12\x0Bgoogle.type\"-\x0A\x06LatLng\x12\x10\x0A\x08latitude\x18\x01 \x01(\x01\x12\x11\x0A\x09longitude\x18\x02 \x01(\x01B`\x0A\x0Fcom.google.typeB\x0BLatLngProtoP\x01Z8google.golang.org/genproto/googleapis/type/latlng;latlng\xA2\x02\x03GTPb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/LocalizedText.php b/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/LocalizedText.php deleted file mode 100644 index a96beba449b3..000000000000 --- a/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/LocalizedText.php +++ /dev/null @@ -1,24 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xE6\x01\x0A google/type/localized_text.proto\x12\x0Bgoogle.type\"4\x0A\x0DLocalizedText\x12\x0C\x0A\x04text\x18\x01 \x01(\x09\x12\x15\x0A\x0Dlanguage_code\x18\x02 \x01(\x09Bw\x0A\x0Fcom.google.typeB\x12LocalizedTextProtoP\x01ZHgoogle.golang.org/genproto/googleapis/type/localized_text;localized_text\xA2\x02\x03GTPb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Money.php b/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Money.php deleted file mode 100644 index 8a06499dace4..000000000000 --- a/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Money.php +++ /dev/null @@ -1,24 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xCB\x01\x0A\x17google/type/money.proto\x12\x0Bgoogle.type\"<\x0A\x05Money\x12\x15\x0A\x0Dcurrency_code\x18\x01 \x01(\x09\x12\x0D\x0A\x05units\x18\x02 \x01(\x03\x12\x0D\x0A\x05nanos\x18\x03 \x01(\x05B]\x0A\x0Fcom.google.typeB\x0AMoneyProtoP\x01Z6google.golang.org/genproto/googleapis/type/money;money\xA2\x02\x03GTPb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Month.php b/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Month.php deleted file mode 100644 index b634e51780aa..000000000000 --- a/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Month.php +++ /dev/null @@ -1,24 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xC0\x02\x0A\x17google/type/month.proto\x12\x0Bgoogle.type*\xB0\x01\x0A\x05Month\x12\x15\x0A\x11MONTH_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07JANUARY\x10\x01\x12\x0C\x0A\x08FEBRUARY\x10\x02\x12\x09\x0A\x05MARCH\x10\x03\x12\x09\x0A\x05APRIL\x10\x04\x12\x07\x0A\x03MAY\x10\x05\x12\x08\x0A\x04JUNE\x10\x06\x12\x08\x0A\x04JULY\x10\x07\x12\x0A\x0A\x06AUGUST\x10\x08\x12\x0D\x0A\x09SEPTEMBER\x10\x09\x12\x0B\x0A\x07OCTOBER\x10\x0A\x12\x0C\x0A\x08NOVEMBER\x10\x0B\x12\x0C\x0A\x08DECEMBER\x10\x0CB]\x0A\x0Fcom.google.typeB\x0AMonthProtoP\x01Z6google.golang.org/genproto/googleapis/type/month;month\xA2\x02\x03GTPb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/PhoneNumber.php b/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/PhoneNumber.php deleted file mode 100644 index 2c3bcb80745d..000000000000 --- a/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/PhoneNumber.php +++ /dev/null @@ -1,24 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xD6\x02\x0A\x1Egoogle/type/phone_number.proto\x12\x0Bgoogle.type\"\xAB\x01\x0A\x0BPhoneNumber\x12\x15\x0A\x0Be164_number\x18\x01 \x01(\x09H\x00\x128\x0A\x0Ashort_code\x18\x02 \x01(\x0B2\".google.type.PhoneNumber.ShortCodeH\x00\x12\x11\x0A\x09extension\x18\x03 \x01(\x09\x1A0\x0A\x09ShortCode\x12\x13\x0A\x0Bregion_code\x18\x01 \x01(\x09\x12\x0E\x0A\x06number\x18\x02 \x01(\x09B\x06\x0A\x04kindBq\x0A\x0Fcom.google.typeB\x10PhoneNumberProtoP\x01ZDgoogle.golang.org/genproto/googleapis/type/phone_number;phone_number\xA2\x02\x03GTPb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/PostalAddress.php b/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/PostalAddress.php deleted file mode 100644 index ecbf07694b64..000000000000 --- a/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/PostalAddress.php +++ /dev/null @@ -1,24 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xAE\x03\x0A google/type/postal_address.proto\x12\x0Bgoogle.type\"\xFD\x01\x0A\x0DPostalAddress\x12\x10\x0A\x08revision\x18\x01 \x01(\x05\x12\x13\x0A\x0Bregion_code\x18\x02 \x01(\x09\x12\x15\x0A\x0Dlanguage_code\x18\x03 \x01(\x09\x12\x13\x0A\x0Bpostal_code\x18\x04 \x01(\x09\x12\x14\x0A\x0Csorting_code\x18\x05 \x01(\x09\x12\x1B\x0A\x13administrative_area\x18\x06 \x01(\x09\x12\x10\x0A\x08locality\x18\x07 \x01(\x09\x12\x13\x0A\x0Bsublocality\x18\x08 \x01(\x09\x12\x15\x0A\x0Daddress_lines\x18\x09 \x03(\x09\x12\x12\x0A\x0Arecipients\x18\x0A \x03(\x09\x12\x14\x0A\x0Corganization\x18\x0B \x01(\x09Bu\x0A\x0Fcom.google.typeB\x12PostalAddressProtoP\x01ZFgoogle.golang.org/genproto/googleapis/type/postaladdress;postaladdress\xA2\x02\x03GTPb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Quaternion.php b/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Quaternion.php deleted file mode 100644 index ba38da693c32..000000000000 --- a/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Quaternion.php +++ /dev/null @@ -1,24 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xDB\x01\x0A\x1Cgoogle/type/quaternion.proto\x12\x0Bgoogle.type\"8\x0A\x0AQuaternion\x12\x09\x0A\x01x\x18\x01 \x01(\x01\x12\x09\x0A\x01y\x18\x02 \x01(\x01\x12\x09\x0A\x01z\x18\x03 \x01(\x01\x12\x09\x0A\x01w\x18\x04 \x01(\x01Bl\x0A\x0Fcom.google.typeB\x0FQuaternionProtoP\x01Z@google.golang.org/genproto/googleapis/type/quaternion;quaternion\xA2\x02\x03GTPb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Timeofday.php b/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Timeofday.php deleted file mode 100644 index bc407c485071..000000000000 --- a/owl-bot-staging/CommonProtos/type/proto/src/GPBMetadata/Google/Type/Timeofday.php +++ /dev/null @@ -1,24 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xEA\x01\x0A\x1Bgoogle/type/timeofday.proto\x12\x0Bgoogle.type\"K\x0A\x09TimeOfDay\x12\x0D\x0A\x05hours\x18\x01 \x01(\x05\x12\x0F\x0A\x07minutes\x18\x02 \x01(\x05\x12\x0F\x0A\x07seconds\x18\x03 \x01(\x05\x12\x0D\x0A\x05nanos\x18\x04 \x01(\x05Bi\x0A\x0Fcom.google.typeB\x0ETimeOfDayProtoP\x01Z>google.golang.org/genproto/googleapis/type/timeofday;timeofday\xA2\x02\x03GTPb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/CalendarPeriod.php b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/CalendarPeriod.php deleted file mode 100644 index e4807c07959b..000000000000 --- a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/CalendarPeriod.php +++ /dev/null @@ -1,102 +0,0 @@ -google.type.CalendarPeriod - */ -class CalendarPeriod -{ - /** - * Undefined period, raises an error. - * - * Generated from protobuf enum CALENDAR_PERIOD_UNSPECIFIED = 0; - */ - const CALENDAR_PERIOD_UNSPECIFIED = 0; - /** - * A day. - * - * Generated from protobuf enum DAY = 1; - */ - const DAY = 1; - /** - * A week. Weeks begin on Monday, following - * [ISO 8601](https://en.wikipedia.org/wiki/ISO_week_date). - * - * Generated from protobuf enum WEEK = 2; - */ - const WEEK = 2; - /** - * A fortnight. The first calendar fortnight of the year begins at the start - * of week 1 according to - * [ISO 8601](https://en.wikipedia.org/wiki/ISO_week_date). - * - * Generated from protobuf enum FORTNIGHT = 3; - */ - const FORTNIGHT = 3; - /** - * A month. - * - * Generated from protobuf enum MONTH = 4; - */ - const MONTH = 4; - /** - * A quarter. Quarters start on dates 1-Jan, 1-Apr, 1-Jul, and 1-Oct of each - * year. - * - * Generated from protobuf enum QUARTER = 5; - */ - const QUARTER = 5; - /** - * A half-year. Half-years start on dates 1-Jan and 1-Jul. - * - * Generated from protobuf enum HALF = 6; - */ - const HALF = 6; - /** - * A year. - * - * Generated from protobuf enum YEAR = 7; - */ - const YEAR = 7; - - private static $valueToName = [ - self::CALENDAR_PERIOD_UNSPECIFIED => 'CALENDAR_PERIOD_UNSPECIFIED', - self::DAY => 'DAY', - self::WEEK => 'WEEK', - self::FORTNIGHT => 'FORTNIGHT', - self::MONTH => 'MONTH', - self::QUARTER => 'QUARTER', - self::HALF => 'HALF', - self::YEAR => 'YEAR', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Color.php b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Color.php deleted file mode 100644 index ae4a591a3057..000000000000 --- a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Color.php +++ /dev/null @@ -1,360 +0,0 @@ -google.type.Color - */ -class Color extends \Google\Protobuf\Internal\Message -{ - /** - * The amount of red in the color as a value in the interval [0, 1]. - * - * Generated from protobuf field float red = 1; - */ - protected $red = 0.0; - /** - * The amount of green in the color as a value in the interval [0, 1]. - * - * Generated from protobuf field float green = 2; - */ - protected $green = 0.0; - /** - * The amount of blue in the color as a value in the interval [0, 1]. - * - * Generated from protobuf field float blue = 3; - */ - protected $blue = 0.0; - /** - * The fraction of this color that should be applied to the pixel. That is, - * the final pixel color is defined by the equation: - * `pixel color = alpha * (this color) + (1.0 - alpha) * (background color)` - * This means that a value of 1.0 corresponds to a solid color, whereas - * a value of 0.0 corresponds to a completely transparent color. This - * uses a wrapper message rather than a simple float scalar so that it is - * possible to distinguish between a default value and the value being unset. - * If omitted, this color object is rendered as a solid color - * (as if the alpha value had been explicitly given a value of 1.0). - * - * Generated from protobuf field .google.protobuf.FloatValue alpha = 4; - */ - protected $alpha = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type float $red - * The amount of red in the color as a value in the interval [0, 1]. - * @type float $green - * The amount of green in the color as a value in the interval [0, 1]. - * @type float $blue - * The amount of blue in the color as a value in the interval [0, 1]. - * @type \Google\Protobuf\FloatValue $alpha - * The fraction of this color that should be applied to the pixel. That is, - * the final pixel color is defined by the equation: - * `pixel color = alpha * (this color) + (1.0 - alpha) * (background color)` - * This means that a value of 1.0 corresponds to a solid color, whereas - * a value of 0.0 corresponds to a completely transparent color. This - * uses a wrapper message rather than a simple float scalar so that it is - * possible to distinguish between a default value and the value being unset. - * If omitted, this color object is rendered as a solid color - * (as if the alpha value had been explicitly given a value of 1.0). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Type\Color::initOnce(); - parent::__construct($data); - } - - /** - * The amount of red in the color as a value in the interval [0, 1]. - * - * Generated from protobuf field float red = 1; - * @return float - */ - public function getRed() - { - return $this->red; - } - - /** - * The amount of red in the color as a value in the interval [0, 1]. - * - * Generated from protobuf field float red = 1; - * @param float $var - * @return $this - */ - public function setRed($var) - { - GPBUtil::checkFloat($var); - $this->red = $var; - - return $this; - } - - /** - * The amount of green in the color as a value in the interval [0, 1]. - * - * Generated from protobuf field float green = 2; - * @return float - */ - public function getGreen() - { - return $this->green; - } - - /** - * The amount of green in the color as a value in the interval [0, 1]. - * - * Generated from protobuf field float green = 2; - * @param float $var - * @return $this - */ - public function setGreen($var) - { - GPBUtil::checkFloat($var); - $this->green = $var; - - return $this; - } - - /** - * The amount of blue in the color as a value in the interval [0, 1]. - * - * Generated from protobuf field float blue = 3; - * @return float - */ - public function getBlue() - { - return $this->blue; - } - - /** - * The amount of blue in the color as a value in the interval [0, 1]. - * - * Generated from protobuf field float blue = 3; - * @param float $var - * @return $this - */ - public function setBlue($var) - { - GPBUtil::checkFloat($var); - $this->blue = $var; - - return $this; - } - - /** - * The fraction of this color that should be applied to the pixel. That is, - * the final pixel color is defined by the equation: - * `pixel color = alpha * (this color) + (1.0 - alpha) * (background color)` - * This means that a value of 1.0 corresponds to a solid color, whereas - * a value of 0.0 corresponds to a completely transparent color. This - * uses a wrapper message rather than a simple float scalar so that it is - * possible to distinguish between a default value and the value being unset. - * If omitted, this color object is rendered as a solid color - * (as if the alpha value had been explicitly given a value of 1.0). - * - * Generated from protobuf field .google.protobuf.FloatValue alpha = 4; - * @return \Google\Protobuf\FloatValue|null - */ - public function getAlpha() - { - return $this->alpha; - } - - public function hasAlpha() - { - return isset($this->alpha); - } - - public function clearAlpha() - { - unset($this->alpha); - } - - /** - * Returns the unboxed value from getAlpha() - - * The fraction of this color that should be applied to the pixel. That is, - * the final pixel color is defined by the equation: - * `pixel color = alpha * (this color) + (1.0 - alpha) * (background color)` - * This means that a value of 1.0 corresponds to a solid color, whereas - * a value of 0.0 corresponds to a completely transparent color. This - * uses a wrapper message rather than a simple float scalar so that it is - * possible to distinguish between a default value and the value being unset. - * If omitted, this color object is rendered as a solid color - * (as if the alpha value had been explicitly given a value of 1.0). - * - * Generated from protobuf field .google.protobuf.FloatValue alpha = 4; - * @return float|null - */ - public function getAlphaUnwrapped() - { - return $this->readWrapperValue("alpha"); - } - - /** - * The fraction of this color that should be applied to the pixel. That is, - * the final pixel color is defined by the equation: - * `pixel color = alpha * (this color) + (1.0 - alpha) * (background color)` - * This means that a value of 1.0 corresponds to a solid color, whereas - * a value of 0.0 corresponds to a completely transparent color. This - * uses a wrapper message rather than a simple float scalar so that it is - * possible to distinguish between a default value and the value being unset. - * If omitted, this color object is rendered as a solid color - * (as if the alpha value had been explicitly given a value of 1.0). - * - * Generated from protobuf field .google.protobuf.FloatValue alpha = 4; - * @param \Google\Protobuf\FloatValue $var - * @return $this - */ - public function setAlpha($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FloatValue::class); - $this->alpha = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\FloatValue object. - - * The fraction of this color that should be applied to the pixel. That is, - * the final pixel color is defined by the equation: - * `pixel color = alpha * (this color) + (1.0 - alpha) * (background color)` - * This means that a value of 1.0 corresponds to a solid color, whereas - * a value of 0.0 corresponds to a completely transparent color. This - * uses a wrapper message rather than a simple float scalar so that it is - * possible to distinguish between a default value and the value being unset. - * If omitted, this color object is rendered as a solid color - * (as if the alpha value had been explicitly given a value of 1.0). - * - * Generated from protobuf field .google.protobuf.FloatValue alpha = 4; - * @param float|null $var - * @return $this - */ - public function setAlphaUnwrapped($var) - { - $this->writeWrapperValue("alpha", $var); - return $this;} - -} - diff --git a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Date.php b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Date.php deleted file mode 100644 index a14cf9d38a92..000000000000 --- a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Date.php +++ /dev/null @@ -1,163 +0,0 @@ -google.type.Date - */ -class Date extends \Google\Protobuf\Internal\Message -{ - /** - * Year of the date. Must be from 1 to 9999, or 0 to specify a date without - * a year. - * - * Generated from protobuf field int32 year = 1; - */ - protected $year = 0; - /** - * Month of a year. Must be from 1 to 12, or 0 to specify a year without a - * month and day. - * - * Generated from protobuf field int32 month = 2; - */ - protected $month = 0; - /** - * Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 - * to specify a year by itself or a year and month where the day isn't - * significant. - * - * Generated from protobuf field int32 day = 3; - */ - protected $day = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $year - * Year of the date. Must be from 1 to 9999, or 0 to specify a date without - * a year. - * @type int $month - * Month of a year. Must be from 1 to 12, or 0 to specify a year without a - * month and day. - * @type int $day - * Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 - * to specify a year by itself or a year and month where the day isn't - * significant. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Type\Date::initOnce(); - parent::__construct($data); - } - - /** - * Year of the date. Must be from 1 to 9999, or 0 to specify a date without - * a year. - * - * Generated from protobuf field int32 year = 1; - * @return int - */ - public function getYear() - { - return $this->year; - } - - /** - * Year of the date. Must be from 1 to 9999, or 0 to specify a date without - * a year. - * - * Generated from protobuf field int32 year = 1; - * @param int $var - * @return $this - */ - public function setYear($var) - { - GPBUtil::checkInt32($var); - $this->year = $var; - - return $this; - } - - /** - * Month of a year. Must be from 1 to 12, or 0 to specify a year without a - * month and day. - * - * Generated from protobuf field int32 month = 2; - * @return int - */ - public function getMonth() - { - return $this->month; - } - - /** - * Month of a year. Must be from 1 to 12, or 0 to specify a year without a - * month and day. - * - * Generated from protobuf field int32 month = 2; - * @param int $var - * @return $this - */ - public function setMonth($var) - { - GPBUtil::checkInt32($var); - $this->month = $var; - - return $this; - } - - /** - * Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 - * to specify a year by itself or a year and month where the day isn't - * significant. - * - * Generated from protobuf field int32 day = 3; - * @return int - */ - public function getDay() - { - return $this->day; - } - - /** - * Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 - * to specify a year by itself or a year and month where the day isn't - * significant. - * - * Generated from protobuf field int32 day = 3; - * @param int $var - * @return $this - */ - public function setDay($var) - { - GPBUtil::checkInt32($var); - $this->day = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/DateTime.php b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/DateTime.php deleted file mode 100644 index 42375f16ec96..000000000000 --- a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/DateTime.php +++ /dev/null @@ -1,397 +0,0 @@ -google.type.DateTime - */ -class DateTime extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Year of date. Must be from 1 to 9999, or 0 if specifying a - * datetime without a year. - * - * Generated from protobuf field int32 year = 1; - */ - protected $year = 0; - /** - * Optional. Month of year. Must be from 1 to 12, or 0 if specifying a - * datetime without a month. - * - * Generated from protobuf field int32 month = 2; - */ - protected $month = 0; - /** - * Optional. Day of month. Must be from 1 to 31 and valid for the year and - * month, or 0 if specifying a datetime without a day. - * - * Generated from protobuf field int32 day = 3; - */ - protected $day = 0; - /** - * Optional. Hours of day in 24 hour format. Should be from 0 to 23, defaults - * to 0 (midnight). An API may choose to allow the value "24:00:00" for - * scenarios like business closing time. - * - * Generated from protobuf field int32 hours = 4; - */ - protected $hours = 0; - /** - * Optional. Minutes of hour of day. Must be from 0 to 59, defaults to 0. - * - * Generated from protobuf field int32 minutes = 5; - */ - protected $minutes = 0; - /** - * Optional. Seconds of minutes of the time. Must normally be from 0 to 59, - * defaults to 0. An API may allow the value 60 if it allows leap-seconds. - * - * Generated from protobuf field int32 seconds = 6; - */ - protected $seconds = 0; - /** - * Optional. Fractions of seconds in nanoseconds. Must be from 0 to - * 999,999,999, defaults to 0. - * - * Generated from protobuf field int32 nanos = 7; - */ - protected $nanos = 0; - protected $time_offset; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $year - * Optional. Year of date. Must be from 1 to 9999, or 0 if specifying a - * datetime without a year. - * @type int $month - * Optional. Month of year. Must be from 1 to 12, or 0 if specifying a - * datetime without a month. - * @type int $day - * Optional. Day of month. Must be from 1 to 31 and valid for the year and - * month, or 0 if specifying a datetime without a day. - * @type int $hours - * Optional. Hours of day in 24 hour format. Should be from 0 to 23, defaults - * to 0 (midnight). An API may choose to allow the value "24:00:00" for - * scenarios like business closing time. - * @type int $minutes - * Optional. Minutes of hour of day. Must be from 0 to 59, defaults to 0. - * @type int $seconds - * Optional. Seconds of minutes of the time. Must normally be from 0 to 59, - * defaults to 0. An API may allow the value 60 if it allows leap-seconds. - * @type int $nanos - * Optional. Fractions of seconds in nanoseconds. Must be from 0 to - * 999,999,999, defaults to 0. - * @type \Google\Protobuf\Duration $utc_offset - * UTC offset. Must be whole seconds, between -18 hours and +18 hours. - * For example, a UTC offset of -4:00 would be represented as - * { seconds: -14400 }. - * @type \Google\Type\TimeZone $time_zone - * Time zone. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Type\Datetime::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Year of date. Must be from 1 to 9999, or 0 if specifying a - * datetime without a year. - * - * Generated from protobuf field int32 year = 1; - * @return int - */ - public function getYear() - { - return $this->year; - } - - /** - * Optional. Year of date. Must be from 1 to 9999, or 0 if specifying a - * datetime without a year. - * - * Generated from protobuf field int32 year = 1; - * @param int $var - * @return $this - */ - public function setYear($var) - { - GPBUtil::checkInt32($var); - $this->year = $var; - - return $this; - } - - /** - * Optional. Month of year. Must be from 1 to 12, or 0 if specifying a - * datetime without a month. - * - * Generated from protobuf field int32 month = 2; - * @return int - */ - public function getMonth() - { - return $this->month; - } - - /** - * Optional. Month of year. Must be from 1 to 12, or 0 if specifying a - * datetime without a month. - * - * Generated from protobuf field int32 month = 2; - * @param int $var - * @return $this - */ - public function setMonth($var) - { - GPBUtil::checkInt32($var); - $this->month = $var; - - return $this; - } - - /** - * Optional. Day of month. Must be from 1 to 31 and valid for the year and - * month, or 0 if specifying a datetime without a day. - * - * Generated from protobuf field int32 day = 3; - * @return int - */ - public function getDay() - { - return $this->day; - } - - /** - * Optional. Day of month. Must be from 1 to 31 and valid for the year and - * month, or 0 if specifying a datetime without a day. - * - * Generated from protobuf field int32 day = 3; - * @param int $var - * @return $this - */ - public function setDay($var) - { - GPBUtil::checkInt32($var); - $this->day = $var; - - return $this; - } - - /** - * Optional. Hours of day in 24 hour format. Should be from 0 to 23, defaults - * to 0 (midnight). An API may choose to allow the value "24:00:00" for - * scenarios like business closing time. - * - * Generated from protobuf field int32 hours = 4; - * @return int - */ - public function getHours() - { - return $this->hours; - } - - /** - * Optional. Hours of day in 24 hour format. Should be from 0 to 23, defaults - * to 0 (midnight). An API may choose to allow the value "24:00:00" for - * scenarios like business closing time. - * - * Generated from protobuf field int32 hours = 4; - * @param int $var - * @return $this - */ - public function setHours($var) - { - GPBUtil::checkInt32($var); - $this->hours = $var; - - return $this; - } - - /** - * Optional. Minutes of hour of day. Must be from 0 to 59, defaults to 0. - * - * Generated from protobuf field int32 minutes = 5; - * @return int - */ - public function getMinutes() - { - return $this->minutes; - } - - /** - * Optional. Minutes of hour of day. Must be from 0 to 59, defaults to 0. - * - * Generated from protobuf field int32 minutes = 5; - * @param int $var - * @return $this - */ - public function setMinutes($var) - { - GPBUtil::checkInt32($var); - $this->minutes = $var; - - return $this; - } - - /** - * Optional. Seconds of minutes of the time. Must normally be from 0 to 59, - * defaults to 0. An API may allow the value 60 if it allows leap-seconds. - * - * Generated from protobuf field int32 seconds = 6; - * @return int - */ - public function getSeconds() - { - return $this->seconds; - } - - /** - * Optional. Seconds of minutes of the time. Must normally be from 0 to 59, - * defaults to 0. An API may allow the value 60 if it allows leap-seconds. - * - * Generated from protobuf field int32 seconds = 6; - * @param int $var - * @return $this - */ - public function setSeconds($var) - { - GPBUtil::checkInt32($var); - $this->seconds = $var; - - return $this; - } - - /** - * Optional. Fractions of seconds in nanoseconds. Must be from 0 to - * 999,999,999, defaults to 0. - * - * Generated from protobuf field int32 nanos = 7; - * @return int - */ - public function getNanos() - { - return $this->nanos; - } - - /** - * Optional. Fractions of seconds in nanoseconds. Must be from 0 to - * 999,999,999, defaults to 0. - * - * Generated from protobuf field int32 nanos = 7; - * @param int $var - * @return $this - */ - public function setNanos($var) - { - GPBUtil::checkInt32($var); - $this->nanos = $var; - - return $this; - } - - /** - * UTC offset. Must be whole seconds, between -18 hours and +18 hours. - * For example, a UTC offset of -4:00 would be represented as - * { seconds: -14400 }. - * - * Generated from protobuf field .google.protobuf.Duration utc_offset = 8; - * @return \Google\Protobuf\Duration|null - */ - public function getUtcOffset() - { - return $this->readOneof(8); - } - - public function hasUtcOffset() - { - return $this->hasOneof(8); - } - - /** - * UTC offset. Must be whole seconds, between -18 hours and +18 hours. - * For example, a UTC offset of -4:00 would be represented as - * { seconds: -14400 }. - * - * Generated from protobuf field .google.protobuf.Duration utc_offset = 8; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setUtcOffset($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->writeOneof(8, $var); - - return $this; - } - - /** - * Time zone. - * - * Generated from protobuf field .google.type.TimeZone time_zone = 9; - * @return \Google\Type\TimeZone|null - */ - public function getTimeZone() - { - return $this->readOneof(9); - } - - public function hasTimeZone() - { - return $this->hasOneof(9); - } - - /** - * Time zone. - * - * Generated from protobuf field .google.type.TimeZone time_zone = 9; - * @param \Google\Type\TimeZone $var - * @return $this - */ - public function setTimeZone($var) - { - GPBUtil::checkMessage($var, \Google\Type\TimeZone::class); - $this->writeOneof(9, $var); - - return $this; - } - - /** - * @return string - */ - public function getTimeOffset() - { - return $this->whichOneof("time_offset"); - } - -} - diff --git a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/DayOfWeek.php b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/DayOfWeek.php deleted file mode 100644 index 56219ffe10be..000000000000 --- a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/DayOfWeek.php +++ /dev/null @@ -1,96 +0,0 @@ -google.type.DayOfWeek - */ -class DayOfWeek -{ - /** - * The day of the week is unspecified. - * - * Generated from protobuf enum DAY_OF_WEEK_UNSPECIFIED = 0; - */ - const DAY_OF_WEEK_UNSPECIFIED = 0; - /** - * Monday - * - * Generated from protobuf enum MONDAY = 1; - */ - const MONDAY = 1; - /** - * Tuesday - * - * Generated from protobuf enum TUESDAY = 2; - */ - const TUESDAY = 2; - /** - * Wednesday - * - * Generated from protobuf enum WEDNESDAY = 3; - */ - const WEDNESDAY = 3; - /** - * Thursday - * - * Generated from protobuf enum THURSDAY = 4; - */ - const THURSDAY = 4; - /** - * Friday - * - * Generated from protobuf enum FRIDAY = 5; - */ - const FRIDAY = 5; - /** - * Saturday - * - * Generated from protobuf enum SATURDAY = 6; - */ - const SATURDAY = 6; - /** - * Sunday - * - * Generated from protobuf enum SUNDAY = 7; - */ - const SUNDAY = 7; - - private static $valueToName = [ - self::DAY_OF_WEEK_UNSPECIFIED => 'DAY_OF_WEEK_UNSPECIFIED', - self::MONDAY => 'MONDAY', - self::TUESDAY => 'TUESDAY', - self::WEDNESDAY => 'WEDNESDAY', - self::THURSDAY => 'THURSDAY', - self::FRIDAY => 'FRIDAY', - self::SATURDAY => 'SATURDAY', - self::SUNDAY => 'SUNDAY', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Decimal.php b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Decimal.php deleted file mode 100644 index 687024e29acc..000000000000 --- a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Decimal.php +++ /dev/null @@ -1,247 +0,0 @@ -google.type.Decimal - */ -class Decimal extends \Google\Protobuf\Internal\Message -{ - /** - * The decimal value, as a string. - * The string representation consists of an optional sign, `+` (`U+002B`) - * or `-` (`U+002D`), followed by a sequence of zero or more decimal digits - * ("the integer"), optionally followed by a fraction, optionally followed - * by an exponent. An empty string **should** be interpreted as `0`. - * The fraction consists of a decimal point followed by zero or more decimal - * digits. The string must contain at least one digit in either the integer - * or the fraction. The number formed by the sign, the integer and the - * fraction is referred to as the significand. - * The exponent consists of the character `e` (`U+0065`) or `E` (`U+0045`) - * followed by one or more decimal digits. - * Services **should** normalize decimal values before storing them by: - * - Removing an explicitly-provided `+` sign (`+2.5` -> `2.5`). - * - Replacing a zero-length integer value with `0` (`.5` -> `0.5`). - * - Coercing the exponent character to upper-case, with explicit sign - * (`2.5e8` -> `2.5E+8`). - * - Removing an explicitly-provided zero exponent (`2.5E0` -> `2.5`). - * Services **may** perform additional normalization based on its own needs - * and the internal decimal implementation selected, such as shifting the - * decimal point and exponent value together (example: `2.5E-1` <-> `0.25`). - * Additionally, services **may** preserve trailing zeroes in the fraction - * to indicate increased precision, but are not required to do so. - * Note that only the `.` character is supported to divide the integer - * and the fraction; `,` **should not** be supported regardless of locale. - * Additionally, thousand separators **should not** be supported. If a - * service does support them, values **must** be normalized. - * The ENBF grammar is: - * DecimalString = - * '' | [Sign] Significand [Exponent]; - * Sign = '+' | '-'; - * Significand = - * Digits ['.'] [Digits] | [Digits] '.' Digits; - * Exponent = ('e' | 'E') [Sign] Digits; - * Digits = { '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' }; - * Services **should** clearly document the range of supported values, the - * maximum supported precision (total number of digits), and, if applicable, - * the scale (number of digits after the decimal point), as well as how it - * behaves when receiving out-of-bounds values. - * Services **may** choose to accept values passed as input even when the - * value has a higher precision or scale than the service supports, and - * **should** round the value to fit the supported scale. Alternatively, the - * service **may** error with `400 Bad Request` (`INVALID_ARGUMENT` in gRPC) - * if precision would be lost. - * Services **should** error with `400 Bad Request` (`INVALID_ARGUMENT` in - * gRPC) if the service receives a value outside of the supported range. - * - * Generated from protobuf field string value = 1; - */ - protected $value = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $value - * The decimal value, as a string. - * The string representation consists of an optional sign, `+` (`U+002B`) - * or `-` (`U+002D`), followed by a sequence of zero or more decimal digits - * ("the integer"), optionally followed by a fraction, optionally followed - * by an exponent. An empty string **should** be interpreted as `0`. - * The fraction consists of a decimal point followed by zero or more decimal - * digits. The string must contain at least one digit in either the integer - * or the fraction. The number formed by the sign, the integer and the - * fraction is referred to as the significand. - * The exponent consists of the character `e` (`U+0065`) or `E` (`U+0045`) - * followed by one or more decimal digits. - * Services **should** normalize decimal values before storing them by: - * - Removing an explicitly-provided `+` sign (`+2.5` -> `2.5`). - * - Replacing a zero-length integer value with `0` (`.5` -> `0.5`). - * - Coercing the exponent character to upper-case, with explicit sign - * (`2.5e8` -> `2.5E+8`). - * - Removing an explicitly-provided zero exponent (`2.5E0` -> `2.5`). - * Services **may** perform additional normalization based on its own needs - * and the internal decimal implementation selected, such as shifting the - * decimal point and exponent value together (example: `2.5E-1` <-> `0.25`). - * Additionally, services **may** preserve trailing zeroes in the fraction - * to indicate increased precision, but are not required to do so. - * Note that only the `.` character is supported to divide the integer - * and the fraction; `,` **should not** be supported regardless of locale. - * Additionally, thousand separators **should not** be supported. If a - * service does support them, values **must** be normalized. - * The ENBF grammar is: - * DecimalString = - * '' | [Sign] Significand [Exponent]; - * Sign = '+' | '-'; - * Significand = - * Digits ['.'] [Digits] | [Digits] '.' Digits; - * Exponent = ('e' | 'E') [Sign] Digits; - * Digits = { '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' }; - * Services **should** clearly document the range of supported values, the - * maximum supported precision (total number of digits), and, if applicable, - * the scale (number of digits after the decimal point), as well as how it - * behaves when receiving out-of-bounds values. - * Services **may** choose to accept values passed as input even when the - * value has a higher precision or scale than the service supports, and - * **should** round the value to fit the supported scale. Alternatively, the - * service **may** error with `400 Bad Request` (`INVALID_ARGUMENT` in gRPC) - * if precision would be lost. - * Services **should** error with `400 Bad Request` (`INVALID_ARGUMENT` in - * gRPC) if the service receives a value outside of the supported range. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Type\Decimal::initOnce(); - parent::__construct($data); - } - - /** - * The decimal value, as a string. - * The string representation consists of an optional sign, `+` (`U+002B`) - * or `-` (`U+002D`), followed by a sequence of zero or more decimal digits - * ("the integer"), optionally followed by a fraction, optionally followed - * by an exponent. An empty string **should** be interpreted as `0`. - * The fraction consists of a decimal point followed by zero or more decimal - * digits. The string must contain at least one digit in either the integer - * or the fraction. The number formed by the sign, the integer and the - * fraction is referred to as the significand. - * The exponent consists of the character `e` (`U+0065`) or `E` (`U+0045`) - * followed by one or more decimal digits. - * Services **should** normalize decimal values before storing them by: - * - Removing an explicitly-provided `+` sign (`+2.5` -> `2.5`). - * - Replacing a zero-length integer value with `0` (`.5` -> `0.5`). - * - Coercing the exponent character to upper-case, with explicit sign - * (`2.5e8` -> `2.5E+8`). - * - Removing an explicitly-provided zero exponent (`2.5E0` -> `2.5`). - * Services **may** perform additional normalization based on its own needs - * and the internal decimal implementation selected, such as shifting the - * decimal point and exponent value together (example: `2.5E-1` <-> `0.25`). - * Additionally, services **may** preserve trailing zeroes in the fraction - * to indicate increased precision, but are not required to do so. - * Note that only the `.` character is supported to divide the integer - * and the fraction; `,` **should not** be supported regardless of locale. - * Additionally, thousand separators **should not** be supported. If a - * service does support them, values **must** be normalized. - * The ENBF grammar is: - * DecimalString = - * '' | [Sign] Significand [Exponent]; - * Sign = '+' | '-'; - * Significand = - * Digits ['.'] [Digits] | [Digits] '.' Digits; - * Exponent = ('e' | 'E') [Sign] Digits; - * Digits = { '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' }; - * Services **should** clearly document the range of supported values, the - * maximum supported precision (total number of digits), and, if applicable, - * the scale (number of digits after the decimal point), as well as how it - * behaves when receiving out-of-bounds values. - * Services **may** choose to accept values passed as input even when the - * value has a higher precision or scale than the service supports, and - * **should** round the value to fit the supported scale. Alternatively, the - * service **may** error with `400 Bad Request` (`INVALID_ARGUMENT` in gRPC) - * if precision would be lost. - * Services **should** error with `400 Bad Request` (`INVALID_ARGUMENT` in - * gRPC) if the service receives a value outside of the supported range. - * - * Generated from protobuf field string value = 1; - * @return string - */ - public function getValue() - { - return $this->value; - } - - /** - * The decimal value, as a string. - * The string representation consists of an optional sign, `+` (`U+002B`) - * or `-` (`U+002D`), followed by a sequence of zero or more decimal digits - * ("the integer"), optionally followed by a fraction, optionally followed - * by an exponent. An empty string **should** be interpreted as `0`. - * The fraction consists of a decimal point followed by zero or more decimal - * digits. The string must contain at least one digit in either the integer - * or the fraction. The number formed by the sign, the integer and the - * fraction is referred to as the significand. - * The exponent consists of the character `e` (`U+0065`) or `E` (`U+0045`) - * followed by one or more decimal digits. - * Services **should** normalize decimal values before storing them by: - * - Removing an explicitly-provided `+` sign (`+2.5` -> `2.5`). - * - Replacing a zero-length integer value with `0` (`.5` -> `0.5`). - * - Coercing the exponent character to upper-case, with explicit sign - * (`2.5e8` -> `2.5E+8`). - * - Removing an explicitly-provided zero exponent (`2.5E0` -> `2.5`). - * Services **may** perform additional normalization based on its own needs - * and the internal decimal implementation selected, such as shifting the - * decimal point and exponent value together (example: `2.5E-1` <-> `0.25`). - * Additionally, services **may** preserve trailing zeroes in the fraction - * to indicate increased precision, but are not required to do so. - * Note that only the `.` character is supported to divide the integer - * and the fraction; `,` **should not** be supported regardless of locale. - * Additionally, thousand separators **should not** be supported. If a - * service does support them, values **must** be normalized. - * The ENBF grammar is: - * DecimalString = - * '' | [Sign] Significand [Exponent]; - * Sign = '+' | '-'; - * Significand = - * Digits ['.'] [Digits] | [Digits] '.' Digits; - * Exponent = ('e' | 'E') [Sign] Digits; - * Digits = { '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' }; - * Services **should** clearly document the range of supported values, the - * maximum supported precision (total number of digits), and, if applicable, - * the scale (number of digits after the decimal point), as well as how it - * behaves when receiving out-of-bounds values. - * Services **may** choose to accept values passed as input even when the - * value has a higher precision or scale than the service supports, and - * **should** round the value to fit the supported scale. Alternatively, the - * service **may** error with `400 Bad Request` (`INVALID_ARGUMENT` in gRPC) - * if precision would be lost. - * Services **should** error with `400 Bad Request` (`INVALID_ARGUMENT` in - * gRPC) if the service receives a value outside of the supported range. - * - * Generated from protobuf field string value = 1; - * @param string $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkString($var, True); - $this->value = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Expr.php b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Expr.php deleted file mode 100644 index 036c5cf70d7d..000000000000 --- a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Expr.php +++ /dev/null @@ -1,210 +0,0 @@ -google.type.Expr - */ -class Expr extends \Google\Protobuf\Internal\Message -{ - /** - * Textual representation of an expression in Common Expression Language - * syntax. - * - * Generated from protobuf field string expression = 1; - */ - protected $expression = ''; - /** - * Optional. Title for the expression, i.e. a short string describing - * its purpose. This can be used e.g. in UIs which allow to enter the - * expression. - * - * Generated from protobuf field string title = 2; - */ - protected $title = ''; - /** - * Optional. Description of the expression. This is a longer text which - * describes the expression, e.g. when hovered over it in a UI. - * - * Generated from protobuf field string description = 3; - */ - protected $description = ''; - /** - * Optional. String indicating the location of the expression for error - * reporting, e.g. a file name and a position in the file. - * - * Generated from protobuf field string location = 4; - */ - protected $location = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $expression - * Textual representation of an expression in Common Expression Language - * syntax. - * @type string $title - * Optional. Title for the expression, i.e. a short string describing - * its purpose. This can be used e.g. in UIs which allow to enter the - * expression. - * @type string $description - * Optional. Description of the expression. This is a longer text which - * describes the expression, e.g. when hovered over it in a UI. - * @type string $location - * Optional. String indicating the location of the expression for error - * reporting, e.g. a file name and a position in the file. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Type\Expr::initOnce(); - parent::__construct($data); - } - - /** - * Textual representation of an expression in Common Expression Language - * syntax. - * - * Generated from protobuf field string expression = 1; - * @return string - */ - public function getExpression() - { - return $this->expression; - } - - /** - * Textual representation of an expression in Common Expression Language - * syntax. - * - * Generated from protobuf field string expression = 1; - * @param string $var - * @return $this - */ - public function setExpression($var) - { - GPBUtil::checkString($var, True); - $this->expression = $var; - - return $this; - } - - /** - * Optional. Title for the expression, i.e. a short string describing - * its purpose. This can be used e.g. in UIs which allow to enter the - * expression. - * - * Generated from protobuf field string title = 2; - * @return string - */ - public function getTitle() - { - return $this->title; - } - - /** - * Optional. Title for the expression, i.e. a short string describing - * its purpose. This can be used e.g. in UIs which allow to enter the - * expression. - * - * Generated from protobuf field string title = 2; - * @param string $var - * @return $this - */ - public function setTitle($var) - { - GPBUtil::checkString($var, True); - $this->title = $var; - - return $this; - } - - /** - * Optional. Description of the expression. This is a longer text which - * describes the expression, e.g. when hovered over it in a UI. - * - * Generated from protobuf field string description = 3; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. Description of the expression. This is a longer text which - * describes the expression, e.g. when hovered over it in a UI. - * - * Generated from protobuf field string description = 3; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Optional. String indicating the location of the expression for error - * reporting, e.g. a file name and a position in the file. - * - * Generated from protobuf field string location = 4; - * @return string - */ - public function getLocation() - { - return $this->location; - } - - /** - * Optional. String indicating the location of the expression for error - * reporting, e.g. a file name and a position in the file. - * - * Generated from protobuf field string location = 4; - * @param string $var - * @return $this - */ - public function setLocation($var) - { - GPBUtil::checkString($var, True); - $this->location = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Fraction.php b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Fraction.php deleted file mode 100644 index 02557cab0470..000000000000 --- a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Fraction.php +++ /dev/null @@ -1,105 +0,0 @@ -google.type.Fraction - */ -class Fraction extends \Google\Protobuf\Internal\Message -{ - /** - * The numerator in the fraction, e.g. 2 in 2/3. - * - * Generated from protobuf field int64 numerator = 1; - */ - protected $numerator = 0; - /** - * The value by which the numerator is divided, e.g. 3 in 2/3. Must be - * positive. - * - * Generated from protobuf field int64 denominator = 2; - */ - protected $denominator = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $numerator - * The numerator in the fraction, e.g. 2 in 2/3. - * @type int|string $denominator - * The value by which the numerator is divided, e.g. 3 in 2/3. Must be - * positive. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Type\Fraction::initOnce(); - parent::__construct($data); - } - - /** - * The numerator in the fraction, e.g. 2 in 2/3. - * - * Generated from protobuf field int64 numerator = 1; - * @return int|string - */ - public function getNumerator() - { - return $this->numerator; - } - - /** - * The numerator in the fraction, e.g. 2 in 2/3. - * - * Generated from protobuf field int64 numerator = 1; - * @param int|string $var - * @return $this - */ - public function setNumerator($var) - { - GPBUtil::checkInt64($var); - $this->numerator = $var; - - return $this; - } - - /** - * The value by which the numerator is divided, e.g. 3 in 2/3. Must be - * positive. - * - * Generated from protobuf field int64 denominator = 2; - * @return int|string - */ - public function getDenominator() - { - return $this->denominator; - } - - /** - * The value by which the numerator is divided, e.g. 3 in 2/3. Must be - * positive. - * - * Generated from protobuf field int64 denominator = 2; - * @param int|string $var - * @return $this - */ - public function setDenominator($var) - { - GPBUtil::checkInt64($var); - $this->denominator = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Interval.php b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Interval.php deleted file mode 100644 index e6cfa8578c98..000000000000 --- a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Interval.php +++ /dev/null @@ -1,141 +0,0 @@ -google.type.Interval - */ -class Interval extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Inclusive start of the interval. - * If specified, a Timestamp matching this interval will have to be the same - * or after the start. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 1; - */ - protected $start_time = null; - /** - * Optional. Exclusive end of the interval. - * If specified, a Timestamp matching this interval will have to be before the - * end. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2; - */ - protected $end_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $start_time - * Optional. Inclusive start of the interval. - * If specified, a Timestamp matching this interval will have to be the same - * or after the start. - * @type \Google\Protobuf\Timestamp $end_time - * Optional. Exclusive end of the interval. - * If specified, a Timestamp matching this interval will have to be before the - * end. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Type\Interval::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Inclusive start of the interval. - * If specified, a Timestamp matching this interval will have to be the same - * or after the start. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 1; - * @return \Google\Protobuf\Timestamp|null - */ - public function getStartTime() - { - return $this->start_time; - } - - public function hasStartTime() - { - return isset($this->start_time); - } - - public function clearStartTime() - { - unset($this->start_time); - } - - /** - * Optional. Inclusive start of the interval. - * If specified, a Timestamp matching this interval will have to be the same - * or after the start. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 1; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setStartTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->start_time = $var; - - return $this; - } - - /** - * Optional. Exclusive end of the interval. - * If specified, a Timestamp matching this interval will have to be before the - * end. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getEndTime() - { - return $this->end_time; - } - - public function hasEndTime() - { - return isset($this->end_time); - } - - public function clearEndTime() - { - unset($this->end_time); - } - - /** - * Optional. Exclusive end of the interval. - * If specified, a Timestamp matching this interval will have to be before the - * end. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEndTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->end_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/LatLng.php b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/LatLng.php deleted file mode 100644 index 51358f7448da..000000000000 --- a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/LatLng.php +++ /dev/null @@ -1,105 +0,0 @@ - - * WGS84 standard. Values must be within normalized ranges. - * - * Generated from protobuf message google.type.LatLng - */ -class LatLng extends \Google\Protobuf\Internal\Message -{ - /** - * The latitude in degrees. It must be in the range [-90.0, +90.0]. - * - * Generated from protobuf field double latitude = 1; - */ - protected $latitude = 0.0; - /** - * The longitude in degrees. It must be in the range [-180.0, +180.0]. - * - * Generated from protobuf field double longitude = 2; - */ - protected $longitude = 0.0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type float $latitude - * The latitude in degrees. It must be in the range [-90.0, +90.0]. - * @type float $longitude - * The longitude in degrees. It must be in the range [-180.0, +180.0]. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Type\Latlng::initOnce(); - parent::__construct($data); - } - - /** - * The latitude in degrees. It must be in the range [-90.0, +90.0]. - * - * Generated from protobuf field double latitude = 1; - * @return float - */ - public function getLatitude() - { - return $this->latitude; - } - - /** - * The latitude in degrees. It must be in the range [-90.0, +90.0]. - * - * Generated from protobuf field double latitude = 1; - * @param float $var - * @return $this - */ - public function setLatitude($var) - { - GPBUtil::checkDouble($var); - $this->latitude = $var; - - return $this; - } - - /** - * The longitude in degrees. It must be in the range [-180.0, +180.0]. - * - * Generated from protobuf field double longitude = 2; - * @return float - */ - public function getLongitude() - { - return $this->longitude; - } - - /** - * The longitude in degrees. It must be in the range [-180.0, +180.0]. - * - * Generated from protobuf field double longitude = 2; - * @param float $var - * @return $this - */ - public function setLongitude($var) - { - GPBUtil::checkDouble($var); - $this->longitude = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/LocalizedText.php b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/LocalizedText.php deleted file mode 100644 index d8bf0743e737..000000000000 --- a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/LocalizedText.php +++ /dev/null @@ -1,113 +0,0 @@ -google.type.LocalizedText - */ -class LocalizedText extends \Google\Protobuf\Internal\Message -{ - /** - * Localized string in the language corresponding to - * [language_code][google.type.LocalizedText.language_code] below. - * - * Generated from protobuf field string text = 1; - */ - protected $text = ''; - /** - * The text's BCP-47 language code, such as "en-US" or "sr-Latn". - * For more information, see - * http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. - * - * Generated from protobuf field string language_code = 2; - */ - protected $language_code = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $text - * Localized string in the language corresponding to - * [language_code][google.type.LocalizedText.language_code] below. - * @type string $language_code - * The text's BCP-47 language code, such as "en-US" or "sr-Latn". - * For more information, see - * http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Type\LocalizedText::initOnce(); - parent::__construct($data); - } - - /** - * Localized string in the language corresponding to - * [language_code][google.type.LocalizedText.language_code] below. - * - * Generated from protobuf field string text = 1; - * @return string - */ - public function getText() - { - return $this->text; - } - - /** - * Localized string in the language corresponding to - * [language_code][google.type.LocalizedText.language_code] below. - * - * Generated from protobuf field string text = 1; - * @param string $var - * @return $this - */ - public function setText($var) - { - GPBUtil::checkString($var, True); - $this->text = $var; - - return $this; - } - - /** - * The text's BCP-47 language code, such as "en-US" or "sr-Latn". - * For more information, see - * http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. - * - * Generated from protobuf field string language_code = 2; - * @return string - */ - public function getLanguageCode() - { - return $this->language_code; - } - - /** - * The text's BCP-47 language code, such as "en-US" or "sr-Latn". - * For more information, see - * http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. - * - * Generated from protobuf field string language_code = 2; - * @param string $var - * @return $this - */ - public function setLanguageCode($var) - { - GPBUtil::checkString($var, True); - $this->language_code = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Money.php b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Money.php deleted file mode 100644 index 47e3f3acdd9a..000000000000 --- a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Money.php +++ /dev/null @@ -1,159 +0,0 @@ -google.type.Money - */ -class Money extends \Google\Protobuf\Internal\Message -{ - /** - * The three-letter currency code defined in ISO 4217. - * - * Generated from protobuf field string currency_code = 1; - */ - protected $currency_code = ''; - /** - * The whole units of the amount. - * For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar. - * - * Generated from protobuf field int64 units = 2; - */ - protected $units = 0; - /** - * Number of nano (10^-9) units of the amount. - * The value must be between -999,999,999 and +999,999,999 inclusive. - * If `units` is positive, `nanos` must be positive or zero. - * If `units` is zero, `nanos` can be positive, zero, or negative. - * If `units` is negative, `nanos` must be negative or zero. - * For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000. - * - * Generated from protobuf field int32 nanos = 3; - */ - protected $nanos = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $currency_code - * The three-letter currency code defined in ISO 4217. - * @type int|string $units - * The whole units of the amount. - * For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar. - * @type int $nanos - * Number of nano (10^-9) units of the amount. - * The value must be between -999,999,999 and +999,999,999 inclusive. - * If `units` is positive, `nanos` must be positive or zero. - * If `units` is zero, `nanos` can be positive, zero, or negative. - * If `units` is negative, `nanos` must be negative or zero. - * For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Type\Money::initOnce(); - parent::__construct($data); - } - - /** - * The three-letter currency code defined in ISO 4217. - * - * Generated from protobuf field string currency_code = 1; - * @return string - */ - public function getCurrencyCode() - { - return $this->currency_code; - } - - /** - * The three-letter currency code defined in ISO 4217. - * - * Generated from protobuf field string currency_code = 1; - * @param string $var - * @return $this - */ - public function setCurrencyCode($var) - { - GPBUtil::checkString($var, True); - $this->currency_code = $var; - - return $this; - } - - /** - * The whole units of the amount. - * For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar. - * - * Generated from protobuf field int64 units = 2; - * @return int|string - */ - public function getUnits() - { - return $this->units; - } - - /** - * The whole units of the amount. - * For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar. - * - * Generated from protobuf field int64 units = 2; - * @param int|string $var - * @return $this - */ - public function setUnits($var) - { - GPBUtil::checkInt64($var); - $this->units = $var; - - return $this; - } - - /** - * Number of nano (10^-9) units of the amount. - * The value must be between -999,999,999 and +999,999,999 inclusive. - * If `units` is positive, `nanos` must be positive or zero. - * If `units` is zero, `nanos` can be positive, zero, or negative. - * If `units` is negative, `nanos` must be negative or zero. - * For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000. - * - * Generated from protobuf field int32 nanos = 3; - * @return int - */ - public function getNanos() - { - return $this->nanos; - } - - /** - * Number of nano (10^-9) units of the amount. - * The value must be between -999,999,999 and +999,999,999 inclusive. - * If `units` is positive, `nanos` must be positive or zero. - * If `units` is zero, `nanos` can be positive, zero, or negative. - * If `units` is negative, `nanos` must be negative or zero. - * For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000. - * - * Generated from protobuf field int32 nanos = 3; - * @param int $var - * @return $this - */ - public function setNanos($var) - { - GPBUtil::checkInt32($var); - $this->nanos = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Month.php b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Month.php deleted file mode 100644 index 473d62ed3c1c..000000000000 --- a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Month.php +++ /dev/null @@ -1,131 +0,0 @@ -google.type.Month - */ -class Month -{ - /** - * The unspecified month. - * - * Generated from protobuf enum MONTH_UNSPECIFIED = 0; - */ - const MONTH_UNSPECIFIED = 0; - /** - * The month of January. - * - * Generated from protobuf enum JANUARY = 1; - */ - const JANUARY = 1; - /** - * The month of February. - * - * Generated from protobuf enum FEBRUARY = 2; - */ - const FEBRUARY = 2; - /** - * The month of March. - * - * Generated from protobuf enum MARCH = 3; - */ - const MARCH = 3; - /** - * The month of April. - * - * Generated from protobuf enum APRIL = 4; - */ - const APRIL = 4; - /** - * The month of May. - * - * Generated from protobuf enum MAY = 5; - */ - const MAY = 5; - /** - * The month of June. - * - * Generated from protobuf enum JUNE = 6; - */ - const JUNE = 6; - /** - * The month of July. - * - * Generated from protobuf enum JULY = 7; - */ - const JULY = 7; - /** - * The month of August. - * - * Generated from protobuf enum AUGUST = 8; - */ - const AUGUST = 8; - /** - * The month of September. - * - * Generated from protobuf enum SEPTEMBER = 9; - */ - const SEPTEMBER = 9; - /** - * The month of October. - * - * Generated from protobuf enum OCTOBER = 10; - */ - const OCTOBER = 10; - /** - * The month of November. - * - * Generated from protobuf enum NOVEMBER = 11; - */ - const NOVEMBER = 11; - /** - * The month of December. - * - * Generated from protobuf enum DECEMBER = 12; - */ - const DECEMBER = 12; - - private static $valueToName = [ - self::MONTH_UNSPECIFIED => 'MONTH_UNSPECIFIED', - self::JANUARY => 'JANUARY', - self::FEBRUARY => 'FEBRUARY', - self::MARCH => 'MARCH', - self::APRIL => 'APRIL', - self::MAY => 'MAY', - self::JUNE => 'JUNE', - self::JULY => 'JULY', - self::AUGUST => 'AUGUST', - self::SEPTEMBER => 'SEPTEMBER', - self::OCTOBER => 'OCTOBER', - self::NOVEMBER => 'NOVEMBER', - self::DECEMBER => 'DECEMBER', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/PhoneNumber.php b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/PhoneNumber.php deleted file mode 100644 index 59c87e38eaae..000000000000 --- a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/PhoneNumber.php +++ /dev/null @@ -1,230 +0,0 @@ -google.type.PhoneNumber - */ -class PhoneNumber extends \Google\Protobuf\Internal\Message -{ - /** - * The phone number's extension. The extension is not standardized in ITU - * recommendations, except for being defined as a series of numbers with a - * maximum length of 40 digits. Other than digits, some other dialing - * characters such as ',' (indicating a wait) or '#' may be stored here. - * Note that no regions currently use extensions with short codes, so this - * field is normally only set in conjunction with an E.164 number. It is held - * separately from the E.164 number to allow for short code extensions in the - * future. - * - * Generated from protobuf field string extension = 3; - */ - protected $extension = ''; - protected $kind; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $e164_number - * The phone number, represented as a leading plus sign ('+'), followed by a - * phone number that uses a relaxed ITU E.164 format consisting of the - * country calling code (1 to 3 digits) and the subscriber number, with no - * additional spaces or formatting. For example: - * - correct: "+15552220123" - * - incorrect: "+1 (555) 222-01234 x123" - * The ITU E.164 format limits the latter to 12 digits, but in practice not - * all countries respect that, so we relax that restriction here. - * National-only numbers are not allowed. - * References: - * - https://www.itu.int/rec/T-REC-E.164-201011-I - * - https://en.wikipedia.org/wiki/E.164. - * - https://en.wikipedia.org/wiki/List_of_country_calling_codes - * @type \Google\Type\PhoneNumber\ShortCode $short_code - * A short code. - * Reference(s): - * - https://wikipedia.org/wiki/Short_code - * @type string $extension - * The phone number's extension. The extension is not standardized in ITU - * recommendations, except for being defined as a series of numbers with a - * maximum length of 40 digits. Other than digits, some other dialing - * characters such as ',' (indicating a wait) or '#' may be stored here. - * Note that no regions currently use extensions with short codes, so this - * field is normally only set in conjunction with an E.164 number. It is held - * separately from the E.164 number to allow for short code extensions in the - * future. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Type\PhoneNumber::initOnce(); - parent::__construct($data); - } - - /** - * The phone number, represented as a leading plus sign ('+'), followed by a - * phone number that uses a relaxed ITU E.164 format consisting of the - * country calling code (1 to 3 digits) and the subscriber number, with no - * additional spaces or formatting. For example: - * - correct: "+15552220123" - * - incorrect: "+1 (555) 222-01234 x123" - * The ITU E.164 format limits the latter to 12 digits, but in practice not - * all countries respect that, so we relax that restriction here. - * National-only numbers are not allowed. - * References: - * - https://www.itu.int/rec/T-REC-E.164-201011-I - * - https://en.wikipedia.org/wiki/E.164. - * - https://en.wikipedia.org/wiki/List_of_country_calling_codes - * - * Generated from protobuf field string e164_number = 1; - * @return string - */ - public function getE164Number() - { - return $this->readOneof(1); - } - - public function hasE164Number() - { - return $this->hasOneof(1); - } - - /** - * The phone number, represented as a leading plus sign ('+'), followed by a - * phone number that uses a relaxed ITU E.164 format consisting of the - * country calling code (1 to 3 digits) and the subscriber number, with no - * additional spaces or formatting. For example: - * - correct: "+15552220123" - * - incorrect: "+1 (555) 222-01234 x123" - * The ITU E.164 format limits the latter to 12 digits, but in practice not - * all countries respect that, so we relax that restriction here. - * National-only numbers are not allowed. - * References: - * - https://www.itu.int/rec/T-REC-E.164-201011-I - * - https://en.wikipedia.org/wiki/E.164. - * - https://en.wikipedia.org/wiki/List_of_country_calling_codes - * - * Generated from protobuf field string e164_number = 1; - * @param string $var - * @return $this - */ - public function setE164Number($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * A short code. - * Reference(s): - * - https://wikipedia.org/wiki/Short_code - * - * Generated from protobuf field .google.type.PhoneNumber.ShortCode short_code = 2; - * @return \Google\Type\PhoneNumber\ShortCode|null - */ - public function getShortCode() - { - return $this->readOneof(2); - } - - public function hasShortCode() - { - return $this->hasOneof(2); - } - - /** - * A short code. - * Reference(s): - * - https://wikipedia.org/wiki/Short_code - * - * Generated from protobuf field .google.type.PhoneNumber.ShortCode short_code = 2; - * @param \Google\Type\PhoneNumber\ShortCode $var - * @return $this - */ - public function setShortCode($var) - { - GPBUtil::checkMessage($var, \Google\Type\PhoneNumber\ShortCode::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * The phone number's extension. The extension is not standardized in ITU - * recommendations, except for being defined as a series of numbers with a - * maximum length of 40 digits. Other than digits, some other dialing - * characters such as ',' (indicating a wait) or '#' may be stored here. - * Note that no regions currently use extensions with short codes, so this - * field is normally only set in conjunction with an E.164 number. It is held - * separately from the E.164 number to allow for short code extensions in the - * future. - * - * Generated from protobuf field string extension = 3; - * @return string - */ - public function getExtension() - { - return $this->extension; - } - - /** - * The phone number's extension. The extension is not standardized in ITU - * recommendations, except for being defined as a series of numbers with a - * maximum length of 40 digits. Other than digits, some other dialing - * characters such as ',' (indicating a wait) or '#' may be stored here. - * Note that no regions currently use extensions with short codes, so this - * field is normally only set in conjunction with an E.164 number. It is held - * separately from the E.164 number to allow for short code extensions in the - * future. - * - * Generated from protobuf field string extension = 3; - * @param string $var - * @return $this - */ - public function setExtension($var) - { - GPBUtil::checkString($var, True); - $this->extension = $var; - - return $this; - } - - /** - * @return string - */ - public function getKind() - { - return $this->whichOneof("kind"); - } - -} - diff --git a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/PhoneNumber/ShortCode.php b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/PhoneNumber/ShortCode.php deleted file mode 100644 index 9969db91ca95..000000000000 --- a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/PhoneNumber/ShortCode.php +++ /dev/null @@ -1,125 +0,0 @@ -google.type.PhoneNumber.ShortCode - */ -class ShortCode extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The BCP-47 region code of the location where calls to this - * short code can be made, such as "US" and "BB". - * Reference(s): - * - http://www.unicode.org/reports/tr35/#unicode_region_subtag - * - * Generated from protobuf field string region_code = 1; - */ - protected $region_code = ''; - /** - * Required. The short code digits, without a leading plus ('+') or country - * calling code. For example "611". - * - * Generated from protobuf field string number = 2; - */ - protected $number = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $region_code - * Required. The BCP-47 region code of the location where calls to this - * short code can be made, such as "US" and "BB". - * Reference(s): - * - http://www.unicode.org/reports/tr35/#unicode_region_subtag - * @type string $number - * Required. The short code digits, without a leading plus ('+') or country - * calling code. For example "611". - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Type\PhoneNumber::initOnce(); - parent::__construct($data); - } - - /** - * Required. The BCP-47 region code of the location where calls to this - * short code can be made, such as "US" and "BB". - * Reference(s): - * - http://www.unicode.org/reports/tr35/#unicode_region_subtag - * - * Generated from protobuf field string region_code = 1; - * @return string - */ - public function getRegionCode() - { - return $this->region_code; - } - - /** - * Required. The BCP-47 region code of the location where calls to this - * short code can be made, such as "US" and "BB". - * Reference(s): - * - http://www.unicode.org/reports/tr35/#unicode_region_subtag - * - * Generated from protobuf field string region_code = 1; - * @param string $var - * @return $this - */ - public function setRegionCode($var) - { - GPBUtil::checkString($var, True); - $this->region_code = $var; - - return $this; - } - - /** - * Required. The short code digits, without a leading plus ('+') or country - * calling code. For example "611". - * - * Generated from protobuf field string number = 2; - * @return string - */ - public function getNumber() - { - return $this->number; - } - - /** - * Required. The short code digits, without a leading plus ('+') or country - * calling code. For example "611". - * - * Generated from protobuf field string number = 2; - * @param string $var - * @return $this - */ - public function setNumber($var) - { - GPBUtil::checkString($var, True); - $this->number = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/PostalAddress.php b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/PostalAddress.php deleted file mode 100644 index 8ffb01a3ed25..000000000000 --- a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/PostalAddress.php +++ /dev/null @@ -1,631 +0,0 @@ -google.type.PostalAddress - */ -class PostalAddress extends \Google\Protobuf\Internal\Message -{ - /** - * The schema revision of the `PostalAddress`. This must be set to 0, which is - * the latest revision. - * All new revisions **must** be backward compatible with old revisions. - * - * Generated from protobuf field int32 revision = 1; - */ - protected $revision = 0; - /** - * Required. CLDR region code of the country/region of the address. This - * is never inferred and it is up to the user to ensure the value is - * correct. See https://cldr.unicode.org/ and - * https://www.unicode.org/cldr/charts/30/supplemental/territory_information.html - * for details. Example: "CH" for Switzerland. - * - * Generated from protobuf field string region_code = 2; - */ - protected $region_code = ''; - /** - * Optional. BCP-47 language code of the contents of this address (if - * known). This is often the UI language of the input form or is expected - * to match one of the languages used in the address' country/region, or their - * transliterated equivalents. - * This can affect formatting in certain countries, but is not critical - * to the correctness of the data and will never affect any validation or - * other non-formatting related operations. - * If this value is not known, it should be omitted (rather than specifying a - * possibly incorrect default). - * Examples: "zh-Hant", "ja", "ja-Latn", "en". - * - * Generated from protobuf field string language_code = 3; - */ - protected $language_code = ''; - /** - * Optional. Postal code of the address. Not all countries use or require - * postal codes to be present, but where they are used, they may trigger - * additional validation with other parts of the address (for example, - * state or zip code validation in the United States). - * - * Generated from protobuf field string postal_code = 4; - */ - protected $postal_code = ''; - /** - * Optional. Additional, country-specific, sorting code. This is not used - * in most regions. Where it is used, the value is either a string like - * "CEDEX", optionally followed by a number (for example, "CEDEX 7"), or just - * a number alone, representing the "sector code" (Jamaica), "delivery area - * indicator" (Malawi) or "post office indicator" (Côte d'Ivoire). - * - * Generated from protobuf field string sorting_code = 5; - */ - protected $sorting_code = ''; - /** - * Optional. Highest administrative subdivision which is used for postal - * addresses of a country or region. - * For example, this can be a state, a province, an oblast, or a prefecture. - * For Spain, this is the province and not the autonomous - * community (for example, "Barcelona" and not "Catalonia"). - * Many countries don't use an administrative area in postal addresses. For - * example, in Switzerland, this should be left unpopulated. - * - * Generated from protobuf field string administrative_area = 6; - */ - protected $administrative_area = ''; - /** - * Optional. Generally refers to the city or town portion of the address. - * Examples: US city, IT comune, UK post town. - * In regions of the world where localities are not well defined or do not fit - * into this structure well, leave `locality` empty and use `address_lines`. - * - * Generated from protobuf field string locality = 7; - */ - protected $locality = ''; - /** - * Optional. Sublocality of the address. - * For example, this can be a neighborhood, borough, or district. - * - * Generated from protobuf field string sublocality = 8; - */ - protected $sublocality = ''; - /** - * Unstructured address lines describing the lower levels of an address. - * Because values in `address_lines` do not have type information and may - * sometimes contain multiple values in a single field (for example, - * "Austin, TX"), it is important that the line order is clear. The order of - * address lines should be "envelope order" for the country or region of the - * address. In places where this can vary (for example, Japan), - * `address_language` is used to make it explicit (for example, "ja" for - * large-to-small ordering and "ja-Latn" or "en" for small-to-large). In this - * way, the most specific line of an address can be selected based on the - * language. - * The minimum permitted structural representation of an address consists - * of a `region_code` with all remaining information placed in the - * `address_lines`. It would be possible to format such an address very - * approximately without geocoding, but no semantic reasoning could be - * made about any of the address components until it was at least - * partially resolved. - * Creating an address only containing a `region_code` and `address_lines` and - * then geocoding is the recommended way to handle completely unstructured - * addresses (as opposed to guessing which parts of the address should be - * localities or administrative areas). - * - * Generated from protobuf field repeated string address_lines = 9; - */ - private $address_lines; - /** - * Optional. The recipient at the address. - * This field may, under certain circumstances, contain multiline information. - * For example, it might contain "care of" information. - * - * Generated from protobuf field repeated string recipients = 10; - */ - private $recipients; - /** - * Optional. The name of the organization at the address. - * - * Generated from protobuf field string organization = 11; - */ - protected $organization = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $revision - * The schema revision of the `PostalAddress`. This must be set to 0, which is - * the latest revision. - * All new revisions **must** be backward compatible with old revisions. - * @type string $region_code - * Required. CLDR region code of the country/region of the address. This - * is never inferred and it is up to the user to ensure the value is - * correct. See https://cldr.unicode.org/ and - * https://www.unicode.org/cldr/charts/30/supplemental/territory_information.html - * for details. Example: "CH" for Switzerland. - * @type string $language_code - * Optional. BCP-47 language code of the contents of this address (if - * known). This is often the UI language of the input form or is expected - * to match one of the languages used in the address' country/region, or their - * transliterated equivalents. - * This can affect formatting in certain countries, but is not critical - * to the correctness of the data and will never affect any validation or - * other non-formatting related operations. - * If this value is not known, it should be omitted (rather than specifying a - * possibly incorrect default). - * Examples: "zh-Hant", "ja", "ja-Latn", "en". - * @type string $postal_code - * Optional. Postal code of the address. Not all countries use or require - * postal codes to be present, but where they are used, they may trigger - * additional validation with other parts of the address (for example, - * state or zip code validation in the United States). - * @type string $sorting_code - * Optional. Additional, country-specific, sorting code. This is not used - * in most regions. Where it is used, the value is either a string like - * "CEDEX", optionally followed by a number (for example, "CEDEX 7"), or just - * a number alone, representing the "sector code" (Jamaica), "delivery area - * indicator" (Malawi) or "post office indicator" (Côte d'Ivoire). - * @type string $administrative_area - * Optional. Highest administrative subdivision which is used for postal - * addresses of a country or region. - * For example, this can be a state, a province, an oblast, or a prefecture. - * For Spain, this is the province and not the autonomous - * community (for example, "Barcelona" and not "Catalonia"). - * Many countries don't use an administrative area in postal addresses. For - * example, in Switzerland, this should be left unpopulated. - * @type string $locality - * Optional. Generally refers to the city or town portion of the address. - * Examples: US city, IT comune, UK post town. - * In regions of the world where localities are not well defined or do not fit - * into this structure well, leave `locality` empty and use `address_lines`. - * @type string $sublocality - * Optional. Sublocality of the address. - * For example, this can be a neighborhood, borough, or district. - * @type string[] $address_lines - * Unstructured address lines describing the lower levels of an address. - * Because values in `address_lines` do not have type information and may - * sometimes contain multiple values in a single field (for example, - * "Austin, TX"), it is important that the line order is clear. The order of - * address lines should be "envelope order" for the country or region of the - * address. In places where this can vary (for example, Japan), - * `address_language` is used to make it explicit (for example, "ja" for - * large-to-small ordering and "ja-Latn" or "en" for small-to-large). In this - * way, the most specific line of an address can be selected based on the - * language. - * The minimum permitted structural representation of an address consists - * of a `region_code` with all remaining information placed in the - * `address_lines`. It would be possible to format such an address very - * approximately without geocoding, but no semantic reasoning could be - * made about any of the address components until it was at least - * partially resolved. - * Creating an address only containing a `region_code` and `address_lines` and - * then geocoding is the recommended way to handle completely unstructured - * addresses (as opposed to guessing which parts of the address should be - * localities or administrative areas). - * @type string[] $recipients - * Optional. The recipient at the address. - * This field may, under certain circumstances, contain multiline information. - * For example, it might contain "care of" information. - * @type string $organization - * Optional. The name of the organization at the address. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Type\PostalAddress::initOnce(); - parent::__construct($data); - } - - /** - * The schema revision of the `PostalAddress`. This must be set to 0, which is - * the latest revision. - * All new revisions **must** be backward compatible with old revisions. - * - * Generated from protobuf field int32 revision = 1; - * @return int - */ - public function getRevision() - { - return $this->revision; - } - - /** - * The schema revision of the `PostalAddress`. This must be set to 0, which is - * the latest revision. - * All new revisions **must** be backward compatible with old revisions. - * - * Generated from protobuf field int32 revision = 1; - * @param int $var - * @return $this - */ - public function setRevision($var) - { - GPBUtil::checkInt32($var); - $this->revision = $var; - - return $this; - } - - /** - * Required. CLDR region code of the country/region of the address. This - * is never inferred and it is up to the user to ensure the value is - * correct. See https://cldr.unicode.org/ and - * https://www.unicode.org/cldr/charts/30/supplemental/territory_information.html - * for details. Example: "CH" for Switzerland. - * - * Generated from protobuf field string region_code = 2; - * @return string - */ - public function getRegionCode() - { - return $this->region_code; - } - - /** - * Required. CLDR region code of the country/region of the address. This - * is never inferred and it is up to the user to ensure the value is - * correct. See https://cldr.unicode.org/ and - * https://www.unicode.org/cldr/charts/30/supplemental/territory_information.html - * for details. Example: "CH" for Switzerland. - * - * Generated from protobuf field string region_code = 2; - * @param string $var - * @return $this - */ - public function setRegionCode($var) - { - GPBUtil::checkString($var, True); - $this->region_code = $var; - - return $this; - } - - /** - * Optional. BCP-47 language code of the contents of this address (if - * known). This is often the UI language of the input form or is expected - * to match one of the languages used in the address' country/region, or their - * transliterated equivalents. - * This can affect formatting in certain countries, but is not critical - * to the correctness of the data and will never affect any validation or - * other non-formatting related operations. - * If this value is not known, it should be omitted (rather than specifying a - * possibly incorrect default). - * Examples: "zh-Hant", "ja", "ja-Latn", "en". - * - * Generated from protobuf field string language_code = 3; - * @return string - */ - public function getLanguageCode() - { - return $this->language_code; - } - - /** - * Optional. BCP-47 language code of the contents of this address (if - * known). This is often the UI language of the input form or is expected - * to match one of the languages used in the address' country/region, or their - * transliterated equivalents. - * This can affect formatting in certain countries, but is not critical - * to the correctness of the data and will never affect any validation or - * other non-formatting related operations. - * If this value is not known, it should be omitted (rather than specifying a - * possibly incorrect default). - * Examples: "zh-Hant", "ja", "ja-Latn", "en". - * - * Generated from protobuf field string language_code = 3; - * @param string $var - * @return $this - */ - public function setLanguageCode($var) - { - GPBUtil::checkString($var, True); - $this->language_code = $var; - - return $this; - } - - /** - * Optional. Postal code of the address. Not all countries use or require - * postal codes to be present, but where they are used, they may trigger - * additional validation with other parts of the address (for example, - * state or zip code validation in the United States). - * - * Generated from protobuf field string postal_code = 4; - * @return string - */ - public function getPostalCode() - { - return $this->postal_code; - } - - /** - * Optional. Postal code of the address. Not all countries use or require - * postal codes to be present, but where they are used, they may trigger - * additional validation with other parts of the address (for example, - * state or zip code validation in the United States). - * - * Generated from protobuf field string postal_code = 4; - * @param string $var - * @return $this - */ - public function setPostalCode($var) - { - GPBUtil::checkString($var, True); - $this->postal_code = $var; - - return $this; - } - - /** - * Optional. Additional, country-specific, sorting code. This is not used - * in most regions. Where it is used, the value is either a string like - * "CEDEX", optionally followed by a number (for example, "CEDEX 7"), or just - * a number alone, representing the "sector code" (Jamaica), "delivery area - * indicator" (Malawi) or "post office indicator" (Côte d'Ivoire). - * - * Generated from protobuf field string sorting_code = 5; - * @return string - */ - public function getSortingCode() - { - return $this->sorting_code; - } - - /** - * Optional. Additional, country-specific, sorting code. This is not used - * in most regions. Where it is used, the value is either a string like - * "CEDEX", optionally followed by a number (for example, "CEDEX 7"), or just - * a number alone, representing the "sector code" (Jamaica), "delivery area - * indicator" (Malawi) or "post office indicator" (Côte d'Ivoire). - * - * Generated from protobuf field string sorting_code = 5; - * @param string $var - * @return $this - */ - public function setSortingCode($var) - { - GPBUtil::checkString($var, True); - $this->sorting_code = $var; - - return $this; - } - - /** - * Optional. Highest administrative subdivision which is used for postal - * addresses of a country or region. - * For example, this can be a state, a province, an oblast, or a prefecture. - * For Spain, this is the province and not the autonomous - * community (for example, "Barcelona" and not "Catalonia"). - * Many countries don't use an administrative area in postal addresses. For - * example, in Switzerland, this should be left unpopulated. - * - * Generated from protobuf field string administrative_area = 6; - * @return string - */ - public function getAdministrativeArea() - { - return $this->administrative_area; - } - - /** - * Optional. Highest administrative subdivision which is used for postal - * addresses of a country or region. - * For example, this can be a state, a province, an oblast, or a prefecture. - * For Spain, this is the province and not the autonomous - * community (for example, "Barcelona" and not "Catalonia"). - * Many countries don't use an administrative area in postal addresses. For - * example, in Switzerland, this should be left unpopulated. - * - * Generated from protobuf field string administrative_area = 6; - * @param string $var - * @return $this - */ - public function setAdministrativeArea($var) - { - GPBUtil::checkString($var, True); - $this->administrative_area = $var; - - return $this; - } - - /** - * Optional. Generally refers to the city or town portion of the address. - * Examples: US city, IT comune, UK post town. - * In regions of the world where localities are not well defined or do not fit - * into this structure well, leave `locality` empty and use `address_lines`. - * - * Generated from protobuf field string locality = 7; - * @return string - */ - public function getLocality() - { - return $this->locality; - } - - /** - * Optional. Generally refers to the city or town portion of the address. - * Examples: US city, IT comune, UK post town. - * In regions of the world where localities are not well defined or do not fit - * into this structure well, leave `locality` empty and use `address_lines`. - * - * Generated from protobuf field string locality = 7; - * @param string $var - * @return $this - */ - public function setLocality($var) - { - GPBUtil::checkString($var, True); - $this->locality = $var; - - return $this; - } - - /** - * Optional. Sublocality of the address. - * For example, this can be a neighborhood, borough, or district. - * - * Generated from protobuf field string sublocality = 8; - * @return string - */ - public function getSublocality() - { - return $this->sublocality; - } - - /** - * Optional. Sublocality of the address. - * For example, this can be a neighborhood, borough, or district. - * - * Generated from protobuf field string sublocality = 8; - * @param string $var - * @return $this - */ - public function setSublocality($var) - { - GPBUtil::checkString($var, True); - $this->sublocality = $var; - - return $this; - } - - /** - * Unstructured address lines describing the lower levels of an address. - * Because values in `address_lines` do not have type information and may - * sometimes contain multiple values in a single field (for example, - * "Austin, TX"), it is important that the line order is clear. The order of - * address lines should be "envelope order" for the country or region of the - * address. In places where this can vary (for example, Japan), - * `address_language` is used to make it explicit (for example, "ja" for - * large-to-small ordering and "ja-Latn" or "en" for small-to-large). In this - * way, the most specific line of an address can be selected based on the - * language. - * The minimum permitted structural representation of an address consists - * of a `region_code` with all remaining information placed in the - * `address_lines`. It would be possible to format such an address very - * approximately without geocoding, but no semantic reasoning could be - * made about any of the address components until it was at least - * partially resolved. - * Creating an address only containing a `region_code` and `address_lines` and - * then geocoding is the recommended way to handle completely unstructured - * addresses (as opposed to guessing which parts of the address should be - * localities or administrative areas). - * - * Generated from protobuf field repeated string address_lines = 9; - * @return RepeatedField - */ - public function getAddressLines() - { - return $this->address_lines; - } - - /** - * Unstructured address lines describing the lower levels of an address. - * Because values in `address_lines` do not have type information and may - * sometimes contain multiple values in a single field (for example, - * "Austin, TX"), it is important that the line order is clear. The order of - * address lines should be "envelope order" for the country or region of the - * address. In places where this can vary (for example, Japan), - * `address_language` is used to make it explicit (for example, "ja" for - * large-to-small ordering and "ja-Latn" or "en" for small-to-large). In this - * way, the most specific line of an address can be selected based on the - * language. - * The minimum permitted structural representation of an address consists - * of a `region_code` with all remaining information placed in the - * `address_lines`. It would be possible to format such an address very - * approximately without geocoding, but no semantic reasoning could be - * made about any of the address components until it was at least - * partially resolved. - * Creating an address only containing a `region_code` and `address_lines` and - * then geocoding is the recommended way to handle completely unstructured - * addresses (as opposed to guessing which parts of the address should be - * localities or administrative areas). - * - * Generated from protobuf field repeated string address_lines = 9; - * @param string[] $var - * @return $this - */ - public function setAddressLines($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->address_lines = $arr; - - return $this; - } - - /** - * Optional. The recipient at the address. - * This field may, under certain circumstances, contain multiline information. - * For example, it might contain "care of" information. - * - * Generated from protobuf field repeated string recipients = 10; - * @return RepeatedField - */ - public function getRecipients() - { - return $this->recipients; - } - - /** - * Optional. The recipient at the address. - * This field may, under certain circumstances, contain multiline information. - * For example, it might contain "care of" information. - * - * Generated from protobuf field repeated string recipients = 10; - * @param string[] $var - * @return $this - */ - public function setRecipients($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->recipients = $arr; - - return $this; - } - - /** - * Optional. The name of the organization at the address. - * - * Generated from protobuf field string organization = 11; - * @return string - */ - public function getOrganization() - { - return $this->organization; - } - - /** - * Optional. The name of the organization at the address. - * - * Generated from protobuf field string organization = 11; - * @param string $var - * @return $this - */ - public function setOrganization($var) - { - GPBUtil::checkString($var, True); - $this->organization = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Quaternion.php b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Quaternion.php deleted file mode 100644 index 61437a5940dd..000000000000 --- a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/Quaternion.php +++ /dev/null @@ -1,212 +0,0 @@ -google.type.Quaternion - */ -class Quaternion extends \Google\Protobuf\Internal\Message -{ - /** - * The x component. - * - * Generated from protobuf field double x = 1; - */ - protected $x = 0.0; - /** - * The y component. - * - * Generated from protobuf field double y = 2; - */ - protected $y = 0.0; - /** - * The z component. - * - * Generated from protobuf field double z = 3; - */ - protected $z = 0.0; - /** - * The scalar component. - * - * Generated from protobuf field double w = 4; - */ - protected $w = 0.0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type float $x - * The x component. - * @type float $y - * The y component. - * @type float $z - * The z component. - * @type float $w - * The scalar component. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Type\Quaternion::initOnce(); - parent::__construct($data); - } - - /** - * The x component. - * - * Generated from protobuf field double x = 1; - * @return float - */ - public function getX() - { - return $this->x; - } - - /** - * The x component. - * - * Generated from protobuf field double x = 1; - * @param float $var - * @return $this - */ - public function setX($var) - { - GPBUtil::checkDouble($var); - $this->x = $var; - - return $this; - } - - /** - * The y component. - * - * Generated from protobuf field double y = 2; - * @return float - */ - public function getY() - { - return $this->y; - } - - /** - * The y component. - * - * Generated from protobuf field double y = 2; - * @param float $var - * @return $this - */ - public function setY($var) - { - GPBUtil::checkDouble($var); - $this->y = $var; - - return $this; - } - - /** - * The z component. - * - * Generated from protobuf field double z = 3; - * @return float - */ - public function getZ() - { - return $this->z; - } - - /** - * The z component. - * - * Generated from protobuf field double z = 3; - * @param float $var - * @return $this - */ - public function setZ($var) - { - GPBUtil::checkDouble($var); - $this->z = $var; - - return $this; - } - - /** - * The scalar component. - * - * Generated from protobuf field double w = 4; - * @return float - */ - public function getW() - { - return $this->w; - } - - /** - * The scalar component. - * - * Generated from protobuf field double w = 4; - * @param float $var - * @return $this - */ - public function setW($var) - { - GPBUtil::checkDouble($var); - $this->w = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/TimeOfDay.php b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/TimeOfDay.php deleted file mode 100644 index ce64f28515bc..000000000000 --- a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/TimeOfDay.php +++ /dev/null @@ -1,196 +0,0 @@ -google.type.TimeOfDay - */ -class TimeOfDay extends \Google\Protobuf\Internal\Message -{ - /** - * Hours of a day in 24 hour format. Must be greater than or equal to 0 and - * typically must be less than or equal to 23. An API may choose to allow the - * value "24:00:00" for scenarios like business closing time. - * - * Generated from protobuf field int32 hours = 1; - */ - protected $hours = 0; - /** - * Minutes of an hour. Must be greater than or equal to 0 and less than or - * equal to 59. - * - * Generated from protobuf field int32 minutes = 2; - */ - protected $minutes = 0; - /** - * Seconds of a minute. Must be greater than or equal to 0 and typically must - * be less than or equal to 59. An API may allow the value 60 if it allows - * leap-seconds. - * - * Generated from protobuf field int32 seconds = 3; - */ - protected $seconds = 0; - /** - * Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 - * and less than or equal to 999,999,999. - * - * Generated from protobuf field int32 nanos = 4; - */ - protected $nanos = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $hours - * Hours of a day in 24 hour format. Must be greater than or equal to 0 and - * typically must be less than or equal to 23. An API may choose to allow the - * value "24:00:00" for scenarios like business closing time. - * @type int $minutes - * Minutes of an hour. Must be greater than or equal to 0 and less than or - * equal to 59. - * @type int $seconds - * Seconds of a minute. Must be greater than or equal to 0 and typically must - * be less than or equal to 59. An API may allow the value 60 if it allows - * leap-seconds. - * @type int $nanos - * Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 - * and less than or equal to 999,999,999. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Type\Timeofday::initOnce(); - parent::__construct($data); - } - - /** - * Hours of a day in 24 hour format. Must be greater than or equal to 0 and - * typically must be less than or equal to 23. An API may choose to allow the - * value "24:00:00" for scenarios like business closing time. - * - * Generated from protobuf field int32 hours = 1; - * @return int - */ - public function getHours() - { - return $this->hours; - } - - /** - * Hours of a day in 24 hour format. Must be greater than or equal to 0 and - * typically must be less than or equal to 23. An API may choose to allow the - * value "24:00:00" for scenarios like business closing time. - * - * Generated from protobuf field int32 hours = 1; - * @param int $var - * @return $this - */ - public function setHours($var) - { - GPBUtil::checkInt32($var); - $this->hours = $var; - - return $this; - } - - /** - * Minutes of an hour. Must be greater than or equal to 0 and less than or - * equal to 59. - * - * Generated from protobuf field int32 minutes = 2; - * @return int - */ - public function getMinutes() - { - return $this->minutes; - } - - /** - * Minutes of an hour. Must be greater than or equal to 0 and less than or - * equal to 59. - * - * Generated from protobuf field int32 minutes = 2; - * @param int $var - * @return $this - */ - public function setMinutes($var) - { - GPBUtil::checkInt32($var); - $this->minutes = $var; - - return $this; - } - - /** - * Seconds of a minute. Must be greater than or equal to 0 and typically must - * be less than or equal to 59. An API may allow the value 60 if it allows - * leap-seconds. - * - * Generated from protobuf field int32 seconds = 3; - * @return int - */ - public function getSeconds() - { - return $this->seconds; - } - - /** - * Seconds of a minute. Must be greater than or equal to 0 and typically must - * be less than or equal to 59. An API may allow the value 60 if it allows - * leap-seconds. - * - * Generated from protobuf field int32 seconds = 3; - * @param int $var - * @return $this - */ - public function setSeconds($var) - { - GPBUtil::checkInt32($var); - $this->seconds = $var; - - return $this; - } - - /** - * Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 - * and less than or equal to 999,999,999. - * - * Generated from protobuf field int32 nanos = 4; - * @return int - */ - public function getNanos() - { - return $this->nanos; - } - - /** - * Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 - * and less than or equal to 999,999,999. - * - * Generated from protobuf field int32 nanos = 4; - * @param int $var - * @return $this - */ - public function setNanos($var) - { - GPBUtil::checkInt32($var); - $this->nanos = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/TimeZone.php b/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/TimeZone.php deleted file mode 100644 index 2657d6f7d664..000000000000 --- a/owl-bot-staging/CommonProtos/type/proto/src/Google/Type/TimeZone.php +++ /dev/null @@ -1,102 +0,0 @@ -google.type.TimeZone - */ -class TimeZone extends \Google\Protobuf\Internal\Message -{ - /** - * IANA Time Zone Database time zone. For example "America/New_York". - * - * Generated from protobuf field string id = 1; - */ - protected $id = ''; - /** - * Optional. IANA Time Zone Database version number. For example "2019a". - * - * Generated from protobuf field string version = 2; - */ - protected $version = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $id - * IANA Time Zone Database time zone. For example "America/New_York". - * @type string $version - * Optional. IANA Time Zone Database version number. For example "2019a". - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Type\Datetime::initOnce(); - parent::__construct($data); - } - - /** - * IANA Time Zone Database time zone. For example "America/New_York". - * - * Generated from protobuf field string id = 1; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * IANA Time Zone Database time zone. For example "America/New_York". - * - * Generated from protobuf field string id = 1; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - - /** - * Optional. IANA Time Zone Database version number. For example "2019a". - * - * Generated from protobuf field string version = 2; - * @return string - */ - public function getVersion() - { - return $this->version; - } - - /** - * Optional. IANA Time Zone Database version number. For example "2019a". - * - * Generated from protobuf field string version = 2; - * @param string $var - * @return $this - */ - public function setVersion($var) - { - GPBUtil::checkString($var, True); - $this->version = $var; - - return $this; - } - -} -