v0

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CallForwardingResponse_Status_name = map[int32]string{
		0: "UNKNOWN",
		1: "ACCEPTED",
		2: "REJECTED",
	}
	CallForwardingResponse_Status_value = map[string]int32{
		"UNKNOWN":  0,
		"ACCEPTED": 1,
		"REJECTED": 2,
	}
)

Enum value maps for CallForwardingResponse_Status.

View Source
var CallForwardingService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "wgtwo.callforward.v0.CallForwardingService",
	HandlerType: (*CallForwardingServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Disable",
			Handler:    _CallForwardingService_Disable_Handler,
		},
		{
			MethodName: "SetToNumber",
			Handler:    _CallForwardingService_SetToNumber_Handler,
		},
		{
			MethodName: "SetToTrunk",
			Handler:    _CallForwardingService_SetToTrunk_Handler,
		},
		{
			MethodName: "SetToVoicemail",
			Handler:    _CallForwardingService_SetToVoicemail_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "wgtwo/callforward/v0/callforward.proto",
}

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

View Source
var File_wgtwo_callforward_v0_callforward_proto protoreflect.FileDescriptor

Functions

func RegisterCallForwardingServiceServer

func RegisterCallForwardingServiceServer(s grpc.ServiceRegistrar, srv CallForwardingServiceServer)

Types

type CallForwardingResponse

type CallForwardingResponse struct {
	Status       CallForwardingResponse_Status `protobuf:"varint,1,opt,name=status,proto3,enum=wgtwo.callforward.v0.CallForwardingResponse_Status" json:"status,omitempty"`
	ErrorMessage string                        `protobuf:"bytes,2,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"`
	// contains filtered or unexported fields
}

func (*CallForwardingResponse) Descriptor deprecated

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

Deprecated: Use CallForwardingResponse.ProtoReflect.Descriptor instead.

func (*CallForwardingResponse) GetErrorMessage

func (x *CallForwardingResponse) GetErrorMessage() string

func (*CallForwardingResponse) GetStatus

func (*CallForwardingResponse) ProtoMessage

func (*CallForwardingResponse) ProtoMessage()

func (*CallForwardingResponse) ProtoReflect

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

func (*CallForwardingResponse) Reset

func (x *CallForwardingResponse) Reset()

func (*CallForwardingResponse) String

func (x *CallForwardingResponse) String() string

type CallForwardingResponse_Status

type CallForwardingResponse_Status int32
const (
	CallForwardingResponse_UNKNOWN  CallForwardingResponse_Status = 0
	CallForwardingResponse_ACCEPTED CallForwardingResponse_Status = 1
	CallForwardingResponse_REJECTED CallForwardingResponse_Status = 2
)

func (CallForwardingResponse_Status) Descriptor

func (CallForwardingResponse_Status) Enum

func (CallForwardingResponse_Status) EnumDescriptor deprecated

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

Deprecated: Use CallForwardingResponse_Status.Descriptor instead.

func (CallForwardingResponse_Status) Number

func (CallForwardingResponse_Status) String

func (CallForwardingResponse_Status) Type

type CallForwardingServiceClient

CallForwardingServiceClient is the client API for CallForwardingService 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 CallForwardingServiceServer

CallForwardingServiceServer is the server API for CallForwardingService service. All implementations should embed UnimplementedCallForwardingServiceServer for forward compatibility

type Conditional

type Conditional struct {
	Busy        *v0.PhoneNumber `protobuf:"bytes,1,opt,name=busy,proto3" json:"busy,omitempty"`
	NoReply     *v0.PhoneNumber `protobuf:"bytes,2,opt,name=no_reply,json=noReply,proto3" json:"no_reply,omitempty"`
	Unavailable *v0.PhoneNumber `protobuf:"bytes,3,opt,name=unavailable,proto3" json:"unavailable,omitempty"`
	// contains filtered or unexported fields
}

func (*Conditional) Descriptor deprecated

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

Deprecated: Use Conditional.ProtoReflect.Descriptor instead.

func (*Conditional) GetBusy

func (x *Conditional) GetBusy() *v0.PhoneNumber

func (*Conditional) GetNoReply

func (x *Conditional) GetNoReply() *v0.PhoneNumber

func (*Conditional) GetUnavailable

func (x *Conditional) GetUnavailable() *v0.PhoneNumber

func (*Conditional) ProtoMessage

func (*Conditional) ProtoMessage()

func (*Conditional) ProtoReflect

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

func (*Conditional) Reset

func (x *Conditional) Reset()

func (*Conditional) String

func (x *Conditional) String() string

type ConditionalTrunkForwarding

type ConditionalTrunkForwarding struct {
	Busy        *Trunk `protobuf:"bytes,1,opt,name=busy,proto3" json:"busy,omitempty"`
	NoReply     *Trunk `protobuf:"bytes,2,opt,name=no_reply,json=noReply,proto3" json:"no_reply,omitempty"`
	Unavailable *Trunk `protobuf:"bytes,3,opt,name=unavailable,proto3" json:"unavailable,omitempty"`
	// contains filtered or unexported fields
}

func (*ConditionalTrunkForwarding) Descriptor deprecated

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

Deprecated: Use ConditionalTrunkForwarding.ProtoReflect.Descriptor instead.

func (*ConditionalTrunkForwarding) GetBusy

func (x *ConditionalTrunkForwarding) GetBusy() *Trunk

func (*ConditionalTrunkForwarding) GetNoReply

func (x *ConditionalTrunkForwarding) GetNoReply() *Trunk

func (*ConditionalTrunkForwarding) GetUnavailable

func (x *ConditionalTrunkForwarding) GetUnavailable() *Trunk

func (*ConditionalTrunkForwarding) ProtoMessage

func (*ConditionalTrunkForwarding) ProtoMessage()

func (*ConditionalTrunkForwarding) ProtoReflect

func (*ConditionalTrunkForwarding) Reset

func (x *ConditionalTrunkForwarding) Reset()

func (*ConditionalTrunkForwarding) String

func (x *ConditionalTrunkForwarding) String() string

type DisableCallForwardingRequest

type DisableCallForwardingRequest struct {
	Subscriber *v0.PhoneNumber `protobuf:"bytes,1,opt,name=subscriber,proto3" json:"subscriber,omitempty"`
	// contains filtered or unexported fields
}

func (*DisableCallForwardingRequest) Descriptor deprecated

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

Deprecated: Use DisableCallForwardingRequest.ProtoReflect.Descriptor instead.

func (*DisableCallForwardingRequest) GetSubscriber

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

func (*DisableCallForwardingRequest) ProtoMessage

func (*DisableCallForwardingRequest) ProtoMessage()

func (*DisableCallForwardingRequest) ProtoReflect

func (*DisableCallForwardingRequest) Reset

func (x *DisableCallForwardingRequest) Reset()

func (*DisableCallForwardingRequest) String

type NumberCallForwardingRequest

type NumberCallForwardingRequest struct {
	Subscriber *v0.PhoneNumber `protobuf:"bytes,1,opt,name=subscriber,proto3" json:"subscriber,omitempty"`
	// Types that are assignable to Type:
	//	*NumberCallForwardingRequest_Unconditional
	//	*NumberCallForwardingRequest_Conditional
	Type isNumberCallForwardingRequest_Type `protobuf_oneof:"type"`
	// contains filtered or unexported fields
}

func (*NumberCallForwardingRequest) Descriptor deprecated

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

Deprecated: Use NumberCallForwardingRequest.ProtoReflect.Descriptor instead.

func (*NumberCallForwardingRequest) GetConditional

func (x *NumberCallForwardingRequest) GetConditional() *Conditional

func (*NumberCallForwardingRequest) GetSubscriber

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

func (*NumberCallForwardingRequest) GetType

func (m *NumberCallForwardingRequest) GetType() isNumberCallForwardingRequest_Type

func (*NumberCallForwardingRequest) GetUnconditional

func (x *NumberCallForwardingRequest) GetUnconditional() *Unconditional

func (*NumberCallForwardingRequest) ProtoMessage

func (*NumberCallForwardingRequest) ProtoMessage()

func (*NumberCallForwardingRequest) ProtoReflect

func (*NumberCallForwardingRequest) Reset

func (x *NumberCallForwardingRequest) Reset()

func (*NumberCallForwardingRequest) String

func (x *NumberCallForwardingRequest) String() string

type NumberCallForwardingRequest_Conditional

type NumberCallForwardingRequest_Conditional struct {
	Conditional *Conditional `protobuf:"bytes,3,opt,name=conditional,proto3,oneof"`
}

type NumberCallForwardingRequest_Unconditional

type NumberCallForwardingRequest_Unconditional struct {
	Unconditional *Unconditional `protobuf:"bytes,2,opt,name=unconditional,proto3,oneof"`
}

type Trunk

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

func (*Trunk) Descriptor deprecated

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

Deprecated: Use Trunk.ProtoReflect.Descriptor instead.

func (*Trunk) GetId

func (x *Trunk) GetId() string

func (*Trunk) ProtoMessage

func (*Trunk) ProtoMessage()

func (*Trunk) ProtoReflect

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

func (*Trunk) Reset

func (x *Trunk) Reset()

func (*Trunk) String

func (x *Trunk) String() string

type TrunkCallForwardingRequest

type TrunkCallForwardingRequest struct {
	Subscriber *v0.PhoneNumber `protobuf:"bytes,1,opt,name=subscriber,proto3" json:"subscriber,omitempty"`
	// Types that are assignable to Type:
	//	*TrunkCallForwardingRequest_UnconditionalTrunkForwarding
	//	*TrunkCallForwardingRequest_ConditionalTrunkForwarding
	Type isTrunkCallForwardingRequest_Type `protobuf_oneof:"type"`
	// contains filtered or unexported fields
}

func (*TrunkCallForwardingRequest) Descriptor deprecated

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

Deprecated: Use TrunkCallForwardingRequest.ProtoReflect.Descriptor instead.

func (*TrunkCallForwardingRequest) GetConditionalTrunkForwarding

func (x *TrunkCallForwardingRequest) GetConditionalTrunkForwarding() *ConditionalTrunkForwarding

func (*TrunkCallForwardingRequest) GetSubscriber

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

func (*TrunkCallForwardingRequest) GetType

func (m *TrunkCallForwardingRequest) GetType() isTrunkCallForwardingRequest_Type

func (*TrunkCallForwardingRequest) GetUnconditionalTrunkForwarding

func (x *TrunkCallForwardingRequest) GetUnconditionalTrunkForwarding() *UnconditionalTrunkForwarding

func (*TrunkCallForwardingRequest) ProtoMessage

func (*TrunkCallForwardingRequest) ProtoMessage()

func (*TrunkCallForwardingRequest) ProtoReflect

func (*TrunkCallForwardingRequest) Reset

func (x *TrunkCallForwardingRequest) Reset()

func (*TrunkCallForwardingRequest) String

func (x *TrunkCallForwardingRequest) String() string

type TrunkCallForwardingRequest_ConditionalTrunkForwarding

type TrunkCallForwardingRequest_ConditionalTrunkForwarding struct {
	ConditionalTrunkForwarding *ConditionalTrunkForwarding `protobuf:"bytes,3,opt,name=conditional_trunk_forwarding,json=conditionalTrunkForwarding,proto3,oneof"`
}

type TrunkCallForwardingRequest_UnconditionalTrunkForwarding

type TrunkCallForwardingRequest_UnconditionalTrunkForwarding struct {
	UnconditionalTrunkForwarding *UnconditionalTrunkForwarding `protobuf:"bytes,2,opt,name=unconditional_trunk_forwarding,json=unconditionalTrunkForwarding,proto3,oneof"`
}

type Unconditional

type Unconditional struct {
	ForwardToNumber *v0.PhoneNumber `protobuf:"bytes,1,opt,name=forward_to_number,json=forwardToNumber,proto3" json:"forward_to_number,omitempty"`
	// contains filtered or unexported fields
}

func (*Unconditional) Descriptor deprecated

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

Deprecated: Use Unconditional.ProtoReflect.Descriptor instead.

func (*Unconditional) GetForwardToNumber

func (x *Unconditional) GetForwardToNumber() *v0.PhoneNumber

func (*Unconditional) ProtoMessage

func (*Unconditional) ProtoMessage()

func (*Unconditional) ProtoReflect

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

func (*Unconditional) Reset

func (x *Unconditional) Reset()

func (*Unconditional) String

func (x *Unconditional) String() string

type UnconditionalTrunkForwarding

type UnconditionalTrunkForwarding struct {
	ForwardToTrunk *Trunk `protobuf:"bytes,1,opt,name=forward_to_trunk,json=forwardToTrunk,proto3" json:"forward_to_trunk,omitempty"`
	// contains filtered or unexported fields
}

func (*UnconditionalTrunkForwarding) Descriptor deprecated

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

Deprecated: Use UnconditionalTrunkForwarding.ProtoReflect.Descriptor instead.

func (*UnconditionalTrunkForwarding) GetForwardToTrunk

func (x *UnconditionalTrunkForwarding) GetForwardToTrunk() *Trunk

func (*UnconditionalTrunkForwarding) ProtoMessage

func (*UnconditionalTrunkForwarding) ProtoMessage()

func (*UnconditionalTrunkForwarding) ProtoReflect

func (*UnconditionalTrunkForwarding) Reset

func (x *UnconditionalTrunkForwarding) Reset()

func (*UnconditionalTrunkForwarding) String

type UnimplementedCallForwardingServiceServer

type UnimplementedCallForwardingServiceServer struct {
}

UnimplementedCallForwardingServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedCallForwardingServiceServer) Disable

func (UnimplementedCallForwardingServiceServer) SetToNumber

func (UnimplementedCallForwardingServiceServer) SetToTrunk

func (UnimplementedCallForwardingServiceServer) SetToVoicemail

type UnsafeCallForwardingServiceServer

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

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

type VoicemailCallForwardingRequest

type VoicemailCallForwardingRequest struct {
	Subscriber *v0.PhoneNumber `protobuf:"bytes,1,opt,name=subscriber,proto3" json:"subscriber,omitempty"`
	// Types that are assignable to Target:
	//	*VoicemailCallForwardingRequest_Default
	//	*VoicemailCallForwardingRequest_PhoneNumber
	Target isVoicemailCallForwardingRequest_Target `protobuf_oneof:"target"`
	// contains filtered or unexported fields
}

func (*VoicemailCallForwardingRequest) Descriptor deprecated

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

Deprecated: Use VoicemailCallForwardingRequest.ProtoReflect.Descriptor instead.

func (*VoicemailCallForwardingRequest) GetDefault

func (x *VoicemailCallForwardingRequest) GetDefault() *emptypb.Empty

func (*VoicemailCallForwardingRequest) GetPhoneNumber

func (x *VoicemailCallForwardingRequest) GetPhoneNumber() *v0.PhoneNumber

func (*VoicemailCallForwardingRequest) GetSubscriber

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

func (*VoicemailCallForwardingRequest) GetTarget

func (m *VoicemailCallForwardingRequest) GetTarget() isVoicemailCallForwardingRequest_Target

func (*VoicemailCallForwardingRequest) ProtoMessage

func (*VoicemailCallForwardingRequest) ProtoMessage()

func (*VoicemailCallForwardingRequest) ProtoReflect

func (*VoicemailCallForwardingRequest) Reset

func (x *VoicemailCallForwardingRequest) Reset()

func (*VoicemailCallForwardingRequest) String

type VoicemailCallForwardingRequest_Default

type VoicemailCallForwardingRequest_Default struct {
	Default *emptypb.Empty `protobuf:"bytes,2,opt,name=default,proto3,oneof"`
}

type VoicemailCallForwardingRequest_PhoneNumber

type VoicemailCallForwardingRequest_PhoneNumber struct {
	PhoneNumber *v0.PhoneNumber `protobuf:"bytes,3,opt,name=phone_number,json=phoneNumber,proto3,oneof"`
}

Jump to

Keyboard shortcuts

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