Documentation ¶
Index ¶
- Variables
- func RegisterFreightServiceServer(s grpc.ServiceRegistrar, srv FreightServiceServer)
- type BatchGetSitesRequest
- func (*BatchGetSitesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *BatchGetSitesRequest) GetNames() []string
- func (x *BatchGetSitesRequest) GetParent() string
- func (*BatchGetSitesRequest) ProtoMessage()
- func (x *BatchGetSitesRequest) ProtoReflect() protoreflect.Message
- func (x *BatchGetSitesRequest) Reset()
- func (x *BatchGetSitesRequest) String() string
- type BatchGetSitesResponse
- func (*BatchGetSitesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *BatchGetSitesResponse) GetSites() []*Site
- func (*BatchGetSitesResponse) ProtoMessage()
- func (x *BatchGetSitesResponse) ProtoReflect() protoreflect.Message
- func (x *BatchGetSitesResponse) Reset()
- func (x *BatchGetSitesResponse) String() string
- type CreateShipmentRequest
- func (*CreateShipmentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateShipmentRequest) GetParent() string
- func (x *CreateShipmentRequest) GetShipment() *Shipment
- func (*CreateShipmentRequest) ProtoMessage()
- func (x *CreateShipmentRequest) ProtoReflect() protoreflect.Message
- func (x *CreateShipmentRequest) Reset()
- func (x *CreateShipmentRequest) String() string
- type CreateShipperRequest
- func (*CreateShipperRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateShipperRequest) GetShipper() *Shipper
- func (*CreateShipperRequest) ProtoMessage()
- func (x *CreateShipperRequest) ProtoReflect() protoreflect.Message
- func (x *CreateShipperRequest) Reset()
- func (x *CreateShipperRequest) String() string
- type CreateSiteRequest
- func (*CreateSiteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateSiteRequest) GetParent() string
- func (x *CreateSiteRequest) GetSite() *Site
- func (*CreateSiteRequest) ProtoMessage()
- func (x *CreateSiteRequest) ProtoReflect() protoreflect.Message
- func (x *CreateSiteRequest) Reset()
- func (x *CreateSiteRequest) String() string
- type DeleteShipmentRequest
- func (*DeleteShipmentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteShipmentRequest) GetName() string
- func (*DeleteShipmentRequest) ProtoMessage()
- func (x *DeleteShipmentRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteShipmentRequest) Reset()
- func (x *DeleteShipmentRequest) String() string
- type DeleteShipperRequest
- func (*DeleteShipperRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteShipperRequest) GetName() string
- func (*DeleteShipperRequest) ProtoMessage()
- func (x *DeleteShipperRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteShipperRequest) Reset()
- func (x *DeleteShipperRequest) String() string
- type DeleteSiteRequest
- type FreightServiceClient
- type FreightServiceServer
- type GetShipmentRequest
- func (*GetShipmentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetShipmentRequest) GetName() string
- func (*GetShipmentRequest) ProtoMessage()
- func (x *GetShipmentRequest) ProtoReflect() protoreflect.Message
- func (x *GetShipmentRequest) Reset()
- func (x *GetShipmentRequest) String() string
- type GetShipperRequest
- type GetSiteRequest
- type LineItem
- func (*LineItem) Descriptor() ([]byte, []int)deprecated
- func (x *LineItem) GetExternalReferenceId() string
- func (x *LineItem) GetQuantity() float32
- func (x *LineItem) GetTitle() string
- func (x *LineItem) GetVolumeM3() float32
- func (x *LineItem) GetWeightKg() float32
- func (*LineItem) ProtoMessage()
- func (x *LineItem) ProtoReflect() protoreflect.Message
- func (x *LineItem) Reset()
- func (x *LineItem) String() string
- type ListShipmentsRequest
- func (*ListShipmentsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListShipmentsRequest) GetPageSize() int32
- func (x *ListShipmentsRequest) GetPageToken() string
- func (x *ListShipmentsRequest) GetParent() string
- func (*ListShipmentsRequest) ProtoMessage()
- func (x *ListShipmentsRequest) ProtoReflect() protoreflect.Message
- func (x *ListShipmentsRequest) Reset()
- func (x *ListShipmentsRequest) String() string
- type ListShipmentsResponse
- func (*ListShipmentsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListShipmentsResponse) GetNextPageToken() string
- func (x *ListShipmentsResponse) GetShipments() []*Shipment
- func (*ListShipmentsResponse) ProtoMessage()
- func (x *ListShipmentsResponse) ProtoReflect() protoreflect.Message
- func (x *ListShipmentsResponse) Reset()
- func (x *ListShipmentsResponse) String() string
- type ListShippersRequest
- func (*ListShippersRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListShippersRequest) GetPageSize() int32
- func (x *ListShippersRequest) GetPageToken() string
- func (*ListShippersRequest) ProtoMessage()
- func (x *ListShippersRequest) ProtoReflect() protoreflect.Message
- func (x *ListShippersRequest) Reset()
- func (x *ListShippersRequest) String() string
- type ListShippersResponse
- func (*ListShippersResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListShippersResponse) GetNextPageToken() string
- func (x *ListShippersResponse) GetShippers() []*Shipper
- func (*ListShippersResponse) ProtoMessage()
- func (x *ListShippersResponse) ProtoReflect() protoreflect.Message
- func (x *ListShippersResponse) Reset()
- func (x *ListShippersResponse) String() string
- type ListSitesRequest
- func (*ListSitesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListSitesRequest) GetPageSize() int32
- func (x *ListSitesRequest) GetPageToken() string
- func (x *ListSitesRequest) GetParent() string
- func (x *ListSitesRequest) GetSkip() int32
- func (*ListSitesRequest) ProtoMessage()
- func (x *ListSitesRequest) ProtoReflect() protoreflect.Message
- func (x *ListSitesRequest) Reset()
- func (x *ListSitesRequest) String() string
- type ListSitesResponse
- func (*ListSitesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListSitesResponse) GetNextPageToken() string
- func (x *ListSitesResponse) GetSites() []*Site
- func (*ListSitesResponse) ProtoMessage()
- func (x *ListSitesResponse) ProtoReflect() protoreflect.Message
- func (x *ListSitesResponse) Reset()
- func (x *ListSitesResponse) String() string
- type Shipment
- func (*Shipment) Descriptor() ([]byte, []int)deprecated
- func (x *Shipment) GetAnnotations() map[string]string
- func (x *Shipment) GetCreateTime() *timestamppb.Timestamp
- func (x *Shipment) GetDeleteTime() *timestamppb.Timestamp
- func (x *Shipment) GetDeliveryEarliestTime() *timestamppb.Timestamp
- func (x *Shipment) GetDeliveryLatestTime() *timestamppb.Timestamp
- func (x *Shipment) GetDestinationSite() string
- func (x *Shipment) GetExternalReferenceId() string
- func (x *Shipment) GetLineItems() []*LineItem
- func (x *Shipment) GetName() string
- func (x *Shipment) GetOriginSite() string
- func (x *Shipment) GetPickupEarliestTime() *timestamppb.Timestamp
- func (x *Shipment) GetPickupLatestTime() *timestamppb.Timestamp
- func (x *Shipment) GetUpdateTime() *timestamppb.Timestamp
- func (*Shipment) ProtoMessage()
- func (x *Shipment) ProtoReflect() protoreflect.Message
- func (x *Shipment) Reset()
- func (x *Shipment) String() string
- type ShipmentResourceName
- func (n ShipmentResourceName) ContainsWildcard() bool
- func (n ShipmentResourceName) MarshalString() (string, error)
- func (n ShipmentResourceName) ShipperResourceName() ShipperResourceName
- func (n ShipmentResourceName) String() string
- func (n *ShipmentResourceName) UnmarshalString(name string) error
- func (n ShipmentResourceName) Validate() error
- type Shipper
- func (*Shipper) Descriptor() ([]byte, []int)deprecated
- func (x *Shipper) GetCreateTime() *timestamppb.Timestamp
- func (x *Shipper) GetDeleteTime() *timestamppb.Timestamp
- func (x *Shipper) GetDisplayName() string
- func (x *Shipper) GetName() string
- func (x *Shipper) GetUpdateTime() *timestamppb.Timestamp
- func (*Shipper) ProtoMessage()
- func (x *Shipper) ProtoReflect() protoreflect.Message
- func (x *Shipper) Reset()
- func (x *Shipper) String() string
- type ShipperResourceName
- func (n ShipperResourceName) ContainsWildcard() bool
- func (n ShipperResourceName) MarshalString() (string, error)
- func (n ShipperResourceName) ShipmentResourceName(shipment string) ShipmentResourceName
- func (n ShipperResourceName) SiteResourceName(site string) SiteResourceName
- func (n ShipperResourceName) String() string
- func (n *ShipperResourceName) UnmarshalString(name string) error
- func (n ShipperResourceName) Validate() error
- type Site
- func (*Site) Descriptor() ([]byte, []int)deprecated
- func (x *Site) GetCreateTime() *timestamppb.Timestamp
- func (x *Site) GetDeleteTime() *timestamppb.Timestamp
- func (x *Site) GetDisplayName() string
- func (x *Site) GetLatLng() *latlng.LatLng
- func (x *Site) GetName() string
- func (x *Site) GetUpdateTime() *timestamppb.Timestamp
- func (*Site) ProtoMessage()
- func (x *Site) ProtoReflect() protoreflect.Message
- func (x *Site) Reset()
- func (x *Site) String() string
- type SiteResourceName
- func (n SiteResourceName) ContainsWildcard() bool
- func (n SiteResourceName) MarshalString() (string, error)
- func (n SiteResourceName) ShipperResourceName() ShipperResourceName
- func (n SiteResourceName) String() string
- func (n *SiteResourceName) UnmarshalString(name string) error
- func (n SiteResourceName) Validate() error
- type UnimplementedFreightServiceServer
- func (UnimplementedFreightServiceServer) BatchGetSites(context.Context, *BatchGetSitesRequest) (*BatchGetSitesResponse, error)
- func (UnimplementedFreightServiceServer) CreateShipment(context.Context, *CreateShipmentRequest) (*Shipment, error)
- func (UnimplementedFreightServiceServer) CreateShipper(context.Context, *CreateShipperRequest) (*Shipper, error)
- func (UnimplementedFreightServiceServer) CreateSite(context.Context, *CreateSiteRequest) (*Site, error)
- func (UnimplementedFreightServiceServer) DeleteShipment(context.Context, *DeleteShipmentRequest) (*Shipment, error)
- func (UnimplementedFreightServiceServer) DeleteShipper(context.Context, *DeleteShipperRequest) (*Shipper, error)
- func (UnimplementedFreightServiceServer) DeleteSite(context.Context, *DeleteSiteRequest) (*Site, error)
- func (UnimplementedFreightServiceServer) GetShipment(context.Context, *GetShipmentRequest) (*Shipment, error)
- func (UnimplementedFreightServiceServer) GetShipper(context.Context, *GetShipperRequest) (*Shipper, error)
- func (UnimplementedFreightServiceServer) GetSite(context.Context, *GetSiteRequest) (*Site, error)
- func (UnimplementedFreightServiceServer) ListShipments(context.Context, *ListShipmentsRequest) (*ListShipmentsResponse, error)
- func (UnimplementedFreightServiceServer) ListShippers(context.Context, *ListShippersRequest) (*ListShippersResponse, error)
- func (UnimplementedFreightServiceServer) ListSites(context.Context, *ListSitesRequest) (*ListSitesResponse, error)
- func (UnimplementedFreightServiceServer) UpdateShipment(context.Context, *UpdateShipmentRequest) (*Shipment, error)
- func (UnimplementedFreightServiceServer) UpdateShipper(context.Context, *UpdateShipperRequest) (*Shipper, error)
- func (UnimplementedFreightServiceServer) UpdateSite(context.Context, *UpdateSiteRequest) (*Site, error)
- type UnsafeFreightServiceServer
- type UpdateShipmentRequest
- func (*UpdateShipmentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateShipmentRequest) GetShipment() *Shipment
- func (x *UpdateShipmentRequest) GetUpdateMask() *fieldmaskpb.FieldMask
- func (*UpdateShipmentRequest) ProtoMessage()
- func (x *UpdateShipmentRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateShipmentRequest) Reset()
- func (x *UpdateShipmentRequest) String() string
- type UpdateShipperRequest
- func (*UpdateShipperRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateShipperRequest) GetShipper() *Shipper
- func (x *UpdateShipperRequest) GetUpdateMask() *fieldmaskpb.FieldMask
- func (*UpdateShipperRequest) ProtoMessage()
- func (x *UpdateShipperRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateShipperRequest) Reset()
- func (x *UpdateShipperRequest) String() string
- type UpdateSiteRequest
- func (*UpdateSiteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateSiteRequest) GetSite() *Site
- func (x *UpdateSiteRequest) GetUpdateMask() *fieldmaskpb.FieldMask
- func (*UpdateSiteRequest) ProtoMessage()
- func (x *UpdateSiteRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateSiteRequest) Reset()
- func (x *UpdateSiteRequest) String() string
Constants ¶
This section is empty.
Variables ¶
var File_einride_example_freight_v1_freight_service_proto protoreflect.FileDescriptor
var File_einride_example_freight_v1_shipment_proto protoreflect.FileDescriptor
var File_einride_example_freight_v1_shipper_proto protoreflect.FileDescriptor
var File_einride_example_freight_v1_site_proto protoreflect.FileDescriptor
var FreightService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "einride.example.freight.v1.FreightService", HandlerType: (*FreightServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetShipper", Handler: _FreightService_GetShipper_Handler, }, { MethodName: "ListShippers", Handler: _FreightService_ListShippers_Handler, }, { MethodName: "CreateShipper", Handler: _FreightService_CreateShipper_Handler, }, { MethodName: "UpdateShipper", Handler: _FreightService_UpdateShipper_Handler, }, { MethodName: "DeleteShipper", Handler: _FreightService_DeleteShipper_Handler, }, { MethodName: "GetSite", Handler: _FreightService_GetSite_Handler, }, { MethodName: "ListSites", Handler: _FreightService_ListSites_Handler, }, { MethodName: "CreateSite", Handler: _FreightService_CreateSite_Handler, }, { MethodName: "UpdateSite", Handler: _FreightService_UpdateSite_Handler, }, { MethodName: "DeleteSite", Handler: _FreightService_DeleteSite_Handler, }, { MethodName: "BatchGetSites", Handler: _FreightService_BatchGetSites_Handler, }, { MethodName: "GetShipment", Handler: _FreightService_GetShipment_Handler, }, { MethodName: "ListShipments", Handler: _FreightService_ListShipments_Handler, }, { MethodName: "CreateShipment", Handler: _FreightService_CreateShipment_Handler, }, { MethodName: "UpdateShipment", Handler: _FreightService_UpdateShipment_Handler, }, { MethodName: "DeleteShipment", Handler: _FreightService_DeleteShipment_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "einride/example/freight/v1/freight_service.proto", }
FreightService_ServiceDesc is the grpc.ServiceDesc for FreightService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterFreightServiceServer ¶
func RegisterFreightServiceServer(s grpc.ServiceRegistrar, srv FreightServiceServer)
Types ¶
type BatchGetSitesRequest ¶ added in v0.49.0
type BatchGetSitesRequest struct { // The parent resource shared by all sites being retrieved. // If this is set, the parent of all of the sites specified in `names` // must match this field. // Format: `shippers/{shipper}` Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // The names of the sites to retrieve. // A maximum of 1000 sites can be retrieved in a batch. // Format: `shippers/{shipper}/sites/{site}` Names []string `protobuf:"bytes,2,rep,name=names,proto3" json:"names,omitempty"` // contains filtered or unexported fields }
Request message for FreightService.BatchGetSites.
func (*BatchGetSitesRequest) Descriptor
deprecated
added in
v0.49.0
func (*BatchGetSitesRequest) Descriptor() ([]byte, []int)
Deprecated: Use BatchGetSitesRequest.ProtoReflect.Descriptor instead.
func (*BatchGetSitesRequest) GetNames ¶ added in v0.49.0
func (x *BatchGetSitesRequest) GetNames() []string
func (*BatchGetSitesRequest) GetParent ¶ added in v0.49.0
func (x *BatchGetSitesRequest) GetParent() string
func (*BatchGetSitesRequest) ProtoMessage ¶ added in v0.49.0
func (*BatchGetSitesRequest) ProtoMessage()
func (*BatchGetSitesRequest) ProtoReflect ¶ added in v0.49.0
func (x *BatchGetSitesRequest) ProtoReflect() protoreflect.Message
func (*BatchGetSitesRequest) Reset ¶ added in v0.49.0
func (x *BatchGetSitesRequest) Reset()
func (*BatchGetSitesRequest) String ¶ added in v0.49.0
func (x *BatchGetSitesRequest) String() string
type BatchGetSitesResponse ¶ added in v0.49.0
type BatchGetSitesResponse struct { // Sites requested. Sites []*Site `protobuf:"bytes,1,rep,name=sites,proto3" json:"sites,omitempty"` // contains filtered or unexported fields }
Response message for FreightService.BatchGetSites.
func (*BatchGetSitesResponse) Descriptor
deprecated
added in
v0.49.0
func (*BatchGetSitesResponse) Descriptor() ([]byte, []int)
Deprecated: Use BatchGetSitesResponse.ProtoReflect.Descriptor instead.
func (*BatchGetSitesResponse) GetSites ¶ added in v0.49.0
func (x *BatchGetSitesResponse) GetSites() []*Site
func (*BatchGetSitesResponse) ProtoMessage ¶ added in v0.49.0
func (*BatchGetSitesResponse) ProtoMessage()
func (*BatchGetSitesResponse) ProtoReflect ¶ added in v0.49.0
func (x *BatchGetSitesResponse) ProtoReflect() protoreflect.Message
func (*BatchGetSitesResponse) Reset ¶ added in v0.49.0
func (x *BatchGetSitesResponse) Reset()
func (*BatchGetSitesResponse) String ¶ added in v0.49.0
func (x *BatchGetSitesResponse) String() string
type CreateShipmentRequest ¶
type CreateShipmentRequest struct { // The resource name of the parent shipper for which this shipment will be created. // Format: shippers/{shipper} Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // The shipment to create. Shipment *Shipment `protobuf:"bytes,2,opt,name=shipment,proto3" json:"shipment,omitempty"` // contains filtered or unexported fields }
Request message for FreightService.CreateShipment.
func (*CreateShipmentRequest) Descriptor
deprecated
func (*CreateShipmentRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateShipmentRequest.ProtoReflect.Descriptor instead.
func (*CreateShipmentRequest) GetParent ¶
func (x *CreateShipmentRequest) GetParent() string
func (*CreateShipmentRequest) GetShipment ¶
func (x *CreateShipmentRequest) GetShipment() *Shipment
func (*CreateShipmentRequest) ProtoMessage ¶
func (*CreateShipmentRequest) ProtoMessage()
func (*CreateShipmentRequest) ProtoReflect ¶
func (x *CreateShipmentRequest) ProtoReflect() protoreflect.Message
func (*CreateShipmentRequest) Reset ¶
func (x *CreateShipmentRequest) Reset()
func (*CreateShipmentRequest) String ¶
func (x *CreateShipmentRequest) String() string
type CreateShipperRequest ¶
type CreateShipperRequest struct { // The shipper to create. Shipper *Shipper `protobuf:"bytes,1,opt,name=shipper,proto3" json:"shipper,omitempty"` // contains filtered or unexported fields }
Request message for FreightService.CreateShipper.
func (*CreateShipperRequest) Descriptor
deprecated
func (*CreateShipperRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateShipperRequest.ProtoReflect.Descriptor instead.
func (*CreateShipperRequest) GetShipper ¶
func (x *CreateShipperRequest) GetShipper() *Shipper
func (*CreateShipperRequest) ProtoMessage ¶
func (*CreateShipperRequest) ProtoMessage()
func (*CreateShipperRequest) ProtoReflect ¶
func (x *CreateShipperRequest) ProtoReflect() protoreflect.Message
func (*CreateShipperRequest) Reset ¶
func (x *CreateShipperRequest) Reset()
func (*CreateShipperRequest) String ¶
func (x *CreateShipperRequest) String() string
type CreateSiteRequest ¶
type CreateSiteRequest struct { // The resource name of the parent shipper for which this site will be created. // Format: shippers/{shipper} Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // The site to create. Site *Site `protobuf:"bytes,2,opt,name=site,proto3" json:"site,omitempty"` // contains filtered or unexported fields }
Request message for FreightService.CreateSite.
func (*CreateSiteRequest) Descriptor
deprecated
func (*CreateSiteRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateSiteRequest.ProtoReflect.Descriptor instead.
func (*CreateSiteRequest) GetParent ¶
func (x *CreateSiteRequest) GetParent() string
func (*CreateSiteRequest) GetSite ¶
func (x *CreateSiteRequest) GetSite() *Site
func (*CreateSiteRequest) ProtoMessage ¶
func (*CreateSiteRequest) ProtoMessage()
func (*CreateSiteRequest) ProtoReflect ¶
func (x *CreateSiteRequest) ProtoReflect() protoreflect.Message
func (*CreateSiteRequest) Reset ¶
func (x *CreateSiteRequest) Reset()
func (*CreateSiteRequest) String ¶
func (x *CreateSiteRequest) String() string
type DeleteShipmentRequest ¶
type DeleteShipmentRequest struct { // The resource name of the shipment to delete. // Format: shippers/{shipper}/shipments/{shipment} Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
Request message for FreightService.DeleteShipment.
func (*DeleteShipmentRequest) Descriptor
deprecated
func (*DeleteShipmentRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteShipmentRequest.ProtoReflect.Descriptor instead.
func (*DeleteShipmentRequest) GetName ¶
func (x *DeleteShipmentRequest) GetName() string
func (*DeleteShipmentRequest) ProtoMessage ¶
func (*DeleteShipmentRequest) ProtoMessage()
func (*DeleteShipmentRequest) ProtoReflect ¶
func (x *DeleteShipmentRequest) ProtoReflect() protoreflect.Message
func (*DeleteShipmentRequest) Reset ¶
func (x *DeleteShipmentRequest) Reset()
func (*DeleteShipmentRequest) String ¶
func (x *DeleteShipmentRequest) String() string
type DeleteShipperRequest ¶
type DeleteShipperRequest struct { // The resource name of the shipper to delete. // Format: shippers/{shipper} Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
Request message for FreightService.DeleteShipper.
func (*DeleteShipperRequest) Descriptor
deprecated
func (*DeleteShipperRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteShipperRequest.ProtoReflect.Descriptor instead.
func (*DeleteShipperRequest) GetName ¶
func (x *DeleteShipperRequest) GetName() string
func (*DeleteShipperRequest) ProtoMessage ¶
func (*DeleteShipperRequest) ProtoMessage()
func (*DeleteShipperRequest) ProtoReflect ¶
func (x *DeleteShipperRequest) ProtoReflect() protoreflect.Message
func (*DeleteShipperRequest) Reset ¶
func (x *DeleteShipperRequest) Reset()
func (*DeleteShipperRequest) String ¶
func (x *DeleteShipperRequest) String() string
type DeleteSiteRequest ¶
type DeleteSiteRequest struct { // The resource name of the site to delete. // Format: shippers/{shipper}/sites/{site} Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
Request message for FreightService.DeleteSite.
func (*DeleteSiteRequest) Descriptor
deprecated
func (*DeleteSiteRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteSiteRequest.ProtoReflect.Descriptor instead.
func (*DeleteSiteRequest) GetName ¶
func (x *DeleteSiteRequest) GetName() string
func (*DeleteSiteRequest) ProtoMessage ¶
func (*DeleteSiteRequest) ProtoMessage()
func (*DeleteSiteRequest) ProtoReflect ¶
func (x *DeleteSiteRequest) ProtoReflect() protoreflect.Message
func (*DeleteSiteRequest) Reset ¶
func (x *DeleteSiteRequest) Reset()
func (*DeleteSiteRequest) String ¶
func (x *DeleteSiteRequest) String() string
type FreightServiceClient ¶
type FreightServiceClient interface { // Get a shipper. // // See: https://google.aip.dev/131 (Standard methods: Get). GetShipper(ctx context.Context, in *GetShipperRequest, opts ...grpc.CallOption) (*Shipper, error) // List shippers. // // See: https://google.aip.dev/132 (Standard methods: List). ListShippers(ctx context.Context, in *ListShippersRequest, opts ...grpc.CallOption) (*ListShippersResponse, error) // Create a shipper. // // See: https://google.aip.dev/133 (Standard methods: Create). CreateShipper(ctx context.Context, in *CreateShipperRequest, opts ...grpc.CallOption) (*Shipper, error) // Update a shipper. // // See: https://google.aip.dev/134 (Standard methods: Update). UpdateShipper(ctx context.Context, in *UpdateShipperRequest, opts ...grpc.CallOption) (*Shipper, error) // Delete a shipper. // // See: https://google.aip.dev/135 (Standard methods: Delete). // See: https://google.aip.dev/164 (Soft delete). DeleteShipper(ctx context.Context, in *DeleteShipperRequest, opts ...grpc.CallOption) (*Shipper, error) // Get a site. // // See: https://google.aip.dev/131 (Standard methods: Get). GetSite(ctx context.Context, in *GetSiteRequest, opts ...grpc.CallOption) (*Site, error) // List sites for a shipper. // // See: https://google.aip.dev/132 (Standard methods: List). ListSites(ctx context.Context, in *ListSitesRequest, opts ...grpc.CallOption) (*ListSitesResponse, error) // Create a site. // // See: https://google.aip.dev/133 (Standard methods: Create). CreateSite(ctx context.Context, in *CreateSiteRequest, opts ...grpc.CallOption) (*Site, error) // Update a site. // // See: https://google.aip.dev/134 (Standard methods: Update). UpdateSite(ctx context.Context, in *UpdateSiteRequest, opts ...grpc.CallOption) (*Site, error) // Delete a site. // // See: https://google.aip.dev/135 (Standard methods: Delete). // See: https://google.aip.dev/164 (Soft delete). DeleteSite(ctx context.Context, in *DeleteSiteRequest, opts ...grpc.CallOption) (*Site, error) // Batch get sites. // // See: https://google.aip.dev/231 (Batch methods: Get). BatchGetSites(ctx context.Context, in *BatchGetSitesRequest, opts ...grpc.CallOption) (*BatchGetSitesResponse, error) // Get a shipment. // // See: https://google.aip.dev/131 (Standard methods: Get). GetShipment(ctx context.Context, in *GetShipmentRequest, opts ...grpc.CallOption) (*Shipment, error) // List shipments for a shipper. // // See: https://google.aip.dev/132 (Standard methods: List). ListShipments(ctx context.Context, in *ListShipmentsRequest, opts ...grpc.CallOption) (*ListShipmentsResponse, error) // Create a shipment. // // See: https://google.aip.dev/133 (Standard methods: Create). CreateShipment(ctx context.Context, in *CreateShipmentRequest, opts ...grpc.CallOption) (*Shipment, error) // Update a shipment. // // See: https://google.aip.dev/134 (Standard methods: Update). UpdateShipment(ctx context.Context, in *UpdateShipmentRequest, opts ...grpc.CallOption) (*Shipment, error) // Delete a shipment. // // See: https://google.aip.dev/135 (Standard methods: Delete). // See: https://google.aip.dev/164 (Soft delete). DeleteShipment(ctx context.Context, in *DeleteShipmentRequest, opts ...grpc.CallOption) (*Shipment, error) }
FreightServiceClient is the client API for FreightService 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.
func NewFreightServiceClient ¶
func NewFreightServiceClient(cc grpc.ClientConnInterface) FreightServiceClient
type FreightServiceServer ¶
type FreightServiceServer interface { // Get a shipper. // // See: https://google.aip.dev/131 (Standard methods: Get). GetShipper(context.Context, *GetShipperRequest) (*Shipper, error) // List shippers. // // See: https://google.aip.dev/132 (Standard methods: List). ListShippers(context.Context, *ListShippersRequest) (*ListShippersResponse, error) // Create a shipper. // // See: https://google.aip.dev/133 (Standard methods: Create). CreateShipper(context.Context, *CreateShipperRequest) (*Shipper, error) // Update a shipper. // // See: https://google.aip.dev/134 (Standard methods: Update). UpdateShipper(context.Context, *UpdateShipperRequest) (*Shipper, error) // Delete a shipper. // // See: https://google.aip.dev/135 (Standard methods: Delete). // See: https://google.aip.dev/164 (Soft delete). DeleteShipper(context.Context, *DeleteShipperRequest) (*Shipper, error) // Get a site. // // See: https://google.aip.dev/131 (Standard methods: Get). GetSite(context.Context, *GetSiteRequest) (*Site, error) // List sites for a shipper. // // See: https://google.aip.dev/132 (Standard methods: List). ListSites(context.Context, *ListSitesRequest) (*ListSitesResponse, error) // Create a site. // // See: https://google.aip.dev/133 (Standard methods: Create). CreateSite(context.Context, *CreateSiteRequest) (*Site, error) // Update a site. // // See: https://google.aip.dev/134 (Standard methods: Update). UpdateSite(context.Context, *UpdateSiteRequest) (*Site, error) // Delete a site. // // See: https://google.aip.dev/135 (Standard methods: Delete). // See: https://google.aip.dev/164 (Soft delete). DeleteSite(context.Context, *DeleteSiteRequest) (*Site, error) // Batch get sites. // // See: https://google.aip.dev/231 (Batch methods: Get). BatchGetSites(context.Context, *BatchGetSitesRequest) (*BatchGetSitesResponse, error) // Get a shipment. // // See: https://google.aip.dev/131 (Standard methods: Get). GetShipment(context.Context, *GetShipmentRequest) (*Shipment, error) // List shipments for a shipper. // // See: https://google.aip.dev/132 (Standard methods: List). ListShipments(context.Context, *ListShipmentsRequest) (*ListShipmentsResponse, error) // Create a shipment. // // See: https://google.aip.dev/133 (Standard methods: Create). CreateShipment(context.Context, *CreateShipmentRequest) (*Shipment, error) // Update a shipment. // // See: https://google.aip.dev/134 (Standard methods: Update). UpdateShipment(context.Context, *UpdateShipmentRequest) (*Shipment, error) // Delete a shipment. // // See: https://google.aip.dev/135 (Standard methods: Delete). // See: https://google.aip.dev/164 (Soft delete). DeleteShipment(context.Context, *DeleteShipmentRequest) (*Shipment, error) }
FreightServiceServer is the server API for FreightService service. All implementations should embed UnimplementedFreightServiceServer for forward compatibility
type GetShipmentRequest ¶
type GetShipmentRequest struct { // The resource name of the shipment to retrieve. // Format: shippers/{shipper}/shipments/{shipment} Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
Request message for FreightService.GetShipment.
func (*GetShipmentRequest) Descriptor
deprecated
func (*GetShipmentRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetShipmentRequest.ProtoReflect.Descriptor instead.
func (*GetShipmentRequest) GetName ¶
func (x *GetShipmentRequest) GetName() string
func (*GetShipmentRequest) ProtoMessage ¶
func (*GetShipmentRequest) ProtoMessage()
func (*GetShipmentRequest) ProtoReflect ¶
func (x *GetShipmentRequest) ProtoReflect() protoreflect.Message
func (*GetShipmentRequest) Reset ¶
func (x *GetShipmentRequest) Reset()
func (*GetShipmentRequest) String ¶
func (x *GetShipmentRequest) String() string
type GetShipperRequest ¶
type GetShipperRequest struct { // The resource name of the shipper to retrieve. // Format: shippers/{shipper} Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
Request message for FreightService.GetShipper.
func (*GetShipperRequest) Descriptor
deprecated
func (*GetShipperRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetShipperRequest.ProtoReflect.Descriptor instead.
func (*GetShipperRequest) GetName ¶
func (x *GetShipperRequest) GetName() string
func (*GetShipperRequest) ProtoMessage ¶
func (*GetShipperRequest) ProtoMessage()
func (*GetShipperRequest) ProtoReflect ¶
func (x *GetShipperRequest) ProtoReflect() protoreflect.Message
func (*GetShipperRequest) Reset ¶
func (x *GetShipperRequest) Reset()
func (*GetShipperRequest) String ¶
func (x *GetShipperRequest) String() string
type GetSiteRequest ¶
type GetSiteRequest struct { // The resource name of the site to retrieve. // Format: shippers/{shipper}/sites/{site} Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
Request message for FreightService.GetSite.
func (*GetSiteRequest) Descriptor
deprecated
func (*GetSiteRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetSiteRequest.ProtoReflect.Descriptor instead.
func (*GetSiteRequest) GetName ¶
func (x *GetSiteRequest) GetName() string
func (*GetSiteRequest) ProtoMessage ¶
func (*GetSiteRequest) ProtoMessage()
func (*GetSiteRequest) ProtoReflect ¶
func (x *GetSiteRequest) ProtoReflect() protoreflect.Message
func (*GetSiteRequest) Reset ¶
func (x *GetSiteRequest) Reset()
func (*GetSiteRequest) String ¶
func (x *GetSiteRequest) String() string
type LineItem ¶
type LineItem struct { // 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"` // contains filtered or unexported fields }
A shipment line item.
func (*LineItem) Descriptor
deprecated
func (*LineItem) GetExternalReferenceId ¶ added in v0.59.0
func (*LineItem) GetQuantity ¶
func (*LineItem) GetVolumeM3 ¶
func (*LineItem) GetWeightKg ¶
func (*LineItem) ProtoMessage ¶
func (*LineItem) ProtoMessage()
func (*LineItem) ProtoReflect ¶
func (x *LineItem) ProtoReflect() protoreflect.Message
type ListShipmentsRequest ¶
type ListShipmentsRequest struct { // The resource name of the parent, which owns this collection of shipments. // Format: shippers/{shipper} Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // Requested page size. Server may return fewer shipments than requested. // If unspecified, server will pick an appropriate default. PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // A token identifying a page of results the server should return. // Typically, this is the value of // [ListShipmentsResponse.next_page_token][einride.example.freight.v1.ListShipmentsResponse.next_page_token] // returned from the previous call to `ListShipments` method. PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // contains filtered or unexported fields }
Request message for FreightService.ListShipments.
func (*ListShipmentsRequest) Descriptor
deprecated
func (*ListShipmentsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListShipmentsRequest.ProtoReflect.Descriptor instead.
func (*ListShipmentsRequest) GetPageSize ¶
func (x *ListShipmentsRequest) GetPageSize() int32
func (*ListShipmentsRequest) GetPageToken ¶
func (x *ListShipmentsRequest) GetPageToken() string
func (*ListShipmentsRequest) GetParent ¶
func (x *ListShipmentsRequest) GetParent() string
func (*ListShipmentsRequest) ProtoMessage ¶
func (*ListShipmentsRequest) ProtoMessage()
func (*ListShipmentsRequest) ProtoReflect ¶
func (x *ListShipmentsRequest) ProtoReflect() protoreflect.Message
func (*ListShipmentsRequest) Reset ¶
func (x *ListShipmentsRequest) Reset()
func (*ListShipmentsRequest) String ¶
func (x *ListShipmentsRequest) String() string
type ListShipmentsResponse ¶
type ListShipmentsResponse struct { // The list of shipments. Shipments []*Shipment `protobuf:"bytes,1,rep,name=shipments,proto3" json:"shipments,omitempty"` // A token to retrieve next page of results. Pass this value in the // [ListShipmentsRequest.page_token][einride.example.freight.v1.ListShipmentsRequest.page_token] // field in the subsequent call to `ListShipments` method to retrieve the next // page of results. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` // contains filtered or unexported fields }
Response message for FreightService.ListShipments.
func (*ListShipmentsResponse) Descriptor
deprecated
func (*ListShipmentsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListShipmentsResponse.ProtoReflect.Descriptor instead.
func (*ListShipmentsResponse) GetNextPageToken ¶
func (x *ListShipmentsResponse) GetNextPageToken() string
func (*ListShipmentsResponse) GetShipments ¶
func (x *ListShipmentsResponse) GetShipments() []*Shipment
func (*ListShipmentsResponse) ProtoMessage ¶
func (*ListShipmentsResponse) ProtoMessage()
func (*ListShipmentsResponse) ProtoReflect ¶
func (x *ListShipmentsResponse) ProtoReflect() protoreflect.Message
func (*ListShipmentsResponse) Reset ¶
func (x *ListShipmentsResponse) Reset()
func (*ListShipmentsResponse) String ¶
func (x *ListShipmentsResponse) String() string
type ListShippersRequest ¶
type ListShippersRequest struct { // Requested page size. Server may return fewer shippers than requested. // If unspecified, server will pick an appropriate default. PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // A token identifying a page of results the server should return. // Typically, this is the value of // [ListShippersResponse.next_page_token][einride.example.freight.v1.ListShippersResponse.next_page_token] // returned from the previous call to `ListShippers` method. PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // contains filtered or unexported fields }
Request message for FreightService.ListShippers.
func (*ListShippersRequest) Descriptor
deprecated
func (*ListShippersRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListShippersRequest.ProtoReflect.Descriptor instead.
func (*ListShippersRequest) GetPageSize ¶
func (x *ListShippersRequest) GetPageSize() int32
func (*ListShippersRequest) GetPageToken ¶
func (x *ListShippersRequest) GetPageToken() string
func (*ListShippersRequest) ProtoMessage ¶
func (*ListShippersRequest) ProtoMessage()
func (*ListShippersRequest) ProtoReflect ¶
func (x *ListShippersRequest) ProtoReflect() protoreflect.Message
func (*ListShippersRequest) Reset ¶
func (x *ListShippersRequest) Reset()
func (*ListShippersRequest) String ¶
func (x *ListShippersRequest) String() string
type ListShippersResponse ¶
type ListShippersResponse struct { // The list of shippers. Shippers []*Shipper `protobuf:"bytes,1,rep,name=shippers,proto3" json:"shippers,omitempty"` // A token to retrieve next page of results. Pass this value in the // [ListShippersRequest.page_token][einride.example.freight.v1.ListShippersRequest.page_token] // field in the subsequent call to `ListShippers` method to retrieve the next // page of results. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` // contains filtered or unexported fields }
Response message for FreightService.ListShippers.
func (*ListShippersResponse) Descriptor
deprecated
func (*ListShippersResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListShippersResponse.ProtoReflect.Descriptor instead.
func (*ListShippersResponse) GetNextPageToken ¶
func (x *ListShippersResponse) GetNextPageToken() string
func (*ListShippersResponse) GetShippers ¶
func (x *ListShippersResponse) GetShippers() []*Shipper
func (*ListShippersResponse) ProtoMessage ¶
func (*ListShippersResponse) ProtoMessage()
func (*ListShippersResponse) ProtoReflect ¶
func (x *ListShippersResponse) ProtoReflect() protoreflect.Message
func (*ListShippersResponse) Reset ¶
func (x *ListShippersResponse) Reset()
func (*ListShippersResponse) String ¶
func (x *ListShippersResponse) String() string
type ListSitesRequest ¶
type ListSitesRequest struct { // The resource name of the parent, which owns this collection of sites. // Format: shippers/{shipper} Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // Requested page size. Server may return fewer sites than requested. // If unspecified, server will pick an appropriate default. PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // A token identifying a page of results the server should return. // Typically, this is the value of // [ListSitesResponse.next_page_token][einride.example.freight.v1.ListSitesResponse.next_page_token] // returned from the previous call to `ListSites` method. PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // Number of resource to skip in the request. // - A request with no page token and a skip value of 30 returns a single // page of results starting with the 31st result. // - A request with a page token corresponding to the 51st result (because the // first 50 results were returned on the first page) and a skip value of 30 // returns a single page of results starting with the 81st result. Skip int32 `protobuf:"varint,4,opt,name=skip,proto3" json:"skip,omitempty"` // contains filtered or unexported fields }
Request message for FreightService.ListSites.
func (*ListSitesRequest) Descriptor
deprecated
func (*ListSitesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListSitesRequest.ProtoReflect.Descriptor instead.
func (*ListSitesRequest) GetPageSize ¶
func (x *ListSitesRequest) GetPageSize() int32
func (*ListSitesRequest) GetPageToken ¶
func (x *ListSitesRequest) GetPageToken() string
func (*ListSitesRequest) GetParent ¶
func (x *ListSitesRequest) GetParent() string
func (*ListSitesRequest) GetSkip ¶ added in v0.51.0
func (x *ListSitesRequest) GetSkip() int32
func (*ListSitesRequest) ProtoMessage ¶
func (*ListSitesRequest) ProtoMessage()
func (*ListSitesRequest) ProtoReflect ¶
func (x *ListSitesRequest) ProtoReflect() protoreflect.Message
func (*ListSitesRequest) Reset ¶
func (x *ListSitesRequest) Reset()
func (*ListSitesRequest) String ¶
func (x *ListSitesRequest) String() string
type ListSitesResponse ¶
type ListSitesResponse struct { // The list of sites. Sites []*Site `protobuf:"bytes,1,rep,name=sites,proto3" json:"sites,omitempty"` // A token to retrieve next page of results. Pass this value in the // [ListSitesRequest.page_token][einride.example.freight.v1.ListSitesRequest.page_token] // field in the subsequent call to `ListSites` method to retrieve the next // page of results. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` // contains filtered or unexported fields }
Response message for FreightService.ListSites.
func (*ListSitesResponse) Descriptor
deprecated
func (*ListSitesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListSitesResponse.ProtoReflect.Descriptor instead.
func (*ListSitesResponse) GetNextPageToken ¶
func (x *ListSitesResponse) GetNextPageToken() string
func (*ListSitesResponse) GetSites ¶
func (x *ListSitesResponse) GetSites() []*Site
func (*ListSitesResponse) ProtoMessage ¶
func (*ListSitesResponse) ProtoMessage()
func (*ListSitesResponse) ProtoReflect ¶
func (x *ListSitesResponse) ProtoReflect() protoreflect.Message
func (*ListSitesResponse) Reset ¶
func (x *ListSitesResponse) Reset()
func (*ListSitesResponse) String ¶
func (x *ListSitesResponse) String() string
type Shipment ¶
type Shipment struct { // 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 `` /* 164-byte string literal not displayed */ // Reference ID provided by external system. ExternalReferenceId string `protobuf:"bytes,13,opt,name=external_reference_id,json=externalReferenceId,proto3" json:"external_reference_id,omitempty"` // contains filtered or unexported fields }
A shipment represents transportation of goods between an origin [site][einride.example.freight.v1.Site] and a destination [site][einride.example.freight.v1.Site].
func (*Shipment) Descriptor
deprecated
func (*Shipment) GetAnnotations ¶
func (*Shipment) GetCreateTime ¶
func (x *Shipment) GetCreateTime() *timestamppb.Timestamp
func (*Shipment) GetDeleteTime ¶
func (x *Shipment) GetDeleteTime() *timestamppb.Timestamp
func (*Shipment) GetDeliveryEarliestTime ¶
func (x *Shipment) GetDeliveryEarliestTime() *timestamppb.Timestamp
func (*Shipment) GetDeliveryLatestTime ¶
func (x *Shipment) GetDeliveryLatestTime() *timestamppb.Timestamp
func (*Shipment) GetDestinationSite ¶
func (*Shipment) GetExternalReferenceId ¶ added in v0.59.0
func (*Shipment) GetLineItems ¶
func (*Shipment) GetOriginSite ¶
func (*Shipment) GetPickupEarliestTime ¶
func (x *Shipment) GetPickupEarliestTime() *timestamppb.Timestamp
func (*Shipment) GetPickupLatestTime ¶
func (x *Shipment) GetPickupLatestTime() *timestamppb.Timestamp
func (*Shipment) GetUpdateTime ¶
func (x *Shipment) GetUpdateTime() *timestamppb.Timestamp
func (*Shipment) ProtoMessage ¶
func (*Shipment) ProtoMessage()
func (*Shipment) ProtoReflect ¶
func (x *Shipment) ProtoReflect() protoreflect.Message
type ShipmentResourceName ¶ added in v0.49.0
func (ShipmentResourceName) ContainsWildcard ¶ added in v0.49.0
func (n ShipmentResourceName) ContainsWildcard() bool
func (ShipmentResourceName) MarshalString ¶ added in v0.49.0
func (n ShipmentResourceName) MarshalString() (string, error)
func (ShipmentResourceName) ShipperResourceName ¶ added in v0.49.0
func (n ShipmentResourceName) ShipperResourceName() ShipperResourceName
func (ShipmentResourceName) String ¶ added in v0.49.0
func (n ShipmentResourceName) String() string
func (*ShipmentResourceName) UnmarshalString ¶ added in v0.49.0
func (n *ShipmentResourceName) UnmarshalString(name string) error
func (ShipmentResourceName) Validate ¶ added in v0.49.0
func (n ShipmentResourceName) Validate() error
type Shipper ¶
type Shipper struct { // The resource name of the shipper. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The creation timestamp of the shipper. CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // The last update timestamp of the shipper. // // Updated when create/update/delete operation is performed. UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // The deletion timestamp of the shipper. DeleteTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=delete_time,json=deleteTime,proto3" json:"delete_time,omitempty"` // The display name of the shipper. DisplayName string `protobuf:"bytes,5,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` // contains filtered or unexported fields }
A shipper is a supplier or owner of goods to be transported.
func (*Shipper) Descriptor
deprecated
func (*Shipper) GetCreateTime ¶
func (x *Shipper) GetCreateTime() *timestamppb.Timestamp
func (*Shipper) GetDeleteTime ¶
func (x *Shipper) GetDeleteTime() *timestamppb.Timestamp
func (*Shipper) GetDisplayName ¶
func (*Shipper) GetUpdateTime ¶
func (x *Shipper) GetUpdateTime() *timestamppb.Timestamp
func (*Shipper) ProtoMessage ¶
func (*Shipper) ProtoMessage()
func (*Shipper) ProtoReflect ¶
func (x *Shipper) ProtoReflect() protoreflect.Message
type ShipperResourceName ¶ added in v0.49.0
type ShipperResourceName struct {
Shipper string
}
func (ShipperResourceName) ContainsWildcard ¶ added in v0.49.0
func (n ShipperResourceName) ContainsWildcard() bool
func (ShipperResourceName) MarshalString ¶ added in v0.49.0
func (n ShipperResourceName) MarshalString() (string, error)
func (ShipperResourceName) ShipmentResourceName ¶ added in v0.57.0
func (n ShipperResourceName) ShipmentResourceName( shipment string, ) ShipmentResourceName
func (ShipperResourceName) SiteResourceName ¶ added in v0.57.0
func (n ShipperResourceName) SiteResourceName( site string, ) SiteResourceName
func (ShipperResourceName) String ¶ added in v0.49.0
func (n ShipperResourceName) String() string
func (*ShipperResourceName) UnmarshalString ¶ added in v0.49.0
func (n *ShipperResourceName) UnmarshalString(name string) error
func (ShipperResourceName) Validate ¶ added in v0.49.0
func (n ShipperResourceName) Validate() error
type Site ¶
type Site struct { // The resource name of the site. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The creation timestamp of the site. CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // The last update timestamp of the site. // // Updated when create/update/delete operation is performed. UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // The deletion timestamp of the site. DeleteTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=delete_time,json=deleteTime,proto3" json:"delete_time,omitempty"` // The display name of the site. DisplayName string `protobuf:"bytes,5,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` // The geographic location of the site. LatLng *latlng.LatLng `protobuf:"bytes,6,opt,name=lat_lng,json=latLng,proto3" json:"lat_lng,omitempty"` // contains filtered or unexported fields }
A site is a node in a [shipper][einride.example.freight.v1.Shipper]'s transport network.
func (*Site) Descriptor
deprecated
func (*Site) GetCreateTime ¶
func (x *Site) GetCreateTime() *timestamppb.Timestamp
func (*Site) GetDeleteTime ¶
func (x *Site) GetDeleteTime() *timestamppb.Timestamp
func (*Site) GetDisplayName ¶
func (*Site) GetUpdateTime ¶
func (x *Site) GetUpdateTime() *timestamppb.Timestamp
func (*Site) ProtoMessage ¶
func (*Site) ProtoMessage()
func (*Site) ProtoReflect ¶
func (x *Site) ProtoReflect() protoreflect.Message
type SiteResourceName ¶ added in v0.49.0
func (SiteResourceName) ContainsWildcard ¶ added in v0.49.0
func (n SiteResourceName) ContainsWildcard() bool
func (SiteResourceName) MarshalString ¶ added in v0.49.0
func (n SiteResourceName) MarshalString() (string, error)
func (SiteResourceName) ShipperResourceName ¶ added in v0.49.0
func (n SiteResourceName) ShipperResourceName() ShipperResourceName
func (SiteResourceName) String ¶ added in v0.49.0
func (n SiteResourceName) String() string
func (*SiteResourceName) UnmarshalString ¶ added in v0.49.0
func (n *SiteResourceName) UnmarshalString(name string) error
func (SiteResourceName) Validate ¶ added in v0.49.0
func (n SiteResourceName) Validate() error
type UnimplementedFreightServiceServer ¶
type UnimplementedFreightServiceServer struct { }
UnimplementedFreightServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedFreightServiceServer) BatchGetSites ¶ added in v0.49.0
func (UnimplementedFreightServiceServer) BatchGetSites(context.Context, *BatchGetSitesRequest) (*BatchGetSitesResponse, error)
func (UnimplementedFreightServiceServer) CreateShipment ¶
func (UnimplementedFreightServiceServer) CreateShipment(context.Context, *CreateShipmentRequest) (*Shipment, error)
func (UnimplementedFreightServiceServer) CreateShipper ¶
func (UnimplementedFreightServiceServer) CreateShipper(context.Context, *CreateShipperRequest) (*Shipper, error)
func (UnimplementedFreightServiceServer) CreateSite ¶
func (UnimplementedFreightServiceServer) CreateSite(context.Context, *CreateSiteRequest) (*Site, error)
func (UnimplementedFreightServiceServer) DeleteShipment ¶
func (UnimplementedFreightServiceServer) DeleteShipment(context.Context, *DeleteShipmentRequest) (*Shipment, error)
func (UnimplementedFreightServiceServer) DeleteShipper ¶
func (UnimplementedFreightServiceServer) DeleteShipper(context.Context, *DeleteShipperRequest) (*Shipper, error)
func (UnimplementedFreightServiceServer) DeleteSite ¶
func (UnimplementedFreightServiceServer) DeleteSite(context.Context, *DeleteSiteRequest) (*Site, error)
func (UnimplementedFreightServiceServer) GetShipment ¶
func (UnimplementedFreightServiceServer) GetShipment(context.Context, *GetShipmentRequest) (*Shipment, error)
func (UnimplementedFreightServiceServer) GetShipper ¶
func (UnimplementedFreightServiceServer) GetShipper(context.Context, *GetShipperRequest) (*Shipper, error)
func (UnimplementedFreightServiceServer) GetSite ¶
func (UnimplementedFreightServiceServer) GetSite(context.Context, *GetSiteRequest) (*Site, error)
func (UnimplementedFreightServiceServer) ListShipments ¶
func (UnimplementedFreightServiceServer) ListShipments(context.Context, *ListShipmentsRequest) (*ListShipmentsResponse, error)
func (UnimplementedFreightServiceServer) ListShippers ¶
func (UnimplementedFreightServiceServer) ListShippers(context.Context, *ListShippersRequest) (*ListShippersResponse, error)
func (UnimplementedFreightServiceServer) ListSites ¶
func (UnimplementedFreightServiceServer) ListSites(context.Context, *ListSitesRequest) (*ListSitesResponse, error)
func (UnimplementedFreightServiceServer) UpdateShipment ¶
func (UnimplementedFreightServiceServer) UpdateShipment(context.Context, *UpdateShipmentRequest) (*Shipment, error)
func (UnimplementedFreightServiceServer) UpdateShipper ¶
func (UnimplementedFreightServiceServer) UpdateShipper(context.Context, *UpdateShipperRequest) (*Shipper, error)
func (UnimplementedFreightServiceServer) UpdateSite ¶
func (UnimplementedFreightServiceServer) UpdateSite(context.Context, *UpdateSiteRequest) (*Site, error)
type UnsafeFreightServiceServer ¶
type UnsafeFreightServiceServer interface {
// contains filtered or unexported methods
}
UnsafeFreightServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to FreightServiceServer will result in compilation errors.
type UpdateShipmentRequest ¶
type UpdateShipmentRequest struct { // The shipment to update with. The name must match or be empty. // The shipment's `name` field is used to identify the shipment to be updated. // Format: shippers/{shipper}/shipments/{shipment} Shipment *Shipment `protobuf:"bytes,1,opt,name=shipment,proto3" json:"shipment,omitempty"` // The list of fields to be updated. UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // contains filtered or unexported fields }
Request message for FreightService.UpdateShipment.
func (*UpdateShipmentRequest) Descriptor
deprecated
func (*UpdateShipmentRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateShipmentRequest.ProtoReflect.Descriptor instead.
func (*UpdateShipmentRequest) GetShipment ¶
func (x *UpdateShipmentRequest) GetShipment() *Shipment
func (*UpdateShipmentRequest) GetUpdateMask ¶
func (x *UpdateShipmentRequest) GetUpdateMask() *fieldmaskpb.FieldMask
func (*UpdateShipmentRequest) ProtoMessage ¶
func (*UpdateShipmentRequest) ProtoMessage()
func (*UpdateShipmentRequest) ProtoReflect ¶
func (x *UpdateShipmentRequest) ProtoReflect() protoreflect.Message
func (*UpdateShipmentRequest) Reset ¶
func (x *UpdateShipmentRequest) Reset()
func (*UpdateShipmentRequest) String ¶
func (x *UpdateShipmentRequest) String() string
type UpdateShipperRequest ¶
type UpdateShipperRequest struct { // The shipper to update with. The name must match or be empty. // The shipper's `name` field is used to identify the shipper to be updated. // Format: shippers/{shipper} Shipper *Shipper `protobuf:"bytes,1,opt,name=shipper,proto3" json:"shipper,omitempty"` // The list of fields to be updated. UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // contains filtered or unexported fields }
Request message for FreightService.UpdateShipper.
func (*UpdateShipperRequest) Descriptor
deprecated
func (*UpdateShipperRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateShipperRequest.ProtoReflect.Descriptor instead.
func (*UpdateShipperRequest) GetShipper ¶
func (x *UpdateShipperRequest) GetShipper() *Shipper
func (*UpdateShipperRequest) GetUpdateMask ¶
func (x *UpdateShipperRequest) GetUpdateMask() *fieldmaskpb.FieldMask
func (*UpdateShipperRequest) ProtoMessage ¶
func (*UpdateShipperRequest) ProtoMessage()
func (*UpdateShipperRequest) ProtoReflect ¶
func (x *UpdateShipperRequest) ProtoReflect() protoreflect.Message
func (*UpdateShipperRequest) Reset ¶
func (x *UpdateShipperRequest) Reset()
func (*UpdateShipperRequest) String ¶
func (x *UpdateShipperRequest) String() string
type UpdateSiteRequest ¶
type UpdateSiteRequest struct { // The site to update with. The name must match or be empty. // The site's `name` field is used to identify the site to be updated. // Format: shippers/{shipper}/sites/{site} Site *Site `protobuf:"bytes,1,opt,name=site,proto3" json:"site,omitempty"` // The list of fields to be updated. UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // contains filtered or unexported fields }
Request message for FreightService.UpdateSite.
func (*UpdateSiteRequest) Descriptor
deprecated
func (*UpdateSiteRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateSiteRequest.ProtoReflect.Descriptor instead.
func (*UpdateSiteRequest) GetSite ¶
func (x *UpdateSiteRequest) GetSite() *Site
func (*UpdateSiteRequest) GetUpdateMask ¶
func (x *UpdateSiteRequest) GetUpdateMask() *fieldmaskpb.FieldMask
func (*UpdateSiteRequest) ProtoMessage ¶
func (*UpdateSiteRequest) ProtoMessage()
func (*UpdateSiteRequest) ProtoReflect ¶
func (x *UpdateSiteRequest) ProtoReflect() protoreflect.Message
func (*UpdateSiteRequest) Reset ¶
func (x *UpdateSiteRequest) Reset()
func (*UpdateSiteRequest) String ¶
func (x *UpdateSiteRequest) String() string