change protobufs fields to match SDK constants
This commit is contained in:
parent
d45f215789
commit
27598d628b
3 changed files with 548 additions and 525 deletions
|
@ -1,7 +1,6 @@
|
||||||
syntax = "proto3";
|
syntax = "proto3";
|
||||||
|
|
||||||
option go_package = "github.com/lbryio/hub/protobuf/go/pb";
|
option go_package = "github.com/lbryio/hub/protobuf/go/pb";
|
||||||
import "google/protobuf/wrappers.proto";
|
|
||||||
import "result.proto";
|
import "result.proto";
|
||||||
|
|
||||||
package pb;
|
package pb;
|
||||||
|
@ -15,6 +14,14 @@ message InvertibleField {
|
||||||
repeated string value = 2;
|
repeated string value = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
message BoolValue {
|
||||||
|
bool value = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
message UInt32Value {
|
||||||
|
uint32 value = 1;
|
||||||
|
}
|
||||||
|
|
||||||
message RangeField {
|
message RangeField {
|
||||||
enum Op {
|
enum Op {
|
||||||
EQ = 0;
|
EQ = 0;
|
||||||
|
@ -28,69 +35,62 @@ message RangeField {
|
||||||
}
|
}
|
||||||
|
|
||||||
message SearchRequest {
|
message SearchRequest {
|
||||||
string text = 1;
|
InvertibleField claim_id = 1;
|
||||||
repeated string name = 2;
|
InvertibleField channel_id = 2;
|
||||||
.google.protobuf.Int32Value amount_order = 3;
|
string text = 3;
|
||||||
.google.protobuf.Int32Value limit = 4;
|
uint32 limit = 4;
|
||||||
repeated string order_by = 5;
|
repeated string order_by = 5;
|
||||||
.google.protobuf.Int32Value offset = 6;
|
uint32 offset = 6;
|
||||||
.google.protobuf.BoolValue is_controlling = 7;
|
bool is_controlling = 7;
|
||||||
string last_take_over_height = 19;
|
string last_take_over_height = 8;
|
||||||
InvertibleField claim_id = 20;
|
string claim_name = 9;
|
||||||
repeated string claim_name = 22;
|
string normalized_name = 10;
|
||||||
repeated string normalized = 23;
|
RangeField tx_position = 11;
|
||||||
RangeField tx_position = 24;
|
RangeField amount = 12;
|
||||||
RangeField amount = 25;
|
RangeField timestamp = 13;
|
||||||
RangeField timestamp = 26;
|
RangeField creation_timestamp = 14;
|
||||||
RangeField creation_timestamp = 27;
|
RangeField height = 15;
|
||||||
RangeField height = 28;
|
RangeField creation_height = 16;
|
||||||
RangeField creation_height = 29;
|
RangeField activation_height = 17;
|
||||||
RangeField activation_height = 30;
|
RangeField expiration_height = 18;
|
||||||
RangeField expiration_height = 31;
|
RangeField release_time = 19;
|
||||||
RangeField release_time = 32;
|
string short_url = 20;
|
||||||
repeated string short_url = 33;
|
string canonical_url = 21;
|
||||||
repeated string canonical_url = 34;
|
string title = 22;
|
||||||
repeated string title = 35;
|
string author = 23;
|
||||||
repeated string author = 36;
|
string description = 24;
|
||||||
repeated string description = 37;
|
repeated string claim_type = 25;
|
||||||
repeated string claim_type = 38;
|
RangeField repost_count = 26;
|
||||||
RangeField reposted = 39;
|
repeated string stream_type = 27;
|
||||||
repeated string stream_type = 40;
|
repeated string media_type = 28;
|
||||||
repeated string media_type = 41;
|
RangeField fee_amount = 29;
|
||||||
RangeField fee_amount = 42;
|
string fee_currency = 30;
|
||||||
repeated string fee_currency = 43;
|
RangeField duration = 31;
|
||||||
RangeField duration = 44;
|
string reposted_claim_id = 32;
|
||||||
string reposted_claim_hash = 45;
|
RangeField censor_type = 33;
|
||||||
RangeField censor_type = 46;
|
string claims_in_channel = 34;
|
||||||
string claims_in_channel = 47;
|
RangeField channel_join = 35;
|
||||||
RangeField channel_join = 48;
|
BoolValue is_signature_valid = 36;
|
||||||
.google.protobuf.BoolValue signature_valid = 49;
|
RangeField effective_amount = 37;
|
||||||
RangeField effective_amount = 51;
|
RangeField support_amount = 38;
|
||||||
RangeField support_amount = 52;
|
RangeField trending_group = 39;
|
||||||
RangeField trending_group = 53;
|
RangeField trending_mixed = 40;
|
||||||
RangeField trending_mixed = 54;
|
RangeField trending_local = 41;
|
||||||
RangeField trending_local = 55;
|
RangeField trending_global = 42;
|
||||||
RangeField trending_global = 56;
|
string tx_id = 43;
|
||||||
InvertibleField channel_id = 57;
|
UInt32Value tx_nout = 44;
|
||||||
InvertibleField channel_ids = 58;
|
string signature = 45;
|
||||||
repeated string tx_id = 59;
|
string signature_digest = 46;
|
||||||
.google.protobuf.Int32Value tx_nout = 60;
|
string public_key_bytes = 47;
|
||||||
repeated string signature = 61;
|
string public_key_id = 48;
|
||||||
repeated string signature_digest = 62;
|
repeated string any_tags = 49;
|
||||||
repeated string public_key_bytes = 63;
|
repeated string all_tags = 50;
|
||||||
repeated string public_key_hash = 64;
|
repeated string not_tags = 51;
|
||||||
string public_key_id = 65;
|
bool has_channel_signature = 52;
|
||||||
repeated bytes _id = 66;
|
BoolValue has_source = 53;
|
||||||
repeated string any_tags = 67;
|
uint32 limit_claims_per_channel = 54;
|
||||||
repeated string all_tags = 68;
|
repeated string any_languages = 55;
|
||||||
repeated string not_tags = 69;
|
repeated string all_languages = 56;
|
||||||
repeated string reposted_claim_id = 70;
|
bool remove_duplicates = 57;
|
||||||
.google.protobuf.BoolValue has_channel_signature = 71;
|
bool no_totals = 58;
|
||||||
.google.protobuf.BoolValue has_source = 72;
|
|
||||||
.google.protobuf.Int32Value limit_claims_per_channel = 73;
|
|
||||||
repeated string any_languages = 74;
|
|
||||||
repeated string all_languages = 75;
|
|
||||||
.google.protobuf.BoolValue remove_duplicates = 76;
|
|
||||||
.google.protobuf.BoolValue no_totals = 77;
|
|
||||||
repeated string search_indices = 78;
|
|
||||||
}
|
}
|
File diff suppressed because it is too large
Load diff
|
@ -1,7 +1,7 @@
|
||||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||||
// versions:
|
// versions:
|
||||||
// protoc-gen-go v1.26.0
|
// protoc-gen-go v1.26.0
|
||||||
// protoc v3.17.1
|
// protoc v3.17.3
|
||||||
// source: result.proto
|
// source: result.proto
|
||||||
|
|
||||||
package pb
|
package pb
|
||||||
|
|
Loading…
Add table
Reference in a new issue