package worker_proto
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
_ = protoimpl .EnforceVersion (20 - protoimpl .MinVersion )
_ = protoimpl .EnforceVersion (protoimpl .MaxVersion - 20 )
)
type CallOpRequest struct {
state protoimpl .MessageState
sizeCache protoimpl .SizeCache
unknownFields protoimpl .UnknownFields
Op int32 `protobuf:"varint,1,opt,name=op,proto3" json:"op,omitempty"`
}
func (x *CallOpRequest ) Reset () {
*x = CallOpRequest {}
if protoimpl .UnsafeEnabled {
mi := &file_worker_proto_worker_proto_msgTypes [0 ]
ms := protoimpl .X .MessageStateOf (protoimpl .Pointer (x ))
ms .StoreMessageInfo (mi )
}
}
func (x *CallOpRequest ) String () string {
return protoimpl .X .MessageStringOf (x )
}
func (*CallOpRequest ) ProtoMessage () {}
func (x *CallOpRequest ) ProtoReflect () protoreflect .Message {
mi := &file_worker_proto_worker_proto_msgTypes [0 ]
if protoimpl .UnsafeEnabled && x != nil {
ms := protoimpl .X .MessageStateOf (protoimpl .Pointer (x ))
if ms .LoadMessageInfo () == nil {
ms .StoreMessageInfo (mi )
}
return ms
}
return mi .MessageOf (x )
}
func (*CallOpRequest ) Descriptor () ([]byte , []int ) {
return file_worker_proto_worker_proto_rawDescGZIP (), []int {0 }
}
func (x *CallOpRequest ) GetOp () int32 {
if x != nil {
return x .Op
}
return 0
}
type CallOpResponse struct {
state protoimpl .MessageState
sizeCache protoimpl .SizeCache
unknownFields protoimpl .UnknownFields
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
}
func (x *CallOpResponse ) Reset () {
*x = CallOpResponse {}
if protoimpl .UnsafeEnabled {
mi := &file_worker_proto_worker_proto_msgTypes [1 ]
ms := protoimpl .X .MessageStateOf (protoimpl .Pointer (x ))
ms .StoreMessageInfo (mi )
}
}
func (x *CallOpResponse ) String () string {
return protoimpl .X .MessageStringOf (x )
}
func (*CallOpResponse ) ProtoMessage () {}
func (x *CallOpResponse ) ProtoReflect () protoreflect .Message {
mi := &file_worker_proto_worker_proto_msgTypes [1 ]
if protoimpl .UnsafeEnabled && x != nil {
ms := protoimpl .X .MessageStateOf (protoimpl .Pointer (x ))
if ms .LoadMessageInfo () == nil {
ms .StoreMessageInfo (mi )
}
return ms
}
return mi .MessageOf (x )
}
func (*CallOpResponse ) Descriptor () ([]byte , []int ) {
return file_worker_proto_worker_proto_rawDescGZIP (), []int {1 }
}
func (x *CallOpResponse ) GetSuccess () bool {
if x != nil {
return x .Success
}
return false
}
type Empty struct {
state protoimpl .MessageState
sizeCache protoimpl .SizeCache
unknownFields protoimpl .UnknownFields
}
func (x *Empty ) Reset () {
*x = Empty {}
if protoimpl .UnsafeEnabled {
mi := &file_worker_proto_worker_proto_msgTypes [2 ]
ms := protoimpl .X .MessageStateOf (protoimpl .Pointer (x ))
ms .StoreMessageInfo (mi )
}
}
func (x *Empty ) String () string {
return protoimpl .X .MessageStringOf (x )
}
func (*Empty ) ProtoMessage () {}
func (x *Empty ) ProtoReflect () protoreflect .Message {
mi := &file_worker_proto_worker_proto_msgTypes [2 ]
if protoimpl .UnsafeEnabled && x != nil {
ms := protoimpl .X .MessageStateOf (protoimpl .Pointer (x ))
if ms .LoadMessageInfo () == nil {
ms .StoreMessageInfo (mi )
}
return ms
}
return mi .MessageOf (x )
}
func (*Empty ) Descriptor () ([]byte , []int ) {
return file_worker_proto_worker_proto_rawDescGZIP (), []int {2 }
}
type GetValueResponse struct {
state protoimpl .MessageState
sizeCache protoimpl .SizeCache
unknownFields protoimpl .UnknownFields
Value int32 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
}
func (x *GetValueResponse ) Reset () {
*x = GetValueResponse {}
if protoimpl .UnsafeEnabled {
mi := &file_worker_proto_worker_proto_msgTypes [3 ]
ms := protoimpl .X .MessageStateOf (protoimpl .Pointer (x ))
ms .StoreMessageInfo (mi )
}
}
func (x *GetValueResponse ) String () string {
return protoimpl .X .MessageStringOf (x )
}
func (*GetValueResponse ) ProtoMessage () {}
func (x *GetValueResponse ) ProtoReflect () protoreflect .Message {
mi := &file_worker_proto_worker_proto_msgTypes [3 ]
if protoimpl .UnsafeEnabled && x != nil {
ms := protoimpl .X .MessageStateOf (protoimpl .Pointer (x ))
if ms .LoadMessageInfo () == nil {
ms .StoreMessageInfo (mi )
}
return ms
}
return mi .MessageOf (x )
}
func (*GetValueResponse ) Descriptor () ([]byte , []int ) {
return file_worker_proto_worker_proto_rawDescGZIP (), []int {3 }
}
func (x *GetValueResponse ) GetValue () int32 {
if x != nil {
return x .Value
}
return 0
}
var File_worker_proto_worker_proto protoreflect .FileDescriptor
var file_worker_proto_worker_proto_rawDesc = []byte {
0x0a , 0x19 , 0x77 , 0x6f , 0x72 , 0x6b , 0x65 , 0x72 , 0x5f , 0x70 , 0x72 , 0x6f , 0x74 , 0x6f , 0x2f , 0x77 ,
0x6f , 0x72 , 0x6b , 0x65 , 0x72 , 0x2e , 0x70 , 0x72 , 0x6f , 0x74 , 0x6f , 0x12 , 0x06 , 0x77 , 0x6f , 0x72 ,
0x6b , 0x65 , 0x72 , 0x22 , 0x1f , 0x0a , 0x0d , 0x43 , 0x61 , 0x6c , 0x6c , 0x4f , 0x70 , 0x52 , 0x65 , 0x71 ,
0x75 , 0x65 , 0x73 , 0x74 , 0x12 , 0x0e , 0x0a , 0x02 , 0x6f , 0x70 , 0x18 , 0x01 , 0x20 , 0x01 , 0x28 , 0x05 ,
0x52 , 0x02 , 0x6f , 0x70 , 0x22 , 0x2a , 0x0a , 0x0e , 0x43 , 0x61 , 0x6c , 0x6c , 0x4f , 0x70 , 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 ,
0x22 , 0x07 , 0x0a , 0x05 , 0x45 , 0x6d , 0x70 , 0x74 , 0x79 , 0x22 , 0x28 , 0x0a , 0x10 , 0x47 , 0x65 , 0x74 ,
0x56 , 0x61 , 0x6c , 0x75 , 0x65 , 0x52 , 0x65 , 0x73 , 0x70 , 0x6f , 0x6e , 0x73 , 0x65 , 0x12 , 0x14 , 0x0a ,
0x05 , 0x76 , 0x61 , 0x6c , 0x75 , 0x65 , 0x18 , 0x01 , 0x20 , 0x01 , 0x28 , 0x05 , 0x52 , 0x05 , 0x76 , 0x61 ,
0x6c , 0x75 , 0x65 , 0x32 , 0xd1 , 0x01 , 0x0a , 0x0d , 0x57 , 0x6f , 0x72 , 0x6b , 0x65 , 0x72 , 0x53 , 0x65 ,
0x72 , 0x76 , 0x69 , 0x63 , 0x65 , 0x12 , 0x25 , 0x0a , 0x05 , 0x53 , 0x74 , 0x61 , 0x72 , 0x74 , 0x12 , 0x0d ,
0x2e , 0x77 , 0x6f , 0x72 , 0x6b , 0x65 , 0x72 , 0x2e , 0x45 , 0x6d , 0x70 , 0x74 , 0x79 , 0x1a , 0x0d , 0x2e ,
0x77 , 0x6f , 0x72 , 0x6b , 0x65 , 0x72 , 0x2e , 0x45 , 0x6d , 0x70 , 0x74 , 0x79 , 0x12 , 0x37 , 0x0a , 0x06 ,
0x43 , 0x61 , 0x6c , 0x6c , 0x4f , 0x70 , 0x12 , 0x15 , 0x2e , 0x77 , 0x6f , 0x72 , 0x6b , 0x65 , 0x72 , 0x2e ,
0x43 , 0x61 , 0x6c , 0x6c , 0x4f , 0x70 , 0x52 , 0x65 , 0x71 , 0x75 , 0x65 , 0x73 , 0x74 , 0x1a , 0x16 , 0x2e ,
0x77 , 0x6f , 0x72 , 0x6b , 0x65 , 0x72 , 0x2e , 0x43 , 0x61 , 0x6c , 0x6c , 0x4f , 0x70 , 0x52 , 0x65 , 0x73 ,
0x70 , 0x6f , 0x6e , 0x73 , 0x65 , 0x12 , 0x2b , 0x0a , 0x09 , 0x53 , 0x75 , 0x62 , 0x73 , 0x63 , 0x72 , 0x69 ,
0x62 , 0x65 , 0x12 , 0x0d , 0x2e , 0x77 , 0x6f , 0x72 , 0x6b , 0x65 , 0x72 , 0x2e , 0x45 , 0x6d , 0x70 , 0x74 ,
0x79 , 0x1a , 0x0d , 0x2e , 0x77 , 0x6f , 0x72 , 0x6b , 0x65 , 0x72 , 0x2e , 0x45 , 0x6d , 0x70 , 0x74 , 0x79 ,
0x30 , 0x01 , 0x12 , 0x33 , 0x0a , 0x08 , 0x47 , 0x65 , 0x74 , 0x56 , 0x61 , 0x6c , 0x75 , 0x65 , 0x12 , 0x0d ,
0x2e , 0x77 , 0x6f , 0x72 , 0x6b , 0x65 , 0x72 , 0x2e , 0x45 , 0x6d , 0x70 , 0x74 , 0x79 , 0x1a , 0x18 , 0x2e ,
0x77 , 0x6f , 0x72 , 0x6b , 0x65 , 0x72 , 0x2e , 0x47 , 0x65 , 0x74 , 0x56 , 0x61 , 0x6c , 0x75 , 0x65 , 0x52 ,
0x65 , 0x73 , 0x70 , 0x6f , 0x6e , 0x73 , 0x65 , 0x42 , 0x49 , 0x5a , 0x47 , 0x67 , 0x69 , 0x74 , 0x68 , 0x75 ,
0x62 , 0x2e , 0x63 , 0x6f , 0x6d , 0x2f , 0x70 , 0x61 , 0x6e , 0x63 , 0x73 , 0x74 , 0x61 , 0x2f , 0x61 , 0x73 ,
0x79 , 0x6e , 0x63 , 0x6d , 0x61 , 0x63 , 0x68 , 0x69 , 0x6e , 0x65 , 0x2d , 0x67 , 0x6f , 0x2f , 0x65 , 0x78 ,
0x61 , 0x6d , 0x70 , 0x6c , 0x65 , 0x73 , 0x2f , 0x67 , 0x72 , 0x70 , 0x63 , 0x2d , 0x62 , 0x65 , 0x6e , 0x63 ,
0x68 , 0x6d , 0x61 , 0x72 , 0x6b , 0x2f , 0x77 , 0x6f , 0x72 , 0x6b , 0x65 , 0x72 , 0x5f , 0x70 , 0x72 , 0x6f ,
0x74 , 0x6f , 0x62 , 0x06 , 0x70 , 0x72 , 0x6f , 0x74 , 0x6f , 0x33 ,
}
var (
file_worker_proto_worker_proto_rawDescOnce sync .Once
file_worker_proto_worker_proto_rawDescData = file_worker_proto_worker_proto_rawDesc
)
func file_worker_proto_worker_proto_rawDescGZIP() []byte {
file_worker_proto_worker_proto_rawDescOnce .Do (func () {
file_worker_proto_worker_proto_rawDescData = protoimpl .X .CompressGZIP (file_worker_proto_worker_proto_rawDescData )
})
return file_worker_proto_worker_proto_rawDescData
}
var file_worker_proto_worker_proto_msgTypes = make ([]protoimpl .MessageInfo , 4 )
var file_worker_proto_worker_proto_goTypes = []any {
(*CallOpRequest )(nil ),
(*CallOpResponse )(nil ),
(*Empty )(nil ),
(*GetValueResponse )(nil ),
}
var file_worker_proto_worker_proto_depIdxs = []int32 {
2 ,
0 ,
2 ,
2 ,
2 ,
1 ,
2 ,
3 ,
4 ,
0 ,
0 ,
0 ,
0 ,
}
func init() { file_worker_proto_worker_proto_init () }
func file_worker_proto_worker_proto_init() {
if File_worker_proto_worker_proto != nil {
return
}
if !protoimpl .UnsafeEnabled {
file_worker_proto_worker_proto_msgTypes [0 ].Exporter = func (v any , i int ) any {
switch v := v .(*CallOpRequest ); i {
case 0 :
return &v .state
case 1 :
return &v .sizeCache
case 2 :
return &v .unknownFields
default :
return nil
}
}
file_worker_proto_worker_proto_msgTypes [1 ].Exporter = func (v any , i int ) any {
switch v := v .(*CallOpResponse ); i {
case 0 :
return &v .state
case 1 :
return &v .sizeCache
case 2 :
return &v .unknownFields
default :
return nil
}
}
file_worker_proto_worker_proto_msgTypes [2 ].Exporter = func (v any , i int ) any {
switch v := v .(*Empty ); i {
case 0 :
return &v .state
case 1 :
return &v .sizeCache
case 2 :
return &v .unknownFields
default :
return nil
}
}
file_worker_proto_worker_proto_msgTypes [3 ].Exporter = func (v any , i int ) any {
switch v := v .(*GetValueResponse ); i {
case 0 :
return &v .state
case 1 :
return &v .sizeCache
case 2 :
return &v .unknownFields
default :
return nil
}
}
}
type x struct {}
out := protoimpl .TypeBuilder {
File : protoimpl .DescBuilder {
GoPackagePath : reflect .TypeOf (x {}).PkgPath (),
RawDescriptor : file_worker_proto_worker_proto_rawDesc ,
NumEnums : 0 ,
NumMessages : 4 ,
NumExtensions : 0 ,
NumServices : 1 ,
},
GoTypes : file_worker_proto_worker_proto_goTypes ,
DependencyIndexes : file_worker_proto_worker_proto_depIdxs ,
MessageInfos : file_worker_proto_worker_proto_msgTypes ,
}.Build ()
File_worker_proto_worker_proto = out .File
file_worker_proto_worker_proto_rawDesc = nil
file_worker_proto_worker_proto_goTypes = nil
file_worker_proto_worker_proto_depIdxs = nil
}
The pages are generated with Golds v0.8.2 . (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu .
PR and bug reports are welcome and can be submitted to the issue list .
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds .