v0

package
v1.10.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	VoicemailMediaService_GetAllVoicemailMetadata_FullMethodName = "/wgtwo.voicemail.v0.VoicemailMediaService/GetAllVoicemailMetadata"
	VoicemailMediaService_GetVoicemail_FullMethodName            = "/wgtwo.voicemail.v0.VoicemailMediaService/GetVoicemail"
	VoicemailMediaService_MarkVoicemailAsRead_FullMethodName     = "/wgtwo.voicemail.v0.VoicemailMediaService/MarkVoicemailAsRead"
	VoicemailMediaService_DeleteVoicemail_FullMethodName         = "/wgtwo.voicemail.v0.VoicemailMediaService/DeleteVoicemail"
	VoicemailMediaService_ResetVoicemailGreeting_FullMethodName  = "/wgtwo.voicemail.v0.VoicemailMediaService/ResetVoicemailGreeting"
)

Variables

View Source
var File_wgtwo_voicemail_v0_voicemail_proto protoreflect.FileDescriptor
View Source
var VoicemailMediaService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "wgtwo.voicemail.v0.VoicemailMediaService",
	HandlerType: (*VoicemailMediaServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetAllVoicemailMetadata",
			Handler:    _VoicemailMediaService_GetAllVoicemailMetadata_Handler,
		},
		{
			MethodName: "GetVoicemail",
			Handler:    _VoicemailMediaService_GetVoicemail_Handler,
		},
		{
			MethodName: "MarkVoicemailAsRead",
			Handler:    _VoicemailMediaService_MarkVoicemailAsRead_Handler,
		},
		{
			MethodName: "DeleteVoicemail",
			Handler:    _VoicemailMediaService_DeleteVoicemail_Handler,
		},
		{
			MethodName: "ResetVoicemailGreeting",
			Handler:    _VoicemailMediaService_ResetVoicemailGreeting_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "wgtwo/voicemail/v0/voicemail.proto",
}

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

Functions

func RegisterVoicemailMediaServiceServer

func RegisterVoicemailMediaServiceServer(s grpc.ServiceRegistrar, srv VoicemailMediaServiceServer)

Types

type DeleteVoicemailRequest

type DeleteVoicemailRequest struct {

	// *
	// The ID of the voicemail. (UUID format)
	VoicemailId string `protobuf:"bytes,1,opt,name=voicemail_id,json=voicemailId,proto3" json:"voicemail_id,omitempty"`
	// contains filtered or unexported fields
}

* Request object to delete a voicemail.

func (*DeleteVoicemailRequest) Descriptor deprecated

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

Deprecated: Use DeleteVoicemailRequest.ProtoReflect.Descriptor instead.

func (*DeleteVoicemailRequest) GetVoicemailId

func (x *DeleteVoicemailRequest) GetVoicemailId() string

func (*DeleteVoicemailRequest) ProtoMessage

func (*DeleteVoicemailRequest) ProtoMessage()

func (*DeleteVoicemailRequest) ProtoReflect

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

func (*DeleteVoicemailRequest) Reset

func (x *DeleteVoicemailRequest) Reset()

func (*DeleteVoicemailRequest) String

func (x *DeleteVoicemailRequest) String() string

type DeleteVoicemailResponse

type DeleteVoicemailResponse struct {
	// contains filtered or unexported fields
}

* Response object for a successful deletion of a voicemail.

func (*DeleteVoicemailResponse) Descriptor deprecated

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

Deprecated: Use DeleteVoicemailResponse.ProtoReflect.Descriptor instead.

func (*DeleteVoicemailResponse) ProtoMessage

func (*DeleteVoicemailResponse) ProtoMessage()

func (*DeleteVoicemailResponse) ProtoReflect

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

func (*DeleteVoicemailResponse) Reset

func (x *DeleteVoicemailResponse) Reset()

func (*DeleteVoicemailResponse) String

func (x *DeleteVoicemailResponse) String() string

type GetAllVoicemailMetadataRequest

type GetAllVoicemailMetadataRequest struct {

	// *
	// The MSISDN of the receiver.
	To *v0.PhoneNumber `protobuf:"bytes,1,opt,name=to,proto3" json:"to,omitempty"`
	// contains filtered or unexported fields
}

* Request object to get metadata for all voicemails.

func (*GetAllVoicemailMetadataRequest) Descriptor deprecated

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

Deprecated: Use GetAllVoicemailMetadataRequest.ProtoReflect.Descriptor instead.

func (*GetAllVoicemailMetadataRequest) GetTo

func (*GetAllVoicemailMetadataRequest) ProtoMessage

func (*GetAllVoicemailMetadataRequest) ProtoMessage()

func (*GetAllVoicemailMetadataRequest) ProtoReflect

func (*GetAllVoicemailMetadataRequest) Reset

func (x *GetAllVoicemailMetadataRequest) Reset()

func (*GetAllVoicemailMetadataRequest) String

type GetAllVoicemailMetadataResponse

type GetAllVoicemailMetadataResponse struct {
	Metadata []*VoicemailMetadata `protobuf:"bytes,1,rep,name=metadata,proto3" json:"metadata,omitempty"`
	// contains filtered or unexported fields
}

* Response object for getting metadata for all voicemails.

func (*GetAllVoicemailMetadataResponse) Descriptor deprecated

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

Deprecated: Use GetAllVoicemailMetadataResponse.ProtoReflect.Descriptor instead.

func (*GetAllVoicemailMetadataResponse) GetMetadata

func (*GetAllVoicemailMetadataResponse) ProtoMessage

func (*GetAllVoicemailMetadataResponse) ProtoMessage()

func (*GetAllVoicemailMetadataResponse) ProtoReflect

func (*GetAllVoicemailMetadataResponse) Reset

func (*GetAllVoicemailMetadataResponse) String

type GetVoicemailRequest

type GetVoicemailRequest struct {

	// *
	// The ID of the voicemail. (UUID format)
	VoicemailId string `protobuf:"bytes,1,opt,name=voicemail_id,json=voicemailId,proto3" json:"voicemail_id,omitempty"`
	// contains filtered or unexported fields
}

* Request object for getting a voicemail.

func (*GetVoicemailRequest) Descriptor deprecated

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

Deprecated: Use GetVoicemailRequest.ProtoReflect.Descriptor instead.

func (*GetVoicemailRequest) GetVoicemailId

func (x *GetVoicemailRequest) GetVoicemailId() string

func (*GetVoicemailRequest) ProtoMessage

func (*GetVoicemailRequest) ProtoMessage()

func (*GetVoicemailRequest) ProtoReflect

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

func (*GetVoicemailRequest) Reset

func (x *GetVoicemailRequest) Reset()

func (*GetVoicemailRequest) String

func (x *GetVoicemailRequest) String() string

type GetVoicemailResponse

type GetVoicemailResponse struct {

	// *
	// The voicemail media file in .wav format.
	Metadata *VoicemailMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// Types that are assignable to Bytes:
	//
	//	*GetVoicemailResponse_Wav
	Bytes isGetVoicemailResponse_Bytes `protobuf_oneof:"bytes"`
	// contains filtered or unexported fields
}

* Response object for getting a voicemail.

func (*GetVoicemailResponse) Descriptor deprecated

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

Deprecated: Use GetVoicemailResponse.ProtoReflect.Descriptor instead.

func (*GetVoicemailResponse) GetBytes

func (m *GetVoicemailResponse) GetBytes() isGetVoicemailResponse_Bytes

func (*GetVoicemailResponse) GetMetadata

func (x *GetVoicemailResponse) GetMetadata() *VoicemailMetadata

func (*GetVoicemailResponse) GetWav

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

func (*GetVoicemailResponse) ProtoMessage

func (*GetVoicemailResponse) ProtoMessage()

func (*GetVoicemailResponse) ProtoReflect

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

func (*GetVoicemailResponse) Reset

func (x *GetVoicemailResponse) Reset()

func (*GetVoicemailResponse) String

func (x *GetVoicemailResponse) String() string

type GetVoicemailResponse_Wav

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

type MarkVoicemailAsReadRequest

type MarkVoicemailAsReadRequest struct {

	// *
	// The ID of the voicemail. (UUID format)
	VoicemailId string `protobuf:"bytes,1,opt,name=voicemail_id,json=voicemailId,proto3" json:"voicemail_id,omitempty"`
	// contains filtered or unexported fields
}

* Request object to mark a voicemail as read.

func (*MarkVoicemailAsReadRequest) Descriptor deprecated

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

Deprecated: Use MarkVoicemailAsReadRequest.ProtoReflect.Descriptor instead.

func (*MarkVoicemailAsReadRequest) GetVoicemailId

func (x *MarkVoicemailAsReadRequest) GetVoicemailId() string

func (*MarkVoicemailAsReadRequest) ProtoMessage

func (*MarkVoicemailAsReadRequest) ProtoMessage()

func (*MarkVoicemailAsReadRequest) ProtoReflect

func (*MarkVoicemailAsReadRequest) Reset

func (x *MarkVoicemailAsReadRequest) Reset()

func (*MarkVoicemailAsReadRequest) String

func (x *MarkVoicemailAsReadRequest) String() string

type MarkVoicemailAsReadResponse

type MarkVoicemailAsReadResponse struct {
	// contains filtered or unexported fields
}

* Response object for successfully marking a voicemail as read.

func (*MarkVoicemailAsReadResponse) Descriptor deprecated

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

Deprecated: Use MarkVoicemailAsReadResponse.ProtoReflect.Descriptor instead.

func (*MarkVoicemailAsReadResponse) ProtoMessage

func (*MarkVoicemailAsReadResponse) ProtoMessage()

func (*MarkVoicemailAsReadResponse) ProtoReflect

func (*MarkVoicemailAsReadResponse) Reset

func (x *MarkVoicemailAsReadResponse) Reset()

func (*MarkVoicemailAsReadResponse) String

func (x *MarkVoicemailAsReadResponse) String() string

type ResetVoicemailGreetingRequest

type ResetVoicemailGreetingRequest struct {

	// *
	// The MSISDN of the subscriber.
	Subscriber *v0.PhoneNumber `protobuf:"bytes,1,opt,name=subscriber,proto3" json:"subscriber,omitempty"`
	// contains filtered or unexported fields
}

* Request object to reset the voicemail greeting of a user.

func (*ResetVoicemailGreetingRequest) Descriptor deprecated

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

Deprecated: Use ResetVoicemailGreetingRequest.ProtoReflect.Descriptor instead.

func (*ResetVoicemailGreetingRequest) GetSubscriber

func (x *ResetVoicemailGreetingRequest) GetSubscriber() *v0.PhoneNumber

func (*ResetVoicemailGreetingRequest) ProtoMessage

func (*ResetVoicemailGreetingRequest) ProtoMessage()

func (*ResetVoicemailGreetingRequest) ProtoReflect

func (*ResetVoicemailGreetingRequest) Reset

func (x *ResetVoicemailGreetingRequest) Reset()

func (*ResetVoicemailGreetingRequest) String

type ResetVoicemailGreetingResponse

type ResetVoicemailGreetingResponse struct {
	// contains filtered or unexported fields
}

* Response object for a successful voicemail greeting reset.

func (*ResetVoicemailGreetingResponse) Descriptor deprecated

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

Deprecated: Use ResetVoicemailGreetingResponse.ProtoReflect.Descriptor instead.

func (*ResetVoicemailGreetingResponse) ProtoMessage

func (*ResetVoicemailGreetingResponse) ProtoMessage()

func (*ResetVoicemailGreetingResponse) ProtoReflect

func (*ResetVoicemailGreetingResponse) Reset

func (x *ResetVoicemailGreetingResponse) Reset()

func (*ResetVoicemailGreetingResponse) String

type UnimplementedVoicemailMediaServiceServer

type UnimplementedVoicemailMediaServiceServer struct {
}

UnimplementedVoicemailMediaServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedVoicemailMediaServiceServer) DeleteVoicemail

func (UnimplementedVoicemailMediaServiceServer) GetVoicemail

func (UnimplementedVoicemailMediaServiceServer) MarkVoicemailAsRead

type UnsafeVoicemailMediaServiceServer

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

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

type VoicemailMediaServiceClient

type VoicemailMediaServiceClient interface {
	// *
	// Receive metadata for each voicemail available for a given MSISDN.
	// The metadata contains information about the corresponding voicemail including its ID,
	// allowing the user to fetch the voicemail media file.
	//
	// Client-side errors:
	// - INVALID ARGUMENT: Invalid MSISDN
	// - INTERNAL: DB error
	GetAllVoicemailMetadata(ctx context.Context, in *GetAllVoicemailMetadataRequest, opts ...grpc.CallOption) (*GetAllVoicemailMetadataResponse, error)
	// *
	// Receive voicemail media file corresponding to the given voicemail ID.
	//
	// Client-side errors:
	// - INVALID ARGUMENT: Invalid voicemail ID
	// - NOT FOUND: Voicemail not found
	//
	// Server-side errors:
	// - INTERNAL: Voicemail file is too big to be returned
	// - INTERNAL: DB error
	GetVoicemail(ctx context.Context, in *GetVoicemailRequest, opts ...grpc.CallOption) (*GetVoicemailResponse, error)
	// *
	// Mark as read the voicemail corresponding to the given voicemail ID.
	// This updates the "played" metadata of the voicemail to true.
	//
	// Client-side errors:
	// - INVALID ARGUMENT: Invalid voicemail ID
	// - NOT FOUND: Voicemail not found
	//
	// Server-side errors:
	// - INTERNAL: DB error
	MarkVoicemailAsRead(ctx context.Context, in *MarkVoicemailAsReadRequest, opts ...grpc.CallOption) (*MarkVoicemailAsReadResponse, error)
	// *
	// Delete the voicemail corresponding to the given voicemail ID.
	// The voicemail media file and its metadata will be deleted.
	//
	// Client-side errors:
	// - INVALID ARGUMENT: Invalid voicemail ID
	// - NOT FOUND: Voicemail not found
	//
	// Server-side errors:
	// - INTERNAL: DB error
	DeleteVoicemail(ctx context.Context, in *DeleteVoicemailRequest, opts ...grpc.CallOption) (*DeleteVoicemailResponse, error)
	// *
	// Resets the voicemail greeting of the given subscriber (MSISDN).
	// The voicemail greeting (media file) will be deleted.
	//
	// Client-side errors:
	// - INVALID ARGUMENT: Invalid MSISDN
	//
	// Server-side errors:
	// - INTERNAL: DB error
	ResetVoicemailGreeting(ctx context.Context, in *ResetVoicemailGreetingRequest, opts ...grpc.CallOption) (*ResetVoicemailGreetingResponse, error)
}

VoicemailMediaServiceClient is the client API for VoicemailMediaService 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.

type VoicemailMediaServiceServer

type VoicemailMediaServiceServer interface {
	// *
	// Receive metadata for each voicemail available for a given MSISDN.
	// The metadata contains information about the corresponding voicemail including its ID,
	// allowing the user to fetch the voicemail media file.
	//
	// Client-side errors:
	// - INVALID ARGUMENT: Invalid MSISDN
	// - INTERNAL: DB error
	GetAllVoicemailMetadata(context.Context, *GetAllVoicemailMetadataRequest) (*GetAllVoicemailMetadataResponse, error)
	// *
	// Receive voicemail media file corresponding to the given voicemail ID.
	//
	// Client-side errors:
	// - INVALID ARGUMENT: Invalid voicemail ID
	// - NOT FOUND: Voicemail not found
	//
	// Server-side errors:
	// - INTERNAL: Voicemail file is too big to be returned
	// - INTERNAL: DB error
	GetVoicemail(context.Context, *GetVoicemailRequest) (*GetVoicemailResponse, error)
	// *
	// Mark as read the voicemail corresponding to the given voicemail ID.
	// This updates the "played" metadata of the voicemail to true.
	//
	// Client-side errors:
	// - INVALID ARGUMENT: Invalid voicemail ID
	// - NOT FOUND: Voicemail not found
	//
	// Server-side errors:
	// - INTERNAL: DB error
	MarkVoicemailAsRead(context.Context, *MarkVoicemailAsReadRequest) (*MarkVoicemailAsReadResponse, error)
	// *
	// Delete the voicemail corresponding to the given voicemail ID.
	// The voicemail media file and its metadata will be deleted.
	//
	// Client-side errors:
	// - INVALID ARGUMENT: Invalid voicemail ID
	// - NOT FOUND: Voicemail not found
	//
	// Server-side errors:
	// - INTERNAL: DB error
	DeleteVoicemail(context.Context, *DeleteVoicemailRequest) (*DeleteVoicemailResponse, error)
	// *
	// Resets the voicemail greeting of the given subscriber (MSISDN).
	// The voicemail greeting (media file) will be deleted.
	//
	// Client-side errors:
	// - INVALID ARGUMENT: Invalid MSISDN
	//
	// Server-side errors:
	// - INTERNAL: DB error
	ResetVoicemailGreeting(context.Context, *ResetVoicemailGreetingRequest) (*ResetVoicemailGreetingResponse, error)
}

VoicemailMediaServiceServer is the server API for VoicemailMediaService service. All implementations should embed UnimplementedVoicemailMediaServiceServer for forward compatibility

type VoicemailMetadata

type VoicemailMetadata struct {

	// *
	// The ID of the voicemail. (UUID format)
	VoicemailId string `protobuf:"bytes,1,opt,name=voicemail_id,json=voicemailId,proto3" json:"voicemail_id,omitempty"`
	// *
	// The MSISDN of the receiver.
	To *v0.PhoneNumber `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"`
	// *
	// The MSISDN of the sender.
	From *v0.PhoneNumber `protobuf:"bytes,3,opt,name=from,proto3" json:"from,omitempty"`
	// *
	// The length of the voicemail media file in seconds.
	Duration *durationpb.Duration `protobuf:"bytes,4,opt,name=duration,proto3" json:"duration,omitempty"`
	// *
	// Whether or not the voicemail media file has been played.
	Played bool `protobuf:"varint,5,opt,name=played,proto3" json:"played,omitempty"`
	// *
	// The creation date (epoch in seconds) of the voicemail media file.
	Created *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=created,proto3" json:"created,omitempty"`
	// *
	// The expiry date (epoch in seconds) of the voicemail media file.
	// 7 days from the moment the voicemail is created.
	Expires *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=expires,proto3" json:"expires,omitempty"`
	// contains filtered or unexported fields
}

func (*VoicemailMetadata) Descriptor deprecated

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

Deprecated: Use VoicemailMetadata.ProtoReflect.Descriptor instead.

func (*VoicemailMetadata) GetCreated

func (x *VoicemailMetadata) GetCreated() *timestamppb.Timestamp

func (*VoicemailMetadata) GetDuration

func (x *VoicemailMetadata) GetDuration() *durationpb.Duration

func (*VoicemailMetadata) GetExpires

func (x *VoicemailMetadata) GetExpires() *timestamppb.Timestamp

func (*VoicemailMetadata) GetFrom

func (x *VoicemailMetadata) GetFrom() *v0.PhoneNumber

func (*VoicemailMetadata) GetPlayed

func (x *VoicemailMetadata) GetPlayed() bool

func (*VoicemailMetadata) GetTo

func (x *VoicemailMetadata) GetTo() *v0.PhoneNumber

func (*VoicemailMetadata) GetVoicemailId

func (x *VoicemailMetadata) GetVoicemailId() string

func (*VoicemailMetadata) ProtoMessage

func (*VoicemailMetadata) ProtoMessage()

func (*VoicemailMetadata) ProtoReflect

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

func (*VoicemailMetadata) Reset

func (x *VoicemailMetadata) Reset()

func (*VoicemailMetadata) String

func (x *VoicemailMetadata) String() string

Jump to

Keyboard shortcuts

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