examplev1

package
v0.53.0 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_einride_iam_example_v1_freight_service_proto protoreflect.FileDescriptor
View Source
var File_einride_iam_example_v1_shipment_proto protoreflect.FileDescriptor
View Source
var File_einride_iam_example_v1_shipper_proto protoreflect.FileDescriptor
View Source
var File_einride_iam_example_v1_site_proto protoreflect.FileDescriptor
View Source
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 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 (*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 (*DeleteShipperOperationMetadata) GetStartTime added in v0.16.0

func (*DeleteShipperOperationMetadata) ProtoMessage added in v0.16.0

func (*DeleteShipperOperationMetadata) ProtoMessage()

func (*DeleteShipperOperationMetadata) ProtoReflect added in v0.16.0

func (*DeleteShipperOperationMetadata) Reset added in v0.16.0

func (x *DeleteShipperOperationMetadata) Reset()

func (*DeleteShipperOperationMetadata) String added in v0.16.0

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"`
	// Set force as true to perform a cascading delete.
	Force bool `protobuf:"varint,2,opt,name=force,proto3" json:"force,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) GetForce added in v0.51.0

func (x *DeleteShipperRequest) GetForce() bool

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 iamcel.PermissionTester,
	callerResolver iamcaller.Resolver,
) (*FreightServiceAuthorization, error)

NewFreightServiceAuthorization creates a new authorization middleware for FreightService.

func (*FreightServiceAuthorization) BatchGetShipments added in v0.15.0

func (*FreightServiceAuthorization) BatchGetSites added in v0.15.0

func (*FreightServiceAuthorization) CancelOperation added in v0.18.0

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 (*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 (*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 *iampb.GetIamPolicyRequest,
) (*iampb.Policy, error)

func (*FreightServiceAuthorization) GetOperation added in v0.18.0

func (*FreightServiceAuthorization) GetRole added in v0.21.0

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 (*FreightServiceAuthorization) ListRoles added in v0.16.0

func (*FreightServiceAuthorization) ListShipments added in v0.15.0

func (*FreightServiceAuthorization) ListShippers added in v0.15.0

func (*FreightServiceAuthorization) ListSites added in v0.15.0

func (*FreightServiceAuthorization) SearchSites added in v0.15.0

func (*FreightServiceAuthorization) SetIamPolicy added in v0.15.0

func (a *FreightServiceAuthorization) SetIamPolicy(
	ctx context.Context,
	request *iampb.SetIamPolicyRequest,
) (*iampb.Policy, error)

func (*FreightServiceAuthorization) TestIamPermissions added in v0.15.0

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

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) (*longrunningpb.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 *iampb.SetIamPolicyRequest, opts ...grpc.CallOption) (*iampb.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 *iampb.GetIamPolicyRequest, opts ...grpc.CallOption) (*iampb.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 *iampb.TestIamPermissionsRequest, opts ...grpc.CallOption) (*iampb.TestIamPermissionsResponse, error)
	// Lists every predefined role that this service supports.
	// (-- api-linter: core::0132=disabled --)
	ListRoles(ctx context.Context, in *adminpb.ListRolesRequest, opts ...grpc.CallOption) (*adminpb.ListRolesResponse, error)
	// Get a predefined role.
	GetRole(ctx context.Context, in *adminpb.GetRoleRequest, opts ...grpc.CallOption) (*adminpb.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.

type FreightServiceIAMDescriptor added in v0.14.0

type FreightServiceIAMDescriptor struct {
	PredefinedRoles                    *v1.PredefinedRoles
	LongRunningOperationsAuthorization *v1.LongRunningOperationsAuthorizationOptions
	GetShipperAuthorization            *v1.MethodAuthorizationOptions
	ListShippersAuthorization          *v1.MethodAuthorizationOptions
	CreateShipperAuthorization         *v1.MethodAuthorizationOptions
	UpdateShipperAuthorization         *v1.MethodAuthorizationOptions
	DeleteShipperAuthorization         *v1.MethodAuthorizationOptions
	GetSiteAuthorization               *v1.MethodAuthorizationOptions
	ListSitesAuthorization             *v1.MethodAuthorizationOptions
	CreateSiteAuthorization            *v1.MethodAuthorizationOptions
	UpdateSiteAuthorization            *v1.MethodAuthorizationOptions
	DeleteSiteAuthorization            *v1.MethodAuthorizationOptions
	BatchGetSitesAuthorization         *v1.MethodAuthorizationOptions
	SearchSitesAuthorization           *v1.MethodAuthorizationOptions
	GetShipmentAuthorization           *v1.MethodAuthorizationOptions
	ListShipmentsAuthorization         *v1.MethodAuthorizationOptions
	CreateShipmentAuthorization        *v1.MethodAuthorizationOptions
	UpdateShipmentAuthorization        *v1.MethodAuthorizationOptions
	DeleteShipmentAuthorization        *v1.MethodAuthorizationOptions
	BatchGetShipmentsAuthorization     *v1.MethodAuthorizationOptions
	SetIamPolicyAuthorization          *v1.MethodAuthorizationOptions
	GetIamPolicyAuthorization          *v1.MethodAuthorizationOptions
	TestIamPermissionsAuthorization    *v1.MethodAuthorizationOptions
	ListRolesAuthorization             *v1.MethodAuthorizationOptions
	GetRoleAuthorization               *v1.MethodAuthorizationOptions
}

func NewFreightServiceIAMDescriptor added in v0.15.0

func NewFreightServiceIAMDescriptor() (*FreightServiceIAMDescriptor, error)

NewFreightServiceIAMDescriptor returns a new FreightService IAM descriptor.

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) (*longrunningpb.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, *iampb.SetIamPolicyRequest) (*iampb.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, *iampb.GetIamPolicyRequest) (*iampb.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, *iampb.TestIamPermissionsRequest) (*iampb.TestIamPermissionsResponse, error)
	// Lists every predefined role that this service supports.
	// (-- api-linter: core::0132=disabled --)
	ListRoles(context.Context, *adminpb.ListRolesRequest) (*adminpb.ListRolesResponse, error)
	// Get a predefined role.
	GetRole(context.Context, *adminpb.GetRoleRequest) (*adminpb.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) Descriptor() ([]byte, []int)

Deprecated: Use LineItem.ProtoReflect.Descriptor instead.

func (*LineItem) GetQuantity

func (x *LineItem) GetQuantity() float32

func (*LineItem) GetTitle

func (x *LineItem) GetTitle() string

func (*LineItem) GetVolumeM3

func (x *LineItem) GetVolumeM3() float32

func (*LineItem) GetWeightKg

func (x *LineItem) GetWeightKg() float32

func (*LineItem) ProtoMessage

func (*LineItem) ProtoMessage()

func (*LineItem) ProtoReflect

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

func (*LineItem) Reset

func (x *LineItem) Reset()

func (*LineItem) String

func (x *LineItem) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Shipment.ProtoReflect.Descriptor instead.

func (*Shipment) GetAnnotations

func (x *Shipment) GetAnnotations() map[string]string

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 (x *Shipment) GetDestinationSite() string

func (*Shipment) GetLineItems

func (x *Shipment) GetLineItems() []*LineItem

func (*Shipment) GetName

func (x *Shipment) GetName() string

func (*Shipment) GetOriginSite

func (x *Shipment) GetOriginSite() string

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

func (*Shipment) Reset

func (x *Shipment) Reset()

func (*Shipment) String

func (x *Shipment) String() string

type ShipmentResourceName added in v0.41.0

type ShipmentResourceName struct {
	Shipper  string
	Shipment string
}

func (ShipmentResourceName) ContainsWildcard added in v0.41.0

func (n ShipmentResourceName) ContainsWildcard() bool

func (ShipmentResourceName) MarshalString added in v0.41.0

func (n ShipmentResourceName) MarshalString() (string, error)

func (ShipmentResourceName) ShipperResourceName added in v0.41.0

func (n ShipmentResourceName) ShipperResourceName() ShipperResourceName

func (ShipmentResourceName) String added in v0.41.0

func (n ShipmentResourceName) String() string

func (*ShipmentResourceName) UnmarshalString added in v0.41.0

func (n *ShipmentResourceName) UnmarshalString(name string) error

func (ShipmentResourceName) Validate added in v0.41.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) Descriptor() ([]byte, []int)

Deprecated: Use Shipper.ProtoReflect.Descriptor instead.

func (*Shipper) GetCreateTime

func (x *Shipper) GetCreateTime() *timestamppb.Timestamp

func (*Shipper) GetDeleteTime

func (x *Shipper) GetDeleteTime() *timestamppb.Timestamp

func (*Shipper) GetDisplayName

func (x *Shipper) GetDisplayName() string

func (*Shipper) GetName

func (x *Shipper) GetName() string

func (*Shipper) GetUpdateTime

func (x *Shipper) GetUpdateTime() *timestamppb.Timestamp

func (*Shipper) ProtoMessage

func (*Shipper) ProtoMessage()

func (*Shipper) ProtoReflect

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

func (*Shipper) Reset

func (x *Shipper) Reset()

func (*Shipper) String

func (x *Shipper) String() string

type ShipperOperationResourceName added in v0.41.0

type ShipperOperationResourceName struct {
	Shipper   string
	Operation string
}

func (ShipperOperationResourceName) ContainsWildcard added in v0.41.0

func (n ShipperOperationResourceName) ContainsWildcard() bool

func (ShipperOperationResourceName) MarshalString added in v0.41.0

func (n ShipperOperationResourceName) MarshalString() (string, error)

func (ShipperOperationResourceName) ShipperResourceName added in v0.41.0

func (n ShipperOperationResourceName) ShipperResourceName() ShipperResourceName

func (ShipperOperationResourceName) String added in v0.41.0

func (*ShipperOperationResourceName) UnmarshalString added in v0.41.0

func (n *ShipperOperationResourceName) UnmarshalString(name string) error

func (ShipperOperationResourceName) Validate added in v0.41.0

func (n ShipperOperationResourceName) Validate() error

type ShipperResourceName added in v0.41.0

type ShipperResourceName struct {
	Shipper string
}

func (ShipperResourceName) ContainsWildcard added in v0.41.0

func (n ShipperResourceName) ContainsWildcard() bool

func (ShipperResourceName) MarshalString added in v0.41.0

func (n ShipperResourceName) MarshalString() (string, error)

func (ShipperResourceName) ShipmentResourceName added in v0.46.1

func (n ShipperResourceName) ShipmentResourceName(
	shipment string,
) ShipmentResourceName

func (ShipperResourceName) ShipperOperationResourceName added in v0.46.1

func (n ShipperResourceName) ShipperOperationResourceName(
	operation string,
) ShipperOperationResourceName

func (ShipperResourceName) SiteResourceName added in v0.46.1

func (n ShipperResourceName) SiteResourceName(
	site string,
) SiteResourceName

func (ShipperResourceName) String added in v0.41.0

func (n ShipperResourceName) String() string

func (*ShipperResourceName) UnmarshalString added in v0.41.0

func (n *ShipperResourceName) UnmarshalString(name string) error

func (ShipperResourceName) Validate added in v0.41.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) Descriptor() ([]byte, []int)

Deprecated: Use Site.ProtoReflect.Descriptor instead.

func (*Site) GetCreateTime

func (x *Site) GetCreateTime() *timestamppb.Timestamp

func (*Site) GetDeleteTime

func (x *Site) GetDeleteTime() *timestamppb.Timestamp

func (*Site) GetDisplayName

func (x *Site) GetDisplayName() string

func (*Site) GetLatLng

func (x *Site) GetLatLng() *latlng.LatLng

func (*Site) GetName

func (x *Site) GetName() string

func (*Site) GetUpdateTime

func (x *Site) GetUpdateTime() *timestamppb.Timestamp

func (*Site) ProtoMessage

func (*Site) ProtoMessage()

func (*Site) ProtoReflect

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

func (*Site) Reset

func (x *Site) Reset()

func (*Site) String

func (x *Site) String() string

type SiteResourceName added in v0.41.0

type SiteResourceName struct {
	Shipper string
	Site    string
}

func (SiteResourceName) ContainsWildcard added in v0.41.0

func (n SiteResourceName) ContainsWildcard() bool

func (SiteResourceName) MarshalString added in v0.41.0

func (n SiteResourceName) MarshalString() (string, error)

func (SiteResourceName) ShipperResourceName added in v0.41.0

func (n SiteResourceName) ShipperResourceName() ShipperResourceName

func (SiteResourceName) String added in v0.41.0

func (n SiteResourceName) String() string

func (*SiteResourceName) UnmarshalString added in v0.41.0

func (n *SiteResourceName) UnmarshalString(name string) error

func (SiteResourceName) Validate added in v0.41.0

func (n SiteResourceName) Validate() error

type UnimplementedFreightServiceServer

type UnimplementedFreightServiceServer struct {
}

UnimplementedFreightServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedFreightServiceServer) BatchGetShipments

func (UnimplementedFreightServiceServer) BatchGetSites

func (UnimplementedFreightServiceServer) CreateShipment

func (UnimplementedFreightServiceServer) CreateShipper

func (UnimplementedFreightServiceServer) CreateSite

func (UnimplementedFreightServiceServer) DeleteShipment

func (UnimplementedFreightServiceServer) DeleteShipper

func (UnimplementedFreightServiceServer) DeleteSite

func (UnimplementedFreightServiceServer) GetIamPolicy

func (UnimplementedFreightServiceServer) GetRole added in v0.21.0

func (UnimplementedFreightServiceServer) GetShipment

func (UnimplementedFreightServiceServer) GetShipper

func (UnimplementedFreightServiceServer) GetSite

func (UnimplementedFreightServiceServer) ListRoles added in v0.16.0

func (UnimplementedFreightServiceServer) ListShipments

func (UnimplementedFreightServiceServer) ListShippers

func (UnimplementedFreightServiceServer) ListSites

func (UnimplementedFreightServiceServer) SearchSites

func (UnimplementedFreightServiceServer) SetIamPolicy

func (UnimplementedFreightServiceServer) UpdateShipment

func (UnimplementedFreightServiceServer) UpdateShipper

func (UnimplementedFreightServiceServer) UpdateSite

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

Jump to

Keyboard shortcuts

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