|
@@ -1,284 +0,0 @@
|
|
|
-// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
|
-// versions:
|
|
|
-// protoc-gen-go v1.26.0
|
|
|
-// protoc v3.12.0
|
|
|
-// source: sensitive_words.proto
|
|
|
-
|
|
|
-package proto_grpc
|
|
|
-
|
|
|
-import (
|
|
|
- protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
|
- protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
|
- reflect "reflect"
|
|
|
- sync "sync"
|
|
|
-)
|
|
|
-
|
|
|
-const (
|
|
|
- // Verify that this generated code is sufficiently up-to-date.
|
|
|
- _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
|
- // Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
|
- _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
|
-)
|
|
|
-
|
|
|
-type CorpusType int32
|
|
|
-
|
|
|
-const (
|
|
|
- CorpusType_ALL CorpusType = 0
|
|
|
- CorpusType_BUYER CorpusType = 1
|
|
|
- CorpusType_AGENCY CorpusType = 2
|
|
|
- CorpusType_WINNER CorpusType = 3
|
|
|
-)
|
|
|
-
|
|
|
-// Enum value maps for CorpusType.
|
|
|
-var (
|
|
|
- CorpusType_name = map[int32]string{
|
|
|
- 0: "ALL",
|
|
|
- 1: "BUYER",
|
|
|
- 2: "AGENCY",
|
|
|
- 3: "WINNER",
|
|
|
- }
|
|
|
- CorpusType_value = map[string]int32{
|
|
|
- "ALL": 0,
|
|
|
- "BUYER": 1,
|
|
|
- "AGENCY": 2,
|
|
|
- "WINNER": 3,
|
|
|
- }
|
|
|
-)
|
|
|
-
|
|
|
-func (x CorpusType) Enum() *CorpusType {
|
|
|
- p := new(CorpusType)
|
|
|
- *p = x
|
|
|
- return p
|
|
|
-}
|
|
|
-
|
|
|
-func (x CorpusType) String() string {
|
|
|
- return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
|
-}
|
|
|
-
|
|
|
-func (CorpusType) Descriptor() protoreflect.EnumDescriptor {
|
|
|
- return file_sensitive_words_proto_enumTypes[0].Descriptor()
|
|
|
-}
|
|
|
-
|
|
|
-func (CorpusType) Type() protoreflect.EnumType {
|
|
|
- return &file_sensitive_words_proto_enumTypes[0]
|
|
|
-}
|
|
|
-
|
|
|
-func (x CorpusType) Number() protoreflect.EnumNumber {
|
|
|
- return protoreflect.EnumNumber(x)
|
|
|
-}
|
|
|
-
|
|
|
-// Deprecated: Use CorpusType.Descriptor instead.
|
|
|
-func (CorpusType) EnumDescriptor() ([]byte, []int) {
|
|
|
- return file_sensitive_words_proto_rawDescGZIP(), []int{0}
|
|
|
-}
|
|
|
-
|
|
|
-type Request struct {
|
|
|
- state protoimpl.MessageState
|
|
|
- sizeCache protoimpl.SizeCache
|
|
|
- unknownFields protoimpl.UnknownFields
|
|
|
-
|
|
|
- Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"`
|
|
|
- Corpus CorpusType `protobuf:"varint,2,opt,name=corpus,proto3,enum=proto_grpc.CorpusType" json:"corpus,omitempty"`
|
|
|
-}
|
|
|
-
|
|
|
-func (x *Request) Reset() {
|
|
|
- *x = Request{}
|
|
|
- if protoimpl.UnsafeEnabled {
|
|
|
- mi := &file_sensitive_words_proto_msgTypes[0]
|
|
|
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
- ms.StoreMessageInfo(mi)
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-func (x *Request) String() string {
|
|
|
- return protoimpl.X.MessageStringOf(x)
|
|
|
-}
|
|
|
-
|
|
|
-func (*Request) ProtoMessage() {}
|
|
|
-
|
|
|
-func (x *Request) ProtoReflect() protoreflect.Message {
|
|
|
- mi := &file_sensitive_words_proto_msgTypes[0]
|
|
|
- if protoimpl.UnsafeEnabled && x != nil {
|
|
|
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
- if ms.LoadMessageInfo() == nil {
|
|
|
- ms.StoreMessageInfo(mi)
|
|
|
- }
|
|
|
- return ms
|
|
|
- }
|
|
|
- return mi.MessageOf(x)
|
|
|
-}
|
|
|
-
|
|
|
-// Deprecated: Use Request.ProtoReflect.Descriptor instead.
|
|
|
-func (*Request) Descriptor() ([]byte, []int) {
|
|
|
- return file_sensitive_words_proto_rawDescGZIP(), []int{0}
|
|
|
-}
|
|
|
-
|
|
|
-func (x *Request) GetText() string {
|
|
|
- if x != nil {
|
|
|
- return x.Text
|
|
|
- }
|
|
|
- return ""
|
|
|
-}
|
|
|
-
|
|
|
-func (x *Request) GetCorpus() CorpusType {
|
|
|
- if x != nil {
|
|
|
- return x.Corpus
|
|
|
- }
|
|
|
- return CorpusType_ALL
|
|
|
-}
|
|
|
-
|
|
|
-type ResultSensitiveWords struct {
|
|
|
- state protoimpl.MessageState
|
|
|
- sizeCache protoimpl.SizeCache
|
|
|
- unknownFields protoimpl.UnknownFields
|
|
|
-
|
|
|
- SensitiveWords string `protobuf:"bytes,1,opt,name=SensitiveWords,proto3" json:"SensitiveWords,omitempty"`
|
|
|
-}
|
|
|
-
|
|
|
-func (x *ResultSensitiveWords) Reset() {
|
|
|
- *x = ResultSensitiveWords{}
|
|
|
- if protoimpl.UnsafeEnabled {
|
|
|
- mi := &file_sensitive_words_proto_msgTypes[1]
|
|
|
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
- ms.StoreMessageInfo(mi)
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-func (x *ResultSensitiveWords) String() string {
|
|
|
- return protoimpl.X.MessageStringOf(x)
|
|
|
-}
|
|
|
-
|
|
|
-func (*ResultSensitiveWords) ProtoMessage() {}
|
|
|
-
|
|
|
-func (x *ResultSensitiveWords) ProtoReflect() protoreflect.Message {
|
|
|
- mi := &file_sensitive_words_proto_msgTypes[1]
|
|
|
- if protoimpl.UnsafeEnabled && x != nil {
|
|
|
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
- if ms.LoadMessageInfo() == nil {
|
|
|
- ms.StoreMessageInfo(mi)
|
|
|
- }
|
|
|
- return ms
|
|
|
- }
|
|
|
- return mi.MessageOf(x)
|
|
|
-}
|
|
|
-
|
|
|
-// Deprecated: Use ResultSensitiveWords.ProtoReflect.Descriptor instead.
|
|
|
-func (*ResultSensitiveWords) Descriptor() ([]byte, []int) {
|
|
|
- return file_sensitive_words_proto_rawDescGZIP(), []int{1}
|
|
|
-}
|
|
|
-
|
|
|
-func (x *ResultSensitiveWords) GetSensitiveWords() string {
|
|
|
- if x != nil {
|
|
|
- return x.SensitiveWords
|
|
|
- }
|
|
|
- return ""
|
|
|
-}
|
|
|
-
|
|
|
-var File_sensitive_words_proto protoreflect.FileDescriptor
|
|
|
-
|
|
|
-var file_sensitive_words_proto_rawDesc = []byte{
|
|
|
- 0x0a, 0x15, 0x73, 0x65, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x77, 0x6f, 0x72, 0x64,
|
|
|
- 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x5f, 0x67,
|
|
|
- 0x72, 0x70, 0x63, 0x22, 0x4d, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12,
|
|
|
- 0x0a, 0x04, 0x74, 0x65, 0x78, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x65,
|
|
|
- 0x78, 0x74, 0x12, 0x2e, 0x0a, 0x06, 0x63, 0x6f, 0x72, 0x70, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01,
|
|
|
- 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x5f, 0x67, 0x72, 0x70, 0x63, 0x2e,
|
|
|
- 0x43, 0x6f, 0x72, 0x70, 0x75, 0x73, 0x54, 0x79, 0x70, 0x65, 0x52, 0x06, 0x63, 0x6f, 0x72, 0x70,
|
|
|
- 0x75, 0x73, 0x22, 0x3e, 0x0a, 0x14, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x53, 0x65, 0x6e, 0x73,
|
|
|
- 0x69, 0x74, 0x69, 0x76, 0x65, 0x57, 0x6f, 0x72, 0x64, 0x73, 0x12, 0x26, 0x0a, 0x0e, 0x53, 0x65,
|
|
|
- 0x6e, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x57, 0x6f, 0x72, 0x64, 0x73, 0x18, 0x01, 0x20, 0x01,
|
|
|
- 0x28, 0x09, 0x52, 0x0e, 0x53, 0x65, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x57, 0x6f, 0x72,
|
|
|
- 0x64, 0x73, 0x2a, 0x38, 0x0a, 0x0a, 0x43, 0x6f, 0x72, 0x70, 0x75, 0x73, 0x54, 0x79, 0x70, 0x65,
|
|
|
- 0x12, 0x07, 0x0a, 0x03, 0x41, 0x4c, 0x4c, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x42, 0x55, 0x59,
|
|
|
- 0x45, 0x52, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x41, 0x47, 0x45, 0x4e, 0x43, 0x59, 0x10, 0x02,
|
|
|
- 0x12, 0x0a, 0x0a, 0x06, 0x57, 0x49, 0x4e, 0x4e, 0x45, 0x52, 0x10, 0x03, 0x32, 0x51, 0x0a, 0x0e,
|
|
|
- 0x53, 0x65, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x57, 0x6f, 0x72, 0x64, 0x73, 0x12, 0x3f,
|
|
|
- 0x0a, 0x06, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x12, 0x13, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
|
|
- 0x5f, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e,
|
|
|
- 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x5f, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x52, 0x65, 0x73, 0x75, 0x6c,
|
|
|
- 0x74, 0x53, 0x65, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x57, 0x6f, 0x72, 0x64, 0x73, 0x42,
|
|
|
- 0x0d, 0x5a, 0x0b, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x5f, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x62, 0x06,
|
|
|
- 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
|
-}
|
|
|
-
|
|
|
-var (
|
|
|
- file_sensitive_words_proto_rawDescOnce sync.Once
|
|
|
- file_sensitive_words_proto_rawDescData = file_sensitive_words_proto_rawDesc
|
|
|
-)
|
|
|
-
|
|
|
-func file_sensitive_words_proto_rawDescGZIP() []byte {
|
|
|
- file_sensitive_words_proto_rawDescOnce.Do(func() {
|
|
|
- file_sensitive_words_proto_rawDescData = protoimpl.X.CompressGZIP(file_sensitive_words_proto_rawDescData)
|
|
|
- })
|
|
|
- return file_sensitive_words_proto_rawDescData
|
|
|
-}
|
|
|
-
|
|
|
-var file_sensitive_words_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
|
|
-var file_sensitive_words_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
|
|
-var file_sensitive_words_proto_goTypes = []interface{}{
|
|
|
- (CorpusType)(0), // 0: proto_grpc.CorpusType
|
|
|
- (*Request)(nil), // 1: proto_grpc.Request
|
|
|
- (*ResultSensitiveWords)(nil), // 2: proto_grpc.ResultSensitiveWords
|
|
|
-}
|
|
|
-var file_sensitive_words_proto_depIdxs = []int32{
|
|
|
- 0, // 0: proto_grpc.Request.corpus:type_name -> proto_grpc.CorpusType
|
|
|
- 1, // 1: proto_grpc.SensitiveWords.Search:input_type -> proto_grpc.Request
|
|
|
- 2, // 2: proto_grpc.SensitiveWords.Search:output_type -> proto_grpc.ResultSensitiveWords
|
|
|
- 2, // [2:3] is the sub-list for method output_type
|
|
|
- 1, // [1:2] is the sub-list for method input_type
|
|
|
- 1, // [1:1] is the sub-list for extension type_name
|
|
|
- 1, // [1:1] is the sub-list for extension extendee
|
|
|
- 0, // [0:1] is the sub-list for field type_name
|
|
|
-}
|
|
|
-
|
|
|
-func init() { file_sensitive_words_proto_init() }
|
|
|
-func file_sensitive_words_proto_init() {
|
|
|
- if File_sensitive_words_proto != nil {
|
|
|
- return
|
|
|
- }
|
|
|
- if !protoimpl.UnsafeEnabled {
|
|
|
- file_sensitive_words_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
|
|
- switch v := v.(*Request); i {
|
|
|
- case 0:
|
|
|
- return &v.state
|
|
|
- case 1:
|
|
|
- return &v.sizeCache
|
|
|
- case 2:
|
|
|
- return &v.unknownFields
|
|
|
- default:
|
|
|
- return nil
|
|
|
- }
|
|
|
- }
|
|
|
- file_sensitive_words_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
|
|
- switch v := v.(*ResultSensitiveWords); i {
|
|
|
- case 0:
|
|
|
- return &v.state
|
|
|
- case 1:
|
|
|
- return &v.sizeCache
|
|
|
- case 2:
|
|
|
- return &v.unknownFields
|
|
|
- default:
|
|
|
- return nil
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- type x struct{}
|
|
|
- out := protoimpl.TypeBuilder{
|
|
|
- File: protoimpl.DescBuilder{
|
|
|
- GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
|
- RawDescriptor: file_sensitive_words_proto_rawDesc,
|
|
|
- NumEnums: 1,
|
|
|
- NumMessages: 2,
|
|
|
- NumExtensions: 0,
|
|
|
- NumServices: 1,
|
|
|
- },
|
|
|
- GoTypes: file_sensitive_words_proto_goTypes,
|
|
|
- DependencyIndexes: file_sensitive_words_proto_depIdxs,
|
|
|
- EnumInfos: file_sensitive_words_proto_enumTypes,
|
|
|
- MessageInfos: file_sensitive_words_proto_msgTypes,
|
|
|
- }.Build()
|
|
|
- File_sensitive_words_proto = out.File
|
|
|
- file_sensitive_words_proto_rawDesc = nil
|
|
|
- file_sensitive_words_proto_goTypes = nil
|
|
|
- file_sensitive_words_proto_depIdxs = nil
|
|
|
-}
|