From 648be83283fd3070843fdd68f99c29d217c86f26 Mon Sep 17 00:00:00 2001 From: Paul Cacheux Date: Thu, 23 Mar 2023 10:41:08 +0100 Subject: [PATCH 1/6] PoC of generating CWS activity dumps proto --- Rakefile | 7 + cws/dumpsv1/activity_dump.pb.go | 2047 ++++++++ cws/dumpsv1/activity_dump_vtproto.pb.go | 5997 +++++++++++++++++++++++ proto/cws/dumpsv1/activity_dump.proto | 191 + proto/cws/dumpsv1/dumpsv1.go | 2 + 5 files changed, 8244 insertions(+) create mode 100644 cws/dumpsv1/activity_dump.pb.go create mode 100644 cws/dumpsv1/activity_dump_vtproto.pb.go create mode 100644 proto/cws/dumpsv1/activity_dump.proto create mode 100644 proto/cws/dumpsv1/dumpsv1.go diff --git a/Rakefile b/Rakefile index 02396b77..45a1b5f1 100644 --- a/Rakefile +++ b/Rakefile @@ -103,6 +103,13 @@ BASH PATH=#{protoc_gen_go_dir}/bin #{protoc_binary_2} --proto_path=$GOPATH/src:. --go_out=$GOPATH/src proto/deps/github.com/CycloneDX/specification/schema/bom-1.4.proto PATH=#{protoc_gen_go_dir}/bin #{protoc_binary_2} --proto_path=$GOPATH/src:. --go_out=$GOPATH/src proto/sbom/sbom.proto + # Install protoc-gen-go-vtproto + GOPATH=#{protoc_gen_go_dir} go install github.com/planetscale/vtprotobuf/cmd/protoc-gen-go-vtproto@latest + + echo "Generating CWS Activity Dumps v1" + PATH=#{protoc_gen_go_dir}/bin #{protoc_binary_2} --proto_path=$GOPATH/src:. --go_out=$GOPATH/src --go-vtproto_out=$GOPATH/src --go-vtproto_opt=features=pool+marshal+unmarshal+size proto/cws/dumpsv1/activity_dump.proto + # --go-vtproto_opt=pool=pkg/security/proto/security_profile/v1.ActivityDump --go-vtproto_opt=pool=pkg/security/proto/security_profile/v1.ProcessActivityNode --go-vtproto_opt=pool=pkg/security/proto/security_profile/v1.FileActivityNode --go-vtproto_opt=pool=pkg/security/proto/security_profile/v1.FileInfo --go-vtproto_opt=pool=pkg/security/proto/security_profile/v1.ProcessInfo + cp -r v5/* . rm -rf v5 BASH diff --git a/cws/dumpsv1/activity_dump.pb.go b/cws/dumpsv1/activity_dump.pb.go new file mode 100644 index 00000000..972f4791 --- /dev/null +++ b/cws/dumpsv1/activity_dump.pb.go @@ -0,0 +1,2047 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.30.0 +// protoc v3.21.12 +// source: proto/cws/dumpsv1/activity_dump.proto + +package dumpsv1 + +import ( + 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) +) + +type GenerationType int32 + +const ( + GenerationType_UNKNOWN GenerationType = 0 + GenerationType_RUNTIME GenerationType = 1 + GenerationType_SNAPSHOT GenerationType = 2 +) + +// Enum value maps for GenerationType. +var ( + GenerationType_name = map[int32]string{ + 0: "UNKNOWN", + 1: "RUNTIME", + 2: "SNAPSHOT", + } + GenerationType_value = map[string]int32{ + "UNKNOWN": 0, + "RUNTIME": 1, + "SNAPSHOT": 2, + } +) + +func (x GenerationType) Enum() *GenerationType { + p := new(GenerationType) + *p = x + return p +} + +func (x GenerationType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (GenerationType) Descriptor() protoreflect.EnumDescriptor { + return file_proto_cws_dumpsv1_activity_dump_proto_enumTypes[0].Descriptor() +} + +func (GenerationType) Type() protoreflect.EnumType { + return &file_proto_cws_dumpsv1_activity_dump_proto_enumTypes[0] +} + +func (x GenerationType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use GenerationType.Descriptor instead. +func (GenerationType) EnumDescriptor() ([]byte, []int) { + return file_proto_cws_dumpsv1_activity_dump_proto_rawDescGZIP(), []int{0} +} + +type ActivityDump struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"` + Service string `protobuf:"bytes,2,opt,name=service,proto3" json:"service,omitempty"` + Source string `protobuf:"bytes,3,opt,name=source,proto3" json:"source,omitempty"` + Metadata *Metadata `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"` + Tags []string `protobuf:"bytes,5,rep,name=tags,proto3" json:"tags,omitempty"` + Tree []*ProcessActivityNode `protobuf:"bytes,6,rep,name=tree,proto3" json:"tree,omitempty"` +} + +func (x *ActivityDump) Reset() { + *x = ActivityDump{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_cws_dumpsv1_activity_dump_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ActivityDump) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ActivityDump) ProtoMessage() {} + +func (x *ActivityDump) ProtoReflect() protoreflect.Message { + mi := &file_proto_cws_dumpsv1_activity_dump_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 ActivityDump.ProtoReflect.Descriptor instead. +func (*ActivityDump) Descriptor() ([]byte, []int) { + return file_proto_cws_dumpsv1_activity_dump_proto_rawDescGZIP(), []int{0} +} + +func (x *ActivityDump) GetHost() string { + if x != nil { + return x.Host + } + return "" +} + +func (x *ActivityDump) GetService() string { + if x != nil { + return x.Service + } + return "" +} + +func (x *ActivityDump) GetSource() string { + if x != nil { + return x.Source + } + return "" +} + +func (x *ActivityDump) GetMetadata() *Metadata { + if x != nil { + return x.Metadata + } + return nil +} + +func (x *ActivityDump) GetTags() []string { + if x != nil { + return x.Tags + } + return nil +} + +func (x *ActivityDump) GetTree() []*ProcessActivityNode { + if x != nil { + return x.Tree + } + return nil +} + +type Metadata struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + AgentVersion string `protobuf:"bytes,1,opt,name=agent_version,json=agentVersion,proto3" json:"agent_version,omitempty"` + AgentCommit string `protobuf:"bytes,2,opt,name=agent_commit,json=agentCommit,proto3" json:"agent_commit,omitempty"` + KernelVersion string `protobuf:"bytes,3,opt,name=kernel_version,json=kernelVersion,proto3" json:"kernel_version,omitempty"` + LinuxDistribution string `protobuf:"bytes,4,opt,name=linux_distribution,json=linuxDistribution,proto3" json:"linux_distribution,omitempty"` + Arch string `protobuf:"bytes,13,opt,name=arch,proto3" json:"arch,omitempty"` + Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"` + ProtobufVersion string `protobuf:"bytes,6,opt,name=protobuf_version,json=protobufVersion,proto3" json:"protobuf_version,omitempty"` + DifferentiateArgs bool `protobuf:"varint,7,opt,name=differentiate_args,json=differentiateArgs,proto3" json:"differentiate_args,omitempty"` + Comm string `protobuf:"bytes,8,opt,name=comm,proto3" json:"comm,omitempty"` + ContainerId string `protobuf:"bytes,9,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` + Start uint64 `protobuf:"varint,10,opt,name=start,proto3" json:"start,omitempty"` + End uint64 `protobuf:"varint,11,opt,name=end,proto3" json:"end,omitempty"` + Size uint64 `protobuf:"varint,12,opt,name=size,proto3" json:"size,omitempty"` + Serialization string `protobuf:"bytes,14,opt,name=serialization,proto3" json:"serialization,omitempty"` +} + +func (x *Metadata) Reset() { + *x = Metadata{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_cws_dumpsv1_activity_dump_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Metadata) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Metadata) ProtoMessage() {} + +func (x *Metadata) ProtoReflect() protoreflect.Message { + mi := &file_proto_cws_dumpsv1_activity_dump_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 Metadata.ProtoReflect.Descriptor instead. +func (*Metadata) Descriptor() ([]byte, []int) { + return file_proto_cws_dumpsv1_activity_dump_proto_rawDescGZIP(), []int{1} +} + +func (x *Metadata) GetAgentVersion() string { + if x != nil { + return x.AgentVersion + } + return "" +} + +func (x *Metadata) GetAgentCommit() string { + if x != nil { + return x.AgentCommit + } + return "" +} + +func (x *Metadata) GetKernelVersion() string { + if x != nil { + return x.KernelVersion + } + return "" +} + +func (x *Metadata) GetLinuxDistribution() string { + if x != nil { + return x.LinuxDistribution + } + return "" +} + +func (x *Metadata) GetArch() string { + if x != nil { + return x.Arch + } + return "" +} + +func (x *Metadata) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *Metadata) GetProtobufVersion() string { + if x != nil { + return x.ProtobufVersion + } + return "" +} + +func (x *Metadata) GetDifferentiateArgs() bool { + if x != nil { + return x.DifferentiateArgs + } + return false +} + +func (x *Metadata) GetComm() string { + if x != nil { + return x.Comm + } + return "" +} + +func (x *Metadata) GetContainerId() string { + if x != nil { + return x.ContainerId + } + return "" +} + +func (x *Metadata) GetStart() uint64 { + if x != nil { + return x.Start + } + return 0 +} + +func (x *Metadata) GetEnd() uint64 { + if x != nil { + return x.End + } + return 0 +} + +func (x *Metadata) GetSize() uint64 { + if x != nil { + return x.Size + } + return 0 +} + +func (x *Metadata) GetSerialization() string { + if x != nil { + return x.Serialization + } + return "" +} + +type SecurityProfile struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Status uint32 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"` + Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` + Metadata *Metadata `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` + Tags []string `protobuf:"bytes,4,rep,name=tags,proto3" json:"tags,omitempty"` + Syscalls []uint32 `protobuf:"varint,5,rep,packed,name=syscalls,proto3" json:"syscalls,omitempty"` + Tree []*ProcessActivityNode `protobuf:"bytes,6,rep,name=tree,proto3" json:"tree,omitempty"` +} + +func (x *SecurityProfile) Reset() { + *x = SecurityProfile{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_cws_dumpsv1_activity_dump_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SecurityProfile) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SecurityProfile) ProtoMessage() {} + +func (x *SecurityProfile) ProtoReflect() protoreflect.Message { + mi := &file_proto_cws_dumpsv1_activity_dump_proto_msgTypes[2] + 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 SecurityProfile.ProtoReflect.Descriptor instead. +func (*SecurityProfile) Descriptor() ([]byte, []int) { + return file_proto_cws_dumpsv1_activity_dump_proto_rawDescGZIP(), []int{2} +} + +func (x *SecurityProfile) GetStatus() uint32 { + if x != nil { + return x.Status + } + return 0 +} + +func (x *SecurityProfile) GetVersion() string { + if x != nil { + return x.Version + } + return "" +} + +func (x *SecurityProfile) GetMetadata() *Metadata { + if x != nil { + return x.Metadata + } + return nil +} + +func (x *SecurityProfile) GetTags() []string { + if x != nil { + return x.Tags + } + return nil +} + +func (x *SecurityProfile) GetSyscalls() []uint32 { + if x != nil { + return x.Syscalls + } + return nil +} + +func (x *SecurityProfile) GetTree() []*ProcessActivityNode { + if x != nil { + return x.Tree + } + return nil +} + +type ProcessActivityNode struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Process *ProcessInfo `protobuf:"bytes,1,opt,name=process,proto3" json:"process,omitempty"` + GenerationType GenerationType `protobuf:"varint,8,opt,name=generation_type,json=generationType,proto3,enum=datadog.cws.dumpsv1.GenerationType" json:"generation_type,omitempty"` + MatchedRules []*MatchedRule `protobuf:"bytes,9,rep,name=matched_rules,json=matchedRules,proto3" json:"matched_rules,omitempty"` + Children []*ProcessActivityNode `protobuf:"bytes,3,rep,name=children,proto3" json:"children,omitempty"` + Files []*FileActivityNode `protobuf:"bytes,4,rep,name=files,proto3" json:"files,omitempty"` + DnsNames []*DNSNode `protobuf:"bytes,5,rep,name=dns_names,json=dnsNames,proto3" json:"dns_names,omitempty"` + Sockets []*SocketNode `protobuf:"bytes,6,rep,name=sockets,proto3" json:"sockets,omitempty"` + Syscalls []uint32 `protobuf:"varint,7,rep,packed,name=syscalls,proto3" json:"syscalls,omitempty"` +} + +func (x *ProcessActivityNode) Reset() { + *x = ProcessActivityNode{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_cws_dumpsv1_activity_dump_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ProcessActivityNode) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ProcessActivityNode) ProtoMessage() {} + +func (x *ProcessActivityNode) ProtoReflect() protoreflect.Message { + mi := &file_proto_cws_dumpsv1_activity_dump_proto_msgTypes[3] + 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 ProcessActivityNode.ProtoReflect.Descriptor instead. +func (*ProcessActivityNode) Descriptor() ([]byte, []int) { + return file_proto_cws_dumpsv1_activity_dump_proto_rawDescGZIP(), []int{3} +} + +func (x *ProcessActivityNode) GetProcess() *ProcessInfo { + if x != nil { + return x.Process + } + return nil +} + +func (x *ProcessActivityNode) GetGenerationType() GenerationType { + if x != nil { + return x.GenerationType + } + return GenerationType_UNKNOWN +} + +func (x *ProcessActivityNode) GetMatchedRules() []*MatchedRule { + if x != nil { + return x.MatchedRules + } + return nil +} + +func (x *ProcessActivityNode) GetChildren() []*ProcessActivityNode { + if x != nil { + return x.Children + } + return nil +} + +func (x *ProcessActivityNode) GetFiles() []*FileActivityNode { + if x != nil { + return x.Files + } + return nil +} + +func (x *ProcessActivityNode) GetDnsNames() []*DNSNode { + if x != nil { + return x.DnsNames + } + return nil +} + +func (x *ProcessActivityNode) GetSockets() []*SocketNode { + if x != nil { + return x.Sockets + } + return nil +} + +func (x *ProcessActivityNode) GetSyscalls() []uint32 { + if x != nil { + return x.Syscalls + } + return nil +} + +type ProcessInfo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Pid uint32 `protobuf:"varint,1,opt,name=pid,proto3" json:"pid,omitempty"` + Tid uint32 `protobuf:"varint,2,opt,name=tid,proto3" json:"tid,omitempty"` + Ppid uint32 `protobuf:"varint,3,opt,name=ppid,proto3" json:"ppid,omitempty"` + Cookie uint32 `protobuf:"varint,4,opt,name=cookie,proto3" json:"cookie,omitempty"` + IsThread bool `protobuf:"varint,5,opt,name=is_thread,json=isThread,proto3" json:"is_thread,omitempty"` + File *FileInfo `protobuf:"bytes,6,opt,name=file,proto3" json:"file,omitempty"` + ContainerId string `protobuf:"bytes,7,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` + SpanId uint64 `protobuf:"varint,8,opt,name=span_id,json=spanId,proto3" json:"span_id,omitempty"` + TraceId uint64 `protobuf:"varint,9,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"` + Tty string `protobuf:"bytes,10,opt,name=tty,proto3" json:"tty,omitempty"` + Comm string `protobuf:"bytes,11,opt,name=comm,proto3" json:"comm,omitempty"` + ForkTime uint64 `protobuf:"varint,12,opt,name=fork_time,json=forkTime,proto3" json:"fork_time,omitempty"` + ExitTime uint64 `protobuf:"varint,13,opt,name=exit_time,json=exitTime,proto3" json:"exit_time,omitempty"` + ExecTime uint64 `protobuf:"varint,14,opt,name=exec_time,json=execTime,proto3" json:"exec_time,omitempty"` + Credentials *Credentials `protobuf:"bytes,15,opt,name=credentials,proto3" json:"credentials,omitempty"` + Args []string `protobuf:"bytes,16,rep,name=args,proto3" json:"args,omitempty"` + Argv0 string `protobuf:"bytes,17,opt,name=argv0,proto3" json:"argv0,omitempty"` + ArgsTruncated bool `protobuf:"varint,18,opt,name=args_truncated,json=argsTruncated,proto3" json:"args_truncated,omitempty"` + Envs []string `protobuf:"bytes,19,rep,name=envs,proto3" json:"envs,omitempty"` + EnvsTruncated bool `protobuf:"varint,20,opt,name=envs_truncated,json=envsTruncated,proto3" json:"envs_truncated,omitempty"` +} + +func (x *ProcessInfo) Reset() { + *x = ProcessInfo{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_cws_dumpsv1_activity_dump_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ProcessInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ProcessInfo) ProtoMessage() {} + +func (x *ProcessInfo) ProtoReflect() protoreflect.Message { + mi := &file_proto_cws_dumpsv1_activity_dump_proto_msgTypes[4] + 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 ProcessInfo.ProtoReflect.Descriptor instead. +func (*ProcessInfo) Descriptor() ([]byte, []int) { + return file_proto_cws_dumpsv1_activity_dump_proto_rawDescGZIP(), []int{4} +} + +func (x *ProcessInfo) GetPid() uint32 { + if x != nil { + return x.Pid + } + return 0 +} + +func (x *ProcessInfo) GetTid() uint32 { + if x != nil { + return x.Tid + } + return 0 +} + +func (x *ProcessInfo) GetPpid() uint32 { + if x != nil { + return x.Ppid + } + return 0 +} + +func (x *ProcessInfo) GetCookie() uint32 { + if x != nil { + return x.Cookie + } + return 0 +} + +func (x *ProcessInfo) GetIsThread() bool { + if x != nil { + return x.IsThread + } + return false +} + +func (x *ProcessInfo) GetFile() *FileInfo { + if x != nil { + return x.File + } + return nil +} + +func (x *ProcessInfo) GetContainerId() string { + if x != nil { + return x.ContainerId + } + return "" +} + +func (x *ProcessInfo) GetSpanId() uint64 { + if x != nil { + return x.SpanId + } + return 0 +} + +func (x *ProcessInfo) GetTraceId() uint64 { + if x != nil { + return x.TraceId + } + return 0 +} + +func (x *ProcessInfo) GetTty() string { + if x != nil { + return x.Tty + } + return "" +} + +func (x *ProcessInfo) GetComm() string { + if x != nil { + return x.Comm + } + return "" +} + +func (x *ProcessInfo) GetForkTime() uint64 { + if x != nil { + return x.ForkTime + } + return 0 +} + +func (x *ProcessInfo) GetExitTime() uint64 { + if x != nil { + return x.ExitTime + } + return 0 +} + +func (x *ProcessInfo) GetExecTime() uint64 { + if x != nil { + return x.ExecTime + } + return 0 +} + +func (x *ProcessInfo) GetCredentials() *Credentials { + if x != nil { + return x.Credentials + } + return nil +} + +func (x *ProcessInfo) GetArgs() []string { + if x != nil { + return x.Args + } + return nil +} + +func (x *ProcessInfo) GetArgv0() string { + if x != nil { + return x.Argv0 + } + return "" +} + +func (x *ProcessInfo) GetArgsTruncated() bool { + if x != nil { + return x.ArgsTruncated + } + return false +} + +func (x *ProcessInfo) GetEnvs() []string { + if x != nil { + return x.Envs + } + return nil +} + +func (x *ProcessInfo) GetEnvsTruncated() bool { + if x != nil { + return x.EnvsTruncated + } + return false +} + +type FileActivityNode struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + MatchedRules []*MatchedRule `protobuf:"bytes,9,rep,name=matched_rules,json=matchedRules,proto3" json:"matched_rules,omitempty"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + IsPattern bool `protobuf:"varint,7,opt,name=is_pattern,json=isPattern,proto3" json:"is_pattern,omitempty"` + File *FileInfo `protobuf:"bytes,2,opt,name=file,proto3" json:"file,omitempty"` + GenerationType GenerationType `protobuf:"varint,8,opt,name=generation_type,json=generationType,proto3,enum=datadog.cws.dumpsv1.GenerationType" json:"generation_type,omitempty"` + FirstSeen uint64 `protobuf:"varint,4,opt,name=first_seen,json=firstSeen,proto3" json:"first_seen,omitempty"` + Open *OpenNode `protobuf:"bytes,5,opt,name=open,proto3" json:"open,omitempty"` + Children []*FileActivityNode `protobuf:"bytes,6,rep,name=children,proto3" json:"children,omitempty"` +} + +func (x *FileActivityNode) Reset() { + *x = FileActivityNode{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_cws_dumpsv1_activity_dump_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FileActivityNode) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FileActivityNode) ProtoMessage() {} + +func (x *FileActivityNode) ProtoReflect() protoreflect.Message { + mi := &file_proto_cws_dumpsv1_activity_dump_proto_msgTypes[5] + 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 FileActivityNode.ProtoReflect.Descriptor instead. +func (*FileActivityNode) Descriptor() ([]byte, []int) { + return file_proto_cws_dumpsv1_activity_dump_proto_rawDescGZIP(), []int{5} +} + +func (x *FileActivityNode) GetMatchedRules() []*MatchedRule { + if x != nil { + return x.MatchedRules + } + return nil +} + +func (x *FileActivityNode) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *FileActivityNode) GetIsPattern() bool { + if x != nil { + return x.IsPattern + } + return false +} + +func (x *FileActivityNode) GetFile() *FileInfo { + if x != nil { + return x.File + } + return nil +} + +func (x *FileActivityNode) GetGenerationType() GenerationType { + if x != nil { + return x.GenerationType + } + return GenerationType_UNKNOWN +} + +func (x *FileActivityNode) GetFirstSeen() uint64 { + if x != nil { + return x.FirstSeen + } + return 0 +} + +func (x *FileActivityNode) GetOpen() *OpenNode { + if x != nil { + return x.Open + } + return nil +} + +func (x *FileActivityNode) GetChildren() []*FileActivityNode { + if x != nil { + return x.Children + } + return nil +} + +type OpenNode struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Retval int64 `protobuf:"zigzag64,1,opt,name=retval,proto3" json:"retval,omitempty"` + Flags uint32 `protobuf:"varint,2,opt,name=flags,proto3" json:"flags,omitempty"` + Mode uint32 `protobuf:"varint,3,opt,name=mode,proto3" json:"mode,omitempty"` +} + +func (x *OpenNode) Reset() { + *x = OpenNode{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_cws_dumpsv1_activity_dump_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *OpenNode) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OpenNode) ProtoMessage() {} + +func (x *OpenNode) ProtoReflect() protoreflect.Message { + mi := &file_proto_cws_dumpsv1_activity_dump_proto_msgTypes[6] + 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 OpenNode.ProtoReflect.Descriptor instead. +func (*OpenNode) Descriptor() ([]byte, []int) { + return file_proto_cws_dumpsv1_activity_dump_proto_rawDescGZIP(), []int{6} +} + +func (x *OpenNode) GetRetval() int64 { + if x != nil { + return x.Retval + } + return 0 +} + +func (x *OpenNode) GetFlags() uint32 { + if x != nil { + return x.Flags + } + return 0 +} + +func (x *OpenNode) GetMode() uint32 { + if x != nil { + return x.Mode + } + return 0 +} + +type DNSNode struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + MatchedRules []*MatchedRule `protobuf:"bytes,2,rep,name=matched_rules,json=matchedRules,proto3" json:"matched_rules,omitempty"` + Requests []*DNSInfo `protobuf:"bytes,1,rep,name=requests,proto3" json:"requests,omitempty"` +} + +func (x *DNSNode) Reset() { + *x = DNSNode{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_cws_dumpsv1_activity_dump_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DNSNode) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DNSNode) ProtoMessage() {} + +func (x *DNSNode) ProtoReflect() protoreflect.Message { + mi := &file_proto_cws_dumpsv1_activity_dump_proto_msgTypes[7] + 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 DNSNode.ProtoReflect.Descriptor instead. +func (*DNSNode) Descriptor() ([]byte, []int) { + return file_proto_cws_dumpsv1_activity_dump_proto_rawDescGZIP(), []int{7} +} + +func (x *DNSNode) GetMatchedRules() []*MatchedRule { + if x != nil { + return x.MatchedRules + } + return nil +} + +func (x *DNSNode) GetRequests() []*DNSInfo { + if x != nil { + return x.Requests + } + return nil +} + +type DNSInfo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Type uint32 `protobuf:"varint,2,opt,name=type,proto3" json:"type,omitempty"` + Class uint32 `protobuf:"varint,3,opt,name=class,proto3" json:"class,omitempty"` + Size uint32 `protobuf:"varint,4,opt,name=size,proto3" json:"size,omitempty"` + Count uint32 `protobuf:"varint,5,opt,name=count,proto3" json:"count,omitempty"` +} + +func (x *DNSInfo) Reset() { + *x = DNSInfo{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_cws_dumpsv1_activity_dump_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DNSInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DNSInfo) ProtoMessage() {} + +func (x *DNSInfo) ProtoReflect() protoreflect.Message { + mi := &file_proto_cws_dumpsv1_activity_dump_proto_msgTypes[8] + 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 DNSInfo.ProtoReflect.Descriptor instead. +func (*DNSInfo) Descriptor() ([]byte, []int) { + return file_proto_cws_dumpsv1_activity_dump_proto_rawDescGZIP(), []int{8} +} + +func (x *DNSInfo) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *DNSInfo) GetType() uint32 { + if x != nil { + return x.Type + } + return 0 +} + +func (x *DNSInfo) GetClass() uint32 { + if x != nil { + return x.Class + } + return 0 +} + +func (x *DNSInfo) GetSize() uint32 { + if x != nil { + return x.Size + } + return 0 +} + +func (x *DNSInfo) GetCount() uint32 { + if x != nil { + return x.Count + } + return 0 +} + +type FileInfo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Uid uint32 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid,omitempty"` + User string `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"` + Gid uint32 `protobuf:"varint,3,opt,name=gid,proto3" json:"gid,omitempty"` + Group string `protobuf:"bytes,4,opt,name=group,proto3" json:"group,omitempty"` + Mode uint32 `protobuf:"varint,5,opt,name=mode,proto3" json:"mode,omitempty"` // TODO: check conversion with uint16 + Ctime uint64 `protobuf:"varint,6,opt,name=ctime,proto3" json:"ctime,omitempty"` + Mtime uint64 `protobuf:"varint,7,opt,name=mtime,proto3" json:"mtime,omitempty"` + MountId uint32 `protobuf:"varint,8,opt,name=mount_id,json=mountId,proto3" json:"mount_id,omitempty"` + Inode uint64 `protobuf:"varint,9,opt,name=inode,proto3" json:"inode,omitempty"` + InUpperLayer bool `protobuf:"varint,10,opt,name=in_upper_layer,json=inUpperLayer,proto3" json:"in_upper_layer,omitempty"` + Path string `protobuf:"bytes,11,opt,name=path,proto3" json:"path,omitempty"` + Basename string `protobuf:"bytes,12,opt,name=basename,proto3" json:"basename,omitempty"` + Filesystem string `protobuf:"bytes,13,opt,name=filesystem,proto3" json:"filesystem,omitempty"` + PackageName string `protobuf:"bytes,14,opt,name=package_name,json=packageName,proto3" json:"package_name,omitempty"` + PackageVersion string `protobuf:"bytes,15,opt,name=package_version,json=packageVersion,proto3" json:"package_version,omitempty"` + PackageSrcversion string `protobuf:"bytes,16,opt,name=package_srcversion,json=packageSrcversion,proto3" json:"package_srcversion,omitempty"` +} + +func (x *FileInfo) Reset() { + *x = FileInfo{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_cws_dumpsv1_activity_dump_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FileInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FileInfo) ProtoMessage() {} + +func (x *FileInfo) ProtoReflect() protoreflect.Message { + mi := &file_proto_cws_dumpsv1_activity_dump_proto_msgTypes[9] + 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 FileInfo.ProtoReflect.Descriptor instead. +func (*FileInfo) Descriptor() ([]byte, []int) { + return file_proto_cws_dumpsv1_activity_dump_proto_rawDescGZIP(), []int{9} +} + +func (x *FileInfo) GetUid() uint32 { + if x != nil { + return x.Uid + } + return 0 +} + +func (x *FileInfo) GetUser() string { + if x != nil { + return x.User + } + return "" +} + +func (x *FileInfo) GetGid() uint32 { + if x != nil { + return x.Gid + } + return 0 +} + +func (x *FileInfo) GetGroup() string { + if x != nil { + return x.Group + } + return "" +} + +func (x *FileInfo) GetMode() uint32 { + if x != nil { + return x.Mode + } + return 0 +} + +func (x *FileInfo) GetCtime() uint64 { + if x != nil { + return x.Ctime + } + return 0 +} + +func (x *FileInfo) GetMtime() uint64 { + if x != nil { + return x.Mtime + } + return 0 +} + +func (x *FileInfo) GetMountId() uint32 { + if x != nil { + return x.MountId + } + return 0 +} + +func (x *FileInfo) GetInode() uint64 { + if x != nil { + return x.Inode + } + return 0 +} + +func (x *FileInfo) GetInUpperLayer() bool { + if x != nil { + return x.InUpperLayer + } + return false +} + +func (x *FileInfo) GetPath() string { + if x != nil { + return x.Path + } + return "" +} + +func (x *FileInfo) GetBasename() string { + if x != nil { + return x.Basename + } + return "" +} + +func (x *FileInfo) GetFilesystem() string { + if x != nil { + return x.Filesystem + } + return "" +} + +func (x *FileInfo) GetPackageName() string { + if x != nil { + return x.PackageName + } + return "" +} + +func (x *FileInfo) GetPackageVersion() string { + if x != nil { + return x.PackageVersion + } + return "" +} + +func (x *FileInfo) GetPackageSrcversion() string { + if x != nil { + return x.PackageSrcversion + } + return "" +} + +type Credentials struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Uid uint32 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid,omitempty"` + Gid uint32 `protobuf:"varint,2,opt,name=gid,proto3" json:"gid,omitempty"` + User string `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"` + Group string `protobuf:"bytes,4,opt,name=group,proto3" json:"group,omitempty"` + EffectiveUid uint32 `protobuf:"varint,5,opt,name=effective_uid,json=effectiveUid,proto3" json:"effective_uid,omitempty"` + EffectiveGid uint32 `protobuf:"varint,6,opt,name=effective_gid,json=effectiveGid,proto3" json:"effective_gid,omitempty"` + EffectiveUser string `protobuf:"bytes,7,opt,name=effective_user,json=effectiveUser,proto3" json:"effective_user,omitempty"` + EffectiveGroup string `protobuf:"bytes,8,opt,name=effective_group,json=effectiveGroup,proto3" json:"effective_group,omitempty"` + FsUid uint32 `protobuf:"varint,9,opt,name=fs_uid,json=fsUid,proto3" json:"fs_uid,omitempty"` + FsGid uint32 `protobuf:"varint,10,opt,name=fs_gid,json=fsGid,proto3" json:"fs_gid,omitempty"` + FsUser string `protobuf:"bytes,11,opt,name=fs_user,json=fsUser,proto3" json:"fs_user,omitempty"` + FsGroup string `protobuf:"bytes,12,opt,name=fs_group,json=fsGroup,proto3" json:"fs_group,omitempty"` + CapEffective uint64 `protobuf:"varint,13,opt,name=cap_effective,json=capEffective,proto3" json:"cap_effective,omitempty"` + CapPermitted uint64 `protobuf:"varint,14,opt,name=cap_permitted,json=capPermitted,proto3" json:"cap_permitted,omitempty"` +} + +func (x *Credentials) Reset() { + *x = Credentials{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_cws_dumpsv1_activity_dump_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Credentials) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Credentials) ProtoMessage() {} + +func (x *Credentials) ProtoReflect() protoreflect.Message { + mi := &file_proto_cws_dumpsv1_activity_dump_proto_msgTypes[10] + 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 Credentials.ProtoReflect.Descriptor instead. +func (*Credentials) Descriptor() ([]byte, []int) { + return file_proto_cws_dumpsv1_activity_dump_proto_rawDescGZIP(), []int{10} +} + +func (x *Credentials) GetUid() uint32 { + if x != nil { + return x.Uid + } + return 0 +} + +func (x *Credentials) GetGid() uint32 { + if x != nil { + return x.Gid + } + return 0 +} + +func (x *Credentials) GetUser() string { + if x != nil { + return x.User + } + return "" +} + +func (x *Credentials) GetGroup() string { + if x != nil { + return x.Group + } + return "" +} + +func (x *Credentials) GetEffectiveUid() uint32 { + if x != nil { + return x.EffectiveUid + } + return 0 +} + +func (x *Credentials) GetEffectiveGid() uint32 { + if x != nil { + return x.EffectiveGid + } + return 0 +} + +func (x *Credentials) GetEffectiveUser() string { + if x != nil { + return x.EffectiveUser + } + return "" +} + +func (x *Credentials) GetEffectiveGroup() string { + if x != nil { + return x.EffectiveGroup + } + return "" +} + +func (x *Credentials) GetFsUid() uint32 { + if x != nil { + return x.FsUid + } + return 0 +} + +func (x *Credentials) GetFsGid() uint32 { + if x != nil { + return x.FsGid + } + return 0 +} + +func (x *Credentials) GetFsUser() string { + if x != nil { + return x.FsUser + } + return "" +} + +func (x *Credentials) GetFsGroup() string { + if x != nil { + return x.FsGroup + } + return "" +} + +func (x *Credentials) GetCapEffective() uint64 { + if x != nil { + return x.CapEffective + } + return 0 +} + +func (x *Credentials) GetCapPermitted() uint64 { + if x != nil { + return x.CapPermitted + } + return 0 +} + +type SocketNode struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Family string `protobuf:"bytes,1,opt,name=family,proto3" json:"family,omitempty"` + Bind []*BindNode `protobuf:"bytes,2,rep,name=bind,proto3" json:"bind,omitempty"` +} + +func (x *SocketNode) Reset() { + *x = SocketNode{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_cws_dumpsv1_activity_dump_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SocketNode) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SocketNode) ProtoMessage() {} + +func (x *SocketNode) ProtoReflect() protoreflect.Message { + mi := &file_proto_cws_dumpsv1_activity_dump_proto_msgTypes[11] + 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 SocketNode.ProtoReflect.Descriptor instead. +func (*SocketNode) Descriptor() ([]byte, []int) { + return file_proto_cws_dumpsv1_activity_dump_proto_rawDescGZIP(), []int{11} +} + +func (x *SocketNode) GetFamily() string { + if x != nil { + return x.Family + } + return "" +} + +func (x *SocketNode) GetBind() []*BindNode { + if x != nil { + return x.Bind + } + return nil +} + +type BindNode struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + MatchedRules []*MatchedRule `protobuf:"bytes,3,rep,name=matched_rules,json=matchedRules,proto3" json:"matched_rules,omitempty"` + Port uint32 `protobuf:"varint,1,opt,name=port,proto3" json:"port,omitempty"` + Ip string `protobuf:"bytes,2,opt,name=ip,proto3" json:"ip,omitempty"` +} + +func (x *BindNode) Reset() { + *x = BindNode{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_cws_dumpsv1_activity_dump_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BindNode) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BindNode) ProtoMessage() {} + +func (x *BindNode) ProtoReflect() protoreflect.Message { + mi := &file_proto_cws_dumpsv1_activity_dump_proto_msgTypes[12] + 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 BindNode.ProtoReflect.Descriptor instead. +func (*BindNode) Descriptor() ([]byte, []int) { + return file_proto_cws_dumpsv1_activity_dump_proto_rawDescGZIP(), []int{12} +} + +func (x *BindNode) GetMatchedRules() []*MatchedRule { + if x != nil { + return x.MatchedRules + } + return nil +} + +func (x *BindNode) GetPort() uint32 { + if x != nil { + return x.Port + } + return 0 +} + +func (x *BindNode) GetIp() string { + if x != nil { + return x.Ip + } + return "" +} + +type MatchedRule struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + RuleId string `protobuf:"bytes,1,opt,name=rule_id,json=ruleId,proto3" json:"rule_id,omitempty"` + RuleVersion string `protobuf:"bytes,2,opt,name=rule_version,json=ruleVersion,proto3" json:"rule_version,omitempty"` + PolicyName string `protobuf:"bytes,3,opt,name=policy_name,json=policyName,proto3" json:"policy_name,omitempty"` + PolicyVersion string `protobuf:"bytes,4,opt,name=policy_version,json=policyVersion,proto3" json:"policy_version,omitempty"` + RuleTags map[string]string `protobuf:"bytes,5,rep,name=rule_tags,json=ruleTags,proto3" json:"rule_tags,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` +} + +func (x *MatchedRule) Reset() { + *x = MatchedRule{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_cws_dumpsv1_activity_dump_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MatchedRule) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MatchedRule) ProtoMessage() {} + +func (x *MatchedRule) ProtoReflect() protoreflect.Message { + mi := &file_proto_cws_dumpsv1_activity_dump_proto_msgTypes[13] + 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 MatchedRule.ProtoReflect.Descriptor instead. +func (*MatchedRule) Descriptor() ([]byte, []int) { + return file_proto_cws_dumpsv1_activity_dump_proto_rawDescGZIP(), []int{13} +} + +func (x *MatchedRule) GetRuleId() string { + if x != nil { + return x.RuleId + } + return "" +} + +func (x *MatchedRule) GetRuleVersion() string { + if x != nil { + return x.RuleVersion + } + return "" +} + +func (x *MatchedRule) GetPolicyName() string { + if x != nil { + return x.PolicyName + } + return "" +} + +func (x *MatchedRule) GetPolicyVersion() string { + if x != nil { + return x.PolicyVersion + } + return "" +} + +func (x *MatchedRule) GetRuleTags() map[string]string { + if x != nil { + return x.RuleTags + } + return nil +} + +var File_proto_cws_dumpsv1_activity_dump_proto protoreflect.FileDescriptor + +var file_proto_cws_dumpsv1_activity_dump_proto_rawDesc = []byte{ + 0x0a, 0x25, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x77, 0x73, 0x2f, 0x64, 0x75, 0x6d, 0x70, + 0x73, 0x76, 0x31, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x5f, 0x64, 0x75, 0x6d, + 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x13, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, + 0x2e, 0x63, 0x77, 0x73, 0x2e, 0x64, 0x75, 0x6d, 0x70, 0x73, 0x76, 0x31, 0x22, 0xe1, 0x01, 0x0a, + 0x0c, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x44, 0x75, 0x6d, 0x70, 0x12, 0x12, 0x0a, + 0x04, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x68, 0x6f, 0x73, + 0x74, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x12, 0x39, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, + 0x63, 0x77, 0x73, 0x2e, 0x64, 0x75, 0x6d, 0x70, 0x73, 0x76, 0x31, 0x2e, 0x4d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x12, + 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x74, 0x61, + 0x67, 0x73, 0x12, 0x3c, 0x0a, 0x04, 0x74, 0x72, 0x65, 0x65, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x28, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x63, 0x77, 0x73, 0x2e, 0x64, + 0x75, 0x6d, 0x70, 0x73, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x41, 0x63, + 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x74, 0x72, 0x65, 0x65, + 0x22, 0xc3, 0x03, 0x0a, 0x08, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x23, 0x0a, + 0x0d, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, + 0x6f, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, + 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x43, + 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x12, 0x25, 0x0a, 0x0e, 0x6b, 0x65, 0x72, 0x6e, 0x65, 0x6c, 0x5f, + 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6b, + 0x65, 0x72, 0x6e, 0x65, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x2d, 0x0a, 0x12, + 0x6c, 0x69, 0x6e, 0x75, 0x78, 0x5f, 0x64, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, + 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x6c, 0x69, 0x6e, 0x75, 0x78, 0x44, + 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x61, + 0x72, 0x63, 0x68, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x61, 0x72, 0x63, 0x68, 0x12, + 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x12, 0x29, 0x0a, 0x10, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, + 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x2d, + 0x0a, 0x12, 0x64, 0x69, 0x66, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x74, 0x65, 0x5f, + 0x61, 0x72, 0x67, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x11, 0x64, 0x69, 0x66, 0x66, + 0x65, 0x72, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x74, 0x65, 0x41, 0x72, 0x67, 0x73, 0x12, 0x12, 0x0a, + 0x04, 0x63, 0x6f, 0x6d, 0x6d, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x6f, 0x6d, + 0x6d, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x5f, 0x69, + 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, + 0x65, 0x72, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x72, 0x74, 0x18, 0x0a, 0x20, + 0x01, 0x28, 0x04, 0x52, 0x05, 0x73, 0x74, 0x61, 0x72, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x65, 0x6e, + 0x64, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x65, 0x6e, 0x64, 0x12, 0x12, 0x0a, 0x04, + 0x73, 0x69, 0x7a, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, + 0x12, 0x24, 0x0a, 0x0d, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x69, + 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xec, 0x01, 0x0a, 0x0f, 0x53, 0x65, 0x63, 0x75, 0x72, + 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x39, 0x0a, 0x08, + 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, + 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x63, 0x77, 0x73, 0x2e, 0x64, 0x75, 0x6d, + 0x70, 0x73, 0x76, 0x31, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, + 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x73, + 0x79, 0x73, 0x63, 0x61, 0x6c, 0x6c, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x08, 0x73, + 0x79, 0x73, 0x63, 0x61, 0x6c, 0x6c, 0x73, 0x12, 0x3c, 0x0a, 0x04, 0x74, 0x72, 0x65, 0x65, 0x18, + 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, + 0x63, 0x77, 0x73, 0x2e, 0x64, 0x75, 0x6d, 0x70, 0x73, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x63, + 0x65, 0x73, 0x73, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x4e, 0x6f, 0x64, 0x65, 0x52, + 0x04, 0x74, 0x72, 0x65, 0x65, 0x22, 0x81, 0x04, 0x0a, 0x13, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, + 0x73, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x3a, 0x0a, + 0x07, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, + 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x63, 0x77, 0x73, 0x2e, 0x64, 0x75, 0x6d, + 0x70, 0x73, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x49, 0x6e, 0x66, 0x6f, + 0x52, 0x07, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x12, 0x4c, 0x0a, 0x0f, 0x67, 0x65, 0x6e, + 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x08, 0x20, 0x01, + 0x28, 0x0e, 0x32, 0x23, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x63, 0x77, 0x73, + 0x2e, 0x64, 0x75, 0x6d, 0x70, 0x73, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x45, 0x0a, 0x0d, 0x6d, 0x61, 0x74, 0x63, 0x68, + 0x65, 0x64, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, + 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x63, 0x77, 0x73, 0x2e, 0x64, 0x75, 0x6d, + 0x70, 0x73, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x64, 0x52, 0x75, 0x6c, 0x65, + 0x52, 0x0c, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x64, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x12, 0x44, + 0x0a, 0x08, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x72, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x28, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x63, 0x77, 0x73, 0x2e, 0x64, + 0x75, 0x6d, 0x70, 0x73, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x41, 0x63, + 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x08, 0x63, 0x68, 0x69, 0x6c, + 0x64, 0x72, 0x65, 0x6e, 0x12, 0x3b, 0x0a, 0x05, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x18, 0x04, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x63, 0x77, + 0x73, 0x2e, 0x64, 0x75, 0x6d, 0x70, 0x73, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x41, 0x63, + 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x05, 0x66, 0x69, 0x6c, 0x65, + 0x73, 0x12, 0x39, 0x0a, 0x09, 0x64, 0x6e, 0x73, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x05, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x63, + 0x77, 0x73, 0x2e, 0x64, 0x75, 0x6d, 0x70, 0x73, 0x76, 0x31, 0x2e, 0x44, 0x4e, 0x53, 0x4e, 0x6f, + 0x64, 0x65, 0x52, 0x08, 0x64, 0x6e, 0x73, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x39, 0x0a, 0x07, + 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, + 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x63, 0x77, 0x73, 0x2e, 0x64, 0x75, 0x6d, 0x70, + 0x73, 0x76, 0x31, 0x2e, 0x53, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x07, + 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x79, 0x73, 0x63, 0x61, + 0x6c, 0x6c, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x08, 0x73, 0x79, 0x73, 0x63, 0x61, + 0x6c, 0x6c, 0x73, 0x4a, 0x04, 0x08, 0x02, 0x10, 0x03, 0x22, 0xd1, 0x04, 0x0a, 0x0b, 0x50, 0x72, + 0x6f, 0x63, 0x65, 0x73, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x10, 0x0a, 0x03, 0x70, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, 0x70, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x74, + 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, 0x74, 0x69, 0x64, 0x12, 0x12, 0x0a, + 0x04, 0x70, 0x70, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x70, 0x70, 0x69, + 0x64, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x6f, 0x6f, 0x6b, 0x69, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x0d, 0x52, 0x06, 0x63, 0x6f, 0x6f, 0x6b, 0x69, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x69, 0x73, 0x5f, + 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x69, 0x73, + 0x54, 0x68, 0x72, 0x65, 0x61, 0x64, 0x12, 0x31, 0x0a, 0x04, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x06, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x63, + 0x77, 0x73, 0x2e, 0x64, 0x75, 0x6d, 0x70, 0x73, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x49, + 0x6e, 0x66, 0x6f, 0x52, 0x04, 0x66, 0x69, 0x6c, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6f, 0x6e, + 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, + 0x73, 0x70, 0x61, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x73, + 0x70, 0x61, 0x6e, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x72, 0x61, 0x63, 0x65, 0x5f, 0x69, + 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x74, 0x72, 0x61, 0x63, 0x65, 0x49, 0x64, + 0x12, 0x10, 0x0a, 0x03, 0x74, 0x74, 0x79, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x74, + 0x74, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x6d, 0x6d, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x04, 0x63, 0x6f, 0x6d, 0x6d, 0x12, 0x1b, 0x0a, 0x09, 0x66, 0x6f, 0x72, 0x6b, 0x5f, 0x74, + 0x69, 0x6d, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x66, 0x6f, 0x72, 0x6b, 0x54, + 0x69, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x78, 0x69, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, + 0x18, 0x0d, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x65, 0x78, 0x69, 0x74, 0x54, 0x69, 0x6d, 0x65, + 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x78, 0x65, 0x63, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x0e, 0x20, + 0x01, 0x28, 0x04, 0x52, 0x08, 0x65, 0x78, 0x65, 0x63, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x42, 0x0a, + 0x0b, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x18, 0x0f, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x63, 0x77, 0x73, + 0x2e, 0x64, 0x75, 0x6d, 0x70, 0x73, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, + 0x69, 0x61, 0x6c, 0x73, 0x52, 0x0b, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, + 0x73, 0x12, 0x12, 0x0a, 0x04, 0x61, 0x72, 0x67, 0x73, 0x18, 0x10, 0x20, 0x03, 0x28, 0x09, 0x52, + 0x04, 0x61, 0x72, 0x67, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x72, 0x67, 0x76, 0x30, 0x18, 0x11, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x72, 0x67, 0x76, 0x30, 0x12, 0x25, 0x0a, 0x0e, 0x61, + 0x72, 0x67, 0x73, 0x5f, 0x74, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x64, 0x18, 0x12, 0x20, + 0x01, 0x28, 0x08, 0x52, 0x0d, 0x61, 0x72, 0x67, 0x73, 0x54, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, + 0x65, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x65, 0x6e, 0x76, 0x73, 0x18, 0x13, 0x20, 0x03, 0x28, 0x09, + 0x52, 0x04, 0x65, 0x6e, 0x76, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x65, 0x6e, 0x76, 0x73, 0x5f, 0x74, + 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x64, 0x18, 0x14, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, + 0x65, 0x6e, 0x76, 0x73, 0x54, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x64, 0x22, 0xa8, 0x03, + 0x0a, 0x10, 0x46, 0x69, 0x6c, 0x65, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x4e, 0x6f, + 0x64, 0x65, 0x12, 0x45, 0x0a, 0x0d, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x64, 0x5f, 0x72, 0x75, + 0x6c, 0x65, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x64, 0x61, 0x74, 0x61, + 0x64, 0x6f, 0x67, 0x2e, 0x63, 0x77, 0x73, 0x2e, 0x64, 0x75, 0x6d, 0x70, 0x73, 0x76, 0x31, 0x2e, + 0x4d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x64, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x0c, 0x6d, 0x61, 0x74, + 0x63, 0x68, 0x65, 0x64, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, + 0x0a, 0x69, 0x73, 0x5f, 0x70, 0x61, 0x74, 0x74, 0x65, 0x72, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, + 0x08, 0x52, 0x09, 0x69, 0x73, 0x50, 0x61, 0x74, 0x74, 0x65, 0x72, 0x6e, 0x12, 0x31, 0x0a, 0x04, + 0x66, 0x69, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x64, 0x61, 0x74, + 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x63, 0x77, 0x73, 0x2e, 0x64, 0x75, 0x6d, 0x70, 0x73, 0x76, 0x31, + 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x04, 0x66, 0x69, 0x6c, 0x65, 0x12, + 0x4c, 0x0a, 0x0f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x79, + 0x70, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x23, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, + 0x6f, 0x67, 0x2e, 0x63, 0x77, 0x73, 0x2e, 0x64, 0x75, 0x6d, 0x70, 0x73, 0x76, 0x31, 0x2e, 0x47, + 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0e, 0x67, + 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1d, 0x0a, + 0x0a, 0x66, 0x69, 0x72, 0x73, 0x74, 0x5f, 0x73, 0x65, 0x65, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x04, 0x52, 0x09, 0x66, 0x69, 0x72, 0x73, 0x74, 0x53, 0x65, 0x65, 0x6e, 0x12, 0x31, 0x0a, 0x04, + 0x6f, 0x70, 0x65, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x64, 0x61, 0x74, + 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x63, 0x77, 0x73, 0x2e, 0x64, 0x75, 0x6d, 0x70, 0x73, 0x76, 0x31, + 0x2e, 0x4f, 0x70, 0x65, 0x6e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x6f, 0x70, 0x65, 0x6e, 0x12, + 0x41, 0x0a, 0x08, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x72, 0x65, 0x6e, 0x18, 0x06, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x25, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x63, 0x77, 0x73, 0x2e, + 0x64, 0x75, 0x6d, 0x70, 0x73, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x41, 0x63, 0x74, 0x69, + 0x76, 0x69, 0x74, 0x79, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x08, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x72, + 0x65, 0x6e, 0x4a, 0x04, 0x08, 0x03, 0x10, 0x04, 0x22, 0x4c, 0x0a, 0x08, 0x4f, 0x70, 0x65, 0x6e, + 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x74, 0x76, 0x61, 0x6c, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x12, 0x52, 0x06, 0x72, 0x65, 0x74, 0x76, 0x61, 0x6c, 0x12, 0x14, 0x0a, 0x05, + 0x66, 0x6c, 0x61, 0x67, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x66, 0x6c, 0x61, + 0x67, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, + 0x52, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x22, 0x8a, 0x01, 0x0a, 0x07, 0x44, 0x4e, 0x53, 0x4e, 0x6f, + 0x64, 0x65, 0x12, 0x45, 0x0a, 0x0d, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x64, 0x5f, 0x72, 0x75, + 0x6c, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x64, 0x61, 0x74, 0x61, + 0x64, 0x6f, 0x67, 0x2e, 0x63, 0x77, 0x73, 0x2e, 0x64, 0x75, 0x6d, 0x70, 0x73, 0x76, 0x31, 0x2e, + 0x4d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x64, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x0c, 0x6d, 0x61, 0x74, + 0x63, 0x68, 0x65, 0x64, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x12, 0x38, 0x0a, 0x08, 0x72, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x64, 0x61, + 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x63, 0x77, 0x73, 0x2e, 0x64, 0x75, 0x6d, 0x70, 0x73, 0x76, + 0x31, 0x2e, 0x44, 0x4e, 0x53, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x08, 0x72, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x73, 0x22, 0x71, 0x0a, 0x07, 0x44, 0x4e, 0x53, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x12, + 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, + 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, + 0x73, 0x69, 0x7a, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, + 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52, + 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0xba, 0x03, 0x0a, 0x08, 0x46, 0x69, 0x6c, 0x65, 0x49, + 0x6e, 0x66, 0x6f, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, + 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x10, 0x0a, 0x03, 0x67, 0x69, 0x64, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, 0x67, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x67, + 0x72, 0x6f, 0x75, 0x70, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x67, 0x72, 0x6f, 0x75, + 0x70, 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52, + 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x06, + 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x63, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x6d, + 0x74, 0x69, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x6d, 0x74, 0x69, 0x6d, + 0x65, 0x12, 0x19, 0x0a, 0x08, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x08, 0x20, + 0x01, 0x28, 0x0d, 0x52, 0x07, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, + 0x69, 0x6e, 0x6f, 0x64, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x69, 0x6e, 0x6f, + 0x64, 0x65, 0x12, 0x24, 0x0a, 0x0e, 0x69, 0x6e, 0x5f, 0x75, 0x70, 0x70, 0x65, 0x72, 0x5f, 0x6c, + 0x61, 0x79, 0x65, 0x72, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x69, 0x6e, 0x55, 0x70, + 0x70, 0x65, 0x72, 0x4c, 0x61, 0x79, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, + 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x1a, 0x0a, 0x08, + 0x62, 0x61, 0x73, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, + 0x62, 0x61, 0x73, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x66, 0x69, 0x6c, 0x65, + 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x66, 0x69, + 0x6c, 0x65, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x61, 0x63, 0x6b, + 0x61, 0x67, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, + 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x70, + 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x0f, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x56, 0x65, 0x72, + 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x2d, 0x0a, 0x12, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x5f, + 0x73, 0x72, 0x63, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x10, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x11, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x53, 0x72, 0x63, 0x76, 0x65, 0x72, 0x73, + 0x69, 0x6f, 0x6e, 0x22, 0xa1, 0x03, 0x0a, 0x0b, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, + 0x61, 0x6c, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, + 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x67, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0d, 0x52, 0x03, 0x67, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x67, + 0x72, 0x6f, 0x75, 0x70, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x67, 0x72, 0x6f, 0x75, + 0x70, 0x12, 0x23, 0x0a, 0x0d, 0x65, 0x66, 0x66, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x75, + 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0c, 0x65, 0x66, 0x66, 0x65, 0x63, 0x74, + 0x69, 0x76, 0x65, 0x55, 0x69, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x65, 0x66, 0x66, 0x65, 0x63, 0x74, + 0x69, 0x76, 0x65, 0x5f, 0x67, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0c, 0x65, + 0x66, 0x66, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x47, 0x69, 0x64, 0x12, 0x25, 0x0a, 0x0e, 0x65, + 0x66, 0x66, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x18, 0x07, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0d, 0x65, 0x66, 0x66, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x55, 0x73, + 0x65, 0x72, 0x12, 0x27, 0x0a, 0x0f, 0x65, 0x66, 0x66, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x5f, + 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x65, 0x66, 0x66, + 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x15, 0x0a, 0x06, 0x66, + 0x73, 0x5f, 0x75, 0x69, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x66, 0x73, 0x55, + 0x69, 0x64, 0x12, 0x15, 0x0a, 0x06, 0x66, 0x73, 0x5f, 0x67, 0x69, 0x64, 0x18, 0x0a, 0x20, 0x01, + 0x28, 0x0d, 0x52, 0x05, 0x66, 0x73, 0x47, 0x69, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x66, 0x73, 0x5f, + 0x75, 0x73, 0x65, 0x72, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x73, 0x55, 0x73, + 0x65, 0x72, 0x12, 0x19, 0x0a, 0x08, 0x66, 0x73, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x0c, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x66, 0x73, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x23, 0x0a, + 0x0d, 0x63, 0x61, 0x70, 0x5f, 0x65, 0x66, 0x66, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x18, 0x0d, + 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x63, 0x61, 0x70, 0x45, 0x66, 0x66, 0x65, 0x63, 0x74, 0x69, + 0x76, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x61, 0x70, 0x5f, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x74, + 0x74, 0x65, 0x64, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x63, 0x61, 0x70, 0x50, 0x65, + 0x72, 0x6d, 0x69, 0x74, 0x74, 0x65, 0x64, 0x22, 0x57, 0x0a, 0x0a, 0x53, 0x6f, 0x63, 0x6b, 0x65, + 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x61, 0x6d, 0x69, 0x6c, 0x79, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x61, 0x6d, 0x69, 0x6c, 0x79, 0x12, 0x31, 0x0a, + 0x04, 0x62, 0x69, 0x6e, 0x64, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x64, 0x61, + 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x63, 0x77, 0x73, 0x2e, 0x64, 0x75, 0x6d, 0x70, 0x73, 0x76, + 0x31, 0x2e, 0x42, 0x69, 0x6e, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x62, 0x69, 0x6e, 0x64, + 0x22, 0x75, 0x0a, 0x08, 0x42, 0x69, 0x6e, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x45, 0x0a, 0x0d, + 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x64, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x18, 0x03, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x63, 0x77, + 0x73, 0x2e, 0x64, 0x75, 0x6d, 0x70, 0x73, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x65, + 0x64, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x0c, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x64, 0x52, 0x75, + 0x6c, 0x65, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0d, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x70, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x70, 0x22, 0x9b, 0x02, 0x0a, 0x0b, 0x4d, 0x61, 0x74, 0x63, + 0x68, 0x65, 0x64, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x72, 0x75, 0x6c, 0x65, 0x5f, + 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x75, 0x6c, 0x65, 0x49, 0x64, + 0x12, 0x21, 0x0a, 0x0c, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x72, 0x75, 0x6c, 0x65, 0x56, 0x65, 0x72, 0x73, + 0x69, 0x6f, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5f, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, + 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5f, 0x76, + 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x70, 0x6f, + 0x6c, 0x69, 0x63, 0x79, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x4b, 0x0a, 0x09, 0x72, + 0x75, 0x6c, 0x65, 0x5f, 0x74, 0x61, 0x67, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e, + 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x63, 0x77, 0x73, 0x2e, 0x64, 0x75, 0x6d, + 0x70, 0x73, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x64, 0x52, 0x75, 0x6c, 0x65, + 0x2e, 0x52, 0x75, 0x6c, 0x65, 0x54, 0x61, 0x67, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, + 0x72, 0x75, 0x6c, 0x65, 0x54, 0x61, 0x67, 0x73, 0x1a, 0x3b, 0x0a, 0x0d, 0x52, 0x75, 0x6c, 0x65, + 0x54, 0x61, 0x67, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x3a, 0x02, 0x38, 0x01, 0x2a, 0x38, 0x0a, 0x0e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, + 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x55, 0x4e, 0x54, 0x49, 0x4d, 0x45, 0x10, + 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x53, 0x4e, 0x41, 0x50, 0x53, 0x48, 0x4f, 0x54, 0x10, 0x02, 0x42, + 0x31, 0x5a, 0x2f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x44, 0x61, + 0x74, 0x61, 0x44, 0x6f, 0x67, 0x2f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2d, 0x70, 0x61, 0x79, 0x6c, + 0x6f, 0x61, 0x64, 0x2f, 0x76, 0x35, 0x2f, 0x63, 0x77, 0x73, 0x2f, 0x64, 0x75, 0x6d, 0x70, 0x73, + 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_proto_cws_dumpsv1_activity_dump_proto_rawDescOnce sync.Once + file_proto_cws_dumpsv1_activity_dump_proto_rawDescData = file_proto_cws_dumpsv1_activity_dump_proto_rawDesc +) + +func file_proto_cws_dumpsv1_activity_dump_proto_rawDescGZIP() []byte { + file_proto_cws_dumpsv1_activity_dump_proto_rawDescOnce.Do(func() { + file_proto_cws_dumpsv1_activity_dump_proto_rawDescData = protoimpl.X.CompressGZIP(file_proto_cws_dumpsv1_activity_dump_proto_rawDescData) + }) + return file_proto_cws_dumpsv1_activity_dump_proto_rawDescData +} + +var file_proto_cws_dumpsv1_activity_dump_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_proto_cws_dumpsv1_activity_dump_proto_msgTypes = make([]protoimpl.MessageInfo, 15) +var file_proto_cws_dumpsv1_activity_dump_proto_goTypes = []interface{}{ + (GenerationType)(0), // 0: datadog.cws.dumpsv1.GenerationType + (*ActivityDump)(nil), // 1: datadog.cws.dumpsv1.ActivityDump + (*Metadata)(nil), // 2: datadog.cws.dumpsv1.Metadata + (*SecurityProfile)(nil), // 3: datadog.cws.dumpsv1.SecurityProfile + (*ProcessActivityNode)(nil), // 4: datadog.cws.dumpsv1.ProcessActivityNode + (*ProcessInfo)(nil), // 5: datadog.cws.dumpsv1.ProcessInfo + (*FileActivityNode)(nil), // 6: datadog.cws.dumpsv1.FileActivityNode + (*OpenNode)(nil), // 7: datadog.cws.dumpsv1.OpenNode + (*DNSNode)(nil), // 8: datadog.cws.dumpsv1.DNSNode + (*DNSInfo)(nil), // 9: datadog.cws.dumpsv1.DNSInfo + (*FileInfo)(nil), // 10: datadog.cws.dumpsv1.FileInfo + (*Credentials)(nil), // 11: datadog.cws.dumpsv1.Credentials + (*SocketNode)(nil), // 12: datadog.cws.dumpsv1.SocketNode + (*BindNode)(nil), // 13: datadog.cws.dumpsv1.BindNode + (*MatchedRule)(nil), // 14: datadog.cws.dumpsv1.MatchedRule + nil, // 15: datadog.cws.dumpsv1.MatchedRule.RuleTagsEntry +} +var file_proto_cws_dumpsv1_activity_dump_proto_depIdxs = []int32{ + 2, // 0: datadog.cws.dumpsv1.ActivityDump.metadata:type_name -> datadog.cws.dumpsv1.Metadata + 4, // 1: datadog.cws.dumpsv1.ActivityDump.tree:type_name -> datadog.cws.dumpsv1.ProcessActivityNode + 2, // 2: datadog.cws.dumpsv1.SecurityProfile.metadata:type_name -> datadog.cws.dumpsv1.Metadata + 4, // 3: datadog.cws.dumpsv1.SecurityProfile.tree:type_name -> datadog.cws.dumpsv1.ProcessActivityNode + 5, // 4: datadog.cws.dumpsv1.ProcessActivityNode.process:type_name -> datadog.cws.dumpsv1.ProcessInfo + 0, // 5: datadog.cws.dumpsv1.ProcessActivityNode.generation_type:type_name -> datadog.cws.dumpsv1.GenerationType + 14, // 6: datadog.cws.dumpsv1.ProcessActivityNode.matched_rules:type_name -> datadog.cws.dumpsv1.MatchedRule + 4, // 7: datadog.cws.dumpsv1.ProcessActivityNode.children:type_name -> datadog.cws.dumpsv1.ProcessActivityNode + 6, // 8: datadog.cws.dumpsv1.ProcessActivityNode.files:type_name -> datadog.cws.dumpsv1.FileActivityNode + 8, // 9: datadog.cws.dumpsv1.ProcessActivityNode.dns_names:type_name -> datadog.cws.dumpsv1.DNSNode + 12, // 10: datadog.cws.dumpsv1.ProcessActivityNode.sockets:type_name -> datadog.cws.dumpsv1.SocketNode + 10, // 11: datadog.cws.dumpsv1.ProcessInfo.file:type_name -> datadog.cws.dumpsv1.FileInfo + 11, // 12: datadog.cws.dumpsv1.ProcessInfo.credentials:type_name -> datadog.cws.dumpsv1.Credentials + 14, // 13: datadog.cws.dumpsv1.FileActivityNode.matched_rules:type_name -> datadog.cws.dumpsv1.MatchedRule + 10, // 14: datadog.cws.dumpsv1.FileActivityNode.file:type_name -> datadog.cws.dumpsv1.FileInfo + 0, // 15: datadog.cws.dumpsv1.FileActivityNode.generation_type:type_name -> datadog.cws.dumpsv1.GenerationType + 7, // 16: datadog.cws.dumpsv1.FileActivityNode.open:type_name -> datadog.cws.dumpsv1.OpenNode + 6, // 17: datadog.cws.dumpsv1.FileActivityNode.children:type_name -> datadog.cws.dumpsv1.FileActivityNode + 14, // 18: datadog.cws.dumpsv1.DNSNode.matched_rules:type_name -> datadog.cws.dumpsv1.MatchedRule + 9, // 19: datadog.cws.dumpsv1.DNSNode.requests:type_name -> datadog.cws.dumpsv1.DNSInfo + 13, // 20: datadog.cws.dumpsv1.SocketNode.bind:type_name -> datadog.cws.dumpsv1.BindNode + 14, // 21: datadog.cws.dumpsv1.BindNode.matched_rules:type_name -> datadog.cws.dumpsv1.MatchedRule + 15, // 22: datadog.cws.dumpsv1.MatchedRule.rule_tags:type_name -> datadog.cws.dumpsv1.MatchedRule.RuleTagsEntry + 23, // [23:23] is the sub-list for method output_type + 23, // [23:23] is the sub-list for method input_type + 23, // [23:23] is the sub-list for extension type_name + 23, // [23:23] is the sub-list for extension extendee + 0, // [0:23] is the sub-list for field type_name +} + +func init() { file_proto_cws_dumpsv1_activity_dump_proto_init() } +func file_proto_cws_dumpsv1_activity_dump_proto_init() { + if File_proto_cws_dumpsv1_activity_dump_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_proto_cws_dumpsv1_activity_dump_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ActivityDump); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_cws_dumpsv1_activity_dump_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Metadata); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_cws_dumpsv1_activity_dump_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SecurityProfile); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_cws_dumpsv1_activity_dump_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ProcessActivityNode); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_cws_dumpsv1_activity_dump_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ProcessInfo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_cws_dumpsv1_activity_dump_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FileActivityNode); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_cws_dumpsv1_activity_dump_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OpenNode); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_cws_dumpsv1_activity_dump_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DNSNode); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_cws_dumpsv1_activity_dump_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DNSInfo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_cws_dumpsv1_activity_dump_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FileInfo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_cws_dumpsv1_activity_dump_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Credentials); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_cws_dumpsv1_activity_dump_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SocketNode); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_cws_dumpsv1_activity_dump_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BindNode); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_cws_dumpsv1_activity_dump_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MatchedRule); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_proto_cws_dumpsv1_activity_dump_proto_rawDesc, + NumEnums: 1, + NumMessages: 15, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_proto_cws_dumpsv1_activity_dump_proto_goTypes, + DependencyIndexes: file_proto_cws_dumpsv1_activity_dump_proto_depIdxs, + EnumInfos: file_proto_cws_dumpsv1_activity_dump_proto_enumTypes, + MessageInfos: file_proto_cws_dumpsv1_activity_dump_proto_msgTypes, + }.Build() + File_proto_cws_dumpsv1_activity_dump_proto = out.File + file_proto_cws_dumpsv1_activity_dump_proto_rawDesc = nil + file_proto_cws_dumpsv1_activity_dump_proto_goTypes = nil + file_proto_cws_dumpsv1_activity_dump_proto_depIdxs = nil +} diff --git a/cws/dumpsv1/activity_dump_vtproto.pb.go b/cws/dumpsv1/activity_dump_vtproto.pb.go new file mode 100644 index 00000000..fc14932c --- /dev/null +++ b/cws/dumpsv1/activity_dump_vtproto.pb.go @@ -0,0 +1,5997 @@ +// Code generated by protoc-gen-go-vtproto. DO NOT EDIT. +// protoc-gen-go-vtproto version: v0.4.0 +// source: proto/cws/dumpsv1/activity_dump.proto + +package dumpsv1 + +import ( + fmt "fmt" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + io "io" + bits "math/bits" +) + +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) +) + +func (m *ActivityDump) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ActivityDump) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *ActivityDump) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.Tree) > 0 { + for iNdEx := len(m.Tree) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Tree[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x32 + } + } + if len(m.Tags) > 0 { + for iNdEx := len(m.Tags) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Tags[iNdEx]) + copy(dAtA[i:], m.Tags[iNdEx]) + i = encodeVarint(dAtA, i, uint64(len(m.Tags[iNdEx]))) + i-- + dAtA[i] = 0x2a + } + } + if m.Metadata != nil { + size, err := m.Metadata.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x22 + } + if len(m.Source) > 0 { + i -= len(m.Source) + copy(dAtA[i:], m.Source) + i = encodeVarint(dAtA, i, uint64(len(m.Source))) + i-- + dAtA[i] = 0x1a + } + if len(m.Service) > 0 { + i -= len(m.Service) + copy(dAtA[i:], m.Service) + i = encodeVarint(dAtA, i, uint64(len(m.Service))) + i-- + dAtA[i] = 0x12 + } + if len(m.Host) > 0 { + i -= len(m.Host) + copy(dAtA[i:], m.Host) + i = encodeVarint(dAtA, i, uint64(len(m.Host))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Metadata) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Metadata) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *Metadata) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.Serialization) > 0 { + i -= len(m.Serialization) + copy(dAtA[i:], m.Serialization) + i = encodeVarint(dAtA, i, uint64(len(m.Serialization))) + i-- + dAtA[i] = 0x72 + } + if len(m.Arch) > 0 { + i -= len(m.Arch) + copy(dAtA[i:], m.Arch) + i = encodeVarint(dAtA, i, uint64(len(m.Arch))) + i-- + dAtA[i] = 0x6a + } + if m.Size != 0 { + i = encodeVarint(dAtA, i, uint64(m.Size)) + i-- + dAtA[i] = 0x60 + } + if m.End != 0 { + i = encodeVarint(dAtA, i, uint64(m.End)) + i-- + dAtA[i] = 0x58 + } + if m.Start != 0 { + i = encodeVarint(dAtA, i, uint64(m.Start)) + i-- + dAtA[i] = 0x50 + } + if len(m.ContainerId) > 0 { + i -= len(m.ContainerId) + copy(dAtA[i:], m.ContainerId) + i = encodeVarint(dAtA, i, uint64(len(m.ContainerId))) + i-- + dAtA[i] = 0x4a + } + if len(m.Comm) > 0 { + i -= len(m.Comm) + copy(dAtA[i:], m.Comm) + i = encodeVarint(dAtA, i, uint64(len(m.Comm))) + i-- + dAtA[i] = 0x42 + } + if m.DifferentiateArgs { + i-- + if m.DifferentiateArgs { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x38 + } + if len(m.ProtobufVersion) > 0 { + i -= len(m.ProtobufVersion) + copy(dAtA[i:], m.ProtobufVersion) + i = encodeVarint(dAtA, i, uint64(len(m.ProtobufVersion))) + i-- + dAtA[i] = 0x32 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarint(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x2a + } + if len(m.LinuxDistribution) > 0 { + i -= len(m.LinuxDistribution) + copy(dAtA[i:], m.LinuxDistribution) + i = encodeVarint(dAtA, i, uint64(len(m.LinuxDistribution))) + i-- + dAtA[i] = 0x22 + } + if len(m.KernelVersion) > 0 { + i -= len(m.KernelVersion) + copy(dAtA[i:], m.KernelVersion) + i = encodeVarint(dAtA, i, uint64(len(m.KernelVersion))) + i-- + dAtA[i] = 0x1a + } + if len(m.AgentCommit) > 0 { + i -= len(m.AgentCommit) + copy(dAtA[i:], m.AgentCommit) + i = encodeVarint(dAtA, i, uint64(len(m.AgentCommit))) + i-- + dAtA[i] = 0x12 + } + if len(m.AgentVersion) > 0 { + i -= len(m.AgentVersion) + copy(dAtA[i:], m.AgentVersion) + i = encodeVarint(dAtA, i, uint64(len(m.AgentVersion))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *SecurityProfile) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SecurityProfile) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *SecurityProfile) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.Tree) > 0 { + for iNdEx := len(m.Tree) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Tree[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x32 + } + } + if len(m.Syscalls) > 0 { + var pksize2 int + for _, num := range m.Syscalls { + pksize2 += sov(uint64(num)) + } + i -= pksize2 + j1 := i + for _, num := range m.Syscalls { + for num >= 1<<7 { + dAtA[j1] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j1++ + } + dAtA[j1] = uint8(num) + j1++ + } + i = encodeVarint(dAtA, i, uint64(pksize2)) + i-- + dAtA[i] = 0x2a + } + if len(m.Tags) > 0 { + for iNdEx := len(m.Tags) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Tags[iNdEx]) + copy(dAtA[i:], m.Tags[iNdEx]) + i = encodeVarint(dAtA, i, uint64(len(m.Tags[iNdEx]))) + i-- + dAtA[i] = 0x22 + } + } + if m.Metadata != nil { + size, err := m.Metadata.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x1a + } + if len(m.Version) > 0 { + i -= len(m.Version) + copy(dAtA[i:], m.Version) + i = encodeVarint(dAtA, i, uint64(len(m.Version))) + i-- + dAtA[i] = 0x12 + } + if m.Status != 0 { + i = encodeVarint(dAtA, i, uint64(m.Status)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *ProcessActivityNode) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ProcessActivityNode) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *ProcessActivityNode) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.MatchedRules) > 0 { + for iNdEx := len(m.MatchedRules) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.MatchedRules[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x4a + } + } + if m.GenerationType != 0 { + i = encodeVarint(dAtA, i, uint64(m.GenerationType)) + i-- + dAtA[i] = 0x40 + } + if len(m.Syscalls) > 0 { + var pksize2 int + for _, num := range m.Syscalls { + pksize2 += sov(uint64(num)) + } + i -= pksize2 + j1 := i + for _, num := range m.Syscalls { + for num >= 1<<7 { + dAtA[j1] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j1++ + } + dAtA[j1] = uint8(num) + j1++ + } + i = encodeVarint(dAtA, i, uint64(pksize2)) + i-- + dAtA[i] = 0x3a + } + if len(m.Sockets) > 0 { + for iNdEx := len(m.Sockets) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Sockets[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x32 + } + } + if len(m.DnsNames) > 0 { + for iNdEx := len(m.DnsNames) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.DnsNames[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x2a + } + } + if len(m.Files) > 0 { + for iNdEx := len(m.Files) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Files[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x22 + } + } + if len(m.Children) > 0 { + for iNdEx := len(m.Children) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Children[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x1a + } + } + if m.Process != nil { + size, err := m.Process.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ProcessInfo) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ProcessInfo) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *ProcessInfo) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.EnvsTruncated { + i-- + if m.EnvsTruncated { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xa0 + } + if len(m.Envs) > 0 { + for iNdEx := len(m.Envs) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Envs[iNdEx]) + copy(dAtA[i:], m.Envs[iNdEx]) + i = encodeVarint(dAtA, i, uint64(len(m.Envs[iNdEx]))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x9a + } + } + if m.ArgsTruncated { + i-- + if m.ArgsTruncated { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x90 + } + if len(m.Argv0) > 0 { + i -= len(m.Argv0) + copy(dAtA[i:], m.Argv0) + i = encodeVarint(dAtA, i, uint64(len(m.Argv0))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x8a + } + if len(m.Args) > 0 { + for iNdEx := len(m.Args) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Args[iNdEx]) + copy(dAtA[i:], m.Args[iNdEx]) + i = encodeVarint(dAtA, i, uint64(len(m.Args[iNdEx]))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x82 + } + } + if m.Credentials != nil { + size, err := m.Credentials.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x7a + } + if m.ExecTime != 0 { + i = encodeVarint(dAtA, i, uint64(m.ExecTime)) + i-- + dAtA[i] = 0x70 + } + if m.ExitTime != 0 { + i = encodeVarint(dAtA, i, uint64(m.ExitTime)) + i-- + dAtA[i] = 0x68 + } + if m.ForkTime != 0 { + i = encodeVarint(dAtA, i, uint64(m.ForkTime)) + i-- + dAtA[i] = 0x60 + } + if len(m.Comm) > 0 { + i -= len(m.Comm) + copy(dAtA[i:], m.Comm) + i = encodeVarint(dAtA, i, uint64(len(m.Comm))) + i-- + dAtA[i] = 0x5a + } + if len(m.Tty) > 0 { + i -= len(m.Tty) + copy(dAtA[i:], m.Tty) + i = encodeVarint(dAtA, i, uint64(len(m.Tty))) + i-- + dAtA[i] = 0x52 + } + if m.TraceId != 0 { + i = encodeVarint(dAtA, i, uint64(m.TraceId)) + i-- + dAtA[i] = 0x48 + } + if m.SpanId != 0 { + i = encodeVarint(dAtA, i, uint64(m.SpanId)) + i-- + dAtA[i] = 0x40 + } + if len(m.ContainerId) > 0 { + i -= len(m.ContainerId) + copy(dAtA[i:], m.ContainerId) + i = encodeVarint(dAtA, i, uint64(len(m.ContainerId))) + i-- + dAtA[i] = 0x3a + } + if m.File != nil { + size, err := m.File.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x32 + } + if m.IsThread { + i-- + if m.IsThread { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x28 + } + if m.Cookie != 0 { + i = encodeVarint(dAtA, i, uint64(m.Cookie)) + i-- + dAtA[i] = 0x20 + } + if m.Ppid != 0 { + i = encodeVarint(dAtA, i, uint64(m.Ppid)) + i-- + dAtA[i] = 0x18 + } + if m.Tid != 0 { + i = encodeVarint(dAtA, i, uint64(m.Tid)) + i-- + dAtA[i] = 0x10 + } + if m.Pid != 0 { + i = encodeVarint(dAtA, i, uint64(m.Pid)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *FileActivityNode) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *FileActivityNode) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *FileActivityNode) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.MatchedRules) > 0 { + for iNdEx := len(m.MatchedRules) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.MatchedRules[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x4a + } + } + if m.GenerationType != 0 { + i = encodeVarint(dAtA, i, uint64(m.GenerationType)) + i-- + dAtA[i] = 0x40 + } + if m.IsPattern { + i-- + if m.IsPattern { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x38 + } + if len(m.Children) > 0 { + for iNdEx := len(m.Children) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Children[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x32 + } + } + if m.Open != nil { + size, err := m.Open.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x2a + } + if m.FirstSeen != 0 { + i = encodeVarint(dAtA, i, uint64(m.FirstSeen)) + i-- + dAtA[i] = 0x20 + } + if m.File != nil { + size, err := m.File.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarint(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *OpenNode) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *OpenNode) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *OpenNode) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.Mode != 0 { + i = encodeVarint(dAtA, i, uint64(m.Mode)) + i-- + dAtA[i] = 0x18 + } + if m.Flags != 0 { + i = encodeVarint(dAtA, i, uint64(m.Flags)) + i-- + dAtA[i] = 0x10 + } + if m.Retval != 0 { + i = encodeVarint(dAtA, i, uint64((uint64(m.Retval)<<1)^uint64((m.Retval>>63)))) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *DNSNode) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *DNSNode) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *DNSNode) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.MatchedRules) > 0 { + for iNdEx := len(m.MatchedRules) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.MatchedRules[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 + } + } + if len(m.Requests) > 0 { + for iNdEx := len(m.Requests) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Requests[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *DNSInfo) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *DNSInfo) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *DNSInfo) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.Count != 0 { + i = encodeVarint(dAtA, i, uint64(m.Count)) + i-- + dAtA[i] = 0x28 + } + if m.Size != 0 { + i = encodeVarint(dAtA, i, uint64(m.Size)) + i-- + dAtA[i] = 0x20 + } + if m.Class != 0 { + i = encodeVarint(dAtA, i, uint64(m.Class)) + i-- + dAtA[i] = 0x18 + } + if m.Type != 0 { + i = encodeVarint(dAtA, i, uint64(m.Type)) + i-- + dAtA[i] = 0x10 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarint(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *FileInfo) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *FileInfo) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *FileInfo) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.PackageSrcversion) > 0 { + i -= len(m.PackageSrcversion) + copy(dAtA[i:], m.PackageSrcversion) + i = encodeVarint(dAtA, i, uint64(len(m.PackageSrcversion))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x82 + } + if len(m.PackageVersion) > 0 { + i -= len(m.PackageVersion) + copy(dAtA[i:], m.PackageVersion) + i = encodeVarint(dAtA, i, uint64(len(m.PackageVersion))) + i-- + dAtA[i] = 0x7a + } + if len(m.PackageName) > 0 { + i -= len(m.PackageName) + copy(dAtA[i:], m.PackageName) + i = encodeVarint(dAtA, i, uint64(len(m.PackageName))) + i-- + dAtA[i] = 0x72 + } + if len(m.Filesystem) > 0 { + i -= len(m.Filesystem) + copy(dAtA[i:], m.Filesystem) + i = encodeVarint(dAtA, i, uint64(len(m.Filesystem))) + i-- + dAtA[i] = 0x6a + } + if len(m.Basename) > 0 { + i -= len(m.Basename) + copy(dAtA[i:], m.Basename) + i = encodeVarint(dAtA, i, uint64(len(m.Basename))) + i-- + dAtA[i] = 0x62 + } + if len(m.Path) > 0 { + i -= len(m.Path) + copy(dAtA[i:], m.Path) + i = encodeVarint(dAtA, i, uint64(len(m.Path))) + i-- + dAtA[i] = 0x5a + } + if m.InUpperLayer { + i-- + if m.InUpperLayer { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x50 + } + if m.Inode != 0 { + i = encodeVarint(dAtA, i, uint64(m.Inode)) + i-- + dAtA[i] = 0x48 + } + if m.MountId != 0 { + i = encodeVarint(dAtA, i, uint64(m.MountId)) + i-- + dAtA[i] = 0x40 + } + if m.Mtime != 0 { + i = encodeVarint(dAtA, i, uint64(m.Mtime)) + i-- + dAtA[i] = 0x38 + } + if m.Ctime != 0 { + i = encodeVarint(dAtA, i, uint64(m.Ctime)) + i-- + dAtA[i] = 0x30 + } + if m.Mode != 0 { + i = encodeVarint(dAtA, i, uint64(m.Mode)) + i-- + dAtA[i] = 0x28 + } + if len(m.Group) > 0 { + i -= len(m.Group) + copy(dAtA[i:], m.Group) + i = encodeVarint(dAtA, i, uint64(len(m.Group))) + i-- + dAtA[i] = 0x22 + } + if m.Gid != 0 { + i = encodeVarint(dAtA, i, uint64(m.Gid)) + i-- + dAtA[i] = 0x18 + } + if len(m.User) > 0 { + i -= len(m.User) + copy(dAtA[i:], m.User) + i = encodeVarint(dAtA, i, uint64(len(m.User))) + i-- + dAtA[i] = 0x12 + } + if m.Uid != 0 { + i = encodeVarint(dAtA, i, uint64(m.Uid)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *Credentials) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Credentials) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *Credentials) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.CapPermitted != 0 { + i = encodeVarint(dAtA, i, uint64(m.CapPermitted)) + i-- + dAtA[i] = 0x70 + } + if m.CapEffective != 0 { + i = encodeVarint(dAtA, i, uint64(m.CapEffective)) + i-- + dAtA[i] = 0x68 + } + if len(m.FsGroup) > 0 { + i -= len(m.FsGroup) + copy(dAtA[i:], m.FsGroup) + i = encodeVarint(dAtA, i, uint64(len(m.FsGroup))) + i-- + dAtA[i] = 0x62 + } + if len(m.FsUser) > 0 { + i -= len(m.FsUser) + copy(dAtA[i:], m.FsUser) + i = encodeVarint(dAtA, i, uint64(len(m.FsUser))) + i-- + dAtA[i] = 0x5a + } + if m.FsGid != 0 { + i = encodeVarint(dAtA, i, uint64(m.FsGid)) + i-- + dAtA[i] = 0x50 + } + if m.FsUid != 0 { + i = encodeVarint(dAtA, i, uint64(m.FsUid)) + i-- + dAtA[i] = 0x48 + } + if len(m.EffectiveGroup) > 0 { + i -= len(m.EffectiveGroup) + copy(dAtA[i:], m.EffectiveGroup) + i = encodeVarint(dAtA, i, uint64(len(m.EffectiveGroup))) + i-- + dAtA[i] = 0x42 + } + if len(m.EffectiveUser) > 0 { + i -= len(m.EffectiveUser) + copy(dAtA[i:], m.EffectiveUser) + i = encodeVarint(dAtA, i, uint64(len(m.EffectiveUser))) + i-- + dAtA[i] = 0x3a + } + if m.EffectiveGid != 0 { + i = encodeVarint(dAtA, i, uint64(m.EffectiveGid)) + i-- + dAtA[i] = 0x30 + } + if m.EffectiveUid != 0 { + i = encodeVarint(dAtA, i, uint64(m.EffectiveUid)) + i-- + dAtA[i] = 0x28 + } + if len(m.Group) > 0 { + i -= len(m.Group) + copy(dAtA[i:], m.Group) + i = encodeVarint(dAtA, i, uint64(len(m.Group))) + i-- + dAtA[i] = 0x22 + } + if len(m.User) > 0 { + i -= len(m.User) + copy(dAtA[i:], m.User) + i = encodeVarint(dAtA, i, uint64(len(m.User))) + i-- + dAtA[i] = 0x1a + } + if m.Gid != 0 { + i = encodeVarint(dAtA, i, uint64(m.Gid)) + i-- + dAtA[i] = 0x10 + } + if m.Uid != 0 { + i = encodeVarint(dAtA, i, uint64(m.Uid)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *SocketNode) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SocketNode) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *SocketNode) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.Bind) > 0 { + for iNdEx := len(m.Bind) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Bind[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 + } + } + if len(m.Family) > 0 { + i -= len(m.Family) + copy(dAtA[i:], m.Family) + i = encodeVarint(dAtA, i, uint64(len(m.Family))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *BindNode) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BindNode) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *BindNode) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.MatchedRules) > 0 { + for iNdEx := len(m.MatchedRules) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.MatchedRules[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x1a + } + } + if len(m.Ip) > 0 { + i -= len(m.Ip) + copy(dAtA[i:], m.Ip) + i = encodeVarint(dAtA, i, uint64(len(m.Ip))) + i-- + dAtA[i] = 0x12 + } + if m.Port != 0 { + i = encodeVarint(dAtA, i, uint64(m.Port)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *MatchedRule) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MatchedRule) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *MatchedRule) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.RuleTags) > 0 { + for k := range m.RuleTags { + v := m.RuleTags[k] + baseI := i + i -= len(v) + copy(dAtA[i:], v) + i = encodeVarint(dAtA, i, uint64(len(v))) + i-- + dAtA[i] = 0x12 + i -= len(k) + copy(dAtA[i:], k) + i = encodeVarint(dAtA, i, uint64(len(k))) + i-- + dAtA[i] = 0xa + i = encodeVarint(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0x2a + } + } + if len(m.PolicyVersion) > 0 { + i -= len(m.PolicyVersion) + copy(dAtA[i:], m.PolicyVersion) + i = encodeVarint(dAtA, i, uint64(len(m.PolicyVersion))) + i-- + dAtA[i] = 0x22 + } + if len(m.PolicyName) > 0 { + i -= len(m.PolicyName) + copy(dAtA[i:], m.PolicyName) + i = encodeVarint(dAtA, i, uint64(len(m.PolicyName))) + i-- + dAtA[i] = 0x1a + } + if len(m.RuleVersion) > 0 { + i -= len(m.RuleVersion) + copy(dAtA[i:], m.RuleVersion) + i = encodeVarint(dAtA, i, uint64(len(m.RuleVersion))) + i-- + dAtA[i] = 0x12 + } + if len(m.RuleId) > 0 { + i -= len(m.RuleId) + copy(dAtA[i:], m.RuleId) + i = encodeVarint(dAtA, i, uint64(len(m.RuleId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarint(dAtA []byte, offset int, v uint64) int { + offset -= sov(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *ActivityDump) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Host) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.Service) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.Source) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.Metadata != nil { + l = m.Metadata.SizeVT() + n += 1 + l + sov(uint64(l)) + } + if len(m.Tags) > 0 { + for _, s := range m.Tags { + l = len(s) + n += 1 + l + sov(uint64(l)) + } + } + if len(m.Tree) > 0 { + for _, e := range m.Tree { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *Metadata) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.AgentVersion) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.AgentCommit) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.KernelVersion) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.LinuxDistribution) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.ProtobufVersion) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.DifferentiateArgs { + n += 2 + } + l = len(m.Comm) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.ContainerId) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.Start != 0 { + n += 1 + sov(uint64(m.Start)) + } + if m.End != 0 { + n += 1 + sov(uint64(m.End)) + } + if m.Size != 0 { + n += 1 + sov(uint64(m.Size)) + } + l = len(m.Arch) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.Serialization) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *SecurityProfile) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Status != 0 { + n += 1 + sov(uint64(m.Status)) + } + l = len(m.Version) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.Metadata != nil { + l = m.Metadata.SizeVT() + n += 1 + l + sov(uint64(l)) + } + if len(m.Tags) > 0 { + for _, s := range m.Tags { + l = len(s) + n += 1 + l + sov(uint64(l)) + } + } + if len(m.Syscalls) > 0 { + l = 0 + for _, e := range m.Syscalls { + l += sov(uint64(e)) + } + n += 1 + sov(uint64(l)) + l + } + if len(m.Tree) > 0 { + for _, e := range m.Tree { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *ProcessActivityNode) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Process != nil { + l = m.Process.SizeVT() + n += 1 + l + sov(uint64(l)) + } + if len(m.Children) > 0 { + for _, e := range m.Children { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + if len(m.Files) > 0 { + for _, e := range m.Files { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + if len(m.DnsNames) > 0 { + for _, e := range m.DnsNames { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + if len(m.Sockets) > 0 { + for _, e := range m.Sockets { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + if len(m.Syscalls) > 0 { + l = 0 + for _, e := range m.Syscalls { + l += sov(uint64(e)) + } + n += 1 + sov(uint64(l)) + l + } + if m.GenerationType != 0 { + n += 1 + sov(uint64(m.GenerationType)) + } + if len(m.MatchedRules) > 0 { + for _, e := range m.MatchedRules { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *ProcessInfo) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Pid != 0 { + n += 1 + sov(uint64(m.Pid)) + } + if m.Tid != 0 { + n += 1 + sov(uint64(m.Tid)) + } + if m.Ppid != 0 { + n += 1 + sov(uint64(m.Ppid)) + } + if m.Cookie != 0 { + n += 1 + sov(uint64(m.Cookie)) + } + if m.IsThread { + n += 2 + } + if m.File != nil { + l = m.File.SizeVT() + n += 1 + l + sov(uint64(l)) + } + l = len(m.ContainerId) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.SpanId != 0 { + n += 1 + sov(uint64(m.SpanId)) + } + if m.TraceId != 0 { + n += 1 + sov(uint64(m.TraceId)) + } + l = len(m.Tty) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.Comm) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.ForkTime != 0 { + n += 1 + sov(uint64(m.ForkTime)) + } + if m.ExitTime != 0 { + n += 1 + sov(uint64(m.ExitTime)) + } + if m.ExecTime != 0 { + n += 1 + sov(uint64(m.ExecTime)) + } + if m.Credentials != nil { + l = m.Credentials.SizeVT() + n += 1 + l + sov(uint64(l)) + } + if len(m.Args) > 0 { + for _, s := range m.Args { + l = len(s) + n += 2 + l + sov(uint64(l)) + } + } + l = len(m.Argv0) + if l > 0 { + n += 2 + l + sov(uint64(l)) + } + if m.ArgsTruncated { + n += 3 + } + if len(m.Envs) > 0 { + for _, s := range m.Envs { + l = len(s) + n += 2 + l + sov(uint64(l)) + } + } + if m.EnvsTruncated { + n += 3 + } + n += len(m.unknownFields) + return n +} + +func (m *FileActivityNode) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.File != nil { + l = m.File.SizeVT() + n += 1 + l + sov(uint64(l)) + } + if m.FirstSeen != 0 { + n += 1 + sov(uint64(m.FirstSeen)) + } + if m.Open != nil { + l = m.Open.SizeVT() + n += 1 + l + sov(uint64(l)) + } + if len(m.Children) > 0 { + for _, e := range m.Children { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + if m.IsPattern { + n += 2 + } + if m.GenerationType != 0 { + n += 1 + sov(uint64(m.GenerationType)) + } + if len(m.MatchedRules) > 0 { + for _, e := range m.MatchedRules { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *OpenNode) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Retval != 0 { + n += 1 + soz(uint64(m.Retval)) + } + if m.Flags != 0 { + n += 1 + sov(uint64(m.Flags)) + } + if m.Mode != 0 { + n += 1 + sov(uint64(m.Mode)) + } + n += len(m.unknownFields) + return n +} + +func (m *DNSNode) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Requests) > 0 { + for _, e := range m.Requests { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + if len(m.MatchedRules) > 0 { + for _, e := range m.MatchedRules { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *DNSInfo) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.Type != 0 { + n += 1 + sov(uint64(m.Type)) + } + if m.Class != 0 { + n += 1 + sov(uint64(m.Class)) + } + if m.Size != 0 { + n += 1 + sov(uint64(m.Size)) + } + if m.Count != 0 { + n += 1 + sov(uint64(m.Count)) + } + n += len(m.unknownFields) + return n +} + +func (m *FileInfo) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Uid != 0 { + n += 1 + sov(uint64(m.Uid)) + } + l = len(m.User) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.Gid != 0 { + n += 1 + sov(uint64(m.Gid)) + } + l = len(m.Group) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.Mode != 0 { + n += 1 + sov(uint64(m.Mode)) + } + if m.Ctime != 0 { + n += 1 + sov(uint64(m.Ctime)) + } + if m.Mtime != 0 { + n += 1 + sov(uint64(m.Mtime)) + } + if m.MountId != 0 { + n += 1 + sov(uint64(m.MountId)) + } + if m.Inode != 0 { + n += 1 + sov(uint64(m.Inode)) + } + if m.InUpperLayer { + n += 2 + } + l = len(m.Path) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.Basename) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.Filesystem) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.PackageName) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.PackageVersion) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.PackageSrcversion) + if l > 0 { + n += 2 + l + sov(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *Credentials) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Uid != 0 { + n += 1 + sov(uint64(m.Uid)) + } + if m.Gid != 0 { + n += 1 + sov(uint64(m.Gid)) + } + l = len(m.User) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.Group) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.EffectiveUid != 0 { + n += 1 + sov(uint64(m.EffectiveUid)) + } + if m.EffectiveGid != 0 { + n += 1 + sov(uint64(m.EffectiveGid)) + } + l = len(m.EffectiveUser) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.EffectiveGroup) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.FsUid != 0 { + n += 1 + sov(uint64(m.FsUid)) + } + if m.FsGid != 0 { + n += 1 + sov(uint64(m.FsGid)) + } + l = len(m.FsUser) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.FsGroup) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.CapEffective != 0 { + n += 1 + sov(uint64(m.CapEffective)) + } + if m.CapPermitted != 0 { + n += 1 + sov(uint64(m.CapPermitted)) + } + n += len(m.unknownFields) + return n +} + +func (m *SocketNode) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Family) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if len(m.Bind) > 0 { + for _, e := range m.Bind { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *BindNode) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Port != 0 { + n += 1 + sov(uint64(m.Port)) + } + l = len(m.Ip) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if len(m.MatchedRules) > 0 { + for _, e := range m.MatchedRules { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *MatchedRule) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.RuleId) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.RuleVersion) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.PolicyName) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.PolicyVersion) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if len(m.RuleTags) > 0 { + for k, v := range m.RuleTags { + _ = k + _ = v + mapEntrySize := 1 + len(k) + sov(uint64(len(k))) + 1 + len(v) + sov(uint64(len(v))) + n += mapEntrySize + 1 + sov(uint64(mapEntrySize)) + } + } + n += len(m.unknownFields) + return n +} + +func sov(x uint64) (n int) { + return (bits.Len64(x|1) + 6) / 7 +} +func soz(x uint64) (n int) { + return sov(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *ActivityDump) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ActivityDump: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ActivityDump: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Host", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Host = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Service", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Service = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Source", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Source = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Metadata == nil { + m.Metadata = &Metadata{} + } + if err := m.Metadata.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Tags", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Tags = append(m.Tags, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Tree", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Tree = append(m.Tree, &ProcessActivityNode{}) + if err := m.Tree[len(m.Tree)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Metadata) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Metadata: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Metadata: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AgentVersion", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AgentVersion = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AgentCommit", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AgentCommit = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field KernelVersion", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.KernelVersion = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LinuxDistribution", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.LinuxDistribution = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ProtobufVersion", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ProtobufVersion = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DifferentiateArgs", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DifferentiateArgs = bool(v != 0) + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Comm", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Comm = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContainerId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContainerId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 10: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Start", wireType) + } + m.Start = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Start |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 11: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field End", wireType) + } + m.End = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.End |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 12: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Size", wireType) + } + m.Size = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Size |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 13: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Arch", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Arch = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 14: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Serialization", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Serialization = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SecurityProfile) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SecurityProfile: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SecurityProfile: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + m.Status = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Status |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Version = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Metadata == nil { + m.Metadata = &Metadata{} + } + if err := m.Metadata.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Tags", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Tags = append(m.Tags, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 5: + if wireType == 0 { + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Syscalls = append(m.Syscalls, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.Syscalls) == 0 { + m.Syscalls = make([]uint32, 0, elementCount) + } + for iNdEx < postIndex { + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Syscalls = append(m.Syscalls, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field Syscalls", wireType) + } + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Tree", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Tree = append(m.Tree, &ProcessActivityNode{}) + if err := m.Tree[len(m.Tree)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ProcessActivityNode) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ProcessActivityNode: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ProcessActivityNode: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Process", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Process == nil { + m.Process = &ProcessInfo{} + } + if err := m.Process.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Children", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Children = append(m.Children, &ProcessActivityNode{}) + if err := m.Children[len(m.Children)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Files", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Files = append(m.Files, &FileActivityNode{}) + if err := m.Files[len(m.Files)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DnsNames", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DnsNames = append(m.DnsNames, &DNSNode{}) + if err := m.DnsNames[len(m.DnsNames)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Sockets", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Sockets = append(m.Sockets, &SocketNode{}) + if err := m.Sockets[len(m.Sockets)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType == 0 { + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Syscalls = append(m.Syscalls, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.Syscalls) == 0 { + m.Syscalls = make([]uint32, 0, elementCount) + } + for iNdEx < postIndex { + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Syscalls = append(m.Syscalls, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field Syscalls", wireType) + } + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GenerationType", wireType) + } + m.GenerationType = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.GenerationType |= GenerationType(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MatchedRules", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.MatchedRules = append(m.MatchedRules, &MatchedRule{}) + if err := m.MatchedRules[len(m.MatchedRules)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ProcessInfo) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ProcessInfo: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ProcessInfo: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Pid", wireType) + } + m.Pid = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Pid |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Tid", wireType) + } + m.Tid = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Tid |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Ppid", wireType) + } + m.Ppid = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Ppid |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Cookie", wireType) + } + m.Cookie = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Cookie |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsThread", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IsThread = bool(v != 0) + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field File", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.File == nil { + m.File = &FileInfo{} + } + if err := m.File.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContainerId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContainerId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SpanId", wireType) + } + m.SpanId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.SpanId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TraceId", wireType) + } + m.TraceId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TraceId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Tty", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Tty = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 11: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Comm", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Comm = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 12: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ForkTime", wireType) + } + m.ForkTime = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ForkTime |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 13: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ExitTime", wireType) + } + m.ExitTime = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ExitTime |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 14: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ExecTime", wireType) + } + m.ExecTime = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ExecTime |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 15: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Credentials", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Credentials == nil { + m.Credentials = &Credentials{} + } + if err := m.Credentials.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 16: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Args", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Args = append(m.Args, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 17: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Argv0", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Argv0 = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 18: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ArgsTruncated", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ArgsTruncated = bool(v != 0) + case 19: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Envs", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Envs = append(m.Envs, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 20: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EnvsTruncated", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.EnvsTruncated = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *FileActivityNode) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: FileActivityNode: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: FileActivityNode: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field File", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.File == nil { + m.File = &FileInfo{} + } + if err := m.File.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field FirstSeen", wireType) + } + m.FirstSeen = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.FirstSeen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Open", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Open == nil { + m.Open = &OpenNode{} + } + if err := m.Open.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Children", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Children = append(m.Children, &FileActivityNode{}) + if err := m.Children[len(m.Children)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsPattern", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IsPattern = bool(v != 0) + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GenerationType", wireType) + } + m.GenerationType = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.GenerationType |= GenerationType(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MatchedRules", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.MatchedRules = append(m.MatchedRules, &MatchedRule{}) + if err := m.MatchedRules[len(m.MatchedRules)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *OpenNode) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: OpenNode: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: OpenNode: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Retval", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + v = (v >> 1) ^ uint64((int64(v&1)<<63)>>63) + m.Retval = int64(v) + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Flags", wireType) + } + m.Flags = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Flags |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Mode", wireType) + } + m.Mode = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Mode |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DNSNode) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: DNSNode: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DNSNode: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Requests", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Requests = append(m.Requests, &DNSInfo{}) + if err := m.Requests[len(m.Requests)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MatchedRules", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.MatchedRules = append(m.MatchedRules, &MatchedRule{}) + if err := m.MatchedRules[len(m.MatchedRules)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DNSInfo) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: DNSInfo: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DNSInfo: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + m.Type = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Type |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Class", wireType) + } + m.Class = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Class |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Size", wireType) + } + m.Size = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Size |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Count", wireType) + } + m.Count = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Count |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *FileInfo) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: FileInfo: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: FileInfo: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Uid", wireType) + } + m.Uid = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Uid |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field User", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.User = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Gid", wireType) + } + m.Gid = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Gid |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Group", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Group = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Mode", wireType) + } + m.Mode = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Mode |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Ctime", wireType) + } + m.Ctime = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Ctime |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Mtime", wireType) + } + m.Mtime = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Mtime |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MountId", wireType) + } + m.MountId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MountId |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Inode", wireType) + } + m.Inode = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Inode |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 10: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InUpperLayer", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InUpperLayer = bool(v != 0) + case 11: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Path = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 12: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Basename", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Basename = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 13: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Filesystem", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Filesystem = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 14: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PackageName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PackageName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 15: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PackageVersion", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PackageVersion = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 16: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PackageSrcversion", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PackageSrcversion = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Credentials) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Credentials: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Credentials: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Uid", wireType) + } + m.Uid = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Uid |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Gid", wireType) + } + m.Gid = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Gid |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field User", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.User = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Group", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Group = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EffectiveUid", wireType) + } + m.EffectiveUid = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.EffectiveUid |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EffectiveGid", wireType) + } + m.EffectiveGid = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.EffectiveGid |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EffectiveUser", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.EffectiveUser = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EffectiveGroup", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.EffectiveGroup = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field FsUid", wireType) + } + m.FsUid = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.FsUid |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 10: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field FsGid", wireType) + } + m.FsGid = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.FsGid |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 11: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FsUser", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.FsUser = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 12: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FsGroup", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.FsGroup = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 13: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CapEffective", wireType) + } + m.CapEffective = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.CapEffective |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 14: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CapPermitted", wireType) + } + m.CapPermitted = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.CapPermitted |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SocketNode) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SocketNode: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SocketNode: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Family", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Family = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Bind", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Bind = append(m.Bind, &BindNode{}) + if err := m.Bind[len(m.Bind)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BindNode) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: BindNode: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BindNode: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Port", wireType) + } + m.Port = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Port |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ip", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Ip = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MatchedRules", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.MatchedRules = append(m.MatchedRules, &MatchedRule{}) + if err := m.MatchedRules[len(m.MatchedRules)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MatchedRule) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MatchedRule: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MatchedRule: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RuleId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RuleId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RuleVersion", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RuleVersion = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PolicyName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PolicyName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PolicyVersion", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PolicyVersion = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RuleTags", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.RuleTags == nil { + m.RuleTags = make(map[string]string) + } + var mapkey string + var mapvalue string + for iNdEx < postIndex { + entryPreIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + if fieldNum == 1 { + var stringLenmapkey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapkey |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return ErrInvalidLength + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLength + } + if postStringIndexmapkey > l { + return io.ErrUnexpectedEOF + } + mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + } else if fieldNum == 2 { + var stringLenmapvalue uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapvalue |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapvalue := int(stringLenmapvalue) + if intStringLenmapvalue < 0 { + return ErrInvalidLength + } + postStringIndexmapvalue := iNdEx + intStringLenmapvalue + if postStringIndexmapvalue < 0 { + return ErrInvalidLength + } + if postStringIndexmapvalue > l { + return io.ErrUnexpectedEOF + } + mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) + iNdEx = postStringIndexmapvalue + } else { + iNdEx = entryPreIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + m.RuleTags[mapkey] = mapvalue + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} + +func skip(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflow + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflow + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflow + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLength + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroup + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLength + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLength = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflow = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroup = fmt.Errorf("proto: unexpected end of group") +) diff --git a/proto/cws/dumpsv1/activity_dump.proto b/proto/cws/dumpsv1/activity_dump.proto new file mode 100644 index 00000000..eda5f8b7 --- /dev/null +++ b/proto/cws/dumpsv1/activity_dump.proto @@ -0,0 +1,191 @@ +syntax = "proto3"; + +option go_package = "github.com/DataDog/agent-payload/v5/cws/dumpsv1"; + +package datadog.cws.dumpsv1; + +message ActivityDump { + string host = 1; + string service = 2; + string source = 3; + + Metadata metadata = 4; + + repeated string tags = 5; + repeated ProcessActivityNode tree = 6; +} + +message Metadata { + string agent_version = 1; + string agent_commit = 2; + string kernel_version = 3; + string linux_distribution = 4; + string arch = 13; + + string name = 5; + string protobuf_version = 6; + bool differentiate_args = 7; + string comm = 8; + string container_id = 9; + uint64 start = 10; + uint64 end = 11; + uint64 size = 12; + string serialization = 14; +} + +message SecurityProfile { + uint32 status = 1; + string version = 2; + Metadata metadata = 3; + repeated string tags = 4; + repeated uint32 syscalls = 5; + repeated ProcessActivityNode tree = 6; +} + +message ProcessActivityNode { + ProcessInfo process = 1; + reserved 2; + GenerationType generation_type = 8; + + repeated MatchedRule matched_rules = 9; + repeated ProcessActivityNode children = 3; + repeated FileActivityNode files = 4; + repeated DNSNode dns_names = 5; + repeated SocketNode sockets = 6; + repeated uint32 syscalls = 7; +} + +message ProcessInfo { + uint32 pid = 1; + uint32 tid = 2; + uint32 ppid = 3; + uint32 cookie = 4; + bool is_thread = 5; + + FileInfo file = 6; + + string container_id = 7; + + uint64 span_id = 8; + uint64 trace_id = 9; + + string tty = 10; + string comm = 11; + + uint64 fork_time = 12; + uint64 exit_time = 13; + uint64 exec_time = 14; + + Credentials credentials = 15; + + repeated string args = 16; + string argv0 = 17; + bool args_truncated = 18; + repeated string envs = 19; + bool envs_truncated = 20; +} + +message FileActivityNode { + repeated MatchedRule matched_rules = 9; + + string name = 1; + bool is_pattern = 7; + FileInfo file = 2; + reserved 3; + GenerationType generation_type = 8; + uint64 first_seen = 4; + + OpenNode open = 5; + + repeated FileActivityNode children = 6; +} + +message OpenNode { + sint64 retval = 1; + uint32 flags = 2; + uint32 mode = 3; +} + +message DNSNode { + repeated MatchedRule matched_rules = 2; + + repeated DNSInfo requests = 1; +} + +message DNSInfo { + string name = 1; + uint32 type = 2; + uint32 class = 3; + uint32 size = 4; + uint32 count = 5; +} + +message FileInfo { + uint32 uid = 1; + string user = 2; + uint32 gid = 3; + string group = 4; + + uint32 mode = 5; // TODO: check conversion with uint16 + + uint64 ctime = 6; + uint64 mtime = 7; + + uint32 mount_id = 8; + uint64 inode = 9; + bool in_upper_layer = 10; + + string path = 11; + string basename = 12; + string filesystem = 13; + + string package_name = 14; + string package_version = 15; + string package_srcversion = 16; +} + +message Credentials { + uint32 uid = 1; + uint32 gid = 2; + string user = 3; + string group = 4; + + uint32 effective_uid = 5; + uint32 effective_gid = 6; + string effective_user = 7; + string effective_group = 8; + + uint32 fs_uid = 9; + uint32 fs_gid = 10; + string fs_user = 11; + string fs_group = 12; + + uint64 cap_effective = 13; + uint64 cap_permitted = 14; +} + +message SocketNode { + string family = 1; + repeated BindNode bind = 2; +} + +message BindNode { + repeated MatchedRule matched_rules = 3; + + uint32 port = 1; + string ip = 2; +} + +enum GenerationType { + UNKNOWN = 0; + RUNTIME = 1; + SNAPSHOT = 2; +} + +message MatchedRule { + string rule_id = 1; + string rule_version = 2; + string policy_name = 3; + string policy_version = 4; + map rule_tags = 5; +} diff --git a/proto/cws/dumpsv1/dumpsv1.go b/proto/cws/dumpsv1/dumpsv1.go new file mode 100644 index 00000000..87f286be --- /dev/null +++ b/proto/cws/dumpsv1/dumpsv1.go @@ -0,0 +1,2 @@ +// package dumpsv1 contains the CWS activity dumps v1 proto definitions +package dumpsv1 From fb6ed40bb5382dbeffd96e0593ea76754b1c84d1 Mon Sep 17 00:00:00 2001 From: Paul Cacheux Date: Thu, 23 Mar 2023 10:43:08 +0100 Subject: [PATCH 2/6] pool desired nodes --- Rakefile | 10 +- cws/dumpsv1/activity_dump_vtproto.pb.go | 199 ++++++++++++++++++++++-- 2 files changed, 195 insertions(+), 14 deletions(-) diff --git a/Rakefile b/Rakefile index 45a1b5f1..c5cf280a 100644 --- a/Rakefile +++ b/Rakefile @@ -107,8 +107,14 @@ BASH GOPATH=#{protoc_gen_go_dir} go install github.com/planetscale/vtprotobuf/cmd/protoc-gen-go-vtproto@latest echo "Generating CWS Activity Dumps v1" - PATH=#{protoc_gen_go_dir}/bin #{protoc_binary_2} --proto_path=$GOPATH/src:. --go_out=$GOPATH/src --go-vtproto_out=$GOPATH/src --go-vtproto_opt=features=pool+marshal+unmarshal+size proto/cws/dumpsv1/activity_dump.proto - # --go-vtproto_opt=pool=pkg/security/proto/security_profile/v1.ActivityDump --go-vtproto_opt=pool=pkg/security/proto/security_profile/v1.ProcessActivityNode --go-vtproto_opt=pool=pkg/security/proto/security_profile/v1.FileActivityNode --go-vtproto_opt=pool=pkg/security/proto/security_profile/v1.FileInfo --go-vtproto_opt=pool=pkg/security/proto/security_profile/v1.ProcessInfo + PATH=#{protoc_gen_go_dir}/bin #{protoc_binary_2} --proto_path=$GOPATH/src:. --go_out=$GOPATH/src --go-vtproto_out=$GOPATH/src\ + --go-vtproto_opt=features=pool+marshal+unmarshal+size \ + --go-vtproto_opt=pool=github.com/DataDog/agent-payload/v5/cws/dumpsv1.ActivityDump \ + --go-vtproto_opt=pool=github.com/DataDog/agent-payload/v5/cws/dumpsv1.ProcessActivityNode \ + --go-vtproto_opt=pool=github.com/DataDog/agent-payload/v5/cws/dumpsv1.FileActivityNode \ + --go-vtproto_opt=pool=github.com/DataDog/agent-payload/v5/cws/dumpsv1.FileInfo \ + --go-vtproto_opt=pool=github.com/DataDog/agent-payload/v5/cws/dumpsv1.ProcessInfo \ + proto/cws/dumpsv1/activity_dump.proto cp -r v5/* . rm -rf v5 diff --git a/cws/dumpsv1/activity_dump_vtproto.pb.go b/cws/dumpsv1/activity_dump_vtproto.pb.go index fc14932c..1311e345 100644 --- a/cws/dumpsv1/activity_dump_vtproto.pb.go +++ b/cws/dumpsv1/activity_dump_vtproto.pb.go @@ -9,6 +9,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" io "io" bits "math/bits" + sync "sync" ) const ( @@ -1359,6 +1360,124 @@ func encodeVarint(dAtA []byte, offset int, v uint64) int { dAtA[offset] = uint8(v) return base } + +var vtprotoPool_ActivityDump = sync.Pool{ + New: func() interface{} { + return &ActivityDump{} + }, +} + +func (m *ActivityDump) ResetVT() { + f0 := m.Tags[:0] + for _, mm := range m.Tree { + mm.ResetVT() + } + m.Reset() + m.Tags = f0 +} +func (m *ActivityDump) ReturnToVTPool() { + if m != nil { + m.ResetVT() + vtprotoPool_ActivityDump.Put(m) + } +} +func ActivityDumpFromVTPool() *ActivityDump { + return vtprotoPool_ActivityDump.Get().(*ActivityDump) +} + +var vtprotoPool_ProcessActivityNode = sync.Pool{ + New: func() interface{} { + return &ProcessActivityNode{} + }, +} + +func (m *ProcessActivityNode) ResetVT() { + m.Process.ReturnToVTPool() + for _, mm := range m.Children { + mm.ResetVT() + } + for _, mm := range m.Files { + mm.ResetVT() + } + f0 := m.Syscalls[:0] + m.Reset() + m.Syscalls = f0 +} +func (m *ProcessActivityNode) ReturnToVTPool() { + if m != nil { + m.ResetVT() + vtprotoPool_ProcessActivityNode.Put(m) + } +} +func ProcessActivityNodeFromVTPool() *ProcessActivityNode { + return vtprotoPool_ProcessActivityNode.Get().(*ProcessActivityNode) +} + +var vtprotoPool_ProcessInfo = sync.Pool{ + New: func() interface{} { + return &ProcessInfo{} + }, +} + +func (m *ProcessInfo) ResetVT() { + m.File.ReturnToVTPool() + f0 := m.Args[:0] + f1 := m.Envs[:0] + m.Reset() + m.Args = f0 + m.Envs = f1 +} +func (m *ProcessInfo) ReturnToVTPool() { + if m != nil { + m.ResetVT() + vtprotoPool_ProcessInfo.Put(m) + } +} +func ProcessInfoFromVTPool() *ProcessInfo { + return vtprotoPool_ProcessInfo.Get().(*ProcessInfo) +} + +var vtprotoPool_FileActivityNode = sync.Pool{ + New: func() interface{} { + return &FileActivityNode{} + }, +} + +func (m *FileActivityNode) ResetVT() { + m.File.ReturnToVTPool() + for _, mm := range m.Children { + mm.ResetVT() + } + m.Reset() +} +func (m *FileActivityNode) ReturnToVTPool() { + if m != nil { + m.ResetVT() + vtprotoPool_FileActivityNode.Put(m) + } +} +func FileActivityNodeFromVTPool() *FileActivityNode { + return vtprotoPool_FileActivityNode.Get().(*FileActivityNode) +} + +var vtprotoPool_FileInfo = sync.Pool{ + New: func() interface{} { + return &FileInfo{} + }, +} + +func (m *FileInfo) ResetVT() { + m.Reset() +} +func (m *FileInfo) ReturnToVTPool() { + if m != nil { + m.ResetVT() + vtprotoPool_FileInfo.Put(m) + } +} +func FileInfoFromVTPool() *FileInfo { + return vtprotoPool_FileInfo.Get().(*FileInfo) +} func (m *ActivityDump) SizeVT() (n int) { if m == nil { return 0 @@ -2174,7 +2293,14 @@ func (m *ActivityDump) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Tree = append(m.Tree, &ProcessActivityNode{}) + if len(m.Tree) == cap(m.Tree) { + m.Tree = append(m.Tree, &ProcessActivityNode{}) + } else { + m.Tree = m.Tree[:len(m.Tree)+1] + if m.Tree[len(m.Tree)-1] == nil { + m.Tree[len(m.Tree)-1] = &ProcessActivityNode{} + } + } if err := m.Tree[len(m.Tree)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -2988,7 +3114,7 @@ func (m *ProcessActivityNode) UnmarshalVT(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Process == nil { - m.Process = &ProcessInfo{} + m.Process = ProcessInfoFromVTPool() } if err := m.Process.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err @@ -3023,7 +3149,14 @@ func (m *ProcessActivityNode) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Children = append(m.Children, &ProcessActivityNode{}) + if len(m.Children) == cap(m.Children) { + m.Children = append(m.Children, &ProcessActivityNode{}) + } else { + m.Children = m.Children[:len(m.Children)+1] + if m.Children[len(m.Children)-1] == nil { + m.Children[len(m.Children)-1] = &ProcessActivityNode{} + } + } if err := m.Children[len(m.Children)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -3057,7 +3190,14 @@ func (m *ProcessActivityNode) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Files = append(m.Files, &FileActivityNode{}) + if len(m.Files) == cap(m.Files) { + m.Files = append(m.Files, &FileActivityNode{}) + } else { + m.Files = m.Files[:len(m.Files)+1] + if m.Files[len(m.Files)-1] == nil { + m.Files[len(m.Files)-1] = &FileActivityNode{} + } + } if err := m.Files[len(m.Files)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -3091,7 +3231,14 @@ func (m *ProcessActivityNode) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.DnsNames = append(m.DnsNames, &DNSNode{}) + if len(m.DnsNames) == cap(m.DnsNames) { + m.DnsNames = append(m.DnsNames, &DNSNode{}) + } else { + m.DnsNames = m.DnsNames[:len(m.DnsNames)+1] + if m.DnsNames[len(m.DnsNames)-1] == nil { + m.DnsNames[len(m.DnsNames)-1] = &DNSNode{} + } + } if err := m.DnsNames[len(m.DnsNames)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -3125,7 +3272,14 @@ func (m *ProcessActivityNode) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Sockets = append(m.Sockets, &SocketNode{}) + if len(m.Sockets) == cap(m.Sockets) { + m.Sockets = append(m.Sockets, &SocketNode{}) + } else { + m.Sockets = m.Sockets[:len(m.Sockets)+1] + if m.Sockets[len(m.Sockets)-1] == nil { + m.Sockets[len(m.Sockets)-1] = &SocketNode{} + } + } if err := m.Sockets[len(m.Sockets)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -3182,7 +3336,7 @@ func (m *ProcessActivityNode) UnmarshalVT(dAtA []byte) error { } } elementCount = count - if elementCount != 0 && len(m.Syscalls) == 0 { + if elementCount != 0 && len(m.Syscalls) == 0 && cap(m.Syscalls) < elementCount { m.Syscalls = make([]uint32, 0, elementCount) } for iNdEx < postIndex { @@ -3254,7 +3408,14 @@ func (m *ProcessActivityNode) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.MatchedRules = append(m.MatchedRules, &MatchedRule{}) + if len(m.MatchedRules) == cap(m.MatchedRules) { + m.MatchedRules = append(m.MatchedRules, &MatchedRule{}) + } else { + m.MatchedRules = m.MatchedRules[:len(m.MatchedRules)+1] + if m.MatchedRules[len(m.MatchedRules)-1] == nil { + m.MatchedRules[len(m.MatchedRules)-1] = &MatchedRule{} + } + } if err := m.MatchedRules[len(m.MatchedRules)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -3436,7 +3597,7 @@ func (m *ProcessInfo) UnmarshalVT(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.File == nil { - m.File = &FileInfo{} + m.File = FileInfoFromVTPool() } if err := m.File.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err @@ -3918,7 +4079,7 @@ func (m *FileActivityNode) UnmarshalVT(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.File == nil { - m.File = &FileInfo{} + m.File = FileInfoFromVTPool() } if err := m.File.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err @@ -4008,7 +4169,14 @@ func (m *FileActivityNode) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Children = append(m.Children, &FileActivityNode{}) + if len(m.Children) == cap(m.Children) { + m.Children = append(m.Children, &FileActivityNode{}) + } else { + m.Children = m.Children[:len(m.Children)+1] + if m.Children[len(m.Children)-1] == nil { + m.Children[len(m.Children)-1] = &FileActivityNode{} + } + } if err := m.Children[len(m.Children)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -4081,7 +4249,14 @@ func (m *FileActivityNode) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.MatchedRules = append(m.MatchedRules, &MatchedRule{}) + if len(m.MatchedRules) == cap(m.MatchedRules) { + m.MatchedRules = append(m.MatchedRules, &MatchedRule{}) + } else { + m.MatchedRules = m.MatchedRules[:len(m.MatchedRules)+1] + if m.MatchedRules[len(m.MatchedRules)-1] == nil { + m.MatchedRules[len(m.MatchedRules)-1] = &MatchedRule{} + } + } if err := m.MatchedRules[len(m.MatchedRules)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } From a5685bae771c63253d338825e17f0142665031c9 Mon Sep 17 00:00:00 2001 From: Paul Cacheux Date: Thu, 23 Mar 2023 11:23:10 +0100 Subject: [PATCH 3/6] generate java as well --- Rakefile | 5 +- cws/dumpsv1/activity_dump.pb.go | 10 +- java/com/dd/cws/adv1/pb/SecDumpProto.java | 23143 ++++++++++++++++++++ proto/cws/dumpsv1/activity_dump.proto | 4 + 4 files changed, 23157 insertions(+), 5 deletions(-) create mode 100644 java/com/dd/cws/adv1/pb/SecDumpProto.java diff --git a/Rakefile b/Rakefile index c5cf280a..af1a997f 100644 --- a/Rakefile +++ b/Rakefile @@ -107,7 +107,10 @@ BASH GOPATH=#{protoc_gen_go_dir} go install github.com/planetscale/vtprotobuf/cmd/protoc-gen-go-vtproto@latest echo "Generating CWS Activity Dumps v1" - PATH=#{protoc_gen_go_dir}/bin #{protoc_binary_2} --proto_path=$GOPATH/src:. --go_out=$GOPATH/src --go-vtproto_out=$GOPATH/src\ + PATH=#{protoc_gen_go_dir}/bin #{protoc_binary_2} --proto_path=$GOPATH/src:. \ + --java_out=java \ + --go_out=$GOPATH/src \ + --go-vtproto_out=$GOPATH/src \ --go-vtproto_opt=features=pool+marshal+unmarshal+size \ --go-vtproto_opt=pool=github.com/DataDog/agent-payload/v5/cws/dumpsv1.ActivityDump \ --go-vtproto_opt=pool=github.com/DataDog/agent-payload/v5/cws/dumpsv1.ProcessActivityNode \ diff --git a/cws/dumpsv1/activity_dump.pb.go b/cws/dumpsv1/activity_dump.pb.go index 972f4791..e11795ac 100644 --- a/cws/dumpsv1/activity_dump.pb.go +++ b/cws/dumpsv1/activity_dump.pb.go @@ -1781,10 +1781,12 @@ var file_proto_cws_dumpsv1_activity_dump_proto_rawDesc = []byte{ 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x55, 0x4e, 0x54, 0x49, 0x4d, 0x45, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x53, 0x4e, 0x41, 0x50, 0x53, 0x48, 0x4f, 0x54, 0x10, 0x02, 0x42, - 0x31, 0x5a, 0x2f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x44, 0x61, - 0x74, 0x61, 0x44, 0x6f, 0x67, 0x2f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2d, 0x70, 0x61, 0x79, 0x6c, - 0x6f, 0x61, 0x64, 0x2f, 0x76, 0x35, 0x2f, 0x63, 0x77, 0x73, 0x2f, 0x64, 0x75, 0x6d, 0x70, 0x73, - 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x55, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x64, 0x64, 0x2e, 0x63, 0x77, 0x73, 0x2e, 0x61, 0x64, + 0x76, 0x31, 0x2e, 0x70, 0x62, 0x42, 0x0c, 0x53, 0x65, 0x63, 0x44, 0x75, 0x6d, 0x70, 0x50, 0x72, + 0x6f, 0x74, 0x6f, 0x50, 0x00, 0x5a, 0x2f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, + 0x6d, 0x2f, 0x44, 0x61, 0x74, 0x61, 0x44, 0x6f, 0x67, 0x2f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2d, + 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2f, 0x76, 0x35, 0x2f, 0x63, 0x77, 0x73, 0x2f, 0x64, + 0x75, 0x6d, 0x70, 0x73, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/java/com/dd/cws/adv1/pb/SecDumpProto.java b/java/com/dd/cws/adv1/pb/SecDumpProto.java new file mode 100644 index 00000000..a7746883 --- /dev/null +++ b/java/com/dd/cws/adv1/pb/SecDumpProto.java @@ -0,0 +1,23143 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: proto/cws/dumpsv1/activity_dump.proto + +package com.dd.cws.adv1.pb; + +public final class SecDumpProto { + private SecDumpProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + /** + * Protobuf enum {@code datadog.cws.dumpsv1.GenerationType} + */ + public enum GenerationType + implements com.google.protobuf.ProtocolMessageEnum { + /** + * UNKNOWN = 0; + */ + UNKNOWN(0), + /** + * RUNTIME = 1; + */ + RUNTIME(1), + /** + * SNAPSHOT = 2; + */ + SNAPSHOT(2), + UNRECOGNIZED(-1), + ; + + /** + * UNKNOWN = 0; + */ + public static final int UNKNOWN_VALUE = 0; + /** + * RUNTIME = 1; + */ + public static final int RUNTIME_VALUE = 1; + /** + * SNAPSHOT = 2; + */ + public static final int SNAPSHOT_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static GenerationType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static GenerationType forNumber(int value) { + switch (value) { + case 0: return UNKNOWN; + case 1: return RUNTIME; + case 2: return SNAPSHOT; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + GenerationType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public GenerationType findValueByNumber(int number) { + return GenerationType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.dd.cws.adv1.pb.SecDumpProto.getDescriptor().getEnumTypes().get(0); + } + + private static final GenerationType[] VALUES = values(); + + public static GenerationType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private GenerationType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:datadog.cws.dumpsv1.GenerationType) + } + + public interface ActivityDumpOrBuilder extends + // @@protoc_insertion_point(interface_extends:datadog.cws.dumpsv1.ActivityDump) + com.google.protobuf.MessageOrBuilder { + + /** + * string host = 1; + * @return The host. + */ + java.lang.String getHost(); + /** + * string host = 1; + * @return The bytes for host. + */ + com.google.protobuf.ByteString + getHostBytes(); + + /** + * string service = 2; + * @return The service. + */ + java.lang.String getService(); + /** + * string service = 2; + * @return The bytes for service. + */ + com.google.protobuf.ByteString + getServiceBytes(); + + /** + * string source = 3; + * @return The source. + */ + java.lang.String getSource(); + /** + * string source = 3; + * @return The bytes for source. + */ + com.google.protobuf.ByteString + getSourceBytes(); + + /** + * .datadog.cws.dumpsv1.Metadata metadata = 4; + * @return Whether the metadata field is set. + */ + boolean hasMetadata(); + /** + * .datadog.cws.dumpsv1.Metadata metadata = 4; + * @return The metadata. + */ + com.dd.cws.adv1.pb.SecDumpProto.Metadata getMetadata(); + /** + * .datadog.cws.dumpsv1.Metadata metadata = 4; + */ + com.dd.cws.adv1.pb.SecDumpProto.MetadataOrBuilder getMetadataOrBuilder(); + + /** + * repeated string tags = 5; + * @return A list containing the tags. + */ + java.util.List + getTagsList(); + /** + * repeated string tags = 5; + * @return The count of tags. + */ + int getTagsCount(); + /** + * repeated string tags = 5; + * @param index The index of the element to return. + * @return The tags at the given index. + */ + java.lang.String getTags(int index); + /** + * repeated string tags = 5; + * @param index The index of the value to return. + * @return The bytes of the tags at the given index. + */ + com.google.protobuf.ByteString + getTagsBytes(int index); + + /** + * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; + */ + java.util.List + getTreeList(); + /** + * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; + */ + com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode getTree(int index); + /** + * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; + */ + int getTreeCount(); + /** + * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; + */ + java.util.List + getTreeOrBuilderList(); + /** + * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; + */ + com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNodeOrBuilder getTreeOrBuilder( + int index); + } + /** + * Protobuf type {@code datadog.cws.dumpsv1.ActivityDump} + */ + public static final class ActivityDump extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datadog.cws.dumpsv1.ActivityDump) + ActivityDumpOrBuilder { + private static final long serialVersionUID = 0L; + // Use ActivityDump.newBuilder() to construct. + private ActivityDump(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ActivityDump() { + host_ = ""; + service_ = ""; + source_ = ""; + tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + tree_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ActivityDump(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_ActivityDump_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_ActivityDump_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.dd.cws.adv1.pb.SecDumpProto.ActivityDump.class, com.dd.cws.adv1.pb.SecDumpProto.ActivityDump.Builder.class); + } + + public static final int HOST_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object host_ = ""; + /** + * string host = 1; + * @return The host. + */ + @java.lang.Override + public java.lang.String getHost() { + java.lang.Object ref = host_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + host_ = s; + return s; + } + } + /** + * string host = 1; + * @return The bytes for host. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getHostBytes() { + java.lang.Object ref = host_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + host_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SERVICE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object service_ = ""; + /** + * string service = 2; + * @return The service. + */ + @java.lang.Override + public java.lang.String getService() { + java.lang.Object ref = service_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + service_ = s; + return s; + } + } + /** + * string service = 2; + * @return The bytes for service. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getServiceBytes() { + java.lang.Object ref = service_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + service_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SOURCE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object source_ = ""; + /** + * string source = 3; + * @return The source. + */ + @java.lang.Override + public java.lang.String getSource() { + java.lang.Object ref = source_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + source_ = s; + return s; + } + } + /** + * string source = 3; + * @return The bytes for source. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getSourceBytes() { + java.lang.Object ref = source_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + source_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int METADATA_FIELD_NUMBER = 4; + private com.dd.cws.adv1.pb.SecDumpProto.Metadata metadata_; + /** + * .datadog.cws.dumpsv1.Metadata metadata = 4; + * @return Whether the metadata field is set. + */ + @java.lang.Override + public boolean hasMetadata() { + return metadata_ != null; + } + /** + * .datadog.cws.dumpsv1.Metadata metadata = 4; + * @return The metadata. + */ + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.Metadata getMetadata() { + return metadata_ == null ? com.dd.cws.adv1.pb.SecDumpProto.Metadata.getDefaultInstance() : metadata_; + } + /** + * .datadog.cws.dumpsv1.Metadata metadata = 4; + */ + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.MetadataOrBuilder getMetadataOrBuilder() { + return metadata_ == null ? com.dd.cws.adv1.pb.SecDumpProto.Metadata.getDefaultInstance() : metadata_; + } + + public static final int TAGS_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringList tags_; + /** + * repeated string tags = 5; + * @return A list containing the tags. + */ + public com.google.protobuf.ProtocolStringList + getTagsList() { + return tags_; + } + /** + * repeated string tags = 5; + * @return The count of tags. + */ + public int getTagsCount() { + return tags_.size(); + } + /** + * repeated string tags = 5; + * @param index The index of the element to return. + * @return The tags at the given index. + */ + public java.lang.String getTags(int index) { + return tags_.get(index); + } + /** + * repeated string tags = 5; + * @param index The index of the value to return. + * @return The bytes of the tags at the given index. + */ + public com.google.protobuf.ByteString + getTagsBytes(int index) { + return tags_.getByteString(index); + } + + public static final int TREE_FIELD_NUMBER = 6; + @SuppressWarnings("serial") + private java.util.List tree_; + /** + * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; + */ + @java.lang.Override + public java.util.List getTreeList() { + return tree_; + } + /** + * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; + */ + @java.lang.Override + public java.util.List + getTreeOrBuilderList() { + return tree_; + } + /** + * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; + */ + @java.lang.Override + public int getTreeCount() { + return tree_.size(); + } + /** + * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; + */ + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode getTree(int index) { + return tree_.get(index); + } + /** + * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; + */ + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNodeOrBuilder getTreeOrBuilder( + int index) { + return tree_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(host_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, host_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(service_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, service_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(source_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, source_); + } + if (metadata_ != null) { + output.writeMessage(4, getMetadata()); + } + for (int i = 0; i < tags_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, tags_.getRaw(i)); + } + for (int i = 0; i < tree_.size(); i++) { + output.writeMessage(6, tree_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(host_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, host_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(service_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, service_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(source_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, source_); + } + if (metadata_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getMetadata()); + } + { + int dataSize = 0; + for (int i = 0; i < tags_.size(); i++) { + dataSize += computeStringSizeNoTag(tags_.getRaw(i)); + } + size += dataSize; + size += 1 * getTagsList().size(); + } + for (int i = 0; i < tree_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, tree_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.dd.cws.adv1.pb.SecDumpProto.ActivityDump)) { + return super.equals(obj); + } + com.dd.cws.adv1.pb.SecDumpProto.ActivityDump other = (com.dd.cws.adv1.pb.SecDumpProto.ActivityDump) obj; + + if (!getHost() + .equals(other.getHost())) return false; + if (!getService() + .equals(other.getService())) return false; + if (!getSource() + .equals(other.getSource())) return false; + if (hasMetadata() != other.hasMetadata()) return false; + if (hasMetadata()) { + if (!getMetadata() + .equals(other.getMetadata())) return false; + } + if (!getTagsList() + .equals(other.getTagsList())) return false; + if (!getTreeList() + .equals(other.getTreeList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + HOST_FIELD_NUMBER; + hash = (53 * hash) + getHost().hashCode(); + hash = (37 * hash) + SERVICE_FIELD_NUMBER; + hash = (53 * hash) + getService().hashCode(); + hash = (37 * hash) + SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getSource().hashCode(); + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + if (getTagsCount() > 0) { + hash = (37 * hash) + TAGS_FIELD_NUMBER; + hash = (53 * hash) + getTagsList().hashCode(); + } + if (getTreeCount() > 0) { + hash = (37 * hash) + TREE_FIELD_NUMBER; + hash = (53 * hash) + getTreeList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.dd.cws.adv1.pb.SecDumpProto.ActivityDump parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.dd.cws.adv1.pb.SecDumpProto.ActivityDump parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.dd.cws.adv1.pb.SecDumpProto.ActivityDump parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.dd.cws.adv1.pb.SecDumpProto.ActivityDump parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.dd.cws.adv1.pb.SecDumpProto.ActivityDump parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.dd.cws.adv1.pb.SecDumpProto.ActivityDump parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.dd.cws.adv1.pb.SecDumpProto.ActivityDump parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.dd.cws.adv1.pb.SecDumpProto.ActivityDump parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.dd.cws.adv1.pb.SecDumpProto.ActivityDump parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.dd.cws.adv1.pb.SecDumpProto.ActivityDump parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.dd.cws.adv1.pb.SecDumpProto.ActivityDump parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.dd.cws.adv1.pb.SecDumpProto.ActivityDump parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.dd.cws.adv1.pb.SecDumpProto.ActivityDump prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code datadog.cws.dumpsv1.ActivityDump} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datadog.cws.dumpsv1.ActivityDump) + com.dd.cws.adv1.pb.SecDumpProto.ActivityDumpOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_ActivityDump_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_ActivityDump_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.dd.cws.adv1.pb.SecDumpProto.ActivityDump.class, com.dd.cws.adv1.pb.SecDumpProto.ActivityDump.Builder.class); + } + + // Construct using com.dd.cws.adv1.pb.SecDumpProto.ActivityDump.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + host_ = ""; + service_ = ""; + source_ = ""; + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); + metadataBuilder_ = null; + } + tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000010); + if (treeBuilder_ == null) { + tree_ = java.util.Collections.emptyList(); + } else { + tree_ = null; + treeBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_ActivityDump_descriptor; + } + + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.ActivityDump getDefaultInstanceForType() { + return com.dd.cws.adv1.pb.SecDumpProto.ActivityDump.getDefaultInstance(); + } + + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.ActivityDump build() { + com.dd.cws.adv1.pb.SecDumpProto.ActivityDump result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.ActivityDump buildPartial() { + com.dd.cws.adv1.pb.SecDumpProto.ActivityDump result = new com.dd.cws.adv1.pb.SecDumpProto.ActivityDump(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.dd.cws.adv1.pb.SecDumpProto.ActivityDump result) { + if (((bitField0_ & 0x00000010) != 0)) { + tags_ = tags_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.tags_ = tags_; + if (treeBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0)) { + tree_ = java.util.Collections.unmodifiableList(tree_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.tree_ = tree_; + } else { + result.tree_ = treeBuilder_.build(); + } + } + + private void buildPartial0(com.dd.cws.adv1.pb.SecDumpProto.ActivityDump result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.host_ = host_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.service_ = service_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.source_ = source_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.metadata_ = metadataBuilder_ == null + ? metadata_ + : metadataBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.dd.cws.adv1.pb.SecDumpProto.ActivityDump) { + return mergeFrom((com.dd.cws.adv1.pb.SecDumpProto.ActivityDump)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.dd.cws.adv1.pb.SecDumpProto.ActivityDump other) { + if (other == com.dd.cws.adv1.pb.SecDumpProto.ActivityDump.getDefaultInstance()) return this; + if (!other.getHost().isEmpty()) { + host_ = other.host_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getService().isEmpty()) { + service_ = other.service_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getSource().isEmpty()) { + source_ = other.source_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + if (!other.tags_.isEmpty()) { + if (tags_.isEmpty()) { + tags_ = other.tags_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureTagsIsMutable(); + tags_.addAll(other.tags_); + } + onChanged(); + } + if (treeBuilder_ == null) { + if (!other.tree_.isEmpty()) { + if (tree_.isEmpty()) { + tree_ = other.tree_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureTreeIsMutable(); + tree_.addAll(other.tree_); + } + onChanged(); + } + } else { + if (!other.tree_.isEmpty()) { + if (treeBuilder_.isEmpty()) { + treeBuilder_.dispose(); + treeBuilder_ = null; + tree_ = other.tree_; + bitField0_ = (bitField0_ & ~0x00000020); + treeBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTreeFieldBuilder() : null; + } else { + treeBuilder_.addAllMessages(other.tree_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + host_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + service_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + source_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getMetadataFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + ensureTagsIsMutable(); + tags_.add(s); + break; + } // case 42 + case 50: { + com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode m = + input.readMessage( + com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode.parser(), + extensionRegistry); + if (treeBuilder_ == null) { + ensureTreeIsMutable(); + tree_.add(m); + } else { + treeBuilder_.addMessage(m); + } + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object host_ = ""; + /** + * string host = 1; + * @return The host. + */ + public java.lang.String getHost() { + java.lang.Object ref = host_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + host_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string host = 1; + * @return The bytes for host. + */ + public com.google.protobuf.ByteString + getHostBytes() { + java.lang.Object ref = host_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + host_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string host = 1; + * @param value The host to set. + * @return This builder for chaining. + */ + public Builder setHost( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + host_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string host = 1; + * @return This builder for chaining. + */ + public Builder clearHost() { + host_ = getDefaultInstance().getHost(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string host = 1; + * @param value The bytes for host to set. + * @return This builder for chaining. + */ + public Builder setHostBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + host_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object service_ = ""; + /** + * string service = 2; + * @return The service. + */ + public java.lang.String getService() { + java.lang.Object ref = service_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + service_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string service = 2; + * @return The bytes for service. + */ + public com.google.protobuf.ByteString + getServiceBytes() { + java.lang.Object ref = service_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + service_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string service = 2; + * @param value The service to set. + * @return This builder for chaining. + */ + public Builder setService( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + service_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * string service = 2; + * @return This builder for chaining. + */ + public Builder clearService() { + service_ = getDefaultInstance().getService(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * string service = 2; + * @param value The bytes for service to set. + * @return This builder for chaining. + */ + public Builder setServiceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + service_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object source_ = ""; + /** + * string source = 3; + * @return The source. + */ + public java.lang.String getSource() { + java.lang.Object ref = source_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + source_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string source = 3; + * @return The bytes for source. + */ + public com.google.protobuf.ByteString + getSourceBytes() { + java.lang.Object ref = source_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + source_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string source = 3; + * @param value The source to set. + * @return This builder for chaining. + */ + public Builder setSource( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + source_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * string source = 3; + * @return This builder for chaining. + */ + public Builder clearSource() { + source_ = getDefaultInstance().getSource(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * string source = 3; + * @param value The bytes for source to set. + * @return This builder for chaining. + */ + public Builder setSourceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + source_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.dd.cws.adv1.pb.SecDumpProto.Metadata metadata_; + private com.google.protobuf.SingleFieldBuilderV3< + com.dd.cws.adv1.pb.SecDumpProto.Metadata, com.dd.cws.adv1.pb.SecDumpProto.Metadata.Builder, com.dd.cws.adv1.pb.SecDumpProto.MetadataOrBuilder> metadataBuilder_; + /** + * .datadog.cws.dumpsv1.Metadata metadata = 4; + * @return Whether the metadata field is set. + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * .datadog.cws.dumpsv1.Metadata metadata = 4; + * @return The metadata. + */ + public com.dd.cws.adv1.pb.SecDumpProto.Metadata getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? com.dd.cws.adv1.pb.SecDumpProto.Metadata.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + * .datadog.cws.dumpsv1.Metadata metadata = 4; + */ + public Builder setMetadata(com.dd.cws.adv1.pb.SecDumpProto.Metadata value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + } else { + metadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * .datadog.cws.dumpsv1.Metadata metadata = 4; + */ + public Builder setMetadata( + com.dd.cws.adv1.pb.SecDumpProto.Metadata.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * .datadog.cws.dumpsv1.Metadata metadata = 4; + */ + public Builder mergeMetadata(com.dd.cws.adv1.pb.SecDumpProto.Metadata value) { + if (metadataBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) && + metadata_ != null && + metadata_ != com.dd.cws.adv1.pb.SecDumpProto.Metadata.getDefaultInstance()) { + getMetadataBuilder().mergeFrom(value); + } else { + metadata_ = value; + } + } else { + metadataBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * .datadog.cws.dumpsv1.Metadata metadata = 4; + */ + public Builder clearMetadata() { + bitField0_ = (bitField0_ & ~0x00000008); + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); + metadataBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .datadog.cws.dumpsv1.Metadata metadata = 4; + */ + public com.dd.cws.adv1.pb.SecDumpProto.Metadata.Builder getMetadataBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + * .datadog.cws.dumpsv1.Metadata metadata = 4; + */ + public com.dd.cws.adv1.pb.SecDumpProto.MetadataOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? + com.dd.cws.adv1.pb.SecDumpProto.Metadata.getDefaultInstance() : metadata_; + } + } + /** + * .datadog.cws.dumpsv1.Metadata metadata = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.dd.cws.adv1.pb.SecDumpProto.Metadata, com.dd.cws.adv1.pb.SecDumpProto.Metadata.Builder, com.dd.cws.adv1.pb.SecDumpProto.MetadataOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.dd.cws.adv1.pb.SecDumpProto.Metadata, com.dd.cws.adv1.pb.SecDumpProto.Metadata.Builder, com.dd.cws.adv1.pb.SecDumpProto.MetadataOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + private com.google.protobuf.LazyStringList tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureTagsIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + tags_ = new com.google.protobuf.LazyStringArrayList(tags_); + bitField0_ |= 0x00000010; + } + } + /** + * repeated string tags = 5; + * @return A list containing the tags. + */ + public com.google.protobuf.ProtocolStringList + getTagsList() { + return tags_.getUnmodifiableView(); + } + /** + * repeated string tags = 5; + * @return The count of tags. + */ + public int getTagsCount() { + return tags_.size(); + } + /** + * repeated string tags = 5; + * @param index The index of the element to return. + * @return The tags at the given index. + */ + public java.lang.String getTags(int index) { + return tags_.get(index); + } + /** + * repeated string tags = 5; + * @param index The index of the value to return. + * @return The bytes of the tags at the given index. + */ + public com.google.protobuf.ByteString + getTagsBytes(int index) { + return tags_.getByteString(index); + } + /** + * repeated string tags = 5; + * @param index The index to set the value at. + * @param value The tags to set. + * @return This builder for chaining. + */ + public Builder setTags( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureTagsIsMutable(); + tags_.set(index, value); + onChanged(); + return this; + } + /** + * repeated string tags = 5; + * @param value The tags to add. + * @return This builder for chaining. + */ + public Builder addTags( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureTagsIsMutable(); + tags_.add(value); + onChanged(); + return this; + } + /** + * repeated string tags = 5; + * @param values The tags to add. + * @return This builder for chaining. + */ + public Builder addAllTags( + java.lang.Iterable values) { + ensureTagsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tags_); + onChanged(); + return this; + } + /** + * repeated string tags = 5; + * @return This builder for chaining. + */ + public Builder clearTags() { + tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * repeated string tags = 5; + * @param value The bytes of the tags to add. + * @return This builder for chaining. + */ + public Builder addTagsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureTagsIsMutable(); + tags_.add(value); + onChanged(); + return this; + } + + private java.util.List tree_ = + java.util.Collections.emptyList(); + private void ensureTreeIsMutable() { + if (!((bitField0_ & 0x00000020) != 0)) { + tree_ = new java.util.ArrayList(tree_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode, com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode.Builder, com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNodeOrBuilder> treeBuilder_; + + /** + * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; + */ + public java.util.List getTreeList() { + if (treeBuilder_ == null) { + return java.util.Collections.unmodifiableList(tree_); + } else { + return treeBuilder_.getMessageList(); + } + } + /** + * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; + */ + public int getTreeCount() { + if (treeBuilder_ == null) { + return tree_.size(); + } else { + return treeBuilder_.getCount(); + } + } + /** + * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; + */ + public com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode getTree(int index) { + if (treeBuilder_ == null) { + return tree_.get(index); + } else { + return treeBuilder_.getMessage(index); + } + } + /** + * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; + */ + public Builder setTree( + int index, com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode value) { + if (treeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTreeIsMutable(); + tree_.set(index, value); + onChanged(); + } else { + treeBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; + */ + public Builder setTree( + int index, com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode.Builder builderForValue) { + if (treeBuilder_ == null) { + ensureTreeIsMutable(); + tree_.set(index, builderForValue.build()); + onChanged(); + } else { + treeBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; + */ + public Builder addTree(com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode value) { + if (treeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTreeIsMutable(); + tree_.add(value); + onChanged(); + } else { + treeBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; + */ + public Builder addTree( + int index, com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode value) { + if (treeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTreeIsMutable(); + tree_.add(index, value); + onChanged(); + } else { + treeBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; + */ + public Builder addTree( + com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode.Builder builderForValue) { + if (treeBuilder_ == null) { + ensureTreeIsMutable(); + tree_.add(builderForValue.build()); + onChanged(); + } else { + treeBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; + */ + public Builder addTree( + int index, com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode.Builder builderForValue) { + if (treeBuilder_ == null) { + ensureTreeIsMutable(); + tree_.add(index, builderForValue.build()); + onChanged(); + } else { + treeBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; + */ + public Builder addAllTree( + java.lang.Iterable values) { + if (treeBuilder_ == null) { + ensureTreeIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tree_); + onChanged(); + } else { + treeBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; + */ + public Builder clearTree() { + if (treeBuilder_ == null) { + tree_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + } else { + treeBuilder_.clear(); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; + */ + public Builder removeTree(int index) { + if (treeBuilder_ == null) { + ensureTreeIsMutable(); + tree_.remove(index); + onChanged(); + } else { + treeBuilder_.remove(index); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; + */ + public com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode.Builder getTreeBuilder( + int index) { + return getTreeFieldBuilder().getBuilder(index); + } + /** + * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; + */ + public com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNodeOrBuilder getTreeOrBuilder( + int index) { + if (treeBuilder_ == null) { + return tree_.get(index); } else { + return treeBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; + */ + public java.util.List + getTreeOrBuilderList() { + if (treeBuilder_ != null) { + return treeBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(tree_); + } + } + /** + * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; + */ + public com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode.Builder addTreeBuilder() { + return getTreeFieldBuilder().addBuilder( + com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode.getDefaultInstance()); + } + /** + * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; + */ + public com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode.Builder addTreeBuilder( + int index) { + return getTreeFieldBuilder().addBuilder( + index, com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode.getDefaultInstance()); + } + /** + * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; + */ + public java.util.List + getTreeBuilderList() { + return getTreeFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode, com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode.Builder, com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNodeOrBuilder> + getTreeFieldBuilder() { + if (treeBuilder_ == null) { + treeBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode, com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode.Builder, com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNodeOrBuilder>( + tree_, + ((bitField0_ & 0x00000020) != 0), + getParentForChildren(), + isClean()); + tree_ = null; + } + return treeBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:datadog.cws.dumpsv1.ActivityDump) + } + + // @@protoc_insertion_point(class_scope:datadog.cws.dumpsv1.ActivityDump) + private static final com.dd.cws.adv1.pb.SecDumpProto.ActivityDump DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.dd.cws.adv1.pb.SecDumpProto.ActivityDump(); + } + + public static com.dd.cws.adv1.pb.SecDumpProto.ActivityDump getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ActivityDump parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.ActivityDump getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface MetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:datadog.cws.dumpsv1.Metadata) + com.google.protobuf.MessageOrBuilder { + + /** + * string agent_version = 1; + * @return The agentVersion. + */ + java.lang.String getAgentVersion(); + /** + * string agent_version = 1; + * @return The bytes for agentVersion. + */ + com.google.protobuf.ByteString + getAgentVersionBytes(); + + /** + * string agent_commit = 2; + * @return The agentCommit. + */ + java.lang.String getAgentCommit(); + /** + * string agent_commit = 2; + * @return The bytes for agentCommit. + */ + com.google.protobuf.ByteString + getAgentCommitBytes(); + + /** + * string kernel_version = 3; + * @return The kernelVersion. + */ + java.lang.String getKernelVersion(); + /** + * string kernel_version = 3; + * @return The bytes for kernelVersion. + */ + com.google.protobuf.ByteString + getKernelVersionBytes(); + + /** + * string linux_distribution = 4; + * @return The linuxDistribution. + */ + java.lang.String getLinuxDistribution(); + /** + * string linux_distribution = 4; + * @return The bytes for linuxDistribution. + */ + com.google.protobuf.ByteString + getLinuxDistributionBytes(); + + /** + * string arch = 13; + * @return The arch. + */ + java.lang.String getArch(); + /** + * string arch = 13; + * @return The bytes for arch. + */ + com.google.protobuf.ByteString + getArchBytes(); + + /** + * string name = 5; + * @return The name. + */ + java.lang.String getName(); + /** + * string name = 5; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * string protobuf_version = 6; + * @return The protobufVersion. + */ + java.lang.String getProtobufVersion(); + /** + * string protobuf_version = 6; + * @return The bytes for protobufVersion. + */ + com.google.protobuf.ByteString + getProtobufVersionBytes(); + + /** + * bool differentiate_args = 7; + * @return The differentiateArgs. + */ + boolean getDifferentiateArgs(); + + /** + * string comm = 8; + * @return The comm. + */ + java.lang.String getComm(); + /** + * string comm = 8; + * @return The bytes for comm. + */ + com.google.protobuf.ByteString + getCommBytes(); + + /** + * string container_id = 9; + * @return The containerId. + */ + java.lang.String getContainerId(); + /** + * string container_id = 9; + * @return The bytes for containerId. + */ + com.google.protobuf.ByteString + getContainerIdBytes(); + + /** + * uint64 start = 10; + * @return The start. + */ + long getStart(); + + /** + * uint64 end = 11; + * @return The end. + */ + long getEnd(); + + /** + * uint64 size = 12; + * @return The size. + */ + long getSize(); + + /** + * string serialization = 14; + * @return The serialization. + */ + java.lang.String getSerialization(); + /** + * string serialization = 14; + * @return The bytes for serialization. + */ + com.google.protobuf.ByteString + getSerializationBytes(); + } + /** + * Protobuf type {@code datadog.cws.dumpsv1.Metadata} + */ + public static final class Metadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datadog.cws.dumpsv1.Metadata) + MetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use Metadata.newBuilder() to construct. + private Metadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Metadata() { + agentVersion_ = ""; + agentCommit_ = ""; + kernelVersion_ = ""; + linuxDistribution_ = ""; + arch_ = ""; + name_ = ""; + protobufVersion_ = ""; + comm_ = ""; + containerId_ = ""; + serialization_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Metadata(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_Metadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_Metadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.dd.cws.adv1.pb.SecDumpProto.Metadata.class, com.dd.cws.adv1.pb.SecDumpProto.Metadata.Builder.class); + } + + public static final int AGENT_VERSION_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object agentVersion_ = ""; + /** + * string agent_version = 1; + * @return The agentVersion. + */ + @java.lang.Override + public java.lang.String getAgentVersion() { + java.lang.Object ref = agentVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + agentVersion_ = s; + return s; + } + } + /** + * string agent_version = 1; + * @return The bytes for agentVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getAgentVersionBytes() { + java.lang.Object ref = agentVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + agentVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AGENT_COMMIT_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object agentCommit_ = ""; + /** + * string agent_commit = 2; + * @return The agentCommit. + */ + @java.lang.Override + public java.lang.String getAgentCommit() { + java.lang.Object ref = agentCommit_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + agentCommit_ = s; + return s; + } + } + /** + * string agent_commit = 2; + * @return The bytes for agentCommit. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getAgentCommitBytes() { + java.lang.Object ref = agentCommit_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + agentCommit_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int KERNEL_VERSION_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object kernelVersion_ = ""; + /** + * string kernel_version = 3; + * @return The kernelVersion. + */ + @java.lang.Override + public java.lang.String getKernelVersion() { + java.lang.Object ref = kernelVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kernelVersion_ = s; + return s; + } + } + /** + * string kernel_version = 3; + * @return The bytes for kernelVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getKernelVersionBytes() { + java.lang.Object ref = kernelVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + kernelVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LINUX_DISTRIBUTION_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile java.lang.Object linuxDistribution_ = ""; + /** + * string linux_distribution = 4; + * @return The linuxDistribution. + */ + @java.lang.Override + public java.lang.String getLinuxDistribution() { + java.lang.Object ref = linuxDistribution_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + linuxDistribution_ = s; + return s; + } + } + /** + * string linux_distribution = 4; + * @return The bytes for linuxDistribution. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getLinuxDistributionBytes() { + java.lang.Object ref = linuxDistribution_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + linuxDistribution_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ARCH_FIELD_NUMBER = 13; + @SuppressWarnings("serial") + private volatile java.lang.Object arch_ = ""; + /** + * string arch = 13; + * @return The arch. + */ + @java.lang.Override + public java.lang.String getArch() { + java.lang.Object ref = arch_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + arch_ = s; + return s; + } + } + /** + * string arch = 13; + * @return The bytes for arch. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getArchBytes() { + java.lang.Object ref = arch_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + arch_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * string name = 5; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * string name = 5; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROTOBUF_VERSION_FIELD_NUMBER = 6; + @SuppressWarnings("serial") + private volatile java.lang.Object protobufVersion_ = ""; + /** + * string protobuf_version = 6; + * @return The protobufVersion. + */ + @java.lang.Override + public java.lang.String getProtobufVersion() { + java.lang.Object ref = protobufVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + protobufVersion_ = s; + return s; + } + } + /** + * string protobuf_version = 6; + * @return The bytes for protobufVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getProtobufVersionBytes() { + java.lang.Object ref = protobufVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + protobufVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DIFFERENTIATE_ARGS_FIELD_NUMBER = 7; + private boolean differentiateArgs_ = false; + /** + * bool differentiate_args = 7; + * @return The differentiateArgs. + */ + @java.lang.Override + public boolean getDifferentiateArgs() { + return differentiateArgs_; + } + + public static final int COMM_FIELD_NUMBER = 8; + @SuppressWarnings("serial") + private volatile java.lang.Object comm_ = ""; + /** + * string comm = 8; + * @return The comm. + */ + @java.lang.Override + public java.lang.String getComm() { + java.lang.Object ref = comm_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + comm_ = s; + return s; + } + } + /** + * string comm = 8; + * @return The bytes for comm. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getCommBytes() { + java.lang.Object ref = comm_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + comm_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONTAINER_ID_FIELD_NUMBER = 9; + @SuppressWarnings("serial") + private volatile java.lang.Object containerId_ = ""; + /** + * string container_id = 9; + * @return The containerId. + */ + @java.lang.Override + public java.lang.String getContainerId() { + java.lang.Object ref = containerId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + containerId_ = s; + return s; + } + } + /** + * string container_id = 9; + * @return The bytes for containerId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getContainerIdBytes() { + java.lang.Object ref = containerId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + containerId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int START_FIELD_NUMBER = 10; + private long start_ = 0L; + /** + * uint64 start = 10; + * @return The start. + */ + @java.lang.Override + public long getStart() { + return start_; + } + + public static final int END_FIELD_NUMBER = 11; + private long end_ = 0L; + /** + * uint64 end = 11; + * @return The end. + */ + @java.lang.Override + public long getEnd() { + return end_; + } + + public static final int SIZE_FIELD_NUMBER = 12; + private long size_ = 0L; + /** + * uint64 size = 12; + * @return The size. + */ + @java.lang.Override + public long getSize() { + return size_; + } + + public static final int SERIALIZATION_FIELD_NUMBER = 14; + @SuppressWarnings("serial") + private volatile java.lang.Object serialization_ = ""; + /** + * string serialization = 14; + * @return The serialization. + */ + @java.lang.Override + public java.lang.String getSerialization() { + java.lang.Object ref = serialization_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serialization_ = s; + return s; + } + } + /** + * string serialization = 14; + * @return The bytes for serialization. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getSerializationBytes() { + java.lang.Object ref = serialization_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + serialization_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(agentVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, agentVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(agentCommit_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, agentCommit_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kernelVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, kernelVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(linuxDistribution_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, linuxDistribution_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(protobufVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, protobufVersion_); + } + if (differentiateArgs_ != false) { + output.writeBool(7, differentiateArgs_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(comm_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, comm_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(containerId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, containerId_); + } + if (start_ != 0L) { + output.writeUInt64(10, start_); + } + if (end_ != 0L) { + output.writeUInt64(11, end_); + } + if (size_ != 0L) { + output.writeUInt64(12, size_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(arch_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, arch_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serialization_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 14, serialization_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(agentVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, agentVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(agentCommit_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, agentCommit_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kernelVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, kernelVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(linuxDistribution_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, linuxDistribution_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(protobufVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, protobufVersion_); + } + if (differentiateArgs_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(7, differentiateArgs_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(comm_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, comm_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(containerId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, containerId_); + } + if (start_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(10, start_); + } + if (end_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(11, end_); + } + if (size_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(12, size_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(arch_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, arch_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serialization_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, serialization_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.dd.cws.adv1.pb.SecDumpProto.Metadata)) { + return super.equals(obj); + } + com.dd.cws.adv1.pb.SecDumpProto.Metadata other = (com.dd.cws.adv1.pb.SecDumpProto.Metadata) obj; + + if (!getAgentVersion() + .equals(other.getAgentVersion())) return false; + if (!getAgentCommit() + .equals(other.getAgentCommit())) return false; + if (!getKernelVersion() + .equals(other.getKernelVersion())) return false; + if (!getLinuxDistribution() + .equals(other.getLinuxDistribution())) return false; + if (!getArch() + .equals(other.getArch())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getProtobufVersion() + .equals(other.getProtobufVersion())) return false; + if (getDifferentiateArgs() + != other.getDifferentiateArgs()) return false; + if (!getComm() + .equals(other.getComm())) return false; + if (!getContainerId() + .equals(other.getContainerId())) return false; + if (getStart() + != other.getStart()) return false; + if (getEnd() + != other.getEnd()) return false; + if (getSize() + != other.getSize()) return false; + if (!getSerialization() + .equals(other.getSerialization())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + AGENT_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getAgentVersion().hashCode(); + hash = (37 * hash) + AGENT_COMMIT_FIELD_NUMBER; + hash = (53 * hash) + getAgentCommit().hashCode(); + hash = (37 * hash) + KERNEL_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getKernelVersion().hashCode(); + hash = (37 * hash) + LINUX_DISTRIBUTION_FIELD_NUMBER; + hash = (53 * hash) + getLinuxDistribution().hashCode(); + hash = (37 * hash) + ARCH_FIELD_NUMBER; + hash = (53 * hash) + getArch().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + PROTOBUF_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getProtobufVersion().hashCode(); + hash = (37 * hash) + DIFFERENTIATE_ARGS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDifferentiateArgs()); + hash = (37 * hash) + COMM_FIELD_NUMBER; + hash = (53 * hash) + getComm().hashCode(); + hash = (37 * hash) + CONTAINER_ID_FIELD_NUMBER; + hash = (53 * hash) + getContainerId().hashCode(); + hash = (37 * hash) + START_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getStart()); + hash = (37 * hash) + END_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getEnd()); + hash = (37 * hash) + SIZE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getSize()); + hash = (37 * hash) + SERIALIZATION_FIELD_NUMBER; + hash = (53 * hash) + getSerialization().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.dd.cws.adv1.pb.SecDumpProto.Metadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.dd.cws.adv1.pb.SecDumpProto.Metadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.dd.cws.adv1.pb.SecDumpProto.Metadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.dd.cws.adv1.pb.SecDumpProto.Metadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.dd.cws.adv1.pb.SecDumpProto.Metadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.dd.cws.adv1.pb.SecDumpProto.Metadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.dd.cws.adv1.pb.SecDumpProto.Metadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.dd.cws.adv1.pb.SecDumpProto.Metadata parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.dd.cws.adv1.pb.SecDumpProto.Metadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.dd.cws.adv1.pb.SecDumpProto.Metadata parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.dd.cws.adv1.pb.SecDumpProto.Metadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.dd.cws.adv1.pb.SecDumpProto.Metadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.dd.cws.adv1.pb.SecDumpProto.Metadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code datadog.cws.dumpsv1.Metadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datadog.cws.dumpsv1.Metadata) + com.dd.cws.adv1.pb.SecDumpProto.MetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_Metadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_Metadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.dd.cws.adv1.pb.SecDumpProto.Metadata.class, com.dd.cws.adv1.pb.SecDumpProto.Metadata.Builder.class); + } + + // Construct using com.dd.cws.adv1.pb.SecDumpProto.Metadata.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + agentVersion_ = ""; + agentCommit_ = ""; + kernelVersion_ = ""; + linuxDistribution_ = ""; + arch_ = ""; + name_ = ""; + protobufVersion_ = ""; + differentiateArgs_ = false; + comm_ = ""; + containerId_ = ""; + start_ = 0L; + end_ = 0L; + size_ = 0L; + serialization_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_Metadata_descriptor; + } + + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.Metadata getDefaultInstanceForType() { + return com.dd.cws.adv1.pb.SecDumpProto.Metadata.getDefaultInstance(); + } + + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.Metadata build() { + com.dd.cws.adv1.pb.SecDumpProto.Metadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.Metadata buildPartial() { + com.dd.cws.adv1.pb.SecDumpProto.Metadata result = new com.dd.cws.adv1.pb.SecDumpProto.Metadata(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.dd.cws.adv1.pb.SecDumpProto.Metadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.agentVersion_ = agentVersion_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.agentCommit_ = agentCommit_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.kernelVersion_ = kernelVersion_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.linuxDistribution_ = linuxDistribution_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.arch_ = arch_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.protobufVersion_ = protobufVersion_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.differentiateArgs_ = differentiateArgs_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.comm_ = comm_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.containerId_ = containerId_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.start_ = start_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.end_ = end_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.size_ = size_; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.serialization_ = serialization_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.dd.cws.adv1.pb.SecDumpProto.Metadata) { + return mergeFrom((com.dd.cws.adv1.pb.SecDumpProto.Metadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.dd.cws.adv1.pb.SecDumpProto.Metadata other) { + if (other == com.dd.cws.adv1.pb.SecDumpProto.Metadata.getDefaultInstance()) return this; + if (!other.getAgentVersion().isEmpty()) { + agentVersion_ = other.agentVersion_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getAgentCommit().isEmpty()) { + agentCommit_ = other.agentCommit_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getKernelVersion().isEmpty()) { + kernelVersion_ = other.kernelVersion_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getLinuxDistribution().isEmpty()) { + linuxDistribution_ = other.linuxDistribution_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getArch().isEmpty()) { + arch_ = other.arch_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.getProtobufVersion().isEmpty()) { + protobufVersion_ = other.protobufVersion_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (other.getDifferentiateArgs() != false) { + setDifferentiateArgs(other.getDifferentiateArgs()); + } + if (!other.getComm().isEmpty()) { + comm_ = other.comm_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (!other.getContainerId().isEmpty()) { + containerId_ = other.containerId_; + bitField0_ |= 0x00000200; + onChanged(); + } + if (other.getStart() != 0L) { + setStart(other.getStart()); + } + if (other.getEnd() != 0L) { + setEnd(other.getEnd()); + } + if (other.getSize() != 0L) { + setSize(other.getSize()); + } + if (!other.getSerialization().isEmpty()) { + serialization_ = other.serialization_; + bitField0_ |= 0x00002000; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + agentVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + agentCommit_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + kernelVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + linuxDistribution_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 42 + case 50: { + protobufVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 50 + case 56: { + differentiateArgs_ = input.readBool(); + bitField0_ |= 0x00000080; + break; + } // case 56 + case 66: { + comm_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 66 + case 74: { + containerId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 74 + case 80: { + start_ = input.readUInt64(); + bitField0_ |= 0x00000400; + break; + } // case 80 + case 88: { + end_ = input.readUInt64(); + bitField0_ |= 0x00000800; + break; + } // case 88 + case 96: { + size_ = input.readUInt64(); + bitField0_ |= 0x00001000; + break; + } // case 96 + case 106: { + arch_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 106 + case 114: { + serialization_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00002000; + break; + } // case 114 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object agentVersion_ = ""; + /** + * string agent_version = 1; + * @return The agentVersion. + */ + public java.lang.String getAgentVersion() { + java.lang.Object ref = agentVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + agentVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string agent_version = 1; + * @return The bytes for agentVersion. + */ + public com.google.protobuf.ByteString + getAgentVersionBytes() { + java.lang.Object ref = agentVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + agentVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string agent_version = 1; + * @param value The agentVersion to set. + * @return This builder for chaining. + */ + public Builder setAgentVersion( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + agentVersion_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string agent_version = 1; + * @return This builder for chaining. + */ + public Builder clearAgentVersion() { + agentVersion_ = getDefaultInstance().getAgentVersion(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string agent_version = 1; + * @param value The bytes for agentVersion to set. + * @return This builder for chaining. + */ + public Builder setAgentVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + agentVersion_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object agentCommit_ = ""; + /** + * string agent_commit = 2; + * @return The agentCommit. + */ + public java.lang.String getAgentCommit() { + java.lang.Object ref = agentCommit_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + agentCommit_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string agent_commit = 2; + * @return The bytes for agentCommit. + */ + public com.google.protobuf.ByteString + getAgentCommitBytes() { + java.lang.Object ref = agentCommit_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + agentCommit_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string agent_commit = 2; + * @param value The agentCommit to set. + * @return This builder for chaining. + */ + public Builder setAgentCommit( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + agentCommit_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * string agent_commit = 2; + * @return This builder for chaining. + */ + public Builder clearAgentCommit() { + agentCommit_ = getDefaultInstance().getAgentCommit(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * string agent_commit = 2; + * @param value The bytes for agentCommit to set. + * @return This builder for chaining. + */ + public Builder setAgentCommitBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + agentCommit_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object kernelVersion_ = ""; + /** + * string kernel_version = 3; + * @return The kernelVersion. + */ + public java.lang.String getKernelVersion() { + java.lang.Object ref = kernelVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kernelVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string kernel_version = 3; + * @return The bytes for kernelVersion. + */ + public com.google.protobuf.ByteString + getKernelVersionBytes() { + java.lang.Object ref = kernelVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + kernelVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string kernel_version = 3; + * @param value The kernelVersion to set. + * @return This builder for chaining. + */ + public Builder setKernelVersion( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + kernelVersion_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * string kernel_version = 3; + * @return This builder for chaining. + */ + public Builder clearKernelVersion() { + kernelVersion_ = getDefaultInstance().getKernelVersion(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * string kernel_version = 3; + * @param value The bytes for kernelVersion to set. + * @return This builder for chaining. + */ + public Builder setKernelVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + kernelVersion_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object linuxDistribution_ = ""; + /** + * string linux_distribution = 4; + * @return The linuxDistribution. + */ + public java.lang.String getLinuxDistribution() { + java.lang.Object ref = linuxDistribution_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + linuxDistribution_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string linux_distribution = 4; + * @return The bytes for linuxDistribution. + */ + public com.google.protobuf.ByteString + getLinuxDistributionBytes() { + java.lang.Object ref = linuxDistribution_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + linuxDistribution_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string linux_distribution = 4; + * @param value The linuxDistribution to set. + * @return This builder for chaining. + */ + public Builder setLinuxDistribution( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + linuxDistribution_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * string linux_distribution = 4; + * @return This builder for chaining. + */ + public Builder clearLinuxDistribution() { + linuxDistribution_ = getDefaultInstance().getLinuxDistribution(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * string linux_distribution = 4; + * @param value The bytes for linuxDistribution to set. + * @return This builder for chaining. + */ + public Builder setLinuxDistributionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + linuxDistribution_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object arch_ = ""; + /** + * string arch = 13; + * @return The arch. + */ + public java.lang.String getArch() { + java.lang.Object ref = arch_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + arch_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string arch = 13; + * @return The bytes for arch. + */ + public com.google.protobuf.ByteString + getArchBytes() { + java.lang.Object ref = arch_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + arch_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string arch = 13; + * @param value The arch to set. + * @return This builder for chaining. + */ + public Builder setArch( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + arch_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * string arch = 13; + * @return This builder for chaining. + */ + public Builder clearArch() { + arch_ = getDefaultInstance().getArch(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * string arch = 13; + * @param value The bytes for arch to set. + * @return This builder for chaining. + */ + public Builder setArchBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + arch_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * string name = 5; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string name = 5; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string name = 5; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + name_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * string name = 5; + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * string name = 5; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object protobufVersion_ = ""; + /** + * string protobuf_version = 6; + * @return The protobufVersion. + */ + public java.lang.String getProtobufVersion() { + java.lang.Object ref = protobufVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + protobufVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string protobuf_version = 6; + * @return The bytes for protobufVersion. + */ + public com.google.protobuf.ByteString + getProtobufVersionBytes() { + java.lang.Object ref = protobufVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + protobufVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string protobuf_version = 6; + * @param value The protobufVersion to set. + * @return This builder for chaining. + */ + public Builder setProtobufVersion( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + protobufVersion_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * string protobuf_version = 6; + * @return This builder for chaining. + */ + public Builder clearProtobufVersion() { + protobufVersion_ = getDefaultInstance().getProtobufVersion(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + * string protobuf_version = 6; + * @param value The bytes for protobufVersion to set. + * @return This builder for chaining. + */ + public Builder setProtobufVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + protobufVersion_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private boolean differentiateArgs_ ; + /** + * bool differentiate_args = 7; + * @return The differentiateArgs. + */ + @java.lang.Override + public boolean getDifferentiateArgs() { + return differentiateArgs_; + } + /** + * bool differentiate_args = 7; + * @param value The differentiateArgs to set. + * @return This builder for chaining. + */ + public Builder setDifferentiateArgs(boolean value) { + + differentiateArgs_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * bool differentiate_args = 7; + * @return This builder for chaining. + */ + public Builder clearDifferentiateArgs() { + bitField0_ = (bitField0_ & ~0x00000080); + differentiateArgs_ = false; + onChanged(); + return this; + } + + private java.lang.Object comm_ = ""; + /** + * string comm = 8; + * @return The comm. + */ + public java.lang.String getComm() { + java.lang.Object ref = comm_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + comm_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string comm = 8; + * @return The bytes for comm. + */ + public com.google.protobuf.ByteString + getCommBytes() { + java.lang.Object ref = comm_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + comm_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string comm = 8; + * @param value The comm to set. + * @return This builder for chaining. + */ + public Builder setComm( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + comm_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * string comm = 8; + * @return This builder for chaining. + */ + public Builder clearComm() { + comm_ = getDefaultInstance().getComm(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + /** + * string comm = 8; + * @param value The bytes for comm to set. + * @return This builder for chaining. + */ + public Builder setCommBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + comm_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + private java.lang.Object containerId_ = ""; + /** + * string container_id = 9; + * @return The containerId. + */ + public java.lang.String getContainerId() { + java.lang.Object ref = containerId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + containerId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string container_id = 9; + * @return The bytes for containerId. + */ + public com.google.protobuf.ByteString + getContainerIdBytes() { + java.lang.Object ref = containerId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + containerId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string container_id = 9; + * @param value The containerId to set. + * @return This builder for chaining. + */ + public Builder setContainerId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + containerId_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * string container_id = 9; + * @return This builder for chaining. + */ + public Builder clearContainerId() { + containerId_ = getDefaultInstance().getContainerId(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + /** + * string container_id = 9; + * @param value The bytes for containerId to set. + * @return This builder for chaining. + */ + public Builder setContainerIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + containerId_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + private long start_ ; + /** + * uint64 start = 10; + * @return The start. + */ + @java.lang.Override + public long getStart() { + return start_; + } + /** + * uint64 start = 10; + * @param value The start to set. + * @return This builder for chaining. + */ + public Builder setStart(long value) { + + start_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * uint64 start = 10; + * @return This builder for chaining. + */ + public Builder clearStart() { + bitField0_ = (bitField0_ & ~0x00000400); + start_ = 0L; + onChanged(); + return this; + } + + private long end_ ; + /** + * uint64 end = 11; + * @return The end. + */ + @java.lang.Override + public long getEnd() { + return end_; + } + /** + * uint64 end = 11; + * @param value The end to set. + * @return This builder for chaining. + */ + public Builder setEnd(long value) { + + end_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + * uint64 end = 11; + * @return This builder for chaining. + */ + public Builder clearEnd() { + bitField0_ = (bitField0_ & ~0x00000800); + end_ = 0L; + onChanged(); + return this; + } + + private long size_ ; + /** + * uint64 size = 12; + * @return The size. + */ + @java.lang.Override + public long getSize() { + return size_; + } + /** + * uint64 size = 12; + * @param value The size to set. + * @return This builder for chaining. + */ + public Builder setSize(long value) { + + size_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + * uint64 size = 12; + * @return This builder for chaining. + */ + public Builder clearSize() { + bitField0_ = (bitField0_ & ~0x00001000); + size_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object serialization_ = ""; + /** + * string serialization = 14; + * @return The serialization. + */ + public java.lang.String getSerialization() { + java.lang.Object ref = serialization_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serialization_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string serialization = 14; + * @return The bytes for serialization. + */ + public com.google.protobuf.ByteString + getSerializationBytes() { + java.lang.Object ref = serialization_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + serialization_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string serialization = 14; + * @param value The serialization to set. + * @return This builder for chaining. + */ + public Builder setSerialization( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + serialization_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + /** + * string serialization = 14; + * @return This builder for chaining. + */ + public Builder clearSerialization() { + serialization_ = getDefaultInstance().getSerialization(); + bitField0_ = (bitField0_ & ~0x00002000); + onChanged(); + return this; + } + /** + * string serialization = 14; + * @param value The bytes for serialization to set. + * @return This builder for chaining. + */ + public Builder setSerializationBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + serialization_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:datadog.cws.dumpsv1.Metadata) + } + + // @@protoc_insertion_point(class_scope:datadog.cws.dumpsv1.Metadata) + private static final com.dd.cws.adv1.pb.SecDumpProto.Metadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.dd.cws.adv1.pb.SecDumpProto.Metadata(); + } + + public static com.dd.cws.adv1.pb.SecDumpProto.Metadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Metadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.Metadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SecurityProfileOrBuilder extends + // @@protoc_insertion_point(interface_extends:datadog.cws.dumpsv1.SecurityProfile) + com.google.protobuf.MessageOrBuilder { + + /** + * uint32 status = 1; + * @return The status. + */ + int getStatus(); + + /** + * string version = 2; + * @return The version. + */ + java.lang.String getVersion(); + /** + * string version = 2; + * @return The bytes for version. + */ + com.google.protobuf.ByteString + getVersionBytes(); + + /** + * .datadog.cws.dumpsv1.Metadata metadata = 3; + * @return Whether the metadata field is set. + */ + boolean hasMetadata(); + /** + * .datadog.cws.dumpsv1.Metadata metadata = 3; + * @return The metadata. + */ + com.dd.cws.adv1.pb.SecDumpProto.Metadata getMetadata(); + /** + * .datadog.cws.dumpsv1.Metadata metadata = 3; + */ + com.dd.cws.adv1.pb.SecDumpProto.MetadataOrBuilder getMetadataOrBuilder(); + + /** + * repeated string tags = 4; + * @return A list containing the tags. + */ + java.util.List + getTagsList(); + /** + * repeated string tags = 4; + * @return The count of tags. + */ + int getTagsCount(); + /** + * repeated string tags = 4; + * @param index The index of the element to return. + * @return The tags at the given index. + */ + java.lang.String getTags(int index); + /** + * repeated string tags = 4; + * @param index The index of the value to return. + * @return The bytes of the tags at the given index. + */ + com.google.protobuf.ByteString + getTagsBytes(int index); + + /** + * repeated uint32 syscalls = 5; + * @return A list containing the syscalls. + */ + java.util.List getSyscallsList(); + /** + * repeated uint32 syscalls = 5; + * @return The count of syscalls. + */ + int getSyscallsCount(); + /** + * repeated uint32 syscalls = 5; + * @param index The index of the element to return. + * @return The syscalls at the given index. + */ + int getSyscalls(int index); + + /** + * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; + */ + java.util.List + getTreeList(); + /** + * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; + */ + com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode getTree(int index); + /** + * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; + */ + int getTreeCount(); + /** + * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; + */ + java.util.List + getTreeOrBuilderList(); + /** + * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; + */ + com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNodeOrBuilder getTreeOrBuilder( + int index); + } + /** + * Protobuf type {@code datadog.cws.dumpsv1.SecurityProfile} + */ + public static final class SecurityProfile extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datadog.cws.dumpsv1.SecurityProfile) + SecurityProfileOrBuilder { + private static final long serialVersionUID = 0L; + // Use SecurityProfile.newBuilder() to construct. + private SecurityProfile(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SecurityProfile() { + version_ = ""; + tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + syscalls_ = emptyIntList(); + tree_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SecurityProfile(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_SecurityProfile_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_SecurityProfile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.dd.cws.adv1.pb.SecDumpProto.SecurityProfile.class, com.dd.cws.adv1.pb.SecDumpProto.SecurityProfile.Builder.class); + } + + public static final int STATUS_FIELD_NUMBER = 1; + private int status_ = 0; + /** + * uint32 status = 1; + * @return The status. + */ + @java.lang.Override + public int getStatus() { + return status_; + } + + public static final int VERSION_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object version_ = ""; + /** + * string version = 2; + * @return The version. + */ + @java.lang.Override + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } + } + /** + * string version = 2; + * @return The bytes for version. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int METADATA_FIELD_NUMBER = 3; + private com.dd.cws.adv1.pb.SecDumpProto.Metadata metadata_; + /** + * .datadog.cws.dumpsv1.Metadata metadata = 3; + * @return Whether the metadata field is set. + */ + @java.lang.Override + public boolean hasMetadata() { + return metadata_ != null; + } + /** + * .datadog.cws.dumpsv1.Metadata metadata = 3; + * @return The metadata. + */ + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.Metadata getMetadata() { + return metadata_ == null ? com.dd.cws.adv1.pb.SecDumpProto.Metadata.getDefaultInstance() : metadata_; + } + /** + * .datadog.cws.dumpsv1.Metadata metadata = 3; + */ + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.MetadataOrBuilder getMetadataOrBuilder() { + return metadata_ == null ? com.dd.cws.adv1.pb.SecDumpProto.Metadata.getDefaultInstance() : metadata_; + } + + public static final int TAGS_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringList tags_; + /** + * repeated string tags = 4; + * @return A list containing the tags. + */ + public com.google.protobuf.ProtocolStringList + getTagsList() { + return tags_; + } + /** + * repeated string tags = 4; + * @return The count of tags. + */ + public int getTagsCount() { + return tags_.size(); + } + /** + * repeated string tags = 4; + * @param index The index of the element to return. + * @return The tags at the given index. + */ + public java.lang.String getTags(int index) { + return tags_.get(index); + } + /** + * repeated string tags = 4; + * @param index The index of the value to return. + * @return The bytes of the tags at the given index. + */ + public com.google.protobuf.ByteString + getTagsBytes(int index) { + return tags_.getByteString(index); + } + + public static final int SYSCALLS_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private com.google.protobuf.Internal.IntList syscalls_; + /** + * repeated uint32 syscalls = 5; + * @return A list containing the syscalls. + */ + @java.lang.Override + public java.util.List + getSyscallsList() { + return syscalls_; + } + /** + * repeated uint32 syscalls = 5; + * @return The count of syscalls. + */ + public int getSyscallsCount() { + return syscalls_.size(); + } + /** + * repeated uint32 syscalls = 5; + * @param index The index of the element to return. + * @return The syscalls at the given index. + */ + public int getSyscalls(int index) { + return syscalls_.getInt(index); + } + private int syscallsMemoizedSerializedSize = -1; + + public static final int TREE_FIELD_NUMBER = 6; + @SuppressWarnings("serial") + private java.util.List tree_; + /** + * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; + */ + @java.lang.Override + public java.util.List getTreeList() { + return tree_; + } + /** + * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; + */ + @java.lang.Override + public java.util.List + getTreeOrBuilderList() { + return tree_; + } + /** + * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; + */ + @java.lang.Override + public int getTreeCount() { + return tree_.size(); + } + /** + * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; + */ + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode getTree(int index) { + return tree_.get(index); + } + /** + * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; + */ + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNodeOrBuilder getTreeOrBuilder( + int index) { + return tree_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (status_ != 0) { + output.writeUInt32(1, status_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, version_); + } + if (metadata_ != null) { + output.writeMessage(3, getMetadata()); + } + for (int i = 0; i < tags_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, tags_.getRaw(i)); + } + if (getSyscallsList().size() > 0) { + output.writeUInt32NoTag(42); + output.writeUInt32NoTag(syscallsMemoizedSerializedSize); + } + for (int i = 0; i < syscalls_.size(); i++) { + output.writeUInt32NoTag(syscalls_.getInt(i)); + } + for (int i = 0; i < tree_.size(); i++) { + output.writeMessage(6, tree_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (status_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, status_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, version_); + } + if (metadata_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getMetadata()); + } + { + int dataSize = 0; + for (int i = 0; i < tags_.size(); i++) { + dataSize += computeStringSizeNoTag(tags_.getRaw(i)); + } + size += dataSize; + size += 1 * getTagsList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < syscalls_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(syscalls_.getInt(i)); + } + size += dataSize; + if (!getSyscallsList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + syscallsMemoizedSerializedSize = dataSize; + } + for (int i = 0; i < tree_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, tree_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.dd.cws.adv1.pb.SecDumpProto.SecurityProfile)) { + return super.equals(obj); + } + com.dd.cws.adv1.pb.SecDumpProto.SecurityProfile other = (com.dd.cws.adv1.pb.SecDumpProto.SecurityProfile) obj; + + if (getStatus() + != other.getStatus()) return false; + if (!getVersion() + .equals(other.getVersion())) return false; + if (hasMetadata() != other.hasMetadata()) return false; + if (hasMetadata()) { + if (!getMetadata() + .equals(other.getMetadata())) return false; + } + if (!getTagsList() + .equals(other.getTagsList())) return false; + if (!getSyscallsList() + .equals(other.getSyscallsList())) return false; + if (!getTreeList() + .equals(other.getTreeList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus(); + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().hashCode(); + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + if (getTagsCount() > 0) { + hash = (37 * hash) + TAGS_FIELD_NUMBER; + hash = (53 * hash) + getTagsList().hashCode(); + } + if (getSyscallsCount() > 0) { + hash = (37 * hash) + SYSCALLS_FIELD_NUMBER; + hash = (53 * hash) + getSyscallsList().hashCode(); + } + if (getTreeCount() > 0) { + hash = (37 * hash) + TREE_FIELD_NUMBER; + hash = (53 * hash) + getTreeList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.dd.cws.adv1.pb.SecDumpProto.SecurityProfile parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.dd.cws.adv1.pb.SecDumpProto.SecurityProfile parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.dd.cws.adv1.pb.SecDumpProto.SecurityProfile parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.dd.cws.adv1.pb.SecDumpProto.SecurityProfile parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.dd.cws.adv1.pb.SecDumpProto.SecurityProfile parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.dd.cws.adv1.pb.SecDumpProto.SecurityProfile parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.dd.cws.adv1.pb.SecDumpProto.SecurityProfile parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.dd.cws.adv1.pb.SecDumpProto.SecurityProfile parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.dd.cws.adv1.pb.SecDumpProto.SecurityProfile parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.dd.cws.adv1.pb.SecDumpProto.SecurityProfile parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.dd.cws.adv1.pb.SecDumpProto.SecurityProfile parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.dd.cws.adv1.pb.SecDumpProto.SecurityProfile parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.dd.cws.adv1.pb.SecDumpProto.SecurityProfile prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code datadog.cws.dumpsv1.SecurityProfile} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datadog.cws.dumpsv1.SecurityProfile) + com.dd.cws.adv1.pb.SecDumpProto.SecurityProfileOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_SecurityProfile_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_SecurityProfile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.dd.cws.adv1.pb.SecDumpProto.SecurityProfile.class, com.dd.cws.adv1.pb.SecDumpProto.SecurityProfile.Builder.class); + } + + // Construct using com.dd.cws.adv1.pb.SecDumpProto.SecurityProfile.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + status_ = 0; + version_ = ""; + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); + metadataBuilder_ = null; + } + tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); + syscalls_ = emptyIntList(); + if (treeBuilder_ == null) { + tree_ = java.util.Collections.emptyList(); + } else { + tree_ = null; + treeBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_SecurityProfile_descriptor; + } + + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.SecurityProfile getDefaultInstanceForType() { + return com.dd.cws.adv1.pb.SecDumpProto.SecurityProfile.getDefaultInstance(); + } + + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.SecurityProfile build() { + com.dd.cws.adv1.pb.SecDumpProto.SecurityProfile result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.SecurityProfile buildPartial() { + com.dd.cws.adv1.pb.SecDumpProto.SecurityProfile result = new com.dd.cws.adv1.pb.SecDumpProto.SecurityProfile(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.dd.cws.adv1.pb.SecDumpProto.SecurityProfile result) { + if (((bitField0_ & 0x00000008) != 0)) { + tags_ = tags_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.tags_ = tags_; + if (((bitField0_ & 0x00000010) != 0)) { + syscalls_.makeImmutable(); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.syscalls_ = syscalls_; + if (treeBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0)) { + tree_ = java.util.Collections.unmodifiableList(tree_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.tree_ = tree_; + } else { + result.tree_ = treeBuilder_.build(); + } + } + + private void buildPartial0(com.dd.cws.adv1.pb.SecDumpProto.SecurityProfile result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.status_ = status_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.version_ = version_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.metadata_ = metadataBuilder_ == null + ? metadata_ + : metadataBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.dd.cws.adv1.pb.SecDumpProto.SecurityProfile) { + return mergeFrom((com.dd.cws.adv1.pb.SecDumpProto.SecurityProfile)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.dd.cws.adv1.pb.SecDumpProto.SecurityProfile other) { + if (other == com.dd.cws.adv1.pb.SecDumpProto.SecurityProfile.getDefaultInstance()) return this; + if (other.getStatus() != 0) { + setStatus(other.getStatus()); + } + if (!other.getVersion().isEmpty()) { + version_ = other.version_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + if (!other.tags_.isEmpty()) { + if (tags_.isEmpty()) { + tags_ = other.tags_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureTagsIsMutable(); + tags_.addAll(other.tags_); + } + onChanged(); + } + if (!other.syscalls_.isEmpty()) { + if (syscalls_.isEmpty()) { + syscalls_ = other.syscalls_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureSyscallsIsMutable(); + syscalls_.addAll(other.syscalls_); + } + onChanged(); + } + if (treeBuilder_ == null) { + if (!other.tree_.isEmpty()) { + if (tree_.isEmpty()) { + tree_ = other.tree_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureTreeIsMutable(); + tree_.addAll(other.tree_); + } + onChanged(); + } + } else { + if (!other.tree_.isEmpty()) { + if (treeBuilder_.isEmpty()) { + treeBuilder_.dispose(); + treeBuilder_ = null; + tree_ = other.tree_; + bitField0_ = (bitField0_ & ~0x00000020); + treeBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTreeFieldBuilder() : null; + } else { + treeBuilder_.addAllMessages(other.tree_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + status_ = input.readUInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + version_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getMetadataFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + ensureTagsIsMutable(); + tags_.add(s); + break; + } // case 34 + case 40: { + int v = input.readUInt32(); + ensureSyscallsIsMutable(); + syscalls_.addInt(v); + break; + } // case 40 + case 42: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureSyscallsIsMutable(); + while (input.getBytesUntilLimit() > 0) { + syscalls_.addInt(input.readUInt32()); + } + input.popLimit(limit); + break; + } // case 42 + case 50: { + com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode m = + input.readMessage( + com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode.parser(), + extensionRegistry); + if (treeBuilder_ == null) { + ensureTreeIsMutable(); + tree_.add(m); + } else { + treeBuilder_.addMessage(m); + } + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int status_ ; + /** + * uint32 status = 1; + * @return The status. + */ + @java.lang.Override + public int getStatus() { + return status_; + } + /** + * uint32 status = 1; + * @param value The status to set. + * @return This builder for chaining. + */ + public Builder setStatus(int value) { + + status_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * uint32 status = 1; + * @return This builder for chaining. + */ + public Builder clearStatus() { + bitField0_ = (bitField0_ & ~0x00000001); + status_ = 0; + onChanged(); + return this; + } + + private java.lang.Object version_ = ""; + /** + * string version = 2; + * @return The version. + */ + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string version = 2; + * @return The bytes for version. + */ + public com.google.protobuf.ByteString + getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string version = 2; + * @param value The version to set. + * @return This builder for chaining. + */ + public Builder setVersion( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + version_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * string version = 2; + * @return This builder for chaining. + */ + public Builder clearVersion() { + version_ = getDefaultInstance().getVersion(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * string version = 2; + * @param value The bytes for version to set. + * @return This builder for chaining. + */ + public Builder setVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + version_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.dd.cws.adv1.pb.SecDumpProto.Metadata metadata_; + private com.google.protobuf.SingleFieldBuilderV3< + com.dd.cws.adv1.pb.SecDumpProto.Metadata, com.dd.cws.adv1.pb.SecDumpProto.Metadata.Builder, com.dd.cws.adv1.pb.SecDumpProto.MetadataOrBuilder> metadataBuilder_; + /** + * .datadog.cws.dumpsv1.Metadata metadata = 3; + * @return Whether the metadata field is set. + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * .datadog.cws.dumpsv1.Metadata metadata = 3; + * @return The metadata. + */ + public com.dd.cws.adv1.pb.SecDumpProto.Metadata getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? com.dd.cws.adv1.pb.SecDumpProto.Metadata.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + * .datadog.cws.dumpsv1.Metadata metadata = 3; + */ + public Builder setMetadata(com.dd.cws.adv1.pb.SecDumpProto.Metadata value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + } else { + metadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * .datadog.cws.dumpsv1.Metadata metadata = 3; + */ + public Builder setMetadata( + com.dd.cws.adv1.pb.SecDumpProto.Metadata.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * .datadog.cws.dumpsv1.Metadata metadata = 3; + */ + public Builder mergeMetadata(com.dd.cws.adv1.pb.SecDumpProto.Metadata value) { + if (metadataBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + metadata_ != null && + metadata_ != com.dd.cws.adv1.pb.SecDumpProto.Metadata.getDefaultInstance()) { + getMetadataBuilder().mergeFrom(value); + } else { + metadata_ = value; + } + } else { + metadataBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * .datadog.cws.dumpsv1.Metadata metadata = 3; + */ + public Builder clearMetadata() { + bitField0_ = (bitField0_ & ~0x00000004); + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); + metadataBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .datadog.cws.dumpsv1.Metadata metadata = 3; + */ + public com.dd.cws.adv1.pb.SecDumpProto.Metadata.Builder getMetadataBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + * .datadog.cws.dumpsv1.Metadata metadata = 3; + */ + public com.dd.cws.adv1.pb.SecDumpProto.MetadataOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? + com.dd.cws.adv1.pb.SecDumpProto.Metadata.getDefaultInstance() : metadata_; + } + } + /** + * .datadog.cws.dumpsv1.Metadata metadata = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.dd.cws.adv1.pb.SecDumpProto.Metadata, com.dd.cws.adv1.pb.SecDumpProto.Metadata.Builder, com.dd.cws.adv1.pb.SecDumpProto.MetadataOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.dd.cws.adv1.pb.SecDumpProto.Metadata, com.dd.cws.adv1.pb.SecDumpProto.Metadata.Builder, com.dd.cws.adv1.pb.SecDumpProto.MetadataOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + private com.google.protobuf.LazyStringList tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureTagsIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + tags_ = new com.google.protobuf.LazyStringArrayList(tags_); + bitField0_ |= 0x00000008; + } + } + /** + * repeated string tags = 4; + * @return A list containing the tags. + */ + public com.google.protobuf.ProtocolStringList + getTagsList() { + return tags_.getUnmodifiableView(); + } + /** + * repeated string tags = 4; + * @return The count of tags. + */ + public int getTagsCount() { + return tags_.size(); + } + /** + * repeated string tags = 4; + * @param index The index of the element to return. + * @return The tags at the given index. + */ + public java.lang.String getTags(int index) { + return tags_.get(index); + } + /** + * repeated string tags = 4; + * @param index The index of the value to return. + * @return The bytes of the tags at the given index. + */ + public com.google.protobuf.ByteString + getTagsBytes(int index) { + return tags_.getByteString(index); + } + /** + * repeated string tags = 4; + * @param index The index to set the value at. + * @param value The tags to set. + * @return This builder for chaining. + */ + public Builder setTags( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureTagsIsMutable(); + tags_.set(index, value); + onChanged(); + return this; + } + /** + * repeated string tags = 4; + * @param value The tags to add. + * @return This builder for chaining. + */ + public Builder addTags( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureTagsIsMutable(); + tags_.add(value); + onChanged(); + return this; + } + /** + * repeated string tags = 4; + * @param values The tags to add. + * @return This builder for chaining. + */ + public Builder addAllTags( + java.lang.Iterable values) { + ensureTagsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tags_); + onChanged(); + return this; + } + /** + * repeated string tags = 4; + * @return This builder for chaining. + */ + public Builder clearTags() { + tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * repeated string tags = 4; + * @param value The bytes of the tags to add. + * @return This builder for chaining. + */ + public Builder addTagsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureTagsIsMutable(); + tags_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.Internal.IntList syscalls_ = emptyIntList(); + private void ensureSyscallsIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + syscalls_ = mutableCopy(syscalls_); + bitField0_ |= 0x00000010; + } + } + /** + * repeated uint32 syscalls = 5; + * @return A list containing the syscalls. + */ + public java.util.List + getSyscallsList() { + return ((bitField0_ & 0x00000010) != 0) ? + java.util.Collections.unmodifiableList(syscalls_) : syscalls_; + } + /** + * repeated uint32 syscalls = 5; + * @return The count of syscalls. + */ + public int getSyscallsCount() { + return syscalls_.size(); + } + /** + * repeated uint32 syscalls = 5; + * @param index The index of the element to return. + * @return The syscalls at the given index. + */ + public int getSyscalls(int index) { + return syscalls_.getInt(index); + } + /** + * repeated uint32 syscalls = 5; + * @param index The index to set the value at. + * @param value The syscalls to set. + * @return This builder for chaining. + */ + public Builder setSyscalls( + int index, int value) { + + ensureSyscallsIsMutable(); + syscalls_.setInt(index, value); + onChanged(); + return this; + } + /** + * repeated uint32 syscalls = 5; + * @param value The syscalls to add. + * @return This builder for chaining. + */ + public Builder addSyscalls(int value) { + + ensureSyscallsIsMutable(); + syscalls_.addInt(value); + onChanged(); + return this; + } + /** + * repeated uint32 syscalls = 5; + * @param values The syscalls to add. + * @return This builder for chaining. + */ + public Builder addAllSyscalls( + java.lang.Iterable values) { + ensureSyscallsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, syscalls_); + onChanged(); + return this; + } + /** + * repeated uint32 syscalls = 5; + * @return This builder for chaining. + */ + public Builder clearSyscalls() { + syscalls_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + private java.util.List tree_ = + java.util.Collections.emptyList(); + private void ensureTreeIsMutable() { + if (!((bitField0_ & 0x00000020) != 0)) { + tree_ = new java.util.ArrayList(tree_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode, com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode.Builder, com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNodeOrBuilder> treeBuilder_; + + /** + * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; + */ + public java.util.List getTreeList() { + if (treeBuilder_ == null) { + return java.util.Collections.unmodifiableList(tree_); + } else { + return treeBuilder_.getMessageList(); + } + } + /** + * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; + */ + public int getTreeCount() { + if (treeBuilder_ == null) { + return tree_.size(); + } else { + return treeBuilder_.getCount(); + } + } + /** + * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; + */ + public com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode getTree(int index) { + if (treeBuilder_ == null) { + return tree_.get(index); + } else { + return treeBuilder_.getMessage(index); + } + } + /** + * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; + */ + public Builder setTree( + int index, com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode value) { + if (treeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTreeIsMutable(); + tree_.set(index, value); + onChanged(); + } else { + treeBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; + */ + public Builder setTree( + int index, com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode.Builder builderForValue) { + if (treeBuilder_ == null) { + ensureTreeIsMutable(); + tree_.set(index, builderForValue.build()); + onChanged(); + } else { + treeBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; + */ + public Builder addTree(com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode value) { + if (treeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTreeIsMutable(); + tree_.add(value); + onChanged(); + } else { + treeBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; + */ + public Builder addTree( + int index, com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode value) { + if (treeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTreeIsMutable(); + tree_.add(index, value); + onChanged(); + } else { + treeBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; + */ + public Builder addTree( + com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode.Builder builderForValue) { + if (treeBuilder_ == null) { + ensureTreeIsMutable(); + tree_.add(builderForValue.build()); + onChanged(); + } else { + treeBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; + */ + public Builder addTree( + int index, com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode.Builder builderForValue) { + if (treeBuilder_ == null) { + ensureTreeIsMutable(); + tree_.add(index, builderForValue.build()); + onChanged(); + } else { + treeBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; + */ + public Builder addAllTree( + java.lang.Iterable values) { + if (treeBuilder_ == null) { + ensureTreeIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tree_); + onChanged(); + } else { + treeBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; + */ + public Builder clearTree() { + if (treeBuilder_ == null) { + tree_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + } else { + treeBuilder_.clear(); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; + */ + public Builder removeTree(int index) { + if (treeBuilder_ == null) { + ensureTreeIsMutable(); + tree_.remove(index); + onChanged(); + } else { + treeBuilder_.remove(index); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; + */ + public com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode.Builder getTreeBuilder( + int index) { + return getTreeFieldBuilder().getBuilder(index); + } + /** + * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; + */ + public com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNodeOrBuilder getTreeOrBuilder( + int index) { + if (treeBuilder_ == null) { + return tree_.get(index); } else { + return treeBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; + */ + public java.util.List + getTreeOrBuilderList() { + if (treeBuilder_ != null) { + return treeBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(tree_); + } + } + /** + * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; + */ + public com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode.Builder addTreeBuilder() { + return getTreeFieldBuilder().addBuilder( + com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode.getDefaultInstance()); + } + /** + * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; + */ + public com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode.Builder addTreeBuilder( + int index) { + return getTreeFieldBuilder().addBuilder( + index, com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode.getDefaultInstance()); + } + /** + * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; + */ + public java.util.List + getTreeBuilderList() { + return getTreeFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode, com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode.Builder, com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNodeOrBuilder> + getTreeFieldBuilder() { + if (treeBuilder_ == null) { + treeBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode, com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode.Builder, com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNodeOrBuilder>( + tree_, + ((bitField0_ & 0x00000020) != 0), + getParentForChildren(), + isClean()); + tree_ = null; + } + return treeBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:datadog.cws.dumpsv1.SecurityProfile) + } + + // @@protoc_insertion_point(class_scope:datadog.cws.dumpsv1.SecurityProfile) + private static final com.dd.cws.adv1.pb.SecDumpProto.SecurityProfile DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.dd.cws.adv1.pb.SecDumpProto.SecurityProfile(); + } + + public static com.dd.cws.adv1.pb.SecDumpProto.SecurityProfile getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SecurityProfile parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.SecurityProfile getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ProcessActivityNodeOrBuilder extends + // @@protoc_insertion_point(interface_extends:datadog.cws.dumpsv1.ProcessActivityNode) + com.google.protobuf.MessageOrBuilder { + + /** + * .datadog.cws.dumpsv1.ProcessInfo process = 1; + * @return Whether the process field is set. + */ + boolean hasProcess(); + /** + * .datadog.cws.dumpsv1.ProcessInfo process = 1; + * @return The process. + */ + com.dd.cws.adv1.pb.SecDumpProto.ProcessInfo getProcess(); + /** + * .datadog.cws.dumpsv1.ProcessInfo process = 1; + */ + com.dd.cws.adv1.pb.SecDumpProto.ProcessInfoOrBuilder getProcessOrBuilder(); + + /** + * .datadog.cws.dumpsv1.GenerationType generation_type = 8; + * @return The enum numeric value on the wire for generationType. + */ + int getGenerationTypeValue(); + /** + * .datadog.cws.dumpsv1.GenerationType generation_type = 8; + * @return The generationType. + */ + com.dd.cws.adv1.pb.SecDumpProto.GenerationType getGenerationType(); + + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 9; + */ + java.util.List + getMatchedRulesList(); + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 9; + */ + com.dd.cws.adv1.pb.SecDumpProto.MatchedRule getMatchedRules(int index); + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 9; + */ + int getMatchedRulesCount(); + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 9; + */ + java.util.List + getMatchedRulesOrBuilderList(); + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 9; + */ + com.dd.cws.adv1.pb.SecDumpProto.MatchedRuleOrBuilder getMatchedRulesOrBuilder( + int index); + + /** + * repeated .datadog.cws.dumpsv1.ProcessActivityNode children = 3; + */ + java.util.List + getChildrenList(); + /** + * repeated .datadog.cws.dumpsv1.ProcessActivityNode children = 3; + */ + com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode getChildren(int index); + /** + * repeated .datadog.cws.dumpsv1.ProcessActivityNode children = 3; + */ + int getChildrenCount(); + /** + * repeated .datadog.cws.dumpsv1.ProcessActivityNode children = 3; + */ + java.util.List + getChildrenOrBuilderList(); + /** + * repeated .datadog.cws.dumpsv1.ProcessActivityNode children = 3; + */ + com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNodeOrBuilder getChildrenOrBuilder( + int index); + + /** + * repeated .datadog.cws.dumpsv1.FileActivityNode files = 4; + */ + java.util.List + getFilesList(); + /** + * repeated .datadog.cws.dumpsv1.FileActivityNode files = 4; + */ + com.dd.cws.adv1.pb.SecDumpProto.FileActivityNode getFiles(int index); + /** + * repeated .datadog.cws.dumpsv1.FileActivityNode files = 4; + */ + int getFilesCount(); + /** + * repeated .datadog.cws.dumpsv1.FileActivityNode files = 4; + */ + java.util.List + getFilesOrBuilderList(); + /** + * repeated .datadog.cws.dumpsv1.FileActivityNode files = 4; + */ + com.dd.cws.adv1.pb.SecDumpProto.FileActivityNodeOrBuilder getFilesOrBuilder( + int index); + + /** + * repeated .datadog.cws.dumpsv1.DNSNode dns_names = 5; + */ + java.util.List + getDnsNamesList(); + /** + * repeated .datadog.cws.dumpsv1.DNSNode dns_names = 5; + */ + com.dd.cws.adv1.pb.SecDumpProto.DNSNode getDnsNames(int index); + /** + * repeated .datadog.cws.dumpsv1.DNSNode dns_names = 5; + */ + int getDnsNamesCount(); + /** + * repeated .datadog.cws.dumpsv1.DNSNode dns_names = 5; + */ + java.util.List + getDnsNamesOrBuilderList(); + /** + * repeated .datadog.cws.dumpsv1.DNSNode dns_names = 5; + */ + com.dd.cws.adv1.pb.SecDumpProto.DNSNodeOrBuilder getDnsNamesOrBuilder( + int index); + + /** + * repeated .datadog.cws.dumpsv1.SocketNode sockets = 6; + */ + java.util.List + getSocketsList(); + /** + * repeated .datadog.cws.dumpsv1.SocketNode sockets = 6; + */ + com.dd.cws.adv1.pb.SecDumpProto.SocketNode getSockets(int index); + /** + * repeated .datadog.cws.dumpsv1.SocketNode sockets = 6; + */ + int getSocketsCount(); + /** + * repeated .datadog.cws.dumpsv1.SocketNode sockets = 6; + */ + java.util.List + getSocketsOrBuilderList(); + /** + * repeated .datadog.cws.dumpsv1.SocketNode sockets = 6; + */ + com.dd.cws.adv1.pb.SecDumpProto.SocketNodeOrBuilder getSocketsOrBuilder( + int index); + + /** + * repeated uint32 syscalls = 7; + * @return A list containing the syscalls. + */ + java.util.List getSyscallsList(); + /** + * repeated uint32 syscalls = 7; + * @return The count of syscalls. + */ + int getSyscallsCount(); + /** + * repeated uint32 syscalls = 7; + * @param index The index of the element to return. + * @return The syscalls at the given index. + */ + int getSyscalls(int index); + } + /** + * Protobuf type {@code datadog.cws.dumpsv1.ProcessActivityNode} + */ + public static final class ProcessActivityNode extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datadog.cws.dumpsv1.ProcessActivityNode) + ProcessActivityNodeOrBuilder { + private static final long serialVersionUID = 0L; + // Use ProcessActivityNode.newBuilder() to construct. + private ProcessActivityNode(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ProcessActivityNode() { + generationType_ = 0; + matchedRules_ = java.util.Collections.emptyList(); + children_ = java.util.Collections.emptyList(); + files_ = java.util.Collections.emptyList(); + dnsNames_ = java.util.Collections.emptyList(); + sockets_ = java.util.Collections.emptyList(); + syscalls_ = emptyIntList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ProcessActivityNode(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_ProcessActivityNode_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_ProcessActivityNode_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode.class, com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode.Builder.class); + } + + public static final int PROCESS_FIELD_NUMBER = 1; + private com.dd.cws.adv1.pb.SecDumpProto.ProcessInfo process_; + /** + * .datadog.cws.dumpsv1.ProcessInfo process = 1; + * @return Whether the process field is set. + */ + @java.lang.Override + public boolean hasProcess() { + return process_ != null; + } + /** + * .datadog.cws.dumpsv1.ProcessInfo process = 1; + * @return The process. + */ + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.ProcessInfo getProcess() { + return process_ == null ? com.dd.cws.adv1.pb.SecDumpProto.ProcessInfo.getDefaultInstance() : process_; + } + /** + * .datadog.cws.dumpsv1.ProcessInfo process = 1; + */ + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.ProcessInfoOrBuilder getProcessOrBuilder() { + return process_ == null ? com.dd.cws.adv1.pb.SecDumpProto.ProcessInfo.getDefaultInstance() : process_; + } + + public static final int GENERATION_TYPE_FIELD_NUMBER = 8; + private int generationType_ = 0; + /** + * .datadog.cws.dumpsv1.GenerationType generation_type = 8; + * @return The enum numeric value on the wire for generationType. + */ + @java.lang.Override public int getGenerationTypeValue() { + return generationType_; + } + /** + * .datadog.cws.dumpsv1.GenerationType generation_type = 8; + * @return The generationType. + */ + @java.lang.Override public com.dd.cws.adv1.pb.SecDumpProto.GenerationType getGenerationType() { + com.dd.cws.adv1.pb.SecDumpProto.GenerationType result = com.dd.cws.adv1.pb.SecDumpProto.GenerationType.forNumber(generationType_); + return result == null ? com.dd.cws.adv1.pb.SecDumpProto.GenerationType.UNRECOGNIZED : result; + } + + public static final int MATCHED_RULES_FIELD_NUMBER = 9; + @SuppressWarnings("serial") + private java.util.List matchedRules_; + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 9; + */ + @java.lang.Override + public java.util.List getMatchedRulesList() { + return matchedRules_; + } + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 9; + */ + @java.lang.Override + public java.util.List + getMatchedRulesOrBuilderList() { + return matchedRules_; + } + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 9; + */ + @java.lang.Override + public int getMatchedRulesCount() { + return matchedRules_.size(); + } + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 9; + */ + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.MatchedRule getMatchedRules(int index) { + return matchedRules_.get(index); + } + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 9; + */ + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.MatchedRuleOrBuilder getMatchedRulesOrBuilder( + int index) { + return matchedRules_.get(index); + } + + public static final int CHILDREN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private java.util.List children_; + /** + * repeated .datadog.cws.dumpsv1.ProcessActivityNode children = 3; + */ + @java.lang.Override + public java.util.List getChildrenList() { + return children_; + } + /** + * repeated .datadog.cws.dumpsv1.ProcessActivityNode children = 3; + */ + @java.lang.Override + public java.util.List + getChildrenOrBuilderList() { + return children_; + } + /** + * repeated .datadog.cws.dumpsv1.ProcessActivityNode children = 3; + */ + @java.lang.Override + public int getChildrenCount() { + return children_.size(); + } + /** + * repeated .datadog.cws.dumpsv1.ProcessActivityNode children = 3; + */ + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode getChildren(int index) { + return children_.get(index); + } + /** + * repeated .datadog.cws.dumpsv1.ProcessActivityNode children = 3; + */ + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNodeOrBuilder getChildrenOrBuilder( + int index) { + return children_.get(index); + } + + public static final int FILES_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private java.util.List files_; + /** + * repeated .datadog.cws.dumpsv1.FileActivityNode files = 4; + */ + @java.lang.Override + public java.util.List getFilesList() { + return files_; + } + /** + * repeated .datadog.cws.dumpsv1.FileActivityNode files = 4; + */ + @java.lang.Override + public java.util.List + getFilesOrBuilderList() { + return files_; + } + /** + * repeated .datadog.cws.dumpsv1.FileActivityNode files = 4; + */ + @java.lang.Override + public int getFilesCount() { + return files_.size(); + } + /** + * repeated .datadog.cws.dumpsv1.FileActivityNode files = 4; + */ + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.FileActivityNode getFiles(int index) { + return files_.get(index); + } + /** + * repeated .datadog.cws.dumpsv1.FileActivityNode files = 4; + */ + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.FileActivityNodeOrBuilder getFilesOrBuilder( + int index) { + return files_.get(index); + } + + public static final int DNS_NAMES_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private java.util.List dnsNames_; + /** + * repeated .datadog.cws.dumpsv1.DNSNode dns_names = 5; + */ + @java.lang.Override + public java.util.List getDnsNamesList() { + return dnsNames_; + } + /** + * repeated .datadog.cws.dumpsv1.DNSNode dns_names = 5; + */ + @java.lang.Override + public java.util.List + getDnsNamesOrBuilderList() { + return dnsNames_; + } + /** + * repeated .datadog.cws.dumpsv1.DNSNode dns_names = 5; + */ + @java.lang.Override + public int getDnsNamesCount() { + return dnsNames_.size(); + } + /** + * repeated .datadog.cws.dumpsv1.DNSNode dns_names = 5; + */ + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.DNSNode getDnsNames(int index) { + return dnsNames_.get(index); + } + /** + * repeated .datadog.cws.dumpsv1.DNSNode dns_names = 5; + */ + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.DNSNodeOrBuilder getDnsNamesOrBuilder( + int index) { + return dnsNames_.get(index); + } + + public static final int SOCKETS_FIELD_NUMBER = 6; + @SuppressWarnings("serial") + private java.util.List sockets_; + /** + * repeated .datadog.cws.dumpsv1.SocketNode sockets = 6; + */ + @java.lang.Override + public java.util.List getSocketsList() { + return sockets_; + } + /** + * repeated .datadog.cws.dumpsv1.SocketNode sockets = 6; + */ + @java.lang.Override + public java.util.List + getSocketsOrBuilderList() { + return sockets_; + } + /** + * repeated .datadog.cws.dumpsv1.SocketNode sockets = 6; + */ + @java.lang.Override + public int getSocketsCount() { + return sockets_.size(); + } + /** + * repeated .datadog.cws.dumpsv1.SocketNode sockets = 6; + */ + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.SocketNode getSockets(int index) { + return sockets_.get(index); + } + /** + * repeated .datadog.cws.dumpsv1.SocketNode sockets = 6; + */ + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.SocketNodeOrBuilder getSocketsOrBuilder( + int index) { + return sockets_.get(index); + } + + public static final int SYSCALLS_FIELD_NUMBER = 7; + @SuppressWarnings("serial") + private com.google.protobuf.Internal.IntList syscalls_; + /** + * repeated uint32 syscalls = 7; + * @return A list containing the syscalls. + */ + @java.lang.Override + public java.util.List + getSyscallsList() { + return syscalls_; + } + /** + * repeated uint32 syscalls = 7; + * @return The count of syscalls. + */ + public int getSyscallsCount() { + return syscalls_.size(); + } + /** + * repeated uint32 syscalls = 7; + * @param index The index of the element to return. + * @return The syscalls at the given index. + */ + public int getSyscalls(int index) { + return syscalls_.getInt(index); + } + private int syscallsMemoizedSerializedSize = -1; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (process_ != null) { + output.writeMessage(1, getProcess()); + } + for (int i = 0; i < children_.size(); i++) { + output.writeMessage(3, children_.get(i)); + } + for (int i = 0; i < files_.size(); i++) { + output.writeMessage(4, files_.get(i)); + } + for (int i = 0; i < dnsNames_.size(); i++) { + output.writeMessage(5, dnsNames_.get(i)); + } + for (int i = 0; i < sockets_.size(); i++) { + output.writeMessage(6, sockets_.get(i)); + } + if (getSyscallsList().size() > 0) { + output.writeUInt32NoTag(58); + output.writeUInt32NoTag(syscallsMemoizedSerializedSize); + } + for (int i = 0; i < syscalls_.size(); i++) { + output.writeUInt32NoTag(syscalls_.getInt(i)); + } + if (generationType_ != com.dd.cws.adv1.pb.SecDumpProto.GenerationType.UNKNOWN.getNumber()) { + output.writeEnum(8, generationType_); + } + for (int i = 0; i < matchedRules_.size(); i++) { + output.writeMessage(9, matchedRules_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (process_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getProcess()); + } + for (int i = 0; i < children_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, children_.get(i)); + } + for (int i = 0; i < files_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, files_.get(i)); + } + for (int i = 0; i < dnsNames_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, dnsNames_.get(i)); + } + for (int i = 0; i < sockets_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, sockets_.get(i)); + } + { + int dataSize = 0; + for (int i = 0; i < syscalls_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(syscalls_.getInt(i)); + } + size += dataSize; + if (!getSyscallsList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + syscallsMemoizedSerializedSize = dataSize; + } + if (generationType_ != com.dd.cws.adv1.pb.SecDumpProto.GenerationType.UNKNOWN.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(8, generationType_); + } + for (int i = 0; i < matchedRules_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, matchedRules_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode)) { + return super.equals(obj); + } + com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode other = (com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode) obj; + + if (hasProcess() != other.hasProcess()) return false; + if (hasProcess()) { + if (!getProcess() + .equals(other.getProcess())) return false; + } + if (generationType_ != other.generationType_) return false; + if (!getMatchedRulesList() + .equals(other.getMatchedRulesList())) return false; + if (!getChildrenList() + .equals(other.getChildrenList())) return false; + if (!getFilesList() + .equals(other.getFilesList())) return false; + if (!getDnsNamesList() + .equals(other.getDnsNamesList())) return false; + if (!getSocketsList() + .equals(other.getSocketsList())) return false; + if (!getSyscallsList() + .equals(other.getSyscallsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasProcess()) { + hash = (37 * hash) + PROCESS_FIELD_NUMBER; + hash = (53 * hash) + getProcess().hashCode(); + } + hash = (37 * hash) + GENERATION_TYPE_FIELD_NUMBER; + hash = (53 * hash) + generationType_; + if (getMatchedRulesCount() > 0) { + hash = (37 * hash) + MATCHED_RULES_FIELD_NUMBER; + hash = (53 * hash) + getMatchedRulesList().hashCode(); + } + if (getChildrenCount() > 0) { + hash = (37 * hash) + CHILDREN_FIELD_NUMBER; + hash = (53 * hash) + getChildrenList().hashCode(); + } + if (getFilesCount() > 0) { + hash = (37 * hash) + FILES_FIELD_NUMBER; + hash = (53 * hash) + getFilesList().hashCode(); + } + if (getDnsNamesCount() > 0) { + hash = (37 * hash) + DNS_NAMES_FIELD_NUMBER; + hash = (53 * hash) + getDnsNamesList().hashCode(); + } + if (getSocketsCount() > 0) { + hash = (37 * hash) + SOCKETS_FIELD_NUMBER; + hash = (53 * hash) + getSocketsList().hashCode(); + } + if (getSyscallsCount() > 0) { + hash = (37 * hash) + SYSCALLS_FIELD_NUMBER; + hash = (53 * hash) + getSyscallsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code datadog.cws.dumpsv1.ProcessActivityNode} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datadog.cws.dumpsv1.ProcessActivityNode) + com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNodeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_ProcessActivityNode_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_ProcessActivityNode_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode.class, com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode.Builder.class); + } + + // Construct using com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + process_ = null; + if (processBuilder_ != null) { + processBuilder_.dispose(); + processBuilder_ = null; + } + generationType_ = 0; + if (matchedRulesBuilder_ == null) { + matchedRules_ = java.util.Collections.emptyList(); + } else { + matchedRules_ = null; + matchedRulesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + if (childrenBuilder_ == null) { + children_ = java.util.Collections.emptyList(); + } else { + children_ = null; + childrenBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + if (filesBuilder_ == null) { + files_ = java.util.Collections.emptyList(); + } else { + files_ = null; + filesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + if (dnsNamesBuilder_ == null) { + dnsNames_ = java.util.Collections.emptyList(); + } else { + dnsNames_ = null; + dnsNamesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); + if (socketsBuilder_ == null) { + sockets_ = java.util.Collections.emptyList(); + } else { + sockets_ = null; + socketsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000040); + syscalls_ = emptyIntList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_ProcessActivityNode_descriptor; + } + + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode getDefaultInstanceForType() { + return com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode.getDefaultInstance(); + } + + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode build() { + com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode buildPartial() { + com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode result = new com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode result) { + if (matchedRulesBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + matchedRules_ = java.util.Collections.unmodifiableList(matchedRules_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.matchedRules_ = matchedRules_; + } else { + result.matchedRules_ = matchedRulesBuilder_.build(); + } + if (childrenBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + children_ = java.util.Collections.unmodifiableList(children_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.children_ = children_; + } else { + result.children_ = childrenBuilder_.build(); + } + if (filesBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + files_ = java.util.Collections.unmodifiableList(files_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.files_ = files_; + } else { + result.files_ = filesBuilder_.build(); + } + if (dnsNamesBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0)) { + dnsNames_ = java.util.Collections.unmodifiableList(dnsNames_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.dnsNames_ = dnsNames_; + } else { + result.dnsNames_ = dnsNamesBuilder_.build(); + } + if (socketsBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0)) { + sockets_ = java.util.Collections.unmodifiableList(sockets_); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.sockets_ = sockets_; + } else { + result.sockets_ = socketsBuilder_.build(); + } + if (((bitField0_ & 0x00000080) != 0)) { + syscalls_.makeImmutable(); + bitField0_ = (bitField0_ & ~0x00000080); + } + result.syscalls_ = syscalls_; + } + + private void buildPartial0(com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.process_ = processBuilder_ == null + ? process_ + : processBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.generationType_ = generationType_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode) { + return mergeFrom((com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode other) { + if (other == com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode.getDefaultInstance()) return this; + if (other.hasProcess()) { + mergeProcess(other.getProcess()); + } + if (other.generationType_ != 0) { + setGenerationTypeValue(other.getGenerationTypeValue()); + } + if (matchedRulesBuilder_ == null) { + if (!other.matchedRules_.isEmpty()) { + if (matchedRules_.isEmpty()) { + matchedRules_ = other.matchedRules_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureMatchedRulesIsMutable(); + matchedRules_.addAll(other.matchedRules_); + } + onChanged(); + } + } else { + if (!other.matchedRules_.isEmpty()) { + if (matchedRulesBuilder_.isEmpty()) { + matchedRulesBuilder_.dispose(); + matchedRulesBuilder_ = null; + matchedRules_ = other.matchedRules_; + bitField0_ = (bitField0_ & ~0x00000004); + matchedRulesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getMatchedRulesFieldBuilder() : null; + } else { + matchedRulesBuilder_.addAllMessages(other.matchedRules_); + } + } + } + if (childrenBuilder_ == null) { + if (!other.children_.isEmpty()) { + if (children_.isEmpty()) { + children_ = other.children_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureChildrenIsMutable(); + children_.addAll(other.children_); + } + onChanged(); + } + } else { + if (!other.children_.isEmpty()) { + if (childrenBuilder_.isEmpty()) { + childrenBuilder_.dispose(); + childrenBuilder_ = null; + children_ = other.children_; + bitField0_ = (bitField0_ & ~0x00000008); + childrenBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getChildrenFieldBuilder() : null; + } else { + childrenBuilder_.addAllMessages(other.children_); + } + } + } + if (filesBuilder_ == null) { + if (!other.files_.isEmpty()) { + if (files_.isEmpty()) { + files_ = other.files_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureFilesIsMutable(); + files_.addAll(other.files_); + } + onChanged(); + } + } else { + if (!other.files_.isEmpty()) { + if (filesBuilder_.isEmpty()) { + filesBuilder_.dispose(); + filesBuilder_ = null; + files_ = other.files_; + bitField0_ = (bitField0_ & ~0x00000010); + filesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFilesFieldBuilder() : null; + } else { + filesBuilder_.addAllMessages(other.files_); + } + } + } + if (dnsNamesBuilder_ == null) { + if (!other.dnsNames_.isEmpty()) { + if (dnsNames_.isEmpty()) { + dnsNames_ = other.dnsNames_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureDnsNamesIsMutable(); + dnsNames_.addAll(other.dnsNames_); + } + onChanged(); + } + } else { + if (!other.dnsNames_.isEmpty()) { + if (dnsNamesBuilder_.isEmpty()) { + dnsNamesBuilder_.dispose(); + dnsNamesBuilder_ = null; + dnsNames_ = other.dnsNames_; + bitField0_ = (bitField0_ & ~0x00000020); + dnsNamesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getDnsNamesFieldBuilder() : null; + } else { + dnsNamesBuilder_.addAllMessages(other.dnsNames_); + } + } + } + if (socketsBuilder_ == null) { + if (!other.sockets_.isEmpty()) { + if (sockets_.isEmpty()) { + sockets_ = other.sockets_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensureSocketsIsMutable(); + sockets_.addAll(other.sockets_); + } + onChanged(); + } + } else { + if (!other.sockets_.isEmpty()) { + if (socketsBuilder_.isEmpty()) { + socketsBuilder_.dispose(); + socketsBuilder_ = null; + sockets_ = other.sockets_; + bitField0_ = (bitField0_ & ~0x00000040); + socketsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSocketsFieldBuilder() : null; + } else { + socketsBuilder_.addAllMessages(other.sockets_); + } + } + } + if (!other.syscalls_.isEmpty()) { + if (syscalls_.isEmpty()) { + syscalls_ = other.syscalls_; + bitField0_ = (bitField0_ & ~0x00000080); + } else { + ensureSyscallsIsMutable(); + syscalls_.addAll(other.syscalls_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getProcessFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 26: { + com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode m = + input.readMessage( + com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode.parser(), + extensionRegistry); + if (childrenBuilder_ == null) { + ensureChildrenIsMutable(); + children_.add(m); + } else { + childrenBuilder_.addMessage(m); + } + break; + } // case 26 + case 34: { + com.dd.cws.adv1.pb.SecDumpProto.FileActivityNode m = + input.readMessage( + com.dd.cws.adv1.pb.SecDumpProto.FileActivityNode.parser(), + extensionRegistry); + if (filesBuilder_ == null) { + ensureFilesIsMutable(); + files_.add(m); + } else { + filesBuilder_.addMessage(m); + } + break; + } // case 34 + case 42: { + com.dd.cws.adv1.pb.SecDumpProto.DNSNode m = + input.readMessage( + com.dd.cws.adv1.pb.SecDumpProto.DNSNode.parser(), + extensionRegistry); + if (dnsNamesBuilder_ == null) { + ensureDnsNamesIsMutable(); + dnsNames_.add(m); + } else { + dnsNamesBuilder_.addMessage(m); + } + break; + } // case 42 + case 50: { + com.dd.cws.adv1.pb.SecDumpProto.SocketNode m = + input.readMessage( + com.dd.cws.adv1.pb.SecDumpProto.SocketNode.parser(), + extensionRegistry); + if (socketsBuilder_ == null) { + ensureSocketsIsMutable(); + sockets_.add(m); + } else { + socketsBuilder_.addMessage(m); + } + break; + } // case 50 + case 56: { + int v = input.readUInt32(); + ensureSyscallsIsMutable(); + syscalls_.addInt(v); + break; + } // case 56 + case 58: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureSyscallsIsMutable(); + while (input.getBytesUntilLimit() > 0) { + syscalls_.addInt(input.readUInt32()); + } + input.popLimit(limit); + break; + } // case 58 + case 64: { + generationType_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 64 + case 74: { + com.dd.cws.adv1.pb.SecDumpProto.MatchedRule m = + input.readMessage( + com.dd.cws.adv1.pb.SecDumpProto.MatchedRule.parser(), + extensionRegistry); + if (matchedRulesBuilder_ == null) { + ensureMatchedRulesIsMutable(); + matchedRules_.add(m); + } else { + matchedRulesBuilder_.addMessage(m); + } + break; + } // case 74 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.dd.cws.adv1.pb.SecDumpProto.ProcessInfo process_; + private com.google.protobuf.SingleFieldBuilderV3< + com.dd.cws.adv1.pb.SecDumpProto.ProcessInfo, com.dd.cws.adv1.pb.SecDumpProto.ProcessInfo.Builder, com.dd.cws.adv1.pb.SecDumpProto.ProcessInfoOrBuilder> processBuilder_; + /** + * .datadog.cws.dumpsv1.ProcessInfo process = 1; + * @return Whether the process field is set. + */ + public boolean hasProcess() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .datadog.cws.dumpsv1.ProcessInfo process = 1; + * @return The process. + */ + public com.dd.cws.adv1.pb.SecDumpProto.ProcessInfo getProcess() { + if (processBuilder_ == null) { + return process_ == null ? com.dd.cws.adv1.pb.SecDumpProto.ProcessInfo.getDefaultInstance() : process_; + } else { + return processBuilder_.getMessage(); + } + } + /** + * .datadog.cws.dumpsv1.ProcessInfo process = 1; + */ + public Builder setProcess(com.dd.cws.adv1.pb.SecDumpProto.ProcessInfo value) { + if (processBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + process_ = value; + } else { + processBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .datadog.cws.dumpsv1.ProcessInfo process = 1; + */ + public Builder setProcess( + com.dd.cws.adv1.pb.SecDumpProto.ProcessInfo.Builder builderForValue) { + if (processBuilder_ == null) { + process_ = builderForValue.build(); + } else { + processBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .datadog.cws.dumpsv1.ProcessInfo process = 1; + */ + public Builder mergeProcess(com.dd.cws.adv1.pb.SecDumpProto.ProcessInfo value) { + if (processBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + process_ != null && + process_ != com.dd.cws.adv1.pb.SecDumpProto.ProcessInfo.getDefaultInstance()) { + getProcessBuilder().mergeFrom(value); + } else { + process_ = value; + } + } else { + processBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .datadog.cws.dumpsv1.ProcessInfo process = 1; + */ + public Builder clearProcess() { + bitField0_ = (bitField0_ & ~0x00000001); + process_ = null; + if (processBuilder_ != null) { + processBuilder_.dispose(); + processBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .datadog.cws.dumpsv1.ProcessInfo process = 1; + */ + public com.dd.cws.adv1.pb.SecDumpProto.ProcessInfo.Builder getProcessBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getProcessFieldBuilder().getBuilder(); + } + /** + * .datadog.cws.dumpsv1.ProcessInfo process = 1; + */ + public com.dd.cws.adv1.pb.SecDumpProto.ProcessInfoOrBuilder getProcessOrBuilder() { + if (processBuilder_ != null) { + return processBuilder_.getMessageOrBuilder(); + } else { + return process_ == null ? + com.dd.cws.adv1.pb.SecDumpProto.ProcessInfo.getDefaultInstance() : process_; + } + } + /** + * .datadog.cws.dumpsv1.ProcessInfo process = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.dd.cws.adv1.pb.SecDumpProto.ProcessInfo, com.dd.cws.adv1.pb.SecDumpProto.ProcessInfo.Builder, com.dd.cws.adv1.pb.SecDumpProto.ProcessInfoOrBuilder> + getProcessFieldBuilder() { + if (processBuilder_ == null) { + processBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.dd.cws.adv1.pb.SecDumpProto.ProcessInfo, com.dd.cws.adv1.pb.SecDumpProto.ProcessInfo.Builder, com.dd.cws.adv1.pb.SecDumpProto.ProcessInfoOrBuilder>( + getProcess(), + getParentForChildren(), + isClean()); + process_ = null; + } + return processBuilder_; + } + + private int generationType_ = 0; + /** + * .datadog.cws.dumpsv1.GenerationType generation_type = 8; + * @return The enum numeric value on the wire for generationType. + */ + @java.lang.Override public int getGenerationTypeValue() { + return generationType_; + } + /** + * .datadog.cws.dumpsv1.GenerationType generation_type = 8; + * @param value The enum numeric value on the wire for generationType to set. + * @return This builder for chaining. + */ + public Builder setGenerationTypeValue(int value) { + generationType_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .datadog.cws.dumpsv1.GenerationType generation_type = 8; + * @return The generationType. + */ + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.GenerationType getGenerationType() { + com.dd.cws.adv1.pb.SecDumpProto.GenerationType result = com.dd.cws.adv1.pb.SecDumpProto.GenerationType.forNumber(generationType_); + return result == null ? com.dd.cws.adv1.pb.SecDumpProto.GenerationType.UNRECOGNIZED : result; + } + /** + * .datadog.cws.dumpsv1.GenerationType generation_type = 8; + * @param value The generationType to set. + * @return This builder for chaining. + */ + public Builder setGenerationType(com.dd.cws.adv1.pb.SecDumpProto.GenerationType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + generationType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .datadog.cws.dumpsv1.GenerationType generation_type = 8; + * @return This builder for chaining. + */ + public Builder clearGenerationType() { + bitField0_ = (bitField0_ & ~0x00000002); + generationType_ = 0; + onChanged(); + return this; + } + + private java.util.List matchedRules_ = + java.util.Collections.emptyList(); + private void ensureMatchedRulesIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + matchedRules_ = new java.util.ArrayList(matchedRules_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.dd.cws.adv1.pb.SecDumpProto.MatchedRule, com.dd.cws.adv1.pb.SecDumpProto.MatchedRule.Builder, com.dd.cws.adv1.pb.SecDumpProto.MatchedRuleOrBuilder> matchedRulesBuilder_; + + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 9; + */ + public java.util.List getMatchedRulesList() { + if (matchedRulesBuilder_ == null) { + return java.util.Collections.unmodifiableList(matchedRules_); + } else { + return matchedRulesBuilder_.getMessageList(); + } + } + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 9; + */ + public int getMatchedRulesCount() { + if (matchedRulesBuilder_ == null) { + return matchedRules_.size(); + } else { + return matchedRulesBuilder_.getCount(); + } + } + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 9; + */ + public com.dd.cws.adv1.pb.SecDumpProto.MatchedRule getMatchedRules(int index) { + if (matchedRulesBuilder_ == null) { + return matchedRules_.get(index); + } else { + return matchedRulesBuilder_.getMessage(index); + } + } + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 9; + */ + public Builder setMatchedRules( + int index, com.dd.cws.adv1.pb.SecDumpProto.MatchedRule value) { + if (matchedRulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMatchedRulesIsMutable(); + matchedRules_.set(index, value); + onChanged(); + } else { + matchedRulesBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 9; + */ + public Builder setMatchedRules( + int index, com.dd.cws.adv1.pb.SecDumpProto.MatchedRule.Builder builderForValue) { + if (matchedRulesBuilder_ == null) { + ensureMatchedRulesIsMutable(); + matchedRules_.set(index, builderForValue.build()); + onChanged(); + } else { + matchedRulesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 9; + */ + public Builder addMatchedRules(com.dd.cws.adv1.pb.SecDumpProto.MatchedRule value) { + if (matchedRulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMatchedRulesIsMutable(); + matchedRules_.add(value); + onChanged(); + } else { + matchedRulesBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 9; + */ + public Builder addMatchedRules( + int index, com.dd.cws.adv1.pb.SecDumpProto.MatchedRule value) { + if (matchedRulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMatchedRulesIsMutable(); + matchedRules_.add(index, value); + onChanged(); + } else { + matchedRulesBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 9; + */ + public Builder addMatchedRules( + com.dd.cws.adv1.pb.SecDumpProto.MatchedRule.Builder builderForValue) { + if (matchedRulesBuilder_ == null) { + ensureMatchedRulesIsMutable(); + matchedRules_.add(builderForValue.build()); + onChanged(); + } else { + matchedRulesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 9; + */ + public Builder addMatchedRules( + int index, com.dd.cws.adv1.pb.SecDumpProto.MatchedRule.Builder builderForValue) { + if (matchedRulesBuilder_ == null) { + ensureMatchedRulesIsMutable(); + matchedRules_.add(index, builderForValue.build()); + onChanged(); + } else { + matchedRulesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 9; + */ + public Builder addAllMatchedRules( + java.lang.Iterable values) { + if (matchedRulesBuilder_ == null) { + ensureMatchedRulesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, matchedRules_); + onChanged(); + } else { + matchedRulesBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 9; + */ + public Builder clearMatchedRules() { + if (matchedRulesBuilder_ == null) { + matchedRules_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + matchedRulesBuilder_.clear(); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 9; + */ + public Builder removeMatchedRules(int index) { + if (matchedRulesBuilder_ == null) { + ensureMatchedRulesIsMutable(); + matchedRules_.remove(index); + onChanged(); + } else { + matchedRulesBuilder_.remove(index); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 9; + */ + public com.dd.cws.adv1.pb.SecDumpProto.MatchedRule.Builder getMatchedRulesBuilder( + int index) { + return getMatchedRulesFieldBuilder().getBuilder(index); + } + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 9; + */ + public com.dd.cws.adv1.pb.SecDumpProto.MatchedRuleOrBuilder getMatchedRulesOrBuilder( + int index) { + if (matchedRulesBuilder_ == null) { + return matchedRules_.get(index); } else { + return matchedRulesBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 9; + */ + public java.util.List + getMatchedRulesOrBuilderList() { + if (matchedRulesBuilder_ != null) { + return matchedRulesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(matchedRules_); + } + } + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 9; + */ + public com.dd.cws.adv1.pb.SecDumpProto.MatchedRule.Builder addMatchedRulesBuilder() { + return getMatchedRulesFieldBuilder().addBuilder( + com.dd.cws.adv1.pb.SecDumpProto.MatchedRule.getDefaultInstance()); + } + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 9; + */ + public com.dd.cws.adv1.pb.SecDumpProto.MatchedRule.Builder addMatchedRulesBuilder( + int index) { + return getMatchedRulesFieldBuilder().addBuilder( + index, com.dd.cws.adv1.pb.SecDumpProto.MatchedRule.getDefaultInstance()); + } + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 9; + */ + public java.util.List + getMatchedRulesBuilderList() { + return getMatchedRulesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.dd.cws.adv1.pb.SecDumpProto.MatchedRule, com.dd.cws.adv1.pb.SecDumpProto.MatchedRule.Builder, com.dd.cws.adv1.pb.SecDumpProto.MatchedRuleOrBuilder> + getMatchedRulesFieldBuilder() { + if (matchedRulesBuilder_ == null) { + matchedRulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.dd.cws.adv1.pb.SecDumpProto.MatchedRule, com.dd.cws.adv1.pb.SecDumpProto.MatchedRule.Builder, com.dd.cws.adv1.pb.SecDumpProto.MatchedRuleOrBuilder>( + matchedRules_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + matchedRules_ = null; + } + return matchedRulesBuilder_; + } + + private java.util.List children_ = + java.util.Collections.emptyList(); + private void ensureChildrenIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + children_ = new java.util.ArrayList(children_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode, com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode.Builder, com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNodeOrBuilder> childrenBuilder_; + + /** + * repeated .datadog.cws.dumpsv1.ProcessActivityNode children = 3; + */ + public java.util.List getChildrenList() { + if (childrenBuilder_ == null) { + return java.util.Collections.unmodifiableList(children_); + } else { + return childrenBuilder_.getMessageList(); + } + } + /** + * repeated .datadog.cws.dumpsv1.ProcessActivityNode children = 3; + */ + public int getChildrenCount() { + if (childrenBuilder_ == null) { + return children_.size(); + } else { + return childrenBuilder_.getCount(); + } + } + /** + * repeated .datadog.cws.dumpsv1.ProcessActivityNode children = 3; + */ + public com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode getChildren(int index) { + if (childrenBuilder_ == null) { + return children_.get(index); + } else { + return childrenBuilder_.getMessage(index); + } + } + /** + * repeated .datadog.cws.dumpsv1.ProcessActivityNode children = 3; + */ + public Builder setChildren( + int index, com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode value) { + if (childrenBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChildrenIsMutable(); + children_.set(index, value); + onChanged(); + } else { + childrenBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.ProcessActivityNode children = 3; + */ + public Builder setChildren( + int index, com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode.Builder builderForValue) { + if (childrenBuilder_ == null) { + ensureChildrenIsMutable(); + children_.set(index, builderForValue.build()); + onChanged(); + } else { + childrenBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.ProcessActivityNode children = 3; + */ + public Builder addChildren(com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode value) { + if (childrenBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChildrenIsMutable(); + children_.add(value); + onChanged(); + } else { + childrenBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.ProcessActivityNode children = 3; + */ + public Builder addChildren( + int index, com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode value) { + if (childrenBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChildrenIsMutable(); + children_.add(index, value); + onChanged(); + } else { + childrenBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.ProcessActivityNode children = 3; + */ + public Builder addChildren( + com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode.Builder builderForValue) { + if (childrenBuilder_ == null) { + ensureChildrenIsMutable(); + children_.add(builderForValue.build()); + onChanged(); + } else { + childrenBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.ProcessActivityNode children = 3; + */ + public Builder addChildren( + int index, com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode.Builder builderForValue) { + if (childrenBuilder_ == null) { + ensureChildrenIsMutable(); + children_.add(index, builderForValue.build()); + onChanged(); + } else { + childrenBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.ProcessActivityNode children = 3; + */ + public Builder addAllChildren( + java.lang.Iterable values) { + if (childrenBuilder_ == null) { + ensureChildrenIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, children_); + onChanged(); + } else { + childrenBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.ProcessActivityNode children = 3; + */ + public Builder clearChildren() { + if (childrenBuilder_ == null) { + children_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + childrenBuilder_.clear(); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.ProcessActivityNode children = 3; + */ + public Builder removeChildren(int index) { + if (childrenBuilder_ == null) { + ensureChildrenIsMutable(); + children_.remove(index); + onChanged(); + } else { + childrenBuilder_.remove(index); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.ProcessActivityNode children = 3; + */ + public com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode.Builder getChildrenBuilder( + int index) { + return getChildrenFieldBuilder().getBuilder(index); + } + /** + * repeated .datadog.cws.dumpsv1.ProcessActivityNode children = 3; + */ + public com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNodeOrBuilder getChildrenOrBuilder( + int index) { + if (childrenBuilder_ == null) { + return children_.get(index); } else { + return childrenBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .datadog.cws.dumpsv1.ProcessActivityNode children = 3; + */ + public java.util.List + getChildrenOrBuilderList() { + if (childrenBuilder_ != null) { + return childrenBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(children_); + } + } + /** + * repeated .datadog.cws.dumpsv1.ProcessActivityNode children = 3; + */ + public com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode.Builder addChildrenBuilder() { + return getChildrenFieldBuilder().addBuilder( + com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode.getDefaultInstance()); + } + /** + * repeated .datadog.cws.dumpsv1.ProcessActivityNode children = 3; + */ + public com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode.Builder addChildrenBuilder( + int index) { + return getChildrenFieldBuilder().addBuilder( + index, com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode.getDefaultInstance()); + } + /** + * repeated .datadog.cws.dumpsv1.ProcessActivityNode children = 3; + */ + public java.util.List + getChildrenBuilderList() { + return getChildrenFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode, com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode.Builder, com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNodeOrBuilder> + getChildrenFieldBuilder() { + if (childrenBuilder_ == null) { + childrenBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode, com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode.Builder, com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNodeOrBuilder>( + children_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); + children_ = null; + } + return childrenBuilder_; + } + + private java.util.List files_ = + java.util.Collections.emptyList(); + private void ensureFilesIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + files_ = new java.util.ArrayList(files_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.dd.cws.adv1.pb.SecDumpProto.FileActivityNode, com.dd.cws.adv1.pb.SecDumpProto.FileActivityNode.Builder, com.dd.cws.adv1.pb.SecDumpProto.FileActivityNodeOrBuilder> filesBuilder_; + + /** + * repeated .datadog.cws.dumpsv1.FileActivityNode files = 4; + */ + public java.util.List getFilesList() { + if (filesBuilder_ == null) { + return java.util.Collections.unmodifiableList(files_); + } else { + return filesBuilder_.getMessageList(); + } + } + /** + * repeated .datadog.cws.dumpsv1.FileActivityNode files = 4; + */ + public int getFilesCount() { + if (filesBuilder_ == null) { + return files_.size(); + } else { + return filesBuilder_.getCount(); + } + } + /** + * repeated .datadog.cws.dumpsv1.FileActivityNode files = 4; + */ + public com.dd.cws.adv1.pb.SecDumpProto.FileActivityNode getFiles(int index) { + if (filesBuilder_ == null) { + return files_.get(index); + } else { + return filesBuilder_.getMessage(index); + } + } + /** + * repeated .datadog.cws.dumpsv1.FileActivityNode files = 4; + */ + public Builder setFiles( + int index, com.dd.cws.adv1.pb.SecDumpProto.FileActivityNode value) { + if (filesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilesIsMutable(); + files_.set(index, value); + onChanged(); + } else { + filesBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.FileActivityNode files = 4; + */ + public Builder setFiles( + int index, com.dd.cws.adv1.pb.SecDumpProto.FileActivityNode.Builder builderForValue) { + if (filesBuilder_ == null) { + ensureFilesIsMutable(); + files_.set(index, builderForValue.build()); + onChanged(); + } else { + filesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.FileActivityNode files = 4; + */ + public Builder addFiles(com.dd.cws.adv1.pb.SecDumpProto.FileActivityNode value) { + if (filesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilesIsMutable(); + files_.add(value); + onChanged(); + } else { + filesBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.FileActivityNode files = 4; + */ + public Builder addFiles( + int index, com.dd.cws.adv1.pb.SecDumpProto.FileActivityNode value) { + if (filesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilesIsMutable(); + files_.add(index, value); + onChanged(); + } else { + filesBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.FileActivityNode files = 4; + */ + public Builder addFiles( + com.dd.cws.adv1.pb.SecDumpProto.FileActivityNode.Builder builderForValue) { + if (filesBuilder_ == null) { + ensureFilesIsMutable(); + files_.add(builderForValue.build()); + onChanged(); + } else { + filesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.FileActivityNode files = 4; + */ + public Builder addFiles( + int index, com.dd.cws.adv1.pb.SecDumpProto.FileActivityNode.Builder builderForValue) { + if (filesBuilder_ == null) { + ensureFilesIsMutable(); + files_.add(index, builderForValue.build()); + onChanged(); + } else { + filesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.FileActivityNode files = 4; + */ + public Builder addAllFiles( + java.lang.Iterable values) { + if (filesBuilder_ == null) { + ensureFilesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, files_); + onChanged(); + } else { + filesBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.FileActivityNode files = 4; + */ + public Builder clearFiles() { + if (filesBuilder_ == null) { + files_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + filesBuilder_.clear(); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.FileActivityNode files = 4; + */ + public Builder removeFiles(int index) { + if (filesBuilder_ == null) { + ensureFilesIsMutable(); + files_.remove(index); + onChanged(); + } else { + filesBuilder_.remove(index); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.FileActivityNode files = 4; + */ + public com.dd.cws.adv1.pb.SecDumpProto.FileActivityNode.Builder getFilesBuilder( + int index) { + return getFilesFieldBuilder().getBuilder(index); + } + /** + * repeated .datadog.cws.dumpsv1.FileActivityNode files = 4; + */ + public com.dd.cws.adv1.pb.SecDumpProto.FileActivityNodeOrBuilder getFilesOrBuilder( + int index) { + if (filesBuilder_ == null) { + return files_.get(index); } else { + return filesBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .datadog.cws.dumpsv1.FileActivityNode files = 4; + */ + public java.util.List + getFilesOrBuilderList() { + if (filesBuilder_ != null) { + return filesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(files_); + } + } + /** + * repeated .datadog.cws.dumpsv1.FileActivityNode files = 4; + */ + public com.dd.cws.adv1.pb.SecDumpProto.FileActivityNode.Builder addFilesBuilder() { + return getFilesFieldBuilder().addBuilder( + com.dd.cws.adv1.pb.SecDumpProto.FileActivityNode.getDefaultInstance()); + } + /** + * repeated .datadog.cws.dumpsv1.FileActivityNode files = 4; + */ + public com.dd.cws.adv1.pb.SecDumpProto.FileActivityNode.Builder addFilesBuilder( + int index) { + return getFilesFieldBuilder().addBuilder( + index, com.dd.cws.adv1.pb.SecDumpProto.FileActivityNode.getDefaultInstance()); + } + /** + * repeated .datadog.cws.dumpsv1.FileActivityNode files = 4; + */ + public java.util.List + getFilesBuilderList() { + return getFilesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.dd.cws.adv1.pb.SecDumpProto.FileActivityNode, com.dd.cws.adv1.pb.SecDumpProto.FileActivityNode.Builder, com.dd.cws.adv1.pb.SecDumpProto.FileActivityNodeOrBuilder> + getFilesFieldBuilder() { + if (filesBuilder_ == null) { + filesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.dd.cws.adv1.pb.SecDumpProto.FileActivityNode, com.dd.cws.adv1.pb.SecDumpProto.FileActivityNode.Builder, com.dd.cws.adv1.pb.SecDumpProto.FileActivityNodeOrBuilder>( + files_, + ((bitField0_ & 0x00000010) != 0), + getParentForChildren(), + isClean()); + files_ = null; + } + return filesBuilder_; + } + + private java.util.List dnsNames_ = + java.util.Collections.emptyList(); + private void ensureDnsNamesIsMutable() { + if (!((bitField0_ & 0x00000020) != 0)) { + dnsNames_ = new java.util.ArrayList(dnsNames_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.dd.cws.adv1.pb.SecDumpProto.DNSNode, com.dd.cws.adv1.pb.SecDumpProto.DNSNode.Builder, com.dd.cws.adv1.pb.SecDumpProto.DNSNodeOrBuilder> dnsNamesBuilder_; + + /** + * repeated .datadog.cws.dumpsv1.DNSNode dns_names = 5; + */ + public java.util.List getDnsNamesList() { + if (dnsNamesBuilder_ == null) { + return java.util.Collections.unmodifiableList(dnsNames_); + } else { + return dnsNamesBuilder_.getMessageList(); + } + } + /** + * repeated .datadog.cws.dumpsv1.DNSNode dns_names = 5; + */ + public int getDnsNamesCount() { + if (dnsNamesBuilder_ == null) { + return dnsNames_.size(); + } else { + return dnsNamesBuilder_.getCount(); + } + } + /** + * repeated .datadog.cws.dumpsv1.DNSNode dns_names = 5; + */ + public com.dd.cws.adv1.pb.SecDumpProto.DNSNode getDnsNames(int index) { + if (dnsNamesBuilder_ == null) { + return dnsNames_.get(index); + } else { + return dnsNamesBuilder_.getMessage(index); + } + } + /** + * repeated .datadog.cws.dumpsv1.DNSNode dns_names = 5; + */ + public Builder setDnsNames( + int index, com.dd.cws.adv1.pb.SecDumpProto.DNSNode value) { + if (dnsNamesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDnsNamesIsMutable(); + dnsNames_.set(index, value); + onChanged(); + } else { + dnsNamesBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.DNSNode dns_names = 5; + */ + public Builder setDnsNames( + int index, com.dd.cws.adv1.pb.SecDumpProto.DNSNode.Builder builderForValue) { + if (dnsNamesBuilder_ == null) { + ensureDnsNamesIsMutable(); + dnsNames_.set(index, builderForValue.build()); + onChanged(); + } else { + dnsNamesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.DNSNode dns_names = 5; + */ + public Builder addDnsNames(com.dd.cws.adv1.pb.SecDumpProto.DNSNode value) { + if (dnsNamesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDnsNamesIsMutable(); + dnsNames_.add(value); + onChanged(); + } else { + dnsNamesBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.DNSNode dns_names = 5; + */ + public Builder addDnsNames( + int index, com.dd.cws.adv1.pb.SecDumpProto.DNSNode value) { + if (dnsNamesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDnsNamesIsMutable(); + dnsNames_.add(index, value); + onChanged(); + } else { + dnsNamesBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.DNSNode dns_names = 5; + */ + public Builder addDnsNames( + com.dd.cws.adv1.pb.SecDumpProto.DNSNode.Builder builderForValue) { + if (dnsNamesBuilder_ == null) { + ensureDnsNamesIsMutable(); + dnsNames_.add(builderForValue.build()); + onChanged(); + } else { + dnsNamesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.DNSNode dns_names = 5; + */ + public Builder addDnsNames( + int index, com.dd.cws.adv1.pb.SecDumpProto.DNSNode.Builder builderForValue) { + if (dnsNamesBuilder_ == null) { + ensureDnsNamesIsMutable(); + dnsNames_.add(index, builderForValue.build()); + onChanged(); + } else { + dnsNamesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.DNSNode dns_names = 5; + */ + public Builder addAllDnsNames( + java.lang.Iterable values) { + if (dnsNamesBuilder_ == null) { + ensureDnsNamesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, dnsNames_); + onChanged(); + } else { + dnsNamesBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.DNSNode dns_names = 5; + */ + public Builder clearDnsNames() { + if (dnsNamesBuilder_ == null) { + dnsNames_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + } else { + dnsNamesBuilder_.clear(); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.DNSNode dns_names = 5; + */ + public Builder removeDnsNames(int index) { + if (dnsNamesBuilder_ == null) { + ensureDnsNamesIsMutable(); + dnsNames_.remove(index); + onChanged(); + } else { + dnsNamesBuilder_.remove(index); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.DNSNode dns_names = 5; + */ + public com.dd.cws.adv1.pb.SecDumpProto.DNSNode.Builder getDnsNamesBuilder( + int index) { + return getDnsNamesFieldBuilder().getBuilder(index); + } + /** + * repeated .datadog.cws.dumpsv1.DNSNode dns_names = 5; + */ + public com.dd.cws.adv1.pb.SecDumpProto.DNSNodeOrBuilder getDnsNamesOrBuilder( + int index) { + if (dnsNamesBuilder_ == null) { + return dnsNames_.get(index); } else { + return dnsNamesBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .datadog.cws.dumpsv1.DNSNode dns_names = 5; + */ + public java.util.List + getDnsNamesOrBuilderList() { + if (dnsNamesBuilder_ != null) { + return dnsNamesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(dnsNames_); + } + } + /** + * repeated .datadog.cws.dumpsv1.DNSNode dns_names = 5; + */ + public com.dd.cws.adv1.pb.SecDumpProto.DNSNode.Builder addDnsNamesBuilder() { + return getDnsNamesFieldBuilder().addBuilder( + com.dd.cws.adv1.pb.SecDumpProto.DNSNode.getDefaultInstance()); + } + /** + * repeated .datadog.cws.dumpsv1.DNSNode dns_names = 5; + */ + public com.dd.cws.adv1.pb.SecDumpProto.DNSNode.Builder addDnsNamesBuilder( + int index) { + return getDnsNamesFieldBuilder().addBuilder( + index, com.dd.cws.adv1.pb.SecDumpProto.DNSNode.getDefaultInstance()); + } + /** + * repeated .datadog.cws.dumpsv1.DNSNode dns_names = 5; + */ + public java.util.List + getDnsNamesBuilderList() { + return getDnsNamesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.dd.cws.adv1.pb.SecDumpProto.DNSNode, com.dd.cws.adv1.pb.SecDumpProto.DNSNode.Builder, com.dd.cws.adv1.pb.SecDumpProto.DNSNodeOrBuilder> + getDnsNamesFieldBuilder() { + if (dnsNamesBuilder_ == null) { + dnsNamesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.dd.cws.adv1.pb.SecDumpProto.DNSNode, com.dd.cws.adv1.pb.SecDumpProto.DNSNode.Builder, com.dd.cws.adv1.pb.SecDumpProto.DNSNodeOrBuilder>( + dnsNames_, + ((bitField0_ & 0x00000020) != 0), + getParentForChildren(), + isClean()); + dnsNames_ = null; + } + return dnsNamesBuilder_; + } + + private java.util.List sockets_ = + java.util.Collections.emptyList(); + private void ensureSocketsIsMutable() { + if (!((bitField0_ & 0x00000040) != 0)) { + sockets_ = new java.util.ArrayList(sockets_); + bitField0_ |= 0x00000040; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.dd.cws.adv1.pb.SecDumpProto.SocketNode, com.dd.cws.adv1.pb.SecDumpProto.SocketNode.Builder, com.dd.cws.adv1.pb.SecDumpProto.SocketNodeOrBuilder> socketsBuilder_; + + /** + * repeated .datadog.cws.dumpsv1.SocketNode sockets = 6; + */ + public java.util.List getSocketsList() { + if (socketsBuilder_ == null) { + return java.util.Collections.unmodifiableList(sockets_); + } else { + return socketsBuilder_.getMessageList(); + } + } + /** + * repeated .datadog.cws.dumpsv1.SocketNode sockets = 6; + */ + public int getSocketsCount() { + if (socketsBuilder_ == null) { + return sockets_.size(); + } else { + return socketsBuilder_.getCount(); + } + } + /** + * repeated .datadog.cws.dumpsv1.SocketNode sockets = 6; + */ + public com.dd.cws.adv1.pb.SecDumpProto.SocketNode getSockets(int index) { + if (socketsBuilder_ == null) { + return sockets_.get(index); + } else { + return socketsBuilder_.getMessage(index); + } + } + /** + * repeated .datadog.cws.dumpsv1.SocketNode sockets = 6; + */ + public Builder setSockets( + int index, com.dd.cws.adv1.pb.SecDumpProto.SocketNode value) { + if (socketsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSocketsIsMutable(); + sockets_.set(index, value); + onChanged(); + } else { + socketsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.SocketNode sockets = 6; + */ + public Builder setSockets( + int index, com.dd.cws.adv1.pb.SecDumpProto.SocketNode.Builder builderForValue) { + if (socketsBuilder_ == null) { + ensureSocketsIsMutable(); + sockets_.set(index, builderForValue.build()); + onChanged(); + } else { + socketsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.SocketNode sockets = 6; + */ + public Builder addSockets(com.dd.cws.adv1.pb.SecDumpProto.SocketNode value) { + if (socketsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSocketsIsMutable(); + sockets_.add(value); + onChanged(); + } else { + socketsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.SocketNode sockets = 6; + */ + public Builder addSockets( + int index, com.dd.cws.adv1.pb.SecDumpProto.SocketNode value) { + if (socketsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSocketsIsMutable(); + sockets_.add(index, value); + onChanged(); + } else { + socketsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.SocketNode sockets = 6; + */ + public Builder addSockets( + com.dd.cws.adv1.pb.SecDumpProto.SocketNode.Builder builderForValue) { + if (socketsBuilder_ == null) { + ensureSocketsIsMutable(); + sockets_.add(builderForValue.build()); + onChanged(); + } else { + socketsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.SocketNode sockets = 6; + */ + public Builder addSockets( + int index, com.dd.cws.adv1.pb.SecDumpProto.SocketNode.Builder builderForValue) { + if (socketsBuilder_ == null) { + ensureSocketsIsMutable(); + sockets_.add(index, builderForValue.build()); + onChanged(); + } else { + socketsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.SocketNode sockets = 6; + */ + public Builder addAllSockets( + java.lang.Iterable values) { + if (socketsBuilder_ == null) { + ensureSocketsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, sockets_); + onChanged(); + } else { + socketsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.SocketNode sockets = 6; + */ + public Builder clearSockets() { + if (socketsBuilder_ == null) { + sockets_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + } else { + socketsBuilder_.clear(); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.SocketNode sockets = 6; + */ + public Builder removeSockets(int index) { + if (socketsBuilder_ == null) { + ensureSocketsIsMutable(); + sockets_.remove(index); + onChanged(); + } else { + socketsBuilder_.remove(index); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.SocketNode sockets = 6; + */ + public com.dd.cws.adv1.pb.SecDumpProto.SocketNode.Builder getSocketsBuilder( + int index) { + return getSocketsFieldBuilder().getBuilder(index); + } + /** + * repeated .datadog.cws.dumpsv1.SocketNode sockets = 6; + */ + public com.dd.cws.adv1.pb.SecDumpProto.SocketNodeOrBuilder getSocketsOrBuilder( + int index) { + if (socketsBuilder_ == null) { + return sockets_.get(index); } else { + return socketsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .datadog.cws.dumpsv1.SocketNode sockets = 6; + */ + public java.util.List + getSocketsOrBuilderList() { + if (socketsBuilder_ != null) { + return socketsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(sockets_); + } + } + /** + * repeated .datadog.cws.dumpsv1.SocketNode sockets = 6; + */ + public com.dd.cws.adv1.pb.SecDumpProto.SocketNode.Builder addSocketsBuilder() { + return getSocketsFieldBuilder().addBuilder( + com.dd.cws.adv1.pb.SecDumpProto.SocketNode.getDefaultInstance()); + } + /** + * repeated .datadog.cws.dumpsv1.SocketNode sockets = 6; + */ + public com.dd.cws.adv1.pb.SecDumpProto.SocketNode.Builder addSocketsBuilder( + int index) { + return getSocketsFieldBuilder().addBuilder( + index, com.dd.cws.adv1.pb.SecDumpProto.SocketNode.getDefaultInstance()); + } + /** + * repeated .datadog.cws.dumpsv1.SocketNode sockets = 6; + */ + public java.util.List + getSocketsBuilderList() { + return getSocketsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.dd.cws.adv1.pb.SecDumpProto.SocketNode, com.dd.cws.adv1.pb.SecDumpProto.SocketNode.Builder, com.dd.cws.adv1.pb.SecDumpProto.SocketNodeOrBuilder> + getSocketsFieldBuilder() { + if (socketsBuilder_ == null) { + socketsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.dd.cws.adv1.pb.SecDumpProto.SocketNode, com.dd.cws.adv1.pb.SecDumpProto.SocketNode.Builder, com.dd.cws.adv1.pb.SecDumpProto.SocketNodeOrBuilder>( + sockets_, + ((bitField0_ & 0x00000040) != 0), + getParentForChildren(), + isClean()); + sockets_ = null; + } + return socketsBuilder_; + } + + private com.google.protobuf.Internal.IntList syscalls_ = emptyIntList(); + private void ensureSyscallsIsMutable() { + if (!((bitField0_ & 0x00000080) != 0)) { + syscalls_ = mutableCopy(syscalls_); + bitField0_ |= 0x00000080; + } + } + /** + * repeated uint32 syscalls = 7; + * @return A list containing the syscalls. + */ + public java.util.List + getSyscallsList() { + return ((bitField0_ & 0x00000080) != 0) ? + java.util.Collections.unmodifiableList(syscalls_) : syscalls_; + } + /** + * repeated uint32 syscalls = 7; + * @return The count of syscalls. + */ + public int getSyscallsCount() { + return syscalls_.size(); + } + /** + * repeated uint32 syscalls = 7; + * @param index The index of the element to return. + * @return The syscalls at the given index. + */ + public int getSyscalls(int index) { + return syscalls_.getInt(index); + } + /** + * repeated uint32 syscalls = 7; + * @param index The index to set the value at. + * @param value The syscalls to set. + * @return This builder for chaining. + */ + public Builder setSyscalls( + int index, int value) { + + ensureSyscallsIsMutable(); + syscalls_.setInt(index, value); + onChanged(); + return this; + } + /** + * repeated uint32 syscalls = 7; + * @param value The syscalls to add. + * @return This builder for chaining. + */ + public Builder addSyscalls(int value) { + + ensureSyscallsIsMutable(); + syscalls_.addInt(value); + onChanged(); + return this; + } + /** + * repeated uint32 syscalls = 7; + * @param values The syscalls to add. + * @return This builder for chaining. + */ + public Builder addAllSyscalls( + java.lang.Iterable values) { + ensureSyscallsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, syscalls_); + onChanged(); + return this; + } + /** + * repeated uint32 syscalls = 7; + * @return This builder for chaining. + */ + public Builder clearSyscalls() { + syscalls_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:datadog.cws.dumpsv1.ProcessActivityNode) + } + + // @@protoc_insertion_point(class_scope:datadog.cws.dumpsv1.ProcessActivityNode) + private static final com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode(); + } + + public static com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProcessActivityNode parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ProcessInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:datadog.cws.dumpsv1.ProcessInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * uint32 pid = 1; + * @return The pid. + */ + int getPid(); + + /** + * uint32 tid = 2; + * @return The tid. + */ + int getTid(); + + /** + * uint32 ppid = 3; + * @return The ppid. + */ + int getPpid(); + + /** + * uint32 cookie = 4; + * @return The cookie. + */ + int getCookie(); + + /** + * bool is_thread = 5; + * @return The isThread. + */ + boolean getIsThread(); + + /** + * .datadog.cws.dumpsv1.FileInfo file = 6; + * @return Whether the file field is set. + */ + boolean hasFile(); + /** + * .datadog.cws.dumpsv1.FileInfo file = 6; + * @return The file. + */ + com.dd.cws.adv1.pb.SecDumpProto.FileInfo getFile(); + /** + * .datadog.cws.dumpsv1.FileInfo file = 6; + */ + com.dd.cws.adv1.pb.SecDumpProto.FileInfoOrBuilder getFileOrBuilder(); + + /** + * string container_id = 7; + * @return The containerId. + */ + java.lang.String getContainerId(); + /** + * string container_id = 7; + * @return The bytes for containerId. + */ + com.google.protobuf.ByteString + getContainerIdBytes(); + + /** + * uint64 span_id = 8; + * @return The spanId. + */ + long getSpanId(); + + /** + * uint64 trace_id = 9; + * @return The traceId. + */ + long getTraceId(); + + /** + * string tty = 10; + * @return The tty. + */ + java.lang.String getTty(); + /** + * string tty = 10; + * @return The bytes for tty. + */ + com.google.protobuf.ByteString + getTtyBytes(); + + /** + * string comm = 11; + * @return The comm. + */ + java.lang.String getComm(); + /** + * string comm = 11; + * @return The bytes for comm. + */ + com.google.protobuf.ByteString + getCommBytes(); + + /** + * uint64 fork_time = 12; + * @return The forkTime. + */ + long getForkTime(); + + /** + * uint64 exit_time = 13; + * @return The exitTime. + */ + long getExitTime(); + + /** + * uint64 exec_time = 14; + * @return The execTime. + */ + long getExecTime(); + + /** + * .datadog.cws.dumpsv1.Credentials credentials = 15; + * @return Whether the credentials field is set. + */ + boolean hasCredentials(); + /** + * .datadog.cws.dumpsv1.Credentials credentials = 15; + * @return The credentials. + */ + com.dd.cws.adv1.pb.SecDumpProto.Credentials getCredentials(); + /** + * .datadog.cws.dumpsv1.Credentials credentials = 15; + */ + com.dd.cws.adv1.pb.SecDumpProto.CredentialsOrBuilder getCredentialsOrBuilder(); + + /** + * repeated string args = 16; + * @return A list containing the args. + */ + java.util.List + getArgsList(); + /** + * repeated string args = 16; + * @return The count of args. + */ + int getArgsCount(); + /** + * repeated string args = 16; + * @param index The index of the element to return. + * @return The args at the given index. + */ + java.lang.String getArgs(int index); + /** + * repeated string args = 16; + * @param index The index of the value to return. + * @return The bytes of the args at the given index. + */ + com.google.protobuf.ByteString + getArgsBytes(int index); + + /** + * string argv0 = 17; + * @return The argv0. + */ + java.lang.String getArgv0(); + /** + * string argv0 = 17; + * @return The bytes for argv0. + */ + com.google.protobuf.ByteString + getArgv0Bytes(); + + /** + * bool args_truncated = 18; + * @return The argsTruncated. + */ + boolean getArgsTruncated(); + + /** + * repeated string envs = 19; + * @return A list containing the envs. + */ + java.util.List + getEnvsList(); + /** + * repeated string envs = 19; + * @return The count of envs. + */ + int getEnvsCount(); + /** + * repeated string envs = 19; + * @param index The index of the element to return. + * @return The envs at the given index. + */ + java.lang.String getEnvs(int index); + /** + * repeated string envs = 19; + * @param index The index of the value to return. + * @return The bytes of the envs at the given index. + */ + com.google.protobuf.ByteString + getEnvsBytes(int index); + + /** + * bool envs_truncated = 20; + * @return The envsTruncated. + */ + boolean getEnvsTruncated(); + } + /** + * Protobuf type {@code datadog.cws.dumpsv1.ProcessInfo} + */ + public static final class ProcessInfo extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datadog.cws.dumpsv1.ProcessInfo) + ProcessInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use ProcessInfo.newBuilder() to construct. + private ProcessInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ProcessInfo() { + containerId_ = ""; + tty_ = ""; + comm_ = ""; + args_ = com.google.protobuf.LazyStringArrayList.EMPTY; + argv0_ = ""; + envs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ProcessInfo(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_ProcessInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_ProcessInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.dd.cws.adv1.pb.SecDumpProto.ProcessInfo.class, com.dd.cws.adv1.pb.SecDumpProto.ProcessInfo.Builder.class); + } + + public static final int PID_FIELD_NUMBER = 1; + private int pid_ = 0; + /** + * uint32 pid = 1; + * @return The pid. + */ + @java.lang.Override + public int getPid() { + return pid_; + } + + public static final int TID_FIELD_NUMBER = 2; + private int tid_ = 0; + /** + * uint32 tid = 2; + * @return The tid. + */ + @java.lang.Override + public int getTid() { + return tid_; + } + + public static final int PPID_FIELD_NUMBER = 3; + private int ppid_ = 0; + /** + * uint32 ppid = 3; + * @return The ppid. + */ + @java.lang.Override + public int getPpid() { + return ppid_; + } + + public static final int COOKIE_FIELD_NUMBER = 4; + private int cookie_ = 0; + /** + * uint32 cookie = 4; + * @return The cookie. + */ + @java.lang.Override + public int getCookie() { + return cookie_; + } + + public static final int IS_THREAD_FIELD_NUMBER = 5; + private boolean isThread_ = false; + /** + * bool is_thread = 5; + * @return The isThread. + */ + @java.lang.Override + public boolean getIsThread() { + return isThread_; + } + + public static final int FILE_FIELD_NUMBER = 6; + private com.dd.cws.adv1.pb.SecDumpProto.FileInfo file_; + /** + * .datadog.cws.dumpsv1.FileInfo file = 6; + * @return Whether the file field is set. + */ + @java.lang.Override + public boolean hasFile() { + return file_ != null; + } + /** + * .datadog.cws.dumpsv1.FileInfo file = 6; + * @return The file. + */ + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.FileInfo getFile() { + return file_ == null ? com.dd.cws.adv1.pb.SecDumpProto.FileInfo.getDefaultInstance() : file_; + } + /** + * .datadog.cws.dumpsv1.FileInfo file = 6; + */ + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.FileInfoOrBuilder getFileOrBuilder() { + return file_ == null ? com.dd.cws.adv1.pb.SecDumpProto.FileInfo.getDefaultInstance() : file_; + } + + public static final int CONTAINER_ID_FIELD_NUMBER = 7; + @SuppressWarnings("serial") + private volatile java.lang.Object containerId_ = ""; + /** + * string container_id = 7; + * @return The containerId. + */ + @java.lang.Override + public java.lang.String getContainerId() { + java.lang.Object ref = containerId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + containerId_ = s; + return s; + } + } + /** + * string container_id = 7; + * @return The bytes for containerId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getContainerIdBytes() { + java.lang.Object ref = containerId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + containerId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SPAN_ID_FIELD_NUMBER = 8; + private long spanId_ = 0L; + /** + * uint64 span_id = 8; + * @return The spanId. + */ + @java.lang.Override + public long getSpanId() { + return spanId_; + } + + public static final int TRACE_ID_FIELD_NUMBER = 9; + private long traceId_ = 0L; + /** + * uint64 trace_id = 9; + * @return The traceId. + */ + @java.lang.Override + public long getTraceId() { + return traceId_; + } + + public static final int TTY_FIELD_NUMBER = 10; + @SuppressWarnings("serial") + private volatile java.lang.Object tty_ = ""; + /** + * string tty = 10; + * @return The tty. + */ + @java.lang.Override + public java.lang.String getTty() { + java.lang.Object ref = tty_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tty_ = s; + return s; + } + } + /** + * string tty = 10; + * @return The bytes for tty. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getTtyBytes() { + java.lang.Object ref = tty_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + tty_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COMM_FIELD_NUMBER = 11; + @SuppressWarnings("serial") + private volatile java.lang.Object comm_ = ""; + /** + * string comm = 11; + * @return The comm. + */ + @java.lang.Override + public java.lang.String getComm() { + java.lang.Object ref = comm_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + comm_ = s; + return s; + } + } + /** + * string comm = 11; + * @return The bytes for comm. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getCommBytes() { + java.lang.Object ref = comm_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + comm_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FORK_TIME_FIELD_NUMBER = 12; + private long forkTime_ = 0L; + /** + * uint64 fork_time = 12; + * @return The forkTime. + */ + @java.lang.Override + public long getForkTime() { + return forkTime_; + } + + public static final int EXIT_TIME_FIELD_NUMBER = 13; + private long exitTime_ = 0L; + /** + * uint64 exit_time = 13; + * @return The exitTime. + */ + @java.lang.Override + public long getExitTime() { + return exitTime_; + } + + public static final int EXEC_TIME_FIELD_NUMBER = 14; + private long execTime_ = 0L; + /** + * uint64 exec_time = 14; + * @return The execTime. + */ + @java.lang.Override + public long getExecTime() { + return execTime_; + } + + public static final int CREDENTIALS_FIELD_NUMBER = 15; + private com.dd.cws.adv1.pb.SecDumpProto.Credentials credentials_; + /** + * .datadog.cws.dumpsv1.Credentials credentials = 15; + * @return Whether the credentials field is set. + */ + @java.lang.Override + public boolean hasCredentials() { + return credentials_ != null; + } + /** + * .datadog.cws.dumpsv1.Credentials credentials = 15; + * @return The credentials. + */ + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.Credentials getCredentials() { + return credentials_ == null ? com.dd.cws.adv1.pb.SecDumpProto.Credentials.getDefaultInstance() : credentials_; + } + /** + * .datadog.cws.dumpsv1.Credentials credentials = 15; + */ + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.CredentialsOrBuilder getCredentialsOrBuilder() { + return credentials_ == null ? com.dd.cws.adv1.pb.SecDumpProto.Credentials.getDefaultInstance() : credentials_; + } + + public static final int ARGS_FIELD_NUMBER = 16; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringList args_; + /** + * repeated string args = 16; + * @return A list containing the args. + */ + public com.google.protobuf.ProtocolStringList + getArgsList() { + return args_; + } + /** + * repeated string args = 16; + * @return The count of args. + */ + public int getArgsCount() { + return args_.size(); + } + /** + * repeated string args = 16; + * @param index The index of the element to return. + * @return The args at the given index. + */ + public java.lang.String getArgs(int index) { + return args_.get(index); + } + /** + * repeated string args = 16; + * @param index The index of the value to return. + * @return The bytes of the args at the given index. + */ + public com.google.protobuf.ByteString + getArgsBytes(int index) { + return args_.getByteString(index); + } + + public static final int ARGV0_FIELD_NUMBER = 17; + @SuppressWarnings("serial") + private volatile java.lang.Object argv0_ = ""; + /** + * string argv0 = 17; + * @return The argv0. + */ + @java.lang.Override + public java.lang.String getArgv0() { + java.lang.Object ref = argv0_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + argv0_ = s; + return s; + } + } + /** + * string argv0 = 17; + * @return The bytes for argv0. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getArgv0Bytes() { + java.lang.Object ref = argv0_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + argv0_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ARGS_TRUNCATED_FIELD_NUMBER = 18; + private boolean argsTruncated_ = false; + /** + * bool args_truncated = 18; + * @return The argsTruncated. + */ + @java.lang.Override + public boolean getArgsTruncated() { + return argsTruncated_; + } + + public static final int ENVS_FIELD_NUMBER = 19; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringList envs_; + /** + * repeated string envs = 19; + * @return A list containing the envs. + */ + public com.google.protobuf.ProtocolStringList + getEnvsList() { + return envs_; + } + /** + * repeated string envs = 19; + * @return The count of envs. + */ + public int getEnvsCount() { + return envs_.size(); + } + /** + * repeated string envs = 19; + * @param index The index of the element to return. + * @return The envs at the given index. + */ + public java.lang.String getEnvs(int index) { + return envs_.get(index); + } + /** + * repeated string envs = 19; + * @param index The index of the value to return. + * @return The bytes of the envs at the given index. + */ + public com.google.protobuf.ByteString + getEnvsBytes(int index) { + return envs_.getByteString(index); + } + + public static final int ENVS_TRUNCATED_FIELD_NUMBER = 20; + private boolean envsTruncated_ = false; + /** + * bool envs_truncated = 20; + * @return The envsTruncated. + */ + @java.lang.Override + public boolean getEnvsTruncated() { + return envsTruncated_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (pid_ != 0) { + output.writeUInt32(1, pid_); + } + if (tid_ != 0) { + output.writeUInt32(2, tid_); + } + if (ppid_ != 0) { + output.writeUInt32(3, ppid_); + } + if (cookie_ != 0) { + output.writeUInt32(4, cookie_); + } + if (isThread_ != false) { + output.writeBool(5, isThread_); + } + if (file_ != null) { + output.writeMessage(6, getFile()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(containerId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, containerId_); + } + if (spanId_ != 0L) { + output.writeUInt64(8, spanId_); + } + if (traceId_ != 0L) { + output.writeUInt64(9, traceId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tty_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, tty_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(comm_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, comm_); + } + if (forkTime_ != 0L) { + output.writeUInt64(12, forkTime_); + } + if (exitTime_ != 0L) { + output.writeUInt64(13, exitTime_); + } + if (execTime_ != 0L) { + output.writeUInt64(14, execTime_); + } + if (credentials_ != null) { + output.writeMessage(15, getCredentials()); + } + for (int i = 0; i < args_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 16, args_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(argv0_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 17, argv0_); + } + if (argsTruncated_ != false) { + output.writeBool(18, argsTruncated_); + } + for (int i = 0; i < envs_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 19, envs_.getRaw(i)); + } + if (envsTruncated_ != false) { + output.writeBool(20, envsTruncated_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (pid_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, pid_); + } + if (tid_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, tid_); + } + if (ppid_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(3, ppid_); + } + if (cookie_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(4, cookie_); + } + if (isThread_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, isThread_); + } + if (file_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getFile()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(containerId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, containerId_); + } + if (spanId_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(8, spanId_); + } + if (traceId_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(9, traceId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tty_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, tty_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(comm_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, comm_); + } + if (forkTime_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(12, forkTime_); + } + if (exitTime_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(13, exitTime_); + } + if (execTime_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(14, execTime_); + } + if (credentials_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(15, getCredentials()); + } + { + int dataSize = 0; + for (int i = 0; i < args_.size(); i++) { + dataSize += computeStringSizeNoTag(args_.getRaw(i)); + } + size += dataSize; + size += 2 * getArgsList().size(); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(argv0_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, argv0_); + } + if (argsTruncated_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(18, argsTruncated_); + } + { + int dataSize = 0; + for (int i = 0; i < envs_.size(); i++) { + dataSize += computeStringSizeNoTag(envs_.getRaw(i)); + } + size += dataSize; + size += 2 * getEnvsList().size(); + } + if (envsTruncated_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(20, envsTruncated_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.dd.cws.adv1.pb.SecDumpProto.ProcessInfo)) { + return super.equals(obj); + } + com.dd.cws.adv1.pb.SecDumpProto.ProcessInfo other = (com.dd.cws.adv1.pb.SecDumpProto.ProcessInfo) obj; + + if (getPid() + != other.getPid()) return false; + if (getTid() + != other.getTid()) return false; + if (getPpid() + != other.getPpid()) return false; + if (getCookie() + != other.getCookie()) return false; + if (getIsThread() + != other.getIsThread()) return false; + if (hasFile() != other.hasFile()) return false; + if (hasFile()) { + if (!getFile() + .equals(other.getFile())) return false; + } + if (!getContainerId() + .equals(other.getContainerId())) return false; + if (getSpanId() + != other.getSpanId()) return false; + if (getTraceId() + != other.getTraceId()) return false; + if (!getTty() + .equals(other.getTty())) return false; + if (!getComm() + .equals(other.getComm())) return false; + if (getForkTime() + != other.getForkTime()) return false; + if (getExitTime() + != other.getExitTime()) return false; + if (getExecTime() + != other.getExecTime()) return false; + if (hasCredentials() != other.hasCredentials()) return false; + if (hasCredentials()) { + if (!getCredentials() + .equals(other.getCredentials())) return false; + } + if (!getArgsList() + .equals(other.getArgsList())) return false; + if (!getArgv0() + .equals(other.getArgv0())) return false; + if (getArgsTruncated() + != other.getArgsTruncated()) return false; + if (!getEnvsList() + .equals(other.getEnvsList())) return false; + if (getEnvsTruncated() + != other.getEnvsTruncated()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PID_FIELD_NUMBER; + hash = (53 * hash) + getPid(); + hash = (37 * hash) + TID_FIELD_NUMBER; + hash = (53 * hash) + getTid(); + hash = (37 * hash) + PPID_FIELD_NUMBER; + hash = (53 * hash) + getPpid(); + hash = (37 * hash) + COOKIE_FIELD_NUMBER; + hash = (53 * hash) + getCookie(); + hash = (37 * hash) + IS_THREAD_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsThread()); + if (hasFile()) { + hash = (37 * hash) + FILE_FIELD_NUMBER; + hash = (53 * hash) + getFile().hashCode(); + } + hash = (37 * hash) + CONTAINER_ID_FIELD_NUMBER; + hash = (53 * hash) + getContainerId().hashCode(); + hash = (37 * hash) + SPAN_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getSpanId()); + hash = (37 * hash) + TRACE_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTraceId()); + hash = (37 * hash) + TTY_FIELD_NUMBER; + hash = (53 * hash) + getTty().hashCode(); + hash = (37 * hash) + COMM_FIELD_NUMBER; + hash = (53 * hash) + getComm().hashCode(); + hash = (37 * hash) + FORK_TIME_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getForkTime()); + hash = (37 * hash) + EXIT_TIME_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getExitTime()); + hash = (37 * hash) + EXEC_TIME_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getExecTime()); + if (hasCredentials()) { + hash = (37 * hash) + CREDENTIALS_FIELD_NUMBER; + hash = (53 * hash) + getCredentials().hashCode(); + } + if (getArgsCount() > 0) { + hash = (37 * hash) + ARGS_FIELD_NUMBER; + hash = (53 * hash) + getArgsList().hashCode(); + } + hash = (37 * hash) + ARGV0_FIELD_NUMBER; + hash = (53 * hash) + getArgv0().hashCode(); + hash = (37 * hash) + ARGS_TRUNCATED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getArgsTruncated()); + if (getEnvsCount() > 0) { + hash = (37 * hash) + ENVS_FIELD_NUMBER; + hash = (53 * hash) + getEnvsList().hashCode(); + } + hash = (37 * hash) + ENVS_TRUNCATED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnvsTruncated()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.dd.cws.adv1.pb.SecDumpProto.ProcessInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.dd.cws.adv1.pb.SecDumpProto.ProcessInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.dd.cws.adv1.pb.SecDumpProto.ProcessInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.dd.cws.adv1.pb.SecDumpProto.ProcessInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.dd.cws.adv1.pb.SecDumpProto.ProcessInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.dd.cws.adv1.pb.SecDumpProto.ProcessInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.dd.cws.adv1.pb.SecDumpProto.ProcessInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.dd.cws.adv1.pb.SecDumpProto.ProcessInfo parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.dd.cws.adv1.pb.SecDumpProto.ProcessInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.dd.cws.adv1.pb.SecDumpProto.ProcessInfo parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.dd.cws.adv1.pb.SecDumpProto.ProcessInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.dd.cws.adv1.pb.SecDumpProto.ProcessInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.dd.cws.adv1.pb.SecDumpProto.ProcessInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code datadog.cws.dumpsv1.ProcessInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datadog.cws.dumpsv1.ProcessInfo) + com.dd.cws.adv1.pb.SecDumpProto.ProcessInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_ProcessInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_ProcessInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.dd.cws.adv1.pb.SecDumpProto.ProcessInfo.class, com.dd.cws.adv1.pb.SecDumpProto.ProcessInfo.Builder.class); + } + + // Construct using com.dd.cws.adv1.pb.SecDumpProto.ProcessInfo.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + pid_ = 0; + tid_ = 0; + ppid_ = 0; + cookie_ = 0; + isThread_ = false; + file_ = null; + if (fileBuilder_ != null) { + fileBuilder_.dispose(); + fileBuilder_ = null; + } + containerId_ = ""; + spanId_ = 0L; + traceId_ = 0L; + tty_ = ""; + comm_ = ""; + forkTime_ = 0L; + exitTime_ = 0L; + execTime_ = 0L; + credentials_ = null; + if (credentialsBuilder_ != null) { + credentialsBuilder_.dispose(); + credentialsBuilder_ = null; + } + args_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00008000); + argv0_ = ""; + argsTruncated_ = false; + envs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00040000); + envsTruncated_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_ProcessInfo_descriptor; + } + + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.ProcessInfo getDefaultInstanceForType() { + return com.dd.cws.adv1.pb.SecDumpProto.ProcessInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.ProcessInfo build() { + com.dd.cws.adv1.pb.SecDumpProto.ProcessInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.ProcessInfo buildPartial() { + com.dd.cws.adv1.pb.SecDumpProto.ProcessInfo result = new com.dd.cws.adv1.pb.SecDumpProto.ProcessInfo(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.dd.cws.adv1.pb.SecDumpProto.ProcessInfo result) { + if (((bitField0_ & 0x00008000) != 0)) { + args_ = args_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00008000); + } + result.args_ = args_; + if (((bitField0_ & 0x00040000) != 0)) { + envs_ = envs_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00040000); + } + result.envs_ = envs_; + } + + private void buildPartial0(com.dd.cws.adv1.pb.SecDumpProto.ProcessInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.pid_ = pid_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.tid_ = tid_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.ppid_ = ppid_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.cookie_ = cookie_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.isThread_ = isThread_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.file_ = fileBuilder_ == null + ? file_ + : fileBuilder_.build(); + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.containerId_ = containerId_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.spanId_ = spanId_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.traceId_ = traceId_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.tty_ = tty_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.comm_ = comm_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.forkTime_ = forkTime_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.exitTime_ = exitTime_; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.execTime_ = execTime_; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.credentials_ = credentialsBuilder_ == null + ? credentials_ + : credentialsBuilder_.build(); + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.argv0_ = argv0_; + } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.argsTruncated_ = argsTruncated_; + } + if (((from_bitField0_ & 0x00080000) != 0)) { + result.envsTruncated_ = envsTruncated_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.dd.cws.adv1.pb.SecDumpProto.ProcessInfo) { + return mergeFrom((com.dd.cws.adv1.pb.SecDumpProto.ProcessInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.dd.cws.adv1.pb.SecDumpProto.ProcessInfo other) { + if (other == com.dd.cws.adv1.pb.SecDumpProto.ProcessInfo.getDefaultInstance()) return this; + if (other.getPid() != 0) { + setPid(other.getPid()); + } + if (other.getTid() != 0) { + setTid(other.getTid()); + } + if (other.getPpid() != 0) { + setPpid(other.getPpid()); + } + if (other.getCookie() != 0) { + setCookie(other.getCookie()); + } + if (other.getIsThread() != false) { + setIsThread(other.getIsThread()); + } + if (other.hasFile()) { + mergeFile(other.getFile()); + } + if (!other.getContainerId().isEmpty()) { + containerId_ = other.containerId_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (other.getSpanId() != 0L) { + setSpanId(other.getSpanId()); + } + if (other.getTraceId() != 0L) { + setTraceId(other.getTraceId()); + } + if (!other.getTty().isEmpty()) { + tty_ = other.tty_; + bitField0_ |= 0x00000200; + onChanged(); + } + if (!other.getComm().isEmpty()) { + comm_ = other.comm_; + bitField0_ |= 0x00000400; + onChanged(); + } + if (other.getForkTime() != 0L) { + setForkTime(other.getForkTime()); + } + if (other.getExitTime() != 0L) { + setExitTime(other.getExitTime()); + } + if (other.getExecTime() != 0L) { + setExecTime(other.getExecTime()); + } + if (other.hasCredentials()) { + mergeCredentials(other.getCredentials()); + } + if (!other.args_.isEmpty()) { + if (args_.isEmpty()) { + args_ = other.args_; + bitField0_ = (bitField0_ & ~0x00008000); + } else { + ensureArgsIsMutable(); + args_.addAll(other.args_); + } + onChanged(); + } + if (!other.getArgv0().isEmpty()) { + argv0_ = other.argv0_; + bitField0_ |= 0x00010000; + onChanged(); + } + if (other.getArgsTruncated() != false) { + setArgsTruncated(other.getArgsTruncated()); + } + if (!other.envs_.isEmpty()) { + if (envs_.isEmpty()) { + envs_ = other.envs_; + bitField0_ = (bitField0_ & ~0x00040000); + } else { + ensureEnvsIsMutable(); + envs_.addAll(other.envs_); + } + onChanged(); + } + if (other.getEnvsTruncated() != false) { + setEnvsTruncated(other.getEnvsTruncated()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + pid_ = input.readUInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + tid_ = input.readUInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + ppid_ = input.readUInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: { + cookie_ = input.readUInt32(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: { + isThread_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 50: { + input.readMessage( + getFileFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + containerId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 64: { + spanId_ = input.readUInt64(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 72: { + traceId_ = input.readUInt64(); + bitField0_ |= 0x00000100; + break; + } // case 72 + case 82: { + tty_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 82 + case 90: { + comm_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000400; + break; + } // case 90 + case 96: { + forkTime_ = input.readUInt64(); + bitField0_ |= 0x00000800; + break; + } // case 96 + case 104: { + exitTime_ = input.readUInt64(); + bitField0_ |= 0x00001000; + break; + } // case 104 + case 112: { + execTime_ = input.readUInt64(); + bitField0_ |= 0x00002000; + break; + } // case 112 + case 122: { + input.readMessage( + getCredentialsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00004000; + break; + } // case 122 + case 130: { + java.lang.String s = input.readStringRequireUtf8(); + ensureArgsIsMutable(); + args_.add(s); + break; + } // case 130 + case 138: { + argv0_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00010000; + break; + } // case 138 + case 144: { + argsTruncated_ = input.readBool(); + bitField0_ |= 0x00020000; + break; + } // case 144 + case 154: { + java.lang.String s = input.readStringRequireUtf8(); + ensureEnvsIsMutable(); + envs_.add(s); + break; + } // case 154 + case 160: { + envsTruncated_ = input.readBool(); + bitField0_ |= 0x00080000; + break; + } // case 160 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int pid_ ; + /** + * uint32 pid = 1; + * @return The pid. + */ + @java.lang.Override + public int getPid() { + return pid_; + } + /** + * uint32 pid = 1; + * @param value The pid to set. + * @return This builder for chaining. + */ + public Builder setPid(int value) { + + pid_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * uint32 pid = 1; + * @return This builder for chaining. + */ + public Builder clearPid() { + bitField0_ = (bitField0_ & ~0x00000001); + pid_ = 0; + onChanged(); + return this; + } + + private int tid_ ; + /** + * uint32 tid = 2; + * @return The tid. + */ + @java.lang.Override + public int getTid() { + return tid_; + } + /** + * uint32 tid = 2; + * @param value The tid to set. + * @return This builder for chaining. + */ + public Builder setTid(int value) { + + tid_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * uint32 tid = 2; + * @return This builder for chaining. + */ + public Builder clearTid() { + bitField0_ = (bitField0_ & ~0x00000002); + tid_ = 0; + onChanged(); + return this; + } + + private int ppid_ ; + /** + * uint32 ppid = 3; + * @return The ppid. + */ + @java.lang.Override + public int getPpid() { + return ppid_; + } + /** + * uint32 ppid = 3; + * @param value The ppid to set. + * @return This builder for chaining. + */ + public Builder setPpid(int value) { + + ppid_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * uint32 ppid = 3; + * @return This builder for chaining. + */ + public Builder clearPpid() { + bitField0_ = (bitField0_ & ~0x00000004); + ppid_ = 0; + onChanged(); + return this; + } + + private int cookie_ ; + /** + * uint32 cookie = 4; + * @return The cookie. + */ + @java.lang.Override + public int getCookie() { + return cookie_; + } + /** + * uint32 cookie = 4; + * @param value The cookie to set. + * @return This builder for chaining. + */ + public Builder setCookie(int value) { + + cookie_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * uint32 cookie = 4; + * @return This builder for chaining. + */ + public Builder clearCookie() { + bitField0_ = (bitField0_ & ~0x00000008); + cookie_ = 0; + onChanged(); + return this; + } + + private boolean isThread_ ; + /** + * bool is_thread = 5; + * @return The isThread. + */ + @java.lang.Override + public boolean getIsThread() { + return isThread_; + } + /** + * bool is_thread = 5; + * @param value The isThread to set. + * @return This builder for chaining. + */ + public Builder setIsThread(boolean value) { + + isThread_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * bool is_thread = 5; + * @return This builder for chaining. + */ + public Builder clearIsThread() { + bitField0_ = (bitField0_ & ~0x00000010); + isThread_ = false; + onChanged(); + return this; + } + + private com.dd.cws.adv1.pb.SecDumpProto.FileInfo file_; + private com.google.protobuf.SingleFieldBuilderV3< + com.dd.cws.adv1.pb.SecDumpProto.FileInfo, com.dd.cws.adv1.pb.SecDumpProto.FileInfo.Builder, com.dd.cws.adv1.pb.SecDumpProto.FileInfoOrBuilder> fileBuilder_; + /** + * .datadog.cws.dumpsv1.FileInfo file = 6; + * @return Whether the file field is set. + */ + public boolean hasFile() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * .datadog.cws.dumpsv1.FileInfo file = 6; + * @return The file. + */ + public com.dd.cws.adv1.pb.SecDumpProto.FileInfo getFile() { + if (fileBuilder_ == null) { + return file_ == null ? com.dd.cws.adv1.pb.SecDumpProto.FileInfo.getDefaultInstance() : file_; + } else { + return fileBuilder_.getMessage(); + } + } + /** + * .datadog.cws.dumpsv1.FileInfo file = 6; + */ + public Builder setFile(com.dd.cws.adv1.pb.SecDumpProto.FileInfo value) { + if (fileBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + file_ = value; + } else { + fileBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * .datadog.cws.dumpsv1.FileInfo file = 6; + */ + public Builder setFile( + com.dd.cws.adv1.pb.SecDumpProto.FileInfo.Builder builderForValue) { + if (fileBuilder_ == null) { + file_ = builderForValue.build(); + } else { + fileBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * .datadog.cws.dumpsv1.FileInfo file = 6; + */ + public Builder mergeFile(com.dd.cws.adv1.pb.SecDumpProto.FileInfo value) { + if (fileBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) && + file_ != null && + file_ != com.dd.cws.adv1.pb.SecDumpProto.FileInfo.getDefaultInstance()) { + getFileBuilder().mergeFrom(value); + } else { + file_ = value; + } + } else { + fileBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * .datadog.cws.dumpsv1.FileInfo file = 6; + */ + public Builder clearFile() { + bitField0_ = (bitField0_ & ~0x00000020); + file_ = null; + if (fileBuilder_ != null) { + fileBuilder_.dispose(); + fileBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .datadog.cws.dumpsv1.FileInfo file = 6; + */ + public com.dd.cws.adv1.pb.SecDumpProto.FileInfo.Builder getFileBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getFileFieldBuilder().getBuilder(); + } + /** + * .datadog.cws.dumpsv1.FileInfo file = 6; + */ + public com.dd.cws.adv1.pb.SecDumpProto.FileInfoOrBuilder getFileOrBuilder() { + if (fileBuilder_ != null) { + return fileBuilder_.getMessageOrBuilder(); + } else { + return file_ == null ? + com.dd.cws.adv1.pb.SecDumpProto.FileInfo.getDefaultInstance() : file_; + } + } + /** + * .datadog.cws.dumpsv1.FileInfo file = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.dd.cws.adv1.pb.SecDumpProto.FileInfo, com.dd.cws.adv1.pb.SecDumpProto.FileInfo.Builder, com.dd.cws.adv1.pb.SecDumpProto.FileInfoOrBuilder> + getFileFieldBuilder() { + if (fileBuilder_ == null) { + fileBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.dd.cws.adv1.pb.SecDumpProto.FileInfo, com.dd.cws.adv1.pb.SecDumpProto.FileInfo.Builder, com.dd.cws.adv1.pb.SecDumpProto.FileInfoOrBuilder>( + getFile(), + getParentForChildren(), + isClean()); + file_ = null; + } + return fileBuilder_; + } + + private java.lang.Object containerId_ = ""; + /** + * string container_id = 7; + * @return The containerId. + */ + public java.lang.String getContainerId() { + java.lang.Object ref = containerId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + containerId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string container_id = 7; + * @return The bytes for containerId. + */ + public com.google.protobuf.ByteString + getContainerIdBytes() { + java.lang.Object ref = containerId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + containerId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string container_id = 7; + * @param value The containerId to set. + * @return This builder for chaining. + */ + public Builder setContainerId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + containerId_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * string container_id = 7; + * @return This builder for chaining. + */ + public Builder clearContainerId() { + containerId_ = getDefaultInstance().getContainerId(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + * string container_id = 7; + * @param value The bytes for containerId to set. + * @return This builder for chaining. + */ + public Builder setContainerIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + containerId_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private long spanId_ ; + /** + * uint64 span_id = 8; + * @return The spanId. + */ + @java.lang.Override + public long getSpanId() { + return spanId_; + } + /** + * uint64 span_id = 8; + * @param value The spanId to set. + * @return This builder for chaining. + */ + public Builder setSpanId(long value) { + + spanId_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * uint64 span_id = 8; + * @return This builder for chaining. + */ + public Builder clearSpanId() { + bitField0_ = (bitField0_ & ~0x00000080); + spanId_ = 0L; + onChanged(); + return this; + } + + private long traceId_ ; + /** + * uint64 trace_id = 9; + * @return The traceId. + */ + @java.lang.Override + public long getTraceId() { + return traceId_; + } + /** + * uint64 trace_id = 9; + * @param value The traceId to set. + * @return This builder for chaining. + */ + public Builder setTraceId(long value) { + + traceId_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * uint64 trace_id = 9; + * @return This builder for chaining. + */ + public Builder clearTraceId() { + bitField0_ = (bitField0_ & ~0x00000100); + traceId_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object tty_ = ""; + /** + * string tty = 10; + * @return The tty. + */ + public java.lang.String getTty() { + java.lang.Object ref = tty_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tty_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string tty = 10; + * @return The bytes for tty. + */ + public com.google.protobuf.ByteString + getTtyBytes() { + java.lang.Object ref = tty_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + tty_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string tty = 10; + * @param value The tty to set. + * @return This builder for chaining. + */ + public Builder setTty( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + tty_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * string tty = 10; + * @return This builder for chaining. + */ + public Builder clearTty() { + tty_ = getDefaultInstance().getTty(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + /** + * string tty = 10; + * @param value The bytes for tty to set. + * @return This builder for chaining. + */ + public Builder setTtyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + tty_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + private java.lang.Object comm_ = ""; + /** + * string comm = 11; + * @return The comm. + */ + public java.lang.String getComm() { + java.lang.Object ref = comm_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + comm_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string comm = 11; + * @return The bytes for comm. + */ + public com.google.protobuf.ByteString + getCommBytes() { + java.lang.Object ref = comm_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + comm_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string comm = 11; + * @param value The comm to set. + * @return This builder for chaining. + */ + public Builder setComm( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + comm_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * string comm = 11; + * @return This builder for chaining. + */ + public Builder clearComm() { + comm_ = getDefaultInstance().getComm(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + return this; + } + /** + * string comm = 11; + * @param value The bytes for comm to set. + * @return This builder for chaining. + */ + public Builder setCommBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + comm_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + private long forkTime_ ; + /** + * uint64 fork_time = 12; + * @return The forkTime. + */ + @java.lang.Override + public long getForkTime() { + return forkTime_; + } + /** + * uint64 fork_time = 12; + * @param value The forkTime to set. + * @return This builder for chaining. + */ + public Builder setForkTime(long value) { + + forkTime_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + * uint64 fork_time = 12; + * @return This builder for chaining. + */ + public Builder clearForkTime() { + bitField0_ = (bitField0_ & ~0x00000800); + forkTime_ = 0L; + onChanged(); + return this; + } + + private long exitTime_ ; + /** + * uint64 exit_time = 13; + * @return The exitTime. + */ + @java.lang.Override + public long getExitTime() { + return exitTime_; + } + /** + * uint64 exit_time = 13; + * @param value The exitTime to set. + * @return This builder for chaining. + */ + public Builder setExitTime(long value) { + + exitTime_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + * uint64 exit_time = 13; + * @return This builder for chaining. + */ + public Builder clearExitTime() { + bitField0_ = (bitField0_ & ~0x00001000); + exitTime_ = 0L; + onChanged(); + return this; + } + + private long execTime_ ; + /** + * uint64 exec_time = 14; + * @return The execTime. + */ + @java.lang.Override + public long getExecTime() { + return execTime_; + } + /** + * uint64 exec_time = 14; + * @param value The execTime to set. + * @return This builder for chaining. + */ + public Builder setExecTime(long value) { + + execTime_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + /** + * uint64 exec_time = 14; + * @return This builder for chaining. + */ + public Builder clearExecTime() { + bitField0_ = (bitField0_ & ~0x00002000); + execTime_ = 0L; + onChanged(); + return this; + } + + private com.dd.cws.adv1.pb.SecDumpProto.Credentials credentials_; + private com.google.protobuf.SingleFieldBuilderV3< + com.dd.cws.adv1.pb.SecDumpProto.Credentials, com.dd.cws.adv1.pb.SecDumpProto.Credentials.Builder, com.dd.cws.adv1.pb.SecDumpProto.CredentialsOrBuilder> credentialsBuilder_; + /** + * .datadog.cws.dumpsv1.Credentials credentials = 15; + * @return Whether the credentials field is set. + */ + public boolean hasCredentials() { + return ((bitField0_ & 0x00004000) != 0); + } + /** + * .datadog.cws.dumpsv1.Credentials credentials = 15; + * @return The credentials. + */ + public com.dd.cws.adv1.pb.SecDumpProto.Credentials getCredentials() { + if (credentialsBuilder_ == null) { + return credentials_ == null ? com.dd.cws.adv1.pb.SecDumpProto.Credentials.getDefaultInstance() : credentials_; + } else { + return credentialsBuilder_.getMessage(); + } + } + /** + * .datadog.cws.dumpsv1.Credentials credentials = 15; + */ + public Builder setCredentials(com.dd.cws.adv1.pb.SecDumpProto.Credentials value) { + if (credentialsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + credentials_ = value; + } else { + credentialsBuilder_.setMessage(value); + } + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + /** + * .datadog.cws.dumpsv1.Credentials credentials = 15; + */ + public Builder setCredentials( + com.dd.cws.adv1.pb.SecDumpProto.Credentials.Builder builderForValue) { + if (credentialsBuilder_ == null) { + credentials_ = builderForValue.build(); + } else { + credentialsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + /** + * .datadog.cws.dumpsv1.Credentials credentials = 15; + */ + public Builder mergeCredentials(com.dd.cws.adv1.pb.SecDumpProto.Credentials value) { + if (credentialsBuilder_ == null) { + if (((bitField0_ & 0x00004000) != 0) && + credentials_ != null && + credentials_ != com.dd.cws.adv1.pb.SecDumpProto.Credentials.getDefaultInstance()) { + getCredentialsBuilder().mergeFrom(value); + } else { + credentials_ = value; + } + } else { + credentialsBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + /** + * .datadog.cws.dumpsv1.Credentials credentials = 15; + */ + public Builder clearCredentials() { + bitField0_ = (bitField0_ & ~0x00004000); + credentials_ = null; + if (credentialsBuilder_ != null) { + credentialsBuilder_.dispose(); + credentialsBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .datadog.cws.dumpsv1.Credentials credentials = 15; + */ + public com.dd.cws.adv1.pb.SecDumpProto.Credentials.Builder getCredentialsBuilder() { + bitField0_ |= 0x00004000; + onChanged(); + return getCredentialsFieldBuilder().getBuilder(); + } + /** + * .datadog.cws.dumpsv1.Credentials credentials = 15; + */ + public com.dd.cws.adv1.pb.SecDumpProto.CredentialsOrBuilder getCredentialsOrBuilder() { + if (credentialsBuilder_ != null) { + return credentialsBuilder_.getMessageOrBuilder(); + } else { + return credentials_ == null ? + com.dd.cws.adv1.pb.SecDumpProto.Credentials.getDefaultInstance() : credentials_; + } + } + /** + * .datadog.cws.dumpsv1.Credentials credentials = 15; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.dd.cws.adv1.pb.SecDumpProto.Credentials, com.dd.cws.adv1.pb.SecDumpProto.Credentials.Builder, com.dd.cws.adv1.pb.SecDumpProto.CredentialsOrBuilder> + getCredentialsFieldBuilder() { + if (credentialsBuilder_ == null) { + credentialsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.dd.cws.adv1.pb.SecDumpProto.Credentials, com.dd.cws.adv1.pb.SecDumpProto.Credentials.Builder, com.dd.cws.adv1.pb.SecDumpProto.CredentialsOrBuilder>( + getCredentials(), + getParentForChildren(), + isClean()); + credentials_ = null; + } + return credentialsBuilder_; + } + + private com.google.protobuf.LazyStringList args_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureArgsIsMutable() { + if (!((bitField0_ & 0x00008000) != 0)) { + args_ = new com.google.protobuf.LazyStringArrayList(args_); + bitField0_ |= 0x00008000; + } + } + /** + * repeated string args = 16; + * @return A list containing the args. + */ + public com.google.protobuf.ProtocolStringList + getArgsList() { + return args_.getUnmodifiableView(); + } + /** + * repeated string args = 16; + * @return The count of args. + */ + public int getArgsCount() { + return args_.size(); + } + /** + * repeated string args = 16; + * @param index The index of the element to return. + * @return The args at the given index. + */ + public java.lang.String getArgs(int index) { + return args_.get(index); + } + /** + * repeated string args = 16; + * @param index The index of the value to return. + * @return The bytes of the args at the given index. + */ + public com.google.protobuf.ByteString + getArgsBytes(int index) { + return args_.getByteString(index); + } + /** + * repeated string args = 16; + * @param index The index to set the value at. + * @param value The args to set. + * @return This builder for chaining. + */ + public Builder setArgs( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureArgsIsMutable(); + args_.set(index, value); + onChanged(); + return this; + } + /** + * repeated string args = 16; + * @param value The args to add. + * @return This builder for chaining. + */ + public Builder addArgs( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureArgsIsMutable(); + args_.add(value); + onChanged(); + return this; + } + /** + * repeated string args = 16; + * @param values The args to add. + * @return This builder for chaining. + */ + public Builder addAllArgs( + java.lang.Iterable values) { + ensureArgsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, args_); + onChanged(); + return this; + } + /** + * repeated string args = 16; + * @return This builder for chaining. + */ + public Builder clearArgs() { + args_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00008000); + onChanged(); + return this; + } + /** + * repeated string args = 16; + * @param value The bytes of the args to add. + * @return This builder for chaining. + */ + public Builder addArgsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureArgsIsMutable(); + args_.add(value); + onChanged(); + return this; + } + + private java.lang.Object argv0_ = ""; + /** + * string argv0 = 17; + * @return The argv0. + */ + public java.lang.String getArgv0() { + java.lang.Object ref = argv0_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + argv0_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string argv0 = 17; + * @return The bytes for argv0. + */ + public com.google.protobuf.ByteString + getArgv0Bytes() { + java.lang.Object ref = argv0_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + argv0_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string argv0 = 17; + * @param value The argv0 to set. + * @return This builder for chaining. + */ + public Builder setArgv0( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + argv0_ = value; + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + /** + * string argv0 = 17; + * @return This builder for chaining. + */ + public Builder clearArgv0() { + argv0_ = getDefaultInstance().getArgv0(); + bitField0_ = (bitField0_ & ~0x00010000); + onChanged(); + return this; + } + /** + * string argv0 = 17; + * @param value The bytes for argv0 to set. + * @return This builder for chaining. + */ + public Builder setArgv0Bytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + argv0_ = value; + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + + private boolean argsTruncated_ ; + /** + * bool args_truncated = 18; + * @return The argsTruncated. + */ + @java.lang.Override + public boolean getArgsTruncated() { + return argsTruncated_; + } + /** + * bool args_truncated = 18; + * @param value The argsTruncated to set. + * @return This builder for chaining. + */ + public Builder setArgsTruncated(boolean value) { + + argsTruncated_ = value; + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + /** + * bool args_truncated = 18; + * @return This builder for chaining. + */ + public Builder clearArgsTruncated() { + bitField0_ = (bitField0_ & ~0x00020000); + argsTruncated_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList envs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureEnvsIsMutable() { + if (!((bitField0_ & 0x00040000) != 0)) { + envs_ = new com.google.protobuf.LazyStringArrayList(envs_); + bitField0_ |= 0x00040000; + } + } + /** + * repeated string envs = 19; + * @return A list containing the envs. + */ + public com.google.protobuf.ProtocolStringList + getEnvsList() { + return envs_.getUnmodifiableView(); + } + /** + * repeated string envs = 19; + * @return The count of envs. + */ + public int getEnvsCount() { + return envs_.size(); + } + /** + * repeated string envs = 19; + * @param index The index of the element to return. + * @return The envs at the given index. + */ + public java.lang.String getEnvs(int index) { + return envs_.get(index); + } + /** + * repeated string envs = 19; + * @param index The index of the value to return. + * @return The bytes of the envs at the given index. + */ + public com.google.protobuf.ByteString + getEnvsBytes(int index) { + return envs_.getByteString(index); + } + /** + * repeated string envs = 19; + * @param index The index to set the value at. + * @param value The envs to set. + * @return This builder for chaining. + */ + public Builder setEnvs( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureEnvsIsMutable(); + envs_.set(index, value); + onChanged(); + return this; + } + /** + * repeated string envs = 19; + * @param value The envs to add. + * @return This builder for chaining. + */ + public Builder addEnvs( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureEnvsIsMutable(); + envs_.add(value); + onChanged(); + return this; + } + /** + * repeated string envs = 19; + * @param values The envs to add. + * @return This builder for chaining. + */ + public Builder addAllEnvs( + java.lang.Iterable values) { + ensureEnvsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, envs_); + onChanged(); + return this; + } + /** + * repeated string envs = 19; + * @return This builder for chaining. + */ + public Builder clearEnvs() { + envs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00040000); + onChanged(); + return this; + } + /** + * repeated string envs = 19; + * @param value The bytes of the envs to add. + * @return This builder for chaining. + */ + public Builder addEnvsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureEnvsIsMutable(); + envs_.add(value); + onChanged(); + return this; + } + + private boolean envsTruncated_ ; + /** + * bool envs_truncated = 20; + * @return The envsTruncated. + */ + @java.lang.Override + public boolean getEnvsTruncated() { + return envsTruncated_; + } + /** + * bool envs_truncated = 20; + * @param value The envsTruncated to set. + * @return This builder for chaining. + */ + public Builder setEnvsTruncated(boolean value) { + + envsTruncated_ = value; + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + /** + * bool envs_truncated = 20; + * @return This builder for chaining. + */ + public Builder clearEnvsTruncated() { + bitField0_ = (bitField0_ & ~0x00080000); + envsTruncated_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:datadog.cws.dumpsv1.ProcessInfo) + } + + // @@protoc_insertion_point(class_scope:datadog.cws.dumpsv1.ProcessInfo) + private static final com.dd.cws.adv1.pb.SecDumpProto.ProcessInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.dd.cws.adv1.pb.SecDumpProto.ProcessInfo(); + } + + public static com.dd.cws.adv1.pb.SecDumpProto.ProcessInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProcessInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.ProcessInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface FileActivityNodeOrBuilder extends + // @@protoc_insertion_point(interface_extends:datadog.cws.dumpsv1.FileActivityNode) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 9; + */ + java.util.List + getMatchedRulesList(); + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 9; + */ + com.dd.cws.adv1.pb.SecDumpProto.MatchedRule getMatchedRules(int index); + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 9; + */ + int getMatchedRulesCount(); + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 9; + */ + java.util.List + getMatchedRulesOrBuilderList(); + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 9; + */ + com.dd.cws.adv1.pb.SecDumpProto.MatchedRuleOrBuilder getMatchedRulesOrBuilder( + int index); + + /** + * string name = 1; + * @return The name. + */ + java.lang.String getName(); + /** + * string name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * bool is_pattern = 7; + * @return The isPattern. + */ + boolean getIsPattern(); + + /** + * .datadog.cws.dumpsv1.FileInfo file = 2; + * @return Whether the file field is set. + */ + boolean hasFile(); + /** + * .datadog.cws.dumpsv1.FileInfo file = 2; + * @return The file. + */ + com.dd.cws.adv1.pb.SecDumpProto.FileInfo getFile(); + /** + * .datadog.cws.dumpsv1.FileInfo file = 2; + */ + com.dd.cws.adv1.pb.SecDumpProto.FileInfoOrBuilder getFileOrBuilder(); + + /** + * .datadog.cws.dumpsv1.GenerationType generation_type = 8; + * @return The enum numeric value on the wire for generationType. + */ + int getGenerationTypeValue(); + /** + * .datadog.cws.dumpsv1.GenerationType generation_type = 8; + * @return The generationType. + */ + com.dd.cws.adv1.pb.SecDumpProto.GenerationType getGenerationType(); + + /** + * uint64 first_seen = 4; + * @return The firstSeen. + */ + long getFirstSeen(); + + /** + * .datadog.cws.dumpsv1.OpenNode open = 5; + * @return Whether the open field is set. + */ + boolean hasOpen(); + /** + * .datadog.cws.dumpsv1.OpenNode open = 5; + * @return The open. + */ + com.dd.cws.adv1.pb.SecDumpProto.OpenNode getOpen(); + /** + * .datadog.cws.dumpsv1.OpenNode open = 5; + */ + com.dd.cws.adv1.pb.SecDumpProto.OpenNodeOrBuilder getOpenOrBuilder(); + + /** + * repeated .datadog.cws.dumpsv1.FileActivityNode children = 6; + */ + java.util.List + getChildrenList(); + /** + * repeated .datadog.cws.dumpsv1.FileActivityNode children = 6; + */ + com.dd.cws.adv1.pb.SecDumpProto.FileActivityNode getChildren(int index); + /** + * repeated .datadog.cws.dumpsv1.FileActivityNode children = 6; + */ + int getChildrenCount(); + /** + * repeated .datadog.cws.dumpsv1.FileActivityNode children = 6; + */ + java.util.List + getChildrenOrBuilderList(); + /** + * repeated .datadog.cws.dumpsv1.FileActivityNode children = 6; + */ + com.dd.cws.adv1.pb.SecDumpProto.FileActivityNodeOrBuilder getChildrenOrBuilder( + int index); + } + /** + * Protobuf type {@code datadog.cws.dumpsv1.FileActivityNode} + */ + public static final class FileActivityNode extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datadog.cws.dumpsv1.FileActivityNode) + FileActivityNodeOrBuilder { + private static final long serialVersionUID = 0L; + // Use FileActivityNode.newBuilder() to construct. + private FileActivityNode(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private FileActivityNode() { + matchedRules_ = java.util.Collections.emptyList(); + name_ = ""; + generationType_ = 0; + children_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new FileActivityNode(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_FileActivityNode_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_FileActivityNode_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.dd.cws.adv1.pb.SecDumpProto.FileActivityNode.class, com.dd.cws.adv1.pb.SecDumpProto.FileActivityNode.Builder.class); + } + + public static final int MATCHED_RULES_FIELD_NUMBER = 9; + @SuppressWarnings("serial") + private java.util.List matchedRules_; + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 9; + */ + @java.lang.Override + public java.util.List getMatchedRulesList() { + return matchedRules_; + } + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 9; + */ + @java.lang.Override + public java.util.List + getMatchedRulesOrBuilderList() { + return matchedRules_; + } + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 9; + */ + @java.lang.Override + public int getMatchedRulesCount() { + return matchedRules_.size(); + } + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 9; + */ + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.MatchedRule getMatchedRules(int index) { + return matchedRules_.get(index); + } + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 9; + */ + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.MatchedRuleOrBuilder getMatchedRulesOrBuilder( + int index) { + return matchedRules_.get(index); + } + + public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * string name = 1; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * string name = 1; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IS_PATTERN_FIELD_NUMBER = 7; + private boolean isPattern_ = false; + /** + * bool is_pattern = 7; + * @return The isPattern. + */ + @java.lang.Override + public boolean getIsPattern() { + return isPattern_; + } + + public static final int FILE_FIELD_NUMBER = 2; + private com.dd.cws.adv1.pb.SecDumpProto.FileInfo file_; + /** + * .datadog.cws.dumpsv1.FileInfo file = 2; + * @return Whether the file field is set. + */ + @java.lang.Override + public boolean hasFile() { + return file_ != null; + } + /** + * .datadog.cws.dumpsv1.FileInfo file = 2; + * @return The file. + */ + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.FileInfo getFile() { + return file_ == null ? com.dd.cws.adv1.pb.SecDumpProto.FileInfo.getDefaultInstance() : file_; + } + /** + * .datadog.cws.dumpsv1.FileInfo file = 2; + */ + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.FileInfoOrBuilder getFileOrBuilder() { + return file_ == null ? com.dd.cws.adv1.pb.SecDumpProto.FileInfo.getDefaultInstance() : file_; + } + + public static final int GENERATION_TYPE_FIELD_NUMBER = 8; + private int generationType_ = 0; + /** + * .datadog.cws.dumpsv1.GenerationType generation_type = 8; + * @return The enum numeric value on the wire for generationType. + */ + @java.lang.Override public int getGenerationTypeValue() { + return generationType_; + } + /** + * .datadog.cws.dumpsv1.GenerationType generation_type = 8; + * @return The generationType. + */ + @java.lang.Override public com.dd.cws.adv1.pb.SecDumpProto.GenerationType getGenerationType() { + com.dd.cws.adv1.pb.SecDumpProto.GenerationType result = com.dd.cws.adv1.pb.SecDumpProto.GenerationType.forNumber(generationType_); + return result == null ? com.dd.cws.adv1.pb.SecDumpProto.GenerationType.UNRECOGNIZED : result; + } + + public static final int FIRST_SEEN_FIELD_NUMBER = 4; + private long firstSeen_ = 0L; + /** + * uint64 first_seen = 4; + * @return The firstSeen. + */ + @java.lang.Override + public long getFirstSeen() { + return firstSeen_; + } + + public static final int OPEN_FIELD_NUMBER = 5; + private com.dd.cws.adv1.pb.SecDumpProto.OpenNode open_; + /** + * .datadog.cws.dumpsv1.OpenNode open = 5; + * @return Whether the open field is set. + */ + @java.lang.Override + public boolean hasOpen() { + return open_ != null; + } + /** + * .datadog.cws.dumpsv1.OpenNode open = 5; + * @return The open. + */ + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.OpenNode getOpen() { + return open_ == null ? com.dd.cws.adv1.pb.SecDumpProto.OpenNode.getDefaultInstance() : open_; + } + /** + * .datadog.cws.dumpsv1.OpenNode open = 5; + */ + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.OpenNodeOrBuilder getOpenOrBuilder() { + return open_ == null ? com.dd.cws.adv1.pb.SecDumpProto.OpenNode.getDefaultInstance() : open_; + } + + public static final int CHILDREN_FIELD_NUMBER = 6; + @SuppressWarnings("serial") + private java.util.List children_; + /** + * repeated .datadog.cws.dumpsv1.FileActivityNode children = 6; + */ + @java.lang.Override + public java.util.List getChildrenList() { + return children_; + } + /** + * repeated .datadog.cws.dumpsv1.FileActivityNode children = 6; + */ + @java.lang.Override + public java.util.List + getChildrenOrBuilderList() { + return children_; + } + /** + * repeated .datadog.cws.dumpsv1.FileActivityNode children = 6; + */ + @java.lang.Override + public int getChildrenCount() { + return children_.size(); + } + /** + * repeated .datadog.cws.dumpsv1.FileActivityNode children = 6; + */ + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.FileActivityNode getChildren(int index) { + return children_.get(index); + } + /** + * repeated .datadog.cws.dumpsv1.FileActivityNode children = 6; + */ + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.FileActivityNodeOrBuilder getChildrenOrBuilder( + int index) { + return children_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (file_ != null) { + output.writeMessage(2, getFile()); + } + if (firstSeen_ != 0L) { + output.writeUInt64(4, firstSeen_); + } + if (open_ != null) { + output.writeMessage(5, getOpen()); + } + for (int i = 0; i < children_.size(); i++) { + output.writeMessage(6, children_.get(i)); + } + if (isPattern_ != false) { + output.writeBool(7, isPattern_); + } + if (generationType_ != com.dd.cws.adv1.pb.SecDumpProto.GenerationType.UNKNOWN.getNumber()) { + output.writeEnum(8, generationType_); + } + for (int i = 0; i < matchedRules_.size(); i++) { + output.writeMessage(9, matchedRules_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (file_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getFile()); + } + if (firstSeen_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(4, firstSeen_); + } + if (open_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getOpen()); + } + for (int i = 0; i < children_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, children_.get(i)); + } + if (isPattern_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(7, isPattern_); + } + if (generationType_ != com.dd.cws.adv1.pb.SecDumpProto.GenerationType.UNKNOWN.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(8, generationType_); + } + for (int i = 0; i < matchedRules_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, matchedRules_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.dd.cws.adv1.pb.SecDumpProto.FileActivityNode)) { + return super.equals(obj); + } + com.dd.cws.adv1.pb.SecDumpProto.FileActivityNode other = (com.dd.cws.adv1.pb.SecDumpProto.FileActivityNode) obj; + + if (!getMatchedRulesList() + .equals(other.getMatchedRulesList())) return false; + if (!getName() + .equals(other.getName())) return false; + if (getIsPattern() + != other.getIsPattern()) return false; + if (hasFile() != other.hasFile()) return false; + if (hasFile()) { + if (!getFile() + .equals(other.getFile())) return false; + } + if (generationType_ != other.generationType_) return false; + if (getFirstSeen() + != other.getFirstSeen()) return false; + if (hasOpen() != other.hasOpen()) return false; + if (hasOpen()) { + if (!getOpen() + .equals(other.getOpen())) return false; + } + if (!getChildrenList() + .equals(other.getChildrenList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getMatchedRulesCount() > 0) { + hash = (37 * hash) + MATCHED_RULES_FIELD_NUMBER; + hash = (53 * hash) + getMatchedRulesList().hashCode(); + } + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + IS_PATTERN_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsPattern()); + if (hasFile()) { + hash = (37 * hash) + FILE_FIELD_NUMBER; + hash = (53 * hash) + getFile().hashCode(); + } + hash = (37 * hash) + GENERATION_TYPE_FIELD_NUMBER; + hash = (53 * hash) + generationType_; + hash = (37 * hash) + FIRST_SEEN_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getFirstSeen()); + if (hasOpen()) { + hash = (37 * hash) + OPEN_FIELD_NUMBER; + hash = (53 * hash) + getOpen().hashCode(); + } + if (getChildrenCount() > 0) { + hash = (37 * hash) + CHILDREN_FIELD_NUMBER; + hash = (53 * hash) + getChildrenList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.dd.cws.adv1.pb.SecDumpProto.FileActivityNode parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.dd.cws.adv1.pb.SecDumpProto.FileActivityNode parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.dd.cws.adv1.pb.SecDumpProto.FileActivityNode parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.dd.cws.adv1.pb.SecDumpProto.FileActivityNode parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.dd.cws.adv1.pb.SecDumpProto.FileActivityNode parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.dd.cws.adv1.pb.SecDumpProto.FileActivityNode parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.dd.cws.adv1.pb.SecDumpProto.FileActivityNode parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.dd.cws.adv1.pb.SecDumpProto.FileActivityNode parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.dd.cws.adv1.pb.SecDumpProto.FileActivityNode parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.dd.cws.adv1.pb.SecDumpProto.FileActivityNode parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.dd.cws.adv1.pb.SecDumpProto.FileActivityNode parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.dd.cws.adv1.pb.SecDumpProto.FileActivityNode parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.dd.cws.adv1.pb.SecDumpProto.FileActivityNode prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code datadog.cws.dumpsv1.FileActivityNode} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datadog.cws.dumpsv1.FileActivityNode) + com.dd.cws.adv1.pb.SecDumpProto.FileActivityNodeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_FileActivityNode_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_FileActivityNode_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.dd.cws.adv1.pb.SecDumpProto.FileActivityNode.class, com.dd.cws.adv1.pb.SecDumpProto.FileActivityNode.Builder.class); + } + + // Construct using com.dd.cws.adv1.pb.SecDumpProto.FileActivityNode.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (matchedRulesBuilder_ == null) { + matchedRules_ = java.util.Collections.emptyList(); + } else { + matchedRules_ = null; + matchedRulesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + name_ = ""; + isPattern_ = false; + file_ = null; + if (fileBuilder_ != null) { + fileBuilder_.dispose(); + fileBuilder_ = null; + } + generationType_ = 0; + firstSeen_ = 0L; + open_ = null; + if (openBuilder_ != null) { + openBuilder_.dispose(); + openBuilder_ = null; + } + if (childrenBuilder_ == null) { + children_ = java.util.Collections.emptyList(); + } else { + children_ = null; + childrenBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000080); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_FileActivityNode_descriptor; + } + + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.FileActivityNode getDefaultInstanceForType() { + return com.dd.cws.adv1.pb.SecDumpProto.FileActivityNode.getDefaultInstance(); + } + + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.FileActivityNode build() { + com.dd.cws.adv1.pb.SecDumpProto.FileActivityNode result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.FileActivityNode buildPartial() { + com.dd.cws.adv1.pb.SecDumpProto.FileActivityNode result = new com.dd.cws.adv1.pb.SecDumpProto.FileActivityNode(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.dd.cws.adv1.pb.SecDumpProto.FileActivityNode result) { + if (matchedRulesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + matchedRules_ = java.util.Collections.unmodifiableList(matchedRules_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.matchedRules_ = matchedRules_; + } else { + result.matchedRules_ = matchedRulesBuilder_.build(); + } + if (childrenBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0)) { + children_ = java.util.Collections.unmodifiableList(children_); + bitField0_ = (bitField0_ & ~0x00000080); + } + result.children_ = children_; + } else { + result.children_ = childrenBuilder_.build(); + } + } + + private void buildPartial0(com.dd.cws.adv1.pb.SecDumpProto.FileActivityNode result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.isPattern_ = isPattern_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.file_ = fileBuilder_ == null + ? file_ + : fileBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.generationType_ = generationType_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.firstSeen_ = firstSeen_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.open_ = openBuilder_ == null + ? open_ + : openBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.dd.cws.adv1.pb.SecDumpProto.FileActivityNode) { + return mergeFrom((com.dd.cws.adv1.pb.SecDumpProto.FileActivityNode)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.dd.cws.adv1.pb.SecDumpProto.FileActivityNode other) { + if (other == com.dd.cws.adv1.pb.SecDumpProto.FileActivityNode.getDefaultInstance()) return this; + if (matchedRulesBuilder_ == null) { + if (!other.matchedRules_.isEmpty()) { + if (matchedRules_.isEmpty()) { + matchedRules_ = other.matchedRules_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureMatchedRulesIsMutable(); + matchedRules_.addAll(other.matchedRules_); + } + onChanged(); + } + } else { + if (!other.matchedRules_.isEmpty()) { + if (matchedRulesBuilder_.isEmpty()) { + matchedRulesBuilder_.dispose(); + matchedRulesBuilder_ = null; + matchedRules_ = other.matchedRules_; + bitField0_ = (bitField0_ & ~0x00000001); + matchedRulesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getMatchedRulesFieldBuilder() : null; + } else { + matchedRulesBuilder_.addAllMessages(other.matchedRules_); + } + } + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getIsPattern() != false) { + setIsPattern(other.getIsPattern()); + } + if (other.hasFile()) { + mergeFile(other.getFile()); + } + if (other.generationType_ != 0) { + setGenerationTypeValue(other.getGenerationTypeValue()); + } + if (other.getFirstSeen() != 0L) { + setFirstSeen(other.getFirstSeen()); + } + if (other.hasOpen()) { + mergeOpen(other.getOpen()); + } + if (childrenBuilder_ == null) { + if (!other.children_.isEmpty()) { + if (children_.isEmpty()) { + children_ = other.children_; + bitField0_ = (bitField0_ & ~0x00000080); + } else { + ensureChildrenIsMutable(); + children_.addAll(other.children_); + } + onChanged(); + } + } else { + if (!other.children_.isEmpty()) { + if (childrenBuilder_.isEmpty()) { + childrenBuilder_.dispose(); + childrenBuilder_ = null; + children_ = other.children_; + bitField0_ = (bitField0_ & ~0x00000080); + childrenBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getChildrenFieldBuilder() : null; + } else { + childrenBuilder_.addAllMessages(other.children_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 10 + case 18: { + input.readMessage( + getFileFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 18 + case 32: { + firstSeen_ = input.readUInt64(); + bitField0_ |= 0x00000020; + break; + } // case 32 + case 42: { + input.readMessage( + getOpenFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 42 + case 50: { + com.dd.cws.adv1.pb.SecDumpProto.FileActivityNode m = + input.readMessage( + com.dd.cws.adv1.pb.SecDumpProto.FileActivityNode.parser(), + extensionRegistry); + if (childrenBuilder_ == null) { + ensureChildrenIsMutable(); + children_.add(m); + } else { + childrenBuilder_.addMessage(m); + } + break; + } // case 50 + case 56: { + isPattern_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 56 + case 64: { + generationType_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 64 + case 74: { + com.dd.cws.adv1.pb.SecDumpProto.MatchedRule m = + input.readMessage( + com.dd.cws.adv1.pb.SecDumpProto.MatchedRule.parser(), + extensionRegistry); + if (matchedRulesBuilder_ == null) { + ensureMatchedRulesIsMutable(); + matchedRules_.add(m); + } else { + matchedRulesBuilder_.addMessage(m); + } + break; + } // case 74 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List matchedRules_ = + java.util.Collections.emptyList(); + private void ensureMatchedRulesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + matchedRules_ = new java.util.ArrayList(matchedRules_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.dd.cws.adv1.pb.SecDumpProto.MatchedRule, com.dd.cws.adv1.pb.SecDumpProto.MatchedRule.Builder, com.dd.cws.adv1.pb.SecDumpProto.MatchedRuleOrBuilder> matchedRulesBuilder_; + + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 9; + */ + public java.util.List getMatchedRulesList() { + if (matchedRulesBuilder_ == null) { + return java.util.Collections.unmodifiableList(matchedRules_); + } else { + return matchedRulesBuilder_.getMessageList(); + } + } + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 9; + */ + public int getMatchedRulesCount() { + if (matchedRulesBuilder_ == null) { + return matchedRules_.size(); + } else { + return matchedRulesBuilder_.getCount(); + } + } + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 9; + */ + public com.dd.cws.adv1.pb.SecDumpProto.MatchedRule getMatchedRules(int index) { + if (matchedRulesBuilder_ == null) { + return matchedRules_.get(index); + } else { + return matchedRulesBuilder_.getMessage(index); + } + } + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 9; + */ + public Builder setMatchedRules( + int index, com.dd.cws.adv1.pb.SecDumpProto.MatchedRule value) { + if (matchedRulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMatchedRulesIsMutable(); + matchedRules_.set(index, value); + onChanged(); + } else { + matchedRulesBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 9; + */ + public Builder setMatchedRules( + int index, com.dd.cws.adv1.pb.SecDumpProto.MatchedRule.Builder builderForValue) { + if (matchedRulesBuilder_ == null) { + ensureMatchedRulesIsMutable(); + matchedRules_.set(index, builderForValue.build()); + onChanged(); + } else { + matchedRulesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 9; + */ + public Builder addMatchedRules(com.dd.cws.adv1.pb.SecDumpProto.MatchedRule value) { + if (matchedRulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMatchedRulesIsMutable(); + matchedRules_.add(value); + onChanged(); + } else { + matchedRulesBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 9; + */ + public Builder addMatchedRules( + int index, com.dd.cws.adv1.pb.SecDumpProto.MatchedRule value) { + if (matchedRulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMatchedRulesIsMutable(); + matchedRules_.add(index, value); + onChanged(); + } else { + matchedRulesBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 9; + */ + public Builder addMatchedRules( + com.dd.cws.adv1.pb.SecDumpProto.MatchedRule.Builder builderForValue) { + if (matchedRulesBuilder_ == null) { + ensureMatchedRulesIsMutable(); + matchedRules_.add(builderForValue.build()); + onChanged(); + } else { + matchedRulesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 9; + */ + public Builder addMatchedRules( + int index, com.dd.cws.adv1.pb.SecDumpProto.MatchedRule.Builder builderForValue) { + if (matchedRulesBuilder_ == null) { + ensureMatchedRulesIsMutable(); + matchedRules_.add(index, builderForValue.build()); + onChanged(); + } else { + matchedRulesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 9; + */ + public Builder addAllMatchedRules( + java.lang.Iterable values) { + if (matchedRulesBuilder_ == null) { + ensureMatchedRulesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, matchedRules_); + onChanged(); + } else { + matchedRulesBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 9; + */ + public Builder clearMatchedRules() { + if (matchedRulesBuilder_ == null) { + matchedRules_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + matchedRulesBuilder_.clear(); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 9; + */ + public Builder removeMatchedRules(int index) { + if (matchedRulesBuilder_ == null) { + ensureMatchedRulesIsMutable(); + matchedRules_.remove(index); + onChanged(); + } else { + matchedRulesBuilder_.remove(index); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 9; + */ + public com.dd.cws.adv1.pb.SecDumpProto.MatchedRule.Builder getMatchedRulesBuilder( + int index) { + return getMatchedRulesFieldBuilder().getBuilder(index); + } + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 9; + */ + public com.dd.cws.adv1.pb.SecDumpProto.MatchedRuleOrBuilder getMatchedRulesOrBuilder( + int index) { + if (matchedRulesBuilder_ == null) { + return matchedRules_.get(index); } else { + return matchedRulesBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 9; + */ + public java.util.List + getMatchedRulesOrBuilderList() { + if (matchedRulesBuilder_ != null) { + return matchedRulesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(matchedRules_); + } + } + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 9; + */ + public com.dd.cws.adv1.pb.SecDumpProto.MatchedRule.Builder addMatchedRulesBuilder() { + return getMatchedRulesFieldBuilder().addBuilder( + com.dd.cws.adv1.pb.SecDumpProto.MatchedRule.getDefaultInstance()); + } + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 9; + */ + public com.dd.cws.adv1.pb.SecDumpProto.MatchedRule.Builder addMatchedRulesBuilder( + int index) { + return getMatchedRulesFieldBuilder().addBuilder( + index, com.dd.cws.adv1.pb.SecDumpProto.MatchedRule.getDefaultInstance()); + } + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 9; + */ + public java.util.List + getMatchedRulesBuilderList() { + return getMatchedRulesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.dd.cws.adv1.pb.SecDumpProto.MatchedRule, com.dd.cws.adv1.pb.SecDumpProto.MatchedRule.Builder, com.dd.cws.adv1.pb.SecDumpProto.MatchedRuleOrBuilder> + getMatchedRulesFieldBuilder() { + if (matchedRulesBuilder_ == null) { + matchedRulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.dd.cws.adv1.pb.SecDumpProto.MatchedRule, com.dd.cws.adv1.pb.SecDumpProto.MatchedRule.Builder, com.dd.cws.adv1.pb.SecDumpProto.MatchedRuleOrBuilder>( + matchedRules_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + matchedRules_ = null; + } + return matchedRulesBuilder_; + } + + private java.lang.Object name_ = ""; + /** + * string name = 1; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string name = 1; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string name = 1; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + name_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * string name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private boolean isPattern_ ; + /** + * bool is_pattern = 7; + * @return The isPattern. + */ + @java.lang.Override + public boolean getIsPattern() { + return isPattern_; + } + /** + * bool is_pattern = 7; + * @param value The isPattern to set. + * @return This builder for chaining. + */ + public Builder setIsPattern(boolean value) { + + isPattern_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * bool is_pattern = 7; + * @return This builder for chaining. + */ + public Builder clearIsPattern() { + bitField0_ = (bitField0_ & ~0x00000004); + isPattern_ = false; + onChanged(); + return this; + } + + private com.dd.cws.adv1.pb.SecDumpProto.FileInfo file_; + private com.google.protobuf.SingleFieldBuilderV3< + com.dd.cws.adv1.pb.SecDumpProto.FileInfo, com.dd.cws.adv1.pb.SecDumpProto.FileInfo.Builder, com.dd.cws.adv1.pb.SecDumpProto.FileInfoOrBuilder> fileBuilder_; + /** + * .datadog.cws.dumpsv1.FileInfo file = 2; + * @return Whether the file field is set. + */ + public boolean hasFile() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * .datadog.cws.dumpsv1.FileInfo file = 2; + * @return The file. + */ + public com.dd.cws.adv1.pb.SecDumpProto.FileInfo getFile() { + if (fileBuilder_ == null) { + return file_ == null ? com.dd.cws.adv1.pb.SecDumpProto.FileInfo.getDefaultInstance() : file_; + } else { + return fileBuilder_.getMessage(); + } + } + /** + * .datadog.cws.dumpsv1.FileInfo file = 2; + */ + public Builder setFile(com.dd.cws.adv1.pb.SecDumpProto.FileInfo value) { + if (fileBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + file_ = value; + } else { + fileBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * .datadog.cws.dumpsv1.FileInfo file = 2; + */ + public Builder setFile( + com.dd.cws.adv1.pb.SecDumpProto.FileInfo.Builder builderForValue) { + if (fileBuilder_ == null) { + file_ = builderForValue.build(); + } else { + fileBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * .datadog.cws.dumpsv1.FileInfo file = 2; + */ + public Builder mergeFile(com.dd.cws.adv1.pb.SecDumpProto.FileInfo value) { + if (fileBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) && + file_ != null && + file_ != com.dd.cws.adv1.pb.SecDumpProto.FileInfo.getDefaultInstance()) { + getFileBuilder().mergeFrom(value); + } else { + file_ = value; + } + } else { + fileBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * .datadog.cws.dumpsv1.FileInfo file = 2; + */ + public Builder clearFile() { + bitField0_ = (bitField0_ & ~0x00000008); + file_ = null; + if (fileBuilder_ != null) { + fileBuilder_.dispose(); + fileBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .datadog.cws.dumpsv1.FileInfo file = 2; + */ + public com.dd.cws.adv1.pb.SecDumpProto.FileInfo.Builder getFileBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getFileFieldBuilder().getBuilder(); + } + /** + * .datadog.cws.dumpsv1.FileInfo file = 2; + */ + public com.dd.cws.adv1.pb.SecDumpProto.FileInfoOrBuilder getFileOrBuilder() { + if (fileBuilder_ != null) { + return fileBuilder_.getMessageOrBuilder(); + } else { + return file_ == null ? + com.dd.cws.adv1.pb.SecDumpProto.FileInfo.getDefaultInstance() : file_; + } + } + /** + * .datadog.cws.dumpsv1.FileInfo file = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.dd.cws.adv1.pb.SecDumpProto.FileInfo, com.dd.cws.adv1.pb.SecDumpProto.FileInfo.Builder, com.dd.cws.adv1.pb.SecDumpProto.FileInfoOrBuilder> + getFileFieldBuilder() { + if (fileBuilder_ == null) { + fileBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.dd.cws.adv1.pb.SecDumpProto.FileInfo, com.dd.cws.adv1.pb.SecDumpProto.FileInfo.Builder, com.dd.cws.adv1.pb.SecDumpProto.FileInfoOrBuilder>( + getFile(), + getParentForChildren(), + isClean()); + file_ = null; + } + return fileBuilder_; + } + + private int generationType_ = 0; + /** + * .datadog.cws.dumpsv1.GenerationType generation_type = 8; + * @return The enum numeric value on the wire for generationType. + */ + @java.lang.Override public int getGenerationTypeValue() { + return generationType_; + } + /** + * .datadog.cws.dumpsv1.GenerationType generation_type = 8; + * @param value The enum numeric value on the wire for generationType to set. + * @return This builder for chaining. + */ + public Builder setGenerationTypeValue(int value) { + generationType_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * .datadog.cws.dumpsv1.GenerationType generation_type = 8; + * @return The generationType. + */ + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.GenerationType getGenerationType() { + com.dd.cws.adv1.pb.SecDumpProto.GenerationType result = com.dd.cws.adv1.pb.SecDumpProto.GenerationType.forNumber(generationType_); + return result == null ? com.dd.cws.adv1.pb.SecDumpProto.GenerationType.UNRECOGNIZED : result; + } + /** + * .datadog.cws.dumpsv1.GenerationType generation_type = 8; + * @param value The generationType to set. + * @return This builder for chaining. + */ + public Builder setGenerationType(com.dd.cws.adv1.pb.SecDumpProto.GenerationType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + generationType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .datadog.cws.dumpsv1.GenerationType generation_type = 8; + * @return This builder for chaining. + */ + public Builder clearGenerationType() { + bitField0_ = (bitField0_ & ~0x00000010); + generationType_ = 0; + onChanged(); + return this; + } + + private long firstSeen_ ; + /** + * uint64 first_seen = 4; + * @return The firstSeen. + */ + @java.lang.Override + public long getFirstSeen() { + return firstSeen_; + } + /** + * uint64 first_seen = 4; + * @param value The firstSeen to set. + * @return This builder for chaining. + */ + public Builder setFirstSeen(long value) { + + firstSeen_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * uint64 first_seen = 4; + * @return This builder for chaining. + */ + public Builder clearFirstSeen() { + bitField0_ = (bitField0_ & ~0x00000020); + firstSeen_ = 0L; + onChanged(); + return this; + } + + private com.dd.cws.adv1.pb.SecDumpProto.OpenNode open_; + private com.google.protobuf.SingleFieldBuilderV3< + com.dd.cws.adv1.pb.SecDumpProto.OpenNode, com.dd.cws.adv1.pb.SecDumpProto.OpenNode.Builder, com.dd.cws.adv1.pb.SecDumpProto.OpenNodeOrBuilder> openBuilder_; + /** + * .datadog.cws.dumpsv1.OpenNode open = 5; + * @return Whether the open field is set. + */ + public boolean hasOpen() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * .datadog.cws.dumpsv1.OpenNode open = 5; + * @return The open. + */ + public com.dd.cws.adv1.pb.SecDumpProto.OpenNode getOpen() { + if (openBuilder_ == null) { + return open_ == null ? com.dd.cws.adv1.pb.SecDumpProto.OpenNode.getDefaultInstance() : open_; + } else { + return openBuilder_.getMessage(); + } + } + /** + * .datadog.cws.dumpsv1.OpenNode open = 5; + */ + public Builder setOpen(com.dd.cws.adv1.pb.SecDumpProto.OpenNode value) { + if (openBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + open_ = value; + } else { + openBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * .datadog.cws.dumpsv1.OpenNode open = 5; + */ + public Builder setOpen( + com.dd.cws.adv1.pb.SecDumpProto.OpenNode.Builder builderForValue) { + if (openBuilder_ == null) { + open_ = builderForValue.build(); + } else { + openBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * .datadog.cws.dumpsv1.OpenNode open = 5; + */ + public Builder mergeOpen(com.dd.cws.adv1.pb.SecDumpProto.OpenNode value) { + if (openBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) && + open_ != null && + open_ != com.dd.cws.adv1.pb.SecDumpProto.OpenNode.getDefaultInstance()) { + getOpenBuilder().mergeFrom(value); + } else { + open_ = value; + } + } else { + openBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * .datadog.cws.dumpsv1.OpenNode open = 5; + */ + public Builder clearOpen() { + bitField0_ = (bitField0_ & ~0x00000040); + open_ = null; + if (openBuilder_ != null) { + openBuilder_.dispose(); + openBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .datadog.cws.dumpsv1.OpenNode open = 5; + */ + public com.dd.cws.adv1.pb.SecDumpProto.OpenNode.Builder getOpenBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return getOpenFieldBuilder().getBuilder(); + } + /** + * .datadog.cws.dumpsv1.OpenNode open = 5; + */ + public com.dd.cws.adv1.pb.SecDumpProto.OpenNodeOrBuilder getOpenOrBuilder() { + if (openBuilder_ != null) { + return openBuilder_.getMessageOrBuilder(); + } else { + return open_ == null ? + com.dd.cws.adv1.pb.SecDumpProto.OpenNode.getDefaultInstance() : open_; + } + } + /** + * .datadog.cws.dumpsv1.OpenNode open = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.dd.cws.adv1.pb.SecDumpProto.OpenNode, com.dd.cws.adv1.pb.SecDumpProto.OpenNode.Builder, com.dd.cws.adv1.pb.SecDumpProto.OpenNodeOrBuilder> + getOpenFieldBuilder() { + if (openBuilder_ == null) { + openBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.dd.cws.adv1.pb.SecDumpProto.OpenNode, com.dd.cws.adv1.pb.SecDumpProto.OpenNode.Builder, com.dd.cws.adv1.pb.SecDumpProto.OpenNodeOrBuilder>( + getOpen(), + getParentForChildren(), + isClean()); + open_ = null; + } + return openBuilder_; + } + + private java.util.List children_ = + java.util.Collections.emptyList(); + private void ensureChildrenIsMutable() { + if (!((bitField0_ & 0x00000080) != 0)) { + children_ = new java.util.ArrayList(children_); + bitField0_ |= 0x00000080; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.dd.cws.adv1.pb.SecDumpProto.FileActivityNode, com.dd.cws.adv1.pb.SecDumpProto.FileActivityNode.Builder, com.dd.cws.adv1.pb.SecDumpProto.FileActivityNodeOrBuilder> childrenBuilder_; + + /** + * repeated .datadog.cws.dumpsv1.FileActivityNode children = 6; + */ + public java.util.List getChildrenList() { + if (childrenBuilder_ == null) { + return java.util.Collections.unmodifiableList(children_); + } else { + return childrenBuilder_.getMessageList(); + } + } + /** + * repeated .datadog.cws.dumpsv1.FileActivityNode children = 6; + */ + public int getChildrenCount() { + if (childrenBuilder_ == null) { + return children_.size(); + } else { + return childrenBuilder_.getCount(); + } + } + /** + * repeated .datadog.cws.dumpsv1.FileActivityNode children = 6; + */ + public com.dd.cws.adv1.pb.SecDumpProto.FileActivityNode getChildren(int index) { + if (childrenBuilder_ == null) { + return children_.get(index); + } else { + return childrenBuilder_.getMessage(index); + } + } + /** + * repeated .datadog.cws.dumpsv1.FileActivityNode children = 6; + */ + public Builder setChildren( + int index, com.dd.cws.adv1.pb.SecDumpProto.FileActivityNode value) { + if (childrenBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChildrenIsMutable(); + children_.set(index, value); + onChanged(); + } else { + childrenBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.FileActivityNode children = 6; + */ + public Builder setChildren( + int index, com.dd.cws.adv1.pb.SecDumpProto.FileActivityNode.Builder builderForValue) { + if (childrenBuilder_ == null) { + ensureChildrenIsMutable(); + children_.set(index, builderForValue.build()); + onChanged(); + } else { + childrenBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.FileActivityNode children = 6; + */ + public Builder addChildren(com.dd.cws.adv1.pb.SecDumpProto.FileActivityNode value) { + if (childrenBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChildrenIsMutable(); + children_.add(value); + onChanged(); + } else { + childrenBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.FileActivityNode children = 6; + */ + public Builder addChildren( + int index, com.dd.cws.adv1.pb.SecDumpProto.FileActivityNode value) { + if (childrenBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChildrenIsMutable(); + children_.add(index, value); + onChanged(); + } else { + childrenBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.FileActivityNode children = 6; + */ + public Builder addChildren( + com.dd.cws.adv1.pb.SecDumpProto.FileActivityNode.Builder builderForValue) { + if (childrenBuilder_ == null) { + ensureChildrenIsMutable(); + children_.add(builderForValue.build()); + onChanged(); + } else { + childrenBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.FileActivityNode children = 6; + */ + public Builder addChildren( + int index, com.dd.cws.adv1.pb.SecDumpProto.FileActivityNode.Builder builderForValue) { + if (childrenBuilder_ == null) { + ensureChildrenIsMutable(); + children_.add(index, builderForValue.build()); + onChanged(); + } else { + childrenBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.FileActivityNode children = 6; + */ + public Builder addAllChildren( + java.lang.Iterable values) { + if (childrenBuilder_ == null) { + ensureChildrenIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, children_); + onChanged(); + } else { + childrenBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.FileActivityNode children = 6; + */ + public Builder clearChildren() { + if (childrenBuilder_ == null) { + children_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + } else { + childrenBuilder_.clear(); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.FileActivityNode children = 6; + */ + public Builder removeChildren(int index) { + if (childrenBuilder_ == null) { + ensureChildrenIsMutable(); + children_.remove(index); + onChanged(); + } else { + childrenBuilder_.remove(index); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.FileActivityNode children = 6; + */ + public com.dd.cws.adv1.pb.SecDumpProto.FileActivityNode.Builder getChildrenBuilder( + int index) { + return getChildrenFieldBuilder().getBuilder(index); + } + /** + * repeated .datadog.cws.dumpsv1.FileActivityNode children = 6; + */ + public com.dd.cws.adv1.pb.SecDumpProto.FileActivityNodeOrBuilder getChildrenOrBuilder( + int index) { + if (childrenBuilder_ == null) { + return children_.get(index); } else { + return childrenBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .datadog.cws.dumpsv1.FileActivityNode children = 6; + */ + public java.util.List + getChildrenOrBuilderList() { + if (childrenBuilder_ != null) { + return childrenBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(children_); + } + } + /** + * repeated .datadog.cws.dumpsv1.FileActivityNode children = 6; + */ + public com.dd.cws.adv1.pb.SecDumpProto.FileActivityNode.Builder addChildrenBuilder() { + return getChildrenFieldBuilder().addBuilder( + com.dd.cws.adv1.pb.SecDumpProto.FileActivityNode.getDefaultInstance()); + } + /** + * repeated .datadog.cws.dumpsv1.FileActivityNode children = 6; + */ + public com.dd.cws.adv1.pb.SecDumpProto.FileActivityNode.Builder addChildrenBuilder( + int index) { + return getChildrenFieldBuilder().addBuilder( + index, com.dd.cws.adv1.pb.SecDumpProto.FileActivityNode.getDefaultInstance()); + } + /** + * repeated .datadog.cws.dumpsv1.FileActivityNode children = 6; + */ + public java.util.List + getChildrenBuilderList() { + return getChildrenFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.dd.cws.adv1.pb.SecDumpProto.FileActivityNode, com.dd.cws.adv1.pb.SecDumpProto.FileActivityNode.Builder, com.dd.cws.adv1.pb.SecDumpProto.FileActivityNodeOrBuilder> + getChildrenFieldBuilder() { + if (childrenBuilder_ == null) { + childrenBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.dd.cws.adv1.pb.SecDumpProto.FileActivityNode, com.dd.cws.adv1.pb.SecDumpProto.FileActivityNode.Builder, com.dd.cws.adv1.pb.SecDumpProto.FileActivityNodeOrBuilder>( + children_, + ((bitField0_ & 0x00000080) != 0), + getParentForChildren(), + isClean()); + children_ = null; + } + return childrenBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:datadog.cws.dumpsv1.FileActivityNode) + } + + // @@protoc_insertion_point(class_scope:datadog.cws.dumpsv1.FileActivityNode) + private static final com.dd.cws.adv1.pb.SecDumpProto.FileActivityNode DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.dd.cws.adv1.pb.SecDumpProto.FileActivityNode(); + } + + public static com.dd.cws.adv1.pb.SecDumpProto.FileActivityNode getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FileActivityNode parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.FileActivityNode getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface OpenNodeOrBuilder extends + // @@protoc_insertion_point(interface_extends:datadog.cws.dumpsv1.OpenNode) + com.google.protobuf.MessageOrBuilder { + + /** + * sint64 retval = 1; + * @return The retval. + */ + long getRetval(); + + /** + * uint32 flags = 2; + * @return The flags. + */ + int getFlags(); + + /** + * uint32 mode = 3; + * @return The mode. + */ + int getMode(); + } + /** + * Protobuf type {@code datadog.cws.dumpsv1.OpenNode} + */ + public static final class OpenNode extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datadog.cws.dumpsv1.OpenNode) + OpenNodeOrBuilder { + private static final long serialVersionUID = 0L; + // Use OpenNode.newBuilder() to construct. + private OpenNode(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private OpenNode() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new OpenNode(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_OpenNode_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_OpenNode_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.dd.cws.adv1.pb.SecDumpProto.OpenNode.class, com.dd.cws.adv1.pb.SecDumpProto.OpenNode.Builder.class); + } + + public static final int RETVAL_FIELD_NUMBER = 1; + private long retval_ = 0L; + /** + * sint64 retval = 1; + * @return The retval. + */ + @java.lang.Override + public long getRetval() { + return retval_; + } + + public static final int FLAGS_FIELD_NUMBER = 2; + private int flags_ = 0; + /** + * uint32 flags = 2; + * @return The flags. + */ + @java.lang.Override + public int getFlags() { + return flags_; + } + + public static final int MODE_FIELD_NUMBER = 3; + private int mode_ = 0; + /** + * uint32 mode = 3; + * @return The mode. + */ + @java.lang.Override + public int getMode() { + return mode_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (retval_ != 0L) { + output.writeSInt64(1, retval_); + } + if (flags_ != 0) { + output.writeUInt32(2, flags_); + } + if (mode_ != 0) { + output.writeUInt32(3, mode_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (retval_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeSInt64Size(1, retval_); + } + if (flags_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, flags_); + } + if (mode_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(3, mode_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.dd.cws.adv1.pb.SecDumpProto.OpenNode)) { + return super.equals(obj); + } + com.dd.cws.adv1.pb.SecDumpProto.OpenNode other = (com.dd.cws.adv1.pb.SecDumpProto.OpenNode) obj; + + if (getRetval() + != other.getRetval()) return false; + if (getFlags() + != other.getFlags()) return false; + if (getMode() + != other.getMode()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RETVAL_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRetval()); + hash = (37 * hash) + FLAGS_FIELD_NUMBER; + hash = (53 * hash) + getFlags(); + hash = (37 * hash) + MODE_FIELD_NUMBER; + hash = (53 * hash) + getMode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.dd.cws.adv1.pb.SecDumpProto.OpenNode parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.dd.cws.adv1.pb.SecDumpProto.OpenNode parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.dd.cws.adv1.pb.SecDumpProto.OpenNode parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.dd.cws.adv1.pb.SecDumpProto.OpenNode parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.dd.cws.adv1.pb.SecDumpProto.OpenNode parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.dd.cws.adv1.pb.SecDumpProto.OpenNode parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.dd.cws.adv1.pb.SecDumpProto.OpenNode parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.dd.cws.adv1.pb.SecDumpProto.OpenNode parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.dd.cws.adv1.pb.SecDumpProto.OpenNode parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.dd.cws.adv1.pb.SecDumpProto.OpenNode parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.dd.cws.adv1.pb.SecDumpProto.OpenNode parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.dd.cws.adv1.pb.SecDumpProto.OpenNode parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.dd.cws.adv1.pb.SecDumpProto.OpenNode prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code datadog.cws.dumpsv1.OpenNode} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datadog.cws.dumpsv1.OpenNode) + com.dd.cws.adv1.pb.SecDumpProto.OpenNodeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_OpenNode_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_OpenNode_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.dd.cws.adv1.pb.SecDumpProto.OpenNode.class, com.dd.cws.adv1.pb.SecDumpProto.OpenNode.Builder.class); + } + + // Construct using com.dd.cws.adv1.pb.SecDumpProto.OpenNode.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + retval_ = 0L; + flags_ = 0; + mode_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_OpenNode_descriptor; + } + + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.OpenNode getDefaultInstanceForType() { + return com.dd.cws.adv1.pb.SecDumpProto.OpenNode.getDefaultInstance(); + } + + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.OpenNode build() { + com.dd.cws.adv1.pb.SecDumpProto.OpenNode result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.OpenNode buildPartial() { + com.dd.cws.adv1.pb.SecDumpProto.OpenNode result = new com.dd.cws.adv1.pb.SecDumpProto.OpenNode(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.dd.cws.adv1.pb.SecDumpProto.OpenNode result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.retval_ = retval_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.flags_ = flags_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.mode_ = mode_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.dd.cws.adv1.pb.SecDumpProto.OpenNode) { + return mergeFrom((com.dd.cws.adv1.pb.SecDumpProto.OpenNode)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.dd.cws.adv1.pb.SecDumpProto.OpenNode other) { + if (other == com.dd.cws.adv1.pb.SecDumpProto.OpenNode.getDefaultInstance()) return this; + if (other.getRetval() != 0L) { + setRetval(other.getRetval()); + } + if (other.getFlags() != 0) { + setFlags(other.getFlags()); + } + if (other.getMode() != 0) { + setMode(other.getMode()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + retval_ = input.readSInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + flags_ = input.readUInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + mode_ = input.readUInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private long retval_ ; + /** + * sint64 retval = 1; + * @return The retval. + */ + @java.lang.Override + public long getRetval() { + return retval_; + } + /** + * sint64 retval = 1; + * @param value The retval to set. + * @return This builder for chaining. + */ + public Builder setRetval(long value) { + + retval_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * sint64 retval = 1; + * @return This builder for chaining. + */ + public Builder clearRetval() { + bitField0_ = (bitField0_ & ~0x00000001); + retval_ = 0L; + onChanged(); + return this; + } + + private int flags_ ; + /** + * uint32 flags = 2; + * @return The flags. + */ + @java.lang.Override + public int getFlags() { + return flags_; + } + /** + * uint32 flags = 2; + * @param value The flags to set. + * @return This builder for chaining. + */ + public Builder setFlags(int value) { + + flags_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * uint32 flags = 2; + * @return This builder for chaining. + */ + public Builder clearFlags() { + bitField0_ = (bitField0_ & ~0x00000002); + flags_ = 0; + onChanged(); + return this; + } + + private int mode_ ; + /** + * uint32 mode = 3; + * @return The mode. + */ + @java.lang.Override + public int getMode() { + return mode_; + } + /** + * uint32 mode = 3; + * @param value The mode to set. + * @return This builder for chaining. + */ + public Builder setMode(int value) { + + mode_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * uint32 mode = 3; + * @return This builder for chaining. + */ + public Builder clearMode() { + bitField0_ = (bitField0_ & ~0x00000004); + mode_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:datadog.cws.dumpsv1.OpenNode) + } + + // @@protoc_insertion_point(class_scope:datadog.cws.dumpsv1.OpenNode) + private static final com.dd.cws.adv1.pb.SecDumpProto.OpenNode DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.dd.cws.adv1.pb.SecDumpProto.OpenNode(); + } + + public static com.dd.cws.adv1.pb.SecDumpProto.OpenNode getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OpenNode parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.OpenNode getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DNSNodeOrBuilder extends + // @@protoc_insertion_point(interface_extends:datadog.cws.dumpsv1.DNSNode) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 2; + */ + java.util.List + getMatchedRulesList(); + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 2; + */ + com.dd.cws.adv1.pb.SecDumpProto.MatchedRule getMatchedRules(int index); + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 2; + */ + int getMatchedRulesCount(); + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 2; + */ + java.util.List + getMatchedRulesOrBuilderList(); + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 2; + */ + com.dd.cws.adv1.pb.SecDumpProto.MatchedRuleOrBuilder getMatchedRulesOrBuilder( + int index); + + /** + * repeated .datadog.cws.dumpsv1.DNSInfo requests = 1; + */ + java.util.List + getRequestsList(); + /** + * repeated .datadog.cws.dumpsv1.DNSInfo requests = 1; + */ + com.dd.cws.adv1.pb.SecDumpProto.DNSInfo getRequests(int index); + /** + * repeated .datadog.cws.dumpsv1.DNSInfo requests = 1; + */ + int getRequestsCount(); + /** + * repeated .datadog.cws.dumpsv1.DNSInfo requests = 1; + */ + java.util.List + getRequestsOrBuilderList(); + /** + * repeated .datadog.cws.dumpsv1.DNSInfo requests = 1; + */ + com.dd.cws.adv1.pb.SecDumpProto.DNSInfoOrBuilder getRequestsOrBuilder( + int index); + } + /** + * Protobuf type {@code datadog.cws.dumpsv1.DNSNode} + */ + public static final class DNSNode extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datadog.cws.dumpsv1.DNSNode) + DNSNodeOrBuilder { + private static final long serialVersionUID = 0L; + // Use DNSNode.newBuilder() to construct. + private DNSNode(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DNSNode() { + matchedRules_ = java.util.Collections.emptyList(); + requests_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new DNSNode(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_DNSNode_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_DNSNode_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.dd.cws.adv1.pb.SecDumpProto.DNSNode.class, com.dd.cws.adv1.pb.SecDumpProto.DNSNode.Builder.class); + } + + public static final int MATCHED_RULES_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private java.util.List matchedRules_; + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 2; + */ + @java.lang.Override + public java.util.List getMatchedRulesList() { + return matchedRules_; + } + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 2; + */ + @java.lang.Override + public java.util.List + getMatchedRulesOrBuilderList() { + return matchedRules_; + } + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 2; + */ + @java.lang.Override + public int getMatchedRulesCount() { + return matchedRules_.size(); + } + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 2; + */ + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.MatchedRule getMatchedRules(int index) { + return matchedRules_.get(index); + } + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 2; + */ + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.MatchedRuleOrBuilder getMatchedRulesOrBuilder( + int index) { + return matchedRules_.get(index); + } + + public static final int REQUESTS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List requests_; + /** + * repeated .datadog.cws.dumpsv1.DNSInfo requests = 1; + */ + @java.lang.Override + public java.util.List getRequestsList() { + return requests_; + } + /** + * repeated .datadog.cws.dumpsv1.DNSInfo requests = 1; + */ + @java.lang.Override + public java.util.List + getRequestsOrBuilderList() { + return requests_; + } + /** + * repeated .datadog.cws.dumpsv1.DNSInfo requests = 1; + */ + @java.lang.Override + public int getRequestsCount() { + return requests_.size(); + } + /** + * repeated .datadog.cws.dumpsv1.DNSInfo requests = 1; + */ + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.DNSInfo getRequests(int index) { + return requests_.get(index); + } + /** + * repeated .datadog.cws.dumpsv1.DNSInfo requests = 1; + */ + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.DNSInfoOrBuilder getRequestsOrBuilder( + int index) { + return requests_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < requests_.size(); i++) { + output.writeMessage(1, requests_.get(i)); + } + for (int i = 0; i < matchedRules_.size(); i++) { + output.writeMessage(2, matchedRules_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < requests_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, requests_.get(i)); + } + for (int i = 0; i < matchedRules_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, matchedRules_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.dd.cws.adv1.pb.SecDumpProto.DNSNode)) { + return super.equals(obj); + } + com.dd.cws.adv1.pb.SecDumpProto.DNSNode other = (com.dd.cws.adv1.pb.SecDumpProto.DNSNode) obj; + + if (!getMatchedRulesList() + .equals(other.getMatchedRulesList())) return false; + if (!getRequestsList() + .equals(other.getRequestsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getMatchedRulesCount() > 0) { + hash = (37 * hash) + MATCHED_RULES_FIELD_NUMBER; + hash = (53 * hash) + getMatchedRulesList().hashCode(); + } + if (getRequestsCount() > 0) { + hash = (37 * hash) + REQUESTS_FIELD_NUMBER; + hash = (53 * hash) + getRequestsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.dd.cws.adv1.pb.SecDumpProto.DNSNode parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.dd.cws.adv1.pb.SecDumpProto.DNSNode parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.dd.cws.adv1.pb.SecDumpProto.DNSNode parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.dd.cws.adv1.pb.SecDumpProto.DNSNode parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.dd.cws.adv1.pb.SecDumpProto.DNSNode parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.dd.cws.adv1.pb.SecDumpProto.DNSNode parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.dd.cws.adv1.pb.SecDumpProto.DNSNode parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.dd.cws.adv1.pb.SecDumpProto.DNSNode parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.dd.cws.adv1.pb.SecDumpProto.DNSNode parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.dd.cws.adv1.pb.SecDumpProto.DNSNode parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.dd.cws.adv1.pb.SecDumpProto.DNSNode parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.dd.cws.adv1.pb.SecDumpProto.DNSNode parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.dd.cws.adv1.pb.SecDumpProto.DNSNode prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code datadog.cws.dumpsv1.DNSNode} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datadog.cws.dumpsv1.DNSNode) + com.dd.cws.adv1.pb.SecDumpProto.DNSNodeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_DNSNode_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_DNSNode_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.dd.cws.adv1.pb.SecDumpProto.DNSNode.class, com.dd.cws.adv1.pb.SecDumpProto.DNSNode.Builder.class); + } + + // Construct using com.dd.cws.adv1.pb.SecDumpProto.DNSNode.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (matchedRulesBuilder_ == null) { + matchedRules_ = java.util.Collections.emptyList(); + } else { + matchedRules_ = null; + matchedRulesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (requestsBuilder_ == null) { + requests_ = java.util.Collections.emptyList(); + } else { + requests_ = null; + requestsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_DNSNode_descriptor; + } + + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.DNSNode getDefaultInstanceForType() { + return com.dd.cws.adv1.pb.SecDumpProto.DNSNode.getDefaultInstance(); + } + + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.DNSNode build() { + com.dd.cws.adv1.pb.SecDumpProto.DNSNode result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.DNSNode buildPartial() { + com.dd.cws.adv1.pb.SecDumpProto.DNSNode result = new com.dd.cws.adv1.pb.SecDumpProto.DNSNode(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.dd.cws.adv1.pb.SecDumpProto.DNSNode result) { + if (matchedRulesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + matchedRules_ = java.util.Collections.unmodifiableList(matchedRules_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.matchedRules_ = matchedRules_; + } else { + result.matchedRules_ = matchedRulesBuilder_.build(); + } + if (requestsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + requests_ = java.util.Collections.unmodifiableList(requests_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.requests_ = requests_; + } else { + result.requests_ = requestsBuilder_.build(); + } + } + + private void buildPartial0(com.dd.cws.adv1.pb.SecDumpProto.DNSNode result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.dd.cws.adv1.pb.SecDumpProto.DNSNode) { + return mergeFrom((com.dd.cws.adv1.pb.SecDumpProto.DNSNode)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.dd.cws.adv1.pb.SecDumpProto.DNSNode other) { + if (other == com.dd.cws.adv1.pb.SecDumpProto.DNSNode.getDefaultInstance()) return this; + if (matchedRulesBuilder_ == null) { + if (!other.matchedRules_.isEmpty()) { + if (matchedRules_.isEmpty()) { + matchedRules_ = other.matchedRules_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureMatchedRulesIsMutable(); + matchedRules_.addAll(other.matchedRules_); + } + onChanged(); + } + } else { + if (!other.matchedRules_.isEmpty()) { + if (matchedRulesBuilder_.isEmpty()) { + matchedRulesBuilder_.dispose(); + matchedRulesBuilder_ = null; + matchedRules_ = other.matchedRules_; + bitField0_ = (bitField0_ & ~0x00000001); + matchedRulesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getMatchedRulesFieldBuilder() : null; + } else { + matchedRulesBuilder_.addAllMessages(other.matchedRules_); + } + } + } + if (requestsBuilder_ == null) { + if (!other.requests_.isEmpty()) { + if (requests_.isEmpty()) { + requests_ = other.requests_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureRequestsIsMutable(); + requests_.addAll(other.requests_); + } + onChanged(); + } + } else { + if (!other.requests_.isEmpty()) { + if (requestsBuilder_.isEmpty()) { + requestsBuilder_.dispose(); + requestsBuilder_ = null; + requests_ = other.requests_; + bitField0_ = (bitField0_ & ~0x00000002); + requestsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getRequestsFieldBuilder() : null; + } else { + requestsBuilder_.addAllMessages(other.requests_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.dd.cws.adv1.pb.SecDumpProto.DNSInfo m = + input.readMessage( + com.dd.cws.adv1.pb.SecDumpProto.DNSInfo.parser(), + extensionRegistry); + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(m); + } else { + requestsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + com.dd.cws.adv1.pb.SecDumpProto.MatchedRule m = + input.readMessage( + com.dd.cws.adv1.pb.SecDumpProto.MatchedRule.parser(), + extensionRegistry); + if (matchedRulesBuilder_ == null) { + ensureMatchedRulesIsMutable(); + matchedRules_.add(m); + } else { + matchedRulesBuilder_.addMessage(m); + } + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List matchedRules_ = + java.util.Collections.emptyList(); + private void ensureMatchedRulesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + matchedRules_ = new java.util.ArrayList(matchedRules_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.dd.cws.adv1.pb.SecDumpProto.MatchedRule, com.dd.cws.adv1.pb.SecDumpProto.MatchedRule.Builder, com.dd.cws.adv1.pb.SecDumpProto.MatchedRuleOrBuilder> matchedRulesBuilder_; + + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 2; + */ + public java.util.List getMatchedRulesList() { + if (matchedRulesBuilder_ == null) { + return java.util.Collections.unmodifiableList(matchedRules_); + } else { + return matchedRulesBuilder_.getMessageList(); + } + } + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 2; + */ + public int getMatchedRulesCount() { + if (matchedRulesBuilder_ == null) { + return matchedRules_.size(); + } else { + return matchedRulesBuilder_.getCount(); + } + } + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 2; + */ + public com.dd.cws.adv1.pb.SecDumpProto.MatchedRule getMatchedRules(int index) { + if (matchedRulesBuilder_ == null) { + return matchedRules_.get(index); + } else { + return matchedRulesBuilder_.getMessage(index); + } + } + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 2; + */ + public Builder setMatchedRules( + int index, com.dd.cws.adv1.pb.SecDumpProto.MatchedRule value) { + if (matchedRulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMatchedRulesIsMutable(); + matchedRules_.set(index, value); + onChanged(); + } else { + matchedRulesBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 2; + */ + public Builder setMatchedRules( + int index, com.dd.cws.adv1.pb.SecDumpProto.MatchedRule.Builder builderForValue) { + if (matchedRulesBuilder_ == null) { + ensureMatchedRulesIsMutable(); + matchedRules_.set(index, builderForValue.build()); + onChanged(); + } else { + matchedRulesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 2; + */ + public Builder addMatchedRules(com.dd.cws.adv1.pb.SecDumpProto.MatchedRule value) { + if (matchedRulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMatchedRulesIsMutable(); + matchedRules_.add(value); + onChanged(); + } else { + matchedRulesBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 2; + */ + public Builder addMatchedRules( + int index, com.dd.cws.adv1.pb.SecDumpProto.MatchedRule value) { + if (matchedRulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMatchedRulesIsMutable(); + matchedRules_.add(index, value); + onChanged(); + } else { + matchedRulesBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 2; + */ + public Builder addMatchedRules( + com.dd.cws.adv1.pb.SecDumpProto.MatchedRule.Builder builderForValue) { + if (matchedRulesBuilder_ == null) { + ensureMatchedRulesIsMutable(); + matchedRules_.add(builderForValue.build()); + onChanged(); + } else { + matchedRulesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 2; + */ + public Builder addMatchedRules( + int index, com.dd.cws.adv1.pb.SecDumpProto.MatchedRule.Builder builderForValue) { + if (matchedRulesBuilder_ == null) { + ensureMatchedRulesIsMutable(); + matchedRules_.add(index, builderForValue.build()); + onChanged(); + } else { + matchedRulesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 2; + */ + public Builder addAllMatchedRules( + java.lang.Iterable values) { + if (matchedRulesBuilder_ == null) { + ensureMatchedRulesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, matchedRules_); + onChanged(); + } else { + matchedRulesBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 2; + */ + public Builder clearMatchedRules() { + if (matchedRulesBuilder_ == null) { + matchedRules_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + matchedRulesBuilder_.clear(); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 2; + */ + public Builder removeMatchedRules(int index) { + if (matchedRulesBuilder_ == null) { + ensureMatchedRulesIsMutable(); + matchedRules_.remove(index); + onChanged(); + } else { + matchedRulesBuilder_.remove(index); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 2; + */ + public com.dd.cws.adv1.pb.SecDumpProto.MatchedRule.Builder getMatchedRulesBuilder( + int index) { + return getMatchedRulesFieldBuilder().getBuilder(index); + } + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 2; + */ + public com.dd.cws.adv1.pb.SecDumpProto.MatchedRuleOrBuilder getMatchedRulesOrBuilder( + int index) { + if (matchedRulesBuilder_ == null) { + return matchedRules_.get(index); } else { + return matchedRulesBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 2; + */ + public java.util.List + getMatchedRulesOrBuilderList() { + if (matchedRulesBuilder_ != null) { + return matchedRulesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(matchedRules_); + } + } + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 2; + */ + public com.dd.cws.adv1.pb.SecDumpProto.MatchedRule.Builder addMatchedRulesBuilder() { + return getMatchedRulesFieldBuilder().addBuilder( + com.dd.cws.adv1.pb.SecDumpProto.MatchedRule.getDefaultInstance()); + } + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 2; + */ + public com.dd.cws.adv1.pb.SecDumpProto.MatchedRule.Builder addMatchedRulesBuilder( + int index) { + return getMatchedRulesFieldBuilder().addBuilder( + index, com.dd.cws.adv1.pb.SecDumpProto.MatchedRule.getDefaultInstance()); + } + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 2; + */ + public java.util.List + getMatchedRulesBuilderList() { + return getMatchedRulesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.dd.cws.adv1.pb.SecDumpProto.MatchedRule, com.dd.cws.adv1.pb.SecDumpProto.MatchedRule.Builder, com.dd.cws.adv1.pb.SecDumpProto.MatchedRuleOrBuilder> + getMatchedRulesFieldBuilder() { + if (matchedRulesBuilder_ == null) { + matchedRulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.dd.cws.adv1.pb.SecDumpProto.MatchedRule, com.dd.cws.adv1.pb.SecDumpProto.MatchedRule.Builder, com.dd.cws.adv1.pb.SecDumpProto.MatchedRuleOrBuilder>( + matchedRules_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + matchedRules_ = null; + } + return matchedRulesBuilder_; + } + + private java.util.List requests_ = + java.util.Collections.emptyList(); + private void ensureRequestsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + requests_ = new java.util.ArrayList(requests_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.dd.cws.adv1.pb.SecDumpProto.DNSInfo, com.dd.cws.adv1.pb.SecDumpProto.DNSInfo.Builder, com.dd.cws.adv1.pb.SecDumpProto.DNSInfoOrBuilder> requestsBuilder_; + + /** + * repeated .datadog.cws.dumpsv1.DNSInfo requests = 1; + */ + public java.util.List getRequestsList() { + if (requestsBuilder_ == null) { + return java.util.Collections.unmodifiableList(requests_); + } else { + return requestsBuilder_.getMessageList(); + } + } + /** + * repeated .datadog.cws.dumpsv1.DNSInfo requests = 1; + */ + public int getRequestsCount() { + if (requestsBuilder_ == null) { + return requests_.size(); + } else { + return requestsBuilder_.getCount(); + } + } + /** + * repeated .datadog.cws.dumpsv1.DNSInfo requests = 1; + */ + public com.dd.cws.adv1.pb.SecDumpProto.DNSInfo getRequests(int index) { + if (requestsBuilder_ == null) { + return requests_.get(index); + } else { + return requestsBuilder_.getMessage(index); + } + } + /** + * repeated .datadog.cws.dumpsv1.DNSInfo requests = 1; + */ + public Builder setRequests( + int index, com.dd.cws.adv1.pb.SecDumpProto.DNSInfo value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.set(index, value); + onChanged(); + } else { + requestsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.DNSInfo requests = 1; + */ + public Builder setRequests( + int index, com.dd.cws.adv1.pb.SecDumpProto.DNSInfo.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.set(index, builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.DNSInfo requests = 1; + */ + public Builder addRequests(com.dd.cws.adv1.pb.SecDumpProto.DNSInfo value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.add(value); + onChanged(); + } else { + requestsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.DNSInfo requests = 1; + */ + public Builder addRequests( + int index, com.dd.cws.adv1.pb.SecDumpProto.DNSInfo value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.add(index, value); + onChanged(); + } else { + requestsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.DNSInfo requests = 1; + */ + public Builder addRequests( + com.dd.cws.adv1.pb.SecDumpProto.DNSInfo.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.DNSInfo requests = 1; + */ + public Builder addRequests( + int index, com.dd.cws.adv1.pb.SecDumpProto.DNSInfo.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(index, builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.DNSInfo requests = 1; + */ + public Builder addAllRequests( + java.lang.Iterable values) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, requests_); + onChanged(); + } else { + requestsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.DNSInfo requests = 1; + */ + public Builder clearRequests() { + if (requestsBuilder_ == null) { + requests_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + requestsBuilder_.clear(); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.DNSInfo requests = 1; + */ + public Builder removeRequests(int index) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.remove(index); + onChanged(); + } else { + requestsBuilder_.remove(index); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.DNSInfo requests = 1; + */ + public com.dd.cws.adv1.pb.SecDumpProto.DNSInfo.Builder getRequestsBuilder( + int index) { + return getRequestsFieldBuilder().getBuilder(index); + } + /** + * repeated .datadog.cws.dumpsv1.DNSInfo requests = 1; + */ + public com.dd.cws.adv1.pb.SecDumpProto.DNSInfoOrBuilder getRequestsOrBuilder( + int index) { + if (requestsBuilder_ == null) { + return requests_.get(index); } else { + return requestsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .datadog.cws.dumpsv1.DNSInfo requests = 1; + */ + public java.util.List + getRequestsOrBuilderList() { + if (requestsBuilder_ != null) { + return requestsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(requests_); + } + } + /** + * repeated .datadog.cws.dumpsv1.DNSInfo requests = 1; + */ + public com.dd.cws.adv1.pb.SecDumpProto.DNSInfo.Builder addRequestsBuilder() { + return getRequestsFieldBuilder().addBuilder( + com.dd.cws.adv1.pb.SecDumpProto.DNSInfo.getDefaultInstance()); + } + /** + * repeated .datadog.cws.dumpsv1.DNSInfo requests = 1; + */ + public com.dd.cws.adv1.pb.SecDumpProto.DNSInfo.Builder addRequestsBuilder( + int index) { + return getRequestsFieldBuilder().addBuilder( + index, com.dd.cws.adv1.pb.SecDumpProto.DNSInfo.getDefaultInstance()); + } + /** + * repeated .datadog.cws.dumpsv1.DNSInfo requests = 1; + */ + public java.util.List + getRequestsBuilderList() { + return getRequestsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.dd.cws.adv1.pb.SecDumpProto.DNSInfo, com.dd.cws.adv1.pb.SecDumpProto.DNSInfo.Builder, com.dd.cws.adv1.pb.SecDumpProto.DNSInfoOrBuilder> + getRequestsFieldBuilder() { + if (requestsBuilder_ == null) { + requestsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.dd.cws.adv1.pb.SecDumpProto.DNSInfo, com.dd.cws.adv1.pb.SecDumpProto.DNSInfo.Builder, com.dd.cws.adv1.pb.SecDumpProto.DNSInfoOrBuilder>( + requests_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + requests_ = null; + } + return requestsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:datadog.cws.dumpsv1.DNSNode) + } + + // @@protoc_insertion_point(class_scope:datadog.cws.dumpsv1.DNSNode) + private static final com.dd.cws.adv1.pb.SecDumpProto.DNSNode DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.dd.cws.adv1.pb.SecDumpProto.DNSNode(); + } + + public static com.dd.cws.adv1.pb.SecDumpProto.DNSNode getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DNSNode parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.DNSNode getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DNSInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:datadog.cws.dumpsv1.DNSInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * string name = 1; + * @return The name. + */ + java.lang.String getName(); + /** + * string name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * uint32 type = 2; + * @return The type. + */ + int getType(); + + /** + * uint32 class = 3; + * @return The class. + */ + int getClass_(); + + /** + * uint32 size = 4; + * @return The size. + */ + int getSize(); + + /** + * uint32 count = 5; + * @return The count. + */ + int getCount(); + } + /** + * Protobuf type {@code datadog.cws.dumpsv1.DNSInfo} + */ + public static final class DNSInfo extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datadog.cws.dumpsv1.DNSInfo) + DNSInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use DNSInfo.newBuilder() to construct. + private DNSInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DNSInfo() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new DNSInfo(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_DNSInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_DNSInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.dd.cws.adv1.pb.SecDumpProto.DNSInfo.class, com.dd.cws.adv1.pb.SecDumpProto.DNSInfo.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * string name = 1; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * string name = 1; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TYPE_FIELD_NUMBER = 2; + private int type_ = 0; + /** + * uint32 type = 2; + * @return The type. + */ + @java.lang.Override + public int getType() { + return type_; + } + + public static final int CLASS_FIELD_NUMBER = 3; + private int class__ = 0; + /** + * uint32 class = 3; + * @return The class. + */ + @java.lang.Override + public int getClass_() { + return class__; + } + + public static final int SIZE_FIELD_NUMBER = 4; + private int size_ = 0; + /** + * uint32 size = 4; + * @return The size. + */ + @java.lang.Override + public int getSize() { + return size_; + } + + public static final int COUNT_FIELD_NUMBER = 5; + private int count_ = 0; + /** + * uint32 count = 5; + * @return The count. + */ + @java.lang.Override + public int getCount() { + return count_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (type_ != 0) { + output.writeUInt32(2, type_); + } + if (class__ != 0) { + output.writeUInt32(3, class__); + } + if (size_ != 0) { + output.writeUInt32(4, size_); + } + if (count_ != 0) { + output.writeUInt32(5, count_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (type_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, type_); + } + if (class__ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(3, class__); + } + if (size_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(4, size_); + } + if (count_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(5, count_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.dd.cws.adv1.pb.SecDumpProto.DNSInfo)) { + return super.equals(obj); + } + com.dd.cws.adv1.pb.SecDumpProto.DNSInfo other = (com.dd.cws.adv1.pb.SecDumpProto.DNSInfo) obj; + + if (!getName() + .equals(other.getName())) return false; + if (getType() + != other.getType()) return false; + if (getClass_() + != other.getClass_()) return false; + if (getSize() + != other.getSize()) return false; + if (getCount() + != other.getCount()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + getType(); + hash = (37 * hash) + CLASS_FIELD_NUMBER; + hash = (53 * hash) + getClass_(); + hash = (37 * hash) + SIZE_FIELD_NUMBER; + hash = (53 * hash) + getSize(); + hash = (37 * hash) + COUNT_FIELD_NUMBER; + hash = (53 * hash) + getCount(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.dd.cws.adv1.pb.SecDumpProto.DNSInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.dd.cws.adv1.pb.SecDumpProto.DNSInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.dd.cws.adv1.pb.SecDumpProto.DNSInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.dd.cws.adv1.pb.SecDumpProto.DNSInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.dd.cws.adv1.pb.SecDumpProto.DNSInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.dd.cws.adv1.pb.SecDumpProto.DNSInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.dd.cws.adv1.pb.SecDumpProto.DNSInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.dd.cws.adv1.pb.SecDumpProto.DNSInfo parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.dd.cws.adv1.pb.SecDumpProto.DNSInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.dd.cws.adv1.pb.SecDumpProto.DNSInfo parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.dd.cws.adv1.pb.SecDumpProto.DNSInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.dd.cws.adv1.pb.SecDumpProto.DNSInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.dd.cws.adv1.pb.SecDumpProto.DNSInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code datadog.cws.dumpsv1.DNSInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datadog.cws.dumpsv1.DNSInfo) + com.dd.cws.adv1.pb.SecDumpProto.DNSInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_DNSInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_DNSInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.dd.cws.adv1.pb.SecDumpProto.DNSInfo.class, com.dd.cws.adv1.pb.SecDumpProto.DNSInfo.Builder.class); + } + + // Construct using com.dd.cws.adv1.pb.SecDumpProto.DNSInfo.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + type_ = 0; + class__ = 0; + size_ = 0; + count_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_DNSInfo_descriptor; + } + + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.DNSInfo getDefaultInstanceForType() { + return com.dd.cws.adv1.pb.SecDumpProto.DNSInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.DNSInfo build() { + com.dd.cws.adv1.pb.SecDumpProto.DNSInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.DNSInfo buildPartial() { + com.dd.cws.adv1.pb.SecDumpProto.DNSInfo result = new com.dd.cws.adv1.pb.SecDumpProto.DNSInfo(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.dd.cws.adv1.pb.SecDumpProto.DNSInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.type_ = type_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.class__ = class__; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.size_ = size_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.count_ = count_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.dd.cws.adv1.pb.SecDumpProto.DNSInfo) { + return mergeFrom((com.dd.cws.adv1.pb.SecDumpProto.DNSInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.dd.cws.adv1.pb.SecDumpProto.DNSInfo other) { + if (other == com.dd.cws.adv1.pb.SecDumpProto.DNSInfo.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getType() != 0) { + setType(other.getType()); + } + if (other.getClass_() != 0) { + setClass_(other.getClass_()); + } + if (other.getSize() != 0) { + setSize(other.getSize()); + } + if (other.getCount() != 0) { + setCount(other.getCount()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + type_ = input.readUInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + class__ = input.readUInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: { + size_ = input.readUInt32(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: { + count_ = input.readUInt32(); + bitField0_ |= 0x00000010; + break; + } // case 40 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * string name = 1; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string name = 1; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string name = 1; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int type_ ; + /** + * uint32 type = 2; + * @return The type. + */ + @java.lang.Override + public int getType() { + return type_; + } + /** + * uint32 type = 2; + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(int value) { + + type_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * uint32 type = 2; + * @return This builder for chaining. + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000002); + type_ = 0; + onChanged(); + return this; + } + + private int class__ ; + /** + * uint32 class = 3; + * @return The class. + */ + @java.lang.Override + public int getClass_() { + return class__; + } + /** + * uint32 class = 3; + * @param value The class to set. + * @return This builder for chaining. + */ + public Builder setClass_(int value) { + + class__ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * uint32 class = 3; + * @return This builder for chaining. + */ + public Builder clearClass_() { + bitField0_ = (bitField0_ & ~0x00000004); + class__ = 0; + onChanged(); + return this; + } + + private int size_ ; + /** + * uint32 size = 4; + * @return The size. + */ + @java.lang.Override + public int getSize() { + return size_; + } + /** + * uint32 size = 4; + * @param value The size to set. + * @return This builder for chaining. + */ + public Builder setSize(int value) { + + size_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * uint32 size = 4; + * @return This builder for chaining. + */ + public Builder clearSize() { + bitField0_ = (bitField0_ & ~0x00000008); + size_ = 0; + onChanged(); + return this; + } + + private int count_ ; + /** + * uint32 count = 5; + * @return The count. + */ + @java.lang.Override + public int getCount() { + return count_; + } + /** + * uint32 count = 5; + * @param value The count to set. + * @return This builder for chaining. + */ + public Builder setCount(int value) { + + count_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * uint32 count = 5; + * @return This builder for chaining. + */ + public Builder clearCount() { + bitField0_ = (bitField0_ & ~0x00000010); + count_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:datadog.cws.dumpsv1.DNSInfo) + } + + // @@protoc_insertion_point(class_scope:datadog.cws.dumpsv1.DNSInfo) + private static final com.dd.cws.adv1.pb.SecDumpProto.DNSInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.dd.cws.adv1.pb.SecDumpProto.DNSInfo(); + } + + public static com.dd.cws.adv1.pb.SecDumpProto.DNSInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DNSInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.DNSInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface FileInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:datadog.cws.dumpsv1.FileInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * uint32 uid = 1; + * @return The uid. + */ + int getUid(); + + /** + * string user = 2; + * @return The user. + */ + java.lang.String getUser(); + /** + * string user = 2; + * @return The bytes for user. + */ + com.google.protobuf.ByteString + getUserBytes(); + + /** + * uint32 gid = 3; + * @return The gid. + */ + int getGid(); + + /** + * string group = 4; + * @return The group. + */ + java.lang.String getGroup(); + /** + * string group = 4; + * @return The bytes for group. + */ + com.google.protobuf.ByteString + getGroupBytes(); + + /** + *
+     * TODO: check conversion with uint16
+     * 
+ * + * uint32 mode = 5; + * @return The mode. + */ + int getMode(); + + /** + * uint64 ctime = 6; + * @return The ctime. + */ + long getCtime(); + + /** + * uint64 mtime = 7; + * @return The mtime. + */ + long getMtime(); + + /** + * uint32 mount_id = 8; + * @return The mountId. + */ + int getMountId(); + + /** + * uint64 inode = 9; + * @return The inode. + */ + long getInode(); + + /** + * bool in_upper_layer = 10; + * @return The inUpperLayer. + */ + boolean getInUpperLayer(); + + /** + * string path = 11; + * @return The path. + */ + java.lang.String getPath(); + /** + * string path = 11; + * @return The bytes for path. + */ + com.google.protobuf.ByteString + getPathBytes(); + + /** + * string basename = 12; + * @return The basename. + */ + java.lang.String getBasename(); + /** + * string basename = 12; + * @return The bytes for basename. + */ + com.google.protobuf.ByteString + getBasenameBytes(); + + /** + * string filesystem = 13; + * @return The filesystem. + */ + java.lang.String getFilesystem(); + /** + * string filesystem = 13; + * @return The bytes for filesystem. + */ + com.google.protobuf.ByteString + getFilesystemBytes(); + + /** + * string package_name = 14; + * @return The packageName. + */ + java.lang.String getPackageName(); + /** + * string package_name = 14; + * @return The bytes for packageName. + */ + com.google.protobuf.ByteString + getPackageNameBytes(); + + /** + * string package_version = 15; + * @return The packageVersion. + */ + java.lang.String getPackageVersion(); + /** + * string package_version = 15; + * @return The bytes for packageVersion. + */ + com.google.protobuf.ByteString + getPackageVersionBytes(); + + /** + * string package_srcversion = 16; + * @return The packageSrcversion. + */ + java.lang.String getPackageSrcversion(); + /** + * string package_srcversion = 16; + * @return The bytes for packageSrcversion. + */ + com.google.protobuf.ByteString + getPackageSrcversionBytes(); + } + /** + * Protobuf type {@code datadog.cws.dumpsv1.FileInfo} + */ + public static final class FileInfo extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datadog.cws.dumpsv1.FileInfo) + FileInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use FileInfo.newBuilder() to construct. + private FileInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private FileInfo() { + user_ = ""; + group_ = ""; + path_ = ""; + basename_ = ""; + filesystem_ = ""; + packageName_ = ""; + packageVersion_ = ""; + packageSrcversion_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new FileInfo(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_FileInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_FileInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.dd.cws.adv1.pb.SecDumpProto.FileInfo.class, com.dd.cws.adv1.pb.SecDumpProto.FileInfo.Builder.class); + } + + public static final int UID_FIELD_NUMBER = 1; + private int uid_ = 0; + /** + * uint32 uid = 1; + * @return The uid. + */ + @java.lang.Override + public int getUid() { + return uid_; + } + + public static final int USER_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object user_ = ""; + /** + * string user = 2; + * @return The user. + */ + @java.lang.Override + public java.lang.String getUser() { + java.lang.Object ref = user_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + user_ = s; + return s; + } + } + /** + * string user = 2; + * @return The bytes for user. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getUserBytes() { + java.lang.Object ref = user_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + user_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GID_FIELD_NUMBER = 3; + private int gid_ = 0; + /** + * uint32 gid = 3; + * @return The gid. + */ + @java.lang.Override + public int getGid() { + return gid_; + } + + public static final int GROUP_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile java.lang.Object group_ = ""; + /** + * string group = 4; + * @return The group. + */ + @java.lang.Override + public java.lang.String getGroup() { + java.lang.Object ref = group_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + group_ = s; + return s; + } + } + /** + * string group = 4; + * @return The bytes for group. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getGroupBytes() { + java.lang.Object ref = group_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + group_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MODE_FIELD_NUMBER = 5; + private int mode_ = 0; + /** + *
+     * TODO: check conversion with uint16
+     * 
+ * + * uint32 mode = 5; + * @return The mode. + */ + @java.lang.Override + public int getMode() { + return mode_; + } + + public static final int CTIME_FIELD_NUMBER = 6; + private long ctime_ = 0L; + /** + * uint64 ctime = 6; + * @return The ctime. + */ + @java.lang.Override + public long getCtime() { + return ctime_; + } + + public static final int MTIME_FIELD_NUMBER = 7; + private long mtime_ = 0L; + /** + * uint64 mtime = 7; + * @return The mtime. + */ + @java.lang.Override + public long getMtime() { + return mtime_; + } + + public static final int MOUNT_ID_FIELD_NUMBER = 8; + private int mountId_ = 0; + /** + * uint32 mount_id = 8; + * @return The mountId. + */ + @java.lang.Override + public int getMountId() { + return mountId_; + } + + public static final int INODE_FIELD_NUMBER = 9; + private long inode_ = 0L; + /** + * uint64 inode = 9; + * @return The inode. + */ + @java.lang.Override + public long getInode() { + return inode_; + } + + public static final int IN_UPPER_LAYER_FIELD_NUMBER = 10; + private boolean inUpperLayer_ = false; + /** + * bool in_upper_layer = 10; + * @return The inUpperLayer. + */ + @java.lang.Override + public boolean getInUpperLayer() { + return inUpperLayer_; + } + + public static final int PATH_FIELD_NUMBER = 11; + @SuppressWarnings("serial") + private volatile java.lang.Object path_ = ""; + /** + * string path = 11; + * @return The path. + */ + @java.lang.Override + public java.lang.String getPath() { + java.lang.Object ref = path_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + path_ = s; + return s; + } + } + /** + * string path = 11; + * @return The bytes for path. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPathBytes() { + java.lang.Object ref = path_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + path_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BASENAME_FIELD_NUMBER = 12; + @SuppressWarnings("serial") + private volatile java.lang.Object basename_ = ""; + /** + * string basename = 12; + * @return The basename. + */ + @java.lang.Override + public java.lang.String getBasename() { + java.lang.Object ref = basename_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + basename_ = s; + return s; + } + } + /** + * string basename = 12; + * @return The bytes for basename. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getBasenameBytes() { + java.lang.Object ref = basename_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + basename_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILESYSTEM_FIELD_NUMBER = 13; + @SuppressWarnings("serial") + private volatile java.lang.Object filesystem_ = ""; + /** + * string filesystem = 13; + * @return The filesystem. + */ + @java.lang.Override + public java.lang.String getFilesystem() { + java.lang.Object ref = filesystem_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filesystem_ = s; + return s; + } + } + /** + * string filesystem = 13; + * @return The bytes for filesystem. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getFilesystemBytes() { + java.lang.Object ref = filesystem_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filesystem_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PACKAGE_NAME_FIELD_NUMBER = 14; + @SuppressWarnings("serial") + private volatile java.lang.Object packageName_ = ""; + /** + * string package_name = 14; + * @return The packageName. + */ + @java.lang.Override + public java.lang.String getPackageName() { + java.lang.Object ref = packageName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + packageName_ = s; + return s; + } + } + /** + * string package_name = 14; + * @return The bytes for packageName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPackageNameBytes() { + java.lang.Object ref = packageName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + packageName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PACKAGE_VERSION_FIELD_NUMBER = 15; + @SuppressWarnings("serial") + private volatile java.lang.Object packageVersion_ = ""; + /** + * string package_version = 15; + * @return The packageVersion. + */ + @java.lang.Override + public java.lang.String getPackageVersion() { + java.lang.Object ref = packageVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + packageVersion_ = s; + return s; + } + } + /** + * string package_version = 15; + * @return The bytes for packageVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPackageVersionBytes() { + java.lang.Object ref = packageVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + packageVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PACKAGE_SRCVERSION_FIELD_NUMBER = 16; + @SuppressWarnings("serial") + private volatile java.lang.Object packageSrcversion_ = ""; + /** + * string package_srcversion = 16; + * @return The packageSrcversion. + */ + @java.lang.Override + public java.lang.String getPackageSrcversion() { + java.lang.Object ref = packageSrcversion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + packageSrcversion_ = s; + return s; + } + } + /** + * string package_srcversion = 16; + * @return The bytes for packageSrcversion. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPackageSrcversionBytes() { + java.lang.Object ref = packageSrcversion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + packageSrcversion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (uid_ != 0) { + output.writeUInt32(1, uid_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(user_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, user_); + } + if (gid_ != 0) { + output.writeUInt32(3, gid_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(group_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, group_); + } + if (mode_ != 0) { + output.writeUInt32(5, mode_); + } + if (ctime_ != 0L) { + output.writeUInt64(6, ctime_); + } + if (mtime_ != 0L) { + output.writeUInt64(7, mtime_); + } + if (mountId_ != 0) { + output.writeUInt32(8, mountId_); + } + if (inode_ != 0L) { + output.writeUInt64(9, inode_); + } + if (inUpperLayer_ != false) { + output.writeBool(10, inUpperLayer_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, path_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(basename_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, basename_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filesystem_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, filesystem_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(packageName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 14, packageName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(packageVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 15, packageVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(packageSrcversion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 16, packageSrcversion_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (uid_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, uid_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(user_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, user_); + } + if (gid_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(3, gid_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(group_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, group_); + } + if (mode_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(5, mode_); + } + if (ctime_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(6, ctime_); + } + if (mtime_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(7, mtime_); + } + if (mountId_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(8, mountId_); + } + if (inode_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(9, inode_); + } + if (inUpperLayer_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(10, inUpperLayer_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, path_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(basename_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, basename_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filesystem_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, filesystem_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(packageName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, packageName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(packageVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, packageVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(packageSrcversion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, packageSrcversion_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.dd.cws.adv1.pb.SecDumpProto.FileInfo)) { + return super.equals(obj); + } + com.dd.cws.adv1.pb.SecDumpProto.FileInfo other = (com.dd.cws.adv1.pb.SecDumpProto.FileInfo) obj; + + if (getUid() + != other.getUid()) return false; + if (!getUser() + .equals(other.getUser())) return false; + if (getGid() + != other.getGid()) return false; + if (!getGroup() + .equals(other.getGroup())) return false; + if (getMode() + != other.getMode()) return false; + if (getCtime() + != other.getCtime()) return false; + if (getMtime() + != other.getMtime()) return false; + if (getMountId() + != other.getMountId()) return false; + if (getInode() + != other.getInode()) return false; + if (getInUpperLayer() + != other.getInUpperLayer()) return false; + if (!getPath() + .equals(other.getPath())) return false; + if (!getBasename() + .equals(other.getBasename())) return false; + if (!getFilesystem() + .equals(other.getFilesystem())) return false; + if (!getPackageName() + .equals(other.getPackageName())) return false; + if (!getPackageVersion() + .equals(other.getPackageVersion())) return false; + if (!getPackageSrcversion() + .equals(other.getPackageSrcversion())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + UID_FIELD_NUMBER; + hash = (53 * hash) + getUid(); + hash = (37 * hash) + USER_FIELD_NUMBER; + hash = (53 * hash) + getUser().hashCode(); + hash = (37 * hash) + GID_FIELD_NUMBER; + hash = (53 * hash) + getGid(); + hash = (37 * hash) + GROUP_FIELD_NUMBER; + hash = (53 * hash) + getGroup().hashCode(); + hash = (37 * hash) + MODE_FIELD_NUMBER; + hash = (53 * hash) + getMode(); + hash = (37 * hash) + CTIME_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getCtime()); + hash = (37 * hash) + MTIME_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMtime()); + hash = (37 * hash) + MOUNT_ID_FIELD_NUMBER; + hash = (53 * hash) + getMountId(); + hash = (37 * hash) + INODE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getInode()); + hash = (37 * hash) + IN_UPPER_LAYER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getInUpperLayer()); + hash = (37 * hash) + PATH_FIELD_NUMBER; + hash = (53 * hash) + getPath().hashCode(); + hash = (37 * hash) + BASENAME_FIELD_NUMBER; + hash = (53 * hash) + getBasename().hashCode(); + hash = (37 * hash) + FILESYSTEM_FIELD_NUMBER; + hash = (53 * hash) + getFilesystem().hashCode(); + hash = (37 * hash) + PACKAGE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getPackageName().hashCode(); + hash = (37 * hash) + PACKAGE_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getPackageVersion().hashCode(); + hash = (37 * hash) + PACKAGE_SRCVERSION_FIELD_NUMBER; + hash = (53 * hash) + getPackageSrcversion().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.dd.cws.adv1.pb.SecDumpProto.FileInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.dd.cws.adv1.pb.SecDumpProto.FileInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.dd.cws.adv1.pb.SecDumpProto.FileInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.dd.cws.adv1.pb.SecDumpProto.FileInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.dd.cws.adv1.pb.SecDumpProto.FileInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.dd.cws.adv1.pb.SecDumpProto.FileInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.dd.cws.adv1.pb.SecDumpProto.FileInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.dd.cws.adv1.pb.SecDumpProto.FileInfo parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.dd.cws.adv1.pb.SecDumpProto.FileInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.dd.cws.adv1.pb.SecDumpProto.FileInfo parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.dd.cws.adv1.pb.SecDumpProto.FileInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.dd.cws.adv1.pb.SecDumpProto.FileInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.dd.cws.adv1.pb.SecDumpProto.FileInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code datadog.cws.dumpsv1.FileInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datadog.cws.dumpsv1.FileInfo) + com.dd.cws.adv1.pb.SecDumpProto.FileInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_FileInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_FileInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.dd.cws.adv1.pb.SecDumpProto.FileInfo.class, com.dd.cws.adv1.pb.SecDumpProto.FileInfo.Builder.class); + } + + // Construct using com.dd.cws.adv1.pb.SecDumpProto.FileInfo.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + uid_ = 0; + user_ = ""; + gid_ = 0; + group_ = ""; + mode_ = 0; + ctime_ = 0L; + mtime_ = 0L; + mountId_ = 0; + inode_ = 0L; + inUpperLayer_ = false; + path_ = ""; + basename_ = ""; + filesystem_ = ""; + packageName_ = ""; + packageVersion_ = ""; + packageSrcversion_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_FileInfo_descriptor; + } + + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.FileInfo getDefaultInstanceForType() { + return com.dd.cws.adv1.pb.SecDumpProto.FileInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.FileInfo build() { + com.dd.cws.adv1.pb.SecDumpProto.FileInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.FileInfo buildPartial() { + com.dd.cws.adv1.pb.SecDumpProto.FileInfo result = new com.dd.cws.adv1.pb.SecDumpProto.FileInfo(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.dd.cws.adv1.pb.SecDumpProto.FileInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.uid_ = uid_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.user_ = user_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.gid_ = gid_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.group_ = group_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.mode_ = mode_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.ctime_ = ctime_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.mtime_ = mtime_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.mountId_ = mountId_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.inode_ = inode_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.inUpperLayer_ = inUpperLayer_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.path_ = path_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.basename_ = basename_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.filesystem_ = filesystem_; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.packageName_ = packageName_; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.packageVersion_ = packageVersion_; + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.packageSrcversion_ = packageSrcversion_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.dd.cws.adv1.pb.SecDumpProto.FileInfo) { + return mergeFrom((com.dd.cws.adv1.pb.SecDumpProto.FileInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.dd.cws.adv1.pb.SecDumpProto.FileInfo other) { + if (other == com.dd.cws.adv1.pb.SecDumpProto.FileInfo.getDefaultInstance()) return this; + if (other.getUid() != 0) { + setUid(other.getUid()); + } + if (!other.getUser().isEmpty()) { + user_ = other.user_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getGid() != 0) { + setGid(other.getGid()); + } + if (!other.getGroup().isEmpty()) { + group_ = other.group_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.getMode() != 0) { + setMode(other.getMode()); + } + if (other.getCtime() != 0L) { + setCtime(other.getCtime()); + } + if (other.getMtime() != 0L) { + setMtime(other.getMtime()); + } + if (other.getMountId() != 0) { + setMountId(other.getMountId()); + } + if (other.getInode() != 0L) { + setInode(other.getInode()); + } + if (other.getInUpperLayer() != false) { + setInUpperLayer(other.getInUpperLayer()); + } + if (!other.getPath().isEmpty()) { + path_ = other.path_; + bitField0_ |= 0x00000400; + onChanged(); + } + if (!other.getBasename().isEmpty()) { + basename_ = other.basename_; + bitField0_ |= 0x00000800; + onChanged(); + } + if (!other.getFilesystem().isEmpty()) { + filesystem_ = other.filesystem_; + bitField0_ |= 0x00001000; + onChanged(); + } + if (!other.getPackageName().isEmpty()) { + packageName_ = other.packageName_; + bitField0_ |= 0x00002000; + onChanged(); + } + if (!other.getPackageVersion().isEmpty()) { + packageVersion_ = other.packageVersion_; + bitField0_ |= 0x00004000; + onChanged(); + } + if (!other.getPackageSrcversion().isEmpty()) { + packageSrcversion_ = other.packageSrcversion_; + bitField0_ |= 0x00008000; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + uid_ = input.readUInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + user_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + gid_ = input.readUInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + group_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: { + mode_ = input.readUInt32(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: { + ctime_ = input.readUInt64(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 56: { + mtime_ = input.readUInt64(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 64: { + mountId_ = input.readUInt32(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 72: { + inode_ = input.readUInt64(); + bitField0_ |= 0x00000100; + break; + } // case 72 + case 80: { + inUpperLayer_ = input.readBool(); + bitField0_ |= 0x00000200; + break; + } // case 80 + case 90: { + path_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000400; + break; + } // case 90 + case 98: { + basename_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000800; + break; + } // case 98 + case 106: { + filesystem_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00001000; + break; + } // case 106 + case 114: { + packageName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00002000; + break; + } // case 114 + case 122: { + packageVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00004000; + break; + } // case 122 + case 130: { + packageSrcversion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00008000; + break; + } // case 130 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int uid_ ; + /** + * uint32 uid = 1; + * @return The uid. + */ + @java.lang.Override + public int getUid() { + return uid_; + } + /** + * uint32 uid = 1; + * @param value The uid to set. + * @return This builder for chaining. + */ + public Builder setUid(int value) { + + uid_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * uint32 uid = 1; + * @return This builder for chaining. + */ + public Builder clearUid() { + bitField0_ = (bitField0_ & ~0x00000001); + uid_ = 0; + onChanged(); + return this; + } + + private java.lang.Object user_ = ""; + /** + * string user = 2; + * @return The user. + */ + public java.lang.String getUser() { + java.lang.Object ref = user_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + user_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string user = 2; + * @return The bytes for user. + */ + public com.google.protobuf.ByteString + getUserBytes() { + java.lang.Object ref = user_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + user_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string user = 2; + * @param value The user to set. + * @return This builder for chaining. + */ + public Builder setUser( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + user_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * string user = 2; + * @return This builder for chaining. + */ + public Builder clearUser() { + user_ = getDefaultInstance().getUser(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * string user = 2; + * @param value The bytes for user to set. + * @return This builder for chaining. + */ + public Builder setUserBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + user_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int gid_ ; + /** + * uint32 gid = 3; + * @return The gid. + */ + @java.lang.Override + public int getGid() { + return gid_; + } + /** + * uint32 gid = 3; + * @param value The gid to set. + * @return This builder for chaining. + */ + public Builder setGid(int value) { + + gid_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * uint32 gid = 3; + * @return This builder for chaining. + */ + public Builder clearGid() { + bitField0_ = (bitField0_ & ~0x00000004); + gid_ = 0; + onChanged(); + return this; + } + + private java.lang.Object group_ = ""; + /** + * string group = 4; + * @return The group. + */ + public java.lang.String getGroup() { + java.lang.Object ref = group_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + group_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string group = 4; + * @return The bytes for group. + */ + public com.google.protobuf.ByteString + getGroupBytes() { + java.lang.Object ref = group_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + group_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string group = 4; + * @param value The group to set. + * @return This builder for chaining. + */ + public Builder setGroup( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + group_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * string group = 4; + * @return This builder for chaining. + */ + public Builder clearGroup() { + group_ = getDefaultInstance().getGroup(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * string group = 4; + * @param value The bytes for group to set. + * @return This builder for chaining. + */ + public Builder setGroupBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + group_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private int mode_ ; + /** + *
+       * TODO: check conversion with uint16
+       * 
+ * + * uint32 mode = 5; + * @return The mode. + */ + @java.lang.Override + public int getMode() { + return mode_; + } + /** + *
+       * TODO: check conversion with uint16
+       * 
+ * + * uint32 mode = 5; + * @param value The mode to set. + * @return This builder for chaining. + */ + public Builder setMode(int value) { + + mode_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+       * TODO: check conversion with uint16
+       * 
+ * + * uint32 mode = 5; + * @return This builder for chaining. + */ + public Builder clearMode() { + bitField0_ = (bitField0_ & ~0x00000010); + mode_ = 0; + onChanged(); + return this; + } + + private long ctime_ ; + /** + * uint64 ctime = 6; + * @return The ctime. + */ + @java.lang.Override + public long getCtime() { + return ctime_; + } + /** + * uint64 ctime = 6; + * @param value The ctime to set. + * @return This builder for chaining. + */ + public Builder setCtime(long value) { + + ctime_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * uint64 ctime = 6; + * @return This builder for chaining. + */ + public Builder clearCtime() { + bitField0_ = (bitField0_ & ~0x00000020); + ctime_ = 0L; + onChanged(); + return this; + } + + private long mtime_ ; + /** + * uint64 mtime = 7; + * @return The mtime. + */ + @java.lang.Override + public long getMtime() { + return mtime_; + } + /** + * uint64 mtime = 7; + * @param value The mtime to set. + * @return This builder for chaining. + */ + public Builder setMtime(long value) { + + mtime_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * uint64 mtime = 7; + * @return This builder for chaining. + */ + public Builder clearMtime() { + bitField0_ = (bitField0_ & ~0x00000040); + mtime_ = 0L; + onChanged(); + return this; + } + + private int mountId_ ; + /** + * uint32 mount_id = 8; + * @return The mountId. + */ + @java.lang.Override + public int getMountId() { + return mountId_; + } + /** + * uint32 mount_id = 8; + * @param value The mountId to set. + * @return This builder for chaining. + */ + public Builder setMountId(int value) { + + mountId_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * uint32 mount_id = 8; + * @return This builder for chaining. + */ + public Builder clearMountId() { + bitField0_ = (bitField0_ & ~0x00000080); + mountId_ = 0; + onChanged(); + return this; + } + + private long inode_ ; + /** + * uint64 inode = 9; + * @return The inode. + */ + @java.lang.Override + public long getInode() { + return inode_; + } + /** + * uint64 inode = 9; + * @param value The inode to set. + * @return This builder for chaining. + */ + public Builder setInode(long value) { + + inode_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * uint64 inode = 9; + * @return This builder for chaining. + */ + public Builder clearInode() { + bitField0_ = (bitField0_ & ~0x00000100); + inode_ = 0L; + onChanged(); + return this; + } + + private boolean inUpperLayer_ ; + /** + * bool in_upper_layer = 10; + * @return The inUpperLayer. + */ + @java.lang.Override + public boolean getInUpperLayer() { + return inUpperLayer_; + } + /** + * bool in_upper_layer = 10; + * @param value The inUpperLayer to set. + * @return This builder for chaining. + */ + public Builder setInUpperLayer(boolean value) { + + inUpperLayer_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * bool in_upper_layer = 10; + * @return This builder for chaining. + */ + public Builder clearInUpperLayer() { + bitField0_ = (bitField0_ & ~0x00000200); + inUpperLayer_ = false; + onChanged(); + return this; + } + + private java.lang.Object path_ = ""; + /** + * string path = 11; + * @return The path. + */ + public java.lang.String getPath() { + java.lang.Object ref = path_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + path_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string path = 11; + * @return The bytes for path. + */ + public com.google.protobuf.ByteString + getPathBytes() { + java.lang.Object ref = path_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + path_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string path = 11; + * @param value The path to set. + * @return This builder for chaining. + */ + public Builder setPath( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + path_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * string path = 11; + * @return This builder for chaining. + */ + public Builder clearPath() { + path_ = getDefaultInstance().getPath(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + return this; + } + /** + * string path = 11; + * @param value The bytes for path to set. + * @return This builder for chaining. + */ + public Builder setPathBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + path_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + private java.lang.Object basename_ = ""; + /** + * string basename = 12; + * @return The basename. + */ + public java.lang.String getBasename() { + java.lang.Object ref = basename_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + basename_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string basename = 12; + * @return The bytes for basename. + */ + public com.google.protobuf.ByteString + getBasenameBytes() { + java.lang.Object ref = basename_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + basename_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string basename = 12; + * @param value The basename to set. + * @return This builder for chaining. + */ + public Builder setBasename( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + basename_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + * string basename = 12; + * @return This builder for chaining. + */ + public Builder clearBasename() { + basename_ = getDefaultInstance().getBasename(); + bitField0_ = (bitField0_ & ~0x00000800); + onChanged(); + return this; + } + /** + * string basename = 12; + * @param value The bytes for basename to set. + * @return This builder for chaining. + */ + public Builder setBasenameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + basename_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + private java.lang.Object filesystem_ = ""; + /** + * string filesystem = 13; + * @return The filesystem. + */ + public java.lang.String getFilesystem() { + java.lang.Object ref = filesystem_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filesystem_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string filesystem = 13; + * @return The bytes for filesystem. + */ + public com.google.protobuf.ByteString + getFilesystemBytes() { + java.lang.Object ref = filesystem_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filesystem_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string filesystem = 13; + * @param value The filesystem to set. + * @return This builder for chaining. + */ + public Builder setFilesystem( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + filesystem_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + * string filesystem = 13; + * @return This builder for chaining. + */ + public Builder clearFilesystem() { + filesystem_ = getDefaultInstance().getFilesystem(); + bitField0_ = (bitField0_ & ~0x00001000); + onChanged(); + return this; + } + /** + * string filesystem = 13; + * @param value The bytes for filesystem to set. + * @return This builder for chaining. + */ + public Builder setFilesystemBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + filesystem_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + private java.lang.Object packageName_ = ""; + /** + * string package_name = 14; + * @return The packageName. + */ + public java.lang.String getPackageName() { + java.lang.Object ref = packageName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + packageName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string package_name = 14; + * @return The bytes for packageName. + */ + public com.google.protobuf.ByteString + getPackageNameBytes() { + java.lang.Object ref = packageName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + packageName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string package_name = 14; + * @param value The packageName to set. + * @return This builder for chaining. + */ + public Builder setPackageName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + packageName_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + /** + * string package_name = 14; + * @return This builder for chaining. + */ + public Builder clearPackageName() { + packageName_ = getDefaultInstance().getPackageName(); + bitField0_ = (bitField0_ & ~0x00002000); + onChanged(); + return this; + } + /** + * string package_name = 14; + * @param value The bytes for packageName to set. + * @return This builder for chaining. + */ + public Builder setPackageNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + packageName_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + + private java.lang.Object packageVersion_ = ""; + /** + * string package_version = 15; + * @return The packageVersion. + */ + public java.lang.String getPackageVersion() { + java.lang.Object ref = packageVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + packageVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string package_version = 15; + * @return The bytes for packageVersion. + */ + public com.google.protobuf.ByteString + getPackageVersionBytes() { + java.lang.Object ref = packageVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + packageVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string package_version = 15; + * @param value The packageVersion to set. + * @return This builder for chaining. + */ + public Builder setPackageVersion( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + packageVersion_ = value; + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + /** + * string package_version = 15; + * @return This builder for chaining. + */ + public Builder clearPackageVersion() { + packageVersion_ = getDefaultInstance().getPackageVersion(); + bitField0_ = (bitField0_ & ~0x00004000); + onChanged(); + return this; + } + /** + * string package_version = 15; + * @param value The bytes for packageVersion to set. + * @return This builder for chaining. + */ + public Builder setPackageVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + packageVersion_ = value; + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + + private java.lang.Object packageSrcversion_ = ""; + /** + * string package_srcversion = 16; + * @return The packageSrcversion. + */ + public java.lang.String getPackageSrcversion() { + java.lang.Object ref = packageSrcversion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + packageSrcversion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string package_srcversion = 16; + * @return The bytes for packageSrcversion. + */ + public com.google.protobuf.ByteString + getPackageSrcversionBytes() { + java.lang.Object ref = packageSrcversion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + packageSrcversion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string package_srcversion = 16; + * @param value The packageSrcversion to set. + * @return This builder for chaining. + */ + public Builder setPackageSrcversion( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + packageSrcversion_ = value; + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + /** + * string package_srcversion = 16; + * @return This builder for chaining. + */ + public Builder clearPackageSrcversion() { + packageSrcversion_ = getDefaultInstance().getPackageSrcversion(); + bitField0_ = (bitField0_ & ~0x00008000); + onChanged(); + return this; + } + /** + * string package_srcversion = 16; + * @param value The bytes for packageSrcversion to set. + * @return This builder for chaining. + */ + public Builder setPackageSrcversionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + packageSrcversion_ = value; + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:datadog.cws.dumpsv1.FileInfo) + } + + // @@protoc_insertion_point(class_scope:datadog.cws.dumpsv1.FileInfo) + private static final com.dd.cws.adv1.pb.SecDumpProto.FileInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.dd.cws.adv1.pb.SecDumpProto.FileInfo(); + } + + public static com.dd.cws.adv1.pb.SecDumpProto.FileInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FileInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.FileInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CredentialsOrBuilder extends + // @@protoc_insertion_point(interface_extends:datadog.cws.dumpsv1.Credentials) + com.google.protobuf.MessageOrBuilder { + + /** + * uint32 uid = 1; + * @return The uid. + */ + int getUid(); + + /** + * uint32 gid = 2; + * @return The gid. + */ + int getGid(); + + /** + * string user = 3; + * @return The user. + */ + java.lang.String getUser(); + /** + * string user = 3; + * @return The bytes for user. + */ + com.google.protobuf.ByteString + getUserBytes(); + + /** + * string group = 4; + * @return The group. + */ + java.lang.String getGroup(); + /** + * string group = 4; + * @return The bytes for group. + */ + com.google.protobuf.ByteString + getGroupBytes(); + + /** + * uint32 effective_uid = 5; + * @return The effectiveUid. + */ + int getEffectiveUid(); + + /** + * uint32 effective_gid = 6; + * @return The effectiveGid. + */ + int getEffectiveGid(); + + /** + * string effective_user = 7; + * @return The effectiveUser. + */ + java.lang.String getEffectiveUser(); + /** + * string effective_user = 7; + * @return The bytes for effectiveUser. + */ + com.google.protobuf.ByteString + getEffectiveUserBytes(); + + /** + * string effective_group = 8; + * @return The effectiveGroup. + */ + java.lang.String getEffectiveGroup(); + /** + * string effective_group = 8; + * @return The bytes for effectiveGroup. + */ + com.google.protobuf.ByteString + getEffectiveGroupBytes(); + + /** + * uint32 fs_uid = 9; + * @return The fsUid. + */ + int getFsUid(); + + /** + * uint32 fs_gid = 10; + * @return The fsGid. + */ + int getFsGid(); + + /** + * string fs_user = 11; + * @return The fsUser. + */ + java.lang.String getFsUser(); + /** + * string fs_user = 11; + * @return The bytes for fsUser. + */ + com.google.protobuf.ByteString + getFsUserBytes(); + + /** + * string fs_group = 12; + * @return The fsGroup. + */ + java.lang.String getFsGroup(); + /** + * string fs_group = 12; + * @return The bytes for fsGroup. + */ + com.google.protobuf.ByteString + getFsGroupBytes(); + + /** + * uint64 cap_effective = 13; + * @return The capEffective. + */ + long getCapEffective(); + + /** + * uint64 cap_permitted = 14; + * @return The capPermitted. + */ + long getCapPermitted(); + } + /** + * Protobuf type {@code datadog.cws.dumpsv1.Credentials} + */ + public static final class Credentials extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datadog.cws.dumpsv1.Credentials) + CredentialsOrBuilder { + private static final long serialVersionUID = 0L; + // Use Credentials.newBuilder() to construct. + private Credentials(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Credentials() { + user_ = ""; + group_ = ""; + effectiveUser_ = ""; + effectiveGroup_ = ""; + fsUser_ = ""; + fsGroup_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Credentials(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_Credentials_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_Credentials_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.dd.cws.adv1.pb.SecDumpProto.Credentials.class, com.dd.cws.adv1.pb.SecDumpProto.Credentials.Builder.class); + } + + public static final int UID_FIELD_NUMBER = 1; + private int uid_ = 0; + /** + * uint32 uid = 1; + * @return The uid. + */ + @java.lang.Override + public int getUid() { + return uid_; + } + + public static final int GID_FIELD_NUMBER = 2; + private int gid_ = 0; + /** + * uint32 gid = 2; + * @return The gid. + */ + @java.lang.Override + public int getGid() { + return gid_; + } + + public static final int USER_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object user_ = ""; + /** + * string user = 3; + * @return The user. + */ + @java.lang.Override + public java.lang.String getUser() { + java.lang.Object ref = user_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + user_ = s; + return s; + } + } + /** + * string user = 3; + * @return The bytes for user. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getUserBytes() { + java.lang.Object ref = user_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + user_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GROUP_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile java.lang.Object group_ = ""; + /** + * string group = 4; + * @return The group. + */ + @java.lang.Override + public java.lang.String getGroup() { + java.lang.Object ref = group_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + group_ = s; + return s; + } + } + /** + * string group = 4; + * @return The bytes for group. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getGroupBytes() { + java.lang.Object ref = group_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + group_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EFFECTIVE_UID_FIELD_NUMBER = 5; + private int effectiveUid_ = 0; + /** + * uint32 effective_uid = 5; + * @return The effectiveUid. + */ + @java.lang.Override + public int getEffectiveUid() { + return effectiveUid_; + } + + public static final int EFFECTIVE_GID_FIELD_NUMBER = 6; + private int effectiveGid_ = 0; + /** + * uint32 effective_gid = 6; + * @return The effectiveGid. + */ + @java.lang.Override + public int getEffectiveGid() { + return effectiveGid_; + } + + public static final int EFFECTIVE_USER_FIELD_NUMBER = 7; + @SuppressWarnings("serial") + private volatile java.lang.Object effectiveUser_ = ""; + /** + * string effective_user = 7; + * @return The effectiveUser. + */ + @java.lang.Override + public java.lang.String getEffectiveUser() { + java.lang.Object ref = effectiveUser_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + effectiveUser_ = s; + return s; + } + } + /** + * string effective_user = 7; + * @return The bytes for effectiveUser. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getEffectiveUserBytes() { + java.lang.Object ref = effectiveUser_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + effectiveUser_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EFFECTIVE_GROUP_FIELD_NUMBER = 8; + @SuppressWarnings("serial") + private volatile java.lang.Object effectiveGroup_ = ""; + /** + * string effective_group = 8; + * @return The effectiveGroup. + */ + @java.lang.Override + public java.lang.String getEffectiveGroup() { + java.lang.Object ref = effectiveGroup_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + effectiveGroup_ = s; + return s; + } + } + /** + * string effective_group = 8; + * @return The bytes for effectiveGroup. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getEffectiveGroupBytes() { + java.lang.Object ref = effectiveGroup_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + effectiveGroup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FS_UID_FIELD_NUMBER = 9; + private int fsUid_ = 0; + /** + * uint32 fs_uid = 9; + * @return The fsUid. + */ + @java.lang.Override + public int getFsUid() { + return fsUid_; + } + + public static final int FS_GID_FIELD_NUMBER = 10; + private int fsGid_ = 0; + /** + * uint32 fs_gid = 10; + * @return The fsGid. + */ + @java.lang.Override + public int getFsGid() { + return fsGid_; + } + + public static final int FS_USER_FIELD_NUMBER = 11; + @SuppressWarnings("serial") + private volatile java.lang.Object fsUser_ = ""; + /** + * string fs_user = 11; + * @return The fsUser. + */ + @java.lang.Override + public java.lang.String getFsUser() { + java.lang.Object ref = fsUser_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fsUser_ = s; + return s; + } + } + /** + * string fs_user = 11; + * @return The bytes for fsUser. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getFsUserBytes() { + java.lang.Object ref = fsUser_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + fsUser_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FS_GROUP_FIELD_NUMBER = 12; + @SuppressWarnings("serial") + private volatile java.lang.Object fsGroup_ = ""; + /** + * string fs_group = 12; + * @return The fsGroup. + */ + @java.lang.Override + public java.lang.String getFsGroup() { + java.lang.Object ref = fsGroup_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fsGroup_ = s; + return s; + } + } + /** + * string fs_group = 12; + * @return The bytes for fsGroup. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getFsGroupBytes() { + java.lang.Object ref = fsGroup_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + fsGroup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CAP_EFFECTIVE_FIELD_NUMBER = 13; + private long capEffective_ = 0L; + /** + * uint64 cap_effective = 13; + * @return The capEffective. + */ + @java.lang.Override + public long getCapEffective() { + return capEffective_; + } + + public static final int CAP_PERMITTED_FIELD_NUMBER = 14; + private long capPermitted_ = 0L; + /** + * uint64 cap_permitted = 14; + * @return The capPermitted. + */ + @java.lang.Override + public long getCapPermitted() { + return capPermitted_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (uid_ != 0) { + output.writeUInt32(1, uid_); + } + if (gid_ != 0) { + output.writeUInt32(2, gid_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(user_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, user_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(group_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, group_); + } + if (effectiveUid_ != 0) { + output.writeUInt32(5, effectiveUid_); + } + if (effectiveGid_ != 0) { + output.writeUInt32(6, effectiveGid_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(effectiveUser_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, effectiveUser_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(effectiveGroup_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, effectiveGroup_); + } + if (fsUid_ != 0) { + output.writeUInt32(9, fsUid_); + } + if (fsGid_ != 0) { + output.writeUInt32(10, fsGid_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fsUser_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, fsUser_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fsGroup_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, fsGroup_); + } + if (capEffective_ != 0L) { + output.writeUInt64(13, capEffective_); + } + if (capPermitted_ != 0L) { + output.writeUInt64(14, capPermitted_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (uid_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, uid_); + } + if (gid_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, gid_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(user_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, user_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(group_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, group_); + } + if (effectiveUid_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(5, effectiveUid_); + } + if (effectiveGid_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(6, effectiveGid_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(effectiveUser_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, effectiveUser_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(effectiveGroup_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, effectiveGroup_); + } + if (fsUid_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(9, fsUid_); + } + if (fsGid_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(10, fsGid_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fsUser_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, fsUser_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fsGroup_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, fsGroup_); + } + if (capEffective_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(13, capEffective_); + } + if (capPermitted_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(14, capPermitted_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.dd.cws.adv1.pb.SecDumpProto.Credentials)) { + return super.equals(obj); + } + com.dd.cws.adv1.pb.SecDumpProto.Credentials other = (com.dd.cws.adv1.pb.SecDumpProto.Credentials) obj; + + if (getUid() + != other.getUid()) return false; + if (getGid() + != other.getGid()) return false; + if (!getUser() + .equals(other.getUser())) return false; + if (!getGroup() + .equals(other.getGroup())) return false; + if (getEffectiveUid() + != other.getEffectiveUid()) return false; + if (getEffectiveGid() + != other.getEffectiveGid()) return false; + if (!getEffectiveUser() + .equals(other.getEffectiveUser())) return false; + if (!getEffectiveGroup() + .equals(other.getEffectiveGroup())) return false; + if (getFsUid() + != other.getFsUid()) return false; + if (getFsGid() + != other.getFsGid()) return false; + if (!getFsUser() + .equals(other.getFsUser())) return false; + if (!getFsGroup() + .equals(other.getFsGroup())) return false; + if (getCapEffective() + != other.getCapEffective()) return false; + if (getCapPermitted() + != other.getCapPermitted()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + UID_FIELD_NUMBER; + hash = (53 * hash) + getUid(); + hash = (37 * hash) + GID_FIELD_NUMBER; + hash = (53 * hash) + getGid(); + hash = (37 * hash) + USER_FIELD_NUMBER; + hash = (53 * hash) + getUser().hashCode(); + hash = (37 * hash) + GROUP_FIELD_NUMBER; + hash = (53 * hash) + getGroup().hashCode(); + hash = (37 * hash) + EFFECTIVE_UID_FIELD_NUMBER; + hash = (53 * hash) + getEffectiveUid(); + hash = (37 * hash) + EFFECTIVE_GID_FIELD_NUMBER; + hash = (53 * hash) + getEffectiveGid(); + hash = (37 * hash) + EFFECTIVE_USER_FIELD_NUMBER; + hash = (53 * hash) + getEffectiveUser().hashCode(); + hash = (37 * hash) + EFFECTIVE_GROUP_FIELD_NUMBER; + hash = (53 * hash) + getEffectiveGroup().hashCode(); + hash = (37 * hash) + FS_UID_FIELD_NUMBER; + hash = (53 * hash) + getFsUid(); + hash = (37 * hash) + FS_GID_FIELD_NUMBER; + hash = (53 * hash) + getFsGid(); + hash = (37 * hash) + FS_USER_FIELD_NUMBER; + hash = (53 * hash) + getFsUser().hashCode(); + hash = (37 * hash) + FS_GROUP_FIELD_NUMBER; + hash = (53 * hash) + getFsGroup().hashCode(); + hash = (37 * hash) + CAP_EFFECTIVE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getCapEffective()); + hash = (37 * hash) + CAP_PERMITTED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getCapPermitted()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.dd.cws.adv1.pb.SecDumpProto.Credentials parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.dd.cws.adv1.pb.SecDumpProto.Credentials parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.dd.cws.adv1.pb.SecDumpProto.Credentials parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.dd.cws.adv1.pb.SecDumpProto.Credentials parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.dd.cws.adv1.pb.SecDumpProto.Credentials parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.dd.cws.adv1.pb.SecDumpProto.Credentials parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.dd.cws.adv1.pb.SecDumpProto.Credentials parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.dd.cws.adv1.pb.SecDumpProto.Credentials parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.dd.cws.adv1.pb.SecDumpProto.Credentials parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.dd.cws.adv1.pb.SecDumpProto.Credentials parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.dd.cws.adv1.pb.SecDumpProto.Credentials parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.dd.cws.adv1.pb.SecDumpProto.Credentials parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.dd.cws.adv1.pb.SecDumpProto.Credentials prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code datadog.cws.dumpsv1.Credentials} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datadog.cws.dumpsv1.Credentials) + com.dd.cws.adv1.pb.SecDumpProto.CredentialsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_Credentials_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_Credentials_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.dd.cws.adv1.pb.SecDumpProto.Credentials.class, com.dd.cws.adv1.pb.SecDumpProto.Credentials.Builder.class); + } + + // Construct using com.dd.cws.adv1.pb.SecDumpProto.Credentials.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + uid_ = 0; + gid_ = 0; + user_ = ""; + group_ = ""; + effectiveUid_ = 0; + effectiveGid_ = 0; + effectiveUser_ = ""; + effectiveGroup_ = ""; + fsUid_ = 0; + fsGid_ = 0; + fsUser_ = ""; + fsGroup_ = ""; + capEffective_ = 0L; + capPermitted_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_Credentials_descriptor; + } + + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.Credentials getDefaultInstanceForType() { + return com.dd.cws.adv1.pb.SecDumpProto.Credentials.getDefaultInstance(); + } + + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.Credentials build() { + com.dd.cws.adv1.pb.SecDumpProto.Credentials result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.Credentials buildPartial() { + com.dd.cws.adv1.pb.SecDumpProto.Credentials result = new com.dd.cws.adv1.pb.SecDumpProto.Credentials(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.dd.cws.adv1.pb.SecDumpProto.Credentials result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.uid_ = uid_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.gid_ = gid_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.user_ = user_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.group_ = group_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.effectiveUid_ = effectiveUid_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.effectiveGid_ = effectiveGid_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.effectiveUser_ = effectiveUser_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.effectiveGroup_ = effectiveGroup_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.fsUid_ = fsUid_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.fsGid_ = fsGid_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.fsUser_ = fsUser_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.fsGroup_ = fsGroup_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.capEffective_ = capEffective_; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.capPermitted_ = capPermitted_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.dd.cws.adv1.pb.SecDumpProto.Credentials) { + return mergeFrom((com.dd.cws.adv1.pb.SecDumpProto.Credentials)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.dd.cws.adv1.pb.SecDumpProto.Credentials other) { + if (other == com.dd.cws.adv1.pb.SecDumpProto.Credentials.getDefaultInstance()) return this; + if (other.getUid() != 0) { + setUid(other.getUid()); + } + if (other.getGid() != 0) { + setGid(other.getGid()); + } + if (!other.getUser().isEmpty()) { + user_ = other.user_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getGroup().isEmpty()) { + group_ = other.group_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.getEffectiveUid() != 0) { + setEffectiveUid(other.getEffectiveUid()); + } + if (other.getEffectiveGid() != 0) { + setEffectiveGid(other.getEffectiveGid()); + } + if (!other.getEffectiveUser().isEmpty()) { + effectiveUser_ = other.effectiveUser_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (!other.getEffectiveGroup().isEmpty()) { + effectiveGroup_ = other.effectiveGroup_; + bitField0_ |= 0x00000080; + onChanged(); + } + if (other.getFsUid() != 0) { + setFsUid(other.getFsUid()); + } + if (other.getFsGid() != 0) { + setFsGid(other.getFsGid()); + } + if (!other.getFsUser().isEmpty()) { + fsUser_ = other.fsUser_; + bitField0_ |= 0x00000400; + onChanged(); + } + if (!other.getFsGroup().isEmpty()) { + fsGroup_ = other.fsGroup_; + bitField0_ |= 0x00000800; + onChanged(); + } + if (other.getCapEffective() != 0L) { + setCapEffective(other.getCapEffective()); + } + if (other.getCapPermitted() != 0L) { + setCapPermitted(other.getCapPermitted()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + uid_ = input.readUInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + gid_ = input.readUInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + user_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + group_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: { + effectiveUid_ = input.readUInt32(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: { + effectiveGid_ = input.readUInt32(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 58: { + effectiveUser_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: { + effectiveGroup_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 72: { + fsUid_ = input.readUInt32(); + bitField0_ |= 0x00000100; + break; + } // case 72 + case 80: { + fsGid_ = input.readUInt32(); + bitField0_ |= 0x00000200; + break; + } // case 80 + case 90: { + fsUser_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000400; + break; + } // case 90 + case 98: { + fsGroup_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000800; + break; + } // case 98 + case 104: { + capEffective_ = input.readUInt64(); + bitField0_ |= 0x00001000; + break; + } // case 104 + case 112: { + capPermitted_ = input.readUInt64(); + bitField0_ |= 0x00002000; + break; + } // case 112 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int uid_ ; + /** + * uint32 uid = 1; + * @return The uid. + */ + @java.lang.Override + public int getUid() { + return uid_; + } + /** + * uint32 uid = 1; + * @param value The uid to set. + * @return This builder for chaining. + */ + public Builder setUid(int value) { + + uid_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * uint32 uid = 1; + * @return This builder for chaining. + */ + public Builder clearUid() { + bitField0_ = (bitField0_ & ~0x00000001); + uid_ = 0; + onChanged(); + return this; + } + + private int gid_ ; + /** + * uint32 gid = 2; + * @return The gid. + */ + @java.lang.Override + public int getGid() { + return gid_; + } + /** + * uint32 gid = 2; + * @param value The gid to set. + * @return This builder for chaining. + */ + public Builder setGid(int value) { + + gid_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * uint32 gid = 2; + * @return This builder for chaining. + */ + public Builder clearGid() { + bitField0_ = (bitField0_ & ~0x00000002); + gid_ = 0; + onChanged(); + return this; + } + + private java.lang.Object user_ = ""; + /** + * string user = 3; + * @return The user. + */ + public java.lang.String getUser() { + java.lang.Object ref = user_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + user_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string user = 3; + * @return The bytes for user. + */ + public com.google.protobuf.ByteString + getUserBytes() { + java.lang.Object ref = user_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + user_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string user = 3; + * @param value The user to set. + * @return This builder for chaining. + */ + public Builder setUser( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + user_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * string user = 3; + * @return This builder for chaining. + */ + public Builder clearUser() { + user_ = getDefaultInstance().getUser(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * string user = 3; + * @param value The bytes for user to set. + * @return This builder for chaining. + */ + public Builder setUserBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + user_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object group_ = ""; + /** + * string group = 4; + * @return The group. + */ + public java.lang.String getGroup() { + java.lang.Object ref = group_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + group_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string group = 4; + * @return The bytes for group. + */ + public com.google.protobuf.ByteString + getGroupBytes() { + java.lang.Object ref = group_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + group_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string group = 4; + * @param value The group to set. + * @return This builder for chaining. + */ + public Builder setGroup( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + group_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * string group = 4; + * @return This builder for chaining. + */ + public Builder clearGroup() { + group_ = getDefaultInstance().getGroup(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * string group = 4; + * @param value The bytes for group to set. + * @return This builder for chaining. + */ + public Builder setGroupBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + group_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private int effectiveUid_ ; + /** + * uint32 effective_uid = 5; + * @return The effectiveUid. + */ + @java.lang.Override + public int getEffectiveUid() { + return effectiveUid_; + } + /** + * uint32 effective_uid = 5; + * @param value The effectiveUid to set. + * @return This builder for chaining. + */ + public Builder setEffectiveUid(int value) { + + effectiveUid_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * uint32 effective_uid = 5; + * @return This builder for chaining. + */ + public Builder clearEffectiveUid() { + bitField0_ = (bitField0_ & ~0x00000010); + effectiveUid_ = 0; + onChanged(); + return this; + } + + private int effectiveGid_ ; + /** + * uint32 effective_gid = 6; + * @return The effectiveGid. + */ + @java.lang.Override + public int getEffectiveGid() { + return effectiveGid_; + } + /** + * uint32 effective_gid = 6; + * @param value The effectiveGid to set. + * @return This builder for chaining. + */ + public Builder setEffectiveGid(int value) { + + effectiveGid_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * uint32 effective_gid = 6; + * @return This builder for chaining. + */ + public Builder clearEffectiveGid() { + bitField0_ = (bitField0_ & ~0x00000020); + effectiveGid_ = 0; + onChanged(); + return this; + } + + private java.lang.Object effectiveUser_ = ""; + /** + * string effective_user = 7; + * @return The effectiveUser. + */ + public java.lang.String getEffectiveUser() { + java.lang.Object ref = effectiveUser_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + effectiveUser_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string effective_user = 7; + * @return The bytes for effectiveUser. + */ + public com.google.protobuf.ByteString + getEffectiveUserBytes() { + java.lang.Object ref = effectiveUser_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + effectiveUser_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string effective_user = 7; + * @param value The effectiveUser to set. + * @return This builder for chaining. + */ + public Builder setEffectiveUser( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + effectiveUser_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * string effective_user = 7; + * @return This builder for chaining. + */ + public Builder clearEffectiveUser() { + effectiveUser_ = getDefaultInstance().getEffectiveUser(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + * string effective_user = 7; + * @param value The bytes for effectiveUser to set. + * @return This builder for chaining. + */ + public Builder setEffectiveUserBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + effectiveUser_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private java.lang.Object effectiveGroup_ = ""; + /** + * string effective_group = 8; + * @return The effectiveGroup. + */ + public java.lang.String getEffectiveGroup() { + java.lang.Object ref = effectiveGroup_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + effectiveGroup_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string effective_group = 8; + * @return The bytes for effectiveGroup. + */ + public com.google.protobuf.ByteString + getEffectiveGroupBytes() { + java.lang.Object ref = effectiveGroup_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + effectiveGroup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string effective_group = 8; + * @param value The effectiveGroup to set. + * @return This builder for chaining. + */ + public Builder setEffectiveGroup( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + effectiveGroup_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * string effective_group = 8; + * @return This builder for chaining. + */ + public Builder clearEffectiveGroup() { + effectiveGroup_ = getDefaultInstance().getEffectiveGroup(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + /** + * string effective_group = 8; + * @param value The bytes for effectiveGroup to set. + * @return This builder for chaining. + */ + public Builder setEffectiveGroupBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + effectiveGroup_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private int fsUid_ ; + /** + * uint32 fs_uid = 9; + * @return The fsUid. + */ + @java.lang.Override + public int getFsUid() { + return fsUid_; + } + /** + * uint32 fs_uid = 9; + * @param value The fsUid to set. + * @return This builder for chaining. + */ + public Builder setFsUid(int value) { + + fsUid_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * uint32 fs_uid = 9; + * @return This builder for chaining. + */ + public Builder clearFsUid() { + bitField0_ = (bitField0_ & ~0x00000100); + fsUid_ = 0; + onChanged(); + return this; + } + + private int fsGid_ ; + /** + * uint32 fs_gid = 10; + * @return The fsGid. + */ + @java.lang.Override + public int getFsGid() { + return fsGid_; + } + /** + * uint32 fs_gid = 10; + * @param value The fsGid to set. + * @return This builder for chaining. + */ + public Builder setFsGid(int value) { + + fsGid_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * uint32 fs_gid = 10; + * @return This builder for chaining. + */ + public Builder clearFsGid() { + bitField0_ = (bitField0_ & ~0x00000200); + fsGid_ = 0; + onChanged(); + return this; + } + + private java.lang.Object fsUser_ = ""; + /** + * string fs_user = 11; + * @return The fsUser. + */ + public java.lang.String getFsUser() { + java.lang.Object ref = fsUser_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fsUser_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string fs_user = 11; + * @return The bytes for fsUser. + */ + public com.google.protobuf.ByteString + getFsUserBytes() { + java.lang.Object ref = fsUser_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + fsUser_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string fs_user = 11; + * @param value The fsUser to set. + * @return This builder for chaining. + */ + public Builder setFsUser( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + fsUser_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * string fs_user = 11; + * @return This builder for chaining. + */ + public Builder clearFsUser() { + fsUser_ = getDefaultInstance().getFsUser(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + return this; + } + /** + * string fs_user = 11; + * @param value The bytes for fsUser to set. + * @return This builder for chaining. + */ + public Builder setFsUserBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + fsUser_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + private java.lang.Object fsGroup_ = ""; + /** + * string fs_group = 12; + * @return The fsGroup. + */ + public java.lang.String getFsGroup() { + java.lang.Object ref = fsGroup_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fsGroup_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string fs_group = 12; + * @return The bytes for fsGroup. + */ + public com.google.protobuf.ByteString + getFsGroupBytes() { + java.lang.Object ref = fsGroup_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + fsGroup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string fs_group = 12; + * @param value The fsGroup to set. + * @return This builder for chaining. + */ + public Builder setFsGroup( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + fsGroup_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + * string fs_group = 12; + * @return This builder for chaining. + */ + public Builder clearFsGroup() { + fsGroup_ = getDefaultInstance().getFsGroup(); + bitField0_ = (bitField0_ & ~0x00000800); + onChanged(); + return this; + } + /** + * string fs_group = 12; + * @param value The bytes for fsGroup to set. + * @return This builder for chaining. + */ + public Builder setFsGroupBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + fsGroup_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + private long capEffective_ ; + /** + * uint64 cap_effective = 13; + * @return The capEffective. + */ + @java.lang.Override + public long getCapEffective() { + return capEffective_; + } + /** + * uint64 cap_effective = 13; + * @param value The capEffective to set. + * @return This builder for chaining. + */ + public Builder setCapEffective(long value) { + + capEffective_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + * uint64 cap_effective = 13; + * @return This builder for chaining. + */ + public Builder clearCapEffective() { + bitField0_ = (bitField0_ & ~0x00001000); + capEffective_ = 0L; + onChanged(); + return this; + } + + private long capPermitted_ ; + /** + * uint64 cap_permitted = 14; + * @return The capPermitted. + */ + @java.lang.Override + public long getCapPermitted() { + return capPermitted_; + } + /** + * uint64 cap_permitted = 14; + * @param value The capPermitted to set. + * @return This builder for chaining. + */ + public Builder setCapPermitted(long value) { + + capPermitted_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + /** + * uint64 cap_permitted = 14; + * @return This builder for chaining. + */ + public Builder clearCapPermitted() { + bitField0_ = (bitField0_ & ~0x00002000); + capPermitted_ = 0L; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:datadog.cws.dumpsv1.Credentials) + } + + // @@protoc_insertion_point(class_scope:datadog.cws.dumpsv1.Credentials) + private static final com.dd.cws.adv1.pb.SecDumpProto.Credentials DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.dd.cws.adv1.pb.SecDumpProto.Credentials(); + } + + public static com.dd.cws.adv1.pb.SecDumpProto.Credentials getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Credentials parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.Credentials getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SocketNodeOrBuilder extends + // @@protoc_insertion_point(interface_extends:datadog.cws.dumpsv1.SocketNode) + com.google.protobuf.MessageOrBuilder { + + /** + * string family = 1; + * @return The family. + */ + java.lang.String getFamily(); + /** + * string family = 1; + * @return The bytes for family. + */ + com.google.protobuf.ByteString + getFamilyBytes(); + + /** + * repeated .datadog.cws.dumpsv1.BindNode bind = 2; + */ + java.util.List + getBindList(); + /** + * repeated .datadog.cws.dumpsv1.BindNode bind = 2; + */ + com.dd.cws.adv1.pb.SecDumpProto.BindNode getBind(int index); + /** + * repeated .datadog.cws.dumpsv1.BindNode bind = 2; + */ + int getBindCount(); + /** + * repeated .datadog.cws.dumpsv1.BindNode bind = 2; + */ + java.util.List + getBindOrBuilderList(); + /** + * repeated .datadog.cws.dumpsv1.BindNode bind = 2; + */ + com.dd.cws.adv1.pb.SecDumpProto.BindNodeOrBuilder getBindOrBuilder( + int index); + } + /** + * Protobuf type {@code datadog.cws.dumpsv1.SocketNode} + */ + public static final class SocketNode extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datadog.cws.dumpsv1.SocketNode) + SocketNodeOrBuilder { + private static final long serialVersionUID = 0L; + // Use SocketNode.newBuilder() to construct. + private SocketNode(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SocketNode() { + family_ = ""; + bind_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SocketNode(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_SocketNode_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_SocketNode_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.dd.cws.adv1.pb.SecDumpProto.SocketNode.class, com.dd.cws.adv1.pb.SecDumpProto.SocketNode.Builder.class); + } + + public static final int FAMILY_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object family_ = ""; + /** + * string family = 1; + * @return The family. + */ + @java.lang.Override + public java.lang.String getFamily() { + java.lang.Object ref = family_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + family_ = s; + return s; + } + } + /** + * string family = 1; + * @return The bytes for family. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getFamilyBytes() { + java.lang.Object ref = family_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + family_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BIND_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private java.util.List bind_; + /** + * repeated .datadog.cws.dumpsv1.BindNode bind = 2; + */ + @java.lang.Override + public java.util.List getBindList() { + return bind_; + } + /** + * repeated .datadog.cws.dumpsv1.BindNode bind = 2; + */ + @java.lang.Override + public java.util.List + getBindOrBuilderList() { + return bind_; + } + /** + * repeated .datadog.cws.dumpsv1.BindNode bind = 2; + */ + @java.lang.Override + public int getBindCount() { + return bind_.size(); + } + /** + * repeated .datadog.cws.dumpsv1.BindNode bind = 2; + */ + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.BindNode getBind(int index) { + return bind_.get(index); + } + /** + * repeated .datadog.cws.dumpsv1.BindNode bind = 2; + */ + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.BindNodeOrBuilder getBindOrBuilder( + int index) { + return bind_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(family_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, family_); + } + for (int i = 0; i < bind_.size(); i++) { + output.writeMessage(2, bind_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(family_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, family_); + } + for (int i = 0; i < bind_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, bind_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.dd.cws.adv1.pb.SecDumpProto.SocketNode)) { + return super.equals(obj); + } + com.dd.cws.adv1.pb.SecDumpProto.SocketNode other = (com.dd.cws.adv1.pb.SecDumpProto.SocketNode) obj; + + if (!getFamily() + .equals(other.getFamily())) return false; + if (!getBindList() + .equals(other.getBindList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + FAMILY_FIELD_NUMBER; + hash = (53 * hash) + getFamily().hashCode(); + if (getBindCount() > 0) { + hash = (37 * hash) + BIND_FIELD_NUMBER; + hash = (53 * hash) + getBindList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.dd.cws.adv1.pb.SecDumpProto.SocketNode parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.dd.cws.adv1.pb.SecDumpProto.SocketNode parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.dd.cws.adv1.pb.SecDumpProto.SocketNode parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.dd.cws.adv1.pb.SecDumpProto.SocketNode parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.dd.cws.adv1.pb.SecDumpProto.SocketNode parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.dd.cws.adv1.pb.SecDumpProto.SocketNode parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.dd.cws.adv1.pb.SecDumpProto.SocketNode parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.dd.cws.adv1.pb.SecDumpProto.SocketNode parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.dd.cws.adv1.pb.SecDumpProto.SocketNode parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.dd.cws.adv1.pb.SecDumpProto.SocketNode parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.dd.cws.adv1.pb.SecDumpProto.SocketNode parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.dd.cws.adv1.pb.SecDumpProto.SocketNode parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.dd.cws.adv1.pb.SecDumpProto.SocketNode prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code datadog.cws.dumpsv1.SocketNode} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datadog.cws.dumpsv1.SocketNode) + com.dd.cws.adv1.pb.SecDumpProto.SocketNodeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_SocketNode_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_SocketNode_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.dd.cws.adv1.pb.SecDumpProto.SocketNode.class, com.dd.cws.adv1.pb.SecDumpProto.SocketNode.Builder.class); + } + + // Construct using com.dd.cws.adv1.pb.SecDumpProto.SocketNode.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + family_ = ""; + if (bindBuilder_ == null) { + bind_ = java.util.Collections.emptyList(); + } else { + bind_ = null; + bindBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_SocketNode_descriptor; + } + + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.SocketNode getDefaultInstanceForType() { + return com.dd.cws.adv1.pb.SecDumpProto.SocketNode.getDefaultInstance(); + } + + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.SocketNode build() { + com.dd.cws.adv1.pb.SecDumpProto.SocketNode result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.SocketNode buildPartial() { + com.dd.cws.adv1.pb.SecDumpProto.SocketNode result = new com.dd.cws.adv1.pb.SecDumpProto.SocketNode(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.dd.cws.adv1.pb.SecDumpProto.SocketNode result) { + if (bindBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + bind_ = java.util.Collections.unmodifiableList(bind_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.bind_ = bind_; + } else { + result.bind_ = bindBuilder_.build(); + } + } + + private void buildPartial0(com.dd.cws.adv1.pb.SecDumpProto.SocketNode result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.family_ = family_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.dd.cws.adv1.pb.SecDumpProto.SocketNode) { + return mergeFrom((com.dd.cws.adv1.pb.SecDumpProto.SocketNode)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.dd.cws.adv1.pb.SecDumpProto.SocketNode other) { + if (other == com.dd.cws.adv1.pb.SecDumpProto.SocketNode.getDefaultInstance()) return this; + if (!other.getFamily().isEmpty()) { + family_ = other.family_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (bindBuilder_ == null) { + if (!other.bind_.isEmpty()) { + if (bind_.isEmpty()) { + bind_ = other.bind_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureBindIsMutable(); + bind_.addAll(other.bind_); + } + onChanged(); + } + } else { + if (!other.bind_.isEmpty()) { + if (bindBuilder_.isEmpty()) { + bindBuilder_.dispose(); + bindBuilder_ = null; + bind_ = other.bind_; + bitField0_ = (bitField0_ & ~0x00000002); + bindBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getBindFieldBuilder() : null; + } else { + bindBuilder_.addAllMessages(other.bind_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + family_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + com.dd.cws.adv1.pb.SecDumpProto.BindNode m = + input.readMessage( + com.dd.cws.adv1.pb.SecDumpProto.BindNode.parser(), + extensionRegistry); + if (bindBuilder_ == null) { + ensureBindIsMutable(); + bind_.add(m); + } else { + bindBuilder_.addMessage(m); + } + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object family_ = ""; + /** + * string family = 1; + * @return The family. + */ + public java.lang.String getFamily() { + java.lang.Object ref = family_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + family_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string family = 1; + * @return The bytes for family. + */ + public com.google.protobuf.ByteString + getFamilyBytes() { + java.lang.Object ref = family_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + family_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string family = 1; + * @param value The family to set. + * @return This builder for chaining. + */ + public Builder setFamily( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + family_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string family = 1; + * @return This builder for chaining. + */ + public Builder clearFamily() { + family_ = getDefaultInstance().getFamily(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string family = 1; + * @param value The bytes for family to set. + * @return This builder for chaining. + */ + public Builder setFamilyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + family_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.util.List bind_ = + java.util.Collections.emptyList(); + private void ensureBindIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + bind_ = new java.util.ArrayList(bind_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.dd.cws.adv1.pb.SecDumpProto.BindNode, com.dd.cws.adv1.pb.SecDumpProto.BindNode.Builder, com.dd.cws.adv1.pb.SecDumpProto.BindNodeOrBuilder> bindBuilder_; + + /** + * repeated .datadog.cws.dumpsv1.BindNode bind = 2; + */ + public java.util.List getBindList() { + if (bindBuilder_ == null) { + return java.util.Collections.unmodifiableList(bind_); + } else { + return bindBuilder_.getMessageList(); + } + } + /** + * repeated .datadog.cws.dumpsv1.BindNode bind = 2; + */ + public int getBindCount() { + if (bindBuilder_ == null) { + return bind_.size(); + } else { + return bindBuilder_.getCount(); + } + } + /** + * repeated .datadog.cws.dumpsv1.BindNode bind = 2; + */ + public com.dd.cws.adv1.pb.SecDumpProto.BindNode getBind(int index) { + if (bindBuilder_ == null) { + return bind_.get(index); + } else { + return bindBuilder_.getMessage(index); + } + } + /** + * repeated .datadog.cws.dumpsv1.BindNode bind = 2; + */ + public Builder setBind( + int index, com.dd.cws.adv1.pb.SecDumpProto.BindNode value) { + if (bindBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBindIsMutable(); + bind_.set(index, value); + onChanged(); + } else { + bindBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.BindNode bind = 2; + */ + public Builder setBind( + int index, com.dd.cws.adv1.pb.SecDumpProto.BindNode.Builder builderForValue) { + if (bindBuilder_ == null) { + ensureBindIsMutable(); + bind_.set(index, builderForValue.build()); + onChanged(); + } else { + bindBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.BindNode bind = 2; + */ + public Builder addBind(com.dd.cws.adv1.pb.SecDumpProto.BindNode value) { + if (bindBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBindIsMutable(); + bind_.add(value); + onChanged(); + } else { + bindBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.BindNode bind = 2; + */ + public Builder addBind( + int index, com.dd.cws.adv1.pb.SecDumpProto.BindNode value) { + if (bindBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBindIsMutable(); + bind_.add(index, value); + onChanged(); + } else { + bindBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.BindNode bind = 2; + */ + public Builder addBind( + com.dd.cws.adv1.pb.SecDumpProto.BindNode.Builder builderForValue) { + if (bindBuilder_ == null) { + ensureBindIsMutable(); + bind_.add(builderForValue.build()); + onChanged(); + } else { + bindBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.BindNode bind = 2; + */ + public Builder addBind( + int index, com.dd.cws.adv1.pb.SecDumpProto.BindNode.Builder builderForValue) { + if (bindBuilder_ == null) { + ensureBindIsMutable(); + bind_.add(index, builderForValue.build()); + onChanged(); + } else { + bindBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.BindNode bind = 2; + */ + public Builder addAllBind( + java.lang.Iterable values) { + if (bindBuilder_ == null) { + ensureBindIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, bind_); + onChanged(); + } else { + bindBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.BindNode bind = 2; + */ + public Builder clearBind() { + if (bindBuilder_ == null) { + bind_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + bindBuilder_.clear(); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.BindNode bind = 2; + */ + public Builder removeBind(int index) { + if (bindBuilder_ == null) { + ensureBindIsMutable(); + bind_.remove(index); + onChanged(); + } else { + bindBuilder_.remove(index); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.BindNode bind = 2; + */ + public com.dd.cws.adv1.pb.SecDumpProto.BindNode.Builder getBindBuilder( + int index) { + return getBindFieldBuilder().getBuilder(index); + } + /** + * repeated .datadog.cws.dumpsv1.BindNode bind = 2; + */ + public com.dd.cws.adv1.pb.SecDumpProto.BindNodeOrBuilder getBindOrBuilder( + int index) { + if (bindBuilder_ == null) { + return bind_.get(index); } else { + return bindBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .datadog.cws.dumpsv1.BindNode bind = 2; + */ + public java.util.List + getBindOrBuilderList() { + if (bindBuilder_ != null) { + return bindBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(bind_); + } + } + /** + * repeated .datadog.cws.dumpsv1.BindNode bind = 2; + */ + public com.dd.cws.adv1.pb.SecDumpProto.BindNode.Builder addBindBuilder() { + return getBindFieldBuilder().addBuilder( + com.dd.cws.adv1.pb.SecDumpProto.BindNode.getDefaultInstance()); + } + /** + * repeated .datadog.cws.dumpsv1.BindNode bind = 2; + */ + public com.dd.cws.adv1.pb.SecDumpProto.BindNode.Builder addBindBuilder( + int index) { + return getBindFieldBuilder().addBuilder( + index, com.dd.cws.adv1.pb.SecDumpProto.BindNode.getDefaultInstance()); + } + /** + * repeated .datadog.cws.dumpsv1.BindNode bind = 2; + */ + public java.util.List + getBindBuilderList() { + return getBindFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.dd.cws.adv1.pb.SecDumpProto.BindNode, com.dd.cws.adv1.pb.SecDumpProto.BindNode.Builder, com.dd.cws.adv1.pb.SecDumpProto.BindNodeOrBuilder> + getBindFieldBuilder() { + if (bindBuilder_ == null) { + bindBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.dd.cws.adv1.pb.SecDumpProto.BindNode, com.dd.cws.adv1.pb.SecDumpProto.BindNode.Builder, com.dd.cws.adv1.pb.SecDumpProto.BindNodeOrBuilder>( + bind_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + bind_ = null; + } + return bindBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:datadog.cws.dumpsv1.SocketNode) + } + + // @@protoc_insertion_point(class_scope:datadog.cws.dumpsv1.SocketNode) + private static final com.dd.cws.adv1.pb.SecDumpProto.SocketNode DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.dd.cws.adv1.pb.SecDumpProto.SocketNode(); + } + + public static com.dd.cws.adv1.pb.SecDumpProto.SocketNode getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SocketNode parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.SocketNode getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BindNodeOrBuilder extends + // @@protoc_insertion_point(interface_extends:datadog.cws.dumpsv1.BindNode) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 3; + */ + java.util.List + getMatchedRulesList(); + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 3; + */ + com.dd.cws.adv1.pb.SecDumpProto.MatchedRule getMatchedRules(int index); + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 3; + */ + int getMatchedRulesCount(); + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 3; + */ + java.util.List + getMatchedRulesOrBuilderList(); + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 3; + */ + com.dd.cws.adv1.pb.SecDumpProto.MatchedRuleOrBuilder getMatchedRulesOrBuilder( + int index); + + /** + * uint32 port = 1; + * @return The port. + */ + int getPort(); + + /** + * string ip = 2; + * @return The ip. + */ + java.lang.String getIp(); + /** + * string ip = 2; + * @return The bytes for ip. + */ + com.google.protobuf.ByteString + getIpBytes(); + } + /** + * Protobuf type {@code datadog.cws.dumpsv1.BindNode} + */ + public static final class BindNode extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datadog.cws.dumpsv1.BindNode) + BindNodeOrBuilder { + private static final long serialVersionUID = 0L; + // Use BindNode.newBuilder() to construct. + private BindNode(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BindNode() { + matchedRules_ = java.util.Collections.emptyList(); + ip_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new BindNode(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_BindNode_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_BindNode_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.dd.cws.adv1.pb.SecDumpProto.BindNode.class, com.dd.cws.adv1.pb.SecDumpProto.BindNode.Builder.class); + } + + public static final int MATCHED_RULES_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private java.util.List matchedRules_; + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 3; + */ + @java.lang.Override + public java.util.List getMatchedRulesList() { + return matchedRules_; + } + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 3; + */ + @java.lang.Override + public java.util.List + getMatchedRulesOrBuilderList() { + return matchedRules_; + } + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 3; + */ + @java.lang.Override + public int getMatchedRulesCount() { + return matchedRules_.size(); + } + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 3; + */ + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.MatchedRule getMatchedRules(int index) { + return matchedRules_.get(index); + } + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 3; + */ + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.MatchedRuleOrBuilder getMatchedRulesOrBuilder( + int index) { + return matchedRules_.get(index); + } + + public static final int PORT_FIELD_NUMBER = 1; + private int port_ = 0; + /** + * uint32 port = 1; + * @return The port. + */ + @java.lang.Override + public int getPort() { + return port_; + } + + public static final int IP_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object ip_ = ""; + /** + * string ip = 2; + * @return The ip. + */ + @java.lang.Override + public java.lang.String getIp() { + java.lang.Object ref = ip_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ip_ = s; + return s; + } + } + /** + * string ip = 2; + * @return The bytes for ip. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getIpBytes() { + java.lang.Object ref = ip_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + ip_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (port_ != 0) { + output.writeUInt32(1, port_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ip_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, ip_); + } + for (int i = 0; i < matchedRules_.size(); i++) { + output.writeMessage(3, matchedRules_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (port_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, port_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ip_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, ip_); + } + for (int i = 0; i < matchedRules_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, matchedRules_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.dd.cws.adv1.pb.SecDumpProto.BindNode)) { + return super.equals(obj); + } + com.dd.cws.adv1.pb.SecDumpProto.BindNode other = (com.dd.cws.adv1.pb.SecDumpProto.BindNode) obj; + + if (!getMatchedRulesList() + .equals(other.getMatchedRulesList())) return false; + if (getPort() + != other.getPort()) return false; + if (!getIp() + .equals(other.getIp())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getMatchedRulesCount() > 0) { + hash = (37 * hash) + MATCHED_RULES_FIELD_NUMBER; + hash = (53 * hash) + getMatchedRulesList().hashCode(); + } + hash = (37 * hash) + PORT_FIELD_NUMBER; + hash = (53 * hash) + getPort(); + hash = (37 * hash) + IP_FIELD_NUMBER; + hash = (53 * hash) + getIp().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.dd.cws.adv1.pb.SecDumpProto.BindNode parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.dd.cws.adv1.pb.SecDumpProto.BindNode parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.dd.cws.adv1.pb.SecDumpProto.BindNode parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.dd.cws.adv1.pb.SecDumpProto.BindNode parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.dd.cws.adv1.pb.SecDumpProto.BindNode parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.dd.cws.adv1.pb.SecDumpProto.BindNode parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.dd.cws.adv1.pb.SecDumpProto.BindNode parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.dd.cws.adv1.pb.SecDumpProto.BindNode parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.dd.cws.adv1.pb.SecDumpProto.BindNode parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.dd.cws.adv1.pb.SecDumpProto.BindNode parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.dd.cws.adv1.pb.SecDumpProto.BindNode parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.dd.cws.adv1.pb.SecDumpProto.BindNode parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.dd.cws.adv1.pb.SecDumpProto.BindNode prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code datadog.cws.dumpsv1.BindNode} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datadog.cws.dumpsv1.BindNode) + com.dd.cws.adv1.pb.SecDumpProto.BindNodeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_BindNode_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_BindNode_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.dd.cws.adv1.pb.SecDumpProto.BindNode.class, com.dd.cws.adv1.pb.SecDumpProto.BindNode.Builder.class); + } + + // Construct using com.dd.cws.adv1.pb.SecDumpProto.BindNode.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (matchedRulesBuilder_ == null) { + matchedRules_ = java.util.Collections.emptyList(); + } else { + matchedRules_ = null; + matchedRulesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + port_ = 0; + ip_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_BindNode_descriptor; + } + + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.BindNode getDefaultInstanceForType() { + return com.dd.cws.adv1.pb.SecDumpProto.BindNode.getDefaultInstance(); + } + + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.BindNode build() { + com.dd.cws.adv1.pb.SecDumpProto.BindNode result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.BindNode buildPartial() { + com.dd.cws.adv1.pb.SecDumpProto.BindNode result = new com.dd.cws.adv1.pb.SecDumpProto.BindNode(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.dd.cws.adv1.pb.SecDumpProto.BindNode result) { + if (matchedRulesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + matchedRules_ = java.util.Collections.unmodifiableList(matchedRules_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.matchedRules_ = matchedRules_; + } else { + result.matchedRules_ = matchedRulesBuilder_.build(); + } + } + + private void buildPartial0(com.dd.cws.adv1.pb.SecDumpProto.BindNode result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.port_ = port_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.ip_ = ip_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.dd.cws.adv1.pb.SecDumpProto.BindNode) { + return mergeFrom((com.dd.cws.adv1.pb.SecDumpProto.BindNode)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.dd.cws.adv1.pb.SecDumpProto.BindNode other) { + if (other == com.dd.cws.adv1.pb.SecDumpProto.BindNode.getDefaultInstance()) return this; + if (matchedRulesBuilder_ == null) { + if (!other.matchedRules_.isEmpty()) { + if (matchedRules_.isEmpty()) { + matchedRules_ = other.matchedRules_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureMatchedRulesIsMutable(); + matchedRules_.addAll(other.matchedRules_); + } + onChanged(); + } + } else { + if (!other.matchedRules_.isEmpty()) { + if (matchedRulesBuilder_.isEmpty()) { + matchedRulesBuilder_.dispose(); + matchedRulesBuilder_ = null; + matchedRules_ = other.matchedRules_; + bitField0_ = (bitField0_ & ~0x00000001); + matchedRulesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getMatchedRulesFieldBuilder() : null; + } else { + matchedRulesBuilder_.addAllMessages(other.matchedRules_); + } + } + } + if (other.getPort() != 0) { + setPort(other.getPort()); + } + if (!other.getIp().isEmpty()) { + ip_ = other.ip_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + port_ = input.readUInt32(); + bitField0_ |= 0x00000002; + break; + } // case 8 + case 18: { + ip_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 18 + case 26: { + com.dd.cws.adv1.pb.SecDumpProto.MatchedRule m = + input.readMessage( + com.dd.cws.adv1.pb.SecDumpProto.MatchedRule.parser(), + extensionRegistry); + if (matchedRulesBuilder_ == null) { + ensureMatchedRulesIsMutable(); + matchedRules_.add(m); + } else { + matchedRulesBuilder_.addMessage(m); + } + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List matchedRules_ = + java.util.Collections.emptyList(); + private void ensureMatchedRulesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + matchedRules_ = new java.util.ArrayList(matchedRules_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.dd.cws.adv1.pb.SecDumpProto.MatchedRule, com.dd.cws.adv1.pb.SecDumpProto.MatchedRule.Builder, com.dd.cws.adv1.pb.SecDumpProto.MatchedRuleOrBuilder> matchedRulesBuilder_; + + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 3; + */ + public java.util.List getMatchedRulesList() { + if (matchedRulesBuilder_ == null) { + return java.util.Collections.unmodifiableList(matchedRules_); + } else { + return matchedRulesBuilder_.getMessageList(); + } + } + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 3; + */ + public int getMatchedRulesCount() { + if (matchedRulesBuilder_ == null) { + return matchedRules_.size(); + } else { + return matchedRulesBuilder_.getCount(); + } + } + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 3; + */ + public com.dd.cws.adv1.pb.SecDumpProto.MatchedRule getMatchedRules(int index) { + if (matchedRulesBuilder_ == null) { + return matchedRules_.get(index); + } else { + return matchedRulesBuilder_.getMessage(index); + } + } + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 3; + */ + public Builder setMatchedRules( + int index, com.dd.cws.adv1.pb.SecDumpProto.MatchedRule value) { + if (matchedRulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMatchedRulesIsMutable(); + matchedRules_.set(index, value); + onChanged(); + } else { + matchedRulesBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 3; + */ + public Builder setMatchedRules( + int index, com.dd.cws.adv1.pb.SecDumpProto.MatchedRule.Builder builderForValue) { + if (matchedRulesBuilder_ == null) { + ensureMatchedRulesIsMutable(); + matchedRules_.set(index, builderForValue.build()); + onChanged(); + } else { + matchedRulesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 3; + */ + public Builder addMatchedRules(com.dd.cws.adv1.pb.SecDumpProto.MatchedRule value) { + if (matchedRulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMatchedRulesIsMutable(); + matchedRules_.add(value); + onChanged(); + } else { + matchedRulesBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 3; + */ + public Builder addMatchedRules( + int index, com.dd.cws.adv1.pb.SecDumpProto.MatchedRule value) { + if (matchedRulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMatchedRulesIsMutable(); + matchedRules_.add(index, value); + onChanged(); + } else { + matchedRulesBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 3; + */ + public Builder addMatchedRules( + com.dd.cws.adv1.pb.SecDumpProto.MatchedRule.Builder builderForValue) { + if (matchedRulesBuilder_ == null) { + ensureMatchedRulesIsMutable(); + matchedRules_.add(builderForValue.build()); + onChanged(); + } else { + matchedRulesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 3; + */ + public Builder addMatchedRules( + int index, com.dd.cws.adv1.pb.SecDumpProto.MatchedRule.Builder builderForValue) { + if (matchedRulesBuilder_ == null) { + ensureMatchedRulesIsMutable(); + matchedRules_.add(index, builderForValue.build()); + onChanged(); + } else { + matchedRulesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 3; + */ + public Builder addAllMatchedRules( + java.lang.Iterable values) { + if (matchedRulesBuilder_ == null) { + ensureMatchedRulesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, matchedRules_); + onChanged(); + } else { + matchedRulesBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 3; + */ + public Builder clearMatchedRules() { + if (matchedRulesBuilder_ == null) { + matchedRules_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + matchedRulesBuilder_.clear(); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 3; + */ + public Builder removeMatchedRules(int index) { + if (matchedRulesBuilder_ == null) { + ensureMatchedRulesIsMutable(); + matchedRules_.remove(index); + onChanged(); + } else { + matchedRulesBuilder_.remove(index); + } + return this; + } + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 3; + */ + public com.dd.cws.adv1.pb.SecDumpProto.MatchedRule.Builder getMatchedRulesBuilder( + int index) { + return getMatchedRulesFieldBuilder().getBuilder(index); + } + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 3; + */ + public com.dd.cws.adv1.pb.SecDumpProto.MatchedRuleOrBuilder getMatchedRulesOrBuilder( + int index) { + if (matchedRulesBuilder_ == null) { + return matchedRules_.get(index); } else { + return matchedRulesBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 3; + */ + public java.util.List + getMatchedRulesOrBuilderList() { + if (matchedRulesBuilder_ != null) { + return matchedRulesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(matchedRules_); + } + } + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 3; + */ + public com.dd.cws.adv1.pb.SecDumpProto.MatchedRule.Builder addMatchedRulesBuilder() { + return getMatchedRulesFieldBuilder().addBuilder( + com.dd.cws.adv1.pb.SecDumpProto.MatchedRule.getDefaultInstance()); + } + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 3; + */ + public com.dd.cws.adv1.pb.SecDumpProto.MatchedRule.Builder addMatchedRulesBuilder( + int index) { + return getMatchedRulesFieldBuilder().addBuilder( + index, com.dd.cws.adv1.pb.SecDumpProto.MatchedRule.getDefaultInstance()); + } + /** + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 3; + */ + public java.util.List + getMatchedRulesBuilderList() { + return getMatchedRulesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.dd.cws.adv1.pb.SecDumpProto.MatchedRule, com.dd.cws.adv1.pb.SecDumpProto.MatchedRule.Builder, com.dd.cws.adv1.pb.SecDumpProto.MatchedRuleOrBuilder> + getMatchedRulesFieldBuilder() { + if (matchedRulesBuilder_ == null) { + matchedRulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.dd.cws.adv1.pb.SecDumpProto.MatchedRule, com.dd.cws.adv1.pb.SecDumpProto.MatchedRule.Builder, com.dd.cws.adv1.pb.SecDumpProto.MatchedRuleOrBuilder>( + matchedRules_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + matchedRules_ = null; + } + return matchedRulesBuilder_; + } + + private int port_ ; + /** + * uint32 port = 1; + * @return The port. + */ + @java.lang.Override + public int getPort() { + return port_; + } + /** + * uint32 port = 1; + * @param value The port to set. + * @return This builder for chaining. + */ + public Builder setPort(int value) { + + port_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * uint32 port = 1; + * @return This builder for chaining. + */ + public Builder clearPort() { + bitField0_ = (bitField0_ & ~0x00000002); + port_ = 0; + onChanged(); + return this; + } + + private java.lang.Object ip_ = ""; + /** + * string ip = 2; + * @return The ip. + */ + public java.lang.String getIp() { + java.lang.Object ref = ip_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ip_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string ip = 2; + * @return The bytes for ip. + */ + public com.google.protobuf.ByteString + getIpBytes() { + java.lang.Object ref = ip_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + ip_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string ip = 2; + * @param value The ip to set. + * @return This builder for chaining. + */ + public Builder setIp( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ip_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * string ip = 2; + * @return This builder for chaining. + */ + public Builder clearIp() { + ip_ = getDefaultInstance().getIp(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * string ip = 2; + * @param value The bytes for ip to set. + * @return This builder for chaining. + */ + public Builder setIpBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ip_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:datadog.cws.dumpsv1.BindNode) + } + + // @@protoc_insertion_point(class_scope:datadog.cws.dumpsv1.BindNode) + private static final com.dd.cws.adv1.pb.SecDumpProto.BindNode DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.dd.cws.adv1.pb.SecDumpProto.BindNode(); + } + + public static com.dd.cws.adv1.pb.SecDumpProto.BindNode getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BindNode parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.BindNode getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface MatchedRuleOrBuilder extends + // @@protoc_insertion_point(interface_extends:datadog.cws.dumpsv1.MatchedRule) + com.google.protobuf.MessageOrBuilder { + + /** + * string rule_id = 1; + * @return The ruleId. + */ + java.lang.String getRuleId(); + /** + * string rule_id = 1; + * @return The bytes for ruleId. + */ + com.google.protobuf.ByteString + getRuleIdBytes(); + + /** + * string rule_version = 2; + * @return The ruleVersion. + */ + java.lang.String getRuleVersion(); + /** + * string rule_version = 2; + * @return The bytes for ruleVersion. + */ + com.google.protobuf.ByteString + getRuleVersionBytes(); + + /** + * string policy_name = 3; + * @return The policyName. + */ + java.lang.String getPolicyName(); + /** + * string policy_name = 3; + * @return The bytes for policyName. + */ + com.google.protobuf.ByteString + getPolicyNameBytes(); + + /** + * string policy_version = 4; + * @return The policyVersion. + */ + java.lang.String getPolicyVersion(); + /** + * string policy_version = 4; + * @return The bytes for policyVersion. + */ + com.google.protobuf.ByteString + getPolicyVersionBytes(); + + /** + * map<string, string> rule_tags = 5; + */ + int getRuleTagsCount(); + /** + * map<string, string> rule_tags = 5; + */ + boolean containsRuleTags( + java.lang.String key); + /** + * Use {@link #getRuleTagsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getRuleTags(); + /** + * map<string, string> rule_tags = 5; + */ + java.util.Map + getRuleTagsMap(); + /** + * map<string, string> rule_tags = 5; + */ + /* nullable */ +java.lang.String getRuleTagsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue); + /** + * map<string, string> rule_tags = 5; + */ + java.lang.String getRuleTagsOrThrow( + java.lang.String key); + } + /** + * Protobuf type {@code datadog.cws.dumpsv1.MatchedRule} + */ + public static final class MatchedRule extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datadog.cws.dumpsv1.MatchedRule) + MatchedRuleOrBuilder { + private static final long serialVersionUID = 0L; + // Use MatchedRule.newBuilder() to construct. + private MatchedRule(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MatchedRule() { + ruleId_ = ""; + ruleVersion_ = ""; + policyName_ = ""; + policyVersion_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new MatchedRule(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_MatchedRule_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 5: + return internalGetRuleTags(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_MatchedRule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.dd.cws.adv1.pb.SecDumpProto.MatchedRule.class, com.dd.cws.adv1.pb.SecDumpProto.MatchedRule.Builder.class); + } + + public static final int RULE_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object ruleId_ = ""; + /** + * string rule_id = 1; + * @return The ruleId. + */ + @java.lang.Override + public java.lang.String getRuleId() { + java.lang.Object ref = ruleId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ruleId_ = s; + return s; + } + } + /** + * string rule_id = 1; + * @return The bytes for ruleId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getRuleIdBytes() { + java.lang.Object ref = ruleId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + ruleId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RULE_VERSION_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object ruleVersion_ = ""; + /** + * string rule_version = 2; + * @return The ruleVersion. + */ + @java.lang.Override + public java.lang.String getRuleVersion() { + java.lang.Object ref = ruleVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ruleVersion_ = s; + return s; + } + } + /** + * string rule_version = 2; + * @return The bytes for ruleVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getRuleVersionBytes() { + java.lang.Object ref = ruleVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + ruleVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int POLICY_NAME_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object policyName_ = ""; + /** + * string policy_name = 3; + * @return The policyName. + */ + @java.lang.Override + public java.lang.String getPolicyName() { + java.lang.Object ref = policyName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + policyName_ = s; + return s; + } + } + /** + * string policy_name = 3; + * @return The bytes for policyName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPolicyNameBytes() { + java.lang.Object ref = policyName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + policyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int POLICY_VERSION_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile java.lang.Object policyVersion_ = ""; + /** + * string policy_version = 4; + * @return The policyVersion. + */ + @java.lang.Override + public java.lang.String getPolicyVersion() { + java.lang.Object ref = policyVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + policyVersion_ = s; + return s; + } + } + /** + * string policy_version = 4; + * @return The bytes for policyVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPolicyVersionBytes() { + java.lang.Object ref = policyVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + policyVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RULE_TAGS_FIELD_NUMBER = 5; + private static final class RuleTagsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_MatchedRule_RuleTagsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> ruleTags_; + private com.google.protobuf.MapField + internalGetRuleTags() { + if (ruleTags_ == null) { + return com.google.protobuf.MapField.emptyMapField( + RuleTagsDefaultEntryHolder.defaultEntry); + } + return ruleTags_; + } + public int getRuleTagsCount() { + return internalGetRuleTags().getMap().size(); + } + /** + * map<string, string> rule_tags = 5; + */ + @java.lang.Override + public boolean containsRuleTags( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetRuleTags().getMap().containsKey(key); + } + /** + * Use {@link #getRuleTagsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getRuleTags() { + return getRuleTagsMap(); + } + /** + * map<string, string> rule_tags = 5; + */ + @java.lang.Override + public java.util.Map getRuleTagsMap() { + return internalGetRuleTags().getMap(); + } + /** + * map<string, string> rule_tags = 5; + */ + @java.lang.Override + public /* nullable */ +java.lang.String getRuleTagsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetRuleTags().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, string> rule_tags = 5; + */ + @java.lang.Override + public java.lang.String getRuleTagsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetRuleTags().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ruleId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ruleId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ruleVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, ruleVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(policyName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, policyName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(policyVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, policyVersion_); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetRuleTags(), + RuleTagsDefaultEntryHolder.defaultEntry, + 5); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ruleId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, ruleId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ruleVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, ruleVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(policyName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, policyName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(policyVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, policyVersion_); + } + for (java.util.Map.Entry entry + : internalGetRuleTags().getMap().entrySet()) { + com.google.protobuf.MapEntry + ruleTags__ = RuleTagsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, ruleTags__); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.dd.cws.adv1.pb.SecDumpProto.MatchedRule)) { + return super.equals(obj); + } + com.dd.cws.adv1.pb.SecDumpProto.MatchedRule other = (com.dd.cws.adv1.pb.SecDumpProto.MatchedRule) obj; + + if (!getRuleId() + .equals(other.getRuleId())) return false; + if (!getRuleVersion() + .equals(other.getRuleVersion())) return false; + if (!getPolicyName() + .equals(other.getPolicyName())) return false; + if (!getPolicyVersion() + .equals(other.getPolicyVersion())) return false; + if (!internalGetRuleTags().equals( + other.internalGetRuleTags())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RULE_ID_FIELD_NUMBER; + hash = (53 * hash) + getRuleId().hashCode(); + hash = (37 * hash) + RULE_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getRuleVersion().hashCode(); + hash = (37 * hash) + POLICY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getPolicyName().hashCode(); + hash = (37 * hash) + POLICY_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getPolicyVersion().hashCode(); + if (!internalGetRuleTags().getMap().isEmpty()) { + hash = (37 * hash) + RULE_TAGS_FIELD_NUMBER; + hash = (53 * hash) + internalGetRuleTags().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.dd.cws.adv1.pb.SecDumpProto.MatchedRule parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.dd.cws.adv1.pb.SecDumpProto.MatchedRule parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.dd.cws.adv1.pb.SecDumpProto.MatchedRule parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.dd.cws.adv1.pb.SecDumpProto.MatchedRule parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.dd.cws.adv1.pb.SecDumpProto.MatchedRule parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.dd.cws.adv1.pb.SecDumpProto.MatchedRule parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.dd.cws.adv1.pb.SecDumpProto.MatchedRule parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.dd.cws.adv1.pb.SecDumpProto.MatchedRule parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.dd.cws.adv1.pb.SecDumpProto.MatchedRule parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.dd.cws.adv1.pb.SecDumpProto.MatchedRule parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.dd.cws.adv1.pb.SecDumpProto.MatchedRule parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.dd.cws.adv1.pb.SecDumpProto.MatchedRule parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.dd.cws.adv1.pb.SecDumpProto.MatchedRule prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code datadog.cws.dumpsv1.MatchedRule} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datadog.cws.dumpsv1.MatchedRule) + com.dd.cws.adv1.pb.SecDumpProto.MatchedRuleOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_MatchedRule_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 5: + return internalGetRuleTags(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 5: + return internalGetMutableRuleTags(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_MatchedRule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.dd.cws.adv1.pb.SecDumpProto.MatchedRule.class, com.dd.cws.adv1.pb.SecDumpProto.MatchedRule.Builder.class); + } + + // Construct using com.dd.cws.adv1.pb.SecDumpProto.MatchedRule.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + ruleId_ = ""; + ruleVersion_ = ""; + policyName_ = ""; + policyVersion_ = ""; + internalGetMutableRuleTags().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_MatchedRule_descriptor; + } + + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.MatchedRule getDefaultInstanceForType() { + return com.dd.cws.adv1.pb.SecDumpProto.MatchedRule.getDefaultInstance(); + } + + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.MatchedRule build() { + com.dd.cws.adv1.pb.SecDumpProto.MatchedRule result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.MatchedRule buildPartial() { + com.dd.cws.adv1.pb.SecDumpProto.MatchedRule result = new com.dd.cws.adv1.pb.SecDumpProto.MatchedRule(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.dd.cws.adv1.pb.SecDumpProto.MatchedRule result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.ruleId_ = ruleId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.ruleVersion_ = ruleVersion_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.policyName_ = policyName_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.policyVersion_ = policyVersion_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.ruleTags_ = internalGetRuleTags(); + result.ruleTags_.makeImmutable(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.dd.cws.adv1.pb.SecDumpProto.MatchedRule) { + return mergeFrom((com.dd.cws.adv1.pb.SecDumpProto.MatchedRule)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.dd.cws.adv1.pb.SecDumpProto.MatchedRule other) { + if (other == com.dd.cws.adv1.pb.SecDumpProto.MatchedRule.getDefaultInstance()) return this; + if (!other.getRuleId().isEmpty()) { + ruleId_ = other.ruleId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRuleVersion().isEmpty()) { + ruleVersion_ = other.ruleVersion_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getPolicyName().isEmpty()) { + policyName_ = other.policyName_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getPolicyVersion().isEmpty()) { + policyVersion_ = other.policyVersion_; + bitField0_ |= 0x00000008; + onChanged(); + } + internalGetMutableRuleTags().mergeFrom( + other.internalGetRuleTags()); + bitField0_ |= 0x00000010; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + ruleId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + ruleVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + policyName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + policyVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + com.google.protobuf.MapEntry + ruleTags__ = input.readMessage( + RuleTagsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableRuleTags().getMutableMap().put( + ruleTags__.getKey(), ruleTags__.getValue()); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object ruleId_ = ""; + /** + * string rule_id = 1; + * @return The ruleId. + */ + public java.lang.String getRuleId() { + java.lang.Object ref = ruleId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ruleId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string rule_id = 1; + * @return The bytes for ruleId. + */ + public com.google.protobuf.ByteString + getRuleIdBytes() { + java.lang.Object ref = ruleId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + ruleId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string rule_id = 1; + * @param value The ruleId to set. + * @return This builder for chaining. + */ + public Builder setRuleId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ruleId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string rule_id = 1; + * @return This builder for chaining. + */ + public Builder clearRuleId() { + ruleId_ = getDefaultInstance().getRuleId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string rule_id = 1; + * @param value The bytes for ruleId to set. + * @return This builder for chaining. + */ + public Builder setRuleIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ruleId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object ruleVersion_ = ""; + /** + * string rule_version = 2; + * @return The ruleVersion. + */ + public java.lang.String getRuleVersion() { + java.lang.Object ref = ruleVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ruleVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string rule_version = 2; + * @return The bytes for ruleVersion. + */ + public com.google.protobuf.ByteString + getRuleVersionBytes() { + java.lang.Object ref = ruleVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + ruleVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string rule_version = 2; + * @param value The ruleVersion to set. + * @return This builder for chaining. + */ + public Builder setRuleVersion( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ruleVersion_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * string rule_version = 2; + * @return This builder for chaining. + */ + public Builder clearRuleVersion() { + ruleVersion_ = getDefaultInstance().getRuleVersion(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * string rule_version = 2; + * @param value The bytes for ruleVersion to set. + * @return This builder for chaining. + */ + public Builder setRuleVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ruleVersion_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object policyName_ = ""; + /** + * string policy_name = 3; + * @return The policyName. + */ + public java.lang.String getPolicyName() { + java.lang.Object ref = policyName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + policyName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string policy_name = 3; + * @return The bytes for policyName. + */ + public com.google.protobuf.ByteString + getPolicyNameBytes() { + java.lang.Object ref = policyName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + policyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string policy_name = 3; + * @param value The policyName to set. + * @return This builder for chaining. + */ + public Builder setPolicyName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + policyName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * string policy_name = 3; + * @return This builder for chaining. + */ + public Builder clearPolicyName() { + policyName_ = getDefaultInstance().getPolicyName(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * string policy_name = 3; + * @param value The bytes for policyName to set. + * @return This builder for chaining. + */ + public Builder setPolicyNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + policyName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object policyVersion_ = ""; + /** + * string policy_version = 4; + * @return The policyVersion. + */ + public java.lang.String getPolicyVersion() { + java.lang.Object ref = policyVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + policyVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string policy_version = 4; + * @return The bytes for policyVersion. + */ + public com.google.protobuf.ByteString + getPolicyVersionBytes() { + java.lang.Object ref = policyVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + policyVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string policy_version = 4; + * @param value The policyVersion to set. + * @return This builder for chaining. + */ + public Builder setPolicyVersion( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + policyVersion_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * string policy_version = 4; + * @return This builder for chaining. + */ + public Builder clearPolicyVersion() { + policyVersion_ = getDefaultInstance().getPolicyVersion(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * string policy_version = 4; + * @param value The bytes for policyVersion to set. + * @return This builder for chaining. + */ + public Builder setPolicyVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + policyVersion_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> ruleTags_; + private com.google.protobuf.MapField + internalGetRuleTags() { + if (ruleTags_ == null) { + return com.google.protobuf.MapField.emptyMapField( + RuleTagsDefaultEntryHolder.defaultEntry); + } + return ruleTags_; + } + private com.google.protobuf.MapField + internalGetMutableRuleTags() { + if (ruleTags_ == null) { + ruleTags_ = com.google.protobuf.MapField.newMapField( + RuleTagsDefaultEntryHolder.defaultEntry); + } + if (!ruleTags_.isMutable()) { + ruleTags_ = ruleTags_.copy(); + } + bitField0_ |= 0x00000010; + onChanged(); + return ruleTags_; + } + public int getRuleTagsCount() { + return internalGetRuleTags().getMap().size(); + } + /** + * map<string, string> rule_tags = 5; + */ + @java.lang.Override + public boolean containsRuleTags( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetRuleTags().getMap().containsKey(key); + } + /** + * Use {@link #getRuleTagsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getRuleTags() { + return getRuleTagsMap(); + } + /** + * map<string, string> rule_tags = 5; + */ + @java.lang.Override + public java.util.Map getRuleTagsMap() { + return internalGetRuleTags().getMap(); + } + /** + * map<string, string> rule_tags = 5; + */ + @java.lang.Override + public /* nullable */ +java.lang.String getRuleTagsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetRuleTags().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, string> rule_tags = 5; + */ + @java.lang.Override + public java.lang.String getRuleTagsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetRuleTags().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + public Builder clearRuleTags() { + bitField0_ = (bitField0_ & ~0x00000010); + internalGetMutableRuleTags().getMutableMap() + .clear(); + return this; + } + /** + * map<string, string> rule_tags = 5; + */ + public Builder removeRuleTags( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableRuleTags().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableRuleTags() { + bitField0_ |= 0x00000010; + return internalGetMutableRuleTags().getMutableMap(); + } + /** + * map<string, string> rule_tags = 5; + */ + public Builder putRuleTags( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableRuleTags().getMutableMap() + .put(key, value); + bitField0_ |= 0x00000010; + return this; + } + /** + * map<string, string> rule_tags = 5; + */ + public Builder putAllRuleTags( + java.util.Map values) { + internalGetMutableRuleTags().getMutableMap() + .putAll(values); + bitField0_ |= 0x00000010; + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:datadog.cws.dumpsv1.MatchedRule) + } + + // @@protoc_insertion_point(class_scope:datadog.cws.dumpsv1.MatchedRule) + private static final com.dd.cws.adv1.pb.SecDumpProto.MatchedRule DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.dd.cws.adv1.pb.SecDumpProto.MatchedRule(); + } + + public static com.dd.cws.adv1.pb.SecDumpProto.MatchedRule getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MatchedRule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.MatchedRule getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datadog_cws_dumpsv1_ActivityDump_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datadog_cws_dumpsv1_ActivityDump_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datadog_cws_dumpsv1_Metadata_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datadog_cws_dumpsv1_Metadata_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datadog_cws_dumpsv1_SecurityProfile_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datadog_cws_dumpsv1_SecurityProfile_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datadog_cws_dumpsv1_ProcessActivityNode_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datadog_cws_dumpsv1_ProcessActivityNode_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datadog_cws_dumpsv1_ProcessInfo_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datadog_cws_dumpsv1_ProcessInfo_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datadog_cws_dumpsv1_FileActivityNode_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datadog_cws_dumpsv1_FileActivityNode_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datadog_cws_dumpsv1_OpenNode_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datadog_cws_dumpsv1_OpenNode_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datadog_cws_dumpsv1_DNSNode_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datadog_cws_dumpsv1_DNSNode_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datadog_cws_dumpsv1_DNSInfo_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datadog_cws_dumpsv1_DNSInfo_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datadog_cws_dumpsv1_FileInfo_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datadog_cws_dumpsv1_FileInfo_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datadog_cws_dumpsv1_Credentials_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datadog_cws_dumpsv1_Credentials_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datadog_cws_dumpsv1_SocketNode_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datadog_cws_dumpsv1_SocketNode_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datadog_cws_dumpsv1_BindNode_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datadog_cws_dumpsv1_BindNode_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datadog_cws_dumpsv1_MatchedRule_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datadog_cws_dumpsv1_MatchedRule_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datadog_cws_dumpsv1_MatchedRule_RuleTagsEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datadog_cws_dumpsv1_MatchedRule_RuleTagsEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n%proto/cws/dumpsv1/activity_dump.proto\022" + + "\023datadog.cws.dumpsv1\"\264\001\n\014ActivityDump\022\014\n" + + "\004host\030\001 \001(\t\022\017\n\007service\030\002 \001(\t\022\016\n\006source\030\003" + + " \001(\t\022/\n\010metadata\030\004 \001(\0132\035.datadog.cws.dum" + + "psv1.Metadata\022\014\n\004tags\030\005 \003(\t\0226\n\004tree\030\006 \003(" + + "\0132(.datadog.cws.dumpsv1.ProcessActivityN" + + "ode\"\242\002\n\010Metadata\022\025\n\ragent_version\030\001 \001(\t\022" + + "\024\n\014agent_commit\030\002 \001(\t\022\026\n\016kernel_version\030" + + "\003 \001(\t\022\032\n\022linux_distribution\030\004 \001(\t\022\014\n\004arc" + + "h\030\r \001(\t\022\014\n\004name\030\005 \001(\t\022\030\n\020protobuf_versio" + + "n\030\006 \001(\t\022\032\n\022differentiate_args\030\007 \001(\010\022\014\n\004c" + + "omm\030\010 \001(\t\022\024\n\014container_id\030\t \001(\t\022\r\n\005start" + + "\030\n \001(\004\022\013\n\003end\030\013 \001(\004\022\014\n\004size\030\014 \001(\004\022\025\n\rser" + + "ialization\030\016 \001(\t\"\273\001\n\017SecurityProfile\022\016\n\006" + + "status\030\001 \001(\r\022\017\n\007version\030\002 \001(\t\022/\n\010metadat" + + "a\030\003 \001(\0132\035.datadog.cws.dumpsv1.Metadata\022\014" + + "\n\004tags\030\004 \003(\t\022\020\n\010syscalls\030\005 \003(\r\0226\n\004tree\030\006" + + " \003(\0132(.datadog.cws.dumpsv1.ProcessActivi" + + "tyNode\"\254\003\n\023ProcessActivityNode\0221\n\007proces" + + "s\030\001 \001(\0132 .datadog.cws.dumpsv1.ProcessInf" + + "o\022<\n\017generation_type\030\010 \001(\0162#.datadog.cws" + + ".dumpsv1.GenerationType\0227\n\rmatched_rules" + + "\030\t \003(\0132 .datadog.cws.dumpsv1.MatchedRule" + + "\022:\n\010children\030\003 \003(\0132(.datadog.cws.dumpsv1" + + ".ProcessActivityNode\0224\n\005files\030\004 \003(\0132%.da" + + "tadog.cws.dumpsv1.FileActivityNode\022/\n\tdn" + + "s_names\030\005 \003(\0132\034.datadog.cws.dumpsv1.DNSN" + + "ode\0220\n\007sockets\030\006 \003(\0132\037.datadog.cws.dumps" + + "v1.SocketNode\022\020\n\010syscalls\030\007 \003(\rJ\004\010\002\020\003\"\244\003" + + "\n\013ProcessInfo\022\013\n\003pid\030\001 \001(\r\022\013\n\003tid\030\002 \001(\r\022" + + "\014\n\004ppid\030\003 \001(\r\022\016\n\006cookie\030\004 \001(\r\022\021\n\tis_thre" + + "ad\030\005 \001(\010\022+\n\004file\030\006 \001(\0132\035.datadog.cws.dum" + + "psv1.FileInfo\022\024\n\014container_id\030\007 \001(\t\022\017\n\007s" + + "pan_id\030\010 \001(\004\022\020\n\010trace_id\030\t \001(\004\022\013\n\003tty\030\n " + + "\001(\t\022\014\n\004comm\030\013 \001(\t\022\021\n\tfork_time\030\014 \001(\004\022\021\n\t" + + "exit_time\030\r \001(\004\022\021\n\texec_time\030\016 \001(\004\0225\n\013cr" + + "edentials\030\017 \001(\0132 .datadog.cws.dumpsv1.Cr" + + "edentials\022\014\n\004args\030\020 \003(\t\022\r\n\005argv0\030\021 \001(\t\022\026" + + "\n\016args_truncated\030\022 \001(\010\022\014\n\004envs\030\023 \003(\t\022\026\n\016" + + "envs_truncated\030\024 \001(\010\"\330\002\n\020FileActivityNod" + + "e\0227\n\rmatched_rules\030\t \003(\0132 .datadog.cws.d" + + "umpsv1.MatchedRule\022\014\n\004name\030\001 \001(\t\022\022\n\nis_p" + + "attern\030\007 \001(\010\022+\n\004file\030\002 \001(\0132\035.datadog.cws" + + ".dumpsv1.FileInfo\022<\n\017generation_type\030\010 \001" + + "(\0162#.datadog.cws.dumpsv1.GenerationType\022" + + "\022\n\nfirst_seen\030\004 \001(\004\022+\n\004open\030\005 \001(\0132\035.data" + + "dog.cws.dumpsv1.OpenNode\0227\n\010children\030\006 \003" + + "(\0132%.datadog.cws.dumpsv1.FileActivityNod" + + "eJ\004\010\003\020\004\"7\n\010OpenNode\022\016\n\006retval\030\001 \001(\022\022\r\n\005f" + + "lags\030\002 \001(\r\022\014\n\004mode\030\003 \001(\r\"r\n\007DNSNode\0227\n\rm" + + "atched_rules\030\002 \003(\0132 .datadog.cws.dumpsv1" + + ".MatchedRule\022.\n\010requests\030\001 \003(\0132\034.datadog" + + ".cws.dumpsv1.DNSInfo\"Q\n\007DNSInfo\022\014\n\004name\030" + + "\001 \001(\t\022\014\n\004type\030\002 \001(\r\022\r\n\005class\030\003 \001(\r\022\014\n\004si" + + "ze\030\004 \001(\r\022\r\n\005count\030\005 \001(\r\"\245\002\n\010FileInfo\022\013\n\003" + + "uid\030\001 \001(\r\022\014\n\004user\030\002 \001(\t\022\013\n\003gid\030\003 \001(\r\022\r\n\005" + + "group\030\004 \001(\t\022\014\n\004mode\030\005 \001(\r\022\r\n\005ctime\030\006 \001(\004" + + "\022\r\n\005mtime\030\007 \001(\004\022\020\n\010mount_id\030\010 \001(\r\022\r\n\005ino" + + "de\030\t \001(\004\022\026\n\016in_upper_layer\030\n \001(\010\022\014\n\004path" + + "\030\013 \001(\t\022\020\n\010basename\030\014 \001(\t\022\022\n\nfilesystem\030\r" + + " \001(\t\022\024\n\014package_name\030\016 \001(\t\022\027\n\017package_ve" + + "rsion\030\017 \001(\t\022\032\n\022package_srcversion\030\020 \001(\t\"" + + "\224\002\n\013Credentials\022\013\n\003uid\030\001 \001(\r\022\013\n\003gid\030\002 \001(" + + "\r\022\014\n\004user\030\003 \001(\t\022\r\n\005group\030\004 \001(\t\022\025\n\reffect" + + "ive_uid\030\005 \001(\r\022\025\n\reffective_gid\030\006 \001(\r\022\026\n\016" + + "effective_user\030\007 \001(\t\022\027\n\017effective_group\030" + + "\010 \001(\t\022\016\n\006fs_uid\030\t \001(\r\022\016\n\006fs_gid\030\n \001(\r\022\017\n" + + "\007fs_user\030\013 \001(\t\022\020\n\010fs_group\030\014 \001(\t\022\025\n\rcap_" + + "effective\030\r \001(\004\022\025\n\rcap_permitted\030\016 \001(\004\"I" + + "\n\nSocketNode\022\016\n\006family\030\001 \001(\t\022+\n\004bind\030\002 \003" + + "(\0132\035.datadog.cws.dumpsv1.BindNode\"]\n\010Bin" + + "dNode\0227\n\rmatched_rules\030\003 \003(\0132 .datadog.c" + + "ws.dumpsv1.MatchedRule\022\014\n\004port\030\001 \001(\r\022\n\n\002" + + "ip\030\002 \001(\t\"\325\001\n\013MatchedRule\022\017\n\007rule_id\030\001 \001(" + + "\t\022\024\n\014rule_version\030\002 \001(\t\022\023\n\013policy_name\030\003" + + " \001(\t\022\026\n\016policy_version\030\004 \001(\t\022A\n\trule_tag" + + "s\030\005 \003(\0132..datadog.cws.dumpsv1.MatchedRul" + + "e.RuleTagsEntry\032/\n\rRuleTagsEntry\022\013\n\003key\030" + + "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001*8\n\016GenerationTy" + + "pe\022\013\n\007UNKNOWN\020\000\022\013\n\007RUNTIME\020\001\022\014\n\010SNAPSHOT" + + "\020\002BU\n\022com.dd.cws.adv1.pbB\014SecDumpProtoP\000" + + "Z/github.com/DataDog/agent-payload/v5/cw" + + "s/dumpsv1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_datadog_cws_dumpsv1_ActivityDump_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_datadog_cws_dumpsv1_ActivityDump_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datadog_cws_dumpsv1_ActivityDump_descriptor, + new java.lang.String[] { "Host", "Service", "Source", "Metadata", "Tags", "Tree", }); + internal_static_datadog_cws_dumpsv1_Metadata_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_datadog_cws_dumpsv1_Metadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datadog_cws_dumpsv1_Metadata_descriptor, + new java.lang.String[] { "AgentVersion", "AgentCommit", "KernelVersion", "LinuxDistribution", "Arch", "Name", "ProtobufVersion", "DifferentiateArgs", "Comm", "ContainerId", "Start", "End", "Size", "Serialization", }); + internal_static_datadog_cws_dumpsv1_SecurityProfile_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_datadog_cws_dumpsv1_SecurityProfile_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datadog_cws_dumpsv1_SecurityProfile_descriptor, + new java.lang.String[] { "Status", "Version", "Metadata", "Tags", "Syscalls", "Tree", }); + internal_static_datadog_cws_dumpsv1_ProcessActivityNode_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_datadog_cws_dumpsv1_ProcessActivityNode_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datadog_cws_dumpsv1_ProcessActivityNode_descriptor, + new java.lang.String[] { "Process", "GenerationType", "MatchedRules", "Children", "Files", "DnsNames", "Sockets", "Syscalls", }); + internal_static_datadog_cws_dumpsv1_ProcessInfo_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_datadog_cws_dumpsv1_ProcessInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datadog_cws_dumpsv1_ProcessInfo_descriptor, + new java.lang.String[] { "Pid", "Tid", "Ppid", "Cookie", "IsThread", "File", "ContainerId", "SpanId", "TraceId", "Tty", "Comm", "ForkTime", "ExitTime", "ExecTime", "Credentials", "Args", "Argv0", "ArgsTruncated", "Envs", "EnvsTruncated", }); + internal_static_datadog_cws_dumpsv1_FileActivityNode_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_datadog_cws_dumpsv1_FileActivityNode_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datadog_cws_dumpsv1_FileActivityNode_descriptor, + new java.lang.String[] { "MatchedRules", "Name", "IsPattern", "File", "GenerationType", "FirstSeen", "Open", "Children", }); + internal_static_datadog_cws_dumpsv1_OpenNode_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_datadog_cws_dumpsv1_OpenNode_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datadog_cws_dumpsv1_OpenNode_descriptor, + new java.lang.String[] { "Retval", "Flags", "Mode", }); + internal_static_datadog_cws_dumpsv1_DNSNode_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_datadog_cws_dumpsv1_DNSNode_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datadog_cws_dumpsv1_DNSNode_descriptor, + new java.lang.String[] { "MatchedRules", "Requests", }); + internal_static_datadog_cws_dumpsv1_DNSInfo_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_datadog_cws_dumpsv1_DNSInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datadog_cws_dumpsv1_DNSInfo_descriptor, + new java.lang.String[] { "Name", "Type", "Class_", "Size", "Count", }); + internal_static_datadog_cws_dumpsv1_FileInfo_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_datadog_cws_dumpsv1_FileInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datadog_cws_dumpsv1_FileInfo_descriptor, + new java.lang.String[] { "Uid", "User", "Gid", "Group", "Mode", "Ctime", "Mtime", "MountId", "Inode", "InUpperLayer", "Path", "Basename", "Filesystem", "PackageName", "PackageVersion", "PackageSrcversion", }); + internal_static_datadog_cws_dumpsv1_Credentials_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_datadog_cws_dumpsv1_Credentials_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datadog_cws_dumpsv1_Credentials_descriptor, + new java.lang.String[] { "Uid", "Gid", "User", "Group", "EffectiveUid", "EffectiveGid", "EffectiveUser", "EffectiveGroup", "FsUid", "FsGid", "FsUser", "FsGroup", "CapEffective", "CapPermitted", }); + internal_static_datadog_cws_dumpsv1_SocketNode_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_datadog_cws_dumpsv1_SocketNode_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datadog_cws_dumpsv1_SocketNode_descriptor, + new java.lang.String[] { "Family", "Bind", }); + internal_static_datadog_cws_dumpsv1_BindNode_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_datadog_cws_dumpsv1_BindNode_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datadog_cws_dumpsv1_BindNode_descriptor, + new java.lang.String[] { "MatchedRules", "Port", "Ip", }); + internal_static_datadog_cws_dumpsv1_MatchedRule_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_datadog_cws_dumpsv1_MatchedRule_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datadog_cws_dumpsv1_MatchedRule_descriptor, + new java.lang.String[] { "RuleId", "RuleVersion", "PolicyName", "PolicyVersion", "RuleTags", }); + internal_static_datadog_cws_dumpsv1_MatchedRule_RuleTagsEntry_descriptor = + internal_static_datadog_cws_dumpsv1_MatchedRule_descriptor.getNestedTypes().get(0); + internal_static_datadog_cws_dumpsv1_MatchedRule_RuleTagsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datadog_cws_dumpsv1_MatchedRule_RuleTagsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto/cws/dumpsv1/activity_dump.proto b/proto/cws/dumpsv1/activity_dump.proto index eda5f8b7..b2269f07 100644 --- a/proto/cws/dumpsv1/activity_dump.proto +++ b/proto/cws/dumpsv1/activity_dump.proto @@ -2,6 +2,10 @@ syntax = "proto3"; option go_package = "github.com/DataDog/agent-payload/v5/cws/dumpsv1"; +option java_multiple_files = false; +option java_package = "com.dd.cws.adv1.pb"; +option java_outer_classname = "SecDumpProto"; + package datadog.cws.dumpsv1; message ActivityDump { From debbca05dbecc59a87380624da2d18dadffb62b4 Mon Sep 17 00:00:00 2001 From: Paul Cacheux Date: Thu, 23 Mar 2023 11:28:57 +0100 Subject: [PATCH 4/6] `ActivityDump` -> `SecDump` --- Rakefile | 2 +- cws/dumpsv1/activity_dump.pb.go | 556 +++++++++++----------- cws/dumpsv1/activity_dump_vtproto.pb.go | 28 +- java/com/dd/cws/adv1/pb/SecDumpProto.java | 292 ++++++------ proto/cws/dumpsv1/activity_dump.proto | 2 +- 5 files changed, 440 insertions(+), 440 deletions(-) diff --git a/Rakefile b/Rakefile index af1a997f..45b24d82 100644 --- a/Rakefile +++ b/Rakefile @@ -112,7 +112,7 @@ BASH --go_out=$GOPATH/src \ --go-vtproto_out=$GOPATH/src \ --go-vtproto_opt=features=pool+marshal+unmarshal+size \ - --go-vtproto_opt=pool=github.com/DataDog/agent-payload/v5/cws/dumpsv1.ActivityDump \ + --go-vtproto_opt=pool=github.com/DataDog/agent-payload/v5/cws/dumpsv1.SecDump \ --go-vtproto_opt=pool=github.com/DataDog/agent-payload/v5/cws/dumpsv1.ProcessActivityNode \ --go-vtproto_opt=pool=github.com/DataDog/agent-payload/v5/cws/dumpsv1.FileActivityNode \ --go-vtproto_opt=pool=github.com/DataDog/agent-payload/v5/cws/dumpsv1.FileInfo \ diff --git a/cws/dumpsv1/activity_dump.pb.go b/cws/dumpsv1/activity_dump.pb.go index e11795ac..1c110ca0 100644 --- a/cws/dumpsv1/activity_dump.pb.go +++ b/cws/dumpsv1/activity_dump.pb.go @@ -69,7 +69,7 @@ func (GenerationType) EnumDescriptor() ([]byte, []int) { return file_proto_cws_dumpsv1_activity_dump_proto_rawDescGZIP(), []int{0} } -type ActivityDump struct { +type SecDump struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -82,8 +82,8 @@ type ActivityDump struct { Tree []*ProcessActivityNode `protobuf:"bytes,6,rep,name=tree,proto3" json:"tree,omitempty"` } -func (x *ActivityDump) Reset() { - *x = ActivityDump{} +func (x *SecDump) Reset() { + *x = SecDump{} if protoimpl.UnsafeEnabled { mi := &file_proto_cws_dumpsv1_activity_dump_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -91,13 +91,13 @@ func (x *ActivityDump) Reset() { } } -func (x *ActivityDump) String() string { +func (x *SecDump) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ActivityDump) ProtoMessage() {} +func (*SecDump) ProtoMessage() {} -func (x *ActivityDump) ProtoReflect() protoreflect.Message { +func (x *SecDump) ProtoReflect() protoreflect.Message { mi := &file_proto_cws_dumpsv1_activity_dump_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -109,47 +109,47 @@ func (x *ActivityDump) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ActivityDump.ProtoReflect.Descriptor instead. -func (*ActivityDump) Descriptor() ([]byte, []int) { +// Deprecated: Use SecDump.ProtoReflect.Descriptor instead. +func (*SecDump) Descriptor() ([]byte, []int) { return file_proto_cws_dumpsv1_activity_dump_proto_rawDescGZIP(), []int{0} } -func (x *ActivityDump) GetHost() string { +func (x *SecDump) GetHost() string { if x != nil { return x.Host } return "" } -func (x *ActivityDump) GetService() string { +func (x *SecDump) GetService() string { if x != nil { return x.Service } return "" } -func (x *ActivityDump) GetSource() string { +func (x *SecDump) GetSource() string { if x != nil { return x.Source } return "" } -func (x *ActivityDump) GetMetadata() *Metadata { +func (x *SecDump) GetMetadata() *Metadata { if x != nil { return x.Metadata } return nil } -func (x *ActivityDump) GetTags() []string { +func (x *SecDump) GetTags() []string { if x != nil { return x.Tags } return nil } -func (x *ActivityDump) GetTree() []*ProcessActivityNode { +func (x *SecDump) GetTree() []*ProcessActivityNode { if x != nil { return x.Tree } @@ -1517,276 +1517,276 @@ var file_proto_cws_dumpsv1_activity_dump_proto_rawDesc = []byte{ 0x0a, 0x25, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x77, 0x73, 0x2f, 0x64, 0x75, 0x6d, 0x70, 0x73, 0x76, 0x31, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x5f, 0x64, 0x75, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x13, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, - 0x2e, 0x63, 0x77, 0x73, 0x2e, 0x64, 0x75, 0x6d, 0x70, 0x73, 0x76, 0x31, 0x22, 0xe1, 0x01, 0x0a, - 0x0c, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x44, 0x75, 0x6d, 0x70, 0x12, 0x12, 0x0a, - 0x04, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x68, 0x6f, 0x73, - 0x74, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x12, 0x39, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, - 0x63, 0x77, 0x73, 0x2e, 0x64, 0x75, 0x6d, 0x70, 0x73, 0x76, 0x31, 0x2e, 0x4d, 0x65, 0x74, 0x61, - 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x12, - 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x74, 0x61, - 0x67, 0x73, 0x12, 0x3c, 0x0a, 0x04, 0x74, 0x72, 0x65, 0x65, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, + 0x2e, 0x63, 0x77, 0x73, 0x2e, 0x64, 0x75, 0x6d, 0x70, 0x73, 0x76, 0x31, 0x22, 0xdc, 0x01, 0x0a, + 0x07, 0x53, 0x65, 0x63, 0x44, 0x75, 0x6d, 0x70, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x6f, 0x73, 0x74, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, + 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x39, + 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1d, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x63, 0x77, 0x73, 0x2e, 0x64, + 0x75, 0x6d, 0x70, 0x73, 0x76, 0x31, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, + 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x61, 0x67, + 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x12, 0x3c, 0x0a, + 0x04, 0x74, 0x72, 0x65, 0x65, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x64, 0x61, + 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x63, 0x77, 0x73, 0x2e, 0x64, 0x75, 0x6d, 0x70, 0x73, 0x76, + 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, + 0x79, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x74, 0x72, 0x65, 0x65, 0x22, 0xc3, 0x03, 0x0a, 0x08, + 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x23, 0x0a, 0x0d, 0x61, 0x67, 0x65, 0x6e, + 0x74, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0c, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x21, 0x0a, + 0x0c, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, + 0x12, 0x25, 0x0a, 0x0e, 0x6b, 0x65, 0x72, 0x6e, 0x65, 0x6c, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, + 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6b, 0x65, 0x72, 0x6e, 0x65, 0x6c, + 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x2d, 0x0a, 0x12, 0x6c, 0x69, 0x6e, 0x75, 0x78, + 0x5f, 0x64, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x11, 0x6c, 0x69, 0x6e, 0x75, 0x78, 0x44, 0x69, 0x73, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x61, 0x72, 0x63, 0x68, 0x18, 0x0d, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x61, 0x72, 0x63, 0x68, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x29, + 0x0a, 0x10, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, + 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x2d, 0x0a, 0x12, 0x64, 0x69, 0x66, + 0x66, 0x65, 0x72, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x74, 0x65, 0x5f, 0x61, 0x72, 0x67, 0x73, 0x18, + 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x11, 0x64, 0x69, 0x66, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x74, + 0x69, 0x61, 0x74, 0x65, 0x41, 0x72, 0x67, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x6d, 0x6d, + 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x6f, 0x6d, 0x6d, 0x12, 0x21, 0x0a, 0x0c, + 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x09, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x12, + 0x14, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x72, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, + 0x73, 0x74, 0x61, 0x72, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x65, 0x6e, 0x64, 0x18, 0x0b, 0x20, 0x01, + 0x28, 0x04, 0x52, 0x03, 0x65, 0x6e, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, + 0x0c, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x12, 0x24, 0x0a, 0x0d, 0x73, + 0x65, 0x72, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0e, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0d, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x22, 0xec, 0x01, 0x0a, 0x0f, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x50, 0x72, + 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x18, 0x0a, + 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, + 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x39, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x64, 0x61, 0x74, 0x61, + 0x64, 0x6f, 0x67, 0x2e, 0x63, 0x77, 0x73, 0x2e, 0x64, 0x75, 0x6d, 0x70, 0x73, 0x76, 0x31, 0x2e, + 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, + 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x79, 0x73, 0x63, 0x61, 0x6c, + 0x6c, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x08, 0x73, 0x79, 0x73, 0x63, 0x61, 0x6c, + 0x6c, 0x73, 0x12, 0x3c, 0x0a, 0x04, 0x74, 0x72, 0x65, 0x65, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x63, 0x77, 0x73, 0x2e, 0x64, 0x75, 0x6d, 0x70, 0x73, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x74, 0x72, 0x65, 0x65, - 0x22, 0xc3, 0x03, 0x0a, 0x08, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x23, 0x0a, - 0x0d, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, - 0x6f, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, - 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x43, - 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x12, 0x25, 0x0a, 0x0e, 0x6b, 0x65, 0x72, 0x6e, 0x65, 0x6c, 0x5f, - 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6b, - 0x65, 0x72, 0x6e, 0x65, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x2d, 0x0a, 0x12, - 0x6c, 0x69, 0x6e, 0x75, 0x78, 0x5f, 0x64, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, - 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x6c, 0x69, 0x6e, 0x75, 0x78, 0x44, - 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x61, - 0x72, 0x63, 0x68, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x61, 0x72, 0x63, 0x68, 0x12, - 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0x12, 0x29, 0x0a, 0x10, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5f, - 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x2d, - 0x0a, 0x12, 0x64, 0x69, 0x66, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x74, 0x65, 0x5f, - 0x61, 0x72, 0x67, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x11, 0x64, 0x69, 0x66, 0x66, - 0x65, 0x72, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x74, 0x65, 0x41, 0x72, 0x67, 0x73, 0x12, 0x12, 0x0a, - 0x04, 0x63, 0x6f, 0x6d, 0x6d, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x6f, 0x6d, - 0x6d, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x5f, 0x69, - 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, - 0x65, 0x72, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x72, 0x74, 0x18, 0x0a, 0x20, - 0x01, 0x28, 0x04, 0x52, 0x05, 0x73, 0x74, 0x61, 0x72, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x65, 0x6e, - 0x64, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x65, 0x6e, 0x64, 0x12, 0x12, 0x0a, 0x04, - 0x73, 0x69, 0x7a, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, - 0x12, 0x24, 0x0a, 0x0d, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x69, - 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xec, 0x01, 0x0a, 0x0f, 0x53, 0x65, 0x63, 0x75, 0x72, - 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x39, 0x0a, 0x08, - 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, - 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x63, 0x77, 0x73, 0x2e, 0x64, 0x75, 0x6d, - 0x70, 0x73, 0x76, 0x31, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, - 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, - 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x73, - 0x79, 0x73, 0x63, 0x61, 0x6c, 0x6c, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x08, 0x73, - 0x79, 0x73, 0x63, 0x61, 0x6c, 0x6c, 0x73, 0x12, 0x3c, 0x0a, 0x04, 0x74, 0x72, 0x65, 0x65, 0x18, - 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, - 0x63, 0x77, 0x73, 0x2e, 0x64, 0x75, 0x6d, 0x70, 0x73, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x63, - 0x65, 0x73, 0x73, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x4e, 0x6f, 0x64, 0x65, 0x52, - 0x04, 0x74, 0x72, 0x65, 0x65, 0x22, 0x81, 0x04, 0x0a, 0x13, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, - 0x73, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x3a, 0x0a, - 0x07, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, - 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x63, 0x77, 0x73, 0x2e, 0x64, 0x75, 0x6d, - 0x70, 0x73, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x49, 0x6e, 0x66, 0x6f, - 0x52, 0x07, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x12, 0x4c, 0x0a, 0x0f, 0x67, 0x65, 0x6e, - 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x08, 0x20, 0x01, - 0x28, 0x0e, 0x32, 0x23, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x63, 0x77, 0x73, - 0x2e, 0x64, 0x75, 0x6d, 0x70, 0x73, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x45, 0x0a, 0x0d, 0x6d, 0x61, 0x74, 0x63, 0x68, - 0x65, 0x64, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, - 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x63, 0x77, 0x73, 0x2e, 0x64, 0x75, 0x6d, - 0x70, 0x73, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x64, 0x52, 0x75, 0x6c, 0x65, - 0x52, 0x0c, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x64, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x12, 0x44, - 0x0a, 0x08, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x72, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x28, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x63, 0x77, 0x73, 0x2e, 0x64, - 0x75, 0x6d, 0x70, 0x73, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x41, 0x63, - 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x08, 0x63, 0x68, 0x69, 0x6c, - 0x64, 0x72, 0x65, 0x6e, 0x12, 0x3b, 0x0a, 0x05, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x18, 0x04, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x63, 0x77, - 0x73, 0x2e, 0x64, 0x75, 0x6d, 0x70, 0x73, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x41, 0x63, - 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x05, 0x66, 0x69, 0x6c, 0x65, - 0x73, 0x12, 0x39, 0x0a, 0x09, 0x64, 0x6e, 0x73, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x05, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x63, - 0x77, 0x73, 0x2e, 0x64, 0x75, 0x6d, 0x70, 0x73, 0x76, 0x31, 0x2e, 0x44, 0x4e, 0x53, 0x4e, 0x6f, - 0x64, 0x65, 0x52, 0x08, 0x64, 0x6e, 0x73, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x39, 0x0a, 0x07, - 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, + 0x22, 0x81, 0x04, 0x0a, 0x13, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x41, 0x63, 0x74, 0x69, + 0x76, 0x69, 0x74, 0x79, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x3a, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x63, + 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x64, 0x61, 0x74, 0x61, + 0x64, 0x6f, 0x67, 0x2e, 0x63, 0x77, 0x73, 0x2e, 0x64, 0x75, 0x6d, 0x70, 0x73, 0x76, 0x31, 0x2e, + 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x07, 0x70, 0x72, 0x6f, + 0x63, 0x65, 0x73, 0x73, 0x12, 0x4c, 0x0a, 0x0f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x23, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x63, 0x77, 0x73, 0x2e, 0x64, 0x75, 0x6d, 0x70, - 0x73, 0x76, 0x31, 0x2e, 0x53, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x07, - 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x79, 0x73, 0x63, 0x61, - 0x6c, 0x6c, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x08, 0x73, 0x79, 0x73, 0x63, 0x61, - 0x6c, 0x6c, 0x73, 0x4a, 0x04, 0x08, 0x02, 0x10, 0x03, 0x22, 0xd1, 0x04, 0x0a, 0x0b, 0x50, 0x72, - 0x6f, 0x63, 0x65, 0x73, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x10, 0x0a, 0x03, 0x70, 0x69, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, 0x70, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x74, - 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, 0x74, 0x69, 0x64, 0x12, 0x12, 0x0a, - 0x04, 0x70, 0x70, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x70, 0x70, 0x69, - 0x64, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x6f, 0x6f, 0x6b, 0x69, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x0d, 0x52, 0x06, 0x63, 0x6f, 0x6f, 0x6b, 0x69, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x69, 0x73, 0x5f, - 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x69, 0x73, - 0x54, 0x68, 0x72, 0x65, 0x61, 0x64, 0x12, 0x31, 0x0a, 0x04, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x06, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x63, - 0x77, 0x73, 0x2e, 0x64, 0x75, 0x6d, 0x70, 0x73, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x49, - 0x6e, 0x66, 0x6f, 0x52, 0x04, 0x66, 0x69, 0x6c, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6f, 0x6e, - 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, - 0x73, 0x70, 0x61, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x73, - 0x70, 0x61, 0x6e, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x72, 0x61, 0x63, 0x65, 0x5f, 0x69, - 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x74, 0x72, 0x61, 0x63, 0x65, 0x49, 0x64, - 0x12, 0x10, 0x0a, 0x03, 0x74, 0x74, 0x79, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x74, - 0x74, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x6d, 0x6d, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x04, 0x63, 0x6f, 0x6d, 0x6d, 0x12, 0x1b, 0x0a, 0x09, 0x66, 0x6f, 0x72, 0x6b, 0x5f, 0x74, - 0x69, 0x6d, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x66, 0x6f, 0x72, 0x6b, 0x54, - 0x69, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x78, 0x69, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, - 0x18, 0x0d, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x65, 0x78, 0x69, 0x74, 0x54, 0x69, 0x6d, 0x65, - 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x78, 0x65, 0x63, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x0e, 0x20, - 0x01, 0x28, 0x04, 0x52, 0x08, 0x65, 0x78, 0x65, 0x63, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x42, 0x0a, - 0x0b, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x18, 0x0f, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x63, 0x77, 0x73, - 0x2e, 0x64, 0x75, 0x6d, 0x70, 0x73, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, - 0x69, 0x61, 0x6c, 0x73, 0x52, 0x0b, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, - 0x73, 0x12, 0x12, 0x0a, 0x04, 0x61, 0x72, 0x67, 0x73, 0x18, 0x10, 0x20, 0x03, 0x28, 0x09, 0x52, - 0x04, 0x61, 0x72, 0x67, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x72, 0x67, 0x76, 0x30, 0x18, 0x11, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x72, 0x67, 0x76, 0x30, 0x12, 0x25, 0x0a, 0x0e, 0x61, - 0x72, 0x67, 0x73, 0x5f, 0x74, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x64, 0x18, 0x12, 0x20, - 0x01, 0x28, 0x08, 0x52, 0x0d, 0x61, 0x72, 0x67, 0x73, 0x54, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, - 0x65, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x65, 0x6e, 0x76, 0x73, 0x18, 0x13, 0x20, 0x03, 0x28, 0x09, - 0x52, 0x04, 0x65, 0x6e, 0x76, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x65, 0x6e, 0x76, 0x73, 0x5f, 0x74, - 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x64, 0x18, 0x14, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, - 0x65, 0x6e, 0x76, 0x73, 0x54, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x64, 0x22, 0xa8, 0x03, - 0x0a, 0x10, 0x46, 0x69, 0x6c, 0x65, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x4e, 0x6f, - 0x64, 0x65, 0x12, 0x45, 0x0a, 0x0d, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x64, 0x5f, 0x72, 0x75, + 0x73, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, + 0x70, 0x65, 0x52, 0x0e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, + 0x70, 0x65, 0x12, 0x45, 0x0a, 0x0d, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x64, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x63, 0x77, 0x73, 0x2e, 0x64, 0x75, 0x6d, 0x70, 0x73, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x64, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x0c, 0x6d, 0x61, 0x74, - 0x63, 0x68, 0x65, 0x64, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, - 0x0a, 0x69, 0x73, 0x5f, 0x70, 0x61, 0x74, 0x74, 0x65, 0x72, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, - 0x08, 0x52, 0x09, 0x69, 0x73, 0x50, 0x61, 0x74, 0x74, 0x65, 0x72, 0x6e, 0x12, 0x31, 0x0a, 0x04, - 0x66, 0x69, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x64, 0x61, 0x74, - 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x63, 0x77, 0x73, 0x2e, 0x64, 0x75, 0x6d, 0x70, 0x73, 0x76, 0x31, - 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x04, 0x66, 0x69, 0x6c, 0x65, 0x12, - 0x4c, 0x0a, 0x0f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x79, - 0x70, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x23, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, - 0x6f, 0x67, 0x2e, 0x63, 0x77, 0x73, 0x2e, 0x64, 0x75, 0x6d, 0x70, 0x73, 0x76, 0x31, 0x2e, 0x47, - 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0e, 0x67, - 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1d, 0x0a, - 0x0a, 0x66, 0x69, 0x72, 0x73, 0x74, 0x5f, 0x73, 0x65, 0x65, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x04, 0x52, 0x09, 0x66, 0x69, 0x72, 0x73, 0x74, 0x53, 0x65, 0x65, 0x6e, 0x12, 0x31, 0x0a, 0x04, - 0x6f, 0x70, 0x65, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x64, 0x61, 0x74, - 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x63, 0x77, 0x73, 0x2e, 0x64, 0x75, 0x6d, 0x70, 0x73, 0x76, 0x31, - 0x2e, 0x4f, 0x70, 0x65, 0x6e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x6f, 0x70, 0x65, 0x6e, 0x12, - 0x41, 0x0a, 0x08, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x72, 0x65, 0x6e, 0x18, 0x06, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x25, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x63, 0x77, 0x73, 0x2e, - 0x64, 0x75, 0x6d, 0x70, 0x73, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x41, 0x63, 0x74, 0x69, - 0x76, 0x69, 0x74, 0x79, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x08, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x72, - 0x65, 0x6e, 0x4a, 0x04, 0x08, 0x03, 0x10, 0x04, 0x22, 0x4c, 0x0a, 0x08, 0x4f, 0x70, 0x65, 0x6e, - 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x74, 0x76, 0x61, 0x6c, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x12, 0x52, 0x06, 0x72, 0x65, 0x74, 0x76, 0x61, 0x6c, 0x12, 0x14, 0x0a, 0x05, - 0x66, 0x6c, 0x61, 0x67, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x66, 0x6c, 0x61, - 0x67, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, - 0x52, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x22, 0x8a, 0x01, 0x0a, 0x07, 0x44, 0x4e, 0x53, 0x4e, 0x6f, - 0x64, 0x65, 0x12, 0x45, 0x0a, 0x0d, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x64, 0x5f, 0x72, 0x75, - 0x6c, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x64, 0x61, 0x74, 0x61, - 0x64, 0x6f, 0x67, 0x2e, 0x63, 0x77, 0x73, 0x2e, 0x64, 0x75, 0x6d, 0x70, 0x73, 0x76, 0x31, 0x2e, - 0x4d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x64, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x0c, 0x6d, 0x61, 0x74, - 0x63, 0x68, 0x65, 0x64, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x12, 0x38, 0x0a, 0x08, 0x72, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x64, 0x61, - 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x63, 0x77, 0x73, 0x2e, 0x64, 0x75, 0x6d, 0x70, 0x73, 0x76, - 0x31, 0x2e, 0x44, 0x4e, 0x53, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x08, 0x72, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x73, 0x22, 0x71, 0x0a, 0x07, 0x44, 0x4e, 0x53, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x12, - 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, - 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, - 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, - 0x73, 0x69, 0x7a, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, - 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52, - 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0xba, 0x03, 0x0a, 0x08, 0x46, 0x69, 0x6c, 0x65, 0x49, - 0x6e, 0x66, 0x6f, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, - 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x10, 0x0a, 0x03, 0x67, 0x69, 0x64, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, 0x67, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x67, - 0x72, 0x6f, 0x75, 0x70, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x67, 0x72, 0x6f, 0x75, - 0x70, 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52, - 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x06, - 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x63, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x6d, - 0x74, 0x69, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x6d, 0x74, 0x69, 0x6d, - 0x65, 0x12, 0x19, 0x0a, 0x08, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x08, 0x20, - 0x01, 0x28, 0x0d, 0x52, 0x07, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, - 0x69, 0x6e, 0x6f, 0x64, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x69, 0x6e, 0x6f, - 0x64, 0x65, 0x12, 0x24, 0x0a, 0x0e, 0x69, 0x6e, 0x5f, 0x75, 0x70, 0x70, 0x65, 0x72, 0x5f, 0x6c, - 0x61, 0x79, 0x65, 0x72, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x69, 0x6e, 0x55, 0x70, - 0x70, 0x65, 0x72, 0x4c, 0x61, 0x79, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, - 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x1a, 0x0a, 0x08, - 0x62, 0x61, 0x73, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, - 0x62, 0x61, 0x73, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x66, 0x69, 0x6c, 0x65, - 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x66, 0x69, - 0x6c, 0x65, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x61, 0x63, 0x6b, - 0x61, 0x67, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, - 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x70, - 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x0f, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x56, 0x65, 0x72, - 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x2d, 0x0a, 0x12, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x5f, - 0x73, 0x72, 0x63, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x10, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x11, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x53, 0x72, 0x63, 0x76, 0x65, 0x72, 0x73, - 0x69, 0x6f, 0x6e, 0x22, 0xa1, 0x03, 0x0a, 0x0b, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, - 0x61, 0x6c, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, - 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x67, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0d, 0x52, 0x03, 0x67, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x67, - 0x72, 0x6f, 0x75, 0x70, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x67, 0x72, 0x6f, 0x75, - 0x70, 0x12, 0x23, 0x0a, 0x0d, 0x65, 0x66, 0x66, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x75, - 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0c, 0x65, 0x66, 0x66, 0x65, 0x63, 0x74, - 0x69, 0x76, 0x65, 0x55, 0x69, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x65, 0x66, 0x66, 0x65, 0x63, 0x74, - 0x69, 0x76, 0x65, 0x5f, 0x67, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0c, 0x65, - 0x66, 0x66, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x47, 0x69, 0x64, 0x12, 0x25, 0x0a, 0x0e, 0x65, - 0x66, 0x66, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x18, 0x07, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0d, 0x65, 0x66, 0x66, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x55, 0x73, - 0x65, 0x72, 0x12, 0x27, 0x0a, 0x0f, 0x65, 0x66, 0x66, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x5f, - 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x65, 0x66, 0x66, - 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x15, 0x0a, 0x06, 0x66, - 0x73, 0x5f, 0x75, 0x69, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x66, 0x73, 0x55, - 0x69, 0x64, 0x12, 0x15, 0x0a, 0x06, 0x66, 0x73, 0x5f, 0x67, 0x69, 0x64, 0x18, 0x0a, 0x20, 0x01, - 0x28, 0x0d, 0x52, 0x05, 0x66, 0x73, 0x47, 0x69, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x66, 0x73, 0x5f, - 0x75, 0x73, 0x65, 0x72, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x73, 0x55, 0x73, - 0x65, 0x72, 0x12, 0x19, 0x0a, 0x08, 0x66, 0x73, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x0c, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x66, 0x73, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x23, 0x0a, - 0x0d, 0x63, 0x61, 0x70, 0x5f, 0x65, 0x66, 0x66, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x18, 0x0d, - 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x63, 0x61, 0x70, 0x45, 0x66, 0x66, 0x65, 0x63, 0x74, 0x69, - 0x76, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x61, 0x70, 0x5f, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x74, - 0x74, 0x65, 0x64, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x63, 0x61, 0x70, 0x50, 0x65, - 0x72, 0x6d, 0x69, 0x74, 0x74, 0x65, 0x64, 0x22, 0x57, 0x0a, 0x0a, 0x53, 0x6f, 0x63, 0x6b, 0x65, - 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x61, 0x6d, 0x69, 0x6c, 0x79, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x61, 0x6d, 0x69, 0x6c, 0x79, 0x12, 0x31, 0x0a, - 0x04, 0x62, 0x69, 0x6e, 0x64, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x64, 0x61, + 0x63, 0x68, 0x65, 0x64, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x12, 0x44, 0x0a, 0x08, 0x63, 0x68, 0x69, + 0x6c, 0x64, 0x72, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x63, 0x77, 0x73, 0x2e, 0x64, 0x75, 0x6d, 0x70, 0x73, 0x76, - 0x31, 0x2e, 0x42, 0x69, 0x6e, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x62, 0x69, 0x6e, 0x64, - 0x22, 0x75, 0x0a, 0x08, 0x42, 0x69, 0x6e, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x45, 0x0a, 0x0d, - 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x64, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x18, 0x03, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x63, 0x77, - 0x73, 0x2e, 0x64, 0x75, 0x6d, 0x70, 0x73, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x65, - 0x64, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x0c, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x64, 0x52, 0x75, - 0x6c, 0x65, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0d, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x70, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x70, 0x22, 0x9b, 0x02, 0x0a, 0x0b, 0x4d, 0x61, 0x74, 0x63, - 0x68, 0x65, 0x64, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x72, 0x75, 0x6c, 0x65, 0x5f, - 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x75, 0x6c, 0x65, 0x49, 0x64, - 0x12, 0x21, 0x0a, 0x0c, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x72, 0x75, 0x6c, 0x65, 0x56, 0x65, 0x72, 0x73, - 0x69, 0x6f, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5f, 0x6e, 0x61, - 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, - 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5f, 0x76, - 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x70, 0x6f, - 0x6c, 0x69, 0x63, 0x79, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x4b, 0x0a, 0x09, 0x72, - 0x75, 0x6c, 0x65, 0x5f, 0x74, 0x61, 0x67, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e, + 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, + 0x79, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x08, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x72, 0x65, 0x6e, 0x12, + 0x3b, 0x0a, 0x05, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, + 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x63, 0x77, 0x73, 0x2e, 0x64, 0x75, 0x6d, + 0x70, 0x73, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, + 0x79, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x05, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x12, 0x39, 0x0a, 0x09, + 0x64, 0x6e, 0x73, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x1c, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x63, 0x77, 0x73, 0x2e, 0x64, 0x75, + 0x6d, 0x70, 0x73, 0x76, 0x31, 0x2e, 0x44, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x08, 0x64, + 0x6e, 0x73, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x39, 0x0a, 0x07, 0x73, 0x6f, 0x63, 0x6b, 0x65, + 0x74, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, + 0x6f, 0x67, 0x2e, 0x63, 0x77, 0x73, 0x2e, 0x64, 0x75, 0x6d, 0x70, 0x73, 0x76, 0x31, 0x2e, 0x53, + 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x07, 0x73, 0x6f, 0x63, 0x6b, 0x65, + 0x74, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x79, 0x73, 0x63, 0x61, 0x6c, 0x6c, 0x73, 0x18, 0x07, + 0x20, 0x03, 0x28, 0x0d, 0x52, 0x08, 0x73, 0x79, 0x73, 0x63, 0x61, 0x6c, 0x6c, 0x73, 0x4a, 0x04, + 0x08, 0x02, 0x10, 0x03, 0x22, 0xd1, 0x04, 0x0a, 0x0b, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, + 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x10, 0x0a, 0x03, 0x70, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0d, 0x52, 0x03, 0x70, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x69, 0x64, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0d, 0x52, 0x03, 0x74, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x70, 0x69, 0x64, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x70, 0x70, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, + 0x63, 0x6f, 0x6f, 0x6b, 0x69, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x63, 0x6f, + 0x6f, 0x6b, 0x69, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x69, 0x73, 0x5f, 0x74, 0x68, 0x72, 0x65, 0x61, + 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x69, 0x73, 0x54, 0x68, 0x72, 0x65, 0x61, + 0x64, 0x12, 0x31, 0x0a, 0x04, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1d, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x63, 0x77, 0x73, 0x2e, 0x64, 0x75, + 0x6d, 0x70, 0x73, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x04, + 0x66, 0x69, 0x6c, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, + 0x72, 0x5f, 0x69, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x74, + 0x61, 0x69, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x70, 0x61, 0x6e, 0x5f, + 0x69, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x73, 0x70, 0x61, 0x6e, 0x49, 0x64, + 0x12, 0x19, 0x0a, 0x08, 0x74, 0x72, 0x61, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x09, 0x20, 0x01, + 0x28, 0x04, 0x52, 0x07, 0x74, 0x72, 0x61, 0x63, 0x65, 0x49, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x74, + 0x74, 0x79, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x74, 0x74, 0x79, 0x12, 0x12, 0x0a, + 0x04, 0x63, 0x6f, 0x6d, 0x6d, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x6f, 0x6d, + 0x6d, 0x12, 0x1b, 0x0a, 0x09, 0x66, 0x6f, 0x72, 0x6b, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x0c, + 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x66, 0x6f, 0x72, 0x6b, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1b, + 0x0a, 0x09, 0x65, 0x78, 0x69, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28, + 0x04, 0x52, 0x08, 0x65, 0x78, 0x69, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x65, + 0x78, 0x65, 0x63, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, + 0x65, 0x78, 0x65, 0x63, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x42, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x64, + 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, + 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x63, 0x77, 0x73, 0x2e, 0x64, 0x75, 0x6d, 0x70, + 0x73, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x52, + 0x0b, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x12, 0x12, 0x0a, 0x04, + 0x61, 0x72, 0x67, 0x73, 0x18, 0x10, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x61, 0x72, 0x67, 0x73, + 0x12, 0x14, 0x0a, 0x05, 0x61, 0x72, 0x67, 0x76, 0x30, 0x18, 0x11, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x05, 0x61, 0x72, 0x67, 0x76, 0x30, 0x12, 0x25, 0x0a, 0x0e, 0x61, 0x72, 0x67, 0x73, 0x5f, 0x74, + 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x64, 0x18, 0x12, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, + 0x61, 0x72, 0x67, 0x73, 0x54, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x64, 0x12, 0x12, 0x0a, + 0x04, 0x65, 0x6e, 0x76, 0x73, 0x18, 0x13, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x65, 0x6e, 0x76, + 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x65, 0x6e, 0x76, 0x73, 0x5f, 0x74, 0x72, 0x75, 0x6e, 0x63, 0x61, + 0x74, 0x65, 0x64, 0x18, 0x14, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x65, 0x6e, 0x76, 0x73, 0x54, + 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x64, 0x22, 0xa8, 0x03, 0x0a, 0x10, 0x46, 0x69, 0x6c, + 0x65, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x45, 0x0a, + 0x0d, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x64, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x18, 0x09, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x63, + 0x77, 0x73, 0x2e, 0x64, 0x75, 0x6d, 0x70, 0x73, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x74, 0x63, 0x68, + 0x65, 0x64, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x0c, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x64, 0x52, + 0x75, 0x6c, 0x65, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x73, 0x5f, 0x70, + 0x61, 0x74, 0x74, 0x65, 0x72, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x69, 0x73, + 0x50, 0x61, 0x74, 0x74, 0x65, 0x72, 0x6e, 0x12, 0x31, 0x0a, 0x04, 0x66, 0x69, 0x6c, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, + 0x63, 0x77, 0x73, 0x2e, 0x64, 0x75, 0x6d, 0x70, 0x73, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x65, + 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x04, 0x66, 0x69, 0x6c, 0x65, 0x12, 0x4c, 0x0a, 0x0f, 0x67, 0x65, + 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x08, 0x20, + 0x01, 0x28, 0x0e, 0x32, 0x23, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x63, 0x77, + 0x73, 0x2e, 0x64, 0x75, 0x6d, 0x70, 0x73, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x66, 0x69, 0x72, 0x73, + 0x74, 0x5f, 0x73, 0x65, 0x65, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x66, 0x69, + 0x72, 0x73, 0x74, 0x53, 0x65, 0x65, 0x6e, 0x12, 0x31, 0x0a, 0x04, 0x6f, 0x70, 0x65, 0x6e, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, + 0x63, 0x77, 0x73, 0x2e, 0x64, 0x75, 0x6d, 0x70, 0x73, 0x76, 0x31, 0x2e, 0x4f, 0x70, 0x65, 0x6e, + 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x6f, 0x70, 0x65, 0x6e, 0x12, 0x41, 0x0a, 0x08, 0x63, 0x68, + 0x69, 0x6c, 0x64, 0x72, 0x65, 0x6e, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x64, + 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x63, 0x77, 0x73, 0x2e, 0x64, 0x75, 0x6d, 0x70, 0x73, + 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x4e, + 0x6f, 0x64, 0x65, 0x52, 0x08, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x72, 0x65, 0x6e, 0x4a, 0x04, 0x08, + 0x03, 0x10, 0x04, 0x22, 0x4c, 0x0a, 0x08, 0x4f, 0x70, 0x65, 0x6e, 0x4e, 0x6f, 0x64, 0x65, 0x12, + 0x16, 0x0a, 0x06, 0x72, 0x65, 0x74, 0x76, 0x61, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x12, 0x52, + 0x06, 0x72, 0x65, 0x74, 0x76, 0x61, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x66, 0x6c, 0x61, 0x67, 0x73, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x66, 0x6c, 0x61, 0x67, 0x73, 0x12, 0x12, 0x0a, + 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x6d, 0x6f, 0x64, + 0x65, 0x22, 0x8a, 0x01, 0x0a, 0x07, 0x44, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x45, 0x0a, + 0x0d, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x64, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x18, 0x02, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x63, + 0x77, 0x73, 0x2e, 0x64, 0x75, 0x6d, 0x70, 0x73, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x74, 0x63, 0x68, + 0x65, 0x64, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x0c, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x64, 0x52, + 0x75, 0x6c, 0x65, 0x73, 0x12, 0x38, 0x0a, 0x08, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, + 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, + 0x2e, 0x63, 0x77, 0x73, 0x2e, 0x64, 0x75, 0x6d, 0x70, 0x73, 0x76, 0x31, 0x2e, 0x44, 0x4e, 0x53, + 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x08, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x22, 0x71, + 0x0a, 0x07, 0x44, 0x4e, 0x53, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, + 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x74, 0x79, 0x70, + 0x65, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, + 0x52, 0x05, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x63, + 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, + 0x74, 0x22, 0xba, 0x03, 0x0a, 0x08, 0x46, 0x69, 0x6c, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x10, + 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, 0x75, 0x69, 0x64, + 0x12, 0x12, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, + 0x75, 0x73, 0x65, 0x72, 0x12, 0x10, 0x0a, 0x03, 0x67, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x0d, 0x52, 0x03, 0x67, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x12, 0x0a, 0x04, + 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x6d, 0x6f, 0x64, 0x65, + 0x12, 0x14, 0x0a, 0x05, 0x63, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, + 0x05, 0x63, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x6d, 0x74, 0x69, 0x6d, 0x65, 0x18, + 0x07, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x6d, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x19, 0x0a, 0x08, + 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, + 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6e, 0x6f, 0x64, 0x65, + 0x18, 0x09, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x69, 0x6e, 0x6f, 0x64, 0x65, 0x12, 0x24, 0x0a, + 0x0e, 0x69, 0x6e, 0x5f, 0x75, 0x70, 0x70, 0x65, 0x72, 0x5f, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x18, + 0x0a, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x69, 0x6e, 0x55, 0x70, 0x70, 0x65, 0x72, 0x4c, 0x61, + 0x79, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x0b, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x1a, 0x0a, 0x08, 0x62, 0x61, 0x73, 0x65, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x62, 0x61, 0x73, 0x65, 0x6e, + 0x61, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x79, 0x73, 0x74, 0x65, + 0x6d, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x79, 0x73, + 0x74, 0x65, 0x6d, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x5f, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x70, 0x61, 0x63, 0x6b, 0x61, + 0x67, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, + 0x65, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0e, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, + 0x2d, 0x0a, 0x12, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x72, 0x63, 0x76, 0x65, + 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x10, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x70, 0x61, 0x63, + 0x6b, 0x61, 0x67, 0x65, 0x53, 0x72, 0x63, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0xa1, + 0x03, 0x0a, 0x0b, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x12, 0x10, + 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, 0x75, 0x69, 0x64, + 0x12, 0x10, 0x0a, 0x03, 0x67, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, 0x67, + 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x23, 0x0a, 0x0d, + 0x65, 0x66, 0x66, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x75, 0x69, 0x64, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x0d, 0x52, 0x0c, 0x65, 0x66, 0x66, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x55, 0x69, + 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x65, 0x66, 0x66, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x67, + 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0c, 0x65, 0x66, 0x66, 0x65, 0x63, 0x74, + 0x69, 0x76, 0x65, 0x47, 0x69, 0x64, 0x12, 0x25, 0x0a, 0x0e, 0x65, 0x66, 0x66, 0x65, 0x63, 0x74, + 0x69, 0x76, 0x65, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, + 0x65, 0x66, 0x66, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x55, 0x73, 0x65, 0x72, 0x12, 0x27, 0x0a, + 0x0f, 0x65, 0x66, 0x66, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, + 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x65, 0x66, 0x66, 0x65, 0x63, 0x74, 0x69, 0x76, + 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x15, 0x0a, 0x06, 0x66, 0x73, 0x5f, 0x75, 0x69, 0x64, + 0x18, 0x09, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x66, 0x73, 0x55, 0x69, 0x64, 0x12, 0x15, 0x0a, + 0x06, 0x66, 0x73, 0x5f, 0x67, 0x69, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x66, + 0x73, 0x47, 0x69, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x66, 0x73, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x18, + 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x73, 0x55, 0x73, 0x65, 0x72, 0x12, 0x19, 0x0a, + 0x08, 0x66, 0x73, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x07, 0x66, 0x73, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x61, 0x70, 0x5f, + 0x65, 0x66, 0x66, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x04, 0x52, + 0x0c, 0x63, 0x61, 0x70, 0x45, 0x66, 0x66, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x12, 0x23, 0x0a, + 0x0d, 0x63, 0x61, 0x70, 0x5f, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x74, 0x74, 0x65, 0x64, 0x18, 0x0e, + 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x63, 0x61, 0x70, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x74, 0x74, + 0x65, 0x64, 0x22, 0x57, 0x0a, 0x0a, 0x53, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x4e, 0x6f, 0x64, 0x65, + 0x12, 0x16, 0x0a, 0x06, 0x66, 0x61, 0x6d, 0x69, 0x6c, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x06, 0x66, 0x61, 0x6d, 0x69, 0x6c, 0x79, 0x12, 0x31, 0x0a, 0x04, 0x62, 0x69, 0x6e, 0x64, + 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, + 0x2e, 0x63, 0x77, 0x73, 0x2e, 0x64, 0x75, 0x6d, 0x70, 0x73, 0x76, 0x31, 0x2e, 0x42, 0x69, 0x6e, + 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x62, 0x69, 0x6e, 0x64, 0x22, 0x75, 0x0a, 0x08, 0x42, + 0x69, 0x6e, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x45, 0x0a, 0x0d, 0x6d, 0x61, 0x74, 0x63, 0x68, + 0x65, 0x64, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x63, 0x77, 0x73, 0x2e, 0x64, 0x75, 0x6d, 0x70, 0x73, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x64, 0x52, 0x75, 0x6c, 0x65, - 0x2e, 0x52, 0x75, 0x6c, 0x65, 0x54, 0x61, 0x67, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, - 0x72, 0x75, 0x6c, 0x65, 0x54, 0x61, 0x67, 0x73, 0x1a, 0x3b, 0x0a, 0x0d, 0x52, 0x75, 0x6c, 0x65, - 0x54, 0x61, 0x67, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x3a, 0x02, 0x38, 0x01, 0x2a, 0x38, 0x0a, 0x0e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, - 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x55, 0x4e, 0x54, 0x49, 0x4d, 0x45, 0x10, - 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x53, 0x4e, 0x41, 0x50, 0x53, 0x48, 0x4f, 0x54, 0x10, 0x02, 0x42, - 0x55, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x64, 0x64, 0x2e, 0x63, 0x77, 0x73, 0x2e, 0x61, 0x64, - 0x76, 0x31, 0x2e, 0x70, 0x62, 0x42, 0x0c, 0x53, 0x65, 0x63, 0x44, 0x75, 0x6d, 0x70, 0x50, 0x72, - 0x6f, 0x74, 0x6f, 0x50, 0x00, 0x5a, 0x2f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, - 0x6d, 0x2f, 0x44, 0x61, 0x74, 0x61, 0x44, 0x6f, 0x67, 0x2f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2d, - 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2f, 0x76, 0x35, 0x2f, 0x63, 0x77, 0x73, 0x2f, 0x64, - 0x75, 0x6d, 0x70, 0x73, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x52, 0x0c, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x64, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x12, 0x12, + 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x70, 0x6f, + 0x72, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, + 0x69, 0x70, 0x22, 0x9b, 0x02, 0x0a, 0x0b, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x64, 0x52, 0x75, + 0x6c, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x75, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x72, + 0x75, 0x6c, 0x65, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0b, 0x72, 0x75, 0x6c, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1f, + 0x0a, 0x0b, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, + 0x25, 0x0a, 0x0e, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, + 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x56, + 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x4b, 0x0a, 0x09, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x74, + 0x61, 0x67, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x64, 0x61, 0x74, 0x61, + 0x64, 0x6f, 0x67, 0x2e, 0x63, 0x77, 0x73, 0x2e, 0x64, 0x75, 0x6d, 0x70, 0x73, 0x76, 0x31, 0x2e, + 0x4d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x64, 0x52, 0x75, 0x6c, 0x65, 0x2e, 0x52, 0x75, 0x6c, 0x65, + 0x54, 0x61, 0x67, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, 0x72, 0x75, 0x6c, 0x65, 0x54, + 0x61, 0x67, 0x73, 0x1a, 0x3b, 0x0a, 0x0d, 0x52, 0x75, 0x6c, 0x65, 0x54, 0x61, 0x67, 0x73, 0x45, + 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, + 0x2a, 0x38, 0x0a, 0x0e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, + 0x70, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, + 0x0b, 0x0a, 0x07, 0x52, 0x55, 0x4e, 0x54, 0x49, 0x4d, 0x45, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, + 0x53, 0x4e, 0x41, 0x50, 0x53, 0x48, 0x4f, 0x54, 0x10, 0x02, 0x42, 0x55, 0x0a, 0x12, 0x63, 0x6f, + 0x6d, 0x2e, 0x64, 0x64, 0x2e, 0x63, 0x77, 0x73, 0x2e, 0x61, 0x64, 0x76, 0x31, 0x2e, 0x70, 0x62, + 0x42, 0x0c, 0x53, 0x65, 0x63, 0x44, 0x75, 0x6d, 0x70, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x00, + 0x5a, 0x2f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x44, 0x61, 0x74, + 0x61, 0x44, 0x6f, 0x67, 0x2f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2d, 0x70, 0x61, 0x79, 0x6c, 0x6f, + 0x61, 0x64, 0x2f, 0x76, 0x35, 0x2f, 0x63, 0x77, 0x73, 0x2f, 0x64, 0x75, 0x6d, 0x70, 0x73, 0x76, + 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -1805,7 +1805,7 @@ var file_proto_cws_dumpsv1_activity_dump_proto_enumTypes = make([]protoimpl.Enum var file_proto_cws_dumpsv1_activity_dump_proto_msgTypes = make([]protoimpl.MessageInfo, 15) var file_proto_cws_dumpsv1_activity_dump_proto_goTypes = []interface{}{ (GenerationType)(0), // 0: datadog.cws.dumpsv1.GenerationType - (*ActivityDump)(nil), // 1: datadog.cws.dumpsv1.ActivityDump + (*SecDump)(nil), // 1: datadog.cws.dumpsv1.SecDump (*Metadata)(nil), // 2: datadog.cws.dumpsv1.Metadata (*SecurityProfile)(nil), // 3: datadog.cws.dumpsv1.SecurityProfile (*ProcessActivityNode)(nil), // 4: datadog.cws.dumpsv1.ProcessActivityNode @@ -1822,8 +1822,8 @@ var file_proto_cws_dumpsv1_activity_dump_proto_goTypes = []interface{}{ nil, // 15: datadog.cws.dumpsv1.MatchedRule.RuleTagsEntry } var file_proto_cws_dumpsv1_activity_dump_proto_depIdxs = []int32{ - 2, // 0: datadog.cws.dumpsv1.ActivityDump.metadata:type_name -> datadog.cws.dumpsv1.Metadata - 4, // 1: datadog.cws.dumpsv1.ActivityDump.tree:type_name -> datadog.cws.dumpsv1.ProcessActivityNode + 2, // 0: datadog.cws.dumpsv1.SecDump.metadata:type_name -> datadog.cws.dumpsv1.Metadata + 4, // 1: datadog.cws.dumpsv1.SecDump.tree:type_name -> datadog.cws.dumpsv1.ProcessActivityNode 2, // 2: datadog.cws.dumpsv1.SecurityProfile.metadata:type_name -> datadog.cws.dumpsv1.Metadata 4, // 3: datadog.cws.dumpsv1.SecurityProfile.tree:type_name -> datadog.cws.dumpsv1.ProcessActivityNode 5, // 4: datadog.cws.dumpsv1.ProcessActivityNode.process:type_name -> datadog.cws.dumpsv1.ProcessInfo @@ -1859,7 +1859,7 @@ func file_proto_cws_dumpsv1_activity_dump_proto_init() { } if !protoimpl.UnsafeEnabled { file_proto_cws_dumpsv1_activity_dump_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ActivityDump); i { + switch v := v.(*SecDump); i { case 0: return &v.state case 1: diff --git a/cws/dumpsv1/activity_dump_vtproto.pb.go b/cws/dumpsv1/activity_dump_vtproto.pb.go index 1311e345..eb653a2d 100644 --- a/cws/dumpsv1/activity_dump_vtproto.pb.go +++ b/cws/dumpsv1/activity_dump_vtproto.pb.go @@ -19,7 +19,7 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -func (m *ActivityDump) MarshalVT() (dAtA []byte, err error) { +func (m *SecDump) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -32,12 +32,12 @@ func (m *ActivityDump) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *ActivityDump) MarshalToVT(dAtA []byte) (int, error) { +func (m *SecDump) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *ActivityDump) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *SecDump) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -1361,13 +1361,13 @@ func encodeVarint(dAtA []byte, offset int, v uint64) int { return base } -var vtprotoPool_ActivityDump = sync.Pool{ +var vtprotoPool_SecDump = sync.Pool{ New: func() interface{} { - return &ActivityDump{} + return &SecDump{} }, } -func (m *ActivityDump) ResetVT() { +func (m *SecDump) ResetVT() { f0 := m.Tags[:0] for _, mm := range m.Tree { mm.ResetVT() @@ -1375,14 +1375,14 @@ func (m *ActivityDump) ResetVT() { m.Reset() m.Tags = f0 } -func (m *ActivityDump) ReturnToVTPool() { +func (m *SecDump) ReturnToVTPool() { if m != nil { m.ResetVT() - vtprotoPool_ActivityDump.Put(m) + vtprotoPool_SecDump.Put(m) } } -func ActivityDumpFromVTPool() *ActivityDump { - return vtprotoPool_ActivityDump.Get().(*ActivityDump) +func SecDumpFromVTPool() *SecDump { + return vtprotoPool_SecDump.Get().(*SecDump) } var vtprotoPool_ProcessActivityNode = sync.Pool{ @@ -1478,7 +1478,7 @@ func (m *FileInfo) ReturnToVTPool() { func FileInfoFromVTPool() *FileInfo { return vtprotoPool_FileInfo.Get().(*FileInfo) } -func (m *ActivityDump) SizeVT() (n int) { +func (m *SecDump) SizeVT() (n int) { if m == nil { return 0 } @@ -2071,7 +2071,7 @@ func sov(x uint64) (n int) { func soz(x uint64) (n int) { return sov(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } -func (m *ActivityDump) UnmarshalVT(dAtA []byte) error { +func (m *SecDump) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2094,10 +2094,10 @@ func (m *ActivityDump) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ActivityDump: wiretype end group for non-group") + return fmt.Errorf("proto: SecDump: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ActivityDump: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: SecDump: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: diff --git a/java/com/dd/cws/adv1/pb/SecDumpProto.java b/java/com/dd/cws/adv1/pb/SecDumpProto.java index a7746883..d4b44cc3 100644 --- a/java/com/dd/cws/adv1/pb/SecDumpProto.java +++ b/java/com/dd/cws/adv1/pb/SecDumpProto.java @@ -131,8 +131,8 @@ private GenerationType(int value) { // @@protoc_insertion_point(enum_scope:datadog.cws.dumpsv1.GenerationType) } - public interface ActivityDumpOrBuilder extends - // @@protoc_insertion_point(interface_extends:datadog.cws.dumpsv1.ActivityDump) + public interface SecDumpOrBuilder extends + // @@protoc_insertion_point(interface_extends:datadog.cws.dumpsv1.SecDump) com.google.protobuf.MessageOrBuilder { /** @@ -236,18 +236,18 @@ com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNodeOrBuilder getTreeOrBuilder( int index); } /** - * Protobuf type {@code datadog.cws.dumpsv1.ActivityDump} + * Protobuf type {@code datadog.cws.dumpsv1.SecDump} */ - public static final class ActivityDump extends + public static final class SecDump extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:datadog.cws.dumpsv1.ActivityDump) - ActivityDumpOrBuilder { + // @@protoc_insertion_point(message_implements:datadog.cws.dumpsv1.SecDump) + SecDumpOrBuilder { private static final long serialVersionUID = 0L; - // Use ActivityDump.newBuilder() to construct. - private ActivityDump(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use SecDump.newBuilder() to construct. + private SecDump(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ActivityDump() { + private SecDump() { host_ = ""; service_ = ""; source_ = ""; @@ -259,7 +259,7 @@ private ActivityDump() { @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new ActivityDump(); + return new SecDump(); } @java.lang.Override @@ -269,15 +269,15 @@ protected java.lang.Object newInstance( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_ActivityDump_descriptor; + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_SecDump_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_ActivityDump_fieldAccessorTable + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_SecDump_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.dd.cws.adv1.pb.SecDumpProto.ActivityDump.class, com.dd.cws.adv1.pb.SecDumpProto.ActivityDump.Builder.class); + com.dd.cws.adv1.pb.SecDumpProto.SecDump.class, com.dd.cws.adv1.pb.SecDumpProto.SecDump.Builder.class); } public static final int HOST_FIELD_NUMBER = 1; @@ -576,10 +576,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.dd.cws.adv1.pb.SecDumpProto.ActivityDump)) { + if (!(obj instanceof com.dd.cws.adv1.pb.SecDumpProto.SecDump)) { return super.equals(obj); } - com.dd.cws.adv1.pb.SecDumpProto.ActivityDump other = (com.dd.cws.adv1.pb.SecDumpProto.ActivityDump) obj; + com.dd.cws.adv1.pb.SecDumpProto.SecDump other = (com.dd.cws.adv1.pb.SecDumpProto.SecDump) obj; if (!getHost() .equals(other.getHost())) return false; @@ -630,69 +630,69 @@ public int hashCode() { return hash; } - public static com.dd.cws.adv1.pb.SecDumpProto.ActivityDump parseFrom( + public static com.dd.cws.adv1.pb.SecDumpProto.SecDump parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.dd.cws.adv1.pb.SecDumpProto.ActivityDump parseFrom( + public static com.dd.cws.adv1.pb.SecDumpProto.SecDump parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.dd.cws.adv1.pb.SecDumpProto.ActivityDump parseFrom( + public static com.dd.cws.adv1.pb.SecDumpProto.SecDump parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.dd.cws.adv1.pb.SecDumpProto.ActivityDump parseFrom( + public static com.dd.cws.adv1.pb.SecDumpProto.SecDump parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.dd.cws.adv1.pb.SecDumpProto.ActivityDump parseFrom(byte[] data) + public static com.dd.cws.adv1.pb.SecDumpProto.SecDump parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.dd.cws.adv1.pb.SecDumpProto.ActivityDump parseFrom( + public static com.dd.cws.adv1.pb.SecDumpProto.SecDump parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.dd.cws.adv1.pb.SecDumpProto.ActivityDump parseFrom(java.io.InputStream input) + public static com.dd.cws.adv1.pb.SecDumpProto.SecDump parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.dd.cws.adv1.pb.SecDumpProto.ActivityDump parseFrom( + public static com.dd.cws.adv1.pb.SecDumpProto.SecDump parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.dd.cws.adv1.pb.SecDumpProto.ActivityDump parseDelimitedFrom(java.io.InputStream input) + public static com.dd.cws.adv1.pb.SecDumpProto.SecDump parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static com.dd.cws.adv1.pb.SecDumpProto.ActivityDump parseDelimitedFrom( + public static com.dd.cws.adv1.pb.SecDumpProto.SecDump parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.dd.cws.adv1.pb.SecDumpProto.ActivityDump parseFrom( + public static com.dd.cws.adv1.pb.SecDumpProto.SecDump parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.dd.cws.adv1.pb.SecDumpProto.ActivityDump parseFrom( + public static com.dd.cws.adv1.pb.SecDumpProto.SecDump parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -705,7 +705,7 @@ public static com.dd.cws.adv1.pb.SecDumpProto.ActivityDump parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.dd.cws.adv1.pb.SecDumpProto.ActivityDump prototype) { + public static Builder newBuilder(com.dd.cws.adv1.pb.SecDumpProto.SecDump prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -721,26 +721,26 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code datadog.cws.dumpsv1.ActivityDump} + * Protobuf type {@code datadog.cws.dumpsv1.SecDump} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:datadog.cws.dumpsv1.ActivityDump) - com.dd.cws.adv1.pb.SecDumpProto.ActivityDumpOrBuilder { + // @@protoc_insertion_point(builder_implements:datadog.cws.dumpsv1.SecDump) + com.dd.cws.adv1.pb.SecDumpProto.SecDumpOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_ActivityDump_descriptor; + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_SecDump_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_ActivityDump_fieldAccessorTable + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_SecDump_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.dd.cws.adv1.pb.SecDumpProto.ActivityDump.class, com.dd.cws.adv1.pb.SecDumpProto.ActivityDump.Builder.class); + com.dd.cws.adv1.pb.SecDumpProto.SecDump.class, com.dd.cws.adv1.pb.SecDumpProto.SecDump.Builder.class); } - // Construct using com.dd.cws.adv1.pb.SecDumpProto.ActivityDump.newBuilder() + // Construct using com.dd.cws.adv1.pb.SecDumpProto.SecDump.newBuilder() private Builder() { } @@ -777,17 +777,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_ActivityDump_descriptor; + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_SecDump_descriptor; } @java.lang.Override - public com.dd.cws.adv1.pb.SecDumpProto.ActivityDump getDefaultInstanceForType() { - return com.dd.cws.adv1.pb.SecDumpProto.ActivityDump.getDefaultInstance(); + public com.dd.cws.adv1.pb.SecDumpProto.SecDump getDefaultInstanceForType() { + return com.dd.cws.adv1.pb.SecDumpProto.SecDump.getDefaultInstance(); } @java.lang.Override - public com.dd.cws.adv1.pb.SecDumpProto.ActivityDump build() { - com.dd.cws.adv1.pb.SecDumpProto.ActivityDump result = buildPartial(); + public com.dd.cws.adv1.pb.SecDumpProto.SecDump build() { + com.dd.cws.adv1.pb.SecDumpProto.SecDump result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -795,15 +795,15 @@ public com.dd.cws.adv1.pb.SecDumpProto.ActivityDump build() { } @java.lang.Override - public com.dd.cws.adv1.pb.SecDumpProto.ActivityDump buildPartial() { - com.dd.cws.adv1.pb.SecDumpProto.ActivityDump result = new com.dd.cws.adv1.pb.SecDumpProto.ActivityDump(this); + public com.dd.cws.adv1.pb.SecDumpProto.SecDump buildPartial() { + com.dd.cws.adv1.pb.SecDumpProto.SecDump result = new com.dd.cws.adv1.pb.SecDumpProto.SecDump(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.dd.cws.adv1.pb.SecDumpProto.ActivityDump result) { + private void buildPartialRepeatedFields(com.dd.cws.adv1.pb.SecDumpProto.SecDump result) { if (((bitField0_ & 0x00000010) != 0)) { tags_ = tags_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000010); @@ -820,7 +820,7 @@ private void buildPartialRepeatedFields(com.dd.cws.adv1.pb.SecDumpProto.Activity } } - private void buildPartial0(com.dd.cws.adv1.pb.SecDumpProto.ActivityDump result) { + private void buildPartial0(com.dd.cws.adv1.pb.SecDumpProto.SecDump result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.host_ = host_; @@ -872,16 +872,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.dd.cws.adv1.pb.SecDumpProto.ActivityDump) { - return mergeFrom((com.dd.cws.adv1.pb.SecDumpProto.ActivityDump)other); + if (other instanceof com.dd.cws.adv1.pb.SecDumpProto.SecDump) { + return mergeFrom((com.dd.cws.adv1.pb.SecDumpProto.SecDump)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.dd.cws.adv1.pb.SecDumpProto.ActivityDump other) { - if (other == com.dd.cws.adv1.pb.SecDumpProto.ActivityDump.getDefaultInstance()) return this; + public Builder mergeFrom(com.dd.cws.adv1.pb.SecDumpProto.SecDump other) { + if (other == com.dd.cws.adv1.pb.SecDumpProto.SecDump.getDefaultInstance()) return this; if (!other.getHost().isEmpty()) { host_ = other.host_; bitField0_ |= 0x00000001; @@ -1711,23 +1711,23 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:datadog.cws.dumpsv1.ActivityDump) + // @@protoc_insertion_point(builder_scope:datadog.cws.dumpsv1.SecDump) } - // @@protoc_insertion_point(class_scope:datadog.cws.dumpsv1.ActivityDump) - private static final com.dd.cws.adv1.pb.SecDumpProto.ActivityDump DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:datadog.cws.dumpsv1.SecDump) + private static final com.dd.cws.adv1.pb.SecDumpProto.SecDump DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.dd.cws.adv1.pb.SecDumpProto.ActivityDump(); + DEFAULT_INSTANCE = new com.dd.cws.adv1.pb.SecDumpProto.SecDump(); } - public static com.dd.cws.adv1.pb.SecDumpProto.ActivityDump getDefaultInstance() { + public static com.dd.cws.adv1.pb.SecDumpProto.SecDump getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public ActivityDump parsePartialFrom( + public SecDump parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -1746,17 +1746,17 @@ public ActivityDump parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.dd.cws.adv1.pb.SecDumpProto.ActivityDump getDefaultInstanceForType() { + public com.dd.cws.adv1.pb.SecDumpProto.SecDump getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -22876,10 +22876,10 @@ public com.dd.cws.adv1.pb.SecDumpProto.MatchedRule getDefaultInstanceForType() { } private static final com.google.protobuf.Descriptors.Descriptor - internal_static_datadog_cws_dumpsv1_ActivityDump_descriptor; + internal_static_datadog_cws_dumpsv1_SecDump_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_datadog_cws_dumpsv1_ActivityDump_fieldAccessorTable; + internal_static_datadog_cws_dumpsv1_SecDump_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_datadog_cws_dumpsv1_Metadata_descriptor; private static final @@ -22960,98 +22960,98 @@ public com.dd.cws.adv1.pb.SecDumpProto.MatchedRule getDefaultInstanceForType() { static { java.lang.String[] descriptorData = { "\n%proto/cws/dumpsv1/activity_dump.proto\022" + - "\023datadog.cws.dumpsv1\"\264\001\n\014ActivityDump\022\014\n" + - "\004host\030\001 \001(\t\022\017\n\007service\030\002 \001(\t\022\016\n\006source\030\003" + - " \001(\t\022/\n\010metadata\030\004 \001(\0132\035.datadog.cws.dum" + - "psv1.Metadata\022\014\n\004tags\030\005 \003(\t\0226\n\004tree\030\006 \003(" + - "\0132(.datadog.cws.dumpsv1.ProcessActivityN" + - "ode\"\242\002\n\010Metadata\022\025\n\ragent_version\030\001 \001(\t\022" + - "\024\n\014agent_commit\030\002 \001(\t\022\026\n\016kernel_version\030" + - "\003 \001(\t\022\032\n\022linux_distribution\030\004 \001(\t\022\014\n\004arc" + - "h\030\r \001(\t\022\014\n\004name\030\005 \001(\t\022\030\n\020protobuf_versio" + - "n\030\006 \001(\t\022\032\n\022differentiate_args\030\007 \001(\010\022\014\n\004c" + - "omm\030\010 \001(\t\022\024\n\014container_id\030\t \001(\t\022\r\n\005start" + - "\030\n \001(\004\022\013\n\003end\030\013 \001(\004\022\014\n\004size\030\014 \001(\004\022\025\n\rser" + - "ialization\030\016 \001(\t\"\273\001\n\017SecurityProfile\022\016\n\006" + - "status\030\001 \001(\r\022\017\n\007version\030\002 \001(\t\022/\n\010metadat" + - "a\030\003 \001(\0132\035.datadog.cws.dumpsv1.Metadata\022\014" + - "\n\004tags\030\004 \003(\t\022\020\n\010syscalls\030\005 \003(\r\0226\n\004tree\030\006" + - " \003(\0132(.datadog.cws.dumpsv1.ProcessActivi" + - "tyNode\"\254\003\n\023ProcessActivityNode\0221\n\007proces" + - "s\030\001 \001(\0132 .datadog.cws.dumpsv1.ProcessInf" + - "o\022<\n\017generation_type\030\010 \001(\0162#.datadog.cws" + - ".dumpsv1.GenerationType\0227\n\rmatched_rules" + - "\030\t \003(\0132 .datadog.cws.dumpsv1.MatchedRule" + - "\022:\n\010children\030\003 \003(\0132(.datadog.cws.dumpsv1" + - ".ProcessActivityNode\0224\n\005files\030\004 \003(\0132%.da" + - "tadog.cws.dumpsv1.FileActivityNode\022/\n\tdn" + - "s_names\030\005 \003(\0132\034.datadog.cws.dumpsv1.DNSN" + - "ode\0220\n\007sockets\030\006 \003(\0132\037.datadog.cws.dumps" + - "v1.SocketNode\022\020\n\010syscalls\030\007 \003(\rJ\004\010\002\020\003\"\244\003" + - "\n\013ProcessInfo\022\013\n\003pid\030\001 \001(\r\022\013\n\003tid\030\002 \001(\r\022" + - "\014\n\004ppid\030\003 \001(\r\022\016\n\006cookie\030\004 \001(\r\022\021\n\tis_thre" + - "ad\030\005 \001(\010\022+\n\004file\030\006 \001(\0132\035.datadog.cws.dum" + - "psv1.FileInfo\022\024\n\014container_id\030\007 \001(\t\022\017\n\007s" + - "pan_id\030\010 \001(\004\022\020\n\010trace_id\030\t \001(\004\022\013\n\003tty\030\n " + - "\001(\t\022\014\n\004comm\030\013 \001(\t\022\021\n\tfork_time\030\014 \001(\004\022\021\n\t" + - "exit_time\030\r \001(\004\022\021\n\texec_time\030\016 \001(\004\0225\n\013cr" + - "edentials\030\017 \001(\0132 .datadog.cws.dumpsv1.Cr" + - "edentials\022\014\n\004args\030\020 \003(\t\022\r\n\005argv0\030\021 \001(\t\022\026" + - "\n\016args_truncated\030\022 \001(\010\022\014\n\004envs\030\023 \003(\t\022\026\n\016" + - "envs_truncated\030\024 \001(\010\"\330\002\n\020FileActivityNod" + - "e\0227\n\rmatched_rules\030\t \003(\0132 .datadog.cws.d" + - "umpsv1.MatchedRule\022\014\n\004name\030\001 \001(\t\022\022\n\nis_p" + - "attern\030\007 \001(\010\022+\n\004file\030\002 \001(\0132\035.datadog.cws" + - ".dumpsv1.FileInfo\022<\n\017generation_type\030\010 \001" + - "(\0162#.datadog.cws.dumpsv1.GenerationType\022" + - "\022\n\nfirst_seen\030\004 \001(\004\022+\n\004open\030\005 \001(\0132\035.data" + - "dog.cws.dumpsv1.OpenNode\0227\n\010children\030\006 \003" + - "(\0132%.datadog.cws.dumpsv1.FileActivityNod" + - "eJ\004\010\003\020\004\"7\n\010OpenNode\022\016\n\006retval\030\001 \001(\022\022\r\n\005f" + - "lags\030\002 \001(\r\022\014\n\004mode\030\003 \001(\r\"r\n\007DNSNode\0227\n\rm" + - "atched_rules\030\002 \003(\0132 .datadog.cws.dumpsv1" + - ".MatchedRule\022.\n\010requests\030\001 \003(\0132\034.datadog" + - ".cws.dumpsv1.DNSInfo\"Q\n\007DNSInfo\022\014\n\004name\030" + - "\001 \001(\t\022\014\n\004type\030\002 \001(\r\022\r\n\005class\030\003 \001(\r\022\014\n\004si" + - "ze\030\004 \001(\r\022\r\n\005count\030\005 \001(\r\"\245\002\n\010FileInfo\022\013\n\003" + - "uid\030\001 \001(\r\022\014\n\004user\030\002 \001(\t\022\013\n\003gid\030\003 \001(\r\022\r\n\005" + - "group\030\004 \001(\t\022\014\n\004mode\030\005 \001(\r\022\r\n\005ctime\030\006 \001(\004" + - "\022\r\n\005mtime\030\007 \001(\004\022\020\n\010mount_id\030\010 \001(\r\022\r\n\005ino" + - "de\030\t \001(\004\022\026\n\016in_upper_layer\030\n \001(\010\022\014\n\004path" + - "\030\013 \001(\t\022\020\n\010basename\030\014 \001(\t\022\022\n\nfilesystem\030\r" + - " \001(\t\022\024\n\014package_name\030\016 \001(\t\022\027\n\017package_ve" + - "rsion\030\017 \001(\t\022\032\n\022package_srcversion\030\020 \001(\t\"" + - "\224\002\n\013Credentials\022\013\n\003uid\030\001 \001(\r\022\013\n\003gid\030\002 \001(" + - "\r\022\014\n\004user\030\003 \001(\t\022\r\n\005group\030\004 \001(\t\022\025\n\reffect" + - "ive_uid\030\005 \001(\r\022\025\n\reffective_gid\030\006 \001(\r\022\026\n\016" + - "effective_user\030\007 \001(\t\022\027\n\017effective_group\030" + - "\010 \001(\t\022\016\n\006fs_uid\030\t \001(\r\022\016\n\006fs_gid\030\n \001(\r\022\017\n" + - "\007fs_user\030\013 \001(\t\022\020\n\010fs_group\030\014 \001(\t\022\025\n\rcap_" + - "effective\030\r \001(\004\022\025\n\rcap_permitted\030\016 \001(\004\"I" + - "\n\nSocketNode\022\016\n\006family\030\001 \001(\t\022+\n\004bind\030\002 \003" + - "(\0132\035.datadog.cws.dumpsv1.BindNode\"]\n\010Bin" + - "dNode\0227\n\rmatched_rules\030\003 \003(\0132 .datadog.c" + - "ws.dumpsv1.MatchedRule\022\014\n\004port\030\001 \001(\r\022\n\n\002" + - "ip\030\002 \001(\t\"\325\001\n\013MatchedRule\022\017\n\007rule_id\030\001 \001(" + - "\t\022\024\n\014rule_version\030\002 \001(\t\022\023\n\013policy_name\030\003" + - " \001(\t\022\026\n\016policy_version\030\004 \001(\t\022A\n\trule_tag" + - "s\030\005 \003(\0132..datadog.cws.dumpsv1.MatchedRul" + - "e.RuleTagsEntry\032/\n\rRuleTagsEntry\022\013\n\003key\030" + - "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001*8\n\016GenerationTy" + - "pe\022\013\n\007UNKNOWN\020\000\022\013\n\007RUNTIME\020\001\022\014\n\010SNAPSHOT" + - "\020\002BU\n\022com.dd.cws.adv1.pbB\014SecDumpProtoP\000" + - "Z/github.com/DataDog/agent-payload/v5/cw" + - "s/dumpsv1b\006proto3" + "\023datadog.cws.dumpsv1\"\257\001\n\007SecDump\022\014\n\004host" + + "\030\001 \001(\t\022\017\n\007service\030\002 \001(\t\022\016\n\006source\030\003 \001(\t\022" + + "/\n\010metadata\030\004 \001(\0132\035.datadog.cws.dumpsv1." + + "Metadata\022\014\n\004tags\030\005 \003(\t\0226\n\004tree\030\006 \003(\0132(.d" + + "atadog.cws.dumpsv1.ProcessActivityNode\"\242" + + "\002\n\010Metadata\022\025\n\ragent_version\030\001 \001(\t\022\024\n\014ag" + + "ent_commit\030\002 \001(\t\022\026\n\016kernel_version\030\003 \001(\t" + + "\022\032\n\022linux_distribution\030\004 \001(\t\022\014\n\004arch\030\r \001" + + "(\t\022\014\n\004name\030\005 \001(\t\022\030\n\020protobuf_version\030\006 \001" + + "(\t\022\032\n\022differentiate_args\030\007 \001(\010\022\014\n\004comm\030\010" + + " \001(\t\022\024\n\014container_id\030\t \001(\t\022\r\n\005start\030\n \001(" + + "\004\022\013\n\003end\030\013 \001(\004\022\014\n\004size\030\014 \001(\004\022\025\n\rserializ" + + "ation\030\016 \001(\t\"\273\001\n\017SecurityProfile\022\016\n\006statu" + + "s\030\001 \001(\r\022\017\n\007version\030\002 \001(\t\022/\n\010metadata\030\003 \001" + + "(\0132\035.datadog.cws.dumpsv1.Metadata\022\014\n\004tag" + + "s\030\004 \003(\t\022\020\n\010syscalls\030\005 \003(\r\0226\n\004tree\030\006 \003(\0132" + + "(.datadog.cws.dumpsv1.ProcessActivityNod" + + "e\"\254\003\n\023ProcessActivityNode\0221\n\007process\030\001 \001" + + "(\0132 .datadog.cws.dumpsv1.ProcessInfo\022<\n\017" + + "generation_type\030\010 \001(\0162#.datadog.cws.dump" + + "sv1.GenerationType\0227\n\rmatched_rules\030\t \003(" + + "\0132 .datadog.cws.dumpsv1.MatchedRule\022:\n\010c" + + "hildren\030\003 \003(\0132(.datadog.cws.dumpsv1.Proc" + + "essActivityNode\0224\n\005files\030\004 \003(\0132%.datadog" + + ".cws.dumpsv1.FileActivityNode\022/\n\tdns_nam" + + "es\030\005 \003(\0132\034.datadog.cws.dumpsv1.DNSNode\0220" + + "\n\007sockets\030\006 \003(\0132\037.datadog.cws.dumpsv1.So" + + "cketNode\022\020\n\010syscalls\030\007 \003(\rJ\004\010\002\020\003\"\244\003\n\013Pro" + + "cessInfo\022\013\n\003pid\030\001 \001(\r\022\013\n\003tid\030\002 \001(\r\022\014\n\004pp" + + "id\030\003 \001(\r\022\016\n\006cookie\030\004 \001(\r\022\021\n\tis_thread\030\005 " + + "\001(\010\022+\n\004file\030\006 \001(\0132\035.datadog.cws.dumpsv1." + + "FileInfo\022\024\n\014container_id\030\007 \001(\t\022\017\n\007span_i" + + "d\030\010 \001(\004\022\020\n\010trace_id\030\t \001(\004\022\013\n\003tty\030\n \001(\t\022\014" + + "\n\004comm\030\013 \001(\t\022\021\n\tfork_time\030\014 \001(\004\022\021\n\texit_" + + "time\030\r \001(\004\022\021\n\texec_time\030\016 \001(\004\0225\n\013credent" + + "ials\030\017 \001(\0132 .datadog.cws.dumpsv1.Credent" + + "ials\022\014\n\004args\030\020 \003(\t\022\r\n\005argv0\030\021 \001(\t\022\026\n\016arg" + + "s_truncated\030\022 \001(\010\022\014\n\004envs\030\023 \003(\t\022\026\n\016envs_" + + "truncated\030\024 \001(\010\"\330\002\n\020FileActivityNode\0227\n\r" + + "matched_rules\030\t \003(\0132 .datadog.cws.dumpsv" + + "1.MatchedRule\022\014\n\004name\030\001 \001(\t\022\022\n\nis_patter" + + "n\030\007 \001(\010\022+\n\004file\030\002 \001(\0132\035.datadog.cws.dump" + + "sv1.FileInfo\022<\n\017generation_type\030\010 \001(\0162#." + + "datadog.cws.dumpsv1.GenerationType\022\022\n\nfi" + + "rst_seen\030\004 \001(\004\022+\n\004open\030\005 \001(\0132\035.datadog.c" + + "ws.dumpsv1.OpenNode\0227\n\010children\030\006 \003(\0132%." + + "datadog.cws.dumpsv1.FileActivityNodeJ\004\010\003" + + "\020\004\"7\n\010OpenNode\022\016\n\006retval\030\001 \001(\022\022\r\n\005flags\030" + + "\002 \001(\r\022\014\n\004mode\030\003 \001(\r\"r\n\007DNSNode\0227\n\rmatche" + + "d_rules\030\002 \003(\0132 .datadog.cws.dumpsv1.Matc" + + "hedRule\022.\n\010requests\030\001 \003(\0132\034.datadog.cws." + + "dumpsv1.DNSInfo\"Q\n\007DNSInfo\022\014\n\004name\030\001 \001(\t" + + "\022\014\n\004type\030\002 \001(\r\022\r\n\005class\030\003 \001(\r\022\014\n\004size\030\004 " + + "\001(\r\022\r\n\005count\030\005 \001(\r\"\245\002\n\010FileInfo\022\013\n\003uid\030\001" + + " \001(\r\022\014\n\004user\030\002 \001(\t\022\013\n\003gid\030\003 \001(\r\022\r\n\005group" + + "\030\004 \001(\t\022\014\n\004mode\030\005 \001(\r\022\r\n\005ctime\030\006 \001(\004\022\r\n\005m" + + "time\030\007 \001(\004\022\020\n\010mount_id\030\010 \001(\r\022\r\n\005inode\030\t " + + "\001(\004\022\026\n\016in_upper_layer\030\n \001(\010\022\014\n\004path\030\013 \001(" + + "\t\022\020\n\010basename\030\014 \001(\t\022\022\n\nfilesystem\030\r \001(\t\022" + + "\024\n\014package_name\030\016 \001(\t\022\027\n\017package_version" + + "\030\017 \001(\t\022\032\n\022package_srcversion\030\020 \001(\t\"\224\002\n\013C" + + "redentials\022\013\n\003uid\030\001 \001(\r\022\013\n\003gid\030\002 \001(\r\022\014\n\004" + + "user\030\003 \001(\t\022\r\n\005group\030\004 \001(\t\022\025\n\reffective_u" + + "id\030\005 \001(\r\022\025\n\reffective_gid\030\006 \001(\r\022\026\n\016effec" + + "tive_user\030\007 \001(\t\022\027\n\017effective_group\030\010 \001(\t" + + "\022\016\n\006fs_uid\030\t \001(\r\022\016\n\006fs_gid\030\n \001(\r\022\017\n\007fs_u" + + "ser\030\013 \001(\t\022\020\n\010fs_group\030\014 \001(\t\022\025\n\rcap_effec" + + "tive\030\r \001(\004\022\025\n\rcap_permitted\030\016 \001(\004\"I\n\nSoc" + + "ketNode\022\016\n\006family\030\001 \001(\t\022+\n\004bind\030\002 \003(\0132\035." + + "datadog.cws.dumpsv1.BindNode\"]\n\010BindNode" + + "\0227\n\rmatched_rules\030\003 \003(\0132 .datadog.cws.du" + + "mpsv1.MatchedRule\022\014\n\004port\030\001 \001(\r\022\n\n\002ip\030\002 " + + "\001(\t\"\325\001\n\013MatchedRule\022\017\n\007rule_id\030\001 \001(\t\022\024\n\014" + + "rule_version\030\002 \001(\t\022\023\n\013policy_name\030\003 \001(\t\022" + + "\026\n\016policy_version\030\004 \001(\t\022A\n\trule_tags\030\005 \003" + + "(\0132..datadog.cws.dumpsv1.MatchedRule.Rul" + + "eTagsEntry\032/\n\rRuleTagsEntry\022\013\n\003key\030\001 \001(\t" + + "\022\r\n\005value\030\002 \001(\t:\0028\001*8\n\016GenerationType\022\013\n" + + "\007UNKNOWN\020\000\022\013\n\007RUNTIME\020\001\022\014\n\010SNAPSHOT\020\002BU\n" + + "\022com.dd.cws.adv1.pbB\014SecDumpProtoP\000Z/git" + + "hub.com/DataDog/agent-payload/v5/cws/dum" + + "psv1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }); - internal_static_datadog_cws_dumpsv1_ActivityDump_descriptor = + internal_static_datadog_cws_dumpsv1_SecDump_descriptor = getDescriptor().getMessageTypes().get(0); - internal_static_datadog_cws_dumpsv1_ActivityDump_fieldAccessorTable = new + internal_static_datadog_cws_dumpsv1_SecDump_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_datadog_cws_dumpsv1_ActivityDump_descriptor, + internal_static_datadog_cws_dumpsv1_SecDump_descriptor, new java.lang.String[] { "Host", "Service", "Source", "Metadata", "Tags", "Tree", }); internal_static_datadog_cws_dumpsv1_Metadata_descriptor = getDescriptor().getMessageTypes().get(1); diff --git a/proto/cws/dumpsv1/activity_dump.proto b/proto/cws/dumpsv1/activity_dump.proto index b2269f07..65b2659f 100644 --- a/proto/cws/dumpsv1/activity_dump.proto +++ b/proto/cws/dumpsv1/activity_dump.proto @@ -8,7 +8,7 @@ option java_outer_classname = "SecDumpProto"; package datadog.cws.dumpsv1; -message ActivityDump { +message SecDump { string host = 1; string service = 2; string source = 3; From 4142e0b7dea830344d527fe44a5cf382c12b4769 Mon Sep 17 00:00:00 2001 From: Paul Cacheux Date: Wed, 29 Mar 2023 09:17:34 +0200 Subject: [PATCH 5/6] update readme --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index b083391e..6a61cfbd 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,13 @@ The process payload is defined in [`proto/process/agent.proto`](./proto/process/ The following implementations are available: * Go (gogofast): [github.com/DataDog/agent-payload/process](https://pkg.go.dev/github.com/DataDog/agent-payload/process) (note that this go package contains additional functionality beyond the generated PB implementation). +## CWS + +The CWS security dumps payload is defined in [`proto/cws/dumpsv1/activity_dump.proto`](./proto/cws/dumpsv1/activity_dump.proto). +The following implementations are available: + * Go (vtproto): [github.com/DataDog/agent-payload/v5/cws/dumpsv1](https://pkg.go.dev/github.com/DataDog/agent-payload/v5/cws/dumpsv1) + * Java: [`java/com/dd/cws/adv1/pb/SecDumpProto.java`](./java/com/dd/cws/adv1/pb/SecDumpProto.java) + # Updating Proto Definitions After updating the IDL you must: From c90fe4114962b5de73df17ed8dfac0c1d4b3fa4b Mon Sep 17 00:00:00 2001 From: Paul Cacheux Date: Wed, 29 Mar 2023 09:19:44 +0200 Subject: [PATCH 6/6] update CODEOWNERS --- .github/CODEOWNERS | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index cc33a9d3..8e4179e0 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -14,3 +14,5 @@ contimage/ @DataDog/agent-shared-components @DataDog/container-i sbom/ @DataDog/agent-shared-components @DataDog/container-integrations CycloneDX/ @DataDog/agent-shared-components @DataDog/container-integrations cyclonedx_v1_4/ @DataDog/agent-shared-components @DataDog/container-integrations +cws/ @DataDog/agent-shared-components @DataDog/agent-security +proto/cws/ @DataDog/agent-shared-components @DataDog/agent-security