github.com/kaydxh/golang@v0.0.131/pkg/pool/taskqueue/taskqueue.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // versions:
     3  // 	protoc-gen-go v1.28.1
     4  // 	protoc        v3.13.0
     5  // source: pkg/pool/taskqueue/taskqueue.proto
     6  
     7  package taskqueue
     8  
     9  import (
    10  	duration "github.com/golang/protobuf/ptypes/duration"
    11  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    12  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    13  	reflect "reflect"
    14  	sync "sync"
    15  )
    16  
    17  const (
    18  	// Verify that this generated code is sufficiently up-to-date.
    19  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    20  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    21  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    22  )
    23  
    24  type TaskQueue_QueueType int32
    25  
    26  const (
    27  	TaskQueue_queue_type_redis TaskQueue_QueueType = 0
    28  )
    29  
    30  // Enum value maps for TaskQueue_QueueType.
    31  var (
    32  	TaskQueue_QueueType_name = map[int32]string{
    33  		0: "queue_type_redis",
    34  	}
    35  	TaskQueue_QueueType_value = map[string]int32{
    36  		"queue_type_redis": 0,
    37  	}
    38  )
    39  
    40  func (x TaskQueue_QueueType) Enum() *TaskQueue_QueueType {
    41  	p := new(TaskQueue_QueueType)
    42  	*p = x
    43  	return p
    44  }
    45  
    46  func (x TaskQueue_QueueType) String() string {
    47  	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
    48  }
    49  
    50  func (TaskQueue_QueueType) Descriptor() protoreflect.EnumDescriptor {
    51  	return file_pkg_pool_taskqueue_taskqueue_proto_enumTypes[0].Descriptor()
    52  }
    53  
    54  func (TaskQueue_QueueType) Type() protoreflect.EnumType {
    55  	return &file_pkg_pool_taskqueue_taskqueue_proto_enumTypes[0]
    56  }
    57  
    58  func (x TaskQueue_QueueType) Number() protoreflect.EnumNumber {
    59  	return protoreflect.EnumNumber(x)
    60  }
    61  
    62  // Deprecated: Use TaskQueue_QueueType.Descriptor instead.
    63  func (TaskQueue_QueueType) EnumDescriptor() ([]byte, []int) {
    64  	return file_pkg_pool_taskqueue_taskqueue_proto_rawDescGZIP(), []int{0, 0}
    65  }
    66  
    67  type TaskQueue struct {
    68  	state         protoimpl.MessageState
    69  	sizeCache     protoimpl.SizeCache
    70  	unknownFields protoimpl.UnknownFields
    71  
    72  	Enabled       bool                `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"`
    73  	WorkerBurst   uint32              `protobuf:"varint,2,opt,name=worker_burst,json=workerBurst,proto3" json:"worker_burst,omitempty"`
    74  	FetcherBurst  uint32              `protobuf:"varint,3,opt,name=fetcher_burst,json=fetcherBurst,proto3" json:"fetcher_burst,omitempty"`
    75  	WorkTimeout   *duration.Duration  `protobuf:"bytes,4,opt,name=work_timeout,json=workTimeout,proto3" json:"work_timeout,omitempty"`
    76  	FetchTimeout  *duration.Duration  `protobuf:"bytes,5,opt,name=fetch_timeout,json=fetchTimeout,proto3" json:"fetch_timeout,omitempty"`
    77  	ResultExpired *duration.Duration  `protobuf:"bytes,6,opt,name=result_expired,json=resultExpired,proto3" json:"result_expired,omitempty"`
    78  	QueueType     TaskQueue_QueueType `protobuf:"varint,7,opt,name=queue_type,json=queueType,proto3,enum=go.pkg.pool.taskqueue.TaskQueue_QueueType" json:"queue_type,omitempty"`
    79  }
    80  
    81  func (x *TaskQueue) Reset() {
    82  	*x = TaskQueue{}
    83  	if protoimpl.UnsafeEnabled {
    84  		mi := &file_pkg_pool_taskqueue_taskqueue_proto_msgTypes[0]
    85  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    86  		ms.StoreMessageInfo(mi)
    87  	}
    88  }
    89  
    90  func (x *TaskQueue) String() string {
    91  	return protoimpl.X.MessageStringOf(x)
    92  }
    93  
    94  func (*TaskQueue) ProtoMessage() {}
    95  
    96  func (x *TaskQueue) ProtoReflect() protoreflect.Message {
    97  	mi := &file_pkg_pool_taskqueue_taskqueue_proto_msgTypes[0]
    98  	if protoimpl.UnsafeEnabled && x != nil {
    99  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   100  		if ms.LoadMessageInfo() == nil {
   101  			ms.StoreMessageInfo(mi)
   102  		}
   103  		return ms
   104  	}
   105  	return mi.MessageOf(x)
   106  }
   107  
   108  // Deprecated: Use TaskQueue.ProtoReflect.Descriptor instead.
   109  func (*TaskQueue) Descriptor() ([]byte, []int) {
   110  	return file_pkg_pool_taskqueue_taskqueue_proto_rawDescGZIP(), []int{0}
   111  }
   112  
   113  func (x *TaskQueue) GetEnabled() bool {
   114  	if x != nil {
   115  		return x.Enabled
   116  	}
   117  	return false
   118  }
   119  
   120  func (x *TaskQueue) GetWorkerBurst() uint32 {
   121  	if x != nil {
   122  		return x.WorkerBurst
   123  	}
   124  	return 0
   125  }
   126  
   127  func (x *TaskQueue) GetFetcherBurst() uint32 {
   128  	if x != nil {
   129  		return x.FetcherBurst
   130  	}
   131  	return 0
   132  }
   133  
   134  func (x *TaskQueue) GetWorkTimeout() *duration.Duration {
   135  	if x != nil {
   136  		return x.WorkTimeout
   137  	}
   138  	return nil
   139  }
   140  
   141  func (x *TaskQueue) GetFetchTimeout() *duration.Duration {
   142  	if x != nil {
   143  		return x.FetchTimeout
   144  	}
   145  	return nil
   146  }
   147  
   148  func (x *TaskQueue) GetResultExpired() *duration.Duration {
   149  	if x != nil {
   150  		return x.ResultExpired
   151  	}
   152  	return nil
   153  }
   154  
   155  func (x *TaskQueue) GetQueueType() TaskQueue_QueueType {
   156  	if x != nil {
   157  		return x.QueueType
   158  	}
   159  	return TaskQueue_queue_type_redis
   160  }
   161  
   162  var File_pkg_pool_taskqueue_taskqueue_proto protoreflect.FileDescriptor
   163  
   164  var file_pkg_pool_taskqueue_taskqueue_proto_rawDesc = []byte{
   165  	0x0a, 0x22, 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x6f, 0x6f, 0x6c, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x71,
   166  	0x75, 0x65, 0x75, 0x65, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x71, 0x75, 0x65, 0x75, 0x65, 0x2e, 0x70,
   167  	0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x67, 0x6f, 0x2e, 0x70, 0x6b, 0x67, 0x2e, 0x70, 0x6f, 0x6f,
   168  	0x6c, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x71, 0x75, 0x65, 0x75, 0x65, 0x1a, 0x1e, 0x67, 0x6f, 0x6f,
   169  	0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72,
   170  	0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x9b, 0x03, 0x0a, 0x09,
   171  	0x54, 0x61, 0x73, 0x6b, 0x51, 0x75, 0x65, 0x75, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61,
   172  	0x62, 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62,
   173  	0x6c, 0x65, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x5f, 0x62, 0x75,
   174  	0x72, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0b, 0x77, 0x6f, 0x72, 0x6b, 0x65,
   175  	0x72, 0x42, 0x75, 0x72, 0x73, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x66, 0x65, 0x74, 0x63, 0x68, 0x65,
   176  	0x72, 0x5f, 0x62, 0x75, 0x72, 0x73, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0c, 0x66,
   177  	0x65, 0x74, 0x63, 0x68, 0x65, 0x72, 0x42, 0x75, 0x72, 0x73, 0x74, 0x12, 0x3c, 0x0a, 0x0c, 0x77,
   178  	0x6f, 0x72, 0x6b, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28,
   179  	0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   180  	0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0b, 0x77, 0x6f,
   181  	0x72, 0x6b, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, 0x3e, 0x0a, 0x0d, 0x66, 0x65, 0x74,
   182  	0x63, 0x68, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b,
   183  	0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
   184  	0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0c, 0x66, 0x65, 0x74,
   185  	0x63, 0x68, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, 0x40, 0x0a, 0x0e, 0x72, 0x65, 0x73,
   186  	0x75, 0x6c, 0x74, 0x5f, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28,
   187  	0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   188  	0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0d, 0x72, 0x65,
   189  	0x73, 0x75, 0x6c, 0x74, 0x45, 0x78, 0x70, 0x69, 0x72, 0x65, 0x64, 0x12, 0x49, 0x0a, 0x0a, 0x71,
   190  	0x75, 0x65, 0x75, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32,
   191  	0x2a, 0x2e, 0x67, 0x6f, 0x2e, 0x70, 0x6b, 0x67, 0x2e, 0x70, 0x6f, 0x6f, 0x6c, 0x2e, 0x74, 0x61,
   192  	0x73, 0x6b, 0x71, 0x75, 0x65, 0x75, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x51, 0x75, 0x65, 0x75,
   193  	0x65, 0x2e, 0x51, 0x75, 0x65, 0x75, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x09, 0x71, 0x75, 0x65,
   194  	0x75, 0x65, 0x54, 0x79, 0x70, 0x65, 0x22, 0x21, 0x0a, 0x09, 0x51, 0x75, 0x65, 0x75, 0x65, 0x54,
   195  	0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x10, 0x71, 0x75, 0x65, 0x75, 0x65, 0x5f, 0x74, 0x79, 0x70,
   196  	0x65, 0x5f, 0x72, 0x65, 0x64, 0x69, 0x73, 0x10, 0x00, 0x42, 0x37, 0x5a, 0x35, 0x67, 0x69, 0x74,
   197  	0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6b, 0x61, 0x79, 0x64, 0x78, 0x68, 0x2f, 0x67,
   198  	0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x6f, 0x6f, 0x6c, 0x2f, 0x74,
   199  	0x61, 0x73, 0x6b, 0x71, 0x75, 0x65, 0x75, 0x65, 0x3b, 0x74, 0x61, 0x73, 0x6b, 0x71, 0x75, 0x65,
   200  	0x75, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   201  }
   202  
   203  var (
   204  	file_pkg_pool_taskqueue_taskqueue_proto_rawDescOnce sync.Once
   205  	file_pkg_pool_taskqueue_taskqueue_proto_rawDescData = file_pkg_pool_taskqueue_taskqueue_proto_rawDesc
   206  )
   207  
   208  func file_pkg_pool_taskqueue_taskqueue_proto_rawDescGZIP() []byte {
   209  	file_pkg_pool_taskqueue_taskqueue_proto_rawDescOnce.Do(func() {
   210  		file_pkg_pool_taskqueue_taskqueue_proto_rawDescData = protoimpl.X.CompressGZIP(file_pkg_pool_taskqueue_taskqueue_proto_rawDescData)
   211  	})
   212  	return file_pkg_pool_taskqueue_taskqueue_proto_rawDescData
   213  }
   214  
   215  var file_pkg_pool_taskqueue_taskqueue_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
   216  var file_pkg_pool_taskqueue_taskqueue_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   217  var file_pkg_pool_taskqueue_taskqueue_proto_goTypes = []interface{}{
   218  	(TaskQueue_QueueType)(0),  // 0: go.pkg.pool.taskqueue.TaskQueue.QueueType
   219  	(*TaskQueue)(nil),         // 1: go.pkg.pool.taskqueue.TaskQueue
   220  	(*duration.Duration)(nil), // 2: google.protobuf.Duration
   221  }
   222  var file_pkg_pool_taskqueue_taskqueue_proto_depIdxs = []int32{
   223  	2, // 0: go.pkg.pool.taskqueue.TaskQueue.work_timeout:type_name -> google.protobuf.Duration
   224  	2, // 1: go.pkg.pool.taskqueue.TaskQueue.fetch_timeout:type_name -> google.protobuf.Duration
   225  	2, // 2: go.pkg.pool.taskqueue.TaskQueue.result_expired:type_name -> google.protobuf.Duration
   226  	0, // 3: go.pkg.pool.taskqueue.TaskQueue.queue_type:type_name -> go.pkg.pool.taskqueue.TaskQueue.QueueType
   227  	4, // [4:4] is the sub-list for method output_type
   228  	4, // [4:4] is the sub-list for method input_type
   229  	4, // [4:4] is the sub-list for extension type_name
   230  	4, // [4:4] is the sub-list for extension extendee
   231  	0, // [0:4] is the sub-list for field type_name
   232  }
   233  
   234  func init() { file_pkg_pool_taskqueue_taskqueue_proto_init() }
   235  func file_pkg_pool_taskqueue_taskqueue_proto_init() {
   236  	if File_pkg_pool_taskqueue_taskqueue_proto != nil {
   237  		return
   238  	}
   239  	if !protoimpl.UnsafeEnabled {
   240  		file_pkg_pool_taskqueue_taskqueue_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   241  			switch v := v.(*TaskQueue); i {
   242  			case 0:
   243  				return &v.state
   244  			case 1:
   245  				return &v.sizeCache
   246  			case 2:
   247  				return &v.unknownFields
   248  			default:
   249  				return nil
   250  			}
   251  		}
   252  	}
   253  	type x struct{}
   254  	out := protoimpl.TypeBuilder{
   255  		File: protoimpl.DescBuilder{
   256  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   257  			RawDescriptor: file_pkg_pool_taskqueue_taskqueue_proto_rawDesc,
   258  			NumEnums:      1,
   259  			NumMessages:   1,
   260  			NumExtensions: 0,
   261  			NumServices:   0,
   262  		},
   263  		GoTypes:           file_pkg_pool_taskqueue_taskqueue_proto_goTypes,
   264  		DependencyIndexes: file_pkg_pool_taskqueue_taskqueue_proto_depIdxs,
   265  		EnumInfos:         file_pkg_pool_taskqueue_taskqueue_proto_enumTypes,
   266  		MessageInfos:      file_pkg_pool_taskqueue_taskqueue_proto_msgTypes,
   267  	}.Build()
   268  	File_pkg_pool_taskqueue_taskqueue_proto = out.File
   269  	file_pkg_pool_taskqueue_taskqueue_proto_rawDesc = nil
   270  	file_pkg_pool_taskqueue_taskqueue_proto_goTypes = nil
   271  	file_pkg_pool_taskqueue_taskqueue_proto_depIdxs = nil
   272  }