| 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 Optional as _Optional |
| 18 |
from typing import Union as _Union |
| 19 |
|
| 20 |
from google.protobuf import descriptor as _descriptor |
| 21 |
from google.protobuf import descriptor_pb2 as _descriptor_pb2 |
| 22 |
from google.protobuf import message as _message |
| 23 |
from google.protobuf.internal import containers as _containers |
| 24 |
from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper |
| 25 |
|
| 26 |
DESCRIPTOR: _descriptor.FileDescriptor |
| 27 |
RESOURCE_REFERENCE_FIELD_NUMBER: _ClassVar[int] |
| 28 |
resource_reference: _descriptor.FieldDescriptor |
| 29 |
RESOURCE_DEFINITION_FIELD_NUMBER: _ClassVar[int] |
| 30 |
resource_definition: _descriptor.FieldDescriptor |
| 31 |
RESOURCE_FIELD_NUMBER: _ClassVar[int] |
| 32 |
resource: _descriptor.FieldDescriptor |
| 33 |
|
| 34 |
class ResourceDescriptor(_message.Message): |
| 35 |
__slots__ = ( |
| 36 |
"type", |
| 37 |
"pattern", |
| 38 |
"name_field", |
| 39 |
"history", |
| 40 |
"plural", |
| 41 |
"singular", |
| 42 |
"style", |
| 43 |
) |
| 44 |
class History(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): |
| 45 |
__slots__ = () |
| 46 |
HISTORY_UNSPECIFIED: _ClassVar[ResourceDescriptor.History] |
| 47 |
ORIGINALLY_SINGLE_PATTERN: _ClassVar[ResourceDescriptor.History] |
| 48 |
FUTURE_MULTI_PATTERN: _ClassVar[ResourceDescriptor.History] |
| 49 |
|
| 50 |
HISTORY_UNSPECIFIED: ResourceDescriptor.History |
| 51 |
ORIGINALLY_SINGLE_PATTERN: ResourceDescriptor.History |
| 52 |
FUTURE_MULTI_PATTERN: ResourceDescriptor.History |
| 53 |
class Style(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): |
| 54 |
__slots__ = () |
| 55 |
STYLE_UNSPECIFIED: _ClassVar[ResourceDescriptor.Style] |
| 56 |
DECLARATIVE_FRIENDLY: _ClassVar[ResourceDescriptor.Style] |
| 57 |
|
| 58 |
STYLE_UNSPECIFIED: ResourceDescriptor.Style |
| 59 |
DECLARATIVE_FRIENDLY: ResourceDescriptor.Style |
| 60 |
TYPE_FIELD_NUMBER: _ClassVar[int] |
| 61 |
PATTERN_FIELD_NUMBER: _ClassVar[int] |
| 62 |
NAME_FIELD_FIELD_NUMBER: _ClassVar[int] |
| 63 |
HISTORY_FIELD_NUMBER: _ClassVar[int] |
| 64 |
PLURAL_FIELD_NUMBER: _ClassVar[int] |
| 65 |
SINGULAR_FIELD_NUMBER: _ClassVar[int] |
| 66 |
STYLE_FIELD_NUMBER: _ClassVar[int] |
| 67 |
type: str |
| 68 |
pattern: _containers.RepeatedScalarFieldContainer[str] |
| 69 |
name_field: str |
| 70 |
history: ResourceDescriptor.History |
| 71 |
plural: str |
| 72 |
singular: str |
| 73 |
style: _containers.RepeatedScalarFieldContainer[ResourceDescriptor.Style] |
| 74 |
def __init__( |
| 75 |
self, |
| 76 |
type: _Optional[str] = ..., |
| 77 |
pattern: _Optional[_Iterable[str]] = ..., |
| 78 |
name_field: _Optional[str] = ..., |
| 79 |
history: _Optional[_Union[ResourceDescriptor.History, str]] = ..., |
| 80 |
plural: _Optional[str] = ..., |
| 81 |
singular: _Optional[str] = ..., |
| 82 |
style: _Optional[_Iterable[_Union[ResourceDescriptor.Style, str]]] = ..., |
| 83 |
) -> None: ... |
| 84 |
|
| 85 |
class ResourceReference(_message.Message): |
| 86 |
__slots__ = ("type", "child_type") |
| 87 |
TYPE_FIELD_NUMBER: _ClassVar[int] |
| 88 |
CHILD_TYPE_FIELD_NUMBER: _ClassVar[int] |
| 89 |
type: str |
| 90 |
child_type: str |
| 91 |
def __init__( |
| 92 |
self, type: _Optional[str] = ..., child_type: _Optional[str] = ... |
| 93 |
) -> None: ... |