model/modelpb/process.pb.go (196 lines of code) (raw):

// Licensed to Elasticsearch B.V. under one or more contributor // license agreements. See the NOTICE file distributed with // this work for additional information regarding copyright // ownership. Elasticsearch B.V. licenses this file to you under // the Apache License, Version 2.0 (the "License"); you may // not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.6 // protoc v5.28.3 // source: process.proto package modelpb import ( reflect "reflect" sync "sync" unsafe "unsafe" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) 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) ) type Process struct { state protoimpl.MessageState `protogen:"open.v1"` Ppid uint32 `protobuf:"varint,1,opt,name=ppid,proto3" json:"ppid,omitempty"` Thread *ProcessThread `protobuf:"bytes,2,opt,name=thread,proto3" json:"thread,omitempty"` Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"` CommandLine string `protobuf:"bytes,4,opt,name=command_line,json=commandLine,proto3" json:"command_line,omitempty"` Executable string `protobuf:"bytes,5,opt,name=executable,proto3" json:"executable,omitempty"` Argv []string `protobuf:"bytes,6,rep,name=argv,proto3" json:"argv,omitempty"` Pid uint32 `protobuf:"varint,7,opt,name=pid,proto3" json:"pid,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *Process) Reset() { *x = Process{} mi := &file_process_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *Process) String() string { return protoimpl.X.MessageStringOf(x) } func (*Process) ProtoMessage() {} func (x *Process) ProtoReflect() protoreflect.Message { mi := &file_process_proto_msgTypes[0] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use Process.ProtoReflect.Descriptor instead. func (*Process) Descriptor() ([]byte, []int) { return file_process_proto_rawDescGZIP(), []int{0} } func (x *Process) GetPpid() uint32 { if x != nil { return x.Ppid } return 0 } func (x *Process) GetThread() *ProcessThread { if x != nil { return x.Thread } return nil } func (x *Process) GetTitle() string { if x != nil { return x.Title } return "" } func (x *Process) GetCommandLine() string { if x != nil { return x.CommandLine } return "" } func (x *Process) GetExecutable() string { if x != nil { return x.Executable } return "" } func (x *Process) GetArgv() []string { if x != nil { return x.Argv } return nil } func (x *Process) GetPid() uint32 { if x != nil { return x.Pid } return 0 } type ProcessThread struct { state protoimpl.MessageState `protogen:"open.v1"` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Id uint32 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *ProcessThread) Reset() { *x = ProcessThread{} mi := &file_process_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *ProcessThread) String() string { return protoimpl.X.MessageStringOf(x) } func (*ProcessThread) ProtoMessage() {} func (x *ProcessThread) ProtoReflect() protoreflect.Message { mi := &file_process_proto_msgTypes[1] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use ProcessThread.ProtoReflect.Descriptor instead. func (*ProcessThread) Descriptor() ([]byte, []int) { return file_process_proto_rawDescGZIP(), []int{1} } func (x *ProcessThread) GetName() string { if x != nil { return x.Name } return "" } func (x *ProcessThread) GetId() uint32 { if x != nil { return x.Id } return 0 } var File_process_proto protoreflect.FileDescriptor const file_process_proto_rawDesc = "" + "\n" + "\rprocess.proto\x12\x0eelastic.apm.v1\"\xd3\x01\n" + "\aProcess\x12\x12\n" + "\x04ppid\x18\x01 \x01(\rR\x04ppid\x125\n" + "\x06thread\x18\x02 \x01(\v2\x1d.elastic.apm.v1.ProcessThreadR\x06thread\x12\x14\n" + "\x05title\x18\x03 \x01(\tR\x05title\x12!\n" + "\fcommand_line\x18\x04 \x01(\tR\vcommandLine\x12\x1e\n" + "\n" + "executable\x18\x05 \x01(\tR\n" + "executable\x12\x12\n" + "\x04argv\x18\x06 \x03(\tR\x04argv\x12\x10\n" + "\x03pid\x18\a \x01(\rR\x03pid\"3\n" + "\rProcessThread\x12\x12\n" + "\x04name\x18\x01 \x01(\tR\x04name\x12\x0e\n" + "\x02id\x18\x02 \x01(\rR\x02idB+Z)github.com/elastic/apm-data/model/modelpbb\x06proto3" var ( file_process_proto_rawDescOnce sync.Once file_process_proto_rawDescData []byte ) func file_process_proto_rawDescGZIP() []byte { file_process_proto_rawDescOnce.Do(func() { file_process_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_process_proto_rawDesc), len(file_process_proto_rawDesc))) }) return file_process_proto_rawDescData } var file_process_proto_msgTypes = make([]protoimpl.MessageInfo, 2) var file_process_proto_goTypes = []any{ (*Process)(nil), // 0: elastic.apm.v1.Process (*ProcessThread)(nil), // 1: elastic.apm.v1.ProcessThread } var file_process_proto_depIdxs = []int32{ 1, // 0: elastic.apm.v1.Process.thread:type_name -> elastic.apm.v1.ProcessThread 1, // [1:1] is the sub-list for method output_type 1, // [1:1] is the sub-list for method input_type 1, // [1:1] is the sub-list for extension type_name 1, // [1:1] is the sub-list for extension extendee 0, // [0:1] is the sub-list for field type_name } func init() { file_process_proto_init() } func file_process_proto_init() { if File_process_proto != nil { return } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_process_proto_rawDesc), len(file_process_proto_rawDesc)), NumEnums: 0, NumMessages: 2, NumExtensions: 0, NumServices: 0, }, GoTypes: file_process_proto_goTypes, DependencyIndexes: file_process_proto_depIdxs, MessageInfos: file_process_proto_msgTypes, }.Build() File_process_proto = out.File file_process_proto_goTypes = nil file_process_proto_depIdxs = nil }