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