totopia-proto/api/proto/v1/common/search-criteria.proto

31 lines
633 B
Protocol Buffer
Raw Permalink Normal View History

2019-07-02 15:28:46 +00:00
syntax = "proto3";
package loafle.cms.proto.common;
option csharp_namespace = "Loafle.Cms.Proto.Common";
option cc_enable_arenas = true;
option go_package = "git.loafle.net/cms/proto/common";
option java_package = "com.loafle.cms.proto.common";
option objc_class_prefix = "LF";
import "google/protobuf/any.proto";
enum SearchOperation {
EQUAL = 0;
NOT_EQUAL = 1;
GREATER_THAN = 2;
GREATER_THAN_EQUAL = 3;
LESS_THAN = 4;
LESS_THAN_EQUAL = 5;
LIKE = 6;
STARTS_WITH = 7;
ENDS_WITH =8;
CONTAINS =9;
}
message SearchCriteria {
string key = 1;
SearchOperation operation = 2;
google.protobuf.Any value = 3;
}