github.com/kaydxh/golang@v0.0.131/pkg/mq/kafka/kafka.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/mq/kafka/kafka.proto
     6  
     7  package kafka
     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  // https://github.com/confluentinc/librdkafka/blob/master/CONFIGURATION.md
    25  type Kafka struct {
    26  	state         protoimpl.MessageState
    27  	sizeCache     protoimpl.SizeCache
    28  	unknownFields protoimpl.UnknownFields
    29  
    30  	Enabled             bool               `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"`
    31  	Brokers             []string           `protobuf:"bytes,2,rep,name=brokers,proto3" json:"brokers,omitempty"`
    32  	ApiVersionRequest   bool               `protobuf:"varint,3,opt,name=api_version_request,json=apiVersionRequest,proto3" json:"api_version_request,omitempty"`
    33  	ReconnectBackoff    *duration.Duration `protobuf:"bytes,4,opt,name=reconnect_backoff,json=reconnectBackoff,proto3" json:"reconnect_backoff,omitempty"`
    34  	ReconnectBackoffMax *duration.Duration `protobuf:"bytes,5,opt,name=reconnect_backoff_max,json=reconnectBackoffMax,proto3" json:"reconnect_backoff_max,omitempty"`
    35  	MaxWaitDuration     *duration.Duration `protobuf:"bytes,6,opt,name=max_wait_duration,json=maxWaitDuration,proto3" json:"max_wait_duration,omitempty"`
    36  	FailAfterDuration   *duration.Duration `protobuf:"bytes,7,opt,name=fail_after_duration,json=failAfterDuration,proto3" json:"fail_after_duration,omitempty"`
    37  }
    38  
    39  func (x *Kafka) Reset() {
    40  	*x = Kafka{}
    41  	if protoimpl.UnsafeEnabled {
    42  		mi := &file_pkg_mq_kafka_kafka_proto_msgTypes[0]
    43  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    44  		ms.StoreMessageInfo(mi)
    45  	}
    46  }
    47  
    48  func (x *Kafka) String() string {
    49  	return protoimpl.X.MessageStringOf(x)
    50  }
    51  
    52  func (*Kafka) ProtoMessage() {}
    53  
    54  func (x *Kafka) ProtoReflect() protoreflect.Message {
    55  	mi := &file_pkg_mq_kafka_kafka_proto_msgTypes[0]
    56  	if protoimpl.UnsafeEnabled && x != nil {
    57  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    58  		if ms.LoadMessageInfo() == nil {
    59  			ms.StoreMessageInfo(mi)
    60  		}
    61  		return ms
    62  	}
    63  	return mi.MessageOf(x)
    64  }
    65  
    66  // Deprecated: Use Kafka.ProtoReflect.Descriptor instead.
    67  func (*Kafka) Descriptor() ([]byte, []int) {
    68  	return file_pkg_mq_kafka_kafka_proto_rawDescGZIP(), []int{0}
    69  }
    70  
    71  func (x *Kafka) GetEnabled() bool {
    72  	if x != nil {
    73  		return x.Enabled
    74  	}
    75  	return false
    76  }
    77  
    78  func (x *Kafka) GetBrokers() []string {
    79  	if x != nil {
    80  		return x.Brokers
    81  	}
    82  	return nil
    83  }
    84  
    85  func (x *Kafka) GetApiVersionRequest() bool {
    86  	if x != nil {
    87  		return x.ApiVersionRequest
    88  	}
    89  	return false
    90  }
    91  
    92  func (x *Kafka) GetReconnectBackoff() *duration.Duration {
    93  	if x != nil {
    94  		return x.ReconnectBackoff
    95  	}
    96  	return nil
    97  }
    98  
    99  func (x *Kafka) GetReconnectBackoffMax() *duration.Duration {
   100  	if x != nil {
   101  		return x.ReconnectBackoffMax
   102  	}
   103  	return nil
   104  }
   105  
   106  func (x *Kafka) GetMaxWaitDuration() *duration.Duration {
   107  	if x != nil {
   108  		return x.MaxWaitDuration
   109  	}
   110  	return nil
   111  }
   112  
   113  func (x *Kafka) GetFailAfterDuration() *duration.Duration {
   114  	if x != nil {
   115  		return x.FailAfterDuration
   116  	}
   117  	return nil
   118  }
   119  
   120  type Kafka_Consumer struct {
   121  	state         protoimpl.MessageState
   122  	sizeCache     protoimpl.SizeCache
   123  	unknownFields protoimpl.UnknownFields
   124  }
   125  
   126  func (x *Kafka_Consumer) Reset() {
   127  	*x = Kafka_Consumer{}
   128  	if protoimpl.UnsafeEnabled {
   129  		mi := &file_pkg_mq_kafka_kafka_proto_msgTypes[1]
   130  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   131  		ms.StoreMessageInfo(mi)
   132  	}
   133  }
   134  
   135  func (x *Kafka_Consumer) String() string {
   136  	return protoimpl.X.MessageStringOf(x)
   137  }
   138  
   139  func (*Kafka_Consumer) ProtoMessage() {}
   140  
   141  func (x *Kafka_Consumer) ProtoReflect() protoreflect.Message {
   142  	mi := &file_pkg_mq_kafka_kafka_proto_msgTypes[1]
   143  	if protoimpl.UnsafeEnabled && x != nil {
   144  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   145  		if ms.LoadMessageInfo() == nil {
   146  			ms.StoreMessageInfo(mi)
   147  		}
   148  		return ms
   149  	}
   150  	return mi.MessageOf(x)
   151  }
   152  
   153  // Deprecated: Use Kafka_Consumer.ProtoReflect.Descriptor instead.
   154  func (*Kafka_Consumer) Descriptor() ([]byte, []int) {
   155  	return file_pkg_mq_kafka_kafka_proto_rawDescGZIP(), []int{0, 0}
   156  }
   157  
   158  type Kafka_Producer struct {
   159  	state         protoimpl.MessageState
   160  	sizeCache     protoimpl.SizeCache
   161  	unknownFields protoimpl.UnknownFields
   162  }
   163  
   164  func (x *Kafka_Producer) Reset() {
   165  	*x = Kafka_Producer{}
   166  	if protoimpl.UnsafeEnabled {
   167  		mi := &file_pkg_mq_kafka_kafka_proto_msgTypes[2]
   168  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   169  		ms.StoreMessageInfo(mi)
   170  	}
   171  }
   172  
   173  func (x *Kafka_Producer) String() string {
   174  	return protoimpl.X.MessageStringOf(x)
   175  }
   176  
   177  func (*Kafka_Producer) ProtoMessage() {}
   178  
   179  func (x *Kafka_Producer) ProtoReflect() protoreflect.Message {
   180  	mi := &file_pkg_mq_kafka_kafka_proto_msgTypes[2]
   181  	if protoimpl.UnsafeEnabled && x != nil {
   182  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   183  		if ms.LoadMessageInfo() == nil {
   184  			ms.StoreMessageInfo(mi)
   185  		}
   186  		return ms
   187  	}
   188  	return mi.MessageOf(x)
   189  }
   190  
   191  // Deprecated: Use Kafka_Producer.ProtoReflect.Descriptor instead.
   192  func (*Kafka_Producer) Descriptor() ([]byte, []int) {
   193  	return file_pkg_mq_kafka_kafka_proto_rawDescGZIP(), []int{0, 1}
   194  }
   195  
   196  var File_pkg_mq_kafka_kafka_proto protoreflect.FileDescriptor
   197  
   198  var file_pkg_mq_kafka_kafka_proto_rawDesc = []byte{
   199  	0x0a, 0x18, 0x70, 0x6b, 0x67, 0x2f, 0x6d, 0x71, 0x2f, 0x6b, 0x61, 0x66, 0x6b, 0x61, 0x2f, 0x6b,
   200  	0x61, 0x66, 0x6b, 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x67, 0x6f, 0x2e, 0x70,
   201  	0x6b, 0x67, 0x2e, 0x6d, 0x71, 0x2e, 0x6b, 0x61, 0x66, 0x6b, 0x61, 0x1a, 0x1e, 0x67, 0x6f, 0x6f,
   202  	0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72,
   203  	0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xac, 0x03, 0x0a, 0x05,
   204  	0x4b, 0x61, 0x66, 0x6b, 0x61, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64,
   205  	0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12,
   206  	0x18, 0x0a, 0x07, 0x62, 0x72, 0x6f, 0x6b, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09,
   207  	0x52, 0x07, 0x62, 0x72, 0x6f, 0x6b, 0x65, 0x72, 0x73, 0x12, 0x2e, 0x0a, 0x13, 0x61, 0x70, 0x69,
   208  	0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
   209  	0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x11, 0x61, 0x70, 0x69, 0x56, 0x65, 0x72, 0x73, 0x69,
   210  	0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x11, 0x72, 0x65, 0x63,
   211  	0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x6f, 0x66, 0x66, 0x18, 0x04,
   212  	0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72,
   213  	0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52,
   214  	0x10, 0x72, 0x65, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x42, 0x61, 0x63, 0x6b, 0x6f, 0x66,
   215  	0x66, 0x12, 0x4d, 0x0a, 0x15, 0x72, 0x65, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x5f, 0x62,
   216  	0x61, 0x63, 0x6b, 0x6f, 0x66, 0x66, 0x5f, 0x6d, 0x61, 0x78, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b,
   217  	0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
   218  	0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x13, 0x72, 0x65, 0x63,
   219  	0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x42, 0x61, 0x63, 0x6b, 0x6f, 0x66, 0x66, 0x4d, 0x61, 0x78,
   220  	0x12, 0x45, 0x0a, 0x11, 0x6d, 0x61, 0x78, 0x5f, 0x77, 0x61, 0x69, 0x74, 0x5f, 0x64, 0x75, 0x72,
   221  	0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f,
   222  	0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75,
   223  	0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0f, 0x6d, 0x61, 0x78, 0x57, 0x61, 0x69, 0x74, 0x44,
   224  	0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x49, 0x0a, 0x13, 0x66, 0x61, 0x69, 0x6c, 0x5f,
   225  	0x61, 0x66, 0x74, 0x65, 0x72, 0x5f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x07,
   226  	0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72,
   227  	0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52,
   228  	0x11, 0x66, 0x61, 0x69, 0x6c, 0x41, 0x66, 0x74, 0x65, 0x72, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69,
   229  	0x6f, 0x6e, 0x1a, 0x0a, 0x0a, 0x08, 0x43, 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x65, 0x72, 0x1a, 0x0a,
   230  	0x0a, 0x08, 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x65, 0x72, 0x42, 0x2d, 0x5a, 0x2b, 0x67, 0x69,
   231  	0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6b, 0x61, 0x79, 0x64, 0x78, 0x68, 0x2f,
   232  	0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x6d, 0x71, 0x2f, 0x6b, 0x61,
   233  	0x66, 0x6b, 0x61, 0x3b, 0x6b, 0x61, 0x66, 0x6b, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   234  	0x33,
   235  }
   236  
   237  var (
   238  	file_pkg_mq_kafka_kafka_proto_rawDescOnce sync.Once
   239  	file_pkg_mq_kafka_kafka_proto_rawDescData = file_pkg_mq_kafka_kafka_proto_rawDesc
   240  )
   241  
   242  func file_pkg_mq_kafka_kafka_proto_rawDescGZIP() []byte {
   243  	file_pkg_mq_kafka_kafka_proto_rawDescOnce.Do(func() {
   244  		file_pkg_mq_kafka_kafka_proto_rawDescData = protoimpl.X.CompressGZIP(file_pkg_mq_kafka_kafka_proto_rawDescData)
   245  	})
   246  	return file_pkg_mq_kafka_kafka_proto_rawDescData
   247  }
   248  
   249  var file_pkg_mq_kafka_kafka_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
   250  var file_pkg_mq_kafka_kafka_proto_goTypes = []interface{}{
   251  	(*Kafka)(nil),             // 0: go.pkg.mq.kafka.Kafka
   252  	(*Kafka_Consumer)(nil),    // 1: go.pkg.mq.kafka.Kafka.Consumer
   253  	(*Kafka_Producer)(nil),    // 2: go.pkg.mq.kafka.Kafka.Producer
   254  	(*duration.Duration)(nil), // 3: google.protobuf.Duration
   255  }
   256  var file_pkg_mq_kafka_kafka_proto_depIdxs = []int32{
   257  	3, // 0: go.pkg.mq.kafka.Kafka.reconnect_backoff:type_name -> google.protobuf.Duration
   258  	3, // 1: go.pkg.mq.kafka.Kafka.reconnect_backoff_max:type_name -> google.protobuf.Duration
   259  	3, // 2: go.pkg.mq.kafka.Kafka.max_wait_duration:type_name -> google.protobuf.Duration
   260  	3, // 3: go.pkg.mq.kafka.Kafka.fail_after_duration:type_name -> google.protobuf.Duration
   261  	4, // [4:4] is the sub-list for method output_type
   262  	4, // [4:4] is the sub-list for method input_type
   263  	4, // [4:4] is the sub-list for extension type_name
   264  	4, // [4:4] is the sub-list for extension extendee
   265  	0, // [0:4] is the sub-list for field type_name
   266  }
   267  
   268  func init() { file_pkg_mq_kafka_kafka_proto_init() }
   269  func file_pkg_mq_kafka_kafka_proto_init() {
   270  	if File_pkg_mq_kafka_kafka_proto != nil {
   271  		return
   272  	}
   273  	if !protoimpl.UnsafeEnabled {
   274  		file_pkg_mq_kafka_kafka_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   275  			switch v := v.(*Kafka); i {
   276  			case 0:
   277  				return &v.state
   278  			case 1:
   279  				return &v.sizeCache
   280  			case 2:
   281  				return &v.unknownFields
   282  			default:
   283  				return nil
   284  			}
   285  		}
   286  		file_pkg_mq_kafka_kafka_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   287  			switch v := v.(*Kafka_Consumer); i {
   288  			case 0:
   289  				return &v.state
   290  			case 1:
   291  				return &v.sizeCache
   292  			case 2:
   293  				return &v.unknownFields
   294  			default:
   295  				return nil
   296  			}
   297  		}
   298  		file_pkg_mq_kafka_kafka_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
   299  			switch v := v.(*Kafka_Producer); i {
   300  			case 0:
   301  				return &v.state
   302  			case 1:
   303  				return &v.sizeCache
   304  			case 2:
   305  				return &v.unknownFields
   306  			default:
   307  				return nil
   308  			}
   309  		}
   310  	}
   311  	type x struct{}
   312  	out := protoimpl.TypeBuilder{
   313  		File: protoimpl.DescBuilder{
   314  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   315  			RawDescriptor: file_pkg_mq_kafka_kafka_proto_rawDesc,
   316  			NumEnums:      0,
   317  			NumMessages:   3,
   318  			NumExtensions: 0,
   319  			NumServices:   0,
   320  		},
   321  		GoTypes:           file_pkg_mq_kafka_kafka_proto_goTypes,
   322  		DependencyIndexes: file_pkg_mq_kafka_kafka_proto_depIdxs,
   323  		MessageInfos:      file_pkg_mq_kafka_kafka_proto_msgTypes,
   324  	}.Build()
   325  	File_pkg_mq_kafka_kafka_proto = out.File
   326  	file_pkg_mq_kafka_kafka_proto_rawDesc = nil
   327  	file_pkg_mq_kafka_kafka_proto_goTypes = nil
   328  	file_pkg_mq_kafka_kafka_proto_depIdxs = nil
   329  }