github.com/ronaksoft/rony@v0.16.26-0.20230807065236-1743dbfe6959/example/redirect/rpc/sample.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // versions:
     3  // 	protoc-gen-go v1.27.1
     4  // 	protoc        v3.17.3
     5  // source: sample.proto
     6  
     7  package rpc
     8  
     9  import (
    10  	_ "github.com/ronaksoft/rony"
    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  // InfoRequest
    25  type InfoRequest struct {
    26  	state         protoimpl.MessageState
    27  	sizeCache     protoimpl.SizeCache
    28  	unknownFields protoimpl.UnknownFields
    29  
    30  	ReplicaSet uint64 `protobuf:"varint,1,opt,name=ReplicaSet,proto3" json:"ReplicaSet,omitempty"`
    31  	RandomText string `protobuf:"bytes,2,opt,name=RandomText,proto3" json:"RandomText,omitempty"`
    32  }
    33  
    34  func (x *InfoRequest) Reset() {
    35  	*x = InfoRequest{}
    36  	if protoimpl.UnsafeEnabled {
    37  		mi := &file_sample_proto_msgTypes[0]
    38  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    39  		ms.StoreMessageInfo(mi)
    40  	}
    41  }
    42  
    43  func (x *InfoRequest) String() string {
    44  	return protoimpl.X.MessageStringOf(x)
    45  }
    46  
    47  func (*InfoRequest) ProtoMessage() {}
    48  
    49  func (x *InfoRequest) ProtoReflect() protoreflect.Message {
    50  	mi := &file_sample_proto_msgTypes[0]
    51  	if protoimpl.UnsafeEnabled && x != nil {
    52  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    53  		if ms.LoadMessageInfo() == nil {
    54  			ms.StoreMessageInfo(mi)
    55  		}
    56  		return ms
    57  	}
    58  	return mi.MessageOf(x)
    59  }
    60  
    61  // Deprecated: Use InfoRequest.ProtoReflect.Descriptor instead.
    62  func (*InfoRequest) Descriptor() ([]byte, []int) {
    63  	return file_sample_proto_rawDescGZIP(), []int{0}
    64  }
    65  
    66  func (x *InfoRequest) GetReplicaSet() uint64 {
    67  	if x != nil {
    68  		return x.ReplicaSet
    69  	}
    70  	return 0
    71  }
    72  
    73  func (x *InfoRequest) GetRandomText() string {
    74  	if x != nil {
    75  		return x.RandomText
    76  	}
    77  	return ""
    78  }
    79  
    80  // InfoResponse
    81  type InfoResponse struct {
    82  	state         protoimpl.MessageState
    83  	sizeCache     protoimpl.SizeCache
    84  	unknownFields protoimpl.UnknownFields
    85  
    86  	ServerID   string `protobuf:"bytes,1,opt,name=ServerID,proto3" json:"ServerID,omitempty"`
    87  	RandomText string `protobuf:"bytes,2,opt,name=RandomText,proto3" json:"RandomText,omitempty"`
    88  }
    89  
    90  func (x *InfoResponse) Reset() {
    91  	*x = InfoResponse{}
    92  	if protoimpl.UnsafeEnabled {
    93  		mi := &file_sample_proto_msgTypes[1]
    94  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    95  		ms.StoreMessageInfo(mi)
    96  	}
    97  }
    98  
    99  func (x *InfoResponse) String() string {
   100  	return protoimpl.X.MessageStringOf(x)
   101  }
   102  
   103  func (*InfoResponse) ProtoMessage() {}
   104  
   105  func (x *InfoResponse) ProtoReflect() protoreflect.Message {
   106  	mi := &file_sample_proto_msgTypes[1]
   107  	if protoimpl.UnsafeEnabled && x != nil {
   108  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   109  		if ms.LoadMessageInfo() == nil {
   110  			ms.StoreMessageInfo(mi)
   111  		}
   112  		return ms
   113  	}
   114  	return mi.MessageOf(x)
   115  }
   116  
   117  // Deprecated: Use InfoResponse.ProtoReflect.Descriptor instead.
   118  func (*InfoResponse) Descriptor() ([]byte, []int) {
   119  	return file_sample_proto_rawDescGZIP(), []int{1}
   120  }
   121  
   122  func (x *InfoResponse) GetServerID() string {
   123  	if x != nil {
   124  		return x.ServerID
   125  	}
   126  	return ""
   127  }
   128  
   129  func (x *InfoResponse) GetRandomText() string {
   130  	if x != nil {
   131  		return x.RandomText
   132  	}
   133  	return ""
   134  }
   135  
   136  var File_sample_proto protoreflect.FileDescriptor
   137  
   138  var file_sample_proto_rawDesc = []byte{
   139  	0x0a, 0x0c, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x03,
   140  	0x72, 0x70, 0x63, 0x1a, 0x0d, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f,
   141  	0x74, 0x6f, 0x22, 0x4d, 0x0a, 0x0b, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
   142  	0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x53, 0x65, 0x74, 0x18,
   143  	0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x53, 0x65,
   144  	0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x52, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x54, 0x65, 0x78, 0x74, 0x18,
   145  	0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x52, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x54, 0x65, 0x78,
   146  	0x74, 0x22, 0x4a, 0x0a, 0x0c, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
   147  	0x65, 0x12, 0x1a, 0x0a, 0x08, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x49, 0x44, 0x18, 0x01, 0x20,
   148  	0x01, 0x28, 0x09, 0x52, 0x08, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x49, 0x44, 0x12, 0x1e, 0x0a,
   149  	0x0a, 0x52, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x54, 0x65, 0x78, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28,
   150  	0x09, 0x52, 0x0a, 0x52, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x54, 0x65, 0x78, 0x74, 0x32, 0xfe, 0x01,
   151  	0x0a, 0x06, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x12, 0x79, 0x0a, 0x16, 0x49, 0x6e, 0x66, 0x6f,
   152  	0x57, 0x69, 0x74, 0x68, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x64, 0x69, 0x72, 0x65,
   153  	0x63, 0x74, 0x12, 0x10, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71,
   154  	0x75, 0x65, 0x73, 0x74, 0x1a, 0x11, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x49, 0x6e, 0x66, 0x6f, 0x52,
   155  	0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3a, 0x9a, 0xb5, 0x18, 0x36, 0x0a, 0x03, 0x67,
   156  	0x65, 0x74, 0x12, 0x2d, 0x2f, 0x69, 0x6e, 0x66, 0x6f, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74,
   157  	0x2d, 0x72, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x2f, 0x3a, 0x52, 0x65, 0x70, 0x6c, 0x69,
   158  	0x63, 0x61, 0x53, 0x65, 0x74, 0x2f, 0x3a, 0x52, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x54, 0x65, 0x78,
   159  	0x74, 0x28, 0x01, 0x12, 0x79, 0x0a, 0x16, 0x49, 0x6e, 0x66, 0x6f, 0x57, 0x69, 0x74, 0x68, 0x53,
   160  	0x65, 0x72, 0x76, 0x65, 0x72, 0x52, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x12, 0x10, 0x2e,
   161  	0x72, 0x70, 0x63, 0x2e, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
   162  	0x11, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
   163  	0x73, 0x65, 0x22, 0x3a, 0x9a, 0xb5, 0x18, 0x36, 0x0a, 0x03, 0x67, 0x65, 0x74, 0x12, 0x2d, 0x2f,
   164  	0x69, 0x6e, 0x66, 0x6f, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2d, 0x72, 0x65, 0x64, 0x69,
   165  	0x72, 0x65, 0x63, 0x74, 0x2f, 0x3a, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x53, 0x65, 0x74,
   166  	0x2f, 0x3a, 0x52, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x54, 0x65, 0x78, 0x74, 0x28, 0x01, 0x42, 0x30,
   167  	0x5a, 0x2e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x72, 0x6f, 0x6e,
   168  	0x61, 0x6b, 0x73, 0x6f, 0x66, 0x74, 0x2f, 0x72, 0x6f, 0x6e, 0x79, 0x2f, 0x65, 0x78, 0x61, 0x6d,
   169  	0x70, 0x6c, 0x65, 0x2f, 0x72, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x2f, 0x72, 0x70, 0x63,
   170  	0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   171  }
   172  
   173  var (
   174  	file_sample_proto_rawDescOnce sync.Once
   175  	file_sample_proto_rawDescData = file_sample_proto_rawDesc
   176  )
   177  
   178  func file_sample_proto_rawDescGZIP() []byte {
   179  	file_sample_proto_rawDescOnce.Do(func() {
   180  		file_sample_proto_rawDescData = protoimpl.X.CompressGZIP(file_sample_proto_rawDescData)
   181  	})
   182  	return file_sample_proto_rawDescData
   183  }
   184  
   185  var file_sample_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
   186  var file_sample_proto_goTypes = []interface{}{
   187  	(*InfoRequest)(nil),  // 0: rpc.InfoRequest
   188  	(*InfoResponse)(nil), // 1: rpc.InfoResponse
   189  }
   190  var file_sample_proto_depIdxs = []int32{
   191  	0, // 0: rpc.Sample.InfoWithClientRedirect:input_type -> rpc.InfoRequest
   192  	0, // 1: rpc.Sample.InfoWithServerRedirect:input_type -> rpc.InfoRequest
   193  	1, // 2: rpc.Sample.InfoWithClientRedirect:output_type -> rpc.InfoResponse
   194  	1, // 3: rpc.Sample.InfoWithServerRedirect:output_type -> rpc.InfoResponse
   195  	2, // [2:4] is the sub-list for method output_type
   196  	0, // [0:2] is the sub-list for method input_type
   197  	0, // [0:0] is the sub-list for extension type_name
   198  	0, // [0:0] is the sub-list for extension extendee
   199  	0, // [0:0] is the sub-list for field type_name
   200  }
   201  
   202  func init() { file_sample_proto_init() }
   203  func file_sample_proto_init() {
   204  	if File_sample_proto != nil {
   205  		return
   206  	}
   207  	if !protoimpl.UnsafeEnabled {
   208  		file_sample_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   209  			switch v := v.(*InfoRequest); i {
   210  			case 0:
   211  				return &v.state
   212  			case 1:
   213  				return &v.sizeCache
   214  			case 2:
   215  				return &v.unknownFields
   216  			default:
   217  				return nil
   218  			}
   219  		}
   220  		file_sample_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   221  			switch v := v.(*InfoResponse); i {
   222  			case 0:
   223  				return &v.state
   224  			case 1:
   225  				return &v.sizeCache
   226  			case 2:
   227  				return &v.unknownFields
   228  			default:
   229  				return nil
   230  			}
   231  		}
   232  	}
   233  	type x struct{}
   234  	out := protoimpl.TypeBuilder{
   235  		File: protoimpl.DescBuilder{
   236  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   237  			RawDescriptor: file_sample_proto_rawDesc,
   238  			NumEnums:      0,
   239  			NumMessages:   2,
   240  			NumExtensions: 0,
   241  			NumServices:   1,
   242  		},
   243  		GoTypes:           file_sample_proto_goTypes,
   244  		DependencyIndexes: file_sample_proto_depIdxs,
   245  		MessageInfos:      file_sample_proto_msgTypes,
   246  	}.Build()
   247  	File_sample_proto = out.File
   248  	file_sample_proto_rawDesc = nil
   249  	file_sample_proto_goTypes = nil
   250  	file_sample_proto_depIdxs = nil
   251  }