massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / protobuf / google / protobuf / struct_pb2.pyi
1 """
2 @generated by mypy-protobuf.  Do not edit manually!
3 isort:skip_file
4 """
5 import builtins
6 import google.protobuf.descriptor
7 import google.protobuf.internal.containers
8 import google.protobuf.internal.enum_type_wrapper
9 import google.protobuf.internal.well_known_types
10 import google.protobuf.message
11 import typing
12 import typing_extensions
13
14 DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ...
15
16 class NullValue(_NullValue, metaclass=_NullValueEnumTypeWrapper):
17     """`NullValue` is a singleton enumeration to represent the null value for the
18     `Value` type union.
19
20      The JSON representation for `NullValue` is JSON `null`.
21     """
22     pass
23 class _NullValue:
24     V = typing.NewType('V', builtins.int)
25 class _NullValueEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_NullValue.V], builtins.type):
26     DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ...
27     NULL_VALUE = NullValue.V(0)
28     """Null value."""
29
30
31 NULL_VALUE = NullValue.V(0)
32 """Null value."""
33
34 global___NullValue = NullValue
35
36
37 class Struct(google.protobuf.message.Message, google.protobuf.internal.well_known_types.Struct):
38     """`Struct` represents a structured data value, consisting of fields
39     which map to dynamically typed values. In some languages, `Struct`
40     might be supported by a native representation. For example, in
41     scripting languages like JS a struct is represented as an
42     object. The details of that representation are described together
43     with the proto support for the language.
44
45     The JSON representation for `Struct` is JSON object.
46     """
47     DESCRIPTOR: google.protobuf.descriptor.Descriptor = ...
48     class FieldsEntry(google.protobuf.message.Message):
49         DESCRIPTOR: google.protobuf.descriptor.Descriptor = ...
50         KEY_FIELD_NUMBER: builtins.int
51         VALUE_FIELD_NUMBER: builtins.int
52         key: typing.Text = ...
53         @property
54         def value(self) -> global___Value: ...
55         def __init__(self,
56             *,
57             key : typing.Text = ...,
58             value : typing.Optional[global___Value] = ...,
59             ) -> None: ...
60         def HasField(self, field_name: typing_extensions.Literal["value",b"value"]) -> builtins.bool: ...
61         def ClearField(self, field_name: typing_extensions.Literal["key",b"key","value",b"value"]) -> None: ...
62
63     FIELDS_FIELD_NUMBER: builtins.int
64     @property
65     def fields(self) -> google.protobuf.internal.containers.MessageMap[typing.Text, global___Value]:
66         """Unordered map of dynamically typed values."""
67         pass
68     def __init__(self,
69         *,
70         fields : typing.Optional[typing.Mapping[typing.Text, global___Value]] = ...,
71         ) -> None: ...
72     def ClearField(self, field_name: typing_extensions.Literal["fields",b"fields"]) -> None: ...
73 global___Struct = Struct
74
75 class Value(google.protobuf.message.Message):
76     """`Value` represents a dynamically typed value which can be either
77     null, a number, a string, a boolean, a recursive struct value, or a
78     list of values. A producer of value is expected to set one of that
79     variants, absence of any variant indicates an error.
80
81     The JSON representation for `Value` is JSON value.
82     """
83     DESCRIPTOR: google.protobuf.descriptor.Descriptor = ...
84     NULL_VALUE_FIELD_NUMBER: builtins.int
85     NUMBER_VALUE_FIELD_NUMBER: builtins.int
86     STRING_VALUE_FIELD_NUMBER: builtins.int
87     BOOL_VALUE_FIELD_NUMBER: builtins.int
88     STRUCT_VALUE_FIELD_NUMBER: builtins.int
89     LIST_VALUE_FIELD_NUMBER: builtins.int
90     null_value: global___NullValue.V = ...
91     """Represents a null value."""
92
93     number_value: builtins.float = ...
94     """Represents a double value."""
95
96     string_value: typing.Text = ...
97     """Represents a string value."""
98
99     bool_value: builtins.bool = ...
100     """Represents a boolean value."""
101
102     @property
103     def struct_value(self) -> global___Struct:
104         """Represents a structured value."""
105         pass
106     @property
107     def list_value(self) -> global___ListValue:
108         """Represents a repeated `Value`."""
109         pass
110     def __init__(self,
111         *,
112         null_value : global___NullValue.V = ...,
113         number_value : builtins.float = ...,
114         string_value : typing.Text = ...,
115         bool_value : builtins.bool = ...,
116         struct_value : typing.Optional[global___Struct] = ...,
117         list_value : typing.Optional[global___ListValue] = ...,
118         ) -> None: ...
119     def HasField(self, field_name: typing_extensions.Literal["bool_value",b"bool_value","kind",b"kind","list_value",b"list_value","null_value",b"null_value","number_value",b"number_value","string_value",b"string_value","struct_value",b"struct_value"]) -> builtins.bool: ...
120     def ClearField(self, field_name: typing_extensions.Literal["bool_value",b"bool_value","kind",b"kind","list_value",b"list_value","null_value",b"null_value","number_value",b"number_value","string_value",b"string_value","struct_value",b"struct_value"]) -> None: ...
121     def WhichOneof(self, oneof_group: typing_extensions.Literal["kind",b"kind"]) -> typing.Optional[typing_extensions.Literal["null_value","number_value","string_value","bool_value","struct_value","list_value"]]: ...
122 global___Value = Value
123
124 class ListValue(google.protobuf.message.Message, google.protobuf.internal.well_known_types.ListValue):
125     """`ListValue` is a wrapper around a repeated field of values.
126
127     The JSON representation for `ListValue` is JSON array.
128     """
129     DESCRIPTOR: google.protobuf.descriptor.Descriptor = ...
130     VALUES_FIELD_NUMBER: builtins.int
131     @property
132     def values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Value]:
133         """Repeated field of dynamically typed values."""
134         pass
135     def __init__(self,
136         *,
137         values : typing.Optional[typing.Iterable[global___Value]] = ...,
138         ) -> None: ...
139     def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ...
140 global___ListValue = ListValue