application

package
v0.0.38 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ApplicationService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "supplier.ApplicationService",
	HandlerType: (*ApplicationServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Create",
			Handler:    _ApplicationService_Create_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "application/application.proto",
}

ApplicationService_ServiceDesc is the grpc.ServiceDesc for ApplicationService 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_application_application_proto protoreflect.FileDescriptor

Functions

func RegisterApplicationServiceServer

func RegisterApplicationServiceServer(s grpc.ServiceRegistrar, srv ApplicationServiceServer)

Types

type Application

type Application struct {
	Id               int32                         `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	TradingPointId   int32                         `protobuf:"varint,2,opt,name=trading_point_id,json=tradingPointId,proto3" json:"trading_point_id,omitempty"`
	TradingPointType tradingpoint.TradingPointType `` /* 147-byte string literal not displayed */
	CreatedAt        *timestamppb.Timestamp        `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	Products         []*ProductApplication         `protobuf:"bytes,5,rep,name=products,proto3" json:"products,omitempty"`
	// contains filtered or unexported fields
}

func (*Application) Descriptor deprecated

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

Deprecated: Use Application.ProtoReflect.Descriptor instead.

func (*Application) GetCreatedAt

func (x *Application) GetCreatedAt() *timestamppb.Timestamp

func (*Application) GetId

func (x *Application) GetId() int32

func (*Application) GetProducts

func (x *Application) GetProducts() []*ProductApplication

func (*Application) GetTradingPointId

func (x *Application) GetTradingPointId() int32

func (*Application) GetTradingPointType

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

func (*Application) ProtoMessage

func (*Application) ProtoMessage()

func (*Application) ProtoReflect

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

func (*Application) Reset

func (x *Application) Reset()

func (*Application) String

func (x *Application) String() string

type ApplicationServiceClient

type ApplicationServiceClient interface {
	Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error)
}

ApplicationServiceClient is the client API for ApplicationService 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 ApplicationServiceServer

type ApplicationServiceServer interface {
	Create(context.Context, *CreateRequest) (*CreateResponse, error)
	// contains filtered or unexported methods
}

ApplicationServiceServer is the server API for ApplicationService service. All implementations must embed UnimplementedApplicationServiceServer for forward compatibility

type CreateRequest

type CreateRequest struct {
	TradingPointId   int32                         `protobuf:"varint,1,opt,name=trading_point_id,json=tradingPointId,proto3" json:"trading_point_id,omitempty"`
	TradingPointType tradingpoint.TradingPointType `` /* 147-byte string literal not displayed */
	Products         []*ProductApplication         `protobuf:"bytes,3,rep,name=products,proto3" json:"products,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateRequest) Descriptor deprecated

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

Deprecated: Use CreateRequest.ProtoReflect.Descriptor instead.

func (*CreateRequest) GetProducts

func (x *CreateRequest) GetProducts() []*ProductApplication

func (*CreateRequest) GetTradingPointId

func (x *CreateRequest) GetTradingPointId() int32

func (*CreateRequest) GetTradingPointType

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

func (*CreateRequest) ProtoMessage

func (*CreateRequest) ProtoMessage()

func (*CreateRequest) ProtoReflect

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

func (*CreateRequest) Reset

func (x *CreateRequest) Reset()

func (*CreateRequest) String

func (x *CreateRequest) String() string

type CreateResponse

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

func (*CreateResponse) Descriptor deprecated

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

Deprecated: Use CreateResponse.ProtoReflect.Descriptor instead.

func (*CreateResponse) GetId

func (x *CreateResponse) GetId() int32

func (*CreateResponse) ProtoMessage

func (*CreateResponse) ProtoMessage()

func (*CreateResponse) ProtoReflect

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

func (*CreateResponse) Reset

func (x *CreateResponse) Reset()

func (*CreateResponse) String

func (x *CreateResponse) String() string

type ProductApplication

type ProductApplication struct {
	Quantity int32            `protobuf:"varint,1,opt,name=quantity,proto3" json:"quantity,omitempty"`
	Product  *product.Product `protobuf:"bytes,2,opt,name=product,proto3" json:"product,omitempty"`
	// contains filtered or unexported fields
}

func (*ProductApplication) Descriptor deprecated

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

Deprecated: Use ProductApplication.ProtoReflect.Descriptor instead.

func (*ProductApplication) GetProduct

func (x *ProductApplication) GetProduct() *product.Product

func (*ProductApplication) GetQuantity

func (x *ProductApplication) GetQuantity() int32

func (*ProductApplication) ProtoMessage

func (*ProductApplication) ProtoMessage()

func (*ProductApplication) ProtoReflect

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

func (*ProductApplication) Reset

func (x *ProductApplication) Reset()

func (*ProductApplication) String

func (x *ProductApplication) String() string

type UnimplementedApplicationServiceServer

type UnimplementedApplicationServiceServer struct {
}

UnimplementedApplicationServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedApplicationServiceServer) Create

type UnsafeApplicationServiceServer

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

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

Jump to

Keyboard shortcuts

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