Skip to content

Commit c8ec3dc

Browse files
committed
Sync YDB proto files with main repo
1 parent 07141d3 commit c8ec3dc

File tree

12 files changed

+42
-33
lines changed

12 files changed

+42
-33
lines changed

src/api/README.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

src/api/client/yc_private/iam/service_account_service.proto

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import "google/api/annotations.proto";
66
import "google/protobuf/field_mask.proto";
77
import "src/api/client/yc_private/iam/iam_token.proto";
88
import "src/api/client/yc_private/iam/service_account.proto";
9-
//import "src/api/client/yc_private/access/access.proto";
9+
//import "ydb/public/api/client/yc_private/access/access.proto";
1010
import "src/api/client/yc_private/operation/operation.proto";
1111
import "src/api/client/yc_private/iam/reference.proto";
1212

@@ -19,15 +19,15 @@ service ServiceAccountService {
1919
option (google.api.http) = { get: "/iam/v1/serviceAccounts" };
2020
}
2121

22-
rpc Create (CreateServiceAccountRequest) returns (ydb.yc.priv.operation.Operation) {
22+
rpc Create (CreateServiceAccountRequest) returns (.ydb.yc.priv.operation.Operation) {
2323
option (google.api.http) = { post: "/iam/v1/serviceAccounts" body: "*" };
2424
}
2525

26-
rpc Update (UpdateServiceAccountRequest) returns (ydb.yc.priv.operation.Operation) {
26+
rpc Update (UpdateServiceAccountRequest) returns (.ydb.yc.priv.operation.Operation) {
2727
option (google.api.http) = { patch: "/iam/v1/serviceAccounts/{service_account_id}" body: "*" };
2828
}
2929

30-
rpc Delete (DeleteServiceAccountRequest) returns (ydb.yc.priv.operation.Operation) {
30+
rpc Delete (DeleteServiceAccountRequest) returns (.ydb.yc.priv.operation.Operation) {
3131
option (google.api.http) = { delete: "/iam/v1/serviceAccounts/{service_account_id}" };
3232
}
3333

@@ -43,7 +43,7 @@ service ServiceAccountService {
4343

4444
rpc ListReferences (ListServiceAccountReferencesRequest) returns (ListServiceAccountReferencesResponse);
4545

46-
rpc UpdateReferences (UpdateServiceAccountReferencesRequest) returns (ydb.yc.priv.operation.Operation);
46+
rpc UpdateReferences (UpdateServiceAccountReferencesRequest) returns (.ydb.yc.priv.operation.Operation);
4747
}
4848

4949
message GetServiceAccountRequest {
@@ -104,7 +104,7 @@ message ListServiceAccountOperationsRequest {
104104
}
105105

106106
message ListServiceAccountOperationsResponse {
107-
repeated ydb.yc.priv.operation.Operation operations = 1;
107+
repeated .ydb.yc.priv.operation.Operation operations = 1;
108108
string next_page_token = 2;
109109
}
110110

src/api/client/yc_private/iam/user_account_service.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ service UserAccountService {
1212
option (google.api.http) = { get: "/iam/v1/userAccounts/{user_account_id}" };
1313
}
1414

15-
rpc Delete (DeleteUserAccountRequest) returns (ydb.yc.priv.operation.Operation);
15+
rpc Delete (DeleteUserAccountRequest) returns (.ydb.yc.priv.operation.Operation);
1616

1717
rpc GetSettings (GetSettingsRequest) returns (UserSettings);
1818

src/api/client/yc_public/README.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

src/api/grpc/ydb_query_v1.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import "src/api/protos/ydb_operation.proto";
77
import "src/api/protos/ydb_query.proto";
88

99
service QueryService {
10-
// Sessions are basic primitives for communicating with YDB Query Service. The are similar to
10+
// Sessions are basic primitives for communicating with YDB Query Service. They are similar to
1111
// connections for classic relational DBs. Sessions serve three main purposes:
1212
// 1. Provide a flow control for DB requests with limited number of active channels.
1313
// 2. Distribute load evenly across multiple DB nodes.

src/api/protos/draft/fq.proto

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,10 @@ message ResultSetMeta {
205205
bool truncated = 3;
206206
}
207207

208+
message QueryTimeline {
209+
string svg = 1; // No validation because generated on server side
210+
}
211+
208212
message Query {
209213
QueryMeta meta = 1;
210214
QueryContent content = 2;
@@ -214,6 +218,7 @@ message Query {
214218
QueryStatistics statistics = 6;
215219
repeated ResultSetMeta result_set_meta = 7;
216220
QueryAst ast = 8;
221+
QueryTimeline timeline = 9;
217222
}
218223

219224
message QueryStatistics {

src/api/protos/draft/ydb_maintenance.proto

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,12 +161,15 @@ message ActionState {
161161
ACTION_REASON_WRONG_REQUEST = 6;
162162
// Too many unavailable nodes with system tablets.
163163
ACTION_REASON_SYS_TABLETS_NODE_LIMIT_REACHED = 7;
164+
// Generic reason.
165+
ACTION_REASON_GENERIC = 8;
164166
}
165167

166168
Action action = 1;
167169
ActionUid action_uid = 2;
168170
ActionStatus status = 3;
169171
ActionReason reason = 4;
172+
string reason_details = 6;
170173
google.protobuf.Timestamp deadline = 5;
171174
}
172175

src/api/protos/draft/ymq.proto

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ message GetQueueAttributesResult {
128128
message GetQueueUrlRequest {
129129
Ydb.Operations.OperationParams operation_params = 1;
130130
string queue_name = 2;
131-
optional string queue_owner_aws_account_id = 3;
131+
optional string queue_owner_a_w_s_account_id = 3;
132132
}
133133

134134
message GetQueueUrlResponse {
@@ -194,8 +194,8 @@ message ReceiveMessageResponse {
194194
message Message {
195195
map<string, string> attributes = 1;
196196
string body = 2;
197-
string md5_of_body = 3;
198-
string md5_of_message_attributes = 4;
197+
string m_d_5_of_body = 3 [(Ydb.FieldTransformation.FieldTransformer) = TRANSFORM_EMPTY_TO_NOTHING];
198+
string m_d_5_of_message_attributes = 4 [(Ydb.FieldTransformation.FieldTransformer) = TRANSFORM_EMPTY_TO_NOTHING];
199199
map<string, MessageAttribute> message_attributes = 5;
200200
string message_id = 6;
201201
string receipt_handle = 7;
@@ -221,9 +221,9 @@ message SendMessageResponse {
221221
}
222222

223223
message SendMessageResult {
224-
string md5_of_message_attributes = 1;
225-
string md5_of_message_body= 2;
226-
string md5_of_message_system_attributes= 3;
224+
string m_d_5_of_message_attributes = 1 [(Ydb.FieldTransformation.FieldTransformer) = TRANSFORM_EMPTY_TO_NOTHING];
225+
string m_d_5_of_message_body= 2 [(Ydb.FieldTransformation.FieldTransformer) = TRANSFORM_EMPTY_TO_NOTHING];
226+
string m_d_5_of_message_system_attributes= 3 [(Ydb.FieldTransformation.FieldTransformer) = TRANSFORM_EMPTY_TO_NOTHING];
227227
string message_id = 4;
228228
string sequence_number = 5;
229229
}
@@ -248,10 +248,10 @@ message SendMessageBatchRequestEntry {
248248

249249
message SendMessageBatchResultEntry {
250250
string id = 1;
251-
string md5_of_message_body = 2;
251+
string m_d_5_of_message_body = 2 [(Ydb.FieldTransformation.FieldTransformer) = TRANSFORM_EMPTY_TO_NOTHING];
252252
string message_id = 3;
253-
string md5_of_message_attributes = 4;
254-
string md5_of_message_system_attributes = 5;
253+
string m_d_5_of_message_attributes = 4 [(Ydb.FieldTransformation.FieldTransformer) = TRANSFORM_EMPTY_TO_NOTHING];
254+
string m_d_5_of_message_system_attributes = 5 [(Ydb.FieldTransformation.FieldTransformer) = TRANSFORM_EMPTY_TO_NOTHING];
255255
string sequence_number = 6;
256256
}
257257

src/api/protos/ydb_import.proto

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ message ImportDataRequest {
110110
// - sorted by primary key;
111111
// - all keys must be from the same partition;
112112
// - table has no global secondary indexes;
113-
// - size of serialized data is limited to 8 MB.
114-
bytes data = 3 [(length).le = 8388608];
113+
// - size of serialized data is limited to 16 MB.
114+
bytes data = 3 [(length).le = 16777216];
115115
oneof format {
116116
// Result of `ydb tools dump`
117117
YdbDumpFormat ydb_dump = 4;

src/api/protos/ydb_issue_message.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ message IssueMessage {
1616
string message = 2;
1717
Position end_position = 3;
1818
uint32 issue_code = 4;
19-
// Severity values from src/library/yql_common/issue/protos/issue_severity.proto
19+
// Severity values from ydb/library/yql/public/issue/protos/issue_severity.proto
2020
// FATAL = 0;
2121
// ERROR = 1;
2222
// WARNING = 2;

src/api/protos/ydb_scheme.proto

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,15 @@ package Ydb.Scheme;
55
option java_package = "com.yandex.ydb.scheme";
66
option java_outer_classname = "SchemeOperationProtos";
77

8+
import "src/api/protos/annotations/validation.proto";
89
import "src/api/protos/ydb_common.proto";
910
import "src/api/protos/ydb_operation.proto";
1011

1112
// Create directory.
1213
// All intermediate directories must be created
1314
message MakeDirectoryRequest {
1415
Ydb.Operations.OperationParams operation_params = 1;
15-
string path = 2;
16+
string path = 2 [(required) = true];
1617
}
1718

1819
message MakeDirectoryResponse {
@@ -22,7 +23,7 @@ message MakeDirectoryResponse {
2223
// Remove directory
2324
message RemoveDirectoryRequest {
2425
Ydb.Operations.OperationParams operation_params = 1;
25-
string path = 2;
26+
string path = 2 [(required) = true];
2627
}
2728

2829
message RemoveDirectoryResponse {
@@ -32,7 +33,7 @@ message RemoveDirectoryResponse {
3233
// List directory
3334
message ListDirectoryRequest {
3435
Ydb.Operations.OperationParams operation_params = 1;
35-
string path = 2;
36+
string path = 2 [(required) = true];
3637
}
3738

3839
message ListDirectoryResponse {
@@ -93,7 +94,7 @@ message ListDirectoryResult {
9394
// Returns information about object with given path
9495
message DescribePathRequest {
9596
Ydb.Operations.OperationParams operation_params = 1;
96-
string path = 2;
97+
string path = 2 [(required) = true];
9798
}
9899

99100
message DescribePathResponse {
@@ -121,7 +122,7 @@ message PermissionsAction {
121122
// Modify permissions of given object
122123
message ModifyPermissionsRequest {
123124
Ydb.Operations.OperationParams operation_params = 1;
124-
string path = 2;
125+
string path = 2 [(required) = true];
125126
repeated PermissionsAction actions = 3;
126127
// Clear all permissions on the object for all subjects
127128
bool clear_permissions = 4;

src/api/protos/ydb_table.proto

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,8 @@ message PartitionStats {
329329
uint64 rows_estimate = 1;
330330
// Approximate size of shard (bytes)
331331
uint64 store_size = 2;
332+
// id of node that serve shard key range
333+
uint32 leader_node_id = 3;
332334
}
333335

334336
message TableStats {
@@ -531,6 +533,10 @@ message ColumnFamily {
531533
// When enabled table data will be kept in memory
532534
// WARNING: DO NOT USE
533535
Ydb.FeatureFlag.Status keep_in_memory = 4;
536+
537+
// Not all compression algorithms support
538+
// Set if want to change default value
539+
optional int32 compression_level = 5;
534540
}
535541

536542
message PartitioningSettings {
@@ -783,6 +789,8 @@ message DescribeTableRequest {
783789
bool include_partition_stats = 7;
784790
// Includes set_val settings for sequences
785791
bool include_set_val = 8;
792+
// Includes shard -> node id maping (required include_partition_stats)
793+
bool include_shard_nodes_info = 9;
786794
}
787795

788796
message DescribeTableResponse {

0 commit comments

Comments
 (0)