// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.30.0 // protoc v4.23.4 // source: agent/boundarylogproxy/codec/boundary.proto package codec import ( proto "github.com/coder/coder/v2/agent/proto" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" ) const ( // Verify that this generated code is sufficiently up-to-date. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) // Verify that runtime/protoimpl is sufficiently up-to-date. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) // BoundaryMessage is the envelope for all TagV2 messages sent over the // boundary <-> agent unix socket. TagV1 carries a bare // ReportBoundaryLogsRequest for backwards compatibility; TagV2 wraps // everything in this envelope so the protocol can be extended with new // message types without adding more tags. type BoundaryMessage struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // Types that are assignable to Msg: // // *BoundaryMessage_Logs // *BoundaryMessage_Status Msg isBoundaryMessage_Msg `protobuf_oneof:"msg"` } func (x *BoundaryMessage) Reset() { *x = BoundaryMessage{} if protoimpl.UnsafeEnabled { mi := &file_agent_boundarylogproxy_codec_boundary_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *BoundaryMessage) String() string { return protoimpl.X.MessageStringOf(x) } func (*BoundaryMessage) ProtoMessage() {} func (x *BoundaryMessage) ProtoReflect() protoreflect.Message { mi := &file_agent_boundarylogproxy_codec_boundary_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use BoundaryMessage.ProtoReflect.Descriptor instead. func (*BoundaryMessage) Descriptor() ([]byte, []int) { return file_agent_boundarylogproxy_codec_boundary_proto_rawDescGZIP(), []int{0} } func (m *BoundaryMessage) GetMsg() isBoundaryMessage_Msg { if m != nil { return m.Msg } return nil } func (x *BoundaryMessage) GetLogs() *proto.ReportBoundaryLogsRequest { if x, ok := x.GetMsg().(*BoundaryMessage_Logs); ok { return x.Logs } return nil } func (x *BoundaryMessage) GetStatus() *BoundaryStatus { if x, ok := x.GetMsg().(*BoundaryMessage_Status); ok { return x.Status } return nil } type isBoundaryMessage_Msg interface { isBoundaryMessage_Msg() } type BoundaryMessage_Logs struct { Logs *proto.ReportBoundaryLogsRequest `protobuf:"bytes,1,opt,name=logs,proto3,oneof"` } type BoundaryMessage_Status struct { Status *BoundaryStatus `protobuf:"bytes,2,opt,name=status,proto3,oneof"` } func (*BoundaryMessage_Logs) isBoundaryMessage_Msg() {} func (*BoundaryMessage_Status) isBoundaryMessage_Msg() {} // BoundaryStatus carries operational metadata from boundary to the agent. // The agent records these values as Prometheus metrics. This message is // never forwarded to coderd. type BoundaryStatus struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // Logs dropped because boundary's internal channel buffer was full. DroppedChannelFull int64 `protobuf:"varint,1,opt,name=dropped_channel_full,json=droppedChannelFull,proto3" json:"dropped_channel_full,omitempty"` // Logs dropped because boundary's batch buffer was full after a // failed flush attempt. DroppedBatchFull int64 `protobuf:"varint,2,opt,name=dropped_batch_full,json=droppedBatchFull,proto3" json:"dropped_batch_full,omitempty"` } func (x *BoundaryStatus) Reset() { *x = BoundaryStatus{} if protoimpl.UnsafeEnabled { mi := &file_agent_boundarylogproxy_codec_boundary_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *BoundaryStatus) String() string { return protoimpl.X.MessageStringOf(x) } func (*BoundaryStatus) ProtoMessage() {} func (x *BoundaryStatus) ProtoReflect() protoreflect.Message { mi := &file_agent_boundarylogproxy_codec_boundary_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use BoundaryStatus.ProtoReflect.Descriptor instead. func (*BoundaryStatus) Descriptor() ([]byte, []int) { return file_agent_boundarylogproxy_codec_boundary_proto_rawDescGZIP(), []int{1} } func (x *BoundaryStatus) GetDroppedChannelFull() int64 { if x != nil { return x.DroppedChannelFull } return 0 } func (x *BoundaryStatus) GetDroppedBatchFull() int64 { if x != nil { return x.DroppedBatchFull } return 0 } var File_agent_boundarylogproxy_codec_boundary_proto protoreflect.FileDescriptor var file_agent_boundarylogproxy_codec_boundary_proto_rawDesc = []byte{ 0x0a, 0x2b, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2f, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x61, 0x72, 0x79, 0x6c, 0x6f, 0x67, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x63, 0x6f, 0x64, 0x65, 0x63, 0x2f, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x61, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1f, 0x63, 0x6f, 0x64, 0x65, 0x72, 0x2e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x61, 0x72, 0x79, 0x6c, 0x6f, 0x67, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x63, 0x6f, 0x64, 0x65, 0x63, 0x2e, 0x76, 0x31, 0x1a, 0x17, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa4, 0x01, 0x0a, 0x0f, 0x42, 0x6f, 0x75, 0x6e, 0x64, 0x61, 0x72, 0x79, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x3f, 0x0a, 0x04, 0x6c, 0x6f, 0x67, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x63, 0x6f, 0x64, 0x65, 0x72, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x32, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x42, 0x6f, 0x75, 0x6e, 0x64, 0x61, 0x72, 0x79, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x04, 0x6c, 0x6f, 0x67, 0x73, 0x12, 0x49, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x63, 0x6f, 0x64, 0x65, 0x72, 0x2e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x61, 0x72, 0x79, 0x6c, 0x6f, 0x67, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x63, 0x6f, 0x64, 0x65, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x6f, 0x75, 0x6e, 0x64, 0x61, 0x72, 0x79, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x48, 0x00, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x42, 0x05, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x22, 0x70, 0x0a, 0x0e, 0x42, 0x6f, 0x75, 0x6e, 0x64, 0x61, 0x72, 0x79, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x30, 0x0a, 0x14, 0x64, 0x72, 0x6f, 0x70, 0x70, 0x65, 0x64, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x5f, 0x66, 0x75, 0x6c, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x12, 0x64, 0x72, 0x6f, 0x70, 0x70, 0x65, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x46, 0x75, 0x6c, 0x6c, 0x12, 0x2c, 0x0a, 0x12, 0x64, 0x72, 0x6f, 0x70, 0x70, 0x65, 0x64, 0x5f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x66, 0x75, 0x6c, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x64, 0x72, 0x6f, 0x70, 0x70, 0x65, 0x64, 0x42, 0x61, 0x74, 0x63, 0x68, 0x46, 0x75, 0x6c, 0x6c, 0x42, 0x38, 0x5a, 0x36, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x64, 0x65, 0x72, 0x2f, 0x63, 0x6f, 0x64, 0x65, 0x72, 0x2f, 0x76, 0x32, 0x2f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2f, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x61, 0x72, 0x79, 0x6c, 0x6f, 0x67, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x63, 0x6f, 0x64, 0x65, 0x63, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( file_agent_boundarylogproxy_codec_boundary_proto_rawDescOnce sync.Once file_agent_boundarylogproxy_codec_boundary_proto_rawDescData = file_agent_boundarylogproxy_codec_boundary_proto_rawDesc ) func file_agent_boundarylogproxy_codec_boundary_proto_rawDescGZIP() []byte { file_agent_boundarylogproxy_codec_boundary_proto_rawDescOnce.Do(func() { file_agent_boundarylogproxy_codec_boundary_proto_rawDescData = protoimpl.X.CompressGZIP(file_agent_boundarylogproxy_codec_boundary_proto_rawDescData) }) return file_agent_boundarylogproxy_codec_boundary_proto_rawDescData } var file_agent_boundarylogproxy_codec_boundary_proto_msgTypes = make([]protoimpl.MessageInfo, 2) var file_agent_boundarylogproxy_codec_boundary_proto_goTypes = []interface{}{ (*BoundaryMessage)(nil), // 0: coder.boundarylogproxy.codec.v1.BoundaryMessage (*BoundaryStatus)(nil), // 1: coder.boundarylogproxy.codec.v1.BoundaryStatus (*proto.ReportBoundaryLogsRequest)(nil), // 2: coder.agent.v2.ReportBoundaryLogsRequest } var file_agent_boundarylogproxy_codec_boundary_proto_depIdxs = []int32{ 2, // 0: coder.boundarylogproxy.codec.v1.BoundaryMessage.logs:type_name -> coder.agent.v2.ReportBoundaryLogsRequest 1, // 1: coder.boundarylogproxy.codec.v1.BoundaryMessage.status:type_name -> coder.boundarylogproxy.codec.v1.BoundaryStatus 2, // [2:2] is the sub-list for method output_type 2, // [2:2] is the sub-list for method input_type 2, // [2:2] is the sub-list for extension type_name 2, // [2:2] is the sub-list for extension extendee 0, // [0:2] is the sub-list for field type_name } func init() { file_agent_boundarylogproxy_codec_boundary_proto_init() } func file_agent_boundarylogproxy_codec_boundary_proto_init() { if File_agent_boundarylogproxy_codec_boundary_proto != nil { return } if !protoimpl.UnsafeEnabled { file_agent_boundarylogproxy_codec_boundary_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*BoundaryMessage); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_agent_boundarylogproxy_codec_boundary_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*BoundaryStatus); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } } file_agent_boundarylogproxy_codec_boundary_proto_msgTypes[0].OneofWrappers = []interface{}{ (*BoundaryMessage_Logs)(nil), (*BoundaryMessage_Status)(nil), } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_agent_boundarylogproxy_codec_boundary_proto_rawDesc, NumEnums: 0, NumMessages: 2, NumExtensions: 0, NumServices: 0, }, GoTypes: file_agent_boundarylogproxy_codec_boundary_proto_goTypes, DependencyIndexes: file_agent_boundarylogproxy_codec_boundary_proto_depIdxs, MessageInfos: file_agent_boundarylogproxy_codec_boundary_proto_msgTypes, }.Build() File_agent_boundarylogproxy_codec_boundary_proto = out.File file_agent_boundarylogproxy_codec_boundary_proto_rawDesc = nil file_agent_boundarylogproxy_codec_boundary_proto_goTypes = nil file_agent_boundarylogproxy_codec_boundary_proto_depIdxs = nil }