github.com/livekit/protocol@v1.16.1-0.20240517185851-47e4c6bba773/rpc/signal.pb.go (about)

     1  // Copyright 2023 LiveKit, Inc.
     2  //
     3  // Licensed under the Apache License, Version 2.0 (the "License");
     4  // you may not use this file except in compliance with the License.
     5  // You may obtain a copy of the License at
     6  //
     7  //     http://www.apache.org/licenses/LICENSE-2.0
     8  //
     9  // Unless required by applicable law or agreed to in writing, software
    10  // distributed under the License is distributed on an "AS IS" BASIS,
    11  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  // See the License for the specific language governing permissions and
    13  // limitations under the License.
    14  
    15  // Code generated by protoc-gen-go. DO NOT EDIT.
    16  // versions:
    17  // 	protoc-gen-go v1.34.1
    18  // 	protoc        v4.23.4
    19  // source: rpc/signal.proto
    20  
    21  package rpc
    22  
    23  import (
    24  	livekit "github.com/livekit/protocol/livekit"
    25  	_ "github.com/livekit/psrpc/protoc-gen-psrpc/options"
    26  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    27  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    28  	reflect "reflect"
    29  	sync "sync"
    30  )
    31  
    32  const (
    33  	// Verify that this generated code is sufficiently up-to-date.
    34  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    35  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    36  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    37  )
    38  
    39  type RelaySignalRequest struct {
    40  	state         protoimpl.MessageState
    41  	sizeCache     protoimpl.SizeCache
    42  	unknownFields protoimpl.UnknownFields
    43  
    44  	StartSession *livekit.StartSession    `protobuf:"bytes,1,opt,name=start_session,json=startSession,proto3" json:"start_session,omitempty"`
    45  	Requests     []*livekit.SignalRequest `protobuf:"bytes,3,rep,name=requests,proto3" json:"requests,omitempty"`
    46  	Seq          uint64                   `protobuf:"varint,4,opt,name=seq,proto3" json:"seq,omitempty"`
    47  	Close        bool                     `protobuf:"varint,5,opt,name=close,proto3" json:"close,omitempty"`
    48  }
    49  
    50  func (x *RelaySignalRequest) Reset() {
    51  	*x = RelaySignalRequest{}
    52  	if protoimpl.UnsafeEnabled {
    53  		mi := &file_rpc_signal_proto_msgTypes[0]
    54  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    55  		ms.StoreMessageInfo(mi)
    56  	}
    57  }
    58  
    59  func (x *RelaySignalRequest) String() string {
    60  	return protoimpl.X.MessageStringOf(x)
    61  }
    62  
    63  func (*RelaySignalRequest) ProtoMessage() {}
    64  
    65  func (x *RelaySignalRequest) ProtoReflect() protoreflect.Message {
    66  	mi := &file_rpc_signal_proto_msgTypes[0]
    67  	if protoimpl.UnsafeEnabled && x != nil {
    68  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    69  		if ms.LoadMessageInfo() == nil {
    70  			ms.StoreMessageInfo(mi)
    71  		}
    72  		return ms
    73  	}
    74  	return mi.MessageOf(x)
    75  }
    76  
    77  // Deprecated: Use RelaySignalRequest.ProtoReflect.Descriptor instead.
    78  func (*RelaySignalRequest) Descriptor() ([]byte, []int) {
    79  	return file_rpc_signal_proto_rawDescGZIP(), []int{0}
    80  }
    81  
    82  func (x *RelaySignalRequest) GetStartSession() *livekit.StartSession {
    83  	if x != nil {
    84  		return x.StartSession
    85  	}
    86  	return nil
    87  }
    88  
    89  func (x *RelaySignalRequest) GetRequests() []*livekit.SignalRequest {
    90  	if x != nil {
    91  		return x.Requests
    92  	}
    93  	return nil
    94  }
    95  
    96  func (x *RelaySignalRequest) GetSeq() uint64 {
    97  	if x != nil {
    98  		return x.Seq
    99  	}
   100  	return 0
   101  }
   102  
   103  func (x *RelaySignalRequest) GetClose() bool {
   104  	if x != nil {
   105  		return x.Close
   106  	}
   107  	return false
   108  }
   109  
   110  type RelaySignalResponse struct {
   111  	state         protoimpl.MessageState
   112  	sizeCache     protoimpl.SizeCache
   113  	unknownFields protoimpl.UnknownFields
   114  
   115  	Responses []*livekit.SignalResponse `protobuf:"bytes,2,rep,name=responses,proto3" json:"responses,omitempty"`
   116  	Seq       uint64                    `protobuf:"varint,3,opt,name=seq,proto3" json:"seq,omitempty"`
   117  	Close     bool                      `protobuf:"varint,4,opt,name=close,proto3" json:"close,omitempty"`
   118  }
   119  
   120  func (x *RelaySignalResponse) Reset() {
   121  	*x = RelaySignalResponse{}
   122  	if protoimpl.UnsafeEnabled {
   123  		mi := &file_rpc_signal_proto_msgTypes[1]
   124  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   125  		ms.StoreMessageInfo(mi)
   126  	}
   127  }
   128  
   129  func (x *RelaySignalResponse) String() string {
   130  	return protoimpl.X.MessageStringOf(x)
   131  }
   132  
   133  func (*RelaySignalResponse) ProtoMessage() {}
   134  
   135  func (x *RelaySignalResponse) ProtoReflect() protoreflect.Message {
   136  	mi := &file_rpc_signal_proto_msgTypes[1]
   137  	if protoimpl.UnsafeEnabled && x != nil {
   138  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   139  		if ms.LoadMessageInfo() == nil {
   140  			ms.StoreMessageInfo(mi)
   141  		}
   142  		return ms
   143  	}
   144  	return mi.MessageOf(x)
   145  }
   146  
   147  // Deprecated: Use RelaySignalResponse.ProtoReflect.Descriptor instead.
   148  func (*RelaySignalResponse) Descriptor() ([]byte, []int) {
   149  	return file_rpc_signal_proto_rawDescGZIP(), []int{1}
   150  }
   151  
   152  func (x *RelaySignalResponse) GetResponses() []*livekit.SignalResponse {
   153  	if x != nil {
   154  		return x.Responses
   155  	}
   156  	return nil
   157  }
   158  
   159  func (x *RelaySignalResponse) GetSeq() uint64 {
   160  	if x != nil {
   161  		return x.Seq
   162  	}
   163  	return 0
   164  }
   165  
   166  func (x *RelaySignalResponse) GetClose() bool {
   167  	if x != nil {
   168  		return x.Close
   169  	}
   170  	return false
   171  }
   172  
   173  var File_rpc_signal_proto protoreflect.FileDescriptor
   174  
   175  var file_rpc_signal_proto_rawDesc = []byte{
   176  	0x0a, 0x10, 0x72, 0x70, 0x63, 0x2f, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x2e, 0x70, 0x72, 0x6f,
   177  	0x74, 0x6f, 0x12, 0x03, 0x72, 0x70, 0x63, 0x1a, 0x0d, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73,
   178  	0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x16, 0x6c, 0x69, 0x76, 0x65, 0x6b, 0x69, 0x74, 0x5f,
   179  	0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x11,
   180  	0x6c, 0x69, 0x76, 0x65, 0x6b, 0x69, 0x74, 0x5f, 0x72, 0x74, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74,
   181  	0x6f, 0x22, 0xac, 0x01, 0x0a, 0x12, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x53, 0x69, 0x67, 0x6e, 0x61,
   182  	0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3a, 0x0a, 0x0d, 0x73, 0x74, 0x61, 0x72,
   183  	0x74, 0x5f, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
   184  	0x15, 0x2e, 0x6c, 0x69, 0x76, 0x65, 0x6b, 0x69, 0x74, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x53,
   185  	0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x0c, 0x73, 0x74, 0x61, 0x72, 0x74, 0x53, 0x65, 0x73,
   186  	0x73, 0x69, 0x6f, 0x6e, 0x12, 0x32, 0x0a, 0x08, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73,
   187  	0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x6c, 0x69, 0x76, 0x65, 0x6b, 0x69, 0x74,
   188  	0x2e, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x08,
   189  	0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x65, 0x71, 0x18,
   190  	0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x73, 0x65, 0x71, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6c,
   191  	0x6f, 0x73, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x63, 0x6c, 0x6f, 0x73, 0x65,
   192  	0x22, 0x74, 0x0a, 0x13, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x52,
   193  	0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x35, 0x0a, 0x09, 0x72, 0x65, 0x73, 0x70, 0x6f,
   194  	0x6e, 0x73, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x6c, 0x69, 0x76,
   195  	0x65, 0x6b, 0x69, 0x74, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f,
   196  	0x6e, 0x73, 0x65, 0x52, 0x09, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x12, 0x10,
   197  	0x0a, 0x03, 0x73, 0x65, 0x71, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x73, 0x65, 0x71,
   198  	0x12, 0x14, 0x0a, 0x05, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52,
   199  	0x05, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x32, 0x63, 0x0a, 0x06, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c,
   200  	0x12, 0x59, 0x0a, 0x0b, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x12,
   201  	0x17, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x53, 0x69, 0x67, 0x6e, 0x61,
   202  	0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x52,
   203  	0x65, 0x6c, 0x61, 0x79, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
   204  	0x73, 0x65, 0x22, 0x17, 0xb2, 0x89, 0x01, 0x13, 0x10, 0x01, 0x1a, 0x0d, 0x12, 0x07, 0x6e, 0x6f,
   205  	0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x20, 0x01, 0x42, 0x21, 0x5a, 0x1f, 0x67,
   206  	0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6c, 0x69, 0x76, 0x65, 0x6b, 0x69,
   207  	0x74, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x72, 0x70, 0x63, 0x62, 0x06,
   208  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   209  }
   210  
   211  var (
   212  	file_rpc_signal_proto_rawDescOnce sync.Once
   213  	file_rpc_signal_proto_rawDescData = file_rpc_signal_proto_rawDesc
   214  )
   215  
   216  func file_rpc_signal_proto_rawDescGZIP() []byte {
   217  	file_rpc_signal_proto_rawDescOnce.Do(func() {
   218  		file_rpc_signal_proto_rawDescData = protoimpl.X.CompressGZIP(file_rpc_signal_proto_rawDescData)
   219  	})
   220  	return file_rpc_signal_proto_rawDescData
   221  }
   222  
   223  var file_rpc_signal_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
   224  var file_rpc_signal_proto_goTypes = []interface{}{
   225  	(*RelaySignalRequest)(nil),     // 0: rpc.RelaySignalRequest
   226  	(*RelaySignalResponse)(nil),    // 1: rpc.RelaySignalResponse
   227  	(*livekit.StartSession)(nil),   // 2: livekit.StartSession
   228  	(*livekit.SignalRequest)(nil),  // 3: livekit.SignalRequest
   229  	(*livekit.SignalResponse)(nil), // 4: livekit.SignalResponse
   230  }
   231  var file_rpc_signal_proto_depIdxs = []int32{
   232  	2, // 0: rpc.RelaySignalRequest.start_session:type_name -> livekit.StartSession
   233  	3, // 1: rpc.RelaySignalRequest.requests:type_name -> livekit.SignalRequest
   234  	4, // 2: rpc.RelaySignalResponse.responses:type_name -> livekit.SignalResponse
   235  	0, // 3: rpc.Signal.RelaySignal:input_type -> rpc.RelaySignalRequest
   236  	1, // 4: rpc.Signal.RelaySignal:output_type -> rpc.RelaySignalResponse
   237  	4, // [4:5] is the sub-list for method output_type
   238  	3, // [3:4] is the sub-list for method input_type
   239  	3, // [3:3] is the sub-list for extension type_name
   240  	3, // [3:3] is the sub-list for extension extendee
   241  	0, // [0:3] is the sub-list for field type_name
   242  }
   243  
   244  func init() { file_rpc_signal_proto_init() }
   245  func file_rpc_signal_proto_init() {
   246  	if File_rpc_signal_proto != nil {
   247  		return
   248  	}
   249  	if !protoimpl.UnsafeEnabled {
   250  		file_rpc_signal_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   251  			switch v := v.(*RelaySignalRequest); i {
   252  			case 0:
   253  				return &v.state
   254  			case 1:
   255  				return &v.sizeCache
   256  			case 2:
   257  				return &v.unknownFields
   258  			default:
   259  				return nil
   260  			}
   261  		}
   262  		file_rpc_signal_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   263  			switch v := v.(*RelaySignalResponse); i {
   264  			case 0:
   265  				return &v.state
   266  			case 1:
   267  				return &v.sizeCache
   268  			case 2:
   269  				return &v.unknownFields
   270  			default:
   271  				return nil
   272  			}
   273  		}
   274  	}
   275  	type x struct{}
   276  	out := protoimpl.TypeBuilder{
   277  		File: protoimpl.DescBuilder{
   278  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   279  			RawDescriptor: file_rpc_signal_proto_rawDesc,
   280  			NumEnums:      0,
   281  			NumMessages:   2,
   282  			NumExtensions: 0,
   283  			NumServices:   1,
   284  		},
   285  		GoTypes:           file_rpc_signal_proto_goTypes,
   286  		DependencyIndexes: file_rpc_signal_proto_depIdxs,
   287  		MessageInfos:      file_rpc_signal_proto_msgTypes,
   288  	}.Build()
   289  	File_rpc_signal_proto = out.File
   290  	file_rpc_signal_proto_rawDesc = nil
   291  	file_rpc_signal_proto_goTypes = nil
   292  	file_rpc_signal_proto_depIdxs = nil
   293  }