| 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 Mapping as _Mapping |
| 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 duration_pb2 as _duration_pb2 |
| 22 |
from google.protobuf import message as _message |
| 23 |
|
| 24 |
DESCRIPTOR: _descriptor.FileDescriptor |
| 25 |
|
| 26 |
class DateTime(_message.Message): |
| 27 |
__slots__ = ( |
| 28 |
"year", |
| 29 |
"month", |
| 30 |
"day", |
| 31 |
"hours", |
| 32 |
"minutes", |
| 33 |
"seconds", |
| 34 |
"nanos", |
| 35 |
"utc_offset", |
| 36 |
"time_zone", |
| 37 |
) |
| 38 |
YEAR_FIELD_NUMBER: _ClassVar[int] |
| 39 |
MONTH_FIELD_NUMBER: _ClassVar[int] |
| 40 |
DAY_FIELD_NUMBER: _ClassVar[int] |
| 41 |
HOURS_FIELD_NUMBER: _ClassVar[int] |
| 42 |
MINUTES_FIELD_NUMBER: _ClassVar[int] |
| 43 |
SECONDS_FIELD_NUMBER: _ClassVar[int] |
| 44 |
NANOS_FIELD_NUMBER: _ClassVar[int] |
| 45 |
UTC_OFFSET_FIELD_NUMBER: _ClassVar[int] |
| 46 |
TIME_ZONE_FIELD_NUMBER: _ClassVar[int] |
| 47 |
year: int |
| 48 |
month: int |
| 49 |
day: int |
| 50 |
hours: int |
| 51 |
minutes: int |
| 52 |
seconds: int |
| 53 |
nanos: int |
| 54 |
utc_offset: _duration_pb2.Duration |
| 55 |
time_zone: TimeZone |
| 56 |
def __init__( |
| 57 |
self, |
| 58 |
year: _Optional[int] = ..., |
| 59 |
month: _Optional[int] = ..., |
| 60 |
day: _Optional[int] = ..., |
| 61 |
hours: _Optional[int] = ..., |
| 62 |
minutes: _Optional[int] = ..., |
| 63 |
seconds: _Optional[int] = ..., |
| 64 |
nanos: _Optional[int] = ..., |
| 65 |
utc_offset: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ..., |
| 66 |
time_zone: _Optional[_Union[TimeZone, _Mapping]] = ..., |
| 67 |
) -> None: ... |
| 68 |
|
| 69 |
class TimeZone(_message.Message): |
| 70 |
__slots__ = ("id", "version") |
| 71 |
ID_FIELD_NUMBER: _ClassVar[int] |
| 72 |
VERSION_FIELD_NUMBER: _ClassVar[int] |
| 73 |
id: str |
| 74 |
version: str |
| 75 |
def __init__( |
| 76 |
self, id: _Optional[str] = ..., version: _Optional[str] = ... |
| 77 |
) -> None: ... |