commonv1

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2021 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Currency_name = map[int32]string{
		0: "CURRENCY_USD_UNSPECIFIED",
		1: "CURRENCY_INR",
	}
	Currency_value = map[string]int32{
		"CURRENCY_USD_UNSPECIFIED": 0,
		"CURRENCY_INR":             1,
	}
)

Enum value maps for Currency.

View Source
var File_yeti_common_v1_common_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Account

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

func (*Account) Descriptor deprecated

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

Deprecated: Use Account.ProtoReflect.Descriptor instead.

func (*Account) GetDescription

func (x *Account) GetDescription() string

func (*Account) GetId

func (x *Account) GetId() string

func (*Account) GetName

func (x *Account) GetName() string

func (*Account) ProtoMessage

func (*Account) ProtoMessage()

func (*Account) ProtoReflect

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

func (*Account) Reset

func (x *Account) Reset()

func (*Account) String

func (x *Account) String() string

func (*Account) Validate

func (m *Account) Validate() error

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

type AccountValidationError

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

AccountValidationError is the validation error returned by Account.Validate if the designated constraints aren't met.

func (AccountValidationError) Cause

func (e AccountValidationError) Cause() error

Cause function returns cause value.

func (AccountValidationError) Error

func (e AccountValidationError) Error() string

Error satisfies the builtin error interface

func (AccountValidationError) ErrorName

func (e AccountValidationError) ErrorName() string

ErrorName returns error name.

func (AccountValidationError) Field

func (e AccountValidationError) Field() string

Field function returns field value.

func (AccountValidationError) Key

func (e AccountValidationError) Key() bool

Key function returns key value.

func (AccountValidationError) Reason

func (e AccountValidationError) Reason() string

Reason function returns reason value.

type Currency

type Currency int32
const (
	Currency_CURRENCY_USD_UNSPECIFIED Currency = 0
	Currency_CURRENCY_INR             Currency = 1
)

func (Currency) Descriptor

func (Currency) Descriptor() protoreflect.EnumDescriptor

func (Currency) Enum

func (x Currency) Enum() *Currency

func (Currency) EnumDescriptor deprecated

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

Deprecated: Use Currency.Descriptor instead.

func (Currency) Number

func (x Currency) Number() protoreflect.EnumNumber

func (Currency) String

func (x Currency) String() string

func (Currency) Type

type Order

type Order struct {
	Id         string                `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Subject    *wrappers.StringValue `protobuf:"bytes,2,opt,name=subject,proto3" json:"subject,omitempty"`
	Body       string                `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"`
	TotalPrice int32                 `protobuf:"varint,4,opt,name=total_price,json=totalPrice,proto3" json:"total_price,omitempty"`
	Currency   Currency              `protobuf:"varint,5,opt,name=currency,proto3,enum=yeti.common.v1.Currency" json:"currency,omitempty"`
	Channel    string                `protobuf:"bytes,6,opt,name=channel,proto3" json:"channel,omitempty"`
	// contains filtered or unexported fields
}

func (*Order) Descriptor deprecated

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

Deprecated: Use Order.ProtoReflect.Descriptor instead.

func (*Order) GetBody

func (x *Order) GetBody() string

func (*Order) GetChannel

func (x *Order) GetChannel() string

func (*Order) GetCurrency

func (x *Order) GetCurrency() Currency

func (*Order) GetId

func (x *Order) GetId() string

func (*Order) GetSubject

func (x *Order) GetSubject() *wrappers.StringValue

func (*Order) GetTotalPrice

func (x *Order) GetTotalPrice() int32

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

func (*Order) Validate

func (m *Order) Validate() error

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

type OrderValidationError

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

OrderValidationError is the validation error returned by Order.Validate if the designated constraints aren't met.

func (OrderValidationError) Cause

func (e OrderValidationError) Cause() error

Cause function returns cause value.

func (OrderValidationError) Error

func (e OrderValidationError) Error() string

Error satisfies the builtin error interface

func (OrderValidationError) ErrorName

func (e OrderValidationError) ErrorName() string

ErrorName returns error name.

func (OrderValidationError) Field

func (e OrderValidationError) Field() string

Field function returns field value.

func (OrderValidationError) Key

func (e OrderValidationError) Key() bool

Key function returns key value.

func (OrderValidationError) Reason

func (e OrderValidationError) Reason() string

Reason function returns reason value.

type Product

type Product struct {
	Id          string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Slug        string   `protobuf:"bytes,2,opt,name=slug,proto3" json:"slug,omitempty"`
	Name        string   `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	Description string   `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
	Currency    Currency `protobuf:"varint,5,opt,name=currency,proto3,enum=yeti.common.v1.Currency" json:"currency,omitempty"`
	Price       int32    `protobuf:"varint,6,opt,name=price,proto3" json:"price,omitempty"`
	// contains filtered or unexported fields
}

func (*Product) Descriptor deprecated

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

Deprecated: Use Product.ProtoReflect.Descriptor instead.

func (*Product) GetCurrency

func (x *Product) GetCurrency() Currency

func (*Product) GetDescription

func (x *Product) GetDescription() string

func (*Product) GetId

func (x *Product) GetId() string

func (*Product) GetName

func (x *Product) GetName() string

func (*Product) GetPrice

func (x *Product) GetPrice() int32

func (*Product) GetSlug

func (x *Product) GetSlug() string

func (*Product) ProtoMessage

func (*Product) ProtoMessage()

func (*Product) ProtoReflect

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

func (*Product) Reset

func (x *Product) Reset()

func (*Product) String

func (x *Product) String() string

func (*Product) Validate

func (m *Product) Validate() error

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

type ProductValidationError

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

ProductValidationError is the validation error returned by Product.Validate if the designated constraints aren't met.

func (ProductValidationError) Cause

func (e ProductValidationError) Cause() error

Cause function returns cause value.

func (ProductValidationError) Error

func (e ProductValidationError) Error() string

Error satisfies the builtin error interface

func (ProductValidationError) ErrorName

func (e ProductValidationError) ErrorName() string

ErrorName returns error name.

func (ProductValidationError) Field

func (e ProductValidationError) Field() string

Field function returns field value.

func (ProductValidationError) Key

func (e ProductValidationError) Key() bool

Key function returns key value.

func (ProductValidationError) Reason

func (e ProductValidationError) Reason() string

Reason function returns reason value.

Jump to

Keyboard shortcuts

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