github.com/livekit/protocol@v1.16.1-0.20240517185851-47e4c6bba773/rpc/agent.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/agent.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  	emptypb "google.golang.org/protobuf/types/known/emptypb"
    29  	reflect "reflect"
    30  	sync "sync"
    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 CheckEnabledRequest struct {
    41  	state         protoimpl.MessageState
    42  	sizeCache     protoimpl.SizeCache
    43  	unknownFields protoimpl.UnknownFields
    44  }
    45  
    46  func (x *CheckEnabledRequest) Reset() {
    47  	*x = CheckEnabledRequest{}
    48  	if protoimpl.UnsafeEnabled {
    49  		mi := &file_rpc_agent_proto_msgTypes[0]
    50  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    51  		ms.StoreMessageInfo(mi)
    52  	}
    53  }
    54  
    55  func (x *CheckEnabledRequest) String() string {
    56  	return protoimpl.X.MessageStringOf(x)
    57  }
    58  
    59  func (*CheckEnabledRequest) ProtoMessage() {}
    60  
    61  func (x *CheckEnabledRequest) ProtoReflect() protoreflect.Message {
    62  	mi := &file_rpc_agent_proto_msgTypes[0]
    63  	if protoimpl.UnsafeEnabled && x != nil {
    64  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    65  		if ms.LoadMessageInfo() == nil {
    66  			ms.StoreMessageInfo(mi)
    67  		}
    68  		return ms
    69  	}
    70  	return mi.MessageOf(x)
    71  }
    72  
    73  // Deprecated: Use CheckEnabledRequest.ProtoReflect.Descriptor instead.
    74  func (*CheckEnabledRequest) Descriptor() ([]byte, []int) {
    75  	return file_rpc_agent_proto_rawDescGZIP(), []int{0}
    76  }
    77  
    78  type CheckEnabledResponse struct {
    79  	state         protoimpl.MessageState
    80  	sizeCache     protoimpl.SizeCache
    81  	unknownFields protoimpl.UnknownFields
    82  
    83  	RoomEnabled      bool     `protobuf:"varint,1,opt,name=room_enabled,json=roomEnabled,proto3" json:"room_enabled,omitempty"`
    84  	PublisherEnabled bool     `protobuf:"varint,2,opt,name=publisher_enabled,json=publisherEnabled,proto3" json:"publisher_enabled,omitempty"`
    85  	Namespaces       []string `protobuf:"bytes,3,rep,name=namespaces,proto3" json:"namespaces,omitempty"`
    86  }
    87  
    88  func (x *CheckEnabledResponse) Reset() {
    89  	*x = CheckEnabledResponse{}
    90  	if protoimpl.UnsafeEnabled {
    91  		mi := &file_rpc_agent_proto_msgTypes[1]
    92  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    93  		ms.StoreMessageInfo(mi)
    94  	}
    95  }
    96  
    97  func (x *CheckEnabledResponse) String() string {
    98  	return protoimpl.X.MessageStringOf(x)
    99  }
   100  
   101  func (*CheckEnabledResponse) ProtoMessage() {}
   102  
   103  func (x *CheckEnabledResponse) ProtoReflect() protoreflect.Message {
   104  	mi := &file_rpc_agent_proto_msgTypes[1]
   105  	if protoimpl.UnsafeEnabled && x != nil {
   106  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   107  		if ms.LoadMessageInfo() == nil {
   108  			ms.StoreMessageInfo(mi)
   109  		}
   110  		return ms
   111  	}
   112  	return mi.MessageOf(x)
   113  }
   114  
   115  // Deprecated: Use CheckEnabledResponse.ProtoReflect.Descriptor instead.
   116  func (*CheckEnabledResponse) Descriptor() ([]byte, []int) {
   117  	return file_rpc_agent_proto_rawDescGZIP(), []int{1}
   118  }
   119  
   120  func (x *CheckEnabledResponse) GetRoomEnabled() bool {
   121  	if x != nil {
   122  		return x.RoomEnabled
   123  	}
   124  	return false
   125  }
   126  
   127  func (x *CheckEnabledResponse) GetPublisherEnabled() bool {
   128  	if x != nil {
   129  		return x.PublisherEnabled
   130  	}
   131  	return false
   132  }
   133  
   134  func (x *CheckEnabledResponse) GetNamespaces() []string {
   135  	if x != nil {
   136  		return x.Namespaces
   137  	}
   138  	return nil
   139  }
   140  
   141  var File_rpc_agent_proto protoreflect.FileDescriptor
   142  
   143  var file_rpc_agent_proto_rawDesc = []byte{
   144  	0x0a, 0x0f, 0x72, 0x70, 0x63, 0x2f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74,
   145  	0x6f, 0x12, 0x03, 0x72, 0x70, 0x63, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70,
   146  	0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72,
   147  	0x6f, 0x74, 0x6f, 0x1a, 0x0d, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f,
   148  	0x74, 0x6f, 0x1a, 0x13, 0x6c, 0x69, 0x76, 0x65, 0x6b, 0x69, 0x74, 0x5f, 0x61, 0x67, 0x65, 0x6e,
   149  	0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x15, 0x0a, 0x13, 0x43, 0x68, 0x65, 0x63, 0x6b,
   150  	0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x86,
   151  	0x01, 0x0a, 0x14, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52,
   152  	0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x72, 0x6f, 0x6f, 0x6d, 0x5f,
   153  	0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x72,
   154  	0x6f, 0x6f, 0x6d, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x2b, 0x0a, 0x11, 0x70, 0x75,
   155  	0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x5f, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18,
   156  	0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x10, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72,
   157  	0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x6e, 0x61, 0x6d, 0x65, 0x73,
   158  	0x70, 0x61, 0x63, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x6e, 0x61, 0x6d,
   159  	0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, 0x32, 0x96, 0x02, 0x0a, 0x0d, 0x41, 0x67, 0x65, 0x6e,
   160  	0x74, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x12, 0x4b, 0x0a, 0x0c, 0x43, 0x68, 0x65,
   161  	0x63, 0x6b, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x18, 0x2e, 0x72, 0x70, 0x63, 0x2e,
   162  	0x43, 0x68, 0x65, 0x63, 0x6b, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75,
   163  	0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x45,
   164  	0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06,
   165  	0xb2, 0x89, 0x01, 0x02, 0x28, 0x01, 0x12, 0x53, 0x0a, 0x0a, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71,
   166  	0x75, 0x65, 0x73, 0x74, 0x12, 0x0c, 0x2e, 0x6c, 0x69, 0x76, 0x65, 0x6b, 0x69, 0x74, 0x2e, 0x4a,
   167  	0x6f, 0x62, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
   168  	0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x1f, 0xb2, 0x89, 0x01, 0x1b,
   169  	0x10, 0x01, 0x1a, 0x15, 0x12, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12,
   170  	0x08, 0x6a, 0x6f, 0x62, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x30, 0x01, 0x12, 0x63, 0x0a, 0x10, 0x57,
   171  	0x6f, 0x72, 0x6b, 0x65, 0x72, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x65, 0x64, 0x12,
   172  	0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
   173  	0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
   174  	0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22,
   175  	0x1f, 0xb2, 0x89, 0x01, 0x1b, 0x08, 0x01, 0x10, 0x01, 0x1a, 0x13, 0x12, 0x11, 0x68, 0x61, 0x6e,
   176  	0x64, 0x6c, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x28, 0x01,
   177  	0x42, 0x21, 0x5a, 0x1f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6c,
   178  	0x69, 0x76, 0x65, 0x6b, 0x69, 0x74, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f,
   179  	0x72, 0x70, 0x63, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   180  }
   181  
   182  var (
   183  	file_rpc_agent_proto_rawDescOnce sync.Once
   184  	file_rpc_agent_proto_rawDescData = file_rpc_agent_proto_rawDesc
   185  )
   186  
   187  func file_rpc_agent_proto_rawDescGZIP() []byte {
   188  	file_rpc_agent_proto_rawDescOnce.Do(func() {
   189  		file_rpc_agent_proto_rawDescData = protoimpl.X.CompressGZIP(file_rpc_agent_proto_rawDescData)
   190  	})
   191  	return file_rpc_agent_proto_rawDescData
   192  }
   193  
   194  var file_rpc_agent_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
   195  var file_rpc_agent_proto_goTypes = []interface{}{
   196  	(*CheckEnabledRequest)(nil),  // 0: rpc.CheckEnabledRequest
   197  	(*CheckEnabledResponse)(nil), // 1: rpc.CheckEnabledResponse
   198  	(*livekit.Job)(nil),          // 2: livekit.Job
   199  	(*emptypb.Empty)(nil),        // 3: google.protobuf.Empty
   200  }
   201  var file_rpc_agent_proto_depIdxs = []int32{
   202  	0, // 0: rpc.AgentInternal.CheckEnabled:input_type -> rpc.CheckEnabledRequest
   203  	2, // 1: rpc.AgentInternal.JobRequest:input_type -> livekit.Job
   204  	3, // 2: rpc.AgentInternal.WorkerRegistered:input_type -> google.protobuf.Empty
   205  	1, // 3: rpc.AgentInternal.CheckEnabled:output_type -> rpc.CheckEnabledResponse
   206  	3, // 4: rpc.AgentInternal.JobRequest:output_type -> google.protobuf.Empty
   207  	3, // 5: rpc.AgentInternal.WorkerRegistered:output_type -> google.protobuf.Empty
   208  	3, // [3:6] is the sub-list for method output_type
   209  	0, // [0:3] is the sub-list for method input_type
   210  	0, // [0:0] is the sub-list for extension type_name
   211  	0, // [0:0] is the sub-list for extension extendee
   212  	0, // [0:0] is the sub-list for field type_name
   213  }
   214  
   215  func init() { file_rpc_agent_proto_init() }
   216  func file_rpc_agent_proto_init() {
   217  	if File_rpc_agent_proto != nil {
   218  		return
   219  	}
   220  	if !protoimpl.UnsafeEnabled {
   221  		file_rpc_agent_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   222  			switch v := v.(*CheckEnabledRequest); i {
   223  			case 0:
   224  				return &v.state
   225  			case 1:
   226  				return &v.sizeCache
   227  			case 2:
   228  				return &v.unknownFields
   229  			default:
   230  				return nil
   231  			}
   232  		}
   233  		file_rpc_agent_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   234  			switch v := v.(*CheckEnabledResponse); i {
   235  			case 0:
   236  				return &v.state
   237  			case 1:
   238  				return &v.sizeCache
   239  			case 2:
   240  				return &v.unknownFields
   241  			default:
   242  				return nil
   243  			}
   244  		}
   245  	}
   246  	type x struct{}
   247  	out := protoimpl.TypeBuilder{
   248  		File: protoimpl.DescBuilder{
   249  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   250  			RawDescriptor: file_rpc_agent_proto_rawDesc,
   251  			NumEnums:      0,
   252  			NumMessages:   2,
   253  			NumExtensions: 0,
   254  			NumServices:   1,
   255  		},
   256  		GoTypes:           file_rpc_agent_proto_goTypes,
   257  		DependencyIndexes: file_rpc_agent_proto_depIdxs,
   258  		MessageInfos:      file_rpc_agent_proto_msgTypes,
   259  	}.Build()
   260  	File_rpc_agent_proto = out.File
   261  	file_rpc_agent_proto_rawDesc = nil
   262  	file_rpc_agent_proto_goTypes = nil
   263  	file_rpc_agent_proto_depIdxs = nil
   264  }