github.com/livekit/protocol@v1.39.3/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.36.6
    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  	unsafe "unsafe"
    31  )
    32  
    33  const (
    34  	// Verify that this generated code is sufficiently up-to-date.
    35  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    36  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    37  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    38  )
    39  
    40  type RelaySignalRequest struct {
    41  	state         protoimpl.MessageState   `protogen:"open.v1"`
    42  	StartSession  *livekit.StartSession    `protobuf:"bytes,1,opt,name=start_session,json=startSession,proto3" json:"start_session,omitempty"`
    43  	Requests      []*livekit.SignalRequest `protobuf:"bytes,3,rep,name=requests,proto3" json:"requests,omitempty"`
    44  	Seq           uint64                   `protobuf:"varint,4,opt,name=seq,proto3" json:"seq,omitempty"`
    45  	Close         bool                     `protobuf:"varint,5,opt,name=close,proto3" json:"close,omitempty"`
    46  	unknownFields protoimpl.UnknownFields
    47  	sizeCache     protoimpl.SizeCache
    48  }
    49  
    50  func (x *RelaySignalRequest) Reset() {
    51  	*x = RelaySignalRequest{}
    52  	mi := &file_rpc_signal_proto_msgTypes[0]
    53  	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    54  	ms.StoreMessageInfo(mi)
    55  }
    56  
    57  func (x *RelaySignalRequest) String() string {
    58  	return protoimpl.X.MessageStringOf(x)
    59  }
    60  
    61  func (*RelaySignalRequest) ProtoMessage() {}
    62  
    63  func (x *RelaySignalRequest) ProtoReflect() protoreflect.Message {
    64  	mi := &file_rpc_signal_proto_msgTypes[0]
    65  	if x != nil {
    66  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    67  		if ms.LoadMessageInfo() == nil {
    68  			ms.StoreMessageInfo(mi)
    69  		}
    70  		return ms
    71  	}
    72  	return mi.MessageOf(x)
    73  }
    74  
    75  // Deprecated: Use RelaySignalRequest.ProtoReflect.Descriptor instead.
    76  func (*RelaySignalRequest) Descriptor() ([]byte, []int) {
    77  	return file_rpc_signal_proto_rawDescGZIP(), []int{0}
    78  }
    79  
    80  func (x *RelaySignalRequest) GetStartSession() *livekit.StartSession {
    81  	if x != nil {
    82  		return x.StartSession
    83  	}
    84  	return nil
    85  }
    86  
    87  func (x *RelaySignalRequest) GetRequests() []*livekit.SignalRequest {
    88  	if x != nil {
    89  		return x.Requests
    90  	}
    91  	return nil
    92  }
    93  
    94  func (x *RelaySignalRequest) GetSeq() uint64 {
    95  	if x != nil {
    96  		return x.Seq
    97  	}
    98  	return 0
    99  }
   100  
   101  func (x *RelaySignalRequest) GetClose() bool {
   102  	if x != nil {
   103  		return x.Close
   104  	}
   105  	return false
   106  }
   107  
   108  type RelaySignalResponse struct {
   109  	state         protoimpl.MessageState    `protogen:"open.v1"`
   110  	Responses     []*livekit.SignalResponse `protobuf:"bytes,2,rep,name=responses,proto3" json:"responses,omitempty"`
   111  	Seq           uint64                    `protobuf:"varint,3,opt,name=seq,proto3" json:"seq,omitempty"`
   112  	Close         bool                      `protobuf:"varint,4,opt,name=close,proto3" json:"close,omitempty"`
   113  	unknownFields protoimpl.UnknownFields
   114  	sizeCache     protoimpl.SizeCache
   115  }
   116  
   117  func (x *RelaySignalResponse) Reset() {
   118  	*x = RelaySignalResponse{}
   119  	mi := &file_rpc_signal_proto_msgTypes[1]
   120  	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   121  	ms.StoreMessageInfo(mi)
   122  }
   123  
   124  func (x *RelaySignalResponse) String() string {
   125  	return protoimpl.X.MessageStringOf(x)
   126  }
   127  
   128  func (*RelaySignalResponse) ProtoMessage() {}
   129  
   130  func (x *RelaySignalResponse) ProtoReflect() protoreflect.Message {
   131  	mi := &file_rpc_signal_proto_msgTypes[1]
   132  	if x != nil {
   133  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   134  		if ms.LoadMessageInfo() == nil {
   135  			ms.StoreMessageInfo(mi)
   136  		}
   137  		return ms
   138  	}
   139  	return mi.MessageOf(x)
   140  }
   141  
   142  // Deprecated: Use RelaySignalResponse.ProtoReflect.Descriptor instead.
   143  func (*RelaySignalResponse) Descriptor() ([]byte, []int) {
   144  	return file_rpc_signal_proto_rawDescGZIP(), []int{1}
   145  }
   146  
   147  func (x *RelaySignalResponse) GetResponses() []*livekit.SignalResponse {
   148  	if x != nil {
   149  		return x.Responses
   150  	}
   151  	return nil
   152  }
   153  
   154  func (x *RelaySignalResponse) GetSeq() uint64 {
   155  	if x != nil {
   156  		return x.Seq
   157  	}
   158  	return 0
   159  }
   160  
   161  func (x *RelaySignalResponse) GetClose() bool {
   162  	if x != nil {
   163  		return x.Close
   164  	}
   165  	return false
   166  }
   167  
   168  var File_rpc_signal_proto protoreflect.FileDescriptor
   169  
   170  const file_rpc_signal_proto_rawDesc = "" +
   171  	"\n" +
   172  	"\x10rpc/signal.proto\x12\x03rpc\x1a\roptions.proto\x1a\x16livekit_internal.proto\x1a\x11livekit_rtc.proto\"\xac\x01\n" +
   173  	"\x12RelaySignalRequest\x12:\n" +
   174  	"\rstart_session\x18\x01 \x01(\v2\x15.livekit.StartSessionR\fstartSession\x122\n" +
   175  	"\brequests\x18\x03 \x03(\v2\x16.livekit.SignalRequestR\brequests\x12\x10\n" +
   176  	"\x03seq\x18\x04 \x01(\x04R\x03seq\x12\x14\n" +
   177  	"\x05close\x18\x05 \x01(\bR\x05close\"t\n" +
   178  	"\x13RelaySignalResponse\x125\n" +
   179  	"\tresponses\x18\x02 \x03(\v2\x17.livekit.SignalResponseR\tresponses\x12\x10\n" +
   180  	"\x03seq\x18\x03 \x01(\x04R\x03seq\x12\x14\n" +
   181  	"\x05close\x18\x04 \x01(\bR\x05close2i\n" +
   182  	"\x06Signal\x12_\n" +
   183  	"\vRelaySignal\x12\x17.rpc.RelaySignalRequest\x1a\x18.rpc.RelaySignalResponse\"\x1d\xb2\x89\x01\x19\x10\x01\x1a\x13\n" +
   184  	"\x04node\x12\anode_id\x18\x01 \x01 \x01B!Z\x1fgithub.com/livekit/protocol/rpcb\x06proto3"
   185  
   186  var (
   187  	file_rpc_signal_proto_rawDescOnce sync.Once
   188  	file_rpc_signal_proto_rawDescData []byte
   189  )
   190  
   191  func file_rpc_signal_proto_rawDescGZIP() []byte {
   192  	file_rpc_signal_proto_rawDescOnce.Do(func() {
   193  		file_rpc_signal_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_rpc_signal_proto_rawDesc), len(file_rpc_signal_proto_rawDesc)))
   194  	})
   195  	return file_rpc_signal_proto_rawDescData
   196  }
   197  
   198  var file_rpc_signal_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
   199  var file_rpc_signal_proto_goTypes = []any{
   200  	(*RelaySignalRequest)(nil),     // 0: rpc.RelaySignalRequest
   201  	(*RelaySignalResponse)(nil),    // 1: rpc.RelaySignalResponse
   202  	(*livekit.StartSession)(nil),   // 2: livekit.StartSession
   203  	(*livekit.SignalRequest)(nil),  // 3: livekit.SignalRequest
   204  	(*livekit.SignalResponse)(nil), // 4: livekit.SignalResponse
   205  }
   206  var file_rpc_signal_proto_depIdxs = []int32{
   207  	2, // 0: rpc.RelaySignalRequest.start_session:type_name -> livekit.StartSession
   208  	3, // 1: rpc.RelaySignalRequest.requests:type_name -> livekit.SignalRequest
   209  	4, // 2: rpc.RelaySignalResponse.responses:type_name -> livekit.SignalResponse
   210  	0, // 3: rpc.Signal.RelaySignal:input_type -> rpc.RelaySignalRequest
   211  	1, // 4: rpc.Signal.RelaySignal:output_type -> rpc.RelaySignalResponse
   212  	4, // [4:5] is the sub-list for method output_type
   213  	3, // [3:4] is the sub-list for method input_type
   214  	3, // [3:3] is the sub-list for extension type_name
   215  	3, // [3:3] is the sub-list for extension extendee
   216  	0, // [0:3] is the sub-list for field type_name
   217  }
   218  
   219  func init() { file_rpc_signal_proto_init() }
   220  func file_rpc_signal_proto_init() {
   221  	if File_rpc_signal_proto != nil {
   222  		return
   223  	}
   224  	type x struct{}
   225  	out := protoimpl.TypeBuilder{
   226  		File: protoimpl.DescBuilder{
   227  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   228  			RawDescriptor: unsafe.Slice(unsafe.StringData(file_rpc_signal_proto_rawDesc), len(file_rpc_signal_proto_rawDesc)),
   229  			NumEnums:      0,
   230  			NumMessages:   2,
   231  			NumExtensions: 0,
   232  			NumServices:   1,
   233  		},
   234  		GoTypes:           file_rpc_signal_proto_goTypes,
   235  		DependencyIndexes: file_rpc_signal_proto_depIdxs,
   236  		MessageInfos:      file_rpc_signal_proto_msgTypes,
   237  	}.Build()
   238  	File_rpc_signal_proto = out.File
   239  	file_rpc_signal_proto_goTypes = nil
   240  	file_rpc_signal_proto_depIdxs = nil
   241  }