| 1 |
# Copyright 2025 Google LLC |
| 2 |
# |
| 3 |
# Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 |
# you may not use this file except in compliance with the License. |
| 5 |
# You may obtain a copy of the License at |
| 6 |
# |
| 7 |
# http://www.apache.org/licenses/LICENSE-2.0 |
| 8 |
# |
| 9 |
# Unless required by applicable law or agreed to in writing, software |
| 10 |
# distributed under the License is distributed on an "AS IS" BASIS, |
| 11 |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 |
# See the License for the specific language governing permissions and |
| 13 |
# limitations under the License. |
| 14 |
|
| 15 |
from typing import ClassVar as _ClassVar |
| 16 |
from typing import Iterable as _Iterable |
| 17 |
from typing import Mapping as _Mapping |
| 18 |
from typing import Optional as _Optional |
| 19 |
from typing import Union as _Union |
| 20 |
|
| 21 |
from google.protobuf import api_pb2 as _api_pb2 |
| 22 |
from google.protobuf import descriptor as _descriptor |
| 23 |
from google.protobuf import message as _message |
| 24 |
from google.protobuf import type_pb2 as _type_pb2 |
| 25 |
from google.protobuf import wrappers_pb2 as _wrappers_pb2 |
| 26 |
from google.protobuf.internal import containers as _containers |
| 27 |
|
| 28 |
from google.api import auth_pb2 as _auth_pb2 |
| 29 |
from google.api import backend_pb2 as _backend_pb2 |
| 30 |
from google.api import billing_pb2 as _billing_pb2 |
| 31 |
from google.api import client_pb2 as _client_pb2 |
| 32 |
from google.api import context_pb2 as _context_pb2 |
| 33 |
from google.api import control_pb2 as _control_pb2 |
| 34 |
from google.api import documentation_pb2 as _documentation_pb2 |
| 35 |
from google.api import endpoint_pb2 as _endpoint_pb2 |
| 36 |
from google.api import http_pb2 as _http_pb2 |
| 37 |
from google.api import log_pb2 as _log_pb2 |
| 38 |
from google.api import logging_pb2 as _logging_pb2 |
| 39 |
from google.api import metric_pb2 as _metric_pb2 |
| 40 |
from google.api import monitored_resource_pb2 as _monitored_resource_pb2 |
| 41 |
from google.api import monitoring_pb2 as _monitoring_pb2 |
| 42 |
from google.api import quota_pb2 as _quota_pb2 |
| 43 |
from google.api import source_info_pb2 as _source_info_pb2 |
| 44 |
from google.api import system_parameter_pb2 as _system_parameter_pb2 |
| 45 |
from google.api import usage_pb2 as _usage_pb2 |
| 46 |
|
| 47 |
DESCRIPTOR: _descriptor.FileDescriptor |
| 48 |
|
| 49 |
class Service(_message.Message): |
| 50 |
__slots__ = ( |
| 51 |
"name", |
| 52 |
"title", |
| 53 |
"producer_project_id", |
| 54 |
"id", |
| 55 |
"apis", |
| 56 |
"types", |
| 57 |
"enums", |
| 58 |
"documentation", |
| 59 |
"backend", |
| 60 |
"http", |
| 61 |
"quota", |
| 62 |
"authentication", |
| 63 |
"context", |
| 64 |
"usage", |
| 65 |
"endpoints", |
| 66 |
"control", |
| 67 |
"logs", |
| 68 |
"metrics", |
| 69 |
"monitored_resources", |
| 70 |
"billing", |
| 71 |
"logging", |
| 72 |
"monitoring", |
| 73 |
"system_parameters", |
| 74 |
"source_info", |
| 75 |
"publishing", |
| 76 |
"config_version", |
| 77 |
) |
| 78 |
NAME_FIELD_NUMBER: _ClassVar[int] |
| 79 |
TITLE_FIELD_NUMBER: _ClassVar[int] |
| 80 |
PRODUCER_PROJECT_ID_FIELD_NUMBER: _ClassVar[int] |
| 81 |
ID_FIELD_NUMBER: _ClassVar[int] |
| 82 |
APIS_FIELD_NUMBER: _ClassVar[int] |
| 83 |
TYPES_FIELD_NUMBER: _ClassVar[int] |
| 84 |
ENUMS_FIELD_NUMBER: _ClassVar[int] |
| 85 |
DOCUMENTATION_FIELD_NUMBER: _ClassVar[int] |
| 86 |
BACKEND_FIELD_NUMBER: _ClassVar[int] |
| 87 |
HTTP_FIELD_NUMBER: _ClassVar[int] |
| 88 |
QUOTA_FIELD_NUMBER: _ClassVar[int] |
| 89 |
AUTHENTICATION_FIELD_NUMBER: _ClassVar[int] |
| 90 |
CONTEXT_FIELD_NUMBER: _ClassVar[int] |
| 91 |
USAGE_FIELD_NUMBER: _ClassVar[int] |
| 92 |
ENDPOINTS_FIELD_NUMBER: _ClassVar[int] |
| 93 |
CONTROL_FIELD_NUMBER: _ClassVar[int] |
| 94 |
LOGS_FIELD_NUMBER: _ClassVar[int] |
| 95 |
METRICS_FIELD_NUMBER: _ClassVar[int] |
| 96 |
MONITORED_RESOURCES_FIELD_NUMBER: _ClassVar[int] |
| 97 |
BILLING_FIELD_NUMBER: _ClassVar[int] |
| 98 |
LOGGING_FIELD_NUMBER: _ClassVar[int] |
| 99 |
MONITORING_FIELD_NUMBER: _ClassVar[int] |
| 100 |
SYSTEM_PARAMETERS_FIELD_NUMBER: _ClassVar[int] |
| 101 |
SOURCE_INFO_FIELD_NUMBER: _ClassVar[int] |
| 102 |
PUBLISHING_FIELD_NUMBER: _ClassVar[int] |
| 103 |
CONFIG_VERSION_FIELD_NUMBER: _ClassVar[int] |
| 104 |
name: str |
| 105 |
title: str |
| 106 |
producer_project_id: str |
| 107 |
id: str |
| 108 |
apis: _containers.RepeatedCompositeFieldContainer[_api_pb2.Api] |
| 109 |
types: _containers.RepeatedCompositeFieldContainer[_type_pb2.Type] |
| 110 |
enums: _containers.RepeatedCompositeFieldContainer[_type_pb2.Enum] |
| 111 |
documentation: _documentation_pb2.Documentation |
| 112 |
backend: _backend_pb2.Backend |
| 113 |
http: _http_pb2.Http |
| 114 |
quota: _quota_pb2.Quota |
| 115 |
authentication: _auth_pb2.Authentication |
| 116 |
context: _context_pb2.Context |
| 117 |
usage: _usage_pb2.Usage |
| 118 |
endpoints: _containers.RepeatedCompositeFieldContainer[_endpoint_pb2.Endpoint] |
| 119 |
control: _control_pb2.Control |
| 120 |
logs: _containers.RepeatedCompositeFieldContainer[_log_pb2.LogDescriptor] |
| 121 |
metrics: _containers.RepeatedCompositeFieldContainer[_metric_pb2.MetricDescriptor] |
| 122 |
monitored_resources: _containers.RepeatedCompositeFieldContainer[ |
| 123 |
_monitored_resource_pb2.MonitoredResourceDescriptor |
| 124 |
] |
| 125 |
billing: _billing_pb2.Billing |
| 126 |
logging: _logging_pb2.Logging |
| 127 |
monitoring: _monitoring_pb2.Monitoring |
| 128 |
system_parameters: _system_parameter_pb2.SystemParameters |
| 129 |
source_info: _source_info_pb2.SourceInfo |
| 130 |
publishing: _client_pb2.Publishing |
| 131 |
config_version: _wrappers_pb2.UInt32Value |
| 132 |
def __init__( |
| 133 |
self, |
| 134 |
name: _Optional[str] = ..., |
| 135 |
title: _Optional[str] = ..., |
| 136 |
producer_project_id: _Optional[str] = ..., |
| 137 |
id: _Optional[str] = ..., |
| 138 |
apis: _Optional[_Iterable[_Union[_api_pb2.Api, _Mapping]]] = ..., |
| 139 |
types: _Optional[_Iterable[_Union[_type_pb2.Type, _Mapping]]] = ..., |
| 140 |
enums: _Optional[_Iterable[_Union[_type_pb2.Enum, _Mapping]]] = ..., |
| 141 |
documentation: _Optional[ |
| 142 |
_Union[_documentation_pb2.Documentation, _Mapping] |
| 143 |
] = ..., |
| 144 |
backend: _Optional[_Union[_backend_pb2.Backend, _Mapping]] = ..., |
| 145 |
http: _Optional[_Union[_http_pb2.Http, _Mapping]] = ..., |
| 146 |
quota: _Optional[_Union[_quota_pb2.Quota, _Mapping]] = ..., |
| 147 |
authentication: _Optional[_Union[_auth_pb2.Authentication, _Mapping]] = ..., |
| 148 |
context: _Optional[_Union[_context_pb2.Context, _Mapping]] = ..., |
| 149 |
usage: _Optional[_Union[_usage_pb2.Usage, _Mapping]] = ..., |
| 150 |
endpoints: _Optional[_Iterable[_Union[_endpoint_pb2.Endpoint, _Mapping]]] = ..., |
| 151 |
control: _Optional[_Union[_control_pb2.Control, _Mapping]] = ..., |
| 152 |
logs: _Optional[_Iterable[_Union[_log_pb2.LogDescriptor, _Mapping]]] = ..., |
| 153 |
metrics: _Optional[ |
| 154 |
_Iterable[_Union[_metric_pb2.MetricDescriptor, _Mapping]] |
| 155 |
] = ..., |
| 156 |
monitored_resources: _Optional[ |
| 157 |
_Iterable[ |
| 158 |
_Union[_monitored_resource_pb2.MonitoredResourceDescriptor, _Mapping] |
| 159 |
] |
| 160 |
] = ..., |
| 161 |
billing: _Optional[_Union[_billing_pb2.Billing, _Mapping]] = ..., |
| 162 |
logging: _Optional[_Union[_logging_pb2.Logging, _Mapping]] = ..., |
| 163 |
monitoring: _Optional[_Union[_monitoring_pb2.Monitoring, _Mapping]] = ..., |
| 164 |
system_parameters: _Optional[ |
| 165 |
_Union[_system_parameter_pb2.SystemParameters, _Mapping] |
| 166 |
] = ..., |
| 167 |
source_info: _Optional[_Union[_source_info_pb2.SourceInfo, _Mapping]] = ..., |
| 168 |
publishing: _Optional[_Union[_client_pb2.Publishing, _Mapping]] = ..., |
| 169 |
config_version: _Optional[_Union[_wrappers_pb2.UInt32Value, _Mapping]] = ..., |
| 170 |
) -> None: ... |