notification

package
v0.0.0-...-49c8f32 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2021 License: MIT Imports: 32 Imported by: 0

Documentation

Overview

Code generated by protoc-gen-auth. DO NOT EDIT! source: device_token.proto

Package notification is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Code generated by protoc-gen-auth. DO NOT EDIT! source: inner_notify.proto

Package notification is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const Default_Payload_Background bool = false
View Source
const Default_Payload_Mutable bool = false
View Source
const Default_Sound_Critical bool = true

Variables

View Source
var Category_name = map[int32]string{
	0: "CATEGORY_UNSPECIFIED",
	1: "CATEGORY_APPLE",
}
View Source
var Category_value = map[string]int32{
	"CATEGORY_UNSPECIFIED": 0,
	"CATEGORY_APPLE":       1,
}
View Source
var PushPriority_name = map[int32]string{
	0: "PUSH_PRIORITY_UNSPECIFIED",
	1: "PUSH_PRIORITY_LOW",
	2: "PUSH_PRIORITY_HIGH",
}
View Source
var PushPriority_value = map[string]int32{
	"PUSH_PRIORITY_UNSPECIFIED": 0,
	"PUSH_PRIORITY_LOW":         1,
	"PUSH_PRIORITY_HIGH":        2,
}
View Source
var PushType_name = map[int32]string{
	0: "PUSH_TYPE_UNSPECIFIED",
	1: "PUSH_TYPE_ALERT",
	2: "PUSH_TYPE_BACKGROUND",
	3: "PUSH_TYPE_VOIP",
	4: "PUSH_TYPE_COMPLICATION",
	5: "PUSH_TYPE_FILE_PROVIDER",
	6: "PUSH_TYPE_FILE_MDM",
}
View Source
var PushType_value = map[string]int32{
	"PUSH_TYPE_UNSPECIFIED":   0,
	"PUSH_TYPE_ALERT":         1,
	"PUSH_TYPE_BACKGROUND":    2,
	"PUSH_TYPE_VOIP":          3,
	"PUSH_TYPE_COMPLICATION":  4,
	"PUSH_TYPE_FILE_PROVIDER": 5,
	"PUSH_TYPE_FILE_MDM":      6,
}

Functions

func RegisterDeviceTokenHandler

func RegisterDeviceTokenHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterDeviceTokenHandler registers the http handlers for service DeviceToken to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterDeviceTokenHandlerClient

func RegisterDeviceTokenHandlerClient(ctx context.Context, mux *runtime.ServeMux, client DeviceTokenClient) error

RegisterDeviceTokenHandlerClient registers the http handlers for service DeviceToken to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "DeviceTokenClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "DeviceTokenClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "DeviceTokenClient" to call the correct interceptors.

func RegisterDeviceTokenHandlerFromEndpoint

func RegisterDeviceTokenHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterDeviceTokenHandlerFromEndpoint is same as RegisterDeviceTokenHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterDeviceTokenHandlerServer

func RegisterDeviceTokenHandlerServer(ctx context.Context, mux *runtime.ServeMux, server DeviceTokenServer) error

RegisterDeviceTokenHandlerServer registers the http handlers for service DeviceToken to "mux". UnaryRPC :call DeviceTokenServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.

func RegisterDeviceTokenScopeServer

func RegisterDeviceTokenScopeServer(component string, auth service.Authenticator, impl service.Implementor, srv DeviceTokenServer) error

Register scoped server.

func RegisterDeviceTokenServer

func RegisterDeviceTokenServer(s *grpc.Server, srv DeviceTokenServer)

func RegisterInnerNotifyHandler

func RegisterInnerNotifyHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterInnerNotifyHandler registers the http handlers for service InnerNotify to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterInnerNotifyHandlerClient

func RegisterInnerNotifyHandlerClient(ctx context.Context, mux *runtime.ServeMux, client InnerNotifyClient) error

RegisterInnerNotifyHandlerClient registers the http handlers for service InnerNotify to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "InnerNotifyClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "InnerNotifyClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "InnerNotifyClient" to call the correct interceptors.

func RegisterInnerNotifyHandlerFromEndpoint

func RegisterInnerNotifyHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterInnerNotifyHandlerFromEndpoint is same as RegisterInnerNotifyHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterInnerNotifyHandlerServer

func RegisterInnerNotifyHandlerServer(ctx context.Context, mux *runtime.ServeMux, server InnerNotifyServer) error

RegisterInnerNotifyHandlerServer registers the http handlers for service InnerNotify to "mux". UnaryRPC :call InnerNotifyServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.

func RegisterInnerNotifyScopeServer

func RegisterInnerNotifyScopeServer(component string, auth service.Authenticator, impl service.Implementor, srv InnerNotifyServer) error

Register scoped server.

func RegisterInnerNotifyServer

func RegisterInnerNotifyServer(s *grpc.Server, srv InnerNotifyServer)

Types

type Alert

type Alert struct {
	Title                *LocalizedString `protobuf:"bytes,1,opt,name=title" json:"title,omitempty"`
	Subtitle             *LocalizedString `protobuf:"bytes,2,opt,name=subtitle" json:"subtitle,omitempty"`
	Body                 *LocalizedString `protobuf:"bytes,3,opt,name=body" json:"body,omitempty"`
	Action               *string          `protobuf:"bytes,4,opt,name=action" json:"action,omitempty"`
	LaunchImage          *string          `protobuf:"bytes,5,opt,name=launch_image,json=launchImage" json:"launch_image,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

Alert content.

func (*Alert) Descriptor

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

func (*Alert) GetAction

func (m *Alert) GetAction() string

func (*Alert) GetBody

func (m *Alert) GetBody() *LocalizedString

func (*Alert) GetLaunchImage

func (m *Alert) GetLaunchImage() string

func (*Alert) GetSubtitle

func (m *Alert) GetSubtitle() *LocalizedString

func (*Alert) GetTitle

func (m *Alert) GetTitle() *LocalizedString

func (*Alert) ProtoMessage

func (*Alert) ProtoMessage()

func (*Alert) Reset

func (m *Alert) Reset()

func (*Alert) String

func (m *Alert) String() string

func (*Alert) Validate

func (m *Alert) Validate() error

Validate checks the field values on Alert with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*Alert) XXX_DiscardUnknown

func (m *Alert) XXX_DiscardUnknown()

func (*Alert) XXX_Marshal

func (m *Alert) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Alert) XXX_Merge

func (m *Alert) XXX_Merge(src proto.Message)

func (*Alert) XXX_Size

func (m *Alert) XXX_Size() int

func (*Alert) XXX_Unmarshal

func (m *Alert) XXX_Unmarshal(b []byte) error

type AlertValidationError

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

AlertValidationError is the validation error returned by Alert.Validate if the designated constraints aren't met.

func (AlertValidationError) Cause

func (e AlertValidationError) Cause() error

Cause function returns cause value.

func (AlertValidationError) Error

func (e AlertValidationError) Error() string

Error satisfies the builtin error interface

func (AlertValidationError) ErrorName

func (e AlertValidationError) ErrorName() string

ErrorName returns error name.

func (AlertValidationError) Field

func (e AlertValidationError) Field() string

Field function returns field value.

func (AlertValidationError) Key

func (e AlertValidationError) Key() bool

Key function returns key value.

func (AlertValidationError) Reason

func (e AlertValidationError) Reason() string

Reason function returns reason value.

type Category

type Category int32

Device category enums.

const (
	Category_CATEGORY_UNSPECIFIED Category = 0
	Category_CATEGORY_APPLE       Category = 1
)

func (Category) Enum

func (x Category) Enum() *Category

func (Category) EnumDescriptor

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

func (Category) String

func (x Category) String() string

func (*Category) UnmarshalJSON

func (x *Category) UnmarshalJSON(data []byte) error

type DeviceTokenClient

type DeviceTokenClient interface {
	Update(ctx context.Context, in *UniqueToken, opts ...grpc.CallOption) (*empty.Empty, error)
}

DeviceTokenClient is the client API for DeviceToken service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewDeviceTokenClient

func NewDeviceTokenClient(cc *grpc.ClientConn) DeviceTokenClient

type DeviceTokenServer

type DeviceTokenServer interface {
	Update(context.Context, *UniqueToken) (*empty.Empty, error)
}

DeviceTokenServer is the server API for DeviceToken service.

type InnerNotifyClient

type InnerNotifyClient interface {
	// Post add the notification into queue.
	Post(ctx context.Context, in *Notification, opts ...grpc.CallOption) (*common.UUID, error)
}

InnerNotifyClient is the client API for InnerNotify service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewInnerNotifyClient

func NewInnerNotifyClient(cc *grpc.ClientConn) InnerNotifyClient

type InnerNotifyServer

type InnerNotifyServer interface {
	// Post add the notification into queue.
	Post(context.Context, *Notification) (*common.UUID, error)
}

InnerNotifyServer is the server API for InnerNotify service.

type LocalizedString

type LocalizedString struct {
	Value                *string  `protobuf:"bytes,1,req,name=value" json:"value,omitempty"`
	Key                  *string  `protobuf:"bytes,2,opt,name=key" json:"key,omitempty"`
	Args                 []string `protobuf:"bytes,3,rep,name=args" json:"args,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

String with localized arguments.

func (*LocalizedString) Descriptor

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

func (*LocalizedString) GetArgs

func (m *LocalizedString) GetArgs() []string

func (*LocalizedString) GetKey

func (m *LocalizedString) GetKey() string

func (*LocalizedString) GetValue

func (m *LocalizedString) GetValue() string

func (*LocalizedString) ProtoMessage

func (*LocalizedString) ProtoMessage()

func (*LocalizedString) Reset

func (m *LocalizedString) Reset()

func (*LocalizedString) String

func (m *LocalizedString) String() string

func (*LocalizedString) Validate

func (m *LocalizedString) Validate() error

Validate checks the field values on LocalizedString with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*LocalizedString) XXX_DiscardUnknown

func (m *LocalizedString) XXX_DiscardUnknown()

func (*LocalizedString) XXX_Marshal

func (m *LocalizedString) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LocalizedString) XXX_Merge

func (m *LocalizedString) XXX_Merge(src proto.Message)

func (*LocalizedString) XXX_Size

func (m *LocalizedString) XXX_Size() int

func (*LocalizedString) XXX_Unmarshal

func (m *LocalizedString) XXX_Unmarshal(b []byte) error

type LocalizedStringValidationError

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

LocalizedStringValidationError is the validation error returned by LocalizedString.Validate if the designated constraints aren't met.

func (LocalizedStringValidationError) Cause

Cause function returns cause value.

func (LocalizedStringValidationError) Error

Error satisfies the builtin error interface

func (LocalizedStringValidationError) ErrorName

func (e LocalizedStringValidationError) ErrorName() string

ErrorName returns error name.

func (LocalizedStringValidationError) Field

Field function returns field value.

func (LocalizedStringValidationError) Key

Key function returns key value.

func (LocalizedStringValidationError) Reason

Reason function returns reason value.

type Notification

type Notification struct {
	Product *string  `protobuf:"bytes,1,req,name=product" json:"product,omitempty"`
	Payload *Payload `protobuf:"bytes,2,req,name=payload" json:"payload,omitempty"`
	// Notification target
	//
	// Types that are valid to be assigned to Target:
	//	*Notification_Account
	//	*Notification_Group
	Target     isNotification_Target `protobuf_oneof:"target"`
	Type       *PushType             `protobuf:"varint,5,opt,name=type,enum=appootb.notification.PushType,def=1" json:"type,omitempty"`
	Priority   *PushPriority         `protobuf:"varint,6,opt,name=priority,enum=appootb.notification.PushPriority,def=2" json:"priority,omitempty"`
	Uuid       *string               `protobuf:"bytes,7,opt,name=uuid" json:"uuid,omitempty"`
	CollapseId *string               `protobuf:"bytes,8,opt,name=collapse_id,json=collapseId" json:"collapse_id,omitempty"`
	// If both expiration and expired_at are set,
	// expiration will be ignored.
	Expiration           *duration.Duration   `protobuf:"bytes,9,opt,name=expiration" json:"expiration,omitempty"`
	ExpiredAt            *timestamp.Timestamp `protobuf:"bytes,10,opt,name=expired_at,json=expiredAt" json:"expired_at,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

Notification metadata.

func (*Notification) Descriptor

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

func (*Notification) GetAccount

func (m *Notification) GetAccount() uint64

func (*Notification) GetCollapseId

func (m *Notification) GetCollapseId() string

func (*Notification) GetExpiration

func (m *Notification) GetExpiration() *duration.Duration

func (*Notification) GetExpiredAt

func (m *Notification) GetExpiredAt() *timestamp.Timestamp

func (*Notification) GetGroup

func (m *Notification) GetGroup() string

func (*Notification) GetPayload

func (m *Notification) GetPayload() *Payload

func (*Notification) GetPriority

func (m *Notification) GetPriority() PushPriority

func (*Notification) GetProduct

func (m *Notification) GetProduct() string

func (*Notification) GetTarget

func (m *Notification) GetTarget() isNotification_Target

func (*Notification) GetType

func (m *Notification) GetType() PushType

func (*Notification) GetUuid

func (m *Notification) GetUuid() string

func (*Notification) ProtoMessage

func (*Notification) ProtoMessage()

func (*Notification) Reset

func (m *Notification) Reset()

func (*Notification) String

func (m *Notification) String() string

func (*Notification) Validate

func (m *Notification) Validate() error

Validate checks the field values on Notification with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*Notification) XXX_DiscardUnknown

func (m *Notification) XXX_DiscardUnknown()

func (*Notification) XXX_Marshal

func (m *Notification) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Notification) XXX_Merge

func (m *Notification) XXX_Merge(src proto.Message)

func (*Notification) XXX_OneofWrappers

func (*Notification) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*Notification) XXX_Size

func (m *Notification) XXX_Size() int

func (*Notification) XXX_Unmarshal

func (m *Notification) XXX_Unmarshal(b []byte) error

type NotificationValidationError

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

NotificationValidationError is the validation error returned by Notification.Validate if the designated constraints aren't met.

func (NotificationValidationError) Cause

Cause function returns cause value.

func (NotificationValidationError) Error

Error satisfies the builtin error interface

func (NotificationValidationError) ErrorName

func (e NotificationValidationError) ErrorName() string

ErrorName returns error name.

func (NotificationValidationError) Field

Field function returns field value.

func (NotificationValidationError) Key

Key function returns key value.

func (NotificationValidationError) Reason

Reason function returns reason value.

type Notification_Account

type Notification_Account struct {
	Account uint64 `protobuf:"varint,3,opt,name=account,oneof"`
}

type Notification_Group

type Notification_Group struct {
	Group string `protobuf:"bytes,4,opt,name=group,oneof"`
}

type Payload

type Payload struct {
	Alert      *Alert  `protobuf:"bytes,1,opt,name=alert" json:"alert,omitempty"`
	Badge      *int32  `protobuf:"varint,2,opt,name=badge" json:"badge,omitempty"`
	Category   *string `protobuf:"bytes,3,opt,name=category" json:"category,omitempty"`
	ThreadId   *string `protobuf:"bytes,4,opt,name=thread_id,json=threadId" json:"thread_id,omitempty"`
	ContentId  *string `protobuf:"bytes,5,opt,name=content_id,json=contentId" json:"content_id,omitempty"`
	Background *bool   `protobuf:"varint,6,opt,name=background,def=0" json:"background,omitempty"`
	Mutable    *bool   `protobuf:"varint,7,opt,name=mutable,def=0" json:"mutable,omitempty"`
	// Sound
	//
	// Types that are valid to be assigned to Sound:
	//	*Payload_System
	//	*Payload_Custom
	Sound                isPayload_Sound `protobuf_oneof:"sound"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

Notification payload.

func (*Payload) Descriptor

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

func (*Payload) GetAlert

func (m *Payload) GetAlert() *Alert

func (*Payload) GetBackground

func (m *Payload) GetBackground() bool

func (*Payload) GetBadge

func (m *Payload) GetBadge() int32

func (*Payload) GetCategory

func (m *Payload) GetCategory() string

func (*Payload) GetContentId

func (m *Payload) GetContentId() string

func (*Payload) GetCustom

func (m *Payload) GetCustom() *Sound

func (*Payload) GetMutable

func (m *Payload) GetMutable() bool

func (*Payload) GetSound

func (m *Payload) GetSound() isPayload_Sound

func (*Payload) GetSystem

func (m *Payload) GetSystem() string

func (*Payload) GetThreadId

func (m *Payload) GetThreadId() string

func (*Payload) ProtoMessage

func (*Payload) ProtoMessage()

func (*Payload) Reset

func (m *Payload) Reset()

func (*Payload) String

func (m *Payload) String() string

func (*Payload) Validate

func (m *Payload) Validate() error

Validate checks the field values on Payload with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*Payload) XXX_DiscardUnknown

func (m *Payload) XXX_DiscardUnknown()

func (*Payload) XXX_Marshal

func (m *Payload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Payload) XXX_Merge

func (m *Payload) XXX_Merge(src proto.Message)

func (*Payload) XXX_OneofWrappers

func (*Payload) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*Payload) XXX_Size

func (m *Payload) XXX_Size() int

func (*Payload) XXX_Unmarshal

func (m *Payload) XXX_Unmarshal(b []byte) error

type PayloadValidationError

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

PayloadValidationError is the validation error returned by Payload.Validate if the designated constraints aren't met.

func (PayloadValidationError) Cause

func (e PayloadValidationError) Cause() error

Cause function returns cause value.

func (PayloadValidationError) Error

func (e PayloadValidationError) Error() string

Error satisfies the builtin error interface

func (PayloadValidationError) ErrorName

func (e PayloadValidationError) ErrorName() string

ErrorName returns error name.

func (PayloadValidationError) Field

func (e PayloadValidationError) Field() string

Field function returns field value.

func (PayloadValidationError) Key

func (e PayloadValidationError) Key() bool

Key function returns key value.

func (PayloadValidationError) Reason

func (e PayloadValidationError) Reason() string

Reason function returns reason value.

type Payload_Custom

type Payload_Custom struct {
	Custom *Sound `protobuf:"bytes,9,opt,name=custom,oneof"`
}

type Payload_System

type Payload_System struct {
	System string `protobuf:"bytes,8,opt,name=system,oneof"`
}

type PushPriority

type PushPriority int32

Push priority enums.

const (
	PushPriority_PUSH_PRIORITY_UNSPECIFIED PushPriority = 0
	PushPriority_PUSH_PRIORITY_LOW         PushPriority = 1
	PushPriority_PUSH_PRIORITY_HIGH        PushPriority = 2
)
const Default_Notification_Priority PushPriority = PushPriority_PUSH_PRIORITY_HIGH

func (PushPriority) Enum

func (x PushPriority) Enum() *PushPriority

func (PushPriority) EnumDescriptor

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

func (PushPriority) String

func (x PushPriority) String() string

func (*PushPriority) UnmarshalJSON

func (x *PushPriority) UnmarshalJSON(data []byte) error

type PushType

type PushType int32

Push type enums.

const (
	PushType_PUSH_TYPE_UNSPECIFIED PushType = 0
	// For APNs
	PushType_PUSH_TYPE_ALERT         PushType = 1
	PushType_PUSH_TYPE_BACKGROUND    PushType = 2
	PushType_PUSH_TYPE_VOIP          PushType = 3
	PushType_PUSH_TYPE_COMPLICATION  PushType = 4
	PushType_PUSH_TYPE_FILE_PROVIDER PushType = 5
	PushType_PUSH_TYPE_FILE_MDM      PushType = 6
)
const Default_Notification_Type PushType = PushType_PUSH_TYPE_ALERT

func (PushType) Enum

func (x PushType) Enum() *PushType

func (PushType) EnumDescriptor

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

func (PushType) String

func (x PushType) String() string

func (*PushType) UnmarshalJSON

func (x *PushType) UnmarshalJSON(data []byte) error

type Sound

type Sound struct {
	Critical             *bool    `protobuf:"varint,1,opt,name=critical,def=1" json:"critical,omitempty"`
	Name                 *string  `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
	Volume               *int32   `protobuf:"varint,3,opt,name=volume" json:"volume,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Custom sound type.

func (*Sound) Descriptor

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

func (*Sound) GetCritical

func (m *Sound) GetCritical() bool

func (*Sound) GetName

func (m *Sound) GetName() string

func (*Sound) GetVolume

func (m *Sound) GetVolume() int32

func (*Sound) ProtoMessage

func (*Sound) ProtoMessage()

func (*Sound) Reset

func (m *Sound) Reset()

func (*Sound) String

func (m *Sound) String() string

func (*Sound) Validate

func (m *Sound) Validate() error

Validate checks the field values on Sound with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*Sound) XXX_DiscardUnknown

func (m *Sound) XXX_DiscardUnknown()

func (*Sound) XXX_Marshal

func (m *Sound) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Sound) XXX_Merge

func (m *Sound) XXX_Merge(src proto.Message)

func (*Sound) XXX_Size

func (m *Sound) XXX_Size() int

func (*Sound) XXX_Unmarshal

func (m *Sound) XXX_Unmarshal(b []byte) error

type SoundValidationError

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

SoundValidationError is the validation error returned by Sound.Validate if the designated constraints aren't met.

func (SoundValidationError) Cause

func (e SoundValidationError) Cause() error

Cause function returns cause value.

func (SoundValidationError) Error

func (e SoundValidationError) Error() string

Error satisfies the builtin error interface

func (SoundValidationError) ErrorName

func (e SoundValidationError) ErrorName() string

ErrorName returns error name.

func (SoundValidationError) Field

func (e SoundValidationError) Field() string

Field function returns field value.

func (SoundValidationError) Key

func (e SoundValidationError) Key() bool

Key function returns key value.

func (SoundValidationError) Reason

func (e SoundValidationError) Reason() string

Reason function returns reason value.

type UnimplementedDeviceTokenServer

type UnimplementedDeviceTokenServer struct {
}

UnimplementedDeviceTokenServer can be embedded to have forward compatible implementations.

func (*UnimplementedDeviceTokenServer) Update

type UnimplementedInnerNotifyServer

type UnimplementedInnerNotifyServer struct {
}

UnimplementedInnerNotifyServer can be embedded to have forward compatible implementations.

func (*UnimplementedInnerNotifyServer) Post

type UniqueToken

type UniqueToken struct {
	Category             *Category `protobuf:"varint,1,req,name=category,enum=appootb.notification.Category" json:"category,omitempty"`
	Value                *string   `protobuf:"bytes,2,req,name=value" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

Unique device token.

func (*UniqueToken) Descriptor

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

func (*UniqueToken) GetCategory

func (m *UniqueToken) GetCategory() Category

func (*UniqueToken) GetValue

func (m *UniqueToken) GetValue() string

func (*UniqueToken) ProtoMessage

func (*UniqueToken) ProtoMessage()

func (*UniqueToken) Reset

func (m *UniqueToken) Reset()

func (*UniqueToken) String

func (m *UniqueToken) String() string

func (*UniqueToken) Validate

func (m *UniqueToken) Validate() error

Validate checks the field values on UniqueToken with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*UniqueToken) XXX_DiscardUnknown

func (m *UniqueToken) XXX_DiscardUnknown()

func (*UniqueToken) XXX_Marshal

func (m *UniqueToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UniqueToken) XXX_Merge

func (m *UniqueToken) XXX_Merge(src proto.Message)

func (*UniqueToken) XXX_Size

func (m *UniqueToken) XXX_Size() int

func (*UniqueToken) XXX_Unmarshal

func (m *UniqueToken) XXX_Unmarshal(b []byte) error

type UniqueTokenValidationError

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

UniqueTokenValidationError is the validation error returned by UniqueToken.Validate if the designated constraints aren't met.

func (UniqueTokenValidationError) Cause

Cause function returns cause value.

func (UniqueTokenValidationError) Error

Error satisfies the builtin error interface

func (UniqueTokenValidationError) ErrorName

func (e UniqueTokenValidationError) ErrorName() string

ErrorName returns error name.

func (UniqueTokenValidationError) Field

Field function returns field value.

func (UniqueTokenValidationError) Key

Key function returns key value.

func (UniqueTokenValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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