protobuf 6.33.0rc1__cp39-abi3-manylinux2014_s390x.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of protobuf might be problematic. Click here for more details.
- google/_upb/_message.abi3.so +0 -0
- google/protobuf/__init__.py +10 -0
- google/protobuf/any.py +53 -0
- google/protobuf/any_pb2.py +37 -0
- google/protobuf/api_pb2.py +47 -0
- google/protobuf/compiler/__init__.py +0 -0
- google/protobuf/compiler/plugin_pb2.py +46 -0
- google/protobuf/descriptor.py +1676 -0
- google/protobuf/descriptor_database.py +172 -0
- google/protobuf/descriptor_pb2.py +3363 -0
- google/protobuf/descriptor_pool.py +1370 -0
- google/protobuf/duration.py +100 -0
- google/protobuf/duration_pb2.py +37 -0
- google/protobuf/empty_pb2.py +37 -0
- google/protobuf/field_mask_pb2.py +37 -0
- google/protobuf/internal/__init__.py +7 -0
- google/protobuf/internal/api_implementation.py +136 -0
- google/protobuf/internal/builder.py +118 -0
- google/protobuf/internal/containers.py +690 -0
- google/protobuf/internal/decoder.py +1066 -0
- google/protobuf/internal/encoder.py +806 -0
- google/protobuf/internal/enum_type_wrapper.py +112 -0
- google/protobuf/internal/extension_dict.py +194 -0
- google/protobuf/internal/field_mask.py +312 -0
- google/protobuf/internal/message_listener.py +55 -0
- google/protobuf/internal/python_edition_defaults.py +5 -0
- google/protobuf/internal/python_message.py +1599 -0
- google/protobuf/internal/testing_refleaks.py +128 -0
- google/protobuf/internal/type_checkers.py +455 -0
- google/protobuf/internal/well_known_types.py +695 -0
- google/protobuf/internal/wire_format.py +245 -0
- google/protobuf/json_format.py +1111 -0
- google/protobuf/message.py +448 -0
- google/protobuf/message_factory.py +190 -0
- google/protobuf/proto.py +153 -0
- google/protobuf/proto_builder.py +111 -0
- google/protobuf/proto_json.py +83 -0
- google/protobuf/proto_text.py +129 -0
- google/protobuf/pyext/__init__.py +0 -0
- google/protobuf/pyext/cpp_message.py +49 -0
- google/protobuf/reflection.py +36 -0
- google/protobuf/runtime_version.py +104 -0
- google/protobuf/service_reflection.py +272 -0
- google/protobuf/source_context_pb2.py +37 -0
- google/protobuf/struct_pb2.py +47 -0
- google/protobuf/symbol_database.py +179 -0
- google/protobuf/testdata/__init__.py +0 -0
- google/protobuf/text_encoding.py +106 -0
- google/protobuf/text_format.py +1884 -0
- google/protobuf/timestamp.py +112 -0
- google/protobuf/timestamp_pb2.py +37 -0
- google/protobuf/type_pb2.py +53 -0
- google/protobuf/unknown_fields.py +96 -0
- google/protobuf/util/__init__.py +0 -0
- google/protobuf/wrappers_pb2.py +53 -0
- protobuf-6.33.0rc1.dist-info/LICENSE +32 -0
- protobuf-6.33.0rc1.dist-info/METADATA +17 -0
- protobuf-6.33.0rc1.dist-info/RECORD +59 -0
- protobuf-6.33.0rc1.dist-info/WHEEL +4 -0
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
# Protocol Buffers - Google's data interchange format
|
|
2
|
+
# Copyright 2008 Google Inc. All rights reserved.
|
|
3
|
+
#
|
|
4
|
+
# Use of this source code is governed by a BSD-style
|
|
5
|
+
# license that can be found in the LICENSE file or at
|
|
6
|
+
# https://developers.google.com/open-source/licenses/bsd
|
|
7
|
+
|
|
8
|
+
"""Contains the Timestamp helper APIs."""
|
|
9
|
+
|
|
10
|
+
import datetime
|
|
11
|
+
from typing import Optional
|
|
12
|
+
|
|
13
|
+
from google.protobuf.timestamp_pb2 import Timestamp
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def from_json_string(value: str) -> Timestamp:
|
|
17
|
+
"""Parse a RFC 3339 date string format to Timestamp.
|
|
18
|
+
|
|
19
|
+
Args:
|
|
20
|
+
value: A date string. Any fractional digits (or none) and any offset are
|
|
21
|
+
accepted as long as they fit into nano-seconds precision. Example of
|
|
22
|
+
accepted format: '1972-01-01T10:00:20.021-05:00'
|
|
23
|
+
|
|
24
|
+
Raises:
|
|
25
|
+
ValueError: On parsing problems.
|
|
26
|
+
"""
|
|
27
|
+
timestamp = Timestamp()
|
|
28
|
+
timestamp.FromJsonString(value)
|
|
29
|
+
return timestamp
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
def from_microseconds(micros: float) -> Timestamp:
|
|
33
|
+
"""Converts microseconds since epoch to Timestamp."""
|
|
34
|
+
timestamp = Timestamp()
|
|
35
|
+
timestamp.FromMicroseconds(micros)
|
|
36
|
+
return timestamp
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
def from_milliseconds(millis: float) -> Timestamp:
|
|
40
|
+
"""Converts milliseconds since epoch to Timestamp."""
|
|
41
|
+
timestamp = Timestamp()
|
|
42
|
+
timestamp.FromMilliseconds(millis)
|
|
43
|
+
return timestamp
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
def from_nanoseconds(nanos: float) -> Timestamp:
|
|
47
|
+
"""Converts nanoseconds since epoch to Timestamp."""
|
|
48
|
+
timestamp = Timestamp()
|
|
49
|
+
timestamp.FromNanoseconds(nanos)
|
|
50
|
+
return timestamp
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
def from_seconds(seconds: float) -> Timestamp:
|
|
54
|
+
"""Converts seconds since epoch to Timestamp."""
|
|
55
|
+
timestamp = Timestamp()
|
|
56
|
+
timestamp.FromSeconds(seconds)
|
|
57
|
+
return timestamp
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
def from_current_time() -> Timestamp:
|
|
61
|
+
"""Converts the current UTC to Timestamp."""
|
|
62
|
+
timestamp = Timestamp()
|
|
63
|
+
timestamp.FromDatetime(datetime.datetime.now(tz=datetime.timezone.utc))
|
|
64
|
+
return timestamp
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
def to_json_string(ts: Timestamp) -> str:
|
|
68
|
+
"""Converts Timestamp to RFC 3339 date string format.
|
|
69
|
+
|
|
70
|
+
Returns:
|
|
71
|
+
A string converted from timestamp. The string is always Z-normalized
|
|
72
|
+
and uses 3, 6 or 9 fractional digits as required to represent the
|
|
73
|
+
exact time. Example of the return format: '1972-01-01T10:00:20.021Z'
|
|
74
|
+
"""
|
|
75
|
+
return ts.ToJsonString()
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
def to_microseconds(ts: Timestamp) -> int:
|
|
79
|
+
"""Converts Timestamp to microseconds since epoch."""
|
|
80
|
+
return ts.ToMicroseconds()
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
def to_milliseconds(ts: Timestamp) -> int:
|
|
84
|
+
"""Converts Timestamp to milliseconds since epoch."""
|
|
85
|
+
return ts.ToMilliseconds()
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
def to_nanoseconds(ts: Timestamp) -> int:
|
|
89
|
+
"""Converts Timestamp to nanoseconds since epoch."""
|
|
90
|
+
return ts.ToNanoseconds()
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
def to_seconds(ts: Timestamp) -> int:
|
|
94
|
+
"""Converts Timestamp to seconds since epoch."""
|
|
95
|
+
return ts.ToSeconds()
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
def to_datetime(
|
|
99
|
+
ts: Timestamp, tz: Optional[datetime.tzinfo] = None
|
|
100
|
+
) -> datetime.datetime:
|
|
101
|
+
"""Converts Timestamp to a datetime.
|
|
102
|
+
|
|
103
|
+
Args:
|
|
104
|
+
tz: A datetime.tzinfo subclass; defaults to None.
|
|
105
|
+
|
|
106
|
+
Returns:
|
|
107
|
+
If tzinfo is None, returns a timezone-naive UTC datetime (with no timezone
|
|
108
|
+
information, i.e. not aware that it's UTC).
|
|
109
|
+
|
|
110
|
+
Otherwise, returns a timezone-aware datetime in the input timezone.
|
|
111
|
+
"""
|
|
112
|
+
return ts.ToDatetime(tzinfo=tz)
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: google/protobuf/timestamp.proto
|
|
5
|
+
# Protobuf Python Version: 6.33.0-rc1
|
|
6
|
+
"""Generated protocol buffer code."""
|
|
7
|
+
from google.protobuf import descriptor as _descriptor
|
|
8
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
10
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
11
|
+
from google.protobuf.internal import builder as _builder
|
|
12
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
+
_runtime_version.Domain.PUBLIC,
|
|
14
|
+
6,
|
|
15
|
+
33,
|
|
16
|
+
0,
|
|
17
|
+
'-rc1',
|
|
18
|
+
'google/protobuf/timestamp.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1fgoogle/protobuf/timestamp.proto\x12\x0fgoogle.protobuf\";\n\tTimestamp\x12\x18\n\x07seconds\x18\x01 \x01(\x03R\x07seconds\x12\x14\n\x05nanos\x18\x02 \x01(\x05R\x05nanosB\x85\x01\n\x13\x63om.google.protobufB\x0eTimestampProtoP\x01Z2google.golang.org/protobuf/types/known/timestamppb\xf8\x01\x01\xa2\x02\x03GPB\xaa\x02\x1eGoogle.Protobuf.WellKnownTypesb\x06proto3')
|
|
28
|
+
|
|
29
|
+
_globals = globals()
|
|
30
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
31
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'google.protobuf.timestamp_pb2', _globals)
|
|
32
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
33
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
34
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\023com.google.protobufB\016TimestampProtoP\001Z2google.golang.org/protobuf/types/known/timestamppb\370\001\001\242\002\003GPB\252\002\036Google.Protobuf.WellKnownTypes'
|
|
35
|
+
_globals['_TIMESTAMP']._serialized_start=52
|
|
36
|
+
_globals['_TIMESTAMP']._serialized_end=111
|
|
37
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: google/protobuf/type.proto
|
|
5
|
+
# Protobuf Python Version: 6.33.0-rc1
|
|
6
|
+
"""Generated protocol buffer code."""
|
|
7
|
+
from google.protobuf import descriptor as _descriptor
|
|
8
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
10
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
11
|
+
from google.protobuf.internal import builder as _builder
|
|
12
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
+
_runtime_version.Domain.PUBLIC,
|
|
14
|
+
6,
|
|
15
|
+
33,
|
|
16
|
+
0,
|
|
17
|
+
'-rc1',
|
|
18
|
+
'google/protobuf/type.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
from google.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2
|
|
26
|
+
from google.protobuf import source_context_pb2 as google_dot_protobuf_dot_source__context__pb2
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1agoogle/protobuf/type.proto\x12\x0fgoogle.protobuf\x1a\x19google/protobuf/any.proto\x1a$google/protobuf/source_context.proto\"\xa7\x02\n\x04Type\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12.\n\x06\x66ields\x18\x02 \x03(\x0b\x32\x16.google.protobuf.FieldR\x06\x66ields\x12\x16\n\x06oneofs\x18\x03 \x03(\tR\x06oneofs\x12\x31\n\x07options\x18\x04 \x03(\x0b\x32\x17.google.protobuf.OptionR\x07options\x12\x45\n\x0esource_context\x18\x05 \x01(\x0b\x32\x1e.google.protobuf.SourceContextR\rsourceContext\x12/\n\x06syntax\x18\x06 \x01(\x0e\x32\x17.google.protobuf.SyntaxR\x06syntax\x12\x18\n\x07\x65\x64ition\x18\x07 \x01(\tR\x07\x65\x64ition\"\xb4\x06\n\x05\x46ield\x12/\n\x04kind\x18\x01 \x01(\x0e\x32\x1b.google.protobuf.Field.KindR\x04kind\x12\x44\n\x0b\x63\x61rdinality\x18\x02 \x01(\x0e\x32\".google.protobuf.Field.CardinalityR\x0b\x63\x61rdinality\x12\x16\n\x06number\x18\x03 \x01(\x05R\x06number\x12\x12\n\x04name\x18\x04 \x01(\tR\x04name\x12\x19\n\x08type_url\x18\x06 \x01(\tR\x07typeUrl\x12\x1f\n\x0boneof_index\x18\x07 \x01(\x05R\noneofIndex\x12\x16\n\x06packed\x18\x08 \x01(\x08R\x06packed\x12\x31\n\x07options\x18\t \x03(\x0b\x32\x17.google.protobuf.OptionR\x07options\x12\x1b\n\tjson_name\x18\n \x01(\tR\x08jsonName\x12#\n\rdefault_value\x18\x0b \x01(\tR\x0c\x64\x65\x66\x61ultValue\"\xc8\x02\n\x04Kind\x12\x10\n\x0cTYPE_UNKNOWN\x10\x00\x12\x0f\n\x0bTYPE_DOUBLE\x10\x01\x12\x0e\n\nTYPE_FLOAT\x10\x02\x12\x0e\n\nTYPE_INT64\x10\x03\x12\x0f\n\x0bTYPE_UINT64\x10\x04\x12\x0e\n\nTYPE_INT32\x10\x05\x12\x10\n\x0cTYPE_FIXED64\x10\x06\x12\x10\n\x0cTYPE_FIXED32\x10\x07\x12\r\n\tTYPE_BOOL\x10\x08\x12\x0f\n\x0bTYPE_STRING\x10\t\x12\x0e\n\nTYPE_GROUP\x10\n\x12\x10\n\x0cTYPE_MESSAGE\x10\x0b\x12\x0e\n\nTYPE_BYTES\x10\x0c\x12\x0f\n\x0bTYPE_UINT32\x10\r\x12\r\n\tTYPE_ENUM\x10\x0e\x12\x11\n\rTYPE_SFIXED32\x10\x0f\x12\x11\n\rTYPE_SFIXED64\x10\x10\x12\x0f\n\x0bTYPE_SINT32\x10\x11\x12\x0f\n\x0bTYPE_SINT64\x10\x12\"t\n\x0b\x43\x61rdinality\x12\x17\n\x13\x43\x41RDINALITY_UNKNOWN\x10\x00\x12\x18\n\x14\x43\x41RDINALITY_OPTIONAL\x10\x01\x12\x18\n\x14\x43\x41RDINALITY_REQUIRED\x10\x02\x12\x18\n\x14\x43\x41RDINALITY_REPEATED\x10\x03\"\x99\x02\n\x04\x45num\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x38\n\tenumvalue\x18\x02 \x03(\x0b\x32\x1a.google.protobuf.EnumValueR\tenumvalue\x12\x31\n\x07options\x18\x03 \x03(\x0b\x32\x17.google.protobuf.OptionR\x07options\x12\x45\n\x0esource_context\x18\x04 \x01(\x0b\x32\x1e.google.protobuf.SourceContextR\rsourceContext\x12/\n\x06syntax\x18\x05 \x01(\x0e\x32\x17.google.protobuf.SyntaxR\x06syntax\x12\x18\n\x07\x65\x64ition\x18\x06 \x01(\tR\x07\x65\x64ition\"j\n\tEnumValue\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x16\n\x06number\x18\x02 \x01(\x05R\x06number\x12\x31\n\x07options\x18\x03 \x03(\x0b\x32\x17.google.protobuf.OptionR\x07options\"H\n\x06Option\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12*\n\x05value\x18\x02 \x01(\x0b\x32\x14.google.protobuf.AnyR\x05value*C\n\x06Syntax\x12\x11\n\rSYNTAX_PROTO2\x10\x00\x12\x11\n\rSYNTAX_PROTO3\x10\x01\x12\x13\n\x0fSYNTAX_EDITIONS\x10\x02\x42{\n\x13\x63om.google.protobufB\tTypeProtoP\x01Z-google.golang.org/protobuf/types/known/typepb\xf8\x01\x01\xa2\x02\x03GPB\xaa\x02\x1eGoogle.Protobuf.WellKnownTypesb\x06proto3')
|
|
30
|
+
|
|
31
|
+
_globals = globals()
|
|
32
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
33
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'google.protobuf.type_pb2', _globals)
|
|
34
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
35
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
36
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\023com.google.protobufB\tTypeProtoP\001Z-google.golang.org/protobuf/types/known/typepb\370\001\001\242\002\003GPB\252\002\036Google.Protobuf.WellKnownTypes'
|
|
37
|
+
_globals['_SYNTAX']._serialized_start=1699
|
|
38
|
+
_globals['_SYNTAX']._serialized_end=1766
|
|
39
|
+
_globals['_TYPE']._serialized_start=113
|
|
40
|
+
_globals['_TYPE']._serialized_end=408
|
|
41
|
+
_globals['_FIELD']._serialized_start=411
|
|
42
|
+
_globals['_FIELD']._serialized_end=1231
|
|
43
|
+
_globals['_FIELD_KIND']._serialized_start=785
|
|
44
|
+
_globals['_FIELD_KIND']._serialized_end=1113
|
|
45
|
+
_globals['_FIELD_CARDINALITY']._serialized_start=1115
|
|
46
|
+
_globals['_FIELD_CARDINALITY']._serialized_end=1231
|
|
47
|
+
_globals['_ENUM']._serialized_start=1234
|
|
48
|
+
_globals['_ENUM']._serialized_end=1515
|
|
49
|
+
_globals['_ENUMVALUE']._serialized_start=1517
|
|
50
|
+
_globals['_ENUMVALUE']._serialized_end=1623
|
|
51
|
+
_globals['_OPTION']._serialized_start=1625
|
|
52
|
+
_globals['_OPTION']._serialized_end=1697
|
|
53
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
# Protocol Buffers - Google's data interchange format
|
|
2
|
+
# Copyright 2008 Google Inc. All rights reserved.
|
|
3
|
+
#
|
|
4
|
+
# Use of this source code is governed by a BSD-style
|
|
5
|
+
# license that can be found in the LICENSE file or at
|
|
6
|
+
# https://developers.google.com/open-source/licenses/bsd
|
|
7
|
+
|
|
8
|
+
"""Contains Unknown Fields APIs.
|
|
9
|
+
|
|
10
|
+
Simple usage example:
|
|
11
|
+
unknown_field_set = UnknownFieldSet(message)
|
|
12
|
+
for unknown_field in unknown_field_set:
|
|
13
|
+
wire_type = unknown_field.wire_type
|
|
14
|
+
field_number = unknown_field.field_number
|
|
15
|
+
data = unknown_field.data
|
|
16
|
+
"""
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
from google.protobuf.internal import api_implementation
|
|
20
|
+
|
|
21
|
+
if api_implementation._c_module is not None: # pylint: disable=protected-access
|
|
22
|
+
UnknownFieldSet = api_implementation._c_module.UnknownFieldSet # pylint: disable=protected-access
|
|
23
|
+
else:
|
|
24
|
+
from google.protobuf.internal import decoder # pylint: disable=g-import-not-at-top
|
|
25
|
+
from google.protobuf.internal import wire_format # pylint: disable=g-import-not-at-top
|
|
26
|
+
|
|
27
|
+
class UnknownField:
|
|
28
|
+
"""A parsed unknown field."""
|
|
29
|
+
|
|
30
|
+
# Disallows assignment to other attributes.
|
|
31
|
+
__slots__ = ['_field_number', '_wire_type', '_data']
|
|
32
|
+
|
|
33
|
+
def __init__(self, field_number, wire_type, data):
|
|
34
|
+
self._field_number = field_number
|
|
35
|
+
self._wire_type = wire_type
|
|
36
|
+
self._data = data
|
|
37
|
+
return
|
|
38
|
+
|
|
39
|
+
@property
|
|
40
|
+
def field_number(self):
|
|
41
|
+
return self._field_number
|
|
42
|
+
|
|
43
|
+
@property
|
|
44
|
+
def wire_type(self):
|
|
45
|
+
return self._wire_type
|
|
46
|
+
|
|
47
|
+
@property
|
|
48
|
+
def data(self):
|
|
49
|
+
return self._data
|
|
50
|
+
|
|
51
|
+
class UnknownFieldSet:
|
|
52
|
+
"""UnknownField container."""
|
|
53
|
+
|
|
54
|
+
# Disallows assignment to other attributes.
|
|
55
|
+
__slots__ = ['_values']
|
|
56
|
+
|
|
57
|
+
def __init__(self, msg):
|
|
58
|
+
|
|
59
|
+
def InternalAdd(field_number, wire_type, data):
|
|
60
|
+
unknown_field = UnknownField(field_number, wire_type, data)
|
|
61
|
+
self._values.append(unknown_field)
|
|
62
|
+
|
|
63
|
+
self._values = []
|
|
64
|
+
msg_des = msg.DESCRIPTOR
|
|
65
|
+
# pylint: disable=protected-access
|
|
66
|
+
unknown_fields = msg._unknown_fields
|
|
67
|
+
if (msg_des.has_options and
|
|
68
|
+
msg_des.GetOptions().message_set_wire_format):
|
|
69
|
+
local_decoder = decoder.UnknownMessageSetItemDecoder()
|
|
70
|
+
for _, buffer in unknown_fields:
|
|
71
|
+
(field_number, data) = local_decoder(memoryview(buffer))
|
|
72
|
+
InternalAdd(field_number, wire_format.WIRETYPE_LENGTH_DELIMITED, data)
|
|
73
|
+
else:
|
|
74
|
+
for tag_bytes, buffer in unknown_fields:
|
|
75
|
+
field_number, wire_type = decoder.DecodeTag(tag_bytes)
|
|
76
|
+
if field_number == 0:
|
|
77
|
+
raise RuntimeError('Field number 0 is illegal.')
|
|
78
|
+
(data, _) = decoder._DecodeUnknownField(
|
|
79
|
+
memoryview(buffer), 0, len(buffer), field_number, wire_type
|
|
80
|
+
)
|
|
81
|
+
InternalAdd(field_number, wire_type, data)
|
|
82
|
+
|
|
83
|
+
def __getitem__(self, index):
|
|
84
|
+
size = len(self._values)
|
|
85
|
+
if index < 0:
|
|
86
|
+
index += size
|
|
87
|
+
if index < 0 or index >= size:
|
|
88
|
+
raise IndexError('index %d out of range'.index)
|
|
89
|
+
|
|
90
|
+
return self._values[index]
|
|
91
|
+
|
|
92
|
+
def __len__(self):
|
|
93
|
+
return len(self._values)
|
|
94
|
+
|
|
95
|
+
def __iter__(self):
|
|
96
|
+
return iter(self._values)
|
|
File without changes
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: google/protobuf/wrappers.proto
|
|
5
|
+
# Protobuf Python Version: 6.33.0-rc1
|
|
6
|
+
"""Generated protocol buffer code."""
|
|
7
|
+
from google.protobuf import descriptor as _descriptor
|
|
8
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
10
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
11
|
+
from google.protobuf.internal import builder as _builder
|
|
12
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
+
_runtime_version.Domain.PUBLIC,
|
|
14
|
+
6,
|
|
15
|
+
33,
|
|
16
|
+
0,
|
|
17
|
+
'-rc1',
|
|
18
|
+
'google/protobuf/wrappers.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1egoogle/protobuf/wrappers.proto\x12\x0fgoogle.protobuf\"#\n\x0b\x44oubleValue\x12\x14\n\x05value\x18\x01 \x01(\x01R\x05value\"\"\n\nFloatValue\x12\x14\n\x05value\x18\x01 \x01(\x02R\x05value\"\"\n\nInt64Value\x12\x14\n\x05value\x18\x01 \x01(\x03R\x05value\"#\n\x0bUInt64Value\x12\x14\n\x05value\x18\x01 \x01(\x04R\x05value\"\"\n\nInt32Value\x12\x14\n\x05value\x18\x01 \x01(\x05R\x05value\"#\n\x0bUInt32Value\x12\x14\n\x05value\x18\x01 \x01(\rR\x05value\"!\n\tBoolValue\x12\x14\n\x05value\x18\x01 \x01(\x08R\x05value\"#\n\x0bStringValue\x12\x14\n\x05value\x18\x01 \x01(\tR\x05value\"\"\n\nBytesValue\x12\x14\n\x05value\x18\x01 \x01(\x0cR\x05valueB\x83\x01\n\x13\x63om.google.protobufB\rWrappersProtoP\x01Z1google.golang.org/protobuf/types/known/wrapperspb\xf8\x01\x01\xa2\x02\x03GPB\xaa\x02\x1eGoogle.Protobuf.WellKnownTypesb\x06proto3')
|
|
28
|
+
|
|
29
|
+
_globals = globals()
|
|
30
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
31
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'google.protobuf.wrappers_pb2', _globals)
|
|
32
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
33
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
34
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\023com.google.protobufB\rWrappersProtoP\001Z1google.golang.org/protobuf/types/known/wrapperspb\370\001\001\242\002\003GPB\252\002\036Google.Protobuf.WellKnownTypes'
|
|
35
|
+
_globals['_DOUBLEVALUE']._serialized_start=51
|
|
36
|
+
_globals['_DOUBLEVALUE']._serialized_end=86
|
|
37
|
+
_globals['_FLOATVALUE']._serialized_start=88
|
|
38
|
+
_globals['_FLOATVALUE']._serialized_end=122
|
|
39
|
+
_globals['_INT64VALUE']._serialized_start=124
|
|
40
|
+
_globals['_INT64VALUE']._serialized_end=158
|
|
41
|
+
_globals['_UINT64VALUE']._serialized_start=160
|
|
42
|
+
_globals['_UINT64VALUE']._serialized_end=195
|
|
43
|
+
_globals['_INT32VALUE']._serialized_start=197
|
|
44
|
+
_globals['_INT32VALUE']._serialized_end=231
|
|
45
|
+
_globals['_UINT32VALUE']._serialized_start=233
|
|
46
|
+
_globals['_UINT32VALUE']._serialized_end=268
|
|
47
|
+
_globals['_BOOLVALUE']._serialized_start=270
|
|
48
|
+
_globals['_BOOLVALUE']._serialized_end=303
|
|
49
|
+
_globals['_STRINGVALUE']._serialized_start=305
|
|
50
|
+
_globals['_STRINGVALUE']._serialized_end=340
|
|
51
|
+
_globals['_BYTESVALUE']._serialized_start=342
|
|
52
|
+
_globals['_BYTESVALUE']._serialized_end=376
|
|
53
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
Copyright 2008 Google Inc. All rights reserved.
|
|
2
|
+
|
|
3
|
+
Redistribution and use in source and binary forms, with or without
|
|
4
|
+
modification, are permitted provided that the following conditions are
|
|
5
|
+
met:
|
|
6
|
+
|
|
7
|
+
* Redistributions of source code must retain the above copyright
|
|
8
|
+
notice, this list of conditions and the following disclaimer.
|
|
9
|
+
* Redistributions in binary form must reproduce the above
|
|
10
|
+
copyright notice, this list of conditions and the following disclaimer
|
|
11
|
+
in the documentation and/or other materials provided with the
|
|
12
|
+
distribution.
|
|
13
|
+
* Neither the name of Google Inc. nor the names of its
|
|
14
|
+
contributors may be used to endorse or promote products derived from
|
|
15
|
+
this software without specific prior written permission.
|
|
16
|
+
|
|
17
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
18
|
+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
19
|
+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
20
|
+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
21
|
+
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
22
|
+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
23
|
+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
24
|
+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
25
|
+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
26
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
27
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
28
|
+
|
|
29
|
+
Code generated by the Protocol Buffer compiler is owned by the owner
|
|
30
|
+
of the input file used when generating it. This code is not
|
|
31
|
+
standalone and requires a support library to be linked with it. This
|
|
32
|
+
support library is itself covered by the above license.
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: protobuf
|
|
3
|
+
Author: protobuf@googlegroups.com
|
|
4
|
+
Author-email: protobuf@googlegroups.com
|
|
5
|
+
Home-page: https://developers.google.com/protocol-buffers/
|
|
6
|
+
License: 3-Clause BSD License
|
|
7
|
+
Classifier: Programming Language :: Python
|
|
8
|
+
Classifier: Programming Language :: Python :: 3
|
|
9
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
10
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
14
|
+
Requires-Python: >=3.9
|
|
15
|
+
Version: 6.33.0rc1
|
|
16
|
+
|
|
17
|
+
UNKNOWN
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
google/_upb/_message.abi3.so,sha256=FStrk-sXDiDlYelWhEH84XhW8sAVRBgvP5CwmMCpuBo,473048
|
|
2
|
+
google/protobuf/__init__.py,sha256=nNcNM4MooN_KxyipALkQal7m1Mktj80T8rscW_Vo39c,349
|
|
3
|
+
google/protobuf/any.py,sha256=37npo8IyL1i9heh7Dxih_RKQE2BKFuv7m9NXbWxoSdo,1319
|
|
4
|
+
google/protobuf/compiler/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
|
+
google/protobuf/descriptor.py,sha256=h69lWJP0qsxrpA659qda5IxwvIdFC1eqnkZxe7u-bTI,53428
|
|
6
|
+
google/protobuf/descriptor_database.py,sha256=FHAOZc5uz86IsMqr3Omc19AenuwrOknut2wCQ0mGsGc,5936
|
|
7
|
+
google/protobuf/descriptor_pool.py,sha256=SV_5FYtwXsqVrc4Z3Shfgtb7R_IrnXLkvdKAqHhMxcA,48793
|
|
8
|
+
google/protobuf/duration.py,sha256=vQTwVyiiyGm3Wy3LW8ohA3tkGkrUKoTn_p4SdEBU8bM,2672
|
|
9
|
+
google/protobuf/internal/__init__.py,sha256=8d_k1ksNWIuqPDEEEtOjgC3Xx8kAXD2-04R7mxJlSbs,272
|
|
10
|
+
google/protobuf/internal/api_implementation.py,sha256=EQ7EImSxJDLiM3AXoQwuuD7K0Lz50072CS1trt2bzqo,4669
|
|
11
|
+
google/protobuf/internal/builder.py,sha256=VPnrHqqt6J66RwZe19hLm01Zl1vP_jFKpL-bC8nEncY,4112
|
|
12
|
+
google/protobuf/internal/containers.py,sha256=xC6yATB8GxCAlVQtZj0QIfSPcGORJb0kDxoWAKRV7YQ,22175
|
|
13
|
+
google/protobuf/internal/decoder.py,sha256=TwaTXm9Ioew3oO3Wa1hgVYLiHVe7BFdF4NAsjv2FyGs,37588
|
|
14
|
+
google/protobuf/internal/encoder.py,sha256=Vujp3bU10dLBasUnRaGZKD-ZTLq7zEGA8wKh7mVLR-g,27297
|
|
15
|
+
google/protobuf/internal/enum_type_wrapper.py,sha256=PNhK87a_NP1JIfFHuYFibpE4hHdHYawXwqZxMEtvsvo,3747
|
|
16
|
+
google/protobuf/internal/extension_dict.py,sha256=4af0h32jq5BwL7uB6ym3ipdzz3kTH75WGMHLHluGsNA,7141
|
|
17
|
+
google/protobuf/internal/field_mask.py,sha256=QbOfhzKaTkvYR9k7HYigVidVgyobBRUicBibO71ufHo,10442
|
|
18
|
+
google/protobuf/internal/message_listener.py,sha256=uh8viU_MvWdDe4Kl14CromKVFAzBMPlMzFZ4vew_UJc,2008
|
|
19
|
+
google/protobuf/internal/python_edition_defaults.py,sha256=iYUirQbUcoj-fLbWZJwtItLWHk406eSFIPJegaFbEhA,542
|
|
20
|
+
google/protobuf/internal/python_message.py,sha256=S4SsXLNX9zGzR_XDfiMONv0M4gxzxwqswbtPnAV6qEg,57984
|
|
21
|
+
google/protobuf/internal/testing_refleaks.py,sha256=VnitLBTnynWcayPsvHlScMZCczZs7vf0_x8csPFBxBg,4495
|
|
22
|
+
google/protobuf/internal/type_checkers.py,sha256=gCOL390SA4A4EQvnUpa-lKxyxHtmiZBoLQelo6JBdX4,17252
|
|
23
|
+
google/protobuf/internal/well_known_types.py,sha256=b2MhbOXaQY8FRzpiTGcUT16R9DKhZEeEj3xBkYNdwAk,22850
|
|
24
|
+
google/protobuf/internal/wire_format.py,sha256=EbAXZdb23iCObCZxNgaMx8-VRF2UjgyPrBCTtV10Rx8,7087
|
|
25
|
+
google/protobuf/json_format.py,sha256=XX-sJs4yqJ1nMB2L-cMouWb9nKM11_8-TvXjp-2IZP8,38042
|
|
26
|
+
google/protobuf/message.py,sha256=IeyQE68rj_YcUhy20XS5Dr3tU27_JYZ5GLLHm-TbbD4,14917
|
|
27
|
+
google/protobuf/message_factory.py,sha256=uELqRiWo-3pBJupnQTlHsGJmgDJ3p4HqX3T7d46MMug,6607
|
|
28
|
+
google/protobuf/proto.py,sha256=cuqMtlacasjTNQdfyKiTubEKXNapgdAEcnQTv65AmoE,4389
|
|
29
|
+
google/protobuf/proto_builder.py,sha256=pGU2L_pPEYkylZkrvHMCUH2PFWvc9wI-awwT7F5i740,4203
|
|
30
|
+
google/protobuf/proto_json.py,sha256=fUy0Vb4m_831-oabn7JbzmyipcoJpQWtBdgTMoj8Yp4,3094
|
|
31
|
+
google/protobuf/proto_text.py,sha256=ZD21wifWF_HVMcJkVJBo3jGNFxqELCrgOeIshuz565U,5307
|
|
32
|
+
google/protobuf/pyext/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
33
|
+
google/protobuf/pyext/cpp_message.py,sha256=8uSrWX9kD3HPRhntvTPc4bgnfQ2BzX9FPC73CgifXAw,1715
|
|
34
|
+
google/protobuf/reflection.py,sha256=gMVfWDmnckEbp4vTR5gKq2HDwRb_eI5rfylZOoFSmEQ,1241
|
|
35
|
+
google/protobuf/runtime_version.py,sha256=czOfSRZLe2nzcazlx4Qa5XcxQNrP863xtC_kAc10Hao,3037
|
|
36
|
+
google/protobuf/service_reflection.py,sha256=WHElGnPgywDtn3X8xKVNsZZOCgJOTzgpAyTd-rmCKGU,10058
|
|
37
|
+
google/protobuf/symbol_database.py,sha256=s0pExuYyJvi1q0pD82AEoJtH2EDZ2vAZCIqja84CKcc,5752
|
|
38
|
+
google/protobuf/testdata/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
39
|
+
google/protobuf/text_encoding.py,sha256=Ao1Q6OP8i4p8VDtvpe8uW1BjX7aQZvkJggvhFYYrB7w,3621
|
|
40
|
+
google/protobuf/text_format.py,sha256=URjGtTNUqe0OSJ-3AAjEjhHH9L084OoUD8gsGFZkvkg,64149
|
|
41
|
+
google/protobuf/timestamp.py,sha256=s23LWq6hDiFIeAtVUn8LwfEc5aRM7WAwTz_hCaOVndk,3133
|
|
42
|
+
google/protobuf/unknown_fields.py,sha256=r3CJ2e4_XUq41TcgB8w6E0yZxxzSTCQLF4C7OOHa9lo,3065
|
|
43
|
+
google/protobuf/util/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
44
|
+
google/protobuf/any_pb2.py,sha256=5DWa3_BwgMFjCWMzsjaJUT_cXnGGojszp0GNWu7GFL0,1733
|
|
45
|
+
google/protobuf/api_pb2.py,sha256=FchKvCs6IkFheWmHlS8toz-cMOGqKiIaqHYdjHPG_7s,3608
|
|
46
|
+
google/protobuf/compiler/plugin_pb2.py,sha256=4icQ5zSA9OwuZiAMz-HYKHW6b4-Gtos7OX2kQRbRHEU,3805
|
|
47
|
+
google/protobuf/descriptor_pb2.py,sha256=4KXuOZJyAnD87OIrOGbW-wHdUCjmMtaYI3TR3YuskGc,366168
|
|
48
|
+
google/protobuf/duration_pb2.py,sha256=aPCpzVBGS24wpedgPEDsjz4m1pu4M8jjGA_1s1S6D9c,1813
|
|
49
|
+
google/protobuf/empty_pb2.py,sha256=vm9QmSsDqAdSfwC0oi6i0pl4sOwZvlTDZa79EIYsMSQ,1677
|
|
50
|
+
google/protobuf/field_mask_pb2.py,sha256=BOhZ5WQM7ivX-_I_ZwPjq9OImGecUcPuurq73oZbyps,1773
|
|
51
|
+
google/protobuf/source_context_pb2.py,sha256=ERYU5CasvIndxeB2Kr8gXlsJjyqzecfPzIbYVzlYXgg,1799
|
|
52
|
+
google/protobuf/struct_pb2.py,sha256=_ymlUqP7ZmCjA1hqghoYN0m3d8B9XQPG1R4NSdIO-T0,3069
|
|
53
|
+
google/protobuf/timestamp_pb2.py,sha256=lhQFagV5qaY83s_fx_fTFrC7fCCufxPSBgRxV2BD6RM,1823
|
|
54
|
+
google/protobuf/type_pb2.py,sha256=oxefLQb4I78F9CMt-dQArb1xijrH5yKYLtPhWZx2qFs,5446
|
|
55
|
+
google/protobuf/wrappers_pb2.py,sha256=90O7NhpYM5EWm0I34MTtKI0RtWqmYXClWlqMN1HPNLM,3045
|
|
56
|
+
protobuf-6.33.0rc1.dist-info/WHEEL,sha256=HxE5Qfqns7Y26yfhWow4cS1vXMuSODjTzcx_j4O2adQ,109
|
|
57
|
+
protobuf-6.33.0rc1.dist-info/METADATA,sha256=VveyMGz_h52UesWtBFH2p1KjRNw5pkXFn3dP_uMJQBQ,596
|
|
58
|
+
protobuf-6.33.0rc1.dist-info/LICENSE,sha256=bl4RcySv2UTc9n82zzKYQ7wakiKajNm7Vz16gxMP6n0,1732
|
|
59
|
+
protobuf-6.33.0rc1.dist-info/RECORD,,
|