// protoc -I=. -I=$GOPATH/src --go_out=plugins=grpc:. *.proto // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.19.1 // source: auth.proto package proto 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 Device int32 const ( Device_Android Device = 0 Device_IOS Device = 1 ) // Enum value maps for Device. var ( Device_name = map[int32]string{ 0: "Android", 1: "IOS", } Device_value = map[string]int32{ "Android": 0, "IOS": 1, } ) func (x Device) Enum() *Device { p := new(Device) *p = x return p } func (x Device) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } func (Device) Descriptor() protoreflect.EnumDescriptor { return file_auth_proto_enumTypes[0].Descriptor() } func (Device) Type() protoreflect.EnumType { return &file_auth_proto_enumTypes[0] } func (x Device) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Use Device.Descriptor instead. func (Device) EnumDescriptor() ([]byte, []int) { return file_auth_proto_rawDescGZIP(), []int{0} } type Login struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Device Device `protobuf:"varint,1,opt,name=device,proto3,enum=imparse.auth.Device" json:"device,omitempty"` Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` DeviceToken string `protobuf:"bytes,3,opt,name=deviceToken,proto3" json:"deviceToken,omitempty"` } func (x *Login) Reset() { *x = Login{} if protoimpl.UnsafeEnabled { mi := &file_auth_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *Login) String() string { return protoimpl.X.MessageStringOf(x) } func (*Login) ProtoMessage() {} func (x *Login) ProtoReflect() protoreflect.Message { mi := &file_auth_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 Login.ProtoReflect.Descriptor instead. func (*Login) Descriptor() ([]byte, []int) { return file_auth_proto_rawDescGZIP(), []int{0} } func (x *Login) GetDevice() Device { if x != nil { return x.Device } return Device_Android } func (x *Login) GetUsername() string { if x != nil { return x.Username } return "" } func (x *Login) GetDeviceToken() string { if x != nil { return x.DeviceToken } return "" } var File_auth_proto protoreflect.FileDescriptor var file_auth_proto_rawDesc = []byte{ 0x0a, 0x0a, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x69, 0x6d, 0x70, 0x61, 0x72, 0x73, 0x65, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x22, 0x73, 0x0a, 0x05, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x12, 0x2c, 0x0a, 0x06, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x14, 0x2e, 0x69, 0x6d, 0x70, 0x61, 0x72, 0x73, 0x65, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x52, 0x06, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x2a, 0x1e, 0x0a, 0x06, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x69, 0x64, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x49, 0x4f, 0x53, 0x10, 0x01, 0x42, 0x21, 0x5a, 0x1f, 0x67, 0x69, 0x74, 0x6c, 0x61, 0x62, 0x2e, 0x33, 0x33, 0x2e, 0x63, 0x6e, 0x2f, 0x63, 0x68, 0x61, 0x74, 0x2f, 0x69, 0x6d, 0x70, 0x61, 0x72, 0x73, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( file_auth_proto_rawDescOnce sync.Once file_auth_proto_rawDescData = file_auth_proto_rawDesc ) func file_auth_proto_rawDescGZIP() []byte { file_auth_proto_rawDescOnce.Do(func() { file_auth_proto_rawDescData = protoimpl.X.CompressGZIP(file_auth_proto_rawDescData) }) return file_auth_proto_rawDescData } var file_auth_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_auth_proto_msgTypes = make([]protoimpl.MessageInfo, 1) var file_auth_proto_goTypes = []interface{}{ (Device)(0), // 0: imparse.auth.Device (*Login)(nil), // 1: imparse.auth.Login } var file_auth_proto_depIdxs = []int32{ 0, // 0: imparse.auth.Login.device:type_name -> imparse.auth.Device 1, // [1:1] is the sub-list for method output_type 1, // [1:1] 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_auth_proto_init() } func file_auth_proto_init() { if File_auth_proto != nil { return } if !protoimpl.UnsafeEnabled { file_auth_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Login); 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_auth_proto_rawDesc, NumEnums: 1, NumMessages: 1, NumExtensions: 0, NumServices: 0, }, GoTypes: file_auth_proto_goTypes, DependencyIndexes: file_auth_proto_depIdxs, EnumInfos: file_auth_proto_enumTypes, MessageInfos: file_auth_proto_msgTypes, }.Build() File_auth_proto = out.File file_auth_proto_rawDesc = nil file_auth_proto_goTypes = nil file_auth_proto_depIdxs = nil }