th2-grpc-lw-data-provider 2.1.0.dev3871883101__tar.gz → 2.1.0.dev5869560953__tar.gz
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.
- {th2_grpc_lw_data_provider-2.1.0.dev3871883101 → th2_grpc_lw_data_provider-2.1.0.dev5869560953}/PKG-INFO +1 -1
- {th2_grpc_lw_data_provider-2.1.0.dev3871883101 → th2_grpc_lw_data_provider-2.1.0.dev5869560953}/package_info.json +1 -1
- {th2_grpc_lw_data_provider-2.1.0.dev3871883101 → th2_grpc_lw_data_provider-2.1.0.dev5869560953}/setup.py +6 -6
- {th2_grpc_lw_data_provider-2.1.0.dev3871883101 → th2_grpc_lw_data_provider-2.1.0.dev5869560953}/th2_grpc_lw_data_provider/data_provider_service.py +4 -1
- {th2_grpc_lw_data_provider-2.1.0.dev3871883101 → th2_grpc_lw_data_provider-2.1.0.dev5869560953}/th2_grpc_lw_data_provider/lw_data_provider.proto +224 -199
- th2_grpc_lw_data_provider-2.1.0.dev5869560953/th2_grpc_lw_data_provider/lw_data_provider_pb2.py +87 -0
- {th2_grpc_lw_data_provider-2.1.0.dev3871883101 → th2_grpc_lw_data_provider-2.1.0.dev5869560953}/th2_grpc_lw_data_provider/lw_data_provider_pb2.pyi +341 -177
- {th2_grpc_lw_data_provider-2.1.0.dev3871883101 → th2_grpc_lw_data_provider-2.1.0.dev5869560953}/th2_grpc_lw_data_provider/lw_data_provider_pb2_grpc.py +36 -3
- {th2_grpc_lw_data_provider-2.1.0.dev3871883101 → th2_grpc_lw_data_provider-2.1.0.dev5869560953}/th2_grpc_lw_data_provider/queue_data_provider_pb2.py +22 -21
- {th2_grpc_lw_data_provider-2.1.0.dev3871883101 → th2_grpc_lw_data_provider-2.1.0.dev5869560953}/th2_grpc_lw_data_provider/queue_data_provider_pb2.pyi +87 -56
- {th2_grpc_lw_data_provider-2.1.0.dev3871883101 → th2_grpc_lw_data_provider-2.1.0.dev5869560953}/th2_grpc_lw_data_provider.egg-info/PKG-INFO +1 -1
- th2_grpc_lw_data_provider-2.1.0.dev5869560953/th2_grpc_lw_data_provider.egg-info/requires.txt +2 -0
- th2_grpc_lw_data_provider-2.1.0.dev3871883101/th2_grpc_lw_data_provider/lw_data_provider_pb2.py +0 -78
- th2_grpc_lw_data_provider-2.1.0.dev3871883101/th2_grpc_lw_data_provider.egg-info/requires.txt +0 -1
- {th2_grpc_lw_data_provider-2.1.0.dev3871883101 → th2_grpc_lw_data_provider-2.1.0.dev5869560953}/README.md +0 -0
- {th2_grpc_lw_data_provider-2.1.0.dev3871883101 → th2_grpc_lw_data_provider-2.1.0.dev5869560953}/setup.cfg +0 -0
- {th2_grpc_lw_data_provider-2.1.0.dev3871883101 → th2_grpc_lw_data_provider-2.1.0.dev5869560953}/th2_grpc_lw_data_provider/__init__.py +0 -0
- {th2_grpc_lw_data_provider-2.1.0.dev3871883101 → th2_grpc_lw_data_provider-2.1.0.dev5869560953}/th2_grpc_lw_data_provider/py.typed +0 -0
- {th2_grpc_lw_data_provider-2.1.0.dev3871883101 → th2_grpc_lw_data_provider-2.1.0.dev5869560953}/th2_grpc_lw_data_provider/queue_data_provider.proto +0 -0
- {th2_grpc_lw_data_provider-2.1.0.dev3871883101 → th2_grpc_lw_data_provider-2.1.0.dev5869560953}/th2_grpc_lw_data_provider/queue_data_provider_pb2_grpc.py +0 -0
- {th2_grpc_lw_data_provider-2.1.0.dev3871883101 → th2_grpc_lw_data_provider-2.1.0.dev5869560953}/th2_grpc_lw_data_provider/queue_data_provider_service.py +0 -0
- {th2_grpc_lw_data_provider-2.1.0.dev3871883101 → th2_grpc_lw_data_provider-2.1.0.dev5869560953}/th2_grpc_lw_data_provider.egg-info/SOURCES.txt +0 -0
- {th2_grpc_lw_data_provider-2.1.0.dev3871883101 → th2_grpc_lw_data_provider-2.1.0.dev5869560953}/th2_grpc_lw_data_provider.egg-info/dependency_links.txt +0 -0
- {th2_grpc_lw_data_provider-2.1.0.dev3871883101 → th2_grpc_lw_data_provider-2.1.0.dev5869560953}/th2_grpc_lw_data_provider.egg-info/top_level.txt +0 -0
|
@@ -37,8 +37,8 @@ class ProtoGenerator(Command):
|
|
|
37
37
|
pass
|
|
38
38
|
|
|
39
39
|
def run(self):
|
|
40
|
-
proto_path = os.path.abspath('
|
|
41
|
-
gen_path = os.path.abspath('
|
|
40
|
+
proto_path = os.path.abspath('proto')
|
|
41
|
+
gen_path = os.path.abspath('build/generated/source/proto/main/services/python')
|
|
42
42
|
|
|
43
43
|
if not os.path.exists(gen_path):
|
|
44
44
|
os.makedirs(gen_path)
|
|
@@ -70,10 +70,9 @@ class ProtoGenerator(Command):
|
|
|
70
70
|
class CustomDist(sdist):
|
|
71
71
|
|
|
72
72
|
def run(self):
|
|
73
|
-
copy_tree(f'
|
|
73
|
+
copy_tree(f'proto/{package_name}', package_name)
|
|
74
74
|
|
|
75
|
-
copy_tree(f'
|
|
76
|
-
copy_tree(f'src/gen/main/services/python/{package_name}', package_name)
|
|
75
|
+
copy_tree(f'build/generated/source/proto/main/services/python/{package_name}', package_name)
|
|
77
76
|
Path(f'{package_name}/__init__.py').touch()
|
|
78
77
|
Path(f'{package_name}/py.typed').touch()
|
|
79
78
|
|
|
@@ -121,7 +120,8 @@ setup(
|
|
|
121
120
|
license='Apache License 2.0',
|
|
122
121
|
python_requires='>=3.7',
|
|
123
122
|
install_requires=[
|
|
124
|
-
'th2-grpc-common
|
|
123
|
+
'th2-grpc-common==4.3.0.dev0',
|
|
124
|
+
'mypy-protobuf==3.4'
|
|
125
125
|
],
|
|
126
126
|
packages=packages,
|
|
127
127
|
package_data=package_data,
|
|
@@ -24,4 +24,7 @@ class DataProviderService(object):
|
|
|
24
24
|
return self.connector.create_request('SearchMessageGroups', request, timeout, properties)
|
|
25
25
|
|
|
26
26
|
def GetBooks(self, request, timeout=None, properties=None):
|
|
27
|
-
return self.connector.create_request('GetBooks', request, timeout, properties)
|
|
27
|
+
return self.connector.create_request('GetBooks', request, timeout, properties)
|
|
28
|
+
|
|
29
|
+
def GetPageInfo(self, request, timeout=None, properties=None):
|
|
30
|
+
return self.connector.create_request('GetPageInfo', request, timeout, properties)
|
|
@@ -1,200 +1,225 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright 2020-
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
syntax = "proto3";
|
|
18
|
-
|
|
19
|
-
package th2.data_provider.lw;
|
|
20
|
-
|
|
21
|
-
import "th2_grpc_common/common.proto";
|
|
22
|
-
import "google/protobuf/timestamp.proto";
|
|
23
|
-
import "google/protobuf/any.proto";
|
|
24
|
-
import "google/protobuf/wrappers.proto";
|
|
25
|
-
|
|
26
|
-
option java_multiple_files = true;
|
|
27
|
-
option java_package = "com.exactpro.th2.dataprovider.lw.grpc";
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
service DataProvider {
|
|
31
|
-
|
|
32
|
-
/* returns a single event with the specified id */
|
|
33
|
-
rpc GetEvent (EventID) returns (EventResponse);
|
|
34
|
-
|
|
35
|
-
/* returns a single message with the specified id */
|
|
36
|
-
rpc GetMessage (MessageID) returns (MessageGroupResponse);
|
|
37
|
-
|
|
38
|
-
/* returns a list of message stream names */
|
|
39
|
-
rpc GetMessageStreams (MessageStreamsRequest) returns (MessageStreamsResponse);
|
|
40
|
-
|
|
41
|
-
/* creates a message stream that matches the filter. */
|
|
42
|
-
rpc SearchMessages (MessageSearchRequest) returns (stream MessageSearchResponse);
|
|
43
|
-
|
|
44
|
-
/* creates an event or an event metadata stream that matches the filter. */
|
|
45
|
-
rpc SearchEvents (EventSearchRequest) returns (stream EventSearchResponse);
|
|
46
|
-
|
|
47
|
-
/*
|
|
48
|
-
Searches for messages groups in specified timestamp
|
|
49
|
-
*/
|
|
50
|
-
rpc SearchMessageGroups (MessageGroupsSearchRequest) returns (stream MessageSearchResponse);
|
|
51
|
-
|
|
52
|
-
// Returns the set of books stored in cradle cache
|
|
53
|
-
rpc GetBooks(BooksRequest) returns (BooksResponse);
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
message
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
message
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
message
|
|
115
|
-
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
message
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
google.protobuf.
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2020-2023 Exactpro (Exactpro Systems Limited)
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
syntax = "proto3";
|
|
18
|
+
|
|
19
|
+
package th2.data_provider.lw;
|
|
20
|
+
|
|
21
|
+
import "th2_grpc_common/common.proto";
|
|
22
|
+
import "google/protobuf/timestamp.proto";
|
|
23
|
+
import "google/protobuf/any.proto";
|
|
24
|
+
import "google/protobuf/wrappers.proto";
|
|
25
|
+
|
|
26
|
+
option java_multiple_files = true;
|
|
27
|
+
option java_package = "com.exactpro.th2.dataprovider.lw.grpc";
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
service DataProvider {
|
|
31
|
+
|
|
32
|
+
/* returns a single event with the specified id */
|
|
33
|
+
rpc GetEvent (EventID) returns (EventResponse);
|
|
34
|
+
|
|
35
|
+
/* returns a single message with the specified id */
|
|
36
|
+
rpc GetMessage (MessageID) returns (MessageGroupResponse);
|
|
37
|
+
|
|
38
|
+
/* returns a list of message stream names */
|
|
39
|
+
rpc GetMessageStreams (MessageStreamsRequest) returns (MessageStreamsResponse);
|
|
40
|
+
|
|
41
|
+
/* creates a message stream that matches the filter. */
|
|
42
|
+
rpc SearchMessages (MessageSearchRequest) returns (stream MessageSearchResponse);
|
|
43
|
+
|
|
44
|
+
/* creates an event or an event metadata stream that matches the filter. */
|
|
45
|
+
rpc SearchEvents (EventSearchRequest) returns (stream EventSearchResponse);
|
|
46
|
+
|
|
47
|
+
/*
|
|
48
|
+
Searches for messages groups in specified timestamp
|
|
49
|
+
*/
|
|
50
|
+
rpc SearchMessageGroups (MessageGroupsSearchRequest) returns (stream MessageSearchResponse);
|
|
51
|
+
|
|
52
|
+
// Returns the set of books stored in cradle cache
|
|
53
|
+
rpc GetBooks(BooksRequest) returns (BooksResponse);
|
|
54
|
+
|
|
55
|
+
rpc GetPageInfo(PageInfoRequest) returns (stream PageInfoResponse);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
// The scope for events to request
|
|
59
|
+
message EventScope {
|
|
60
|
+
string name = 1;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
message BookId {
|
|
64
|
+
// Name of the book to request data from
|
|
65
|
+
string name = 1;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
message MessageGroupsSearchRequest {
|
|
69
|
+
message Group {
|
|
70
|
+
string name = 1;
|
|
71
|
+
}
|
|
72
|
+
google.protobuf.Timestamp start_timestamp = 1;
|
|
73
|
+
google.protobuf.Timestamp end_timestamp = 2;
|
|
74
|
+
BookId book_id = 7;
|
|
75
|
+
repeated Group message_group = 3;
|
|
76
|
+
google.protobuf.BoolValue sort = 4;
|
|
77
|
+
// deprecated: use response_formats with only BASE_64 to achieve the same effect
|
|
78
|
+
bool raw_only = 5 [deprecated = true];
|
|
79
|
+
bool keep_open = 6;
|
|
80
|
+
repeated string response_formats = 8; // List of possible response formats (e.g. PARSED or BASE_64)
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
message MessageStreamsRequest {
|
|
84
|
+
BookId book_id = 1;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
message EventResponse {
|
|
88
|
+
EventID event_id = 1; // Current event id
|
|
89
|
+
EventID parent_event_id = 2; // Event id of a parent event. It is absent for root event
|
|
90
|
+
|
|
91
|
+
EventID batch_id = 3; // Event id of a parent event. It is absent for root event
|
|
92
|
+
|
|
93
|
+
bool is_batched = 4; // Flag indicating that the event is in batch
|
|
94
|
+
|
|
95
|
+
google.protobuf.Timestamp start_timestamp = 5;
|
|
96
|
+
google.protobuf.Timestamp end_timestamp = 6; // May be absent.
|
|
97
|
+
EventStatus status = 7; // Aggregated status of current and children events which sync written.
|
|
98
|
+
string event_name = 8;
|
|
99
|
+
string event_type = 9; // May be absent.
|
|
100
|
+
bytes body = 10; // May be absent.
|
|
101
|
+
repeated MessageID attached_message_id = 11; // ids of messages linked to this event
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
message MessageGroupItem {
|
|
105
|
+
Message message = 1;
|
|
106
|
+
bool match = 2;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
message MessageGroupResponse {
|
|
110
|
+
MessageID message_id = 1; // Message id should be unique in session
|
|
111
|
+
google.protobuf.Timestamp timestamp = 2 [deprecated = true]; // Message creation timestamp. Deprecated. Moved to MessageID
|
|
112
|
+
map<string, string> message_properties = 6; // Additional properties for the source raw message
|
|
113
|
+
bytes body_raw = 3;
|
|
114
|
+
repeated EventID attached_event_id = 4; // ids of events linked to this message group
|
|
115
|
+
repeated MessageGroupItem message_item = 5; // May be absent.
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
message FilterName {
|
|
119
|
+
string name = 1;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
message Filter {
|
|
123
|
+
FilterName name = 1;
|
|
124
|
+
bool negative = 2;
|
|
125
|
+
repeated string value = 3;
|
|
126
|
+
bool conjunct = 4;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
message EventSearchRequest {
|
|
130
|
+
google.protobuf.Timestamp start_timestamp = 1; // unix timestamp - Sets the search starting point. One of the 'start_timestamp' or 'resume_from_id' must not absent
|
|
131
|
+
google.protobuf.Timestamp end_timestamp = 2; // unix timestamp - Sets the timestamp to which the search will be performed, starting with 'start_timestamp'. When 'search_direction' is previous, end_timestamp must be less than start_timestamp. By default it is absent (the search is carried out endlessly into the past or into the future).
|
|
132
|
+
|
|
133
|
+
EventID parent_event = 3; // Match events to the specified parent. Only the immediate children of the specified event will be returned.
|
|
134
|
+
TimeRelation search_direction = 4; // Sets the lookup direction. Can be used for pagination. Set by default to NEXT.
|
|
135
|
+
|
|
136
|
+
google.protobuf.Int32Value result_count_limit = 5; // Sets the maximum amount of events to return. By default it is absent (unlimited).
|
|
137
|
+
|
|
138
|
+
repeated Filter filter = 6; // List of event search filters. (See 'search/sse/events' HTTP method https://github.com/th2-net/th2-rpt-data-provider)
|
|
139
|
+
|
|
140
|
+
BookId book_id = 7;
|
|
141
|
+
EventScope scope = 8;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
message EventSearchResponse {
|
|
145
|
+
oneof data {
|
|
146
|
+
EventResponse event = 1;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
message MessageSearchRequest {
|
|
151
|
+
google.protobuf.Timestamp start_timestamp = 1; // unix timestamp - Sets the search starting point. One of the 'start_timestamp' or 'resume_from_id' or 'message_id' must not absent
|
|
152
|
+
google.protobuf.Timestamp end_timestamp = 2; // unix timestamp - Sets the timestamp to which the search will be performed, starting with 'start_timestamp'. When search_direction is 'previous', 'end_timestamp' must be less than 'start_timestamp'. By default it is absent (the search is carried out endlessly into the past or into the future).
|
|
153
|
+
|
|
154
|
+
TimeRelation search_direction = 3; // Sets the lookup direction. Can be used for pagination. Set by default to NEXT.
|
|
155
|
+
|
|
156
|
+
google.protobuf.Int32Value result_count_limit = 4; // Sets the maximum amount of messages to return. By default it is absent (unlimited)
|
|
157
|
+
|
|
158
|
+
repeated MessageStream stream = 5; // Sets the stream names and directions to search in. Case-sensitive. Required.
|
|
159
|
+
google.protobuf.BoolValue keep_open = 6; // If the search has reached the current moment, it is necessary to wait further for the appearance of new data. Set by default to false.
|
|
160
|
+
|
|
161
|
+
repeated MessageStreamPointer stream_pointer = 7; // List of stream pointers to restore the search from. start_timestamp will be ignored if this parameter is specified. By default it is absent.
|
|
162
|
+
|
|
163
|
+
repeated string response_formats = 8; // List of possible response formats (e.g. PARSED or BASE_64)
|
|
164
|
+
BookId book_id = 9;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
message MessageSearchResponse {
|
|
168
|
+
oneof data {
|
|
169
|
+
MessageGroupResponse message = 1;
|
|
170
|
+
MessageStreamPointers message_stream_pointers = 2;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
message MessageStreamPointers {
|
|
175
|
+
repeated MessageStreamPointer message_stream_pointer = 1;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
/* This object contains the data of the last message in the stream on which
|
|
179
|
+
* the search has stopped, it is necessary to continue the search from the same point */
|
|
180
|
+
message MessageStreamPointer {
|
|
181
|
+
MessageStream message_stream = 1;
|
|
182
|
+
MessageID last_id = 2; // Might be absent if the stream has no messages
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
message MessageStream {
|
|
186
|
+
string name = 1; // Case sensitive. Required.
|
|
187
|
+
Direction direction = 2; // Required.
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
message MessageStreamsResponse {
|
|
191
|
+
repeated MessageStream message_stream = 1;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
enum TimeRelation {
|
|
195
|
+
NEXT = 0;
|
|
196
|
+
PREVIOUS = 1;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
message BooksRequest {
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
message BooksResponse {
|
|
203
|
+
repeated BookId book_ids = 1;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
message PageInfoRequest {
|
|
207
|
+
BookId book_id = 1;
|
|
208
|
+
google.protobuf.Timestamp start_timestamp = 2;
|
|
209
|
+
google.protobuf.Timestamp end_timestamp = 3;
|
|
210
|
+
google.protobuf.Int32Value result_limit = 4;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
message PageInfoResponse {
|
|
214
|
+
PageId id = 1;
|
|
215
|
+
google.protobuf.StringValue comment = 2;
|
|
216
|
+
google.protobuf.Timestamp started = 3;
|
|
217
|
+
google.protobuf.Timestamp ended = 4;
|
|
218
|
+
google.protobuf.Timestamp updated = 5;
|
|
219
|
+
google.protobuf.Timestamp removed = 6;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
message PageId {
|
|
223
|
+
BookId book_id = 1;
|
|
224
|
+
string name = 2;
|
|
200
225
|
}
|
th2_grpc_lw_data_provider-2.1.0.dev5869560953/th2_grpc_lw_data_provider/lw_data_provider_pb2.py
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: th2_grpc_lw_data_provider/lw_data_provider.proto
|
|
4
|
+
"""Generated protocol buffer code."""
|
|
5
|
+
from google.protobuf import descriptor as _descriptor
|
|
6
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
7
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
8
|
+
from google.protobuf.internal import builder as _builder
|
|
9
|
+
# @@protoc_insertion_point(imports)
|
|
10
|
+
|
|
11
|
+
_sym_db = _symbol_database.Default()
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
from th2_grpc_common import common_pb2 as th2__grpc__common_dot_common__pb2
|
|
15
|
+
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
|
16
|
+
from google.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2
|
|
17
|
+
from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n0th2_grpc_lw_data_provider/lw_data_provider.proto\x12\x14th2.data_provider.lw\x1a\x1cth2_grpc_common/common.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x19google/protobuf/any.proto\x1a\x1egoogle/protobuf/wrappers.proto\"\x1a\n\nEventScope\x12\x0c\n\x04name\x18\x01 \x01(\t\"\x16\n\x06\x42ookId\x12\x0c\n\x04name\x18\x01 \x01(\t\"\x86\x03\n\x1aMessageGroupsSearchRequest\x12\x33\n\x0fstart_timestamp\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x31\n\rend_timestamp\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12-\n\x07\x62ook_id\x18\x07 \x01(\x0b\x32\x1c.th2.data_provider.lw.BookId\x12M\n\rmessage_group\x18\x03 \x03(\x0b\x32\x36.th2.data_provider.lw.MessageGroupsSearchRequest.Group\x12(\n\x04sort\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12\x14\n\x08raw_only\x18\x05 \x01(\x08\x42\x02\x18\x01\x12\x11\n\tkeep_open\x18\x06 \x01(\x08\x12\x18\n\x10response_formats\x18\x08 \x03(\t\x1a\x15\n\x05Group\x12\x0c\n\x04name\x18\x01 \x01(\t\"F\n\x15MessageStreamsRequest\x12-\n\x07\x62ook_id\x18\x01 \x01(\x0b\x32\x1c.th2.data_provider.lw.BookId\"\xe3\x02\n\rEventResponse\x12\x1a\n\x08\x65vent_id\x18\x01 \x01(\x0b\x32\x08.EventID\x12!\n\x0fparent_event_id\x18\x02 \x01(\x0b\x32\x08.EventID\x12\x1a\n\x08\x62\x61tch_id\x18\x03 \x01(\x0b\x32\x08.EventID\x12\x12\n\nis_batched\x18\x04 \x01(\x08\x12\x33\n\x0fstart_timestamp\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x31\n\rend_timestamp\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x1c\n\x06status\x18\x07 \x01(\x0e\x32\x0c.EventStatus\x12\x12\n\nevent_name\x18\x08 \x01(\t\x12\x12\n\nevent_type\x18\t \x01(\t\x12\x0c\n\x04\x62ody\x18\n \x01(\x0c\x12\'\n\x13\x61ttached_message_id\x18\x0b \x03(\x0b\x32\n.MessageID\"<\n\x10MessageGroupItem\x12\x19\n\x07message\x18\x01 \x01(\x0b\x32\x08.Message\x12\r\n\x05match\x18\x02 \x01(\x08\"\xf7\x02\n\x14MessageGroupResponse\x12\x1e\n\nmessage_id\x18\x01 \x01(\x0b\x32\n.MessageID\x12\x31\n\ttimestamp\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x02\x18\x01\x12]\n\x12message_properties\x18\x06 \x03(\x0b\x32\x41.th2.data_provider.lw.MessageGroupResponse.MessagePropertiesEntry\x12\x10\n\x08\x62ody_raw\x18\x03 \x01(\x0c\x12#\n\x11\x61ttached_event_id\x18\x04 \x03(\x0b\x32\x08.EventID\x12<\n\x0cmessage_item\x18\x05 \x03(\x0b\x32&.th2.data_provider.lw.MessageGroupItem\x1a\x38\n\x16MessagePropertiesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x1a\n\nFilterName\x12\x0c\n\x04name\x18\x01 \x01(\t\"k\n\x06\x46ilter\x12.\n\x04name\x18\x01 \x01(\x0b\x32 .th2.data_provider.lw.FilterName\x12\x10\n\x08negative\x18\x02 \x01(\x08\x12\r\n\x05value\x18\x03 \x03(\t\x12\x10\n\x08\x63onjunct\x18\x04 \x01(\x08\"\xa1\x03\n\x12\x45ventSearchRequest\x12\x33\n\x0fstart_timestamp\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x31\n\rend_timestamp\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x1e\n\x0cparent_event\x18\x03 \x01(\x0b\x32\x08.EventID\x12<\n\x10search_direction\x18\x04 \x01(\x0e\x32\".th2.data_provider.lw.TimeRelation\x12\x37\n\x12result_count_limit\x18\x05 \x01(\x0b\x32\x1b.google.protobuf.Int32Value\x12,\n\x06\x66ilter\x18\x06 \x03(\x0b\x32\x1c.th2.data_provider.lw.Filter\x12-\n\x07\x62ook_id\x18\x07 \x01(\x0b\x32\x1c.th2.data_provider.lw.BookId\x12/\n\x05scope\x18\x08 \x01(\x0b\x32 .th2.data_provider.lw.EventScope\"S\n\x13\x45ventSearchResponse\x12\x34\n\x05\x65vent\x18\x01 \x01(\x0b\x32#.th2.data_provider.lw.EventResponseH\x00\x42\x06\n\x04\x64\x61ta\"\xe6\x03\n\x14MessageSearchRequest\x12\x33\n\x0fstart_timestamp\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x31\n\rend_timestamp\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12<\n\x10search_direction\x18\x03 \x01(\x0e\x32\".th2.data_provider.lw.TimeRelation\x12\x37\n\x12result_count_limit\x18\x04 \x01(\x0b\x32\x1b.google.protobuf.Int32Value\x12\x33\n\x06stream\x18\x05 \x03(\x0b\x32#.th2.data_provider.lw.MessageStream\x12-\n\tkeep_open\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12\x42\n\x0estream_pointer\x18\x07 \x03(\x0b\x32*.th2.data_provider.lw.MessageStreamPointer\x12\x18\n\x10response_formats\x18\x08 \x03(\t\x12-\n\x07\x62ook_id\x18\t \x01(\x0b\x32\x1c.th2.data_provider.lw.BookId\"\xae\x01\n\x15MessageSearchResponse\x12=\n\x07message\x18\x01 \x01(\x0b\x32*.th2.data_provider.lw.MessageGroupResponseH\x00\x12N\n\x17message_stream_pointers\x18\x02 \x01(\x0b\x32+.th2.data_provider.lw.MessageStreamPointersH\x00\x42\x06\n\x04\x64\x61ta\"c\n\x15MessageStreamPointers\x12J\n\x16message_stream_pointer\x18\x01 \x03(\x0b\x32*.th2.data_provider.lw.MessageStreamPointer\"p\n\x14MessageStreamPointer\x12;\n\x0emessage_stream\x18\x01 \x01(\x0b\x32#.th2.data_provider.lw.MessageStream\x12\x1b\n\x07last_id\x18\x02 \x01(\x0b\x32\n.MessageID\"<\n\rMessageStream\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x1d\n\tdirection\x18\x02 \x01(\x0e\x32\n.Direction\"U\n\x16MessageStreamsResponse\x12;\n\x0emessage_stream\x18\x01 \x03(\x0b\x32#.th2.data_provider.lw.MessageStream\"\x0e\n\x0c\x42ooksRequest\"?\n\rBooksResponse\x12.\n\x08\x62ook_ids\x18\x01 \x03(\x0b\x32\x1c.th2.data_provider.lw.BookId\"\xdb\x01\n\x0fPageInfoRequest\x12-\n\x07\x62ook_id\x18\x01 \x01(\x0b\x32\x1c.th2.data_provider.lw.BookId\x12\x33\n\x0fstart_timestamp\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x31\n\rend_timestamp\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x31\n\x0cresult_limit\x18\x04 \x01(\x0b\x32\x1b.google.protobuf.Int32Value\"\x9d\x02\n\x10PageInfoResponse\x12(\n\x02id\x18\x01 \x01(\x0b\x32\x1c.th2.data_provider.lw.PageId\x12-\n\x07\x63omment\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12+\n\x07started\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12)\n\x05\x65nded\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12+\n\x07updated\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12+\n\x07removed\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"E\n\x06PageId\x12-\n\x07\x62ook_id\x18\x01 \x01(\x0b\x32\x1c.th2.data_provider.lw.BookId\x12\x0c\n\x04name\x18\x02 \x01(\t*&\n\x0cTimeRelation\x12\x08\n\x04NEXT\x10\x00\x12\x0c\n\x08PREVIOUS\x10\x01\x32\x80\x06\n\x0c\x44\x61taProvider\x12\x39\n\x08GetEvent\x12\x08.EventID\x1a#.th2.data_provider.lw.EventResponse\x12\x44\n\nGetMessage\x12\n.MessageID\x1a*.th2.data_provider.lw.MessageGroupResponse\x12n\n\x11GetMessageStreams\x12+.th2.data_provider.lw.MessageStreamsRequest\x1a,.th2.data_provider.lw.MessageStreamsResponse\x12k\n\x0eSearchMessages\x12*.th2.data_provider.lw.MessageSearchRequest\x1a+.th2.data_provider.lw.MessageSearchResponse0\x01\x12\x65\n\x0cSearchEvents\x12(.th2.data_provider.lw.EventSearchRequest\x1a).th2.data_provider.lw.EventSearchResponse0\x01\x12v\n\x13SearchMessageGroups\x12\x30.th2.data_provider.lw.MessageGroupsSearchRequest\x1a+.th2.data_provider.lw.MessageSearchResponse0\x01\x12S\n\x08GetBooks\x12\".th2.data_provider.lw.BooksRequest\x1a#.th2.data_provider.lw.BooksResponse\x12^\n\x0bGetPageInfo\x12%.th2.data_provider.lw.PageInfoRequest\x1a&.th2.data_provider.lw.PageInfoResponse0\x01\x42)\n%com.exactpro.th2.dataprovider.lw.grpcP\x01\x62\x06proto3')
|
|
21
|
+
|
|
22
|
+
_globals = globals()
|
|
23
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
24
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'th2_grpc_lw_data_provider.lw_data_provider_pb2', _globals)
|
|
25
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
26
|
+
|
|
27
|
+
DESCRIPTOR._options = None
|
|
28
|
+
DESCRIPTOR._serialized_options = b'\n%com.exactpro.th2.dataprovider.lw.grpcP\001'
|
|
29
|
+
_MESSAGEGROUPSSEARCHREQUEST.fields_by_name['raw_only']._options = None
|
|
30
|
+
_MESSAGEGROUPSSEARCHREQUEST.fields_by_name['raw_only']._serialized_options = b'\030\001'
|
|
31
|
+
_MESSAGEGROUPRESPONSE_MESSAGEPROPERTIESENTRY._options = None
|
|
32
|
+
_MESSAGEGROUPRESPONSE_MESSAGEPROPERTIESENTRY._serialized_options = b'8\001'
|
|
33
|
+
_MESSAGEGROUPRESPONSE.fields_by_name['timestamp']._options = None
|
|
34
|
+
_MESSAGEGROUPRESPONSE.fields_by_name['timestamp']._serialized_options = b'\030\001'
|
|
35
|
+
_globals['_TIMERELATION']._serialized_start=3845
|
|
36
|
+
_globals['_TIMERELATION']._serialized_end=3883
|
|
37
|
+
_globals['_EVENTSCOPE']._serialized_start=196
|
|
38
|
+
_globals['_EVENTSCOPE']._serialized_end=222
|
|
39
|
+
_globals['_BOOKID']._serialized_start=224
|
|
40
|
+
_globals['_BOOKID']._serialized_end=246
|
|
41
|
+
_globals['_MESSAGEGROUPSSEARCHREQUEST']._serialized_start=249
|
|
42
|
+
_globals['_MESSAGEGROUPSSEARCHREQUEST']._serialized_end=639
|
|
43
|
+
_globals['_MESSAGEGROUPSSEARCHREQUEST_GROUP']._serialized_start=618
|
|
44
|
+
_globals['_MESSAGEGROUPSSEARCHREQUEST_GROUP']._serialized_end=639
|
|
45
|
+
_globals['_MESSAGESTREAMSREQUEST']._serialized_start=641
|
|
46
|
+
_globals['_MESSAGESTREAMSREQUEST']._serialized_end=711
|
|
47
|
+
_globals['_EVENTRESPONSE']._serialized_start=714
|
|
48
|
+
_globals['_EVENTRESPONSE']._serialized_end=1069
|
|
49
|
+
_globals['_MESSAGEGROUPITEM']._serialized_start=1071
|
|
50
|
+
_globals['_MESSAGEGROUPITEM']._serialized_end=1131
|
|
51
|
+
_globals['_MESSAGEGROUPRESPONSE']._serialized_start=1134
|
|
52
|
+
_globals['_MESSAGEGROUPRESPONSE']._serialized_end=1509
|
|
53
|
+
_globals['_MESSAGEGROUPRESPONSE_MESSAGEPROPERTIESENTRY']._serialized_start=1453
|
|
54
|
+
_globals['_MESSAGEGROUPRESPONSE_MESSAGEPROPERTIESENTRY']._serialized_end=1509
|
|
55
|
+
_globals['_FILTERNAME']._serialized_start=1511
|
|
56
|
+
_globals['_FILTERNAME']._serialized_end=1537
|
|
57
|
+
_globals['_FILTER']._serialized_start=1539
|
|
58
|
+
_globals['_FILTER']._serialized_end=1646
|
|
59
|
+
_globals['_EVENTSEARCHREQUEST']._serialized_start=1649
|
|
60
|
+
_globals['_EVENTSEARCHREQUEST']._serialized_end=2066
|
|
61
|
+
_globals['_EVENTSEARCHRESPONSE']._serialized_start=2068
|
|
62
|
+
_globals['_EVENTSEARCHRESPONSE']._serialized_end=2151
|
|
63
|
+
_globals['_MESSAGESEARCHREQUEST']._serialized_start=2154
|
|
64
|
+
_globals['_MESSAGESEARCHREQUEST']._serialized_end=2640
|
|
65
|
+
_globals['_MESSAGESEARCHRESPONSE']._serialized_start=2643
|
|
66
|
+
_globals['_MESSAGESEARCHRESPONSE']._serialized_end=2817
|
|
67
|
+
_globals['_MESSAGESTREAMPOINTERS']._serialized_start=2819
|
|
68
|
+
_globals['_MESSAGESTREAMPOINTERS']._serialized_end=2918
|
|
69
|
+
_globals['_MESSAGESTREAMPOINTER']._serialized_start=2920
|
|
70
|
+
_globals['_MESSAGESTREAMPOINTER']._serialized_end=3032
|
|
71
|
+
_globals['_MESSAGESTREAM']._serialized_start=3034
|
|
72
|
+
_globals['_MESSAGESTREAM']._serialized_end=3094
|
|
73
|
+
_globals['_MESSAGESTREAMSRESPONSE']._serialized_start=3096
|
|
74
|
+
_globals['_MESSAGESTREAMSRESPONSE']._serialized_end=3181
|
|
75
|
+
_globals['_BOOKSREQUEST']._serialized_start=3183
|
|
76
|
+
_globals['_BOOKSREQUEST']._serialized_end=3197
|
|
77
|
+
_globals['_BOOKSRESPONSE']._serialized_start=3199
|
|
78
|
+
_globals['_BOOKSRESPONSE']._serialized_end=3262
|
|
79
|
+
_globals['_PAGEINFOREQUEST']._serialized_start=3265
|
|
80
|
+
_globals['_PAGEINFOREQUEST']._serialized_end=3484
|
|
81
|
+
_globals['_PAGEINFORESPONSE']._serialized_start=3487
|
|
82
|
+
_globals['_PAGEINFORESPONSE']._serialized_end=3772
|
|
83
|
+
_globals['_PAGEID']._serialized_start=3774
|
|
84
|
+
_globals['_PAGEID']._serialized_end=3843
|
|
85
|
+
_globals['_DATAPROVIDER']._serialized_start=3886
|
|
86
|
+
_globals['_DATAPROVIDER']._serialized_end=4654
|
|
87
|
+
# @@protoc_insertion_point(module_scope)
|