@@ -13,7 +13,6 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
13
See the License for the specific language governing permissions and
14
14
limitations under the License.
15
15
"""
16
-
17
16
import builtins
18
17
import collections .abc
19
18
import google .protobuf .any_pb2
31
30
32
31
DESCRIPTOR : google .protobuf .descriptor .FileDescriptor
33
32
34
- @typing .final
33
+ @typing_extensions .final
35
34
class HTTPExtension (google .protobuf .message .Message ):
36
35
"""HTTPExtension includes HTTP verb and querystring
37
36
when Dapr runtime delivers HTTP content.
@@ -90,11 +89,11 @@ class HTTPExtension(google.protobuf.message.Message):
90
89
verb : global___HTTPExtension .Verb .ValueType = ...,
91
90
querystring : builtins .str = ...,
92
91
) -> None : ...
93
- def ClearField (self , field_name : typing .Literal ["querystring" , b"querystring" , "verb" , b"verb" ]) -> None : ...
92
+ def ClearField (self , field_name : typing_extensions .Literal ["querystring" , b"querystring" , "verb" , b"verb" ]) -> None : ...
94
93
95
94
global___HTTPExtension = HTTPExtension
96
95
97
- @typing .final
96
+ @typing_extensions .final
98
97
class InvokeRequest (google .protobuf .message .Message ):
99
98
"""InvokeRequest is the message to invoke a method with the data.
100
99
This message is used in InvokeService of Dapr gRPC Service and OnInvoke
@@ -109,26 +108,24 @@ class InvokeRequest(google.protobuf.message.Message):
109
108
HTTP_EXTENSION_FIELD_NUMBER : builtins .int
110
109
method : builtins .str
111
110
"""Required. method is a method name which will be invoked by caller."""
112
- content_type : builtins .str
113
- """The type of data content.
114
-
115
- This field is required if data delivers http request body
116
- Otherwise, this is optional.
117
- """
118
111
@property
119
112
def data (self ) -> google .protobuf .any_pb2 .Any :
120
113
"""Required in unary RPCs. Bytes value or Protobuf message which caller sent.
121
114
Dapr treats Any.value as bytes type if Any.type_url is unset.
122
115
"""
116
+ content_type : builtins .str
117
+ """The type of data content.
123
118
119
+ This field is required if data delivers http request body
120
+ Otherwise, this is optional.
121
+ """
124
122
@property
125
123
def http_extension (self ) -> global___HTTPExtension :
126
124
"""HTTP specific fields if request conveys http-compatible request.
127
125
128
126
This field is required for http-compatible request. Otherwise,
129
127
this field is optional.
130
128
"""
131
-
132
129
def __init__ (
133
130
self ,
134
131
* ,
@@ -137,12 +134,12 @@ class InvokeRequest(google.protobuf.message.Message):
137
134
content_type : builtins .str = ...,
138
135
http_extension : global___HTTPExtension | None = ...,
139
136
) -> None : ...
140
- def HasField (self , field_name : typing .Literal ["data" , b"data" , "http_extension" , b"http_extension" ]) -> builtins .bool : ...
141
- def ClearField (self , field_name : typing .Literal ["content_type" , b"content_type" , "data" , b"data" , "http_extension" , b"http_extension" , "method" , b"method" ]) -> None : ...
137
+ def HasField (self , field_name : typing_extensions .Literal ["data" , b"data" , "http_extension" , b"http_extension" ]) -> builtins .bool : ...
138
+ def ClearField (self , field_name : typing_extensions .Literal ["content_type" , b"content_type" , "data" , b"data" , "http_extension" , b"http_extension" , "method" , b"method" ]) -> None : ...
142
139
143
140
global___InvokeRequest = InvokeRequest
144
141
145
- @typing .final
142
+ @typing_extensions .final
146
143
class InvokeResponse (google .protobuf .message .Message ):
147
144
"""InvokeResponse is the response message including data and its content type
148
145
from app callback.
@@ -154,24 +151,23 @@ class InvokeResponse(google.protobuf.message.Message):
154
151
155
152
DATA_FIELD_NUMBER : builtins .int
156
153
CONTENT_TYPE_FIELD_NUMBER : builtins .int
157
- content_type : builtins .str
158
- """Required. The type of data content."""
159
154
@property
160
155
def data (self ) -> google .protobuf .any_pb2 .Any :
161
156
"""Required in unary RPCs. The content body of InvokeService response."""
162
-
157
+ content_type : builtins .str
158
+ """Required. The type of data content."""
163
159
def __init__ (
164
160
self ,
165
161
* ,
166
162
data : google .protobuf .any_pb2 .Any | None = ...,
167
163
content_type : builtins .str = ...,
168
164
) -> None : ...
169
- def HasField (self , field_name : typing .Literal ["data" , b"data" ]) -> builtins .bool : ...
170
- def ClearField (self , field_name : typing .Literal ["content_type" , b"content_type" , "data" , b"data" ]) -> None : ...
165
+ def HasField (self , field_name : typing_extensions .Literal ["data" , b"data" ]) -> builtins .bool : ...
166
+ def ClearField (self , field_name : typing_extensions .Literal ["content_type" , b"content_type" , "data" , b"data" ]) -> None : ...
171
167
172
168
global___InvokeResponse = InvokeResponse
173
169
174
- @typing .final
170
+ @typing_extensions .final
175
171
class StreamPayload (google .protobuf .message .Message ):
176
172
"""Chunk of data sent in a streaming request or response.
177
173
This is used in requests including InternalInvokeRequestStream.
@@ -195,17 +191,17 @@ class StreamPayload(google.protobuf.message.Message):
195
191
data : builtins .bytes = ...,
196
192
seq : builtins .int = ...,
197
193
) -> None : ...
198
- def ClearField (self , field_name : typing .Literal ["data" , b"data" , "seq" , b"seq" ]) -> None : ...
194
+ def ClearField (self , field_name : typing_extensions .Literal ["data" , b"data" , "seq" , b"seq" ]) -> None : ...
199
195
200
196
global___StreamPayload = StreamPayload
201
197
202
- @typing .final
198
+ @typing_extensions .final
203
199
class StateItem (google .protobuf .message .Message ):
204
200
"""StateItem represents state key, value, and additional options to save state."""
205
201
206
202
DESCRIPTOR : google .protobuf .descriptor .Descriptor
207
203
208
- @typing .final
204
+ @typing_extensions .final
209
205
class MetadataEntry (google .protobuf .message .Message ):
210
206
DESCRIPTOR : google .protobuf .descriptor .Descriptor
211
207
@@ -219,7 +215,7 @@ class StateItem(google.protobuf.message.Message):
219
215
key : builtins .str = ...,
220
216
value : builtins .str = ...,
221
217
) -> None : ...
222
- def ClearField (self , field_name : typing .Literal ["key" , b"key" , "value" , b"value" ]) -> None : ...
218
+ def ClearField (self , field_name : typing_extensions .Literal ["key" , b"key" , "value" , b"value" ]) -> None : ...
223
219
224
220
KEY_FIELD_NUMBER : builtins .int
225
221
VALUE_FIELD_NUMBER : builtins .int
@@ -235,15 +231,12 @@ class StateItem(google.protobuf.message.Message):
235
231
"""The entity tag which represents the specific version of data.
236
232
The exact ETag format is defined by the corresponding data store.
237
233
"""
238
-
239
234
@property
240
235
def metadata (self ) -> google .protobuf .internal .containers .ScalarMap [builtins .str , builtins .str ]:
241
236
"""The metadata which will be passed to state store component."""
242
-
243
237
@property
244
238
def options (self ) -> global___StateOptions :
245
239
"""Options for concurrency and consistency to save the state."""
246
-
247
240
def __init__ (
248
241
self ,
249
242
* ,
@@ -253,12 +246,12 @@ class StateItem(google.protobuf.message.Message):
253
246
metadata : collections .abc .Mapping [builtins .str , builtins .str ] | None = ...,
254
247
options : global___StateOptions | None = ...,
255
248
) -> None : ...
256
- def HasField (self , field_name : typing .Literal ["etag" , b"etag" , "options" , b"options" ]) -> builtins .bool : ...
257
- def ClearField (self , field_name : typing .Literal ["etag" , b"etag" , "key" , b"key" , "metadata" , b"metadata" , "options" , b"options" , "value" , b"value" ]) -> None : ...
249
+ def HasField (self , field_name : typing_extensions .Literal ["etag" , b"etag" , "options" , b"options" ]) -> builtins .bool : ...
250
+ def ClearField (self , field_name : typing_extensions .Literal ["etag" , b"etag" , "key" , b"key" , "metadata" , b"metadata" , "options" , b"options" , "value" , b"value" ]) -> None : ...
258
251
259
252
global___StateItem = StateItem
260
253
261
- @typing .final
254
+ @typing_extensions .final
262
255
class Etag (google .protobuf .message .Message ):
263
256
"""Etag represents a state item version"""
264
257
@@ -272,11 +265,11 @@ class Etag(google.protobuf.message.Message):
272
265
* ,
273
266
value : builtins .str = ...,
274
267
) -> None : ...
275
- def ClearField (self , field_name : typing .Literal ["value" , b"value" ]) -> None : ...
268
+ def ClearField (self , field_name : typing_extensions .Literal ["value" , b"value" ]) -> None : ...
276
269
277
270
global___Etag = Etag
278
271
279
- @typing .final
272
+ @typing_extensions .final
280
273
class StateOptions (google .protobuf .message .Message ):
281
274
"""StateOptions configures concurrency and consistency for state operations"""
282
275
@@ -326,17 +319,17 @@ class StateOptions(google.protobuf.message.Message):
326
319
concurrency : global___StateOptions .StateConcurrency .ValueType = ...,
327
320
consistency : global___StateOptions .StateConsistency .ValueType = ...,
328
321
) -> None : ...
329
- def ClearField (self , field_name : typing .Literal ["concurrency" , b"concurrency" , "consistency" , b"consistency" ]) -> None : ...
322
+ def ClearField (self , field_name : typing_extensions .Literal ["concurrency" , b"concurrency" , "consistency" , b"consistency" ]) -> None : ...
330
323
331
324
global___StateOptions = StateOptions
332
325
333
- @typing .final
326
+ @typing_extensions .final
334
327
class ConfigurationItem (google .protobuf .message .Message ):
335
328
"""ConfigurationItem represents all the configuration with its name(key)."""
336
329
337
330
DESCRIPTOR : google .protobuf .descriptor .Descriptor
338
331
339
- @typing .final
332
+ @typing_extensions .final
340
333
class MetadataEntry (google .protobuf .message .Message ):
341
334
DESCRIPTOR : google .protobuf .descriptor .Descriptor
342
335
@@ -350,7 +343,7 @@ class ConfigurationItem(google.protobuf.message.Message):
350
343
key : builtins .str = ...,
351
344
value : builtins .str = ...,
352
345
) -> None : ...
353
- def ClearField (self , field_name : typing .Literal ["key" , b"key" , "value" , b"value" ]) -> None : ...
346
+ def ClearField (self , field_name : typing_extensions .Literal ["key" , b"key" , "value" , b"value" ]) -> None : ...
354
347
355
348
VALUE_FIELD_NUMBER : builtins .int
356
349
VERSION_FIELD_NUMBER : builtins .int
@@ -362,14 +355,13 @@ class ConfigurationItem(google.protobuf.message.Message):
362
355
@property
363
356
def metadata (self ) -> google .protobuf .internal .containers .ScalarMap [builtins .str , builtins .str ]:
364
357
"""the metadata which will be passed to/from configuration store component."""
365
-
366
358
def __init__ (
367
359
self ,
368
360
* ,
369
361
value : builtins .str = ...,
370
362
version : builtins .str = ...,
371
363
metadata : collections .abc .Mapping [builtins .str , builtins .str ] | None = ...,
372
364
) -> None : ...
373
- def ClearField (self , field_name : typing .Literal ["metadata" , b"metadata" , "value" , b"value" , "version" , b"version" ]) -> None : ...
365
+ def ClearField (self , field_name : typing_extensions .Literal ["metadata" , b"metadata" , "value" , b"value" , "version" , b"version" ]) -> None : ...
374
366
375
367
global___ConfigurationItem = ConfigurationItem
0 commit comments