v0

package
v1.6.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 12, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SendResponse_SendStatus_name = map[int32]string{
		0: "UNKNOWN",
		1: "SEND_OK",
		2: "SEND_REJECT",
		3: "SEND_ERROR",
	}
	SendResponse_SendStatus_value = map[string]int32{
		"UNKNOWN":     0,
		"SEND_OK":     1,
		"SEND_REJECT": 2,
		"SEND_ERROR":  3,
	}
)

Enum value maps for SendResponse_SendStatus.

View Source
var File_wgtwo_mms_v0_mms_proto protoreflect.FileDescriptor
View Source
var MmsService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "wgtwo.mms.v0.MmsService",
	HandlerType: (*MmsServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "SendMessageToSubscriber",
			Handler:    _MmsService_SendMessageToSubscriber_Handler,
		},
		{
			MethodName: "SendMessageFromSubscriber",
			Handler:    _MmsService_SendMessageFromSubscriber_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "wgtwo/mms/v0/mms.proto",
}

MmsService_ServiceDesc is the grpc.ServiceDesc for MmsService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterMmsServiceServer

func RegisterMmsServiceServer(s grpc.ServiceRegistrar, srv MmsServiceServer)

Types

type AudioContent

type AudioContent struct {

	// Types that are assignable to Content:
	//	*AudioContent_Mp3
	//	*AudioContent_Opus
	//	*AudioContent_Amr
	//	*AudioContent_Wav
	Content isAudioContent_Content `protobuf_oneof:"content"`
	// contains filtered or unexported fields
}

func (*AudioContent) Descriptor deprecated

func (*AudioContent) Descriptor() ([]byte, []int)

Deprecated: Use AudioContent.ProtoReflect.Descriptor instead.

func (*AudioContent) GetAmr

func (x *AudioContent) GetAmr() []byte

func (*AudioContent) GetContent

func (m *AudioContent) GetContent() isAudioContent_Content

func (*AudioContent) GetMp3

func (x *AudioContent) GetMp3() []byte

func (*AudioContent) GetOpus

func (x *AudioContent) GetOpus() []byte

func (*AudioContent) GetWav

func (x *AudioContent) GetWav() []byte

func (*AudioContent) ProtoMessage

func (*AudioContent) ProtoMessage()

func (*AudioContent) ProtoReflect

func (x *AudioContent) ProtoReflect() protoreflect.Message

func (*AudioContent) Reset

func (x *AudioContent) Reset()

func (*AudioContent) String

func (x *AudioContent) String() string

type AudioContent_Amr

type AudioContent_Amr struct {
	Amr []byte `protobuf:"bytes,3,opt,name=amr,proto3,oneof"`
}

type AudioContent_Mp3

type AudioContent_Mp3 struct {
	Mp3 []byte `protobuf:"bytes,1,opt,name=mp3,proto3,oneof"`
}

type AudioContent_Opus

type AudioContent_Opus struct {
	Opus []byte `protobuf:"bytes,2,opt,name=opus,proto3,oneof"`
}

type AudioContent_Wav

type AudioContent_Wav struct {
	Wav []byte `protobuf:"bytes,4,opt,name=wav,proto3,oneof"`
}

type ImageContent

type ImageContent struct {

	// Types that are assignable to Content:
	//	*ImageContent_Png
	//	*ImageContent_Jpg
	Content isImageContent_Content `protobuf_oneof:"content"`
	// contains filtered or unexported fields
}

func (*ImageContent) Descriptor deprecated

func (*ImageContent) Descriptor() ([]byte, []int)

Deprecated: Use ImageContent.ProtoReflect.Descriptor instead.

func (*ImageContent) GetContent

func (m *ImageContent) GetContent() isImageContent_Content

func (*ImageContent) GetJpg

func (x *ImageContent) GetJpg() []byte

func (*ImageContent) GetPng

func (x *ImageContent) GetPng() []byte

func (*ImageContent) ProtoMessage

func (*ImageContent) ProtoMessage()

func (*ImageContent) ProtoReflect

func (x *ImageContent) ProtoReflect() protoreflect.Message

func (*ImageContent) Reset

func (x *ImageContent) Reset()

func (*ImageContent) String

func (x *ImageContent) String() string

type ImageContent_Jpg

type ImageContent_Jpg struct {
	Jpg []byte `protobuf:"bytes,2,opt,name=jpg,proto3,oneof"`
}

type ImageContent_Png

type ImageContent_Png struct {
	Png []byte `protobuf:"bytes,1,opt,name=png,proto3,oneof"`
}

type MessageContent

type MessageContent struct {

	// Types that are assignable to Content:
	//	*MessageContent_Audio
	//	*MessageContent_Text
	//	*MessageContent_Image
	Content isMessageContent_Content `protobuf_oneof:"content"`
	// contains filtered or unexported fields
}

func (*MessageContent) Descriptor deprecated

func (*MessageContent) Descriptor() ([]byte, []int)

Deprecated: Use MessageContent.ProtoReflect.Descriptor instead.

func (*MessageContent) GetAudio

func (x *MessageContent) GetAudio() *AudioContent

func (*MessageContent) GetContent

func (m *MessageContent) GetContent() isMessageContent_Content

func (*MessageContent) GetImage

func (x *MessageContent) GetImage() *ImageContent

func (*MessageContent) GetText

func (x *MessageContent) GetText() *TextContent

func (*MessageContent) ProtoMessage

func (*MessageContent) ProtoMessage()

func (*MessageContent) ProtoReflect

func (x *MessageContent) ProtoReflect() protoreflect.Message

func (*MessageContent) Reset

func (x *MessageContent) Reset()

func (*MessageContent) String

func (x *MessageContent) String() string

type MessageContent_Audio

type MessageContent_Audio struct {
	Audio *AudioContent `protobuf:"bytes,1,opt,name=audio,proto3,oneof"`
}

type MessageContent_Image

type MessageContent_Image struct {
	Image *ImageContent `protobuf:"bytes,3,opt,name=image,proto3,oneof"`
}

type MessageContent_Text

type MessageContent_Text struct {
	Text *TextContent `protobuf:"bytes,2,opt,name=text,proto3,oneof"`
}

type MmsServiceClient

type MmsServiceClient interface {
	SendMessageToSubscriber(ctx context.Context, in *SendMessageToSubscriberRequest, opts ...grpc.CallOption) (*SendResponse, error)
	SendMessageFromSubscriber(ctx context.Context, in *SendMessageFromSubscriberRequest, opts ...grpc.CallOption) (*SendResponse, error)
}

MmsServiceClient is the client API for MmsService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewMmsServiceClient

func NewMmsServiceClient(cc grpc.ClientConnInterface) MmsServiceClient

type MmsServiceServer

type MmsServiceServer interface {
	SendMessageToSubscriber(context.Context, *SendMessageToSubscriberRequest) (*SendResponse, error)
	SendMessageFromSubscriber(context.Context, *SendMessageFromSubscriberRequest) (*SendResponse, error)
}

MmsServiceServer is the server API for MmsService service. All implementations should embed UnimplementedMmsServiceServer for forward compatibility

type SendMessageFromSubscriberRequest

type SendMessageFromSubscriberRequest struct {
	MessageContent []*MessageContent `protobuf:"bytes,1,rep,name=message_content,json=messageContent,proto3" json:"message_content,omitempty"`
	FromSubscriber *v0.PhoneNumber   `protobuf:"bytes,2,opt,name=from_subscriber,json=fromSubscriber,proto3" json:"from_subscriber,omitempty"`
	ToE164         *v0.PhoneNumber   `protobuf:"bytes,3,opt,name=to_e164,json=toE164,proto3" json:"to_e164,omitempty"`
	// contains filtered or unexported fields
}

func (*SendMessageFromSubscriberRequest) Descriptor deprecated

func (*SendMessageFromSubscriberRequest) Descriptor() ([]byte, []int)

Deprecated: Use SendMessageFromSubscriberRequest.ProtoReflect.Descriptor instead.

func (*SendMessageFromSubscriberRequest) GetFromSubscriber

func (x *SendMessageFromSubscriberRequest) GetFromSubscriber() *v0.PhoneNumber

func (*SendMessageFromSubscriberRequest) GetMessageContent

func (x *SendMessageFromSubscriberRequest) GetMessageContent() []*MessageContent

func (*SendMessageFromSubscriberRequest) GetToE164

func (*SendMessageFromSubscriberRequest) ProtoMessage

func (*SendMessageFromSubscriberRequest) ProtoMessage()

func (*SendMessageFromSubscriberRequest) ProtoReflect

func (*SendMessageFromSubscriberRequest) Reset

func (*SendMessageFromSubscriberRequest) String

type SendMessageToSubscriberRequest

type SendMessageToSubscriberRequest struct {
	MessageContent []*MessageContent `protobuf:"bytes,1,rep,name=message_content,json=messageContent,proto3" json:"message_content,omitempty"`
	// Types that are assignable to FromAddress:
	//	*SendMessageToSubscriberRequest_FromE164
	//	*SendMessageToSubscriberRequest_FromTextAddress
	FromAddress  isSendMessageToSubscriberRequest_FromAddress `protobuf_oneof:"from_address"`
	ToSubscriber *v0.PhoneNumber                              `protobuf:"bytes,5,opt,name=to_subscriber,json=toSubscriber,proto3" json:"to_subscriber,omitempty"`
	// contains filtered or unexported fields
}

func (*SendMessageToSubscriberRequest) Descriptor deprecated

func (*SendMessageToSubscriberRequest) Descriptor() ([]byte, []int)

Deprecated: Use SendMessageToSubscriberRequest.ProtoReflect.Descriptor instead.

func (*SendMessageToSubscriberRequest) GetFromAddress

func (m *SendMessageToSubscriberRequest) GetFromAddress() isSendMessageToSubscriberRequest_FromAddress

func (*SendMessageToSubscriberRequest) GetFromE164

func (x *SendMessageToSubscriberRequest) GetFromE164() *v0.PhoneNumber

func (*SendMessageToSubscriberRequest) GetFromTextAddress

func (x *SendMessageToSubscriberRequest) GetFromTextAddress() *v0.TextAddress

func (*SendMessageToSubscriberRequest) GetMessageContent

func (x *SendMessageToSubscriberRequest) GetMessageContent() []*MessageContent

func (*SendMessageToSubscriberRequest) GetToSubscriber

func (x *SendMessageToSubscriberRequest) GetToSubscriber() *v0.PhoneNumber

func (*SendMessageToSubscriberRequest) ProtoMessage

func (*SendMessageToSubscriberRequest) ProtoMessage()

func (*SendMessageToSubscriberRequest) ProtoReflect

func (*SendMessageToSubscriberRequest) Reset

func (x *SendMessageToSubscriberRequest) Reset()

func (*SendMessageToSubscriberRequest) String

type SendMessageToSubscriberRequest_FromE164

type SendMessageToSubscriberRequest_FromE164 struct {
	FromE164 *v0.PhoneNumber `protobuf:"bytes,2,opt,name=from_e164,json=fromE164,proto3,oneof"`
}

type SendMessageToSubscriberRequest_FromTextAddress

type SendMessageToSubscriberRequest_FromTextAddress struct {
	FromTextAddress *v0.TextAddress `protobuf:"bytes,3,opt,name=from_text_address,json=fromTextAddress,proto3,oneof"`
}

type SendResponse

type SendResponse struct {
	RequestId   string                  `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	Status      SendResponse_SendStatus `protobuf:"varint,2,opt,name=status,proto3,enum=wgtwo.mms.v0.SendResponse_SendStatus" json:"status,omitempty"`
	Description string                  `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	// contains filtered or unexported fields
}

func (*SendResponse) Descriptor deprecated

func (*SendResponse) Descriptor() ([]byte, []int)

Deprecated: Use SendResponse.ProtoReflect.Descriptor instead.

func (*SendResponse) GetDescription

func (x *SendResponse) GetDescription() string

func (*SendResponse) GetRequestId

func (x *SendResponse) GetRequestId() string

func (*SendResponse) GetStatus

func (x *SendResponse) GetStatus() SendResponse_SendStatus

func (*SendResponse) ProtoMessage

func (*SendResponse) ProtoMessage()

func (*SendResponse) ProtoReflect

func (x *SendResponse) ProtoReflect() protoreflect.Message

func (*SendResponse) Reset

func (x *SendResponse) Reset()

func (*SendResponse) String

func (x *SendResponse) String() string

type SendResponse_SendStatus

type SendResponse_SendStatus int32
const (
	SendResponse_UNKNOWN     SendResponse_SendStatus = 0
	SendResponse_SEND_OK     SendResponse_SendStatus = 1
	SendResponse_SEND_REJECT SendResponse_SendStatus = 2
	SendResponse_SEND_ERROR  SendResponse_SendStatus = 3
)

func (SendResponse_SendStatus) Descriptor

func (SendResponse_SendStatus) Enum

func (SendResponse_SendStatus) EnumDescriptor deprecated

func (SendResponse_SendStatus) EnumDescriptor() ([]byte, []int)

Deprecated: Use SendResponse_SendStatus.Descriptor instead.

func (SendResponse_SendStatus) Number

func (SendResponse_SendStatus) String

func (x SendResponse_SendStatus) String() string

func (SendResponse_SendStatus) Type

type TextContent

type TextContent struct {
	Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"`
	// contains filtered or unexported fields
}

func (*TextContent) Descriptor deprecated

func (*TextContent) Descriptor() ([]byte, []int)

Deprecated: Use TextContent.ProtoReflect.Descriptor instead.

func (*TextContent) GetText

func (x *TextContent) GetText() string

func (*TextContent) ProtoMessage

func (*TextContent) ProtoMessage()

func (*TextContent) ProtoReflect

func (x *TextContent) ProtoReflect() protoreflect.Message

func (*TextContent) Reset

func (x *TextContent) Reset()

func (*TextContent) String

func (x *TextContent) String() string

type UnimplementedMmsServiceServer

type UnimplementedMmsServiceServer struct {
}

UnimplementedMmsServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedMmsServiceServer) SendMessageFromSubscriber

func (UnimplementedMmsServiceServer) SendMessageToSubscriber

type UnsafeMmsServiceServer

type UnsafeMmsServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeMmsServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MmsServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL