From aa3c8b597fb9ef8e1e97792c3182f17156ebafad Mon Sep 17 00:00:00 2001 From: Jonathan Ribas Date: Tue, 7 Nov 2023 16:06:20 +0100 Subject: [PATCH] Udpate the CWS proto for the security profiles sliding window purpose --- cws/dumpsv1/activity_dump.pb.go | 924 +- cws/dumpsv1/activity_dump_vtproto.pb.go | 1031 +- java/com/dd/cws/adv1/pb/SecDumpProto.java | 18583 +++++++++++--------- proto/cws/dumpsv1/activity_dump.proto | 30 +- 4 files changed, 12149 insertions(+), 8419 deletions(-) diff --git a/cws/dumpsv1/activity_dump.pb.go b/cws/dumpsv1/activity_dump.pb.go index 0a7e1362..f397374c 100644 --- a/cws/dumpsv1/activity_dump.pb.go +++ b/cws/dumpsv1/activity_dump.pb.go @@ -133,6 +133,64 @@ func (GenerationType) EnumDescriptor() ([]byte, []int) { return file_proto_cws_dumpsv1_activity_dump_proto_rawDescGZIP(), []int{1} } +type EventProfileState int32 + +const ( + EventProfileState_NO_PROFILE EventProfileState = 0 + EventProfileState_PROFILE_AT_MAX_SIZE EventProfileState = 1 + EventProfileState_UNSTABLE_PROFILE EventProfileState = 2 + EventProfileState_STABLE_PROFILE EventProfileState = 3 + EventProfileState_AUTO_LEARNING EventProfileState = 4 + EventProfileState_WORKLOAD_WARMUP EventProfileState = 5 +) + +// Enum value maps for EventProfileState. +var ( + EventProfileState_name = map[int32]string{ + 0: "NO_PROFILE", + 1: "PROFILE_AT_MAX_SIZE", + 2: "UNSTABLE_PROFILE", + 3: "STABLE_PROFILE", + 4: "AUTO_LEARNING", + 5: "WORKLOAD_WARMUP", + } + EventProfileState_value = map[string]int32{ + "NO_PROFILE": 0, + "PROFILE_AT_MAX_SIZE": 1, + "UNSTABLE_PROFILE": 2, + "STABLE_PROFILE": 3, + "AUTO_LEARNING": 4, + "WORKLOAD_WARMUP": 5, + } +) + +func (x EventProfileState) Enum() *EventProfileState { + p := new(EventProfileState) + *p = x + return p +} + +func (x EventProfileState) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (EventProfileState) Descriptor() protoreflect.EnumDescriptor { + return file_proto_cws_dumpsv1_activity_dump_proto_enumTypes[2].Descriptor() +} + +func (EventProfileState) Type() protoreflect.EnumType { + return &file_proto_cws_dumpsv1_activity_dump_proto_enumTypes[2] +} + +func (x EventProfileState) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use EventProfileState.Descriptor instead. +func (EventProfileState) EnumDescriptor() ([]byte, []int) { + return file_proto_cws_dumpsv1_activity_dump_proto_rawDescGZIP(), []int{2} +} + type SecDump struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -371,21 +429,20 @@ func (x *Metadata) GetSerialization() string { return "" } -type SecurityProfile struct { +type ProfileContext 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"` + FirstSeen uint64 `protobuf:"varint,1,opt,name=first_seen,json=firstSeen,proto3" json:"first_seen,omitempty"` + LastSeen uint64 `protobuf:"varint,2,opt,name=last_seen,json=lastSeen,proto3" json:"last_seen,omitempty"` + EventTypeState map[uint32]*EventTypeState `protobuf:"bytes,3,rep,name=event_type_state,json=eventTypeState,proto3" json:"event_type_state,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + Syscalls []uint32 `protobuf:"varint,4,rep,packed,name=syscalls,proto3" json:"syscalls,omitempty"` + Tags []string `protobuf:"bytes,5,rep,name=tags,proto3" json:"tags,omitempty"` } -func (x *SecurityProfile) Reset() { - *x = SecurityProfile{} +func (x *ProfileContext) Reset() { + *x = ProfileContext{} if protoimpl.UnsafeEnabled { mi := &file_proto_cws_dumpsv1_activity_dump_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -393,13 +450,13 @@ func (x *SecurityProfile) Reset() { } } -func (x *SecurityProfile) String() string { +func (x *ProfileContext) String() string { return protoimpl.X.MessageStringOf(x) } -func (*SecurityProfile) ProtoMessage() {} +func (*ProfileContext) ProtoMessage() {} -func (x *SecurityProfile) ProtoReflect() protoreflect.Message { +func (x *ProfileContext) 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)) @@ -411,42 +468,99 @@ func (x *SecurityProfile) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use SecurityProfile.ProtoReflect.Descriptor instead. -func (*SecurityProfile) Descriptor() ([]byte, []int) { +// Deprecated: Use ProfileContext.ProtoReflect.Descriptor instead. +func (*ProfileContext) Descriptor() ([]byte, []int) { return file_proto_cws_dumpsv1_activity_dump_proto_rawDescGZIP(), []int{2} } -func (x *SecurityProfile) GetStatus() uint32 { +func (x *ProfileContext) GetFirstSeen() uint64 { if x != nil { - return x.Status + return x.FirstSeen } return 0 } -func (x *SecurityProfile) GetVersion() string { +func (x *ProfileContext) GetLastSeen() uint64 { if x != nil { - return x.Version + return x.LastSeen } - return "" + return 0 } -func (x *SecurityProfile) GetMetadata() *Metadata { +func (x *ProfileContext) GetEventTypeState() map[uint32]*EventTypeState { if x != nil { - return x.Metadata + return x.EventTypeState + } + return nil +} + +func (x *ProfileContext) GetSyscalls() []uint32 { + if x != nil { + return x.Syscalls } return nil } -func (x *SecurityProfile) GetTags() []string { +func (x *ProfileContext) GetTags() []string { if x != nil { return x.Tags } return nil } -func (x *SecurityProfile) GetSyscalls() []uint32 { +type SecurityProfile struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Status uint32 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"` + Metadata *Metadata `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` + Tree []*ProcessActivityNode `protobuf:"bytes,6,rep,name=tree,proto3" json:"tree,omitempty"` + ProfileContexts map[string]*ProfileContext `protobuf:"bytes,7,rep,name=profile_contexts,json=profileContexts,proto3" json:"profile_contexts,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` +} + +func (x *SecurityProfile) Reset() { + *x = SecurityProfile{} + 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 *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[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 SecurityProfile.ProtoReflect.Descriptor instead. +func (*SecurityProfile) Descriptor() ([]byte, []int) { + return file_proto_cws_dumpsv1_activity_dump_proto_rawDescGZIP(), []int{3} +} + +func (x *SecurityProfile) GetStatus() uint32 { if x != nil { - return x.Syscalls + return x.Status + } + return 0 +} + +func (x *SecurityProfile) GetMetadata() *Metadata { + if x != nil { + return x.Metadata } return nil } @@ -458,6 +572,13 @@ func (x *SecurityProfile) GetTree() []*ProcessActivityNode { return nil } +func (x *SecurityProfile) GetProfileContexts() map[string]*ProfileContext { + if x != nil { + return x.ProfileContexts + } + return nil +} + type ProcessActivityNode struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -471,12 +592,13 @@ type ProcessActivityNode struct { 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"` + ImageTags []string `protobuf:"bytes,10,rep,name=image_tags,json=imageTags,proto3" json:"image_tags,omitempty"` } func (x *ProcessActivityNode) Reset() { *x = ProcessActivityNode{} if protoimpl.UnsafeEnabled { - mi := &file_proto_cws_dumpsv1_activity_dump_proto_msgTypes[3] + mi := &file_proto_cws_dumpsv1_activity_dump_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -489,7 +611,7 @@ func (x *ProcessActivityNode) String() string { func (*ProcessActivityNode) ProtoMessage() {} func (x *ProcessActivityNode) ProtoReflect() protoreflect.Message { - mi := &file_proto_cws_dumpsv1_activity_dump_proto_msgTypes[3] + 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 { @@ -502,7 +624,7 @@ func (x *ProcessActivityNode) ProtoReflect() protoreflect.Message { // Deprecated: Use ProcessActivityNode.ProtoReflect.Descriptor instead. func (*ProcessActivityNode) Descriptor() ([]byte, []int) { - return file_proto_cws_dumpsv1_activity_dump_proto_rawDescGZIP(), []int{3} + return file_proto_cws_dumpsv1_activity_dump_proto_rawDescGZIP(), []int{4} } func (x *ProcessActivityNode) GetProcess() *ProcessInfo { @@ -561,6 +683,13 @@ func (x *ProcessActivityNode) GetSyscalls() []uint32 { return nil } +func (x *ProcessActivityNode) GetImageTags() []string { + if x != nil { + return x.ImageTags + } + return nil +} + type ProcessInfo struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -594,7 +723,7 @@ type ProcessInfo struct { func (x *ProcessInfo) Reset() { *x = ProcessInfo{} if protoimpl.UnsafeEnabled { - mi := &file_proto_cws_dumpsv1_activity_dump_proto_msgTypes[4] + mi := &file_proto_cws_dumpsv1_activity_dump_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -607,7 +736,7 @@ func (x *ProcessInfo) String() string { func (*ProcessInfo) ProtoMessage() {} func (x *ProcessInfo) ProtoReflect() protoreflect.Message { - mi := &file_proto_cws_dumpsv1_activity_dump_proto_msgTypes[4] + 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 { @@ -620,7 +749,7 @@ func (x *ProcessInfo) ProtoReflect() protoreflect.Message { // Deprecated: Use ProcessInfo.ProtoReflect.Descriptor instead. func (*ProcessInfo) Descriptor() ([]byte, []int) { - return file_proto_cws_dumpsv1_activity_dump_proto_rawDescGZIP(), []int{4} + return file_proto_cws_dumpsv1_activity_dump_proto_rawDescGZIP(), []int{5} } func (x *ProcessInfo) GetPid() uint32 { @@ -784,6 +913,7 @@ type FileActivityNode struct { unknownFields protoimpl.UnknownFields MatchedRules []*MatchedRule `protobuf:"bytes,9,rep,name=matched_rules,json=matchedRules,proto3" json:"matched_rules,omitempty"` + ImageTags []string `protobuf:"bytes,10,rep,name=image_tags,json=imageTags,proto3" json:"image_tags,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"` @@ -796,7 +926,7 @@ type FileActivityNode struct { func (x *FileActivityNode) Reset() { *x = FileActivityNode{} if protoimpl.UnsafeEnabled { - mi := &file_proto_cws_dumpsv1_activity_dump_proto_msgTypes[5] + mi := &file_proto_cws_dumpsv1_activity_dump_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -809,7 +939,7 @@ func (x *FileActivityNode) String() string { func (*FileActivityNode) ProtoMessage() {} func (x *FileActivityNode) ProtoReflect() protoreflect.Message { - mi := &file_proto_cws_dumpsv1_activity_dump_proto_msgTypes[5] + 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 { @@ -822,7 +952,7 @@ func (x *FileActivityNode) ProtoReflect() protoreflect.Message { // Deprecated: Use FileActivityNode.ProtoReflect.Descriptor instead. func (*FileActivityNode) Descriptor() ([]byte, []int) { - return file_proto_cws_dumpsv1_activity_dump_proto_rawDescGZIP(), []int{5} + return file_proto_cws_dumpsv1_activity_dump_proto_rawDescGZIP(), []int{6} } func (x *FileActivityNode) GetMatchedRules() []*MatchedRule { @@ -832,6 +962,13 @@ func (x *FileActivityNode) GetMatchedRules() []*MatchedRule { return nil } +func (x *FileActivityNode) GetImageTags() []string { + if x != nil { + return x.ImageTags + } + return nil +} + func (x *FileActivityNode) GetName() string { if x != nil { return x.Name @@ -894,7 +1031,7 @@ type OpenNode struct { func (x *OpenNode) Reset() { *x = OpenNode{} if protoimpl.UnsafeEnabled { - mi := &file_proto_cws_dumpsv1_activity_dump_proto_msgTypes[6] + mi := &file_proto_cws_dumpsv1_activity_dump_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -907,7 +1044,7 @@ func (x *OpenNode) String() string { func (*OpenNode) ProtoMessage() {} func (x *OpenNode) ProtoReflect() protoreflect.Message { - mi := &file_proto_cws_dumpsv1_activity_dump_proto_msgTypes[6] + 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 { @@ -920,7 +1057,7 @@ func (x *OpenNode) ProtoReflect() protoreflect.Message { // Deprecated: Use OpenNode.ProtoReflect.Descriptor instead. func (*OpenNode) Descriptor() ([]byte, []int) { - return file_proto_cws_dumpsv1_activity_dump_proto_rawDescGZIP(), []int{6} + return file_proto_cws_dumpsv1_activity_dump_proto_rawDescGZIP(), []int{7} } func (x *OpenNode) GetRetval() int64 { @@ -950,13 +1087,14 @@ type DNSNode struct { unknownFields protoimpl.UnknownFields MatchedRules []*MatchedRule `protobuf:"bytes,2,rep,name=matched_rules,json=matchedRules,proto3" json:"matched_rules,omitempty"` + ImageTags []string `protobuf:"bytes,3,rep,name=image_tags,json=imageTags,proto3" json:"image_tags,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] + mi := &file_proto_cws_dumpsv1_activity_dump_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -969,7 +1107,7 @@ func (x *DNSNode) String() string { func (*DNSNode) ProtoMessage() {} func (x *DNSNode) ProtoReflect() protoreflect.Message { - mi := &file_proto_cws_dumpsv1_activity_dump_proto_msgTypes[7] + 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 { @@ -982,7 +1120,7 @@ func (x *DNSNode) ProtoReflect() protoreflect.Message { // Deprecated: Use DNSNode.ProtoReflect.Descriptor instead. func (*DNSNode) Descriptor() ([]byte, []int) { - return file_proto_cws_dumpsv1_activity_dump_proto_rawDescGZIP(), []int{7} + return file_proto_cws_dumpsv1_activity_dump_proto_rawDescGZIP(), []int{8} } func (x *DNSNode) GetMatchedRules() []*MatchedRule { @@ -992,6 +1130,13 @@ func (x *DNSNode) GetMatchedRules() []*MatchedRule { return nil } +func (x *DNSNode) GetImageTags() []string { + if x != nil { + return x.ImageTags + } + return nil +} + func (x *DNSNode) GetRequests() []*DNSInfo { if x != nil { return x.Requests @@ -1014,7 +1159,7 @@ type DNSInfo struct { func (x *DNSInfo) Reset() { *x = DNSInfo{} if protoimpl.UnsafeEnabled { - mi := &file_proto_cws_dumpsv1_activity_dump_proto_msgTypes[8] + mi := &file_proto_cws_dumpsv1_activity_dump_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1027,7 +1172,7 @@ func (x *DNSInfo) String() string { func (*DNSInfo) ProtoMessage() {} func (x *DNSInfo) ProtoReflect() protoreflect.Message { - mi := &file_proto_cws_dumpsv1_activity_dump_proto_msgTypes[8] + 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 { @@ -1040,7 +1185,7 @@ func (x *DNSInfo) ProtoReflect() protoreflect.Message { // Deprecated: Use DNSInfo.ProtoReflect.Descriptor instead. func (*DNSInfo) Descriptor() ([]byte, []int) { - return file_proto_cws_dumpsv1_activity_dump_proto_rawDescGZIP(), []int{8} + return file_proto_cws_dumpsv1_activity_dump_proto_rawDescGZIP(), []int{9} } func (x *DNSInfo) GetName() string { @@ -1106,7 +1251,7 @@ type FileInfo struct { func (x *FileInfo) Reset() { *x = FileInfo{} if protoimpl.UnsafeEnabled { - mi := &file_proto_cws_dumpsv1_activity_dump_proto_msgTypes[9] + mi := &file_proto_cws_dumpsv1_activity_dump_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1119,7 +1264,7 @@ func (x *FileInfo) String() string { func (*FileInfo) ProtoMessage() {} func (x *FileInfo) ProtoReflect() protoreflect.Message { - mi := &file_proto_cws_dumpsv1_activity_dump_proto_msgTypes[9] + 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 { @@ -1132,7 +1277,7 @@ func (x *FileInfo) ProtoReflect() protoreflect.Message { // Deprecated: Use FileInfo.ProtoReflect.Descriptor instead. func (*FileInfo) Descriptor() ([]byte, []int) { - return file_proto_cws_dumpsv1_activity_dump_proto_rawDescGZIP(), []int{9} + return file_proto_cws_dumpsv1_activity_dump_proto_rawDescGZIP(), []int{10} } func (x *FileInfo) GetUid() uint32 { @@ -1285,7 +1430,7 @@ type Credentials struct { func (x *Credentials) Reset() { *x = Credentials{} if protoimpl.UnsafeEnabled { - mi := &file_proto_cws_dumpsv1_activity_dump_proto_msgTypes[10] + mi := &file_proto_cws_dumpsv1_activity_dump_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1298,7 +1443,7 @@ func (x *Credentials) String() string { func (*Credentials) ProtoMessage() {} func (x *Credentials) ProtoReflect() protoreflect.Message { - mi := &file_proto_cws_dumpsv1_activity_dump_proto_msgTypes[10] + 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 { @@ -1311,7 +1456,7 @@ func (x *Credentials) ProtoReflect() protoreflect.Message { // Deprecated: Use Credentials.ProtoReflect.Descriptor instead. func (*Credentials) Descriptor() ([]byte, []int) { - return file_proto_cws_dumpsv1_activity_dump_proto_rawDescGZIP(), []int{10} + return file_proto_cws_dumpsv1_activity_dump_proto_rawDescGZIP(), []int{11} } func (x *Credentials) GetUid() uint32 { @@ -1424,7 +1569,7 @@ type SocketNode struct { func (x *SocketNode) Reset() { *x = SocketNode{} if protoimpl.UnsafeEnabled { - mi := &file_proto_cws_dumpsv1_activity_dump_proto_msgTypes[11] + mi := &file_proto_cws_dumpsv1_activity_dump_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1437,7 +1582,7 @@ func (x *SocketNode) String() string { func (*SocketNode) ProtoMessage() {} func (x *SocketNode) ProtoReflect() protoreflect.Message { - mi := &file_proto_cws_dumpsv1_activity_dump_proto_msgTypes[11] + 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 { @@ -1450,7 +1595,7 @@ func (x *SocketNode) ProtoReflect() protoreflect.Message { // Deprecated: Use SocketNode.ProtoReflect.Descriptor instead. func (*SocketNode) Descriptor() ([]byte, []int) { - return file_proto_cws_dumpsv1_activity_dump_proto_rawDescGZIP(), []int{11} + return file_proto_cws_dumpsv1_activity_dump_proto_rawDescGZIP(), []int{12} } func (x *SocketNode) GetFamily() string { @@ -1473,6 +1618,7 @@ type BindNode struct { unknownFields protoimpl.UnknownFields MatchedRules []*MatchedRule `protobuf:"bytes,3,rep,name=matched_rules,json=matchedRules,proto3" json:"matched_rules,omitempty"` + ImageTags []string `protobuf:"bytes,4,rep,name=image_tags,json=imageTags,proto3" json:"image_tags,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"` } @@ -1480,7 +1626,7 @@ type BindNode struct { func (x *BindNode) Reset() { *x = BindNode{} if protoimpl.UnsafeEnabled { - mi := &file_proto_cws_dumpsv1_activity_dump_proto_msgTypes[12] + mi := &file_proto_cws_dumpsv1_activity_dump_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1493,7 +1639,7 @@ func (x *BindNode) String() string { func (*BindNode) ProtoMessage() {} func (x *BindNode) ProtoReflect() protoreflect.Message { - mi := &file_proto_cws_dumpsv1_activity_dump_proto_msgTypes[12] + 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 { @@ -1506,7 +1652,7 @@ func (x *BindNode) ProtoReflect() protoreflect.Message { // Deprecated: Use BindNode.ProtoReflect.Descriptor instead. func (*BindNode) Descriptor() ([]byte, []int) { - return file_proto_cws_dumpsv1_activity_dump_proto_rawDescGZIP(), []int{12} + return file_proto_cws_dumpsv1_activity_dump_proto_rawDescGZIP(), []int{13} } func (x *BindNode) GetMatchedRules() []*MatchedRule { @@ -1516,6 +1662,13 @@ func (x *BindNode) GetMatchedRules() []*MatchedRule { return nil } +func (x *BindNode) GetImageTags() []string { + if x != nil { + return x.ImageTags + } + return nil +} + func (x *BindNode) GetPort() uint32 { if x != nil { return x.Port @@ -1545,7 +1698,7 @@ type MatchedRule struct { func (x *MatchedRule) Reset() { *x = MatchedRule{} if protoimpl.UnsafeEnabled { - mi := &file_proto_cws_dumpsv1_activity_dump_proto_msgTypes[13] + mi := &file_proto_cws_dumpsv1_activity_dump_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1558,7 +1711,7 @@ func (x *MatchedRule) String() string { func (*MatchedRule) ProtoMessage() {} func (x *MatchedRule) ProtoReflect() protoreflect.Message { - mi := &file_proto_cws_dumpsv1_activity_dump_proto_msgTypes[13] + mi := &file_proto_cws_dumpsv1_activity_dump_proto_msgTypes[14] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1571,7 +1724,7 @@ func (x *MatchedRule) ProtoReflect() protoreflect.Message { // Deprecated: Use MatchedRule.ProtoReflect.Descriptor instead. func (*MatchedRule) Descriptor() ([]byte, []int) { - return file_proto_cws_dumpsv1_activity_dump_proto_rawDescGZIP(), []int{13} + return file_proto_cws_dumpsv1_activity_dump_proto_rawDescGZIP(), []int{14} } func (x *MatchedRule) GetRuleId() string { @@ -1609,6 +1762,61 @@ func (x *MatchedRule) GetRuleTags() map[string]string { return nil } +type EventTypeState struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + LastAnomalyNano uint64 `protobuf:"varint,1,opt,name=last_anomaly_nano,json=lastAnomalyNano,proto3" json:"last_anomaly_nano,omitempty"` + EventProfileState EventProfileState `protobuf:"varint,2,opt,name=event_profile_state,json=eventProfileState,proto3,enum=datadog.cws.dumpsv1.EventProfileState" json:"event_profile_state,omitempty"` +} + +func (x *EventTypeState) Reset() { + *x = EventTypeState{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_cws_dumpsv1_activity_dump_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *EventTypeState) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EventTypeState) ProtoMessage() {} + +func (x *EventTypeState) ProtoReflect() protoreflect.Message { + mi := &file_proto_cws_dumpsv1_activity_dump_proto_msgTypes[15] + 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 EventTypeState.ProtoReflect.Descriptor instead. +func (*EventTypeState) Descriptor() ([]byte, []int) { + return file_proto_cws_dumpsv1_activity_dump_proto_rawDescGZIP(), []int{15} +} + +func (x *EventTypeState) GetLastAnomalyNano() uint64 { + if x != nil { + return x.LastAnomalyNano + } + return 0 +} + +func (x *EventTypeState) GetEventProfileState() EventProfileState { + if x != nil { + return x.EventProfileState + } + return EventProfileState_NO_PROFILE +} + var File_proto_cws_dumpsv1_activity_dump_proto protoreflect.FileDescriptor var file_proto_cws_dumpsv1_activity_dump_proto_rawDesc = []byte{ @@ -1658,53 +1866,84 @@ var file_proto_cws_dumpsv1_activity_dump_proto_rawDesc = []byte{ 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, + 0x6e, 0x22, 0xc9, 0x02, 0x0a, 0x0e, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x43, 0x6f, 0x6e, + 0x74, 0x65, 0x78, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x66, 0x69, 0x72, 0x73, 0x74, 0x5f, 0x73, 0x65, + 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x66, 0x69, 0x72, 0x73, 0x74, 0x53, + 0x65, 0x65, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x73, 0x65, 0x65, 0x6e, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x6c, 0x61, 0x73, 0x74, 0x53, 0x65, 0x65, 0x6e, + 0x12, 0x61, 0x0a, 0x10, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x73, + 0x74, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x64, 0x61, 0x74, + 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x63, 0x77, 0x73, 0x2e, 0x64, 0x75, 0x6d, 0x70, 0x73, 0x76, 0x31, + 0x2e, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x2e, + 0x45, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x45, 0x6e, + 0x74, 0x72, 0x79, 0x52, 0x0e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x53, 0x74, + 0x61, 0x74, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x79, 0x73, 0x63, 0x61, 0x6c, 0x6c, 0x73, 0x18, + 0x04, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x08, 0x73, 0x79, 0x73, 0x63, 0x61, 0x6c, 0x6c, 0x73, 0x12, + 0x12, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x74, + 0x61, 0x67, 0x73, 0x1a, 0x68, 0x0a, 0x13, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, + 0x53, 0x74, 0x61, 0x74, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, + 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x3b, 0x0a, 0x05, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 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, 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, + 0x31, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x73, 0x74, 0x61, + 0x74, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xf1, 0x02, + 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, 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, 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, 0x12, 0x64, 0x0a, 0x10, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x63, 0x6f, + 0x6e, 0x74, 0x65, 0x78, 0x74, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x39, 0x2e, 0x64, + 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x63, 0x77, 0x73, 0x2e, 0x64, 0x75, 0x6d, 0x70, 0x73, + 0x76, 0x31, 0x2e, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x66, 0x69, + 0x6c, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, + 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0f, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, + 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x73, 0x1a, 0x67, 0x0a, 0x14, 0x50, 0x72, 0x6f, 0x66, + 0x69, 0x6c, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 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, 0x39, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x23, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x63, 0x77, 0x73, 0x2e, + 0x64, 0x75, 0x6d, 0x70, 0x73, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x43, + 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, + 0x01, 0x22, 0xa0, 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, 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, + 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, 0x12, + 0x1d, 0x0a, 0x0a, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x61, 0x67, 0x73, 0x18, 0x0a, 0x20, + 0x03, 0x28, 0x09, 0x52, 0x09, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x54, 0x61, 0x67, 0x73, 0x4a, 0x04, 0x08, 0x02, 0x10, 0x03, 0x22, 0x95, 0x05, 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, @@ -1746,166 +1985,191 @@ var file_proto_cws_dumpsv1_activity_dump_proto_rawDesc = []byte{ 0x69, 0x73, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x5f, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x18, 0x15, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x69, 0x73, 0x45, 0x78, 0x65, 0x63, 0x43, 0x68, 0x69, 0x6c, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x6f, 0x6f, 0x6b, 0x69, 0x65, 0x36, 0x34, 0x18, 0x16, 0x20, 0x01, - 0x28, 0x04, 0x52, 0x08, 0x63, 0x6f, 0x6f, 0x6b, 0x69, 0x65, 0x36, 0x34, 0x22, 0xa8, 0x03, 0x0a, + 0x28, 0x04, 0x52, 0x08, 0x63, 0x6f, 0x6f, 0x6b, 0x69, 0x65, 0x36, 0x34, 0x22, 0xc7, 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, + 0x68, 0x65, 0x64, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x6d, 0x61, 0x67, + 0x65, 0x5f, 0x74, 0x61, 0x67, 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x69, 0x6d, + 0x61, 0x67, 0x65, 0x54, 0x61, 0x67, 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, 0xa9, 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, 0x1d, 0x0a, 0x0a, 0x69, 0x6d, 0x61, 0x67, 0x65, + 0x5f, 0x74, 0x61, 0x67, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x69, 0x6d, 0x61, + 0x67, 0x65, 0x54, 0x61, 0x67, 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, 0x91, 0x04, 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, + 0x12, 0x16, 0x0a, 0x06, 0x68, 0x61, 0x73, 0x68, 0x65, 0x73, 0x18, 0x11, 0x20, 0x03, 0x28, 0x09, + 0x52, 0x06, 0x68, 0x61, 0x73, 0x68, 0x65, 0x73, 0x12, 0x3d, 0x0a, 0x0a, 0x68, 0x61, 0x73, 0x68, + 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x12, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x64, + 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x63, 0x77, 0x73, 0x2e, 0x64, 0x75, 0x6d, 0x70, 0x73, + 0x76, 0x31, 0x2e, 0x48, 0x61, 0x73, 0x68, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x09, 0x68, 0x61, + 0x73, 0x68, 0x53, 0x74, 0x61, 0x74, 0x65, 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, 0x94, 0x01, 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, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, + 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, 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, 0x91, 0x04, 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, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x61, 0x73, 0x68, 0x65, 0x73, 0x18, 0x11, 0x20, 0x03, - 0x28, 0x09, 0x52, 0x06, 0x68, 0x61, 0x73, 0x68, 0x65, 0x73, 0x12, 0x3d, 0x0a, 0x0a, 0x68, 0x61, - 0x73, 0x68, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x12, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, - 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x63, 0x77, 0x73, 0x2e, 0x64, 0x75, 0x6d, - 0x70, 0x73, 0x76, 0x31, 0x2e, 0x48, 0x61, 0x73, 0x68, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x09, - 0x68, 0x61, 0x73, 0x68, 0x53, 0x74, 0x61, 0x74, 0x65, 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, 0xb9, 0x01, 0x0a, 0x09, - 0x48, 0x61, 0x73, 0x68, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x4e, 0x4f, 0x5f, - 0x48, 0x41, 0x53, 0x48, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x4f, 0x4e, 0x45, 0x10, 0x01, - 0x12, 0x12, 0x0a, 0x0e, 0x46, 0x49, 0x4c, 0x45, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, 0x46, 0x4f, 0x55, - 0x4e, 0x44, 0x10, 0x02, 0x12, 0x1d, 0x0a, 0x19, 0x50, 0x41, 0x54, 0x48, 0x4e, 0x41, 0x4d, 0x45, - 0x5f, 0x52, 0x45, 0x53, 0x4f, 0x4c, 0x55, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x45, 0x52, 0x52, 0x4f, - 0x52, 0x10, 0x03, 0x12, 0x10, 0x0a, 0x0c, 0x46, 0x49, 0x4c, 0x45, 0x5f, 0x54, 0x4f, 0x4f, 0x5f, - 0x42, 0x49, 0x47, 0x10, 0x04, 0x12, 0x1d, 0x0a, 0x19, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, - 0x59, 0x50, 0x45, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, 0x43, 0x4f, 0x4e, 0x46, 0x49, 0x47, 0x55, 0x52, - 0x45, 0x44, 0x10, 0x05, 0x12, 0x19, 0x0a, 0x15, 0x48, 0x41, 0x53, 0x48, 0x5f, 0x57, 0x41, 0x53, - 0x5f, 0x52, 0x41, 0x54, 0x45, 0x5f, 0x4c, 0x49, 0x4d, 0x49, 0x54, 0x45, 0x44, 0x10, 0x06, 0x12, - 0x16, 0x0a, 0x12, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x5f, 0x48, 0x41, 0x53, 0x48, 0x5f, - 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x07, 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, + 0x68, 0x65, 0x64, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x6d, 0x61, 0x67, + 0x65, 0x5f, 0x74, 0x61, 0x67, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x69, 0x6d, + 0x61, 0x67, 0x65, 0x54, 0x61, 0x67, 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, 0x22, 0x98, 0x01, 0x0a, 0x10, 0x65, 0x76, + 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x2a, + 0x0a, 0x11, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x61, 0x6e, 0x6f, 0x6d, 0x61, 0x6c, 0x79, 0x5f, 0x6e, + 0x61, 0x6e, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0f, 0x6c, 0x61, 0x73, 0x74, 0x41, + 0x6e, 0x6f, 0x6d, 0x61, 0x6c, 0x79, 0x4e, 0x61, 0x6e, 0x6f, 0x12, 0x58, 0x0a, 0x13, 0x65, 0x76, + 0x65, 0x6e, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x73, 0x74, 0x61, 0x74, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x28, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, + 0x67, 0x2e, 0x63, 0x77, 0x73, 0x2e, 0x64, 0x75, 0x6d, 0x70, 0x73, 0x76, 0x31, 0x2e, 0x65, 0x76, + 0x65, 0x6e, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x73, 0x74, 0x61, 0x74, + 0x65, 0x52, 0x11, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x53, + 0x74, 0x61, 0x74, 0x65, 0x2a, 0xb9, 0x01, 0x0a, 0x09, 0x48, 0x61, 0x73, 0x68, 0x53, 0x74, 0x61, + 0x74, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x4e, 0x4f, 0x5f, 0x48, 0x41, 0x53, 0x48, 0x10, 0x00, 0x12, + 0x08, 0x0a, 0x04, 0x44, 0x4f, 0x4e, 0x45, 0x10, 0x01, 0x12, 0x12, 0x0a, 0x0e, 0x46, 0x49, 0x4c, + 0x45, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, 0x46, 0x4f, 0x55, 0x4e, 0x44, 0x10, 0x02, 0x12, 0x1d, 0x0a, + 0x19, 0x50, 0x41, 0x54, 0x48, 0x4e, 0x41, 0x4d, 0x45, 0x5f, 0x52, 0x45, 0x53, 0x4f, 0x4c, 0x55, + 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x03, 0x12, 0x10, 0x0a, 0x0c, + 0x46, 0x49, 0x4c, 0x45, 0x5f, 0x54, 0x4f, 0x4f, 0x5f, 0x42, 0x49, 0x47, 0x10, 0x04, 0x12, 0x1d, + 0x0a, 0x19, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4e, 0x4f, 0x54, + 0x5f, 0x43, 0x4f, 0x4e, 0x46, 0x49, 0x47, 0x55, 0x52, 0x45, 0x44, 0x10, 0x05, 0x12, 0x19, 0x0a, + 0x15, 0x48, 0x41, 0x53, 0x48, 0x5f, 0x57, 0x41, 0x53, 0x5f, 0x52, 0x41, 0x54, 0x45, 0x5f, 0x4c, + 0x49, 0x4d, 0x49, 0x54, 0x45, 0x44, 0x10, 0x06, 0x12, 0x16, 0x0a, 0x12, 0x55, 0x4e, 0x4b, 0x4e, + 0x4f, 0x57, 0x4e, 0x5f, 0x48, 0x41, 0x53, 0x48, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x07, + 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, 0x2a, 0x90, 0x01, 0x0a, 0x13, 0x65, + 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x73, 0x74, 0x61, + 0x74, 0x65, 0x12, 0x0e, 0x0a, 0x0a, 0x4e, 0x4f, 0x5f, 0x50, 0x52, 0x4f, 0x46, 0x49, 0x4c, 0x45, + 0x10, 0x00, 0x12, 0x17, 0x0a, 0x13, 0x50, 0x52, 0x4f, 0x46, 0x49, 0x4c, 0x45, 0x5f, 0x41, 0x54, + 0x5f, 0x4d, 0x41, 0x58, 0x5f, 0x53, 0x49, 0x5a, 0x45, 0x10, 0x01, 0x12, 0x14, 0x0a, 0x10, 0x55, + 0x4e, 0x53, 0x54, 0x41, 0x42, 0x4c, 0x45, 0x5f, 0x50, 0x52, 0x4f, 0x46, 0x49, 0x4c, 0x45, 0x10, + 0x02, 0x12, 0x12, 0x0a, 0x0e, 0x53, 0x54, 0x41, 0x42, 0x4c, 0x45, 0x5f, 0x50, 0x52, 0x4f, 0x46, + 0x49, 0x4c, 0x45, 0x10, 0x03, 0x12, 0x11, 0x0a, 0x0d, 0x41, 0x55, 0x54, 0x4f, 0x5f, 0x4c, 0x45, + 0x41, 0x52, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x04, 0x12, 0x13, 0x0a, 0x0f, 0x57, 0x4f, 0x52, 0x4b, + 0x4c, 0x4f, 0x41, 0x44, 0x5f, 0x57, 0x41, 0x52, 0x4d, 0x55, 0x50, 0x10, 0x05, 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 ( @@ -1920,57 +2184,67 @@ func file_proto_cws_dumpsv1_activity_dump_proto_rawDescGZIP() []byte { return file_proto_cws_dumpsv1_activity_dump_proto_rawDescData } -var file_proto_cws_dumpsv1_activity_dump_proto_enumTypes = make([]protoimpl.EnumInfo, 2) -var file_proto_cws_dumpsv1_activity_dump_proto_msgTypes = make([]protoimpl.MessageInfo, 15) +var file_proto_cws_dumpsv1_activity_dump_proto_enumTypes = make([]protoimpl.EnumInfo, 3) +var file_proto_cws_dumpsv1_activity_dump_proto_msgTypes = make([]protoimpl.MessageInfo, 19) var file_proto_cws_dumpsv1_activity_dump_proto_goTypes = []interface{}{ (HashState)(0), // 0: datadog.cws.dumpsv1.HashState (GenerationType)(0), // 1: datadog.cws.dumpsv1.GenerationType - (*SecDump)(nil), // 2: datadog.cws.dumpsv1.SecDump - (*Metadata)(nil), // 3: datadog.cws.dumpsv1.Metadata - (*SecurityProfile)(nil), // 4: datadog.cws.dumpsv1.SecurityProfile - (*ProcessActivityNode)(nil), // 5: datadog.cws.dumpsv1.ProcessActivityNode - (*ProcessInfo)(nil), // 6: datadog.cws.dumpsv1.ProcessInfo - (*FileActivityNode)(nil), // 7: datadog.cws.dumpsv1.FileActivityNode - (*OpenNode)(nil), // 8: datadog.cws.dumpsv1.OpenNode - (*DNSNode)(nil), // 9: datadog.cws.dumpsv1.DNSNode - (*DNSInfo)(nil), // 10: datadog.cws.dumpsv1.DNSInfo - (*FileInfo)(nil), // 11: datadog.cws.dumpsv1.FileInfo - (*Credentials)(nil), // 12: datadog.cws.dumpsv1.Credentials - (*SocketNode)(nil), // 13: datadog.cws.dumpsv1.SocketNode - (*BindNode)(nil), // 14: datadog.cws.dumpsv1.BindNode - (*MatchedRule)(nil), // 15: datadog.cws.dumpsv1.MatchedRule - nil, // 16: datadog.cws.dumpsv1.MatchedRule.RuleTagsEntry + (EventProfileState)(0), // 2: datadog.cws.dumpsv1.event_profile_state + (*SecDump)(nil), // 3: datadog.cws.dumpsv1.SecDump + (*Metadata)(nil), // 4: datadog.cws.dumpsv1.Metadata + (*ProfileContext)(nil), // 5: datadog.cws.dumpsv1.ProfileContext + (*SecurityProfile)(nil), // 6: datadog.cws.dumpsv1.SecurityProfile + (*ProcessActivityNode)(nil), // 7: datadog.cws.dumpsv1.ProcessActivityNode + (*ProcessInfo)(nil), // 8: datadog.cws.dumpsv1.ProcessInfo + (*FileActivityNode)(nil), // 9: datadog.cws.dumpsv1.FileActivityNode + (*OpenNode)(nil), // 10: datadog.cws.dumpsv1.OpenNode + (*DNSNode)(nil), // 11: datadog.cws.dumpsv1.DNSNode + (*DNSInfo)(nil), // 12: datadog.cws.dumpsv1.DNSInfo + (*FileInfo)(nil), // 13: datadog.cws.dumpsv1.FileInfo + (*Credentials)(nil), // 14: datadog.cws.dumpsv1.Credentials + (*SocketNode)(nil), // 15: datadog.cws.dumpsv1.SocketNode + (*BindNode)(nil), // 16: datadog.cws.dumpsv1.BindNode + (*MatchedRule)(nil), // 17: datadog.cws.dumpsv1.MatchedRule + (*EventTypeState)(nil), // 18: datadog.cws.dumpsv1.event_type_state + nil, // 19: datadog.cws.dumpsv1.ProfileContext.EventTypeStateEntry + nil, // 20: datadog.cws.dumpsv1.SecurityProfile.ProfileContextsEntry + nil, // 21: datadog.cws.dumpsv1.MatchedRule.RuleTagsEntry } var file_proto_cws_dumpsv1_activity_dump_proto_depIdxs = []int32{ - 3, // 0: datadog.cws.dumpsv1.SecDump.metadata:type_name -> datadog.cws.dumpsv1.Metadata - 5, // 1: datadog.cws.dumpsv1.SecDump.tree:type_name -> datadog.cws.dumpsv1.ProcessActivityNode - 3, // 2: datadog.cws.dumpsv1.SecurityProfile.metadata:type_name -> datadog.cws.dumpsv1.Metadata - 5, // 3: datadog.cws.dumpsv1.SecurityProfile.tree:type_name -> datadog.cws.dumpsv1.ProcessActivityNode - 6, // 4: datadog.cws.dumpsv1.ProcessActivityNode.process:type_name -> datadog.cws.dumpsv1.ProcessInfo - 1, // 5: datadog.cws.dumpsv1.ProcessActivityNode.generation_type:type_name -> datadog.cws.dumpsv1.GenerationType - 15, // 6: datadog.cws.dumpsv1.ProcessActivityNode.matched_rules:type_name -> datadog.cws.dumpsv1.MatchedRule - 5, // 7: datadog.cws.dumpsv1.ProcessActivityNode.children:type_name -> datadog.cws.dumpsv1.ProcessActivityNode - 7, // 8: datadog.cws.dumpsv1.ProcessActivityNode.files:type_name -> datadog.cws.dumpsv1.FileActivityNode - 9, // 9: datadog.cws.dumpsv1.ProcessActivityNode.dns_names:type_name -> datadog.cws.dumpsv1.DNSNode - 13, // 10: datadog.cws.dumpsv1.ProcessActivityNode.sockets:type_name -> datadog.cws.dumpsv1.SocketNode - 11, // 11: datadog.cws.dumpsv1.ProcessInfo.file:type_name -> datadog.cws.dumpsv1.FileInfo - 12, // 12: datadog.cws.dumpsv1.ProcessInfo.credentials:type_name -> datadog.cws.dumpsv1.Credentials - 15, // 13: datadog.cws.dumpsv1.FileActivityNode.matched_rules:type_name -> datadog.cws.dumpsv1.MatchedRule - 11, // 14: datadog.cws.dumpsv1.FileActivityNode.file:type_name -> datadog.cws.dumpsv1.FileInfo - 1, // 15: datadog.cws.dumpsv1.FileActivityNode.generation_type:type_name -> datadog.cws.dumpsv1.GenerationType - 8, // 16: datadog.cws.dumpsv1.FileActivityNode.open:type_name -> datadog.cws.dumpsv1.OpenNode - 7, // 17: datadog.cws.dumpsv1.FileActivityNode.children:type_name -> datadog.cws.dumpsv1.FileActivityNode - 15, // 18: datadog.cws.dumpsv1.DNSNode.matched_rules:type_name -> datadog.cws.dumpsv1.MatchedRule - 10, // 19: datadog.cws.dumpsv1.DNSNode.requests:type_name -> datadog.cws.dumpsv1.DNSInfo - 0, // 20: datadog.cws.dumpsv1.FileInfo.hash_state:type_name -> datadog.cws.dumpsv1.HashState - 14, // 21: datadog.cws.dumpsv1.SocketNode.bind:type_name -> datadog.cws.dumpsv1.BindNode - 15, // 22: datadog.cws.dumpsv1.BindNode.matched_rules:type_name -> datadog.cws.dumpsv1.MatchedRule - 16, // 23: datadog.cws.dumpsv1.MatchedRule.rule_tags:type_name -> datadog.cws.dumpsv1.MatchedRule.RuleTagsEntry - 24, // [24:24] is the sub-list for method output_type - 24, // [24:24] is the sub-list for method input_type - 24, // [24:24] is the sub-list for extension type_name - 24, // [24:24] is the sub-list for extension extendee - 0, // [0:24] is the sub-list for field type_name + 4, // 0: datadog.cws.dumpsv1.SecDump.metadata:type_name -> datadog.cws.dumpsv1.Metadata + 7, // 1: datadog.cws.dumpsv1.SecDump.tree:type_name -> datadog.cws.dumpsv1.ProcessActivityNode + 19, // 2: datadog.cws.dumpsv1.ProfileContext.event_type_state:type_name -> datadog.cws.dumpsv1.ProfileContext.EventTypeStateEntry + 4, // 3: datadog.cws.dumpsv1.SecurityProfile.metadata:type_name -> datadog.cws.dumpsv1.Metadata + 7, // 4: datadog.cws.dumpsv1.SecurityProfile.tree:type_name -> datadog.cws.dumpsv1.ProcessActivityNode + 20, // 5: datadog.cws.dumpsv1.SecurityProfile.profile_contexts:type_name -> datadog.cws.dumpsv1.SecurityProfile.ProfileContextsEntry + 8, // 6: datadog.cws.dumpsv1.ProcessActivityNode.process:type_name -> datadog.cws.dumpsv1.ProcessInfo + 1, // 7: datadog.cws.dumpsv1.ProcessActivityNode.generation_type:type_name -> datadog.cws.dumpsv1.GenerationType + 17, // 8: datadog.cws.dumpsv1.ProcessActivityNode.matched_rules:type_name -> datadog.cws.dumpsv1.MatchedRule + 7, // 9: datadog.cws.dumpsv1.ProcessActivityNode.children:type_name -> datadog.cws.dumpsv1.ProcessActivityNode + 9, // 10: datadog.cws.dumpsv1.ProcessActivityNode.files:type_name -> datadog.cws.dumpsv1.FileActivityNode + 11, // 11: datadog.cws.dumpsv1.ProcessActivityNode.dns_names:type_name -> datadog.cws.dumpsv1.DNSNode + 15, // 12: datadog.cws.dumpsv1.ProcessActivityNode.sockets:type_name -> datadog.cws.dumpsv1.SocketNode + 13, // 13: datadog.cws.dumpsv1.ProcessInfo.file:type_name -> datadog.cws.dumpsv1.FileInfo + 14, // 14: datadog.cws.dumpsv1.ProcessInfo.credentials:type_name -> datadog.cws.dumpsv1.Credentials + 17, // 15: datadog.cws.dumpsv1.FileActivityNode.matched_rules:type_name -> datadog.cws.dumpsv1.MatchedRule + 13, // 16: datadog.cws.dumpsv1.FileActivityNode.file:type_name -> datadog.cws.dumpsv1.FileInfo + 1, // 17: datadog.cws.dumpsv1.FileActivityNode.generation_type:type_name -> datadog.cws.dumpsv1.GenerationType + 10, // 18: datadog.cws.dumpsv1.FileActivityNode.open:type_name -> datadog.cws.dumpsv1.OpenNode + 9, // 19: datadog.cws.dumpsv1.FileActivityNode.children:type_name -> datadog.cws.dumpsv1.FileActivityNode + 17, // 20: datadog.cws.dumpsv1.DNSNode.matched_rules:type_name -> datadog.cws.dumpsv1.MatchedRule + 12, // 21: datadog.cws.dumpsv1.DNSNode.requests:type_name -> datadog.cws.dumpsv1.DNSInfo + 0, // 22: datadog.cws.dumpsv1.FileInfo.hash_state:type_name -> datadog.cws.dumpsv1.HashState + 16, // 23: datadog.cws.dumpsv1.SocketNode.bind:type_name -> datadog.cws.dumpsv1.BindNode + 17, // 24: datadog.cws.dumpsv1.BindNode.matched_rules:type_name -> datadog.cws.dumpsv1.MatchedRule + 21, // 25: datadog.cws.dumpsv1.MatchedRule.rule_tags:type_name -> datadog.cws.dumpsv1.MatchedRule.RuleTagsEntry + 2, // 26: datadog.cws.dumpsv1.event_type_state.event_profile_state:type_name -> datadog.cws.dumpsv1.event_profile_state + 18, // 27: datadog.cws.dumpsv1.ProfileContext.EventTypeStateEntry.value:type_name -> datadog.cws.dumpsv1.event_type_state + 5, // 28: datadog.cws.dumpsv1.SecurityProfile.ProfileContextsEntry.value:type_name -> datadog.cws.dumpsv1.ProfileContext + 29, // [29:29] is the sub-list for method output_type + 29, // [29:29] is the sub-list for method input_type + 29, // [29:29] is the sub-list for extension type_name + 29, // [29:29] is the sub-list for extension extendee + 0, // [0:29] is the sub-list for field type_name } func init() { file_proto_cws_dumpsv1_activity_dump_proto_init() } @@ -2004,7 +2278,7 @@ func file_proto_cws_dumpsv1_activity_dump_proto_init() { } } file_proto_cws_dumpsv1_activity_dump_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SecurityProfile); i { + switch v := v.(*ProfileContext); i { case 0: return &v.state case 1: @@ -2016,7 +2290,7 @@ func file_proto_cws_dumpsv1_activity_dump_proto_init() { } } file_proto_cws_dumpsv1_activity_dump_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProcessActivityNode); i { + switch v := v.(*SecurityProfile); i { case 0: return &v.state case 1: @@ -2028,7 +2302,7 @@ func file_proto_cws_dumpsv1_activity_dump_proto_init() { } } file_proto_cws_dumpsv1_activity_dump_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProcessInfo); i { + switch v := v.(*ProcessActivityNode); i { case 0: return &v.state case 1: @@ -2040,7 +2314,7 @@ func file_proto_cws_dumpsv1_activity_dump_proto_init() { } } file_proto_cws_dumpsv1_activity_dump_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FileActivityNode); i { + switch v := v.(*ProcessInfo); i { case 0: return &v.state case 1: @@ -2052,7 +2326,7 @@ func file_proto_cws_dumpsv1_activity_dump_proto_init() { } } file_proto_cws_dumpsv1_activity_dump_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OpenNode); i { + switch v := v.(*FileActivityNode); i { case 0: return &v.state case 1: @@ -2064,7 +2338,7 @@ func file_proto_cws_dumpsv1_activity_dump_proto_init() { } } file_proto_cws_dumpsv1_activity_dump_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DNSNode); i { + switch v := v.(*OpenNode); i { case 0: return &v.state case 1: @@ -2076,7 +2350,7 @@ func file_proto_cws_dumpsv1_activity_dump_proto_init() { } } file_proto_cws_dumpsv1_activity_dump_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DNSInfo); i { + switch v := v.(*DNSNode); i { case 0: return &v.state case 1: @@ -2088,7 +2362,7 @@ func file_proto_cws_dumpsv1_activity_dump_proto_init() { } } file_proto_cws_dumpsv1_activity_dump_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FileInfo); i { + switch v := v.(*DNSInfo); i { case 0: return &v.state case 1: @@ -2100,7 +2374,7 @@ func file_proto_cws_dumpsv1_activity_dump_proto_init() { } } file_proto_cws_dumpsv1_activity_dump_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Credentials); i { + switch v := v.(*FileInfo); i { case 0: return &v.state case 1: @@ -2112,7 +2386,7 @@ func file_proto_cws_dumpsv1_activity_dump_proto_init() { } } file_proto_cws_dumpsv1_activity_dump_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SocketNode); i { + switch v := v.(*Credentials); i { case 0: return &v.state case 1: @@ -2124,7 +2398,7 @@ func file_proto_cws_dumpsv1_activity_dump_proto_init() { } } file_proto_cws_dumpsv1_activity_dump_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BindNode); i { + switch v := v.(*SocketNode); i { case 0: return &v.state case 1: @@ -2136,6 +2410,18 @@ func file_proto_cws_dumpsv1_activity_dump_proto_init() { } } file_proto_cws_dumpsv1_activity_dump_proto_msgTypes[13].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[14].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MatchedRule); i { case 0: return &v.state @@ -2147,14 +2433,26 @@ func file_proto_cws_dumpsv1_activity_dump_proto_init() { return nil } } + file_proto_cws_dumpsv1_activity_dump_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EventTypeState); 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: 2, - NumMessages: 15, + NumEnums: 3, + NumMessages: 19, NumExtensions: 0, NumServices: 0, }, diff --git a/cws/dumpsv1/activity_dump_vtproto.pb.go b/cws/dumpsv1/activity_dump_vtproto.pb.go index 12f03305..7b992fdf 100644 --- a/cws/dumpsv1/activity_dump_vtproto.pb.go +++ b/cws/dumpsv1/activity_dump_vtproto.pb.go @@ -232,7 +232,7 @@ func (m *Metadata) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *SecurityProfile) MarshalVT() (dAtA []byte, err error) { +func (m *ProfileContext) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -245,12 +245,12 @@ func (m *SecurityProfile) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *SecurityProfile) MarshalToVT(dAtA []byte) (int, error) { +func (m *ProfileContext) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *SecurityProfile) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *ProfileContext) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -262,16 +262,13 @@ func (m *SecurityProfile) MarshalToSizedBufferVT(dAtA []byte) (int, error) { 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)) + 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] = 0x32 + dAtA[i] = 0x2a } } if len(m.Syscalls) > 0 { @@ -292,15 +289,103 @@ func (m *SecurityProfile) MarshalToSizedBufferVT(dAtA []byte) (int, error) { } i = encodeVarint(dAtA, i, uint64(pksize2)) i-- - dAtA[i] = 0x2a + dAtA[i] = 0x22 } - 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]))) + if len(m.EventTypeState) > 0 { + for k := range m.EventTypeState { + v := m.EventTypeState[k] + baseI := i + size, err := v.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) i-- - dAtA[i] = 0x22 + dAtA[i] = 0x12 + i = encodeVarint(dAtA, i, uint64(k)) + i-- + dAtA[i] = 0x8 + i = encodeVarint(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0x1a + } + } + if m.LastSeen != 0 { + i = encodeVarint(dAtA, i, uint64(m.LastSeen)) + i-- + dAtA[i] = 0x10 + } + if m.FirstSeen != 0 { + i = encodeVarint(dAtA, i, uint64(m.FirstSeen)) + i-- + dAtA[i] = 0x8 + } + 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.ProfileContexts) > 0 { + for k := range m.ProfileContexts { + v := m.ProfileContexts[k] + baseI := i + size, err := v.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + 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] = 0x3a + } + } + 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 m.Metadata != nil { @@ -313,13 +398,6 @@ func (m *SecurityProfile) MarshalToSizedBufferVT(dAtA []byte) (int, error) { 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-- @@ -358,6 +436,15 @@ func (m *ProcessActivityNode) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } + if len(m.ImageTags) > 0 { + for iNdEx := len(m.ImageTags) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ImageTags[iNdEx]) + copy(dAtA[i:], m.ImageTags[iNdEx]) + i = encodeVarint(dAtA, i, uint64(len(m.ImageTags[iNdEx]))) + i-- + dAtA[i] = 0x52 + } + } if len(m.MatchedRules) > 0 { for iNdEx := len(m.MatchedRules) - 1; iNdEx >= 0; iNdEx-- { size, err := m.MatchedRules[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) @@ -689,6 +776,15 @@ func (m *FileActivityNode) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } + if len(m.ImageTags) > 0 { + for iNdEx := len(m.ImageTags) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ImageTags[iNdEx]) + copy(dAtA[i:], m.ImageTags[iNdEx]) + i = encodeVarint(dAtA, i, uint64(len(m.ImageTags[iNdEx]))) + i-- + dAtA[i] = 0x52 + } + } if len(m.MatchedRules) > 0 { for iNdEx := len(m.MatchedRules) - 1; iNdEx >= 0; iNdEx-- { size, err := m.MatchedRules[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) @@ -841,6 +937,15 @@ func (m *DNSNode) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } + if len(m.ImageTags) > 0 { + for iNdEx := len(m.ImageTags) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ImageTags[iNdEx]) + copy(dAtA[i:], m.ImageTags[iNdEx]) + i = encodeVarint(dAtA, i, uint64(len(m.ImageTags[iNdEx]))) + i-- + dAtA[i] = 0x1a + } + } if len(m.MatchedRules) > 0 { for iNdEx := len(m.MatchedRules) - 1; iNdEx >= 0; iNdEx-- { size, err := m.MatchedRules[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) @@ -1279,6 +1384,15 @@ func (m *BindNode) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } + if len(m.ImageTags) > 0 { + for iNdEx := len(m.ImageTags) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ImageTags[iNdEx]) + copy(dAtA[i:], m.ImageTags[iNdEx]) + i = encodeVarint(dAtA, i, uint64(len(m.ImageTags[iNdEx]))) + i-- + dAtA[i] = 0x22 + } + } if len(m.MatchedRules) > 0 { for iNdEx := len(m.MatchedRules) - 1; iNdEx >= 0; iNdEx-- { size, err := m.MatchedRules[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) @@ -1386,6 +1500,49 @@ func (m *MatchedRule) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } +func (m *EventTypeState) 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 *EventTypeState) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *EventTypeState) 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.EventProfileState != 0 { + i = encodeVarint(dAtA, i, uint64(m.EventProfileState)) + i-- + dAtA[i] = 0x10 + } + if m.LastAnomalyNano != 0 { + i = encodeVarint(dAtA, i, uint64(m.LastAnomalyNano)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + func encodeVarint(dAtA []byte, offset int, v uint64) int { offset -= sov(v) base := offset @@ -1453,6 +1610,7 @@ func (m *ProcessActivityNode) ResetVT() { mm.Reset() } f5 := m.MatchedRules[:0] + f6 := m.ImageTags[:0] m.Reset() m.Children = f0 m.Files = f1 @@ -1460,6 +1618,7 @@ func (m *ProcessActivityNode) ResetVT() { m.Sockets = f3 m.Syscalls = f4 m.MatchedRules = f5 + m.ImageTags = f6 } func (m *ProcessActivityNode) ReturnToVTPool() { if m != nil { @@ -1511,9 +1670,11 @@ func (m *FileActivityNode) ResetVT() { mm.Reset() } f1 := m.MatchedRules[:0] + f2 := m.ImageTags[:0] m.Reset() m.Children = f0 m.MatchedRules = f1 + m.ImageTags = f2 } func (m *FileActivityNode) ReturnToVTPool() { if m != nil { @@ -1645,27 +1806,29 @@ func (m *Metadata) SizeVT() (n int) { return n } -func (m *SecurityProfile) SizeVT() (n int) { +func (m *ProfileContext) 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.FirstSeen != 0 { + n += 1 + sov(uint64(m.FirstSeen)) } - if m.Metadata != nil { - l = m.Metadata.SizeVT() - n += 1 + l + sov(uint64(l)) + if m.LastSeen != 0 { + n += 1 + sov(uint64(m.LastSeen)) } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - l = len(s) - n += 1 + l + sov(uint64(l)) + if len(m.EventTypeState) > 0 { + for k, v := range m.EventTypeState { + _ = k + _ = v + l = 0 + if v != nil { + l = v.SizeVT() + } + l += 1 + sov(uint64(l)) + mapEntrySize := 1 + sov(uint64(k)) + l + n += mapEntrySize + 1 + sov(uint64(mapEntrySize)) } } if len(m.Syscalls) > 0 { @@ -1675,12 +1838,48 @@ func (m *SecurityProfile) SizeVT() (n int) { } n += 1 + sov(uint64(l)) + l } + if len(m.Tags) > 0 { + for _, s := range m.Tags { + l = len(s) + 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)) + } + if m.Metadata != nil { + l = m.Metadata.SizeVT() + 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)) } } + if len(m.ProfileContexts) > 0 { + for k, v := range m.ProfileContexts { + _ = k + _ = v + l = 0 + if v != nil { + l = v.SizeVT() + } + l += 1 + sov(uint64(l)) + mapEntrySize := 1 + len(k) + sov(uint64(len(k))) + l + n += mapEntrySize + 1 + sov(uint64(mapEntrySize)) + } + } n += len(m.unknownFields) return n } @@ -1735,6 +1934,12 @@ func (m *ProcessActivityNode) SizeVT() (n int) { n += 1 + l + sov(uint64(l)) } } + if len(m.ImageTags) > 0 { + for _, s := range m.ImageTags { + l = len(s) + n += 1 + l + sov(uint64(l)) + } + } n += len(m.unknownFields) return n } @@ -1866,6 +2071,12 @@ func (m *FileActivityNode) SizeVT() (n int) { n += 1 + l + sov(uint64(l)) } } + if len(m.ImageTags) > 0 { + for _, s := range m.ImageTags { + l = len(s) + n += 1 + l + sov(uint64(l)) + } + } n += len(m.unknownFields) return n } @@ -1907,6 +2118,12 @@ func (m *DNSNode) SizeVT() (n int) { n += 1 + l + sov(uint64(l)) } } + if len(m.ImageTags) > 0 { + for _, s := range m.ImageTags { + l = len(s) + n += 1 + l + sov(uint64(l)) + } + } n += len(m.unknownFields) return n } @@ -2109,6 +2326,12 @@ func (m *BindNode) SizeVT() (n int) { n += 1 + l + sov(uint64(l)) } } + if len(m.ImageTags) > 0 { + for _, s := range m.ImageTags { + l = len(s) + n += 1 + l + sov(uint64(l)) + } + } n += len(m.unknownFields) return n } @@ -2147,6 +2370,22 @@ func (m *MatchedRule) SizeVT() (n int) { return n } +func (m *EventTypeState) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.LastAnomalyNano != 0 { + n += 1 + sov(uint64(m.LastAnomalyNano)) + } + if m.EventProfileState != 0 { + n += 1 + sov(uint64(m.EventProfileState)) + } + n += len(m.unknownFields) + return n +} + func sov(x uint64) (n int) { return (bits.Len64(x|1) + 6) / 7 } @@ -2857,7 +3096,7 @@ func (m *Metadata) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *SecurityProfile) UnmarshalVT(dAtA []byte) error { +func (m *ProfileContext) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2880,17 +3119,17 @@ func (m *SecurityProfile) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: SecurityProfile: wiretype end group for non-group") + return fmt.Errorf("proto: ProfileContext: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: SecurityProfile: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ProfileContext: 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) + return fmt.Errorf("proto: wrong wireType = %d for field FirstSeen", wireType) } - m.Status = 0 + m.FirstSeen = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflow @@ -2900,16 +3139,16 @@ func (m *SecurityProfile) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Status |= uint32(b&0x7F) << shift + m.FirstSeen |= uint64(b&0x7F) << shift if b < 0x80 { break } } case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LastSeen", wireType) } - var stringLen uint64 + m.LastSeen = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflow @@ -2919,27 +3158,14 @@ func (m *SecurityProfile) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + m.LastSeen |= 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) + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EventTypeState", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -2966,46 +3192,93 @@ func (m *SecurityProfile) UnmarshalVT(dAtA []byte) error { 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) + if m.EventTypeState == nil { + m.EventTypeState = make(map[uint32]*EventTypeState) } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF + var mapkey uint32 + var mapvalue *EventTypeState + 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 + } } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break + fieldNum := int32(wire >> 3) + if fieldNum == 1 { + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + mapkey |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + } else if fieldNum == 2 { + var mapmsglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + mapmsglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if mapmsglen < 0 { + return ErrInvalidLength + } + postmsgIndex := iNdEx + mapmsglen + if postmsgIndex < 0 { + return ErrInvalidLength + } + if postmsgIndex > l { + return io.ErrUnexpectedEOF + } + mapvalue = &EventTypeState{} + if err := mapvalue.UnmarshalVT(dAtA[iNdEx:postmsgIndex]); err != nil { + return err + } + iNdEx = postmsgIndex + } 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 } } - 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])) + m.EventTypeState[mapkey] = mapvalue iNdEx = postIndex - case 5: + case 4: if wireType == 0 { var v uint32 for shift := uint(0); ; shift += 7 { @@ -3076,44 +3349,311 @@ func (m *SecurityProfile) UnmarshalVT(dAtA []byte) error { 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 + m.Syscalls = append(m.Syscalls, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field Syscalls", wireType) + } + 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 + 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 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 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 + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ProfileContexts", 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.ProfileContexts == nil { + m.ProfileContexts = make(map[string]*ProfileContext) + } + var mapkey string + var mapvalue *ProfileContext + 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 mapmsglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + mapmsglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if mapmsglen < 0 { + return ErrInvalidLength + } + postmsgIndex := iNdEx + mapmsglen + if postmsgIndex < 0 { + return ErrInvalidLength + } + if postmsgIndex > l { + return io.ErrUnexpectedEOF + } + mapvalue = &ProfileContext{} + if err := mapvalue.UnmarshalVT(dAtA[iNdEx:postmsgIndex]); err != nil { + return err + } + iNdEx = postmsgIndex + } 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 } } - 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 - } + m.ProfileContexts[mapkey] = mapvalue iNdEx = postIndex default: iNdEx = preIndex @@ -3502,6 +4042,38 @@ func (m *ProcessActivityNode) UnmarshalVT(dAtA []byte) error { return err } iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ImageTags", 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.ImageTags = append(m.ImageTags, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skip(dAtA[iNdEx:]) @@ -4382,6 +4954,38 @@ func (m *FileActivityNode) UnmarshalVT(dAtA []byte) error { return err } iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ImageTags", 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.ImageTags = append(m.ImageTags, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skip(dAtA[iNdEx:]) @@ -4611,6 +5215,38 @@ func (m *DNSNode) UnmarshalVT(dAtA []byte) error { return err } iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ImageTags", 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.ImageTags = append(m.ImageTags, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skip(dAtA[iNdEx:]) @@ -5929,6 +6565,38 @@ func (m *BindNode) UnmarshalVT(dAtA []byte) error { return err } iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ImageTags", 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.ImageTags = append(m.ImageTags, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skip(dAtA[iNdEx:]) @@ -6257,6 +6925,95 @@ func (m *MatchedRule) UnmarshalVT(dAtA []byte) error { } return nil } +func (m *EventTypeState) 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: EventTypeState: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EventTypeState: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LastAnomalyNano", wireType) + } + m.LastAnomalyNano = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.LastAnomalyNano |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EventProfileState", wireType) + } + m.EventProfileState = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.EventProfileState |= EventProfileState(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 skip(dAtA []byte) (n int, err error) { l := len(dAtA) diff --git a/java/com/dd/cws/adv1/pb/SecDumpProto.java b/java/com/dd/cws/adv1/pb/SecDumpProto.java index 339d39fe..d390616a 100644 --- a/java/com/dd/cws/adv1/pb/SecDumpProto.java +++ b/java/com/dd/cws/adv1/pb/SecDumpProto.java @@ -293,6 +293,150 @@ private GenerationType(int value) { // @@protoc_insertion_point(enum_scope:datadog.cws.dumpsv1.GenerationType) } + /** + * Protobuf enum {@code datadog.cws.dumpsv1.event_profile_state} + */ + public enum event_profile_state + implements com.google.protobuf.ProtocolMessageEnum { + /** + * NO_PROFILE = 0; + */ + NO_PROFILE(0), + /** + * PROFILE_AT_MAX_SIZE = 1; + */ + PROFILE_AT_MAX_SIZE(1), + /** + * UNSTABLE_PROFILE = 2; + */ + UNSTABLE_PROFILE(2), + /** + * STABLE_PROFILE = 3; + */ + STABLE_PROFILE(3), + /** + * AUTO_LEARNING = 4; + */ + AUTO_LEARNING(4), + /** + * WORKLOAD_WARMUP = 5; + */ + WORKLOAD_WARMUP(5), + UNRECOGNIZED(-1), + ; + + /** + * NO_PROFILE = 0; + */ + public static final int NO_PROFILE_VALUE = 0; + /** + * PROFILE_AT_MAX_SIZE = 1; + */ + public static final int PROFILE_AT_MAX_SIZE_VALUE = 1; + /** + * UNSTABLE_PROFILE = 2; + */ + public static final int UNSTABLE_PROFILE_VALUE = 2; + /** + * STABLE_PROFILE = 3; + */ + public static final int STABLE_PROFILE_VALUE = 3; + /** + * AUTO_LEARNING = 4; + */ + public static final int AUTO_LEARNING_VALUE = 4; + /** + * WORKLOAD_WARMUP = 5; + */ + public static final int WORKLOAD_WARMUP_VALUE = 5; + + + 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 event_profile_state 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 event_profile_state forNumber(int value) { + switch (value) { + case 0: return NO_PROFILE; + case 1: return PROFILE_AT_MAX_SIZE; + case 2: return UNSTABLE_PROFILE; + case 3: return STABLE_PROFILE; + case 4: return AUTO_LEARNING; + case 5: return WORKLOAD_WARMUP; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + event_profile_state> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public event_profile_state findValueByNumber(int number) { + return event_profile_state.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(2); + } + + private static final event_profile_state[] VALUES = values(); + + public static event_profile_state 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 event_profile_state(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:datadog.cws.dumpsv1.event_profile_state) + } + public interface SecDumpOrBuilder extends // @@protoc_insertion_point(interface_extends:datadog.cws.dumpsv1.SecDump) com.google.protobuf.MessageOrBuilder { @@ -4103,133 +4247,120 @@ public com.dd.cws.adv1.pb.SecDumpProto.Metadata getDefaultInstanceForType() { } - public interface SecurityProfileOrBuilder extends - // @@protoc_insertion_point(interface_extends:datadog.cws.dumpsv1.SecurityProfile) + public interface ProfileContextOrBuilder extends + // @@protoc_insertion_point(interface_extends:datadog.cws.dumpsv1.ProfileContext) com.google.protobuf.MessageOrBuilder { /** - * uint32 status = 1; - * @return The status. + * uint64 first_seen = 1; + * @return The firstSeen. */ - int getStatus(); + long getFirstSeen(); /** - * string version = 2; - * @return The version. - */ - java.lang.String getVersion(); - /** - * string version = 2; - * @return The bytes for version. + * uint64 last_seen = 2; + * @return The lastSeen. */ - com.google.protobuf.ByteString - getVersionBytes(); + long getLastSeen(); /** - * .datadog.cws.dumpsv1.Metadata metadata = 3; - * @return Whether the metadata field is set. - */ - boolean hasMetadata(); - /** - * .datadog.cws.dumpsv1.Metadata metadata = 3; - * @return The metadata. + * map<uint32, .datadog.cws.dumpsv1.event_type_state> event_type_state = 3; */ - com.dd.cws.adv1.pb.SecDumpProto.Metadata getMetadata(); + int getEventTypeStateCount(); /** - * .datadog.cws.dumpsv1.Metadata metadata = 3; + * map<uint32, .datadog.cws.dumpsv1.event_type_state> event_type_state = 3; */ - com.dd.cws.adv1.pb.SecDumpProto.MetadataOrBuilder getMetadataOrBuilder(); - + boolean containsEventTypeState( + int key); /** - * repeated string tags = 4; - * @return A list containing the tags. + * Use {@link #getEventTypeStateMap()} instead. */ - java.util.List - getTagsList(); + @java.lang.Deprecated + java.util.Map + getEventTypeState(); /** - * repeated string tags = 4; - * @return The count of tags. + * map<uint32, .datadog.cws.dumpsv1.event_type_state> event_type_state = 3; */ - int getTagsCount(); + java.util.Map + getEventTypeStateMap(); /** - * repeated string tags = 4; - * @param index The index of the element to return. - * @return The tags at the given index. + * map<uint32, .datadog.cws.dumpsv1.event_type_state> event_type_state = 3; */ - java.lang.String getTags(int index); + /* nullable */ +com.dd.cws.adv1.pb.SecDumpProto.event_type_state getEventTypeStateOrDefault( + int key, + /* nullable */ +com.dd.cws.adv1.pb.SecDumpProto.event_type_state defaultValue); /** - * repeated string tags = 4; - * @param index The index of the value to return. - * @return The bytes of the tags at the given index. + * map<uint32, .datadog.cws.dumpsv1.event_type_state> event_type_state = 3; */ - com.google.protobuf.ByteString - getTagsBytes(int index); + com.dd.cws.adv1.pb.SecDumpProto.event_type_state getEventTypeStateOrThrow( + int key); /** - * repeated uint32 syscalls = 5; + * repeated uint32 syscalls = 4; * @return A list containing the syscalls. */ java.util.List getSyscallsList(); /** - * repeated uint32 syscalls = 5; + * repeated uint32 syscalls = 4; * @return The count of syscalls. */ int getSyscallsCount(); /** - * repeated uint32 syscalls = 5; + * repeated uint32 syscalls = 4; * @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; + * repeated string tags = 5; + * @return A list containing the tags. */ - com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode getTree(int index); + java.util.List + getTagsList(); /** - * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; + * repeated string tags = 5; + * @return The count of tags. */ - int getTreeCount(); + int getTagsCount(); /** - * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; + * repeated string tags = 5; + * @param index The index of the element to return. + * @return The tags at the given index. */ - java.util.List - getTreeOrBuilderList(); + java.lang.String getTags(int index); /** - * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; + * repeated string tags = 5; + * @param index The index of the value to return. + * @return The bytes of the tags at the given index. */ - com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNodeOrBuilder getTreeOrBuilder( - int index); + com.google.protobuf.ByteString + getTagsBytes(int index); } /** - * Protobuf type {@code datadog.cws.dumpsv1.SecurityProfile} + * Protobuf type {@code datadog.cws.dumpsv1.ProfileContext} */ - public static final class SecurityProfile extends + public static final class ProfileContext extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:datadog.cws.dumpsv1.SecurityProfile) - SecurityProfileOrBuilder { + // @@protoc_insertion_point(message_implements:datadog.cws.dumpsv1.ProfileContext) + ProfileContextOrBuilder { private static final long serialVersionUID = 0L; - // Use SecurityProfile.newBuilder() to construct. - private SecurityProfile(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use ProfileContext.newBuilder() to construct. + private ProfileContext(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SecurityProfile() { - version_ = ""; - tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private ProfileContext() { syscalls_ = emptyIntList(); - tree_ = java.util.Collections.emptyList(); + tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new SecurityProfile(); + return new ProfileContext(); } @java.lang.Override @@ -4239,134 +4370,135 @@ 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_SecurityProfile_descriptor; + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_ProfileContext_descriptor; } + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 3: + return internalGetEventTypeState(); + 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_SecurityProfile_fieldAccessorTable + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_ProfileContext_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.dd.cws.adv1.pb.SecDumpProto.SecurityProfile.class, com.dd.cws.adv1.pb.SecDumpProto.SecurityProfile.Builder.class); + com.dd.cws.adv1.pb.SecDumpProto.ProfileContext.class, com.dd.cws.adv1.pb.SecDumpProto.ProfileContext.Builder.class); } - public static final int STATUS_FIELD_NUMBER = 1; - private int status_ = 0; + public static final int FIRST_SEEN_FIELD_NUMBER = 1; + private long firstSeen_ = 0L; /** - * uint32 status = 1; - * @return The status. + * uint64 first_seen = 1; + * @return The firstSeen. */ @java.lang.Override - public int getStatus() { - return status_; + public long getFirstSeen() { + return firstSeen_; } - public static final int VERSION_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object version_ = ""; + public static final int LAST_SEEN_FIELD_NUMBER = 2; + private long lastSeen_ = 0L; /** - * string version = 2; - * @return The version. + * uint64 last_seen = 2; + * @return The lastSeen. */ @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; + public long getLastSeen() { + return lastSeen_; + } + + public static final int EVENT_TYPE_STATE_FIELD_NUMBER = 3; + private static final class EventTypeStateDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.Integer, com.dd.cws.adv1.pb.SecDumpProto.event_type_state> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_ProfileContext_EventTypeStateEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.UINT32, + 0, + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.dd.cws.adv1.pb.SecDumpProto.event_type_state.getDefaultInstance()); + } + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.Integer, com.dd.cws.adv1.pb.SecDumpProto.event_type_state> eventTypeState_; + private com.google.protobuf.MapField + internalGetEventTypeState() { + if (eventTypeState_ == null) { + return com.google.protobuf.MapField.emptyMapField( + EventTypeStateDefaultEntryHolder.defaultEntry); } + return eventTypeState_; + } + public int getEventTypeStateCount() { + return internalGetEventTypeState().getMap().size(); } /** - * string version = 2; - * @return The bytes for version. + * map<uint32, .datadog.cws.dumpsv1.event_type_state> event_type_state = 3; */ @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 boolean containsEventTypeState( + int key) { + + return internalGetEventTypeState().getMap().containsKey(key); } - - 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. + * Use {@link #getEventTypeStateMap()} instead. */ @java.lang.Override - public boolean hasMetadata() { - return metadata_ != null; + @java.lang.Deprecated + public java.util.Map getEventTypeState() { + return getEventTypeStateMap(); } /** - * .datadog.cws.dumpsv1.Metadata metadata = 3; - * @return The metadata. + * map<uint32, .datadog.cws.dumpsv1.event_type_state> event_type_state = 3; */ @java.lang.Override - public com.dd.cws.adv1.pb.SecDumpProto.Metadata getMetadata() { - return metadata_ == null ? com.dd.cws.adv1.pb.SecDumpProto.Metadata.getDefaultInstance() : metadata_; + public java.util.Map getEventTypeStateMap() { + return internalGetEventTypeState().getMap(); } /** - * .datadog.cws.dumpsv1.Metadata metadata = 3; + * map<uint32, .datadog.cws.dumpsv1.event_type_state> event_type_state = 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 /* nullable */ +com.dd.cws.adv1.pb.SecDumpProto.event_type_state getEventTypeStateOrDefault( + int key, + /* nullable */ +com.dd.cws.adv1.pb.SecDumpProto.event_type_state defaultValue) { + + java.util.Map map = + internalGetEventTypeState().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<uint32, .datadog.cws.dumpsv1.event_type_state> event_type_state = 3; + */ + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.event_type_state getEventTypeStateOrThrow( + int key) { + + java.util.Map map = + internalGetEventTypeState().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); } - public static final int TAGS_FIELD_NUMBER = 4; + public static final int SYSCALLS_FIELD_NUMBER = 4; @SuppressWarnings("serial") - private com.google.protobuf.LazyStringList tags_; + private com.google.protobuf.Internal.IntList syscalls_; /** - * 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; + * repeated uint32 syscalls = 4; * @return A list containing the syscalls. */ @java.lang.Override @@ -4375,14 +4507,14 @@ public java.lang.String getTags(int index) { return syscalls_; } /** - * repeated uint32 syscalls = 5; + * repeated uint32 syscalls = 4; * @return The count of syscalls. */ public int getSyscallsCount() { return syscalls_.size(); } /** - * repeated uint32 syscalls = 5; + * repeated uint32 syscalls = 4; * @param index The index of the element to return. * @return The syscalls at the given index. */ @@ -4391,45 +4523,40 @@ public int getSyscalls(int index) { } private int syscallsMemoizedSerializedSize = -1; - public static final int TREE_FIELD_NUMBER = 6; + public static final int TAGS_FIELD_NUMBER = 5; @SuppressWarnings("serial") - private java.util.List tree_; - /** - * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; - */ - @java.lang.Override - public java.util.List getTreeList() { - return tree_; - } + private com.google.protobuf.LazyStringList tags_; /** - * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; + * repeated string tags = 5; + * @return A list containing the tags. */ - @java.lang.Override - public java.util.List - getTreeOrBuilderList() { - return tree_; + public com.google.protobuf.ProtocolStringList + getTagsList() { + return tags_; } /** - * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; + * repeated string tags = 5; + * @return The count of tags. */ - @java.lang.Override - public int getTreeCount() { - return tree_.size(); + public int getTagsCount() { + return tags_.size(); } /** - * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; + * repeated string tags = 5; + * @param index The index of the element to return. + * @return The tags at the given index. */ - @java.lang.Override - public com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode getTree(int index) { - return tree_.get(index); + public java.lang.String getTags(int index) { + return tags_.get(index); } /** - * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; + * repeated string tags = 5; + * @param index The index of the value to return. + * @return The bytes of the tags at the given index. */ - @java.lang.Override - public com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNodeOrBuilder getTreeOrBuilder( - int index) { - return tree_.get(index); + public com.google.protobuf.ByteString + getTagsBytes(int index) { + return tags_.getByteString(index); } private byte memoizedIsInitialized = -1; @@ -4447,27 +4574,27 @@ public final boolean isInitialized() { 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()); + if (firstSeen_ != 0L) { + output.writeUInt64(1, firstSeen_); } - for (int i = 0; i < tags_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, tags_.getRaw(i)); + if (lastSeen_ != 0L) { + output.writeUInt64(2, lastSeen_); } + com.google.protobuf.GeneratedMessageV3 + .serializeIntegerMapTo( + output, + internalGetEventTypeState(), + EventTypeStateDefaultEntryHolder.defaultEntry, + 3); if (getSyscallsList().size() > 0) { - output.writeUInt32NoTag(42); + output.writeUInt32NoTag(34); 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)); + for (int i = 0; i < tags_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, tags_.getRaw(i)); } getUnknownFields().writeTo(output); } @@ -4478,24 +4605,23 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (status_ != 0) { + if (firstSeen_ != 0L) { size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, status_); + .computeUInt64Size(1, firstSeen_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, version_); - } - if (metadata_ != null) { + if (lastSeen_ != 0L) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getMetadata()); + .computeUInt64Size(2, lastSeen_); } - { - int dataSize = 0; - for (int i = 0; i < tags_.size(); i++) { - dataSize += computeStringSizeNoTag(tags_.getRaw(i)); - } - size += dataSize; - size += 1 * getTagsList().size(); + for (java.util.Map.Entry entry + : internalGetEventTypeState().getMap().entrySet()) { + com.google.protobuf.MapEntry + eventTypeState__ = EventTypeStateDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, eventTypeState__); } { int dataSize = 0; @@ -4511,9 +4637,13 @@ public int getSerializedSize() { } syscallsMemoizedSerializedSize = dataSize; } - for (int i = 0; i < tree_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, tree_.get(i)); + { + int dataSize = 0; + for (int i = 0; i < tags_.size(); i++) { + dataSize += computeStringSizeNoTag(tags_.getRaw(i)); + } + size += dataSize; + size += 1 * getTagsList().size(); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -4525,26 +4655,21 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.dd.cws.adv1.pb.SecDumpProto.SecurityProfile)) { + if (!(obj instanceof com.dd.cws.adv1.pb.SecDumpProto.ProfileContext)) { return super.equals(obj); } - com.dd.cws.adv1.pb.SecDumpProto.SecurityProfile other = (com.dd.cws.adv1.pb.SecDumpProto.SecurityProfile) obj; + com.dd.cws.adv1.pb.SecDumpProto.ProfileContext other = (com.dd.cws.adv1.pb.SecDumpProto.ProfileContext) 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 (getFirstSeen() + != other.getFirstSeen()) return false; + if (getLastSeen() + != other.getLastSeen()) return false; + if (!internalGetEventTypeState().equals( + other.internalGetEventTypeState())) return false; if (!getSyscallsList() .equals(other.getSyscallsList())) return false; - if (!getTreeList() - .equals(other.getTreeList())) return false; + if (!getTagsList() + .equals(other.getTagsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -4556,94 +4681,92 @@ public int hashCode() { } 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(); + hash = (37 * hash) + FIRST_SEEN_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getFirstSeen()); + hash = (37 * hash) + LAST_SEEN_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getLastSeen()); + if (!internalGetEventTypeState().getMap().isEmpty()) { + hash = (37 * hash) + EVENT_TYPE_STATE_FIELD_NUMBER; + hash = (53 * hash) + internalGetEventTypeState().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(); + if (getTagsCount() > 0) { + hash = (37 * hash) + TAGS_FIELD_NUMBER; + hash = (53 * hash) + getTagsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.dd.cws.adv1.pb.SecDumpProto.SecurityProfile parseFrom( + public static com.dd.cws.adv1.pb.SecDumpProto.ProfileContext parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.dd.cws.adv1.pb.SecDumpProto.SecurityProfile parseFrom( + public static com.dd.cws.adv1.pb.SecDumpProto.ProfileContext 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( + public static com.dd.cws.adv1.pb.SecDumpProto.ProfileContext 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( + public static com.dd.cws.adv1.pb.SecDumpProto.ProfileContext 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) + public static com.dd.cws.adv1.pb.SecDumpProto.ProfileContext parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.dd.cws.adv1.pb.SecDumpProto.SecurityProfile parseFrom( + public static com.dd.cws.adv1.pb.SecDumpProto.ProfileContext 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) + public static com.dd.cws.adv1.pb.SecDumpProto.ProfileContext 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( + public static com.dd.cws.adv1.pb.SecDumpProto.ProfileContext 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) + public static com.dd.cws.adv1.pb.SecDumpProto.ProfileContext 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( + public static com.dd.cws.adv1.pb.SecDumpProto.ProfileContext 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( + public static com.dd.cws.adv1.pb.SecDumpProto.ProfileContext 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( + public static com.dd.cws.adv1.pb.SecDumpProto.ProfileContext parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -4656,7 +4779,7 @@ public static com.dd.cws.adv1.pb.SecDumpProto.SecurityProfile parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.dd.cws.adv1.pb.SecDumpProto.SecurityProfile prototype) { + public static Builder newBuilder(com.dd.cws.adv1.pb.SecDumpProto.ProfileContext prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -4672,26 +4795,48 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code datadog.cws.dumpsv1.SecurityProfile} + * Protobuf type {@code datadog.cws.dumpsv1.ProfileContext} */ 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 { + // @@protoc_insertion_point(builder_implements:datadog.cws.dumpsv1.ProfileContext) + com.dd.cws.adv1.pb.SecDumpProto.ProfileContextOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_SecurityProfile_descriptor; + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_ProfileContext_descriptor; } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 3: + return internalGetEventTypeState(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 3: + return internalGetMutableEventTypeState(); + 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_SecurityProfile_fieldAccessorTable + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_ProfileContext_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.dd.cws.adv1.pb.SecDumpProto.SecurityProfile.class, com.dd.cws.adv1.pb.SecDumpProto.SecurityProfile.Builder.class); + com.dd.cws.adv1.pb.SecDumpProto.ProfileContext.class, com.dd.cws.adv1.pb.SecDumpProto.ProfileContext.Builder.class); } - // Construct using com.dd.cws.adv1.pb.SecDumpProto.SecurityProfile.newBuilder() + // Construct using com.dd.cws.adv1.pb.SecDumpProto.ProfileContext.newBuilder() private Builder() { } @@ -4705,40 +4850,29 @@ private Builder( 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); + firstSeen_ = 0L; + lastSeen_ = 0L; + internalGetMutableEventTypeState().clear(); syscalls_ = emptyIntList(); - if (treeBuilder_ == null) { - tree_ = java.util.Collections.emptyList(); - } else { - tree_ = null; - treeBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000020); + tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000010); 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; + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_ProfileContext_descriptor; } @java.lang.Override - public com.dd.cws.adv1.pb.SecDumpProto.SecurityProfile getDefaultInstanceForType() { - return com.dd.cws.adv1.pb.SecDumpProto.SecurityProfile.getDefaultInstance(); + public com.dd.cws.adv1.pb.SecDumpProto.ProfileContext getDefaultInstanceForType() { + return com.dd.cws.adv1.pb.SecDumpProto.ProfileContext.getDefaultInstance(); } @java.lang.Override - public com.dd.cws.adv1.pb.SecDumpProto.SecurityProfile build() { - com.dd.cws.adv1.pb.SecDumpProto.SecurityProfile result = buildPartial(); + public com.dd.cws.adv1.pb.SecDumpProto.ProfileContext build() { + com.dd.cws.adv1.pb.SecDumpProto.ProfileContext result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -4746,48 +4880,38 @@ public com.dd.cws.adv1.pb.SecDumpProto.SecurityProfile build() { } @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); + public com.dd.cws.adv1.pb.SecDumpProto.ProfileContext buildPartial() { + com.dd.cws.adv1.pb.SecDumpProto.ProfileContext result = new com.dd.cws.adv1.pb.SecDumpProto.ProfileContext(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.dd.cws.adv1.pb.SecDumpProto.SecurityProfile result) { + private void buildPartialRepeatedFields(com.dd.cws.adv1.pb.SecDumpProto.ProfileContext result) { if (((bitField0_ & 0x00000008) != 0)) { - tags_ = tags_.getUnmodifiableView(); + syscalls_.makeImmutable(); bitField0_ = (bitField0_ & ~0x00000008); } - result.tags_ = tags_; + result.syscalls_ = syscalls_; if (((bitField0_ & 0x00000010) != 0)) { - syscalls_.makeImmutable(); + tags_ = tags_.getUnmodifiableView(); 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(); - } + result.tags_ = tags_; } - private void buildPartial0(com.dd.cws.adv1.pb.SecDumpProto.SecurityProfile result) { + private void buildPartial0(com.dd.cws.adv1.pb.SecDumpProto.ProfileContext result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.status_ = status_; + result.firstSeen_ = firstSeen_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.version_ = version_; + result.lastSeen_ = lastSeen_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.metadata_ = metadataBuilder_ == null - ? metadata_ - : metadataBuilder_.build(); + result.eventTypeState_ = internalGetEventTypeState(); + result.eventTypeState_.makeImmutable(); } } @@ -4825,72 +4949,44 @@ public Builder addRepeatedField( } @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); + if (other instanceof com.dd.cws.adv1.pb.SecDumpProto.ProfileContext) { + return mergeFrom((com.dd.cws.adv1.pb.SecDumpProto.ProfileContext)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(); + public Builder mergeFrom(com.dd.cws.adv1.pb.SecDumpProto.ProfileContext other) { + if (other == com.dd.cws.adv1.pb.SecDumpProto.ProfileContext.getDefaultInstance()) return this; + if (other.getFirstSeen() != 0L) { + setFirstSeen(other.getFirstSeen()); } - 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.getLastSeen() != 0L) { + setLastSeen(other.getLastSeen()); } + internalGetMutableEventTypeState().mergeFrom( + other.internalGetEventTypeState()); + bitField0_ |= 0x00000004; if (!other.syscalls_.isEmpty()) { if (syscalls_.isEmpty()) { syscalls_ = other.syscalls_; - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000008); } 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_); - } + if (!other.tags_.isEmpty()) { + if (tags_.isEmpty()) { + tags_ = other.tags_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureTagsIsMutable(); + tags_.addAll(other.tags_); } + onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -4919,35 +5015,31 @@ public Builder mergeFrom( done = true; break; case 8: { - status_ = input.readUInt32(); + firstSeen_ = input.readUInt64(); bitField0_ |= 0x00000001; break; } // case 8 - case 18: { - version_ = input.readStringRequireUtf8(); + case 16: { + lastSeen_ = input.readUInt64(); bitField0_ |= 0x00000002; break; - } // case 18 + } // case 16 case 26: { - input.readMessage( - getMetadataFieldBuilder().getBuilder(), - extensionRegistry); + com.google.protobuf.MapEntry + eventTypeState__ = input.readMessage( + EventTypeStateDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableEventTypeState().getMutableMap().put( + eventTypeState__.getKey(), eventTypeState__.getValue()); bitField0_ |= 0x00000004; break; } // case 26 - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - ensureTagsIsMutable(); - tags_.add(s); - break; - } // case 34 - case 40: { + case 32: { int v = input.readUInt32(); ensureSyscallsIsMutable(); syscalls_.addInt(v); break; - } // case 40 - case 42: { + } // case 32 + case 34: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensureSyscallsIsMutable(); @@ -4956,20 +5048,13 @@ public Builder mergeFrom( } 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); - } + } // case 34 + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + ensureTagsIsMutable(); + tags_.add(s); break; - } // case 50 + } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -4987,358 +5072,222 @@ public Builder mergeFrom( } private int bitField0_; - private int status_ ; + private long firstSeen_ ; /** - * uint32 status = 1; - * @return The status. + * uint64 first_seen = 1; + * @return The firstSeen. */ @java.lang.Override - public int getStatus() { - return status_; + public long getFirstSeen() { + return firstSeen_; } /** - * uint32 status = 1; - * @param value The status to set. + * uint64 first_seen = 1; + * @param value The firstSeen to set. * @return This builder for chaining. */ - public Builder setStatus(int value) { + public Builder setFirstSeen(long value) { - status_ = value; + firstSeen_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * uint32 status = 1; + * uint64 first_seen = 1; * @return This builder for chaining. */ - public Builder clearStatus() { + public Builder clearFirstSeen() { bitField0_ = (bitField0_ & ~0x00000001); - status_ = 0; + firstSeen_ = 0L; 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; - } - } + private long lastSeen_ ; /** - * string version = 2; - * @return The bytes for version. + * uint64 last_seen = 2; + * @return The lastSeen. */ - 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; - } + @java.lang.Override + public long getLastSeen() { + return lastSeen_; } /** - * string version = 2; - * @param value The version to set. + * uint64 last_seen = 2; + * @param value The lastSeen to set. * @return This builder for chaining. */ - public Builder setVersion( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - version_ = value; + public Builder setLastSeen(long value) { + + lastSeen_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * string version = 2; + * uint64 last_seen = 2; * @return This builder for chaining. */ - public Builder clearVersion() { - version_ = getDefaultInstance().getVersion(); + public Builder clearLastSeen() { bitField0_ = (bitField0_ & ~0x00000002); + lastSeen_ = 0L; 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; + + private com.google.protobuf.MapField< + java.lang.Integer, com.dd.cws.adv1.pb.SecDumpProto.event_type_state> eventTypeState_; + private com.google.protobuf.MapField + internalGetEventTypeState() { + if (eventTypeState_ == null) { + return com.google.protobuf.MapField.emptyMapField( + EventTypeStateDefaultEntryHolder.defaultEntry); + } + return eventTypeState_; + } + private com.google.protobuf.MapField + internalGetMutableEventTypeState() { + if (eventTypeState_ == null) { + eventTypeState_ = com.google.protobuf.MapField.newMapField( + EventTypeStateDefaultEntryHolder.defaultEntry); + } + if (!eventTypeState_.isMutable()) { + eventTypeState_ = eventTypeState_.copy(); + } + bitField0_ |= 0x00000004; onChanged(); - return this; + return eventTypeState_; + } + public int getEventTypeStateCount() { + return internalGetEventTypeState().getMap().size(); } - - 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. + * map<uint32, .datadog.cws.dumpsv1.event_type_state> event_type_state = 3; */ - public boolean hasMetadata() { - return ((bitField0_ & 0x00000004) != 0); + @java.lang.Override + public boolean containsEventTypeState( + int key) { + + return internalGetEventTypeState().getMap().containsKey(key); } /** - * .datadog.cws.dumpsv1.Metadata metadata = 3; - * @return The metadata. + * Use {@link #getEventTypeStateMap()} instead. */ - 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(); - } + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getEventTypeState() { + return getEventTypeStateMap(); } /** - * .datadog.cws.dumpsv1.Metadata metadata = 3; + * map<uint32, .datadog.cws.dumpsv1.event_type_state> event_type_state = 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; + @java.lang.Override + public java.util.Map getEventTypeStateMap() { + return internalGetEventTypeState().getMap(); } /** - * .datadog.cws.dumpsv1.Metadata metadata = 3; + * map<uint32, .datadog.cws.dumpsv1.event_type_state> event_type_state = 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; + @java.lang.Override + public /* nullable */ +com.dd.cws.adv1.pb.SecDumpProto.event_type_state getEventTypeStateOrDefault( + int key, + /* nullable */ +com.dd.cws.adv1.pb.SecDumpProto.event_type_state defaultValue) { + + java.util.Map map = + internalGetEventTypeState().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * .datadog.cws.dumpsv1.Metadata metadata = 3; + * map<uint32, .datadog.cws.dumpsv1.event_type_state> event_type_state = 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); + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.event_type_state getEventTypeStateOrThrow( + int key) { + + java.util.Map map = + internalGetEventTypeState().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); } - bitField0_ |= 0x00000004; - onChanged(); + return map.get(key); + } + public Builder clearEventTypeState() { + bitField0_ = (bitField0_ & ~0x00000004); + internalGetMutableEventTypeState().getMutableMap() + .clear(); return this; } /** - * .datadog.cws.dumpsv1.Metadata metadata = 3; + * map<uint32, .datadog.cws.dumpsv1.event_type_state> event_type_state = 3; */ - public Builder clearMetadata() { - bitField0_ = (bitField0_ & ~0x00000004); - metadata_ = null; - if (metadataBuilder_ != null) { - metadataBuilder_.dispose(); - metadataBuilder_ = null; - } - onChanged(); + public Builder removeEventTypeState( + int key) { + + internalGetMutableEventTypeState().getMutableMap() + .remove(key); return this; } /** - * .datadog.cws.dumpsv1.Metadata metadata = 3; + * Use alternate mutation accessors instead. */ - public com.dd.cws.adv1.pb.SecDumpProto.Metadata.Builder getMetadataBuilder() { + @java.lang.Deprecated + public java.util.Map + getMutableEventTypeState() { bitField0_ |= 0x00000004; - onChanged(); - return getMetadataFieldBuilder().getBuilder(); + return internalGetMutableEventTypeState().getMutableMap(); } /** - * .datadog.cws.dumpsv1.Metadata metadata = 3; + * map<uint32, .datadog.cws.dumpsv1.event_type_state> event_type_state = 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_; - } + public Builder putEventTypeState( + int key, + com.dd.cws.adv1.pb.SecDumpProto.event_type_state value) { + + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableEventTypeState().getMutableMap() + .put(key, value); + bitField0_ |= 0x00000004; + return this; } /** - * .datadog.cws.dumpsv1.Metadata metadata = 3; + * map<uint32, .datadog.cws.dumpsv1.event_type_state> event_type_state = 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(); + public Builder putAllEventTypeState( + java.util.Map values) { + internalGetMutableEventTypeState().getMutableMap() + .putAll(values); + bitField0_ |= 0x00000004; return this; } private com.google.protobuf.Internal.IntList syscalls_ = emptyIntList(); private void ensureSyscallsIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { + if (!((bitField0_ & 0x00000008) != 0)) { syscalls_ = mutableCopy(syscalls_); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000008; } } /** - * repeated uint32 syscalls = 5; + * repeated uint32 syscalls = 4; * @return A list containing the syscalls. */ public java.util.List getSyscallsList() { - return ((bitField0_ & 0x00000010) != 0) ? + return ((bitField0_ & 0x00000008) != 0) ? java.util.Collections.unmodifiableList(syscalls_) : syscalls_; } /** - * repeated uint32 syscalls = 5; + * repeated uint32 syscalls = 4; * @return The count of syscalls. */ public int getSyscallsCount() { return syscalls_.size(); } /** - * repeated uint32 syscalls = 5; + * repeated uint32 syscalls = 4; * @param index The index of the element to return. * @return The syscalls at the given index. */ @@ -5346,7 +5295,7 @@ public int getSyscalls(int index) { return syscalls_.getInt(index); } /** - * repeated uint32 syscalls = 5; + * repeated uint32 syscalls = 4; * @param index The index to set the value at. * @param value The syscalls to set. * @return This builder for chaining. @@ -5360,7 +5309,7 @@ public Builder setSyscalls( return this; } /** - * repeated uint32 syscalls = 5; + * repeated uint32 syscalls = 4; * @param value The syscalls to add. * @return This builder for chaining. */ @@ -5372,7 +5321,7 @@ public Builder addSyscalls(int value) { return this; } /** - * repeated uint32 syscalls = 5; + * repeated uint32 syscalls = 4; * @param values The syscalls to add. * @return This builder for chaining. */ @@ -5385,255 +5334,119 @@ public Builder addAllSyscalls( return this; } /** - * repeated uint32 syscalls = 5; + * repeated uint32 syscalls = 4; * @return This builder for chaining. */ public Builder clearSyscalls() { syscalls_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000008); 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.LazyStringList tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureTagsIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + tags_ = new com.google.protobuf.LazyStringArrayList(tags_); + bitField0_ |= 0x00000010; } } - - 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; + * repeated string tags = 5; + * @return A list containing the tags. */ - public java.util.List getTreeList() { - if (treeBuilder_ == null) { - return java.util.Collections.unmodifiableList(tree_); - } else { - return treeBuilder_.getMessageList(); - } + public com.google.protobuf.ProtocolStringList + getTagsList() { + return tags_.getUnmodifiableView(); } /** - * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; + * repeated string tags = 5; + * @return The count of tags. */ - public int getTreeCount() { - if (treeBuilder_ == null) { - return tree_.size(); - } else { - return treeBuilder_.getCount(); - } + public int getTagsCount() { + return tags_.size(); } /** - * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; + * repeated string tags = 5; + * @param index The index of the element to return. + * @return The tags at the given index. */ - public com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode getTree(int index) { - if (treeBuilder_ == null) { - return tree_.get(index); - } else { - return treeBuilder_.getMessage(index); - } + public java.lang.String getTags(int index) { + return tags_.get(index); } /** - * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; + * repeated string tags = 5; + * @param index The index of the value to return. + * @return The bytes of the tags at the given index. */ - 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; + public com.google.protobuf.ByteString + getTagsBytes(int index) { + return tags_.getByteString(index); } /** - * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; + * 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 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()); - } + public Builder setTags( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureTagsIsMutable(); + tags_.set(index, value); + onChanged(); return this; } /** - * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; + * repeated string tags = 5; + * @param value The tags to add. + * @return This builder for chaining. */ - 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); - } + public Builder addTags( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureTagsIsMutable(); + tags_.add(value); + onChanged(); return this; } /** - * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; + * repeated string tags = 5; + * @param values The tags to add. + * @return This builder for chaining. */ - 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); - } + public Builder addAllTags( + java.lang.Iterable values) { + ensureTagsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tags_); + onChanged(); return this; } /** - * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; + * repeated string tags = 5; + * @return This builder for chaining. */ - 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()); - } + public Builder clearTags() { + tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); 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; + * repeated string tags = 5; + * @param value The bytes of the tags to add. + * @return This builder for chaining. */ - public Builder removeTree(int index) { - if (treeBuilder_ == null) { - ensureTreeIsMutable(); - tree_.remove(index); - onChanged(); - } else { - treeBuilder_.remove(index); - } + public Builder addTagsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureTagsIsMutable(); + tags_.add(value); + onChanged(); 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) { @@ -5647,23 +5460,23 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:datadog.cws.dumpsv1.SecurityProfile) + // @@protoc_insertion_point(builder_scope:datadog.cws.dumpsv1.ProfileContext) } - // @@protoc_insertion_point(class_scope:datadog.cws.dumpsv1.SecurityProfile) - private static final com.dd.cws.adv1.pb.SecDumpProto.SecurityProfile DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:datadog.cws.dumpsv1.ProfileContext) + private static final com.dd.cws.adv1.pb.SecDumpProto.ProfileContext DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.dd.cws.adv1.pb.SecDumpProto.SecurityProfile(); + DEFAULT_INSTANCE = new com.dd.cws.adv1.pb.SecDumpProto.ProfileContext(); } - public static com.dd.cws.adv1.pb.SecDumpProto.SecurityProfile getDefaultInstance() { + public static com.dd.cws.adv1.pb.SecDumpProto.ProfileContext 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 SecurityProfile parsePartialFrom( + public ProfileContext parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -5682,216 +5495,126 @@ public SecurityProfile 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.SecurityProfile getDefaultInstanceForType() { + public com.dd.cws.adv1.pb.SecDumpProto.ProfileContext getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface ProcessActivityNodeOrBuilder extends - // @@protoc_insertion_point(interface_extends:datadog.cws.dumpsv1.ProcessActivityNode) + public interface SecurityProfileOrBuilder extends + // @@protoc_insertion_point(interface_extends:datadog.cws.dumpsv1.SecurityProfile) 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. + * uint32 status = 1; + * @return The status. */ - com.dd.cws.adv1.pb.SecDumpProto.GenerationType getGenerationType(); + int getStatus(); /** - * 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; + * .datadog.cws.dumpsv1.Metadata metadata = 3; + * @return Whether the metadata field is set. */ - int getMatchedRulesCount(); + boolean hasMetadata(); /** - * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 9; + * .datadog.cws.dumpsv1.Metadata metadata = 3; + * @return The metadata. */ - java.util.List - getMatchedRulesOrBuilderList(); + com.dd.cws.adv1.pb.SecDumpProto.Metadata getMetadata(); /** - * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 9; + * .datadog.cws.dumpsv1.Metadata metadata = 3; */ - com.dd.cws.adv1.pb.SecDumpProto.MatchedRuleOrBuilder getMatchedRulesOrBuilder( - int index); + com.dd.cws.adv1.pb.SecDumpProto.MetadataOrBuilder getMetadataOrBuilder(); /** - * repeated .datadog.cws.dumpsv1.ProcessActivityNode children = 3; + * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; */ java.util.List - getChildrenList(); + getTreeList(); /** - * repeated .datadog.cws.dumpsv1.ProcessActivityNode children = 3; + * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; */ - com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode getChildren(int index); + com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode getTree(int index); /** - * repeated .datadog.cws.dumpsv1.ProcessActivityNode children = 3; + * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; */ - int getChildrenCount(); + int getTreeCount(); /** - * repeated .datadog.cws.dumpsv1.ProcessActivityNode children = 3; + * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; */ 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(); + getTreeOrBuilderList(); /** - * repeated .datadog.cws.dumpsv1.FileActivityNode files = 4; + * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; */ - com.dd.cws.adv1.pb.SecDumpProto.FileActivityNodeOrBuilder getFilesOrBuilder( + com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNodeOrBuilder getTreeOrBuilder( int index); /** - * repeated .datadog.cws.dumpsv1.DNSNode dns_names = 5; + * map<string, .datadog.cws.dumpsv1.ProfileContext> profile_contexts = 7; */ - java.util.List - getDnsNamesList(); + int getProfileContextsCount(); /** - * repeated .datadog.cws.dumpsv1.DNSNode dns_names = 5; + * map<string, .datadog.cws.dumpsv1.ProfileContext> profile_contexts = 7; */ - com.dd.cws.adv1.pb.SecDumpProto.DNSNode getDnsNames(int index); + boolean containsProfileContexts( + java.lang.String key); /** - * repeated .datadog.cws.dumpsv1.DNSNode dns_names = 5; + * Use {@link #getProfileContextsMap()} instead. */ - int getDnsNamesCount(); + @java.lang.Deprecated + java.util.Map + getProfileContexts(); /** - * repeated .datadog.cws.dumpsv1.DNSNode dns_names = 5; + * map<string, .datadog.cws.dumpsv1.ProfileContext> profile_contexts = 7; */ - java.util.List - getDnsNamesOrBuilderList(); + java.util.Map + getProfileContextsMap(); /** - * repeated .datadog.cws.dumpsv1.DNSNode dns_names = 5; + * map<string, .datadog.cws.dumpsv1.ProfileContext> profile_contexts = 7; */ - com.dd.cws.adv1.pb.SecDumpProto.DNSNodeOrBuilder getDnsNamesOrBuilder( - int index); - + /* nullable */ +com.dd.cws.adv1.pb.SecDumpProto.ProfileContext getProfileContextsOrDefault( + java.lang.String key, + /* nullable */ +com.dd.cws.adv1.pb.SecDumpProto.ProfileContext defaultValue); /** - * repeated .datadog.cws.dumpsv1.SocketNode sockets = 6; + * map<string, .datadog.cws.dumpsv1.ProfileContext> profile_contexts = 7; */ - 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); + com.dd.cws.adv1.pb.SecDumpProto.ProfileContext getProfileContextsOrThrow( + java.lang.String key); } /** - * Protobuf type {@code datadog.cws.dumpsv1.ProcessActivityNode} + * Protobuf type {@code datadog.cws.dumpsv1.SecurityProfile} */ - public static final class ProcessActivityNode extends + public static final class SecurityProfile extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:datadog.cws.dumpsv1.ProcessActivityNode) - ProcessActivityNodeOrBuilder { + // @@protoc_insertion_point(message_implements:datadog.cws.dumpsv1.SecurityProfile) + SecurityProfileOrBuilder { private static final long serialVersionUID = 0L; - // Use ProcessActivityNode.newBuilder() to construct. - private ProcessActivityNode(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use SecurityProfile.newBuilder() to construct. + private SecurityProfile(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(); + private SecurityProfile() { + tree_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new ProcessActivityNode(); + return new SecurityProfile(); } @java.lang.Override @@ -5901,338 +5624,215 @@ 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_ProcessActivityNode_descriptor; + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_SecurityProfile_descriptor; } + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 7: + return internalGetProfileContexts(); + 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_ProcessActivityNode_fieldAccessorTable + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_SecurityProfile_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode.class, com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode.Builder.class); + com.dd.cws.adv1.pb.SecDumpProto.SecurityProfile.class, com.dd.cws.adv1.pb.SecDumpProto.SecurityProfile.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_; - } + public static final int STATUS_FIELD_NUMBER = 1; + private int status_ = 0; /** - * .datadog.cws.dumpsv1.ProcessInfo process = 1; + * uint32 status = 1; + * @return The status. */ @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 int getStatus() { + return status_; } - 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_; - } + public static final int METADATA_FIELD_NUMBER = 3; + private com.dd.cws.adv1.pb.SecDumpProto.Metadata metadata_; /** - * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 9; + * .datadog.cws.dumpsv1.Metadata metadata = 3; + * @return Whether the metadata field is set. */ @java.lang.Override - public int getMatchedRulesCount() { - return matchedRules_.size(); + public boolean hasMetadata() { + return metadata_ != null; } /** - * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 9; + * .datadog.cws.dumpsv1.Metadata metadata = 3; + * @return The metadata. */ @java.lang.Override - public com.dd.cws.adv1.pb.SecDumpProto.MatchedRule getMatchedRules(int index) { - return matchedRules_.get(index); + public com.dd.cws.adv1.pb.SecDumpProto.Metadata getMetadata() { + return metadata_ == null ? com.dd.cws.adv1.pb.SecDumpProto.Metadata.getDefaultInstance() : metadata_; } /** - * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 9; + * .datadog.cws.dumpsv1.Metadata metadata = 3; */ @java.lang.Override - public com.dd.cws.adv1.pb.SecDumpProto.MatchedRuleOrBuilder getMatchedRulesOrBuilder( - int index) { - return matchedRules_.get(index); + 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 CHILDREN_FIELD_NUMBER = 3; + public static final int TREE_FIELD_NUMBER = 6; @SuppressWarnings("serial") - private java.util.List children_; + private java.util.List tree_; /** - * repeated .datadog.cws.dumpsv1.ProcessActivityNode children = 3; + * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; */ @java.lang.Override - public java.util.List getChildrenList() { - return children_; + public java.util.List getTreeList() { + return tree_; } /** - * repeated .datadog.cws.dumpsv1.ProcessActivityNode children = 3; + * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; */ @java.lang.Override public java.util.List - getChildrenOrBuilderList() { - return children_; + getTreeOrBuilderList() { + return tree_; } /** - * repeated .datadog.cws.dumpsv1.ProcessActivityNode children = 3; + * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; */ @java.lang.Override - public int getChildrenCount() { - return children_.size(); + public int getTreeCount() { + return tree_.size(); } /** - * repeated .datadog.cws.dumpsv1.ProcessActivityNode children = 3; + * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; */ @java.lang.Override - public com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode getChildren(int index) { - return children_.get(index); + public com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode getTree(int index) { + return tree_.get(index); } /** - * repeated .datadog.cws.dumpsv1.ProcessActivityNode children = 3; + * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; */ @java.lang.Override - public com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNodeOrBuilder getChildrenOrBuilder( + public com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNodeOrBuilder getTreeOrBuilder( int index) { - return children_.get(index); + return tree_.get(index); } - public static final int FILES_FIELD_NUMBER = 4; + public static final int PROFILE_CONTEXTS_FIELD_NUMBER = 7; + private static final class ProfileContextsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, com.dd.cws.adv1.pb.SecDumpProto.ProfileContext> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_SecurityProfile_ProfileContextsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.dd.cws.adv1.pb.SecDumpProto.ProfileContext.getDefaultInstance()); + } @SuppressWarnings("serial") - private java.util.List files_; + private com.google.protobuf.MapField< + java.lang.String, com.dd.cws.adv1.pb.SecDumpProto.ProfileContext> profileContexts_; + private com.google.protobuf.MapField + internalGetProfileContexts() { + if (profileContexts_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ProfileContextsDefaultEntryHolder.defaultEntry); + } + return profileContexts_; + } + public int getProfileContextsCount() { + return internalGetProfileContexts().getMap().size(); + } /** - * repeated .datadog.cws.dumpsv1.FileActivityNode files = 4; + * map<string, .datadog.cws.dumpsv1.ProfileContext> profile_contexts = 7; */ @java.lang.Override - public java.util.List getFilesList() { - return files_; + public boolean containsProfileContexts( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetProfileContexts().getMap().containsKey(key); } /** - * repeated .datadog.cws.dumpsv1.FileActivityNode files = 4; + * Use {@link #getProfileContextsMap()} instead. */ @java.lang.Override - public java.util.List - getFilesOrBuilderList() { - return files_; + @java.lang.Deprecated + public java.util.Map getProfileContexts() { + return getProfileContextsMap(); } /** - * repeated .datadog.cws.dumpsv1.FileActivityNode files = 4; + * map<string, .datadog.cws.dumpsv1.ProfileContext> profile_contexts = 7; */ @java.lang.Override - public int getFilesCount() { - return files_.size(); + public java.util.Map getProfileContextsMap() { + return internalGetProfileContexts().getMap(); } /** - * repeated .datadog.cws.dumpsv1.FileActivityNode files = 4; + * map<string, .datadog.cws.dumpsv1.ProfileContext> profile_contexts = 7; */ @java.lang.Override - public com.dd.cws.adv1.pb.SecDumpProto.FileActivityNode getFiles(int index) { - return files_.get(index); + public /* nullable */ +com.dd.cws.adv1.pb.SecDumpProto.ProfileContext getProfileContextsOrDefault( + java.lang.String key, + /* nullable */ +com.dd.cws.adv1.pb.SecDumpProto.ProfileContext defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetProfileContexts().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * repeated .datadog.cws.dumpsv1.FileActivityNode files = 4; + * map<string, .datadog.cws.dumpsv1.ProfileContext> profile_contexts = 7; */ @java.lang.Override - public com.dd.cws.adv1.pb.SecDumpProto.FileActivityNodeOrBuilder getFilesOrBuilder( - int index) { - return files_.get(index); + public com.dd.cws.adv1.pb.SecDumpProto.ProfileContext getProfileContextsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetProfileContexts().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); } - public static final int DNS_NAMES_FIELD_NUMBER = 5; - @SuppressWarnings("serial") - private java.util.List dnsNames_; - /** - * repeated .datadog.cws.dumpsv1.DNSNode dns_names = 5; - */ + private byte memoizedIsInitialized = -1; @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; + 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 (status_ != 0) { + output.writeUInt32(1, status_); } - if (generationType_ != com.dd.cws.adv1.pb.SecDumpProto.GenerationType.UNKNOWN.getNumber()) { - output.writeEnum(8, generationType_); + if (metadata_ != null) { + output.writeMessage(3, getMetadata()); } - for (int i = 0; i < matchedRules_.size(); i++) { - output.writeMessage(9, matchedRules_.get(i)); + for (int i = 0; i < tree_.size(); i++) { + output.writeMessage(6, tree_.get(i)); } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetProfileContexts(), + ProfileContextsDefaultEntryHolder.defaultEntry, + 7); getUnknownFields().writeTo(output); } @@ -6242,47 +5842,27 @@ public int getSerializedSize() { 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++) { + if (status_ != 0) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, dnsNames_.get(i)); + .computeUInt32Size(1, status_); } - for (int i = 0; i < sockets_.size(); i++) { + if (metadata_ != null) { 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; + .computeMessageSize(3, getMetadata()); } - if (generationType_ != com.dd.cws.adv1.pb.SecDumpProto.GenerationType.UNKNOWN.getNumber()) { + for (int i = 0; i < tree_.size(); i++) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(8, generationType_); + .computeMessageSize(6, tree_.get(i)); } - for (int i = 0; i < matchedRules_.size(); i++) { + for (java.util.Map.Entry entry + : internalGetProfileContexts().getMap().entrySet()) { + com.google.protobuf.MapEntry + profileContexts__ = ProfileContextsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, matchedRules_.get(i)); + .computeMessageSize(7, profileContexts__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -6294,29 +5874,22 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode)) { + if (!(obj instanceof com.dd.cws.adv1.pb.SecDumpProto.SecurityProfile)) { return super.equals(obj); } - com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode other = (com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode) obj; + com.dd.cws.adv1.pb.SecDumpProto.SecurityProfile other = (com.dd.cws.adv1.pb.SecDumpProto.SecurityProfile) obj; - if (hasProcess() != other.hasProcess()) return false; - if (hasProcess()) { - if (!getProcess() - .equals(other.getProcess())) return false; + if (getStatus() + != other.getStatus()) return false; + if (hasMetadata() != other.hasMetadata()) return false; + if (hasMetadata()) { + if (!getMetadata() + .equals(other.getMetadata())) 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 (!getTreeList() + .equals(other.getTreeList())) return false; + if (!internalGetProfileContexts().equals( + other.internalGetProfileContexts())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -6328,104 +5901,88 @@ public int hashCode() { } 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(); + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus(); + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); } - if (getSocketsCount() > 0) { - hash = (37 * hash) + SOCKETS_FIELD_NUMBER; - hash = (53 * hash) + getSocketsList().hashCode(); + if (getTreeCount() > 0) { + hash = (37 * hash) + TREE_FIELD_NUMBER; + hash = (53 * hash) + getTreeList().hashCode(); } - if (getSyscallsCount() > 0) { - hash = (37 * hash) + SYSCALLS_FIELD_NUMBER; - hash = (53 * hash) + getSyscallsList().hashCode(); + if (!internalGetProfileContexts().getMap().isEmpty()) { + hash = (37 * hash) + PROFILE_CONTEXTS_FIELD_NUMBER; + hash = (53 * hash) + internalGetProfileContexts().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode parseFrom( + 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.ProcessActivityNode parseFrom( + 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.ProcessActivityNode parseFrom( + 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.ProcessActivityNode parseFrom( + 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.ProcessActivityNode parseFrom(byte[] data) + 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.ProcessActivityNode parseFrom( + 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.ProcessActivityNode parseFrom(java.io.InputStream input) + 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.ProcessActivityNode parseFrom( + 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.ProcessActivityNode parseDelimitedFrom(java.io.InputStream input) + 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.ProcessActivityNode parseDelimitedFrom( + 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.ProcessActivityNode parseFrom( + 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.ProcessActivityNode parseFrom( + public static com.dd.cws.adv1.pb.SecDumpProto.SecurityProfile parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -6438,7 +5995,7 @@ public static com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode prototype) { + public static Builder newBuilder(com.dd.cws.adv1.pb.SecDumpProto.SecurityProfile prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -6454,26 +6011,48 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code datadog.cws.dumpsv1.ProcessActivityNode} + * 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.ProcessActivityNode) - com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNodeOrBuilder { + // @@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_ProcessActivityNode_descriptor; + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_SecurityProfile_descriptor; } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 7: + return internalGetProfileContexts(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 7: + return internalGetMutableProfileContexts(); + 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_ProcessActivityNode_fieldAccessorTable + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_SecurityProfile_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode.class, com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode.Builder.class); + 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.ProcessActivityNode.newBuilder() + // Construct using com.dd.cws.adv1.pb.SecDumpProto.SecurityProfile.newBuilder() private Builder() { } @@ -6487,65 +6066,37 @@ private Builder( public Builder clear() { super.clear(); bitField0_ = 0; - process_ = null; - if (processBuilder_ != null) { - processBuilder_.dispose(); - processBuilder_ = null; + status_ = 0; + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); + metadataBuilder_ = null; } - generationType_ = 0; - if (matchedRulesBuilder_ == null) { - matchedRules_ = java.util.Collections.emptyList(); + if (treeBuilder_ == null) { + tree_ = java.util.Collections.emptyList(); } else { - matchedRules_ = null; - matchedRulesBuilder_.clear(); + tree_ = null; + treeBuilder_.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(); + internalGetMutableProfileContexts().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_ProcessActivityNode_descriptor; + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_SecurityProfile_descriptor; } @java.lang.Override - public com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode getDefaultInstanceForType() { - return com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode.getDefaultInstance(); + 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.ProcessActivityNode build() { - com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode result = buildPartial(); + public com.dd.cws.adv1.pb.SecDumpProto.SecurityProfile build() { + com.dd.cws.adv1.pb.SecDumpProto.SecurityProfile result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -6553,76 +6104,39 @@ public com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode build() { } @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); + 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.ProcessActivityNode result) { - if (matchedRulesBuilder_ == null) { + private void buildPartialRepeatedFields(com.dd.cws.adv1.pb.SecDumpProto.SecurityProfile result) { + if (treeBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { - matchedRules_ = java.util.Collections.unmodifiableList(matchedRules_); + tree_ = java.util.Collections.unmodifiableList(tree_); 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_; + result.tree_ = tree_; } else { - result.sockets_ = socketsBuilder_.build(); - } - if (((bitField0_ & 0x00000080) != 0)) { - syscalls_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000080); + result.tree_ = treeBuilder_.build(); } - result.syscalls_ = syscalls_; } - private void buildPartial0(com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode result) { + private void buildPartial0(com.dd.cws.adv1.pb.SecDumpProto.SecurityProfile result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.process_ = processBuilder_ == null - ? process_ - : processBuilder_.build(); + result.status_ = status_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.generationType_ = generationType_; + result.metadata_ = metadataBuilder_ == null + ? metadata_ + : metadataBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.profileContexts_ = internalGetProfileContexts(); + result.profileContexts_.makeImmutable(); } } @@ -6660,162 +6174,51 @@ public Builder addRepeatedField( } @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); + 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.ProcessActivityNode other) { - if (other == com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode.getDefaultInstance()) return this; - if (other.hasProcess()) { - mergeProcess(other.getProcess()); + 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.generationType_ != 0) { - setGenerationTypeValue(other.getGenerationTypeValue()); + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); } - if (matchedRulesBuilder_ == null) { - if (!other.matchedRules_.isEmpty()) { - if (matchedRules_.isEmpty()) { - matchedRules_ = other.matchedRules_; + if (treeBuilder_ == null) { + if (!other.tree_.isEmpty()) { + if (tree_.isEmpty()) { + tree_ = other.tree_; bitField0_ = (bitField0_ & ~0x00000004); } else { - ensureMatchedRulesIsMutable(); - matchedRules_.addAll(other.matchedRules_); + ensureTreeIsMutable(); + tree_.addAll(other.tree_); } onChanged(); } } else { - if (!other.matchedRules_.isEmpty()) { - if (matchedRulesBuilder_.isEmpty()) { - matchedRulesBuilder_.dispose(); - matchedRulesBuilder_ = null; - matchedRules_ = other.matchedRules_; + if (!other.tree_.isEmpty()) { + if (treeBuilder_.isEmpty()) { + treeBuilder_.dispose(); + treeBuilder_ = null; + tree_ = other.tree_; 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_ = + treeBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getChildrenFieldBuilder() : null; + getTreeFieldBuilder() : null; } else { - childrenBuilder_.addAllMessages(other.children_); + treeBuilder_.addAllMessages(other.tree_); } } } - 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(); - } + internalGetMutableProfileContexts().mergeFrom( + other.internalGetProfileContexts()); + bitField0_ |= 0x00000008; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -6842,99 +6245,40 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getProcessFieldBuilder().getBuilder(), - extensionRegistry); + case 8: { + status_ = input.readUInt32(); bitField0_ |= 0x00000001; break; - } // case 10 + } // case 8 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); - } + input.readMessage( + getMetadataFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; 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 = + com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode m = input.readMessage( - com.dd.cws.adv1.pb.SecDumpProto.SocketNode.parser(), + com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode.parser(), extensionRegistry); - if (socketsBuilder_ == null) { - ensureSocketsIsMutable(); - sockets_.add(m); + if (treeBuilder_ == null) { + ensureTreeIsMutable(); + tree_.add(m); } else { - socketsBuilder_.addMessage(m); + treeBuilder_.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); + com.google.protobuf.MapEntry + profileContexts__ = input.readMessage( + ProfileContextsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableProfileContexts().getMutableMap().put( + profileContexts__.getKey(), profileContexts__.getValue()); + bitField0_ |= 0x00000008; 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 @@ -6952,804 +6296,2741 @@ public Builder mergeFrom( } private int bitField0_; - private com.dd.cws.adv1.pb.SecDumpProto.ProcessInfo process_; + 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 com.dd.cws.adv1.pb.SecDumpProto.Metadata metadata_; 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_; + 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.ProcessInfo process = 1; - * @return Whether the process field is set. + * .datadog.cws.dumpsv1.Metadata metadata = 3; + * @return Whether the metadata field is set. */ - public boolean hasProcess() { - return ((bitField0_ & 0x00000001) != 0); + public boolean hasMetadata() { + return ((bitField0_ & 0x00000002) != 0); } /** - * .datadog.cws.dumpsv1.ProcessInfo process = 1; - * @return The process. + * .datadog.cws.dumpsv1.Metadata metadata = 3; + * @return The metadata. */ - public com.dd.cws.adv1.pb.SecDumpProto.ProcessInfo getProcess() { - if (processBuilder_ == null) { - return process_ == null ? com.dd.cws.adv1.pb.SecDumpProto.ProcessInfo.getDefaultInstance() : process_; + 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 processBuilder_.getMessage(); + return metadataBuilder_.getMessage(); } } /** - * .datadog.cws.dumpsv1.ProcessInfo process = 1; + * .datadog.cws.dumpsv1.Metadata metadata = 3; */ - public Builder setProcess(com.dd.cws.adv1.pb.SecDumpProto.ProcessInfo value) { - if (processBuilder_ == null) { + public Builder setMetadata(com.dd.cws.adv1.pb.SecDumpProto.Metadata value) { + if (metadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - process_ = value; + metadata_ = value; } else { - processBuilder_.setMessage(value); + metadataBuilder_.setMessage(value); } - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; onChanged(); return this; } /** - * .datadog.cws.dumpsv1.ProcessInfo process = 1; + * .datadog.cws.dumpsv1.Metadata metadata = 3; */ - public Builder setProcess( - com.dd.cws.adv1.pb.SecDumpProto.ProcessInfo.Builder builderForValue) { - if (processBuilder_ == null) { - process_ = builderForValue.build(); + public Builder setMetadata( + com.dd.cws.adv1.pb.SecDumpProto.Metadata.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); } else { - processBuilder_.setMessage(builderForValue.build()); + metadataBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; onChanged(); return this; } /** - * .datadog.cws.dumpsv1.ProcessInfo process = 1; + * .datadog.cws.dumpsv1.Metadata metadata = 3; */ - 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); + public Builder mergeMetadata(com.dd.cws.adv1.pb.SecDumpProto.Metadata value) { + if (metadataBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + metadata_ != null && + metadata_ != com.dd.cws.adv1.pb.SecDumpProto.Metadata.getDefaultInstance()) { + getMetadataBuilder().mergeFrom(value); } else { - process_ = value; + metadata_ = value; } } else { - processBuilder_.mergeFrom(value); + metadataBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; onChanged(); return this; } /** - * .datadog.cws.dumpsv1.ProcessInfo process = 1; + * .datadog.cws.dumpsv1.Metadata metadata = 3; */ - public Builder clearProcess() { - bitField0_ = (bitField0_ & ~0x00000001); - process_ = null; - if (processBuilder_ != null) { - processBuilder_.dispose(); - processBuilder_ = null; + public Builder clearMetadata() { + bitField0_ = (bitField0_ & ~0x00000002); + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); + metadataBuilder_ = null; } onChanged(); return this; } /** - * .datadog.cws.dumpsv1.ProcessInfo process = 1; + * .datadog.cws.dumpsv1.Metadata metadata = 3; */ - public com.dd.cws.adv1.pb.SecDumpProto.ProcessInfo.Builder getProcessBuilder() { - bitField0_ |= 0x00000001; + public com.dd.cws.adv1.pb.SecDumpProto.Metadata.Builder getMetadataBuilder() { + bitField0_ |= 0x00000002; onChanged(); - return getProcessFieldBuilder().getBuilder(); + return getMetadataFieldBuilder().getBuilder(); } /** - * .datadog.cws.dumpsv1.ProcessInfo process = 1; + * .datadog.cws.dumpsv1.Metadata metadata = 3; */ - public com.dd.cws.adv1.pb.SecDumpProto.ProcessInfoOrBuilder getProcessOrBuilder() { - if (processBuilder_ != null) { - return processBuilder_.getMessageOrBuilder(); + public com.dd.cws.adv1.pb.SecDumpProto.MetadataOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); } else { - return process_ == null ? - com.dd.cws.adv1.pb.SecDumpProto.ProcessInfo.getDefaultInstance() : process_; + return metadata_ == null ? + com.dd.cws.adv1.pb.SecDumpProto.Metadata.getDefaultInstance() : metadata_; } } /** - * .datadog.cws.dumpsv1.ProcessInfo process = 1; + * .datadog.cws.dumpsv1.Metadata metadata = 3; */ 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(), + 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()); - 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(); + metadata_ = null; } - 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; + return metadataBuilder_; } - private java.util.List matchedRules_ = + private java.util.List tree_ = java.util.Collections.emptyList(); - private void ensureMatchedRulesIsMutable() { + private void ensureTreeIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - matchedRules_ = new java.util.ArrayList(matchedRules_); + tree_ = new java.util.ArrayList(tree_); 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_; + 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.MatchedRule matched_rules = 9; + * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; */ - public java.util.List getMatchedRulesList() { - if (matchedRulesBuilder_ == null) { - return java.util.Collections.unmodifiableList(matchedRules_); + public java.util.List getTreeList() { + if (treeBuilder_ == null) { + return java.util.Collections.unmodifiableList(tree_); } else { - return matchedRulesBuilder_.getMessageList(); + return treeBuilder_.getMessageList(); } } /** - * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 9; + * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; */ - public int getMatchedRulesCount() { - if (matchedRulesBuilder_ == null) { - return matchedRules_.size(); + public int getTreeCount() { + if (treeBuilder_ == null) { + return tree_.size(); } else { - return matchedRulesBuilder_.getCount(); + return treeBuilder_.getCount(); } } /** - * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 9; + * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; */ - public com.dd.cws.adv1.pb.SecDumpProto.MatchedRule getMatchedRules(int index) { - if (matchedRulesBuilder_ == null) { - return matchedRules_.get(index); + public com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode getTree(int index) { + if (treeBuilder_ == null) { + return tree_.get(index); } else { - return matchedRulesBuilder_.getMessage(index); + return treeBuilder_.getMessage(index); } } /** - * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 9; + * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; */ - public Builder setMatchedRules( - int index, com.dd.cws.adv1.pb.SecDumpProto.MatchedRule value) { - if (matchedRulesBuilder_ == null) { + public Builder setTree( + int index, com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode value) { + if (treeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureMatchedRulesIsMutable(); - matchedRules_.set(index, value); + ensureTreeIsMutable(); + tree_.set(index, value); onChanged(); } else { - matchedRulesBuilder_.setMessage(index, value); + treeBuilder_.setMessage(index, value); } return this; } /** - * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 9; + * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; */ - public Builder setMatchedRules( - int index, com.dd.cws.adv1.pb.SecDumpProto.MatchedRule.Builder builderForValue) { - if (matchedRulesBuilder_ == null) { - ensureMatchedRulesIsMutable(); - matchedRules_.set(index, builderForValue.build()); + 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 { - matchedRulesBuilder_.setMessage(index, builderForValue.build()); + treeBuilder_.setMessage(index, builderForValue.build()); } return this; } /** - * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 9; + * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; */ - public Builder addMatchedRules(com.dd.cws.adv1.pb.SecDumpProto.MatchedRule value) { - if (matchedRulesBuilder_ == null) { + public Builder addTree(com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode value) { + if (treeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureMatchedRulesIsMutable(); - matchedRules_.add(value); + ensureTreeIsMutable(); + tree_.add(value); onChanged(); } else { - matchedRulesBuilder_.addMessage(value); + treeBuilder_.addMessage(value); } return this; } /** - * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 9; + * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; */ - public Builder addMatchedRules( - int index, com.dd.cws.adv1.pb.SecDumpProto.MatchedRule value) { - if (matchedRulesBuilder_ == null) { + public Builder addTree( + int index, com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode value) { + if (treeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureMatchedRulesIsMutable(); - matchedRules_.add(index, value); + ensureTreeIsMutable(); + tree_.add(index, value); onChanged(); } else { - matchedRulesBuilder_.addMessage(index, value); + treeBuilder_.addMessage(index, value); } return this; } /** - * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 9; + * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; */ - public Builder addMatchedRules( - com.dd.cws.adv1.pb.SecDumpProto.MatchedRule.Builder builderForValue) { - if (matchedRulesBuilder_ == null) { - ensureMatchedRulesIsMutable(); - matchedRules_.add(builderForValue.build()); + public Builder addTree( + com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode.Builder builderForValue) { + if (treeBuilder_ == null) { + ensureTreeIsMutable(); + tree_.add(builderForValue.build()); onChanged(); } else { - matchedRulesBuilder_.addMessage(builderForValue.build()); + treeBuilder_.addMessage(builderForValue.build()); } return this; } /** - * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 9; + * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; */ - public Builder addMatchedRules( - int index, com.dd.cws.adv1.pb.SecDumpProto.MatchedRule.Builder builderForValue) { - if (matchedRulesBuilder_ == null) { - ensureMatchedRulesIsMutable(); - matchedRules_.add(index, builderForValue.build()); + 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 { - matchedRulesBuilder_.addMessage(index, builderForValue.build()); + treeBuilder_.addMessage(index, builderForValue.build()); } return this; } /** - * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 9; + * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; */ - public Builder addAllMatchedRules( - java.lang.Iterable values) { - if (matchedRulesBuilder_ == null) { - ensureMatchedRulesIsMutable(); + public Builder addAllTree( + java.lang.Iterable values) { + if (treeBuilder_ == null) { + ensureTreeIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, matchedRules_); + values, tree_); onChanged(); } else { - matchedRulesBuilder_.addAllMessages(values); + treeBuilder_.addAllMessages(values); } return this; } /** - * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 9; + * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; */ - public Builder clearMatchedRules() { - if (matchedRulesBuilder_ == null) { - matchedRules_ = java.util.Collections.emptyList(); + public Builder clearTree() { + if (treeBuilder_ == null) { + tree_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { - matchedRulesBuilder_.clear(); + treeBuilder_.clear(); } return this; } /** - * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 9; + * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; */ - public Builder removeMatchedRules(int index) { - if (matchedRulesBuilder_ == null) { - ensureMatchedRulesIsMutable(); - matchedRules_.remove(index); + public Builder removeTree(int index) { + if (treeBuilder_ == null) { + ensureTreeIsMutable(); + tree_.remove(index); onChanged(); } else { - matchedRulesBuilder_.remove(index); + treeBuilder_.remove(index); } return this; } /** - * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 9; + * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; */ - public com.dd.cws.adv1.pb.SecDumpProto.MatchedRule.Builder getMatchedRulesBuilder( + public com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode.Builder getTreeBuilder( int index) { - return getMatchedRulesFieldBuilder().getBuilder(index); + return getTreeFieldBuilder().getBuilder(index); } /** - * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 9; + * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; */ - public com.dd.cws.adv1.pb.SecDumpProto.MatchedRuleOrBuilder getMatchedRulesOrBuilder( + public com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNodeOrBuilder getTreeOrBuilder( int index) { - if (matchedRulesBuilder_ == null) { - return matchedRules_.get(index); } else { - return matchedRulesBuilder_.getMessageOrBuilder(index); + if (treeBuilder_ == null) { + return tree_.get(index); } else { + return treeBuilder_.getMessageOrBuilder(index); } } /** - * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 9; + * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; */ - public java.util.List - getMatchedRulesOrBuilderList() { - if (matchedRulesBuilder_ != null) { - return matchedRulesBuilder_.getMessageOrBuilderList(); + public java.util.List + getTreeOrBuilderList() { + if (treeBuilder_ != null) { + return treeBuilder_.getMessageOrBuilderList(); } else { - return java.util.Collections.unmodifiableList(matchedRules_); + return java.util.Collections.unmodifiableList(tree_); } } /** - * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 9; + * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; */ - public com.dd.cws.adv1.pb.SecDumpProto.MatchedRule.Builder addMatchedRulesBuilder() { - return getMatchedRulesFieldBuilder().addBuilder( - com.dd.cws.adv1.pb.SecDumpProto.MatchedRule.getDefaultInstance()); + 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.MatchedRule matched_rules = 9; + * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; */ - public com.dd.cws.adv1.pb.SecDumpProto.MatchedRule.Builder addMatchedRulesBuilder( + public com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode.Builder addTreeBuilder( int index) { - return getMatchedRulesFieldBuilder().addBuilder( - index, com.dd.cws.adv1.pb.SecDumpProto.MatchedRule.getDefaultInstance()); + return getTreeFieldBuilder().addBuilder( + index, com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode.getDefaultInstance()); } /** - * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 9; + * repeated .datadog.cws.dumpsv1.ProcessActivityNode tree = 6; */ - public java.util.List - getMatchedRulesBuilderList() { - return getMatchedRulesFieldBuilder().getBuilderList(); + public java.util.List + getTreeBuilderList() { + return getTreeFieldBuilder().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_, + 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_ & 0x00000004) != 0), getParentForChildren(), isClean()); - matchedRules_ = null; + tree_ = 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; - } + return treeBuilder_; } - 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(); + private com.google.protobuf.MapField< + java.lang.String, com.dd.cws.adv1.pb.SecDumpProto.ProfileContext> profileContexts_; + private com.google.protobuf.MapField + internalGetProfileContexts() { + if (profileContexts_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ProfileContextsDefaultEntryHolder.defaultEntry); } + return profileContexts_; } - /** - * repeated .datadog.cws.dumpsv1.ProcessActivityNode children = 3; - */ - public int getChildrenCount() { - if (childrenBuilder_ == null) { - return children_.size(); - } else { - return childrenBuilder_.getCount(); + private com.google.protobuf.MapField + internalGetMutableProfileContexts() { + if (profileContexts_ == null) { + profileContexts_ = com.google.protobuf.MapField.newMapField( + ProfileContextsDefaultEntryHolder.defaultEntry); } + if (!profileContexts_.isMutable()) { + profileContexts_ = profileContexts_.copy(); + } + bitField0_ |= 0x00000008; + onChanged(); + return profileContexts_; + } + public int getProfileContextsCount() { + return internalGetProfileContexts().getMap().size(); } /** - * repeated .datadog.cws.dumpsv1.ProcessActivityNode children = 3; + * map<string, .datadog.cws.dumpsv1.ProfileContext> profile_contexts = 7; */ - public com.dd.cws.adv1.pb.SecDumpProto.ProcessActivityNode getChildren(int index) { - if (childrenBuilder_ == null) { - return children_.get(index); - } else { - return childrenBuilder_.getMessage(index); - } + @java.lang.Override + public boolean containsProfileContexts( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetProfileContexts().getMap().containsKey(key); } /** - * repeated .datadog.cws.dumpsv1.ProcessActivityNode children = 3; + * Use {@link #getProfileContextsMap()} instead. */ - 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; + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getProfileContexts() { + return getProfileContextsMap(); } /** - * repeated .datadog.cws.dumpsv1.ProcessActivityNode children = 3; + * map<string, .datadog.cws.dumpsv1.ProfileContext> profile_contexts = 7; */ - 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; + @java.lang.Override + public java.util.Map getProfileContextsMap() { + return internalGetProfileContexts().getMap(); } /** - * repeated .datadog.cws.dumpsv1.ProcessActivityNode children = 3; + * map<string, .datadog.cws.dumpsv1.ProfileContext> profile_contexts = 7; */ - 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; + @java.lang.Override + public /* nullable */ +com.dd.cws.adv1.pb.SecDumpProto.ProfileContext getProfileContextsOrDefault( + java.lang.String key, + /* nullable */ +com.dd.cws.adv1.pb.SecDumpProto.ProfileContext defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetProfileContexts().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * repeated .datadog.cws.dumpsv1.ProcessActivityNode children = 3; + * map<string, .datadog.cws.dumpsv1.ProfileContext> profile_contexts = 7; */ - 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); + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.ProfileContext getProfileContextsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetProfileContexts().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); } + return map.get(key); + } + public Builder clearProfileContexts() { + bitField0_ = (bitField0_ & ~0x00000008); + internalGetMutableProfileContexts().getMutableMap() + .clear(); return this; } /** - * repeated .datadog.cws.dumpsv1.ProcessActivityNode children = 3; + * map<string, .datadog.cws.dumpsv1.ProfileContext> profile_contexts = 7; */ - 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()); - } + public Builder removeProfileContexts( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableProfileContexts().getMutableMap() + .remove(key); return this; } /** - * repeated .datadog.cws.dumpsv1.ProcessActivityNode children = 3; + * Use alternate mutation accessors instead. */ - 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; + @java.lang.Deprecated + public java.util.Map + getMutableProfileContexts() { + bitField0_ |= 0x00000008; + return internalGetMutableProfileContexts().getMutableMap(); } /** - * repeated .datadog.cws.dumpsv1.ProcessActivityNode children = 3; + * map<string, .datadog.cws.dumpsv1.ProfileContext> profile_contexts = 7; */ - public Builder addAllChildren( - java.lang.Iterable values) { - if (childrenBuilder_ == null) { - ensureChildrenIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, children_); - onChanged(); - } else { - childrenBuilder_.addAllMessages(values); - } + public Builder putProfileContexts( + java.lang.String key, + com.dd.cws.adv1.pb.SecDumpProto.ProfileContext value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableProfileContexts().getMutableMap() + .put(key, value); + bitField0_ |= 0x00000008; return this; } /** - * repeated .datadog.cws.dumpsv1.ProcessActivityNode children = 3; + * map<string, .datadog.cws.dumpsv1.ProfileContext> profile_contexts = 7; */ - public Builder clearChildren() { - if (childrenBuilder_ == null) { - children_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - } else { - childrenBuilder_.clear(); - } + public Builder putAllProfileContexts( + java.util.Map values) { + internalGetMutableProfileContexts().getMutableMap() + .putAll(values); + bitField0_ |= 0x00000008; 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_; + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); } - private java.util.List files_ = - java.util.Collections.emptyList(); - private void ensureFilesIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { - files_ = new java.util.ArrayList(files_); - bitField0_ |= 0x00000010; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - 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()); + // @@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 this; + return builder.buildPartial(); } - /** - * 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); + }; + + 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); + + /** + * repeated string image_tags = 10; + * @return A list containing the imageTags. + */ + java.util.List + getImageTagsList(); + /** + * repeated string image_tags = 10; + * @return The count of imageTags. + */ + int getImageTagsCount(); + /** + * repeated string image_tags = 10; + * @param index The index of the element to return. + * @return The imageTags at the given index. + */ + java.lang.String getImageTags(int index); + /** + * repeated string image_tags = 10; + * @param index The index of the value to return. + * @return The bytes of the imageTags at the given index. + */ + com.google.protobuf.ByteString + getImageTagsBytes(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(); + imageTags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @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; + + public static final int IMAGE_TAGS_FIELD_NUMBER = 10; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringList imageTags_; + /** + * repeated string image_tags = 10; + * @return A list containing the imageTags. + */ + public com.google.protobuf.ProtocolStringList + getImageTagsList() { + return imageTags_; + } + /** + * repeated string image_tags = 10; + * @return The count of imageTags. + */ + public int getImageTagsCount() { + return imageTags_.size(); + } + /** + * repeated string image_tags = 10; + * @param index The index of the element to return. + * @return The imageTags at the given index. + */ + public java.lang.String getImageTags(int index) { + return imageTags_.get(index); + } + /** + * repeated string image_tags = 10; + * @param index The index of the value to return. + * @return The bytes of the imageTags at the given index. + */ + public com.google.protobuf.ByteString + getImageTagsBytes(int index) { + return imageTags_.getByteString(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 (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)); + } + for (int i = 0; i < imageTags_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, imageTags_.getRaw(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)); + } + { + int dataSize = 0; + for (int i = 0; i < imageTags_.size(); i++) { + dataSize += computeStringSizeNoTag(imageTags_.getRaw(i)); + } + size += dataSize; + size += 1 * getImageTagsList().size(); + } + 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 (!getImageTagsList() + .equals(other.getImageTagsList())) 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(); + } + if (getImageTagsCount() > 0) { + hash = (37 * hash) + IMAGE_TAGS_FIELD_NUMBER; + hash = (53 * hash) + getImageTagsList().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(); + imageTags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000100); + 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_; + if (((bitField0_ & 0x00000100) != 0)) { + imageTags_ = imageTags_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000100); + } + result.imageTags_ = imageTags_; + } + + 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(); + } + if (!other.imageTags_.isEmpty()) { + if (imageTags_.isEmpty()) { + imageTags_ = other.imageTags_; + bitField0_ = (bitField0_ & ~0x00000100); + } else { + ensureImageTagsIsMutable(); + imageTags_.addAll(other.imageTags_); + } + 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 + case 82: { + java.lang.String s = input.readStringRequireUtf8(); + ensureImageTagsIsMutable(); + imageTags_.add(s); + break; + } // case 82 + 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; } @@ -8356,51 +9637,155 @@ 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. + * 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; + } + + private com.google.protobuf.LazyStringList imageTags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureImageTagsIsMutable() { + if (!((bitField0_ & 0x00000100) != 0)) { + imageTags_ = new com.google.protobuf.LazyStringArrayList(imageTags_); + bitField0_ |= 0x00000100; + } + } + /** + * repeated string image_tags = 10; + * @return A list containing the imageTags. + */ + public com.google.protobuf.ProtocolStringList + getImageTagsList() { + return imageTags_.getUnmodifiableView(); + } + /** + * repeated string image_tags = 10; + * @return The count of imageTags. + */ + public int getImageTagsCount() { + return imageTags_.size(); + } + /** + * repeated string image_tags = 10; + * @param index The index of the element to return. + * @return The imageTags at the given index. + */ + public java.lang.String getImageTags(int index) { + return imageTags_.get(index); + } + /** + * repeated string image_tags = 10; + * @param index The index of the value to return. + * @return The bytes of the imageTags at the given index. + */ + public com.google.protobuf.ByteString + getImageTagsBytes(int index) { + return imageTags_.getByteString(index); + } + /** + * repeated string image_tags = 10; + * @param index The index to set the value at. + * @param value The imageTags to set. + * @return This builder for chaining. + */ + public Builder setImageTags( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureImageTagsIsMutable(); + imageTags_.set(index, value); + onChanged(); + return this; + } + /** + * repeated string image_tags = 10; + * @param value The imageTags to add. * @return This builder for chaining. */ - public Builder setSyscalls( - int index, int value) { - - ensureSyscallsIsMutable(); - syscalls_.setInt(index, value); + public Builder addImageTags( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureImageTagsIsMutable(); + imageTags_.add(value); onChanged(); return this; } /** - * repeated uint32 syscalls = 7; - * @param value The syscalls to add. + * repeated string image_tags = 10; + * @param values The imageTags to add. * @return This builder for chaining. */ - public Builder addSyscalls(int value) { - - ensureSyscallsIsMutable(); - syscalls_.addInt(value); + public Builder addAllImageTags( + java.lang.Iterable values) { + ensureImageTagsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, imageTags_); onChanged(); return this; } /** - * repeated uint32 syscalls = 7; - * @param values The syscalls to add. + * repeated string image_tags = 10; * @return This builder for chaining. */ - public Builder addAllSyscalls( - java.lang.Iterable values) { - ensureSyscallsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, syscalls_); + public Builder clearImageTags() { + imageTags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } /** - * repeated uint32 syscalls = 7; + * repeated string image_tags = 10; + * @param value The bytes of the imageTags to add. * @return This builder for chaining. */ - public Builder clearSyscalls() { - syscalls_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000080); + public Builder addImageTagsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureImageTagsIsMutable(); + imageTags_.add(value); onChanged(); return this; } @@ -8493,7 +9878,7 @@ public interface ProcessInfoOrBuilder extends /** * uint32 cookie = 4 [deprecated = true]; * @deprecated datadog.cws.dumpsv1.ProcessInfo.cookie is deprecated. - * See proto/cws/dumpsv1/activity_dump.proto;l=65 + * See proto/cws/dumpsv1/activity_dump.proto;l=72 * @return The cookie. */ @java.lang.Deprecated int getCookie(); @@ -8770,7 +10155,7 @@ public int getPpid() { /** * uint32 cookie = 4 [deprecated = true]; * @deprecated datadog.cws.dumpsv1.ProcessInfo.cookie is deprecated. - * See proto/cws/dumpsv1/activity_dump.proto;l=65 + * See proto/cws/dumpsv1/activity_dump.proto;l=72 * @return The cookie. */ @java.lang.Override @@ -10152,7 +11537,7 @@ public Builder clearPpid() { /** * uint32 cookie = 4 [deprecated = true]; * @deprecated datadog.cws.dumpsv1.ProcessInfo.cookie is deprecated. - * See proto/cws/dumpsv1/activity_dump.proto;l=65 + * See proto/cws/dumpsv1/activity_dump.proto;l=72 * @return The cookie. */ @java.lang.Override @@ -10162,7 +11547,7 @@ public Builder clearPpid() { /** * uint32 cookie = 4 [deprecated = true]; * @deprecated datadog.cws.dumpsv1.ProcessInfo.cookie is deprecated. - * See proto/cws/dumpsv1/activity_dump.proto;l=65 + * See proto/cws/dumpsv1/activity_dump.proto;l=72 * @param value The cookie to set. * @return This builder for chaining. */ @@ -10176,7 +11561,7 @@ public Builder clearPpid() { /** * uint32 cookie = 4 [deprecated = true]; * @deprecated datadog.cws.dumpsv1.ProcessInfo.cookie is deprecated. - * See proto/cws/dumpsv1/activity_dump.proto;l=65 + * See proto/cws/dumpsv1/activity_dump.proto;l=72 * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearCookie() { @@ -11331,6 +12716,31 @@ public interface FileActivityNodeOrBuilder extends com.dd.cws.adv1.pb.SecDumpProto.MatchedRuleOrBuilder getMatchedRulesOrBuilder( int index); + /** + * repeated string image_tags = 10; + * @return A list containing the imageTags. + */ + java.util.List + getImageTagsList(); + /** + * repeated string image_tags = 10; + * @return The count of imageTags. + */ + int getImageTagsCount(); + /** + * repeated string image_tags = 10; + * @param index The index of the element to return. + * @return The imageTags at the given index. + */ + java.lang.String getImageTags(int index); + /** + * repeated string image_tags = 10; + * @param index The index of the value to return. + * @return The bytes of the imageTags at the given index. + */ + com.google.protobuf.ByteString + getImageTagsBytes(int index); + /** * string name = 1; * @return The name. @@ -11434,6 +12844,7 @@ private FileActivityNode(com.google.protobuf.GeneratedMessageV3.Builder build } private FileActivityNode() { matchedRules_ = java.util.Collections.emptyList(); + imageTags_ = com.google.protobuf.LazyStringArrayList.EMPTY; name_ = ""; generationType_ = 0; children_ = java.util.Collections.emptyList(); @@ -11505,6 +12916,42 @@ public com.dd.cws.adv1.pb.SecDumpProto.MatchedRuleOrBuilder getMatchedRulesOrBui return matchedRules_.get(index); } + public static final int IMAGE_TAGS_FIELD_NUMBER = 10; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringList imageTags_; + /** + * repeated string image_tags = 10; + * @return A list containing the imageTags. + */ + public com.google.protobuf.ProtocolStringList + getImageTagsList() { + return imageTags_; + } + /** + * repeated string image_tags = 10; + * @return The count of imageTags. + */ + public int getImageTagsCount() { + return imageTags_.size(); + } + /** + * repeated string image_tags = 10; + * @param index The index of the element to return. + * @return The imageTags at the given index. + */ + public java.lang.String getImageTags(int index) { + return imageTags_.get(index); + } + /** + * repeated string image_tags = 10; + * @param index The index of the value to return. + * @return The bytes of the imageTags at the given index. + */ + public com.google.protobuf.ByteString + getImageTagsBytes(int index) { + return imageTags_.getByteString(index); + } + public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; @@ -11715,6 +13162,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < matchedRules_.size(); i++) { output.writeMessage(9, matchedRules_.get(i)); } + for (int i = 0; i < imageTags_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, imageTags_.getRaw(i)); + } getUnknownFields().writeTo(output); } @@ -11755,6 +13205,14 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, matchedRules_.get(i)); } + { + int dataSize = 0; + for (int i = 0; i < imageTags_.size(); i++) { + dataSize += computeStringSizeNoTag(imageTags_.getRaw(i)); + } + size += dataSize; + size += 1 * getImageTagsList().size(); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -11772,6 +13230,8 @@ public boolean equals(final java.lang.Object obj) { if (!getMatchedRulesList() .equals(other.getMatchedRulesList())) return false; + if (!getImageTagsList() + .equals(other.getImageTagsList())) return false; if (!getName() .equals(other.getName())) return false; if (getIsPattern() @@ -11806,6 +13266,10 @@ public int hashCode() { hash = (37 * hash) + MATCHED_RULES_FIELD_NUMBER; hash = (53 * hash) + getMatchedRulesList().hashCode(); } + if (getImageTagsCount() > 0) { + hash = (37 * hash) + IMAGE_TAGS_FIELD_NUMBER; + hash = (53 * hash) + getImageTagsList().hashCode(); + } hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + IS_PATTERN_FIELD_NUMBER; @@ -11964,6 +13428,8 @@ public Builder clear() { matchedRulesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); + imageTags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); name_ = ""; isPattern_ = false; file_ = null; @@ -11984,7 +13450,7 @@ public Builder clear() { children_ = null; childrenBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); return this; } @@ -12027,10 +13493,15 @@ private void buildPartialRepeatedFields(com.dd.cws.adv1.pb.SecDumpProto.FileActi } else { result.matchedRules_ = matchedRulesBuilder_.build(); } + if (((bitField0_ & 0x00000002) != 0)) { + imageTags_ = imageTags_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.imageTags_ = imageTags_; if (childrenBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0)) { + if (((bitField0_ & 0x00000100) != 0)) { children_ = java.util.Collections.unmodifiableList(children_); - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); } result.children_ = children_; } else { @@ -12040,24 +13511,24 @@ private void buildPartialRepeatedFields(com.dd.cws.adv1.pb.SecDumpProto.FileActi private void buildPartial0(com.dd.cws.adv1.pb.SecDumpProto.FileActivityNode result) { int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000002) != 0)) { + if (((from_bitField0_ & 0x00000004) != 0)) { result.name_ = name_; } - if (((from_bitField0_ & 0x00000004) != 0)) { + if (((from_bitField0_ & 0x00000008) != 0)) { result.isPattern_ = isPattern_; } - if (((from_bitField0_ & 0x00000008) != 0)) { + if (((from_bitField0_ & 0x00000010) != 0)) { result.file_ = fileBuilder_ == null ? file_ : fileBuilder_.build(); } - if (((from_bitField0_ & 0x00000010) != 0)) { + if (((from_bitField0_ & 0x00000020) != 0)) { result.generationType_ = generationType_; } - if (((from_bitField0_ & 0x00000020) != 0)) { + if (((from_bitField0_ & 0x00000040) != 0)) { result.firstSeen_ = firstSeen_; } - if (((from_bitField0_ & 0x00000040) != 0)) { + if (((from_bitField0_ & 0x00000080) != 0)) { result.open_ = openBuilder_ == null ? open_ : openBuilder_.build(); @@ -12134,9 +13605,19 @@ public Builder mergeFrom(com.dd.cws.adv1.pb.SecDumpProto.FileActivityNode other) } } } + if (!other.imageTags_.isEmpty()) { + if (imageTags_.isEmpty()) { + imageTags_ = other.imageTags_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureImageTagsIsMutable(); + imageTags_.addAll(other.imageTags_); + } + onChanged(); + } if (!other.getName().isEmpty()) { name_ = other.name_; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); } if (other.getIsPattern() != false) { @@ -12158,7 +13639,7 @@ public Builder mergeFrom(com.dd.cws.adv1.pb.SecDumpProto.FileActivityNode other) if (!other.children_.isEmpty()) { if (children_.isEmpty()) { children_ = other.children_; - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); } else { ensureChildrenIsMutable(); children_.addAll(other.children_); @@ -12171,7 +13652,7 @@ public Builder mergeFrom(com.dd.cws.adv1.pb.SecDumpProto.FileActivityNode other) childrenBuilder_.dispose(); childrenBuilder_ = null; children_ = other.children_; - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); childrenBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getChildrenFieldBuilder() : null; @@ -12208,26 +13689,26 @@ public Builder mergeFrom( break; case 10: { name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; break; } // case 10 case 18: { input.readMessage( getFileFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; break; } // case 18 case 32: { firstSeen_ = input.readUInt64(); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; break; } // case 32 case 42: { input.readMessage( getOpenFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; break; } // case 42 case 50: { @@ -12245,12 +13726,12 @@ public Builder mergeFrom( } // case 50 case 56: { isPattern_ = input.readBool(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; break; } // case 56 case 64: { generationType_ = input.readEnum(); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; break; } // case 64 case 74: { @@ -12266,6 +13747,12 @@ public Builder mergeFrom( } break; } // case 74 + case 82: { + java.lang.String s = input.readStringRequireUtf8(); + ensureImageTagsIsMutable(); + imageTags_.add(s); + break; + } // case 82 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -12523,6 +14010,110 @@ public com.dd.cws.adv1.pb.SecDumpProto.MatchedRule.Builder addMatchedRulesBuilde return matchedRulesBuilder_; } + private com.google.protobuf.LazyStringList imageTags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureImageTagsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + imageTags_ = new com.google.protobuf.LazyStringArrayList(imageTags_); + bitField0_ |= 0x00000002; + } + } + /** + * repeated string image_tags = 10; + * @return A list containing the imageTags. + */ + public com.google.protobuf.ProtocolStringList + getImageTagsList() { + return imageTags_.getUnmodifiableView(); + } + /** + * repeated string image_tags = 10; + * @return The count of imageTags. + */ + public int getImageTagsCount() { + return imageTags_.size(); + } + /** + * repeated string image_tags = 10; + * @param index The index of the element to return. + * @return The imageTags at the given index. + */ + public java.lang.String getImageTags(int index) { + return imageTags_.get(index); + } + /** + * repeated string image_tags = 10; + * @param index The index of the value to return. + * @return The bytes of the imageTags at the given index. + */ + public com.google.protobuf.ByteString + getImageTagsBytes(int index) { + return imageTags_.getByteString(index); + } + /** + * repeated string image_tags = 10; + * @param index The index to set the value at. + * @param value The imageTags to set. + * @return This builder for chaining. + */ + public Builder setImageTags( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureImageTagsIsMutable(); + imageTags_.set(index, value); + onChanged(); + return this; + } + /** + * repeated string image_tags = 10; + * @param value The imageTags to add. + * @return This builder for chaining. + */ + public Builder addImageTags( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureImageTagsIsMutable(); + imageTags_.add(value); + onChanged(); + return this; + } + /** + * repeated string image_tags = 10; + * @param values The imageTags to add. + * @return This builder for chaining. + */ + public Builder addAllImageTags( + java.lang.Iterable values) { + ensureImageTagsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, imageTags_); + onChanged(); + return this; + } + /** + * repeated string image_tags = 10; + * @return This builder for chaining. + */ + public Builder clearImageTags() { + imageTags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * repeated string image_tags = 10; + * @param value The bytes of the imageTags to add. + * @return This builder for chaining. + */ + public Builder addImageTagsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureImageTagsIsMutable(); + imageTags_.add(value); + onChanged(); + return this; + } + private java.lang.Object name_ = ""; /** * string name = 1; @@ -12566,7 +14157,7 @@ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -12576,7 +14167,7 @@ public Builder setName( */ public Builder clearName() { name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -12590,7 +14181,7 @@ public Builder setNameBytes( if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -12612,7 +14203,7 @@ public boolean getIsPattern() { public Builder setIsPattern(boolean value) { isPattern_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -12621,7 +14212,7 @@ public Builder setIsPattern(boolean value) { * @return This builder for chaining. */ public Builder clearIsPattern() { - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); isPattern_ = false; onChanged(); return this; @@ -12635,7 +14226,7 @@ public Builder clearIsPattern() { * @return Whether the file field is set. */ public boolean hasFile() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000010) != 0); } /** * .datadog.cws.dumpsv1.FileInfo file = 2; @@ -12660,7 +14251,7 @@ public Builder setFile(com.dd.cws.adv1.pb.SecDumpProto.FileInfo value) { } else { fileBuilder_.setMessage(value); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -12674,7 +14265,7 @@ public Builder setFile( } else { fileBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -12683,7 +14274,7 @@ public Builder setFile( */ public Builder mergeFile(com.dd.cws.adv1.pb.SecDumpProto.FileInfo value) { if (fileBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && + if (((bitField0_ & 0x00000010) != 0) && file_ != null && file_ != com.dd.cws.adv1.pb.SecDumpProto.FileInfo.getDefaultInstance()) { getFileBuilder().mergeFrom(value); @@ -12693,7 +14284,7 @@ public Builder mergeFile(com.dd.cws.adv1.pb.SecDumpProto.FileInfo value) { } else { fileBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -12701,7 +14292,7 @@ public Builder mergeFile(com.dd.cws.adv1.pb.SecDumpProto.FileInfo value) { * .datadog.cws.dumpsv1.FileInfo file = 2; */ public Builder clearFile() { - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); file_ = null; if (fileBuilder_ != null) { fileBuilder_.dispose(); @@ -12714,7 +14305,7 @@ public Builder clearFile() { * .datadog.cws.dumpsv1.FileInfo file = 2; */ public com.dd.cws.adv1.pb.SecDumpProto.FileInfo.Builder getFileBuilder() { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return getFileFieldBuilder().getBuilder(); } @@ -12761,7 +14352,7 @@ public com.dd.cws.adv1.pb.SecDumpProto.FileInfoOrBuilder getFileOrBuilder() { */ public Builder setGenerationTypeValue(int value) { generationType_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -12783,7 +14374,7 @@ public Builder setGenerationType(com.dd.cws.adv1.pb.SecDumpProto.GenerationType if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; generationType_ = value.getNumber(); onChanged(); return this; @@ -12793,7 +14384,7 @@ public Builder setGenerationType(com.dd.cws.adv1.pb.SecDumpProto.GenerationType * @return This builder for chaining. */ public Builder clearGenerationType() { - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); generationType_ = 0; onChanged(); return this; @@ -12816,7 +14407,7 @@ public long getFirstSeen() { public Builder setFirstSeen(long value) { firstSeen_ = value; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -12825,7 +14416,7 @@ public Builder setFirstSeen(long value) { * @return This builder for chaining. */ public Builder clearFirstSeen() { - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); firstSeen_ = 0L; onChanged(); return this; @@ -12839,7 +14430,7 @@ public Builder clearFirstSeen() { * @return Whether the open field is set. */ public boolean hasOpen() { - return ((bitField0_ & 0x00000040) != 0); + return ((bitField0_ & 0x00000080) != 0); } /** * .datadog.cws.dumpsv1.OpenNode open = 5; @@ -12864,7 +14455,7 @@ public Builder setOpen(com.dd.cws.adv1.pb.SecDumpProto.OpenNode value) { } else { openBuilder_.setMessage(value); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -12878,7 +14469,7 @@ public Builder setOpen( } else { openBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -12887,7 +14478,7 @@ public Builder setOpen( */ public Builder mergeOpen(com.dd.cws.adv1.pb.SecDumpProto.OpenNode value) { if (openBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) && + if (((bitField0_ & 0x00000080) != 0) && open_ != null && open_ != com.dd.cws.adv1.pb.SecDumpProto.OpenNode.getDefaultInstance()) { getOpenBuilder().mergeFrom(value); @@ -12897,7 +14488,7 @@ public Builder mergeOpen(com.dd.cws.adv1.pb.SecDumpProto.OpenNode value) { } else { openBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -12905,7 +14496,7 @@ public Builder mergeOpen(com.dd.cws.adv1.pb.SecDumpProto.OpenNode value) { * .datadog.cws.dumpsv1.OpenNode open = 5; */ public Builder clearOpen() { - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); open_ = null; if (openBuilder_ != null) { openBuilder_.dispose(); @@ -12918,7 +14509,7 @@ public Builder clearOpen() { * .datadog.cws.dumpsv1.OpenNode open = 5; */ public com.dd.cws.adv1.pb.SecDumpProto.OpenNode.Builder getOpenBuilder() { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return getOpenFieldBuilder().getBuilder(); } @@ -12953,9 +14544,9 @@ public com.dd.cws.adv1.pb.SecDumpProto.OpenNodeOrBuilder getOpenOrBuilder() { private java.util.List children_ = java.util.Collections.emptyList(); private void ensureChildrenIsMutable() { - if (!((bitField0_ & 0x00000080) != 0)) { + if (!((bitField0_ & 0x00000100) != 0)) { children_ = new java.util.ArrayList(children_); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; } } @@ -13105,7 +14696,7 @@ public Builder addAllChildren( public Builder clearChildren() { if (childrenBuilder_ == null) { children_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); onChanged(); } else { childrenBuilder_.clear(); @@ -13182,7 +14773,7 @@ public com.dd.cws.adv1.pb.SecDumpProto.FileActivityNode.Builder addChildrenBuild 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), + ((bitField0_ & 0x00000100) != 0), getParentForChildren(), isClean()); children_ = null; @@ -13905,6 +15496,31 @@ public interface DNSNodeOrBuilder extends com.dd.cws.adv1.pb.SecDumpProto.MatchedRuleOrBuilder getMatchedRulesOrBuilder( int index); + /** + * repeated string image_tags = 3; + * @return A list containing the imageTags. + */ + java.util.List + getImageTagsList(); + /** + * repeated string image_tags = 3; + * @return The count of imageTags. + */ + int getImageTagsCount(); + /** + * repeated string image_tags = 3; + * @param index The index of the element to return. + * @return The imageTags at the given index. + */ + java.lang.String getImageTags(int index); + /** + * repeated string image_tags = 3; + * @param index The index of the value to return. + * @return The bytes of the imageTags at the given index. + */ + com.google.protobuf.ByteString + getImageTagsBytes(int index); + /** * repeated .datadog.cws.dumpsv1.DNSInfo requests = 1; */ @@ -13943,6 +15559,7 @@ private DNSNode(com.google.protobuf.GeneratedMessageV3.Builder builder) { } private DNSNode() { matchedRules_ = java.util.Collections.emptyList(); + imageTags_ = com.google.protobuf.LazyStringArrayList.EMPTY; requests_ = java.util.Collections.emptyList(); } @@ -13999,17 +15616,53 @@ public int getMatchedRulesCount() { /** * 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); + @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 IMAGE_TAGS_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringList imageTags_; + /** + * repeated string image_tags = 3; + * @return A list containing the imageTags. + */ + public com.google.protobuf.ProtocolStringList + getImageTagsList() { + return imageTags_; + } + /** + * repeated string image_tags = 3; + * @return The count of imageTags. + */ + public int getImageTagsCount() { + return imageTags_.size(); + } + /** + * repeated string image_tags = 3; + * @param index The index of the element to return. + * @return The imageTags at the given index. + */ + public java.lang.String getImageTags(int index) { + return imageTags_.get(index); } /** - * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 2; + * repeated string image_tags = 3; + * @param index The index of the value to return. + * @return The bytes of the imageTags at the given index. */ - @java.lang.Override - public com.dd.cws.adv1.pb.SecDumpProto.MatchedRuleOrBuilder getMatchedRulesOrBuilder( - int index) { - return matchedRules_.get(index); + public com.google.protobuf.ByteString + getImageTagsBytes(int index) { + return imageTags_.getByteString(index); } public static final int REQUESTS_FIELD_NUMBER = 1; @@ -14073,6 +15726,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < matchedRules_.size(); i++) { output.writeMessage(2, matchedRules_.get(i)); } + for (int i = 0; i < imageTags_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, imageTags_.getRaw(i)); + } getUnknownFields().writeTo(output); } @@ -14090,6 +15746,14 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, matchedRules_.get(i)); } + { + int dataSize = 0; + for (int i = 0; i < imageTags_.size(); i++) { + dataSize += computeStringSizeNoTag(imageTags_.getRaw(i)); + } + size += dataSize; + size += 1 * getImageTagsList().size(); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -14107,6 +15771,8 @@ public boolean equals(final java.lang.Object obj) { if (!getMatchedRulesList() .equals(other.getMatchedRulesList())) return false; + if (!getImageTagsList() + .equals(other.getImageTagsList())) return false; if (!getRequestsList() .equals(other.getRequestsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -14124,6 +15790,10 @@ public int hashCode() { hash = (37 * hash) + MATCHED_RULES_FIELD_NUMBER; hash = (53 * hash) + getMatchedRulesList().hashCode(); } + if (getImageTagsCount() > 0) { + hash = (37 * hash) + IMAGE_TAGS_FIELD_NUMBER; + hash = (53 * hash) + getImageTagsList().hashCode(); + } if (getRequestsCount() > 0) { hash = (37 * hash) + REQUESTS_FIELD_NUMBER; hash = (53 * hash) + getRequestsList().hashCode(); @@ -14264,13 +15934,15 @@ public Builder clear() { matchedRulesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); + imageTags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); if (requestsBuilder_ == null) { requests_ = java.util.Collections.emptyList(); } else { requests_ = null; requestsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); return this; } @@ -14313,10 +15985,15 @@ private void buildPartialRepeatedFields(com.dd.cws.adv1.pb.SecDumpProto.DNSNode } else { result.matchedRules_ = matchedRulesBuilder_.build(); } + if (((bitField0_ & 0x00000002) != 0)) { + imageTags_ = imageTags_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.imageTags_ = imageTags_; if (requestsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { requests_ = java.util.Collections.unmodifiableList(requests_); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); } result.requests_ = requests_; } else { @@ -14398,11 +16075,21 @@ public Builder mergeFrom(com.dd.cws.adv1.pb.SecDumpProto.DNSNode other) { } } } + if (!other.imageTags_.isEmpty()) { + if (imageTags_.isEmpty()) { + imageTags_ = other.imageTags_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureImageTagsIsMutable(); + imageTags_.addAll(other.imageTags_); + } + onChanged(); + } if (requestsBuilder_ == null) { if (!other.requests_.isEmpty()) { if (requests_.isEmpty()) { requests_ = other.requests_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); } else { ensureRequestsIsMutable(); requests_.addAll(other.requests_); @@ -14415,7 +16102,7 @@ public Builder mergeFrom(com.dd.cws.adv1.pb.SecDumpProto.DNSNode other) { requestsBuilder_.dispose(); requestsBuilder_ = null; requests_ = other.requests_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); requestsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRequestsFieldBuilder() : null; @@ -14476,6 +16163,12 @@ public Builder mergeFrom( } break; } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureImageTagsIsMutable(); + imageTags_.add(s); + break; + } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -14733,12 +16426,116 @@ public com.dd.cws.adv1.pb.SecDumpProto.MatchedRule.Builder addMatchedRulesBuilde return matchedRulesBuilder_; } + private com.google.protobuf.LazyStringList imageTags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureImageTagsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + imageTags_ = new com.google.protobuf.LazyStringArrayList(imageTags_); + bitField0_ |= 0x00000002; + } + } + /** + * repeated string image_tags = 3; + * @return A list containing the imageTags. + */ + public com.google.protobuf.ProtocolStringList + getImageTagsList() { + return imageTags_.getUnmodifiableView(); + } + /** + * repeated string image_tags = 3; + * @return The count of imageTags. + */ + public int getImageTagsCount() { + return imageTags_.size(); + } + /** + * repeated string image_tags = 3; + * @param index The index of the element to return. + * @return The imageTags at the given index. + */ + public java.lang.String getImageTags(int index) { + return imageTags_.get(index); + } + /** + * repeated string image_tags = 3; + * @param index The index of the value to return. + * @return The bytes of the imageTags at the given index. + */ + public com.google.protobuf.ByteString + getImageTagsBytes(int index) { + return imageTags_.getByteString(index); + } + /** + * repeated string image_tags = 3; + * @param index The index to set the value at. + * @param value The imageTags to set. + * @return This builder for chaining. + */ + public Builder setImageTags( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureImageTagsIsMutable(); + imageTags_.set(index, value); + onChanged(); + return this; + } + /** + * repeated string image_tags = 3; + * @param value The imageTags to add. + * @return This builder for chaining. + */ + public Builder addImageTags( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureImageTagsIsMutable(); + imageTags_.add(value); + onChanged(); + return this; + } + /** + * repeated string image_tags = 3; + * @param values The imageTags to add. + * @return This builder for chaining. + */ + public Builder addAllImageTags( + java.lang.Iterable values) { + ensureImageTagsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, imageTags_); + onChanged(); + return this; + } + /** + * repeated string image_tags = 3; + * @return This builder for chaining. + */ + public Builder clearImageTags() { + imageTags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * repeated string image_tags = 3; + * @param value The bytes of the imageTags to add. + * @return This builder for chaining. + */ + public Builder addImageTagsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureImageTagsIsMutable(); + imageTags_.add(value); + onChanged(); + return this; + } + private java.util.List requests_ = java.util.Collections.emptyList(); private void ensureRequestsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000004) != 0)) { requests_ = new java.util.ArrayList(requests_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; } } @@ -14888,7 +16685,7 @@ public Builder addAllRequests( public Builder clearRequests() { if (requestsBuilder_ == null) { requests_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { requestsBuilder_.clear(); @@ -14965,7 +16762,7 @@ public com.dd.cws.adv1.pb.SecDumpProto.DNSInfo.Builder addRequestsBuilder( 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), + ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); requests_ = null; @@ -16283,3916 +18080,4849 @@ public long getInode() { * @return The inUpperLayer. */ @java.lang.Override - public boolean getInUpperLayer() { - return inUpperLayer_; + 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 PATH_FIELD_NUMBER = 11; + public static final int PACKAGE_VERSION_FIELD_NUMBER = 15; @SuppressWarnings("serial") - private volatile java.lang.Object path_ = ""; + private volatile java.lang.Object packageVersion_ = ""; /** - * string path = 11; - * @return The path. + * string package_version = 15; + * @return The packageVersion. */ @java.lang.Override - public java.lang.String getPath() { - java.lang.Object ref = path_; + 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(); - path_ = s; + packageVersion_ = s; return s; } } /** - * string path = 11; - * @return The bytes for path. + * string package_version = 15; + * @return The bytes for packageVersion. */ @java.lang.Override public com.google.protobuf.ByteString - getPathBytes() { - java.lang.Object ref = path_; + 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); - path_ = b; + packageVersion_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - public static final int BASENAME_FIELD_NUMBER = 12; + public static final int PACKAGE_SRCVERSION_FIELD_NUMBER = 16; @SuppressWarnings("serial") - private volatile java.lang.Object basename_ = ""; + private volatile java.lang.Object packageSrcversion_ = ""; /** - * string basename = 12; - * @return The basename. + * string package_srcversion = 16; + * @return The packageSrcversion. */ @java.lang.Override - public java.lang.String getBasename() { - java.lang.Object ref = basename_; + 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(); - basename_ = s; + packageSrcversion_ = s; return s; } } /** - * string basename = 12; - * @return The bytes for basename. + * string package_srcversion = 16; + * @return The bytes for packageSrcversion. */ @java.lang.Override public com.google.protobuf.ByteString - getBasenameBytes() { - java.lang.Object ref = basename_; + 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); - basename_ = b; + packageSrcversion_ = 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. - */ + public static final int HASHES_FIELD_NUMBER = 17; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringList hashes_; + /** + * repeated string hashes = 17; + * @return A list containing the hashes. + */ + public com.google.protobuf.ProtocolStringList + getHashesList() { + return hashes_; + } + /** + * repeated string hashes = 17; + * @return The count of hashes. + */ + public int getHashesCount() { + return hashes_.size(); + } + /** + * repeated string hashes = 17; + * @param index The index of the element to return. + * @return The hashes at the given index. + */ + public java.lang.String getHashes(int index) { + return hashes_.get(index); + } + /** + * repeated string hashes = 17; + * @param index The index of the value to return. + * @return The bytes of the hashes at the given index. + */ + public com.google.protobuf.ByteString + getHashesBytes(int index) { + return hashes_.getByteString(index); + } + + public static final int HASH_STATE_FIELD_NUMBER = 18; + private int hashState_ = 0; + /** + * .datadog.cws.dumpsv1.HashState hash_state = 18; + * @return The enum numeric value on the wire for hashState. + */ + @java.lang.Override public int getHashStateValue() { + return hashState_; + } + /** + * .datadog.cws.dumpsv1.HashState hash_state = 18; + * @return The hashState. + */ + @java.lang.Override public com.dd.cws.adv1.pb.SecDumpProto.HashState getHashState() { + com.dd.cws.adv1.pb.SecDumpProto.HashState result = com.dd.cws.adv1.pb.SecDumpProto.HashState.forNumber(hashState_); + return result == null ? com.dd.cws.adv1.pb.SecDumpProto.HashState.UNRECOGNIZED : result; + } + + 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_); + } + for (int i = 0; i < hashes_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 17, hashes_.getRaw(i)); + } + if (hashState_ != com.dd.cws.adv1.pb.SecDumpProto.HashState.NO_HASH.getNumber()) { + output.writeEnum(18, hashState_); + } + 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_); + } + { + int dataSize = 0; + for (int i = 0; i < hashes_.size(); i++) { + dataSize += computeStringSizeNoTag(hashes_.getRaw(i)); + } + size += dataSize; + size += 2 * getHashesList().size(); + } + if (hashState_ != com.dd.cws.adv1.pb.SecDumpProto.HashState.NO_HASH.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(18, hashState_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + @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; + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; } - } - /** - * 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; + 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 (!getHashesList() + .equals(other.getHashesList())) return false; + if (hashState_ != other.hashState_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; } - 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; + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; } - } - /** - * 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; + 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(); + if (getHashesCount() > 0) { + hash = (37 * hash) + HASHES_FIELD_NUMBER; + hash = (53 * hash) + getHashesList().hashCode(); } + hash = (37 * hash) + HASH_STATE_FIELD_NUMBER; + hash = (53 * hash) + hashState_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } - 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; - } + public static com.dd.cws.adv1.pb.SecDumpProto.FileInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - /** - * 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 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 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; - } + 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); } - /** - * 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; - } + 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); } - public static final int HASHES_FIELD_NUMBER = 17; - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringList hashes_; - /** - * repeated string hashes = 17; - * @return A list containing the hashes. - */ - public com.google.protobuf.ProtocolStringList - getHashesList() { - return hashes_; - } - /** - * repeated string hashes = 17; - * @return The count of hashes. - */ - public int getHashesCount() { - return hashes_.size(); + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); } - /** - * repeated string hashes = 17; - * @param index The index of the element to return. - * @return The hashes at the given index. - */ - public java.lang.String getHashes(int index) { - return hashes_.get(index); + public static Builder newBuilder(com.dd.cws.adv1.pb.SecDumpProto.FileInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - /** - * repeated string hashes = 17; - * @param index The index of the value to return. - * @return The bytes of the hashes at the given index. - */ - public com.google.protobuf.ByteString - getHashesBytes(int index) { - return hashes_.getByteString(index); + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public static final int HASH_STATE_FIELD_NUMBER = 18; - private int hashState_ = 0; - /** - * .datadog.cws.dumpsv1.HashState hash_state = 18; - * @return The enum numeric value on the wire for hashState. - */ - @java.lang.Override public int getHashStateValue() { - return hashState_; + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; } /** - * .datadog.cws.dumpsv1.HashState hash_state = 18; - * @return The hashState. + * Protobuf type {@code datadog.cws.dumpsv1.FileInfo} */ - @java.lang.Override public com.dd.cws.adv1.pb.SecDumpProto.HashState getHashState() { - com.dd.cws.adv1.pb.SecDumpProto.HashState result = com.dd.cws.adv1.pb.SecDumpProto.HashState.forNumber(hashState_); - return result == null ? com.dd.cws.adv1.pb.SecDumpProto.HashState.UNRECOGNIZED : result; - } + 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; + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @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); + } - memoizedIsInitialized = 1; - return true; - } + // Construct using com.dd.cws.adv1.pb.SecDumpProto.FileInfo.newBuilder() + private Builder() { - @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_); + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } - if (gid_ != 0) { - output.writeUInt32(3, gid_); + @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_ = ""; + hashes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00010000); + hashState_ = 0; + return this; } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(group_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, group_); + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_FileInfo_descriptor; } - if (mode_ != 0) { - output.writeUInt32(5, mode_); + + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.FileInfo getDefaultInstanceForType() { + return com.dd.cws.adv1.pb.SecDumpProto.FileInfo.getDefaultInstance(); } - if (ctime_ != 0L) { - output.writeUInt64(6, ctime_); + + @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; } - if (mtime_ != 0L) { - output.writeUInt64(7, mtime_); + + @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); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; } - if (mountId_ != 0) { - output.writeUInt32(8, mountId_); + + private void buildPartialRepeatedFields(com.dd.cws.adv1.pb.SecDumpProto.FileInfo result) { + if (((bitField0_ & 0x00010000) != 0)) { + hashes_ = hashes_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00010000); + } + result.hashes_ = hashes_; + } + + 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_; + } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.hashState_ = hashState_; + } } - if (inode_ != 0L) { - output.writeUInt64(9, inode_); + + @java.lang.Override + public Builder clone() { + return super.clone(); } - if (inUpperLayer_ != false) { - output.writeBool(10, inUpperLayer_); + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 11, path_); + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(basename_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 12, basename_); + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filesystem_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 13, filesystem_); + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(packageName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 14, packageName_); + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(packageVersion_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 15, packageVersion_); + @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; + } } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(packageSrcversion_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 16, packageSrcversion_); + + 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(); + } + if (!other.hashes_.isEmpty()) { + if (hashes_.isEmpty()) { + hashes_ = other.hashes_; + bitField0_ = (bitField0_ & ~0x00010000); + } else { + ensureHashesIsMutable(); + hashes_.addAll(other.hashes_); + } + onChanged(); + } + if (other.hashState_ != 0) { + setHashStateValue(other.getHashStateValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; } - for (int i = 0; i < hashes_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 17, hashes_.getRaw(i)); + + @java.lang.Override + public final boolean isInitialized() { + return true; } - if (hashState_ != com.dd.cws.adv1.pb.SecDumpProto.HashState.NO_HASH.getNumber()) { - output.writeEnum(18, hashState_); + + @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 + case 138: { + java.lang.String s = input.readStringRequireUtf8(); + ensureHashesIsMutable(); + hashes_.add(s); + break; + } // case 138 + case 144: { + hashState_ = input.readEnum(); + bitField0_ |= 0x00020000; + break; + } // case 144 + 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; } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + private int bitField0_; - 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_); + private int uid_ ; + /** + * uint32 uid = 1; + * @return The uid. + */ + @java.lang.Override + public int getUid() { + return uid_; } - if (ctime_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(6, ctime_); + /** + * 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; } - if (mtime_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(7, mtime_); + /** + * uint32 uid = 1; + * @return This builder for chaining. + */ + public Builder clearUid() { + bitField0_ = (bitField0_ & ~0x00000001); + uid_ = 0; + onChanged(); + return this; } - if (mountId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(8, mountId_); + + 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; + } } - if (inode_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(9, inode_); + /** + * 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; + } } - if (inUpperLayer_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(10, inUpperLayer_); + /** + * 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; } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, path_); + /** + * string user = 2; + * @return This builder for chaining. + */ + public Builder clearUser() { + user_ = getDefaultInstance().getUser(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(basename_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, basename_); + /** + * 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; } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filesystem_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, filesystem_); + + private int gid_ ; + /** + * uint32 gid = 3; + * @return The gid. + */ + @java.lang.Override + public int getGid() { + return gid_; } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(packageName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, packageName_); + /** + * 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; } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(packageVersion_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, packageVersion_); + /** + * uint32 gid = 3; + * @return This builder for chaining. + */ + public Builder clearGid() { + bitField0_ = (bitField0_ & ~0x00000004); + gid_ = 0; + onChanged(); + return this; } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(packageSrcversion_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, packageSrcversion_); + + 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; + } } - { - int dataSize = 0; - for (int i = 0; i < hashes_.size(); i++) { - dataSize += computeStringSizeNoTag(hashes_.getRaw(i)); + /** + * 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; } - size += dataSize; - size += 2 * getHashesList().size(); } - if (hashState_ != com.dd.cws.adv1.pb.SecDumpProto.HashState.NO_HASH.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(18, hashState_); + /** + * 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; } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; + /** + * string group = 4; + * @return This builder for chaining. + */ + public Builder clearGroup() { + group_ = getDefaultInstance().getGroup(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; } - if (!(obj instanceof com.dd.cws.adv1.pb.SecDumpProto.FileInfo)) { - return super.equals(obj); + /** + * 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; } - 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 (!getHashesList() - .equals(other.getHashesList())) return false; - if (hashState_ != other.hashState_) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; + private int mode_ ; + /** + *
+       * TODO: check conversion with uint16
+       * 
+ * + * uint32 mode = 5; + * @return The mode. + */ + @java.lang.Override + public int getMode() { + return mode_; } - 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(); - if (getHashesCount() > 0) { - hash = (37 * hash) + HASHES_FIELD_NUMBER; - hash = (53 * hash) + getHashesList().hashCode(); + /** + *
+       * 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; } - hash = (37 * hash) + HASH_STATE_FIELD_NUMBER; - hash = (53 * hash) + hashState_; - 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; + /** + *
+       * 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 - 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() { - + public long getCtime() { + return ctime_; } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - + /** + * 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; } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - uid_ = 0; - user_ = ""; - gid_ = 0; - group_ = ""; - mode_ = 0; + /** + * uint64 ctime = 6; + * @return This builder for chaining. + */ + public Builder clearCtime() { + bitField0_ = (bitField0_ & ~0x00000020); ctime_ = 0L; - mtime_ = 0L; - mountId_ = 0; - inode_ = 0L; - inUpperLayer_ = false; - path_ = ""; - basename_ = ""; - filesystem_ = ""; - packageName_ = ""; - packageVersion_ = ""; - packageSrcversion_ = ""; - hashes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00010000); - hashState_ = 0; + onChanged(); return this; } + private long mtime_ ; + /** + * uint64 mtime = 7; + * @return The mtime. + */ @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_FileInfo_descriptor; + 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 com.dd.cws.adv1.pb.SecDumpProto.FileInfo getDefaultInstanceForType() { - return com.dd.cws.adv1.pb.SecDumpProto.FileInfo.getDefaultInstance(); + 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 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; + 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 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); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; + public boolean getInUpperLayer() { + return inUpperLayer_; } - - private void buildPartialRepeatedFields(com.dd.cws.adv1.pb.SecDumpProto.FileInfo result) { - if (((bitField0_ & 0x00010000) != 0)) { - hashes_ = hashes_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00010000); - } - result.hashes_ = hashes_; + /** + * 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; } - - 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_; - } - if (((from_bitField0_ & 0x00020000) != 0)) { - result.hashState_ = hashState_; - } + /** + * bool in_upper_layer = 10; + * @return This builder for chaining. + */ + public Builder clearInUpperLayer() { + bitField0_ = (bitField0_ & ~0x00000200); + inUpperLayer_ = false; + onChanged(); + return this; } - @java.lang.Override - public Builder clone() { - return super.clone(); + 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; + } } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + /** + * 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; + } } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + /** + * 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; } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + /** + * string path = 11; + * @return This builder for chaining. + */ + public Builder clearPath() { + path_ = getDefaultInstance().getPath(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + return this; } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + /** + * 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; } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + + 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; + } } - @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); + /** + * 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 { - super.mergeFrom(other); - return this; + 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; + } - 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(); - } - if (!other.hashes_.isEmpty()) { - if (hashes_.isEmpty()) { - hashes_ = other.hashes_; - bitField0_ = (bitField0_ & ~0x00010000); - } else { - ensureHashesIsMutable(); - hashes_.addAll(other.hashes_); - } - onChanged(); + 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; } - if (other.hashState_ != 0) { - setHashStateValue(other.getHashStateValue()); + } + /** + * 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; } - this.mergeUnknownFields(other.getUnknownFields()); + } + /** + * 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; } - - @java.lang.Override - public final boolean isInitialized() { - return true; + /** + * string filesystem = 13; + * @return This builder for chaining. + */ + public Builder clearFilesystem() { + filesystem_ = getDefaultInstance().getFilesystem(); + bitField0_ = (bitField0_ & ~0x00001000); + onChanged(); + return this; } - - @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 - case 138: { - java.lang.String s = input.readStringRequireUtf8(); - ensureHashesIsMutable(); - hashes_.add(s); - break; - } // case 138 - case 144: { - hashState_ = input.readEnum(); - bitField0_ |= 0x00020000; - break; - } // case 144 - 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 + /** + * 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 int bitField0_; - private int uid_ ; + private java.lang.Object packageName_ = ""; /** - * uint32 uid = 1; - * @return The uid. + * string package_name = 14; + * @return The packageName. */ - @java.lang.Override - public int getUid() { - return uid_; + 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; + } } /** - * uint32 uid = 1; - * @param value The uid to set. + * 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 setUid(int value) { - - uid_ = value; - bitField0_ |= 0x00000001; + public Builder setPackageName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + packageName_ = value; + bitField0_ |= 0x00002000; onChanged(); return this; } /** - * uint32 uid = 1; + * string package_name = 14; * @return This builder for chaining. */ - public Builder clearUid() { - bitField0_ = (bitField0_ & ~0x00000001); - uid_ = 0; + 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 user_ = ""; + private java.lang.Object packageVersion_ = ""; /** - * string user = 2; - * @return The user. + * string package_version = 15; + * @return The packageVersion. */ - public java.lang.String getUser() { - java.lang.Object ref = user_; + 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(); - user_ = s; + packageVersion_ = s; return s; } else { return (java.lang.String) ref; } } /** - * string user = 2; - * @return The bytes for user. + * string package_version = 15; + * @return The bytes for packageVersion. */ public com.google.protobuf.ByteString - getUserBytes() { - java.lang.Object ref = user_; + getPackageVersionBytes() { + java.lang.Object ref = packageVersion_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - user_ = b; + packageVersion_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** - * string user = 2; - * @param value The user to set. + * string package_version = 15; + * @param value The packageVersion to set. * @return This builder for chaining. */ - public Builder setUser( + public Builder setPackageVersion( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - user_ = value; - bitField0_ |= 0x00000002; + packageVersion_ = value; + bitField0_ |= 0x00004000; onChanged(); return this; } /** - * string user = 2; + * string package_version = 15; * @return This builder for chaining. */ - public Builder clearUser() { - user_ = getDefaultInstance().getUser(); - bitField0_ = (bitField0_ & ~0x00000002); + public Builder clearPackageVersion() { + packageVersion_ = getDefaultInstance().getPackageVersion(); + bitField0_ = (bitField0_ & ~0x00004000); onChanged(); return this; } /** - * string user = 2; - * @param value The bytes for user to set. + * string package_version = 15; + * @param value The bytes for packageVersion to set. * @return This builder for chaining. */ - public Builder setUserBytes( + public Builder setPackageVersionBytes( 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; + packageVersion_ = value; + bitField0_ |= 0x00004000; onChanged(); return this; } - private java.lang.Object group_ = ""; + private java.lang.Object packageSrcversion_ = ""; /** - * string group = 4; - * @return The group. + * string package_srcversion = 16; + * @return The packageSrcversion. */ - public java.lang.String getGroup() { - java.lang.Object ref = group_; + 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(); - group_ = s; + packageSrcversion_ = s; return s; } else { return (java.lang.String) ref; } } /** - * string group = 4; - * @return The bytes for group. + * string package_srcversion = 16; + * @return The bytes for packageSrcversion. */ public com.google.protobuf.ByteString - getGroupBytes() { - java.lang.Object ref = group_; + getPackageSrcversionBytes() { + java.lang.Object ref = packageSrcversion_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - group_ = b; + packageSrcversion_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** - * string group = 4; - * @param value The group to set. + * string package_srcversion = 16; + * @param value The packageSrcversion to set. * @return This builder for chaining. */ - public Builder setGroup( + public Builder setPackageSrcversion( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - group_ = value; - bitField0_ |= 0x00000008; + packageSrcversion_ = value; + bitField0_ |= 0x00008000; onChanged(); return this; } /** - * string group = 4; + * string package_srcversion = 16; * @return This builder for chaining. */ - public Builder clearGroup() { - group_ = getDefaultInstance().getGroup(); - bitField0_ = (bitField0_ & ~0x00000008); + public Builder clearPackageSrcversion() { + packageSrcversion_ = getDefaultInstance().getPackageSrcversion(); + bitField0_ = (bitField0_ & ~0x00008000); onChanged(); return this; } /** - * string group = 4; - * @param value The bytes for group to set. + * string package_srcversion = 16; + * @param value The bytes for packageSrcversion to set. * @return This builder for chaining. */ - public Builder setGroupBytes( + public Builder setPackageSrcversionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - group_ = value; - bitField0_ |= 0x00000008; + packageSrcversion_ = value; + bitField0_ |= 0x00008000; onChanged(); return this; } - private int mode_ ; + private com.google.protobuf.LazyStringList hashes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureHashesIsMutable() { + if (!((bitField0_ & 0x00010000) != 0)) { + hashes_ = new com.google.protobuf.LazyStringArrayList(hashes_); + bitField0_ |= 0x00010000; + } + } /** - *
-       * TODO: check conversion with uint16
-       * 
- * - * uint32 mode = 5; - * @return The mode. + * repeated string hashes = 17; + * @return A list containing the hashes. */ - @java.lang.Override - public int getMode() { - return mode_; + public com.google.protobuf.ProtocolStringList + getHashesList() { + return hashes_.getUnmodifiableView(); } /** - *
-       * TODO: check conversion with uint16
-       * 
- * - * uint32 mode = 5; - * @param value The mode to set. - * @return This builder for chaining. + * repeated string hashes = 17; + * @return The count of hashes. */ - public Builder setMode(int value) { - - mode_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; + public int getHashesCount() { + return hashes_.size(); } /** - *
-       * TODO: check conversion with uint16
-       * 
- * - * uint32 mode = 5; - * @return This builder for chaining. + * repeated string hashes = 17; + * @param index The index of the element to return. + * @return The hashes at the given index. */ - public Builder clearMode() { - bitField0_ = (bitField0_ & ~0x00000010); - mode_ = 0; - onChanged(); - return this; + public java.lang.String getHashes(int index) { + return hashes_.get(index); } - - private long ctime_ ; /** - * uint64 ctime = 6; - * @return The ctime. + * repeated string hashes = 17; + * @param index The index of the value to return. + * @return The bytes of the hashes at the given index. */ - @java.lang.Override - public long getCtime() { - return ctime_; + public com.google.protobuf.ByteString + getHashesBytes(int index) { + return hashes_.getByteString(index); } /** - * uint64 ctime = 6; - * @param value The ctime to set. + * repeated string hashes = 17; + * @param index The index to set the value at. + * @param value The hashes to set. * @return This builder for chaining. */ - public Builder setCtime(long value) { - - ctime_ = value; - bitField0_ |= 0x00000020; + public Builder setHashes( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureHashesIsMutable(); + hashes_.set(index, value); onChanged(); return this; } /** - * uint64 ctime = 6; + * repeated string hashes = 17; + * @param value The hashes to add. * @return This builder for chaining. */ - public Builder clearCtime() { - bitField0_ = (bitField0_ & ~0x00000020); - ctime_ = 0L; + public Builder addHashes( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureHashesIsMutable(); + hashes_.add(value); onChanged(); return this; } - - private long mtime_ ; /** - * uint64 mtime = 7; - * @return The mtime. + * repeated string hashes = 17; + * @param values The hashes to add. + * @return This builder for chaining. */ - @java.lang.Override - public long getMtime() { - return mtime_; + public Builder addAllHashes( + java.lang.Iterable values) { + ensureHashesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, hashes_); + onChanged(); + return this; } /** - * uint64 mtime = 7; - * @param value The mtime to set. + * repeated string hashes = 17; + * @return This builder for chaining. + */ + public Builder clearHashes() { + hashes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00010000); + onChanged(); + return this; + } + /** + * repeated string hashes = 17; + * @param value The bytes of the hashes to add. * @return This builder for chaining. */ - public Builder setMtime(long value) { - - mtime_ = value; - bitField0_ |= 0x00000040; + public Builder addHashesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureHashesIsMutable(); + hashes_.add(value); onChanged(); return this; } + + private int hashState_ = 0; /** - * uint64 mtime = 7; + * .datadog.cws.dumpsv1.HashState hash_state = 18; + * @return The enum numeric value on the wire for hashState. + */ + @java.lang.Override public int getHashStateValue() { + return hashState_; + } + /** + * .datadog.cws.dumpsv1.HashState hash_state = 18; + * @param value The enum numeric value on the wire for hashState to set. * @return This builder for chaining. */ - public Builder clearMtime() { - bitField0_ = (bitField0_ & ~0x00000040); - mtime_ = 0L; + public Builder setHashStateValue(int value) { + hashState_ = value; + bitField0_ |= 0x00020000; onChanged(); return this; } - - private int mountId_ ; /** - * uint32 mount_id = 8; - * @return The mountId. + * .datadog.cws.dumpsv1.HashState hash_state = 18; + * @return The hashState. */ @java.lang.Override - public int getMountId() { - return mountId_; + public com.dd.cws.adv1.pb.SecDumpProto.HashState getHashState() { + com.dd.cws.adv1.pb.SecDumpProto.HashState result = com.dd.cws.adv1.pb.SecDumpProto.HashState.forNumber(hashState_); + return result == null ? com.dd.cws.adv1.pb.SecDumpProto.HashState.UNRECOGNIZED : result; } /** - * uint32 mount_id = 8; - * @param value The mountId to set. + * .datadog.cws.dumpsv1.HashState hash_state = 18; + * @param value The hashState to set. * @return This builder for chaining. */ - public Builder setMountId(int value) { - - mountId_ = value; - bitField0_ |= 0x00000080; + public Builder setHashState(com.dd.cws.adv1.pb.SecDumpProto.HashState value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00020000; + hashState_ = value.getNumber(); onChanged(); return this; } /** - * uint32 mount_id = 8; + * .datadog.cws.dumpsv1.HashState hash_state = 18; * @return This builder for chaining. */ - public Builder clearMountId() { - bitField0_ = (bitField0_ & ~0x00000080); - mountId_ = 0; + public Builder clearHashState() { + bitField0_ = (bitField0_ & ~0x00020000); + hashState_ = 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.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_ = ""; + } - 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; - } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Credentials(); + } - 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; - } + @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; + } - 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; - } + @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); + } - 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; + 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 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; + } + /** + * 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; } + } - 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; - } + 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 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 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; } - /** - * 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; + } + + 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 filesystem = 13; - * @return This builder for chaining. - */ - public Builder clearFilesystem() { - filesystem_ = getDefaultInstance().getFilesystem(); - bitField0_ = (bitField0_ & ~0x00001000); - onChanged(); - return this; + } + /** + * 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; } - /** - * 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; + } + + 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_; + } - 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; - } + 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 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 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; } - /** - * string package_name = 14; - * @return This builder for chaining. - */ - public Builder clearPackageName() { - packageName_ = getDefaultInstance().getPackageName(); - bitField0_ = (bitField0_ & ~0x00002000); - onChanged(); - return this; + } + + 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 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; + } + /** + * 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; } + } - 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; - } + 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_); } - /** - * 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; - } + if (gid_ != 0) { + output.writeUInt32(2, gid_); } - /** - * 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; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(user_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, user_); } - /** - * string package_version = 15; - * @return This builder for chaining. - */ - public Builder clearPackageVersion() { - packageVersion_ = getDefaultInstance().getPackageVersion(); - bitField0_ = (bitField0_ & ~0x00004000); - onChanged(); - return this; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(group_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, group_); } - /** - * 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; + if (effectiveUid_ != 0) { + output.writeUInt32(5, effectiveUid_); } - - 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; - } + if (effectiveGid_ != 0) { + output.writeUInt32(6, effectiveGid_); } - /** - * 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; - } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(effectiveUser_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, effectiveUser_); } - /** - * 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; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(effectiveGroup_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, effectiveGroup_); } - /** - * string package_srcversion = 16; - * @return This builder for chaining. - */ - public Builder clearPackageSrcversion() { - packageSrcversion_ = getDefaultInstance().getPackageSrcversion(); - bitField0_ = (bitField0_ & ~0x00008000); - onChanged(); - return this; + if (fsUid_ != 0) { + output.writeUInt32(9, fsUid_); } - /** - * 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; + if (fsGid_ != 0) { + output.writeUInt32(10, fsGid_); } - - private com.google.protobuf.LazyStringList hashes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureHashesIsMutable() { - if (!((bitField0_ & 0x00010000) != 0)) { - hashes_ = new com.google.protobuf.LazyStringArrayList(hashes_); - bitField0_ |= 0x00010000; - } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fsUser_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, fsUser_); } - /** - * repeated string hashes = 17; - * @return A list containing the hashes. - */ - public com.google.protobuf.ProtocolStringList - getHashesList() { - return hashes_.getUnmodifiableView(); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fsGroup_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, fsGroup_); } - /** - * repeated string hashes = 17; - * @return The count of hashes. - */ - public int getHashesCount() { - return hashes_.size(); + if (capEffective_ != 0L) { + output.writeUInt64(13, capEffective_); } - /** - * repeated string hashes = 17; - * @param index The index of the element to return. - * @return The hashes at the given index. - */ - public java.lang.String getHashes(int index) { - return hashes_.get(index); + if (capPermitted_ != 0L) { + output.writeUInt64(14, capPermitted_); } - /** - * repeated string hashes = 17; - * @param index The index of the value to return. - * @return The bytes of the hashes at the given index. - */ - public com.google.protobuf.ByteString - getHashesBytes(int index) { - return hashes_.getByteString(index); + 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_); } - /** - * repeated string hashes = 17; - * @param index The index to set the value at. - * @param value The hashes to set. - * @return This builder for chaining. - */ - public Builder setHashes( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureHashesIsMutable(); - hashes_.set(index, value); - onChanged(); - return this; + if (gid_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, gid_); } - /** - * repeated string hashes = 17; - * @param value The hashes to add. - * @return This builder for chaining. - */ - public Builder addHashes( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureHashesIsMutable(); - hashes_.add(value); - onChanged(); - return this; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(user_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, user_); } - /** - * repeated string hashes = 17; - * @param values The hashes to add. - * @return This builder for chaining. - */ - public Builder addAllHashes( - java.lang.Iterable values) { - ensureHashesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, hashes_); - onChanged(); - return this; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(group_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, group_); } - /** - * repeated string hashes = 17; - * @return This builder for chaining. - */ - public Builder clearHashes() { - hashes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00010000); - onChanged(); - return this; + if (effectiveUid_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(5, effectiveUid_); } - /** - * repeated string hashes = 17; - * @param value The bytes of the hashes to add. - * @return This builder for chaining. - */ - public Builder addHashesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - ensureHashesIsMutable(); - hashes_.add(value); - onChanged(); - return this; + if (effectiveGid_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(6, effectiveGid_); } - - private int hashState_ = 0; - /** - * .datadog.cws.dumpsv1.HashState hash_state = 18; - * @return The enum numeric value on the wire for hashState. - */ - @java.lang.Override public int getHashStateValue() { - return hashState_; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(effectiveUser_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, effectiveUser_); } - /** - * .datadog.cws.dumpsv1.HashState hash_state = 18; - * @param value The enum numeric value on the wire for hashState to set. - * @return This builder for chaining. - */ - public Builder setHashStateValue(int value) { - hashState_ = value; - bitField0_ |= 0x00020000; - onChanged(); - return this; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(effectiveGroup_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, effectiveGroup_); } - /** - * .datadog.cws.dumpsv1.HashState hash_state = 18; - * @return The hashState. - */ - @java.lang.Override - public com.dd.cws.adv1.pb.SecDumpProto.HashState getHashState() { - com.dd.cws.adv1.pb.SecDumpProto.HashState result = com.dd.cws.adv1.pb.SecDumpProto.HashState.forNumber(hashState_); - return result == null ? com.dd.cws.adv1.pb.SecDumpProto.HashState.UNRECOGNIZED : result; + if (fsUid_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(9, fsUid_); } - /** - * .datadog.cws.dumpsv1.HashState hash_state = 18; - * @param value The hashState to set. - * @return This builder for chaining. - */ - public Builder setHashState(com.dd.cws.adv1.pb.SecDumpProto.HashState value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00020000; - hashState_ = value.getNumber(); - onChanged(); - return this; + 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_); } - /** - * .datadog.cws.dumpsv1.HashState hash_state = 18; - * @return This builder for chaining. - */ - public Builder clearHashState() { - bitField0_ = (bitField0_ & ~0x00020000); - hashState_ = 0; - onChanged(); - return this; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fsGroup_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, fsGroup_); } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + if (capEffective_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(13, capEffective_); } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + if (capPermitted_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(14, capPermitted_); } - - - // @@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; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; } - 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(); + @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; - public static com.google.protobuf.Parser parser() { - return PARSER; + 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 com.google.protobuf.Parser getParserForType() { - return PARSER; + 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; } - @java.lang.Override - public com.dd.cws.adv1.pb.SecDumpProto.FileInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; + 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); } - } - - 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(); + @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; + } /** - * uint32 effective_gid = 6; - * @return The effectiveGid. + * Protobuf type {@code datadog.cws.dumpsv1.Credentials} */ - int getEffectiveGid(); + 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; + } - /** - * 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(); + @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); + } - /** - * 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(); + // Construct using com.dd.cws.adv1.pb.SecDumpProto.Credentials.newBuilder() + private Builder() { - /** - * uint32 fs_uid = 9; - * @return The fsUid. - */ - int getFsUid(); + } - /** - * uint32 fs_gid = 10; - * @return The fsGid. - */ - int getFsGid(); + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); - /** - * 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(); + } + @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; + } - /** - * 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(); + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_Credentials_descriptor; + } - /** - * uint64 cap_effective = 13; - * @return The capEffective. - */ - long getCapEffective(); + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.Credentials getDefaultInstanceForType() { + return com.dd.cws.adv1.pb.SecDumpProto.Credentials.getDefaultInstance(); + } - /** - * 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 + 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 - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Credentials(); - } + @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; + } - @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; - } + 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; + } + } - @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 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; + } - 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_; - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - 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_; - } + @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_; - 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; + 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; } - } - /** - * 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; + /** + * uint32 uid = 1; + * @return This builder for chaining. + */ + public Builder clearUid() { + bitField0_ = (bitField0_ & ~0x00000001); + uid_ = 0; + onChanged(); + return this; } - } - 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; + private int gid_ ; + /** + * uint32 gid = 2; + * @return The gid. + */ + @java.lang.Override + public int getGid() { + return gid_; } - } - /** - * 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; + /** + * 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; } - } - - 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_; - } + 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; + } - 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; + 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 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; + /** + * 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; } - } - - 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 group = 4; + * @return This builder for chaining. + */ + public Builder clearGroup() { + group_ = getDefaultInstance().getGroup(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; } - } - /** - * 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; + /** + * 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; } - } - - 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; + private int effectiveUid_ ; + /** + * uint32 effective_uid = 5; + * @return The effectiveUid. + */ + @java.lang.Override + public int getEffectiveUid() { + return effectiveUid_; } - } - /** - * 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; + /** + * 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; } - } - 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; + private int effectiveGid_ ; + /** + * uint32 effective_gid = 6; + * @return The effectiveGid. + */ + @java.lang.Override + public int getEffectiveGid() { + return effectiveGid_; } - } - /** - * 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; + /** + * 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; } - } - - 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_); + /** + * uint32 effective_gid = 6; + * @return This builder for chaining. + */ + public Builder clearEffectiveGid() { + bitField0_ = (bitField0_ & ~0x00000020); + effectiveGid_ = 0; + onChanged(); + return this; } - if (gid_ != 0) { - output.writeUInt32(2, gid_); + + 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; + } } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(user_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, user_); + /** + * 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; + } } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(group_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, group_); + /** + * 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; } - if (effectiveUid_ != 0) { - output.writeUInt32(5, effectiveUid_); + /** + * string effective_user = 7; + * @return This builder for chaining. + */ + public Builder clearEffectiveUser() { + effectiveUser_ = getDefaultInstance().getEffectiveUser(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; } - if (effectiveGid_ != 0) { - output.writeUInt32(6, effectiveGid_); + /** + * 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; } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(effectiveUser_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, effectiveUser_); + + 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; + } } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(effectiveGroup_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, effectiveGroup_); + /** + * 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; + } } - if (fsUid_ != 0) { - output.writeUInt32(9, fsUid_); + /** + * 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; } - if (fsGid_ != 0) { - output.writeUInt32(10, fsGid_); + /** + * string effective_group = 8; + * @return This builder for chaining. + */ + public Builder clearEffectiveGroup() { + effectiveGroup_ = getDefaultInstance().getEffectiveGroup(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fsUser_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 11, fsUser_); + /** + * 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; } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fsGroup_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 12, fsGroup_); + + private int fsUid_ ; + /** + * uint32 fs_uid = 9; + * @return The fsUid. + */ + @java.lang.Override + public int getFsUid() { + return fsUid_; } - if (capEffective_ != 0L) { - output.writeUInt64(13, capEffective_); + /** + * 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; } - if (capPermitted_ != 0L) { - output.writeUInt64(14, capPermitted_); + /** + * uint32 fs_uid = 9; + * @return This builder for chaining. + */ + public Builder clearFsUid() { + bitField0_ = (bitField0_ & ~0x00000100); + fsUid_ = 0; + onChanged(); + return this; } - getUnknownFields().writeTo(output); - } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + 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; + } - size = 0; - if (uid_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, uid_); + 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; + } } - if (gid_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, gid_); + /** + * 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; } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(user_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, user_); + /** + * string fs_user = 11; + * @return This builder for chaining. + */ + public Builder clearFsUser() { + fsUser_ = getDefaultInstance().getFsUser(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + return this; } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(group_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, group_); + /** + * 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; } - if (effectiveUid_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(5, effectiveUid_); + + 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; + } } - if (effectiveGid_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(6, effectiveGid_); + /** + * 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; + } } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(effectiveUser_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, effectiveUser_); + /** + * 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; } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(effectiveGroup_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, effectiveGroup_); + /** + * string fs_group = 12; + * @return This builder for chaining. + */ + public Builder clearFsGroup() { + fsGroup_ = getDefaultInstance().getFsGroup(); + bitField0_ = (bitField0_ & ~0x00000800); + onChanged(); + return this; } - if (fsUid_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(9, fsUid_); + /** + * 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; } - if (fsGid_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(10, fsGid_); + + private long capEffective_ ; + /** + * uint64 cap_effective = 13; + * @return The capEffective. + */ + @java.lang.Override + public long getCapEffective() { + return capEffective_; } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fsUser_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, fsUser_); + /** + * 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; } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fsGroup_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, fsGroup_); + /** + * uint64 cap_effective = 13; + * @return This builder for chaining. + */ + public Builder clearCapEffective() { + bitField0_ = (bitField0_ & ~0x00001000); + capEffective_ = 0L; + onChanged(); + return this; } - if (capEffective_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(13, capEffective_); + + private long capPermitted_ ; + /** + * uint64 cap_permitted = 14; + * @return The capPermitted. + */ + @java.lang.Override + public long getCapPermitted() { + return capPermitted_; } - if (capPermitted_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(14, 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; } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; + /** + * uint64 cap_permitted = 14; + * @return This builder for chaining. + */ + public Builder clearCapPermitted() { + bitField0_ = (bitField0_ & ~0x00002000); + capPermitted_ = 0L; + onChanged(); + return this; } - if (!(obj instanceof com.dd.cws.adv1.pb.SecDumpProto.Credentials)) { - return super.equals(obj); + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); } - 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; + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - 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); + + // @@protoc_insertion_point(builder_scope:datadog.cws.dumpsv1.Credentials) } - 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); + + // @@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 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + + public static com.dd.cws.adv1.pb.SecDumpProto.Credentials getDefaultInstance() { + return DEFAULT_INSTANCE; } - 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); + + 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; } - public static com.dd.cws.adv1.pb.SecDumpProto.Credentials parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } - 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); + + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.Credentials getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - 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 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); } - 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); + private SocketNode() { + family_ = ""; + bind_ = java.util.Collections.emptyList(); } - 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); + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SocketNode(); } - 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); + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; } - 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 final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_SocketNode_descriptor; } - 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 + 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 Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); + 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 Builder newBuilder(com.dd.cws.adv1.pb.SecDumpProto.Credentials prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + + 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 Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + public java.util.List + getBindOrBuilderList() { + return bind_; } - + /** + * repeated .datadog.cws.dumpsv1.BindNode bind = 2; + */ @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; + public int getBindCount() { + return bind_.size(); } /** - * Protobuf type {@code datadog.cws.dumpsv1.Credentials} + * repeated .datadog.cws.dumpsv1.BindNode bind = 2; */ - 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 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 final boolean isInitialized() { - return true; + @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 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; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; } - private int bitField0_; + 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); + } - 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; + @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; } - 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; + 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); } - /** - * uint32 gid = 2; - * @return This builder for chaining. - */ - public Builder clearGid() { - bitField0_ = (bitField0_ & ~0x00000002); - gid_ = 0; - onChanged(); - return this; + + // Construct using com.dd.cws.adv1.pb.SecDumpProto.SocketNode.newBuilder() + private Builder() { + } - 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; - } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } - /** - * 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; + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + family_ = ""; + if (bindBuilder_ == null) { + bind_ = java.util.Collections.emptyList(); } else { - return (com.google.protobuf.ByteString) ref; + bind_ = null; + bindBuilder_.clear(); } - } - /** - * 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(); + bitField0_ = (bitField0_ & ~0x00000002); 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; + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_SocketNode_descriptor; } - /** - * string group = 4; - * @return This builder for chaining. - */ - public Builder clearGroup() { - group_ = getDefaultInstance().getGroup(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; + + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.SocketNode getDefaultInstanceForType() { + return com.dd.cws.adv1.pb.SecDumpProto.SocketNode.getDefaultInstance(); } - /** - * 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; + + @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; } - private int effectiveUid_ ; - /** - * uint32 effective_uid = 5; - * @return The effectiveUid. - */ @java.lang.Override - public int getEffectiveUid() { - return effectiveUid_; + 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; } - /** - * 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; + + 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(); + } } - /** - * uint32 effective_uid = 5; - * @return This builder for chaining. - */ - public Builder clearEffectiveUid() { - bitField0_ = (bitField0_ & ~0x00000010); - effectiveUid_ = 0; - onChanged(); - return this; + + private void buildPartial0(com.dd.cws.adv1.pb.SecDumpProto.SocketNode result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.family_ = family_; + } } - private int effectiveGid_ ; - /** - * uint32 effective_gid = 6; - * @return The effectiveGid. - */ @java.lang.Override - public int getEffectiveGid() { - return effectiveGid_; + public Builder clone() { + return super.clone(); } - /** - * 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; + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); } - /** - * uint32 effective_gid = 6; - * @return This builder for chaining. - */ - public Builder clearEffectiveGid() { - bitField0_ = (bitField0_ & ~0x00000020); - effectiveGid_ = 0; - onChanged(); - return this; + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); } - - 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; + @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 { - return (java.lang.String) ref; + super.mergeFrom(other); + return this; } } - /** - * 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; + + 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 { - return (com.google.protobuf.ByteString) ref; + 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_); + } + } } - } - /** - * 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; + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } - /** - * string effective_user = 7; - * @return This builder for chaining. - */ - public Builder clearEffectiveUser() { - effectiveUser_ = getDefaultInstance().getEffectiveUser(); - bitField0_ = (bitField0_ & ~0x00000040); - onChanged(); - return this; + + @java.lang.Override + public final boolean isInitialized() { + return true; } - /** - * 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(); + + @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 effectiveGroup_ = ""; + private java.lang.Object family_ = ""; /** - * string effective_group = 8; - * @return The effectiveGroup. + * string family = 1; + * @return The family. */ - public java.lang.String getEffectiveGroup() { - java.lang.Object ref = effectiveGroup_; + 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(); - effectiveGroup_ = s; + family_ = s; return s; } else { return (java.lang.String) ref; } } /** - * string effective_group = 8; - * @return The bytes for effectiveGroup. + * string family = 1; + * @return The bytes for family. */ public com.google.protobuf.ByteString - getEffectiveGroupBytes() { - java.lang.Object ref = effectiveGroup_; + getFamilyBytes() { + java.lang.Object ref = family_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - effectiveGroup_ = b; + family_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** - * string effective_group = 8; - * @param value The effectiveGroup to set. + * string family = 1; + * @param value The family to set. * @return This builder for chaining. */ - public Builder setEffectiveGroup( + public Builder setFamily( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - effectiveGroup_ = value; - bitField0_ |= 0x00000080; + family_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** - * string effective_group = 8; + * string family = 1; * @return This builder for chaining. */ - public Builder clearEffectiveGroup() { - effectiveGroup_ = getDefaultInstance().getEffectiveGroup(); - bitField0_ = (bitField0_ & ~0x00000080); + public Builder clearFamily() { + family_ = getDefaultInstance().getFamily(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** - * string effective_group = 8; - * @param value The bytes for effectiveGroup to set. + * string family = 1; + * @param value The bytes for family to set. * @return This builder for chaining. */ - public Builder setEffectiveGroupBytes( + public Builder setFamilyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - effectiveGroup_ = value; - bitField0_ |= 0x00000080; + family_ = value; + bitField0_ |= 0x00000001; 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 java.util.List bind_ = + java.util.Collections.emptyList(); + private void ensureBindIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + bind_ = new java.util.ArrayList(bind_); + bitField0_ |= 0x00000002; + } } - private int fsGid_ ; - /** - * uint32 fs_gid = 10; - * @return The fsGid. - */ - @java.lang.Override - public int getFsGid() { - return fsGid_; - } + 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_; + /** - * uint32 fs_gid = 10; - * @param value The fsGid to set. - * @return This builder for chaining. + * repeated .datadog.cws.dumpsv1.BindNode bind = 2; */ - public Builder setFsGid(int value) { - - fsGid_ = value; - bitField0_ |= 0x00000200; - onChanged(); - return this; + public java.util.List getBindList() { + if (bindBuilder_ == null) { + return java.util.Collections.unmodifiableList(bind_); + } else { + return bindBuilder_.getMessageList(); + } } /** - * uint32 fs_gid = 10; - * @return This builder for chaining. + * repeated .datadog.cws.dumpsv1.BindNode bind = 2; */ - public Builder clearFsGid() { - bitField0_ = (bitField0_ & ~0x00000200); - fsGid_ = 0; - onChanged(); - return this; + public int getBindCount() { + if (bindBuilder_ == null) { + return bind_.size(); + } else { + return bindBuilder_.getCount(); + } } - - private java.lang.Object fsUser_ = ""; /** - * string fs_user = 11; - * @return The fsUser. + * repeated .datadog.cws.dumpsv1.BindNode bind = 2; */ - 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; + public com.dd.cws.adv1.pb.SecDumpProto.BindNode getBind(int index) { + if (bindBuilder_ == null) { + return bind_.get(index); } else { - return (java.lang.String) ref; + return bindBuilder_.getMessage(index); } } /** - * string fs_user = 11; - * @return The bytes for fsUser. + * repeated .datadog.cws.dumpsv1.BindNode bind = 2; */ - 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; + 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 { - return (com.google.protobuf.ByteString) ref; + bindBuilder_.setMessage(index, value); } + return this; } /** - * string fs_user = 11; - * @param value The fsUser to set. - * @return This builder for chaining. + * repeated .datadog.cws.dumpsv1.BindNode bind = 2; */ - public Builder setFsUser( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - fsUser_ = value; - bitField0_ |= 0x00000400; - onChanged(); + 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; } /** - * string fs_user = 11; - * @return This builder for chaining. + * repeated .datadog.cws.dumpsv1.BindNode bind = 2; */ - public Builder clearFsUser() { - fsUser_ = getDefaultInstance().getFsUser(); - bitField0_ = (bitField0_ & ~0x00000400); - onChanged(); + 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; } /** - * string fs_user = 11; - * @param value The bytes for fsUser to set. - * @return This builder for chaining. + * repeated .datadog.cws.dumpsv1.BindNode bind = 2; */ - public Builder setFsUserBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - fsUser_ = value; - bitField0_ |= 0x00000400; - onChanged(); + 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; } - - private java.lang.Object fsGroup_ = ""; /** - * string fs_group = 12; - * @return The fsGroup. + * repeated .datadog.cws.dumpsv1.BindNode bind = 2; */ - 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; + public Builder addBind( + com.dd.cws.adv1.pb.SecDumpProto.BindNode.Builder builderForValue) { + if (bindBuilder_ == null) { + ensureBindIsMutable(); + bind_.add(builderForValue.build()); + onChanged(); } else { - return (java.lang.String) ref; + bindBuilder_.addMessage(builderForValue.build()); } + return this; } /** - * string fs_group = 12; - * @return The bytes for fsGroup. + * repeated .datadog.cws.dumpsv1.BindNode bind = 2; */ - 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; + 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 { - return (com.google.protobuf.ByteString) ref; + bindBuilder_.addMessage(index, builderForValue.build()); } + return this; } /** - * string fs_group = 12; - * @param value The fsGroup to set. - * @return This builder for chaining. + * repeated .datadog.cws.dumpsv1.BindNode bind = 2; */ - public Builder setFsGroup( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - fsGroup_ = value; - bitField0_ |= 0x00000800; - onChanged(); + 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; } /** - * string fs_group = 12; - * @return This builder for chaining. + * repeated .datadog.cws.dumpsv1.BindNode bind = 2; */ - public Builder clearFsGroup() { - fsGroup_ = getDefaultInstance().getFsGroup(); - bitField0_ = (bitField0_ & ~0x00000800); - onChanged(); + public Builder clearBind() { + if (bindBuilder_ == null) { + bind_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + bindBuilder_.clear(); + } return this; } /** - * string fs_group = 12; - * @param value The bytes for fsGroup to set. - * @return This builder for chaining. + * repeated .datadog.cws.dumpsv1.BindNode bind = 2; */ - public Builder setFsGroupBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - fsGroup_ = value; - bitField0_ |= 0x00000800; - onChanged(); + public Builder removeBind(int index) { + if (bindBuilder_ == null) { + ensureBindIsMutable(); + bind_.remove(index); + onChanged(); + } else { + bindBuilder_.remove(index); + } return this; } - - private long capEffective_ ; /** - * uint64 cap_effective = 13; - * @return The capEffective. + * repeated .datadog.cws.dumpsv1.BindNode bind = 2; */ - @java.lang.Override - public long getCapEffective() { - return capEffective_; + public com.dd.cws.adv1.pb.SecDumpProto.BindNode.Builder getBindBuilder( + int index) { + return getBindFieldBuilder().getBuilder(index); } /** - * uint64 cap_effective = 13; - * @param value The capEffective to set. - * @return This builder for chaining. + * repeated .datadog.cws.dumpsv1.BindNode bind = 2; */ - public Builder setCapEffective(long value) { - - capEffective_ = value; - bitField0_ |= 0x00001000; - onChanged(); - return this; + public com.dd.cws.adv1.pb.SecDumpProto.BindNodeOrBuilder getBindOrBuilder( + int index) { + if (bindBuilder_ == null) { + return bind_.get(index); } else { + return bindBuilder_.getMessageOrBuilder(index); + } } /** - * uint64 cap_effective = 13; - * @return This builder for chaining. + * repeated .datadog.cws.dumpsv1.BindNode bind = 2; */ - public Builder clearCapEffective() { - bitField0_ = (bitField0_ & ~0x00001000); - capEffective_ = 0L; - onChanged(); - return this; + public java.util.List + getBindOrBuilderList() { + if (bindBuilder_ != null) { + return bindBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(bind_); + } } - - private long capPermitted_ ; /** - * uint64 cap_permitted = 14; - * @return The capPermitted. + * repeated .datadog.cws.dumpsv1.BindNode bind = 2; */ - @java.lang.Override - public long getCapPermitted() { - return capPermitted_; + public com.dd.cws.adv1.pb.SecDumpProto.BindNode.Builder addBindBuilder() { + return getBindFieldBuilder().addBuilder( + com.dd.cws.adv1.pb.SecDumpProto.BindNode.getDefaultInstance()); } /** - * uint64 cap_permitted = 14; - * @param value The capPermitted to set. - * @return This builder for chaining. + * repeated .datadog.cws.dumpsv1.BindNode bind = 2; */ - public Builder setCapPermitted(long value) { - - capPermitted_ = value; - bitField0_ |= 0x00002000; - onChanged(); - return this; + public com.dd.cws.adv1.pb.SecDumpProto.BindNode.Builder addBindBuilder( + int index) { + return getBindFieldBuilder().addBuilder( + index, com.dd.cws.adv1.pb.SecDumpProto.BindNode.getDefaultInstance()); } /** - * uint64 cap_permitted = 14; - * @return This builder for chaining. + * repeated .datadog.cws.dumpsv1.BindNode bind = 2; */ - public Builder clearCapPermitted() { - bitField0_ = (bitField0_ & ~0x00002000); - capPermitted_ = 0L; - onChanged(); - return this; + 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( @@ -20207,23 +22937,23 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:datadog.cws.dumpsv1.Credentials) + // @@protoc_insertion_point(builder_scope:datadog.cws.dumpsv1.SocketNode) } - // @@protoc_insertion_point(class_scope:datadog.cws.dumpsv1.Credentials) - private static final com.dd.cws.adv1.pb.SecDumpProto.Credentials DEFAULT_INSTANCE; + // @@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.Credentials(); + DEFAULT_INSTANCE = new com.dd.cws.adv1.pb.SecDumpProto.SocketNode(); } - public static com.dd.cws.adv1.pb.SecDumpProto.Credentials getDefaultInstance() { + 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() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public Credentials parsePartialFrom( + public SocketNode parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -20242,84 +22972,116 @@ public Credentials 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.Credentials getDefaultInstanceForType() { + public com.dd.cws.adv1.pb.SecDumpProto.SocketNode getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface SocketNodeOrBuilder extends - // @@protoc_insertion_point(interface_extends:datadog.cws.dumpsv1.SocketNode) + public interface BindNodeOrBuilder extends + // @@protoc_insertion_point(interface_extends:datadog.cws.dumpsv1.BindNode) com.google.protobuf.MessageOrBuilder { /** - * string family = 1; - * @return The family. + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 3; */ - java.lang.String getFamily(); + java.util.List + getMatchedRulesList(); /** - * string family = 1; - * @return The bytes for family. + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 3; */ - com.google.protobuf.ByteString - getFamilyBytes(); + 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); /** - * repeated .datadog.cws.dumpsv1.BindNode bind = 2; + * repeated string image_tags = 4; + * @return A list containing the imageTags. */ - java.util.List - getBindList(); + java.util.List + getImageTagsList(); /** - * repeated .datadog.cws.dumpsv1.BindNode bind = 2; + * repeated string image_tags = 4; + * @return The count of imageTags. */ - com.dd.cws.adv1.pb.SecDumpProto.BindNode getBind(int index); + int getImageTagsCount(); /** - * repeated .datadog.cws.dumpsv1.BindNode bind = 2; + * repeated string image_tags = 4; + * @param index The index of the element to return. + * @return The imageTags at the given index. */ - int getBindCount(); + java.lang.String getImageTags(int index); /** - * repeated .datadog.cws.dumpsv1.BindNode bind = 2; + * repeated string image_tags = 4; + * @param index The index of the value to return. + * @return The bytes of the imageTags at the given index. */ - java.util.List - getBindOrBuilderList(); + com.google.protobuf.ByteString + getImageTagsBytes(int index); + /** - * repeated .datadog.cws.dumpsv1.BindNode bind = 2; + * uint32 port = 1; + * @return The port. */ - com.dd.cws.adv1.pb.SecDumpProto.BindNodeOrBuilder getBindOrBuilder( - int index); + 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.SocketNode} + * Protobuf type {@code datadog.cws.dumpsv1.BindNode} */ - public static final class SocketNode extends + public static final class BindNode extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:datadog.cws.dumpsv1.SocketNode) - SocketNodeOrBuilder { + // @@protoc_insertion_point(message_implements:datadog.cws.dumpsv1.BindNode) + BindNodeOrBuilder { private static final long serialVersionUID = 0L; - // Use SocketNode.newBuilder() to construct. - private SocketNode(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use BindNode.newBuilder() to construct. + private BindNode(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SocketNode() { - family_ = ""; - bind_ = java.util.Collections.emptyList(); + private BindNode() { + matchedRules_ = java.util.Collections.emptyList(); + imageTags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + ip_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new SocketNode(); + return new BindNode(); } @java.lang.Override @@ -20329,95 +23091,142 @@ 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_SocketNode_descriptor; + 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_SocketNode_fieldAccessorTable + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_BindNode_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.dd.cws.adv1.pb.SecDumpProto.SocketNode.class, com.dd.cws.adv1.pb.SecDumpProto.SocketNode.Builder.class); + com.dd.cws.adv1.pb.SecDumpProto.BindNode.class, com.dd.cws.adv1.pb.SecDumpProto.BindNode.Builder.class); } - public static final int FAMILY_FIELD_NUMBER = 1; + public static final int MATCHED_RULES_FIELD_NUMBER = 3; @SuppressWarnings("serial") - private volatile java.lang.Object family_ = ""; + private java.util.List matchedRules_; /** - * string family = 1; - * @return The family. + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 3; */ @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; - } + public java.util.List getMatchedRulesList() { + return matchedRules_; } /** - * string family = 1; - * @return The bytes for family. + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 3; */ @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 java.util.List + getMatchedRulesOrBuilderList() { + return matchedRules_; } - - public static final int BIND_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private java.util.List bind_; /** - * repeated .datadog.cws.dumpsv1.BindNode bind = 2; + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 3; */ @java.lang.Override - public java.util.List getBindList() { - return bind_; + public int getMatchedRulesCount() { + return matchedRules_.size(); } /** - * repeated .datadog.cws.dumpsv1.BindNode bind = 2; + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 3; */ @java.lang.Override - public java.util.List - getBindOrBuilderList() { - return bind_; + public com.dd.cws.adv1.pb.SecDumpProto.MatchedRule getMatchedRules(int index) { + return matchedRules_.get(index); } /** - * repeated .datadog.cws.dumpsv1.BindNode bind = 2; + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 3; */ @java.lang.Override - public int getBindCount() { - return bind_.size(); + public com.dd.cws.adv1.pb.SecDumpProto.MatchedRuleOrBuilder getMatchedRulesOrBuilder( + int index) { + return matchedRules_.get(index); } + + public static final int IMAGE_TAGS_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringList imageTags_; /** - * repeated .datadog.cws.dumpsv1.BindNode bind = 2; + * repeated string image_tags = 4; + * @return A list containing the imageTags. + */ + public com.google.protobuf.ProtocolStringList + getImageTagsList() { + return imageTags_; + } + /** + * repeated string image_tags = 4; + * @return The count of imageTags. + */ + public int getImageTagsCount() { + return imageTags_.size(); + } + /** + * repeated string image_tags = 4; + * @param index The index of the element to return. + * @return The imageTags at the given index. + */ + public java.lang.String getImageTags(int index) { + return imageTags_.get(index); + } + /** + * repeated string image_tags = 4; + * @param index The index of the value to return. + * @return The bytes of the imageTags at the given index. + */ + public com.google.protobuf.ByteString + getImageTagsBytes(int index) { + return imageTags_.getByteString(index); + } + + public static final int PORT_FIELD_NUMBER = 1; + private int port_ = 0; + /** + * uint32 port = 1; + * @return The port. */ @java.lang.Override - public com.dd.cws.adv1.pb.SecDumpProto.BindNode getBind(int index) { - return bind_.get(index); + public int getPort() { + return port_; } + + public static final int IP_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object ip_ = ""; /** - * repeated .datadog.cws.dumpsv1.BindNode bind = 2; + * string ip = 2; + * @return The ip. */ @java.lang.Override - public com.dd.cws.adv1.pb.SecDumpProto.BindNodeOrBuilder getBindOrBuilder( - int index) { - return bind_.get(index); + 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; @@ -20434,11 +23243,17 @@ public final boolean isInitialized() { @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_); + if (port_ != 0) { + output.writeUInt32(1, port_); } - for (int i = 0; i < bind_.size(); i++) { - output.writeMessage(2, bind_.get(i)); + 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)); + } + for (int i = 0; i < imageTags_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, imageTags_.getRaw(i)); } getUnknownFields().writeTo(output); } @@ -20449,12 +23264,24 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(family_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, family_); + if (port_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, port_); } - for (int i = 0; i < bind_.size(); i++) { + 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(2, bind_.get(i)); + .computeMessageSize(3, matchedRules_.get(i)); + } + { + int dataSize = 0; + for (int i = 0; i < imageTags_.size(); i++) { + dataSize += computeStringSizeNoTag(imageTags_.getRaw(i)); + } + size += dataSize; + size += 1 * getImageTagsList().size(); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -20466,15 +23293,19 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.dd.cws.adv1.pb.SecDumpProto.SocketNode)) { + if (!(obj instanceof com.dd.cws.adv1.pb.SecDumpProto.BindNode)) { return super.equals(obj); } - com.dd.cws.adv1.pb.SecDumpProto.SocketNode other = (com.dd.cws.adv1.pb.SecDumpProto.SocketNode) obj; + com.dd.cws.adv1.pb.SecDumpProto.BindNode other = (com.dd.cws.adv1.pb.SecDumpProto.BindNode) obj; - if (!getFamily() - .equals(other.getFamily())) return false; - if (!getBindList() - .equals(other.getBindList())) return false; + if (!getMatchedRulesList() + .equals(other.getMatchedRulesList())) return false; + if (!getImageTagsList() + .equals(other.getImageTagsList())) return false; + if (getPort() + != other.getPort()) return false; + if (!getIp() + .equals(other.getIp())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -20486,80 +23317,86 @@ public int hashCode() { } 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(); + if (getMatchedRulesCount() > 0) { + hash = (37 * hash) + MATCHED_RULES_FIELD_NUMBER; + hash = (53 * hash) + getMatchedRulesList().hashCode(); } + if (getImageTagsCount() > 0) { + hash = (37 * hash) + IMAGE_TAGS_FIELD_NUMBER; + hash = (53 * hash) + getImageTagsList().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.SocketNode parseFrom( + 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.SocketNode parseFrom( + 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.SocketNode parseFrom( + 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.SocketNode parseFrom( + 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.SocketNode parseFrom(byte[] data) + 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.SocketNode parseFrom( + 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.SocketNode parseFrom(java.io.InputStream input) + 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.SocketNode parseFrom( + 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.SocketNode parseDelimitedFrom(java.io.InputStream input) + 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.SocketNode parseDelimitedFrom( + 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.SocketNode parseFrom( + 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.SocketNode parseFrom( + public static com.dd.cws.adv1.pb.SecDumpProto.BindNode parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -20572,7 +23409,7 @@ public static com.dd.cws.adv1.pb.SecDumpProto.SocketNode parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.dd.cws.adv1.pb.SecDumpProto.SocketNode prototype) { + public static Builder newBuilder(com.dd.cws.adv1.pb.SecDumpProto.BindNode prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -20588,26 +23425,26 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code datadog.cws.dumpsv1.SocketNode} + * 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.SocketNode) - com.dd.cws.adv1.pb.SecDumpProto.SocketNodeOrBuilder { + // @@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_SocketNode_descriptor; + 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_SocketNode_fieldAccessorTable + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_BindNode_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.dd.cws.adv1.pb.SecDumpProto.SocketNode.class, com.dd.cws.adv1.pb.SecDumpProto.SocketNode.Builder.class); + 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.SocketNode.newBuilder() + // Construct using com.dd.cws.adv1.pb.SecDumpProto.BindNode.newBuilder() private Builder() { } @@ -20621,31 +23458,34 @@ private Builder( public Builder clear() { super.clear(); bitField0_ = 0; - family_ = ""; - if (bindBuilder_ == null) { - bind_ = java.util.Collections.emptyList(); + if (matchedRulesBuilder_ == null) { + matchedRules_ = java.util.Collections.emptyList(); } else { - bind_ = null; - bindBuilder_.clear(); + matchedRules_ = null; + matchedRulesBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); + imageTags_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); + 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_SocketNode_descriptor; + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_BindNode_descriptor; } @java.lang.Override - public com.dd.cws.adv1.pb.SecDumpProto.SocketNode getDefaultInstanceForType() { - return com.dd.cws.adv1.pb.SecDumpProto.SocketNode.getDefaultInstance(); + 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.SocketNode build() { - com.dd.cws.adv1.pb.SecDumpProto.SocketNode result = buildPartial(); + public com.dd.cws.adv1.pb.SecDumpProto.BindNode build() { + com.dd.cws.adv1.pb.SecDumpProto.BindNode result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -20653,30 +23493,38 @@ public com.dd.cws.adv1.pb.SecDumpProto.SocketNode build() { } @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); + 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.SocketNode result) { - if (bindBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - bind_ = java.util.Collections.unmodifiableList(bind_); - bitField0_ = (bitField0_ & ~0x00000002); + 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.bind_ = bind_; + result.matchedRules_ = matchedRules_; } else { - result.bind_ = bindBuilder_.build(); + result.matchedRules_ = matchedRulesBuilder_.build(); + } + if (((bitField0_ & 0x00000002) != 0)) { + imageTags_ = imageTags_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); } + result.imageTags_ = imageTags_; } - private void buildPartial0(com.dd.cws.adv1.pb.SecDumpProto.SocketNode result) { + private void buildPartial0(com.dd.cws.adv1.pb.SecDumpProto.BindNode result) { int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.family_ = family_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.port_ = port_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.ip_ = ip_; } } @@ -20714,47 +23562,60 @@ public Builder addRepeatedField( } @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); + 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.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); + 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 { - ensureBindIsMutable(); - bind_.addAll(other.bind_); + ensureMatchedRulesIsMutable(); + matchedRules_.addAll(other.matchedRules_); } onChanged(); } } else { - if (!other.bind_.isEmpty()) { - if (bindBuilder_.isEmpty()) { - bindBuilder_.dispose(); - bindBuilder_ = null; - bind_ = other.bind_; - bitField0_ = (bitField0_ & ~0x00000002); - bindBuilder_ = + if (!other.matchedRules_.isEmpty()) { + if (matchedRulesBuilder_.isEmpty()) { + matchedRulesBuilder_.dispose(); + matchedRulesBuilder_ = null; + matchedRules_ = other.matchedRules_; + bitField0_ = (bitField0_ & ~0x00000001); + matchedRulesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getBindFieldBuilder() : null; + getMatchedRulesFieldBuilder() : null; } else { - bindBuilder_.addAllMessages(other.bind_); + matchedRulesBuilder_.addAllMessages(other.matchedRules_); } } } + if (!other.imageTags_.isEmpty()) { + if (imageTags_.isEmpty()) { + imageTags_ = other.imageTags_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureImageTagsIsMutable(); + imageTags_.addAll(other.imageTags_); + } + onChanged(); + } + if (other.getPort() != 0) { + setPort(other.getPort()); + } + if (!other.getIp().isEmpty()) { + ip_ = other.ip_; + bitField0_ |= 0x00000008; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -20781,24 +23642,35 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - family_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; + case 8: { + port_ = input.readUInt32(); + bitField0_ |= 0x00000004; break; - } // case 10 + } // case 8 case 18: { - com.dd.cws.adv1.pb.SecDumpProto.BindNode m = + ip_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 18 + case 26: { + com.dd.cws.adv1.pb.SecDumpProto.MatchedRule m = input.readMessage( - com.dd.cws.adv1.pb.SecDumpProto.BindNode.parser(), + com.dd.cws.adv1.pb.SecDumpProto.MatchedRule.parser(), extensionRegistry); - if (bindBuilder_ == null) { - ensureBindIsMutable(); - bind_.add(m); + if (matchedRulesBuilder_ == null) { + ensureMatchedRulesIsMutable(); + matchedRules_.add(m); } else { - bindBuilder_.addMessage(m); + matchedRulesBuilder_.addMessage(m); } break; - } // case 18 + } // case 26 + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + ensureImageTagsIsMutable(); + imageTags_.add(s); + break; + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -20816,316 +23688,452 @@ public Builder mergeFrom( } 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_ = + private java.util.List matchedRules_ = java.util.Collections.emptyList(); - private void ensureBindIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - bind_ = new java.util.ArrayList(bind_); - bitField0_ |= 0x00000002; + 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.BindNode, com.dd.cws.adv1.pb.SecDumpProto.BindNode.Builder, com.dd.cws.adv1.pb.SecDumpProto.BindNodeOrBuilder> bindBuilder_; + 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.BindNode bind = 2; + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 3; */ - public java.util.List getBindList() { - if (bindBuilder_ == null) { - return java.util.Collections.unmodifiableList(bind_); + public java.util.List getMatchedRulesList() { + if (matchedRulesBuilder_ == null) { + return java.util.Collections.unmodifiableList(matchedRules_); } else { - return bindBuilder_.getMessageList(); + return matchedRulesBuilder_.getMessageList(); } } /** - * repeated .datadog.cws.dumpsv1.BindNode bind = 2; + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 3; */ - public int getBindCount() { - if (bindBuilder_ == null) { - return bind_.size(); + public int getMatchedRulesCount() { + if (matchedRulesBuilder_ == null) { + return matchedRules_.size(); } else { - return bindBuilder_.getCount(); + return matchedRulesBuilder_.getCount(); } } /** - * repeated .datadog.cws.dumpsv1.BindNode bind = 2; + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 3; */ - public com.dd.cws.adv1.pb.SecDumpProto.BindNode getBind(int index) { - if (bindBuilder_ == null) { - return bind_.get(index); + public com.dd.cws.adv1.pb.SecDumpProto.MatchedRule getMatchedRules(int index) { + if (matchedRulesBuilder_ == null) { + return matchedRules_.get(index); } else { - return bindBuilder_.getMessage(index); + return matchedRulesBuilder_.getMessage(index); } } /** - * repeated .datadog.cws.dumpsv1.BindNode bind = 2; + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 3; */ - public Builder setBind( - int index, com.dd.cws.adv1.pb.SecDumpProto.BindNode value) { - if (bindBuilder_ == null) { + public Builder setMatchedRules( + int index, com.dd.cws.adv1.pb.SecDumpProto.MatchedRule value) { + if (matchedRulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureBindIsMutable(); - bind_.set(index, value); + ensureMatchedRulesIsMutable(); + matchedRules_.set(index, value); onChanged(); } else { - bindBuilder_.setMessage(index, value); + matchedRulesBuilder_.setMessage(index, value); } return this; } /** - * repeated .datadog.cws.dumpsv1.BindNode bind = 2; + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 3; */ - public Builder setBind( - int index, com.dd.cws.adv1.pb.SecDumpProto.BindNode.Builder builderForValue) { - if (bindBuilder_ == null) { - ensureBindIsMutable(); - bind_.set(index, builderForValue.build()); + 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 { - bindBuilder_.setMessage(index, builderForValue.build()); + matchedRulesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** - * repeated .datadog.cws.dumpsv1.BindNode bind = 2; + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 3; */ - public Builder addBind(com.dd.cws.adv1.pb.SecDumpProto.BindNode value) { - if (bindBuilder_ == null) { + public Builder addMatchedRules(com.dd.cws.adv1.pb.SecDumpProto.MatchedRule value) { + if (matchedRulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureBindIsMutable(); - bind_.add(value); + ensureMatchedRulesIsMutable(); + matchedRules_.add(value); onChanged(); } else { - bindBuilder_.addMessage(value); + matchedRulesBuilder_.addMessage(value); } return this; } /** - * repeated .datadog.cws.dumpsv1.BindNode bind = 2; + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 3; */ - public Builder addBind( - int index, com.dd.cws.adv1.pb.SecDumpProto.BindNode value) { - if (bindBuilder_ == null) { + public Builder addMatchedRules( + int index, com.dd.cws.adv1.pb.SecDumpProto.MatchedRule value) { + if (matchedRulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureBindIsMutable(); - bind_.add(index, value); + ensureMatchedRulesIsMutable(); + matchedRules_.add(index, value); onChanged(); } else { - bindBuilder_.addMessage(index, value); + matchedRulesBuilder_.addMessage(index, value); } return this; } /** - * repeated .datadog.cws.dumpsv1.BindNode bind = 2; + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 3; */ - public Builder addBind( - com.dd.cws.adv1.pb.SecDumpProto.BindNode.Builder builderForValue) { - if (bindBuilder_ == null) { - ensureBindIsMutable(); - bind_.add(builderForValue.build()); + public Builder addMatchedRules( + com.dd.cws.adv1.pb.SecDumpProto.MatchedRule.Builder builderForValue) { + if (matchedRulesBuilder_ == null) { + ensureMatchedRulesIsMutable(); + matchedRules_.add(builderForValue.build()); onChanged(); } else { - bindBuilder_.addMessage(builderForValue.build()); + matchedRulesBuilder_.addMessage(builderForValue.build()); } return this; } /** - * repeated .datadog.cws.dumpsv1.BindNode bind = 2; + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 3; */ - public Builder addBind( - int index, com.dd.cws.adv1.pb.SecDumpProto.BindNode.Builder builderForValue) { - if (bindBuilder_ == null) { - ensureBindIsMutable(); - bind_.add(index, builderForValue.build()); + 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 { - bindBuilder_.addMessage(index, builderForValue.build()); + matchedRulesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** - * repeated .datadog.cws.dumpsv1.BindNode bind = 2; + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 3; */ - public Builder addAllBind( - java.lang.Iterable values) { - if (bindBuilder_ == null) { - ensureBindIsMutable(); + public Builder addAllMatchedRules( + java.lang.Iterable values) { + if (matchedRulesBuilder_ == null) { + ensureMatchedRulesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, bind_); + values, matchedRules_); onChanged(); } else { - bindBuilder_.addAllMessages(values); + matchedRulesBuilder_.addAllMessages(values); } return this; } /** - * repeated .datadog.cws.dumpsv1.BindNode bind = 2; + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 3; */ - public Builder clearBind() { - if (bindBuilder_ == null) { - bind_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + public Builder clearMatchedRules() { + if (matchedRulesBuilder_ == null) { + matchedRules_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { - bindBuilder_.clear(); + matchedRulesBuilder_.clear(); } return this; } /** - * repeated .datadog.cws.dumpsv1.BindNode bind = 2; + * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 3; */ - public Builder removeBind(int index) { - if (bindBuilder_ == null) { - ensureBindIsMutable(); - bind_.remove(index); + public Builder removeMatchedRules(int index) { + if (matchedRulesBuilder_ == null) { + ensureMatchedRulesIsMutable(); + matchedRules_.remove(index); onChanged(); } else { - bindBuilder_.remove(index); + 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 com.google.protobuf.LazyStringList imageTags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureImageTagsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + imageTags_ = new com.google.protobuf.LazyStringArrayList(imageTags_); + bitField0_ |= 0x00000002; + } + } + /** + * repeated string image_tags = 4; + * @return A list containing the imageTags. + */ + public com.google.protobuf.ProtocolStringList + getImageTagsList() { + return imageTags_.getUnmodifiableView(); + } + /** + * repeated string image_tags = 4; + * @return The count of imageTags. + */ + public int getImageTagsCount() { + return imageTags_.size(); + } + /** + * repeated string image_tags = 4; + * @param index The index of the element to return. + * @return The imageTags at the given index. + */ + public java.lang.String getImageTags(int index) { + return imageTags_.get(index); + } + /** + * repeated string image_tags = 4; + * @param index The index of the value to return. + * @return The bytes of the imageTags at the given index. + */ + public com.google.protobuf.ByteString + getImageTagsBytes(int index) { + return imageTags_.getByteString(index); + } + /** + * repeated string image_tags = 4; + * @param index The index to set the value at. + * @param value The imageTags to set. + * @return This builder for chaining. + */ + public Builder setImageTags( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureImageTagsIsMutable(); + imageTags_.set(index, value); + onChanged(); + return this; + } + /** + * repeated string image_tags = 4; + * @param value The imageTags to add. + * @return This builder for chaining. + */ + public Builder addImageTags( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureImageTagsIsMutable(); + imageTags_.add(value); + onChanged(); + return this; + } + /** + * repeated string image_tags = 4; + * @param values The imageTags to add. + * @return This builder for chaining. + */ + public Builder addAllImageTags( + java.lang.Iterable values) { + ensureImageTagsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, imageTags_); + onChanged(); + return this; + } + /** + * repeated string image_tags = 4; + * @return This builder for chaining. + */ + public Builder clearImageTags() { + imageTags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * repeated string image_tags = 4; + * @param value The bytes of the imageTags to add. + * @return This builder for chaining. + */ + public Builder addImageTagsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureImageTagsIsMutable(); + imageTags_.add(value); + onChanged(); + return this; + } + + 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_ |= 0x00000004; + onChanged(); return this; } /** - * repeated .datadog.cws.dumpsv1.BindNode bind = 2; + * uint32 port = 1; + * @return This builder for chaining. */ - public com.dd.cws.adv1.pb.SecDumpProto.BindNode.Builder getBindBuilder( - int index) { - return getBindFieldBuilder().getBuilder(index); + public Builder clearPort() { + bitField0_ = (bitField0_ & ~0x00000004); + port_ = 0; + onChanged(); + return this; } + + private java.lang.Object ip_ = ""; /** - * repeated .datadog.cws.dumpsv1.BindNode bind = 2; + * string ip = 2; + * @return The ip. */ - public com.dd.cws.adv1.pb.SecDumpProto.BindNodeOrBuilder getBindOrBuilder( - int index) { - if (bindBuilder_ == null) { - return bind_.get(index); } else { - return bindBuilder_.getMessageOrBuilder(index); + 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; } } /** - * repeated .datadog.cws.dumpsv1.BindNode bind = 2; + * string ip = 2; + * @return The bytes for ip. */ - public java.util.List - getBindOrBuilderList() { - if (bindBuilder_ != null) { - return bindBuilder_.getMessageOrBuilderList(); + 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 java.util.Collections.unmodifiableList(bind_); + return (com.google.protobuf.ByteString) ref; } } /** - * repeated .datadog.cws.dumpsv1.BindNode bind = 2; + * string ip = 2; + * @param value The ip to set. + * @return This builder for chaining. */ - public com.dd.cws.adv1.pb.SecDumpProto.BindNode.Builder addBindBuilder() { - return getBindFieldBuilder().addBuilder( - com.dd.cws.adv1.pb.SecDumpProto.BindNode.getDefaultInstance()); + public Builder setIp( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ip_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; } /** - * repeated .datadog.cws.dumpsv1.BindNode bind = 2; + * string ip = 2; + * @return This builder for chaining. */ - public com.dd.cws.adv1.pb.SecDumpProto.BindNode.Builder addBindBuilder( - int index) { - return getBindFieldBuilder().addBuilder( - index, com.dd.cws.adv1.pb.SecDumpProto.BindNode.getDefaultInstance()); + public Builder clearIp() { + ip_ = getDefaultInstance().getIp(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; } /** - * repeated .datadog.cws.dumpsv1.BindNode bind = 2; + * string ip = 2; + * @param value The bytes for ip to set. + * @return This builder for chaining. */ - 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_; + public Builder setIpBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ip_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; } @java.lang.Override public final Builder setUnknownFields( @@ -21140,23 +24148,23 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:datadog.cws.dumpsv1.SocketNode) + // @@protoc_insertion_point(builder_scope:datadog.cws.dumpsv1.BindNode) } - // @@protoc_insertion_point(class_scope:datadog.cws.dumpsv1.SocketNode) - private static final com.dd.cws.adv1.pb.SecDumpProto.SocketNode DEFAULT_INSTANCE; + // @@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.SocketNode(); + DEFAULT_INSTANCE = new com.dd.cws.adv1.pb.SecDumpProto.BindNode(); } - public static com.dd.cws.adv1.pb.SecDumpProto.SocketNode getDefaultInstance() { + 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() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public SocketNode parsePartialFrom( + public BindNode parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -21175,90 +24183,132 @@ public SocketNode 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.SocketNode getDefaultInstanceForType() { + public com.dd.cws.adv1.pb.SecDumpProto.BindNode getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface BindNodeOrBuilder extends - // @@protoc_insertion_point(interface_extends:datadog.cws.dumpsv1.BindNode) + public interface MatchedRuleOrBuilder extends + // @@protoc_insertion_point(interface_extends:datadog.cws.dumpsv1.MatchedRule) com.google.protobuf.MessageOrBuilder { /** - * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 3; + * string rule_id = 1; + * @return The ruleId. */ - java.util.List - getMatchedRulesList(); + java.lang.String getRuleId(); /** - * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 3; + * string rule_id = 1; + * @return The bytes for ruleId. */ - com.dd.cws.adv1.pb.SecDumpProto.MatchedRule getMatchedRules(int index); + com.google.protobuf.ByteString + getRuleIdBytes(); + /** - * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 3; + * string rule_version = 2; + * @return The ruleVersion. */ - int getMatchedRulesCount(); + java.lang.String getRuleVersion(); /** - * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 3; + * string rule_version = 2; + * @return The bytes for ruleVersion. */ - java.util.List - getMatchedRulesOrBuilderList(); + com.google.protobuf.ByteString + getRuleVersionBytes(); + /** - * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 3; + * string policy_name = 3; + * @return The policyName. */ - com.dd.cws.adv1.pb.SecDumpProto.MatchedRuleOrBuilder getMatchedRulesOrBuilder( - int index); - + java.lang.String getPolicyName(); /** - * uint32 port = 1; - * @return The port. + * string policy_name = 3; + * @return The bytes for policyName. */ - int getPort(); + com.google.protobuf.ByteString + getPolicyNameBytes(); /** - * string ip = 2; - * @return The ip. + * string policy_version = 4; + * @return The policyVersion. */ - java.lang.String getIp(); + java.lang.String getPolicyVersion(); /** - * string ip = 2; - * @return The bytes for ip. + * string policy_version = 4; + * @return The bytes for policyVersion. */ com.google.protobuf.ByteString - getIpBytes(); + 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.BindNode} + * Protobuf type {@code datadog.cws.dumpsv1.MatchedRule} */ - public static final class BindNode extends + public static final class MatchedRule extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:datadog.cws.dumpsv1.BindNode) - BindNodeOrBuilder { + // @@protoc_insertion_point(message_implements:datadog.cws.dumpsv1.MatchedRule) + MatchedRuleOrBuilder { private static final long serialVersionUID = 0L; - // Use BindNode.newBuilder() to construct. - private BindNode(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use MatchedRule.newBuilder() to construct. + private MatchedRule(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BindNode() { - matchedRules_ = java.util.Collections.emptyList(); - ip_ = ""; + private MatchedRule() { + ruleId_ = ""; + ruleVersion_ = ""; + policyName_ = ""; + policyVersion_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new BindNode(); + return new MatchedRule(); } @java.lang.Override @@ -21268,108 +24318,264 @@ 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_BindNode_descriptor; + 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_BindNode_fieldAccessorTable + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_MatchedRule_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.dd.cws.adv1.pb.SecDumpProto.BindNode.class, com.dd.cws.adv1.pb.SecDumpProto.BindNode.Builder.class); + com.dd.cws.adv1.pb.SecDumpProto.MatchedRule.class, com.dd.cws.adv1.pb.SecDumpProto.MatchedRule.Builder.class); } - public static final int MATCHED_RULES_FIELD_NUMBER = 3; + public static final int RULE_ID_FIELD_NUMBER = 1; @SuppressWarnings("serial") - private java.util.List matchedRules_; + private volatile java.lang.Object ruleId_ = ""; /** - * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 3; + * string rule_id = 1; + * @return The ruleId. */ @java.lang.Override - public java.util.List getMatchedRulesList() { - return matchedRules_; + 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; + } } /** - * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 3; + * string rule_id = 1; + * @return The bytes for ruleId. */ @java.lang.Override - public java.util.List - getMatchedRulesOrBuilderList() { - return matchedRules_; + 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_ = ""; /** - * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 3; + * string rule_version = 2; + * @return The ruleVersion. */ @java.lang.Override - public int getMatchedRulesCount() { - return matchedRules_.size(); + 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; + } } /** - * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 3; + * string rule_version = 2; + * @return The bytes for ruleVersion. */ @java.lang.Override - public com.dd.cws.adv1.pb.SecDumpProto.MatchedRule getMatchedRules(int index) { - return matchedRules_.get(index); + 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_ = ""; /** - * repeated .datadog.cws.dumpsv1.MatchedRule matched_rules = 3; + * string policy_name = 3; + * @return The policyName. */ @java.lang.Override - public com.dd.cws.adv1.pb.SecDumpProto.MatchedRuleOrBuilder getMatchedRulesOrBuilder( - int index) { - return matchedRules_.get(index); + 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; + } } - - public static final int PORT_FIELD_NUMBER = 1; - private int port_ = 0; /** - * uint32 port = 1; - * @return The port. + * string policy_name = 3; + * @return The bytes for policyName. */ @java.lang.Override - public int getPort() { - return port_; + 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 IP_FIELD_NUMBER = 2; + public static final int POLICY_VERSION_FIELD_NUMBER = 4; @SuppressWarnings("serial") - private volatile java.lang.Object ip_ = ""; + private volatile java.lang.Object policyVersion_ = ""; /** - * string ip = 2; - * @return The ip. + * string policy_version = 4; + * @return The policyVersion. */ @java.lang.Override - public java.lang.String getIp() { - java.lang.Object ref = ip_; + 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(); - ip_ = s; + policyVersion_ = s; return s; } } /** - * string ip = 2; - * @return The bytes for ip. + * string policy_version = 4; + * @return The bytes for policyVersion. */ @java.lang.Override public com.google.protobuf.ByteString - getIpBytes() { - java.lang.Object ref = ip_; + 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); - ip_ = b; + 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() { @@ -21384,15 +24590,24 @@ public final boolean isInitialized() { @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(ruleId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ruleId_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ip_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, ip_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ruleVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, ruleVersion_); } - for (int i = 0; i < matchedRules_.size(); i++) { - output.writeMessage(3, matchedRules_.get(i)); + 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); } @@ -21402,16 +24617,27 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (port_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, port_); + 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(ip_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, ip_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(policyName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, policyName_); } - for (int i = 0; i < matchedRules_.size(); i++) { + 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(3, matchedRules_.get(i)); + .computeMessageSize(5, ruleTags__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -21423,17 +24649,21 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.dd.cws.adv1.pb.SecDumpProto.BindNode)) { + if (!(obj instanceof com.dd.cws.adv1.pb.SecDumpProto.MatchedRule)) { return super.equals(obj); } - com.dd.cws.adv1.pb.SecDumpProto.BindNode other = (com.dd.cws.adv1.pb.SecDumpProto.BindNode) obj; + com.dd.cws.adv1.pb.SecDumpProto.MatchedRule other = (com.dd.cws.adv1.pb.SecDumpProto.MatchedRule) obj; - if (!getMatchedRulesList() - .equals(other.getMatchedRulesList())) return false; - if (getPort() - != other.getPort()) return false; - if (!getIp() - .equals(other.getIp())) return false; + 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; } @@ -21445,82 +24675,86 @@ public int hashCode() { } 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) + 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 = (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( + 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.BindNode parseFrom( + 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.BindNode parseFrom( + 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.BindNode parseFrom( + 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.BindNode parseFrom(byte[] data) + 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.BindNode parseFrom( + 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.BindNode parseFrom(java.io.InputStream input) + 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.BindNode parseFrom( + 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.BindNode parseDelimitedFrom(java.io.InputStream input) + 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.BindNode parseDelimitedFrom( + 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.BindNode parseFrom( + 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.BindNode parseFrom( + public static com.dd.cws.adv1.pb.SecDumpProto.MatchedRule parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -21533,7 +24767,7 @@ public static com.dd.cws.adv1.pb.SecDumpProto.BindNode parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.dd.cws.adv1.pb.SecDumpProto.BindNode prototype) { + public static Builder newBuilder(com.dd.cws.adv1.pb.SecDumpProto.MatchedRule prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -21549,1899 +24783,1253 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code datadog.cws.dumpsv1.BindNode} + * 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.BindNode) - com.dd.cws.adv1.pb.SecDumpProto.BindNodeOrBuilder { + // @@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_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; - } + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_MatchedRule_descriptor; } - 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()); + @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); } - if (!other.getIp().isEmpty()) { - ip_ = other.ip_; - bitField0_ |= 0x00000004; - onChanged(); + } + @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); } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; } - @java.lang.Override - public final boolean isInitialized() { - return true; + 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); } - @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_; + // Construct using com.dd.cws.adv1.pb.SecDumpProto.MatchedRule.newBuilder() + private Builder() { - 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_; + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); - /** - * 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); - } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + ruleId_ = ""; + ruleVersion_ = ""; + policyName_ = ""; + policyVersion_ = ""; + internalGetMutableRuleTags().clear(); 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); + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_MatchedRule_descriptor; } - /** - * 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); - } + + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.MatchedRule getDefaultInstanceForType() { + return com.dd.cws.adv1.pb.SecDumpProto.MatchedRule.getDefaultInstance(); } - /** - * 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_); + + @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; } - /** - * 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(); + + @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 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; + + 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(); } - return matchedRulesBuilder_; } - private int port_ ; - /** - * uint32 port = 1; - * @return The port. - */ @java.lang.Override - public int getPort() { - return port_; + public Builder clone() { + return super.clone(); } - /** - * 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; + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); } - /** - * uint32 port = 1; - * @return This builder for chaining. - */ - public Builder clearPort() { - bitField0_ = (bitField0_ & ~0x00000002); - port_ = 0; - onChanged(); - return this; + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); } - - 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; - } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); } - /** - * 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; - } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); } - /** - * 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; + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); } - /** - * string ip = 2; - * @return This builder for chaining. - */ - public Builder clearIp() { - ip_ = getDefaultInstance().getIp(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; + @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; + } } - /** - * 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; + + 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 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); + public final boolean isInitialized() { + return true; } - - // @@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( + public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - builder.mergeFrom(input, extensionRegistry); + 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.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(); + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; } - }; - - 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; - } + private int bitField0_; - @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); + 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; + } } - } - @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. + */ + 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; - * @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; + /** + * 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; } - } - 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; + 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. - */ - @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; + /** + * 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; } - } - 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; + 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; - * @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; + /** + * 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; } - } - - 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_name = 3; + * @return This builder for chaining. + */ + public Builder clearPolicyName() { + policyName_ = getDefaultInstance().getPolicyName(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; } - } - /** - * 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; + /** + * 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; } - } - 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); + 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; + } } - 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(); + /** + * 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; } - 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_); + 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_; } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ruleVersion_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, ruleVersion_); + 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_; } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(policyName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, policyName_); + public int getRuleTagsCount() { + return internalGetRuleTags().getMap().size(); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(policyVersion_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, policyVersion_); + /** + * 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); } - 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_); + /** + * Use {@link #getRuleTagsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getRuleTags() { + return getRuleTagsMap(); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ruleVersion_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, ruleVersion_); + /** + * map<string, string> rule_tags = 5; + */ + @java.lang.Override + public java.util.Map getRuleTagsMap() { + return internalGetRuleTags().getMap(); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(policyName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, policyName_); + /** + * 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; } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(policyVersion_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, policyVersion_); + /** + * 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); } - 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__); + public Builder clearRuleTags() { + bitField0_ = (bitField0_ & ~0x00000010); + internalGetMutableRuleTags().getMutableMap() + .clear(); + return this; } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; + /** + * 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; } - if (!(obj instanceof com.dd.cws.adv1.pb.SecDumpProto.MatchedRule)) { - return super.equals(obj); + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableRuleTags() { + bitField0_ |= 0x00000010; + return internalGetMutableRuleTags().getMutableMap(); } - 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; + /** + * 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; } - 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(); + /** + * map<string, string> rule_tags = 5; + */ + public Builder putAllRuleTags( + java.util.Map values) { + internalGetMutableRuleTags().getMutableMap() + .putAll(values); + bitField0_ |= 0x00000010; + return this; } - 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); + @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) } - 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); + + // @@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(); } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); + public static com.dd.cws.adv1.pb.SecDumpProto.MatchedRule getDefaultInstance() { + return DEFAULT_INSTANCE; } - public static Builder newBuilder(com.dd.cws.adv1.pb.SecDumpProto.MatchedRule prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + + 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 Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + public com.google.protobuf.Parser getParserForType() { + return PARSER; } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; + public com.dd.cws.adv1.pb.SecDumpProto.MatchedRule getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - /** - * 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() { + public interface event_type_stateOrBuilder extends + // @@protoc_insertion_point(interface_extends:datadog.cws.dumpsv1.event_type_state) + com.google.protobuf.MessageOrBuilder { - } + /** + * uint64 last_anomaly_nano = 1; + * @return The lastAnomalyNano. + */ + long getLastAnomalyNano(); - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); + /** + * .datadog.cws.dumpsv1.event_profile_state event_profile_state = 2; + * @return The enum numeric value on the wire for eventProfileState. + */ + int getEventProfileStateValue(); + /** + * .datadog.cws.dumpsv1.event_profile_state event_profile_state = 2; + * @return The eventProfileState. + */ + com.dd.cws.adv1.pb.SecDumpProto.event_profile_state getEventProfileState(); + } + /** + * Protobuf type {@code datadog.cws.dumpsv1.event_type_state} + */ + public static final class event_type_state extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datadog.cws.dumpsv1.event_type_state) + event_type_stateOrBuilder { + private static final long serialVersionUID = 0L; + // Use event_type_state.newBuilder() to construct. + private event_type_state(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private event_type_state() { + eventProfileState_ = 0; + } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - ruleId_ = ""; - ruleVersion_ = ""; - policyName_ = ""; - policyVersion_ = ""; - internalGetMutableRuleTags().clear(); - return this; - } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new event_type_state(); + } - @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 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_event_type_state_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 + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_event_type_state_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.dd.cws.adv1.pb.SecDumpProto.event_type_state.class, com.dd.cws.adv1.pb.SecDumpProto.event_type_state.Builder.class); + } - @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; - } + public static final int LAST_ANOMALY_NANO_FIELD_NUMBER = 1; + private long lastAnomalyNano_ = 0L; + /** + * uint64 last_anomaly_nano = 1; + * @return The lastAnomalyNano. + */ + @java.lang.Override + public long getLastAnomalyNano() { + return lastAnomalyNano_; + } - @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; - } + public static final int EVENT_PROFILE_STATE_FIELD_NUMBER = 2; + private int eventProfileState_ = 0; + /** + * .datadog.cws.dumpsv1.event_profile_state event_profile_state = 2; + * @return The enum numeric value on the wire for eventProfileState. + */ + @java.lang.Override public int getEventProfileStateValue() { + return eventProfileState_; + } + /** + * .datadog.cws.dumpsv1.event_profile_state event_profile_state = 2; + * @return The eventProfileState. + */ + @java.lang.Override public com.dd.cws.adv1.pb.SecDumpProto.event_profile_state getEventProfileState() { + com.dd.cws.adv1.pb.SecDumpProto.event_profile_state result = com.dd.cws.adv1.pb.SecDumpProto.event_profile_state.forNumber(eventProfileState_); + return result == null ? com.dd.cws.adv1.pb.SecDumpProto.event_profile_state.UNRECOGNIZED : 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(); - } - } + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - @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); + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (lastAnomalyNano_ != 0L) { + output.writeUInt64(1, lastAnomalyNano_); } - @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; - } + if (eventProfileState_ != com.dd.cws.adv1.pb.SecDumpProto.event_profile_state.NO_PROFILE.getNumber()) { + output.writeEnum(2, eventProfileState_); } + getUnknownFields().writeTo(output); + } - 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 int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - @java.lang.Override - public final boolean isInitialized() { - return true; + size = 0; + if (lastAnomalyNano_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(1, lastAnomalyNano_); } - - @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; + if (eventProfileState_ != com.dd.cws.adv1.pb.SecDumpProto.event_profile_state.NO_PROFILE.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, eventProfileState_); } - private int bitField0_; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - 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; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; } - /** - * 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; + if (!(obj instanceof com.dd.cws.adv1.pb.SecDumpProto.event_type_state)) { + return super.equals(obj); } - /** - * string rule_id = 1; - * @return This builder for chaining. - */ - public Builder clearRuleId() { - ruleId_ = getDefaultInstance().getRuleId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; + com.dd.cws.adv1.pb.SecDumpProto.event_type_state other = (com.dd.cws.adv1.pb.SecDumpProto.event_type_state) obj; + + if (getLastAnomalyNano() + != other.getLastAnomalyNano()) return false; + if (eventProfileState_ != other.eventProfileState_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; } - /** - * 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; + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + LAST_ANOMALY_NANO_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getLastAnomalyNano()); + hash = (37 * hash) + EVENT_PROFILE_STATE_FIELD_NUMBER; + hash = (53 * hash) + eventProfileState_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.dd.cws.adv1.pb.SecDumpProto.event_type_state parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.dd.cws.adv1.pb.SecDumpProto.event_type_state 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.event_type_state parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.dd.cws.adv1.pb.SecDumpProto.event_type_state 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.event_type_state parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.dd.cws.adv1.pb.SecDumpProto.event_type_state 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.event_type_state 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.event_type_state 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.event_type_state 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.event_type_state 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.event_type_state 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.event_type_state 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.event_type_state 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.event_type_state} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datadog.cws.dumpsv1.event_type_state) + com.dd.cws.adv1.pb.SecDumpProto.event_type_stateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_event_type_state_descriptor; } - 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; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_event_type_state_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.dd.cws.adv1.pb.SecDumpProto.event_type_state.class, com.dd.cws.adv1.pb.SecDumpProto.event_type_state.Builder.class); } - /** - * 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; - } + + // Construct using com.dd.cws.adv1.pb.SecDumpProto.event_type_state.newBuilder() + private Builder() { + } - /** - * 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; + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } - /** - * string rule_version = 2; - * @return This builder for chaining. - */ - public Builder clearRuleVersion() { - ruleVersion_ = getDefaultInstance().getRuleVersion(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + lastAnomalyNano_ = 0L; + eventProfileState_ = 0; 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; + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.dd.cws.adv1.pb.SecDumpProto.internal_static_datadog_cws_dumpsv1_event_type_state_descriptor; } - 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; - } + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.event_type_state getDefaultInstanceForType() { + return com.dd.cws.adv1.pb.SecDumpProto.event_type_state.getDefaultInstance(); } - /** - * 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; + + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.event_type_state build() { + com.dd.cws.adv1.pb.SecDumpProto.event_type_state result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); } + return result; } - /** - * 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; + + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.event_type_state buildPartial() { + com.dd.cws.adv1.pb.SecDumpProto.event_type_state result = new com.dd.cws.adv1.pb.SecDumpProto.event_type_state(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; } - 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; + private void buildPartial0(com.dd.cws.adv1.pb.SecDumpProto.event_type_state result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.lastAnomalyNano_ = lastAnomalyNano_; } - } - /** - * 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; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.eventProfileState_ = eventProfileState_; } } - /** - * 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; + + @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); } - /** - * string policy_version = 4; - * @return This builder for chaining. - */ - public Builder clearPolicyVersion() { - policyVersion_ = getDefaultInstance().getPolicyVersion(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); } - /** - * 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; + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); } - - 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); + @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.event_type_state) { + return mergeFrom((com.dd.cws.adv1.pb.SecDumpProto.event_type_state)other); + } else { + super.mergeFrom(other); + return this; } - return ruleTags_; } - private com.google.protobuf.MapField - internalGetMutableRuleTags() { - if (ruleTags_ == null) { - ruleTags_ = com.google.protobuf.MapField.newMapField( - RuleTagsDefaultEntryHolder.defaultEntry); + + public Builder mergeFrom(com.dd.cws.adv1.pb.SecDumpProto.event_type_state other) { + if (other == com.dd.cws.adv1.pb.SecDumpProto.event_type_state.getDefaultInstance()) return this; + if (other.getLastAnomalyNano() != 0L) { + setLastAnomalyNano(other.getLastAnomalyNano()); } - if (!ruleTags_.isMutable()) { - ruleTags_ = ruleTags_.copy(); + if (other.eventProfileState_ != 0) { + setEventProfileStateValue(other.getEventProfileStateValue()); } - bitField0_ |= 0x00000010; + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); - return ruleTags_; + return this; } - public int getRuleTagsCount() { - return internalGetRuleTags().getMap().size(); + + @java.lang.Override + public final boolean isInitialized() { + return true; } - /** - * 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); + 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: { + lastAnomalyNano_ = input.readUInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + eventProfileState_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + 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 lastAnomalyNano_ ; /** - * Use {@link #getRuleTagsMap()} instead. + * uint64 last_anomaly_nano = 1; + * @return The lastAnomalyNano. */ @java.lang.Override - @java.lang.Deprecated - public java.util.Map getRuleTags() { - return getRuleTagsMap(); + public long getLastAnomalyNano() { + return lastAnomalyNano_; } /** - * map<string, string> rule_tags = 5; + * uint64 last_anomaly_nano = 1; + * @param value The lastAnomalyNano to set. + * @return This builder for chaining. */ - @java.lang.Override - public java.util.Map getRuleTagsMap() { - return internalGetRuleTags().getMap(); + public Builder setLastAnomalyNano(long value) { + + lastAnomalyNano_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; } /** - * map<string, string> rule_tags = 5; + * uint64 last_anomaly_nano = 1; + * @return This builder for chaining. */ - @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; + public Builder clearLastAnomalyNano() { + bitField0_ = (bitField0_ & ~0x00000001); + lastAnomalyNano_ = 0L; + onChanged(); + return this; } + + private int eventProfileState_ = 0; /** - * map<string, string> rule_tags = 5; + * .datadog.cws.dumpsv1.event_profile_state event_profile_state = 2; + * @return The enum numeric value on the wire for eventProfileState. */ - @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; + @java.lang.Override public int getEventProfileStateValue() { + return eventProfileState_; } /** - * map<string, string> rule_tags = 5; + * .datadog.cws.dumpsv1.event_profile_state event_profile_state = 2; + * @param value The enum numeric value on the wire for eventProfileState to set. + * @return This builder for chaining. */ - public Builder removeRuleTags( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableRuleTags().getMutableMap() - .remove(key); + public Builder setEventProfileStateValue(int value) { + eventProfileState_ = value; + bitField0_ |= 0x00000002; + onChanged(); return this; } /** - * Use alternate mutation accessors instead. + * .datadog.cws.dumpsv1.event_profile_state event_profile_state = 2; + * @return The eventProfileState. */ - @java.lang.Deprecated - public java.util.Map - getMutableRuleTags() { - bitField0_ |= 0x00000010; - return internalGetMutableRuleTags().getMutableMap(); + @java.lang.Override + public com.dd.cws.adv1.pb.SecDumpProto.event_profile_state getEventProfileState() { + com.dd.cws.adv1.pb.SecDumpProto.event_profile_state result = com.dd.cws.adv1.pb.SecDumpProto.event_profile_state.forNumber(eventProfileState_); + return result == null ? com.dd.cws.adv1.pb.SecDumpProto.event_profile_state.UNRECOGNIZED : result; } /** - * map<string, string> rule_tags = 5; + * .datadog.cws.dumpsv1.event_profile_state event_profile_state = 2; + * @param value The eventProfileState to set. + * @return This builder for chaining. */ - 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; + public Builder setEventProfileState(com.dd.cws.adv1.pb.SecDumpProto.event_profile_state value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + eventProfileState_ = value.getNumber(); + onChanged(); return this; } /** - * map<string, string> rule_tags = 5; + * .datadog.cws.dumpsv1.event_profile_state event_profile_state = 2; + * @return This builder for chaining. */ - public Builder putAllRuleTags( - java.util.Map values) { - internalGetMutableRuleTags().getMutableMap() - .putAll(values); - bitField0_ |= 0x00000010; + public Builder clearEventProfileState() { + bitField0_ = (bitField0_ & ~0x00000002); + eventProfileState_ = 0; + onChanged(); return this; } @java.lang.Override @@ -23457,23 +26045,23 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:datadog.cws.dumpsv1.MatchedRule) + // @@protoc_insertion_point(builder_scope:datadog.cws.dumpsv1.event_type_state) } - // @@protoc_insertion_point(class_scope:datadog.cws.dumpsv1.MatchedRule) - private static final com.dd.cws.adv1.pb.SecDumpProto.MatchedRule DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:datadog.cws.dumpsv1.event_type_state) + private static final com.dd.cws.adv1.pb.SecDumpProto.event_type_state DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.dd.cws.adv1.pb.SecDumpProto.MatchedRule(); + DEFAULT_INSTANCE = new com.dd.cws.adv1.pb.SecDumpProto.event_type_state(); } - public static com.dd.cws.adv1.pb.SecDumpProto.MatchedRule getDefaultInstance() { + public static com.dd.cws.adv1.pb.SecDumpProto.event_type_state 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 MatchedRule parsePartialFrom( + public event_type_state parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -23492,17 +26080,17 @@ public MatchedRule 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.MatchedRule getDefaultInstanceForType() { + public com.dd.cws.adv1.pb.SecDumpProto.event_type_state getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -23518,11 +26106,26 @@ public com.dd.cws.adv1.pb.SecDumpProto.MatchedRule getDefaultInstanceForType() { 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_ProfileContext_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datadog_cws_dumpsv1_ProfileContext_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datadog_cws_dumpsv1_ProfileContext_EventTypeStateEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datadog_cws_dumpsv1_ProfileContext_EventTypeStateEntry_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_SecurityProfile_ProfileContextsEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datadog_cws_dumpsv1_SecurityProfile_ProfileContextsEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_datadog_cws_dumpsv1_ProcessActivityNode_descriptor; private static final @@ -23583,6 +26186,11 @@ public com.dd.cws.adv1.pb.SecDumpProto.MatchedRule getDefaultInstanceForType() { private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_datadog_cws_dumpsv1_MatchedRule_RuleTagsEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datadog_cws_dumpsv1_event_type_state_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datadog_cws_dumpsv1_event_type_state_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { @@ -23605,83 +26213,102 @@ public com.dd.cws.adv1.pb.SecDumpProto.MatchedRule getDefaultInstanceForType() { "(\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\"\321\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\022\n\006cookie\030\004 \001(\rB\002\030\001\022\021\n\tis_threa" + - "d\030\005 \001(\010\022+\n\004file\030\006 \001(\0132\035.datadog.cws.dump" + - "sv1.FileInfo\022\024\n\014container_id\030\007 \001(\t\022\017\n\007sp" + - "an_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\te" + - "xit_time\030\r \001(\004\022\021\n\texec_time\030\016 \001(\004\0225\n\013cre" + - "dentials\030\017 \001(\0132 .datadog.cws.dumpsv1.Cre" + - "dentials\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\016e" + - "nvs_truncated\030\024 \001(\010\022\025\n\ris_exec_child\030\025 \001" + - "(\010\022\020\n\010cookie64\030\026 \001(\004\"\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\"\351\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\022" + - "\016\n\006hashes\030\021 \003(\t\0222\n\nhash_state\030\022 \001(\0162\036.da" + - "tadog.cws.dumpsv1.HashState\"\224\002\n\013Credenti" + - "als\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\reffective_uid\030\005 \001(" + - "\r\022\025\n\reffective_gid\030\006 \001(\r\022\026\n\016effective_us" + - "er\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\010BindNode\0227\n\rmat" + - "ched_rules\030\003 \003(\0132 .datadog.cws.dumpsv1.M" + - "atchedRule\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\014rule_ve" + - "rsion\030\002 \001(\t\022\023\n\013policy_name\030\003 \001(\t\022\026\n\016poli" + - "cy_version\030\004 \001(\t\022A\n\trule_tags\030\005 \003(\0132..da" + - "tadog.cws.dumpsv1.MatchedRule.RuleTagsEn" + - "try\032/\n\rRuleTagsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" + - "ue\030\002 \001(\t:\0028\001*\271\001\n\tHashState\022\013\n\007NO_HASH\020\000\022" + - "\010\n\004DONE\020\001\022\022\n\016FILE_NOT_FOUND\020\002\022\035\n\031PATHNAM" + - "E_RESOLUTION_ERROR\020\003\022\020\n\014FILE_TOO_BIG\020\004\022\035" + - "\n\031EVENT_TYPE_NOT_CONFIGURED\020\005\022\031\n\025HASH_WA" + - "S_RATE_LIMITED\020\006\022\026\n\022UNKNOWN_HASH_ERROR\020\007" + - "*8\n\016GenerationType\022\013\n\007UNKNOWN\020\000\022\013\n\007RUNTI" + - "ME\020\001\022\014\n\010SNAPSHOT\020\002BU\n\022com.dd.cws.adv1.pb" + - "B\014SecDumpProtoP\000Z/github.com/DataDog/age" + - "nt-payload/v5/cws/dumpsv1b\006proto3" + "ation\030\016 \001(\t\"\210\002\n\016ProfileContext\022\022\n\nfirst_" + + "seen\030\001 \001(\004\022\021\n\tlast_seen\030\002 \001(\004\022Q\n\020event_t" + + "ype_state\030\003 \003(\01327.datadog.cws.dumpsv1.Pr" + + "ofileContext.EventTypeStateEntry\022\020\n\010sysc" + + "alls\030\004 \003(\r\022\014\n\004tags\030\005 \003(\t\032\\\n\023EventTypeSta" + + "teEntry\022\013\n\003key\030\001 \001(\r\0224\n\005value\030\002 \001(\0132%.da" + + "tadog.cws.dumpsv1.event_type_state:\0028\001\"\274" + + "\002\n\017SecurityProfile\022\016\n\006status\030\001 \001(\r\022/\n\010me" + + "tadata\030\003 \001(\0132\035.datadog.cws.dumpsv1.Metad" + + "ata\0226\n\004tree\030\006 \003(\0132(.datadog.cws.dumpsv1." + + "ProcessActivityNode\022S\n\020profile_contexts\030" + + "\007 \003(\01329.datadog.cws.dumpsv1.SecurityProf" + + "ile.ProfileContextsEntry\032[\n\024ProfileConte" + + "xtsEntry\022\013\n\003key\030\001 \001(\t\0222\n\005value\030\002 \001(\0132#.d" + + "atadog.cws.dumpsv1.ProfileContext:\0028\001\"\300\003" + + "\n\023ProcessActivityNode\0221\n\007process\030\001 \001(\0132 " + + ".datadog.cws.dumpsv1.ProcessInfo\022<\n\017gene" + + "ration_type\030\010 \001(\0162#.datadog.cws.dumpsv1." + + "GenerationType\0227\n\rmatched_rules\030\t \003(\0132 ." + + "datadog.cws.dumpsv1.MatchedRule\022:\n\010child" + + "ren\030\003 \003(\0132(.datadog.cws.dumpsv1.ProcessA" + + "ctivityNode\0224\n\005files\030\004 \003(\0132%.datadog.cws" + + ".dumpsv1.FileActivityNode\022/\n\tdns_names\030\005" + + " \003(\0132\034.datadog.cws.dumpsv1.DNSNode\0220\n\007so" + + "ckets\030\006 \003(\0132\037.datadog.cws.dumpsv1.Socket" + + "Node\022\020\n\010syscalls\030\007 \003(\r\022\022\n\nimage_tags\030\n \003" + + "(\tJ\004\010\002\020\003\"\321\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\022\n\006cookie\030\004 \001(\r" + + "B\002\030\001\022\021\n\tis_thread\030\005 \001(\010\022+\n\004file\030\006 \001(\0132\035." + + "datadog.cws.dumpsv1.FileInfo\022\024\n\014containe" + + "r_id\030\007 \001(\t\022\017\n\007span_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\texit_time\030\r \001(\004\022\021\n\texec_t" + + "ime\030\016 \001(\004\0225\n\013credentials\030\017 \001(\0132 .datadog" + + ".cws.dumpsv1.Credentials\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\016envs_truncated\030\024 \001(\010\022\025\n\ri" + + "s_exec_child\030\025 \001(\010\022\020\n\010cookie64\030\026 \001(\004\"\354\002\n" + + "\020FileActivityNode\0227\n\rmatched_rules\030\t \003(\013" + + "2 .datadog.cws.dumpsv1.MatchedRule\022\022\n\nim" + + "age_tags\030\n \003(\t\022\014\n\004name\030\001 \001(\t\022\022\n\nis_patte" + + "rn\030\007 \001(\010\022+\n\004file\030\002 \001(\0132\035.datadog.cws.dum" + + "psv1.FileInfo\022<\n\017generation_type\030\010 \001(\0162#" + + ".datadog.cws.dumpsv1.GenerationType\022\022\n\nf" + + "irst_seen\030\004 \001(\004\022+\n\004open\030\005 \001(\0132\035.datadog." + + "cws.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\"\206\001\n\007DNSNode\0227\n\rmatc" + + "hed_rules\030\002 \003(\0132 .datadog.cws.dumpsv1.Ma" + + "tchedRule\022\022\n\nimage_tags\030\003 \003(\t\022.\n\010request" + + "s\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\005" + + "class\030\003 \001(\r\022\014\n\004size\030\004 \001(\r\022\r\n\005count\030\005 \001(\r" + + "\"\351\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\005mtime\030\007 \001(\004\022\020\n\010moun" + + "t_id\030\010 \001(\r\022\r\n\005inode\030\t \001(\004\022\026\n\016in_upper_la" + + "yer\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\022\016\n\006hashes\030\021 \003(\t\0222\n\nhash" + + "_state\030\022 \001(\0162\036.datadog.cws.dumpsv1.HashS" + + "tate\"\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\re" + + "ffective_uid\030\005 \001(\r\022\025\n\reffective_gid\030\006 \001(" + + "\r\022\026\n\016effective_user\030\007 \001(\t\022\027\n\017effective_g" + + "roup\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\004bin" + + "d\030\002 \003(\0132\035.datadog.cws.dumpsv1.BindNode\"q" + + "\n\010BindNode\0227\n\rmatched_rules\030\003 \003(\0132 .data" + + "dog.cws.dumpsv1.MatchedRule\022\022\n\nimage_tag" + + "s\030\004 \003(\t\022\014\n\004port\030\001 \001(\r\022\n\n\002ip\030\002 \001(\t\"\325\001\n\013Ma" + + "tchedRule\022\017\n\007rule_id\030\001 \001(\t\022\024\n\014rule_versi" + + "on\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..datad" + + "og.cws.dumpsv1.MatchedRule.RuleTagsEntry" + + "\032/\n\rRuleTagsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" + + "\002 \001(\t:\0028\001\"t\n\020event_type_state\022\031\n\021last_an" + + "omaly_nano\030\001 \001(\004\022E\n\023event_profile_state\030" + + "\002 \001(\0162(.datadog.cws.dumpsv1.event_profil" + + "e_state*\271\001\n\tHashState\022\013\n\007NO_HASH\020\000\022\010\n\004DO" + + "NE\020\001\022\022\n\016FILE_NOT_FOUND\020\002\022\035\n\031PATHNAME_RES" + + "OLUTION_ERROR\020\003\022\020\n\014FILE_TOO_BIG\020\004\022\035\n\031EVE" + + "NT_TYPE_NOT_CONFIGURED\020\005\022\031\n\025HASH_WAS_RAT" + + "E_LIMITED\020\006\022\026\n\022UNKNOWN_HASH_ERROR\020\007*8\n\016G" + + "enerationType\022\013\n\007UNKNOWN\020\000\022\013\n\007RUNTIME\020\001\022" + + "\014\n\010SNAPSHOT\020\002*\220\001\n\023event_profile_state\022\016\n" + + "\nNO_PROFILE\020\000\022\027\n\023PROFILE_AT_MAX_SIZE\020\001\022\024" + + "\n\020UNSTABLE_PROFILE\020\002\022\022\n\016STABLE_PROFILE\020\003" + + "\022\021\n\rAUTO_LEARNING\020\004\022\023\n\017WORKLOAD_WARMUP\020\005" + + "BU\n\022com.dd.cws.adv1.pbB\014SecDumpProtoP\000Z/" + + "github.com/DataDog/agent-payload/v5/cws/" + + "dumpsv1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, @@ -23699,74 +26326,92 @@ public com.dd.cws.adv1.pb.SecDumpProto.MatchedRule getDefaultInstanceForType() { 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 = + internal_static_datadog_cws_dumpsv1_ProfileContext_descriptor = getDescriptor().getMessageTypes().get(2); + internal_static_datadog_cws_dumpsv1_ProfileContext_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datadog_cws_dumpsv1_ProfileContext_descriptor, + new java.lang.String[] { "FirstSeen", "LastSeen", "EventTypeState", "Syscalls", "Tags", }); + internal_static_datadog_cws_dumpsv1_ProfileContext_EventTypeStateEntry_descriptor = + internal_static_datadog_cws_dumpsv1_ProfileContext_descriptor.getNestedTypes().get(0); + internal_static_datadog_cws_dumpsv1_ProfileContext_EventTypeStateEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datadog_cws_dumpsv1_ProfileContext_EventTypeStateEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_datadog_cws_dumpsv1_SecurityProfile_descriptor = + getDescriptor().getMessageTypes().get(3); 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", }); + new java.lang.String[] { "Status", "Metadata", "Tree", "ProfileContexts", }); + internal_static_datadog_cws_dumpsv1_SecurityProfile_ProfileContextsEntry_descriptor = + internal_static_datadog_cws_dumpsv1_SecurityProfile_descriptor.getNestedTypes().get(0); + internal_static_datadog_cws_dumpsv1_SecurityProfile_ProfileContextsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datadog_cws_dumpsv1_SecurityProfile_ProfileContextsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); internal_static_datadog_cws_dumpsv1_ProcessActivityNode_descriptor = - getDescriptor().getMessageTypes().get(3); + getDescriptor().getMessageTypes().get(4); 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", }); + new java.lang.String[] { "Process", "GenerationType", "MatchedRules", "Children", "Files", "DnsNames", "Sockets", "Syscalls", "ImageTags", }); internal_static_datadog_cws_dumpsv1_ProcessInfo_descriptor = - getDescriptor().getMessageTypes().get(4); + getDescriptor().getMessageTypes().get(5); 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", "IsExecChild", "Cookie64", }); internal_static_datadog_cws_dumpsv1_FileActivityNode_descriptor = - getDescriptor().getMessageTypes().get(5); + getDescriptor().getMessageTypes().get(6); 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", }); + new java.lang.String[] { "MatchedRules", "ImageTags", "Name", "IsPattern", "File", "GenerationType", "FirstSeen", "Open", "Children", }); internal_static_datadog_cws_dumpsv1_OpenNode_descriptor = - getDescriptor().getMessageTypes().get(6); + getDescriptor().getMessageTypes().get(7); 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); + getDescriptor().getMessageTypes().get(8); 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", }); + new java.lang.String[] { "MatchedRules", "ImageTags", "Requests", }); internal_static_datadog_cws_dumpsv1_DNSInfo_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(9); 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); + getDescriptor().getMessageTypes().get(10); 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", "Hashes", "HashState", }); internal_static_datadog_cws_dumpsv1_Credentials_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(11); 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); + getDescriptor().getMessageTypes().get(12); 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); + getDescriptor().getMessageTypes().get(13); 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", }); + new java.lang.String[] { "MatchedRules", "ImageTags", "Port", "Ip", }); internal_static_datadog_cws_dumpsv1_MatchedRule_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(14); internal_static_datadog_cws_dumpsv1_MatchedRule_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_datadog_cws_dumpsv1_MatchedRule_descriptor, @@ -23777,6 +26422,12 @@ public com.dd.cws.adv1.pb.SecDumpProto.MatchedRule getDefaultInstanceForType() { com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_datadog_cws_dumpsv1_MatchedRule_RuleTagsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); + internal_static_datadog_cws_dumpsv1_event_type_state_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_datadog_cws_dumpsv1_event_type_state_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datadog_cws_dumpsv1_event_type_state_descriptor, + new java.lang.String[] { "LastAnomalyNano", "EventProfileState", }); } // @@protoc_insertion_point(outer_class_scope) diff --git a/proto/cws/dumpsv1/activity_dump.proto b/proto/cws/dumpsv1/activity_dump.proto index 360f5061..482e5846 100644 --- a/proto/cws/dumpsv1/activity_dump.proto +++ b/proto/cws/dumpsv1/activity_dump.proto @@ -37,13 +37,19 @@ message Metadata { string serialization = 14; } +message ProfileContext { + uint64 first_seen = 1; + uint64 last_seen = 2; + map event_type_state = 3; + repeated uint32 syscalls = 4; + repeated string tags = 5; +} + message SecurityProfile { uint32 status = 1; - string version = 2; Metadata metadata = 3; - repeated string tags = 4; - repeated uint32 syscalls = 5; repeated ProcessActivityNode tree = 6; + map profile_contexts = 7; } message ProcessActivityNode { @@ -57,6 +63,7 @@ message ProcessActivityNode { repeated DNSNode dns_names = 5; repeated SocketNode sockets = 6; repeated uint32 syscalls = 7; + repeated string image_tags = 10; } message ProcessInfo { @@ -94,6 +101,7 @@ message ProcessInfo { message FileActivityNode { repeated MatchedRule matched_rules = 9; + repeated string image_tags = 10; string name = 1; bool is_pattern = 7; @@ -115,6 +123,7 @@ message OpenNode { message DNSNode { repeated MatchedRule matched_rules = 2; + repeated string image_tags = 3; repeated DNSInfo requests = 1; } @@ -192,6 +201,7 @@ message SocketNode { message BindNode { repeated MatchedRule matched_rules = 3; + repeated string image_tags = 4; uint32 port = 1; string ip = 2; @@ -210,3 +220,17 @@ message MatchedRule { string policy_version = 4; map rule_tags = 5; } + +enum event_profile_state { + NO_PROFILE = 0; + PROFILE_AT_MAX_SIZE = 1; + UNSTABLE_PROFILE = 2; + STABLE_PROFILE = 3; + AUTO_LEARNING = 4; + WORKLOAD_WARMUP = 5; +} + +message event_type_state { + uint64 last_anomaly_nano = 1; + event_profile_state event_profile_state = 2; +}