go-micro.dev/v5@v5.12.0/transport/grpc/proto/transport.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: proto/transport.proto
     6  
     7  package transport
     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 Message struct {
    24  	state         protoimpl.MessageState
    25  	sizeCache     protoimpl.SizeCache
    26  	unknownFields protoimpl.UnknownFields
    27  
    28  	Header map[string]string `protobuf:"bytes,1,rep,name=header,proto3" json:"header,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    29  	Body   []byte            `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"`
    30  }
    31  
    32  func (x *Message) Reset() {
    33  	*x = Message{}
    34  	if protoimpl.UnsafeEnabled {
    35  		mi := &file_proto_transport_proto_msgTypes[0]
    36  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    37  		ms.StoreMessageInfo(mi)
    38  	}
    39  }
    40  
    41  func (x *Message) String() string {
    42  	return protoimpl.X.MessageStringOf(x)
    43  }
    44  
    45  func (*Message) ProtoMessage() {}
    46  
    47  func (x *Message) ProtoReflect() protoreflect.Message {
    48  	mi := &file_proto_transport_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 Message.ProtoReflect.Descriptor instead.
    60  func (*Message) Descriptor() ([]byte, []int) {
    61  	return file_proto_transport_proto_rawDescGZIP(), []int{0}
    62  }
    63  
    64  func (x *Message) GetHeader() map[string]string {
    65  	if x != nil {
    66  		return x.Header
    67  	}
    68  	return nil
    69  }
    70  
    71  func (x *Message) GetBody() []byte {
    72  	if x != nil {
    73  		return x.Body
    74  	}
    75  	return nil
    76  }
    77  
    78  var File_proto_transport_proto protoreflect.FileDescriptor
    79  
    80  var file_proto_transport_proto_rawDesc = []byte{
    81  	0x0a, 0x15, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72,
    82  	0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x17, 0x67, 0x6f, 0x2e, 0x6d, 0x69, 0x63, 0x72,
    83  	0x6f, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x67, 0x72, 0x70, 0x63,
    84  	0x22, 0x9e, 0x01, 0x0a, 0x07, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x44, 0x0a, 0x06,
    85  	0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x67,
    86  	0x6f, 0x2e, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72,
    87  	0x74, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x48,
    88  	0x65, 0x61, 0x64, 0x65, 0x72, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64,
    89  	0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c,
    90  	0x52, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x1a, 0x39, 0x0a, 0x0b, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72,
    91  	0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01,
    92  	0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,
    93  	0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38,
    94  	0x01, 0x32, 0x5f, 0x0a, 0x09, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x52,
    95  	0x0a, 0x06, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x20, 0x2e, 0x67, 0x6f, 0x2e, 0x6d, 0x69,
    96  	0x63, 0x72, 0x6f, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x67, 0x72,
    97  	0x70, 0x63, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x1a, 0x20, 0x2e, 0x67, 0x6f, 0x2e,
    98  	0x6d, 0x69, 0x63, 0x72, 0x6f, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e,
    99  	0x67, 0x72, 0x70, 0x63, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x00, 0x28, 0x01,
   100  	0x30, 0x01, 0x42, 0x13, 0x5a, 0x11, 0x2e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x3b, 0x74, 0x72,
   101  	0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   102  }
   103  
   104  var (
   105  	file_proto_transport_proto_rawDescOnce sync.Once
   106  	file_proto_transport_proto_rawDescData = file_proto_transport_proto_rawDesc
   107  )
   108  
   109  func file_proto_transport_proto_rawDescGZIP() []byte {
   110  	file_proto_transport_proto_rawDescOnce.Do(func() {
   111  		file_proto_transport_proto_rawDescData = protoimpl.X.CompressGZIP(file_proto_transport_proto_rawDescData)
   112  	})
   113  	return file_proto_transport_proto_rawDescData
   114  }
   115  
   116  var file_proto_transport_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
   117  var file_proto_transport_proto_goTypes = []interface{}{
   118  	(*Message)(nil), // 0: go.micro.transport.grpc.Message
   119  	nil,             // 1: go.micro.transport.grpc.Message.HeaderEntry
   120  }
   121  var file_proto_transport_proto_depIdxs = []int32{
   122  	1, // 0: go.micro.transport.grpc.Message.header:type_name -> go.micro.transport.grpc.Message.HeaderEntry
   123  	0, // 1: go.micro.transport.grpc.Transport.Stream:input_type -> go.micro.transport.grpc.Message
   124  	0, // 2: go.micro.transport.grpc.Transport.Stream:output_type -> go.micro.transport.grpc.Message
   125  	2, // [2:3] is the sub-list for method output_type
   126  	1, // [1:2] is the sub-list for method input_type
   127  	1, // [1:1] is the sub-list for extension type_name
   128  	1, // [1:1] is the sub-list for extension extendee
   129  	0, // [0:1] is the sub-list for field type_name
   130  }
   131  
   132  func init() { file_proto_transport_proto_init() }
   133  func file_proto_transport_proto_init() {
   134  	if File_proto_transport_proto != nil {
   135  		return
   136  	}
   137  	if !protoimpl.UnsafeEnabled {
   138  		file_proto_transport_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   139  			switch v := v.(*Message); i {
   140  			case 0:
   141  				return &v.state
   142  			case 1:
   143  				return &v.sizeCache
   144  			case 2:
   145  				return &v.unknownFields
   146  			default:
   147  				return nil
   148  			}
   149  		}
   150  	}
   151  	type x struct{}
   152  	out := protoimpl.TypeBuilder{
   153  		File: protoimpl.DescBuilder{
   154  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   155  			RawDescriptor: file_proto_transport_proto_rawDesc,
   156  			NumEnums:      0,
   157  			NumMessages:   2,
   158  			NumExtensions: 0,
   159  			NumServices:   1,
   160  		},
   161  		GoTypes:           file_proto_transport_proto_goTypes,
   162  		DependencyIndexes: file_proto_transport_proto_depIdxs,
   163  		MessageInfos:      file_proto_transport_proto_msgTypes,
   164  	}.Build()
   165  	File_proto_transport_proto = out.File
   166  	file_proto_transport_proto_rawDesc = nil
   167  	file_proto_transport_proto_goTypes = nil
   168  	file_proto_transport_proto_depIdxs = nil
   169  }