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
- Variables
- func RegisterDeviceTokenHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterDeviceTokenHandlerClient(ctx context.Context, mux *runtime.ServeMux, client DeviceTokenClient) error
- func RegisterDeviceTokenHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterDeviceTokenHandlerServer(ctx context.Context, mux *runtime.ServeMux, server DeviceTokenServer) error
- func RegisterDeviceTokenScopeServer(component string, auth service.Authenticator, impl service.Implementor, ...) error
- func RegisterDeviceTokenServer(s *grpc.Server, srv DeviceTokenServer)
- func RegisterInnerNotifyHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterInnerNotifyHandlerClient(ctx context.Context, mux *runtime.ServeMux, client InnerNotifyClient) error
- func RegisterInnerNotifyHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterInnerNotifyHandlerServer(ctx context.Context, mux *runtime.ServeMux, server InnerNotifyServer) error
- func RegisterInnerNotifyScopeServer(component string, auth service.Authenticator, impl service.Implementor, ...) error
- func RegisterInnerNotifyServer(s *grpc.Server, srv InnerNotifyServer)
- type Alert
- func (*Alert) Descriptor() ([]byte, []int)
- func (m *Alert) GetAction() string
- func (m *Alert) GetBody() *LocalizedString
- func (m *Alert) GetLaunchImage() string
- func (m *Alert) GetSubtitle() *LocalizedString
- func (m *Alert) GetTitle() *LocalizedString
- func (*Alert) ProtoMessage()
- func (m *Alert) Reset()
- func (m *Alert) String() string
- func (m *Alert) Validate() error
- func (m *Alert) XXX_DiscardUnknown()
- func (m *Alert) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Alert) XXX_Merge(src proto.Message)
- func (m *Alert) XXX_Size() int
- func (m *Alert) XXX_Unmarshal(b []byte) error
- type AlertValidationError
- type Category
- type DeviceTokenClient
- type DeviceTokenServer
- type InnerNotifyClient
- type InnerNotifyServer
- type LocalizedString
- func (*LocalizedString) Descriptor() ([]byte, []int)
- func (m *LocalizedString) GetArgs() []string
- func (m *LocalizedString) GetKey() string
- func (m *LocalizedString) GetValue() string
- func (*LocalizedString) ProtoMessage()
- func (m *LocalizedString) Reset()
- func (m *LocalizedString) String() string
- func (m *LocalizedString) Validate() error
- func (m *LocalizedString) XXX_DiscardUnknown()
- func (m *LocalizedString) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LocalizedString) XXX_Merge(src proto.Message)
- func (m *LocalizedString) XXX_Size() int
- func (m *LocalizedString) XXX_Unmarshal(b []byte) error
- type LocalizedStringValidationError
- func (e LocalizedStringValidationError) Cause() error
- func (e LocalizedStringValidationError) Error() string
- func (e LocalizedStringValidationError) ErrorName() string
- func (e LocalizedStringValidationError) Field() string
- func (e LocalizedStringValidationError) Key() bool
- func (e LocalizedStringValidationError) Reason() string
- type Notification
- func (*Notification) Descriptor() ([]byte, []int)
- func (m *Notification) GetAccount() uint64
- func (m *Notification) GetCollapseId() string
- func (m *Notification) GetExpiration() *duration.Duration
- func (m *Notification) GetExpiredAt() *timestamp.Timestamp
- func (m *Notification) GetGroup() string
- func (m *Notification) GetPayload() *Payload
- func (m *Notification) GetPriority() PushPriority
- func (m *Notification) GetProduct() string
- func (m *Notification) GetTarget() isNotification_Target
- func (m *Notification) GetType() PushType
- func (m *Notification) GetUuid() string
- func (*Notification) ProtoMessage()
- func (m *Notification) Reset()
- func (m *Notification) String() string
- func (m *Notification) Validate() error
- func (m *Notification) XXX_DiscardUnknown()
- func (m *Notification) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Notification) XXX_Merge(src proto.Message)
- func (*Notification) XXX_OneofWrappers() []interface{}
- func (m *Notification) XXX_Size() int
- func (m *Notification) XXX_Unmarshal(b []byte) error
- type NotificationValidationError
- func (e NotificationValidationError) Cause() error
- func (e NotificationValidationError) Error() string
- func (e NotificationValidationError) ErrorName() string
- func (e NotificationValidationError) Field() string
- func (e NotificationValidationError) Key() bool
- func (e NotificationValidationError) Reason() string
- type Notification_Account
- type Notification_Group
- type Payload
- func (*Payload) Descriptor() ([]byte, []int)
- func (m *Payload) GetAlert() *Alert
- func (m *Payload) GetBackground() bool
- func (m *Payload) GetBadge() int32
- func (m *Payload) GetCategory() string
- func (m *Payload) GetContentId() string
- func (m *Payload) GetCustom() *Sound
- func (m *Payload) GetMutable() bool
- func (m *Payload) GetSound() isPayload_Sound
- func (m *Payload) GetSystem() string
- func (m *Payload) GetThreadId() string
- func (*Payload) ProtoMessage()
- func (m *Payload) Reset()
- func (m *Payload) String() string
- func (m *Payload) Validate() error
- func (m *Payload) XXX_DiscardUnknown()
- func (m *Payload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Payload) XXX_Merge(src proto.Message)
- func (*Payload) XXX_OneofWrappers() []interface{}
- func (m *Payload) XXX_Size() int
- func (m *Payload) XXX_Unmarshal(b []byte) error
- type PayloadValidationError
- type Payload_Custom
- type Payload_System
- type PushPriority
- type PushType
- type Sound
- func (*Sound) Descriptor() ([]byte, []int)
- func (m *Sound) GetCritical() bool
- func (m *Sound) GetName() string
- func (m *Sound) GetVolume() int32
- func (*Sound) ProtoMessage()
- func (m *Sound) Reset()
- func (m *Sound) String() string
- func (m *Sound) Validate() error
- func (m *Sound) XXX_DiscardUnknown()
- func (m *Sound) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Sound) XXX_Merge(src proto.Message)
- func (m *Sound) XXX_Size() int
- func (m *Sound) XXX_Unmarshal(b []byte) error
- type SoundValidationError
- type UnimplementedDeviceTokenServer
- type UnimplementedInnerNotifyServer
- type UniqueToken
- func (*UniqueToken) Descriptor() ([]byte, []int)
- func (m *UniqueToken) GetCategory() Category
- func (m *UniqueToken) GetValue() string
- func (*UniqueToken) ProtoMessage()
- func (m *UniqueToken) Reset()
- func (m *UniqueToken) String() string
- func (m *UniqueToken) Validate() error
- func (m *UniqueToken) XXX_DiscardUnknown()
- func (m *UniqueToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UniqueToken) XXX_Merge(src proto.Message)
- func (m *UniqueToken) XXX_Size() int
- func (m *UniqueToken) XXX_Unmarshal(b []byte) error
- type UniqueTokenValidationError
- func (e UniqueTokenValidationError) Cause() error
- func (e UniqueTokenValidationError) Error() string
- func (e UniqueTokenValidationError) ErrorName() string
- func (e UniqueTokenValidationError) Field() string
- func (e UniqueTokenValidationError) Key() bool
- func (e UniqueTokenValidationError) Reason() string
Constants ¶
const Default_Payload_Background bool = false
const Default_Payload_Mutable bool = false
const Default_Sound_Critical bool = true
Variables ¶
var Category_name = map[int32]string{
0: "CATEGORY_UNSPECIFIED",
1: "CATEGORY_APPLE",
}
var Category_value = map[string]int32{
"CATEGORY_UNSPECIFIED": 0,
"CATEGORY_APPLE": 1,
}
var PushPriority_name = map[int32]string{
0: "PUSH_PRIORITY_UNSPECIFIED",
1: "PUSH_PRIORITY_LOW",
2: "PUSH_PRIORITY_HIGH",
}
var PushPriority_value = map[string]int32{
"PUSH_PRIORITY_UNSPECIFIED": 0,
"PUSH_PRIORITY_LOW": 1,
"PUSH_PRIORITY_HIGH": 2,
}
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",
}
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) GetBody ¶
func (m *Alert) GetBody() *LocalizedString
func (*Alert) GetLaunchImage ¶
func (*Alert) GetSubtitle ¶
func (m *Alert) GetSubtitle() *LocalizedString
func (*Alert) GetTitle ¶
func (m *Alert) GetTitle() *LocalizedString
func (*Alert) ProtoMessage ¶
func (*Alert) ProtoMessage()
func (*Alert) Validate ¶
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 (*Alert) XXX_Unmarshal ¶
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.
func (Category) EnumDescriptor ¶
func (*Category) UnmarshalJSON ¶
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 ¶
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 ¶
func (e LocalizedStringValidationError) Cause() error
Cause function returns cause value.
func (LocalizedStringValidationError) Error ¶
func (e LocalizedStringValidationError) Error() string
Error satisfies the builtin error interface
func (LocalizedStringValidationError) ErrorName ¶
func (e LocalizedStringValidationError) ErrorName() string
ErrorName returns error name.
func (LocalizedStringValidationError) Field ¶
func (e LocalizedStringValidationError) Field() string
Field function returns field value.
func (LocalizedStringValidationError) Key ¶
func (e LocalizedStringValidationError) Key() bool
Key function returns key value.
func (LocalizedStringValidationError) Reason ¶
func (e LocalizedStringValidationError) Reason() string
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 ¶
func (e NotificationValidationError) Cause() error
Cause function returns cause value.
func (NotificationValidationError) Error ¶
func (e NotificationValidationError) Error() string
Error satisfies the builtin error interface
func (NotificationValidationError) ErrorName ¶
func (e NotificationValidationError) ErrorName() string
ErrorName returns error name.
func (NotificationValidationError) Field ¶
func (e NotificationValidationError) Field() string
Field function returns field value.
func (NotificationValidationError) Key ¶
func (e NotificationValidationError) Key() bool
Key function returns key value.
func (NotificationValidationError) Reason ¶
func (e NotificationValidationError) Reason() string
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) GetBackground ¶
func (*Payload) GetCategory ¶
func (*Payload) GetContentId ¶
func (*Payload) GetMutable ¶
func (*Payload) GetThreadId ¶
func (*Payload) ProtoMessage ¶
func (*Payload) ProtoMessage()
func (*Payload) Validate ¶
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 (*Payload) XXX_OneofWrappers ¶
func (*Payload) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*Payload) XXX_Unmarshal ¶
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) EnumDescriptor ¶
func (*PushType) UnmarshalJSON ¶
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) GetCritical ¶
func (*Sound) ProtoMessage ¶
func (*Sound) ProtoMessage()
func (*Sound) Validate ¶
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 (*Sound) XXX_Unmarshal ¶
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 ¶
func (*UnimplementedDeviceTokenServer) Update(ctx context.Context, req *UniqueToken) (*empty.Empty, error)
type UnimplementedInnerNotifyServer ¶
type UnimplementedInnerNotifyServer struct { }
UnimplementedInnerNotifyServer can be embedded to have forward compatible implementations.
func (*UnimplementedInnerNotifyServer) Post ¶
func (*UnimplementedInnerNotifyServer) Post(ctx context.Context, req *Notification) (*common.UUID, error)
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 ¶
func (e UniqueTokenValidationError) Cause() error
Cause function returns cause value.
func (UniqueTokenValidationError) Error ¶
func (e UniqueTokenValidationError) Error() string
Error satisfies the builtin error interface
func (UniqueTokenValidationError) ErrorName ¶
func (e UniqueTokenValidationError) ErrorName() string
ErrorName returns error name.
func (UniqueTokenValidationError) Field ¶
func (e UniqueTokenValidationError) Field() string
Field function returns field value.
func (UniqueTokenValidationError) Key ¶
func (e UniqueTokenValidationError) Key() bool
Key function returns key value.
func (UniqueTokenValidationError) Reason ¶
func (e UniqueTokenValidationError) Reason() string
Reason function returns reason value.