metadata

package
v0.0.0-...-e08653f Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TicketType_name = map[int32]string{
		0: "TICKET_TYPE_UNSPECIFIED",
		1: "TICKET_TYPE_EVENT",
		2: "TICKET_TYPE_TRANSPORT",
		3: "TICKET_TYPE_ENTERTAINMENT",
	}
	TicketType_value = map[string]int32{
		"TICKET_TYPE_UNSPECIFIED":   0,
		"TICKET_TYPE_EVENT":         1,
		"TICKET_TYPE_TRANSPORT":     2,
		"TICKET_TYPE_ENTERTAINMENT": 3,
	}
)

Enum value maps for TicketType.

View Source
var File_ticket_metadata_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Metadata

type Metadata struct {
	TicketType TicketType             `` /* 134-byte string literal not displayed */
	HolderName string                 `protobuf:"bytes,2,opt,name=holder_name,json=holderName,proto3" json:"holder_name,omitempty"`
	IssuedAt   *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=issued_at,json=issuedAt,proto3" json:"issued_at,omitempty"`
	ValidUntil *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=valid_until,json=validUntil,proto3" json:"valid_until,omitempty"`
	IsUsed     bool                   `protobuf:"varint,5,opt,name=is_used,json=isUsed,proto3" json:"is_used,omitempty"`
	// contains filtered or unexported fields
}

func (*Metadata) Descriptor deprecated

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

Deprecated: Use Metadata.ProtoReflect.Descriptor instead.

func (*Metadata) GetHolderName

func (x *Metadata) GetHolderName() string

func (*Metadata) GetIsUsed

func (x *Metadata) GetIsUsed() bool

func (*Metadata) GetIssuedAt

func (x *Metadata) GetIssuedAt() *timestamppb.Timestamp

func (*Metadata) GetTicketType

func (x *Metadata) GetTicketType() TicketType

func (*Metadata) GetValidUntil

func (x *Metadata) GetValidUntil() *timestamppb.Timestamp

func (*Metadata) ProtoMessage

func (*Metadata) ProtoMessage()

func (*Metadata) ProtoReflect

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

func (*Metadata) Reset

func (x *Metadata) Reset()

func (*Metadata) String

func (x *Metadata) String() string

func (*Metadata) Validate

func (m *Metadata) Validate() error

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

type MetadataValidationError

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

MetadataValidationError is the validation error returned by Metadata.Validate if the designated constraints aren't met.

func (MetadataValidationError) Cause

func (e MetadataValidationError) Cause() error

Cause function returns cause value.

func (MetadataValidationError) Error

func (e MetadataValidationError) Error() string

Error satisfies the builtin error interface

func (MetadataValidationError) ErrorName

func (e MetadataValidationError) ErrorName() string

ErrorName returns error name.

func (MetadataValidationError) Field

func (e MetadataValidationError) Field() string

Field function returns field value.

func (MetadataValidationError) Key

func (e MetadataValidationError) Key() bool

Key function returns key value.

func (MetadataValidationError) Reason

func (e MetadataValidationError) Reason() string

Reason function returns reason value.

type TicketType

type TicketType int32
const (
	TicketType_TICKET_TYPE_UNSPECIFIED   TicketType = 0
	TicketType_TICKET_TYPE_EVENT         TicketType = 1
	TicketType_TICKET_TYPE_TRANSPORT     TicketType = 2
	TicketType_TICKET_TYPE_ENTERTAINMENT TicketType = 3
)

func (TicketType) Descriptor

func (TicketType) Descriptor() protoreflect.EnumDescriptor

func (TicketType) Enum

func (x TicketType) Enum() *TicketType

func (TicketType) EnumDescriptor deprecated

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

Deprecated: Use TicketType.Descriptor instead.

func (TicketType) Number

func (x TicketType) Number() protoreflect.EnumNumber

func (TicketType) String

func (x TicketType) String() string

func (TicketType) Type

Jump to

Keyboard shortcuts

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