github.com/asynkron/protoactor-go@v0.0.0-20240308120642-ef91a6abee75/router/routercontracts.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // versions:
     3  // 	protoc-gen-go v1.27.1
     4  // 	protoc        v4.24.3
     5  // source: routercontracts.proto
     6  
     7  package router
     8  
     9  import (
    10  	actor "github.com/asynkron/protoactor-go/actor"
    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 AddRoutee struct {
    25  	state         protoimpl.MessageState
    26  	sizeCache     protoimpl.SizeCache
    27  	unknownFields protoimpl.UnknownFields
    28  
    29  	PID *actor.PID `protobuf:"bytes,1,opt,name=PID,proto3" json:"PID,omitempty"`
    30  }
    31  
    32  func (x *AddRoutee) Reset() {
    33  	*x = AddRoutee{}
    34  	if protoimpl.UnsafeEnabled {
    35  		mi := &file_routercontracts_proto_msgTypes[0]
    36  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    37  		ms.StoreMessageInfo(mi)
    38  	}
    39  }
    40  
    41  func (x *AddRoutee) String() string {
    42  	return protoimpl.X.MessageStringOf(x)
    43  }
    44  
    45  func (*AddRoutee) ProtoMessage() {}
    46  
    47  func (x *AddRoutee) ProtoReflect() protoreflect.Message {
    48  	mi := &file_routercontracts_proto_msgTypes[0]
    49  	if protoimpl.UnsafeEnabled && x != nil {
    50  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    51  		if ms.LoadMessageInfo() == nil {
    52  			ms.StoreMessageInfo(mi)
    53  		}
    54  		return ms
    55  	}
    56  	return mi.MessageOf(x)
    57  }
    58  
    59  // Deprecated: Use AddRoutee.ProtoReflect.Descriptor instead.
    60  func (*AddRoutee) Descriptor() ([]byte, []int) {
    61  	return file_routercontracts_proto_rawDescGZIP(), []int{0}
    62  }
    63  
    64  func (x *AddRoutee) GetPID() *actor.PID {
    65  	if x != nil {
    66  		return x.PID
    67  	}
    68  	return nil
    69  }
    70  
    71  type RemoveRoutee struct {
    72  	state         protoimpl.MessageState
    73  	sizeCache     protoimpl.SizeCache
    74  	unknownFields protoimpl.UnknownFields
    75  
    76  	PID *actor.PID `protobuf:"bytes,1,opt,name=PID,proto3" json:"PID,omitempty"`
    77  }
    78  
    79  func (x *RemoveRoutee) Reset() {
    80  	*x = RemoveRoutee{}
    81  	if protoimpl.UnsafeEnabled {
    82  		mi := &file_routercontracts_proto_msgTypes[1]
    83  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    84  		ms.StoreMessageInfo(mi)
    85  	}
    86  }
    87  
    88  func (x *RemoveRoutee) String() string {
    89  	return protoimpl.X.MessageStringOf(x)
    90  }
    91  
    92  func (*RemoveRoutee) ProtoMessage() {}
    93  
    94  func (x *RemoveRoutee) ProtoReflect() protoreflect.Message {
    95  	mi := &file_routercontracts_proto_msgTypes[1]
    96  	if protoimpl.UnsafeEnabled && x != nil {
    97  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    98  		if ms.LoadMessageInfo() == nil {
    99  			ms.StoreMessageInfo(mi)
   100  		}
   101  		return ms
   102  	}
   103  	return mi.MessageOf(x)
   104  }
   105  
   106  // Deprecated: Use RemoveRoutee.ProtoReflect.Descriptor instead.
   107  func (*RemoveRoutee) Descriptor() ([]byte, []int) {
   108  	return file_routercontracts_proto_rawDescGZIP(), []int{1}
   109  }
   110  
   111  func (x *RemoveRoutee) GetPID() *actor.PID {
   112  	if x != nil {
   113  		return x.PID
   114  	}
   115  	return nil
   116  }
   117  
   118  type AdjustPoolSize struct {
   119  	state         protoimpl.MessageState
   120  	sizeCache     protoimpl.SizeCache
   121  	unknownFields protoimpl.UnknownFields
   122  
   123  	Change int32 `protobuf:"varint,1,opt,name=change,proto3" json:"change,omitempty"`
   124  }
   125  
   126  func (x *AdjustPoolSize) Reset() {
   127  	*x = AdjustPoolSize{}
   128  	if protoimpl.UnsafeEnabled {
   129  		mi := &file_routercontracts_proto_msgTypes[2]
   130  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   131  		ms.StoreMessageInfo(mi)
   132  	}
   133  }
   134  
   135  func (x *AdjustPoolSize) String() string {
   136  	return protoimpl.X.MessageStringOf(x)
   137  }
   138  
   139  func (*AdjustPoolSize) ProtoMessage() {}
   140  
   141  func (x *AdjustPoolSize) ProtoReflect() protoreflect.Message {
   142  	mi := &file_routercontracts_proto_msgTypes[2]
   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 AdjustPoolSize.ProtoReflect.Descriptor instead.
   154  func (*AdjustPoolSize) Descriptor() ([]byte, []int) {
   155  	return file_routercontracts_proto_rawDescGZIP(), []int{2}
   156  }
   157  
   158  func (x *AdjustPoolSize) GetChange() int32 {
   159  	if x != nil {
   160  		return x.Change
   161  	}
   162  	return 0
   163  }
   164  
   165  type GetRoutees struct {
   166  	state         protoimpl.MessageState
   167  	sizeCache     protoimpl.SizeCache
   168  	unknownFields protoimpl.UnknownFields
   169  }
   170  
   171  func (x *GetRoutees) Reset() {
   172  	*x = GetRoutees{}
   173  	if protoimpl.UnsafeEnabled {
   174  		mi := &file_routercontracts_proto_msgTypes[3]
   175  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   176  		ms.StoreMessageInfo(mi)
   177  	}
   178  }
   179  
   180  func (x *GetRoutees) String() string {
   181  	return protoimpl.X.MessageStringOf(x)
   182  }
   183  
   184  func (*GetRoutees) ProtoMessage() {}
   185  
   186  func (x *GetRoutees) ProtoReflect() protoreflect.Message {
   187  	mi := &file_routercontracts_proto_msgTypes[3]
   188  	if protoimpl.UnsafeEnabled && x != nil {
   189  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   190  		if ms.LoadMessageInfo() == nil {
   191  			ms.StoreMessageInfo(mi)
   192  		}
   193  		return ms
   194  	}
   195  	return mi.MessageOf(x)
   196  }
   197  
   198  // Deprecated: Use GetRoutees.ProtoReflect.Descriptor instead.
   199  func (*GetRoutees) Descriptor() ([]byte, []int) {
   200  	return file_routercontracts_proto_rawDescGZIP(), []int{3}
   201  }
   202  
   203  type Routees struct {
   204  	state         protoimpl.MessageState
   205  	sizeCache     protoimpl.SizeCache
   206  	unknownFields protoimpl.UnknownFields
   207  
   208  	PIDs []*actor.PID `protobuf:"bytes,1,rep,name=PIDs,proto3" json:"PIDs,omitempty"`
   209  }
   210  
   211  func (x *Routees) Reset() {
   212  	*x = Routees{}
   213  	if protoimpl.UnsafeEnabled {
   214  		mi := &file_routercontracts_proto_msgTypes[4]
   215  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   216  		ms.StoreMessageInfo(mi)
   217  	}
   218  }
   219  
   220  func (x *Routees) String() string {
   221  	return protoimpl.X.MessageStringOf(x)
   222  }
   223  
   224  func (*Routees) ProtoMessage() {}
   225  
   226  func (x *Routees) ProtoReflect() protoreflect.Message {
   227  	mi := &file_routercontracts_proto_msgTypes[4]
   228  	if protoimpl.UnsafeEnabled && x != nil {
   229  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   230  		if ms.LoadMessageInfo() == nil {
   231  			ms.StoreMessageInfo(mi)
   232  		}
   233  		return ms
   234  	}
   235  	return mi.MessageOf(x)
   236  }
   237  
   238  // Deprecated: Use Routees.ProtoReflect.Descriptor instead.
   239  func (*Routees) Descriptor() ([]byte, []int) {
   240  	return file_routercontracts_proto_rawDescGZIP(), []int{4}
   241  }
   242  
   243  func (x *Routees) GetPIDs() []*actor.PID {
   244  	if x != nil {
   245  		return x.PIDs
   246  	}
   247  	return nil
   248  }
   249  
   250  var File_routercontracts_proto protoreflect.FileDescriptor
   251  
   252  var file_routercontracts_proto_rawDesc = []byte{
   253  	0x0a, 0x15, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74,
   254  	0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x1a,
   255  	0x0b, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x29, 0x0a, 0x09,
   256  	0x41, 0x64, 0x64, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x65, 0x12, 0x1c, 0x0a, 0x03, 0x50, 0x49, 0x44,
   257  	0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x50,
   258  	0x49, 0x44, 0x52, 0x03, 0x50, 0x49, 0x44, 0x22, 0x2c, 0x0a, 0x0c, 0x52, 0x65, 0x6d, 0x6f, 0x76,
   259  	0x65, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x65, 0x12, 0x1c, 0x0a, 0x03, 0x50, 0x49, 0x44, 0x18, 0x01,
   260  	0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x50, 0x49, 0x44,
   261  	0x52, 0x03, 0x50, 0x49, 0x44, 0x22, 0x28, 0x0a, 0x0e, 0x41, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x50,
   262  	0x6f, 0x6f, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x68, 0x61, 0x6e, 0x67,
   263  	0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x22,
   264  	0x0c, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x65, 0x73, 0x22, 0x29, 0x0a,
   265  	0x07, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x65, 0x73, 0x12, 0x1e, 0x0a, 0x04, 0x50, 0x49, 0x44, 0x73,
   266  	0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x50,
   267  	0x49, 0x44, 0x52, 0x04, 0x50, 0x49, 0x44, 0x73, 0x42, 0x2a, 0x5a, 0x28, 0x67, 0x69, 0x74, 0x68,
   268  	0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x73, 0x79, 0x6e, 0x6b, 0x72, 0x6f, 0x6e, 0x2f,
   269  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x2d, 0x67, 0x6f, 0x2f, 0x72, 0x6f,
   270  	0x75, 0x74, 0x65, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   271  }
   272  
   273  var (
   274  	file_routercontracts_proto_rawDescOnce sync.Once
   275  	file_routercontracts_proto_rawDescData = file_routercontracts_proto_rawDesc
   276  )
   277  
   278  func file_routercontracts_proto_rawDescGZIP() []byte {
   279  	file_routercontracts_proto_rawDescOnce.Do(func() {
   280  		file_routercontracts_proto_rawDescData = protoimpl.X.CompressGZIP(file_routercontracts_proto_rawDescData)
   281  	})
   282  	return file_routercontracts_proto_rawDescData
   283  }
   284  
   285  var file_routercontracts_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
   286  var file_routercontracts_proto_goTypes = []interface{}{
   287  	(*AddRoutee)(nil),      // 0: router.AddRoutee
   288  	(*RemoveRoutee)(nil),   // 1: router.RemoveRoutee
   289  	(*AdjustPoolSize)(nil), // 2: router.AdjustPoolSize
   290  	(*GetRoutees)(nil),     // 3: router.GetRoutees
   291  	(*Routees)(nil),        // 4: router.Routees
   292  	(*actor.PID)(nil),      // 5: actor.PID
   293  }
   294  var file_routercontracts_proto_depIdxs = []int32{
   295  	5, // 0: router.AddRoutee.PID:type_name -> actor.PID
   296  	5, // 1: router.RemoveRoutee.PID:type_name -> actor.PID
   297  	5, // 2: router.Routees.PIDs:type_name -> actor.PID
   298  	3, // [3:3] is the sub-list for method output_type
   299  	3, // [3:3] is the sub-list for method input_type
   300  	3, // [3:3] is the sub-list for extension type_name
   301  	3, // [3:3] is the sub-list for extension extendee
   302  	0, // [0:3] is the sub-list for field type_name
   303  }
   304  
   305  func init() { file_routercontracts_proto_init() }
   306  func file_routercontracts_proto_init() {
   307  	if File_routercontracts_proto != nil {
   308  		return
   309  	}
   310  	if !protoimpl.UnsafeEnabled {
   311  		file_routercontracts_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   312  			switch v := v.(*AddRoutee); i {
   313  			case 0:
   314  				return &v.state
   315  			case 1:
   316  				return &v.sizeCache
   317  			case 2:
   318  				return &v.unknownFields
   319  			default:
   320  				return nil
   321  			}
   322  		}
   323  		file_routercontracts_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   324  			switch v := v.(*RemoveRoutee); i {
   325  			case 0:
   326  				return &v.state
   327  			case 1:
   328  				return &v.sizeCache
   329  			case 2:
   330  				return &v.unknownFields
   331  			default:
   332  				return nil
   333  			}
   334  		}
   335  		file_routercontracts_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
   336  			switch v := v.(*AdjustPoolSize); i {
   337  			case 0:
   338  				return &v.state
   339  			case 1:
   340  				return &v.sizeCache
   341  			case 2:
   342  				return &v.unknownFields
   343  			default:
   344  				return nil
   345  			}
   346  		}
   347  		file_routercontracts_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
   348  			switch v := v.(*GetRoutees); i {
   349  			case 0:
   350  				return &v.state
   351  			case 1:
   352  				return &v.sizeCache
   353  			case 2:
   354  				return &v.unknownFields
   355  			default:
   356  				return nil
   357  			}
   358  		}
   359  		file_routercontracts_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
   360  			switch v := v.(*Routees); i {
   361  			case 0:
   362  				return &v.state
   363  			case 1:
   364  				return &v.sizeCache
   365  			case 2:
   366  				return &v.unknownFields
   367  			default:
   368  				return nil
   369  			}
   370  		}
   371  	}
   372  	type x struct{}
   373  	out := protoimpl.TypeBuilder{
   374  		File: protoimpl.DescBuilder{
   375  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   376  			RawDescriptor: file_routercontracts_proto_rawDesc,
   377  			NumEnums:      0,
   378  			NumMessages:   5,
   379  			NumExtensions: 0,
   380  			NumServices:   0,
   381  		},
   382  		GoTypes:           file_routercontracts_proto_goTypes,
   383  		DependencyIndexes: file_routercontracts_proto_depIdxs,
   384  		MessageInfos:      file_routercontracts_proto_msgTypes,
   385  	}.Build()
   386  	File_routercontracts_proto = out.File
   387  	file_routercontracts_proto_rawDesc = nil
   388  	file_routercontracts_proto_goTypes = nil
   389  	file_routercontracts_proto_depIdxs = nil
   390  }