Documentation ¶
Index ¶
- Variables
- func NewFreightServiceIAMDescriptor() (*iamreflect.IAMDescriptor, error)
- func RegisterFreightServiceServer(s grpc.ServiceRegistrar, srv FreightServiceServer)
- type BatchGetShipmentsRequest
- func (*BatchGetShipmentsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *BatchGetShipmentsRequest) GetNames() []string
- func (x *BatchGetShipmentsRequest) GetParent() string
- func (*BatchGetShipmentsRequest) ProtoMessage()
- func (x *BatchGetShipmentsRequest) ProtoReflect() protoreflect.Message
- func (x *BatchGetShipmentsRequest) Reset()
- func (x *BatchGetShipmentsRequest) String() string
- type BatchGetShipmentsResponse
- func (*BatchGetShipmentsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *BatchGetShipmentsResponse) GetShipments() []*Shipment
- func (*BatchGetShipmentsResponse) ProtoMessage()
- func (x *BatchGetShipmentsResponse) ProtoReflect() protoreflect.Message
- func (x *BatchGetShipmentsResponse) Reset()
- func (x *BatchGetShipmentsResponse) String() string
- 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 (x *CreateShipmentRequest) GetShipmentId() string
- 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 (x *CreateShipperRequest) GetShipperId() string
- 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 (x *CreateSiteRequest) GetSiteId() string
- 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 DeleteShipperOperationMetadata
- func (*DeleteShipperOperationMetadata) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteShipperOperationMetadata) GetEndTime() *timestamppb.Timestamp
- func (x *DeleteShipperOperationMetadata) GetStartTime() *timestamppb.Timestamp
- func (*DeleteShipperOperationMetadata) ProtoMessage()
- func (x *DeleteShipperOperationMetadata) ProtoReflect() protoreflect.Message
- func (x *DeleteShipperOperationMetadata) Reset()
- func (x *DeleteShipperOperationMetadata) 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 FreightServiceAuthorization
- func (a *FreightServiceAuthorization) BatchGetShipments(ctx context.Context, request *BatchGetShipmentsRequest) (*BatchGetShipmentsResponse, error)
- func (a *FreightServiceAuthorization) BatchGetSites(ctx context.Context, request *BatchGetSitesRequest) (*BatchGetSitesResponse, error)
- func (a *FreightServiceAuthorization) CancelOperation(ctx context.Context, request *longrunning.CancelOperationRequest) (*emptypb.Empty, error)
- func (a *FreightServiceAuthorization) CreateShipment(ctx context.Context, request *CreateShipmentRequest) (*Shipment, error)
- func (a *FreightServiceAuthorization) CreateShipper(ctx context.Context, request *CreateShipperRequest) (*Shipper, error)
- func (a *FreightServiceAuthorization) CreateSite(ctx context.Context, request *CreateSiteRequest) (*Site, error)
- func (a *FreightServiceAuthorization) DeleteOperation(ctx context.Context, request *longrunning.DeleteOperationRequest) (*emptypb.Empty, error)
- func (a *FreightServiceAuthorization) DeleteShipment(ctx context.Context, request *DeleteShipmentRequest) (*Shipment, error)
- func (a *FreightServiceAuthorization) DeleteShipper(ctx context.Context, request *DeleteShipperRequest) (*longrunning.Operation, error)
- func (a *FreightServiceAuthorization) DeleteSite(ctx context.Context, request *DeleteSiteRequest) (*Site, error)
- func (a *FreightServiceAuthorization) GetIamPolicy(ctx context.Context, request *v1.GetIamPolicyRequest) (*v1.Policy, error)
- func (a *FreightServiceAuthorization) GetOperation(ctx context.Context, request *longrunning.GetOperationRequest) (*longrunning.Operation, error)
- func (a *FreightServiceAuthorization) GetRole(ctx context.Context, request *v11.GetRoleRequest) (*v11.Role, error)
- func (a *FreightServiceAuthorization) GetShipment(ctx context.Context, request *GetShipmentRequest) (*Shipment, error)
- func (a *FreightServiceAuthorization) GetShipper(ctx context.Context, request *GetShipperRequest) (*Shipper, error)
- func (a *FreightServiceAuthorization) GetSite(ctx context.Context, request *GetSiteRequest) (*Site, error)
- func (a *FreightServiceAuthorization) ListOperations(ctx context.Context, request *longrunning.ListOperationsRequest) (*longrunning.ListOperationsResponse, error)
- func (a *FreightServiceAuthorization) ListRoles(ctx context.Context, request *v11.ListRolesRequest) (*v11.ListRolesResponse, error)
- func (a *FreightServiceAuthorization) ListShipments(ctx context.Context, request *ListShipmentsRequest) (*ListShipmentsResponse, error)
- func (a *FreightServiceAuthorization) ListShippers(ctx context.Context, request *ListShippersRequest) (*ListShippersResponse, error)
- func (a *FreightServiceAuthorization) ListSites(ctx context.Context, request *ListSitesRequest) (*ListSitesResponse, error)
- func (a *FreightServiceAuthorization) SearchSites(ctx context.Context, request *SearchSitesRequest) (*SearchSitesResponse, error)
- func (a *FreightServiceAuthorization) SetIamPolicy(ctx context.Context, request *v1.SetIamPolicyRequest) (*v1.Policy, error)
- func (a *FreightServiceAuthorization) TestIamPermissions(ctx context.Context, request *v1.TestIamPermissionsRequest) (*v1.TestIamPermissionsResponse, error)
- func (a *FreightServiceAuthorization) UpdateShipment(ctx context.Context, request *UpdateShipmentRequest) (*Shipment, error)
- func (a *FreightServiceAuthorization) UpdateShipper(ctx context.Context, request *UpdateShipperRequest) (*Shipper, error)
- func (a *FreightServiceAuthorization) UpdateSite(ctx context.Context, request *UpdateSiteRequest) (*Site, error)
- func (a *FreightServiceAuthorization) WaitOperation(ctx context.Context, request *longrunning.WaitOperationRequest) (*longrunning.Operation, error)
- 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) 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 (*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 SearchSitesRequest
- func (*SearchSitesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SearchSitesRequest) GetPageSize() int32
- func (x *SearchSitesRequest) GetPageToken() string
- func (x *SearchSitesRequest) GetParent() string
- func (*SearchSitesRequest) ProtoMessage()
- func (x *SearchSitesRequest) ProtoReflect() protoreflect.Message
- func (x *SearchSitesRequest) Reset()
- func (x *SearchSitesRequest) String() string
- type SearchSitesResponse
- func (*SearchSitesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SearchSitesResponse) GetNextPageToken() string
- func (x *SearchSitesResponse) GetSites() []*Site
- func (*SearchSitesResponse) ProtoMessage()
- func (x *SearchSitesResponse) ProtoReflect() protoreflect.Message
- func (x *SearchSitesResponse) Reset()
- func (x *SearchSitesResponse) 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) 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 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 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 UnimplementedFreightServiceServer
- func (UnimplementedFreightServiceServer) BatchGetShipments(context.Context, *BatchGetShipmentsRequest) (*BatchGetShipmentsResponse, error)
- 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) (*longrunning.Operation, error)
- func (UnimplementedFreightServiceServer) DeleteSite(context.Context, *DeleteSiteRequest) (*Site, error)
- func (UnimplementedFreightServiceServer) GetIamPolicy(context.Context, *v1.GetIamPolicyRequest) (*v1.Policy, error)
- func (UnimplementedFreightServiceServer) GetRole(context.Context, *v11.GetRoleRequest) (*v11.Role, 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) ListRoles(context.Context, *v11.ListRolesRequest) (*v11.ListRolesResponse, 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) SearchSites(context.Context, *SearchSitesRequest) (*SearchSitesResponse, error)
- func (UnimplementedFreightServiceServer) SetIamPolicy(context.Context, *v1.SetIamPolicyRequest) (*v1.Policy, error)
- func (UnimplementedFreightServiceServer) TestIamPermissions(context.Context, *v1.TestIamPermissionsRequest) (*v1.TestIamPermissionsResponse, 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_iam_example_v1_freight_service_proto protoreflect.FileDescriptor
var File_einride_iam_example_v1_shipment_proto protoreflect.FileDescriptor
var File_einride_iam_example_v1_shipper_proto protoreflect.FileDescriptor
var File_einride_iam_example_v1_site_proto protoreflect.FileDescriptor
var FreightService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "einride.iam.example.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: "SearchSites", Handler: _FreightService_SearchSites_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, }, { MethodName: "BatchGetShipments", Handler: _FreightService_BatchGetShipments_Handler, }, { MethodName: "SetIamPolicy", Handler: _FreightService_SetIamPolicy_Handler, }, { MethodName: "GetIamPolicy", Handler: _FreightService_GetIamPolicy_Handler, }, { MethodName: "TestIamPermissions", Handler: _FreightService_TestIamPermissions_Handler, }, { MethodName: "ListRoles", Handler: _FreightService_ListRoles_Handler, }, { MethodName: "GetRole", Handler: _FreightService_GetRole_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "einride/iam/example/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 NewFreightServiceIAMDescriptor ¶ added in v0.15.0
func NewFreightServiceIAMDescriptor() (*iamreflect.IAMDescriptor, error)
NewFreightServiceIAMDescriptor returns a new FreightService IAM descriptor.
func RegisterFreightServiceServer ¶
func RegisterFreightServiceServer(s grpc.ServiceRegistrar, srv FreightServiceServer)
Types ¶
type BatchGetShipmentsRequest ¶
type BatchGetShipmentsRequest struct { // The parent resource shared by all shipments being retrieved. // If this is set, the parent of all of the shipments 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 shipments to retrieve. // A maximum of 1000 shipments can be retrieved in a batch. // Format: `shippers/{shipper}/shipments/{shipment}` Names []string `protobuf:"bytes,2,rep,name=names,proto3" json:"names,omitempty"` // contains filtered or unexported fields }
Request message for FreightService.BatchGetShipments.
func (*BatchGetShipmentsRequest) Descriptor
deprecated
func (*BatchGetShipmentsRequest) Descriptor() ([]byte, []int)
Deprecated: Use BatchGetShipmentsRequest.ProtoReflect.Descriptor instead.
func (*BatchGetShipmentsRequest) GetNames ¶
func (x *BatchGetShipmentsRequest) GetNames() []string
func (*BatchGetShipmentsRequest) GetParent ¶
func (x *BatchGetShipmentsRequest) GetParent() string
func (*BatchGetShipmentsRequest) ProtoMessage ¶
func (*BatchGetShipmentsRequest) ProtoMessage()
func (*BatchGetShipmentsRequest) ProtoReflect ¶
func (x *BatchGetShipmentsRequest) ProtoReflect() protoreflect.Message
func (*BatchGetShipmentsRequest) Reset ¶
func (x *BatchGetShipmentsRequest) Reset()
func (*BatchGetShipmentsRequest) String ¶
func (x *BatchGetShipmentsRequest) String() string
type BatchGetShipmentsResponse ¶
type BatchGetShipmentsResponse struct { // Shipments requested. Shipments []*Shipment `protobuf:"bytes,1,rep,name=shipments,proto3" json:"shipments,omitempty"` // contains filtered or unexported fields }
Response message for FreightService.BatchGetShipments.
func (*BatchGetShipmentsResponse) Descriptor
deprecated
func (*BatchGetShipmentsResponse) Descriptor() ([]byte, []int)
Deprecated: Use BatchGetShipmentsResponse.ProtoReflect.Descriptor instead.
func (*BatchGetShipmentsResponse) GetShipments ¶
func (x *BatchGetShipmentsResponse) GetShipments() []*Shipment
func (*BatchGetShipmentsResponse) ProtoMessage ¶
func (*BatchGetShipmentsResponse) ProtoMessage()
func (*BatchGetShipmentsResponse) ProtoReflect ¶
func (x *BatchGetShipmentsResponse) ProtoReflect() protoreflect.Message
func (*BatchGetShipmentsResponse) Reset ¶
func (x *BatchGetShipmentsResponse) Reset()
func (*BatchGetShipmentsResponse) String ¶
func (x *BatchGetShipmentsResponse) String() string
type BatchGetSitesRequest ¶
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
func (*BatchGetSitesRequest) Descriptor() ([]byte, []int)
Deprecated: Use BatchGetSitesRequest.ProtoReflect.Descriptor instead.
func (*BatchGetSitesRequest) GetNames ¶
func (x *BatchGetSitesRequest) GetNames() []string
func (*BatchGetSitesRequest) GetParent ¶
func (x *BatchGetSitesRequest) GetParent() string
func (*BatchGetSitesRequest) ProtoMessage ¶
func (*BatchGetSitesRequest) ProtoMessage()
func (*BatchGetSitesRequest) ProtoReflect ¶
func (x *BatchGetSitesRequest) ProtoReflect() protoreflect.Message
func (*BatchGetSitesRequest) Reset ¶
func (x *BatchGetSitesRequest) Reset()
func (*BatchGetSitesRequest) String ¶
func (x *BatchGetSitesRequest) String() string
type BatchGetSitesResponse ¶
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
func (*BatchGetSitesResponse) Descriptor() ([]byte, []int)
Deprecated: Use BatchGetSitesResponse.ProtoReflect.Descriptor instead.
func (*BatchGetSitesResponse) GetSites ¶
func (x *BatchGetSitesResponse) GetSites() []*Site
func (*BatchGetSitesResponse) ProtoMessage ¶
func (*BatchGetSitesResponse) ProtoMessage()
func (*BatchGetSitesResponse) ProtoReflect ¶
func (x *BatchGetSitesResponse) ProtoReflect() protoreflect.Message
func (*BatchGetSitesResponse) Reset ¶
func (x *BatchGetSitesResponse) Reset()
func (*BatchGetSitesResponse) String ¶
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"` // The ID to use for the shipment, which will become the final component of // the shipment's resource name. // // This value should be 4-63 characters, and valid characters // are /[a-z][0-9]-/. ShipmentId string `protobuf:"bytes,3,opt,name=shipment_id,json=shipmentId,proto3" json:"shipment_id,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) GetShipmentId ¶
func (x *CreateShipmentRequest) GetShipmentId() string
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"` // The ID to use for the shipper, which will become the final component of // the shippers's resource name. // // This value should be 4-63 characters, and valid characters // are /[a-z][0-9]-/. ShipperId string `protobuf:"bytes,2,opt,name=shipper_id,json=shipperId,proto3" json:"shipper_id,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) GetShipperId ¶
func (x *CreateShipperRequest) GetShipperId() string
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"` // The ID to use for the site, which will become the final component of // the site's resource name. // // This value should be 4-63 characters, and valid characters // are /[a-z][0-9]-/. SiteId string `protobuf:"bytes,3,opt,name=site_id,json=siteId,proto3" json:"site_id,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) GetSiteId ¶
func (x *CreateSiteRequest) GetSiteId() string
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 DeleteShipperOperationMetadata ¶ added in v0.16.0
type DeleteShipperOperationMetadata struct { // The time this operation started. StartTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` // The time this operation completed. Will be unset if operation still in // progress. EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // contains filtered or unexported fields }
Long-running operation metadata message for freight service operations.
func (*DeleteShipperOperationMetadata) Descriptor
deprecated
added in
v0.16.0
func (*DeleteShipperOperationMetadata) Descriptor() ([]byte, []int)
Deprecated: Use DeleteShipperOperationMetadata.ProtoReflect.Descriptor instead.
func (*DeleteShipperOperationMetadata) GetEndTime ¶ added in v0.16.0
func (x *DeleteShipperOperationMetadata) GetEndTime() *timestamppb.Timestamp
func (*DeleteShipperOperationMetadata) GetStartTime ¶ added in v0.16.0
func (x *DeleteShipperOperationMetadata) GetStartTime() *timestamppb.Timestamp
func (*DeleteShipperOperationMetadata) ProtoMessage ¶ added in v0.16.0
func (*DeleteShipperOperationMetadata) ProtoMessage()
func (*DeleteShipperOperationMetadata) ProtoReflect ¶ added in v0.16.0
func (x *DeleteShipperOperationMetadata) ProtoReflect() protoreflect.Message
func (*DeleteShipperOperationMetadata) Reset ¶ added in v0.16.0
func (x *DeleteShipperOperationMetadata) Reset()
func (*DeleteShipperOperationMetadata) String ¶ added in v0.16.0
func (x *DeleteShipperOperationMetadata) 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 FreightServiceAuthorization ¶ added in v0.15.0
type FreightServiceAuthorization struct {
// contains filtered or unexported fields
}
func NewFreightServiceAuthorization ¶ added in v0.15.0
func NewFreightServiceAuthorization( next FreightServiceServer, permissionTester iamauthz.PermissionTester, memberResolver iammember.Resolver, ) (*FreightServiceAuthorization, error)
NewFreightServiceAuthorization creates a new authorization middleware for FreightService.
func (*FreightServiceAuthorization) BatchGetShipments ¶ added in v0.15.0
func (a *FreightServiceAuthorization) BatchGetShipments( ctx context.Context, request *BatchGetShipmentsRequest, ) (*BatchGetShipmentsResponse, error)
func (*FreightServiceAuthorization) BatchGetSites ¶ added in v0.15.0
func (a *FreightServiceAuthorization) BatchGetSites( ctx context.Context, request *BatchGetSitesRequest, ) (*BatchGetSitesResponse, error)
func (*FreightServiceAuthorization) CancelOperation ¶ added in v0.18.0
func (a *FreightServiceAuthorization) CancelOperation( ctx context.Context, request *longrunning.CancelOperationRequest, ) (*emptypb.Empty, error)
func (*FreightServiceAuthorization) CreateShipment ¶ added in v0.15.0
func (a *FreightServiceAuthorization) CreateShipment( ctx context.Context, request *CreateShipmentRequest, ) (*Shipment, error)
func (*FreightServiceAuthorization) CreateShipper ¶ added in v0.15.0
func (a *FreightServiceAuthorization) CreateShipper( ctx context.Context, request *CreateShipperRequest, ) (*Shipper, error)
func (*FreightServiceAuthorization) CreateSite ¶ added in v0.15.0
func (a *FreightServiceAuthorization) CreateSite( ctx context.Context, request *CreateSiteRequest, ) (*Site, error)
func (*FreightServiceAuthorization) DeleteOperation ¶ added in v0.18.0
func (a *FreightServiceAuthorization) DeleteOperation( ctx context.Context, request *longrunning.DeleteOperationRequest, ) (*emptypb.Empty, error)
func (*FreightServiceAuthorization) DeleteShipment ¶ added in v0.15.0
func (a *FreightServiceAuthorization) DeleteShipment( ctx context.Context, request *DeleteShipmentRequest, ) (*Shipment, error)
func (*FreightServiceAuthorization) DeleteShipper ¶ added in v0.15.0
func (a *FreightServiceAuthorization) DeleteShipper( ctx context.Context, request *DeleteShipperRequest, ) (*longrunning.Operation, error)
func (*FreightServiceAuthorization) DeleteSite ¶ added in v0.15.0
func (a *FreightServiceAuthorization) DeleteSite( ctx context.Context, request *DeleteSiteRequest, ) (*Site, error)
func (*FreightServiceAuthorization) GetIamPolicy ¶ added in v0.15.0
func (a *FreightServiceAuthorization) GetIamPolicy( ctx context.Context, request *v1.GetIamPolicyRequest, ) (*v1.Policy, error)
func (*FreightServiceAuthorization) GetOperation ¶ added in v0.18.0
func (a *FreightServiceAuthorization) GetOperation( ctx context.Context, request *longrunning.GetOperationRequest, ) (*longrunning.Operation, error)
func (*FreightServiceAuthorization) GetRole ¶ added in v0.21.0
func (a *FreightServiceAuthorization) GetRole( ctx context.Context, request *v11.GetRoleRequest, ) (*v11.Role, error)
func (*FreightServiceAuthorization) GetShipment ¶ added in v0.15.0
func (a *FreightServiceAuthorization) GetShipment( ctx context.Context, request *GetShipmentRequest, ) (*Shipment, error)
func (*FreightServiceAuthorization) GetShipper ¶ added in v0.15.0
func (a *FreightServiceAuthorization) GetShipper( ctx context.Context, request *GetShipperRequest, ) (*Shipper, error)
func (*FreightServiceAuthorization) GetSite ¶ added in v0.15.0
func (a *FreightServiceAuthorization) GetSite( ctx context.Context, request *GetSiteRequest, ) (*Site, error)
func (*FreightServiceAuthorization) ListOperations ¶ added in v0.18.0
func (a *FreightServiceAuthorization) ListOperations( ctx context.Context, request *longrunning.ListOperationsRequest, ) (*longrunning.ListOperationsResponse, error)
func (*FreightServiceAuthorization) ListRoles ¶ added in v0.16.0
func (a *FreightServiceAuthorization) ListRoles( ctx context.Context, request *v11.ListRolesRequest, ) (*v11.ListRolesResponse, error)
func (*FreightServiceAuthorization) ListShipments ¶ added in v0.15.0
func (a *FreightServiceAuthorization) ListShipments( ctx context.Context, request *ListShipmentsRequest, ) (*ListShipmentsResponse, error)
func (*FreightServiceAuthorization) ListShippers ¶ added in v0.15.0
func (a *FreightServiceAuthorization) ListShippers( ctx context.Context, request *ListShippersRequest, ) (*ListShippersResponse, error)
func (*FreightServiceAuthorization) ListSites ¶ added in v0.15.0
func (a *FreightServiceAuthorization) ListSites( ctx context.Context, request *ListSitesRequest, ) (*ListSitesResponse, error)
func (*FreightServiceAuthorization) SearchSites ¶ added in v0.15.0
func (a *FreightServiceAuthorization) SearchSites( ctx context.Context, request *SearchSitesRequest, ) (*SearchSitesResponse, error)
func (*FreightServiceAuthorization) SetIamPolicy ¶ added in v0.15.0
func (a *FreightServiceAuthorization) SetIamPolicy( ctx context.Context, request *v1.SetIamPolicyRequest, ) (*v1.Policy, error)
func (*FreightServiceAuthorization) TestIamPermissions ¶ added in v0.15.0
func (a *FreightServiceAuthorization) TestIamPermissions( ctx context.Context, request *v1.TestIamPermissionsRequest, ) (*v1.TestIamPermissionsResponse, error)
func (*FreightServiceAuthorization) UpdateShipment ¶ added in v0.15.0
func (a *FreightServiceAuthorization) UpdateShipment( ctx context.Context, request *UpdateShipmentRequest, ) (*Shipment, error)
func (*FreightServiceAuthorization) UpdateShipper ¶ added in v0.15.0
func (a *FreightServiceAuthorization) UpdateShipper( ctx context.Context, request *UpdateShipperRequest, ) (*Shipper, error)
func (*FreightServiceAuthorization) UpdateSite ¶ added in v0.15.0
func (a *FreightServiceAuthorization) UpdateSite( ctx context.Context, request *UpdateSiteRequest, ) (*Site, error)
func (*FreightServiceAuthorization) WaitOperation ¶ added in v0.18.0
func (a *FreightServiceAuthorization) WaitOperation( ctx context.Context, request *longrunning.WaitOperationRequest, ) (*longrunning.Operation, error)
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/151 (Long-running operations). DeleteShipper(ctx context.Context, in *DeleteShipperRequest, opts ...grpc.CallOption) (*longrunning.Operation, 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) // Search sites. // See: https://google.aip.dev/136 (Custom methods). SearchSites(ctx context.Context, in *SearchSitesRequest, opts ...grpc.CallOption) (*SearchSitesResponse, 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) // Batch get shipments. // See: https://google.aip.dev/231 (Batch methods: Get). BatchGetShipments(ctx context.Context, in *BatchGetShipmentsRequest, opts ...grpc.CallOption) (*BatchGetShipmentsResponse, error) // Sets the access control policy on the specified shipper, site or shipment. SetIamPolicy(ctx context.Context, in *v1.SetIamPolicyRequest, opts ...grpc.CallOption) (*v1.Policy, error) // Gets the access control policy for a shipper, site or shipment resource. // // Returns an empty policy if the resource exists and does not have a policy // set. GetIamPolicy(ctx context.Context, in *v1.GetIamPolicyRequest, opts ...grpc.CallOption) (*v1.Policy, error) // Returns the permissions that a caller has on the specified shipper or // site or shipment. // // Note: This operation is designed to be used for building permission-aware // UIs and command-line tools, not for authorization checking. This operation // may "fail open" without warning. TestIamPermissions(ctx context.Context, in *v1.TestIamPermissionsRequest, opts ...grpc.CallOption) (*v1.TestIamPermissionsResponse, error) // Lists every predefined role that this service supports. ListRoles(ctx context.Context, in *v11.ListRolesRequest, opts ...grpc.CallOption) (*v11.ListRolesResponse, error) // Get a predefined role. GetRole(ctx context.Context, in *v11.GetRoleRequest, opts ...grpc.CallOption) (*v11.Role, 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/151 (Long-running operations). DeleteShipper(context.Context, *DeleteShipperRequest) (*longrunning.Operation, 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) // Search sites. // See: https://google.aip.dev/136 (Custom methods). SearchSites(context.Context, *SearchSitesRequest) (*SearchSitesResponse, 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) // Batch get shipments. // See: https://google.aip.dev/231 (Batch methods: Get). BatchGetShipments(context.Context, *BatchGetShipmentsRequest) (*BatchGetShipmentsResponse, error) // Sets the access control policy on the specified shipper, site or shipment. SetIamPolicy(context.Context, *v1.SetIamPolicyRequest) (*v1.Policy, error) // Gets the access control policy for a shipper, site or shipment resource. // // Returns an empty policy if the resource exists and does not have a policy // set. GetIamPolicy(context.Context, *v1.GetIamPolicyRequest) (*v1.Policy, error) // Returns the permissions that a caller has on the specified shipper or // site or shipment. // // Note: This operation is designed to be used for building permission-aware // UIs and command-line tools, not for authorization checking. This operation // may "fail open" without warning. TestIamPermissions(context.Context, *v1.TestIamPermissionsRequest) (*v1.TestIamPermissionsResponse, error) // Lists every predefined role that this service supports. ListRoles(context.Context, *v11.ListRolesRequest) (*v11.ListRolesResponse, error) // Get a predefined role. GetRole(context.Context, *v11.GetRoleRequest) (*v11.Role, 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"` // contains filtered or unexported fields }
A shipment line item.
func (*LineItem) Descriptor
deprecated
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"` // 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) 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 SearchSitesRequest ¶
type SearchSitesRequest 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"` // contains filtered or unexported fields }
Request message for FreightService.SearchSites.
func (*SearchSitesRequest) Descriptor
deprecated
func (*SearchSitesRequest) Descriptor() ([]byte, []int)
Deprecated: Use SearchSitesRequest.ProtoReflect.Descriptor instead.
func (*SearchSitesRequest) GetPageSize ¶
func (x *SearchSitesRequest) GetPageSize() int32
func (*SearchSitesRequest) GetPageToken ¶
func (x *SearchSitesRequest) GetPageToken() string
func (*SearchSitesRequest) GetParent ¶
func (x *SearchSitesRequest) GetParent() string
func (*SearchSitesRequest) ProtoMessage ¶
func (*SearchSitesRequest) ProtoMessage()
func (*SearchSitesRequest) ProtoReflect ¶
func (x *SearchSitesRequest) ProtoReflect() protoreflect.Message
func (*SearchSitesRequest) Reset ¶
func (x *SearchSitesRequest) Reset()
func (*SearchSitesRequest) String ¶
func (x *SearchSitesRequest) String() string
type SearchSitesResponse ¶
type SearchSitesResponse 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.SearchSites.
func (*SearchSitesResponse) Descriptor
deprecated
func (*SearchSitesResponse) Descriptor() ([]byte, []int)
Deprecated: Use SearchSitesResponse.ProtoReflect.Descriptor instead.
func (*SearchSitesResponse) GetNextPageToken ¶
func (x *SearchSitesResponse) GetNextPageToken() string
func (*SearchSitesResponse) GetSites ¶
func (x *SearchSitesResponse) GetSites() []*Site
func (*SearchSitesResponse) ProtoMessage ¶
func (*SearchSitesResponse) ProtoMessage()
func (*SearchSitesResponse) ProtoReflect ¶
func (x *SearchSitesResponse) ProtoReflect() protoreflect.Message
func (*SearchSitesResponse) Reset ¶
func (x *SearchSitesResponse) Reset()
func (*SearchSitesResponse) String ¶
func (x *SearchSitesResponse) 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 */ // 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) 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 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 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 UnimplementedFreightServiceServer ¶
type UnimplementedFreightServiceServer struct { }
UnimplementedFreightServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedFreightServiceServer) BatchGetShipments ¶
func (UnimplementedFreightServiceServer) BatchGetShipments(context.Context, *BatchGetShipmentsRequest) (*BatchGetShipmentsResponse, error)
func (UnimplementedFreightServiceServer) BatchGetSites ¶
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) (*longrunning.Operation, error)
func (UnimplementedFreightServiceServer) DeleteSite ¶
func (UnimplementedFreightServiceServer) DeleteSite(context.Context, *DeleteSiteRequest) (*Site, error)
func (UnimplementedFreightServiceServer) GetIamPolicy ¶
func (UnimplementedFreightServiceServer) GetIamPolicy(context.Context, *v1.GetIamPolicyRequest) (*v1.Policy, error)
func (UnimplementedFreightServiceServer) GetRole ¶ added in v0.21.0
func (UnimplementedFreightServiceServer) GetRole(context.Context, *v11.GetRoleRequest) (*v11.Role, 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) ListRoles ¶ added in v0.16.0
func (UnimplementedFreightServiceServer) ListRoles(context.Context, *v11.ListRolesRequest) (*v11.ListRolesResponse, 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) SearchSites ¶
func (UnimplementedFreightServiceServer) SearchSites(context.Context, *SearchSitesRequest) (*SearchSitesResponse, error)
func (UnimplementedFreightServiceServer) SetIamPolicy ¶
func (UnimplementedFreightServiceServer) SetIamPolicy(context.Context, *v1.SetIamPolicyRequest) (*v1.Policy, error)
func (UnimplementedFreightServiceServer) TestIamPermissions ¶
func (UnimplementedFreightServiceServer) TestIamPermissions(context.Context, *v1.TestIamPermissionsRequest) (*v1.TestIamPermissionsResponse, 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