seller

package
v0.0.46 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	WorksAtFilterType_name = map[int32]string{
		0: "WORKS_AT_FILTER_TYPE_ALL",
		1: "WORKS_AT_FILTER_TYPE_ONLY_NULL",
		2: "WORKS_AT_FILTER_TYPE_ONLY_NOT_NULL",
	}
	WorksAtFilterType_value = map[string]int32{
		"WORKS_AT_FILTER_TYPE_ALL":           0,
		"WORKS_AT_FILTER_TYPE_ONLY_NULL":     1,
		"WORKS_AT_FILTER_TYPE_ONLY_NOT_NULL": 2,
	}
)

Enum value maps for WorksAtFilterType.

View Source
var File_seller_seller_proto protoreflect.FileDescriptor
View Source
var SellerService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "seller.SellerService",
	HandlerType: (*SellerServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Create",
			Handler:    _SellerService_Create_Handler,
		},
		{
			MethodName: "List",
			Handler:    _SellerService_List_Handler,
		},
		{
			MethodName: "Seller",
			Handler:    _SellerService_Seller_Handler,
		},
		{
			MethodName: "Patch",
			Handler:    _SellerService_Patch_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "seller/seller.proto",
}

SellerService_ServiceDesc is the grpc.ServiceDesc for SellerService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterSellerServiceServer

func RegisterSellerServiceServer(s grpc.ServiceRegistrar, srv SellerServiceServer)

Types

type CreateRequest added in v0.0.39

type CreateRequest struct {
	FirstName   string      `protobuf:"bytes,1,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"`
	LastName    string      `protobuf:"bytes,2,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"`
	MiddleName  string      `protobuf:"bytes,3,opt,name=middle_name,json=middleName,proto3" json:"middle_name,omitempty"`
	BirthDate   *core.Date  `protobuf:"bytes,4,opt,name=birth_date,json=birthDate,proto3" json:"birth_date,omitempty"`
	Salary      *core.Money `protobuf:"bytes,5,opt,name=salary,proto3" json:"salary,omitempty"`
	PhoneNumber string      `protobuf:"bytes,6,opt,name=phone_number,json=phoneNumber,proto3" json:"phone_number,omitempty"`
	WorksAt     *WorksAt    `protobuf:"bytes,7,opt,name=works_at,json=worksAt,proto3,oneof" json:"works_at,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateRequest) Descriptor deprecated added in v0.0.39

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

Deprecated: Use CreateRequest.ProtoReflect.Descriptor instead.

func (*CreateRequest) GetBirthDate added in v0.0.39

func (x *CreateRequest) GetBirthDate() *core.Date

func (*CreateRequest) GetFirstName added in v0.0.39

func (x *CreateRequest) GetFirstName() string

func (*CreateRequest) GetLastName added in v0.0.39

func (x *CreateRequest) GetLastName() string

func (*CreateRequest) GetMiddleName added in v0.0.39

func (x *CreateRequest) GetMiddleName() string

func (*CreateRequest) GetPhoneNumber added in v0.0.39

func (x *CreateRequest) GetPhoneNumber() string

func (*CreateRequest) GetSalary added in v0.0.39

func (x *CreateRequest) GetSalary() *core.Money

func (*CreateRequest) GetWorksAt added in v0.0.39

func (x *CreateRequest) GetWorksAt() *WorksAt

func (*CreateRequest) ProtoMessage added in v0.0.39

func (*CreateRequest) ProtoMessage()

func (*CreateRequest) ProtoReflect added in v0.0.39

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

func (*CreateRequest) Reset added in v0.0.39

func (x *CreateRequest) Reset()

func (*CreateRequest) String added in v0.0.39

func (x *CreateRequest) String() string

type CreateResponse added in v0.0.39

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

func (*CreateResponse) Descriptor deprecated added in v0.0.39

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

Deprecated: Use CreateResponse.ProtoReflect.Descriptor instead.

func (*CreateResponse) GetId added in v0.0.39

func (x *CreateResponse) GetId() int32

func (*CreateResponse) ProtoMessage added in v0.0.39

func (*CreateResponse) ProtoMessage()

func (*CreateResponse) ProtoReflect added in v0.0.39

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

func (*CreateResponse) Reset added in v0.0.39

func (x *CreateResponse) Reset()

func (*CreateResponse) String added in v0.0.39

func (x *CreateResponse) String() string

type ListRequest added in v0.0.19

type ListRequest struct {
	WorksAtFilter    WorksAtFilterType              `` /* 133-byte string literal not displayed */
	TradingPointId   *int32                         `protobuf:"varint,2,opt,name=trading_point_id,json=tradingPointId,proto3,oneof" json:"trading_point_id,omitempty"`
	TradingPointType *tradingpoint.TradingPointType `` /* 153-byte string literal not displayed */
	PlaceOfWorkId    *int32                         `protobuf:"varint,4,opt,name=place_of_work_id,json=placeOfWorkId,proto3,oneof" json:"place_of_work_id,omitempty"`
	PlaceOfWorkType  *tradingpoint.PlaceOfWorkType  `` /* 151-byte string literal not displayed */
	Search           *string                        `protobuf:"bytes,6,opt,name=search,proto3,oneof" json:"search,omitempty"`
	// contains filtered or unexported fields
}

func (*ListRequest) Descriptor deprecated added in v0.0.19

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

Deprecated: Use ListRequest.ProtoReflect.Descriptor instead.

func (*ListRequest) GetPlaceOfWorkId added in v0.0.23

func (x *ListRequest) GetPlaceOfWorkId() int32

func (*ListRequest) GetPlaceOfWorkType added in v0.0.23

func (x *ListRequest) GetPlaceOfWorkType() tradingpoint.PlaceOfWorkType

func (*ListRequest) GetSearch added in v0.0.20

func (x *ListRequest) GetSearch() string

func (*ListRequest) GetTradingPointId added in v0.0.23

func (x *ListRequest) GetTradingPointId() int32

func (*ListRequest) GetTradingPointType added in v0.0.23

func (x *ListRequest) GetTradingPointType() tradingpoint.TradingPointType

func (*ListRequest) GetWorksAtFilter added in v0.0.20

func (x *ListRequest) GetWorksAtFilter() WorksAtFilterType

func (*ListRequest) ProtoMessage added in v0.0.19

func (*ListRequest) ProtoMessage()

func (*ListRequest) ProtoReflect added in v0.0.19

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

func (*ListRequest) Reset added in v0.0.19

func (x *ListRequest) Reset()

func (*ListRequest) String added in v0.0.19

func (x *ListRequest) String() string

type ListResponse added in v0.0.18

type ListResponse struct {
	Sellers []*Seller `protobuf:"bytes,1,rep,name=sellers,proto3" json:"sellers,omitempty"`
	// contains filtered or unexported fields
}

func (*ListResponse) Descriptor deprecated added in v0.0.18

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

Deprecated: Use ListResponse.ProtoReflect.Descriptor instead.

func (*ListResponse) GetSellers added in v0.0.18

func (x *ListResponse) GetSellers() []*Seller

func (*ListResponse) ProtoMessage added in v0.0.18

func (*ListResponse) ProtoMessage()

func (*ListResponse) ProtoReflect added in v0.0.18

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

func (*ListResponse) Reset added in v0.0.18

func (x *ListResponse) Reset()

func (*ListResponse) String added in v0.0.18

func (x *ListResponse) String() string

type NewWorksAt added in v0.0.26

type NewWorksAt struct {
	WorksAt *WorksAt `protobuf:"bytes,1,opt,name=works_at,json=worksAt,proto3,oneof" json:"works_at,omitempty"`
	// contains filtered or unexported fields
}

func (*NewWorksAt) Descriptor deprecated added in v0.0.26

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

Deprecated: Use NewWorksAt.ProtoReflect.Descriptor instead.

func (*NewWorksAt) GetWorksAt added in v0.0.26

func (x *NewWorksAt) GetWorksAt() *WorksAt

func (*NewWorksAt) ProtoMessage added in v0.0.26

func (*NewWorksAt) ProtoMessage()

func (*NewWorksAt) ProtoReflect added in v0.0.26

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

func (*NewWorksAt) Reset added in v0.0.26

func (x *NewWorksAt) Reset()

func (*NewWorksAt) String added in v0.0.26

func (x *NewWorksAt) String() string

type PatchRequest added in v0.0.39

type PatchRequest struct {
	Id          int32       `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	FirstName   *string     `protobuf:"bytes,2,opt,name=first_name,json=firstName,proto3,oneof" json:"first_name,omitempty"`
	LastName    *string     `protobuf:"bytes,3,opt,name=last_name,json=lastName,proto3,oneof" json:"last_name,omitempty"`
	MiddleName  *string     `protobuf:"bytes,4,opt,name=middle_name,json=middleName,proto3,oneof" json:"middle_name,omitempty"`
	BirthDate   *core.Date  `protobuf:"bytes,5,opt,name=birth_date,json=birthDate,proto3,oneof" json:"birth_date,omitempty"`
	Salary      *core.Money `protobuf:"bytes,6,opt,name=salary,proto3,oneof" json:"salary,omitempty"`
	PhoneNumber *string     `protobuf:"bytes,7,opt,name=phone_number,json=phoneNumber,proto3,oneof" json:"phone_number,omitempty"`
	WorksAt     *NewWorksAt `protobuf:"bytes,8,opt,name=works_at,json=worksAt,proto3,oneof" json:"works_at,omitempty"`
	// contains filtered or unexported fields
}

func (*PatchRequest) Descriptor deprecated added in v0.0.39

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

Deprecated: Use PatchRequest.ProtoReflect.Descriptor instead.

func (*PatchRequest) GetBirthDate added in v0.0.39

func (x *PatchRequest) GetBirthDate() *core.Date

func (*PatchRequest) GetFirstName added in v0.0.39

func (x *PatchRequest) GetFirstName() string

func (*PatchRequest) GetId added in v0.0.39

func (x *PatchRequest) GetId() int32

func (*PatchRequest) GetLastName added in v0.0.39

func (x *PatchRequest) GetLastName() string

func (*PatchRequest) GetMiddleName added in v0.0.39

func (x *PatchRequest) GetMiddleName() string

func (*PatchRequest) GetPhoneNumber added in v0.0.39

func (x *PatchRequest) GetPhoneNumber() string

func (*PatchRequest) GetSalary added in v0.0.39

func (x *PatchRequest) GetSalary() *core.Money

func (*PatchRequest) GetWorksAt added in v0.0.39

func (x *PatchRequest) GetWorksAt() *NewWorksAt

func (*PatchRequest) ProtoMessage added in v0.0.39

func (*PatchRequest) ProtoMessage()

func (*PatchRequest) ProtoReflect added in v0.0.39

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

func (*PatchRequest) Reset added in v0.0.39

func (x *PatchRequest) Reset()

func (*PatchRequest) String added in v0.0.39

func (x *PatchRequest) String() string

type PatchResponse added in v0.0.39

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

func (*PatchResponse) Descriptor deprecated added in v0.0.39

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

Deprecated: Use PatchResponse.ProtoReflect.Descriptor instead.

func (*PatchResponse) GetId added in v0.0.39

func (x *PatchResponse) GetId() int32

func (*PatchResponse) ProtoMessage added in v0.0.39

func (*PatchResponse) ProtoMessage()

func (*PatchResponse) ProtoReflect added in v0.0.39

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

func (*PatchResponse) Reset added in v0.0.39

func (x *PatchResponse) Reset()

func (*PatchResponse) String added in v0.0.39

func (x *PatchResponse) String() string

type PlaceOfWork added in v0.0.17

type PlaceOfWork struct {
	Id   int32                        `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Type tradingpoint.PlaceOfWorkType `protobuf:"varint,2,opt,name=type,proto3,enum=tradingpoint.PlaceOfWorkType" json:"type,omitempty"`
	// contains filtered or unexported fields
}

func (*PlaceOfWork) Descriptor deprecated added in v0.0.17

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

Deprecated: Use PlaceOfWork.ProtoReflect.Descriptor instead.

func (*PlaceOfWork) GetId added in v0.0.20

func (x *PlaceOfWork) GetId() int32

func (*PlaceOfWork) GetType added in v0.0.20

func (*PlaceOfWork) ProtoMessage added in v0.0.17

func (*PlaceOfWork) ProtoMessage()

func (*PlaceOfWork) ProtoReflect added in v0.0.17

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

func (*PlaceOfWork) Reset added in v0.0.17

func (x *PlaceOfWork) Reset()

func (*PlaceOfWork) String added in v0.0.17

func (x *PlaceOfWork) String() string

type Seller

type Seller struct {
	Id          int32       `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	FirstName   string      `protobuf:"bytes,3,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"`
	LastName    string      `protobuf:"bytes,4,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"`
	MiddleName  string      `protobuf:"bytes,5,opt,name=middle_name,json=middleName,proto3" json:"middle_name,omitempty"`
	BirthDate   *core.Date  `protobuf:"bytes,6,opt,name=birth_date,json=birthDate,proto3" json:"birth_date,omitempty"`
	Salary      *core.Money `protobuf:"bytes,7,opt,name=salary,proto3" json:"salary,omitempty"`
	PhoneNumber string      `protobuf:"bytes,8,opt,name=phone_number,json=phoneNumber,proto3" json:"phone_number,omitempty"`
	WorksAt     *WorksAt    `protobuf:"bytes,9,opt,name=works_at,json=worksAt,proto3,oneof" json:"works_at,omitempty"`
	// contains filtered or unexported fields
}

func (*Seller) Descriptor deprecated

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

Deprecated: Use Seller.ProtoReflect.Descriptor instead.

func (*Seller) GetBirthDate

func (x *Seller) GetBirthDate() *core.Date

func (*Seller) GetFirstName

func (x *Seller) GetFirstName() string

func (*Seller) GetId

func (x *Seller) GetId() int32

func (*Seller) GetLastName

func (x *Seller) GetLastName() string

func (*Seller) GetMiddleName

func (x *Seller) GetMiddleName() string

func (*Seller) GetPhoneNumber

func (x *Seller) GetPhoneNumber() string

func (*Seller) GetSalary

func (x *Seller) GetSalary() *core.Money

func (*Seller) GetWorksAt added in v0.0.20

func (x *Seller) GetWorksAt() *WorksAt

func (*Seller) ProtoMessage

func (*Seller) ProtoMessage()

func (*Seller) ProtoReflect

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

func (*Seller) Reset

func (x *Seller) Reset()

func (*Seller) String

func (x *Seller) String() string

type SellerRequest added in v0.0.39

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

func (*SellerRequest) Descriptor deprecated added in v0.0.39

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

Deprecated: Use SellerRequest.ProtoReflect.Descriptor instead.

func (*SellerRequest) GetId added in v0.0.39

func (x *SellerRequest) GetId() int32

func (*SellerRequest) ProtoMessage added in v0.0.39

func (*SellerRequest) ProtoMessage()

func (*SellerRequest) ProtoReflect added in v0.0.39

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

func (*SellerRequest) Reset added in v0.0.39

func (x *SellerRequest) Reset()

func (*SellerRequest) String added in v0.0.39

func (x *SellerRequest) String() string

type SellerResponse added in v0.0.39

type SellerResponse struct {
	Seller *Seller `protobuf:"bytes,1,opt,name=seller,proto3" json:"seller,omitempty"`
	// contains filtered or unexported fields
}

func (*SellerResponse) Descriptor deprecated added in v0.0.39

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

Deprecated: Use SellerResponse.ProtoReflect.Descriptor instead.

func (*SellerResponse) GetSeller added in v0.0.39

func (x *SellerResponse) GetSeller() *Seller

func (*SellerResponse) ProtoMessage added in v0.0.39

func (*SellerResponse) ProtoMessage()

func (*SellerResponse) ProtoReflect added in v0.0.39

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

func (*SellerResponse) Reset added in v0.0.39

func (x *SellerResponse) Reset()

func (*SellerResponse) String added in v0.0.39

func (x *SellerResponse) String() string

type SellerServiceClient

type SellerServiceClient interface {
	Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error)
	List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error)
	Seller(ctx context.Context, in *SellerRequest, opts ...grpc.CallOption) (*SellerResponse, error)
	Patch(ctx context.Context, in *PatchRequest, opts ...grpc.CallOption) (*PatchResponse, error)
}

SellerServiceClient is the client API for SellerService 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 SellerServiceServer

type SellerServiceServer interface {
	Create(context.Context, *CreateRequest) (*CreateResponse, error)
	List(context.Context, *ListRequest) (*ListResponse, error)
	Seller(context.Context, *SellerRequest) (*SellerResponse, error)
	Patch(context.Context, *PatchRequest) (*PatchResponse, error)
	// contains filtered or unexported methods
}

SellerServiceServer is the server API for SellerService service. All implementations must embed UnimplementedSellerServiceServer for forward compatibility

type TradingPoint added in v0.0.20

type TradingPoint struct {
	Id   int32                         `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Type tradingpoint.TradingPointType `protobuf:"varint,2,opt,name=type,proto3,enum=tradingpoint.TradingPointType" json:"type,omitempty"`
	// contains filtered or unexported fields
}

func (*TradingPoint) Descriptor deprecated added in v0.0.20

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

Deprecated: Use TradingPoint.ProtoReflect.Descriptor instead.

func (*TradingPoint) GetId added in v0.0.20

func (x *TradingPoint) GetId() int32

func (*TradingPoint) GetType added in v0.0.20

func (*TradingPoint) ProtoMessage added in v0.0.20

func (*TradingPoint) ProtoMessage()

func (*TradingPoint) ProtoReflect added in v0.0.20

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

func (*TradingPoint) Reset added in v0.0.20

func (x *TradingPoint) Reset()

func (*TradingPoint) String added in v0.0.20

func (x *TradingPoint) String() string

type UnimplementedSellerServiceServer

type UnimplementedSellerServiceServer struct {
}

UnimplementedSellerServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedSellerServiceServer) Create added in v0.0.39

func (UnimplementedSellerServiceServer) List added in v0.0.18

func (UnimplementedSellerServiceServer) Patch added in v0.0.39

func (UnimplementedSellerServiceServer) Seller added in v0.0.39

type UnsafeSellerServiceServer

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

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

type WorksAt added in v0.0.20

type WorksAt struct {
	PlaceOfWork  *PlaceOfWork  `protobuf:"bytes,1,opt,name=place_of_work,json=placeOfWork,proto3" json:"place_of_work,omitempty"`
	TradingPoint *TradingPoint `protobuf:"bytes,2,opt,name=trading_point,json=tradingPoint,proto3" json:"trading_point,omitempty"`
	// contains filtered or unexported fields
}

func (*WorksAt) Descriptor deprecated added in v0.0.20

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

Deprecated: Use WorksAt.ProtoReflect.Descriptor instead.

func (*WorksAt) GetPlaceOfWork added in v0.0.20

func (x *WorksAt) GetPlaceOfWork() *PlaceOfWork

func (*WorksAt) GetTradingPoint added in v0.0.20

func (x *WorksAt) GetTradingPoint() *TradingPoint

func (*WorksAt) ProtoMessage added in v0.0.20

func (*WorksAt) ProtoMessage()

func (*WorksAt) ProtoReflect added in v0.0.20

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

func (*WorksAt) Reset added in v0.0.20

func (x *WorksAt) Reset()

func (*WorksAt) String added in v0.0.20

func (x *WorksAt) String() string

type WorksAtFilterType added in v0.0.20

type WorksAtFilterType int32
const (
	WorksAtFilterType_WORKS_AT_FILTER_TYPE_ALL           WorksAtFilterType = 0
	WorksAtFilterType_WORKS_AT_FILTER_TYPE_ONLY_NULL     WorksAtFilterType = 1
	WorksAtFilterType_WORKS_AT_FILTER_TYPE_ONLY_NOT_NULL WorksAtFilterType = 2
)

func (WorksAtFilterType) Descriptor added in v0.0.20

func (WorksAtFilterType) Enum added in v0.0.20

func (WorksAtFilterType) EnumDescriptor deprecated added in v0.0.20

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

Deprecated: Use WorksAtFilterType.Descriptor instead.

func (WorksAtFilterType) Number added in v0.0.20

func (WorksAtFilterType) String added in v0.0.20

func (x WorksAtFilterType) String() string

func (WorksAtFilterType) Type added in v0.0.20

Jump to

Keyboard shortcuts

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