DEVELOPMENT ENVIRONMENT

~liljamo/emerwen-proto

4437899d7ac462b4ea0521f90276f635f0270025 — Jonni Liljamo 26 days ago 63eb261
feat!: remove responses that can be achieved with status responses
3 files changed, 270 insertions(+), 667 deletions(-)

M go/proto/webtomaster.pb.go
M go/proto/webtomaster_grpc.pb.go
M proto/webtomaster.proto
M go/proto/webtomaster.pb.go => go/proto/webtomaster.pb.go +183 -550
@@ 112,29 112,29 @@ func (x *NewWorkerRequest) GetName() string {
	return ""
}

type NewWorkerResponse struct {
type PatchWorkerRequest struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	Success bool    `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	Msg     *string `protobuf:"bytes,2,opt,name=msg,proto3,oneof" json:"msg,omitempty"`
	WorkerId string  `protobuf:"bytes,1,opt,name=worker_id,json=workerId,proto3" json:"worker_id,omitempty"`
	Name     *string `protobuf:"bytes,2,opt,name=name,proto3,oneof" json:"name,omitempty"`
}

func (x *NewWorkerResponse) Reset() {
	*x = NewWorkerResponse{}
func (x *PatchWorkerRequest) Reset() {
	*x = PatchWorkerRequest{}
	mi := &file_webtomaster_proto_msgTypes[2]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *NewWorkerResponse) String() string {
func (x *PatchWorkerRequest) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*NewWorkerResponse) ProtoMessage() {}
func (*PatchWorkerRequest) ProtoMessage() {}

func (x *NewWorkerResponse) ProtoReflect() protoreflect.Message {
func (x *PatchWorkerRequest) ProtoReflect() protoreflect.Message {
	mi := &file_webtomaster_proto_msgTypes[2]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))


@@ 146,21 146,66 @@ func (x *NewWorkerResponse) ProtoReflect() protoreflect.Message {
	return mi.MessageOf(x)
}

// Deprecated: Use NewWorkerResponse.ProtoReflect.Descriptor instead.
func (*NewWorkerResponse) Descriptor() ([]byte, []int) {
// Deprecated: Use PatchWorkerRequest.ProtoReflect.Descriptor instead.
func (*PatchWorkerRequest) Descriptor() ([]byte, []int) {
	return file_webtomaster_proto_rawDescGZIP(), []int{2}
}

func (x *NewWorkerResponse) GetSuccess() bool {
func (x *PatchWorkerRequest) GetWorkerId() string {
	if x != nil {
		return x.WorkerId
	}
	return ""
}

func (x *PatchWorkerRequest) GetName() string {
	if x != nil && x.Name != nil {
		return *x.Name
	}
	return ""
}

type DeleteWorkerRequest struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	WorkerId string `protobuf:"bytes,1,opt,name=worker_id,json=workerId,proto3" json:"worker_id,omitempty"`
}

func (x *DeleteWorkerRequest) Reset() {
	*x = DeleteWorkerRequest{}
	mi := &file_webtomaster_proto_msgTypes[3]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *DeleteWorkerRequest) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*DeleteWorkerRequest) ProtoMessage() {}

func (x *DeleteWorkerRequest) ProtoReflect() protoreflect.Message {
	mi := &file_webtomaster_proto_msgTypes[3]
	if x != nil {
		return x.Success
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return false
	return mi.MessageOf(x)
}

// Deprecated: Use DeleteWorkerRequest.ProtoReflect.Descriptor instead.
func (*DeleteWorkerRequest) Descriptor() ([]byte, []int) {
	return file_webtomaster_proto_rawDescGZIP(), []int{3}
}

func (x *NewWorkerResponse) GetMsg() string {
	if x != nil && x.Msg != nil {
		return *x.Msg
func (x *DeleteWorkerRequest) GetWorkerId() string {
	if x != nil {
		return x.WorkerId
	}
	return ""
}


@@ 183,7 228,7 @@ type NewTargetRequest struct {

func (x *NewTargetRequest) Reset() {
	*x = NewTargetRequest{}
	mi := &file_webtomaster_proto_msgTypes[3]
	mi := &file_webtomaster_proto_msgTypes[4]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}


@@ 195,7 240,7 @@ func (x *NewTargetRequest) String() string {
func (*NewTargetRequest) ProtoMessage() {}

func (x *NewTargetRequest) ProtoReflect() protoreflect.Message {
	mi := &file_webtomaster_proto_msgTypes[3]
	mi := &file_webtomaster_proto_msgTypes[4]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {


@@ 208,7 253,7 @@ func (x *NewTargetRequest) ProtoReflect() protoreflect.Message {

// Deprecated: Use NewTargetRequest.ProtoReflect.Descriptor instead.
func (*NewTargetRequest) Descriptor() ([]byte, []int) {
	return file_webtomaster_proto_rawDescGZIP(), []int{3}
	return file_webtomaster_proto_rawDescGZIP(), []int{4}
}

func (x *NewTargetRequest) GetWorkerId() string {


@@ 276,165 321,6 @@ func (*NewTargetRequest_Ping) isNewTargetRequest_Method() {}

func (*NewTargetRequest_Get) isNewTargetRequest_Method() {}

type NewTargetResponse struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	Success bool    `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	Msg     *string `protobuf:"bytes,2,opt,name=msg,proto3,oneof" json:"msg,omitempty"`
}

func (x *NewTargetResponse) Reset() {
	*x = NewTargetResponse{}
	mi := &file_webtomaster_proto_msgTypes[4]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *NewTargetResponse) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*NewTargetResponse) ProtoMessage() {}

func (x *NewTargetResponse) ProtoReflect() protoreflect.Message {
	mi := &file_webtomaster_proto_msgTypes[4]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use NewTargetResponse.ProtoReflect.Descriptor instead.
func (*NewTargetResponse) Descriptor() ([]byte, []int) {
	return file_webtomaster_proto_rawDescGZIP(), []int{4}
}

func (x *NewTargetResponse) GetSuccess() bool {
	if x != nil {
		return x.Success
	}
	return false
}

func (x *NewTargetResponse) GetMsg() string {
	if x != nil && x.Msg != nil {
		return *x.Msg
	}
	return ""
}

type PatchWorkerRequest struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	WorkerId string  `protobuf:"bytes,1,opt,name=worker_id,json=workerId,proto3" json:"worker_id,omitempty"`
	Name     *string `protobuf:"bytes,2,opt,name=name,proto3,oneof" json:"name,omitempty"`
}

func (x *PatchWorkerRequest) Reset() {
	*x = PatchWorkerRequest{}
	mi := &file_webtomaster_proto_msgTypes[5]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *PatchWorkerRequest) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*PatchWorkerRequest) ProtoMessage() {}

func (x *PatchWorkerRequest) ProtoReflect() protoreflect.Message {
	mi := &file_webtomaster_proto_msgTypes[5]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use PatchWorkerRequest.ProtoReflect.Descriptor instead.
func (*PatchWorkerRequest) Descriptor() ([]byte, []int) {
	return file_webtomaster_proto_rawDescGZIP(), []int{5}
}

func (x *PatchWorkerRequest) GetWorkerId() string {
	if x != nil {
		return x.WorkerId
	}
	return ""
}

func (x *PatchWorkerRequest) GetName() string {
	if x != nil && x.Name != nil {
		return *x.Name
	}
	return ""
}

type PatchWorkerResponse struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	Success bool    `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	Msg     *string `protobuf:"bytes,2,opt,name=msg,proto3,oneof" json:"msg,omitempty"`
}

func (x *PatchWorkerResponse) Reset() {
	*x = PatchWorkerResponse{}
	mi := &file_webtomaster_proto_msgTypes[6]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *PatchWorkerResponse) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*PatchWorkerResponse) ProtoMessage() {}

func (x *PatchWorkerResponse) ProtoReflect() protoreflect.Message {
	mi := &file_webtomaster_proto_msgTypes[6]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use PatchWorkerResponse.ProtoReflect.Descriptor instead.
func (*PatchWorkerResponse) Descriptor() ([]byte, []int) {
	return file_webtomaster_proto_rawDescGZIP(), []int{6}
}

func (x *PatchWorkerResponse) GetSuccess() bool {
	if x != nil {
		return x.Success
	}
	return false
}

func (x *PatchWorkerResponse) GetMsg() string {
	if x != nil && x.Msg != nil {
		return *x.Msg
	}
	return ""
}

type PatchTargetRequest struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache


@@ 453,7 339,7 @@ type PatchTargetRequest struct {

func (x *PatchTargetRequest) Reset() {
	*x = PatchTargetRequest{}
	mi := &file_webtomaster_proto_msgTypes[7]
	mi := &file_webtomaster_proto_msgTypes[5]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}


@@ 465,7 351,7 @@ func (x *PatchTargetRequest) String() string {
func (*PatchTargetRequest) ProtoMessage() {}

func (x *PatchTargetRequest) ProtoReflect() protoreflect.Message {
	mi := &file_webtomaster_proto_msgTypes[7]
	mi := &file_webtomaster_proto_msgTypes[5]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {


@@ 478,7 364,7 @@ func (x *PatchTargetRequest) ProtoReflect() protoreflect.Message {

// Deprecated: Use PatchTargetRequest.ProtoReflect.Descriptor instead.
func (*PatchTargetRequest) Descriptor() ([]byte, []int) {
	return file_webtomaster_proto_rawDescGZIP(), []int{7}
	return file_webtomaster_proto_rawDescGZIP(), []int{5}
}

func (x *PatchTargetRequest) GetTargetId() string {


@@ 546,157 432,6 @@ func (*PatchTargetRequest_Ping) isPatchTargetRequest_Method() {}

func (*PatchTargetRequest_Get) isPatchTargetRequest_Method() {}

type PatchTargetResponse struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	Success bool    `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	Msg     *string `protobuf:"bytes,2,opt,name=msg,proto3,oneof" json:"msg,omitempty"`
}

func (x *PatchTargetResponse) Reset() {
	*x = PatchTargetResponse{}
	mi := &file_webtomaster_proto_msgTypes[8]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *PatchTargetResponse) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*PatchTargetResponse) ProtoMessage() {}

func (x *PatchTargetResponse) ProtoReflect() protoreflect.Message {
	mi := &file_webtomaster_proto_msgTypes[8]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use PatchTargetResponse.ProtoReflect.Descriptor instead.
func (*PatchTargetResponse) Descriptor() ([]byte, []int) {
	return file_webtomaster_proto_rawDescGZIP(), []int{8}
}

func (x *PatchTargetResponse) GetSuccess() bool {
	if x != nil {
		return x.Success
	}
	return false
}

func (x *PatchTargetResponse) GetMsg() string {
	if x != nil && x.Msg != nil {
		return *x.Msg
	}
	return ""
}

type DeleteWorkerRequest struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	WorkerId string `protobuf:"bytes,1,opt,name=worker_id,json=workerId,proto3" json:"worker_id,omitempty"`
}

func (x *DeleteWorkerRequest) Reset() {
	*x = DeleteWorkerRequest{}
	mi := &file_webtomaster_proto_msgTypes[9]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *DeleteWorkerRequest) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*DeleteWorkerRequest) ProtoMessage() {}

func (x *DeleteWorkerRequest) ProtoReflect() protoreflect.Message {
	mi := &file_webtomaster_proto_msgTypes[9]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use DeleteWorkerRequest.ProtoReflect.Descriptor instead.
func (*DeleteWorkerRequest) Descriptor() ([]byte, []int) {
	return file_webtomaster_proto_rawDescGZIP(), []int{9}
}

func (x *DeleteWorkerRequest) GetWorkerId() string {
	if x != nil {
		return x.WorkerId
	}
	return ""
}

type DeleteWorkerResponse struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	Success bool    `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	Msg     *string `protobuf:"bytes,2,opt,name=msg,proto3,oneof" json:"msg,omitempty"`
}

func (x *DeleteWorkerResponse) Reset() {
	*x = DeleteWorkerResponse{}
	mi := &file_webtomaster_proto_msgTypes[10]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *DeleteWorkerResponse) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*DeleteWorkerResponse) ProtoMessage() {}

func (x *DeleteWorkerResponse) ProtoReflect() protoreflect.Message {
	mi := &file_webtomaster_proto_msgTypes[10]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use DeleteWorkerResponse.ProtoReflect.Descriptor instead.
func (*DeleteWorkerResponse) Descriptor() ([]byte, []int) {
	return file_webtomaster_proto_rawDescGZIP(), []int{10}
}

func (x *DeleteWorkerResponse) GetSuccess() bool {
	if x != nil {
		return x.Success
	}
	return false
}

func (x *DeleteWorkerResponse) GetMsg() string {
	if x != nil && x.Msg != nil {
		return *x.Msg
	}
	return ""
}

type DeleteTargetRequest struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache


@@ 707,7 442,7 @@ type DeleteTargetRequest struct {

func (x *DeleteTargetRequest) Reset() {
	*x = DeleteTargetRequest{}
	mi := &file_webtomaster_proto_msgTypes[11]
	mi := &file_webtomaster_proto_msgTypes[6]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}


@@ 719,7 454,7 @@ func (x *DeleteTargetRequest) String() string {
func (*DeleteTargetRequest) ProtoMessage() {}

func (x *DeleteTargetRequest) ProtoReflect() protoreflect.Message {
	mi := &file_webtomaster_proto_msgTypes[11]
	mi := &file_webtomaster_proto_msgTypes[6]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {


@@ 732,7 467,7 @@ func (x *DeleteTargetRequest) ProtoReflect() protoreflect.Message {

// Deprecated: Use DeleteTargetRequest.ProtoReflect.Descriptor instead.
func (*DeleteTargetRequest) Descriptor() ([]byte, []int) {
	return file_webtomaster_proto_rawDescGZIP(), []int{11}
	return file_webtomaster_proto_rawDescGZIP(), []int{6}
}

func (x *DeleteTargetRequest) GetTargetId() string {


@@ 742,59 477,6 @@ func (x *DeleteTargetRequest) GetTargetId() string {
	return ""
}

type DeleteTargetResponse struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	Success bool    `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	Msg     *string `protobuf:"bytes,2,opt,name=msg,proto3,oneof" json:"msg,omitempty"`
}

func (x *DeleteTargetResponse) Reset() {
	*x = DeleteTargetResponse{}
	mi := &file_webtomaster_proto_msgTypes[12]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *DeleteTargetResponse) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*DeleteTargetResponse) ProtoMessage() {}

func (x *DeleteTargetResponse) ProtoReflect() protoreflect.Message {
	mi := &file_webtomaster_proto_msgTypes[12]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use DeleteTargetResponse.ProtoReflect.Descriptor instead.
func (*DeleteTargetResponse) Descriptor() ([]byte, []int) {
	return file_webtomaster_proto_rawDescGZIP(), []int{12}
}

func (x *DeleteTargetResponse) GetSuccess() bool {
	if x != nil {
		return x.Success
	}
	return false
}

func (x *DeleteTargetResponse) GetMsg() string {
	if x != nil && x.Msg != nil {
		return *x.Msg
	}
	return ""
}

var File_webtomaster_proto protoreflect.FileDescriptor

var file_webtomaster_proto_rawDesc = []byte{


@@ 811,126 493,89 @@ var file_webtomaster_proto_rawDesc = []byte{
	0x61, 0x72, 0x65, 0x64, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x52, 0x07, 0x77, 0x6f, 0x72,
	0x6b, 0x65, 0x72, 0x73, 0x22, 0x26, 0x0a, 0x10, 0x4e, 0x65, 0x77, 0x57, 0x6f, 0x72, 0x6b, 0x65,
	0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65,
	0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x4c, 0x0a, 0x11,
	0x4e, 0x65, 0x77, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
	0x65, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01,
	0x28, 0x08, 0x52, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x15, 0x0a, 0x03, 0x6d,
	0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x88,
	0x01, 0x01, 0x42, 0x06, 0x0a, 0x04, 0x5f, 0x6d, 0x73, 0x67, 0x22, 0xde, 0x01, 0x0a, 0x10, 0x4e,
	0x65, 0x77, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
	0x1b, 0x0a, 0x09, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
	0x28, 0x09, 0x52, 0x08, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04,
	0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65,
	0x12, 0x12, 0x0a, 0x04, 0x61, 0x64, 0x64, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
	0x61, 0x64, 0x64, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c,
	0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c,
	0x12, 0x30, 0x0a, 0x04, 0x70, 0x69, 0x6e, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a,
	0x2e, 0x65, 0x6d, 0x65, 0x72, 0x77, 0x65, 0x6e, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e,
	0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x50, 0x69, 0x6e, 0x67, 0x48, 0x00, 0x52, 0x04, 0x70, 0x69,
	0x6e, 0x67, 0x12, 0x2d, 0x0a, 0x03, 0x67, 0x65, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32,
	0x19, 0x2e, 0x65, 0x6d, 0x65, 0x72, 0x77, 0x65, 0x6e, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64,
	0x2e, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x47, 0x45, 0x54, 0x48, 0x00, 0x52, 0x03, 0x67, 0x65,
	0x74, 0x42, 0x08, 0x0a, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x22, 0x4c, 0x0a, 0x11, 0x4e,
	0x65, 0x77, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
	0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28,
	0x08, 0x52, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x15, 0x0a, 0x03, 0x6d, 0x73,
	0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x88, 0x01,
	0x01, 0x42, 0x06, 0x0a, 0x04, 0x5f, 0x6d, 0x73, 0x67, 0x22, 0x53, 0x0a, 0x12, 0x50, 0x61, 0x74,
	0x63, 0x68, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
	0x1b, 0x0a, 0x09, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
	0x28, 0x09, 0x52, 0x08, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x04,
	0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x04, 0x6e, 0x61,
	0x6d, 0x65, 0x88, 0x01, 0x01, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x4e,
	0x0a, 0x13, 0x50, 0x61, 0x74, 0x63, 0x68, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x52, 0x65, 0x73,
	0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73,
	0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12,
	0x15, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x03,
	0x6d, 0x73, 0x67, 0x88, 0x01, 0x01, 0x42, 0x06, 0x0a, 0x04, 0x5f, 0x6d, 0x73, 0x67, 0x22, 0x8e,
	0x02, 0x0a, 0x12, 0x50, 0x61, 0x74, 0x63, 0x68, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x52, 0x65,
	0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f,
	0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74,
	0x49, 0x64, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
	0x48, 0x01, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x88, 0x01, 0x01, 0x12, 0x17, 0x0a, 0x04, 0x61,
	0x64, 0x64, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x02, 0x52, 0x04, 0x61, 0x64, 0x64,
	0x72, 0x88, 0x01, 0x01, 0x12, 0x1f, 0x0a, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c,
	0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x48, 0x03, 0x52, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76,
	0x61, 0x6c, 0x88, 0x01, 0x01, 0x12, 0x30, 0x0a, 0x04, 0x70, 0x69, 0x6e, 0x67, 0x18, 0x05, 0x20,
	0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x65, 0x6d, 0x65, 0x72, 0x77, 0x65, 0x6e, 0x2e, 0x73, 0x68,
	0x61, 0x72, 0x65, 0x64, 0x2e, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x50, 0x69, 0x6e, 0x67, 0x48,
	0x00, 0x52, 0x04, 0x70, 0x69, 0x6e, 0x67, 0x12, 0x2d, 0x0a, 0x03, 0x67, 0x65, 0x74, 0x18, 0x06,
	0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x65, 0x6d, 0x65, 0x72, 0x77, 0x65, 0x6e, 0x2e, 0x73,
	0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x47, 0x45, 0x54, 0x48,
	0x00, 0x52, 0x03, 0x67, 0x65, 0x74, 0x42, 0x08, 0x0a, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64,
	0x42, 0x07, 0x0a, 0x05, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x61, 0x64,
	0x64, 0x72, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x22,
	0x4e, 0x0a, 0x13, 0x50, 0x61, 0x74, 0x63, 0x68, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x52, 0x65,
	0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73,
	0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73,
	0x12, 0x15, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52,
	0x03, 0x6d, 0x73, 0x67, 0x88, 0x01, 0x01, 0x42, 0x06, 0x0a, 0x04, 0x5f, 0x6d, 0x73, 0x67, 0x22,
	0x32, 0x0a, 0x13, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x52,
	0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72,
	0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x77, 0x6f, 0x72, 0x6b, 0x65,
	0x72, 0x49, 0x64, 0x22, 0x4f, 0x0a, 0x14, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x57, 0x6f, 0x72,
	0x6b, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x73,
	0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x73, 0x75,
	0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x15, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01,
	0x28, 0x09, 0x48, 0x00, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x88, 0x01, 0x01, 0x42, 0x06, 0x0a, 0x04,
	0x5f, 0x6d, 0x73, 0x67, 0x22, 0x32, 0x0a, 0x13, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x61,
	0x72, 0x67, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x74,
	0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08,
	0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x49, 0x64, 0x22, 0x4f, 0x0a, 0x14, 0x44, 0x65, 0x6c, 0x65,
	0x74, 0x65, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
	0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28,
	0x08, 0x52, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x15, 0x0a, 0x03, 0x6d, 0x73,
	0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x88, 0x01,
	0x01, 0x42, 0x06, 0x0a, 0x04, 0x5f, 0x6d, 0x73, 0x67, 0x32, 0x9f, 0x05, 0x0a, 0x0b, 0x57, 0x65,
	0x62, 0x54, 0x6f, 0x4d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x12, 0x4a, 0x0a, 0x0a, 0x47, 0x65, 0x74,
	0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x73, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
	0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a,
	0x24, 0x2e, 0x65, 0x6d, 0x65, 0x72, 0x77, 0x65, 0x6e, 0x2e, 0x77, 0x65, 0x62, 0x74, 0x6f, 0x6d,
	0x61, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73,
	0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5a, 0x0a, 0x09, 0x4e, 0x65, 0x77, 0x57, 0x6f, 0x72, 0x6b,
	0x65, 0x72, 0x12, 0x25, 0x2e, 0x65, 0x6d, 0x65, 0x72, 0x77, 0x65, 0x6e, 0x2e, 0x77, 0x65, 0x62,
	0x74, 0x6f, 0x6d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x4e, 0x65, 0x77, 0x57, 0x6f, 0x72, 0x6b,
	0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x65, 0x6d, 0x65, 0x72,
	0x77, 0x65, 0x6e, 0x2e, 0x77, 0x65, 0x62, 0x74, 0x6f, 0x6d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x2e,
	0x4e, 0x65, 0x77, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
	0x65, 0x12, 0x5a, 0x0a, 0x09, 0x4e, 0x65, 0x77, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x25,
	0x2e, 0x65, 0x6d, 0x65, 0x72, 0x77, 0x65, 0x6e, 0x2e, 0x77, 0x65, 0x62, 0x74, 0x6f, 0x6d, 0x61,
	0x73, 0x74, 0x65, 0x72, 0x2e, 0x4e, 0x65, 0x77, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x52, 0x65,
	0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x65, 0x6d, 0x65, 0x72, 0x77, 0x65, 0x6e, 0x2e,
	0x77, 0x65, 0x62, 0x74, 0x6f, 0x6d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x4e, 0x65, 0x77, 0x54,
	0x61, 0x72, 0x67, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x60, 0x0a,
	0x0b, 0x50, 0x61, 0x74, 0x63, 0x68, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x12, 0x27, 0x2e, 0x65,
	0x6d, 0x65, 0x72, 0x77, 0x65, 0x6e, 0x2e, 0x77, 0x65, 0x62, 0x74, 0x6f, 0x6d, 0x61, 0x73, 0x74,
	0x65, 0x72, 0x2e, 0x50, 0x61, 0x74, 0x63, 0x68, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x52, 0x65,
	0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x65, 0x6d, 0x65, 0x72, 0x77, 0x65, 0x6e, 0x2e,
	0x77, 0x65, 0x62, 0x74, 0x6f, 0x6d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x50, 0x61, 0x74, 0x63,
	0x68, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
	0x60, 0x0a, 0x0b, 0x50, 0x61, 0x74, 0x63, 0x68, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x27,
	0x2e, 0x65, 0x6d, 0x65, 0x72, 0x77, 0x65, 0x6e, 0x2e, 0x77, 0x65, 0x62, 0x74, 0x6f, 0x6d, 0x61,
	0x73, 0x74, 0x65, 0x72, 0x2e, 0x50, 0x61, 0x74, 0x63, 0x68, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74,
	0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x65, 0x6d, 0x65, 0x72, 0x77, 0x65,
	0x6e, 0x2e, 0x77, 0x65, 0x62, 0x74, 0x6f, 0x6d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x50, 0x61,
	0x74, 0x63, 0x68, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
	0x65, 0x12, 0x63, 0x0a, 0x0c, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x65,
	0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x53, 0x0a, 0x12,
	0x50, 0x61, 0x74, 0x63, 0x68, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65,
	0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18,
	0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x49, 0x64, 0x12,
	0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52,
	0x04, 0x6e, 0x61, 0x6d, 0x65, 0x88, 0x01, 0x01, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x6e, 0x61, 0x6d,
	0x65, 0x22, 0x32, 0x0a, 0x13, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x65,
	0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x77, 0x6f, 0x72, 0x6b,
	0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x77, 0x6f, 0x72,
	0x6b, 0x65, 0x72, 0x49, 0x64, 0x22, 0xde, 0x01, 0x0a, 0x10, 0x4e, 0x65, 0x77, 0x54, 0x61, 0x72,
	0x67, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x77, 0x6f,
	0x72, 0x6b, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x77,
	0x6f, 0x72, 0x6b, 0x65, 0x72, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18,
	0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x61,
	0x64, 0x64, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x61, 0x64, 0x64, 0x72, 0x12,
	0x1a, 0x0a, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28,
	0x05, 0x52, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x12, 0x30, 0x0a, 0x04, 0x70,
	0x69, 0x6e, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x65, 0x6d, 0x65, 0x72,
	0x77, 0x65, 0x6e, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, 0x4d, 0x65, 0x74, 0x68, 0x6f,
	0x64, 0x50, 0x69, 0x6e, 0x67, 0x48, 0x00, 0x52, 0x04, 0x70, 0x69, 0x6e, 0x67, 0x12, 0x2d, 0x0a,
	0x03, 0x67, 0x65, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x65, 0x6d, 0x65,
	0x72, 0x77, 0x65, 0x6e, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, 0x4d, 0x65, 0x74, 0x68,
	0x6f, 0x64, 0x47, 0x45, 0x54, 0x48, 0x00, 0x52, 0x03, 0x67, 0x65, 0x74, 0x42, 0x08, 0x0a, 0x06,
	0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x22, 0x8e, 0x02, 0x0a, 0x12, 0x50, 0x61, 0x74, 0x63, 0x68,
	0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a,
	0x09, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
	0x52, 0x08, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61,
	0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65,
	0x88, 0x01, 0x01, 0x12, 0x17, 0x0a, 0x04, 0x61, 0x64, 0x64, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28,
	0x09, 0x48, 0x02, 0x52, 0x04, 0x61, 0x64, 0x64, 0x72, 0x88, 0x01, 0x01, 0x12, 0x1f, 0x0a, 0x08,
	0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x48, 0x03,
	0x52, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x88, 0x01, 0x01, 0x12, 0x30, 0x0a,
	0x04, 0x70, 0x69, 0x6e, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x65, 0x6d,
	0x65, 0x72, 0x77, 0x65, 0x6e, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, 0x4d, 0x65, 0x74,
	0x68, 0x6f, 0x64, 0x50, 0x69, 0x6e, 0x67, 0x48, 0x00, 0x52, 0x04, 0x70, 0x69, 0x6e, 0x67, 0x12,
	0x2d, 0x0a, 0x03, 0x67, 0x65, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x65,
	0x6d, 0x65, 0x72, 0x77, 0x65, 0x6e, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, 0x4d, 0x65,
	0x74, 0x68, 0x6f, 0x64, 0x47, 0x45, 0x54, 0x48, 0x00, 0x52, 0x03, 0x67, 0x65, 0x74, 0x42, 0x08,
	0x0a, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x6e, 0x61, 0x6d,
	0x65, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x69,
	0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x22, 0x32, 0x0a, 0x13, 0x44, 0x65, 0x6c, 0x65, 0x74,
	0x65, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b,
	0x0a, 0x09, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
	0x09, 0x52, 0x08, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x49, 0x64, 0x32, 0xb5, 0x04, 0x0a, 0x0b,
	0x57, 0x65, 0x62, 0x54, 0x6f, 0x4d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x12, 0x4a, 0x0a, 0x0a, 0x47,
	0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x73, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
	0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74,
	0x79, 0x1a, 0x24, 0x2e, 0x65, 0x6d, 0x65, 0x72, 0x77, 0x65, 0x6e, 0x2e, 0x77, 0x65, 0x62, 0x74,
	0x6f, 0x6d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x73, 0x52,
	0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4a, 0x0a, 0x09, 0x4e, 0x65, 0x77, 0x57, 0x6f,
	0x72, 0x6b, 0x65, 0x72, 0x12, 0x25, 0x2e, 0x65, 0x6d, 0x65, 0x72, 0x77, 0x65, 0x6e, 0x2e, 0x77,
	0x65, 0x62, 0x74, 0x6f, 0x6d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x4e, 0x65, 0x77, 0x57, 0x6f,
	0x72, 0x6b, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f,
	0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d,
	0x70, 0x74, 0x79, 0x12, 0x4e, 0x0a, 0x0b, 0x50, 0x61, 0x74, 0x63, 0x68, 0x57, 0x6f, 0x72, 0x6b,
	0x65, 0x72, 0x12, 0x27, 0x2e, 0x65, 0x6d, 0x65, 0x72, 0x77, 0x65, 0x6e, 0x2e, 0x77, 0x65, 0x62,
	0x74, 0x6f, 0x6d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x50, 0x61, 0x74, 0x63, 0x68, 0x57, 0x6f,
	0x72, 0x6b, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f,
	0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d,
	0x70, 0x74, 0x79, 0x12, 0x50, 0x0a, 0x0c, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x61, 0x72,
	0x67, 0x65, 0x74, 0x12, 0x28, 0x2e, 0x65, 0x6d, 0x65, 0x72, 0x77, 0x65, 0x6e, 0x2e, 0x77, 0x65,
	0x62, 0x74, 0x6f, 0x6d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65,
	0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e,
	0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,
	0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x4a, 0x0a, 0x09, 0x4e, 0x65, 0x77, 0x54, 0x61, 0x72, 0x67,
	0x65, 0x74, 0x12, 0x25, 0x2e, 0x65, 0x6d, 0x65, 0x72, 0x77, 0x65, 0x6e, 0x2e, 0x77, 0x65, 0x62,
	0x74, 0x6f, 0x6d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x4e, 0x65, 0x77, 0x54, 0x61, 0x72, 0x67,
	0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
	0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74,
	0x79, 0x12, 0x4e, 0x0a, 0x0b, 0x50, 0x61, 0x74, 0x63, 0x68, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74,
	0x12, 0x27, 0x2e, 0x65, 0x6d, 0x65, 0x72, 0x77, 0x65, 0x6e, 0x2e, 0x77, 0x65, 0x62, 0x74, 0x6f,
	0x6d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x50, 0x61, 0x74, 0x63, 0x68, 0x54, 0x61, 0x72, 0x67,
	0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
	0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74,
	0x79, 0x12, 0x50, 0x0a, 0x0c, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x65,
	0x72, 0x12, 0x28, 0x2e, 0x65, 0x6d, 0x65, 0x72, 0x77, 0x65, 0x6e, 0x2e, 0x77, 0x65, 0x62, 0x74,
	0x6f, 0x6d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x57, 0x6f,
	0x72, 0x6b, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x65, 0x6d,
	0x65, 0x72, 0x77, 0x65, 0x6e, 0x2e, 0x77, 0x65, 0x62, 0x74, 0x6f, 0x6d, 0x61, 0x73, 0x74, 0x65,
	0x72, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x52, 0x65,
	0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x63, 0x0a, 0x0c, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65,
	0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x28, 0x2e, 0x65, 0x6d, 0x65, 0x72, 0x77, 0x65, 0x6e,
	0x2e, 0x77, 0x65, 0x62, 0x74, 0x6f, 0x6d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x44, 0x65, 0x6c,
	0x65, 0x74, 0x65, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
	0x1a, 0x29, 0x2e, 0x65, 0x6d, 0x65, 0x72, 0x77, 0x65, 0x6e, 0x2e, 0x77, 0x65, 0x62, 0x74, 0x6f,
	0x6d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x61, 0x72,
	0x67, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x2f, 0x5a, 0x2d, 0x67,
	0x69, 0x74, 0x2e, 0x73, 0x72, 0x63, 0x2e, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2f, 0x7e, 0x6c, 0x69,
	0x6c, 0x6a, 0x61, 0x6d, 0x6f, 0x2f, 0x65, 0x6d, 0x65, 0x72, 0x77, 0x65, 0x6e, 0x2d, 0x70, 0x72,
	0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72,
	0x6f, 0x74, 0x6f, 0x33,
	0x72, 0x6b, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f,
	0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d,
	0x70, 0x74, 0x79, 0x42, 0x2f, 0x5a, 0x2d, 0x67, 0x69, 0x74, 0x2e, 0x73, 0x72, 0x63, 0x2e, 0x71,
	0x75, 0x65, 0x73, 0x74, 0x2f, 0x7e, 0x6c, 0x69, 0x6c, 0x6a, 0x61, 0x6d, 0x6f, 0x2f, 0x65, 0x6d,
	0x65, 0x72, 0x77, 0x65, 0x6e, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x70,
	0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}

var (


@@ 945,46 590,40 @@ func file_webtomaster_proto_rawDescGZIP() []byte {
	return file_webtomaster_proto_rawDescData
}

var file_webtomaster_proto_msgTypes = make([]protoimpl.MessageInfo, 13)
var file_webtomaster_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
var file_webtomaster_proto_goTypes = []any{
	(*WorkersResponse)(nil),      // 0: emerwen.webtomaster.WorkersResponse
	(*NewWorkerRequest)(nil),     // 1: emerwen.webtomaster.NewWorkerRequest
	(*NewWorkerResponse)(nil),    // 2: emerwen.webtomaster.NewWorkerResponse
	(*NewTargetRequest)(nil),     // 3: emerwen.webtomaster.NewTargetRequest
	(*NewTargetResponse)(nil),    // 4: emerwen.webtomaster.NewTargetResponse
	(*PatchWorkerRequest)(nil),   // 5: emerwen.webtomaster.PatchWorkerRequest
	(*PatchWorkerResponse)(nil),  // 6: emerwen.webtomaster.PatchWorkerResponse
	(*PatchTargetRequest)(nil),   // 7: emerwen.webtomaster.PatchTargetRequest
	(*PatchTargetResponse)(nil),  // 8: emerwen.webtomaster.PatchTargetResponse
	(*DeleteWorkerRequest)(nil),  // 9: emerwen.webtomaster.DeleteWorkerRequest
	(*DeleteWorkerResponse)(nil), // 10: emerwen.webtomaster.DeleteWorkerResponse
	(*DeleteTargetRequest)(nil),  // 11: emerwen.webtomaster.DeleteTargetRequest
	(*DeleteTargetResponse)(nil), // 12: emerwen.webtomaster.DeleteTargetResponse
	(*shared.Worker)(nil),        // 13: emerwen.shared.Worker
	(*shared.MethodPing)(nil),    // 14: emerwen.shared.MethodPing
	(*shared.MethodGET)(nil),     // 15: emerwen.shared.MethodGET
	(*emptypb.Empty)(nil),        // 16: google.protobuf.Empty
	(*WorkersResponse)(nil),     // 0: emerwen.webtomaster.WorkersResponse
	(*NewWorkerRequest)(nil),    // 1: emerwen.webtomaster.NewWorkerRequest
	(*PatchWorkerRequest)(nil),  // 2: emerwen.webtomaster.PatchWorkerRequest
	(*DeleteWorkerRequest)(nil), // 3: emerwen.webtomaster.DeleteWorkerRequest
	(*NewTargetRequest)(nil),    // 4: emerwen.webtomaster.NewTargetRequest
	(*PatchTargetRequest)(nil),  // 5: emerwen.webtomaster.PatchTargetRequest
	(*DeleteTargetRequest)(nil), // 6: emerwen.webtomaster.DeleteTargetRequest
	(*shared.Worker)(nil),       // 7: emerwen.shared.Worker
	(*shared.MethodPing)(nil),   // 8: emerwen.shared.MethodPing
	(*shared.MethodGET)(nil),    // 9: emerwen.shared.MethodGET
	(*emptypb.Empty)(nil),       // 10: google.protobuf.Empty
}
var file_webtomaster_proto_depIdxs = []int32{
	13, // 0: emerwen.webtomaster.WorkersResponse.workers:type_name -> emerwen.shared.Worker
	14, // 1: emerwen.webtomaster.NewTargetRequest.ping:type_name -> emerwen.shared.MethodPing
	15, // 2: emerwen.webtomaster.NewTargetRequest.get:type_name -> emerwen.shared.MethodGET
	14, // 3: emerwen.webtomaster.PatchTargetRequest.ping:type_name -> emerwen.shared.MethodPing
	15, // 4: emerwen.webtomaster.PatchTargetRequest.get:type_name -> emerwen.shared.MethodGET
	16, // 5: emerwen.webtomaster.WebToMaster.GetWorkers:input_type -> google.protobuf.Empty
	7,  // 0: emerwen.webtomaster.WorkersResponse.workers:type_name -> emerwen.shared.Worker
	8,  // 1: emerwen.webtomaster.NewTargetRequest.ping:type_name -> emerwen.shared.MethodPing
	9,  // 2: emerwen.webtomaster.NewTargetRequest.get:type_name -> emerwen.shared.MethodGET
	8,  // 3: emerwen.webtomaster.PatchTargetRequest.ping:type_name -> emerwen.shared.MethodPing
	9,  // 4: emerwen.webtomaster.PatchTargetRequest.get:type_name -> emerwen.shared.MethodGET
	10, // 5: emerwen.webtomaster.WebToMaster.GetWorkers:input_type -> google.protobuf.Empty
	1,  // 6: emerwen.webtomaster.WebToMaster.NewWorker:input_type -> emerwen.webtomaster.NewWorkerRequest
	3,  // 7: emerwen.webtomaster.WebToMaster.NewTarget:input_type -> emerwen.webtomaster.NewTargetRequest
	5,  // 8: emerwen.webtomaster.WebToMaster.PatchWorker:input_type -> emerwen.webtomaster.PatchWorkerRequest
	7,  // 9: emerwen.webtomaster.WebToMaster.PatchTarget:input_type -> emerwen.webtomaster.PatchTargetRequest
	9,  // 10: emerwen.webtomaster.WebToMaster.DeleteWorker:input_type -> emerwen.webtomaster.DeleteWorkerRequest
	11, // 11: emerwen.webtomaster.WebToMaster.DeleteTarget:input_type -> emerwen.webtomaster.DeleteTargetRequest
	2,  // 7: emerwen.webtomaster.WebToMaster.PatchWorker:input_type -> emerwen.webtomaster.PatchWorkerRequest
	6,  // 8: emerwen.webtomaster.WebToMaster.DeleteTarget:input_type -> emerwen.webtomaster.DeleteTargetRequest
	4,  // 9: emerwen.webtomaster.WebToMaster.NewTarget:input_type -> emerwen.webtomaster.NewTargetRequest
	5,  // 10: emerwen.webtomaster.WebToMaster.PatchTarget:input_type -> emerwen.webtomaster.PatchTargetRequest
	3,  // 11: emerwen.webtomaster.WebToMaster.DeleteWorker:input_type -> emerwen.webtomaster.DeleteWorkerRequest
	0,  // 12: emerwen.webtomaster.WebToMaster.GetWorkers:output_type -> emerwen.webtomaster.WorkersResponse
	2,  // 13: emerwen.webtomaster.WebToMaster.NewWorker:output_type -> emerwen.webtomaster.NewWorkerResponse
	4,  // 14: emerwen.webtomaster.WebToMaster.NewTarget:output_type -> emerwen.webtomaster.NewTargetResponse
	6,  // 15: emerwen.webtomaster.WebToMaster.PatchWorker:output_type -> emerwen.webtomaster.PatchWorkerResponse
	8,  // 16: emerwen.webtomaster.WebToMaster.PatchTarget:output_type -> emerwen.webtomaster.PatchTargetResponse
	10, // 17: emerwen.webtomaster.WebToMaster.DeleteWorker:output_type -> emerwen.webtomaster.DeleteWorkerResponse
	12, // 18: emerwen.webtomaster.WebToMaster.DeleteTarget:output_type -> emerwen.webtomaster.DeleteTargetResponse
	10, // 13: emerwen.webtomaster.WebToMaster.NewWorker:output_type -> google.protobuf.Empty
	10, // 14: emerwen.webtomaster.WebToMaster.PatchWorker:output_type -> google.protobuf.Empty
	10, // 15: emerwen.webtomaster.WebToMaster.DeleteTarget:output_type -> google.protobuf.Empty
	10, // 16: emerwen.webtomaster.WebToMaster.NewTarget:output_type -> google.protobuf.Empty
	10, // 17: emerwen.webtomaster.WebToMaster.PatchTarget:output_type -> google.protobuf.Empty
	10, // 18: emerwen.webtomaster.WebToMaster.DeleteWorker:output_type -> google.protobuf.Empty
	12, // [12:19] is the sub-list for method output_type
	5,  // [5:12] is the sub-list for method input_type
	5,  // [5:5] is the sub-list for extension type_name


@@ 998,27 637,21 @@ func file_webtomaster_proto_init() {
		return
	}
	file_webtomaster_proto_msgTypes[2].OneofWrappers = []any{}
	file_webtomaster_proto_msgTypes[3].OneofWrappers = []any{
	file_webtomaster_proto_msgTypes[4].OneofWrappers = []any{
		(*NewTargetRequest_Ping)(nil),
		(*NewTargetRequest_Get)(nil),
	}
	file_webtomaster_proto_msgTypes[4].OneofWrappers = []any{}
	file_webtomaster_proto_msgTypes[5].OneofWrappers = []any{}
	file_webtomaster_proto_msgTypes[6].OneofWrappers = []any{}
	file_webtomaster_proto_msgTypes[7].OneofWrappers = []any{
	file_webtomaster_proto_msgTypes[5].OneofWrappers = []any{
		(*PatchTargetRequest_Ping)(nil),
		(*PatchTargetRequest_Get)(nil),
	}
	file_webtomaster_proto_msgTypes[8].OneofWrappers = []any{}
	file_webtomaster_proto_msgTypes[10].OneofWrappers = []any{}
	file_webtomaster_proto_msgTypes[12].OneofWrappers = []any{}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: file_webtomaster_proto_rawDesc,
			NumEnums:      0,
			NumMessages:   13,
			NumMessages:   7,
			NumExtensions: 0,
			NumServices:   1,
		},

M go/proto/webtomaster_grpc.pb.go => go/proto/webtomaster_grpc.pb.go +74 -74
@@ 22,11 22,11 @@ const _ = grpc.SupportPackageIsVersion7
const (
	WebToMaster_GetWorkers_FullMethodName   = "/emerwen.webtomaster.WebToMaster/GetWorkers"
	WebToMaster_NewWorker_FullMethodName    = "/emerwen.webtomaster.WebToMaster/NewWorker"
	WebToMaster_NewTarget_FullMethodName    = "/emerwen.webtomaster.WebToMaster/NewTarget"
	WebToMaster_PatchWorker_FullMethodName  = "/emerwen.webtomaster.WebToMaster/PatchWorker"
	WebToMaster_DeleteTarget_FullMethodName = "/emerwen.webtomaster.WebToMaster/DeleteTarget"
	WebToMaster_NewTarget_FullMethodName    = "/emerwen.webtomaster.WebToMaster/NewTarget"
	WebToMaster_PatchTarget_FullMethodName  = "/emerwen.webtomaster.WebToMaster/PatchTarget"
	WebToMaster_DeleteWorker_FullMethodName = "/emerwen.webtomaster.WebToMaster/DeleteWorker"
	WebToMaster_DeleteTarget_FullMethodName = "/emerwen.webtomaster.WebToMaster/DeleteTarget"
)

// WebToMasterClient is the client API for WebToMaster service.


@@ 34,12 34,12 @@ const (
// 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 WebToMasterClient interface {
	GetWorkers(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*WorkersResponse, error)
	NewWorker(ctx context.Context, in *NewWorkerRequest, opts ...grpc.CallOption) (*NewWorkerResponse, error)
	NewTarget(ctx context.Context, in *NewTargetRequest, opts ...grpc.CallOption) (*NewTargetResponse, error)
	PatchWorker(ctx context.Context, in *PatchWorkerRequest, opts ...grpc.CallOption) (*PatchWorkerResponse, error)
	PatchTarget(ctx context.Context, in *PatchTargetRequest, opts ...grpc.CallOption) (*PatchTargetResponse, error)
	DeleteWorker(ctx context.Context, in *DeleteWorkerRequest, opts ...grpc.CallOption) (*DeleteWorkerResponse, error)
	DeleteTarget(ctx context.Context, in *DeleteTargetRequest, opts ...grpc.CallOption) (*DeleteTargetResponse, error)
	NewWorker(ctx context.Context, in *NewWorkerRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	PatchWorker(ctx context.Context, in *PatchWorkerRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	DeleteTarget(ctx context.Context, in *DeleteTargetRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	NewTarget(ctx context.Context, in *NewTargetRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	PatchTarget(ctx context.Context, in *PatchTargetRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	DeleteWorker(ctx context.Context, in *DeleteWorkerRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

type webToMasterClient struct {


@@ 59,8 59,8 @@ func (c *webToMasterClient) GetWorkers(ctx context.Context, in *emptypb.Empty, o
	return out, nil
}

func (c *webToMasterClient) NewWorker(ctx context.Context, in *NewWorkerRequest, opts ...grpc.CallOption) (*NewWorkerResponse, error) {
	out := new(NewWorkerResponse)
func (c *webToMasterClient) NewWorker(ctx context.Context, in *NewWorkerRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
	out := new(emptypb.Empty)
	err := c.cc.Invoke(ctx, WebToMaster_NewWorker_FullMethodName, in, out, opts...)
	if err != nil {
		return nil, err


@@ 68,45 68,45 @@ func (c *webToMasterClient) NewWorker(ctx context.Context, in *NewWorkerRequest,
	return out, nil
}

func (c *webToMasterClient) NewTarget(ctx context.Context, in *NewTargetRequest, opts ...grpc.CallOption) (*NewTargetResponse, error) {
	out := new(NewTargetResponse)
	err := c.cc.Invoke(ctx, WebToMaster_NewTarget_FullMethodName, in, out, opts...)
func (c *webToMasterClient) PatchWorker(ctx context.Context, in *PatchWorkerRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
	out := new(emptypb.Empty)
	err := c.cc.Invoke(ctx, WebToMaster_PatchWorker_FullMethodName, in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *webToMasterClient) PatchWorker(ctx context.Context, in *PatchWorkerRequest, opts ...grpc.CallOption) (*PatchWorkerResponse, error) {
	out := new(PatchWorkerResponse)
	err := c.cc.Invoke(ctx, WebToMaster_PatchWorker_FullMethodName, in, out, opts...)
func (c *webToMasterClient) DeleteTarget(ctx context.Context, in *DeleteTargetRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
	out := new(emptypb.Empty)
	err := c.cc.Invoke(ctx, WebToMaster_DeleteTarget_FullMethodName, in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *webToMasterClient) PatchTarget(ctx context.Context, in *PatchTargetRequest, opts ...grpc.CallOption) (*PatchTargetResponse, error) {
	out := new(PatchTargetResponse)
	err := c.cc.Invoke(ctx, WebToMaster_PatchTarget_FullMethodName, in, out, opts...)
func (c *webToMasterClient) NewTarget(ctx context.Context, in *NewTargetRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
	out := new(emptypb.Empty)
	err := c.cc.Invoke(ctx, WebToMaster_NewTarget_FullMethodName, in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *webToMasterClient) DeleteWorker(ctx context.Context, in *DeleteWorkerRequest, opts ...grpc.CallOption) (*DeleteWorkerResponse, error) {
	out := new(DeleteWorkerResponse)
	err := c.cc.Invoke(ctx, WebToMaster_DeleteWorker_FullMethodName, in, out, opts...)
func (c *webToMasterClient) PatchTarget(ctx context.Context, in *PatchTargetRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
	out := new(emptypb.Empty)
	err := c.cc.Invoke(ctx, WebToMaster_PatchTarget_FullMethodName, in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *webToMasterClient) DeleteTarget(ctx context.Context, in *DeleteTargetRequest, opts ...grpc.CallOption) (*DeleteTargetResponse, error) {
	out := new(DeleteTargetResponse)
	err := c.cc.Invoke(ctx, WebToMaster_DeleteTarget_FullMethodName, in, out, opts...)
func (c *webToMasterClient) DeleteWorker(ctx context.Context, in *DeleteWorkerRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
	out := new(emptypb.Empty)
	err := c.cc.Invoke(ctx, WebToMaster_DeleteWorker_FullMethodName, in, out, opts...)
	if err != nil {
		return nil, err
	}


@@ 118,12 118,12 @@ func (c *webToMasterClient) DeleteTarget(ctx context.Context, in *DeleteTargetRe
// for forward compatibility
type WebToMasterServer interface {
	GetWorkers(context.Context, *emptypb.Empty) (*WorkersResponse, error)
	NewWorker(context.Context, *NewWorkerRequest) (*NewWorkerResponse, error)
	NewTarget(context.Context, *NewTargetRequest) (*NewTargetResponse, error)
	PatchWorker(context.Context, *PatchWorkerRequest) (*PatchWorkerResponse, error)
	PatchTarget(context.Context, *PatchTargetRequest) (*PatchTargetResponse, error)
	DeleteWorker(context.Context, *DeleteWorkerRequest) (*DeleteWorkerResponse, error)
	DeleteTarget(context.Context, *DeleteTargetRequest) (*DeleteTargetResponse, error)
	NewWorker(context.Context, *NewWorkerRequest) (*emptypb.Empty, error)
	PatchWorker(context.Context, *PatchWorkerRequest) (*emptypb.Empty, error)
	DeleteTarget(context.Context, *DeleteTargetRequest) (*emptypb.Empty, error)
	NewTarget(context.Context, *NewTargetRequest) (*emptypb.Empty, error)
	PatchTarget(context.Context, *PatchTargetRequest) (*emptypb.Empty, error)
	DeleteWorker(context.Context, *DeleteWorkerRequest) (*emptypb.Empty, error)
	mustEmbedUnimplementedWebToMasterServer()
}



@@ 134,24 134,24 @@ type UnimplementedWebToMasterServer struct {
func (UnimplementedWebToMasterServer) GetWorkers(context.Context, *emptypb.Empty) (*WorkersResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method GetWorkers not implemented")
}
func (UnimplementedWebToMasterServer) NewWorker(context.Context, *NewWorkerRequest) (*NewWorkerResponse, error) {
func (UnimplementedWebToMasterServer) NewWorker(context.Context, *NewWorkerRequest) (*emptypb.Empty, error) {
	return nil, status.Errorf(codes.Unimplemented, "method NewWorker not implemented")
}
func (UnimplementedWebToMasterServer) NewTarget(context.Context, *NewTargetRequest) (*NewTargetResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method NewTarget not implemented")
}
func (UnimplementedWebToMasterServer) PatchWorker(context.Context, *PatchWorkerRequest) (*PatchWorkerResponse, error) {
func (UnimplementedWebToMasterServer) PatchWorker(context.Context, *PatchWorkerRequest) (*emptypb.Empty, error) {
	return nil, status.Errorf(codes.Unimplemented, "method PatchWorker not implemented")
}
func (UnimplementedWebToMasterServer) PatchTarget(context.Context, *PatchTargetRequest) (*PatchTargetResponse, error) {
func (UnimplementedWebToMasterServer) DeleteTarget(context.Context, *DeleteTargetRequest) (*emptypb.Empty, error) {
	return nil, status.Errorf(codes.Unimplemented, "method DeleteTarget not implemented")
}
func (UnimplementedWebToMasterServer) NewTarget(context.Context, *NewTargetRequest) (*emptypb.Empty, error) {
	return nil, status.Errorf(codes.Unimplemented, "method NewTarget not implemented")
}
func (UnimplementedWebToMasterServer) PatchTarget(context.Context, *PatchTargetRequest) (*emptypb.Empty, error) {
	return nil, status.Errorf(codes.Unimplemented, "method PatchTarget not implemented")
}
func (UnimplementedWebToMasterServer) DeleteWorker(context.Context, *DeleteWorkerRequest) (*DeleteWorkerResponse, error) {
func (UnimplementedWebToMasterServer) DeleteWorker(context.Context, *DeleteWorkerRequest) (*emptypb.Empty, error) {
	return nil, status.Errorf(codes.Unimplemented, "method DeleteWorker not implemented")
}
func (UnimplementedWebToMasterServer) DeleteTarget(context.Context, *DeleteTargetRequest) (*DeleteTargetResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method DeleteTarget not implemented")
}
func (UnimplementedWebToMasterServer) mustEmbedUnimplementedWebToMasterServer() {}

// UnsafeWebToMasterServer may be embedded to opt out of forward compatibility for this service.


@@ 201,92 201,92 @@ func _WebToMaster_NewWorker_Handler(srv interface{}, ctx context.Context, dec fu
	return interceptor(ctx, in, info, handler)
}

func _WebToMaster_NewTarget_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(NewTargetRequest)
func _WebToMaster_PatchWorker_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(PatchWorkerRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(WebToMasterServer).NewTarget(ctx, in)
		return srv.(WebToMasterServer).PatchWorker(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: WebToMaster_NewTarget_FullMethodName,
		FullMethod: WebToMaster_PatchWorker_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(WebToMasterServer).NewTarget(ctx, req.(*NewTargetRequest))
		return srv.(WebToMasterServer).PatchWorker(ctx, req.(*PatchWorkerRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _WebToMaster_PatchWorker_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(PatchWorkerRequest)
func _WebToMaster_DeleteTarget_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(DeleteTargetRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(WebToMasterServer).PatchWorker(ctx, in)
		return srv.(WebToMasterServer).DeleteTarget(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: WebToMaster_PatchWorker_FullMethodName,
		FullMethod: WebToMaster_DeleteTarget_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(WebToMasterServer).PatchWorker(ctx, req.(*PatchWorkerRequest))
		return srv.(WebToMasterServer).DeleteTarget(ctx, req.(*DeleteTargetRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _WebToMaster_PatchTarget_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(PatchTargetRequest)
func _WebToMaster_NewTarget_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(NewTargetRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(WebToMasterServer).PatchTarget(ctx, in)
		return srv.(WebToMasterServer).NewTarget(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: WebToMaster_PatchTarget_FullMethodName,
		FullMethod: WebToMaster_NewTarget_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(WebToMasterServer).PatchTarget(ctx, req.(*PatchTargetRequest))
		return srv.(WebToMasterServer).NewTarget(ctx, req.(*NewTargetRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _WebToMaster_DeleteWorker_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(DeleteWorkerRequest)
func _WebToMaster_PatchTarget_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(PatchTargetRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(WebToMasterServer).DeleteWorker(ctx, in)
		return srv.(WebToMasterServer).PatchTarget(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: WebToMaster_DeleteWorker_FullMethodName,
		FullMethod: WebToMaster_PatchTarget_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(WebToMasterServer).DeleteWorker(ctx, req.(*DeleteWorkerRequest))
		return srv.(WebToMasterServer).PatchTarget(ctx, req.(*PatchTargetRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _WebToMaster_DeleteTarget_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(DeleteTargetRequest)
func _WebToMaster_DeleteWorker_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(DeleteWorkerRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(WebToMasterServer).DeleteTarget(ctx, in)
		return srv.(WebToMasterServer).DeleteWorker(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: WebToMaster_DeleteTarget_FullMethodName,
		FullMethod: WebToMaster_DeleteWorker_FullMethodName,
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(WebToMasterServer).DeleteTarget(ctx, req.(*DeleteTargetRequest))
		return srv.(WebToMasterServer).DeleteWorker(ctx, req.(*DeleteWorkerRequest))
	}
	return interceptor(ctx, in, info, handler)
}


@@ 307,14 307,18 @@ var WebToMaster_ServiceDesc = grpc.ServiceDesc{
			Handler:    _WebToMaster_NewWorker_Handler,
		},
		{
			MethodName: "NewTarget",
			Handler:    _WebToMaster_NewTarget_Handler,
		},
		{
			MethodName: "PatchWorker",
			Handler:    _WebToMaster_PatchWorker_Handler,
		},
		{
			MethodName: "DeleteTarget",
			Handler:    _WebToMaster_DeleteTarget_Handler,
		},
		{
			MethodName: "NewTarget",
			Handler:    _WebToMaster_NewTarget_Handler,
		},
		{
			MethodName: "PatchTarget",
			Handler:    _WebToMaster_PatchTarget_Handler,
		},


@@ 322,10 326,6 @@ var WebToMaster_ServiceDesc = grpc.ServiceDesc{
			MethodName: "DeleteWorker",
			Handler:    _WebToMaster_DeleteWorker_Handler,
		},
		{
			MethodName: "DeleteTarget",
			Handler:    _WebToMaster_DeleteTarget_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "webtomaster.proto",

M proto/webtomaster.proto => proto/webtomaster.proto +13 -43
@@ 9,12 9,12 @@ import "shared/worker.proto";

service WebToMaster {
    rpc GetWorkers (google.protobuf.Empty) returns (WorkersResponse);
    rpc NewWorker (NewWorkerRequest) returns (NewWorkerResponse);
    rpc NewTarget (NewTargetRequest) returns (NewTargetResponse);
    rpc PatchWorker (PatchWorkerRequest) returns (PatchWorkerResponse);
    rpc PatchTarget (PatchTargetRequest) returns (PatchTargetResponse);
    rpc DeleteWorker (DeleteWorkerRequest) returns (DeleteWorkerResponse);
    rpc DeleteTarget (DeleteTargetRequest) returns (DeleteTargetResponse);
    rpc NewWorker (NewWorkerRequest) returns (google.protobuf.Empty);
    rpc PatchWorker (PatchWorkerRequest) returns (google.protobuf.Empty);
    rpc DeleteTarget (DeleteTargetRequest) returns (google.protobuf.Empty);
    rpc NewTarget (NewTargetRequest) returns (google.protobuf.Empty);
    rpc PatchTarget (PatchTargetRequest) returns (google.protobuf.Empty);
    rpc DeleteWorker (DeleteWorkerRequest) returns (google.protobuf.Empty);
}

message WorkersResponse {


@@ 25,9 25,13 @@ message NewWorkerRequest {
    string name = 1;
}

message NewWorkerResponse {
    bool success = 1;
    optional string msg = 2;
message PatchWorkerRequest {
    string worker_id = 1;
    optional string name = 2;
}

message DeleteWorkerRequest {
    string worker_id = 1;
}

message NewTargetRequest {


@@ 41,21 45,6 @@ message NewTargetRequest {
    }
}

message NewTargetResponse {
    bool success = 1;
    optional string msg = 2;
}

message PatchWorkerRequest {
    string worker_id = 1;
    optional string name = 2;
}

message PatchWorkerResponse {
    bool success = 1;
    optional string msg = 2;
}

message PatchTargetRequest {
    string target_id = 1;
    optional string name = 2;


@@ 67,25 56,6 @@ message PatchTargetRequest {
    }
}

message PatchTargetResponse {
    bool success = 1;
    optional string msg = 2;
}

message DeleteWorkerRequest {
    string worker_id = 1;
}

message DeleteWorkerResponse {
    bool success = 1;
    optional string msg = 2;
}

message DeleteTargetRequest {
    string target_id = 1;
}

message DeleteTargetResponse {
    bool success = 1;
    optional string msg = 2;
}