Documentation ¶
Index ¶
- Variables
- func RegisterSmsServiceServer(s grpc.ServiceRegistrar, srv SmsServiceServer)
- type SendBinaryToSubscriberRequest
- func (*SendBinaryToSubscriberRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SendBinaryToSubscriberRequest) GetApplicationPort() *SendBinaryToSubscriberRequest_ApplicationPort
- func (x *SendBinaryToSubscriberRequest) GetContent() []byte
- func (m *SendBinaryToSubscriberRequest) GetFromAddress() isSendBinaryToSubscriberRequest_FromAddress
- func (x *SendBinaryToSubscriberRequest) GetFromE164() *v0.PhoneNumber
- func (x *SendBinaryToSubscriberRequest) GetFromShortNumber() *v0.NationalPhoneNumber
- func (x *SendBinaryToSubscriberRequest) GetFromTextAddress() *v0.TextAddress
- func (x *SendBinaryToSubscriberRequest) GetMessageClass() SendBinaryToSubscriberRequest_MessageClass
- func (x *SendBinaryToSubscriberRequest) GetToSubscriber() *v0.PhoneNumber
- func (*SendBinaryToSubscriberRequest) ProtoMessage()
- func (x *SendBinaryToSubscriberRequest) ProtoReflect() protoreflect.Message
- func (x *SendBinaryToSubscriberRequest) Reset()
- func (x *SendBinaryToSubscriberRequest) String() string
- type SendBinaryToSubscriberRequest_ApplicationPort
- func (*SendBinaryToSubscriberRequest_ApplicationPort) Descriptor() ([]byte, []int)deprecated
- func (x *SendBinaryToSubscriberRequest_ApplicationPort) GetDestinationPort() uint32
- func (x *SendBinaryToSubscriberRequest_ApplicationPort) GetOriginatorPort() uint32
- func (*SendBinaryToSubscriberRequest_ApplicationPort) ProtoMessage()
- func (x *SendBinaryToSubscriberRequest_ApplicationPort) ProtoReflect() protoreflect.Message
- func (x *SendBinaryToSubscriberRequest_ApplicationPort) Reset()
- func (x *SendBinaryToSubscriberRequest_ApplicationPort) String() string
- type SendBinaryToSubscriberRequest_FromE164
- type SendBinaryToSubscriberRequest_FromShortNumber
- type SendBinaryToSubscriberRequest_FromTextAddress
- type SendBinaryToSubscriberRequest_MessageClass
- func (SendBinaryToSubscriberRequest_MessageClass) Descriptor() protoreflect.EnumDescriptor
- func (x SendBinaryToSubscriberRequest_MessageClass) Enum() *SendBinaryToSubscriberRequest_MessageClass
- func (SendBinaryToSubscriberRequest_MessageClass) EnumDescriptor() ([]byte, []int)deprecated
- func (x SendBinaryToSubscriberRequest_MessageClass) Number() protoreflect.EnumNumber
- func (x SendBinaryToSubscriberRequest_MessageClass) String() string
- func (SendBinaryToSubscriberRequest_MessageClass) Type() protoreflect.EnumType
- type SendResponse
- func (*SendResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SendResponse) GetDescription() string
- func (x *SendResponse) GetRequestId() string
- func (x *SendResponse) GetStatus() SendResponse_SendStatus
- func (*SendResponse) ProtoMessage()
- func (x *SendResponse) ProtoReflect() protoreflect.Message
- func (x *SendResponse) Reset()
- func (x *SendResponse) String() string
- type SendResponse_SendStatus
- func (SendResponse_SendStatus) Descriptor() protoreflect.EnumDescriptor
- func (x SendResponse_SendStatus) Enum() *SendResponse_SendStatus
- func (SendResponse_SendStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x SendResponse_SendStatus) Number() protoreflect.EnumNumber
- func (x SendResponse_SendStatus) String() string
- func (SendResponse_SendStatus) Type() protoreflect.EnumType
- type SendTextAsOperatorRequest
- func (*SendTextAsOperatorRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SendTextAsOperatorRequest) GetContent() string
- func (x *SendTextAsOperatorRequest) GetFromOperatorAddress() *v0.TextAddress
- func (x *SendTextAsOperatorRequest) GetToSubscriber() *v0.PhoneNumber
- func (*SendTextAsOperatorRequest) ProtoMessage()
- func (x *SendTextAsOperatorRequest) ProtoReflect() protoreflect.Message
- func (x *SendTextAsOperatorRequest) Reset()
- func (x *SendTextAsOperatorRequest) String() string
- type SendTextAsProductRequest
- func (*SendTextAsProductRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SendTextAsProductRequest) GetContent() string
- func (x *SendTextAsProductRequest) GetFromProductAddress() *v0.TextAddress
- func (x *SendTextAsProductRequest) GetToSubscriber() *v0.PhoneNumber
- func (*SendTextAsProductRequest) ProtoMessage()
- func (x *SendTextAsProductRequest) ProtoReflect() protoreflect.Message
- func (x *SendTextAsProductRequest) Reset()
- func (x *SendTextAsProductRequest) String() string
- type SendTextFromSubscriberRequest
- func (*SendTextFromSubscriberRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SendTextFromSubscriberRequest) GetContent() string
- func (x *SendTextFromSubscriberRequest) GetFromSubscriber() *v0.PhoneNumber
- func (m *SendTextFromSubscriberRequest) GetToAddress() isSendTextFromSubscriberRequest_ToAddress
- func (x *SendTextFromSubscriberRequest) GetToE164() *v0.PhoneNumber
- func (x *SendTextFromSubscriberRequest) GetToShortNumber() *v0.NationalPhoneNumber
- func (*SendTextFromSubscriberRequest) ProtoMessage()
- func (x *SendTextFromSubscriberRequest) ProtoReflect() protoreflect.Message
- func (x *SendTextFromSubscriberRequest) Reset()
- func (x *SendTextFromSubscriberRequest) String() string
- type SendTextFromSubscriberRequest_ToE164
- type SendTextFromSubscriberRequest_ToShortNumber
- type SendTextToSubscriberRequest
- func (*SendTextToSubscriberRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SendTextToSubscriberRequest) GetContent() string
- func (m *SendTextToSubscriberRequest) GetFromAddress() isSendTextToSubscriberRequest_FromAddress
- func (x *SendTextToSubscriberRequest) GetFromE164() *v0.PhoneNumber
- func (x *SendTextToSubscriberRequest) GetFromShortNumber() *v0.NationalPhoneNumber
- func (x *SendTextToSubscriberRequest) GetFromTextAddress() *v0.TextAddress
- func (x *SendTextToSubscriberRequest) GetToSubscriber() *v0.PhoneNumber
- func (*SendTextToSubscriberRequest) ProtoMessage()
- func (x *SendTextToSubscriberRequest) ProtoReflect() protoreflect.Message
- func (x *SendTextToSubscriberRequest) Reset()
- func (x *SendTextToSubscriberRequest) String() string
- type SendTextToSubscriberRequest_FromE164
- type SendTextToSubscriberRequest_FromShortNumber
- type SendTextToSubscriberRequest_FromTextAddress
- type SmsServiceClient
- type SmsServiceServer
- type UnimplementedSmsServiceServer
- func (UnimplementedSmsServiceServer) SendBinaryToSubscriber(context.Context, *SendBinaryToSubscriberRequest) (*SendResponse, error)
- func (UnimplementedSmsServiceServer) SendTextFromSubscriber(context.Context, *SendTextFromSubscriberRequest) (*SendResponse, error)
- func (UnimplementedSmsServiceServer) SendTextToSubscriber(context.Context, *SendTextToSubscriberRequest) (*SendResponse, error)
- func (UnimplementedSmsServiceServer) SendTextToSubscriberAsOperator(context.Context, *SendTextAsOperatorRequest) (*SendResponse, error)
- func (UnimplementedSmsServiceServer) SendTextToSubscriberAsProduct(context.Context, *SendTextAsProductRequest) (*SendResponse, error)
- type UnsafeSmsServiceServer
Constants ¶
This section is empty.
Variables ¶
var ( SendBinaryToSubscriberRequest_MessageClass_name = map[int32]string{ 0: "MESSAGE_CLASS_NOT_SET", 1: "CLASS0", 2: "CLASS1", 3: "CLASS2", 4: "CLASS3", } SendBinaryToSubscriberRequest_MessageClass_value = map[string]int32{ "MESSAGE_CLASS_NOT_SET": 0, "CLASS0": 1, "CLASS1": 2, "CLASS2": 3, "CLASS3": 4, } )
Enum value maps for SendBinaryToSubscriberRequest_MessageClass.
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.
var File_wgtwo_sms_v0_sms_proto protoreflect.FileDescriptor
var SmsService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "wgtwo.sms.v0.SmsService", HandlerType: (*SmsServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "SendTextFromSubscriber", Handler: _SmsService_SendTextFromSubscriber_Handler, }, { MethodName: "SendBinaryToSubscriber", Handler: _SmsService_SendBinaryToSubscriber_Handler, }, { MethodName: "SendTextToSubscriber", Handler: _SmsService_SendTextToSubscriber_Handler, }, { MethodName: "SendTextToSubscriberAsOperator", Handler: _SmsService_SendTextToSubscriberAsOperator_Handler, }, { MethodName: "SendTextToSubscriberAsProduct", Handler: _SmsService_SendTextToSubscriberAsProduct_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "wgtwo/sms/v0/sms.proto", }
SmsService_ServiceDesc is the grpc.ServiceDesc for SmsService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterSmsServiceServer ¶
func RegisterSmsServiceServer(s grpc.ServiceRegistrar, srv SmsServiceServer)
Types ¶
type SendBinaryToSubscriberRequest ¶
type SendBinaryToSubscriberRequest struct { Content []byte `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"` // Types that are assignable to FromAddress: // *SendBinaryToSubscriberRequest_FromE164 // *SendBinaryToSubscriberRequest_FromTextAddress // *SendBinaryToSubscriberRequest_FromShortNumber FromAddress isSendBinaryToSubscriberRequest_FromAddress `protobuf_oneof:"from_address"` ToSubscriber *v0.PhoneNumber `protobuf:"bytes,4,opt,name=to_subscriber,json=toSubscriber,proto3" json:"to_subscriber,omitempty"` MessageClass SendBinaryToSubscriberRequest_MessageClass `` /* 159-byte string literal not displayed */ ApplicationPort *SendBinaryToSubscriberRequest_ApplicationPort `protobuf:"bytes,6,opt,name=applicationPort,proto3" json:"applicationPort,omitempty"` // contains filtered or unexported fields }
func (*SendBinaryToSubscriberRequest) Descriptor
deprecated
func (*SendBinaryToSubscriberRequest) Descriptor() ([]byte, []int)
Deprecated: Use SendBinaryToSubscriberRequest.ProtoReflect.Descriptor instead.
func (*SendBinaryToSubscriberRequest) GetApplicationPort ¶ added in v0.1.1
func (x *SendBinaryToSubscriberRequest) GetApplicationPort() *SendBinaryToSubscriberRequest_ApplicationPort
func (*SendBinaryToSubscriberRequest) GetContent ¶
func (x *SendBinaryToSubscriberRequest) GetContent() []byte
func (*SendBinaryToSubscriberRequest) GetFromAddress ¶
func (m *SendBinaryToSubscriberRequest) GetFromAddress() isSendBinaryToSubscriberRequest_FromAddress
func (*SendBinaryToSubscriberRequest) GetFromE164 ¶
func (x *SendBinaryToSubscriberRequest) GetFromE164() *v0.PhoneNumber
func (*SendBinaryToSubscriberRequest) GetFromShortNumber ¶ added in v0.1.1
func (x *SendBinaryToSubscriberRequest) GetFromShortNumber() *v0.NationalPhoneNumber
func (*SendBinaryToSubscriberRequest) GetFromTextAddress ¶
func (x *SendBinaryToSubscriberRequest) GetFromTextAddress() *v0.TextAddress
func (*SendBinaryToSubscriberRequest) GetMessageClass ¶
func (x *SendBinaryToSubscriberRequest) GetMessageClass() SendBinaryToSubscriberRequest_MessageClass
func (*SendBinaryToSubscriberRequest) GetToSubscriber ¶
func (x *SendBinaryToSubscriberRequest) GetToSubscriber() *v0.PhoneNumber
func (*SendBinaryToSubscriberRequest) ProtoMessage ¶
func (*SendBinaryToSubscriberRequest) ProtoMessage()
func (*SendBinaryToSubscriberRequest) ProtoReflect ¶
func (x *SendBinaryToSubscriberRequest) ProtoReflect() protoreflect.Message
func (*SendBinaryToSubscriberRequest) Reset ¶
func (x *SendBinaryToSubscriberRequest) Reset()
func (*SendBinaryToSubscriberRequest) String ¶
func (x *SendBinaryToSubscriberRequest) String() string
type SendBinaryToSubscriberRequest_ApplicationPort ¶ added in v0.1.1
type SendBinaryToSubscriberRequest_ApplicationPort struct { OriginatorPort uint32 `protobuf:"varint,1,opt,name=originatorPort,proto3" json:"originatorPort,omitempty"` DestinationPort uint32 `protobuf:"varint,2,opt,name=destinationPort,proto3" json:"destinationPort,omitempty"` // contains filtered or unexported fields }
func (*SendBinaryToSubscriberRequest_ApplicationPort) Descriptor
deprecated
added in
v0.1.1
func (*SendBinaryToSubscriberRequest_ApplicationPort) Descriptor() ([]byte, []int)
Deprecated: Use SendBinaryToSubscriberRequest_ApplicationPort.ProtoReflect.Descriptor instead.
func (*SendBinaryToSubscriberRequest_ApplicationPort) GetDestinationPort ¶ added in v0.1.1
func (x *SendBinaryToSubscriberRequest_ApplicationPort) GetDestinationPort() uint32
func (*SendBinaryToSubscriberRequest_ApplicationPort) GetOriginatorPort ¶ added in v0.1.1
func (x *SendBinaryToSubscriberRequest_ApplicationPort) GetOriginatorPort() uint32
func (*SendBinaryToSubscriberRequest_ApplicationPort) ProtoMessage ¶ added in v0.1.1
func (*SendBinaryToSubscriberRequest_ApplicationPort) ProtoMessage()
func (*SendBinaryToSubscriberRequest_ApplicationPort) ProtoReflect ¶ added in v0.1.1
func (x *SendBinaryToSubscriberRequest_ApplicationPort) ProtoReflect() protoreflect.Message
func (*SendBinaryToSubscriberRequest_ApplicationPort) Reset ¶ added in v0.1.1
func (x *SendBinaryToSubscriberRequest_ApplicationPort) Reset()
func (*SendBinaryToSubscriberRequest_ApplicationPort) String ¶ added in v0.1.1
func (x *SendBinaryToSubscriberRequest_ApplicationPort) String() string
type SendBinaryToSubscriberRequest_FromE164 ¶
type SendBinaryToSubscriberRequest_FromE164 struct {
FromE164 *v0.PhoneNumber `protobuf:"bytes,2,opt,name=from_e164,json=fromE164,proto3,oneof"`
}
type SendBinaryToSubscriberRequest_FromShortNumber ¶ added in v0.1.1
type SendBinaryToSubscriberRequest_FromShortNumber struct {
FromShortNumber *v0.NationalPhoneNumber `protobuf:"bytes,7,opt,name=from_short_number,json=fromShortNumber,proto3,oneof"`
}
type SendBinaryToSubscriberRequest_FromTextAddress ¶
type SendBinaryToSubscriberRequest_FromTextAddress struct {
FromTextAddress *v0.TextAddress `protobuf:"bytes,3,opt,name=from_text_address,json=fromTextAddress,proto3,oneof"`
}
type SendBinaryToSubscriberRequest_MessageClass ¶
type SendBinaryToSubscriberRequest_MessageClass int32
The class of the message. See https://en.wikipedia.org/wiki/Data_Coding_Scheme#Message_Classes
const ( SendBinaryToSubscriberRequest_MESSAGE_CLASS_NOT_SET SendBinaryToSubscriberRequest_MessageClass = 0 SendBinaryToSubscriberRequest_CLASS0 SendBinaryToSubscriberRequest_MessageClass = 1 SendBinaryToSubscriberRequest_CLASS1 SendBinaryToSubscriberRequest_MessageClass = 2 SendBinaryToSubscriberRequest_CLASS2 SendBinaryToSubscriberRequest_MessageClass = 3 SendBinaryToSubscriberRequest_CLASS3 SendBinaryToSubscriberRequest_MessageClass = 4 )
func (SendBinaryToSubscriberRequest_MessageClass) Descriptor ¶
func (SendBinaryToSubscriberRequest_MessageClass) Descriptor() protoreflect.EnumDescriptor
func (SendBinaryToSubscriberRequest_MessageClass) EnumDescriptor
deprecated
func (SendBinaryToSubscriberRequest_MessageClass) EnumDescriptor() ([]byte, []int)
Deprecated: Use SendBinaryToSubscriberRequest_MessageClass.Descriptor instead.
func (SendBinaryToSubscriberRequest_MessageClass) Number ¶
func (x SendBinaryToSubscriberRequest_MessageClass) Number() protoreflect.EnumNumber
func (SendBinaryToSubscriberRequest_MessageClass) String ¶
func (x SendBinaryToSubscriberRequest_MessageClass) String() string
func (SendBinaryToSubscriberRequest_MessageClass) Type ¶
func (SendBinaryToSubscriberRequest_MessageClass) Type() protoreflect.EnumType
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.sms.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) Descriptor() protoreflect.EnumDescriptor
func (SendResponse_SendStatus) Enum ¶
func (x SendResponse_SendStatus) Enum() *SendResponse_SendStatus
func (SendResponse_SendStatus) EnumDescriptor
deprecated
func (SendResponse_SendStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use SendResponse_SendStatus.Descriptor instead.
func (SendResponse_SendStatus) Number ¶
func (x SendResponse_SendStatus) Number() protoreflect.EnumNumber
func (SendResponse_SendStatus) String ¶
func (x SendResponse_SendStatus) String() string
func (SendResponse_SendStatus) Type ¶
func (SendResponse_SendStatus) Type() protoreflect.EnumType
type SendTextAsOperatorRequest ¶
type SendTextAsOperatorRequest struct { Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"` FromOperatorAddress *v0.TextAddress `protobuf:"bytes,2,opt,name=from_operator_address,json=fromOperatorAddress,proto3" json:"from_operator_address,omitempty"` ToSubscriber *v0.PhoneNumber `protobuf:"bytes,3,opt,name=to_subscriber,json=toSubscriber,proto3" json:"to_subscriber,omitempty"` // contains filtered or unexported fields }
func (*SendTextAsOperatorRequest) Descriptor
deprecated
func (*SendTextAsOperatorRequest) Descriptor() ([]byte, []int)
Deprecated: Use SendTextAsOperatorRequest.ProtoReflect.Descriptor instead.
func (*SendTextAsOperatorRequest) GetContent ¶
func (x *SendTextAsOperatorRequest) GetContent() string
func (*SendTextAsOperatorRequest) GetFromOperatorAddress ¶
func (x *SendTextAsOperatorRequest) GetFromOperatorAddress() *v0.TextAddress
func (*SendTextAsOperatorRequest) GetToSubscriber ¶
func (x *SendTextAsOperatorRequest) GetToSubscriber() *v0.PhoneNumber
func (*SendTextAsOperatorRequest) ProtoMessage ¶
func (*SendTextAsOperatorRequest) ProtoMessage()
func (*SendTextAsOperatorRequest) ProtoReflect ¶
func (x *SendTextAsOperatorRequest) ProtoReflect() protoreflect.Message
func (*SendTextAsOperatorRequest) Reset ¶
func (x *SendTextAsOperatorRequest) Reset()
func (*SendTextAsOperatorRequest) String ¶
func (x *SendTextAsOperatorRequest) String() string
type SendTextAsProductRequest ¶
type SendTextAsProductRequest struct { Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"` FromProductAddress *v0.TextAddress `protobuf:"bytes,2,opt,name=from_product_address,json=fromProductAddress,proto3" json:"from_product_address,omitempty"` ToSubscriber *v0.PhoneNumber `protobuf:"bytes,3,opt,name=to_subscriber,json=toSubscriber,proto3" json:"to_subscriber,omitempty"` // contains filtered or unexported fields }
func (*SendTextAsProductRequest) Descriptor
deprecated
func (*SendTextAsProductRequest) Descriptor() ([]byte, []int)
Deprecated: Use SendTextAsProductRequest.ProtoReflect.Descriptor instead.
func (*SendTextAsProductRequest) GetContent ¶
func (x *SendTextAsProductRequest) GetContent() string
func (*SendTextAsProductRequest) GetFromProductAddress ¶
func (x *SendTextAsProductRequest) GetFromProductAddress() *v0.TextAddress
func (*SendTextAsProductRequest) GetToSubscriber ¶
func (x *SendTextAsProductRequest) GetToSubscriber() *v0.PhoneNumber
func (*SendTextAsProductRequest) ProtoMessage ¶
func (*SendTextAsProductRequest) ProtoMessage()
func (*SendTextAsProductRequest) ProtoReflect ¶
func (x *SendTextAsProductRequest) ProtoReflect() protoreflect.Message
func (*SendTextAsProductRequest) Reset ¶
func (x *SendTextAsProductRequest) Reset()
func (*SendTextAsProductRequest) String ¶
func (x *SendTextAsProductRequest) String() string
type SendTextFromSubscriberRequest ¶
type SendTextFromSubscriberRequest struct { Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"` FromSubscriber *v0.PhoneNumber `protobuf:"bytes,2,opt,name=from_subscriber,json=fromSubscriber,proto3" json:"from_subscriber,omitempty"` // Types that are assignable to ToAddress: // *SendTextFromSubscriberRequest_ToE164 // *SendTextFromSubscriberRequest_ToShortNumber ToAddress isSendTextFromSubscriberRequest_ToAddress `protobuf_oneof:"to_address"` // contains filtered or unexported fields }
func (*SendTextFromSubscriberRequest) Descriptor
deprecated
func (*SendTextFromSubscriberRequest) Descriptor() ([]byte, []int)
Deprecated: Use SendTextFromSubscriberRequest.ProtoReflect.Descriptor instead.
func (*SendTextFromSubscriberRequest) GetContent ¶
func (x *SendTextFromSubscriberRequest) GetContent() string
func (*SendTextFromSubscriberRequest) GetFromSubscriber ¶
func (x *SendTextFromSubscriberRequest) GetFromSubscriber() *v0.PhoneNumber
func (*SendTextFromSubscriberRequest) GetToAddress ¶ added in v0.1.1
func (m *SendTextFromSubscriberRequest) GetToAddress() isSendTextFromSubscriberRequest_ToAddress
func (*SendTextFromSubscriberRequest) GetToE164 ¶
func (x *SendTextFromSubscriberRequest) GetToE164() *v0.PhoneNumber
func (*SendTextFromSubscriberRequest) GetToShortNumber ¶ added in v0.1.1
func (x *SendTextFromSubscriberRequest) GetToShortNumber() *v0.NationalPhoneNumber
func (*SendTextFromSubscriberRequest) ProtoMessage ¶
func (*SendTextFromSubscriberRequest) ProtoMessage()
func (*SendTextFromSubscriberRequest) ProtoReflect ¶
func (x *SendTextFromSubscriberRequest) ProtoReflect() protoreflect.Message
func (*SendTextFromSubscriberRequest) Reset ¶
func (x *SendTextFromSubscriberRequest) Reset()
func (*SendTextFromSubscriberRequest) String ¶
func (x *SendTextFromSubscriberRequest) String() string
type SendTextFromSubscriberRequest_ToE164 ¶ added in v0.1.1
type SendTextFromSubscriberRequest_ToE164 struct {
ToE164 *v0.PhoneNumber `protobuf:"bytes,3,opt,name=to_e164,json=toE164,proto3,oneof"`
}
type SendTextFromSubscriberRequest_ToShortNumber ¶ added in v0.1.1
type SendTextFromSubscriberRequest_ToShortNumber struct {
ToShortNumber *v0.NationalPhoneNumber `protobuf:"bytes,5,opt,name=to_short_number,json=toShortNumber,proto3,oneof"`
}
type SendTextToSubscriberRequest ¶
type SendTextToSubscriberRequest struct { Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"` // Types that are assignable to FromAddress: // *SendTextToSubscriberRequest_FromE164 // *SendTextToSubscriberRequest_FromTextAddress // *SendTextToSubscriberRequest_FromShortNumber FromAddress isSendTextToSubscriberRequest_FromAddress `protobuf_oneof:"from_address"` ToSubscriber *v0.PhoneNumber `protobuf:"bytes,4,opt,name=to_subscriber,json=toSubscriber,proto3" json:"to_subscriber,omitempty"` // contains filtered or unexported fields }
func (*SendTextToSubscriberRequest) Descriptor
deprecated
func (*SendTextToSubscriberRequest) Descriptor() ([]byte, []int)
Deprecated: Use SendTextToSubscriberRequest.ProtoReflect.Descriptor instead.
func (*SendTextToSubscriberRequest) GetContent ¶
func (x *SendTextToSubscriberRequest) GetContent() string
func (*SendTextToSubscriberRequest) GetFromAddress ¶
func (m *SendTextToSubscriberRequest) GetFromAddress() isSendTextToSubscriberRequest_FromAddress
func (*SendTextToSubscriberRequest) GetFromE164 ¶
func (x *SendTextToSubscriberRequest) GetFromE164() *v0.PhoneNumber
func (*SendTextToSubscriberRequest) GetFromShortNumber ¶ added in v0.1.1
func (x *SendTextToSubscriberRequest) GetFromShortNumber() *v0.NationalPhoneNumber
func (*SendTextToSubscriberRequest) GetFromTextAddress ¶
func (x *SendTextToSubscriberRequest) GetFromTextAddress() *v0.TextAddress
func (*SendTextToSubscriberRequest) GetToSubscriber ¶
func (x *SendTextToSubscriberRequest) GetToSubscriber() *v0.PhoneNumber
func (*SendTextToSubscriberRequest) ProtoMessage ¶
func (*SendTextToSubscriberRequest) ProtoMessage()
func (*SendTextToSubscriberRequest) ProtoReflect ¶
func (x *SendTextToSubscriberRequest) ProtoReflect() protoreflect.Message
func (*SendTextToSubscriberRequest) Reset ¶
func (x *SendTextToSubscriberRequest) Reset()
func (*SendTextToSubscriberRequest) String ¶
func (x *SendTextToSubscriberRequest) String() string
type SendTextToSubscriberRequest_FromE164 ¶
type SendTextToSubscriberRequest_FromE164 struct {
FromE164 *v0.PhoneNumber `protobuf:"bytes,2,opt,name=from_e164,json=fromE164,proto3,oneof"`
}
type SendTextToSubscriberRequest_FromShortNumber ¶ added in v0.1.1
type SendTextToSubscriberRequest_FromShortNumber struct {
FromShortNumber *v0.NationalPhoneNumber `protobuf:"bytes,5,opt,name=from_short_number,json=fromShortNumber,proto3,oneof"`
}
type SendTextToSubscriberRequest_FromTextAddress ¶
type SendTextToSubscriberRequest_FromTextAddress struct {
FromTextAddress *v0.TextAddress `protobuf:"bytes,3,opt,name=from_text_address,json=fromTextAddress,proto3,oneof"`
}
type SmsServiceClient ¶
type SmsServiceClient interface { SendTextFromSubscriber(ctx context.Context, in *SendTextFromSubscriberRequest, opts ...grpc.CallOption) (*SendResponse, error) SendBinaryToSubscriber(ctx context.Context, in *SendBinaryToSubscriberRequest, opts ...grpc.CallOption) (*SendResponse, error) SendTextToSubscriber(ctx context.Context, in *SendTextToSubscriberRequest, opts ...grpc.CallOption) (*SendResponse, error) SendTextToSubscriberAsOperator(ctx context.Context, in *SendTextAsOperatorRequest, opts ...grpc.CallOption) (*SendResponse, error) SendTextToSubscriberAsProduct(ctx context.Context, in *SendTextAsProductRequest, opts ...grpc.CallOption) (*SendResponse, error) }
SmsServiceClient is the client API for SmsService 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 NewSmsServiceClient ¶
func NewSmsServiceClient(cc grpc.ClientConnInterface) SmsServiceClient
type SmsServiceServer ¶
type SmsServiceServer interface { SendTextFromSubscriber(context.Context, *SendTextFromSubscriberRequest) (*SendResponse, error) SendBinaryToSubscriber(context.Context, *SendBinaryToSubscriberRequest) (*SendResponse, error) SendTextToSubscriber(context.Context, *SendTextToSubscriberRequest) (*SendResponse, error) SendTextToSubscriberAsOperator(context.Context, *SendTextAsOperatorRequest) (*SendResponse, error) SendTextToSubscriberAsProduct(context.Context, *SendTextAsProductRequest) (*SendResponse, error) }
SmsServiceServer is the server API for SmsService service. All implementations should embed UnimplementedSmsServiceServer for forward compatibility
type UnimplementedSmsServiceServer ¶
type UnimplementedSmsServiceServer struct { }
UnimplementedSmsServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedSmsServiceServer) SendBinaryToSubscriber ¶
func (UnimplementedSmsServiceServer) SendBinaryToSubscriber(context.Context, *SendBinaryToSubscriberRequest) (*SendResponse, error)
func (UnimplementedSmsServiceServer) SendTextFromSubscriber ¶
func (UnimplementedSmsServiceServer) SendTextFromSubscriber(context.Context, *SendTextFromSubscriberRequest) (*SendResponse, error)
func (UnimplementedSmsServiceServer) SendTextToSubscriber ¶
func (UnimplementedSmsServiceServer) SendTextToSubscriber(context.Context, *SendTextToSubscriberRequest) (*SendResponse, error)
func (UnimplementedSmsServiceServer) SendTextToSubscriberAsOperator ¶
func (UnimplementedSmsServiceServer) SendTextToSubscriberAsOperator(context.Context, *SendTextAsOperatorRequest) (*SendResponse, error)
func (UnimplementedSmsServiceServer) SendTextToSubscriberAsProduct ¶
func (UnimplementedSmsServiceServer) SendTextToSubscriberAsProduct(context.Context, *SendTextAsProductRequest) (*SendResponse, error)
type UnsafeSmsServiceServer ¶
type UnsafeSmsServiceServer interface {
// contains filtered or unexported methods
}
UnsafeSmsServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SmsServiceServer will result in compilation errors.