activitypb

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2025 License: MIT Imports: 23 Imported by: 1

Documentation

Index

Constants

View Source
const (
	ActivityFeed_GetLatestNotifications_FullMethodName = "/flipcash.activity.v1.ActivityFeed/GetLatestNotifications"
)

Variables

View Source
var (
	GetLatestNotificationsResponse_Result_name = map[int32]string{
		0: "OK",
		1: "DENIED",
	}
	GetLatestNotificationsResponse_Result_value = map[string]int32{
		"OK":     0,
		"DENIED": 1,
	}
)

Enum value maps for GetLatestNotificationsResponse_Result.

View Source
var (
	ActivityFeedType_name = map[int32]string{
		0: "UNKNOWN",
		1: "TRANSACTION_HISTORY",
	}
	ActivityFeedType_value = map[string]int32{
		"UNKNOWN":             0,
		"TRANSACTION_HISTORY": 1,
	}
)

Enum value maps for ActivityFeedType.

View Source
var ActivityFeed_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "flipcash.activity.v1.ActivityFeed",
	HandlerType: (*ActivityFeedServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetLatestNotifications",
			Handler:    _ActivityFeed_GetLatestNotifications_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "activity/v1/activity_feed_service.proto",
}

ActivityFeed_ServiceDesc is the grpc.ServiceDesc for ActivityFeed 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_activity_v1_activity_feed_service_proto protoreflect.FileDescriptor
View Source
var File_activity_v1_model_proto protoreflect.FileDescriptor

Functions

func RegisterActivityFeedServer

func RegisterActivityFeedServer(s grpc.ServiceRegistrar, srv ActivityFeedServer)

Types

type ActivityFeedClient

type ActivityFeedClient interface {
	// GetLatestNotifications gets the latest N notifications in a user's
	// activity feed. Results will be ordered by descending timestamp.
	GetLatestNotifications(ctx context.Context, in *GetLatestNotificationsRequest, opts ...grpc.CallOption) (*GetLatestNotificationsResponse, error)
}

ActivityFeedClient is the client API for ActivityFeed 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 ActivityFeedServer

type ActivityFeedServer interface {
	// GetLatestNotifications gets the latest N notifications in a user's
	// activity feed. Results will be ordered by descending timestamp.
	GetLatestNotifications(context.Context, *GetLatestNotificationsRequest) (*GetLatestNotificationsResponse, error)
	// contains filtered or unexported methods
}

ActivityFeedServer is the server API for ActivityFeed service. All implementations must embed UnimplementedActivityFeedServer for forward compatibility.

type ActivityFeedType

type ActivityFeedType int32

ActivityFeedType enables multiple activity feeds, where notifications may be split across different parts of the app

const (
	ActivityFeedType_UNKNOWN             ActivityFeedType = 0
	ActivityFeedType_TRANSACTION_HISTORY ActivityFeedType = 1 // Activity feed displayed under the Balance tab
)

func (ActivityFeedType) Descriptor

func (ActivityFeedType) Enum

func (ActivityFeedType) EnumDescriptor deprecated

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

Deprecated: Use ActivityFeedType.Descriptor instead.

func (ActivityFeedType) Number

func (ActivityFeedType) String

func (x ActivityFeedType) String() string

func (ActivityFeedType) Type

type GaveUsdcNotificationMetadata

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

func (*GaveUsdcNotificationMetadata) Descriptor deprecated

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

Deprecated: Use GaveUsdcNotificationMetadata.ProtoReflect.Descriptor instead.

func (*GaveUsdcNotificationMetadata) ProtoMessage

func (*GaveUsdcNotificationMetadata) ProtoMessage()

func (*GaveUsdcNotificationMetadata) ProtoReflect

func (*GaveUsdcNotificationMetadata) Reset

func (x *GaveUsdcNotificationMetadata) Reset()

func (*GaveUsdcNotificationMetadata) String

func (*GaveUsdcNotificationMetadata) Validate

func (m *GaveUsdcNotificationMetadata) Validate() error

Validate checks the field values on GaveUsdcNotificationMetadata with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GaveUsdcNotificationMetadata) ValidateAll

func (m *GaveUsdcNotificationMetadata) ValidateAll() error

ValidateAll checks the field values on GaveUsdcNotificationMetadata with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GaveUsdcNotificationMetadataMultiError, or nil if none found.

type GaveUsdcNotificationMetadataMultiError

type GaveUsdcNotificationMetadataMultiError []error

GaveUsdcNotificationMetadataMultiError is an error wrapping multiple validation errors returned by GaveUsdcNotificationMetadata.ValidateAll() if the designated constraints aren't met.

func (GaveUsdcNotificationMetadataMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (GaveUsdcNotificationMetadataMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GaveUsdcNotificationMetadataValidationError

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

GaveUsdcNotificationMetadataValidationError is the validation error returned by GaveUsdcNotificationMetadata.Validate if the designated constraints aren't met.

func (GaveUsdcNotificationMetadataValidationError) Cause

Cause function returns cause value.

func (GaveUsdcNotificationMetadataValidationError) Error

Error satisfies the builtin error interface

func (GaveUsdcNotificationMetadataValidationError) ErrorName

ErrorName returns error name.

func (GaveUsdcNotificationMetadataValidationError) Field

Field function returns field value.

func (GaveUsdcNotificationMetadataValidationError) Key

Key function returns key value.

func (GaveUsdcNotificationMetadataValidationError) Reason

Reason function returns reason value.

type GetLatestNotificationsRequest

type GetLatestNotificationsRequest struct {

	// The activity feed to fetch notifications from
	Type ActivityFeedType `protobuf:"varint,1,opt,name=type,proto3,enum=flipcash.activity.v1.ActivityFeedType" json:"type,omitempty"`
	// Maximum number of notifications to return. If <= 0, the server default is used
	MaxItems int32    `protobuf:"varint,2,opt,name=max_items,json=maxItems,proto3" json:"max_items,omitempty"`
	Auth     *v1.Auth `protobuf:"bytes,3,opt,name=auth,proto3" json:"auth,omitempty"`
	// contains filtered or unexported fields
}

func (*GetLatestNotificationsRequest) Descriptor deprecated

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

Deprecated: Use GetLatestNotificationsRequest.ProtoReflect.Descriptor instead.

func (*GetLatestNotificationsRequest) GetAuth

func (x *GetLatestNotificationsRequest) GetAuth() *v1.Auth

func (*GetLatestNotificationsRequest) GetMaxItems

func (x *GetLatestNotificationsRequest) GetMaxItems() int32

func (*GetLatestNotificationsRequest) GetType

func (*GetLatestNotificationsRequest) ProtoMessage

func (*GetLatestNotificationsRequest) ProtoMessage()

func (*GetLatestNotificationsRequest) ProtoReflect

func (*GetLatestNotificationsRequest) Reset

func (x *GetLatestNotificationsRequest) Reset()

func (*GetLatestNotificationsRequest) String

func (*GetLatestNotificationsRequest) Validate

func (m *GetLatestNotificationsRequest) Validate() error

Validate checks the field values on GetLatestNotificationsRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetLatestNotificationsRequest) ValidateAll

func (m *GetLatestNotificationsRequest) ValidateAll() error

ValidateAll checks the field values on GetLatestNotificationsRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetLatestNotificationsRequestMultiError, or nil if none found.

type GetLatestNotificationsRequestMultiError

type GetLatestNotificationsRequestMultiError []error

GetLatestNotificationsRequestMultiError is an error wrapping multiple validation errors returned by GetLatestNotificationsRequest.ValidateAll() if the designated constraints aren't met.

func (GetLatestNotificationsRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (GetLatestNotificationsRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetLatestNotificationsRequestValidationError

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

GetLatestNotificationsRequestValidationError is the validation error returned by GetLatestNotificationsRequest.Validate if the designated constraints aren't met.

func (GetLatestNotificationsRequestValidationError) Cause

Cause function returns cause value.

func (GetLatestNotificationsRequestValidationError) Error

Error satisfies the builtin error interface

func (GetLatestNotificationsRequestValidationError) ErrorName

ErrorName returns error name.

func (GetLatestNotificationsRequestValidationError) Field

Field function returns field value.

func (GetLatestNotificationsRequestValidationError) Key

Key function returns key value.

func (GetLatestNotificationsRequestValidationError) Reason

Reason function returns reason value.

type GetLatestNotificationsResponse

type GetLatestNotificationsResponse struct {
	Result        GetLatestNotificationsResponse_Result `` /* 130-byte string literal not displayed */
	Notifications []*Notification                       `protobuf:"bytes,2,rep,name=notifications,proto3" json:"notifications,omitempty"`
	// contains filtered or unexported fields
}

func (*GetLatestNotificationsResponse) Descriptor deprecated

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

Deprecated: Use GetLatestNotificationsResponse.ProtoReflect.Descriptor instead.

func (*GetLatestNotificationsResponse) GetNotifications

func (x *GetLatestNotificationsResponse) GetNotifications() []*Notification

func (*GetLatestNotificationsResponse) GetResult

func (*GetLatestNotificationsResponse) ProtoMessage

func (*GetLatestNotificationsResponse) ProtoMessage()

func (*GetLatestNotificationsResponse) ProtoReflect

func (*GetLatestNotificationsResponse) Reset

func (x *GetLatestNotificationsResponse) Reset()

func (*GetLatestNotificationsResponse) String

func (*GetLatestNotificationsResponse) Validate

func (m *GetLatestNotificationsResponse) Validate() error

Validate checks the field values on GetLatestNotificationsResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetLatestNotificationsResponse) ValidateAll

func (m *GetLatestNotificationsResponse) ValidateAll() error

ValidateAll checks the field values on GetLatestNotificationsResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetLatestNotificationsResponseMultiError, or nil if none found.

type GetLatestNotificationsResponseMultiError

type GetLatestNotificationsResponseMultiError []error

GetLatestNotificationsResponseMultiError is an error wrapping multiple validation errors returned by GetLatestNotificationsResponse.ValidateAll() if the designated constraints aren't met.

func (GetLatestNotificationsResponseMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (GetLatestNotificationsResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetLatestNotificationsResponseValidationError

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

GetLatestNotificationsResponseValidationError is the validation error returned by GetLatestNotificationsResponse.Validate if the designated constraints aren't met.

func (GetLatestNotificationsResponseValidationError) Cause

Cause function returns cause value.

func (GetLatestNotificationsResponseValidationError) Error

Error satisfies the builtin error interface

func (GetLatestNotificationsResponseValidationError) ErrorName

ErrorName returns error name.

func (GetLatestNotificationsResponseValidationError) Field

Field function returns field value.

func (GetLatestNotificationsResponseValidationError) Key

Key function returns key value.

func (GetLatestNotificationsResponseValidationError) Reason

Reason function returns reason value.

type GetLatestNotificationsResponse_Result

type GetLatestNotificationsResponse_Result int32
const (
	GetLatestNotificationsResponse_OK     GetLatestNotificationsResponse_Result = 0
	GetLatestNotificationsResponse_DENIED GetLatestNotificationsResponse_Result = 1
)

func (GetLatestNotificationsResponse_Result) Descriptor

func (GetLatestNotificationsResponse_Result) Enum

func (GetLatestNotificationsResponse_Result) EnumDescriptor deprecated

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

Deprecated: Use GetLatestNotificationsResponse_Result.Descriptor instead.

func (GetLatestNotificationsResponse_Result) Number

func (GetLatestNotificationsResponse_Result) String

func (GetLatestNotificationsResponse_Result) Type

type Notification

type Notification struct {

	// The ID of this notification
	Id *NotificationId `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// The localized title text for the notification
	LocalizedText string `protobuf:"bytes,2,opt,name=localized_text,json=localizedText,proto3" json:"localized_text,omitempty"`
	// If a payment applies, the amount that was paid
	Amount *v1.PaymentAmount `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"`
	// The timestamp of this notification
	Ts *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=ts,proto3" json:"ts,omitempty"`
	// Additional metadata for this notification specific to the notification
	//
	// Types that are assignable to AdditionalMetadata:
	//
	//	*Notification_WelcomeBonus
	//	*Notification_GaveUsdc
	//	*Notification_ReceivedUsdc
	AdditionalMetadata isNotification_AdditionalMetadata `protobuf_oneof:"additional_metadata"`
	// contains filtered or unexported fields
}

Notification is a message that is displayed in an activity feed

func (*Notification) Descriptor deprecated

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

Deprecated: Use Notification.ProtoReflect.Descriptor instead.

func (*Notification) GetAdditionalMetadata

func (m *Notification) GetAdditionalMetadata() isNotification_AdditionalMetadata

func (*Notification) GetAmount

func (x *Notification) GetAmount() *v1.PaymentAmount

func (*Notification) GetGaveUsdc

func (x *Notification) GetGaveUsdc() *GaveUsdcNotificationMetadata

func (*Notification) GetId

func (x *Notification) GetId() *NotificationId

func (*Notification) GetLocalizedText

func (x *Notification) GetLocalizedText() string

func (*Notification) GetReceivedUsdc

func (x *Notification) GetReceivedUsdc() *ReceivedUsdcNotificationMetadata

func (*Notification) GetTs

func (x *Notification) GetTs() *timestamppb.Timestamp

func (*Notification) GetWelcomeBonus

func (x *Notification) GetWelcomeBonus() *WelcomeBonusNotificationMetadata

func (*Notification) ProtoMessage

func (*Notification) ProtoMessage()

func (*Notification) ProtoReflect

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

func (*Notification) Reset

func (x *Notification) Reset()

func (*Notification) String

func (x *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, the first error encountered is returned, or nil if there are no violations.

func (*Notification) ValidateAll

func (m *Notification) ValidateAll() error

ValidateAll checks the field values on Notification with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in NotificationMultiError, or nil if none found.

type NotificationId

type NotificationId struct {
	Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

The ID of the notification, which is guaranteed to be consistent for grouped events. Updates to a notification with the same ID should result in re-ordering within the activity feed using the latest content.

func (*NotificationId) Descriptor deprecated

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

Deprecated: Use NotificationId.ProtoReflect.Descriptor instead.

func (*NotificationId) GetValue

func (x *NotificationId) GetValue() []byte

func (*NotificationId) ProtoMessage

func (*NotificationId) ProtoMessage()

func (*NotificationId) ProtoReflect

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

func (*NotificationId) Reset

func (x *NotificationId) Reset()

func (*NotificationId) String

func (x *NotificationId) String() string

func (*NotificationId) Validate

func (m *NotificationId) Validate() error

Validate checks the field values on NotificationId with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*NotificationId) ValidateAll

func (m *NotificationId) ValidateAll() error

ValidateAll checks the field values on NotificationId with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in NotificationIdMultiError, or nil if none found.

type NotificationIdMultiError

type NotificationIdMultiError []error

NotificationIdMultiError is an error wrapping multiple validation errors returned by NotificationId.ValidateAll() if the designated constraints aren't met.

func (NotificationIdMultiError) AllErrors

func (m NotificationIdMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (NotificationIdMultiError) Error

func (m NotificationIdMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type NotificationIdValidationError

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

NotificationIdValidationError is the validation error returned by NotificationId.Validate if the designated constraints aren't met.

func (NotificationIdValidationError) Cause

Cause function returns cause value.

func (NotificationIdValidationError) Error

Error satisfies the builtin error interface

func (NotificationIdValidationError) ErrorName

func (e NotificationIdValidationError) ErrorName() string

ErrorName returns error name.

func (NotificationIdValidationError) Field

Field function returns field value.

func (NotificationIdValidationError) Key

Key function returns key value.

func (NotificationIdValidationError) Reason

Reason function returns reason value.

type NotificationMultiError

type NotificationMultiError []error

NotificationMultiError is an error wrapping multiple validation errors returned by Notification.ValidateAll() if the designated constraints aren't met.

func (NotificationMultiError) AllErrors

func (m NotificationMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (NotificationMultiError) Error

func (m NotificationMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

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_GaveUsdc

type Notification_GaveUsdc struct {
	GaveUsdc *GaveUsdcNotificationMetadata `protobuf:"bytes,6,opt,name=gave_usdc,json=gaveUsdc,proto3,oneof"`
}

type Notification_ReceivedUsdc

type Notification_ReceivedUsdc struct {
	ReceivedUsdc *ReceivedUsdcNotificationMetadata `protobuf:"bytes,7,opt,name=received_usdc,json=receivedUsdc,proto3,oneof"`
}

type Notification_WelcomeBonus

type Notification_WelcomeBonus struct {
	WelcomeBonus *WelcomeBonusNotificationMetadata `protobuf:"bytes,5,opt,name=welcome_bonus,json=welcomeBonus,proto3,oneof"`
}

type ReceivedUsdcNotificationMetadata

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

func (*ReceivedUsdcNotificationMetadata) Descriptor deprecated

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

Deprecated: Use ReceivedUsdcNotificationMetadata.ProtoReflect.Descriptor instead.

func (*ReceivedUsdcNotificationMetadata) ProtoMessage

func (*ReceivedUsdcNotificationMetadata) ProtoMessage()

func (*ReceivedUsdcNotificationMetadata) ProtoReflect

func (*ReceivedUsdcNotificationMetadata) Reset

func (*ReceivedUsdcNotificationMetadata) String

func (*ReceivedUsdcNotificationMetadata) Validate

Validate checks the field values on ReceivedUsdcNotificationMetadata with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ReceivedUsdcNotificationMetadata) ValidateAll

func (m *ReceivedUsdcNotificationMetadata) ValidateAll() error

ValidateAll checks the field values on ReceivedUsdcNotificationMetadata with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ReceivedUsdcNotificationMetadataMultiError, or nil if none found.

type ReceivedUsdcNotificationMetadataMultiError

type ReceivedUsdcNotificationMetadataMultiError []error

ReceivedUsdcNotificationMetadataMultiError is an error wrapping multiple validation errors returned by ReceivedUsdcNotificationMetadata.ValidateAll() if the designated constraints aren't met.

func (ReceivedUsdcNotificationMetadataMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (ReceivedUsdcNotificationMetadataMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ReceivedUsdcNotificationMetadataValidationError

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

ReceivedUsdcNotificationMetadataValidationError is the validation error returned by ReceivedUsdcNotificationMetadata.Validate if the designated constraints aren't met.

func (ReceivedUsdcNotificationMetadataValidationError) Cause

Cause function returns cause value.

func (ReceivedUsdcNotificationMetadataValidationError) Error

Error satisfies the builtin error interface

func (ReceivedUsdcNotificationMetadataValidationError) ErrorName

ErrorName returns error name.

func (ReceivedUsdcNotificationMetadataValidationError) Field

Field function returns field value.

func (ReceivedUsdcNotificationMetadataValidationError) Key

Key function returns key value.

func (ReceivedUsdcNotificationMetadataValidationError) Reason

Reason function returns reason value.

type UnimplementedActivityFeedServer

type UnimplementedActivityFeedServer struct{}

UnimplementedActivityFeedServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

type UnsafeActivityFeedServer

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

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

type WelcomeBonusNotificationMetadata

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

func (*WelcomeBonusNotificationMetadata) Descriptor deprecated

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

Deprecated: Use WelcomeBonusNotificationMetadata.ProtoReflect.Descriptor instead.

func (*WelcomeBonusNotificationMetadata) ProtoMessage

func (*WelcomeBonusNotificationMetadata) ProtoMessage()

func (*WelcomeBonusNotificationMetadata) ProtoReflect

func (*WelcomeBonusNotificationMetadata) Reset

func (*WelcomeBonusNotificationMetadata) String

func (*WelcomeBonusNotificationMetadata) Validate

Validate checks the field values on WelcomeBonusNotificationMetadata with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*WelcomeBonusNotificationMetadata) ValidateAll

func (m *WelcomeBonusNotificationMetadata) ValidateAll() error

ValidateAll checks the field values on WelcomeBonusNotificationMetadata with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in WelcomeBonusNotificationMetadataMultiError, or nil if none found.

type WelcomeBonusNotificationMetadataMultiError

type WelcomeBonusNotificationMetadataMultiError []error

WelcomeBonusNotificationMetadataMultiError is an error wrapping multiple validation errors returned by WelcomeBonusNotificationMetadata.ValidateAll() if the designated constraints aren't met.

func (WelcomeBonusNotificationMetadataMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (WelcomeBonusNotificationMetadataMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type WelcomeBonusNotificationMetadataValidationError

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

WelcomeBonusNotificationMetadataValidationError is the validation error returned by WelcomeBonusNotificationMetadata.Validate if the designated constraints aren't met.

func (WelcomeBonusNotificationMetadataValidationError) Cause

Cause function returns cause value.

func (WelcomeBonusNotificationMetadataValidationError) Error

Error satisfies the builtin error interface

func (WelcomeBonusNotificationMetadataValidationError) ErrorName

ErrorName returns error name.

func (WelcomeBonusNotificationMetadataValidationError) Field

Field function returns field value.

func (WelcomeBonusNotificationMetadataValidationError) Key

Key function returns key value.

func (WelcomeBonusNotificationMetadataValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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