// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0 // protoc v3.13.0 // source: Automatization.proto package grpc import ( proto "github.com/golang/protobuf/proto" 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) ) // This is a compile-time assertion that a sufficiently up-to-date version // of the legacy proto package is being used. const _ = proto.ProtoPackageIsVersion4 type RequestStatus_Status int32 const ( RequestStatus_ACCEPTED RequestStatus_Status = 0 RequestStatus_DISLINED RequestStatus_Status = 1 RequestStatus_DOWNLOADING RequestStatus_Status = 2 RequestStatus_DOWNLOADED RequestStatus_Status = 3 RequestStatus_ADDED RequestStatus_Status = 4 ) // Enum value maps for RequestStatus_Status. var ( RequestStatus_Status_name = map[int32]string{ 0: "ACCEPTED", 1: "DISLINED", 2: "DOWNLOADING", 3: "DOWNLOADED", 4: "ADDED", } RequestStatus_Status_value = map[string]int32{ "ACCEPTED": 0, "DISLINED": 1, "DOWNLOADING": 2, "DOWNLOADED": 3, "ADDED": 4, } ) func (x RequestStatus_Status) Enum() *RequestStatus_Status { p := new(RequestStatus_Status) *p = x return p } func (x RequestStatus_Status) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } func (RequestStatus_Status) Descriptor() protoreflect.EnumDescriptor { return file_Automatization_proto_enumTypes[0].Descriptor() } func (RequestStatus_Status) Type() protoreflect.EnumType { return &file_Automatization_proto_enumTypes[0] } func (x RequestStatus_Status) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Use RequestStatus_Status.Descriptor instead. func (RequestStatus_Status) EnumDescriptor() ([]byte, []int) { return file_Automatization_proto_rawDescGZIP(), []int{4, 0} } type OperationResult struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` } func (x *OperationResult) Reset() { *x = OperationResult{} if protoimpl.UnsafeEnabled { mi := &file_Automatization_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *OperationResult) String() string { return protoimpl.X.MessageStringOf(x) } func (*OperationResult) ProtoMessage() {} func (x *OperationResult) ProtoReflect() protoreflect.Message { mi := &file_Automatization_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 OperationResult.ProtoReflect.Descriptor instead. func (*OperationResult) Descriptor() ([]byte, []int) { return file_Automatization_proto_rawDescGZIP(), []int{0} } func (x *OperationResult) GetSuccess() bool { if x != nil { return x.Success } return false } func (x *OperationResult) GetMessage() string { if x != nil { return x.Message } return "" } type RequestInfo struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields UserId int32 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` MediaName string `protobuf:"bytes,2,opt,name=media_name,json=mediaName,proto3" json:"media_name,omitempty"` } func (x *RequestInfo) Reset() { *x = RequestInfo{} if protoimpl.UnsafeEnabled { mi := &file_Automatization_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *RequestInfo) String() string { return protoimpl.X.MessageStringOf(x) } func (*RequestInfo) ProtoMessage() {} func (x *RequestInfo) ProtoReflect() protoreflect.Message { mi := &file_Automatization_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 RequestInfo.ProtoReflect.Descriptor instead. func (*RequestInfo) Descriptor() ([]byte, []int) { return file_Automatization_proto_rawDescGZIP(), []int{1} } func (x *RequestInfo) GetUserId() int32 { if x != nil { return x.UserId } return 0 } func (x *RequestInfo) GetMediaName() string { if x != nil { return x.MediaName } return "" } type UserInfo struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields UserId int32 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` } func (x *UserInfo) Reset() { *x = UserInfo{} if protoimpl.UnsafeEnabled { mi := &file_Automatization_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *UserInfo) String() string { return protoimpl.X.MessageStringOf(x) } func (*UserInfo) ProtoMessage() {} func (x *UserInfo) ProtoReflect() protoreflect.Message { mi := &file_Automatization_proto_msgTypes[2] 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 UserInfo.ProtoReflect.Descriptor instead. func (*UserInfo) Descriptor() ([]byte, []int) { return file_Automatization_proto_rawDescGZIP(), []int{2} } func (x *UserInfo) GetUserId() int32 { if x != nil { return x.UserId } return 0 } type RequestLists struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields RequestStatuses []*RequestStatus `protobuf:"bytes,1,rep,name=request_statuses,json=requestStatuses,proto3" json:"request_statuses,omitempty"` } func (x *RequestLists) Reset() { *x = RequestLists{} if protoimpl.UnsafeEnabled { mi := &file_Automatization_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *RequestLists) String() string { return protoimpl.X.MessageStringOf(x) } func (*RequestLists) ProtoMessage() {} func (x *RequestLists) ProtoReflect() protoreflect.Message { mi := &file_Automatization_proto_msgTypes[3] 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 RequestLists.ProtoReflect.Descriptor instead. func (*RequestLists) Descriptor() ([]byte, []int) { return file_Automatization_proto_rawDescGZIP(), []int{3} } func (x *RequestLists) GetRequestStatuses() []*RequestStatus { if x != nil { return x.RequestStatuses } return nil } type RequestStatus struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields MediaName string `protobuf:"bytes,1,opt,name=media_name,json=mediaName,proto3" json:"media_name,omitempty"` Status RequestStatus_Status `protobuf:"varint,2,opt,name=status,proto3,enum=grpc.RequestStatus_Status" json:"status,omitempty"` Info string `protobuf:"bytes,3,opt,name=info,proto3" json:"info,omitempty"` } func (x *RequestStatus) Reset() { *x = RequestStatus{} if protoimpl.UnsafeEnabled { mi := &file_Automatization_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *RequestStatus) String() string { return protoimpl.X.MessageStringOf(x) } func (*RequestStatus) ProtoMessage() {} func (x *RequestStatus) ProtoReflect() protoreflect.Message { mi := &file_Automatization_proto_msgTypes[4] 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 RequestStatus.ProtoReflect.Descriptor instead. func (*RequestStatus) Descriptor() ([]byte, []int) { return file_Automatization_proto_rawDescGZIP(), []int{4} } func (x *RequestStatus) GetMediaName() string { if x != nil { return x.MediaName } return "" } func (x *RequestStatus) GetStatus() RequestStatus_Status { if x != nil { return x.Status } return RequestStatus_ACCEPTED } func (x *RequestStatus) GetInfo() string { if x != nil { return x.Info } return "" } var File_Automatization_proto protoreflect.FileDescriptor var file_Automatization_proto_rawDesc = []byte{ 0x0a, 0x14, 0x41, 0x75, 0x74, 0x6f, 0x6d, 0x61, 0x74, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x04, 0x67, 0x72, 0x70, 0x63, 0x22, 0x45, 0x0a, 0x0f, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x45, 0x0a, 0x0b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x23, 0x0a, 0x08, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x22, 0x4e, 0x0a, 0x0c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x73, 0x12, 0x3e, 0x0a, 0x10, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x0f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x65, 0x73, 0x22, 0xc8, 0x01, 0x0a, 0x0d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x32, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1a, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x22, 0x50, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x0c, 0x0a, 0x08, 0x41, 0x43, 0x43, 0x45, 0x50, 0x54, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x49, 0x53, 0x4c, 0x49, 0x4e, 0x45, 0x44, 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b, 0x44, 0x4f, 0x57, 0x4e, 0x4c, 0x4f, 0x41, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, 0x0e, 0x0a, 0x0a, 0x44, 0x4f, 0x57, 0x4e, 0x4c, 0x4f, 0x41, 0x44, 0x45, 0x44, 0x10, 0x03, 0x12, 0x09, 0x0a, 0x05, 0x41, 0x44, 0x44, 0x45, 0x44, 0x10, 0x04, 0x32, 0x7e, 0x0a, 0x0d, 0x41, 0x75, 0x74, 0x6f, 0x6d, 0x61, 0x74, 0x69, 0x7a, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x36, 0x0a, 0x0a, 0x41, 0x64, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x11, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x1a, 0x15, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x35, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x12, 0x0e, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x1a, 0x12, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x73, 0x42, 0x3d, 0x5a, 0x23, 0x6e, 0x69, 0x6b, 0x6f, 0x7a, 0x61, 0x76, 0x72, 0x2e, 0x72, 0x75, 0x2f, 0x70, 0x6c, 0x65, 0x78, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x61, 0x74, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x67, 0x72, 0x70, 0x63, 0xaa, 0x02, 0x15, 0x41, 0x75, 0x74, 0x6f, 0x6d, 0x61, 0x74, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x72, 0x65, 0x41, 0x70, 0x70, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( file_Automatization_proto_rawDescOnce sync.Once file_Automatization_proto_rawDescData = file_Automatization_proto_rawDesc ) func file_Automatization_proto_rawDescGZIP() []byte { file_Automatization_proto_rawDescOnce.Do(func() { file_Automatization_proto_rawDescData = protoimpl.X.CompressGZIP(file_Automatization_proto_rawDescData) }) return file_Automatization_proto_rawDescData } var file_Automatization_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_Automatization_proto_msgTypes = make([]protoimpl.MessageInfo, 5) var file_Automatization_proto_goTypes = []interface{}{ (RequestStatus_Status)(0), // 0: grpc.RequestStatus.Status (*OperationResult)(nil), // 1: grpc.OperationResult (*RequestInfo)(nil), // 2: grpc.RequestInfo (*UserInfo)(nil), // 3: grpc.UserInfo (*RequestLists)(nil), // 4: grpc.RequestLists (*RequestStatus)(nil), // 5: grpc.RequestStatus } var file_Automatization_proto_depIdxs = []int32{ 5, // 0: grpc.RequestLists.request_statuses:type_name -> grpc.RequestStatus 0, // 1: grpc.RequestStatus.status:type_name -> grpc.RequestStatus.Status 2, // 2: grpc.Automatizator.AddRequest:input_type -> grpc.RequestInfo 3, // 3: grpc.Automatizator.GetUserRequests:input_type -> grpc.UserInfo 1, // 4: grpc.Automatizator.AddRequest:output_type -> grpc.OperationResult 4, // 5: grpc.Automatizator.GetUserRequests:output_type -> grpc.RequestLists 4, // [4:6] is the sub-list for method output_type 2, // [2:4] is the sub-list for method input_type 2, // [2:2] is the sub-list for extension type_name 2, // [2:2] is the sub-list for extension extendee 0, // [0:2] is the sub-list for field type_name } func init() { file_Automatization_proto_init() } func file_Automatization_proto_init() { if File_Automatization_proto != nil { return } if !protoimpl.UnsafeEnabled { file_Automatization_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*OperationResult); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_Automatization_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*RequestInfo); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_Automatization_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*UserInfo); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_Automatization_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*RequestLists); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_Automatization_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*RequestStatus); 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_Automatization_proto_rawDesc, NumEnums: 1, NumMessages: 5, NumExtensions: 0, NumServices: 1, }, GoTypes: file_Automatization_proto_goTypes, DependencyIndexes: file_Automatization_proto_depIdxs, EnumInfos: file_Automatization_proto_enumTypes, MessageInfos: file_Automatization_proto_msgTypes, }.Build() File_Automatization_proto = out.File file_Automatization_proto_rawDesc = nil file_Automatization_proto_goTypes = nil file_Automatization_proto_depIdxs = nil }