v1

package
v0.0.0-...-96b9560 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TodoService_AddTask_FullMethodName     = "/todo.v1.TodoService/AddTask"
	TodoService_ListTasks_FullMethodName   = "/todo.v1.TodoService/ListTasks"
	TodoService_UpdateTasks_FullMethodName = "/todo.v1.TodoService/UpdateTasks"
	TodoService_DeleteTasks_FullMethodName = "/todo.v1.TodoService/DeleteTasks"
)

Variables

View Source
var File_proto_todo_v1_todo_proto protoreflect.FileDescriptor
View Source
var TodoService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "todo.v1.TodoService",
	HandlerType: (*TodoServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "AddTask",
			Handler:    _TodoService_AddTask_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "ListTasks",
			Handler:       _TodoService_ListTasks_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "UpdateTasks",
			Handler:       _TodoService_UpdateTasks_Handler,
			ClientStreams: true,
		},
		{
			StreamName:    "DeleteTasks",
			Handler:       _TodoService_DeleteTasks_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
	},
	Metadata: "proto/todo/v1/todo.proto",
}

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

Functions

func RegisterTodoServiceServer

func RegisterTodoServiceServer(s grpc.ServiceRegistrar, srv TodoServiceServer)

Types

type AddTaskRequest

type AddTaskRequest struct {
	Description string                 `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"`
	DueDate     *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=due_date,json=dueDate,proto3" json:"due_date,omitempty"`
	// contains filtered or unexported fields
}

func (*AddTaskRequest) Descriptor deprecated

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

Deprecated: Use AddTaskRequest.ProtoReflect.Descriptor instead.

func (*AddTaskRequest) GetDescription

func (x *AddTaskRequest) GetDescription() string

func (*AddTaskRequest) GetDueDate

func (x *AddTaskRequest) GetDueDate() *timestamppb.Timestamp

func (*AddTaskRequest) ProtoMessage

func (*AddTaskRequest) ProtoMessage()

func (*AddTaskRequest) ProtoReflect

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

func (*AddTaskRequest) Reset

func (x *AddTaskRequest) Reset()

func (*AddTaskRequest) String

func (x *AddTaskRequest) String() string

func (*AddTaskRequest) Validate

func (m *AddTaskRequest) Validate() error

Validate checks the field values on AddTaskRequest 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 (*AddTaskRequest) ValidateAll

func (m *AddTaskRequest) ValidateAll() error

ValidateAll checks the field values on AddTaskRequest 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 AddTaskRequestMultiError, or nil if none found.

type AddTaskRequestMultiError

type AddTaskRequestMultiError []error

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

func (AddTaskRequestMultiError) AllErrors

func (m AddTaskRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AddTaskRequestMultiError) Error

func (m AddTaskRequestMultiError) Error() string

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

type AddTaskRequestValidationError

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

AddTaskRequestValidationError is the validation error returned by AddTaskRequest.Validate if the designated constraints aren't met.

func (AddTaskRequestValidationError) Cause

Cause function returns cause value.

func (AddTaskRequestValidationError) Error

Error satisfies the builtin error interface

func (AddTaskRequestValidationError) ErrorName

func (e AddTaskRequestValidationError) ErrorName() string

ErrorName returns error name.

func (AddTaskRequestValidationError) Field

Field function returns field value.

func (AddTaskRequestValidationError) Key

Key function returns key value.

func (AddTaskRequestValidationError) Reason

Reason function returns reason value.

type AddTaskResponse

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

func (*AddTaskResponse) Descriptor deprecated

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

Deprecated: Use AddTaskResponse.ProtoReflect.Descriptor instead.

func (*AddTaskResponse) GetId

func (x *AddTaskResponse) GetId() uint64

func (*AddTaskResponse) ProtoMessage

func (*AddTaskResponse) ProtoMessage()

func (*AddTaskResponse) ProtoReflect

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

func (*AddTaskResponse) Reset

func (x *AddTaskResponse) Reset()

func (*AddTaskResponse) String

func (x *AddTaskResponse) String() string

func (*AddTaskResponse) Validate

func (m *AddTaskResponse) Validate() error

Validate checks the field values on AddTaskResponse 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 (*AddTaskResponse) ValidateAll

func (m *AddTaskResponse) ValidateAll() error

ValidateAll checks the field values on AddTaskResponse 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 AddTaskResponseMultiError, or nil if none found.

type AddTaskResponseMultiError

type AddTaskResponseMultiError []error

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

func (AddTaskResponseMultiError) AllErrors

func (m AddTaskResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AddTaskResponseMultiError) Error

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

type AddTaskResponseValidationError

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

AddTaskResponseValidationError is the validation error returned by AddTaskResponse.Validate if the designated constraints aren't met.

func (AddTaskResponseValidationError) Cause

Cause function returns cause value.

func (AddTaskResponseValidationError) Error

Error satisfies the builtin error interface

func (AddTaskResponseValidationError) ErrorName

func (e AddTaskResponseValidationError) ErrorName() string

ErrorName returns error name.

func (AddTaskResponseValidationError) Field

Field function returns field value.

func (AddTaskResponseValidationError) Key

Key function returns key value.

func (AddTaskResponseValidationError) Reason

Reason function returns reason value.

type DeleteTasksRequest

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

func (*DeleteTasksRequest) Descriptor deprecated

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

Deprecated: Use DeleteTasksRequest.ProtoReflect.Descriptor instead.

func (*DeleteTasksRequest) GetId

func (x *DeleteTasksRequest) GetId() uint64

func (*DeleteTasksRequest) ProtoMessage

func (*DeleteTasksRequest) ProtoMessage()

func (*DeleteTasksRequest) ProtoReflect

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

func (*DeleteTasksRequest) Reset

func (x *DeleteTasksRequest) Reset()

func (*DeleteTasksRequest) String

func (x *DeleteTasksRequest) String() string

func (*DeleteTasksRequest) Validate

func (m *DeleteTasksRequest) Validate() error

Validate checks the field values on DeleteTasksRequest 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 (*DeleteTasksRequest) ValidateAll

func (m *DeleteTasksRequest) ValidateAll() error

ValidateAll checks the field values on DeleteTasksRequest 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 DeleteTasksRequestMultiError, or nil if none found.

type DeleteTasksRequestMultiError

type DeleteTasksRequestMultiError []error

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

func (DeleteTasksRequestMultiError) AllErrors

func (m DeleteTasksRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteTasksRequestMultiError) Error

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

type DeleteTasksRequestValidationError

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

DeleteTasksRequestValidationError is the validation error returned by DeleteTasksRequest.Validate if the designated constraints aren't met.

func (DeleteTasksRequestValidationError) Cause

Cause function returns cause value.

func (DeleteTasksRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteTasksRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteTasksRequestValidationError) Field

Field function returns field value.

func (DeleteTasksRequestValidationError) Key

Key function returns key value.

func (DeleteTasksRequestValidationError) Reason

Reason function returns reason value.

type DeleteTasksResponse

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

func (*DeleteTasksResponse) Descriptor deprecated

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

Deprecated: Use DeleteTasksResponse.ProtoReflect.Descriptor instead.

func (*DeleteTasksResponse) ProtoMessage

func (*DeleteTasksResponse) ProtoMessage()

func (*DeleteTasksResponse) ProtoReflect

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

func (*DeleteTasksResponse) Reset

func (x *DeleteTasksResponse) Reset()

func (*DeleteTasksResponse) String

func (x *DeleteTasksResponse) String() string

func (*DeleteTasksResponse) Validate

func (m *DeleteTasksResponse) Validate() error

Validate checks the field values on DeleteTasksResponse 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 (*DeleteTasksResponse) ValidateAll

func (m *DeleteTasksResponse) ValidateAll() error

ValidateAll checks the field values on DeleteTasksResponse 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 DeleteTasksResponseMultiError, or nil if none found.

type DeleteTasksResponseMultiError

type DeleteTasksResponseMultiError []error

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

func (DeleteTasksResponseMultiError) AllErrors

func (m DeleteTasksResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteTasksResponseMultiError) Error

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

type DeleteTasksResponseValidationError

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

DeleteTasksResponseValidationError is the validation error returned by DeleteTasksResponse.Validate if the designated constraints aren't met.

func (DeleteTasksResponseValidationError) Cause

Cause function returns cause value.

func (DeleteTasksResponseValidationError) Error

Error satisfies the builtin error interface

func (DeleteTasksResponseValidationError) ErrorName

ErrorName returns error name.

func (DeleteTasksResponseValidationError) Field

Field function returns field value.

func (DeleteTasksResponseValidationError) Key

Key function returns key value.

func (DeleteTasksResponseValidationError) Reason

Reason function returns reason value.

type ListTasksRequest

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

func (*ListTasksRequest) Descriptor deprecated

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

Deprecated: Use ListTasksRequest.ProtoReflect.Descriptor instead.

func (*ListTasksRequest) ProtoMessage

func (*ListTasksRequest) ProtoMessage()

func (*ListTasksRequest) ProtoReflect

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

func (*ListTasksRequest) Reset

func (x *ListTasksRequest) Reset()

func (*ListTasksRequest) String

func (x *ListTasksRequest) String() string

func (*ListTasksRequest) Validate

func (m *ListTasksRequest) Validate() error

Validate checks the field values on ListTasksRequest 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 (*ListTasksRequest) ValidateAll

func (m *ListTasksRequest) ValidateAll() error

ValidateAll checks the field values on ListTasksRequest 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 ListTasksRequestMultiError, or nil if none found.

type ListTasksRequestMultiError

type ListTasksRequestMultiError []error

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

func (ListTasksRequestMultiError) AllErrors

func (m ListTasksRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListTasksRequestMultiError) Error

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

type ListTasksRequestValidationError

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

ListTasksRequestValidationError is the validation error returned by ListTasksRequest.Validate if the designated constraints aren't met.

func (ListTasksRequestValidationError) Cause

Cause function returns cause value.

func (ListTasksRequestValidationError) Error

Error satisfies the builtin error interface

func (ListTasksRequestValidationError) ErrorName

ErrorName returns error name.

func (ListTasksRequestValidationError) Field

Field function returns field value.

func (ListTasksRequestValidationError) Key

Key function returns key value.

func (ListTasksRequestValidationError) Reason

Reason function returns reason value.

type ListTasksResponse

type ListTasksResponse struct {
	Task    *Task `protobuf:"bytes,1,opt,name=task,proto3" json:"task,omitempty"`
	Overdue bool  `protobuf:"varint,2,opt,name=overdue,proto3" json:"overdue,omitempty"`
	// contains filtered or unexported fields
}

func (*ListTasksResponse) Descriptor deprecated

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

Deprecated: Use ListTasksResponse.ProtoReflect.Descriptor instead.

func (*ListTasksResponse) GetOverdue

func (x *ListTasksResponse) GetOverdue() bool

func (*ListTasksResponse) GetTask

func (x *ListTasksResponse) GetTask() *Task

func (*ListTasksResponse) ProtoMessage

func (*ListTasksResponse) ProtoMessage()

func (*ListTasksResponse) ProtoReflect

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

func (*ListTasksResponse) Reset

func (x *ListTasksResponse) Reset()

func (*ListTasksResponse) String

func (x *ListTasksResponse) String() string

func (*ListTasksResponse) Validate

func (m *ListTasksResponse) Validate() error

Validate checks the field values on ListTasksResponse 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 (*ListTasksResponse) ValidateAll

func (m *ListTasksResponse) ValidateAll() error

ValidateAll checks the field values on ListTasksResponse 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 ListTasksResponseMultiError, or nil if none found.

type ListTasksResponseMultiError

type ListTasksResponseMultiError []error

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

func (ListTasksResponseMultiError) AllErrors

func (m ListTasksResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListTasksResponseMultiError) Error

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

type ListTasksResponseValidationError

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

ListTasksResponseValidationError is the validation error returned by ListTasksResponse.Validate if the designated constraints aren't met.

func (ListTasksResponseValidationError) Cause

Cause function returns cause value.

func (ListTasksResponseValidationError) Error

Error satisfies the builtin error interface

func (ListTasksResponseValidationError) ErrorName

ErrorName returns error name.

func (ListTasksResponseValidationError) Field

Field function returns field value.

func (ListTasksResponseValidationError) Key

Key function returns key value.

func (ListTasksResponseValidationError) Reason

Reason function returns reason value.

type Task

type Task struct {
	Id          uint64                 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Description string                 `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	Done        bool                   `protobuf:"varint,3,opt,name=done,proto3" json:"done,omitempty"`
	DueDate     *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=due_date,json=dueDate,proto3" json:"due_date,omitempty"`
	// contains filtered or unexported fields
}

func (*Task) Descriptor deprecated

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

Deprecated: Use Task.ProtoReflect.Descriptor instead.

func (*Task) GetDescription

func (x *Task) GetDescription() string

func (*Task) GetDone

func (x *Task) GetDone() bool

func (*Task) GetDueDate

func (x *Task) GetDueDate() *timestamppb.Timestamp

func (*Task) GetId

func (x *Task) GetId() uint64

func (*Task) ProtoMessage

func (*Task) ProtoMessage()

func (*Task) ProtoReflect

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

func (*Task) Reset

func (x *Task) Reset()

func (*Task) String

func (x *Task) String() string

func (*Task) Validate

func (m *Task) Validate() error

Validate checks the field values on Task 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 (*Task) ValidateAll

func (m *Task) ValidateAll() error

ValidateAll checks the field values on Task 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 TaskMultiError, or nil if none found.

type TaskMultiError

type TaskMultiError []error

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

func (TaskMultiError) AllErrors

func (m TaskMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (TaskMultiError) Error

func (m TaskMultiError) Error() string

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

type TaskValidationError

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

TaskValidationError is the validation error returned by Task.Validate if the designated constraints aren't met.

func (TaskValidationError) Cause

func (e TaskValidationError) Cause() error

Cause function returns cause value.

func (TaskValidationError) Error

func (e TaskValidationError) Error() string

Error satisfies the builtin error interface

func (TaskValidationError) ErrorName

func (e TaskValidationError) ErrorName() string

ErrorName returns error name.

func (TaskValidationError) Field

func (e TaskValidationError) Field() string

Field function returns field value.

func (TaskValidationError) Key

func (e TaskValidationError) Key() bool

Key function returns key value.

func (TaskValidationError) Reason

func (e TaskValidationError) Reason() string

Reason function returns reason value.

type TodoServiceClient

type TodoServiceClient interface {
	AddTask(ctx context.Context, in *AddTaskRequest, opts ...grpc.CallOption) (*AddTaskResponse, error)
	ListTasks(ctx context.Context, in *ListTasksRequest, opts ...grpc.CallOption) (TodoService_ListTasksClient, error)
	UpdateTasks(ctx context.Context, opts ...grpc.CallOption) (TodoService_UpdateTasksClient, error)
	DeleteTasks(ctx context.Context, opts ...grpc.CallOption) (TodoService_DeleteTasksClient, error)
}

TodoServiceClient is the client API for TodoService 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 TodoServiceServer

type TodoServiceServer interface {
	AddTask(context.Context, *AddTaskRequest) (*AddTaskResponse, error)
	ListTasks(*ListTasksRequest, TodoService_ListTasksServer) error
	UpdateTasks(TodoService_UpdateTasksServer) error
	DeleteTasks(TodoService_DeleteTasksServer) error
	// contains filtered or unexported methods
}

TodoServiceServer is the server API for TodoService service. All implementations must embed UnimplementedTodoServiceServer for forward compatibility

type TodoService_DeleteTasksClient

type TodoService_DeleteTasksClient interface {
	Send(*DeleteTasksRequest) error
	Recv() (*DeleteTasksResponse, error)
	grpc.ClientStream
}

type TodoService_DeleteTasksServer

type TodoService_DeleteTasksServer interface {
	Send(*DeleteTasksResponse) error
	Recv() (*DeleteTasksRequest, error)
	grpc.ServerStream
}

type TodoService_ListTasksClient

type TodoService_ListTasksClient interface {
	Recv() (*ListTasksResponse, error)
	grpc.ClientStream
}

type TodoService_ListTasksServer

type TodoService_ListTasksServer interface {
	Send(*ListTasksResponse) error
	grpc.ServerStream
}

type TodoService_UpdateTasksClient

type TodoService_UpdateTasksClient interface {
	Send(*UpdateTasksRequest) error
	CloseAndRecv() (*UpdateTasksResponse, error)
	grpc.ClientStream
}

type TodoService_UpdateTasksServer

type TodoService_UpdateTasksServer interface {
	SendAndClose(*UpdateTasksResponse) error
	Recv() (*UpdateTasksRequest, error)
	grpc.ServerStream
}

type UnimplementedTodoServiceServer

type UnimplementedTodoServiceServer struct {
}

UnimplementedTodoServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedTodoServiceServer) AddTask

func (UnimplementedTodoServiceServer) DeleteTasks

func (UnimplementedTodoServiceServer) ListTasks

func (UnimplementedTodoServiceServer) UpdateTasks

type UnsafeTodoServiceServer

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

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

type UpdateTasksRequest

type UpdateTasksRequest struct {
	Task *Task `protobuf:"bytes,1,opt,name=task,proto3" json:"task,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateTasksRequest) Descriptor deprecated

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

Deprecated: Use UpdateTasksRequest.ProtoReflect.Descriptor instead.

func (*UpdateTasksRequest) GetTask

func (x *UpdateTasksRequest) GetTask() *Task

func (*UpdateTasksRequest) ProtoMessage

func (*UpdateTasksRequest) ProtoMessage()

func (*UpdateTasksRequest) ProtoReflect

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

func (*UpdateTasksRequest) Reset

func (x *UpdateTasksRequest) Reset()

func (*UpdateTasksRequest) String

func (x *UpdateTasksRequest) String() string

func (*UpdateTasksRequest) Validate

func (m *UpdateTasksRequest) Validate() error

Validate checks the field values on UpdateTasksRequest 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 (*UpdateTasksRequest) ValidateAll

func (m *UpdateTasksRequest) ValidateAll() error

ValidateAll checks the field values on UpdateTasksRequest 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 UpdateTasksRequestMultiError, or nil if none found.

type UpdateTasksRequestMultiError

type UpdateTasksRequestMultiError []error

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

func (UpdateTasksRequestMultiError) AllErrors

func (m UpdateTasksRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateTasksRequestMultiError) Error

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

type UpdateTasksRequestValidationError

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

UpdateTasksRequestValidationError is the validation error returned by UpdateTasksRequest.Validate if the designated constraints aren't met.

func (UpdateTasksRequestValidationError) Cause

Cause function returns cause value.

func (UpdateTasksRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateTasksRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateTasksRequestValidationError) Field

Field function returns field value.

func (UpdateTasksRequestValidationError) Key

Key function returns key value.

func (UpdateTasksRequestValidationError) Reason

Reason function returns reason value.

type UpdateTasksResponse

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

func (*UpdateTasksResponse) Descriptor deprecated

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

Deprecated: Use UpdateTasksResponse.ProtoReflect.Descriptor instead.

func (*UpdateTasksResponse) ProtoMessage

func (*UpdateTasksResponse) ProtoMessage()

func (*UpdateTasksResponse) ProtoReflect

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

func (*UpdateTasksResponse) Reset

func (x *UpdateTasksResponse) Reset()

func (*UpdateTasksResponse) String

func (x *UpdateTasksResponse) String() string

func (*UpdateTasksResponse) Validate

func (m *UpdateTasksResponse) Validate() error

Validate checks the field values on UpdateTasksResponse 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 (*UpdateTasksResponse) ValidateAll

func (m *UpdateTasksResponse) ValidateAll() error

ValidateAll checks the field values on UpdateTasksResponse 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 UpdateTasksResponseMultiError, or nil if none found.

type UpdateTasksResponseMultiError

type UpdateTasksResponseMultiError []error

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

func (UpdateTasksResponseMultiError) AllErrors

func (m UpdateTasksResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateTasksResponseMultiError) Error

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

type UpdateTasksResponseValidationError

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

UpdateTasksResponseValidationError is the validation error returned by UpdateTasksResponse.Validate if the designated constraints aren't met.

func (UpdateTasksResponseValidationError) Cause

Cause function returns cause value.

func (UpdateTasksResponseValidationError) Error

Error satisfies the builtin error interface

func (UpdateTasksResponseValidationError) ErrorName

ErrorName returns error name.

func (UpdateTasksResponseValidationError) Field

Field function returns field value.

func (UpdateTasksResponseValidationError) Key

Key function returns key value.

func (UpdateTasksResponseValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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