280 lines
8.5 KiB
Go
280 lines
8.5 KiB
Go
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||
|
// versions:
|
||
|
// protoc-gen-go v1.30.0
|
||
|
// protoc v3.21.12
|
||
|
// source: responses.proto
|
||
|
|
||
|
package binary
|
||
|
|
||
|
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 PrepareNewSession struct {
|
||
|
state protoimpl.MessageState
|
||
|
sizeCache protoimpl.SizeCache
|
||
|
unknownFields protoimpl.UnknownFields
|
||
|
|
||
|
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
|
||
|
}
|
||
|
|
||
|
func (x *PrepareNewSession) Reset() {
|
||
|
*x = PrepareNewSession{}
|
||
|
if protoimpl.UnsafeEnabled {
|
||
|
mi := &file_responses_proto_msgTypes[0]
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func (x *PrepareNewSession) String() string {
|
||
|
return protoimpl.X.MessageStringOf(x)
|
||
|
}
|
||
|
|
||
|
func (*PrepareNewSession) ProtoMessage() {}
|
||
|
|
||
|
func (x *PrepareNewSession) ProtoReflect() protoreflect.Message {
|
||
|
mi := &file_responses_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 PrepareNewSession.ProtoReflect.Descriptor instead.
|
||
|
func (*PrepareNewSession) Descriptor() ([]byte, []int) {
|
||
|
return file_responses_proto_rawDescGZIP(), []int{0}
|
||
|
}
|
||
|
|
||
|
func (x *PrepareNewSession) GetSuccess() bool {
|
||
|
if x != nil {
|
||
|
return x.Success
|
||
|
}
|
||
|
return false
|
||
|
}
|
||
|
|
||
|
type NewSession struct {
|
||
|
state protoimpl.MessageState
|
||
|
sizeCache protoimpl.SizeCache
|
||
|
unknownFields protoimpl.UnknownFields
|
||
|
|
||
|
Settings *Settings `protobuf:"bytes,5,opt,name=settings,proto3" json:"settings,omitempty"`
|
||
|
}
|
||
|
|
||
|
func (x *NewSession) Reset() {
|
||
|
*x = NewSession{}
|
||
|
if protoimpl.UnsafeEnabled {
|
||
|
mi := &file_responses_proto_msgTypes[1]
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func (x *NewSession) String() string {
|
||
|
return protoimpl.X.MessageStringOf(x)
|
||
|
}
|
||
|
|
||
|
func (*NewSession) ProtoMessage() {}
|
||
|
|
||
|
func (x *NewSession) ProtoReflect() protoreflect.Message {
|
||
|
mi := &file_responses_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 NewSession.ProtoReflect.Descriptor instead.
|
||
|
func (*NewSession) Descriptor() ([]byte, []int) {
|
||
|
return file_responses_proto_rawDescGZIP(), []int{1}
|
||
|
}
|
||
|
|
||
|
func (x *NewSession) GetSettings() *Settings {
|
||
|
if x != nil {
|
||
|
return x.Settings
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
type SendMessageResponse struct {
|
||
|
state protoimpl.MessageState
|
||
|
sizeCache protoimpl.SizeCache
|
||
|
unknownFields protoimpl.UnknownFields
|
||
|
|
||
|
Type MessageType `protobuf:"varint,3,opt,name=type,proto3,enum=conversations.MessageType" json:"type,omitempty"`
|
||
|
}
|
||
|
|
||
|
func (x *SendMessageResponse) Reset() {
|
||
|
*x = SendMessageResponse{}
|
||
|
if protoimpl.UnsafeEnabled {
|
||
|
mi := &file_responses_proto_msgTypes[2]
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func (x *SendMessageResponse) String() string {
|
||
|
return protoimpl.X.MessageStringOf(x)
|
||
|
}
|
||
|
|
||
|
func (*SendMessageResponse) ProtoMessage() {}
|
||
|
|
||
|
func (x *SendMessageResponse) ProtoReflect() protoreflect.Message {
|
||
|
mi := &file_responses_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 SendMessageResponse.ProtoReflect.Descriptor instead.
|
||
|
func (*SendMessageResponse) Descriptor() ([]byte, []int) {
|
||
|
return file_responses_proto_rawDescGZIP(), []int{2}
|
||
|
}
|
||
|
|
||
|
func (x *SendMessageResponse) GetType() MessageType {
|
||
|
if x != nil {
|
||
|
return x.Type
|
||
|
}
|
||
|
return MessageType_UNKNOWN
|
||
|
}
|
||
|
|
||
|
var File_responses_proto protoreflect.FileDescriptor
|
||
|
|
||
|
var file_responses_proto_rawDesc = []byte{
|
||
|
0x0a, 0x0f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74,
|
||
|
0x6f, 0x12, 0x09, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x1a, 0x0e, 0x73, 0x65,
|
||
|
0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x13, 0x63, 0x6f,
|
||
|
0x6e, 0x76, 0x65, 0x72, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74,
|
||
|
0x6f, 0x22, 0x2d, 0x0a, 0x11, 0x50, 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, 0x4e, 0x65, 0x77, 0x53,
|
||
|
0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 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,
|
||
|
0x22, 0x3c, 0x0a, 0x0a, 0x4e, 0x65, 0x77, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x2e,
|
||
|
0x0a, 0x08, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b,
|
||
|
0x32, 0x12, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x53, 0x65, 0x74, 0x74,
|
||
|
0x69, 0x6e, 0x67, 0x73, 0x52, 0x08, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x22, 0x45,
|
||
|
0x0a, 0x13, 0x53, 0x65, 0x6e, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73,
|
||
|
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2e, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20,
|
||
|
0x01, 0x28, 0x0e, 0x32, 0x1a, 0x2e, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x61, 0x74, 0x69,
|
||
|
0x6f, 0x6e, 0x73, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52,
|
||
|
0x04, 0x74, 0x79, 0x70, 0x65, 0x42, 0x0e, 0x5a, 0x0c, 0x2e, 0x2e, 0x2f, 0x2e, 0x2e, 0x2f, 0x62,
|
||
|
0x69, 0x6e, 0x61, 0x72, 0x79, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||
|
}
|
||
|
|
||
|
var (
|
||
|
file_responses_proto_rawDescOnce sync.Once
|
||
|
file_responses_proto_rawDescData = file_responses_proto_rawDesc
|
||
|
)
|
||
|
|
||
|
func file_responses_proto_rawDescGZIP() []byte {
|
||
|
file_responses_proto_rawDescOnce.Do(func() {
|
||
|
file_responses_proto_rawDescData = protoimpl.X.CompressGZIP(file_responses_proto_rawDescData)
|
||
|
})
|
||
|
return file_responses_proto_rawDescData
|
||
|
}
|
||
|
|
||
|
var file_responses_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
|
||
|
var file_responses_proto_goTypes = []interface{}{
|
||
|
(*PrepareNewSession)(nil), // 0: responses.PrepareNewSession
|
||
|
(*NewSession)(nil), // 1: responses.NewSession
|
||
|
(*SendMessageResponse)(nil), // 2: responses.SendMessageResponse
|
||
|
(*Settings)(nil), // 3: settings.Settings
|
||
|
(MessageType)(0), // 4: conversations.MessageType
|
||
|
}
|
||
|
var file_responses_proto_depIdxs = []int32{
|
||
|
3, // 0: responses.NewSession.settings:type_name -> settings.Settings
|
||
|
4, // 1: responses.SendMessageResponse.type:type_name -> conversations.MessageType
|
||
|
2, // [2:2] is the sub-list for method output_type
|
||
|
2, // [2:2] 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_responses_proto_init() }
|
||
|
func file_responses_proto_init() {
|
||
|
if File_responses_proto != nil {
|
||
|
return
|
||
|
}
|
||
|
file_settings_proto_init()
|
||
|
file_conversations_proto_init()
|
||
|
if !protoimpl.UnsafeEnabled {
|
||
|
file_responses_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||
|
switch v := v.(*PrepareNewSession); i {
|
||
|
case 0:
|
||
|
return &v.state
|
||
|
case 1:
|
||
|
return &v.sizeCache
|
||
|
case 2:
|
||
|
return &v.unknownFields
|
||
|
default:
|
||
|
return nil
|
||
|
}
|
||
|
}
|
||
|
file_responses_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||
|
switch v := v.(*NewSession); i {
|
||
|
case 0:
|
||
|
return &v.state
|
||
|
case 1:
|
||
|
return &v.sizeCache
|
||
|
case 2:
|
||
|
return &v.unknownFields
|
||
|
default:
|
||
|
return nil
|
||
|
}
|
||
|
}
|
||
|
file_responses_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||
|
switch v := v.(*SendMessageResponse); 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_responses_proto_rawDesc,
|
||
|
NumEnums: 0,
|
||
|
NumMessages: 3,
|
||
|
NumExtensions: 0,
|
||
|
NumServices: 0,
|
||
|
},
|
||
|
GoTypes: file_responses_proto_goTypes,
|
||
|
DependencyIndexes: file_responses_proto_depIdxs,
|
||
|
MessageInfos: file_responses_proto_msgTypes,
|
||
|
}.Build()
|
||
|
File_responses_proto = out.File
|
||
|
file_responses_proto_rawDesc = nil
|
||
|
file_responses_proto_goTypes = nil
|
||
|
file_responses_proto_depIdxs = nil
|
||
|
}
|