github.com/moqsien/xraycore@v1.8.5/transport/internet/grpc/encoding/stream.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // versions:
     3  // 	protoc-gen-go v1.30.0
     4  // 	protoc        v4.23.1
     5  // source: transport/internet/grpc/encoding/stream.proto
     6  
     7  package encoding
     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 Hunk struct {
    24  	state         protoimpl.MessageState
    25  	sizeCache     protoimpl.SizeCache
    26  	unknownFields protoimpl.UnknownFields
    27  
    28  	Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
    29  }
    30  
    31  func (x *Hunk) Reset() {
    32  	*x = Hunk{}
    33  	if protoimpl.UnsafeEnabled {
    34  		mi := &file_transport_internet_grpc_encoding_stream_proto_msgTypes[0]
    35  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    36  		ms.StoreMessageInfo(mi)
    37  	}
    38  }
    39  
    40  func (x *Hunk) String() string {
    41  	return protoimpl.X.MessageStringOf(x)
    42  }
    43  
    44  func (*Hunk) ProtoMessage() {}
    45  
    46  func (x *Hunk) ProtoReflect() protoreflect.Message {
    47  	mi := &file_transport_internet_grpc_encoding_stream_proto_msgTypes[0]
    48  	if protoimpl.UnsafeEnabled && x != nil {
    49  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    50  		if ms.LoadMessageInfo() == nil {
    51  			ms.StoreMessageInfo(mi)
    52  		}
    53  		return ms
    54  	}
    55  	return mi.MessageOf(x)
    56  }
    57  
    58  // Deprecated: Use Hunk.ProtoReflect.Descriptor instead.
    59  func (*Hunk) Descriptor() ([]byte, []int) {
    60  	return file_transport_internet_grpc_encoding_stream_proto_rawDescGZIP(), []int{0}
    61  }
    62  
    63  func (x *Hunk) GetData() []byte {
    64  	if x != nil {
    65  		return x.Data
    66  	}
    67  	return nil
    68  }
    69  
    70  type MultiHunk struct {
    71  	state         protoimpl.MessageState
    72  	sizeCache     protoimpl.SizeCache
    73  	unknownFields protoimpl.UnknownFields
    74  
    75  	Data [][]byte `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"`
    76  }
    77  
    78  func (x *MultiHunk) Reset() {
    79  	*x = MultiHunk{}
    80  	if protoimpl.UnsafeEnabled {
    81  		mi := &file_transport_internet_grpc_encoding_stream_proto_msgTypes[1]
    82  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    83  		ms.StoreMessageInfo(mi)
    84  	}
    85  }
    86  
    87  func (x *MultiHunk) String() string {
    88  	return protoimpl.X.MessageStringOf(x)
    89  }
    90  
    91  func (*MultiHunk) ProtoMessage() {}
    92  
    93  func (x *MultiHunk) ProtoReflect() protoreflect.Message {
    94  	mi := &file_transport_internet_grpc_encoding_stream_proto_msgTypes[1]
    95  	if protoimpl.UnsafeEnabled && x != nil {
    96  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    97  		if ms.LoadMessageInfo() == nil {
    98  			ms.StoreMessageInfo(mi)
    99  		}
   100  		return ms
   101  	}
   102  	return mi.MessageOf(x)
   103  }
   104  
   105  // Deprecated: Use MultiHunk.ProtoReflect.Descriptor instead.
   106  func (*MultiHunk) Descriptor() ([]byte, []int) {
   107  	return file_transport_internet_grpc_encoding_stream_proto_rawDescGZIP(), []int{1}
   108  }
   109  
   110  func (x *MultiHunk) GetData() [][]byte {
   111  	if x != nil {
   112  		return x.Data
   113  	}
   114  	return nil
   115  }
   116  
   117  var File_transport_internet_grpc_encoding_stream_proto protoreflect.FileDescriptor
   118  
   119  var file_transport_internet_grpc_encoding_stream_proto_rawDesc = []byte{
   120  	0x0a, 0x2d, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65,
   121  	0x72, 0x6e, 0x65, 0x74, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69,
   122  	0x6e, 0x67, 0x2f, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
   123  	0x25, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e,
   124  	0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x65, 0x6e,
   125  	0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x22, 0x1a, 0x0a, 0x04, 0x48, 0x75, 0x6e, 0x6b, 0x12, 0x12,
   126  	0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61,
   127  	0x74, 0x61, 0x22, 0x1f, 0x0a, 0x09, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x48, 0x75, 0x6e, 0x6b, 0x12,
   128  	0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x04, 0x64,
   129  	0x61, 0x74, 0x61, 0x32, 0xe6, 0x01, 0x0a, 0x0b, 0x47, 0x52, 0x50, 0x43, 0x53, 0x65, 0x72, 0x76,
   130  	0x69, 0x63, 0x65, 0x12, 0x63, 0x0a, 0x03, 0x54, 0x75, 0x6e, 0x12, 0x2b, 0x2e, 0x78, 0x72, 0x61,
   131  	0x79, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65,
   132  	0x72, 0x6e, 0x65, 0x74, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69,
   133  	0x6e, 0x67, 0x2e, 0x48, 0x75, 0x6e, 0x6b, 0x1a, 0x2b, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x74,
   134  	0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65,
   135  	0x74, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x2e,
   136  	0x48, 0x75, 0x6e, 0x6b, 0x28, 0x01, 0x30, 0x01, 0x12, 0x72, 0x0a, 0x08, 0x54, 0x75, 0x6e, 0x4d,
   137  	0x75, 0x6c, 0x74, 0x69, 0x12, 0x30, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x74, 0x72, 0x61, 0x6e,
   138  	0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x67,
   139  	0x72, 0x70, 0x63, 0x2e, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x2e, 0x4d, 0x75, 0x6c,
   140  	0x74, 0x69, 0x48, 0x75, 0x6e, 0x6b, 0x1a, 0x30, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x74, 0x72,
   141  	0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74,
   142  	0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x2e, 0x4d,
   143  	0x75, 0x6c, 0x74, 0x69, 0x48, 0x75, 0x6e, 0x6b, 0x28, 0x01, 0x30, 0x01, 0x42, 0x3c, 0x5a, 0x3a,
   144  	0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x78, 0x74, 0x6c, 0x73, 0x2f,
   145  	0x78, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70,
   146  	0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2f, 0x67, 0x72, 0x70,
   147  	0x63, 0x2f, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
   148  	0x6f, 0x33,
   149  }
   150  
   151  var (
   152  	file_transport_internet_grpc_encoding_stream_proto_rawDescOnce sync.Once
   153  	file_transport_internet_grpc_encoding_stream_proto_rawDescData = file_transport_internet_grpc_encoding_stream_proto_rawDesc
   154  )
   155  
   156  func file_transport_internet_grpc_encoding_stream_proto_rawDescGZIP() []byte {
   157  	file_transport_internet_grpc_encoding_stream_proto_rawDescOnce.Do(func() {
   158  		file_transport_internet_grpc_encoding_stream_proto_rawDescData = protoimpl.X.CompressGZIP(file_transport_internet_grpc_encoding_stream_proto_rawDescData)
   159  	})
   160  	return file_transport_internet_grpc_encoding_stream_proto_rawDescData
   161  }
   162  
   163  var file_transport_internet_grpc_encoding_stream_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
   164  var file_transport_internet_grpc_encoding_stream_proto_goTypes = []interface{}{
   165  	(*Hunk)(nil),      // 0: xray.transport.internet.grpc.encoding.Hunk
   166  	(*MultiHunk)(nil), // 1: xray.transport.internet.grpc.encoding.MultiHunk
   167  }
   168  var file_transport_internet_grpc_encoding_stream_proto_depIdxs = []int32{
   169  	0, // 0: xray.transport.internet.grpc.encoding.GRPCService.Tun:input_type -> xray.transport.internet.grpc.encoding.Hunk
   170  	1, // 1: xray.transport.internet.grpc.encoding.GRPCService.TunMulti:input_type -> xray.transport.internet.grpc.encoding.MultiHunk
   171  	0, // 2: xray.transport.internet.grpc.encoding.GRPCService.Tun:output_type -> xray.transport.internet.grpc.encoding.Hunk
   172  	1, // 3: xray.transport.internet.grpc.encoding.GRPCService.TunMulti:output_type -> xray.transport.internet.grpc.encoding.MultiHunk
   173  	2, // [2:4] is the sub-list for method output_type
   174  	0, // [0:2] is the sub-list for method input_type
   175  	0, // [0:0] is the sub-list for extension type_name
   176  	0, // [0:0] is the sub-list for extension extendee
   177  	0, // [0:0] is the sub-list for field type_name
   178  }
   179  
   180  func init() { file_transport_internet_grpc_encoding_stream_proto_init() }
   181  func file_transport_internet_grpc_encoding_stream_proto_init() {
   182  	if File_transport_internet_grpc_encoding_stream_proto != nil {
   183  		return
   184  	}
   185  	if !protoimpl.UnsafeEnabled {
   186  		file_transport_internet_grpc_encoding_stream_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   187  			switch v := v.(*Hunk); i {
   188  			case 0:
   189  				return &v.state
   190  			case 1:
   191  				return &v.sizeCache
   192  			case 2:
   193  				return &v.unknownFields
   194  			default:
   195  				return nil
   196  			}
   197  		}
   198  		file_transport_internet_grpc_encoding_stream_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   199  			switch v := v.(*MultiHunk); i {
   200  			case 0:
   201  				return &v.state
   202  			case 1:
   203  				return &v.sizeCache
   204  			case 2:
   205  				return &v.unknownFields
   206  			default:
   207  				return nil
   208  			}
   209  		}
   210  	}
   211  	type x struct{}
   212  	out := protoimpl.TypeBuilder{
   213  		File: protoimpl.DescBuilder{
   214  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   215  			RawDescriptor: file_transport_internet_grpc_encoding_stream_proto_rawDesc,
   216  			NumEnums:      0,
   217  			NumMessages:   2,
   218  			NumExtensions: 0,
   219  			NumServices:   1,
   220  		},
   221  		GoTypes:           file_transport_internet_grpc_encoding_stream_proto_goTypes,
   222  		DependencyIndexes: file_transport_internet_grpc_encoding_stream_proto_depIdxs,
   223  		MessageInfos:      file_transport_internet_grpc_encoding_stream_proto_msgTypes,
   224  	}.Build()
   225  	File_transport_internet_grpc_encoding_stream_proto = out.File
   226  	file_transport_internet_grpc_encoding_stream_proto_rawDesc = nil
   227  	file_transport_internet_grpc_encoding_stream_proto_goTypes = nil
   228  	file_transport_internet_grpc_encoding_stream_proto_depIdxs = nil
   229  }