notificationsv1

package
v0.0.0-...-e21c0d3 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_notifications_v1_service_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type DeleteInstallationRequest

type DeleteInstallationRequest struct {
	InstallationId string `protobuf:"bytes,1,opt,name=installation_id,json=installationId,proto3" json:"installation_id,omitempty"`
	// contains filtered or unexported fields
}

Delete an installation from the service

func (*DeleteInstallationRequest) Descriptor deprecated

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

Deprecated: Use DeleteInstallationRequest.ProtoReflect.Descriptor instead.

func (*DeleteInstallationRequest) GetInstallationId

func (x *DeleteInstallationRequest) GetInstallationId() string

func (*DeleteInstallationRequest) ProtoMessage

func (*DeleteInstallationRequest) ProtoMessage()

func (*DeleteInstallationRequest) ProtoReflect

func (*DeleteInstallationRequest) Reset

func (x *DeleteInstallationRequest) Reset()

func (*DeleteInstallationRequest) String

func (x *DeleteInstallationRequest) String() string

type DeliveryMechanism

type DeliveryMechanism struct {

	// Types that are assignable to DeliveryMechanismType:
	//
	//	*DeliveryMechanism_ApnsDeviceToken
	//	*DeliveryMechanism_FirebaseDeviceToken
	//	*DeliveryMechanism_CustomToken
	DeliveryMechanismType isDeliveryMechanism_DeliveryMechanismType `protobuf_oneof:"delivery_mechanism_type"`
	// contains filtered or unexported fields
}

An union of possible delibery mechanisms

func (*DeliveryMechanism) Descriptor deprecated

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

Deprecated: Use DeliveryMechanism.ProtoReflect.Descriptor instead.

func (*DeliveryMechanism) GetApnsDeviceToken

func (x *DeliveryMechanism) GetApnsDeviceToken() string

func (*DeliveryMechanism) GetCustomToken

func (x *DeliveryMechanism) GetCustomToken() string

func (*DeliveryMechanism) GetDeliveryMechanismType

func (m *DeliveryMechanism) GetDeliveryMechanismType() isDeliveryMechanism_DeliveryMechanismType

func (*DeliveryMechanism) GetFirebaseDeviceToken

func (x *DeliveryMechanism) GetFirebaseDeviceToken() string

func (*DeliveryMechanism) ProtoMessage

func (*DeliveryMechanism) ProtoMessage()

func (*DeliveryMechanism) ProtoReflect

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

func (*DeliveryMechanism) Reset

func (x *DeliveryMechanism) Reset()

func (*DeliveryMechanism) String

func (x *DeliveryMechanism) String() string

type DeliveryMechanism_ApnsDeviceToken

type DeliveryMechanism_ApnsDeviceToken struct {
	ApnsDeviceToken string `protobuf:"bytes,1,opt,name=apns_device_token,json=apnsDeviceToken,proto3,oneof"`
}

type DeliveryMechanism_CustomToken

type DeliveryMechanism_CustomToken struct {
	CustomToken string `protobuf:"bytes,3,opt,name=custom_token,json=customToken,proto3,oneof"`
}

type DeliveryMechanism_FirebaseDeviceToken

type DeliveryMechanism_FirebaseDeviceToken struct {
	FirebaseDeviceToken string `protobuf:"bytes,2,opt,name=firebase_device_token,json=firebaseDeviceToken,proto3,oneof"`
}

type RegisterInstallationRequest

type RegisterInstallationRequest struct {
	InstallationId    string             `protobuf:"bytes,1,opt,name=installation_id,json=installationId,proto3" json:"installation_id,omitempty"`
	DeliveryMechanism *DeliveryMechanism `protobuf:"bytes,2,opt,name=delivery_mechanism,json=deliveryMechanism,proto3" json:"delivery_mechanism,omitempty"`
	// contains filtered or unexported fields
}

A request to register an installation with the service

func (*RegisterInstallationRequest) Descriptor deprecated

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

Deprecated: Use RegisterInstallationRequest.ProtoReflect.Descriptor instead.

func (*RegisterInstallationRequest) GetDeliveryMechanism

func (x *RegisterInstallationRequest) GetDeliveryMechanism() *DeliveryMechanism

func (*RegisterInstallationRequest) GetInstallationId

func (x *RegisterInstallationRequest) GetInstallationId() string

func (*RegisterInstallationRequest) ProtoMessage

func (*RegisterInstallationRequest) ProtoMessage()

func (*RegisterInstallationRequest) ProtoReflect

func (*RegisterInstallationRequest) Reset

func (x *RegisterInstallationRequest) Reset()

func (*RegisterInstallationRequest) String

func (x *RegisterInstallationRequest) String() string

type RegisterInstallationResponse

type RegisterInstallationResponse struct {
	InstallationId string `protobuf:"bytes,1,opt,name=installation_id,json=installationId,proto3" json:"installation_id,omitempty"`
	ValidUntil     uint64 `protobuf:"varint,2,opt,name=valid_until,json=validUntil,proto3" json:"valid_until,omitempty"`
	// contains filtered or unexported fields
}

Response to RegisterInstallationRequest

func (*RegisterInstallationResponse) Descriptor deprecated

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

Deprecated: Use RegisterInstallationResponse.ProtoReflect.Descriptor instead.

func (*RegisterInstallationResponse) GetInstallationId

func (x *RegisterInstallationResponse) GetInstallationId() string

func (*RegisterInstallationResponse) GetValidUntil

func (x *RegisterInstallationResponse) GetValidUntil() uint64

func (*RegisterInstallationResponse) ProtoMessage

func (*RegisterInstallationResponse) ProtoMessage()

func (*RegisterInstallationResponse) ProtoReflect

func (*RegisterInstallationResponse) Reset

func (x *RegisterInstallationResponse) Reset()

func (*RegisterInstallationResponse) String

type SubscribeRequest

type SubscribeRequest struct {
	InstallationId string   `protobuf:"bytes,1,opt,name=installation_id,json=installationId,proto3" json:"installation_id,omitempty"`
	Topics         []string `protobuf:"bytes,2,rep,name=topics,proto3" json:"topics,omitempty"`
	// contains filtered or unexported fields
}

Subscribe to a list of topics

func (*SubscribeRequest) Descriptor deprecated

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

Deprecated: Use SubscribeRequest.ProtoReflect.Descriptor instead.

func (*SubscribeRequest) GetInstallationId

func (x *SubscribeRequest) GetInstallationId() string

func (*SubscribeRequest) GetTopics

func (x *SubscribeRequest) GetTopics() []string

func (*SubscribeRequest) ProtoMessage

func (*SubscribeRequest) ProtoMessage()

func (*SubscribeRequest) ProtoReflect

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

func (*SubscribeRequest) Reset

func (x *SubscribeRequest) Reset()

func (*SubscribeRequest) String

func (x *SubscribeRequest) String() string

type SubscribeWithMetadataRequest

type SubscribeWithMetadataRequest struct {
	InstallationId string          `protobuf:"bytes,1,opt,name=installation_id,json=installationId,proto3" json:"installation_id,omitempty"`
	Subscriptions  []*Subscription `protobuf:"bytes,2,rep,name=subscriptions,proto3" json:"subscriptions,omitempty"`
	// contains filtered or unexported fields
}

A request to subscribe to a list of topics and update the associated metadata

func (*SubscribeWithMetadataRequest) Descriptor deprecated

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

Deprecated: Use SubscribeWithMetadataRequest.ProtoReflect.Descriptor instead.

func (*SubscribeWithMetadataRequest) GetInstallationId

func (x *SubscribeWithMetadataRequest) GetInstallationId() string

func (*SubscribeWithMetadataRequest) GetSubscriptions

func (x *SubscribeWithMetadataRequest) GetSubscriptions() []*Subscription

func (*SubscribeWithMetadataRequest) ProtoMessage

func (*SubscribeWithMetadataRequest) ProtoMessage()

func (*SubscribeWithMetadataRequest) ProtoReflect

func (*SubscribeWithMetadataRequest) Reset

func (x *SubscribeWithMetadataRequest) Reset()

func (*SubscribeWithMetadataRequest) String

type Subscription

type Subscription struct {
	Topic    string                  `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"`
	HmacKeys []*Subscription_HmacKey `protobuf:"bytes,2,rep,name=hmac_keys,json=hmacKeys,proto3" json:"hmac_keys,omitempty"`
	IsSilent bool                    `protobuf:"varint,3,opt,name=is_silent,json=isSilent,proto3" json:"is_silent,omitempty"`
	// contains filtered or unexported fields
}

A subscription with associated metadata

func (*Subscription) Descriptor deprecated

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

Deprecated: Use Subscription.ProtoReflect.Descriptor instead.

func (*Subscription) GetHmacKeys

func (x *Subscription) GetHmacKeys() []*Subscription_HmacKey

func (*Subscription) GetIsSilent

func (x *Subscription) GetIsSilent() bool

func (*Subscription) GetTopic

func (x *Subscription) GetTopic() string

func (*Subscription) ProtoMessage

func (*Subscription) ProtoMessage()

func (*Subscription) ProtoReflect

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

func (*Subscription) Reset

func (x *Subscription) Reset()

func (*Subscription) String

func (x *Subscription) String() string

type Subscription_HmacKey

type Subscription_HmacKey struct {
	ThirtyDayPeriodsSinceEpoch uint32 `` /* 146-byte string literal not displayed */
	Key                        []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
	// contains filtered or unexported fields
}

func (*Subscription_HmacKey) Descriptor deprecated

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

Deprecated: Use Subscription_HmacKey.ProtoReflect.Descriptor instead.

func (*Subscription_HmacKey) GetKey

func (x *Subscription_HmacKey) GetKey() []byte

func (*Subscription_HmacKey) GetThirtyDayPeriodsSinceEpoch

func (x *Subscription_HmacKey) GetThirtyDayPeriodsSinceEpoch() uint32

func (*Subscription_HmacKey) ProtoMessage

func (*Subscription_HmacKey) ProtoMessage()

func (*Subscription_HmacKey) ProtoReflect

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

func (*Subscription_HmacKey) Reset

func (x *Subscription_HmacKey) Reset()

func (*Subscription_HmacKey) String

func (x *Subscription_HmacKey) String() string

type UnsubscribeRequest

type UnsubscribeRequest struct {
	InstallationId string   `protobuf:"bytes,1,opt,name=installation_id,json=installationId,proto3" json:"installation_id,omitempty"`
	Topics         []string `protobuf:"bytes,2,rep,name=topics,proto3" json:"topics,omitempty"`
	// contains filtered or unexported fields
}

Unsubscribe from a list of topics

func (*UnsubscribeRequest) Descriptor deprecated

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

Deprecated: Use UnsubscribeRequest.ProtoReflect.Descriptor instead.

func (*UnsubscribeRequest) GetInstallationId

func (x *UnsubscribeRequest) GetInstallationId() string

func (*UnsubscribeRequest) GetTopics

func (x *UnsubscribeRequest) GetTopics() []string

func (*UnsubscribeRequest) ProtoMessage

func (*UnsubscribeRequest) ProtoMessage()

func (*UnsubscribeRequest) ProtoReflect

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

func (*UnsubscribeRequest) Reset

func (x *UnsubscribeRequest) Reset()

func (*UnsubscribeRequest) String

func (x *UnsubscribeRequest) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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