v1

package
v1.0.16 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2024 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Job_ListJob_FullMethodName   = "/manager.api.manager.job.v1.Job/ListJob"
	Job_CreateJob_FullMethodName = "/manager.api.manager.job.v1.Job/CreateJob"
	Job_UpdateJob_FullMethodName = "/manager.api.manager.job.v1.Job/UpdateJob"
	Job_DeleteJob_FullMethodName = "/manager.api.manager.job.v1.Job/DeleteJob"
	Job_GetJob_FullMethodName    = "/manager.api.manager.job.v1.Job/GetJob"
)
View Source
const OperationJobCreateJob = "/manager.api.manager.job.v1.Job/CreateJob"
View Source
const OperationJobDeleteJob = "/manager.api.manager.job.v1.Job/DeleteJob"
View Source
const OperationJobGetJob = "/manager.api.manager.job.v1.Job/GetJob"
View Source
const OperationJobListJob = "/manager.api.manager.job.v1.Job/ListJob"
View Source
const OperationJobUpdateJob = "/manager.api.manager.job.v1.Job/UpdateJob"

Variables

View Source
var File_api_manager_job_manager_job_proto protoreflect.FileDescriptor
View Source
var File_api_manager_job_manager_job_service_proto protoreflect.FileDescriptor
View Source
var Job_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "manager.api.manager.job.v1.Job",
	HandlerType: (*JobServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListJob",
			Handler:    _Job_ListJob_Handler,
		},
		{
			MethodName: "CreateJob",
			Handler:    _Job_CreateJob_Handler,
		},
		{
			MethodName: "UpdateJob",
			Handler:    _Job_UpdateJob_Handler,
		},
		{
			MethodName: "DeleteJob",
			Handler:    _Job_DeleteJob_Handler,
		},
		{
			MethodName: "GetJob",
			Handler:    _Job_GetJob_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/manager/job/manager_job_service.proto",
}

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

Functions

func RegisterJobHTTPServer

func RegisterJobHTTPServer(s *http.Server, srv JobHTTPServer)

func RegisterJobServer

func RegisterJobServer(s grpc.ServiceRegistrar, srv JobServer)

Types

type CreateJobReply

type CreateJobReply struct {
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateJobReply) Descriptor deprecated

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

Deprecated: Use CreateJobReply.ProtoReflect.Descriptor instead.

func (*CreateJobReply) GetId

func (x *CreateJobReply) GetId() uint32

func (*CreateJobReply) ProtoMessage

func (*CreateJobReply) ProtoMessage()

func (*CreateJobReply) ProtoReflect

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

func (*CreateJobReply) Reset

func (x *CreateJobReply) Reset()

func (*CreateJobReply) String

func (x *CreateJobReply) String() string

func (*CreateJobReply) Validate

func (m *CreateJobReply) Validate() error

Validate checks the field values on CreateJobReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CreateJobReply) ValidateAll

func (m *CreateJobReply) ValidateAll() error

ValidateAll checks the field values on CreateJobReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateJobReplyMultiError, or nil if none found.

type CreateJobReplyMultiError

type CreateJobReplyMultiError []error

CreateJobReplyMultiError is an error wrapping multiple validation errors returned by CreateJobReply.ValidateAll() if the designated constraints aren't met.

func (CreateJobReplyMultiError) AllErrors

func (m CreateJobReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateJobReplyMultiError) Error

func (m CreateJobReplyMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type CreateJobReplyValidationError

type CreateJobReplyValidationError struct {
	// contains filtered or unexported fields
}

CreateJobReplyValidationError is the validation error returned by CreateJobReply.Validate if the designated constraints aren't met.

func (CreateJobReplyValidationError) Cause

Cause function returns cause value.

func (CreateJobReplyValidationError) Error

Error satisfies the builtin error interface

func (CreateJobReplyValidationError) ErrorName

func (e CreateJobReplyValidationError) ErrorName() string

ErrorName returns error name.

func (CreateJobReplyValidationError) Field

Field function returns field value.

func (CreateJobReplyValidationError) Key

Key function returns key value.

func (CreateJobReplyValidationError) Reason

Reason function returns reason value.

type CreateJobRequest

type CreateJobRequest struct {
	Keyword     string  `protobuf:"bytes,1,opt,name=keyword,proto3" json:"keyword,omitempty"`
	Name        string  `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Weight      *int32  `protobuf:"varint,3,opt,name=weight,proto3,oneof" json:"weight,omitempty"`
	Description *string `protobuf:"bytes,4,opt,name=description,proto3,oneof" json:"description,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateJobRequest) Descriptor deprecated

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

Deprecated: Use CreateJobRequest.ProtoReflect.Descriptor instead.

func (*CreateJobRequest) GetDescription

func (x *CreateJobRequest) GetDescription() string

func (*CreateJobRequest) GetKeyword

func (x *CreateJobRequest) GetKeyword() string

func (*CreateJobRequest) GetName

func (x *CreateJobRequest) GetName() string

func (*CreateJobRequest) GetWeight

func (x *CreateJobRequest) GetWeight() int32

func (*CreateJobRequest) ProtoMessage

func (*CreateJobRequest) ProtoMessage()

func (*CreateJobRequest) ProtoReflect

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

func (*CreateJobRequest) Reset

func (x *CreateJobRequest) Reset()

func (*CreateJobRequest) String

func (x *CreateJobRequest) String() string

func (*CreateJobRequest) Validate

func (m *CreateJobRequest) Validate() error

Validate checks the field values on CreateJobRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CreateJobRequest) ValidateAll

func (m *CreateJobRequest) ValidateAll() error

ValidateAll checks the field values on CreateJobRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateJobRequestMultiError, or nil if none found.

type CreateJobRequestMultiError

type CreateJobRequestMultiError []error

CreateJobRequestMultiError is an error wrapping multiple validation errors returned by CreateJobRequest.ValidateAll() if the designated constraints aren't met.

func (CreateJobRequestMultiError) AllErrors

func (m CreateJobRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateJobRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CreateJobRequestValidationError

type CreateJobRequestValidationError struct {
	// contains filtered or unexported fields
}

CreateJobRequestValidationError is the validation error returned by CreateJobRequest.Validate if the designated constraints aren't met.

func (CreateJobRequestValidationError) Cause

Cause function returns cause value.

func (CreateJobRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateJobRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateJobRequestValidationError) Field

Field function returns field value.

func (CreateJobRequestValidationError) Key

Key function returns key value.

func (CreateJobRequestValidationError) Reason

Reason function returns reason value.

type DeleteJobReply

type DeleteJobReply struct {
	Total uint32 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteJobReply) Descriptor deprecated

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

Deprecated: Use DeleteJobReply.ProtoReflect.Descriptor instead.

func (*DeleteJobReply) GetTotal

func (x *DeleteJobReply) GetTotal() uint32

func (*DeleteJobReply) ProtoMessage

func (*DeleteJobReply) ProtoMessage()

func (*DeleteJobReply) ProtoReflect

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

func (*DeleteJobReply) Reset

func (x *DeleteJobReply) Reset()

func (*DeleteJobReply) String

func (x *DeleteJobReply) String() string

func (*DeleteJobReply) Validate

func (m *DeleteJobReply) Validate() error

Validate checks the field values on DeleteJobReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*DeleteJobReply) ValidateAll

func (m *DeleteJobReply) ValidateAll() error

ValidateAll checks the field values on DeleteJobReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteJobReplyMultiError, or nil if none found.

type DeleteJobReplyMultiError

type DeleteJobReplyMultiError []error

DeleteJobReplyMultiError is an error wrapping multiple validation errors returned by DeleteJobReply.ValidateAll() if the designated constraints aren't met.

func (DeleteJobReplyMultiError) AllErrors

func (m DeleteJobReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteJobReplyMultiError) Error

func (m DeleteJobReplyMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type DeleteJobReplyValidationError

type DeleteJobReplyValidationError struct {
	// contains filtered or unexported fields
}

DeleteJobReplyValidationError is the validation error returned by DeleteJobReply.Validate if the designated constraints aren't met.

func (DeleteJobReplyValidationError) Cause

Cause function returns cause value.

func (DeleteJobReplyValidationError) Error

Error satisfies the builtin error interface

func (DeleteJobReplyValidationError) ErrorName

func (e DeleteJobReplyValidationError) ErrorName() string

ErrorName returns error name.

func (DeleteJobReplyValidationError) Field

Field function returns field value.

func (DeleteJobReplyValidationError) Key

Key function returns key value.

func (DeleteJobReplyValidationError) Reason

Reason function returns reason value.

type DeleteJobRequest

type DeleteJobRequest struct {
	Ids []uint32 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteJobRequest) Descriptor deprecated

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

Deprecated: Use DeleteJobRequest.ProtoReflect.Descriptor instead.

func (*DeleteJobRequest) GetIds

func (x *DeleteJobRequest) GetIds() []uint32

func (*DeleteJobRequest) ProtoMessage

func (*DeleteJobRequest) ProtoMessage()

func (*DeleteJobRequest) ProtoReflect

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

func (*DeleteJobRequest) Reset

func (x *DeleteJobRequest) Reset()

func (*DeleteJobRequest) String

func (x *DeleteJobRequest) String() string

func (*DeleteJobRequest) Validate

func (m *DeleteJobRequest) Validate() error

Validate checks the field values on DeleteJobRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*DeleteJobRequest) ValidateAll

func (m *DeleteJobRequest) ValidateAll() error

ValidateAll checks the field values on DeleteJobRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteJobRequestMultiError, or nil if none found.

type DeleteJobRequestMultiError

type DeleteJobRequestMultiError []error

DeleteJobRequestMultiError is an error wrapping multiple validation errors returned by DeleteJobRequest.ValidateAll() if the designated constraints aren't met.

func (DeleteJobRequestMultiError) AllErrors

func (m DeleteJobRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteJobRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type DeleteJobRequestValidationError

type DeleteJobRequestValidationError struct {
	// contains filtered or unexported fields
}

DeleteJobRequestValidationError is the validation error returned by DeleteJobRequest.Validate if the designated constraints aren't met.

func (DeleteJobRequestValidationError) Cause

Cause function returns cause value.

func (DeleteJobRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteJobRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteJobRequestValidationError) Field

Field function returns field value.

func (DeleteJobRequestValidationError) Key

Key function returns key value.

func (DeleteJobRequestValidationError) Reason

Reason function returns reason value.

type GetJobReply

type GetJobReply struct {
	Id          uint32  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Keyword     string  `protobuf:"bytes,2,opt,name=keyword,proto3" json:"keyword,omitempty"`
	Name        string  `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	Weight      *int32  `protobuf:"varint,4,opt,name=weight,proto3,oneof" json:"weight,omitempty"`
	Description *string `protobuf:"bytes,5,opt,name=description,proto3,oneof" json:"description,omitempty"`
	CreatedAt   uint32  `protobuf:"varint,6,opt,name=createdAt,proto3" json:"createdAt,omitempty"`
	UpdatedAt   uint32  `protobuf:"varint,7,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"`
	// contains filtered or unexported fields
}

func (*GetJobReply) Descriptor deprecated

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

Deprecated: Use GetJobReply.ProtoReflect.Descriptor instead.

func (*GetJobReply) GetCreatedAt

func (x *GetJobReply) GetCreatedAt() uint32

func (*GetJobReply) GetDescription

func (x *GetJobReply) GetDescription() string

func (*GetJobReply) GetId

func (x *GetJobReply) GetId() uint32

func (*GetJobReply) GetKeyword

func (x *GetJobReply) GetKeyword() string

func (*GetJobReply) GetName

func (x *GetJobReply) GetName() string

func (*GetJobReply) GetUpdatedAt

func (x *GetJobReply) GetUpdatedAt() uint32

func (*GetJobReply) GetWeight

func (x *GetJobReply) GetWeight() int32

func (*GetJobReply) ProtoMessage

func (*GetJobReply) ProtoMessage()

func (*GetJobReply) ProtoReflect

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

func (*GetJobReply) Reset

func (x *GetJobReply) Reset()

func (*GetJobReply) String

func (x *GetJobReply) String() string

func (*GetJobReply) Validate

func (m *GetJobReply) Validate() error

Validate checks the field values on GetJobReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetJobReply) ValidateAll

func (m *GetJobReply) ValidateAll() error

ValidateAll checks the field values on GetJobReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetJobReplyMultiError, or nil if none found.

type GetJobReplyMultiError

type GetJobReplyMultiError []error

GetJobReplyMultiError is an error wrapping multiple validation errors returned by GetJobReply.ValidateAll() if the designated constraints aren't met.

func (GetJobReplyMultiError) AllErrors

func (m GetJobReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetJobReplyMultiError) Error

func (m GetJobReplyMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type GetJobReplyValidationError

type GetJobReplyValidationError struct {
	// contains filtered or unexported fields
}

GetJobReplyValidationError is the validation error returned by GetJobReply.Validate if the designated constraints aren't met.

func (GetJobReplyValidationError) Cause

Cause function returns cause value.

func (GetJobReplyValidationError) Error

Error satisfies the builtin error interface

func (GetJobReplyValidationError) ErrorName

func (e GetJobReplyValidationError) ErrorName() string

ErrorName returns error name.

func (GetJobReplyValidationError) Field

Field function returns field value.

func (GetJobReplyValidationError) Key

Key function returns key value.

func (GetJobReplyValidationError) Reason

Reason function returns reason value.

type GetJobRequest

type GetJobRequest struct {
	Id      *uint32 `protobuf:"varint,1,opt,name=id,proto3,oneof" json:"id,omitempty"`
	Keyword *string `protobuf:"bytes,2,opt,name=keyword,proto3,oneof" json:"keyword,omitempty"`
	// contains filtered or unexported fields
}

func (*GetJobRequest) Descriptor deprecated

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

Deprecated: Use GetJobRequest.ProtoReflect.Descriptor instead.

func (*GetJobRequest) GetId

func (x *GetJobRequest) GetId() uint32

func (*GetJobRequest) GetKeyword

func (x *GetJobRequest) GetKeyword() string

func (*GetJobRequest) ProtoMessage

func (*GetJobRequest) ProtoMessage()

func (*GetJobRequest) ProtoReflect

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

func (*GetJobRequest) Reset

func (x *GetJobRequest) Reset()

func (*GetJobRequest) String

func (x *GetJobRequest) String() string

func (*GetJobRequest) Validate

func (m *GetJobRequest) Validate() error

Validate checks the field values on GetJobRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetJobRequest) ValidateAll

func (m *GetJobRequest) ValidateAll() error

ValidateAll checks the field values on GetJobRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetJobRequestMultiError, or nil if none found.

type GetJobRequestMultiError

type GetJobRequestMultiError []error

GetJobRequestMultiError is an error wrapping multiple validation errors returned by GetJobRequest.ValidateAll() if the designated constraints aren't met.

func (GetJobRequestMultiError) AllErrors

func (m GetJobRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetJobRequestMultiError) Error

func (m GetJobRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type GetJobRequestValidationError

type GetJobRequestValidationError struct {
	// contains filtered or unexported fields
}

GetJobRequestValidationError is the validation error returned by GetJobRequest.Validate if the designated constraints aren't met.

func (GetJobRequestValidationError) Cause

Cause function returns cause value.

func (GetJobRequestValidationError) Error

Error satisfies the builtin error interface

func (GetJobRequestValidationError) ErrorName

func (e GetJobRequestValidationError) ErrorName() string

ErrorName returns error name.

func (GetJobRequestValidationError) Field

Field function returns field value.

func (GetJobRequestValidationError) Key

Key function returns key value.

func (GetJobRequestValidationError) Reason

Reason function returns reason value.

type JobClient

type JobClient interface {
	// ListJob 获取职位信息列表
	ListJob(ctx context.Context, in *ListJobRequest, opts ...grpc.CallOption) (*ListJobReply, error)
	// CreateJob 创建职位信息
	CreateJob(ctx context.Context, in *CreateJobRequest, opts ...grpc.CallOption) (*CreateJobReply, error)
	// UpdateJob 更新职位信息
	UpdateJob(ctx context.Context, in *UpdateJobRequest, opts ...grpc.CallOption) (*UpdateJobReply, error)
	// DeleteJob 删除职位信息
	DeleteJob(ctx context.Context, in *DeleteJobRequest, opts ...grpc.CallOption) (*DeleteJobReply, error)
	// GetJob 获取指定的职位信息
	GetJob(ctx context.Context, in *GetJobRequest, opts ...grpc.CallOption) (*GetJobReply, error)
}

JobClient is the client API for Job 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 NewJobClient

func NewJobClient(cc grpc.ClientConnInterface) JobClient

type JobHTTPClient

type JobHTTPClient interface {
	CreateJob(ctx context.Context, req *CreateJobRequest, opts ...http.CallOption) (rsp *CreateJobReply, err error)
	DeleteJob(ctx context.Context, req *DeleteJobRequest, opts ...http.CallOption) (rsp *DeleteJobReply, err error)
	GetJob(ctx context.Context, req *GetJobRequest, opts ...http.CallOption) (rsp *GetJobReply, err error)
	ListJob(ctx context.Context, req *ListJobRequest, opts ...http.CallOption) (rsp *ListJobReply, err error)
	UpdateJob(ctx context.Context, req *UpdateJobRequest, opts ...http.CallOption) (rsp *UpdateJobReply, err error)
}

func NewJobHTTPClient

func NewJobHTTPClient(client *http.Client) JobHTTPClient

type JobHTTPClientImpl

type JobHTTPClientImpl struct {
	// contains filtered or unexported fields
}

func (*JobHTTPClientImpl) CreateJob

func (*JobHTTPClientImpl) DeleteJob

func (*JobHTTPClientImpl) GetJob

func (*JobHTTPClientImpl) ListJob

func (*JobHTTPClientImpl) UpdateJob

type JobHTTPServer

type JobHTTPServer interface {
	// CreateJob CreateJob 创建职位信息
	CreateJob(context.Context, *CreateJobRequest) (*CreateJobReply, error)
	// DeleteJob DeleteJob 删除职位信息
	DeleteJob(context.Context, *DeleteJobRequest) (*DeleteJobReply, error)
	// GetJob GetJob 获取指定的职位信息
	GetJob(context.Context, *GetJobRequest) (*GetJobReply, error)
	// ListJob ListJob 获取职位信息列表
	ListJob(context.Context, *ListJobRequest) (*ListJobReply, error)
	// UpdateJob UpdateJob 更新职位信息
	UpdateJob(context.Context, *UpdateJobRequest) (*UpdateJobReply, error)
}

type JobServer

type JobServer interface {
	// ListJob 获取职位信息列表
	ListJob(context.Context, *ListJobRequest) (*ListJobReply, error)
	// CreateJob 创建职位信息
	CreateJob(context.Context, *CreateJobRequest) (*CreateJobReply, error)
	// UpdateJob 更新职位信息
	UpdateJob(context.Context, *UpdateJobRequest) (*UpdateJobReply, error)
	// DeleteJob 删除职位信息
	DeleteJob(context.Context, *DeleteJobRequest) (*DeleteJobReply, error)
	// GetJob 获取指定的职位信息
	GetJob(context.Context, *GetJobRequest) (*GetJobReply, error)
	// contains filtered or unexported methods
}

JobServer is the server API for Job service. All implementations must embed UnimplementedJobServer for forward compatibility

type ListJobReply

type ListJobReply struct {
	Total uint32              `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
	List  []*ListJobReply_Job `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"`
	// contains filtered or unexported fields
}

func (*ListJobReply) Descriptor deprecated

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

Deprecated: Use ListJobReply.ProtoReflect.Descriptor instead.

func (*ListJobReply) GetList

func (x *ListJobReply) GetList() []*ListJobReply_Job

func (*ListJobReply) GetTotal

func (x *ListJobReply) GetTotal() uint32

func (*ListJobReply) ProtoMessage

func (*ListJobReply) ProtoMessage()

func (*ListJobReply) ProtoReflect

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

func (*ListJobReply) Reset

func (x *ListJobReply) Reset()

func (*ListJobReply) String

func (x *ListJobReply) String() string

func (*ListJobReply) Validate

func (m *ListJobReply) Validate() error

Validate checks the field values on ListJobReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ListJobReply) ValidateAll

func (m *ListJobReply) ValidateAll() error

ValidateAll checks the field values on ListJobReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListJobReplyMultiError, or nil if none found.

type ListJobReplyMultiError

type ListJobReplyMultiError []error

ListJobReplyMultiError is an error wrapping multiple validation errors returned by ListJobReply.ValidateAll() if the designated constraints aren't met.

func (ListJobReplyMultiError) AllErrors

func (m ListJobReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListJobReplyMultiError) Error

func (m ListJobReplyMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ListJobReplyValidationError

type ListJobReplyValidationError struct {
	// contains filtered or unexported fields
}

ListJobReplyValidationError is the validation error returned by ListJobReply.Validate if the designated constraints aren't met.

func (ListJobReplyValidationError) Cause

Cause function returns cause value.

func (ListJobReplyValidationError) Error

Error satisfies the builtin error interface

func (ListJobReplyValidationError) ErrorName

func (e ListJobReplyValidationError) ErrorName() string

ErrorName returns error name.

func (ListJobReplyValidationError) Field

Field function returns field value.

func (ListJobReplyValidationError) Key

Key function returns key value.

func (ListJobReplyValidationError) Reason

Reason function returns reason value.

type ListJobReply_Job

type ListJobReply_Job struct {
	Id          uint32  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Keyword     string  `protobuf:"bytes,2,opt,name=keyword,proto3" json:"keyword,omitempty"`
	Name        string  `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	Weight      *int32  `protobuf:"varint,4,opt,name=weight,proto3,oneof" json:"weight,omitempty"`
	Description *string `protobuf:"bytes,5,opt,name=description,proto3,oneof" json:"description,omitempty"`
	CreatedAt   uint32  `protobuf:"varint,6,opt,name=createdAt,proto3" json:"createdAt,omitempty"`
	UpdatedAt   uint32  `protobuf:"varint,7,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"`
	// contains filtered or unexported fields
}

func (*ListJobReply_Job) Descriptor deprecated

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

Deprecated: Use ListJobReply_Job.ProtoReflect.Descriptor instead.

func (*ListJobReply_Job) GetCreatedAt

func (x *ListJobReply_Job) GetCreatedAt() uint32

func (*ListJobReply_Job) GetDescription

func (x *ListJobReply_Job) GetDescription() string

func (*ListJobReply_Job) GetId

func (x *ListJobReply_Job) GetId() uint32

func (*ListJobReply_Job) GetKeyword

func (x *ListJobReply_Job) GetKeyword() string

func (*ListJobReply_Job) GetName

func (x *ListJobReply_Job) GetName() string

func (*ListJobReply_Job) GetUpdatedAt

func (x *ListJobReply_Job) GetUpdatedAt() uint32

func (*ListJobReply_Job) GetWeight

func (x *ListJobReply_Job) GetWeight() int32

func (*ListJobReply_Job) ProtoMessage

func (*ListJobReply_Job) ProtoMessage()

func (*ListJobReply_Job) ProtoReflect

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

func (*ListJobReply_Job) Reset

func (x *ListJobReply_Job) Reset()

func (*ListJobReply_Job) String

func (x *ListJobReply_Job) String() string

func (*ListJobReply_Job) Validate

func (m *ListJobReply_Job) Validate() error

Validate checks the field values on ListJobReply_Job with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ListJobReply_Job) ValidateAll

func (m *ListJobReply_Job) ValidateAll() error

ValidateAll checks the field values on ListJobReply_Job with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListJobReply_JobMultiError, or nil if none found.

type ListJobReply_JobMultiError

type ListJobReply_JobMultiError []error

ListJobReply_JobMultiError is an error wrapping multiple validation errors returned by ListJobReply_Job.ValidateAll() if the designated constraints aren't met.

func (ListJobReply_JobMultiError) AllErrors

func (m ListJobReply_JobMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListJobReply_JobMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListJobReply_JobValidationError

type ListJobReply_JobValidationError struct {
	// contains filtered or unexported fields
}

ListJobReply_JobValidationError is the validation error returned by ListJobReply_Job.Validate if the designated constraints aren't met.

func (ListJobReply_JobValidationError) Cause

Cause function returns cause value.

func (ListJobReply_JobValidationError) Error

Error satisfies the builtin error interface

func (ListJobReply_JobValidationError) ErrorName

ErrorName returns error name.

func (ListJobReply_JobValidationError) Field

Field function returns field value.

func (ListJobReply_JobValidationError) Key

Key function returns key value.

func (ListJobReply_JobValidationError) Reason

Reason function returns reason value.

type ListJobRequest

type ListJobRequest struct {
	Page     uint32  `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
	PageSize uint32  `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty"`
	Order    *string `protobuf:"bytes,3,opt,name=order,proto3,oneof" json:"order,omitempty"`
	OrderBy  *string `protobuf:"bytes,4,opt,name=orderBy,proto3,oneof" json:"orderBy,omitempty"`
	Keyword  *string `protobuf:"bytes,5,opt,name=keyword,proto3,oneof" json:"keyword,omitempty"`
	Name     *string `protobuf:"bytes,6,opt,name=name,proto3,oneof" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*ListJobRequest) Descriptor deprecated

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

Deprecated: Use ListJobRequest.ProtoReflect.Descriptor instead.

func (*ListJobRequest) GetKeyword

func (x *ListJobRequest) GetKeyword() string

func (*ListJobRequest) GetName

func (x *ListJobRequest) GetName() string

func (*ListJobRequest) GetOrder

func (x *ListJobRequest) GetOrder() string

func (*ListJobRequest) GetOrderBy

func (x *ListJobRequest) GetOrderBy() string

func (*ListJobRequest) GetPage

func (x *ListJobRequest) GetPage() uint32

func (*ListJobRequest) GetPageSize

func (x *ListJobRequest) GetPageSize() uint32

func (*ListJobRequest) ProtoMessage

func (*ListJobRequest) ProtoMessage()

func (*ListJobRequest) ProtoReflect

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

func (*ListJobRequest) Reset

func (x *ListJobRequest) Reset()

func (*ListJobRequest) String

func (x *ListJobRequest) String() string

func (*ListJobRequest) Validate

func (m *ListJobRequest) Validate() error

Validate checks the field values on ListJobRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ListJobRequest) ValidateAll

func (m *ListJobRequest) ValidateAll() error

ValidateAll checks the field values on ListJobRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListJobRequestMultiError, or nil if none found.

type ListJobRequestMultiError

type ListJobRequestMultiError []error

ListJobRequestMultiError is an error wrapping multiple validation errors returned by ListJobRequest.ValidateAll() if the designated constraints aren't met.

func (ListJobRequestMultiError) AllErrors

func (m ListJobRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListJobRequestMultiError) Error

func (m ListJobRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ListJobRequestValidationError

type ListJobRequestValidationError struct {
	// contains filtered or unexported fields
}

ListJobRequestValidationError is the validation error returned by ListJobRequest.Validate if the designated constraints aren't met.

func (ListJobRequestValidationError) Cause

Cause function returns cause value.

func (ListJobRequestValidationError) Error

Error satisfies the builtin error interface

func (ListJobRequestValidationError) ErrorName

func (e ListJobRequestValidationError) ErrorName() string

ErrorName returns error name.

func (ListJobRequestValidationError) Field

Field function returns field value.

func (ListJobRequestValidationError) Key

Key function returns key value.

func (ListJobRequestValidationError) Reason

Reason function returns reason value.

type UnimplementedJobServer

type UnimplementedJobServer struct {
}

UnimplementedJobServer must be embedded to have forward compatible implementations.

func (UnimplementedJobServer) CreateJob

func (UnimplementedJobServer) DeleteJob

func (UnimplementedJobServer) GetJob

func (UnimplementedJobServer) ListJob

func (UnimplementedJobServer) UpdateJob

type UnsafeJobServer

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

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

type UpdateJobReply

type UpdateJobReply struct {
	// contains filtered or unexported fields
}

func (*UpdateJobReply) Descriptor deprecated

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

Deprecated: Use UpdateJobReply.ProtoReflect.Descriptor instead.

func (*UpdateJobReply) ProtoMessage

func (*UpdateJobReply) ProtoMessage()

func (*UpdateJobReply) ProtoReflect

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

func (*UpdateJobReply) Reset

func (x *UpdateJobReply) Reset()

func (*UpdateJobReply) String

func (x *UpdateJobReply) String() string

func (*UpdateJobReply) Validate

func (m *UpdateJobReply) Validate() error

Validate checks the field values on UpdateJobReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UpdateJobReply) ValidateAll

func (m *UpdateJobReply) ValidateAll() error

ValidateAll checks the field values on UpdateJobReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateJobReplyMultiError, or nil if none found.

type UpdateJobReplyMultiError

type UpdateJobReplyMultiError []error

UpdateJobReplyMultiError is an error wrapping multiple validation errors returned by UpdateJobReply.ValidateAll() if the designated constraints aren't met.

func (UpdateJobReplyMultiError) AllErrors

func (m UpdateJobReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateJobReplyMultiError) Error

func (m UpdateJobReplyMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type UpdateJobReplyValidationError

type UpdateJobReplyValidationError struct {
	// contains filtered or unexported fields
}

UpdateJobReplyValidationError is the validation error returned by UpdateJobReply.Validate if the designated constraints aren't met.

func (UpdateJobReplyValidationError) Cause

Cause function returns cause value.

func (UpdateJobReplyValidationError) Error

Error satisfies the builtin error interface

func (UpdateJobReplyValidationError) ErrorName

func (e UpdateJobReplyValidationError) ErrorName() string

ErrorName returns error name.

func (UpdateJobReplyValidationError) Field

Field function returns field value.

func (UpdateJobReplyValidationError) Key

Key function returns key value.

func (UpdateJobReplyValidationError) Reason

Reason function returns reason value.

type UpdateJobRequest

type UpdateJobRequest struct {
	Id          uint32  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Keyword     string  `protobuf:"bytes,2,opt,name=keyword,proto3" json:"keyword,omitempty"`
	Name        string  `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	Weight      *int32  `protobuf:"varint,4,opt,name=weight,proto3,oneof" json:"weight,omitempty"`
	Description *string `protobuf:"bytes,5,opt,name=description,proto3,oneof" json:"description,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateJobRequest) Descriptor deprecated

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

Deprecated: Use UpdateJobRequest.ProtoReflect.Descriptor instead.

func (*UpdateJobRequest) GetDescription

func (x *UpdateJobRequest) GetDescription() string

func (*UpdateJobRequest) GetId

func (x *UpdateJobRequest) GetId() uint32

func (*UpdateJobRequest) GetKeyword

func (x *UpdateJobRequest) GetKeyword() string

func (*UpdateJobRequest) GetName

func (x *UpdateJobRequest) GetName() string

func (*UpdateJobRequest) GetWeight

func (x *UpdateJobRequest) GetWeight() int32

func (*UpdateJobRequest) ProtoMessage

func (*UpdateJobRequest) ProtoMessage()

func (*UpdateJobRequest) ProtoReflect

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

func (*UpdateJobRequest) Reset

func (x *UpdateJobRequest) Reset()

func (*UpdateJobRequest) String

func (x *UpdateJobRequest) String() string

func (*UpdateJobRequest) Validate

func (m *UpdateJobRequest) Validate() error

Validate checks the field values on UpdateJobRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UpdateJobRequest) ValidateAll

func (m *UpdateJobRequest) ValidateAll() error

ValidateAll checks the field values on UpdateJobRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateJobRequestMultiError, or nil if none found.

type UpdateJobRequestMultiError

type UpdateJobRequestMultiError []error

UpdateJobRequestMultiError is an error wrapping multiple validation errors returned by UpdateJobRequest.ValidateAll() if the designated constraints aren't met.

func (UpdateJobRequestMultiError) AllErrors

func (m UpdateJobRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateJobRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpdateJobRequestValidationError

type UpdateJobRequestValidationError struct {
	// contains filtered or unexported fields
}

UpdateJobRequestValidationError is the validation error returned by UpdateJobRequest.Validate if the designated constraints aren't met.

func (UpdateJobRequestValidationError) Cause

Cause function returns cause value.

func (UpdateJobRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateJobRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateJobRequestValidationError) Field

Field function returns field value.

func (UpdateJobRequestValidationError) Key

Key function returns key value.

func (UpdateJobRequestValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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