github.com/livekit/protocol@v1.39.3/rpc/keepalive.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/keepalive.proto
    20  
    21  package rpc
    22  
    23  import (
    24  	_ "github.com/livekit/psrpc/protoc-gen-psrpc/options"
    25  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    26  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    27  	reflect "reflect"
    28  	sync "sync"
    29  	unsafe "unsafe"
    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 KeepalivePing struct {
    40  	state         protoimpl.MessageState `protogen:"open.v1"`
    41  	Timestamp     int64                  `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
    42  	unknownFields protoimpl.UnknownFields
    43  	sizeCache     protoimpl.SizeCache
    44  }
    45  
    46  func (x *KeepalivePing) Reset() {
    47  	*x = KeepalivePing{}
    48  	mi := &file_rpc_keepalive_proto_msgTypes[0]
    49  	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    50  	ms.StoreMessageInfo(mi)
    51  }
    52  
    53  func (x *KeepalivePing) String() string {
    54  	return protoimpl.X.MessageStringOf(x)
    55  }
    56  
    57  func (*KeepalivePing) ProtoMessage() {}
    58  
    59  func (x *KeepalivePing) ProtoReflect() protoreflect.Message {
    60  	mi := &file_rpc_keepalive_proto_msgTypes[0]
    61  	if x != nil {
    62  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    63  		if ms.LoadMessageInfo() == nil {
    64  			ms.StoreMessageInfo(mi)
    65  		}
    66  		return ms
    67  	}
    68  	return mi.MessageOf(x)
    69  }
    70  
    71  // Deprecated: Use KeepalivePing.ProtoReflect.Descriptor instead.
    72  func (*KeepalivePing) Descriptor() ([]byte, []int) {
    73  	return file_rpc_keepalive_proto_rawDescGZIP(), []int{0}
    74  }
    75  
    76  func (x *KeepalivePing) GetTimestamp() int64 {
    77  	if x != nil {
    78  		return x.Timestamp
    79  	}
    80  	return 0
    81  }
    82  
    83  var File_rpc_keepalive_proto protoreflect.FileDescriptor
    84  
    85  const file_rpc_keepalive_proto_rawDesc = "" +
    86  	"\n" +
    87  	"\x13rpc/keepalive.proto\x12\x03rpc\x1a\roptions.proto\"-\n" +
    88  	"\rKeepalivePing\x12\x1c\n" +
    89  	"\ttimestamp\x18\x01 \x01(\x03R\ttimestamp2S\n" +
    90  	"\tKeepalive\x12F\n" +
    91  	"\x04Ping\x12\x12.rpc.KeepalivePing\x1a\x12.rpc.KeepalivePing\"\x16\xb2\x89\x01\x12\b\x01\x10\x01\x1a\n" +
    92  	"\x12\x06nodeID\x18\x01(\x01B!Z\x1fgithub.com/livekit/protocol/rpcb\x06proto3"
    93  
    94  var (
    95  	file_rpc_keepalive_proto_rawDescOnce sync.Once
    96  	file_rpc_keepalive_proto_rawDescData []byte
    97  )
    98  
    99  func file_rpc_keepalive_proto_rawDescGZIP() []byte {
   100  	file_rpc_keepalive_proto_rawDescOnce.Do(func() {
   101  		file_rpc_keepalive_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_rpc_keepalive_proto_rawDesc), len(file_rpc_keepalive_proto_rawDesc)))
   102  	})
   103  	return file_rpc_keepalive_proto_rawDescData
   104  }
   105  
   106  var file_rpc_keepalive_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   107  var file_rpc_keepalive_proto_goTypes = []any{
   108  	(*KeepalivePing)(nil), // 0: rpc.KeepalivePing
   109  }
   110  var file_rpc_keepalive_proto_depIdxs = []int32{
   111  	0, // 0: rpc.Keepalive.Ping:input_type -> rpc.KeepalivePing
   112  	0, // 1: rpc.Keepalive.Ping:output_type -> rpc.KeepalivePing
   113  	1, // [1:2] is the sub-list for method output_type
   114  	0, // [0:1] is the sub-list for method input_type
   115  	0, // [0:0] is the sub-list for extension type_name
   116  	0, // [0:0] is the sub-list for extension extendee
   117  	0, // [0:0] is the sub-list for field type_name
   118  }
   119  
   120  func init() { file_rpc_keepalive_proto_init() }
   121  func file_rpc_keepalive_proto_init() {
   122  	if File_rpc_keepalive_proto != nil {
   123  		return
   124  	}
   125  	type x struct{}
   126  	out := protoimpl.TypeBuilder{
   127  		File: protoimpl.DescBuilder{
   128  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   129  			RawDescriptor: unsafe.Slice(unsafe.StringData(file_rpc_keepalive_proto_rawDesc), len(file_rpc_keepalive_proto_rawDesc)),
   130  			NumEnums:      0,
   131  			NumMessages:   1,
   132  			NumExtensions: 0,
   133  			NumServices:   1,
   134  		},
   135  		GoTypes:           file_rpc_keepalive_proto_goTypes,
   136  		DependencyIndexes: file_rpc_keepalive_proto_depIdxs,
   137  		MessageInfos:      file_rpc_keepalive_proto_msgTypes,
   138  	}.Build()
   139  	File_rpc_keepalive_proto = out.File
   140  	file_rpc_keepalive_proto_goTypes = nil
   141  	file_rpc_keepalive_proto_depIdxs = nil
   142  }