go-micro.dev/v5@v5.12.0/cmd/protoc-gen-micro/examples/greeter/greeter.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // versions:
     3  // 	protoc-gen-go v1.32.0
     4  // 	protoc        v4.25.3
     5  // source: greeter.proto
     6  
     7  package greeter
     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 Request struct {
    24  	state         protoimpl.MessageState
    25  	sizeCache     protoimpl.SizeCache
    26  	unknownFields protoimpl.UnknownFields
    27  
    28  	Name string  `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    29  	Msg  *string `protobuf:"bytes,2,opt,name=msg,proto3,oneof" json:"msg,omitempty"`
    30  }
    31  
    32  func (x *Request) Reset() {
    33  	*x = Request{}
    34  	if protoimpl.UnsafeEnabled {
    35  		mi := &file_greeter_proto_msgTypes[0]
    36  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    37  		ms.StoreMessageInfo(mi)
    38  	}
    39  }
    40  
    41  func (x *Request) String() string {
    42  	return protoimpl.X.MessageStringOf(x)
    43  }
    44  
    45  func (*Request) ProtoMessage() {}
    46  
    47  func (x *Request) ProtoReflect() protoreflect.Message {
    48  	mi := &file_greeter_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 Request.ProtoReflect.Descriptor instead.
    60  func (*Request) Descriptor() ([]byte, []int) {
    61  	return file_greeter_proto_rawDescGZIP(), []int{0}
    62  }
    63  
    64  func (x *Request) GetName() string {
    65  	if x != nil {
    66  		return x.Name
    67  	}
    68  	return ""
    69  }
    70  
    71  func (x *Request) GetMsg() string {
    72  	if x != nil && x.Msg != nil {
    73  		return *x.Msg
    74  	}
    75  	return ""
    76  }
    77  
    78  type Response struct {
    79  	state         protoimpl.MessageState
    80  	sizeCache     protoimpl.SizeCache
    81  	unknownFields protoimpl.UnknownFields
    82  
    83  	Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"`
    84  }
    85  
    86  func (x *Response) Reset() {
    87  	*x = Response{}
    88  	if protoimpl.UnsafeEnabled {
    89  		mi := &file_greeter_proto_msgTypes[1]
    90  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    91  		ms.StoreMessageInfo(mi)
    92  	}
    93  }
    94  
    95  func (x *Response) String() string {
    96  	return protoimpl.X.MessageStringOf(x)
    97  }
    98  
    99  func (*Response) ProtoMessage() {}
   100  
   101  func (x *Response) ProtoReflect() protoreflect.Message {
   102  	mi := &file_greeter_proto_msgTypes[1]
   103  	if protoimpl.UnsafeEnabled && x != nil {
   104  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   105  		if ms.LoadMessageInfo() == nil {
   106  			ms.StoreMessageInfo(mi)
   107  		}
   108  		return ms
   109  	}
   110  	return mi.MessageOf(x)
   111  }
   112  
   113  // Deprecated: Use Response.ProtoReflect.Descriptor instead.
   114  func (*Response) Descriptor() ([]byte, []int) {
   115  	return file_greeter_proto_rawDescGZIP(), []int{1}
   116  }
   117  
   118  func (x *Response) GetMsg() string {
   119  	if x != nil {
   120  		return x.Msg
   121  	}
   122  	return ""
   123  }
   124  
   125  var File_greeter_proto protoreflect.FileDescriptor
   126  
   127  var file_greeter_proto_rawDesc = []byte{
   128  	0x0a, 0x0d, 0x67, 0x72, 0x65, 0x65, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22,
   129  	0x3c, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61,
   130  	0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x15,
   131  	0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x03, 0x6d,
   132  	0x73, 0x67, 0x88, 0x01, 0x01, 0x42, 0x06, 0x0a, 0x04, 0x5f, 0x6d, 0x73, 0x67, 0x22, 0x1c, 0x0a,
   133  	0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67,
   134  	0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x32, 0x4e, 0x0a, 0x07, 0x47,
   135  	0x72, 0x65, 0x65, 0x74, 0x65, 0x72, 0x12, 0x1e, 0x0a, 0x05, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x12,
   136  	0x08, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x09, 0x2e, 0x52, 0x65, 0x73, 0x70,
   137  	0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x23, 0x0a, 0x06, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d,
   138  	0x12, 0x08, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x09, 0x2e, 0x52, 0x65, 0x73,
   139  	0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x28, 0x01, 0x30, 0x01, 0x42, 0x0c, 0x5a, 0x0a, 0x2e,
   140  	0x2e, 0x2f, 0x67, 0x72, 0x65, 0x65, 0x74, 0x65, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   141  	0x33,
   142  }
   143  
   144  var (
   145  	file_greeter_proto_rawDescOnce sync.Once
   146  	file_greeter_proto_rawDescData = file_greeter_proto_rawDesc
   147  )
   148  
   149  func file_greeter_proto_rawDescGZIP() []byte {
   150  	file_greeter_proto_rawDescOnce.Do(func() {
   151  		file_greeter_proto_rawDescData = protoimpl.X.CompressGZIP(file_greeter_proto_rawDescData)
   152  	})
   153  	return file_greeter_proto_rawDescData
   154  }
   155  
   156  var file_greeter_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
   157  var file_greeter_proto_goTypes = []interface{}{
   158  	(*Request)(nil),  // 0: Request
   159  	(*Response)(nil), // 1: Response
   160  }
   161  var file_greeter_proto_depIdxs = []int32{
   162  	0, // 0: Greeter.Hello:input_type -> Request
   163  	0, // 1: Greeter.Stream:input_type -> Request
   164  	1, // 2: Greeter.Hello:output_type -> Response
   165  	1, // 3: Greeter.Stream:output_type -> Response
   166  	2, // [2:4] is the sub-list for method output_type
   167  	0, // [0:2] is the sub-list for method input_type
   168  	0, // [0:0] is the sub-list for extension type_name
   169  	0, // [0:0] is the sub-list for extension extendee
   170  	0, // [0:0] is the sub-list for field type_name
   171  }
   172  
   173  func init() { file_greeter_proto_init() }
   174  func file_greeter_proto_init() {
   175  	if File_greeter_proto != nil {
   176  		return
   177  	}
   178  	if !protoimpl.UnsafeEnabled {
   179  		file_greeter_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   180  			switch v := v.(*Request); i {
   181  			case 0:
   182  				return &v.state
   183  			case 1:
   184  				return &v.sizeCache
   185  			case 2:
   186  				return &v.unknownFields
   187  			default:
   188  				return nil
   189  			}
   190  		}
   191  		file_greeter_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   192  			switch v := v.(*Response); i {
   193  			case 0:
   194  				return &v.state
   195  			case 1:
   196  				return &v.sizeCache
   197  			case 2:
   198  				return &v.unknownFields
   199  			default:
   200  				return nil
   201  			}
   202  		}
   203  	}
   204  	file_greeter_proto_msgTypes[0].OneofWrappers = []interface{}{}
   205  	type x struct{}
   206  	out := protoimpl.TypeBuilder{
   207  		File: protoimpl.DescBuilder{
   208  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   209  			RawDescriptor: file_greeter_proto_rawDesc,
   210  			NumEnums:      0,
   211  			NumMessages:   2,
   212  			NumExtensions: 0,
   213  			NumServices:   1,
   214  		},
   215  		GoTypes:           file_greeter_proto_goTypes,
   216  		DependencyIndexes: file_greeter_proto_depIdxs,
   217  		MessageInfos:      file_greeter_proto_msgTypes,
   218  	}.Build()
   219  	File_greeter_proto = out.File
   220  	file_greeter_proto_rawDesc = nil
   221  	file_greeter_proto_goTypes = nil
   222  	file_greeter_proto_depIdxs = nil
   223  }