Files
archie/internal/contracts/messaging/v1/messaging.pb.go
T

186 lines
6.0 KiB
Go

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.11
// protoc (unknown)
// source: messaging/v1/messaging.proto
package messagingv1
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
unsafe "unsafe"
)
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 DeliverRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
// channel names the channel, such as "telegram".
Channel string `protobuf:"bytes,1,opt,name=channel,proto3" json:"channel,omitempty"`
// chat_id is the channel-native chat identifier.
ChatId string `protobuf:"bytes,2,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"`
Text string `protobuf:"bytes,3,opt,name=text,proto3" json:"text,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *DeliverRequest) Reset() {
*x = DeliverRequest{}
mi := &file_messaging_v1_messaging_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *DeliverRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DeliverRequest) ProtoMessage() {}
func (x *DeliverRequest) ProtoReflect() protoreflect.Message {
mi := &file_messaging_v1_messaging_proto_msgTypes[0]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DeliverRequest.ProtoReflect.Descriptor instead.
func (*DeliverRequest) Descriptor() ([]byte, []int) {
return file_messaging_v1_messaging_proto_rawDescGZIP(), []int{0}
}
func (x *DeliverRequest) GetChannel() string {
if x != nil {
return x.Channel
}
return ""
}
func (x *DeliverRequest) GetChatId() string {
if x != nil {
return x.ChatId
}
return ""
}
func (x *DeliverRequest) GetText() string {
if x != nil {
return x.Text
}
return ""
}
type DeliverResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *DeliverResponse) Reset() {
*x = DeliverResponse{}
mi := &file_messaging_v1_messaging_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *DeliverResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DeliverResponse) ProtoMessage() {}
func (x *DeliverResponse) ProtoReflect() protoreflect.Message {
mi := &file_messaging_v1_messaging_proto_msgTypes[1]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DeliverResponse.ProtoReflect.Descriptor instead.
func (*DeliverResponse) Descriptor() ([]byte, []int) {
return file_messaging_v1_messaging_proto_rawDescGZIP(), []int{1}
}
var File_messaging_v1_messaging_proto protoreflect.FileDescriptor
const file_messaging_v1_messaging_proto_rawDesc = "" +
"\n" +
"\x1cmessaging/v1/messaging.proto\x12\fmessaging.v1\"W\n" +
"\x0eDeliverRequest\x12\x18\n" +
"\achannel\x18\x01 \x01(\tR\achannel\x12\x17\n" +
"\achat_id\x18\x02 \x01(\tR\x06chatId\x12\x12\n" +
"\x04text\x18\x03 \x01(\tR\x04text\"\x11\n" +
"\x0fDeliverResponse2Z\n" +
"\x10MessagingService\x12F\n" +
"\aDeliver\x12\x1c.messaging.v1.DeliverRequest\x1a\x1d.messaging.v1.DeliverResponseB\xc4\x01\n" +
"\x10com.messaging.v1B\x0eMessagingProtoP\x01ZOgithub.com/samcharles93/archie-core/internal/contracts/messaging/v1;messagingv1\xa2\x02\x03MXX\xaa\x02\fMessaging.V1\xca\x02\fMessaging\\V1\xe2\x02\x18Messaging\\V1\\GPBMetadata\xea\x02\rMessaging::V1b\x06proto3"
var (
file_messaging_v1_messaging_proto_rawDescOnce sync.Once
file_messaging_v1_messaging_proto_rawDescData []byte
)
func file_messaging_v1_messaging_proto_rawDescGZIP() []byte {
file_messaging_v1_messaging_proto_rawDescOnce.Do(func() {
file_messaging_v1_messaging_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_messaging_v1_messaging_proto_rawDesc), len(file_messaging_v1_messaging_proto_rawDesc)))
})
return file_messaging_v1_messaging_proto_rawDescData
}
var file_messaging_v1_messaging_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_messaging_v1_messaging_proto_goTypes = []any{
(*DeliverRequest)(nil), // 0: messaging.v1.DeliverRequest
(*DeliverResponse)(nil), // 1: messaging.v1.DeliverResponse
}
var file_messaging_v1_messaging_proto_depIdxs = []int32{
0, // 0: messaging.v1.MessagingService.Deliver:input_type -> messaging.v1.DeliverRequest
1, // 1: messaging.v1.MessagingService.Deliver:output_type -> messaging.v1.DeliverResponse
1, // [1:2] is the sub-list for method output_type
0, // [0:1] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_messaging_v1_messaging_proto_init() }
func file_messaging_v1_messaging_proto_init() {
if File_messaging_v1_messaging_proto != nil {
return
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_messaging_v1_messaging_proto_rawDesc), len(file_messaging_v1_messaging_proto_rawDesc)),
NumEnums: 0,
NumMessages: 2,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_messaging_v1_messaging_proto_goTypes,
DependencyIndexes: file_messaging_v1_messaging_proto_depIdxs,
MessageInfos: file_messaging_v1_messaging_proto_msgTypes,
}.Build()
File_messaging_v1_messaging_proto = out.File
file_messaging_v1_messaging_proto_goTypes = nil
file_messaging_v1_messaging_proto_depIdxs = nil
}