mirror of
https://github.com/hexolan/stocklet.git
synced 2026-12-01 03:09:10 +00:00
d05489c01b
Signed-off-by: Declan Teevan <dt@hexolan.com>
315 lines
13 KiB
Go
315 lines
13 KiB
Go
// Copyright (C) 2024 Declan Teevan
|
|
//
|
|
// This program is free software: you can redistribute it and/or modify
|
|
// it under the terms of the GNU Affero General Public License as published by
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
// (at your option) any later version.
|
|
//
|
|
// This program is distributed in the hope that it will be useful,
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
// GNU Affero General Public License for more details.
|
|
//
|
|
// You should have received a copy of the GNU Affero General Public License
|
|
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.12
|
|
// protoc (unknown)
|
|
// source: stocklet/shipping/v1/service.proto
|
|
|
|
package shipping_v1
|
|
|
|
import (
|
|
_ "buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go/buf/validate"
|
|
v1 "github.com/hexolan/stocklet/internal/pkg/protogen/common/v1"
|
|
v11 "github.com/hexolan/stocklet/internal/pkg/protogen/events/v1"
|
|
_ "google.golang.org/genproto/googleapis/api/annotations"
|
|
_ "google.golang.org/genproto/googleapis/api/visibility"
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
emptypb "google.golang.org/protobuf/types/known/emptypb"
|
|
reflect "reflect"
|
|
sync "sync"
|
|
unsafe "unsafe"
|
|
)
|
|
|
|
const (
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
)
|
|
|
|
type ViewShipmentRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
ShipmentId string `protobuf:"bytes,1,opt,name=shipment_id,json=shipmentId,proto3" json:"shipment_id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ViewShipmentRequest) Reset() {
|
|
*x = ViewShipmentRequest{}
|
|
mi := &file_stocklet_shipping_v1_service_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ViewShipmentRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ViewShipmentRequest) ProtoMessage() {}
|
|
|
|
func (x *ViewShipmentRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_stocklet_shipping_v1_service_proto_msgTypes[0]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ViewShipmentRequest.ProtoReflect.Descriptor instead.
|
|
func (*ViewShipmentRequest) Descriptor() ([]byte, []int) {
|
|
return file_stocklet_shipping_v1_service_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *ViewShipmentRequest) GetShipmentId() string {
|
|
if x != nil {
|
|
return x.ShipmentId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type ViewShipmentResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Shipment *Shipment `protobuf:"bytes,1,opt,name=shipment,proto3" json:"shipment,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ViewShipmentResponse) Reset() {
|
|
*x = ViewShipmentResponse{}
|
|
mi := &file_stocklet_shipping_v1_service_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ViewShipmentResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ViewShipmentResponse) ProtoMessage() {}
|
|
|
|
func (x *ViewShipmentResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_stocklet_shipping_v1_service_proto_msgTypes[1]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ViewShipmentResponse.ProtoReflect.Descriptor instead.
|
|
func (*ViewShipmentResponse) Descriptor() ([]byte, []int) {
|
|
return file_stocklet_shipping_v1_service_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *ViewShipmentResponse) GetShipment() *Shipment {
|
|
if x != nil {
|
|
return x.Shipment
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type ViewShipmentManifestRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
ShipmentId string `protobuf:"bytes,1,opt,name=shipment_id,json=shipmentId,proto3" json:"shipment_id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ViewShipmentManifestRequest) Reset() {
|
|
*x = ViewShipmentManifestRequest{}
|
|
mi := &file_stocklet_shipping_v1_service_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ViewShipmentManifestRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ViewShipmentManifestRequest) ProtoMessage() {}
|
|
|
|
func (x *ViewShipmentManifestRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_stocklet_shipping_v1_service_proto_msgTypes[2]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ViewShipmentManifestRequest.ProtoReflect.Descriptor instead.
|
|
func (*ViewShipmentManifestRequest) Descriptor() ([]byte, []int) {
|
|
return file_stocklet_shipping_v1_service_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *ViewShipmentManifestRequest) GetShipmentId() string {
|
|
if x != nil {
|
|
return x.ShipmentId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type ViewShipmentManifestResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Manifest []*ShipmentItem `protobuf:"bytes,1,rep,name=manifest,proto3" json:"manifest,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ViewShipmentManifestResponse) Reset() {
|
|
*x = ViewShipmentManifestResponse{}
|
|
mi := &file_stocklet_shipping_v1_service_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ViewShipmentManifestResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ViewShipmentManifestResponse) ProtoMessage() {}
|
|
|
|
func (x *ViewShipmentManifestResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_stocklet_shipping_v1_service_proto_msgTypes[3]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ViewShipmentManifestResponse.ProtoReflect.Descriptor instead.
|
|
func (*ViewShipmentManifestResponse) Descriptor() ([]byte, []int) {
|
|
return file_stocklet_shipping_v1_service_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *ViewShipmentManifestResponse) GetManifest() []*ShipmentItem {
|
|
if x != nil {
|
|
return x.Manifest
|
|
}
|
|
return nil
|
|
}
|
|
|
|
var File_stocklet_shipping_v1_service_proto protoreflect.FileDescriptor
|
|
|
|
const file_stocklet_shipping_v1_service_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\"stocklet/shipping/v1/service.proto\x12\x14stocklet.shipping.v1\x1a\x1bbuf/validate/validate.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1bgoogle/api/visibility.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a!stocklet/common/v1/requests.proto\x1a stocklet/events/v1/payment.proto\x1a\"stocklet/events/v1/warehouse.proto\x1a stocklet/shipping/v1/types.proto\"?\n" +
|
|
"\x13ViewShipmentRequest\x12(\n" +
|
|
"\vshipment_id\x18\x01 \x01(\tB\a\xbaH\x04r\x02\x10\x01R\n" +
|
|
"shipmentId\"R\n" +
|
|
"\x14ViewShipmentResponse\x12:\n" +
|
|
"\bshipment\x18\x01 \x01(\v2\x1e.stocklet.shipping.v1.ShipmentR\bshipment\"G\n" +
|
|
"\x1bViewShipmentManifestRequest\x12(\n" +
|
|
"\vshipment_id\x18\x01 \x01(\tB\a\xbaH\x04r\x02\x10\x01R\n" +
|
|
"shipmentId\"^\n" +
|
|
"\x1cViewShipmentManifestResponse\x12>\n" +
|
|
"\bmanifest\x18\x01 \x03(\v2\".stocklet.shipping.v1.ShipmentItemR\bmanifest2\xc4\x05\n" +
|
|
"\x0fShippingService\x12|\n" +
|
|
"\vServiceInfo\x12&.stocklet.common.v1.ServiceInfoRequest\x1a'.stocklet.common.v1.ServiceInfoResponse\"\x1c\x82\xd3\xe4\x93\x02\x16\x12\x14/v1/shipping/service\x12\x92\x01\n" +
|
|
"\fViewShipment\x12).stocklet.shipping.v1.ViewShipmentRequest\x1a*.stocklet.shipping.v1.ViewShipmentResponse\"+\x82\xd3\xe4\x93\x02%\x12#/v1/shipping/shipment/{shipment_id}\x12\xb3\x01\n" +
|
|
"\x14ViewShipmentManifest\x121.stocklet.shipping.v1.ViewShipmentManifestRequest\x1a2.stocklet.shipping.v1.ViewShipmentManifestResponse\"4\x82\xd3\xe4\x93\x02.\x12,/v1/shipping/shipment/{shipment_id}/manifest\x12s\n" +
|
|
"\x1cProcessStockReservationEvent\x12).stocklet.events.v1.StockReservationEvent\x1a\x16.google.protobuf.Empty\"\x10\xfa\xd2\xe4\x93\x02\n" +
|
|
"\x12\bINTERNAL\x12s\n" +
|
|
"\x1cProcessPaymentProcessedEvent\x12).stocklet.events.v1.PaymentProcessedEvent\x1a\x16.google.protobuf.Empty\"\x10\xfa\xd2\xe4\x93\x02\n" +
|
|
"\x12\bINTERNALBKZIgithub.com/hexolan/stocklet/internal/pkg/protogen/shipping/v1;shipping_v1b\x06proto3"
|
|
|
|
var (
|
|
file_stocklet_shipping_v1_service_proto_rawDescOnce sync.Once
|
|
file_stocklet_shipping_v1_service_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_stocklet_shipping_v1_service_proto_rawDescGZIP() []byte {
|
|
file_stocklet_shipping_v1_service_proto_rawDescOnce.Do(func() {
|
|
file_stocklet_shipping_v1_service_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_stocklet_shipping_v1_service_proto_rawDesc), len(file_stocklet_shipping_v1_service_proto_rawDesc)))
|
|
})
|
|
return file_stocklet_shipping_v1_service_proto_rawDescData
|
|
}
|
|
|
|
var file_stocklet_shipping_v1_service_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
|
|
var file_stocklet_shipping_v1_service_proto_goTypes = []any{
|
|
(*ViewShipmentRequest)(nil), // 0: stocklet.shipping.v1.ViewShipmentRequest
|
|
(*ViewShipmentResponse)(nil), // 1: stocklet.shipping.v1.ViewShipmentResponse
|
|
(*ViewShipmentManifestRequest)(nil), // 2: stocklet.shipping.v1.ViewShipmentManifestRequest
|
|
(*ViewShipmentManifestResponse)(nil), // 3: stocklet.shipping.v1.ViewShipmentManifestResponse
|
|
(*Shipment)(nil), // 4: stocklet.shipping.v1.Shipment
|
|
(*ShipmentItem)(nil), // 5: stocklet.shipping.v1.ShipmentItem
|
|
(*v1.ServiceInfoRequest)(nil), // 6: stocklet.common.v1.ServiceInfoRequest
|
|
(*v11.StockReservationEvent)(nil), // 7: stocklet.events.v1.StockReservationEvent
|
|
(*v11.PaymentProcessedEvent)(nil), // 8: stocklet.events.v1.PaymentProcessedEvent
|
|
(*v1.ServiceInfoResponse)(nil), // 9: stocklet.common.v1.ServiceInfoResponse
|
|
(*emptypb.Empty)(nil), // 10: google.protobuf.Empty
|
|
}
|
|
var file_stocklet_shipping_v1_service_proto_depIdxs = []int32{
|
|
4, // 0: stocklet.shipping.v1.ViewShipmentResponse.shipment:type_name -> stocklet.shipping.v1.Shipment
|
|
5, // 1: stocklet.shipping.v1.ViewShipmentManifestResponse.manifest:type_name -> stocklet.shipping.v1.ShipmentItem
|
|
6, // 2: stocklet.shipping.v1.ShippingService.ServiceInfo:input_type -> stocklet.common.v1.ServiceInfoRequest
|
|
0, // 3: stocklet.shipping.v1.ShippingService.ViewShipment:input_type -> stocklet.shipping.v1.ViewShipmentRequest
|
|
2, // 4: stocklet.shipping.v1.ShippingService.ViewShipmentManifest:input_type -> stocklet.shipping.v1.ViewShipmentManifestRequest
|
|
7, // 5: stocklet.shipping.v1.ShippingService.ProcessStockReservationEvent:input_type -> stocklet.events.v1.StockReservationEvent
|
|
8, // 6: stocklet.shipping.v1.ShippingService.ProcessPaymentProcessedEvent:input_type -> stocklet.events.v1.PaymentProcessedEvent
|
|
9, // 7: stocklet.shipping.v1.ShippingService.ServiceInfo:output_type -> stocklet.common.v1.ServiceInfoResponse
|
|
1, // 8: stocklet.shipping.v1.ShippingService.ViewShipment:output_type -> stocklet.shipping.v1.ViewShipmentResponse
|
|
3, // 9: stocklet.shipping.v1.ShippingService.ViewShipmentManifest:output_type -> stocklet.shipping.v1.ViewShipmentManifestResponse
|
|
10, // 10: stocklet.shipping.v1.ShippingService.ProcessStockReservationEvent:output_type -> google.protobuf.Empty
|
|
10, // 11: stocklet.shipping.v1.ShippingService.ProcessPaymentProcessedEvent:output_type -> google.protobuf.Empty
|
|
7, // [7:12] is the sub-list for method output_type
|
|
2, // [2:7] is the sub-list for method input_type
|
|
2, // [2:2] is the sub-list for extension type_name
|
|
2, // [2:2] is the sub-list for extension extendee
|
|
0, // [0:2] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_stocklet_shipping_v1_service_proto_init() }
|
|
func file_stocklet_shipping_v1_service_proto_init() {
|
|
if File_stocklet_shipping_v1_service_proto != nil {
|
|
return
|
|
}
|
|
file_stocklet_shipping_v1_types_proto_init()
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_stocklet_shipping_v1_service_proto_rawDesc), len(file_stocklet_shipping_v1_service_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 4,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_stocklet_shipping_v1_service_proto_goTypes,
|
|
DependencyIndexes: file_stocklet_shipping_v1_service_proto_depIdxs,
|
|
MessageInfos: file_stocklet_shipping_v1_service_proto_msgTypes,
|
|
}.Build()
|
|
File_stocklet_shipping_v1_service_proto = out.File
|
|
file_stocklet_shipping_v1_service_proto_goTypes = nil
|
|
file_stocklet_shipping_v1_service_proto_depIdxs = nil
|
|
}
|