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