github.com/asynkron/protoactor-go@v0.0.0-20240308120642-ef91a6abee75/cluster/grain.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: grain.proto
     6  
     7  package cluster
     8  
     9  import (
    10  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    11  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    12  	reflect "reflect"
    13  	sync "sync"
    14  )
    15  
    16  const (
    17  	// Verify that this generated code is sufficiently up-to-date.
    18  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    19  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    20  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    21  )
    22  
    23  type GrainRequest struct {
    24  	state         protoimpl.MessageState
    25  	sizeCache     protoimpl.SizeCache
    26  	unknownFields protoimpl.UnknownFields
    27  
    28  	MethodIndex     int32  `protobuf:"varint,1,opt,name=method_index,json=methodIndex,proto3" json:"method_index,omitempty"`
    29  	MessageData     []byte `protobuf:"bytes,2,opt,name=message_data,json=messageData,proto3" json:"message_data,omitempty"`
    30  	MessageTypeName string `protobuf:"bytes,3,opt,name=message_type_name,json=messageTypeName,proto3" json:"message_type_name,omitempty"`
    31  }
    32  
    33  func (x *GrainRequest) Reset() {
    34  	*x = GrainRequest{}
    35  	if protoimpl.UnsafeEnabled {
    36  		mi := &file_grain_proto_msgTypes[0]
    37  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    38  		ms.StoreMessageInfo(mi)
    39  	}
    40  }
    41  
    42  func (x *GrainRequest) String() string {
    43  	return protoimpl.X.MessageStringOf(x)
    44  }
    45  
    46  func (*GrainRequest) ProtoMessage() {}
    47  
    48  func (x *GrainRequest) ProtoReflect() protoreflect.Message {
    49  	mi := &file_grain_proto_msgTypes[0]
    50  	if protoimpl.UnsafeEnabled && x != nil {
    51  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    52  		if ms.LoadMessageInfo() == nil {
    53  			ms.StoreMessageInfo(mi)
    54  		}
    55  		return ms
    56  	}
    57  	return mi.MessageOf(x)
    58  }
    59  
    60  // Deprecated: Use GrainRequest.ProtoReflect.Descriptor instead.
    61  func (*GrainRequest) Descriptor() ([]byte, []int) {
    62  	return file_grain_proto_rawDescGZIP(), []int{0}
    63  }
    64  
    65  func (x *GrainRequest) GetMethodIndex() int32 {
    66  	if x != nil {
    67  		return x.MethodIndex
    68  	}
    69  	return 0
    70  }
    71  
    72  func (x *GrainRequest) GetMessageData() []byte {
    73  	if x != nil {
    74  		return x.MessageData
    75  	}
    76  	return nil
    77  }
    78  
    79  func (x *GrainRequest) GetMessageTypeName() string {
    80  	if x != nil {
    81  		return x.MessageTypeName
    82  	}
    83  	return ""
    84  }
    85  
    86  type GrainResponse struct {
    87  	state         protoimpl.MessageState
    88  	sizeCache     protoimpl.SizeCache
    89  	unknownFields protoimpl.UnknownFields
    90  
    91  	MessageData     []byte `protobuf:"bytes,1,opt,name=message_data,json=messageData,proto3" json:"message_data,omitempty"`
    92  	MessageTypeName string `protobuf:"bytes,2,opt,name=message_type_name,json=messageTypeName,proto3" json:"message_type_name,omitempty"`
    93  }
    94  
    95  func (x *GrainResponse) Reset() {
    96  	*x = GrainResponse{}
    97  	if protoimpl.UnsafeEnabled {
    98  		mi := &file_grain_proto_msgTypes[1]
    99  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   100  		ms.StoreMessageInfo(mi)
   101  	}
   102  }
   103  
   104  func (x *GrainResponse) String() string {
   105  	return protoimpl.X.MessageStringOf(x)
   106  }
   107  
   108  func (*GrainResponse) ProtoMessage() {}
   109  
   110  func (x *GrainResponse) ProtoReflect() protoreflect.Message {
   111  	mi := &file_grain_proto_msgTypes[1]
   112  	if protoimpl.UnsafeEnabled && x != nil {
   113  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   114  		if ms.LoadMessageInfo() == nil {
   115  			ms.StoreMessageInfo(mi)
   116  		}
   117  		return ms
   118  	}
   119  	return mi.MessageOf(x)
   120  }
   121  
   122  // Deprecated: Use GrainResponse.ProtoReflect.Descriptor instead.
   123  func (*GrainResponse) Descriptor() ([]byte, []int) {
   124  	return file_grain_proto_rawDescGZIP(), []int{1}
   125  }
   126  
   127  func (x *GrainResponse) GetMessageData() []byte {
   128  	if x != nil {
   129  		return x.MessageData
   130  	}
   131  	return nil
   132  }
   133  
   134  func (x *GrainResponse) GetMessageTypeName() string {
   135  	if x != nil {
   136  		return x.MessageTypeName
   137  	}
   138  	return ""
   139  }
   140  
   141  type GrainErrorResponse struct {
   142  	state         protoimpl.MessageState
   143  	sizeCache     protoimpl.SizeCache
   144  	unknownFields protoimpl.UnknownFields
   145  
   146  	Reason   string            `protobuf:"bytes,1,opt,name=reason,proto3" json:"reason,omitempty"`
   147  	Message  string            `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
   148  	Metadata map[string]string `protobuf:"bytes,3,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
   149  }
   150  
   151  func (x *GrainErrorResponse) Reset() {
   152  	*x = GrainErrorResponse{}
   153  	if protoimpl.UnsafeEnabled {
   154  		mi := &file_grain_proto_msgTypes[2]
   155  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   156  		ms.StoreMessageInfo(mi)
   157  	}
   158  }
   159  
   160  func (x *GrainErrorResponse) String() string {
   161  	return protoimpl.X.MessageStringOf(x)
   162  }
   163  
   164  func (*GrainErrorResponse) ProtoMessage() {}
   165  
   166  func (x *GrainErrorResponse) ProtoReflect() protoreflect.Message {
   167  	mi := &file_grain_proto_msgTypes[2]
   168  	if protoimpl.UnsafeEnabled && x != nil {
   169  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   170  		if ms.LoadMessageInfo() == nil {
   171  			ms.StoreMessageInfo(mi)
   172  		}
   173  		return ms
   174  	}
   175  	return mi.MessageOf(x)
   176  }
   177  
   178  // Deprecated: Use GrainErrorResponse.ProtoReflect.Descriptor instead.
   179  func (*GrainErrorResponse) Descriptor() ([]byte, []int) {
   180  	return file_grain_proto_rawDescGZIP(), []int{2}
   181  }
   182  
   183  func (x *GrainErrorResponse) GetReason() string {
   184  	if x != nil {
   185  		return x.Reason
   186  	}
   187  	return ""
   188  }
   189  
   190  func (x *GrainErrorResponse) GetMessage() string {
   191  	if x != nil {
   192  		return x.Message
   193  	}
   194  	return ""
   195  }
   196  
   197  func (x *GrainErrorResponse) GetMetadata() map[string]string {
   198  	if x != nil {
   199  		return x.Metadata
   200  	}
   201  	return nil
   202  }
   203  
   204  var File_grain_proto protoreflect.FileDescriptor
   205  
   206  var file_grain_proto_rawDesc = []byte{
   207  	0x0a, 0x0b, 0x67, 0x72, 0x61, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x07, 0x63,
   208  	0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x22, 0x80, 0x01, 0x0a, 0x0c, 0x47, 0x72, 0x61, 0x69, 0x6e,
   209  	0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x6d, 0x65, 0x74, 0x68, 0x6f,
   210  	0x64, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x6d,
   211  	0x65, 0x74, 0x68, 0x6f, 0x64, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x21, 0x0a, 0x0c, 0x6d, 0x65,
   212  	0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c,
   213  	0x52, 0x0b, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x44, 0x61, 0x74, 0x61, 0x12, 0x2a, 0x0a,
   214  	0x11, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61,
   215  	0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
   216  	0x65, 0x54, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x5e, 0x0a, 0x0d, 0x47, 0x72, 0x61,
   217  	0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x6d, 0x65,
   218  	0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c,
   219  	0x52, 0x0b, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x44, 0x61, 0x74, 0x61, 0x12, 0x2a, 0x0a,
   220  	0x11, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61,
   221  	0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
   222  	0x65, 0x54, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0xca, 0x01, 0x0a, 0x12, 0x47, 0x72,
   223  	0x61, 0x69, 0x6e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
   224  	0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
   225  	0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73,
   226  	0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61,
   227  	0x67, 0x65, 0x12, 0x45, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03,
   228  	0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x47,
   229  	0x72, 0x61, 0x69, 0x6e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
   230  	0x65, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52,
   231  	0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x1a, 0x3b, 0x0a, 0x0d, 0x4d, 0x65, 0x74,
   232  	0x61, 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65,
   233  	0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05,
   234  	0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c,
   235  	0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x2c, 0x5a, 0x2a, 0x2f, 0x67, 0x69, 0x74, 0x68, 0x75,
   236  	0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x73, 0x79, 0x6e, 0x6b, 0x72, 0x6f, 0x6e, 0x2f, 0x70,
   237  	0x72, 0x6f, 0x74, 0x6f, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x2d, 0x67, 0x6f, 0x2f, 0x63, 0x6c, 0x75,
   238  	0x73, 0x74, 0x65, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   239  }
   240  
   241  var (
   242  	file_grain_proto_rawDescOnce sync.Once
   243  	file_grain_proto_rawDescData = file_grain_proto_rawDesc
   244  )
   245  
   246  func file_grain_proto_rawDescGZIP() []byte {
   247  	file_grain_proto_rawDescOnce.Do(func() {
   248  		file_grain_proto_rawDescData = protoimpl.X.CompressGZIP(file_grain_proto_rawDescData)
   249  	})
   250  	return file_grain_proto_rawDescData
   251  }
   252  
   253  var file_grain_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
   254  var file_grain_proto_goTypes = []interface{}{
   255  	(*GrainRequest)(nil),       // 0: cluster.GrainRequest
   256  	(*GrainResponse)(nil),      // 1: cluster.GrainResponse
   257  	(*GrainErrorResponse)(nil), // 2: cluster.GrainErrorResponse
   258  	nil,                        // 3: cluster.GrainErrorResponse.MetadataEntry
   259  }
   260  var file_grain_proto_depIdxs = []int32{
   261  	3, // 0: cluster.GrainErrorResponse.metadata:type_name -> cluster.GrainErrorResponse.MetadataEntry
   262  	1, // [1:1] is the sub-list for method output_type
   263  	1, // [1:1] is the sub-list for method input_type
   264  	1, // [1:1] is the sub-list for extension type_name
   265  	1, // [1:1] is the sub-list for extension extendee
   266  	0, // [0:1] is the sub-list for field type_name
   267  }
   268  
   269  func init() { file_grain_proto_init() }
   270  func file_grain_proto_init() {
   271  	if File_grain_proto != nil {
   272  		return
   273  	}
   274  	if !protoimpl.UnsafeEnabled {
   275  		file_grain_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   276  			switch v := v.(*GrainRequest); i {
   277  			case 0:
   278  				return &v.state
   279  			case 1:
   280  				return &v.sizeCache
   281  			case 2:
   282  				return &v.unknownFields
   283  			default:
   284  				return nil
   285  			}
   286  		}
   287  		file_grain_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   288  			switch v := v.(*GrainResponse); i {
   289  			case 0:
   290  				return &v.state
   291  			case 1:
   292  				return &v.sizeCache
   293  			case 2:
   294  				return &v.unknownFields
   295  			default:
   296  				return nil
   297  			}
   298  		}
   299  		file_grain_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
   300  			switch v := v.(*GrainErrorResponse); i {
   301  			case 0:
   302  				return &v.state
   303  			case 1:
   304  				return &v.sizeCache
   305  			case 2:
   306  				return &v.unknownFields
   307  			default:
   308  				return nil
   309  			}
   310  		}
   311  	}
   312  	type x struct{}
   313  	out := protoimpl.TypeBuilder{
   314  		File: protoimpl.DescBuilder{
   315  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   316  			RawDescriptor: file_grain_proto_rawDesc,
   317  			NumEnums:      0,
   318  			NumMessages:   4,
   319  			NumExtensions: 0,
   320  			NumServices:   0,
   321  		},
   322  		GoTypes:           file_grain_proto_goTypes,
   323  		DependencyIndexes: file_grain_proto_depIdxs,
   324  		MessageInfos:      file_grain_proto_msgTypes,
   325  	}.Build()
   326  	File_grain_proto = out.File
   327  	file_grain_proto_rawDesc = nil
   328  	file_grain_proto_goTypes = nil
   329  	file_grain_proto_depIdxs = nil
   330  }