// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.6
// 	protoc        (unknown)
// source: einride/example/freight/v1/shipment.proto

package freightv1

import (
	_ "google.golang.org/genproto/googleapis/api/annotations"
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	timestamppb "google.golang.org/protobuf/types/known/timestamppb"
	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)
)

// A shipment represents transportation of goods between an origin
// [site][einride.example.freight.v1.Site] and a destination
// [site][einride.example.freight.v1.Site].
type Shipment struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The resource name of the shipment.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The creation timestamp of the shipment.
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// The last update timestamp of the shipment.
	//
	// Updated when create/update/delete operation is shipment.
	UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
	// The deletion timestamp of the shipment.
	DeleteTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=delete_time,json=deleteTime,proto3" json:"delete_time,omitempty"`
	// The resource name of the origin site of the shipment.
	// Format: shippers/{shipper}/sites/{site}
	OriginSite string `protobuf:"bytes,5,opt,name=origin_site,json=originSite,proto3" json:"origin_site,omitempty"`
	// The resource name of the destination site of the shipment.
	// Format: shippers/{shipper}/sites/{site}
	DestinationSite string `protobuf:"bytes,6,opt,name=destination_site,json=destinationSite,proto3" json:"destination_site,omitempty"`
	// The earliest pickup time of the shipment at the origin site.
	PickupEarliestTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=pickup_earliest_time,json=pickupEarliestTime,proto3" json:"pickup_earliest_time,omitempty"`
	// The latest pickup time of the shipment at the origin site.
	PickupLatestTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=pickup_latest_time,json=pickupLatestTime,proto3" json:"pickup_latest_time,omitempty"`
	// The earliest delivery time of the shipment at the destination site.
	DeliveryEarliestTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=delivery_earliest_time,json=deliveryEarliestTime,proto3" json:"delivery_earliest_time,omitempty"`
	// The latest delivery time of the shipment at the destination site.
	DeliveryLatestTime *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=delivery_latest_time,json=deliveryLatestTime,proto3" json:"delivery_latest_time,omitempty"`
	// The line items of the shipment.
	LineItems []*LineItem `protobuf:"bytes,11,rep,name=line_items,json=lineItems,proto3" json:"line_items,omitempty"`
	// Annotations of the shipment.
	Annotations map[string]string `protobuf:"bytes,12,rep,name=annotations,proto3" json:"annotations,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
	// Reference ID provided by external system.
	ExternalReferenceId string `protobuf:"bytes,13,opt,name=external_reference_id,json=externalReferenceId,proto3" json:"external_reference_id,omitempty"`
	unknownFields       protoimpl.UnknownFields
	sizeCache           protoimpl.SizeCache
}

func (x *Shipment) Reset() {
	*x = Shipment{}
	mi := &file_einride_example_freight_v1_shipment_proto_msgTypes[0]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *Shipment) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*Shipment) ProtoMessage() {}

func (x *Shipment) ProtoReflect() protoreflect.Message {
	mi := &file_einride_example_freight_v1_shipment_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 Shipment.ProtoReflect.Descriptor instead.
func (*Shipment) Descriptor() ([]byte, []int) {
	return file_einride_example_freight_v1_shipment_proto_rawDescGZIP(), []int{0}
}

func (x *Shipment) GetName() string {
	if x != nil {
		return x.Name
	}
	return ""
}

func (x *Shipment) GetCreateTime() *timestamppb.Timestamp {
	if x != nil {
		return x.CreateTime
	}
	return nil
}

func (x *Shipment) GetUpdateTime() *timestamppb.Timestamp {
	if x != nil {
		return x.UpdateTime
	}
	return nil
}

func (x *Shipment) GetDeleteTime() *timestamppb.Timestamp {
	if x != nil {
		return x.DeleteTime
	}
	return nil
}

func (x *Shipment) GetOriginSite() string {
	if x != nil {
		return x.OriginSite
	}
	return ""
}

func (x *Shipment) GetDestinationSite() string {
	if x != nil {
		return x.DestinationSite
	}
	return ""
}

func (x *Shipment) GetPickupEarliestTime() *timestamppb.Timestamp {
	if x != nil {
		return x.PickupEarliestTime
	}
	return nil
}

func (x *Shipment) GetPickupLatestTime() *timestamppb.Timestamp {
	if x != nil {
		return x.PickupLatestTime
	}
	return nil
}

func (x *Shipment) GetDeliveryEarliestTime() *timestamppb.Timestamp {
	if x != nil {
		return x.DeliveryEarliestTime
	}
	return nil
}

func (x *Shipment) GetDeliveryLatestTime() *timestamppb.Timestamp {
	if x != nil {
		return x.DeliveryLatestTime
	}
	return nil
}

func (x *Shipment) GetLineItems() []*LineItem {
	if x != nil {
		return x.LineItems
	}
	return nil
}

func (x *Shipment) GetAnnotations() map[string]string {
	if x != nil {
		return x.Annotations
	}
	return nil
}

func (x *Shipment) GetExternalReferenceId() string {
	if x != nil {
		return x.ExternalReferenceId
	}
	return ""
}

// A shipment line item.
type LineItem struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The title of the line item.
	Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	// The quantity of the line item.
	Quantity float32 `protobuf:"fixed32,2,opt,name=quantity,proto3" json:"quantity,omitempty"`
	// The weight of the line item in kilograms.
	WeightKg float32 `protobuf:"fixed32,3,opt,name=weight_kg,json=weightKg,proto3" json:"weight_kg,omitempty"`
	// The volume of the line item in cubic meters.
	VolumeM3 float32 `protobuf:"fixed32,4,opt,name=volume_m3,json=volumeM3,proto3" json:"volume_m3,omitempty"`
	// Reference ID provided by external system.
	ExternalReferenceId string `protobuf:"bytes,5,opt,name=external_reference_id,json=externalReferenceId,proto3" json:"external_reference_id,omitempty"`
	unknownFields       protoimpl.UnknownFields
	sizeCache           protoimpl.SizeCache
}

func (x *LineItem) Reset() {
	*x = LineItem{}
	mi := &file_einride_example_freight_v1_shipment_proto_msgTypes[1]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *LineItem) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*LineItem) ProtoMessage() {}

func (x *LineItem) ProtoReflect() protoreflect.Message {
	mi := &file_einride_example_freight_v1_shipment_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 LineItem.ProtoReflect.Descriptor instead.
func (*LineItem) Descriptor() ([]byte, []int) {
	return file_einride_example_freight_v1_shipment_proto_rawDescGZIP(), []int{1}
}

func (x *LineItem) GetTitle() string {
	if x != nil {
		return x.Title
	}
	return ""
}

func (x *LineItem) GetQuantity() float32 {
	if x != nil {
		return x.Quantity
	}
	return 0
}

func (x *LineItem) GetWeightKg() float32 {
	if x != nil {
		return x.WeightKg
	}
	return 0
}

func (x *LineItem) GetVolumeM3() float32 {
	if x != nil {
		return x.VolumeM3
	}
	return 0
}

func (x *LineItem) GetExternalReferenceId() string {
	if x != nil {
		return x.ExternalReferenceId
	}
	return ""
}

var File_einride_example_freight_v1_shipment_proto protoreflect.FileDescriptor

const file_einride_example_freight_v1_shipment_proto_rawDesc = "" +
	"\n" +
	")einride/example/freight/v1/shipment.proto\x12\x1aeinride.example.freight.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xdd\b\n" +
	"\bShipment\x12\x12\n" +
	"\x04name\x18\x01 \x01(\tR\x04name\x12A\n" +
	"\vcreate_time\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampB\x04\xe2A\x01\x03R\n" +
	"createTime\x12A\n" +
	"\vupdate_time\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampB\x04\xe2A\x01\x03R\n" +
	"updateTime\x12A\n" +
	"\vdelete_time\x18\x04 \x01(\v2\x1a.google.protobuf.TimestampB\x04\xe2A\x01\x03R\n" +
	"deleteTime\x12K\n" +
	"\vorigin_site\x18\x05 \x01(\tB*\xe2A\x01\x02\xfaA#\n" +
	"!freight-example.einride.tech/SiteR\n" +
	"originSite\x12U\n" +
	"\x10destination_site\x18\x06 \x01(\tB*\xe2A\x01\x02\xfaA#\n" +
	"!freight-example.einride.tech/SiteR\x0fdestinationSite\x12R\n" +
	"\x14pickup_earliest_time\x18\a \x01(\v2\x1a.google.protobuf.TimestampB\x04\xe2A\x01\x02R\x12pickupEarliestTime\x12N\n" +
	"\x12pickup_latest_time\x18\b \x01(\v2\x1a.google.protobuf.TimestampB\x04\xe2A\x01\x02R\x10pickupLatestTime\x12V\n" +
	"\x16delivery_earliest_time\x18\t \x01(\v2\x1a.google.protobuf.TimestampB\x04\xe2A\x01\x02R\x14deliveryEarliestTime\x12R\n" +
	"\x14delivery_latest_time\x18\n" +
	" \x01(\v2\x1a.google.protobuf.TimestampB\x04\xe2A\x01\x02R\x12deliveryLatestTime\x12C\n" +
	"\n" +
	"line_items\x18\v \x03(\v2$.einride.example.freight.v1.LineItemR\tlineItems\x12W\n" +
	"\vannotations\x18\f \x03(\v25.einride.example.freight.v1.Shipment.AnnotationsEntryR\vannotations\x128\n" +
	"\x15external_reference_id\x18\r \x01(\tB\x04\xe2A\x01\x05R\x13externalReferenceId\x1a>\n" +
	"\x10AnnotationsEntry\x12\x10\n" +
	"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
	"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01:h\xeaAe\n" +
	"%freight-example.einride.tech/Shipment\x12'shippers/{shipper}/shipments/{shipment}*\tshipments2\bshipment\"\xb0\x01\n" +
	"\bLineItem\x12\x14\n" +
	"\x05title\x18\x01 \x01(\tR\x05title\x12\x1a\n" +
	"\bquantity\x18\x02 \x01(\x02R\bquantity\x12\x1b\n" +
	"\tweight_kg\x18\x03 \x01(\x02R\bweightKg\x12\x1b\n" +
	"\tvolume_m3\x18\x04 \x01(\x02R\bvolumeM3\x128\n" +
	"\x15external_reference_id\x18\x05 \x01(\tB\x04\xe2A\x01\x05R\x13externalReferenceIdB\xfe\x01\n" +
	"\x1ecom.einride.example.freight.v1B\rShipmentProtoP\x01ZBgo.einride.tech/aip/proto/gen/einride/example/freight/v1;freightv1\xa2\x02\x03EEF\xaa\x02\x1aEinride.Example.Freight.V1\xca\x02\x1aEinride\\Example\\Freight\\V1\xe2\x02&Einride\\Example\\Freight\\V1\\GPBMetadata\xea\x02\x1dEinride::Example::Freight::V1b\x06proto3"

var (
	file_einride_example_freight_v1_shipment_proto_rawDescOnce sync.Once
	file_einride_example_freight_v1_shipment_proto_rawDescData []byte
)

func file_einride_example_freight_v1_shipment_proto_rawDescGZIP() []byte {
	file_einride_example_freight_v1_shipment_proto_rawDescOnce.Do(func() {
		file_einride_example_freight_v1_shipment_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_einride_example_freight_v1_shipment_proto_rawDesc), len(file_einride_example_freight_v1_shipment_proto_rawDesc)))
	})
	return file_einride_example_freight_v1_shipment_proto_rawDescData
}

var file_einride_example_freight_v1_shipment_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_einride_example_freight_v1_shipment_proto_goTypes = []any{
	(*Shipment)(nil),              // 0: einride.example.freight.v1.Shipment
	(*LineItem)(nil),              // 1: einride.example.freight.v1.LineItem
	nil,                           // 2: einride.example.freight.v1.Shipment.AnnotationsEntry
	(*timestamppb.Timestamp)(nil), // 3: google.protobuf.Timestamp
}
var file_einride_example_freight_v1_shipment_proto_depIdxs = []int32{
	3, // 0: einride.example.freight.v1.Shipment.create_time:type_name -> google.protobuf.Timestamp
	3, // 1: einride.example.freight.v1.Shipment.update_time:type_name -> google.protobuf.Timestamp
	3, // 2: einride.example.freight.v1.Shipment.delete_time:type_name -> google.protobuf.Timestamp
	3, // 3: einride.example.freight.v1.Shipment.pickup_earliest_time:type_name -> google.protobuf.Timestamp
	3, // 4: einride.example.freight.v1.Shipment.pickup_latest_time:type_name -> google.protobuf.Timestamp
	3, // 5: einride.example.freight.v1.Shipment.delivery_earliest_time:type_name -> google.protobuf.Timestamp
	3, // 6: einride.example.freight.v1.Shipment.delivery_latest_time:type_name -> google.protobuf.Timestamp
	1, // 7: einride.example.freight.v1.Shipment.line_items:type_name -> einride.example.freight.v1.LineItem
	2, // 8: einride.example.freight.v1.Shipment.annotations:type_name -> einride.example.freight.v1.Shipment.AnnotationsEntry
	9, // [9:9] is the sub-list for method output_type
	9, // [9:9] is the sub-list for method input_type
	9, // [9:9] is the sub-list for extension type_name
	9, // [9:9] is the sub-list for extension extendee
	0, // [0:9] is the sub-list for field type_name
}

func init() { file_einride_example_freight_v1_shipment_proto_init() }
func file_einride_example_freight_v1_shipment_proto_init() {
	if File_einride_example_freight_v1_shipment_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_einride_example_freight_v1_shipment_proto_rawDesc), len(file_einride_example_freight_v1_shipment_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   3,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_einride_example_freight_v1_shipment_proto_goTypes,
		DependencyIndexes: file_einride_example_freight_v1_shipment_proto_depIdxs,
		MessageInfos:      file_einride_example_freight_v1_shipment_proto_msgTypes,
	}.Build()
	File_einride_example_freight_v1_shipment_proto = out.File
	file_einride_example_freight_v1_shipment_proto_goTypes = nil
	file_einride_example_freight_v1_shipment_proto_depIdxs = nil
}
