progresspb

package
v3.2.5 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProgressSvc_CreateProgress_FullMethodName           = "/progress.ProgressSvc/CreateProgress"
	ProgressSvc_GetProgress_FullMethodName              = "/progress.ProgressSvc/GetProgress"
	ProgressSvc_UpdateProgress_FullMethodName           = "/progress.ProgressSvc/UpdateProgress"
	ProgressSvc_UpdateCollectionProgress_FullMethodName = "/progress.ProgressSvc/UpdateCollectionProgress"
	ProgressSvc_DeleteProgress_FullMethodName           = "/progress.ProgressSvc/DeleteProgress"
	ProgressSvc_DeleteCollectionProgress_FullMethodName = "/progress.ProgressSvc/DeleteCollectionProgress"
	ProgressSvc_ListProgress_FullMethodName             = "/progress.ProgressSvc/ListProgress"
)

Variables

View Source
var File_progress_progress_proto protoreflect.FileDescriptor
View Source
var ProgressSvc_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "progress.ProgressSvc",
	HandlerType: (*ProgressSvcServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateProgress",
			Handler:    _ProgressSvc_CreateProgress_Handler,
		},
		{
			MethodName: "GetProgress",
			Handler:    _ProgressSvc_GetProgress_Handler,
		},
		{
			MethodName: "UpdateProgress",
			Handler:    _ProgressSvc_UpdateProgress_Handler,
		},
		{
			MethodName: "UpdateCollectionProgress",
			Handler:    _ProgressSvc_UpdateCollectionProgress_Handler,
		},
		{
			MethodName: "DeleteProgress",
			Handler:    _ProgressSvc_DeleteProgress_Handler,
		},
		{
			MethodName: "DeleteCollectionProgress",
			Handler:    _ProgressSvc_DeleteCollectionProgress_Handler,
		},
		{
			MethodName: "ListProgress",
			Handler:    _ProgressSvc_ListProgress_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "progress/progress.proto",
}

ProgressSvc_ServiceDesc is the grpc.ServiceDesc for ProgressSvc service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterProgressSvcServer

func RegisterProgressSvcServer(s grpc.ServiceRegistrar, srv ProgressSvcServer)

Types

type CreateProgressRequest

type CreateProgressRequest struct {
	CurrentStep uint32            `protobuf:"varint,1,opt,name=current_step,json=currentStep,proto3" json:"current_step,omitempty"`
	MaxStep     uint32            `protobuf:"varint,2,opt,name=max_step,json=maxStep,proto3" json:"max_step,omitempty"`
	TotalStep   uint32            `protobuf:"varint,3,opt,name=total_step,json=totalStep,proto3" json:"total_step,omitempty"`
	Scenario    string            `protobuf:"bytes,4,opt,name=scenario,proto3" json:"scenario,omitempty"`
	Course      string            `protobuf:"bytes,5,opt,name=course,proto3" json:"course,omitempty"`
	User        string            `protobuf:"bytes,6,opt,name=user,proto3" json:"user,omitempty"`
	Labels      map[string]string `` /* 153-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*CreateProgressRequest) Descriptor deprecated

func (*CreateProgressRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateProgressRequest.ProtoReflect.Descriptor instead.

func (*CreateProgressRequest) GetCourse

func (x *CreateProgressRequest) GetCourse() string

func (*CreateProgressRequest) GetCurrentStep

func (x *CreateProgressRequest) GetCurrentStep() uint32

func (*CreateProgressRequest) GetLabels

func (x *CreateProgressRequest) GetLabels() map[string]string

func (*CreateProgressRequest) GetMaxStep

func (x *CreateProgressRequest) GetMaxStep() uint32

func (*CreateProgressRequest) GetScenario

func (x *CreateProgressRequest) GetScenario() string

func (*CreateProgressRequest) GetTotalStep

func (x *CreateProgressRequest) GetTotalStep() uint32

func (*CreateProgressRequest) GetUser

func (x *CreateProgressRequest) GetUser() string

func (*CreateProgressRequest) ProtoMessage

func (*CreateProgressRequest) ProtoMessage()

func (*CreateProgressRequest) ProtoReflect

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

func (*CreateProgressRequest) Reset

func (x *CreateProgressRequest) Reset()

func (*CreateProgressRequest) String

func (x *CreateProgressRequest) String() string

type ListProgressesResponse

type ListProgressesResponse struct {
	Progresses []*Progress `protobuf:"bytes,1,rep,name=progresses,proto3" json:"progresses,omitempty"`
	// contains filtered or unexported fields
}

func (*ListProgressesResponse) Descriptor deprecated

func (*ListProgressesResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListProgressesResponse.ProtoReflect.Descriptor instead.

func (*ListProgressesResponse) GetProgresses

func (x *ListProgressesResponse) GetProgresses() []*Progress

func (*ListProgressesResponse) ProtoMessage

func (*ListProgressesResponse) ProtoMessage()

func (*ListProgressesResponse) ProtoReflect

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

func (*ListProgressesResponse) Reset

func (x *ListProgressesResponse) Reset()

func (*ListProgressesResponse) String

func (x *ListProgressesResponse) String() string

type Progress

type Progress struct {
	Id                string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Uid               string                 `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"`
	CurrentStep       uint32                 `protobuf:"varint,3,opt,name=current_step,json=currentStep,proto3" json:"current_step,omitempty"`
	MaxStep           uint32                 `protobuf:"varint,4,opt,name=max_step,json=maxStep,proto3" json:"max_step,omitempty"`
	TotalStep         uint32                 `protobuf:"varint,5,opt,name=total_step,json=totalStep,proto3" json:"total_step,omitempty"`
	Scenario          string                 `protobuf:"bytes,6,opt,name=scenario,proto3" json:"scenario,omitempty"`
	Course            string                 `protobuf:"bytes,7,opt,name=course,proto3" json:"course,omitempty"`
	User              string                 `protobuf:"bytes,8,opt,name=user,proto3" json:"user,omitempty"`
	Started           string                 `protobuf:"bytes,9,opt,name=started,proto3" json:"started,omitempty"`
	LastUpdate        string                 `protobuf:"bytes,10,opt,name=last_update,json=lastUpdate,proto3" json:"last_update,omitempty"`
	Finished          string                 `protobuf:"bytes,11,opt,name=finished,proto3" json:"finished,omitempty"`
	Steps             []*ProgressStep        `protobuf:"bytes,12,rep,name=steps,proto3" json:"steps,omitempty"`
	Labels            map[string]string      `` /* 154-byte string literal not displayed */
	CreationTimestamp *timestamppb.Timestamp `protobuf:"bytes,14,opt,name=creation_timestamp,json=creationTimestamp,proto3" json:"creation_timestamp,omitempty"`
	// contains filtered or unexported fields
}

func (*Progress) Descriptor deprecated

func (*Progress) Descriptor() ([]byte, []int)

Deprecated: Use Progress.ProtoReflect.Descriptor instead.

func (*Progress) GetCourse

func (x *Progress) GetCourse() string

func (*Progress) GetCreationTimestamp

func (x *Progress) GetCreationTimestamp() *timestamppb.Timestamp

func (*Progress) GetCurrentStep

func (x *Progress) GetCurrentStep() uint32

func (*Progress) GetFinished

func (x *Progress) GetFinished() string

func (*Progress) GetId

func (x *Progress) GetId() string

func (*Progress) GetLabels

func (x *Progress) GetLabels() map[string]string

func (*Progress) GetLastUpdate

func (x *Progress) GetLastUpdate() string

func (*Progress) GetMaxStep

func (x *Progress) GetMaxStep() uint32

func (*Progress) GetScenario

func (x *Progress) GetScenario() string

func (*Progress) GetStarted

func (x *Progress) GetStarted() string

func (*Progress) GetSteps

func (x *Progress) GetSteps() []*ProgressStep

func (*Progress) GetTotalStep

func (x *Progress) GetTotalStep() uint32

func (*Progress) GetUid

func (x *Progress) GetUid() string

func (*Progress) GetUser

func (x *Progress) GetUser() string

func (*Progress) ProtoMessage

func (*Progress) ProtoMessage()

func (*Progress) ProtoReflect

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

func (*Progress) Reset

func (x *Progress) Reset()

func (*Progress) String

func (x *Progress) String() string

type ProgressStep

type ProgressStep struct {
	Step      uint32 `protobuf:"varint,1,opt,name=step,proto3" json:"step,omitempty"`
	Timestamp string `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// contains filtered or unexported fields
}

func (*ProgressStep) Descriptor deprecated

func (*ProgressStep) Descriptor() ([]byte, []int)

Deprecated: Use ProgressStep.ProtoReflect.Descriptor instead.

func (*ProgressStep) GetStep

func (x *ProgressStep) GetStep() uint32

func (*ProgressStep) GetTimestamp

func (x *ProgressStep) GetTimestamp() string

func (*ProgressStep) ProtoMessage

func (*ProgressStep) ProtoMessage()

func (*ProgressStep) ProtoReflect

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

func (*ProgressStep) Reset

func (x *ProgressStep) Reset()

func (*ProgressStep) String

func (x *ProgressStep) String() string

type ProgressSvcClient

type ProgressSvcClient interface {
	CreateProgress(ctx context.Context, in *CreateProgressRequest, opts ...grpc.CallOption) (*general.ResourceId, error)
	GetProgress(ctx context.Context, in *general.GetRequest, opts ...grpc.CallOption) (*Progress, error)
	UpdateProgress(ctx context.Context, in *UpdateProgressRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	UpdateCollectionProgress(ctx context.Context, in *UpdateCollectionProgressRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	DeleteProgress(ctx context.Context, in *general.ResourceId, opts ...grpc.CallOption) (*emptypb.Empty, error)
	DeleteCollectionProgress(ctx context.Context, in *general.ListOptions, opts ...grpc.CallOption) (*emptypb.Empty, error)
	ListProgress(ctx context.Context, in *general.ListOptions, opts ...grpc.CallOption) (*ListProgressesResponse, error)
}

ProgressSvcClient is the client API for ProgressSvc 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 ProgressSvcServer

type ProgressSvcServer interface {
	CreateProgress(context.Context, *CreateProgressRequest) (*general.ResourceId, error)
	GetProgress(context.Context, *general.GetRequest) (*Progress, error)
	UpdateProgress(context.Context, *UpdateProgressRequest) (*emptypb.Empty, error)
	UpdateCollectionProgress(context.Context, *UpdateCollectionProgressRequest) (*emptypb.Empty, error)
	DeleteProgress(context.Context, *general.ResourceId) (*emptypb.Empty, error)
	DeleteCollectionProgress(context.Context, *general.ListOptions) (*emptypb.Empty, error)
	ListProgress(context.Context, *general.ListOptions) (*ListProgressesResponse, error)
	// contains filtered or unexported methods
}

ProgressSvcServer is the server API for ProgressSvc service. All implementations must embed UnimplementedProgressSvcServer for forward compatibility

type UnimplementedProgressSvcServer

type UnimplementedProgressSvcServer struct {
}

UnimplementedProgressSvcServer must be embedded to have forward compatible implementations.

func (UnimplementedProgressSvcServer) CreateProgress

func (UnimplementedProgressSvcServer) DeleteCollectionProgress

func (UnimplementedProgressSvcServer) DeleteProgress

func (UnimplementedProgressSvcServer) GetProgress

func (UnimplementedProgressSvcServer) ListProgress

func (UnimplementedProgressSvcServer) UpdateCollectionProgress

func (UnimplementedProgressSvcServer) UpdateProgress

type UnsafeProgressSvcServer

type UnsafeProgressSvcServer interface {
	// contains filtered or unexported methods
}

UnsafeProgressSvcServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ProgressSvcServer will result in compilation errors.

type UpdateCollectionProgressRequest

type UpdateCollectionProgressRequest struct {
	Labelselector string                  `protobuf:"bytes,1,opt,name=labelselector,proto3" json:"labelselector,omitempty"`
	CurrentStep   *wrapperspb.UInt32Value `protobuf:"bytes,2,opt,name=current_step,json=currentStep,proto3" json:"current_step,omitempty"`
	MaxStep       *wrapperspb.UInt32Value `protobuf:"bytes,3,opt,name=max_step,json=maxStep,proto3" json:"max_step,omitempty"`
	TotalStep     *wrapperspb.UInt32Value `protobuf:"bytes,4,opt,name=total_step,json=totalStep,proto3" json:"total_step,omitempty"`
	LastUpdate    string                  `protobuf:"bytes,5,opt,name=last_update,json=lastUpdate,proto3" json:"last_update,omitempty"`
	Finished      string                  `protobuf:"bytes,6,opt,name=finished,proto3" json:"finished,omitempty"`
	Steps         []*ProgressStep         `protobuf:"bytes,7,rep,name=steps,proto3" json:"steps,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateCollectionProgressRequest) Descriptor deprecated

func (*UpdateCollectionProgressRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateCollectionProgressRequest.ProtoReflect.Descriptor instead.

func (*UpdateCollectionProgressRequest) GetCurrentStep

func (*UpdateCollectionProgressRequest) GetFinished

func (x *UpdateCollectionProgressRequest) GetFinished() string

func (*UpdateCollectionProgressRequest) GetLabelselector

func (x *UpdateCollectionProgressRequest) GetLabelselector() string

func (*UpdateCollectionProgressRequest) GetLastUpdate

func (x *UpdateCollectionProgressRequest) GetLastUpdate() string

func (*UpdateCollectionProgressRequest) GetMaxStep

func (*UpdateCollectionProgressRequest) GetSteps

func (*UpdateCollectionProgressRequest) GetTotalStep

func (*UpdateCollectionProgressRequest) ProtoMessage

func (*UpdateCollectionProgressRequest) ProtoMessage()

func (*UpdateCollectionProgressRequest) ProtoReflect

func (*UpdateCollectionProgressRequest) Reset

func (*UpdateCollectionProgressRequest) String

type UpdateProgressRequest

type UpdateProgressRequest struct {
	Id          string                  `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	CurrentStep *wrapperspb.UInt32Value `protobuf:"bytes,2,opt,name=current_step,json=currentStep,proto3" json:"current_step,omitempty"`
	MaxStep     *wrapperspb.UInt32Value `protobuf:"bytes,3,opt,name=max_step,json=maxStep,proto3" json:"max_step,omitempty"`
	TotalStep   *wrapperspb.UInt32Value `protobuf:"bytes,4,opt,name=total_step,json=totalStep,proto3" json:"total_step,omitempty"`
	LastUpdate  string                  `protobuf:"bytes,5,opt,name=last_update,json=lastUpdate,proto3" json:"last_update,omitempty"`
	Finished    string                  `protobuf:"bytes,6,opt,name=finished,proto3" json:"finished,omitempty"`
	Steps       []*ProgressStep         `protobuf:"bytes,7,rep,name=steps,proto3" json:"steps,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateProgressRequest) Descriptor deprecated

func (*UpdateProgressRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateProgressRequest.ProtoReflect.Descriptor instead.

func (*UpdateProgressRequest) GetCurrentStep

func (x *UpdateProgressRequest) GetCurrentStep() *wrapperspb.UInt32Value

func (*UpdateProgressRequest) GetFinished

func (x *UpdateProgressRequest) GetFinished() string

func (*UpdateProgressRequest) GetId

func (x *UpdateProgressRequest) GetId() string

func (*UpdateProgressRequest) GetLastUpdate

func (x *UpdateProgressRequest) GetLastUpdate() string

func (*UpdateProgressRequest) GetMaxStep

func (x *UpdateProgressRequest) GetMaxStep() *wrapperspb.UInt32Value

func (*UpdateProgressRequest) GetSteps

func (x *UpdateProgressRequest) GetSteps() []*ProgressStep

func (*UpdateProgressRequest) GetTotalStep

func (x *UpdateProgressRequest) GetTotalStep() *wrapperspb.UInt32Value

func (*UpdateProgressRequest) ProtoMessage

func (*UpdateProgressRequest) ProtoMessage()

func (*UpdateProgressRequest) ProtoReflect

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

func (*UpdateProgressRequest) Reset

func (x *UpdateProgressRequest) Reset()

func (*UpdateProgressRequest) String

func (x *UpdateProgressRequest) String() string

Jump to

Keyboard shortcuts

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