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