frostfs-api-go/query/types.proto

34 lines
948 B
Protocol Buffer
Raw Normal View History

2019-11-18 13:34:06 +00:00
syntax = "proto3";
package query;
option go_package = "github.com/nspcc-dev/neofs-api/query";
2020-02-05 13:58:06 +00:00
option csharp_namespace = "NeoFS.API.Query";
2019-11-18 13:34:06 +00:00
import "github.com/gogo/protobuf/gogoproto/gogo.proto";
option (gogoproto.stable_marshaler_all) = true;
message Filter {
option (gogoproto.goproto_stringer) = false;
enum Type {
// Exact sets when value of filter should be equal to the header value
2019-11-18 13:34:06 +00:00
Exact = 0;
// Regex sets when value of filter should match the header value by the regular expression
2019-11-18 13:34:06 +00:00
Regex = 1;
}
2019-11-20 16:25:53 +00:00
// Type of filter
2019-11-18 13:34:06 +00:00
Type type = 1 [(gogoproto.customname) = "Type"];
2019-11-20 16:25:53 +00:00
// Name of field that should be filtered
2019-11-18 13:34:06 +00:00
string Name = 2;
2019-11-20 16:25:53 +00:00
// Value that should be used for filter
2019-11-18 13:34:06 +00:00
string Value = 3;
}
message Query {
option (gogoproto.goproto_stringer) = false;
2019-11-20 16:25:53 +00:00
// Filters is set of filters, should not be empty
2019-11-18 13:34:06 +00:00
repeated Filter Filters = 1 [(gogoproto.nullable) = false];
}