proto

package
v0.0.0-...-439f08e Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 4 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MasterSort_name = map[int32]string{
		0: "BY_YEAR",
	}
	MasterSort_value = map[string]int32{
		"BY_YEAR": 0,
	}
)

Enum value maps for MasterSort.

View Source
var (
	SaleStatus_name = map[int32]string{
		0: "UNKNOWN",
		1: "FOR_SALE",
		2: "SOLD",
		3: "VIOLATION",
		4: "DRAFT",
		5: "EXPIRED",
	}
	SaleStatus_value = map[string]int32{
		"UNKNOWN":   0,
		"FOR_SALE":  1,
		"SOLD":      2,
		"VIOLATION": 3,
		"DRAFT":     4,
		"EXPIRED":   5,
	}
)

Enum value maps for SaleStatus.

View Source
var File_discogs_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Artist

type Artist struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Id   int64  `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*Artist) Descriptor deprecated

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

Deprecated: Use Artist.ProtoReflect.Descriptor instead.

func (*Artist) GetId

func (x *Artist) GetId() int64

func (*Artist) GetName

func (x *Artist) GetName() string

func (*Artist) ProtoMessage

func (*Artist) ProtoMessage()

func (*Artist) ProtoReflect

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

func (*Artist) Reset

func (x *Artist) Reset()

func (*Artist) String

func (x *Artist) String() string

type Field

type Field struct {
	Id   int32  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*Field) Descriptor deprecated

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

Deprecated: Use Field.ProtoReflect.Descriptor instead.

func (*Field) GetId

func (x *Field) GetId() int32

func (*Field) GetName

func (x *Field) GetName() string

func (*Field) ProtoMessage

func (*Field) ProtoMessage()

func (*Field) ProtoReflect

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

func (*Field) Reset

func (x *Field) Reset()

func (*Field) String

func (x *Field) String() string

type Folder

type Folder struct {
	Id   int32  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*Folder) Descriptor deprecated

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

Deprecated: Use Folder.ProtoReflect.Descriptor instead.

func (*Folder) GetId

func (x *Folder) GetId() int32

func (*Folder) GetName

func (x *Folder) GetName() string

func (*Folder) ProtoMessage

func (*Folder) ProtoMessage()

func (*Folder) ProtoReflect

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

func (*Folder) Reset

func (x *Folder) Reset()

func (*Folder) String

func (x *Folder) String() string

type Format

type Format struct {
	Descriptions []string `protobuf:"bytes,1,rep,name=descriptions,proto3" json:"descriptions,omitempty"`
	Name         string   `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Quantity     int32    `protobuf:"varint,3,opt,name=quantity,proto3" json:"quantity,omitempty"`
	// contains filtered or unexported fields
}

func (*Format) Descriptor deprecated

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

Deprecated: Use Format.ProtoReflect.Descriptor instead.

func (*Format) GetDescriptions

func (x *Format) GetDescriptions() []string

func (*Format) GetName

func (x *Format) GetName() string

func (*Format) GetQuantity

func (x *Format) GetQuantity() int32

func (*Format) ProtoMessage

func (*Format) ProtoMessage()

func (*Format) ProtoReflect

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

func (*Format) Reset

func (x *Format) Reset()

func (*Format) String

func (x *Format) String() string

type Label

type Label struct {
	Id    int32  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name  string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Catno string `protobuf:"bytes,3,opt,name=catno,proto3" json:"catno,omitempty"`
	// contains filtered or unexported fields
}

func (*Label) Descriptor deprecated

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

Deprecated: Use Label.ProtoReflect.Descriptor instead.

func (*Label) GetCatno

func (x *Label) GetCatno() string

func (*Label) GetId

func (x *Label) GetId() int32

func (*Label) GetName

func (x *Label) GetName() string

func (*Label) ProtoMessage

func (*Label) ProtoMessage()

func (*Label) ProtoReflect

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

func (*Label) Reset

func (x *Label) Reset()

func (*Label) String

func (x *Label) String() string

type MasterRelease

type MasterRelease struct {
	Id   int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Year int32 `protobuf:"varint,2,opt,name=year,proto3" json:"year,omitempty"`
	// contains filtered or unexported fields
}

func (*MasterRelease) Descriptor deprecated

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

Deprecated: Use MasterRelease.ProtoReflect.Descriptor instead.

func (*MasterRelease) GetId

func (x *MasterRelease) GetId() int64

func (*MasterRelease) GetYear

func (x *MasterRelease) GetYear() int32

func (*MasterRelease) ProtoMessage

func (*MasterRelease) ProtoMessage()

func (*MasterRelease) ProtoReflect

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

func (*MasterRelease) Reset

func (x *MasterRelease) Reset()

func (*MasterRelease) String

func (x *MasterRelease) String() string

type MasterSort

type MasterSort int32
const (
	MasterSort_BY_YEAR MasterSort = 0
)

func (MasterSort) Descriptor

func (MasterSort) Descriptor() protoreflect.EnumDescriptor

func (MasterSort) Enum

func (x MasterSort) Enum() *MasterSort

func (MasterSort) EnumDescriptor deprecated

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

Deprecated: Use MasterSort.Descriptor instead.

func (MasterSort) Number

func (x MasterSort) Number() protoreflect.EnumNumber

func (MasterSort) String

func (x MasterSort) String() string

func (MasterSort) Type

type Order

type Order struct {
	Id     string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*Order) Descriptor deprecated

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

Deprecated: Use Order.ProtoReflect.Descriptor instead.

func (*Order) GetId

func (x *Order) GetId() string

func (*Order) GetStatus

func (x *Order) GetStatus() string

func (*Order) ProtoMessage

func (*Order) ProtoMessage()

func (*Order) ProtoReflect

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

func (*Order) Reset

func (x *Order) Reset()

func (*Order) String

func (x *Order) String() string

type Pagination

type Pagination struct {
	Page  int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
	Pages int32 `protobuf:"varint,2,opt,name=pages,proto3" json:"pages,omitempty"`
	// contains filtered or unexported fields
}

func (*Pagination) Descriptor deprecated

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

Deprecated: Use Pagination.ProtoReflect.Descriptor instead.

func (*Pagination) GetPage

func (x *Pagination) GetPage() int32

func (*Pagination) GetPages

func (x *Pagination) GetPages() int32

func (*Pagination) ProtoMessage

func (*Pagination) ProtoMessage()

func (*Pagination) ProtoReflect

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

func (*Pagination) Reset

func (x *Pagination) Reset()

func (*Pagination) String

func (x *Pagination) String() string

type Price

type Price struct {
	Currency string `protobuf:"bytes,1,opt,name=currency,proto3" json:"currency,omitempty"`
	Value    int32  `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*Price) Descriptor deprecated

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

Deprecated: Use Price.ProtoReflect.Descriptor instead.

func (*Price) GetCurrency

func (x *Price) GetCurrency() string

func (*Price) GetValue

func (x *Price) GetValue() int32

func (*Price) ProtoMessage

func (*Price) ProtoMessage()

func (*Price) ProtoReflect

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

func (*Price) Reset

func (x *Price) Reset()

func (*Price) String

func (x *Price) String() string

type Release

type Release struct {
	Id              int64            `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	InstanceId      int64            `protobuf:"varint,2,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"`
	FolderId        int32            `protobuf:"varint,3,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"`
	Rating          int32            `protobuf:"varint,4,opt,name=rating,proto3" json:"rating,omitempty"`
	Title           string           `protobuf:"bytes,7,opt,name=title,proto3" json:"title,omitempty"`
	MasterId        int64            `protobuf:"varint,13,opt,name=master_id,json=masterId,proto3" json:"master_id,omitempty"`
	Condition       string           `protobuf:"bytes,8,opt,name=condition,proto3" json:"condition,omitempty"`
	SleeveCondition string           `protobuf:"bytes,9,opt,name=sleeve_condition,json=sleeveCondition,proto3" json:"sleeve_condition,omitempty"`
	Formats         []*Format        `protobuf:"bytes,5,rep,name=formats,proto3" json:"formats,omitempty"`
	Labels          []*Label         `protobuf:"bytes,6,rep,name=labels,proto3" json:"labels,omitempty"`
	Artists         []*Artist        `protobuf:"bytes,12,rep,name=artists,proto3" json:"artists,omitempty"`
	Notes           map[int32]string `` /* 153-byte string literal not displayed */
	ReleaseDate     int64            `protobuf:"varint,11,opt,name=release_date,json=releaseDate,proto3" json:"release_date,omitempty"`
	// contains filtered or unexported fields
}

func (*Release) Descriptor deprecated

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

Deprecated: Use Release.ProtoReflect.Descriptor instead.

func (*Release) GetArtists

func (x *Release) GetArtists() []*Artist

func (*Release) GetCondition

func (x *Release) GetCondition() string

func (*Release) GetFolderId

func (x *Release) GetFolderId() int32

func (*Release) GetFormats

func (x *Release) GetFormats() []*Format

func (*Release) GetId

func (x *Release) GetId() int64

func (*Release) GetInstanceId

func (x *Release) GetInstanceId() int64

func (*Release) GetLabels

func (x *Release) GetLabels() []*Label

func (*Release) GetMasterId

func (x *Release) GetMasterId() int64

func (*Release) GetNotes

func (x *Release) GetNotes() map[int32]string

func (*Release) GetRating

func (x *Release) GetRating() int32

func (*Release) GetReleaseDate

func (x *Release) GetReleaseDate() int64

func (*Release) GetSleeveCondition

func (x *Release) GetSleeveCondition() string

func (*Release) GetTitle

func (x *Release) GetTitle() string

func (*Release) ProtoMessage

func (*Release) ProtoMessage()

func (*Release) ProtoReflect

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

func (*Release) Reset

func (x *Release) Reset()

func (*Release) String

func (x *Release) String() string

type ReleaseStats

type ReleaseStats struct {
	MedianPrice int32 `protobuf:"varint,1,opt,name=median_price,json=medianPrice,proto3" json:"median_price,omitempty"`
	LowPrice    int32 `protobuf:"varint,2,opt,name=low_price,json=lowPrice,proto3" json:"low_price,omitempty"`
	// contains filtered or unexported fields
}

func (*ReleaseStats) Descriptor deprecated

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

Deprecated: Use ReleaseStats.ProtoReflect.Descriptor instead.

func (*ReleaseStats) GetLowPrice

func (x *ReleaseStats) GetLowPrice() int32

func (*ReleaseStats) GetMedianPrice

func (x *ReleaseStats) GetMedianPrice() int32

func (*ReleaseStats) ProtoMessage

func (*ReleaseStats) ProtoMessage()

func (*ReleaseStats) ProtoReflect

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

func (*ReleaseStats) Reset

func (x *ReleaseStats) Reset()

func (*ReleaseStats) String

func (x *ReleaseStats) String() string

type SaleItem

type SaleItem struct {
	SaleId    int64      `protobuf:"varint,1,opt,name=sale_id,json=saleId,proto3" json:"sale_id,omitempty"`
	Status    SaleStatus `protobuf:"varint,2,opt,name=status,proto3,enum=discogs.SaleStatus" json:"status,omitempty"`
	Price     *Price     `protobuf:"bytes,3,opt,name=price,proto3" json:"price,omitempty"`
	ReleaseId int64      `protobuf:"varint,4,opt,name=release_id,json=releaseId,proto3" json:"release_id,omitempty"`
	Condition string     `protobuf:"bytes,5,opt,name=condition,proto3" json:"condition,omitempty"`
	// contains filtered or unexported fields
}

func (*SaleItem) Descriptor deprecated

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

Deprecated: Use SaleItem.ProtoReflect.Descriptor instead.

func (*SaleItem) GetCondition

func (x *SaleItem) GetCondition() string

func (*SaleItem) GetPrice

func (x *SaleItem) GetPrice() *Price

func (*SaleItem) GetReleaseId

func (x *SaleItem) GetReleaseId() int64

func (*SaleItem) GetSaleId

func (x *SaleItem) GetSaleId() int64

func (*SaleItem) GetStatus

func (x *SaleItem) GetStatus() SaleStatus

func (*SaleItem) ProtoMessage

func (*SaleItem) ProtoMessage()

func (*SaleItem) ProtoReflect

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

func (*SaleItem) Reset

func (x *SaleItem) Reset()

func (*SaleItem) String

func (x *SaleItem) String() string

type SaleStatus

type SaleStatus int32
const (
	SaleStatus_UNKNOWN   SaleStatus = 0
	SaleStatus_FOR_SALE  SaleStatus = 1
	SaleStatus_SOLD      SaleStatus = 2
	SaleStatus_VIOLATION SaleStatus = 3
	SaleStatus_DRAFT     SaleStatus = 4
	SaleStatus_EXPIRED   SaleStatus = 5
)

func (SaleStatus) Descriptor

func (SaleStatus) Descriptor() protoreflect.EnumDescriptor

func (SaleStatus) Enum

func (x SaleStatus) Enum() *SaleStatus

func (SaleStatus) EnumDescriptor deprecated

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

Deprecated: Use SaleStatus.Descriptor instead.

func (SaleStatus) Number

func (x SaleStatus) Number() protoreflect.EnumNumber

func (SaleStatus) String

func (x SaleStatus) String() string

func (SaleStatus) Type

type User

type User struct {
	DiscogsUserId int32  `protobuf:"varint,1,opt,name=discogs_user_id,json=discogsUserId,proto3" json:"discogs_user_id,omitempty"`
	Username      string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	UserToken     string `protobuf:"bytes,3,opt,name=user_token,json=userToken,proto3" json:"user_token,omitempty"`
	UserSecret    string `protobuf:"bytes,4,opt,name=user_secret,json=userSecret,proto3" json:"user_secret,omitempty"`
	PersonalToken string `protobuf:"bytes,5,opt,name=personal_token,json=personalToken,proto3" json:"personal_token,omitempty"`
	// contains filtered or unexported fields
}

func (*User) Descriptor deprecated

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

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetDiscogsUserId

func (x *User) GetDiscogsUserId() int32

func (*User) GetPersonalToken

func (x *User) GetPersonalToken() string

func (*User) GetUserSecret

func (x *User) GetUserSecret() string

func (*User) GetUserToken

func (x *User) GetUserToken() string

func (*User) GetUsername

func (x *User) GetUsername() string

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

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

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

type Want

type Want struct {
	Id      int64     `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Title   string    `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	Artists []*Artist `protobuf:"bytes,3,rep,name=artists,proto3" json:"artists,omitempty"`
	// contains filtered or unexported fields
}

func (*Want) Descriptor deprecated

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

Deprecated: Use Want.ProtoReflect.Descriptor instead.

func (*Want) GetArtists

func (x *Want) GetArtists() []*Artist

func (*Want) GetId

func (x *Want) GetId() int64

func (*Want) GetTitle

func (x *Want) GetTitle() string

func (*Want) ProtoMessage

func (*Want) ProtoMessage()

func (*Want) ProtoReflect

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

func (*Want) Reset

func (x *Want) Reset()

func (*Want) String

func (x *Want) String() string

Jump to

Keyboard shortcuts

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