diff --git a/Rakefile b/Rakefile index 45b24d82..c5a11b26 100644 --- a/Rakefile +++ b/Rakefile @@ -87,9 +87,6 @@ BASH popd - echo "Generating process proto" - PATH=/tmp/gogo-bin-d76fbc1373015ced59b43ac267f28d546b955683 #{protoc_binary} --proto_path=$GOPATH/src:#{gogo_dir}/src:. --gogofaster_out=$GOPATH/src proto/process/*.proto - # Install protoc-gen-go GOPATH=#{protoc_gen_go_dir} go install google.golang.org/protobuf/cmd/protoc-gen-go@latest @@ -119,6 +116,13 @@ BASH --go-vtproto_opt=pool=github.com/DataDog/agent-payload/v5/cws/dumpsv1.ProcessInfo \ proto/cws/dumpsv1/activity_dump.proto + echo "Generating NPM Connections" + PATH=#{protoc_gen_go_dir}/bin #{protoc_binary_2} --proto_path=$GOPATH/src:. \ + --go_out=$GOPATH/src \ + --go-vtproto_out=$GOPATH/src \ + --go-vtproto_opt=features=pool+marshal+unmarshal+size+equal \ + proto/process/*.proto + cp -r v5/* . rm -rf v5 BASH diff --git a/go.mod b/go.mod index 1e8ca98d..89e21925 100644 --- a/go.mod +++ b/go.mod @@ -9,7 +9,7 @@ require ( github.com/gogo/protobuf v1.0.0 github.com/golang/protobuf v1.5.0 github.com/stretchr/testify v1.3.0 - google.golang.org/protobuf v1.28.1 + google.golang.org/protobuf v1.31.0 ) require ( diff --git a/go.sum b/go.sum index 90df693f..8809b97e 100644 --- a/go.sum +++ b/go.sum @@ -9,17 +9,50 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/gogo/protobuf v1.0.0 h1:2jyBKDKU/8v3v2xVR2PtiWQviFUyiaGk2rpfyFT8rTM= github.com/gogo/protobuf v1.0.0/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= +github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= +github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= github.com/golang/protobuf v1.5.0 h1:LUVKkCeviFUMKqHa4tXIIij/lbhnMbP7Fn5wKdKkRh4= github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= github.com/google/go-cmp v0.5.5 h1:Khx7svrCpmxxtHBq5j2mp/xVjsi8hQMfNLvJFAlrGgU= github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= +github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/testify v1.3.0 h1:TivCn/peBQ7UY8ooIcPgZFpTNSz0Q2U6UrFlUfqbe0Q= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= +github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= +golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= +golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE= +golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= google.golang.org/protobuf v1.28.1 h1:d0NfwRgPtno5B1Wa6L2DAG+KivqkdutMf1UhdNx175w= google.golang.org/protobuf v1.28.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= +google.golang.org/protobuf v1.31.0 h1:g0LDEJHgrBl9N9r17Ru3sqWhkIx2NB67okBHPwC7hs8= +google.golang.org/protobuf v1.31.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= diff --git a/process/agent.pb.go b/process/agent.pb.go index 0f147489..c66fd30c 100644 --- a/process/agent.pb.go +++ b/process/agent.pb.go @@ -1,197 +1,24 @@ -// Code generated by protoc-gen-gogo. +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.31.0 +// protoc v3.21.12 // source: proto/process/agent.proto -// DO NOT EDIT! - -/* - Package process is a generated protocol buffer package. - - It is generated from these files: - proto/process/agent.proto - proto/process/connections.proto - proto/process/events.proto - - It has these top-level messages: - ResCollector - CollectorProc - CollectorProcDiscovery - CollectorRealTime - CollectorContainer - CollectorContainerRealTime - CollectorReqStatus - CollectorPod - CollectorReplicaSet - CollectorDeployment - CollectorService - CollectorNode - CollectorCluster - CollectorManifest - CollectorManifestCRD - CollectorManifestCR - CollectorNamespace - CollectorJob - CollectorCronJob - CollectorDaemonSet - CollectorStatefulSet - CollectorPersistentVolume - CollectorPersistentVolumeClaim - CollectorRole - CollectorRoleBinding - CollectorClusterRole - CollectorClusterRoleBinding - CollectorServiceAccount - CollectorIngress - CollectorVerticalPodAutoscaler - CollectorStatus - Process - ProcessDiscovery - Command - ProcessUser - ProcessNetworks - ContainerAddr - Container - ProcessStat - ProcStatsWithPerm - ProcStatsWithPermByPID - ContainerStat - SystemInfo - OSInfo - IOStat - MemoryStat - CPUStat - SingleCPUStat - CPUInfo - Host - Cluster - Metadata - OwnerReference - ObjectReference - ServicePort - ServiceSessionAffinityConfig - Node - NodeStatus - NodeCondition - ContainerImage - Taint - ServiceSpec - ServiceStatus - Service - DeploymentCondition - Deployment - ReplicaSetCondition - ReplicaSet - LabelSelectorRequirement - Pod - PodCondition - ContainerStatus - Manifest - NamespaceCondition - Namespace - ResourceRequirements - ResourceMetrics - JobSpec - JobStatus - JobCondition - Job - CronJobSpec - CronJobStatus - CronJob - DaemonSetSpec - DaemonSetStatus - DaemonSetCondition - DaemonSet - StatefulSetSpec - StatefulSetStatus - StatefulSetCondition - StatefulSet - PersistentVolume - PersistentVolumeSpec - PersistentVolumeSource - GCEPersistentDiskVolumeSource - AWSElasticBlockStoreVolumeSource - AzureFilePersistentVolumeSource - AzureDiskVolumeSource - CSIVolumeSource - SecretReference - PersistentVolumeStatus - NodeSelectorTerm - PersistentVolumeClaim - PersistentVolumeClaimStatus - PersistentVolumeClaimSpec - TypedLocalObjectReference - PersistentVolumeClaimCondition - PolicyRule - Subject - Role - RoleBinding - ClusterRole - ClusterRoleBinding - ServiceAccount - IngressServiceBackend - IngressBackend - IngressTLS - HTTPIngressPath - IngressRule - IngressSpec - PortStatus - LoadBalancerIngress - IngressStatus - Ingress - KafkaRequestHeader - KafkaAggregation - DataStreamsAggregations - HTTPAggregations - HTTP2Aggregations - HTTPStats - DNSDatabaseEntry - ResourceList - VerticalPodAutoscaler - VerticalPodAutoscalerCondition - VerticalPodAutoscalerSpec - VerticalPodAutoscalerTarget - ContainerResourcePolicy - VerticalPodAutoscalerStatus - ContainerRecommendation - VPACondition - CollectorConnections - Connections - Connection - ResourceMetadata - ConnectionsTelemetry - CollectorConnectionsTelemetry - RuntimeCompilationTelemetry - AgentConfiguration - Route - Subnet - RouteMetadata - IPTranslation - Addr - ProtocolStack - DNSEntry - DNSStats - DNSStatsByQueryType - CollectorProcEvent - ProcessEvent - ProcessExec - ProcessExit -*/ -package process - -import proto "github.com/gogo/protobuf/proto" -import fmt "fmt" -import math "math" -import io "io" +package process -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) // ContainerHostType is a enum that represents the type of host detected for container collection. // Sometimes containers are running on host-less environment, we'll need additional information to identify them @@ -204,21 +31,46 @@ const ( ContainerHostType_fargateEKS ContainerHostType = 2 ) -var ContainerHostType_name = map[int32]string{ - 0: "notSpecified", - 1: "fargateECS", - 2: "fargateEKS", -} -var ContainerHostType_value = map[string]int32{ - "notSpecified": 0, - "fargateECS": 1, - "fargateEKS": 2, +// Enum value maps for ContainerHostType. +var ( + ContainerHostType_name = map[int32]string{ + 0: "notSpecified", + 1: "fargateECS", + 2: "fargateEKS", + } + ContainerHostType_value = map[string]int32{ + "notSpecified": 0, + "fargateECS": 1, + "fargateEKS": 2, + } +) + +func (x ContainerHostType) Enum() *ContainerHostType { + p := new(ContainerHostType) + *p = x + return p } func (x ContainerHostType) String() string { - return proto.EnumName(ContainerHostType_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ContainerHostType) Descriptor() protoreflect.EnumDescriptor { + return file_proto_process_agent_proto_enumTypes[0].Descriptor() +} + +func (ContainerHostType) Type() protoreflect.EnumType { + return &file_proto_process_agent_proto_enumTypes[0] +} + +func (x ContainerHostType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ContainerHostType.Descriptor instead. +func (ContainerHostType) EnumDescriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{0} } -func (ContainerHostType) EnumDescriptor() ([]byte, []int) { return fileDescriptorAgent, []int{0} } // status section in https://docs.docker.com/engine/api/v1.29/#tag/Container type ContainerState int32 @@ -233,29 +85,54 @@ const ( ContainerState_dead ContainerState = 6 ) -var ContainerState_name = map[int32]string{ - 0: "unknown", - 1: "created", - 2: "restarting", - 3: "running", - 4: "paused", - 5: "exited", - 6: "dead", -} -var ContainerState_value = map[string]int32{ - "unknown": 0, - "created": 1, - "restarting": 2, - "running": 3, - "paused": 4, - "exited": 5, - "dead": 6, +// Enum value maps for ContainerState. +var ( + ContainerState_name = map[int32]string{ + 0: "unknown", + 1: "created", + 2: "restarting", + 3: "running", + 4: "paused", + 5: "exited", + 6: "dead", + } + ContainerState_value = map[string]int32{ + "unknown": 0, + "created": 1, + "restarting": 2, + "running": 3, + "paused": 4, + "exited": 5, + "dead": 6, + } +) + +func (x ContainerState) Enum() *ContainerState { + p := new(ContainerState) + *p = x + return p } func (x ContainerState) String() string { - return proto.EnumName(ContainerState_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ContainerState) Descriptor() protoreflect.EnumDescriptor { + return file_proto_process_agent_proto_enumTypes[1].Descriptor() +} + +func (ContainerState) Type() protoreflect.EnumType { + return &file_proto_process_agent_proto_enumTypes[1] +} + +func (x ContainerState) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ContainerState.Descriptor instead. +func (ContainerState) EnumDescriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{1} } -func (ContainerState) EnumDescriptor() ([]byte, []int) { return fileDescriptorAgent, []int{1} } // https://blog.couchbase.com/docker-health-check-keeping-containers-healthy/ // health can be: starting, healthy, unhealthy @@ -268,29 +145,54 @@ const ( ContainerHealth_unhealthy ContainerHealth = 3 ) -var ContainerHealth_name = map[int32]string{ - 0: "unknownHealth", - 1: "starting", - 2: "healthy", - 3: "unhealthy", -} -var ContainerHealth_value = map[string]int32{ - "unknownHealth": 0, - "starting": 1, - "healthy": 2, - "unhealthy": 3, +// Enum value maps for ContainerHealth. +var ( + ContainerHealth_name = map[int32]string{ + 0: "unknownHealth", + 1: "starting", + 2: "healthy", + 3: "unhealthy", + } + ContainerHealth_value = map[string]int32{ + "unknownHealth": 0, + "starting": 1, + "healthy": 2, + "unhealthy": 3, + } +) + +func (x ContainerHealth) Enum() *ContainerHealth { + p := new(ContainerHealth) + *p = x + return p } func (x ContainerHealth) String() string { - return proto.EnumName(ContainerHealth_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ContainerHealth) Descriptor() protoreflect.EnumDescriptor { + return file_proto_process_agent_proto_enumTypes[2].Descriptor() +} + +func (ContainerHealth) Type() protoreflect.EnumType { + return &file_proto_process_agent_proto_enumTypes[2] +} + +func (x ContainerHealth) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ContainerHealth.Descriptor instead. +func (ContainerHealth) EnumDescriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{2} } -func (ContainerHealth) EnumDescriptor() ([]byte, []int) { return fileDescriptorAgent, []int{2} } // Process state codes in http://wiki.preshweb.co.uk/doku.php?id=linux:psflags type ProcessState int32 const ( - ProcessState_U ProcessState = 0 + ProcessState_U ProcessState = 0 // unknown state ProcessState_D ProcessState = 1 ProcessState_R ProcessState = 2 ProcessState_S ProcessState = 3 @@ -300,31 +202,56 @@ const ( ProcessState_Z ProcessState = 7 ) -var ProcessState_name = map[int32]string{ - 0: "U", - 1: "D", - 2: "R", - 3: "S", - 4: "T", - 5: "W", - 6: "X", - 7: "Z", -} -var ProcessState_value = map[string]int32{ - "U": 0, - "D": 1, - "R": 2, - "S": 3, - "T": 4, - "W": 5, - "X": 6, - "Z": 7, +// Enum value maps for ProcessState. +var ( + ProcessState_name = map[int32]string{ + 0: "U", + 1: "D", + 2: "R", + 3: "S", + 4: "T", + 5: "W", + 6: "X", + 7: "Z", + } + ProcessState_value = map[string]int32{ + "U": 0, + "D": 1, + "R": 2, + "S": 3, + "T": 4, + "W": 5, + "X": 6, + "Z": 7, + } +) + +func (x ProcessState) Enum() *ProcessState { + p := new(ProcessState) + *p = x + return p } func (x ProcessState) String() string { - return proto.EnumName(ProcessState_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ProcessState) Descriptor() protoreflect.EnumDescriptor { + return file_proto_process_agent_proto_enumTypes[3].Descriptor() +} + +func (ProcessState) Type() protoreflect.EnumType { + return &file_proto_process_agent_proto_enumTypes[3] +} + +func (x ProcessState) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ProcessState.Descriptor instead. +func (ProcessState) EnumDescriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{3} } -func (ProcessState) EnumDescriptor() ([]byte, []int) { return fileDescriptorAgent, []int{3} } type ConnectionType int32 @@ -333,19 +260,44 @@ const ( ConnectionType_udp ConnectionType = 1 ) -var ConnectionType_name = map[int32]string{ - 0: "tcp", - 1: "udp", -} -var ConnectionType_value = map[string]int32{ - "tcp": 0, - "udp": 1, +// Enum value maps for ConnectionType. +var ( + ConnectionType_name = map[int32]string{ + 0: "tcp", + 1: "udp", + } + ConnectionType_value = map[string]int32{ + "tcp": 0, + "udp": 1, + } +) + +func (x ConnectionType) Enum() *ConnectionType { + p := new(ConnectionType) + *p = x + return p } func (x ConnectionType) String() string { - return proto.EnumName(ConnectionType_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ConnectionType) Descriptor() protoreflect.EnumDescriptor { + return file_proto_process_agent_proto_enumTypes[4].Descriptor() +} + +func (ConnectionType) Type() protoreflect.EnumType { + return &file_proto_process_agent_proto_enumTypes[4] +} + +func (x ConnectionType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ConnectionType.Descriptor instead. +func (ConnectionType) EnumDescriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{4} } -func (ConnectionType) EnumDescriptor() ([]byte, []int) { return fileDescriptorAgent, []int{4} } type K8SResource int32 @@ -375,61 +327,86 @@ const ( K8SResource_VERTICALPODAUTOSCALER K8SResource = 22 ) -var K8SResource_name = map[int32]string{ - 0: "K8SRESOURCE_UNSPECIFIED", - 1: "POD", - 2: "REPLICASET", - 3: "SERVICE", - 4: "NODE", - 5: "CLUSTER", - 6: "JOB", - 7: "CRONJOB", - 8: "DAEMONSET", - 9: "STATEFULSET", - 10: "PERSISTENTVOLUME", - 11: "PERSISTENTVOLUMECLAIM", - 12: "ROLE", - 13: "ROLEBINDING", - 14: "CLUSTERROLE", - 15: "CLUSTERROLEBINDING", - 16: "SERVICEACCOUNT", - 17: "INGRESS", - 18: "DEPLOYMENT", - 19: "NAMESPACE", - 20: "CRD", - 21: "CR", - 22: "VERTICALPODAUTOSCALER", -} -var K8SResource_value = map[string]int32{ - "K8SRESOURCE_UNSPECIFIED": 0, - "POD": 1, - "REPLICASET": 2, - "SERVICE": 3, - "NODE": 4, - "CLUSTER": 5, - "JOB": 6, - "CRONJOB": 7, - "DAEMONSET": 8, - "STATEFULSET": 9, - "PERSISTENTVOLUME": 10, - "PERSISTENTVOLUMECLAIM": 11, - "ROLE": 12, - "ROLEBINDING": 13, - "CLUSTERROLE": 14, - "CLUSTERROLEBINDING": 15, - "SERVICEACCOUNT": 16, - "INGRESS": 17, - "DEPLOYMENT": 18, - "NAMESPACE": 19, - "CRD": 20, - "CR": 21, - "VERTICALPODAUTOSCALER": 22, +// Enum value maps for K8SResource. +var ( + K8SResource_name = map[int32]string{ + 0: "K8SRESOURCE_UNSPECIFIED", + 1: "POD", + 2: "REPLICASET", + 3: "SERVICE", + 4: "NODE", + 5: "CLUSTER", + 6: "JOB", + 7: "CRONJOB", + 8: "DAEMONSET", + 9: "STATEFULSET", + 10: "PERSISTENTVOLUME", + 11: "PERSISTENTVOLUMECLAIM", + 12: "ROLE", + 13: "ROLEBINDING", + 14: "CLUSTERROLE", + 15: "CLUSTERROLEBINDING", + 16: "SERVICEACCOUNT", + 17: "INGRESS", + 18: "DEPLOYMENT", + 19: "NAMESPACE", + 20: "CRD", + 21: "CR", + 22: "VERTICALPODAUTOSCALER", + } + K8SResource_value = map[string]int32{ + "K8SRESOURCE_UNSPECIFIED": 0, + "POD": 1, + "REPLICASET": 2, + "SERVICE": 3, + "NODE": 4, + "CLUSTER": 5, + "JOB": 6, + "CRONJOB": 7, + "DAEMONSET": 8, + "STATEFULSET": 9, + "PERSISTENTVOLUME": 10, + "PERSISTENTVOLUMECLAIM": 11, + "ROLE": 12, + "ROLEBINDING": 13, + "CLUSTERROLE": 14, + "CLUSTERROLEBINDING": 15, + "SERVICEACCOUNT": 16, + "INGRESS": 17, + "DEPLOYMENT": 18, + "NAMESPACE": 19, + "CRD": 20, + "CR": 21, + "VERTICALPODAUTOSCALER": 22, + } +) + +func (x K8SResource) Enum() *K8SResource { + p := new(K8SResource) + *p = x + return p } func (x K8SResource) String() string { - return proto.EnumName(K8SResource_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (K8SResource) Descriptor() protoreflect.EnumDescriptor { + return file_proto_process_agent_proto_enumTypes[5].Descriptor() +} + +func (K8SResource) Type() protoreflect.EnumType { + return &file_proto_process_agent_proto_enumTypes[5] +} + +func (x K8SResource) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use K8SResource.Descriptor instead. +func (K8SResource) EnumDescriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{5} } -func (K8SResource) EnumDescriptor() ([]byte, []int) { return fileDescriptorAgent, []int{5} } type ResourceRequirementsType int32 @@ -440,55 +417,103 @@ const ( ResourceRequirementsType_ephemeralContainer ResourceRequirementsType = 3 ) -var ResourceRequirementsType_name = map[int32]string{ - 0: "unknownType", - 1: "container", - 2: "initContainer", - 3: "ephemeralContainer", -} -var ResourceRequirementsType_value = map[string]int32{ - "unknownType": 0, - "container": 1, - "initContainer": 2, - "ephemeralContainer": 3, +// Enum value maps for ResourceRequirementsType. +var ( + ResourceRequirementsType_name = map[int32]string{ + 0: "unknownType", + 1: "container", + 2: "initContainer", + 3: "ephemeralContainer", + } + ResourceRequirementsType_value = map[string]int32{ + "unknownType": 0, + "container": 1, + "initContainer": 2, + "ephemeralContainer": 3, + } +) + +func (x ResourceRequirementsType) Enum() *ResourceRequirementsType { + p := new(ResourceRequirementsType) + *p = x + return p } func (x ResourceRequirementsType) String() string { - return proto.EnumName(ResourceRequirementsType_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } + +func (ResourceRequirementsType) Descriptor() protoreflect.EnumDescriptor { + return file_proto_process_agent_proto_enumTypes[6].Descriptor() +} + +func (ResourceRequirementsType) Type() protoreflect.EnumType { + return &file_proto_process_agent_proto_enumTypes[6] +} + +func (x ResourceRequirementsType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ResourceRequirementsType.Descriptor instead. func (ResourceRequirementsType) EnumDescriptor() ([]byte, []int) { - return fileDescriptorAgent, []int{6} + return file_proto_process_agent_proto_rawDescGZIP(), []int{6} } type HTTPResponseStatus int32 const ( - HTTPResponseStatus_Info HTTPResponseStatus = 0 - HTTPResponseStatus_Success HTTPResponseStatus = 1 - HTTPResponseStatus_Redirect HTTPResponseStatus = 2 - HTTPResponseStatus_ClientErr HTTPResponseStatus = 3 - HTTPResponseStatus_ServerErr HTTPResponseStatus = 4 + HTTPResponseStatus_Info HTTPResponseStatus = 0 // 1XX response + HTTPResponseStatus_Success HTTPResponseStatus = 1 // 2XX + HTTPResponseStatus_Redirect HTTPResponseStatus = 2 // 3XX + HTTPResponseStatus_ClientErr HTTPResponseStatus = 3 // 4XX + HTTPResponseStatus_ServerErr HTTPResponseStatus = 4 // 5XX ) -var HTTPResponseStatus_name = map[int32]string{ - 0: "Info", - 1: "Success", - 2: "Redirect", - 3: "ClientErr", - 4: "ServerErr", -} -var HTTPResponseStatus_value = map[string]int32{ - "Info": 0, - "Success": 1, - "Redirect": 2, - "ClientErr": 3, - "ServerErr": 4, +// Enum value maps for HTTPResponseStatus. +var ( + HTTPResponseStatus_name = map[int32]string{ + 0: "Info", + 1: "Success", + 2: "Redirect", + 3: "ClientErr", + 4: "ServerErr", + } + HTTPResponseStatus_value = map[string]int32{ + "Info": 0, + "Success": 1, + "Redirect": 2, + "ClientErr": 3, + "ServerErr": 4, + } +) + +func (x HTTPResponseStatus) Enum() *HTTPResponseStatus { + p := new(HTTPResponseStatus) + *p = x + return p } func (x HTTPResponseStatus) String() string { - return proto.EnumName(HTTPResponseStatus_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (HTTPResponseStatus) Descriptor() protoreflect.EnumDescriptor { + return file_proto_process_agent_proto_enumTypes[7].Descriptor() +} + +func (HTTPResponseStatus) Type() protoreflect.EnumType { + return &file_proto_process_agent_proto_enumTypes[7] +} + +func (x HTTPResponseStatus) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use HTTPResponseStatus.Descriptor instead. +func (HTTPResponseStatus) EnumDescriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{7} } -func (HTTPResponseStatus) EnumDescriptor() ([]byte, []int) { return fileDescriptorAgent, []int{7} } type HTTPMethod int32 @@ -503,223 +528,344 @@ const ( HTTPMethod_Patch HTTPMethod = 7 ) -var HTTPMethod_name = map[int32]string{ - 0: "Unknown", - 1: "Get", - 2: "Post", - 3: "Put", - 4: "Delete", - 5: "Head", - 6: "Options", - 7: "Patch", -} -var HTTPMethod_value = map[string]int32{ - "Unknown": 0, - "Get": 1, - "Post": 2, - "Put": 3, - "Delete": 4, - "Head": 5, - "Options": 6, - "Patch": 7, +// Enum value maps for HTTPMethod. +var ( + HTTPMethod_name = map[int32]string{ + 0: "Unknown", + 1: "Get", + 2: "Post", + 3: "Put", + 4: "Delete", + 5: "Head", + 6: "Options", + 7: "Patch", + } + HTTPMethod_value = map[string]int32{ + "Unknown": 0, + "Get": 1, + "Post": 2, + "Put": 3, + "Delete": 4, + "Head": 5, + "Options": 6, + "Patch": 7, + } +) + +func (x HTTPMethod) Enum() *HTTPMethod { + p := new(HTTPMethod) + *p = x + return p } func (x HTTPMethod) String() string { - return proto.EnumName(HTTPMethod_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (HTTPMethod) Descriptor() protoreflect.EnumDescriptor { + return file_proto_process_agent_proto_enumTypes[8].Descriptor() +} + +func (HTTPMethod) Type() protoreflect.EnumType { + return &file_proto_process_agent_proto_enumTypes[8] +} + +func (x HTTPMethod) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use HTTPMethod.Descriptor instead. +func (HTTPMethod) EnumDescriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{8} } -func (HTTPMethod) EnumDescriptor() ([]byte, []int) { return fileDescriptorAgent, []int{8} } type ResCollector struct { - Header *ResCollector_Header `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Header *ResCollector_Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` - Status *CollectorStatus `protobuf:"bytes,3,opt,name=status" json:"status,omitempty"` + Status *CollectorStatus `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` } -func (m *ResCollector) Reset() { *m = ResCollector{} } -func (m *ResCollector) String() string { return proto.CompactTextString(m) } -func (*ResCollector) ProtoMessage() {} -func (*ResCollector) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{0} } +func (x *ResCollector) Reset() { + *x = ResCollector{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} -func (m *ResCollector) GetHeader() *ResCollector_Header { - if m != nil { - return m.Header +func (x *ResCollector) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ResCollector) ProtoMessage() {} + +func (x *ResCollector) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -func (m *ResCollector) GetStatus() *CollectorStatus { - if m != nil { - return m.Status +// Deprecated: Use ResCollector.ProtoReflect.Descriptor instead. +func (*ResCollector) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{0} +} + +func (x *ResCollector) GetHeader() *ResCollector_Header { + if x != nil { + return x.Header } return nil } -// Header must exist at position 1 for compatibility -// with older version of the Agent. We should be able -// to drop this at some point. -type ResCollector_Header struct { - Type int32 `protobuf:"varint,4,opt,name=type,proto3" json:"type,omitempty"` +func (x *ResCollector) GetMessage() string { + if x != nil { + return x.Message + } + return "" } -func (m *ResCollector_Header) Reset() { *m = ResCollector_Header{} } -func (m *ResCollector_Header) String() string { return proto.CompactTextString(m) } -func (*ResCollector_Header) ProtoMessage() {} -func (*ResCollector_Header) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{0, 0} } +func (x *ResCollector) GetStatus() *CollectorStatus { + if x != nil { + return x.Status + } + return nil +} type CollectorProc struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + HostName string `protobuf:"bytes,2,opt,name=hostName,proto3" json:"hostName,omitempty"` NetworkId string `protobuf:"bytes,11,opt,name=networkId,proto3" json:"networkId,omitempty"` - Processes []*Process `protobuf:"bytes,3,rep,name=processes" json:"processes,omitempty"` - Host *Host `protobuf:"bytes,4,opt,name=host" json:"host,omitempty"` - Info *SystemInfo `protobuf:"bytes,5,opt,name=info" json:"info,omitempty"` + Processes []*Process `protobuf:"bytes,3,rep,name=processes,proto3" json:"processes,omitempty"` + Host *Host `protobuf:"bytes,4,opt,name=host,proto3" json:"host,omitempty"` + Info *SystemInfo `protobuf:"bytes,5,opt,name=info,proto3" json:"info,omitempty"` GroupId int32 `protobuf:"varint,6,opt,name=groupId,proto3" json:"groupId,omitempty"` GroupSize int32 `protobuf:"varint,7,opt,name=groupSize,proto3" json:"groupSize,omitempty"` - Containers []*Container `protobuf:"bytes,10,rep,name=containers" json:"containers,omitempty"` + Containers []*Container `protobuf:"bytes,10,rep,name=containers,proto3" json:"containers,omitempty"` ContainerHostType ContainerHostType `protobuf:"varint,12,opt,name=containerHostType,proto3,enum=datadog.process_agent.ContainerHostType" json:"containerHostType,omitempty"` - // Types that are valid to be assigned to Hints: + // Types that are assignable to Hints: // *CollectorProc_HintMask Hints isCollectorProc_Hints `protobuf_oneof:"hints"` } -func (m *CollectorProc) Reset() { *m = CollectorProc{} } -func (m *CollectorProc) String() string { return proto.CompactTextString(m) } -func (*CollectorProc) ProtoMessage() {} -func (*CollectorProc) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{1} } +func (x *CollectorProc) Reset() { + *x = CollectorProc{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} -type isCollectorProc_Hints interface { - isCollectorProc_Hints() - MarshalTo([]byte) (int, error) - Size() int +func (x *CollectorProc) String() string { + return protoimpl.X.MessageStringOf(x) } -type CollectorProc_HintMask struct { - HintMask int32 `protobuf:"varint,14,opt,name=hintMask,proto3,oneof"` +func (*CollectorProc) ProtoMessage() {} + +func (x *CollectorProc) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (*CollectorProc_HintMask) isCollectorProc_Hints() {} +// Deprecated: Use CollectorProc.ProtoReflect.Descriptor instead. +func (*CollectorProc) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{1} +} -func (m *CollectorProc) GetHints() isCollectorProc_Hints { - if m != nil { - return m.Hints +func (x *CollectorProc) GetHostName() string { + if x != nil { + return x.HostName } - return nil + return "" } -func (m *CollectorProc) GetProcesses() []*Process { - if m != nil { - return m.Processes +func (x *CollectorProc) GetNetworkId() string { + if x != nil { + return x.NetworkId } - return nil + return "" } -func (m *CollectorProc) GetHost() *Host { - if m != nil { - return m.Host +func (x *CollectorProc) GetProcesses() []*Process { + if x != nil { + return x.Processes } return nil } -func (m *CollectorProc) GetInfo() *SystemInfo { - if m != nil { - return m.Info +func (x *CollectorProc) GetHost() *Host { + if x != nil { + return x.Host } return nil } -func (m *CollectorProc) GetContainers() []*Container { - if m != nil { - return m.Containers +func (x *CollectorProc) GetInfo() *SystemInfo { + if x != nil { + return x.Info } return nil } -func (m *CollectorProc) GetHintMask() int32 { - if x, ok := m.GetHints().(*CollectorProc_HintMask); ok { - return x.HintMask +func (x *CollectorProc) GetGroupId() int32 { + if x != nil { + return x.GroupId } return 0 } -// XXX_OneofFuncs is for the internal use of the proto package. -func (*CollectorProc) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { - return _CollectorProc_OneofMarshaler, _CollectorProc_OneofUnmarshaler, _CollectorProc_OneofSizer, []interface{}{ - (*CollectorProc_HintMask)(nil), +func (x *CollectorProc) GetGroupSize() int32 { + if x != nil { + return x.GroupSize } + return 0 } -func _CollectorProc_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { - m := msg.(*CollectorProc) - // hints - switch x := m.Hints.(type) { - case *CollectorProc_HintMask: - _ = b.EncodeVarint(14<<3 | proto.WireVarint) - _ = b.EncodeVarint(uint64(x.HintMask)) - case nil: - default: - return fmt.Errorf("CollectorProc.Hints has unexpected type %T", x) +func (x *CollectorProc) GetContainers() []*Container { + if x != nil { + return x.Containers } return nil } -func _CollectorProc_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { - m := msg.(*CollectorProc) - switch tag { - case 14: // hints.hintMask - if wire != proto.WireVarint { - return true, proto.ErrInternalBadWireType - } - x, err := b.DecodeVarint() - m.Hints = &CollectorProc_HintMask{int32(x)} - return true, err - default: - return false, nil +func (x *CollectorProc) GetContainerHostType() ContainerHostType { + if x != nil { + return x.ContainerHostType + } + return ContainerHostType_notSpecified +} + +func (m *CollectorProc) GetHints() isCollectorProc_Hints { + if m != nil { + return m.Hints } + return nil } -func _CollectorProc_OneofSizer(msg proto.Message) (n int) { - m := msg.(*CollectorProc) - // hints - switch x := m.Hints.(type) { - case *CollectorProc_HintMask: - n += proto.SizeVarint(14<<3 | proto.WireVarint) - n += proto.SizeVarint(uint64(x.HintMask)) - case nil: - default: - panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) +func (x *CollectorProc) GetHintMask() int32 { + if x, ok := x.GetHints().(*CollectorProc_HintMask); ok { + return x.HintMask } - return n + return 0 +} + +type isCollectorProc_Hints interface { + isCollectorProc_Hints() +} + +type CollectorProc_HintMask struct { + HintMask int32 `protobuf:"varint,14,opt,name=hintMask,proto3,oneof"` } +func (*CollectorProc_HintMask) isCollectorProc_Hints() {} + type CollectorProcDiscovery struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + HostName string `protobuf:"bytes,1,opt,name=hostName,proto3" json:"hostName,omitempty"` GroupId int32 `protobuf:"varint,2,opt,name=groupId,proto3" json:"groupId,omitempty"` GroupSize int32 `protobuf:"varint,3,opt,name=groupSize,proto3" json:"groupSize,omitempty"` - ProcessDiscoveries []*ProcessDiscovery `protobuf:"bytes,4,rep,name=processDiscoveries" json:"processDiscoveries,omitempty"` - Host *Host `protobuf:"bytes,5,opt,name=host" json:"host,omitempty"` + ProcessDiscoveries []*ProcessDiscovery `protobuf:"bytes,4,rep,name=processDiscoveries,proto3" json:"processDiscoveries,omitempty"` + Host *Host `protobuf:"bytes,5,opt,name=host,proto3" json:"host,omitempty"` +} + +func (x *CollectorProcDiscovery) Reset() { + *x = CollectorProcDiscovery{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CollectorProcDiscovery) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CollectorProcDiscovery) Reset() { *m = CollectorProcDiscovery{} } -func (m *CollectorProcDiscovery) String() string { return proto.CompactTextString(m) } -func (*CollectorProcDiscovery) ProtoMessage() {} -func (*CollectorProcDiscovery) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{2} } +func (*CollectorProcDiscovery) ProtoMessage() {} -func (m *CollectorProcDiscovery) GetProcessDiscoveries() []*ProcessDiscovery { - if m != nil { - return m.ProcessDiscoveries +func (x *CollectorProcDiscovery) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CollectorProcDiscovery.ProtoReflect.Descriptor instead. +func (*CollectorProcDiscovery) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{2} +} + +func (x *CollectorProcDiscovery) GetHostName() string { + if x != nil { + return x.HostName + } + return "" +} + +func (x *CollectorProcDiscovery) GetGroupId() int32 { + if x != nil { + return x.GroupId + } + return 0 +} + +func (x *CollectorProcDiscovery) GetGroupSize() int32 { + if x != nil { + return x.GroupSize + } + return 0 +} + +func (x *CollectorProcDiscovery) GetProcessDiscoveries() []*ProcessDiscovery { + if x != nil { + return x.ProcessDiscoveries } return nil } -func (m *CollectorProcDiscovery) GetHost() *Host { - if m != nil { - return m.Host +func (x *CollectorProcDiscovery) GetHost() *Host { + if x != nil { + return x.Host } return nil } type CollectorRealTime struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + HostName string `protobuf:"bytes,2,opt,name=hostName,proto3" json:"hostName,omitempty"` - Stats []*ProcessStat `protobuf:"bytes,3,rep,name=stats" json:"stats,omitempty"` + Stats []*ProcessStat `protobuf:"bytes,3,rep,name=stats,proto3" json:"stats,omitempty"` // Post-resolved fields HostId int64 `protobuf:"varint,4,opt,name=hostId,proto3" json:"hostId,omitempty"` OrgId int32 `protobuf:"varint,5,opt,name=orgId,proto3" json:"orgId,omitempty"` @@ -727,48517 +873,17047 @@ type CollectorRealTime struct { GroupSize int32 `protobuf:"varint,7,opt,name=groupSize,proto3" json:"groupSize,omitempty"` NumCpus int32 `protobuf:"varint,8,opt,name=numCpus,proto3" json:"numCpus,omitempty"` TotalMemory int64 `protobuf:"varint,9,opt,name=totalMemory,proto3" json:"totalMemory,omitempty"` - ContainerStats []*ContainerStat `protobuf:"bytes,10,rep,name=containerStats" json:"containerStats,omitempty"` + ContainerStats []*ContainerStat `protobuf:"bytes,10,rep,name=containerStats,proto3" json:"containerStats,omitempty"` ContainerHostType ContainerHostType `protobuf:"varint,11,opt,name=containerHostType,proto3,enum=datadog.process_agent.ContainerHostType" json:"containerHostType,omitempty"` } -func (m *CollectorRealTime) Reset() { *m = CollectorRealTime{} } -func (m *CollectorRealTime) String() string { return proto.CompactTextString(m) } -func (*CollectorRealTime) ProtoMessage() {} -func (*CollectorRealTime) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{3} } - -func (m *CollectorRealTime) GetStats() []*ProcessStat { - if m != nil { - return m.Stats +func (x *CollectorRealTime) Reset() { + *x = CollectorRealTime{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -func (m *CollectorRealTime) GetContainerStats() []*ContainerStat { - if m != nil { - return m.ContainerStats - } - return nil +func (x *CollectorRealTime) String() string { + return protoimpl.X.MessageStringOf(x) } -type CollectorContainer struct { - HostName string `protobuf:"bytes,1,opt,name=hostName,proto3" json:"hostName,omitempty"` - NetworkId string `protobuf:"bytes,11,opt,name=networkId,proto3" json:"networkId,omitempty"` - Info *SystemInfo `protobuf:"bytes,2,opt,name=info" json:"info,omitempty"` - Containers []*Container `protobuf:"bytes,3,rep,name=containers" json:"containers,omitempty"` - GroupId int32 `protobuf:"varint,4,opt,name=groupId,proto3" json:"groupId,omitempty"` - GroupSize int32 `protobuf:"varint,5,opt,name=groupSize,proto3" json:"groupSize,omitempty"` - // Post-resolved fields - Host *Host `protobuf:"bytes,8,opt,name=host" json:"host,omitempty"` - ContainerHostType ContainerHostType `protobuf:"varint,9,opt,name=containerHostType,proto3,enum=datadog.process_agent.ContainerHostType" json:"containerHostType,omitempty"` +func (*CollectorRealTime) ProtoMessage() {} + +func (x *CollectorRealTime) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_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) } -func (m *CollectorContainer) Reset() { *m = CollectorContainer{} } -func (m *CollectorContainer) String() string { return proto.CompactTextString(m) } -func (*CollectorContainer) ProtoMessage() {} -func (*CollectorContainer) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{4} } +// Deprecated: Use CollectorRealTime.ProtoReflect.Descriptor instead. +func (*CollectorRealTime) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{3} +} -func (m *CollectorContainer) GetInfo() *SystemInfo { - if m != nil { - return m.Info +func (x *CollectorRealTime) GetHostName() string { + if x != nil { + return x.HostName } - return nil + return "" } -func (m *CollectorContainer) GetContainers() []*Container { - if m != nil { - return m.Containers +func (x *CollectorRealTime) GetStats() []*ProcessStat { + if x != nil { + return x.Stats } return nil } -func (m *CollectorContainer) GetHost() *Host { - if m != nil { - return m.Host +func (x *CollectorRealTime) GetHostId() int64 { + if x != nil { + return x.HostId } - return nil + return 0 } -type CollectorContainerRealTime struct { - HostName string `protobuf:"bytes,1,opt,name=hostName,proto3" json:"hostName,omitempty"` - Stats []*ContainerStat `protobuf:"bytes,2,rep,name=stats" json:"stats,omitempty"` - // Used for normalization at host-level. - NumCpus int32 `protobuf:"varint,3,opt,name=numCpus,proto3" json:"numCpus,omitempty"` - TotalMemory int64 `protobuf:"varint,4,opt,name=totalMemory,proto3" json:"totalMemory,omitempty"` - // Post-resolved fields - HostId int64 `protobuf:"varint,5,opt,name=hostId,proto3" json:"hostId,omitempty"` - GroupId int32 `protobuf:"varint,6,opt,name=groupId,proto3" json:"groupId,omitempty"` - GroupSize int32 `protobuf:"varint,7,opt,name=groupSize,proto3" json:"groupSize,omitempty"` - ContainerHostType ContainerHostType `protobuf:"varint,8,opt,name=containerHostType,proto3,enum=datadog.process_agent.ContainerHostType" json:"containerHostType,omitempty"` +func (x *CollectorRealTime) GetOrgId() int32 { + if x != nil { + return x.OrgId + } + return 0 } -func (m *CollectorContainerRealTime) Reset() { *m = CollectorContainerRealTime{} } -func (m *CollectorContainerRealTime) String() string { return proto.CompactTextString(m) } -func (*CollectorContainerRealTime) ProtoMessage() {} -func (*CollectorContainerRealTime) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{5} } +func (x *CollectorRealTime) GetGroupId() int32 { + if x != nil { + return x.GroupId + } + return 0 +} -func (m *CollectorContainerRealTime) GetStats() []*ContainerStat { - if m != nil { - return m.Stats +func (x *CollectorRealTime) GetGroupSize() int32 { + if x != nil { + return x.GroupSize } - return nil + return 0 } -type CollectorReqStatus struct { - HostName string `protobuf:"bytes,2,opt,name=hostName,proto3" json:"hostName,omitempty"` +func (x *CollectorRealTime) GetNumCpus() int32 { + if x != nil { + return x.NumCpus + } + return 0 } -func (m *CollectorReqStatus) Reset() { *m = CollectorReqStatus{} } -func (m *CollectorReqStatus) String() string { return proto.CompactTextString(m) } -func (*CollectorReqStatus) ProtoMessage() {} -func (*CollectorReqStatus) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{6} } - -type CollectorPod struct { - HostName string `protobuf:"bytes,1,opt,name=hostName,proto3" json:"hostName,omitempty"` - ClusterName string `protobuf:"bytes,2,opt,name=clusterName,proto3" json:"clusterName,omitempty"` - ClusterId string `protobuf:"bytes,3,opt,name=clusterId,proto3" json:"clusterId,omitempty"` - GroupId int32 `protobuf:"varint,4,opt,name=groupId,proto3" json:"groupId,omitempty"` - GroupSize int32 `protobuf:"varint,5,opt,name=groupSize,proto3" json:"groupSize,omitempty"` - Pods []*Pod `protobuf:"bytes,6,rep,name=pods" json:"pods,omitempty"` - Host *Host `protobuf:"bytes,7,opt,name=host" json:"host,omitempty"` - Tags []string `protobuf:"bytes,8,rep,name=tags" json:"tags,omitempty"` +func (x *CollectorRealTime) GetTotalMemory() int64 { + if x != nil { + return x.TotalMemory + } + return 0 } -func (m *CollectorPod) Reset() { *m = CollectorPod{} } -func (m *CollectorPod) String() string { return proto.CompactTextString(m) } -func (*CollectorPod) ProtoMessage() {} -func (*CollectorPod) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{7} } - -func (m *CollectorPod) GetPods() []*Pod { - if m != nil { - return m.Pods +func (x *CollectorRealTime) GetContainerStats() []*ContainerStat { + if x != nil { + return x.ContainerStats } return nil } -func (m *CollectorPod) GetHost() *Host { - if m != nil { - return m.Host +func (x *CollectorRealTime) GetContainerHostType() ContainerHostType { + if x != nil { + return x.ContainerHostType } - return nil + return ContainerHostType_notSpecified } -type CollectorReplicaSet struct { - ClusterName string `protobuf:"bytes,1,opt,name=clusterName,proto3" json:"clusterName,omitempty"` - ClusterId string `protobuf:"bytes,2,opt,name=clusterId,proto3" json:"clusterId,omitempty"` - GroupId int32 `protobuf:"varint,3,opt,name=groupId,proto3" json:"groupId,omitempty"` - GroupSize int32 `protobuf:"varint,4,opt,name=groupSize,proto3" json:"groupSize,omitempty"` - ReplicaSets []*ReplicaSet `protobuf:"bytes,5,rep,name=replicaSets" json:"replicaSets,omitempty"` - Tags []string `protobuf:"bytes,6,rep,name=tags" json:"tags,omitempty"` -} +type CollectorContainer struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *CollectorReplicaSet) Reset() { *m = CollectorReplicaSet{} } -func (m *CollectorReplicaSet) String() string { return proto.CompactTextString(m) } -func (*CollectorReplicaSet) ProtoMessage() {} -func (*CollectorReplicaSet) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{8} } + HostName string `protobuf:"bytes,1,opt,name=hostName,proto3" json:"hostName,omitempty"` + NetworkId string `protobuf:"bytes,11,opt,name=networkId,proto3" json:"networkId,omitempty"` + Info *SystemInfo `protobuf:"bytes,2,opt,name=info,proto3" json:"info,omitempty"` + Containers []*Container `protobuf:"bytes,3,rep,name=containers,proto3" json:"containers,omitempty"` + GroupId int32 `protobuf:"varint,4,opt,name=groupId,proto3" json:"groupId,omitempty"` + GroupSize int32 `protobuf:"varint,5,opt,name=groupSize,proto3" json:"groupSize,omitempty"` + // Post-resolved fields + Host *Host `protobuf:"bytes,8,opt,name=host,proto3" json:"host,omitempty"` + ContainerHostType ContainerHostType `protobuf:"varint,9,opt,name=containerHostType,proto3,enum=datadog.process_agent.ContainerHostType" json:"containerHostType,omitempty"` +} -func (m *CollectorReplicaSet) GetReplicaSets() []*ReplicaSet { - if m != nil { - return m.ReplicaSets +func (x *CollectorContainer) Reset() { + *x = CollectorContainer{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -type CollectorDeployment struct { - ClusterName string `protobuf:"bytes,1,opt,name=clusterName,proto3" json:"clusterName,omitempty"` - ClusterId string `protobuf:"bytes,2,opt,name=clusterId,proto3" json:"clusterId,omitempty"` - GroupId int32 `protobuf:"varint,3,opt,name=groupId,proto3" json:"groupId,omitempty"` - GroupSize int32 `protobuf:"varint,4,opt,name=groupSize,proto3" json:"groupSize,omitempty"` - Deployments []*Deployment `protobuf:"bytes,5,rep,name=deployments" json:"deployments,omitempty"` - Tags []string `protobuf:"bytes,6,rep,name=tags" json:"tags,omitempty"` +func (x *CollectorContainer) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CollectorDeployment) Reset() { *m = CollectorDeployment{} } -func (m *CollectorDeployment) String() string { return proto.CompactTextString(m) } -func (*CollectorDeployment) ProtoMessage() {} -func (*CollectorDeployment) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{9} } +func (*CollectorContainer) ProtoMessage() {} -func (m *CollectorDeployment) GetDeployments() []*Deployment { - if m != nil { - return m.Deployments +func (x *CollectorContainer) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -type CollectorService struct { - ClusterName string `protobuf:"bytes,1,opt,name=clusterName,proto3" json:"clusterName,omitempty"` - ClusterId string `protobuf:"bytes,2,opt,name=clusterId,proto3" json:"clusterId,omitempty"` - GroupId int32 `protobuf:"varint,3,opt,name=groupId,proto3" json:"groupId,omitempty"` - GroupSize int32 `protobuf:"varint,4,opt,name=groupSize,proto3" json:"groupSize,omitempty"` - Services []*Service `protobuf:"bytes,5,rep,name=services" json:"services,omitempty"` - Tags []string `protobuf:"bytes,6,rep,name=tags" json:"tags,omitempty"` +// Deprecated: Use CollectorContainer.ProtoReflect.Descriptor instead. +func (*CollectorContainer) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{4} } -func (m *CollectorService) Reset() { *m = CollectorService{} } -func (m *CollectorService) String() string { return proto.CompactTextString(m) } -func (*CollectorService) ProtoMessage() {} -func (*CollectorService) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{10} } - -func (m *CollectorService) GetServices() []*Service { - if m != nil { - return m.Services +func (x *CollectorContainer) GetHostName() string { + if x != nil { + return x.HostName } - return nil + return "" } -type CollectorNode struct { - ClusterName string `protobuf:"bytes,1,opt,name=clusterName,proto3" json:"clusterName,omitempty"` - ClusterId string `protobuf:"bytes,2,opt,name=clusterId,proto3" json:"clusterId,omitempty"` - GroupId int32 `protobuf:"varint,3,opt,name=groupId,proto3" json:"groupId,omitempty"` - GroupSize int32 `protobuf:"varint,4,opt,name=groupSize,proto3" json:"groupSize,omitempty"` - Nodes []*Node `protobuf:"bytes,5,rep,name=nodes" json:"nodes,omitempty"` - Tags []string `protobuf:"bytes,6,rep,name=tags" json:"tags,omitempty"` - HostAliasMapping map[string]*Host `protobuf:"bytes,7,rep,name=hostAliasMapping" json:"hostAliasMapping,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value"` +func (x *CollectorContainer) GetNetworkId() string { + if x != nil { + return x.NetworkId + } + return "" } -func (m *CollectorNode) Reset() { *m = CollectorNode{} } -func (m *CollectorNode) String() string { return proto.CompactTextString(m) } -func (*CollectorNode) ProtoMessage() {} -func (*CollectorNode) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{11} } - -func (m *CollectorNode) GetNodes() []*Node { - if m != nil { - return m.Nodes +func (x *CollectorContainer) GetInfo() *SystemInfo { + if x != nil { + return x.Info } return nil } -func (m *CollectorNode) GetHostAliasMapping() map[string]*Host { - if m != nil { - return m.HostAliasMapping +func (x *CollectorContainer) GetContainers() []*Container { + if x != nil { + return x.Containers } return nil } -type CollectorCluster struct { - ClusterName string `protobuf:"bytes,1,opt,name=clusterName,proto3" json:"clusterName,omitempty"` - ClusterId string `protobuf:"bytes,2,opt,name=clusterId,proto3" json:"clusterId,omitempty"` - GroupId int32 `protobuf:"varint,3,opt,name=groupId,proto3" json:"groupId,omitempty"` - GroupSize int32 `protobuf:"varint,4,opt,name=groupSize,proto3" json:"groupSize,omitempty"` - Cluster *Cluster `protobuf:"bytes,5,opt,name=cluster" json:"cluster,omitempty"` - Tags []string `protobuf:"bytes,6,rep,name=tags" json:"tags,omitempty"` +func (x *CollectorContainer) GetGroupId() int32 { + if x != nil { + return x.GroupId + } + return 0 } -func (m *CollectorCluster) Reset() { *m = CollectorCluster{} } -func (m *CollectorCluster) String() string { return proto.CompactTextString(m) } -func (*CollectorCluster) ProtoMessage() {} -func (*CollectorCluster) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{12} } +func (x *CollectorContainer) GetGroupSize() int32 { + if x != nil { + return x.GroupSize + } + return 0 +} -func (m *CollectorCluster) GetCluster() *Cluster { - if m != nil { - return m.Cluster +func (x *CollectorContainer) GetHost() *Host { + if x != nil { + return x.Host } return nil } -// CollectorManifest is the dedicated payload/pipeline for the yaml collection -type CollectorManifest struct { - ClusterName string `protobuf:"bytes,1,opt,name=clusterName,proto3" json:"clusterName,omitempty"` - ClusterId string `protobuf:"bytes,2,opt,name=clusterId,proto3" json:"clusterId,omitempty"` - GroupId int32 `protobuf:"varint,3,opt,name=groupId,proto3" json:"groupId,omitempty"` - GroupSize int32 `protobuf:"varint,4,opt,name=groupSize,proto3" json:"groupSize,omitempty"` - Manifests []*Manifest `protobuf:"bytes,5,rep,name=manifests" json:"manifests,omitempty"` +func (x *CollectorContainer) GetContainerHostType() ContainerHostType { + if x != nil { + return x.ContainerHostType + } + return ContainerHostType_notSpecified } -func (m *CollectorManifest) Reset() { *m = CollectorManifest{} } -func (m *CollectorManifest) String() string { return proto.CompactTextString(m) } -func (*CollectorManifest) ProtoMessage() {} -func (*CollectorManifest) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{13} } +type CollectorContainerRealTime struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *CollectorManifest) GetManifests() []*Manifest { - if m != nil { - return m.Manifests + HostName string `protobuf:"bytes,1,opt,name=hostName,proto3" json:"hostName,omitempty"` + Stats []*ContainerStat `protobuf:"bytes,2,rep,name=stats,proto3" json:"stats,omitempty"` + // Used for normalization at host-level. + NumCpus int32 `protobuf:"varint,3,opt,name=numCpus,proto3" json:"numCpus,omitempty"` + TotalMemory int64 `protobuf:"varint,4,opt,name=totalMemory,proto3" json:"totalMemory,omitempty"` + // Post-resolved fields + HostId int64 `protobuf:"varint,5,opt,name=hostId,proto3" json:"hostId,omitempty"` + GroupId int32 `protobuf:"varint,6,opt,name=groupId,proto3" json:"groupId,omitempty"` + GroupSize int32 `protobuf:"varint,7,opt,name=groupSize,proto3" json:"groupSize,omitempty"` + ContainerHostType ContainerHostType `protobuf:"varint,8,opt,name=containerHostType,proto3,enum=datadog.process_agent.ContainerHostType" json:"containerHostType,omitempty"` +} + +func (x *CollectorContainerRealTime) Reset() { + *x = CollectorContainerRealTime{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -type CollectorManifestCRD struct { - Manifest *CollectorManifest `protobuf:"bytes,1,opt,name=manifest" json:"manifest,omitempty"` +func (x *CollectorContainerRealTime) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CollectorManifestCRD) Reset() { *m = CollectorManifestCRD{} } -func (m *CollectorManifestCRD) String() string { return proto.CompactTextString(m) } -func (*CollectorManifestCRD) ProtoMessage() {} -func (*CollectorManifestCRD) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{14} } +func (*CollectorContainerRealTime) ProtoMessage() {} -func (m *CollectorManifestCRD) GetManifest() *CollectorManifest { - if m != nil { - return m.Manifest +func (x *CollectorContainerRealTime) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -type CollectorManifestCR struct { - Manifest *CollectorManifest `protobuf:"bytes,1,opt,name=manifest" json:"manifest,omitempty"` +// Deprecated: Use CollectorContainerRealTime.ProtoReflect.Descriptor instead. +func (*CollectorContainerRealTime) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{5} } -func (m *CollectorManifestCR) Reset() { *m = CollectorManifestCR{} } -func (m *CollectorManifestCR) String() string { return proto.CompactTextString(m) } -func (*CollectorManifestCR) ProtoMessage() {} -func (*CollectorManifestCR) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{15} } +func (x *CollectorContainerRealTime) GetHostName() string { + if x != nil { + return x.HostName + } + return "" +} -func (m *CollectorManifestCR) GetManifest() *CollectorManifest { - if m != nil { - return m.Manifest +func (x *CollectorContainerRealTime) GetStats() []*ContainerStat { + if x != nil { + return x.Stats } return nil } -type CollectorNamespace struct { - ClusterName string `protobuf:"bytes,1,opt,name=clusterName,proto3" json:"clusterName,omitempty"` - ClusterId string `protobuf:"bytes,2,opt,name=clusterId,proto3" json:"clusterId,omitempty"` - GroupId int32 `protobuf:"varint,3,opt,name=groupId,proto3" json:"groupId,omitempty"` - GroupSize int32 `protobuf:"varint,4,opt,name=groupSize,proto3" json:"groupSize,omitempty"` - Namespaces []*Namespace `protobuf:"bytes,5,rep,name=namespaces" json:"namespaces,omitempty"` - Tags []string `protobuf:"bytes,6,rep,name=tags" json:"tags,omitempty"` +func (x *CollectorContainerRealTime) GetNumCpus() int32 { + if x != nil { + return x.NumCpus + } + return 0 } -func (m *CollectorNamespace) Reset() { *m = CollectorNamespace{} } -func (m *CollectorNamespace) String() string { return proto.CompactTextString(m) } -func (*CollectorNamespace) ProtoMessage() {} -func (*CollectorNamespace) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{16} } - -func (m *CollectorNamespace) GetNamespaces() []*Namespace { - if m != nil { - return m.Namespaces +func (x *CollectorContainerRealTime) GetTotalMemory() int64 { + if x != nil { + return x.TotalMemory } - return nil + return 0 } -type CollectorJob struct { - ClusterName string `protobuf:"bytes,1,opt,name=clusterName,proto3" json:"clusterName,omitempty"` - ClusterId string `protobuf:"bytes,2,opt,name=clusterId,proto3" json:"clusterId,omitempty"` - GroupId int32 `protobuf:"varint,3,opt,name=groupId,proto3" json:"groupId,omitempty"` - GroupSize int32 `protobuf:"varint,4,opt,name=groupSize,proto3" json:"groupSize,omitempty"` - Jobs []*Job `protobuf:"bytes,5,rep,name=jobs" json:"jobs,omitempty"` - Tags []string `protobuf:"bytes,6,rep,name=tags" json:"tags,omitempty"` +func (x *CollectorContainerRealTime) GetHostId() int64 { + if x != nil { + return x.HostId + } + return 0 } -func (m *CollectorJob) Reset() { *m = CollectorJob{} } -func (m *CollectorJob) String() string { return proto.CompactTextString(m) } -func (*CollectorJob) ProtoMessage() {} -func (*CollectorJob) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{17} } +func (x *CollectorContainerRealTime) GetGroupId() int32 { + if x != nil { + return x.GroupId + } + return 0 +} -func (m *CollectorJob) GetJobs() []*Job { - if m != nil { - return m.Jobs +func (x *CollectorContainerRealTime) GetGroupSize() int32 { + if x != nil { + return x.GroupSize } - return nil + return 0 } -type CollectorCronJob struct { - ClusterName string `protobuf:"bytes,1,opt,name=clusterName,proto3" json:"clusterName,omitempty"` - ClusterId string `protobuf:"bytes,2,opt,name=clusterId,proto3" json:"clusterId,omitempty"` - GroupId int32 `protobuf:"varint,3,opt,name=groupId,proto3" json:"groupId,omitempty"` - GroupSize int32 `protobuf:"varint,4,opt,name=groupSize,proto3" json:"groupSize,omitempty"` - CronJobs []*CronJob `protobuf:"bytes,5,rep,name=cronJobs" json:"cronJobs,omitempty"` - Tags []string `protobuf:"bytes,6,rep,name=tags" json:"tags,omitempty"` +func (x *CollectorContainerRealTime) GetContainerHostType() ContainerHostType { + if x != nil { + return x.ContainerHostType + } + return ContainerHostType_notSpecified } -func (m *CollectorCronJob) Reset() { *m = CollectorCronJob{} } -func (m *CollectorCronJob) String() string { return proto.CompactTextString(m) } -func (*CollectorCronJob) ProtoMessage() {} -func (*CollectorCronJob) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{18} } +type CollectorReqStatus struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *CollectorCronJob) GetCronJobs() []*CronJob { - if m != nil { - return m.CronJobs + HostName string `protobuf:"bytes,2,opt,name=hostName,proto3" json:"hostName,omitempty"` +} + +func (x *CollectorReqStatus) Reset() { + *x = CollectorReqStatus{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -type CollectorDaemonSet struct { - ClusterName string `protobuf:"bytes,1,opt,name=clusterName,proto3" json:"clusterName,omitempty"` - ClusterId string `protobuf:"bytes,2,opt,name=clusterId,proto3" json:"clusterId,omitempty"` - GroupId int32 `protobuf:"varint,3,opt,name=groupId,proto3" json:"groupId,omitempty"` - GroupSize int32 `protobuf:"varint,4,opt,name=groupSize,proto3" json:"groupSize,omitempty"` - DaemonSets []*DaemonSet `protobuf:"bytes,5,rep,name=daemonSets" json:"daemonSets,omitempty"` - Tags []string `protobuf:"bytes,6,rep,name=tags" json:"tags,omitempty"` +func (x *CollectorReqStatus) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CollectorDaemonSet) Reset() { *m = CollectorDaemonSet{} } -func (m *CollectorDaemonSet) String() string { return proto.CompactTextString(m) } -func (*CollectorDaemonSet) ProtoMessage() {} -func (*CollectorDaemonSet) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{19} } +func (*CollectorReqStatus) ProtoMessage() {} -func (m *CollectorDaemonSet) GetDaemonSets() []*DaemonSet { - if m != nil { - return m.DaemonSets +func (x *CollectorReqStatus) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -type CollectorStatefulSet struct { - ClusterName string `protobuf:"bytes,1,opt,name=clusterName,proto3" json:"clusterName,omitempty"` - ClusterId string `protobuf:"bytes,2,opt,name=clusterId,proto3" json:"clusterId,omitempty"` - GroupId int32 `protobuf:"varint,3,opt,name=groupId,proto3" json:"groupId,omitempty"` - GroupSize int32 `protobuf:"varint,4,opt,name=groupSize,proto3" json:"groupSize,omitempty"` - StatefulSets []*StatefulSet `protobuf:"bytes,5,rep,name=statefulSets" json:"statefulSets,omitempty"` - Tags []string `protobuf:"bytes,6,rep,name=tags" json:"tags,omitempty"` +// Deprecated: Use CollectorReqStatus.ProtoReflect.Descriptor instead. +func (*CollectorReqStatus) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{6} +} + +func (x *CollectorReqStatus) GetHostName() string { + if x != nil { + return x.HostName + } + return "" } -func (m *CollectorStatefulSet) Reset() { *m = CollectorStatefulSet{} } -func (m *CollectorStatefulSet) String() string { return proto.CompactTextString(m) } -func (*CollectorStatefulSet) ProtoMessage() {} -func (*CollectorStatefulSet) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{20} } +type CollectorPod struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *CollectorStatefulSet) GetStatefulSets() []*StatefulSet { - if m != nil { - return m.StatefulSets + HostName string `protobuf:"bytes,1,opt,name=hostName,proto3" json:"hostName,omitempty"` + ClusterName string `protobuf:"bytes,2,opt,name=clusterName,proto3" json:"clusterName,omitempty"` + ClusterId string `protobuf:"bytes,3,opt,name=clusterId,proto3" json:"clusterId,omitempty"` + GroupId int32 `protobuf:"varint,4,opt,name=groupId,proto3" json:"groupId,omitempty"` + GroupSize int32 `protobuf:"varint,5,opt,name=groupSize,proto3" json:"groupSize,omitempty"` + Pods []*Pod `protobuf:"bytes,6,rep,name=pods,proto3" json:"pods,omitempty"` + Host *Host `protobuf:"bytes,7,opt,name=host,proto3" json:"host,omitempty"` // Post-resolved field + Tags []string `protobuf:"bytes,8,rep,name=tags,proto3" json:"tags,omitempty"` +} + +func (x *CollectorPod) Reset() { + *x = CollectorPod{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -type CollectorPersistentVolume struct { - ClusterName string `protobuf:"bytes,1,opt,name=clusterName,proto3" json:"clusterName,omitempty"` - ClusterId string `protobuf:"bytes,2,opt,name=clusterId,proto3" json:"clusterId,omitempty"` - GroupId int32 `protobuf:"varint,3,opt,name=groupId,proto3" json:"groupId,omitempty"` - GroupSize int32 `protobuf:"varint,4,opt,name=groupSize,proto3" json:"groupSize,omitempty"` - PersistentVolumes []*PersistentVolume `protobuf:"bytes,5,rep,name=persistentVolumes" json:"persistentVolumes,omitempty"` - Tags []string `protobuf:"bytes,6,rep,name=tags" json:"tags,omitempty"` +func (x *CollectorPod) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CollectorPersistentVolume) Reset() { *m = CollectorPersistentVolume{} } -func (m *CollectorPersistentVolume) String() string { return proto.CompactTextString(m) } -func (*CollectorPersistentVolume) ProtoMessage() {} -func (*CollectorPersistentVolume) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{21} } +func (*CollectorPod) ProtoMessage() {} -func (m *CollectorPersistentVolume) GetPersistentVolumes() []*PersistentVolume { - if m != nil { - return m.PersistentVolumes +func (x *CollectorPod) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -type CollectorPersistentVolumeClaim struct { - ClusterName string `protobuf:"bytes,1,opt,name=clusterName,proto3" json:"clusterName,omitempty"` - ClusterId string `protobuf:"bytes,2,opt,name=clusterId,proto3" json:"clusterId,omitempty"` - GroupId int32 `protobuf:"varint,3,opt,name=groupId,proto3" json:"groupId,omitempty"` - GroupSize int32 `protobuf:"varint,4,opt,name=groupSize,proto3" json:"groupSize,omitempty"` - PersistentVolumeClaims []*PersistentVolumeClaim `protobuf:"bytes,5,rep,name=persistentVolumeClaims" json:"persistentVolumeClaims,omitempty"` - Tags []string `protobuf:"bytes,6,rep,name=tags" json:"tags,omitempty"` +// Deprecated: Use CollectorPod.ProtoReflect.Descriptor instead. +func (*CollectorPod) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{7} } -func (m *CollectorPersistentVolumeClaim) Reset() { *m = CollectorPersistentVolumeClaim{} } -func (m *CollectorPersistentVolumeClaim) String() string { return proto.CompactTextString(m) } -func (*CollectorPersistentVolumeClaim) ProtoMessage() {} -func (*CollectorPersistentVolumeClaim) Descriptor() ([]byte, []int) { - return fileDescriptorAgent, []int{22} +func (x *CollectorPod) GetHostName() string { + if x != nil { + return x.HostName + } + return "" } -func (m *CollectorPersistentVolumeClaim) GetPersistentVolumeClaims() []*PersistentVolumeClaim { - if m != nil { - return m.PersistentVolumeClaims +func (x *CollectorPod) GetClusterName() string { + if x != nil { + return x.ClusterName } - return nil + return "" } -type CollectorRole struct { - ClusterName string `protobuf:"bytes,1,opt,name=clusterName,proto3" json:"clusterName,omitempty"` - ClusterId string `protobuf:"bytes,2,opt,name=clusterId,proto3" json:"clusterId,omitempty"` - GroupId int32 `protobuf:"varint,3,opt,name=groupId,proto3" json:"groupId,omitempty"` - GroupSize int32 `protobuf:"varint,4,opt,name=groupSize,proto3" json:"groupSize,omitempty"` - Roles []*Role `protobuf:"bytes,5,rep,name=roles" json:"roles,omitempty"` - Tags []string `protobuf:"bytes,6,rep,name=tags" json:"tags,omitempty"` +func (x *CollectorPod) GetClusterId() string { + if x != nil { + return x.ClusterId + } + return "" } -func (m *CollectorRole) Reset() { *m = CollectorRole{} } -func (m *CollectorRole) String() string { return proto.CompactTextString(m) } -func (*CollectorRole) ProtoMessage() {} -func (*CollectorRole) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{23} } - -func (m *CollectorRole) GetRoles() []*Role { - if m != nil { - return m.Roles +func (x *CollectorPod) GetGroupId() int32 { + if x != nil { + return x.GroupId } - return nil + return 0 } -type CollectorRoleBinding struct { - ClusterName string `protobuf:"bytes,1,opt,name=clusterName,proto3" json:"clusterName,omitempty"` - ClusterId string `protobuf:"bytes,2,opt,name=clusterId,proto3" json:"clusterId,omitempty"` - GroupId int32 `protobuf:"varint,3,opt,name=groupId,proto3" json:"groupId,omitempty"` - GroupSize int32 `protobuf:"varint,4,opt,name=groupSize,proto3" json:"groupSize,omitempty"` - RoleBindings []*RoleBinding `protobuf:"bytes,5,rep,name=roleBindings" json:"roleBindings,omitempty"` - Tags []string `protobuf:"bytes,6,rep,name=tags" json:"tags,omitempty"` +func (x *CollectorPod) GetGroupSize() int32 { + if x != nil { + return x.GroupSize + } + return 0 } -func (m *CollectorRoleBinding) Reset() { *m = CollectorRoleBinding{} } -func (m *CollectorRoleBinding) String() string { return proto.CompactTextString(m) } -func (*CollectorRoleBinding) ProtoMessage() {} -func (*CollectorRoleBinding) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{24} } - -func (m *CollectorRoleBinding) GetRoleBindings() []*RoleBinding { - if m != nil { - return m.RoleBindings +func (x *CollectorPod) GetPods() []*Pod { + if x != nil { + return x.Pods } return nil } -type CollectorClusterRole struct { - ClusterName string `protobuf:"bytes,1,opt,name=clusterName,proto3" json:"clusterName,omitempty"` - ClusterId string `protobuf:"bytes,2,opt,name=clusterId,proto3" json:"clusterId,omitempty"` - GroupId int32 `protobuf:"varint,3,opt,name=groupId,proto3" json:"groupId,omitempty"` - GroupSize int32 `protobuf:"varint,4,opt,name=groupSize,proto3" json:"groupSize,omitempty"` - ClusterRoles []*ClusterRole `protobuf:"bytes,5,rep,name=clusterRoles" json:"clusterRoles,omitempty"` - Tags []string `protobuf:"bytes,6,rep,name=tags" json:"tags,omitempty"` +func (x *CollectorPod) GetHost() *Host { + if x != nil { + return x.Host + } + return nil } -func (m *CollectorClusterRole) Reset() { *m = CollectorClusterRole{} } -func (m *CollectorClusterRole) String() string { return proto.CompactTextString(m) } -func (*CollectorClusterRole) ProtoMessage() {} -func (*CollectorClusterRole) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{25} } - -func (m *CollectorClusterRole) GetClusterRoles() []*ClusterRole { - if m != nil { - return m.ClusterRoles +func (x *CollectorPod) GetTags() []string { + if x != nil { + return x.Tags } return nil } -type CollectorClusterRoleBinding struct { - ClusterName string `protobuf:"bytes,1,opt,name=clusterName,proto3" json:"clusterName,omitempty"` - ClusterId string `protobuf:"bytes,2,opt,name=clusterId,proto3" json:"clusterId,omitempty"` - GroupId int32 `protobuf:"varint,3,opt,name=groupId,proto3" json:"groupId,omitempty"` - GroupSize int32 `protobuf:"varint,4,opt,name=groupSize,proto3" json:"groupSize,omitempty"` - ClusterRoleBindings []*ClusterRoleBinding `protobuf:"bytes,5,rep,name=clusterRoleBindings" json:"clusterRoleBindings,omitempty"` - Tags []string `protobuf:"bytes,6,rep,name=tags" json:"tags,omitempty"` -} +type CollectorReplicaSet struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *CollectorClusterRoleBinding) Reset() { *m = CollectorClusterRoleBinding{} } -func (m *CollectorClusterRoleBinding) String() string { return proto.CompactTextString(m) } -func (*CollectorClusterRoleBinding) ProtoMessage() {} -func (*CollectorClusterRoleBinding) Descriptor() ([]byte, []int) { - return fileDescriptorAgent, []int{26} + ClusterName string `protobuf:"bytes,1,opt,name=clusterName,proto3" json:"clusterName,omitempty"` + ClusterId string `protobuf:"bytes,2,opt,name=clusterId,proto3" json:"clusterId,omitempty"` + GroupId int32 `protobuf:"varint,3,opt,name=groupId,proto3" json:"groupId,omitempty"` + GroupSize int32 `protobuf:"varint,4,opt,name=groupSize,proto3" json:"groupSize,omitempty"` + ReplicaSets []*ReplicaSet `protobuf:"bytes,5,rep,name=replicaSets,proto3" json:"replicaSets,omitempty"` + Tags []string `protobuf:"bytes,6,rep,name=tags,proto3" json:"tags,omitempty"` } -func (m *CollectorClusterRoleBinding) GetClusterRoleBindings() []*ClusterRoleBinding { - if m != nil { - return m.ClusterRoleBindings +func (x *CollectorReplicaSet) Reset() { + *x = CollectorReplicaSet{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -type CollectorServiceAccount struct { - ClusterName string `protobuf:"bytes,1,opt,name=clusterName,proto3" json:"clusterName,omitempty"` - ClusterId string `protobuf:"bytes,2,opt,name=clusterId,proto3" json:"clusterId,omitempty"` - GroupId int32 `protobuf:"varint,3,opt,name=groupId,proto3" json:"groupId,omitempty"` - GroupSize int32 `protobuf:"varint,4,opt,name=groupSize,proto3" json:"groupSize,omitempty"` - ServiceAccounts []*ServiceAccount `protobuf:"bytes,5,rep,name=serviceAccounts" json:"serviceAccounts,omitempty"` - Tags []string `protobuf:"bytes,6,rep,name=tags" json:"tags,omitempty"` +func (x *CollectorReplicaSet) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CollectorServiceAccount) Reset() { *m = CollectorServiceAccount{} } -func (m *CollectorServiceAccount) String() string { return proto.CompactTextString(m) } -func (*CollectorServiceAccount) ProtoMessage() {} -func (*CollectorServiceAccount) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{27} } +func (*CollectorReplicaSet) ProtoMessage() {} -func (m *CollectorServiceAccount) GetServiceAccounts() []*ServiceAccount { - if m != nil { - return m.ServiceAccounts +func (x *CollectorReplicaSet) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -type CollectorIngress struct { - ClusterName string `protobuf:"bytes,1,opt,name=clusterName,proto3" json:"clusterName,omitempty"` - ClusterId string `protobuf:"bytes,2,opt,name=clusterId,proto3" json:"clusterId,omitempty"` - GroupId int32 `protobuf:"varint,3,opt,name=groupId,proto3" json:"groupId,omitempty"` - GroupSize int32 `protobuf:"varint,4,opt,name=groupSize,proto3" json:"groupSize,omitempty"` - Ingresses []*Ingress `protobuf:"bytes,5,rep,name=ingresses" json:"ingresses,omitempty"` - Tags []string `protobuf:"bytes,6,rep,name=tags" json:"tags,omitempty"` +// Deprecated: Use CollectorReplicaSet.ProtoReflect.Descriptor instead. +func (*CollectorReplicaSet) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{8} } -func (m *CollectorIngress) Reset() { *m = CollectorIngress{} } -func (m *CollectorIngress) String() string { return proto.CompactTextString(m) } -func (*CollectorIngress) ProtoMessage() {} -func (*CollectorIngress) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{28} } +func (x *CollectorReplicaSet) GetClusterName() string { + if x != nil { + return x.ClusterName + } + return "" +} -func (m *CollectorIngress) GetIngresses() []*Ingress { - if m != nil { - return m.Ingresses +func (x *CollectorReplicaSet) GetClusterId() string { + if x != nil { + return x.ClusterId } - return nil + return "" } -type CollectorVerticalPodAutoscaler struct { - ClusterName string `protobuf:"bytes,1,opt,name=clusterName,proto3" json:"clusterName,omitempty"` - ClusterId string `protobuf:"bytes,2,opt,name=clusterId,proto3" json:"clusterId,omitempty"` - GroupId int32 `protobuf:"varint,3,opt,name=groupId,proto3" json:"groupId,omitempty"` - GroupSize int32 `protobuf:"varint,4,opt,name=groupSize,proto3" json:"groupSize,omitempty"` - VerticalPodAutoscalers []*VerticalPodAutoscaler `protobuf:"bytes,5,rep,name=verticalPodAutoscalers" json:"verticalPodAutoscalers,omitempty"` - Tags []string `protobuf:"bytes,6,rep,name=tags" json:"tags,omitempty"` +func (x *CollectorReplicaSet) GetGroupId() int32 { + if x != nil { + return x.GroupId + } + return 0 } -func (m *CollectorVerticalPodAutoscaler) Reset() { *m = CollectorVerticalPodAutoscaler{} } -func (m *CollectorVerticalPodAutoscaler) String() string { return proto.CompactTextString(m) } -func (*CollectorVerticalPodAutoscaler) ProtoMessage() {} -func (*CollectorVerticalPodAutoscaler) Descriptor() ([]byte, []int) { - return fileDescriptorAgent, []int{29} +func (x *CollectorReplicaSet) GetGroupSize() int32 { + if x != nil { + return x.GroupSize + } + return 0 } -func (m *CollectorVerticalPodAutoscaler) GetVerticalPodAutoscalers() []*VerticalPodAutoscaler { - if m != nil { - return m.VerticalPodAutoscalers +func (x *CollectorReplicaSet) GetReplicaSets() []*ReplicaSet { + if x != nil { + return x.ReplicaSets } return nil } -type CollectorStatus struct { - ActiveClients int32 `protobuf:"varint,1,opt,name=activeClients,proto3" json:"activeClients,omitempty"` - Interval int32 `protobuf:"varint,2,opt,name=interval,proto3" json:"interval,omitempty"` +func (x *CollectorReplicaSet) GetTags() []string { + if x != nil { + return x.Tags + } + return nil } -func (m *CollectorStatus) Reset() { *m = CollectorStatus{} } -func (m *CollectorStatus) String() string { return proto.CompactTextString(m) } -func (*CollectorStatus) ProtoMessage() {} -func (*CollectorStatus) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{30} } +type CollectorDeployment struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -type Process struct { - Key uint32 `protobuf:"varint,1,opt,name=key,proto3" json:"key,omitempty"` - Pid int32 `protobuf:"varint,2,opt,name=pid,proto3" json:"pid,omitempty"` - NsPid int32 `protobuf:"varint,20,opt,name=nsPid,proto3" json:"nsPid,omitempty"` - Host *Host `protobuf:"bytes,3,opt,name=host" json:"host,omitempty"` - Command *Command `protobuf:"bytes,4,opt,name=command" json:"command,omitempty"` - User *ProcessUser `protobuf:"bytes,5,opt,name=user" json:"user,omitempty"` - Memory *MemoryStat `protobuf:"bytes,7,opt,name=memory" json:"memory,omitempty"` - Cpu *CPUStat `protobuf:"bytes,8,opt,name=cpu" json:"cpu,omitempty"` - CreateTime int64 `protobuf:"varint,9,opt,name=createTime,proto3" json:"createTime,omitempty"` - Container *Container `protobuf:"bytes,10,opt,name=container" json:"container,omitempty"` - OpenFdCount int32 `protobuf:"varint,11,opt,name=openFdCount,proto3" json:"openFdCount,omitempty"` - State ProcessState `protobuf:"varint,12,opt,name=state,proto3,enum=datadog.process_agent.ProcessState" json:"state,omitempty"` - IoStat *IOStat `protobuf:"bytes,13,opt,name=ioStat" json:"ioStat,omitempty"` - ContainerId string `protobuf:"bytes,14,opt,name=containerId,proto3" json:"containerId,omitempty"` - ContainerKey uint32 `protobuf:"varint,15,opt,name=containerKey,proto3" json:"containerKey,omitempty"` - VoluntaryCtxSwitches uint64 `protobuf:"varint,16,opt,name=voluntaryCtxSwitches,proto3" json:"voluntaryCtxSwitches,omitempty"` - InvoluntaryCtxSwitches uint64 `protobuf:"varint,17,opt,name=involuntaryCtxSwitches,proto3" json:"involuntaryCtxSwitches,omitempty"` - ByteKey []byte `protobuf:"bytes,18,opt,name=byteKey,proto3" json:"byteKey,omitempty"` - ContainerByteKey []byte `protobuf:"bytes,19,opt,name=containerByteKey,proto3" json:"containerByteKey,omitempty"` - Networks *ProcessNetworks `protobuf:"bytes,21,opt,name=networks" json:"networks,omitempty"` + ClusterName string `protobuf:"bytes,1,opt,name=clusterName,proto3" json:"clusterName,omitempty"` + ClusterId string `protobuf:"bytes,2,opt,name=clusterId,proto3" json:"clusterId,omitempty"` + GroupId int32 `protobuf:"varint,3,opt,name=groupId,proto3" json:"groupId,omitempty"` + GroupSize int32 `protobuf:"varint,4,opt,name=groupSize,proto3" json:"groupSize,omitempty"` + Deployments []*Deployment `protobuf:"bytes,5,rep,name=deployments,proto3" json:"deployments,omitempty"` + Tags []string `protobuf:"bytes,6,rep,name=tags,proto3" json:"tags,omitempty"` +} + +func (x *CollectorDeployment) Reset() { + *x = CollectorDeployment{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CollectorDeployment) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Process) Reset() { *m = Process{} } -func (m *Process) String() string { return proto.CompactTextString(m) } -func (*Process) ProtoMessage() {} -func (*Process) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{31} } +func (*CollectorDeployment) ProtoMessage() {} -func (m *Process) GetHost() *Host { - if m != nil { - return m.Host +func (x *CollectorDeployment) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -func (m *Process) GetCommand() *Command { - if m != nil { - return m.Command +// Deprecated: Use CollectorDeployment.ProtoReflect.Descriptor instead. +func (*CollectorDeployment) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{9} +} + +func (x *CollectorDeployment) GetClusterName() string { + if x != nil { + return x.ClusterName } - return nil + return "" } -func (m *Process) GetUser() *ProcessUser { - if m != nil { - return m.User +func (x *CollectorDeployment) GetClusterId() string { + if x != nil { + return x.ClusterId } - return nil + return "" } -func (m *Process) GetMemory() *MemoryStat { - if m != nil { - return m.Memory +func (x *CollectorDeployment) GetGroupId() int32 { + if x != nil { + return x.GroupId } - return nil + return 0 } -func (m *Process) GetCpu() *CPUStat { - if m != nil { - return m.Cpu +func (x *CollectorDeployment) GetGroupSize() int32 { + if x != nil { + return x.GroupSize } - return nil + return 0 } -func (m *Process) GetContainer() *Container { - if m != nil { - return m.Container +func (x *CollectorDeployment) GetDeployments() []*Deployment { + if x != nil { + return x.Deployments } return nil } -func (m *Process) GetIoStat() *IOStat { - if m != nil { - return m.IoStat +func (x *CollectorDeployment) GetTags() []string { + if x != nil { + return x.Tags } return nil } -func (m *Process) GetNetworks() *ProcessNetworks { - if m != nil { - return m.Networks +type CollectorService struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ClusterName string `protobuf:"bytes,1,opt,name=clusterName,proto3" json:"clusterName,omitempty"` + ClusterId string `protobuf:"bytes,2,opt,name=clusterId,proto3" json:"clusterId,omitempty"` + GroupId int32 `protobuf:"varint,3,opt,name=groupId,proto3" json:"groupId,omitempty"` + GroupSize int32 `protobuf:"varint,4,opt,name=groupSize,proto3" json:"groupSize,omitempty"` + Services []*Service `protobuf:"bytes,5,rep,name=services,proto3" json:"services,omitempty"` + Tags []string `protobuf:"bytes,6,rep,name=tags,proto3" json:"tags,omitempty"` +} + +func (x *CollectorService) Reset() { + *x = CollectorService{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -type ProcessDiscovery struct { - Pid int32 `protobuf:"varint,1,opt,name=pid,proto3" json:"pid,omitempty"` - NsPid int32 `protobuf:"varint,2,opt,name=nsPid,proto3" json:"nsPid,omitempty"` - Host *Host `protobuf:"bytes,3,opt,name=host" json:"host,omitempty"` - Command *Command `protobuf:"bytes,4,opt,name=command" json:"command,omitempty"` - User *ProcessUser `protobuf:"bytes,5,opt,name=user" json:"user,omitempty"` - CreateTime int64 `protobuf:"varint,6,opt,name=createTime,proto3" json:"createTime,omitempty"` - ByteKey []byte `protobuf:"bytes,7,opt,name=byteKey,proto3" json:"byteKey,omitempty"` +func (x *CollectorService) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ProcessDiscovery) Reset() { *m = ProcessDiscovery{} } -func (m *ProcessDiscovery) String() string { return proto.CompactTextString(m) } -func (*ProcessDiscovery) ProtoMessage() {} -func (*ProcessDiscovery) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{32} } +func (*CollectorService) ProtoMessage() {} -func (m *ProcessDiscovery) GetHost() *Host { - if m != nil { - return m.Host +func (x *CollectorService) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -func (m *ProcessDiscovery) GetCommand() *Command { - if m != nil { - return m.Command - } - return nil +// Deprecated: Use CollectorService.ProtoReflect.Descriptor instead. +func (*CollectorService) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{10} } -func (m *ProcessDiscovery) GetUser() *ProcessUser { - if m != nil { - return m.User +func (x *CollectorService) GetClusterName() string { + if x != nil { + return x.ClusterName } - return nil + return "" } -type Command struct { - Args []string `protobuf:"bytes,1,rep,name=args" json:"args,omitempty"` - Cwd string `protobuf:"bytes,3,opt,name=cwd,proto3" json:"cwd,omitempty"` - Root string `protobuf:"bytes,4,opt,name=root,proto3" json:"root,omitempty"` - OnDisk bool `protobuf:"varint,5,opt,name=onDisk,proto3" json:"onDisk,omitempty"` - Ppid int32 `protobuf:"varint,6,opt,name=ppid,proto3" json:"ppid,omitempty"` - Pgroup int32 `protobuf:"varint,7,opt,name=pgroup,proto3" json:"pgroup,omitempty"` - Exe string `protobuf:"bytes,8,opt,name=exe,proto3" json:"exe,omitempty"` +func (x *CollectorService) GetClusterId() string { + if x != nil { + return x.ClusterId + } + return "" } -func (m *Command) Reset() { *m = Command{} } -func (m *Command) String() string { return proto.CompactTextString(m) } -func (*Command) ProtoMessage() {} -func (*Command) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{33} } +func (x *CollectorService) GetGroupId() int32 { + if x != nil { + return x.GroupId + } + return 0 +} -type ProcessUser struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Uid int32 `protobuf:"varint,2,opt,name=uid,proto3" json:"uid,omitempty"` - Gid int32 `protobuf:"varint,3,opt,name=gid,proto3" json:"gid,omitempty"` - Euid int32 `protobuf:"varint,4,opt,name=euid,proto3" json:"euid,omitempty"` - Egid int32 `protobuf:"varint,5,opt,name=egid,proto3" json:"egid,omitempty"` - Suid int32 `protobuf:"varint,6,opt,name=suid,proto3" json:"suid,omitempty"` - Sgid int32 `protobuf:"varint,7,opt,name=sgid,proto3" json:"sgid,omitempty"` +func (x *CollectorService) GetGroupSize() int32 { + if x != nil { + return x.GroupSize + } + return 0 } -func (m *ProcessUser) Reset() { *m = ProcessUser{} } -func (m *ProcessUser) String() string { return proto.CompactTextString(m) } -func (*ProcessUser) ProtoMessage() {} -func (*ProcessUser) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{34} } +func (x *CollectorService) GetServices() []*Service { + if x != nil { + return x.Services + } + return nil +} -// ProcessNetworks is a structure that holds network related metrics for processes -type ProcessNetworks struct { - ConnectionRate float32 `protobuf:"fixed32,1,opt,name=connectionRate,proto3" json:"connectionRate,omitempty"` - BytesRate float32 `protobuf:"fixed32,2,opt,name=bytesRate,proto3" json:"bytesRate,omitempty"` +func (x *CollectorService) GetTags() []string { + if x != nil { + return x.Tags + } + return nil } -func (m *ProcessNetworks) Reset() { *m = ProcessNetworks{} } -func (m *ProcessNetworks) String() string { return proto.CompactTextString(m) } -func (*ProcessNetworks) ProtoMessage() {} -func (*ProcessNetworks) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{35} } +type CollectorNode struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -// ContainerAddr records the IPs, Ports and Protocols for each container -type ContainerAddr struct { - Ip string `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"` - Port int32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"` - Protocol ConnectionType `protobuf:"varint,3,opt,name=protocol,proto3,enum=datadog.process_agent.ConnectionType" json:"protocol,omitempty"` + ClusterName string `protobuf:"bytes,1,opt,name=clusterName,proto3" json:"clusterName,omitempty"` + ClusterId string `protobuf:"bytes,2,opt,name=clusterId,proto3" json:"clusterId,omitempty"` + GroupId int32 `protobuf:"varint,3,opt,name=groupId,proto3" json:"groupId,omitempty"` + GroupSize int32 `protobuf:"varint,4,opt,name=groupSize,proto3" json:"groupSize,omitempty"` + Nodes []*Node `protobuf:"bytes,5,rep,name=nodes,proto3" json:"nodes,omitempty"` + Tags []string `protobuf:"bytes,6,rep,name=tags,proto3" json:"tags,omitempty"` + HostAliasMapping map[string]*Host `protobuf:"bytes,7,rep,name=hostAliasMapping,proto3" json:"hostAliasMapping,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` } -func (m *ContainerAddr) Reset() { *m = ContainerAddr{} } -func (m *ContainerAddr) String() string { return proto.CompactTextString(m) } -func (*ContainerAddr) ProtoMessage() {} -func (*ContainerAddr) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{36} } +func (x *CollectorNode) Reset() { + *x = CollectorNode{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} -type Container struct { - Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` - Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` - Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` - Image string `protobuf:"bytes,4,opt,name=image,proto3" json:"image,omitempty"` - CpuLimit float32 `protobuf:"fixed32,5,opt,name=cpuLimit,proto3" json:"cpuLimit,omitempty"` - MemoryLimit uint64 `protobuf:"varint,6,opt,name=memoryLimit,proto3" json:"memoryLimit,omitempty"` - State ContainerState `protobuf:"varint,8,opt,name=state,proto3,enum=datadog.process_agent.ContainerState" json:"state,omitempty"` - Health ContainerHealth `protobuf:"varint,9,opt,name=health,proto3,enum=datadog.process_agent.ContainerHealth" json:"health,omitempty"` - Created int64 `protobuf:"varint,10,opt,name=created,proto3" json:"created,omitempty"` - Rbps float32 `protobuf:"fixed32,11,opt,name=rbps,proto3" json:"rbps,omitempty"` - Wbps float32 `protobuf:"fixed32,12,opt,name=wbps,proto3" json:"wbps,omitempty"` - Key uint32 `protobuf:"varint,13,opt,name=key,proto3" json:"key,omitempty"` - NetRcvdPs float32 `protobuf:"fixed32,14,opt,name=netRcvdPs,proto3" json:"netRcvdPs,omitempty"` - NetSentPs float32 `protobuf:"fixed32,15,opt,name=netSentPs,proto3" json:"netSentPs,omitempty"` - NetRcvdBps float32 `protobuf:"fixed32,16,opt,name=netRcvdBps,proto3" json:"netRcvdBps,omitempty"` - NetSentBps float32 `protobuf:"fixed32,17,opt,name=netSentBps,proto3" json:"netSentBps,omitempty"` - UserPct float32 `protobuf:"fixed32,18,opt,name=userPct,proto3" json:"userPct,omitempty"` - SystemPct float32 `protobuf:"fixed32,19,opt,name=systemPct,proto3" json:"systemPct,omitempty"` - TotalPct float32 `protobuf:"fixed32,20,opt,name=totalPct,proto3" json:"totalPct,omitempty"` - MemRss uint64 `protobuf:"varint,21,opt,name=memRss,proto3" json:"memRss,omitempty"` - MemCache uint64 `protobuf:"varint,22,opt,name=memCache,proto3" json:"memCache,omitempty"` - Host *Host `protobuf:"bytes,23,opt,name=host" json:"host,omitempty"` - Started int64 `protobuf:"varint,24,opt,name=started,proto3" json:"started,omitempty"` - ByteKey []byte `protobuf:"bytes,25,opt,name=byteKey,proto3" json:"byteKey,omitempty"` - Tags []string `protobuf:"bytes,26,rep,name=tags" json:"tags,omitempty"` - Addresses []*ContainerAddr `protobuf:"bytes,27,rep,name=addresses" json:"addresses,omitempty"` - ThreadCount uint64 `protobuf:"varint,28,opt,name=threadCount,proto3" json:"threadCount,omitempty"` - ThreadLimit uint64 `protobuf:"varint,29,opt,name=threadLimit,proto3" json:"threadLimit,omitempty"` - MemUsage uint64 `protobuf:"varint,30,opt,name=memUsage,proto3" json:"memUsage,omitempty"` - CpuUsageNs float32 `protobuf:"fixed32,31,opt,name=cpuUsageNs,proto3" json:"cpuUsageNs,omitempty"` - MemAccounted uint64 `protobuf:"varint,32,opt,name=memAccounted,proto3" json:"memAccounted,omitempty"` +func (x *CollectorNode) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Container) Reset() { *m = Container{} } -func (m *Container) String() string { return proto.CompactTextString(m) } -func (*Container) ProtoMessage() {} -func (*Container) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{37} } +func (*CollectorNode) ProtoMessage() {} -func (m *Container) GetHost() *Host { - if m != nil { - return m.Host +func (x *CollectorNode) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -func (m *Container) GetAddresses() []*ContainerAddr { - if m != nil { - return m.Addresses +// Deprecated: Use CollectorNode.ProtoReflect.Descriptor instead. +func (*CollectorNode) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{11} +} + +func (x *CollectorNode) GetClusterName() string { + if x != nil { + return x.ClusterName } - return nil + return "" } -// ProcessStat is used for real-time process messages. It should only contain -// data that can change for a running process (and relevant information to -// generate a key). We will send a lot of these in the real-time messages so -// it's critical to keep this small. -type ProcessStat struct { - Pid int32 `protobuf:"varint,1,opt,name=pid,proto3" json:"pid,omitempty"` - // In milliseconds - CreateTime int64 `protobuf:"varint,2,opt,name=createTime,proto3" json:"createTime,omitempty"` - Memory *MemoryStat `protobuf:"bytes,3,opt,name=memory" json:"memory,omitempty"` - Cpu *CPUStat `protobuf:"bytes,4,opt,name=cpu" json:"cpu,omitempty"` - Nice int32 `protobuf:"varint,5,opt,name=nice,proto3" json:"nice,omitempty"` - Threads int32 `protobuf:"varint,7,opt,name=threads,proto3" json:"threads,omitempty"` - OpenFdCount int32 `protobuf:"varint,8,opt,name=openFdCount,proto3" json:"openFdCount,omitempty"` - Key uint32 `protobuf:"varint,9,opt,name=key,proto3" json:"key,omitempty"` - // we need container id because we need to do the scoring by container - ContainerId string `protobuf:"bytes,10,opt,name=containerId,proto3" json:"containerId,omitempty"` - ContainerState ContainerState `protobuf:"varint,11,opt,name=containerState,proto3,enum=datadog.process_agent.ContainerState" json:"containerState,omitempty"` - ProcessState ProcessState `protobuf:"varint,12,opt,name=processState,proto3,enum=datadog.process_agent.ProcessState" json:"processState,omitempty"` - IoStat *IOStat `protobuf:"bytes,19,opt,name=ioStat" json:"ioStat,omitempty"` - Networks *ProcessNetworks `protobuf:"bytes,28,opt,name=networks" json:"networks,omitempty"` - // DEPRECATED: All container-level stats (except ID) have moved into ContainerStat. - // These will be removed in the future. - // These stats are from the container level but are stored per-process - // because we don't send a container primitive yet. - ContainerHealth ContainerHealth `protobuf:"varint,15,opt,name=containerHealth,proto3,enum=datadog.process_agent.ContainerHealth" json:"containerHealth,omitempty"` - ContainerRbps float32 `protobuf:"fixed32,16,opt,name=containerRbps,proto3" json:"containerRbps,omitempty"` - ContainerWbps float32 `protobuf:"fixed32,17,opt,name=containerWbps,proto3" json:"containerWbps,omitempty"` - ContainerKey uint32 `protobuf:"varint,18,opt,name=containerKey,proto3" json:"containerKey,omitempty"` - ContainerNetRcvdPs float32 `protobuf:"fixed32,20,opt,name=containerNetRcvdPs,proto3" json:"containerNetRcvdPs,omitempty"` - ContainerNetSentPs float32 `protobuf:"fixed32,21,opt,name=containerNetSentPs,proto3" json:"containerNetSentPs,omitempty"` - ContainerNetRcvdBps float32 `protobuf:"fixed32,22,opt,name=containerNetRcvdBps,proto3" json:"containerNetRcvdBps,omitempty"` - ContainerNetSentBps float32 `protobuf:"fixed32,23,opt,name=containerNetSentBps,proto3" json:"containerNetSentBps,omitempty"` - VoluntaryCtxSwitches uint64 `protobuf:"varint,24,opt,name=voluntaryCtxSwitches,proto3" json:"voluntaryCtxSwitches,omitempty"` - InvoluntaryCtxSwitches uint64 `protobuf:"varint,25,opt,name=involuntaryCtxSwitches,proto3" json:"involuntaryCtxSwitches,omitempty"` - ByteKey []byte `protobuf:"bytes,26,opt,name=byteKey,proto3" json:"byteKey,omitempty"` - ContainerByteKey []byte `protobuf:"bytes,27,opt,name=containerByteKey,proto3" json:"containerByteKey,omitempty"` +func (x *CollectorNode) GetClusterId() string { + if x != nil { + return x.ClusterId + } + return "" } -func (m *ProcessStat) Reset() { *m = ProcessStat{} } -func (m *ProcessStat) String() string { return proto.CompactTextString(m) } -func (*ProcessStat) ProtoMessage() {} -func (*ProcessStat) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{38} } +func (x *CollectorNode) GetGroupId() int32 { + if x != nil { + return x.GroupId + } + return 0 +} -func (m *ProcessStat) GetMemory() *MemoryStat { - if m != nil { - return m.Memory +func (x *CollectorNode) GetGroupSize() int32 { + if x != nil { + return x.GroupSize } - return nil + return 0 } -func (m *ProcessStat) GetCpu() *CPUStat { - if m != nil { - return m.Cpu +func (x *CollectorNode) GetNodes() []*Node { + if x != nil { + return x.Nodes } return nil } -func (m *ProcessStat) GetIoStat() *IOStat { - if m != nil { - return m.IoStat +func (x *CollectorNode) GetTags() []string { + if x != nil { + return x.Tags } return nil } -func (m *ProcessStat) GetNetworks() *ProcessNetworks { - if m != nil { - return m.Networks +func (x *CollectorNode) GetHostAliasMapping() map[string]*Host { + if x != nil { + return x.HostAliasMapping } return nil } -// ProcStatsWithPerm is holding attributes for processes that requires extra permission to collect. -// It is used to pass data between system-probe and process-agent -type ProcStatsWithPerm struct { - OpenFDCount int32 `protobuf:"varint,1,opt,name=openFDCount,proto3" json:"openFDCount,omitempty"` - ReadCount int64 `protobuf:"varint,2,opt,name=readCount,proto3" json:"readCount,omitempty"` - WriteCount int64 `protobuf:"varint,3,opt,name=writeCount,proto3" json:"writeCount,omitempty"` - ReadBytes int64 `protobuf:"varint,4,opt,name=readBytes,proto3" json:"readBytes,omitempty"` - WriteBytes int64 `protobuf:"varint,5,opt,name=writeBytes,proto3" json:"writeBytes,omitempty"` +type CollectorCluster struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ClusterName string `protobuf:"bytes,1,opt,name=clusterName,proto3" json:"clusterName,omitempty"` + ClusterId string `protobuf:"bytes,2,opt,name=clusterId,proto3" json:"clusterId,omitempty"` + GroupId int32 `protobuf:"varint,3,opt,name=groupId,proto3" json:"groupId,omitempty"` + GroupSize int32 `protobuf:"varint,4,opt,name=groupSize,proto3" json:"groupSize,omitempty"` + Cluster *Cluster `protobuf:"bytes,5,opt,name=cluster,proto3" json:"cluster,omitempty"` + Tags []string `protobuf:"bytes,6,rep,name=tags,proto3" json:"tags,omitempty"` } -func (m *ProcStatsWithPerm) Reset() { *m = ProcStatsWithPerm{} } -func (m *ProcStatsWithPerm) String() string { return proto.CompactTextString(m) } -func (*ProcStatsWithPerm) ProtoMessage() {} -func (*ProcStatsWithPerm) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{39} } +func (x *CollectorCluster) Reset() { + *x = CollectorCluster{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} -// ProcStatsWithPermByPID stores ProcStatsWithPerm in a map with key as PIDs -type ProcStatsWithPermByPID struct { - StatsByPID map[int32]*ProcStatsWithPerm `protobuf:"bytes,1,rep,name=statsByPID" json:"statsByPID,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value"` +func (x *CollectorCluster) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ProcStatsWithPermByPID) Reset() { *m = ProcStatsWithPermByPID{} } -func (m *ProcStatsWithPermByPID) String() string { return proto.CompactTextString(m) } -func (*ProcStatsWithPermByPID) ProtoMessage() {} -func (*ProcStatsWithPermByPID) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{40} } +func (*CollectorCluster) ProtoMessage() {} -func (m *ProcStatsWithPermByPID) GetStatsByPID() map[int32]*ProcStatsWithPerm { - if m != nil { - return m.StatsByPID +func (x *CollectorCluster) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[12] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -// ContainerStat is used for real-time container messages. It should only contain -// data that can change for a running container (and relevant information to -// generate a key). We will send a lot of these in the real-time messages so -// it's critical to keep this small (basically no strings except ID) -type ContainerStat struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - UserPct float32 `protobuf:"fixed32,2,opt,name=userPct,proto3" json:"userPct,omitempty"` - SystemPct float32 `protobuf:"fixed32,3,opt,name=systemPct,proto3" json:"systemPct,omitempty"` - TotalPct float32 `protobuf:"fixed32,4,opt,name=totalPct,proto3" json:"totalPct,omitempty"` - CpuLimit float32 `protobuf:"fixed32,5,opt,name=cpuLimit,proto3" json:"cpuLimit,omitempty"` - MemRss uint64 `protobuf:"varint,6,opt,name=memRss,proto3" json:"memRss,omitempty"` - MemCache uint64 `protobuf:"varint,7,opt,name=memCache,proto3" json:"memCache,omitempty"` - MemLimit uint64 `protobuf:"varint,8,opt,name=memLimit,proto3" json:"memLimit,omitempty"` - Rbps float32 `protobuf:"fixed32,9,opt,name=rbps,proto3" json:"rbps,omitempty"` - Wbps float32 `protobuf:"fixed32,10,opt,name=wbps,proto3" json:"wbps,omitempty"` - NetRcvdPs float32 `protobuf:"fixed32,11,opt,name=netRcvdPs,proto3" json:"netRcvdPs,omitempty"` - NetSentPs float32 `protobuf:"fixed32,12,opt,name=netSentPs,proto3" json:"netSentPs,omitempty"` - NetRcvdBps float32 `protobuf:"fixed32,13,opt,name=netRcvdBps,proto3" json:"netRcvdBps,omitempty"` - NetSentBps float32 `protobuf:"fixed32,14,opt,name=netSentBps,proto3" json:"netSentBps,omitempty"` - State ContainerState `protobuf:"varint,15,opt,name=state,proto3,enum=datadog.process_agent.ContainerState" json:"state,omitempty"` - Health ContainerHealth `protobuf:"varint,16,opt,name=health,proto3,enum=datadog.process_agent.ContainerHealth" json:"health,omitempty"` - // Post-resolved fields - Key uint32 `protobuf:"varint,17,opt,name=key,proto3" json:"key,omitempty"` - Started int64 `protobuf:"varint,18,opt,name=started,proto3" json:"started,omitempty"` - ByteKey []byte `protobuf:"bytes,19,opt,name=byteKey,proto3" json:"byteKey,omitempty"` - ThreadCount uint64 `protobuf:"varint,20,opt,name=threadCount,proto3" json:"threadCount,omitempty"` - ThreadLimit uint64 `protobuf:"varint,21,opt,name=threadLimit,proto3" json:"threadLimit,omitempty"` - MemUsage uint64 `protobuf:"varint,22,opt,name=memUsage,proto3" json:"memUsage,omitempty"` - CpuUsageNs float32 `protobuf:"fixed32,23,opt,name=cpuUsageNs,proto3" json:"cpuUsageNs,omitempty"` - MemAccounted uint64 `protobuf:"varint,24,opt,name=memAccounted,proto3" json:"memAccounted,omitempty"` +// Deprecated: Use CollectorCluster.ProtoReflect.Descriptor instead. +func (*CollectorCluster) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{12} } -func (m *ContainerStat) Reset() { *m = ContainerStat{} } -func (m *ContainerStat) String() string { return proto.CompactTextString(m) } -func (*ContainerStat) ProtoMessage() {} -func (*ContainerStat) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{41} } +func (x *CollectorCluster) GetClusterName() string { + if x != nil { + return x.ClusterName + } + return "" +} -type SystemInfo struct { - Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` - Os *OSInfo `protobuf:"bytes,2,opt,name=os" json:"os,omitempty"` - Cpus []*CPUInfo `protobuf:"bytes,3,rep,name=cpus" json:"cpus,omitempty"` - TotalMemory int64 `protobuf:"varint,5,opt,name=totalMemory,proto3" json:"totalMemory,omitempty"` +func (x *CollectorCluster) GetClusterId() string { + if x != nil { + return x.ClusterId + } + return "" } -func (m *SystemInfo) Reset() { *m = SystemInfo{} } -func (m *SystemInfo) String() string { return proto.CompactTextString(m) } -func (*SystemInfo) ProtoMessage() {} -func (*SystemInfo) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{42} } +func (x *CollectorCluster) GetGroupId() int32 { + if x != nil { + return x.GroupId + } + return 0 +} -func (m *SystemInfo) GetOs() *OSInfo { - if m != nil { - return m.Os +func (x *CollectorCluster) GetGroupSize() int32 { + if x != nil { + return x.GroupSize } - return nil + return 0 } -func (m *SystemInfo) GetCpus() []*CPUInfo { - if m != nil { - return m.Cpus +func (x *CollectorCluster) GetCluster() *Cluster { + if x != nil { + return x.Cluster } return nil } -type OSInfo struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Platform string `protobuf:"bytes,2,opt,name=platform,proto3" json:"platform,omitempty"` - Family string `protobuf:"bytes,3,opt,name=family,proto3" json:"family,omitempty"` - Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"` - KernelVersion string `protobuf:"bytes,5,opt,name=kernelVersion,proto3" json:"kernelVersion,omitempty"` +func (x *CollectorCluster) GetTags() []string { + if x != nil { + return x.Tags + } + return nil } -func (m *OSInfo) Reset() { *m = OSInfo{} } -func (m *OSInfo) String() string { return proto.CompactTextString(m) } -func (*OSInfo) ProtoMessage() {} -func (*OSInfo) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{43} } +// CollectorManifest is the dedicated payload/pipeline for the yaml collection +type CollectorManifest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -type IOStat struct { - ReadRate float32 `protobuf:"fixed32,1,opt,name=readRate,proto3" json:"readRate,omitempty"` - WriteRate float32 `protobuf:"fixed32,2,opt,name=writeRate,proto3" json:"writeRate,omitempty"` - ReadBytesRate float32 `protobuf:"fixed32,3,opt,name=readBytesRate,proto3" json:"readBytesRate,omitempty"` - WriteBytesRate float32 `protobuf:"fixed32,4,opt,name=writeBytesRate,proto3" json:"writeBytesRate,omitempty"` + ClusterName string `protobuf:"bytes,1,opt,name=clusterName,proto3" json:"clusterName,omitempty"` + ClusterId string `protobuf:"bytes,2,opt,name=clusterId,proto3" json:"clusterId,omitempty"` + GroupId int32 `protobuf:"varint,3,opt,name=groupId,proto3" json:"groupId,omitempty"` + GroupSize int32 `protobuf:"varint,4,opt,name=groupSize,proto3" json:"groupSize,omitempty"` + Manifests []*Manifest `protobuf:"bytes,5,rep,name=manifests,proto3" json:"manifests,omitempty"` } -func (m *IOStat) Reset() { *m = IOStat{} } -func (m *IOStat) String() string { return proto.CompactTextString(m) } -func (*IOStat) ProtoMessage() {} -func (*IOStat) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{44} } +func (x *CollectorManifest) Reset() { + *x = CollectorManifest{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} -type MemoryStat struct { - Rss uint64 `protobuf:"varint,1,opt,name=rss,proto3" json:"rss,omitempty"` - Vms uint64 `protobuf:"varint,2,opt,name=vms,proto3" json:"vms,omitempty"` - Swap uint64 `protobuf:"varint,3,opt,name=swap,proto3" json:"swap,omitempty"` - Shared uint64 `protobuf:"varint,4,opt,name=shared,proto3" json:"shared,omitempty"` - Text uint64 `protobuf:"varint,5,opt,name=text,proto3" json:"text,omitempty"` - Lib uint64 `protobuf:"varint,6,opt,name=lib,proto3" json:"lib,omitempty"` - Data uint64 `protobuf:"varint,7,opt,name=data,proto3" json:"data,omitempty"` - Dirty uint64 `protobuf:"varint,8,opt,name=dirty,proto3" json:"dirty,omitempty"` +func (x *CollectorManifest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *MemoryStat) Reset() { *m = MemoryStat{} } -func (m *MemoryStat) String() string { return proto.CompactTextString(m) } -func (*MemoryStat) ProtoMessage() {} -func (*MemoryStat) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{45} } +func (*CollectorManifest) ProtoMessage() {} -type CPUStat struct { - LastCpu string `protobuf:"bytes,1,opt,name=lastCpu,proto3" json:"lastCpu,omitempty"` - TotalPct float32 `protobuf:"fixed32,2,opt,name=totalPct,proto3" json:"totalPct,omitempty"` - UserPct float32 `protobuf:"fixed32,3,opt,name=userPct,proto3" json:"userPct,omitempty"` - SystemPct float32 `protobuf:"fixed32,4,opt,name=systemPct,proto3" json:"systemPct,omitempty"` - NumThreads int32 `protobuf:"varint,5,opt,name=numThreads,proto3" json:"numThreads,omitempty"` - Cpus []*SingleCPUStat `protobuf:"bytes,6,rep,name=cpus" json:"cpus,omitempty"` - Nice int32 `protobuf:"varint,7,opt,name=nice,proto3" json:"nice,omitempty"` - UserTime int64 `protobuf:"varint,8,opt,name=userTime,proto3" json:"userTime,omitempty"` - SystemTime int64 `protobuf:"varint,9,opt,name=systemTime,proto3" json:"systemTime,omitempty"` +func (x *CollectorManifest) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[13] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (m *CPUStat) Reset() { *m = CPUStat{} } -func (m *CPUStat) String() string { return proto.CompactTextString(m) } -func (*CPUStat) ProtoMessage() {} -func (*CPUStat) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{46} } +// Deprecated: Use CollectorManifest.ProtoReflect.Descriptor instead. +func (*CollectorManifest) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{13} +} -func (m *CPUStat) GetCpus() []*SingleCPUStat { - if m != nil { - return m.Cpus +func (x *CollectorManifest) GetClusterName() string { + if x != nil { + return x.ClusterName } - return nil + return "" } -type SingleCPUStat struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - TotalPct float32 `protobuf:"fixed32,2,opt,name=totalPct,proto3" json:"totalPct,omitempty"` +func (x *CollectorManifest) GetClusterId() string { + if x != nil { + return x.ClusterId + } + return "" } -func (m *SingleCPUStat) Reset() { *m = SingleCPUStat{} } -func (m *SingleCPUStat) String() string { return proto.CompactTextString(m) } -func (*SingleCPUStat) ProtoMessage() {} -func (*SingleCPUStat) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{47} } +func (x *CollectorManifest) GetGroupId() int32 { + if x != nil { + return x.GroupId + } + return 0 +} -type CPUInfo struct { - Number int32 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"` - Vendor string `protobuf:"bytes,2,opt,name=vendor,proto3" json:"vendor,omitempty"` - Family string `protobuf:"bytes,3,opt,name=family,proto3" json:"family,omitempty"` - Model string `protobuf:"bytes,4,opt,name=model,proto3" json:"model,omitempty"` - PhysicalId string `protobuf:"bytes,5,opt,name=physicalId,proto3" json:"physicalId,omitempty"` - CoreId string `protobuf:"bytes,6,opt,name=coreId,proto3" json:"coreId,omitempty"` - Cores int32 `protobuf:"varint,7,opt,name=cores,proto3" json:"cores,omitempty"` - Mhz int64 `protobuf:"varint,8,opt,name=mhz,proto3" json:"mhz,omitempty"` - CacheSize int32 `protobuf:"varint,9,opt,name=cacheSize,proto3" json:"cacheSize,omitempty"` +func (x *CollectorManifest) GetGroupSize() int32 { + if x != nil { + return x.GroupSize + } + return 0 } -func (m *CPUInfo) Reset() { *m = CPUInfo{} } -func (m *CPUInfo) String() string { return proto.CompactTextString(m) } -func (*CPUInfo) ProtoMessage() {} -func (*CPUInfo) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{48} } +func (x *CollectorManifest) GetManifests() []*Manifest { + if x != nil { + return x.Manifests + } + return nil +} -type Host struct { - Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - OrgId int32 `protobuf:"varint,2,opt,name=orgId,proto3" json:"orgId,omitempty"` - Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` - AllTags []string `protobuf:"bytes,6,rep,name=allTags" json:"allTags,omitempty"` - NumCpus int32 `protobuf:"varint,7,opt,name=numCpus,proto3" json:"numCpus,omitempty"` - TotalMemory int64 `protobuf:"varint,8,opt,name=totalMemory,proto3" json:"totalMemory,omitempty"` - TagIndex int32 `protobuf:"varint,9,opt,name=tagIndex,proto3" json:"tagIndex,omitempty"` - TagsModified int64 `protobuf:"varint,10,opt,name=tagsModified,proto3" json:"tagsModified,omitempty"` +type CollectorManifestCRD struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Manifest *CollectorManifest `protobuf:"bytes,1,opt,name=manifest,proto3" json:"manifest,omitempty"` } -func (m *Host) Reset() { *m = Host{} } -func (m *Host) String() string { return proto.CompactTextString(m) } -func (*Host) ProtoMessage() {} -func (*Host) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{49} } +func (x *CollectorManifestCRD) Reset() { + *x = CollectorManifestCRD{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} -type Cluster struct { - NodeCount int32 `protobuf:"varint,1,opt,name=nodeCount,proto3" json:"nodeCount,omitempty"` - KubeletVersions map[string]int32 `protobuf:"bytes,2,rep,name=kubeletVersions" json:"kubeletVersions,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` - ApiServerVersions map[string]int32 `protobuf:"bytes,3,rep,name=apiServerVersions" json:"apiServerVersions,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` - // sum of all nodes capacities and allocatables. - // Using smallest possible quantity levels. - // For memory it is bytes, for CPU it is millicore. - PodCapacity uint32 `protobuf:"varint,4,opt,name=podCapacity,proto3" json:"podCapacity,omitempty"` - PodAllocatable uint32 `protobuf:"varint,5,opt,name=podAllocatable,proto3" json:"podAllocatable,omitempty"` - MemoryAllocatable uint64 `protobuf:"varint,6,opt,name=memoryAllocatable,proto3" json:"memoryAllocatable,omitempty"` - MemoryCapacity uint64 `protobuf:"varint,7,opt,name=memoryCapacity,proto3" json:"memoryCapacity,omitempty"` - CpuAllocatable uint64 `protobuf:"varint,8,opt,name=cpuAllocatable,proto3" json:"cpuAllocatable,omitempty"` - CpuCapacity uint64 `protobuf:"varint,9,opt,name=cpuCapacity,proto3" json:"cpuCapacity,omitempty"` - ResourceVersion string `protobuf:"bytes,10,opt,name=resourceVersion,proto3" json:"resourceVersion,omitempty"` - CreationTimestamp int64 `protobuf:"varint,11,opt,name=creationTimestamp,proto3" json:"creationTimestamp,omitempty"` - Tags []string `protobuf:"bytes,12,rep,name=tags" json:"tags,omitempty"` - Metrics *ResourceMetrics `protobuf:"bytes,13,opt,name=metrics" json:"metrics,omitempty"` +func (x *CollectorManifestCRD) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Cluster) Reset() { *m = Cluster{} } -func (m *Cluster) String() string { return proto.CompactTextString(m) } -func (*Cluster) ProtoMessage() {} -func (*Cluster) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{50} } +func (*CollectorManifestCRD) ProtoMessage() {} -func (m *Cluster) GetKubeletVersions() map[string]int32 { - if m != nil { - return m.KubeletVersions +func (x *CollectorManifestCRD) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[14] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -func (m *Cluster) GetApiServerVersions() map[string]int32 { - if m != nil { - return m.ApiServerVersions - } - return nil +// Deprecated: Use CollectorManifestCRD.ProtoReflect.Descriptor instead. +func (*CollectorManifestCRD) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{14} } -func (m *Cluster) GetMetrics() *ResourceMetrics { - if m != nil { - return m.Metrics +func (x *CollectorManifestCRD) GetManifest() *CollectorManifest { + if x != nil { + return x.Manifest } return nil } -// reference https://github.com/kubernetes/apimachinery/blob/2373d029717c4d169463414a6127cd1d0d12680e/pkg/apis/meta/v1/generated.proto#L521 -type Metadata struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` - Uid string `protobuf:"bytes,3,opt,name=uid,proto3" json:"uid,omitempty"` - CreationTimestamp int64 `protobuf:"varint,4,opt,name=creationTimestamp,proto3" json:"creationTimestamp,omitempty"` - DeletionTimestamp int64 `protobuf:"varint,5,opt,name=deletionTimestamp,proto3" json:"deletionTimestamp,omitempty"` - Labels []string `protobuf:"bytes,6,rep,name=labels" json:"labels,omitempty"` - Annotations []string `protobuf:"bytes,7,rep,name=annotations" json:"annotations,omitempty"` - OwnerReferences []*OwnerReference `protobuf:"bytes,8,rep,name=ownerReferences" json:"ownerReferences,omitempty"` - ResourceVersion string `protobuf:"bytes,9,opt,name=resourceVersion,proto3" json:"resourceVersion,omitempty"` - Finalizers []string `protobuf:"bytes,10,rep,name=finalizers" json:"finalizers,omitempty"` -} +type CollectorManifestCR struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *Metadata) Reset() { *m = Metadata{} } -func (m *Metadata) String() string { return proto.CompactTextString(m) } -func (*Metadata) ProtoMessage() {} -func (*Metadata) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{51} } + Manifest *CollectorManifest `protobuf:"bytes,1,opt,name=manifest,proto3" json:"manifest,omitempty"` +} -func (m *Metadata) GetOwnerReferences() []*OwnerReference { - if m != nil { - return m.OwnerReferences +func (x *CollectorManifestCR) Reset() { + *x = CollectorManifestCR{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -type OwnerReference struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"` - Kind string `protobuf:"bytes,3,opt,name=kind,proto3" json:"kind,omitempty"` +func (x *CollectorManifestCR) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *OwnerReference) Reset() { *m = OwnerReference{} } -func (m *OwnerReference) String() string { return proto.CompactTextString(m) } -func (*OwnerReference) ProtoMessage() {} -func (*OwnerReference) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{52} } +func (*CollectorManifestCR) ProtoMessage() {} -// reference https://github.com/kubernetes/kubernetes/blob/cb19b56831d54d1d31249949318ef0b07bf00df9/pkg/apis/core/types.go#L4317 -type ObjectReference struct { - Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"` - Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` - Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` - Uid string `protobuf:"bytes,4,opt,name=uid,proto3" json:"uid,omitempty"` - ApiVersion string `protobuf:"bytes,5,opt,name=apiVersion,proto3" json:"apiVersion,omitempty"` - ResourceVersion string `protobuf:"bytes,6,opt,name=resourceVersion,proto3" json:"resourceVersion,omitempty"` - FieldPath string `protobuf:"bytes,7,opt,name=fieldPath,proto3" json:"fieldPath,omitempty"` +func (x *CollectorManifestCR) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_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) } -func (m *ObjectReference) Reset() { *m = ObjectReference{} } -func (m *ObjectReference) String() string { return proto.CompactTextString(m) } -func (*ObjectReference) ProtoMessage() {} -func (*ObjectReference) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{53} } +// Deprecated: Use CollectorManifestCR.ProtoReflect.Descriptor instead. +func (*CollectorManifestCR) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{15} +} -// reference https://github.com/kubernetes/kubernetes/blob/cb19b56831d54d1d31249949318ef0b07bf00df9/staging/src/k8s.io/api/core/v1/generated.proto#L4571 -type ServicePort struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Protocol string `protobuf:"bytes,2,opt,name=protocol,proto3" json:"protocol,omitempty"` - Port int32 `protobuf:"varint,3,opt,name=port,proto3" json:"port,omitempty"` - TargetPort string `protobuf:"bytes,4,opt,name=targetPort,proto3" json:"targetPort,omitempty"` - NodePort int32 `protobuf:"varint,5,opt,name=nodePort,proto3" json:"nodePort,omitempty"` +func (x *CollectorManifestCR) GetManifest() *CollectorManifest { + if x != nil { + return x.Manifest + } + return nil } -func (m *ServicePort) Reset() { *m = ServicePort{} } -func (m *ServicePort) String() string { return proto.CompactTextString(m) } -func (*ServicePort) ProtoMessage() {} -func (*ServicePort) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{54} } +type CollectorNamespace struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -// reference https://github.com/kubernetes/kubernetes/blob/cb19b56831d54d1d31249949318ef0b07bf00df9/staging/src/k8s.io/api/core/v1/generated.proto#L4756 -type ServiceSessionAffinityConfig struct { - ClientIPTimeoutSeconds int32 `protobuf:"varint,1,opt,name=clientIPTimeoutSeconds,proto3" json:"clientIPTimeoutSeconds,omitempty"` + ClusterName string `protobuf:"bytes,1,opt,name=clusterName,proto3" json:"clusterName,omitempty"` + ClusterId string `protobuf:"bytes,2,opt,name=clusterId,proto3" json:"clusterId,omitempty"` + GroupId int32 `protobuf:"varint,3,opt,name=groupId,proto3" json:"groupId,omitempty"` + GroupSize int32 `protobuf:"varint,4,opt,name=groupSize,proto3" json:"groupSize,omitempty"` + Namespaces []*Namespace `protobuf:"bytes,5,rep,name=namespaces,proto3" json:"namespaces,omitempty"` + Tags []string `protobuf:"bytes,6,rep,name=tags,proto3" json:"tags,omitempty"` } -func (m *ServiceSessionAffinityConfig) Reset() { *m = ServiceSessionAffinityConfig{} } -func (m *ServiceSessionAffinityConfig) String() string { return proto.CompactTextString(m) } -func (*ServiceSessionAffinityConfig) ProtoMessage() {} -func (*ServiceSessionAffinityConfig) Descriptor() ([]byte, []int) { - return fileDescriptorAgent, []int{55} +func (x *CollectorNamespace) Reset() { + *x = CollectorNamespace{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -// reference https://github.com/kubernetes/kubernetes/blob/cb19b56831d54d1d31249949318ef0b07bf00df9/staging/src/k8s.io/api/core/v1/generated.proto#L2107 -type Node struct { - Metadata *Metadata `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"` - // spec reference https://github.com/kubernetes/kubernetes/blob/cb19b56831d54d1d31249949318ef0b07bf00df9/staging/src/k8s.io/api/core/v1/generated.proto#L2312 - PodCIDR string `protobuf:"bytes,2,opt,name=podCIDR,proto3" json:"podCIDR,omitempty"` - PodCIDRs []string `protobuf:"bytes,3,rep,name=podCIDRs" json:"podCIDRs,omitempty"` - Unschedulable bool `protobuf:"varint,4,opt,name=unschedulable,proto3" json:"unschedulable,omitempty"` - Taints []*Taint `protobuf:"bytes,5,rep,name=taints" json:"taints,omitempty"` - Status *NodeStatus `protobuf:"bytes,6,opt,name=status" json:"status,omitempty"` - Yaml []byte `protobuf:"bytes,7,opt,name=yaml,proto3" json:"yaml,omitempty"` - // we parse it from the labels. Similar to upstream https://github.com/kubernetes/kubernetes/blob/1e12d92a5179dbfeb455c79dbf9120c8536e5f9c/pkg/printers/internalversion/printers.go#L1487 - Roles []string `protobuf:"bytes,8,rep,name=roles" json:"roles,omitempty"` - Tags []string `protobuf:"bytes,9,rep,name=tags" json:"tags,omitempty"` - ProviderID string `protobuf:"bytes,10,opt,name=providerID,proto3" json:"providerID,omitempty"` - Host *Host `protobuf:"bytes,11,opt,name=host" json:"host,omitempty"` - Metrics *ResourceMetrics `protobuf:"bytes,12,opt,name=metrics" json:"metrics,omitempty"` +func (x *CollectorNamespace) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Node) Reset() { *m = Node{} } -func (m *Node) String() string { return proto.CompactTextString(m) } -func (*Node) ProtoMessage() {} -func (*Node) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{56} } +func (*CollectorNamespace) ProtoMessage() {} -func (m *Node) GetMetadata() *Metadata { - if m != nil { - return m.Metadata +func (x *CollectorNamespace) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[16] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -func (m *Node) GetTaints() []*Taint { - if m != nil { - return m.Taints - } - return nil +// Deprecated: Use CollectorNamespace.ProtoReflect.Descriptor instead. +func (*CollectorNamespace) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{16} } -func (m *Node) GetStatus() *NodeStatus { - if m != nil { - return m.Status +func (x *CollectorNamespace) GetClusterName() string { + if x != nil { + return x.ClusterName } - return nil + return "" } -func (m *Node) GetHost() *Host { - if m != nil { - return m.Host +func (x *CollectorNamespace) GetClusterId() string { + if x != nil { + return x.ClusterId } - return nil + return "" } -func (m *Node) GetMetrics() *ResourceMetrics { - if m != nil { - return m.Metrics +func (x *CollectorNamespace) GetGroupId() int32 { + if x != nil { + return x.GroupId } - return nil -} - -// reference https://github.com/kubernetes/kubernetes/blob/cb19b56831d54d1d31249949318ef0b07bf00df9/staging/src/k8s.io/api/core/v1/generated.proto#L2348 -type NodeStatus struct { - // Key/Value of a resource type and a corresponding quantity as an int64. - Capacity map[string]int64 `protobuf:"bytes,1,rep,name=capacity" json:"capacity,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` - // Key/Value of a resource type and a corresponding quantity as an int64. - Allocatable map[string]int64 `protobuf:"bytes,2,rep,name=allocatable" json:"allocatable,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` - // https://github.com/kubernetes/kubernetes/blob/cb19b56831d54d1d31249949318ef0b07bf00df9/staging/src/k8s.io/api/core/v1/generated.proto#L2127 - // these are valid types https://github.com/kubernetes/api/blob/master/core/v1/types.go#L4739-L4753 - NodeAddresses map[string]string `protobuf:"bytes,3,rep,name=nodeAddresses" json:"nodeAddresses,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - // node status displayed by "kubectl get node" - // mostly based on NodeCondition - // and https://github.com/kubernetes/kubernetes/blob/1e12d92a5179dbfeb455c79dbf9120c8536e5f9c/pkg/printers/internalversion/printers.go#L1410 - Status string `protobuf:"bytes,4,opt,name=status,proto3" json:"status,omitempty"` - KubeletVersion string `protobuf:"bytes,5,opt,name=kubeletVersion,proto3" json:"kubeletVersion,omitempty"` - Conditions []*NodeCondition `protobuf:"bytes,6,rep,name=conditions" json:"conditions,omitempty"` - Images []*ContainerImage `protobuf:"bytes,7,rep,name=images" json:"images,omitempty"` - // node system info reference https://github.com/kubernetes/kubernetes/blob/cb19b56831d54d1d31249949318ef0b07bf00df9/staging/src/k8s.io/api/core/v1/generated.proto#L2411 - KubeProxyVersion string `protobuf:"bytes,8,opt,name=kubeProxyVersion,proto3" json:"kubeProxyVersion,omitempty"` - OperatingSystem string `protobuf:"bytes,9,opt,name=operatingSystem,proto3" json:"operatingSystem,omitempty"` - Architecture string `protobuf:"bytes,10,opt,name=architecture,proto3" json:"architecture,omitempty"` - KernelVersion string `protobuf:"bytes,11,opt,name=kernelVersion,proto3" json:"kernelVersion,omitempty"` - OsImage string `protobuf:"bytes,12,opt,name=osImage,proto3" json:"osImage,omitempty"` - ContainerRuntimeVersion string `protobuf:"bytes,13,opt,name=containerRuntimeVersion,proto3" json:"containerRuntimeVersion,omitempty"` + return 0 } -func (m *NodeStatus) Reset() { *m = NodeStatus{} } -func (m *NodeStatus) String() string { return proto.CompactTextString(m) } -func (*NodeStatus) ProtoMessage() {} -func (*NodeStatus) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{57} } - -func (m *NodeStatus) GetCapacity() map[string]int64 { - if m != nil { - return m.Capacity +func (x *CollectorNamespace) GetGroupSize() int32 { + if x != nil { + return x.GroupSize } - return nil + return 0 } -func (m *NodeStatus) GetAllocatable() map[string]int64 { - if m != nil { - return m.Allocatable +func (x *CollectorNamespace) GetNamespaces() []*Namespace { + if x != nil { + return x.Namespaces } return nil } -func (m *NodeStatus) GetNodeAddresses() map[string]string { - if m != nil { - return m.NodeAddresses +func (x *CollectorNamespace) GetTags() []string { + if x != nil { + return x.Tags } return nil } -func (m *NodeStatus) GetConditions() []*NodeCondition { - if m != nil { - return m.Conditions - } - return nil +type CollectorJob struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ClusterName string `protobuf:"bytes,1,opt,name=clusterName,proto3" json:"clusterName,omitempty"` + ClusterId string `protobuf:"bytes,2,opt,name=clusterId,proto3" json:"clusterId,omitempty"` + GroupId int32 `protobuf:"varint,3,opt,name=groupId,proto3" json:"groupId,omitempty"` + GroupSize int32 `protobuf:"varint,4,opt,name=groupSize,proto3" json:"groupSize,omitempty"` + Jobs []*Job `protobuf:"bytes,5,rep,name=jobs,proto3" json:"jobs,omitempty"` + Tags []string `protobuf:"bytes,6,rep,name=tags,proto3" json:"tags,omitempty"` } -func (m *NodeStatus) GetImages() []*ContainerImage { - if m != nil { - return m.Images +func (x *CollectorJob) Reset() { + *x = CollectorJob{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -// reference: https://github.com/kubernetes/kubernetes/blob/cb19b56831d54d1d31249949318ef0b07bf00df9/staging/src/k8s.io/api/core/v1/generated.proto#L2158 -type NodeCondition struct { - Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` - Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` - LastTransitionTime int64 `protobuf:"varint,3,opt,name=lastTransitionTime,proto3" json:"lastTransitionTime,omitempty"` - Reason string `protobuf:"bytes,4,opt,name=reason,proto3" json:"reason,omitempty"` - Message string `protobuf:"bytes,5,opt,name=message,proto3" json:"message,omitempty"` +func (x *CollectorJob) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *NodeCondition) Reset() { *m = NodeCondition{} } -func (m *NodeCondition) String() string { return proto.CompactTextString(m) } -func (*NodeCondition) ProtoMessage() {} -func (*NodeCondition) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{58} } +func (*CollectorJob) ProtoMessage() {} -// reference https://github.com/kubernetes/kubernetes/blob/cb19b56831d54d1d31249949318ef0b07bf00df9/staging/src/k8s.io/api/core/v1/generated.proto#L777 -type ContainerImage struct { - Names []string `protobuf:"bytes,1,rep,name=names" json:"names,omitempty"` - SizeBytes int64 `protobuf:"varint,2,opt,name=sizeBytes,proto3" json:"sizeBytes,omitempty"` +func (x *CollectorJob) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[17] + 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) } -func (m *ContainerImage) Reset() { *m = ContainerImage{} } -func (m *ContainerImage) String() string { return proto.CompactTextString(m) } -func (*ContainerImage) ProtoMessage() {} -func (*ContainerImage) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{59} } +// Deprecated: Use CollectorJob.ProtoReflect.Descriptor instead. +func (*CollectorJob) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{17} +} -// reference https://github.com/kubernetes/kubernetes/blob/cb19b56831d54d1d31249949318ef0b07bf00df9/staging/src/k8s.io/api/core/v1/generated.proto#L4849 -type Taint struct { - Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` - Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` - Effect string `protobuf:"bytes,3,opt,name=effect,proto3" json:"effect,omitempty"` - TimeAdded int64 `protobuf:"varint,4,opt,name=timeAdded,proto3" json:"timeAdded,omitempty"` +func (x *CollectorJob) GetClusterName() string { + if x != nil { + return x.ClusterName + } + return "" } -func (m *Taint) Reset() { *m = Taint{} } -func (m *Taint) String() string { return proto.CompactTextString(m) } -func (*Taint) ProtoMessage() {} -func (*Taint) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{60} } +func (x *CollectorJob) GetClusterId() string { + if x != nil { + return x.ClusterId + } + return "" +} -// reference https://github.com/kubernetes/kubernetes/blob/cb19b56831d54d1d31249949318ef0b07bf00df9/staging/src/k8s.io/api/core/v1/generated.proto#L4620 -type ServiceSpec struct { - Ports []*ServicePort `protobuf:"bytes,1,rep,name=ports" json:"ports,omitempty"` - Selectors []*LabelSelectorRequirement `protobuf:"bytes,2,rep,name=selectors" json:"selectors,omitempty"` - ClusterIP string `protobuf:"bytes,3,opt,name=clusterIP,proto3" json:"clusterIP,omitempty"` - Type string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"` - ExternalIPs []string `protobuf:"bytes,5,rep,name=externalIPs" json:"externalIPs,omitempty"` - SessionAffinity string `protobuf:"bytes,6,opt,name=sessionAffinity,proto3" json:"sessionAffinity,omitempty"` - LoadBalancerIP string `protobuf:"bytes,7,opt,name=loadBalancerIP,proto3" json:"loadBalancerIP,omitempty"` - LoadBalancerSourceRanges []string `protobuf:"bytes,8,rep,name=loadBalancerSourceRanges" json:"loadBalancerSourceRanges,omitempty"` - ExternalName string `protobuf:"bytes,9,opt,name=externalName,proto3" json:"externalName,omitempty"` - ExternalTrafficPolicy string `protobuf:"bytes,10,opt,name=externalTrafficPolicy,proto3" json:"externalTrafficPolicy,omitempty"` - HealthCheckNodePort int32 `protobuf:"varint,11,opt,name=healthCheckNodePort,proto3" json:"healthCheckNodePort,omitempty"` - PublishNotReadyAddresses bool `protobuf:"varint,12,opt,name=publishNotReadyAddresses,proto3" json:"publishNotReadyAddresses,omitempty"` - SessionAffinityConfig *ServiceSessionAffinityConfig `protobuf:"bytes,13,opt,name=sessionAffinityConfig" json:"sessionAffinityConfig,omitempty"` - IpFamily string `protobuf:"bytes,14,opt,name=ipFamily,proto3" json:"ipFamily,omitempty"` +func (x *CollectorJob) GetGroupId() int32 { + if x != nil { + return x.GroupId + } + return 0 } -func (m *ServiceSpec) Reset() { *m = ServiceSpec{} } -func (m *ServiceSpec) String() string { return proto.CompactTextString(m) } -func (*ServiceSpec) ProtoMessage() {} -func (*ServiceSpec) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{61} } +func (x *CollectorJob) GetGroupSize() int32 { + if x != nil { + return x.GroupSize + } + return 0 +} -func (m *ServiceSpec) GetPorts() []*ServicePort { - if m != nil { - return m.Ports +func (x *CollectorJob) GetJobs() []*Job { + if x != nil { + return x.Jobs } return nil } -func (m *ServiceSpec) GetSelectors() []*LabelSelectorRequirement { - if m != nil { - return m.Selectors +func (x *CollectorJob) GetTags() []string { + if x != nil { + return x.Tags } return nil } -func (m *ServiceSpec) GetSessionAffinityConfig() *ServiceSessionAffinityConfig { - if m != nil { - return m.SessionAffinityConfig +type CollectorCronJob struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ClusterName string `protobuf:"bytes,1,opt,name=clusterName,proto3" json:"clusterName,omitempty"` + ClusterId string `protobuf:"bytes,2,opt,name=clusterId,proto3" json:"clusterId,omitempty"` + GroupId int32 `protobuf:"varint,3,opt,name=groupId,proto3" json:"groupId,omitempty"` + GroupSize int32 `protobuf:"varint,4,opt,name=groupSize,proto3" json:"groupSize,omitempty"` + CronJobs []*CronJob `protobuf:"bytes,5,rep,name=cronJobs,proto3" json:"cronJobs,omitempty"` + Tags []string `protobuf:"bytes,6,rep,name=tags,proto3" json:"tags,omitempty"` +} + +func (x *CollectorCronJob) Reset() { + *x = CollectorCronJob{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -// reference https://github.com/kubernetes/kubernetes/blob/cb19b56831d54d1d31249949318ef0b07bf00df9/staging/src/k8s.io/api/core/v1/generated.proto#L4748 -type ServiceStatus struct { - LoadBalancerIngress []string `protobuf:"bytes,17,rep,name=loadBalancerIngress" json:"loadBalancerIngress,omitempty"` +func (x *CollectorCronJob) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ServiceStatus) Reset() { *m = ServiceStatus{} } -func (m *ServiceStatus) String() string { return proto.CompactTextString(m) } -func (*ServiceStatus) ProtoMessage() {} -func (*ServiceStatus) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{62} } +func (*CollectorCronJob) ProtoMessage() {} -// reference https://github.com/kubernetes/kubernetes/blob/release-1.19/staging/src/k8s.io/api/core/v1/generated.proto -type Service struct { - Metadata *Metadata `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"` - Spec *ServiceSpec `protobuf:"bytes,2,opt,name=spec" json:"spec,omitempty"` - Status *ServiceStatus `protobuf:"bytes,3,opt,name=status" json:"status,omitempty"` - Yaml []byte `protobuf:"bytes,4,opt,name=yaml,proto3" json:"yaml,omitempty"` - Tags []string `protobuf:"bytes,5,rep,name=tags" json:"tags,omitempty"` - Metrics *ResourceMetrics `protobuf:"bytes,6,opt,name=metrics" json:"metrics,omitempty"` +func (x *CollectorCronJob) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[18] + 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) } -func (m *Service) Reset() { *m = Service{} } -func (m *Service) String() string { return proto.CompactTextString(m) } -func (*Service) ProtoMessage() {} -func (*Service) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{63} } +// Deprecated: Use CollectorCronJob.ProtoReflect.Descriptor instead. +func (*CollectorCronJob) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{18} +} -func (m *Service) GetMetadata() *Metadata { - if m != nil { - return m.Metadata +func (x *CollectorCronJob) GetClusterName() string { + if x != nil { + return x.ClusterName } - return nil + return "" } -func (m *Service) GetSpec() *ServiceSpec { - if m != nil { - return m.Spec +func (x *CollectorCronJob) GetClusterId() string { + if x != nil { + return x.ClusterId } - return nil + return "" } -func (m *Service) GetStatus() *ServiceStatus { - if m != nil { - return m.Status +func (x *CollectorCronJob) GetGroupId() int32 { + if x != nil { + return x.GroupId + } + return 0 +} + +func (x *CollectorCronJob) GetGroupSize() int32 { + if x != nil { + return x.GroupSize + } + return 0 +} + +func (x *CollectorCronJob) GetCronJobs() []*CronJob { + if x != nil { + return x.CronJobs } return nil } -func (m *Service) GetMetrics() *ResourceMetrics { - if m != nil { - return m.Metrics +func (x *CollectorCronJob) GetTags() []string { + if x != nil { + return x.Tags } return nil } -// reference https://github.com/kubernetes/kubernetes/blob/cb19b56831d54d1d31249949318ef0b07bf00df9/staging/src/k8s.io/api/apps/v1/generated.proto#L236 -type DeploymentCondition struct { - Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` - Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` - LastUpdateTime int64 `protobuf:"varint,6,opt,name=lastUpdateTime,proto3" json:"lastUpdateTime,omitempty"` - LastTransitionTime int64 `protobuf:"varint,7,opt,name=lastTransitionTime,proto3" json:"lastTransitionTime,omitempty"` - Reason string `protobuf:"bytes,4,opt,name=reason,proto3" json:"reason,omitempty"` - Message string `protobuf:"bytes,5,opt,name=message,proto3" json:"message,omitempty"` -} - -func (m *DeploymentCondition) Reset() { *m = DeploymentCondition{} } -func (m *DeploymentCondition) String() string { return proto.CompactTextString(m) } -func (*DeploymentCondition) ProtoMessage() {} -func (*DeploymentCondition) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{64} } +type CollectorDaemonSet struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -// reference https://github.com/kubernetes/kubernetes/blob/cb19b56831d54d1d31249949318ef0b07bf00df9/staging/src/k8s.io/api/apps/v1/generated.proto#L221 -type Deployment struct { - Metadata *Metadata `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"` - // spec - ReplicasDesired int32 `protobuf:"varint,2,opt,name=replicasDesired,proto3" json:"replicasDesired,omitempty"` - DeploymentStrategy string `protobuf:"bytes,3,opt,name=deploymentStrategy,proto3" json:"deploymentStrategy,omitempty"` - MaxUnavailable string `protobuf:"bytes,4,opt,name=maxUnavailable,proto3" json:"maxUnavailable,omitempty"` - MaxSurge string `protobuf:"bytes,5,opt,name=maxSurge,proto3" json:"maxSurge,omitempty"` - Paused bool `protobuf:"varint,6,opt,name=paused,proto3" json:"paused,omitempty"` - Selectors []*LabelSelectorRequirement `protobuf:"bytes,7,rep,name=selectors" json:"selectors,omitempty"` - // status - Replicas int32 `protobuf:"varint,8,opt,name=replicas,proto3" json:"replicas,omitempty"` - UpdatedReplicas int32 `protobuf:"varint,9,opt,name=updatedReplicas,proto3" json:"updatedReplicas,omitempty"` - ReadyReplicas int32 `protobuf:"varint,10,opt,name=readyReplicas,proto3" json:"readyReplicas,omitempty"` - AvailableReplicas int32 `protobuf:"varint,11,opt,name=availableReplicas,proto3" json:"availableReplicas,omitempty"` - UnavailableReplicas int32 `protobuf:"varint,12,opt,name=unavailableReplicas,proto3" json:"unavailableReplicas,omitempty"` - ConditionMessage string `protobuf:"bytes,13,opt,name=conditionMessage,proto3" json:"conditionMessage,omitempty"` - ResourceRequirements []*ResourceRequirements `protobuf:"bytes,16,rep,name=resourceRequirements" json:"resourceRequirements,omitempty"` - Yaml []byte `protobuf:"bytes,14,opt,name=yaml,proto3" json:"yaml,omitempty"` - Tags []string `protobuf:"bytes,15,rep,name=tags" json:"tags,omitempty"` - Metrics *ResourceMetrics `protobuf:"bytes,17,opt,name=metrics" json:"metrics,omitempty"` - Conditions []*DeploymentCondition `protobuf:"bytes,18,rep,name=conditions" json:"conditions,omitempty"` + ClusterName string `protobuf:"bytes,1,opt,name=clusterName,proto3" json:"clusterName,omitempty"` + ClusterId string `protobuf:"bytes,2,opt,name=clusterId,proto3" json:"clusterId,omitempty"` + GroupId int32 `protobuf:"varint,3,opt,name=groupId,proto3" json:"groupId,omitempty"` + GroupSize int32 `protobuf:"varint,4,opt,name=groupSize,proto3" json:"groupSize,omitempty"` + DaemonSets []*DaemonSet `protobuf:"bytes,5,rep,name=daemonSets,proto3" json:"daemonSets,omitempty"` + Tags []string `protobuf:"bytes,6,rep,name=tags,proto3" json:"tags,omitempty"` } -func (m *Deployment) Reset() { *m = Deployment{} } -func (m *Deployment) String() string { return proto.CompactTextString(m) } -func (*Deployment) ProtoMessage() {} -func (*Deployment) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{65} } - -func (m *Deployment) GetMetadata() *Metadata { - if m != nil { - return m.Metadata +func (x *CollectorDaemonSet) Reset() { + *x = CollectorDaemonSet{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -func (m *Deployment) GetSelectors() []*LabelSelectorRequirement { - if m != nil { - return m.Selectors - } - return nil +func (x *CollectorDaemonSet) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Deployment) GetResourceRequirements() []*ResourceRequirements { - if m != nil { - return m.ResourceRequirements +func (*CollectorDaemonSet) ProtoMessage() {} + +func (x *CollectorDaemonSet) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[19] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -func (m *Deployment) GetMetrics() *ResourceMetrics { - if m != nil { - return m.Metrics - } - return nil +// Deprecated: Use CollectorDaemonSet.ProtoReflect.Descriptor instead. +func (*CollectorDaemonSet) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{19} } -func (m *Deployment) GetConditions() []*DeploymentCondition { - if m != nil { - return m.Conditions +func (x *CollectorDaemonSet) GetClusterName() string { + if x != nil { + return x.ClusterName } - return nil + return "" } -// reference https://github.com/kubernetes/kubernetes/blob/cb19b56831d54d1d31249949318ef0b07bf00df9/staging/src/k8s.io/api/apps/v1/generated.proto#L388 -type ReplicaSetCondition struct { - Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` - Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` - LastTransitionTime int64 `protobuf:"varint,3,opt,name=lastTransitionTime,proto3" json:"lastTransitionTime,omitempty"` - Reason string `protobuf:"bytes,4,opt,name=reason,proto3" json:"reason,omitempty"` - Message string `protobuf:"bytes,5,opt,name=message,proto3" json:"message,omitempty"` +func (x *CollectorDaemonSet) GetClusterId() string { + if x != nil { + return x.ClusterId + } + return "" } -func (m *ReplicaSetCondition) Reset() { *m = ReplicaSetCondition{} } -func (m *ReplicaSetCondition) String() string { return proto.CompactTextString(m) } -func (*ReplicaSetCondition) ProtoMessage() {} -func (*ReplicaSetCondition) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{66} } - -// reference https://github.com/kubernetes/kubernetes/blob/cb19b56831d54d1d31249949318ef0b07bf00df9/staging/src/k8s.io/api/apps/v1/generated.proto#L366 -type ReplicaSet struct { - Metadata *Metadata `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"` - // spec - ReplicasDesired int32 `protobuf:"varint,2,opt,name=replicasDesired,proto3" json:"replicasDesired,omitempty"` - Selectors []*LabelSelectorRequirement `protobuf:"bytes,3,rep,name=selectors" json:"selectors,omitempty"` - // status - Replicas int32 `protobuf:"varint,4,opt,name=replicas,proto3" json:"replicas,omitempty"` - FullyLabeledReplicas int32 `protobuf:"varint,5,opt,name=fullyLabeledReplicas,proto3" json:"fullyLabeledReplicas,omitempty"` - ReadyReplicas int32 `protobuf:"varint,6,opt,name=readyReplicas,proto3" json:"readyReplicas,omitempty"` - AvailableReplicas int32 `protobuf:"varint,7,opt,name=availableReplicas,proto3" json:"availableReplicas,omitempty"` - ResourceRequirements []*ResourceRequirements `protobuf:"bytes,10,rep,name=resourceRequirements" json:"resourceRequirements,omitempty"` - Yaml []byte `protobuf:"bytes,8,opt,name=yaml,proto3" json:"yaml,omitempty"` - Tags []string `protobuf:"bytes,9,rep,name=tags" json:"tags,omitempty"` - Metrics *ResourceMetrics `protobuf:"bytes,11,opt,name=metrics" json:"metrics,omitempty"` - Conditions []*ReplicaSetCondition `protobuf:"bytes,12,rep,name=conditions" json:"conditions,omitempty"` +func (x *CollectorDaemonSet) GetGroupId() int32 { + if x != nil { + return x.GroupId + } + return 0 } -func (m *ReplicaSet) Reset() { *m = ReplicaSet{} } -func (m *ReplicaSet) String() string { return proto.CompactTextString(m) } -func (*ReplicaSet) ProtoMessage() {} -func (*ReplicaSet) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{67} } - -func (m *ReplicaSet) GetMetadata() *Metadata { - if m != nil { - return m.Metadata +func (x *CollectorDaemonSet) GetGroupSize() int32 { + if x != nil { + return x.GroupSize } - return nil + return 0 } -func (m *ReplicaSet) GetSelectors() []*LabelSelectorRequirement { - if m != nil { - return m.Selectors +func (x *CollectorDaemonSet) GetDaemonSets() []*DaemonSet { + if x != nil { + return x.DaemonSets } return nil } -func (m *ReplicaSet) GetResourceRequirements() []*ResourceRequirements { - if m != nil { - return m.ResourceRequirements +func (x *CollectorDaemonSet) GetTags() []string { + if x != nil { + return x.Tags } return nil } -func (m *ReplicaSet) GetMetrics() *ResourceMetrics { - if m != nil { - return m.Metrics - } - return nil +type CollectorStatefulSet struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ClusterName string `protobuf:"bytes,1,opt,name=clusterName,proto3" json:"clusterName,omitempty"` + ClusterId string `protobuf:"bytes,2,opt,name=clusterId,proto3" json:"clusterId,omitempty"` + GroupId int32 `protobuf:"varint,3,opt,name=groupId,proto3" json:"groupId,omitempty"` + GroupSize int32 `protobuf:"varint,4,opt,name=groupSize,proto3" json:"groupSize,omitempty"` + StatefulSets []*StatefulSet `protobuf:"bytes,5,rep,name=statefulSets,proto3" json:"statefulSets,omitempty"` + Tags []string `protobuf:"bytes,6,rep,name=tags,proto3" json:"tags,omitempty"` } -func (m *ReplicaSet) GetConditions() []*ReplicaSetCondition { - if m != nil { - return m.Conditions +func (x *CollectorStatefulSet) Reset() { + *x = CollectorStatefulSet{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -type LabelSelectorRequirement struct { - Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` - // Valid operators are In, NotIn, Exists and DoesNotExist. - Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` - Values []string `protobuf:"bytes,3,rep,name=values" json:"values,omitempty"` +func (x *CollectorStatefulSet) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *LabelSelectorRequirement) Reset() { *m = LabelSelectorRequirement{} } -func (m *LabelSelectorRequirement) String() string { return proto.CompactTextString(m) } -func (*LabelSelectorRequirement) ProtoMessage() {} -func (*LabelSelectorRequirement) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{68} } +func (*CollectorStatefulSet) ProtoMessage() {} -// reference https://github.com/kubernetes/kubernetes/blob/cb19b56831d54d1d31249949318ef0b07bf00df9/staging/src/k8s.io/api/core/v1/generated.proto -type Pod struct { - Metadata *Metadata `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"` - // status - IP string `protobuf:"bytes,2,opt,name=IP,proto3" json:"IP,omitempty"` - NominatedNodeName string `protobuf:"bytes,3,opt,name=nominatedNodeName,proto3" json:"nominatedNodeName,omitempty"` - NodeName string `protobuf:"bytes,4,opt,name=nodeName,proto3" json:"nodeName,omitempty"` - Phase string `protobuf:"bytes,5,opt,name=phase,proto3" json:"phase,omitempty"` - RestartCount int32 `protobuf:"varint,6,opt,name=restartCount,proto3" json:"restartCount,omitempty"` - ContainerStatuses []*ContainerStatus `protobuf:"bytes,7,rep,name=containerStatuses" json:"containerStatuses,omitempty"` - InitContainerStatuses []*ContainerStatus `protobuf:"bytes,14,rep,name=initContainerStatuses" json:"initContainerStatuses,omitempty"` - ConditionMessage string `protobuf:"bytes,8,opt,name=conditionMessage,proto3" json:"conditionMessage,omitempty"` - Status string `protobuf:"bytes,9,opt,name=status,proto3" json:"status,omitempty"` - Yaml []byte `protobuf:"bytes,10,opt,name=yaml,proto3" json:"yaml,omitempty"` - Tags []string `protobuf:"bytes,11,rep,name=tags" json:"tags,omitempty"` - Host *Host `protobuf:"bytes,12,opt,name=host" json:"host,omitempty"` - ResourceRequirements []*ResourceRequirements `protobuf:"bytes,13,rep,name=resourceRequirements" json:"resourceRequirements,omitempty"` - QOSClass string `protobuf:"bytes,15,opt,name=QOSClass,proto3" json:"QOSClass,omitempty"` - PriorityClass string `protobuf:"bytes,16,opt,name=priorityClass,proto3" json:"priorityClass,omitempty"` - Metrics *ResourceMetrics `protobuf:"bytes,17,opt,name=metrics" json:"metrics,omitempty"` - StartTime int64 `protobuf:"varint,18,opt,name=startTime,proto3" json:"startTime,omitempty"` - ScheduledTime int64 `protobuf:"varint,19,opt,name=scheduledTime,proto3" json:"scheduledTime,omitempty"` - Conditions []*PodCondition `protobuf:"bytes,20,rep,name=conditions" json:"conditions,omitempty"` -} - -func (m *Pod) Reset() { *m = Pod{} } -func (m *Pod) String() string { return proto.CompactTextString(m) } -func (*Pod) ProtoMessage() {} -func (*Pod) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{69} } - -func (m *Pod) GetMetadata() *Metadata { - if m != nil { - return m.Metadata +func (x *CollectorStatefulSet) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[20] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -func (m *Pod) GetContainerStatuses() []*ContainerStatus { - if m != nil { - return m.ContainerStatuses - } - return nil +// Deprecated: Use CollectorStatefulSet.ProtoReflect.Descriptor instead. +func (*CollectorStatefulSet) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{20} } -func (m *Pod) GetInitContainerStatuses() []*ContainerStatus { - if m != nil { - return m.InitContainerStatuses +func (x *CollectorStatefulSet) GetClusterName() string { + if x != nil { + return x.ClusterName } - return nil + return "" } -func (m *Pod) GetHost() *Host { - if m != nil { - return m.Host +func (x *CollectorStatefulSet) GetClusterId() string { + if x != nil { + return x.ClusterId } - return nil + return "" } -func (m *Pod) GetResourceRequirements() []*ResourceRequirements { - if m != nil { - return m.ResourceRequirements +func (x *CollectorStatefulSet) GetGroupId() int32 { + if x != nil { + return x.GroupId } - return nil + return 0 } -func (m *Pod) GetMetrics() *ResourceMetrics { - if m != nil { - return m.Metrics +func (x *CollectorStatefulSet) GetGroupSize() int32 { + if x != nil { + return x.GroupSize } - return nil + return 0 } -func (m *Pod) GetConditions() []*PodCondition { - if m != nil { - return m.Conditions +func (x *CollectorStatefulSet) GetStatefulSets() []*StatefulSet { + if x != nil { + return x.StatefulSets } return nil } -type PodCondition struct { - Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` - Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` - LastProbeTime int64 `protobuf:"varint,3,opt,name=lastProbeTime,proto3" json:"lastProbeTime,omitempty"` - LastTransitionTime int64 `protobuf:"varint,4,opt,name=lastTransitionTime,proto3" json:"lastTransitionTime,omitempty"` - Reason string `protobuf:"bytes,5,opt,name=reason,proto3" json:"reason,omitempty"` - Message string `protobuf:"bytes,6,opt,name=message,proto3" json:"message,omitempty"` +func (x *CollectorStatefulSet) GetTags() []string { + if x != nil { + return x.Tags + } + return nil } -func (m *PodCondition) Reset() { *m = PodCondition{} } -func (m *PodCondition) String() string { return proto.CompactTextString(m) } -func (*PodCondition) ProtoMessage() {} -func (*PodCondition) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{70} } +type CollectorPersistentVolume struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -type ContainerStatus struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - ContainerID string `protobuf:"bytes,2,opt,name=containerID,proto3" json:"containerID,omitempty"` - Ready bool `protobuf:"varint,3,opt,name=ready,proto3" json:"ready,omitempty"` - RestartCount int32 `protobuf:"varint,4,opt,name=restartCount,proto3" json:"restartCount,omitempty"` - State string `protobuf:"bytes,5,opt,name=state,proto3" json:"state,omitempty"` - Message string `protobuf:"bytes,6,opt,name=message,proto3" json:"message,omitempty"` + ClusterName string `protobuf:"bytes,1,opt,name=clusterName,proto3" json:"clusterName,omitempty"` + ClusterId string `protobuf:"bytes,2,opt,name=clusterId,proto3" json:"clusterId,omitempty"` + GroupId int32 `protobuf:"varint,3,opt,name=groupId,proto3" json:"groupId,omitempty"` + GroupSize int32 `protobuf:"varint,4,opt,name=groupSize,proto3" json:"groupSize,omitempty"` + PersistentVolumes []*PersistentVolume `protobuf:"bytes,5,rep,name=persistentVolumes,proto3" json:"persistentVolumes,omitempty"` + Tags []string `protobuf:"bytes,6,rep,name=tags,proto3" json:"tags,omitempty"` } -func (m *ContainerStatus) Reset() { *m = ContainerStatus{} } -func (m *ContainerStatus) String() string { return proto.CompactTextString(m) } -func (*ContainerStatus) ProtoMessage() {} -func (*ContainerStatus) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{71} } - -type Manifest struct { - Type int32 `protobuf:"varint,1,opt,name=type,proto3" json:"type,omitempty"` - ResourceVersion string `protobuf:"bytes,2,opt,name=resourceVersion,proto3" json:"resourceVersion,omitempty"` - Uid string `protobuf:"bytes,3,opt,name=uid,proto3" json:"uid,omitempty"` - Content []byte `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty"` - ContentType string `protobuf:"bytes,5,opt,name=contentType,proto3" json:"contentType,omitempty"` - Version string `protobuf:"bytes,6,opt,name=version,proto3" json:"version,omitempty"` +func (x *CollectorPersistentVolume) Reset() { + *x = CollectorPersistentVolume{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *Manifest) Reset() { *m = Manifest{} } -func (m *Manifest) String() string { return proto.CompactTextString(m) } -func (*Manifest) ProtoMessage() {} -func (*Manifest) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{72} } - -// reference https://github.com/kubernetes/kubernetes/blob/cb19b56831d54d1d31249949318ef0b07bf00df9/staging/src/k8s.io/api/core/v1/generated.proto#L2054 -type NamespaceCondition struct { - Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` - Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` - LastTransitionTime int64 `protobuf:"varint,3,opt,name=lastTransitionTime,proto3" json:"lastTransitionTime,omitempty"` - Reason string `protobuf:"bytes,4,opt,name=reason,proto3" json:"reason,omitempty"` - Message string `protobuf:"bytes,5,opt,name=message,proto3" json:"message,omitempty"` +func (x *CollectorPersistentVolume) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *NamespaceCondition) Reset() { *m = NamespaceCondition{} } -func (m *NamespaceCondition) String() string { return proto.CompactTextString(m) } -func (*NamespaceCondition) ProtoMessage() {} -func (*NamespaceCondition) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{73} } +func (*CollectorPersistentVolume) ProtoMessage() {} -// reference https://github.com/kubernetes/kubernetes/blob/cb19b56831d54d1d31249949318ef0b07bf00df9/staging/src/k8s.io/api/core/v1/generated.proto#L2036 -type Namespace struct { - Metadata *Metadata `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"` - Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` - ConditionMessage string `protobuf:"bytes,3,opt,name=conditionMessage,proto3" json:"conditionMessage,omitempty"` - Yaml []byte `protobuf:"bytes,4,opt,name=yaml,proto3" json:"yaml,omitempty"` - Tags []string `protobuf:"bytes,5,rep,name=tags" json:"tags,omitempty"` - Conditions []*NamespaceCondition `protobuf:"bytes,6,rep,name=conditions" json:"conditions,omitempty"` +func (x *CollectorPersistentVolume) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[21] + 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) } -func (m *Namespace) Reset() { *m = Namespace{} } -func (m *Namespace) String() string { return proto.CompactTextString(m) } -func (*Namespace) ProtoMessage() {} -func (*Namespace) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{74} } +// Deprecated: Use CollectorPersistentVolume.ProtoReflect.Descriptor instead. +func (*CollectorPersistentVolume) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{21} +} -func (m *Namespace) GetMetadata() *Metadata { - if m != nil { - return m.Metadata +func (x *CollectorPersistentVolume) GetClusterName() string { + if x != nil { + return x.ClusterName } - return nil + return "" } -func (m *Namespace) GetConditions() []*NamespaceCondition { - if m != nil { - return m.Conditions +func (x *CollectorPersistentVolume) GetClusterId() string { + if x != nil { + return x.ClusterId } - return nil + return "" } -// https://github.com/kubernetes/kubernetes/blob/4112d8db20c5550cc27d30d3cee2723db0f8e1c4/staging/src/k8s.io/api/core/v1/types.go#L2097 -// Using smallest possible quantity levels. -// For memory it is bytes, for CPU it is millicore. -type ResourceRequirements struct { - // Limits describes the maximum amount of compute resources allowed. - // Key/Value of a resource type and a corresponding quantity as an int64. - Limits map[string]int64 `protobuf:"bytes,1,rep,name=limits" json:"limits,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` - // Requests describes the minimum amount of compute resources required. - // Key/Value of a resource type and a corresponding quantity as an int64. - Requests map[string]int64 `protobuf:"bytes,2,rep,name=requests" json:"requests,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` - // Name describes the name of the holder of the resource requirements (e.g. a container name). - Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` - // ResourceRequirementsType describes the type which uses the ResourceRequirements. - Type ResourceRequirementsType `protobuf:"varint,4,opt,name=type,proto3,enum=datadog.process_agent.ResourceRequirementsType" json:"type,omitempty"` +func (x *CollectorPersistentVolume) GetGroupId() int32 { + if x != nil { + return x.GroupId + } + return 0 } -func (m *ResourceRequirements) Reset() { *m = ResourceRequirements{} } -func (m *ResourceRequirements) String() string { return proto.CompactTextString(m) } -func (*ResourceRequirements) ProtoMessage() {} -func (*ResourceRequirements) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{75} } - -func (m *ResourceRequirements) GetLimits() map[string]int64 { - if m != nil { - return m.Limits +func (x *CollectorPersistentVolume) GetGroupSize() int32 { + if x != nil { + return x.GroupSize } - return nil + return 0 } -func (m *ResourceRequirements) GetRequests() map[string]int64 { - if m != nil { - return m.Requests +func (x *CollectorPersistentVolume) GetPersistentVolumes() []*PersistentVolume { + if x != nil { + return x.PersistentVolumes } return nil } -// ResourceMetrics is used in backend enrichment. -type ResourceMetrics struct { - MetricValues map[string]float64 `protobuf:"bytes,1,rep,name=metricValues" json:"metricValues,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"fixed64,2,opt,name=value,proto3"` -} - -func (m *ResourceMetrics) Reset() { *m = ResourceMetrics{} } -func (m *ResourceMetrics) String() string { return proto.CompactTextString(m) } -func (*ResourceMetrics) ProtoMessage() {} -func (*ResourceMetrics) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{76} } - -func (m *ResourceMetrics) GetMetricValues() map[string]float64 { - if m != nil { - return m.MetricValues +func (x *CollectorPersistentVolume) GetTags() []string { + if x != nil { + return x.Tags } return nil } -// reference https://github.com/kubernetes/kubernetes/blob/cb19b56831d54d1d31249949318ef0b07bf00df9/staging/src/k8s.io/api/batch/v1/types.go#L61 -type JobSpec struct { - Parallelism int32 `protobuf:"varint,1,opt,name=parallelism,proto3" json:"parallelism,omitempty"` - Completions int32 `protobuf:"varint,2,opt,name=completions,proto3" json:"completions,omitempty"` - ActiveDeadlineSeconds int64 `protobuf:"varint,3,opt,name=activeDeadlineSeconds,proto3" json:"activeDeadlineSeconds,omitempty"` - BackoffLimit int32 `protobuf:"varint,4,opt,name=backoffLimit,proto3" json:"backoffLimit,omitempty"` - Selectors []*LabelSelectorRequirement `protobuf:"bytes,5,rep,name=selectors" json:"selectors,omitempty"` - ManualSelector bool `protobuf:"varint,6,opt,name=manualSelector,proto3" json:"manualSelector,omitempty"` - ResourceRequirements []*ResourceRequirements `protobuf:"bytes,7,rep,name=resourceRequirements" json:"resourceRequirements,omitempty"` -} - -func (m *JobSpec) Reset() { *m = JobSpec{} } -func (m *JobSpec) String() string { return proto.CompactTextString(m) } -func (*JobSpec) ProtoMessage() {} -func (*JobSpec) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{77} } +type CollectorPersistentVolumeClaim struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *JobSpec) GetSelectors() []*LabelSelectorRequirement { - if m != nil { - return m.Selectors - } - return nil + ClusterName string `protobuf:"bytes,1,opt,name=clusterName,proto3" json:"clusterName,omitempty"` + ClusterId string `protobuf:"bytes,2,opt,name=clusterId,proto3" json:"clusterId,omitempty"` + GroupId int32 `protobuf:"varint,3,opt,name=groupId,proto3" json:"groupId,omitempty"` + GroupSize int32 `protobuf:"varint,4,opt,name=groupSize,proto3" json:"groupSize,omitempty"` + PersistentVolumeClaims []*PersistentVolumeClaim `protobuf:"bytes,5,rep,name=persistentVolumeClaims,proto3" json:"persistentVolumeClaims,omitempty"` + Tags []string `protobuf:"bytes,6,rep,name=tags,proto3" json:"tags,omitempty"` } -func (m *JobSpec) GetResourceRequirements() []*ResourceRequirements { - if m != nil { - return m.ResourceRequirements +func (x *CollectorPersistentVolumeClaim) Reset() { + *x = CollectorPersistentVolumeClaim{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -// reference https://github.com/kubernetes/kubernetes/blob/cb19b56831d54d1d31249949318ef0b07bf00df9/staging/src/k8s.io/api/batch/v1/types.go#L132 -type JobStatus struct { - ConditionMessage string `protobuf:"bytes,1,opt,name=conditionMessage,proto3" json:"conditionMessage,omitempty"` - StartTime int64 `protobuf:"varint,2,opt,name=startTime,proto3" json:"startTime,omitempty"` - CompletionTime int64 `protobuf:"varint,3,opt,name=completionTime,proto3" json:"completionTime,omitempty"` - Active int32 `protobuf:"varint,4,opt,name=active,proto3" json:"active,omitempty"` - Succeeded int32 `protobuf:"varint,5,opt,name=succeeded,proto3" json:"succeeded,omitempty"` - Failed int32 `protobuf:"varint,6,opt,name=failed,proto3" json:"failed,omitempty"` +func (x *CollectorPersistentVolumeClaim) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *JobStatus) Reset() { *m = JobStatus{} } -func (m *JobStatus) String() string { return proto.CompactTextString(m) } -func (*JobStatus) ProtoMessage() {} -func (*JobStatus) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{78} } +func (*CollectorPersistentVolumeClaim) ProtoMessage() {} -// reference https://github.com/kubernetes/kubernetes/blob/cb19b56831d54d1d31249949318ef0b07bf00df9/staging/src/k8s.io/api/batch/v1/generated.proto#L51 -type JobCondition struct { - Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` - Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` - LastProbeTime int64 `protobuf:"varint,3,opt,name=lastProbeTime,proto3" json:"lastProbeTime,omitempty"` - LastTransitionTime int64 `protobuf:"varint,4,opt,name=lastTransitionTime,proto3" json:"lastTransitionTime,omitempty"` - Reason string `protobuf:"bytes,5,opt,name=reason,proto3" json:"reason,omitempty"` - Message string `protobuf:"bytes,6,opt,name=message,proto3" json:"message,omitempty"` +func (x *CollectorPersistentVolumeClaim) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[22] + 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) } -func (m *JobCondition) Reset() { *m = JobCondition{} } -func (m *JobCondition) String() string { return proto.CompactTextString(m) } -func (*JobCondition) ProtoMessage() {} -func (*JobCondition) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{79} } +// Deprecated: Use CollectorPersistentVolumeClaim.ProtoReflect.Descriptor instead. +func (*CollectorPersistentVolumeClaim) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{22} +} -// reference https://github.com/kubernetes/kubernetes/blob/cb19b56831d54d1d31249949318ef0b07bf00df9/staging/src/k8s.io/api/batch/v1/types.go#L28 -type Job struct { - Metadata *Metadata `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"` - Spec *JobSpec `protobuf:"bytes,2,opt,name=spec" json:"spec,omitempty"` - Status *JobStatus `protobuf:"bytes,3,opt,name=status" json:"status,omitempty"` - Yaml []byte `protobuf:"bytes,4,opt,name=yaml,proto3" json:"yaml,omitempty"` - Tags []string `protobuf:"bytes,5,rep,name=tags" json:"tags,omitempty"` - Conditions []*JobCondition `protobuf:"bytes,6,rep,name=conditions" json:"conditions,omitempty"` +func (x *CollectorPersistentVolumeClaim) GetClusterName() string { + if x != nil { + return x.ClusterName + } + return "" } -func (m *Job) Reset() { *m = Job{} } -func (m *Job) String() string { return proto.CompactTextString(m) } -func (*Job) ProtoMessage() {} -func (*Job) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{80} } +func (x *CollectorPersistentVolumeClaim) GetClusterId() string { + if x != nil { + return x.ClusterId + } + return "" +} -func (m *Job) GetMetadata() *Metadata { - if m != nil { - return m.Metadata +func (x *CollectorPersistentVolumeClaim) GetGroupId() int32 { + if x != nil { + return x.GroupId } - return nil + return 0 } -func (m *Job) GetSpec() *JobSpec { - if m != nil { - return m.Spec +func (x *CollectorPersistentVolumeClaim) GetGroupSize() int32 { + if x != nil { + return x.GroupSize } - return nil + return 0 } -func (m *Job) GetStatus() *JobStatus { - if m != nil { - return m.Status +func (x *CollectorPersistentVolumeClaim) GetPersistentVolumeClaims() []*PersistentVolumeClaim { + if x != nil { + return x.PersistentVolumeClaims } return nil } -func (m *Job) GetConditions() []*JobCondition { - if m != nil { - return m.Conditions +func (x *CollectorPersistentVolumeClaim) GetTags() []string { + if x != nil { + return x.Tags } return nil } -// reference https://github.com/kubernetes/kubernetes/blob/cb19b56831d54d1d31249949318ef0b07bf00df9/staging/src/k8s.io/api/batch/v1beta1/types.go#L92 -type CronJobSpec struct { - Schedule string `protobuf:"bytes,1,opt,name=schedule,proto3" json:"schedule,omitempty"` - StartingDeadlineSeconds int64 `protobuf:"varint,2,opt,name=startingDeadlineSeconds,proto3" json:"startingDeadlineSeconds,omitempty"` - ConcurrencyPolicy string `protobuf:"bytes,3,opt,name=concurrencyPolicy,proto3" json:"concurrencyPolicy,omitempty"` - Suspend bool `protobuf:"varint,4,opt,name=suspend,proto3" json:"suspend,omitempty"` - SuccessfulJobsHistoryLimit int32 `protobuf:"varint,5,opt,name=successfulJobsHistoryLimit,proto3" json:"successfulJobsHistoryLimit,omitempty"` - FailedJobsHistoryLimit int32 `protobuf:"varint,6,opt,name=failedJobsHistoryLimit,proto3" json:"failedJobsHistoryLimit,omitempty"` - ResourceRequirements []*ResourceRequirements `protobuf:"bytes,7,rep,name=resourceRequirements" json:"resourceRequirements,omitempty"` -} +type CollectorRole struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *CronJobSpec) Reset() { *m = CronJobSpec{} } -func (m *CronJobSpec) String() string { return proto.CompactTextString(m) } -func (*CronJobSpec) ProtoMessage() {} -func (*CronJobSpec) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{81} } + ClusterName string `protobuf:"bytes,1,opt,name=clusterName,proto3" json:"clusterName,omitempty"` + ClusterId string `protobuf:"bytes,2,opt,name=clusterId,proto3" json:"clusterId,omitempty"` + GroupId int32 `protobuf:"varint,3,opt,name=groupId,proto3" json:"groupId,omitempty"` + GroupSize int32 `protobuf:"varint,4,opt,name=groupSize,proto3" json:"groupSize,omitempty"` + Roles []*Role `protobuf:"bytes,5,rep,name=roles,proto3" json:"roles,omitempty"` + Tags []string `protobuf:"bytes,6,rep,name=tags,proto3" json:"tags,omitempty"` +} -func (m *CronJobSpec) GetResourceRequirements() []*ResourceRequirements { - if m != nil { - return m.ResourceRequirements +func (x *CollectorRole) Reset() { + *x = CollectorRole{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -// reference https://github.com/kubernetes/kubernetes/blob/cb19b56831d54d1d31249949318ef0b07bf00df9/staging/src/k8s.io/api/batch/v1beta1/types.go#L150 -type CronJobStatus struct { - Active []*ObjectReference `protobuf:"bytes,1,rep,name=active" json:"active,omitempty"` - LastScheduleTime int64 `protobuf:"varint,2,opt,name=lastScheduleTime,proto3" json:"lastScheduleTime,omitempty"` +func (x *CollectorRole) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CronJobStatus) Reset() { *m = CronJobStatus{} } -func (m *CronJobStatus) String() string { return proto.CompactTextString(m) } -func (*CronJobStatus) ProtoMessage() {} -func (*CronJobStatus) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{82} } +func (*CollectorRole) ProtoMessage() {} -func (m *CronJobStatus) GetActive() []*ObjectReference { - if m != nil { - return m.Active +func (x *CollectorRole) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[23] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -// reference https://github.com/kubernetes/kubernetes/blob/cb19b56831d54d1d31249949318ef0b07bf00df9/staging/src/k8s.io/api/batch/v1beta1/types.go#L58 -type CronJob struct { - Metadata *Metadata `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"` - Spec *CronJobSpec `protobuf:"bytes,2,opt,name=spec" json:"spec,omitempty"` - Status *CronJobStatus `protobuf:"bytes,3,opt,name=status" json:"status,omitempty"` - Yaml []byte `protobuf:"bytes,4,opt,name=yaml,proto3" json:"yaml,omitempty"` - Tags []string `protobuf:"bytes,5,rep,name=tags" json:"tags,omitempty"` +// Deprecated: Use CollectorRole.ProtoReflect.Descriptor instead. +func (*CollectorRole) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{23} } -func (m *CronJob) Reset() { *m = CronJob{} } -func (m *CronJob) String() string { return proto.CompactTextString(m) } -func (*CronJob) ProtoMessage() {} -func (*CronJob) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{83} } - -func (m *CronJob) GetMetadata() *Metadata { - if m != nil { - return m.Metadata +func (x *CollectorRole) GetClusterName() string { + if x != nil { + return x.ClusterName } - return nil + return "" } -func (m *CronJob) GetSpec() *CronJobSpec { - if m != nil { - return m.Spec +func (x *CollectorRole) GetClusterId() string { + if x != nil { + return x.ClusterId } - return nil + return "" } -func (m *CronJob) GetStatus() *CronJobStatus { - if m != nil { - return m.Status +func (x *CollectorRole) GetGroupId() int32 { + if x != nil { + return x.GroupId } - return nil + return 0 } -// reference https://github.com/kubernetes/kubernetes/blob/cb19b56831d54d1d31249949318ef0b07bf00df9/staging/src/k8s.io/api/apps/v1/generated.proto#L119 -type DaemonSetSpec struct { - Selectors []*LabelSelectorRequirement `protobuf:"bytes,1,rep,name=selectors" json:"selectors,omitempty"` - DeploymentStrategy string `protobuf:"bytes,2,opt,name=deploymentStrategy,proto3" json:"deploymentStrategy,omitempty"` - MaxUnavailable string `protobuf:"bytes,3,opt,name=maxUnavailable,proto3" json:"maxUnavailable,omitempty"` - MinReadySeconds int32 `protobuf:"varint,4,opt,name=minReadySeconds,proto3" json:"minReadySeconds,omitempty"` - RevisionHistoryLimit int32 `protobuf:"varint,5,opt,name=revisionHistoryLimit,proto3" json:"revisionHistoryLimit,omitempty"` - ResourceRequirements []*ResourceRequirements `protobuf:"bytes,6,rep,name=resourceRequirements" json:"resourceRequirements,omitempty"` +func (x *CollectorRole) GetGroupSize() int32 { + if x != nil { + return x.GroupSize + } + return 0 } -func (m *DaemonSetSpec) Reset() { *m = DaemonSetSpec{} } -func (m *DaemonSetSpec) String() string { return proto.CompactTextString(m) } -func (*DaemonSetSpec) ProtoMessage() {} -func (*DaemonSetSpec) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{84} } - -func (m *DaemonSetSpec) GetSelectors() []*LabelSelectorRequirement { - if m != nil { - return m.Selectors +func (x *CollectorRole) GetRoles() []*Role { + if x != nil { + return x.Roles } return nil } -func (m *DaemonSetSpec) GetResourceRequirements() []*ResourceRequirements { - if m != nil { - return m.ResourceRequirements +func (x *CollectorRole) GetTags() []string { + if x != nil { + return x.Tags } return nil } -// reference https://github.com/kubernetes/kubernetes/blob/cb19b56831d54d1d31249949318ef0b07bf00df9/staging/src/k8s.io/api/apps/v1/generated.proto#L152 -type DaemonSetStatus struct { - CurrentNumberScheduled int32 `protobuf:"varint,1,opt,name=currentNumberScheduled,proto3" json:"currentNumberScheduled,omitempty"` - NumberMisscheduled int32 `protobuf:"varint,2,opt,name=numberMisscheduled,proto3" json:"numberMisscheduled,omitempty"` - DesiredNumberScheduled int32 `protobuf:"varint,3,opt,name=desiredNumberScheduled,proto3" json:"desiredNumberScheduled,omitempty"` - NumberReady int32 `protobuf:"varint,4,opt,name=numberReady,proto3" json:"numberReady,omitempty"` - UpdatedNumberScheduled int32 `protobuf:"varint,6,opt,name=updatedNumberScheduled,proto3" json:"updatedNumberScheduled,omitempty"` - NumberAvailable int32 `protobuf:"varint,7,opt,name=numberAvailable,proto3" json:"numberAvailable,omitempty"` - NumberUnavailable int32 `protobuf:"varint,8,opt,name=numberUnavailable,proto3" json:"numberUnavailable,omitempty"` +type CollectorRoleBinding struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ClusterName string `protobuf:"bytes,1,opt,name=clusterName,proto3" json:"clusterName,omitempty"` + ClusterId string `protobuf:"bytes,2,opt,name=clusterId,proto3" json:"clusterId,omitempty"` + GroupId int32 `protobuf:"varint,3,opt,name=groupId,proto3" json:"groupId,omitempty"` + GroupSize int32 `protobuf:"varint,4,opt,name=groupSize,proto3" json:"groupSize,omitempty"` + RoleBindings []*RoleBinding `protobuf:"bytes,5,rep,name=roleBindings,proto3" json:"roleBindings,omitempty"` + Tags []string `protobuf:"bytes,6,rep,name=tags,proto3" json:"tags,omitempty"` } -func (m *DaemonSetStatus) Reset() { *m = DaemonSetStatus{} } -func (m *DaemonSetStatus) String() string { return proto.CompactTextString(m) } -func (*DaemonSetStatus) ProtoMessage() {} -func (*DaemonSetStatus) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{85} } +func (x *CollectorRoleBinding) Reset() { + *x = CollectorRoleBinding{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} -// reference https://github.com/kubernetes/kubernetes/blob/cb19b56831d54d1d31249949318ef0b07bf00df9/staging/src/k8s.io/api/apps/v1/generated.proto#L87 -type DaemonSetCondition struct { - Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` - Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` - LastTransitionTime int64 `protobuf:"varint,3,opt,name=lastTransitionTime,proto3" json:"lastTransitionTime,omitempty"` - Reason string `protobuf:"bytes,4,opt,name=reason,proto3" json:"reason,omitempty"` - Message string `protobuf:"bytes,5,opt,name=message,proto3" json:"message,omitempty"` +func (x *CollectorRoleBinding) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DaemonSetCondition) Reset() { *m = DaemonSetCondition{} } -func (m *DaemonSetCondition) String() string { return proto.CompactTextString(m) } -func (*DaemonSetCondition) ProtoMessage() {} -func (*DaemonSetCondition) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{86} } +func (*CollectorRoleBinding) ProtoMessage() {} -// reference https://github.com/kubernetes/kubernetes/blob/cb19b56831d54d1d31249949318ef0b07bf00df9/staging/src/k8s.io/api/apps/v1/generated.proto#L66 -type DaemonSet struct { - Metadata *Metadata `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"` - Spec *DaemonSetSpec `protobuf:"bytes,2,opt,name=spec" json:"spec,omitempty"` - Status *DaemonSetStatus `protobuf:"bytes,3,opt,name=status" json:"status,omitempty"` - Yaml []byte `protobuf:"bytes,4,opt,name=yaml,proto3" json:"yaml,omitempty"` - Tags []string `protobuf:"bytes,5,rep,name=tags" json:"tags,omitempty"` - Metrics *ResourceMetrics `protobuf:"bytes,6,opt,name=metrics" json:"metrics,omitempty"` - Conditions []*DaemonSetCondition `protobuf:"bytes,7,rep,name=conditions" json:"conditions,omitempty"` +func (x *CollectorRoleBinding) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[24] + 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) } -func (m *DaemonSet) Reset() { *m = DaemonSet{} } -func (m *DaemonSet) String() string { return proto.CompactTextString(m) } -func (*DaemonSet) ProtoMessage() {} -func (*DaemonSet) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{87} } +// Deprecated: Use CollectorRoleBinding.ProtoReflect.Descriptor instead. +func (*CollectorRoleBinding) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{24} +} -func (m *DaemonSet) GetMetadata() *Metadata { - if m != nil { - return m.Metadata +func (x *CollectorRoleBinding) GetClusterName() string { + if x != nil { + return x.ClusterName } - return nil + return "" } -func (m *DaemonSet) GetSpec() *DaemonSetSpec { - if m != nil { - return m.Spec +func (x *CollectorRoleBinding) GetClusterId() string { + if x != nil { + return x.ClusterId } - return nil + return "" } -func (m *DaemonSet) GetStatus() *DaemonSetStatus { - if m != nil { - return m.Status +func (x *CollectorRoleBinding) GetGroupId() int32 { + if x != nil { + return x.GroupId } - return nil + return 0 } -func (m *DaemonSet) GetMetrics() *ResourceMetrics { - if m != nil { - return m.Metrics +func (x *CollectorRoleBinding) GetGroupSize() int32 { + if x != nil { + return x.GroupSize } - return nil + return 0 } -func (m *DaemonSet) GetConditions() []*DaemonSetCondition { - if m != nil { - return m.Conditions +func (x *CollectorRoleBinding) GetRoleBindings() []*RoleBinding { + if x != nil { + return x.RoleBindings } return nil } -// reference https://github.com/kubernetes/kubernetes/blob/cb19b56831d54d1d31249949318ef0b07bf00df9/staging/src/k8s.io/api/apps/v1/generated.proto#L586 -type StatefulSetSpec struct { - DesiredReplicas int32 `protobuf:"varint,1,opt,name=desiredReplicas,proto3" json:"desiredReplicas,omitempty"` - Selectors []*LabelSelectorRequirement `protobuf:"bytes,2,rep,name=selectors" json:"selectors,omitempty"` - ServiceName string `protobuf:"bytes,3,opt,name=serviceName,proto3" json:"serviceName,omitempty"` - PodManagementPolicy string `protobuf:"bytes,4,opt,name=podManagementPolicy,proto3" json:"podManagementPolicy,omitempty"` - UpdateStrategy string `protobuf:"bytes,5,opt,name=updateStrategy,proto3" json:"updateStrategy,omitempty"` - Partition int32 `protobuf:"varint,6,opt,name=partition,proto3" json:"partition,omitempty"` - ResourceRequirements []*ResourceRequirements `protobuf:"bytes,7,rep,name=resourceRequirements" json:"resourceRequirements,omitempty"` +func (x *CollectorRoleBinding) GetTags() []string { + if x != nil { + return x.Tags + } + return nil } -func (m *StatefulSetSpec) Reset() { *m = StatefulSetSpec{} } -func (m *StatefulSetSpec) String() string { return proto.CompactTextString(m) } -func (*StatefulSetSpec) ProtoMessage() {} -func (*StatefulSetSpec) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{88} } +type CollectorClusterRole struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *StatefulSetSpec) GetSelectors() []*LabelSelectorRequirement { - if m != nil { - return m.Selectors - } - return nil + ClusterName string `protobuf:"bytes,1,opt,name=clusterName,proto3" json:"clusterName,omitempty"` + ClusterId string `protobuf:"bytes,2,opt,name=clusterId,proto3" json:"clusterId,omitempty"` + GroupId int32 `protobuf:"varint,3,opt,name=groupId,proto3" json:"groupId,omitempty"` + GroupSize int32 `protobuf:"varint,4,opt,name=groupSize,proto3" json:"groupSize,omitempty"` + ClusterRoles []*ClusterRole `protobuf:"bytes,5,rep,name=clusterRoles,proto3" json:"clusterRoles,omitempty"` + Tags []string `protobuf:"bytes,6,rep,name=tags,proto3" json:"tags,omitempty"` } -func (m *StatefulSetSpec) GetResourceRequirements() []*ResourceRequirements { - if m != nil { - return m.ResourceRequirements +func (x *CollectorClusterRole) Reset() { + *x = CollectorClusterRole{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -// reference https://github.com/kubernetes/kubernetes/blob/cb19b56831d54d1d31249949318ef0b07bf00df9/staging/src/k8s.io/api/apps/v1/generated.proto#L647 -type StatefulSetStatus struct { - Replicas int32 `protobuf:"varint,1,opt,name=replicas,proto3" json:"replicas,omitempty"` - ReadyReplicas int32 `protobuf:"varint,2,opt,name=readyReplicas,proto3" json:"readyReplicas,omitempty"` - CurrentReplicas int32 `protobuf:"varint,3,opt,name=currentReplicas,proto3" json:"currentReplicas,omitempty"` - UpdatedReplicas int32 `protobuf:"varint,4,opt,name=updatedReplicas,proto3" json:"updatedReplicas,omitempty"` +func (x *CollectorClusterRole) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *StatefulSetStatus) Reset() { *m = StatefulSetStatus{} } -func (m *StatefulSetStatus) String() string { return proto.CompactTextString(m) } -func (*StatefulSetStatus) ProtoMessage() {} -func (*StatefulSetStatus) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{89} } +func (*CollectorClusterRole) ProtoMessage() {} -// reference https://github.com/kubernetes/kubernetes/blob/cb19b56831d54d1d31249949318ef0b07bf00df9/staging/src/k8s.io/api/apps/v1/generated.proto#L557 -type StatefulSetCondition struct { - Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` - Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` - LastTransitionTime int64 `protobuf:"varint,3,opt,name=lastTransitionTime,proto3" json:"lastTransitionTime,omitempty"` - Reason string `protobuf:"bytes,4,opt,name=reason,proto3" json:"reason,omitempty"` - Message string `protobuf:"bytes,5,opt,name=message,proto3" json:"message,omitempty"` +func (x *CollectorClusterRole) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[25] + 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) } -func (m *StatefulSetCondition) Reset() { *m = StatefulSetCondition{} } -func (m *StatefulSetCondition) String() string { return proto.CompactTextString(m) } -func (*StatefulSetCondition) ProtoMessage() {} -func (*StatefulSetCondition) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{90} } +// Deprecated: Use CollectorClusterRole.ProtoReflect.Descriptor instead. +func (*CollectorClusterRole) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{25} +} -// reference https://github.com/kubernetes/kubernetes/blob/cb19b56831d54d1d31249949318ef0b07bf00df9/staging/src/k8s.io/api/apps/v1/generated.proto#L542 -type StatefulSet struct { - Metadata *Metadata `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"` - Spec *StatefulSetSpec `protobuf:"bytes,2,opt,name=spec" json:"spec,omitempty"` - Status *StatefulSetStatus `protobuf:"bytes,3,opt,name=status" json:"status,omitempty"` - Yaml []byte `protobuf:"bytes,4,opt,name=yaml,proto3" json:"yaml,omitempty"` - Tags []string `protobuf:"bytes,5,rep,name=tags" json:"tags,omitempty"` - Metrics *ResourceMetrics `protobuf:"bytes,6,opt,name=metrics" json:"metrics,omitempty"` - Conditions []*StatefulSetCondition `protobuf:"bytes,7,rep,name=conditions" json:"conditions,omitempty"` +func (x *CollectorClusterRole) GetClusterName() string { + if x != nil { + return x.ClusterName + } + return "" } -func (m *StatefulSet) Reset() { *m = StatefulSet{} } -func (m *StatefulSet) String() string { return proto.CompactTextString(m) } -func (*StatefulSet) ProtoMessage() {} -func (*StatefulSet) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{91} } +func (x *CollectorClusterRole) GetClusterId() string { + if x != nil { + return x.ClusterId + } + return "" +} -func (m *StatefulSet) GetMetadata() *Metadata { - if m != nil { - return m.Metadata +func (x *CollectorClusterRole) GetGroupId() int32 { + if x != nil { + return x.GroupId } - return nil + return 0 } -func (m *StatefulSet) GetSpec() *StatefulSetSpec { - if m != nil { - return m.Spec +func (x *CollectorClusterRole) GetGroupSize() int32 { + if x != nil { + return x.GroupSize } - return nil + return 0 } -func (m *StatefulSet) GetStatus() *StatefulSetStatus { - if m != nil { - return m.Status +func (x *CollectorClusterRole) GetClusterRoles() []*ClusterRole { + if x != nil { + return x.ClusterRoles } return nil } -func (m *StatefulSet) GetMetrics() *ResourceMetrics { - if m != nil { - return m.Metrics +func (x *CollectorClusterRole) GetTags() []string { + if x != nil { + return x.Tags } return nil } -func (m *StatefulSet) GetConditions() []*StatefulSetCondition { - if m != nil { - return m.Conditions +type CollectorClusterRoleBinding struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ClusterName string `protobuf:"bytes,1,opt,name=clusterName,proto3" json:"clusterName,omitempty"` + ClusterId string `protobuf:"bytes,2,opt,name=clusterId,proto3" json:"clusterId,omitempty"` + GroupId int32 `protobuf:"varint,3,opt,name=groupId,proto3" json:"groupId,omitempty"` + GroupSize int32 `protobuf:"varint,4,opt,name=groupSize,proto3" json:"groupSize,omitempty"` + ClusterRoleBindings []*ClusterRoleBinding `protobuf:"bytes,5,rep,name=clusterRoleBindings,proto3" json:"clusterRoleBindings,omitempty"` + Tags []string `protobuf:"bytes,6,rep,name=tags,proto3" json:"tags,omitempty"` +} + +func (x *CollectorClusterRoleBinding) Reset() { + *x = CollectorClusterRoleBinding{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -// reference https://github.com/kubernetes/api/blob/4bdcbc60ffeee2c04231f11ff114314c1a93ce65/core/v1/generated.proto#L2576 -type PersistentVolume struct { - Metadata *Metadata `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"` - Spec *PersistentVolumeSpec `protobuf:"bytes,2,opt,name=spec" json:"spec,omitempty"` - Status *PersistentVolumeStatus `protobuf:"bytes,3,opt,name=status" json:"status,omitempty"` - Yaml []byte `protobuf:"bytes,4,opt,name=yaml,proto3" json:"yaml,omitempty"` - Tags []string `protobuf:"bytes,5,rep,name=tags" json:"tags,omitempty"` +func (x *CollectorClusterRoleBinding) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *PersistentVolume) Reset() { *m = PersistentVolume{} } -func (m *PersistentVolume) String() string { return proto.CompactTextString(m) } -func (*PersistentVolume) ProtoMessage() {} -func (*PersistentVolume) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{92} } +func (*CollectorClusterRoleBinding) ProtoMessage() {} -func (m *PersistentVolume) GetMetadata() *Metadata { - if m != nil { - return m.Metadata +func (x *CollectorClusterRoleBinding) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[26] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -func (m *PersistentVolume) GetSpec() *PersistentVolumeSpec { - if m != nil { - return m.Spec - } - return nil +// Deprecated: Use CollectorClusterRoleBinding.ProtoReflect.Descriptor instead. +func (*CollectorClusterRoleBinding) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{26} } -func (m *PersistentVolume) GetStatus() *PersistentVolumeStatus { - if m != nil { - return m.Status +func (x *CollectorClusterRoleBinding) GetClusterName() string { + if x != nil { + return x.ClusterName } - return nil + return "" } -// reference https://github.com/kubernetes/api/blob/4bdcbc60ffeee2c04231f11ff114314c1a93ce65/core/v1/generated.proto#L2889 -type PersistentVolumeSpec struct { - // Key/Value of a resource type and a corresponding quantity as an int64. - Capacity map[string]int64 `protobuf:"bytes,1,rep,name=capacity" json:"capacity,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` - // in kubernetes these are actually fields in a struct where only one can be set. - // For now we only set it to a string with the name. - PersistentVolumeType string `protobuf:"bytes,2,opt,name=persistentVolumeType,proto3" json:"persistentVolumeType,omitempty"` - AccessModes []string `protobuf:"bytes,3,rep,name=accessModes" json:"accessModes,omitempty"` - ClaimRef *ObjectReference `protobuf:"bytes,4,opt,name=claimRef" json:"claimRef,omitempty"` - PersistentVolumeReclaimPolicy string `protobuf:"bytes,5,opt,name=persistentVolumeReclaimPolicy,proto3" json:"persistentVolumeReclaimPolicy,omitempty"` - StorageClassName string `protobuf:"bytes,6,opt,name=storageClassName,proto3" json:"storageClassName,omitempty"` - MountOptions []string `protobuf:"bytes,7,rep,name=mountOptions" json:"mountOptions,omitempty"` - VolumeMode string `protobuf:"bytes,8,opt,name=volumeMode,proto3" json:"volumeMode,omitempty"` - NodeAffinity []*NodeSelectorTerm `protobuf:"bytes,9,rep,name=nodeAffinity" json:"nodeAffinity,omitempty"` - PersistentVolumeSource *PersistentVolumeSource `protobuf:"bytes,10,opt,name=persistentVolumeSource" json:"persistentVolumeSource,omitempty"` +func (x *CollectorClusterRoleBinding) GetClusterId() string { + if x != nil { + return x.ClusterId + } + return "" } -func (m *PersistentVolumeSpec) Reset() { *m = PersistentVolumeSpec{} } -func (m *PersistentVolumeSpec) String() string { return proto.CompactTextString(m) } -func (*PersistentVolumeSpec) ProtoMessage() {} -func (*PersistentVolumeSpec) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{93} } +func (x *CollectorClusterRoleBinding) GetGroupId() int32 { + if x != nil { + return x.GroupId + } + return 0 +} -func (m *PersistentVolumeSpec) GetCapacity() map[string]int64 { - if m != nil { - return m.Capacity +func (x *CollectorClusterRoleBinding) GetGroupSize() int32 { + if x != nil { + return x.GroupSize } - return nil + return 0 } -func (m *PersistentVolumeSpec) GetClaimRef() *ObjectReference { - if m != nil { - return m.ClaimRef +func (x *CollectorClusterRoleBinding) GetClusterRoleBindings() []*ClusterRoleBinding { + if x != nil { + return x.ClusterRoleBindings } return nil } -func (m *PersistentVolumeSpec) GetNodeAffinity() []*NodeSelectorTerm { - if m != nil { - return m.NodeAffinity +func (x *CollectorClusterRoleBinding) GetTags() []string { + if x != nil { + return x.Tags } return nil } -func (m *PersistentVolumeSpec) GetPersistentVolumeSource() *PersistentVolumeSource { - if m != nil { - return m.PersistentVolumeSource +type CollectorServiceAccount struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ClusterName string `protobuf:"bytes,1,opt,name=clusterName,proto3" json:"clusterName,omitempty"` + ClusterId string `protobuf:"bytes,2,opt,name=clusterId,proto3" json:"clusterId,omitempty"` + GroupId int32 `protobuf:"varint,3,opt,name=groupId,proto3" json:"groupId,omitempty"` + GroupSize int32 `protobuf:"varint,4,opt,name=groupSize,proto3" json:"groupSize,omitempty"` + ServiceAccounts []*ServiceAccount `protobuf:"bytes,5,rep,name=serviceAccounts,proto3" json:"serviceAccounts,omitempty"` + Tags []string `protobuf:"bytes,6,rep,name=tags,proto3" json:"tags,omitempty"` +} + +func (x *CollectorServiceAccount) Reset() { + *x = CollectorServiceAccount{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -// reference https://github.com/kubernetes/api/blob/release-1.27/core/v1/generated.proto#L1722 -type PersistentVolumeSource struct { - GcePersistentDisk *GCEPersistentDiskVolumeSource `protobuf:"bytes,1,opt,name=gcePersistentDisk" json:"gcePersistentDisk,omitempty"` - AwsElasticBlockStore *AWSElasticBlockStoreVolumeSource `protobuf:"bytes,2,opt,name=awsElasticBlockStore" json:"awsElasticBlockStore,omitempty"` - AzureFile *AzureFilePersistentVolumeSource `protobuf:"bytes,3,opt,name=azureFile" json:"azureFile,omitempty"` - AzureDisk *AzureDiskVolumeSource `protobuf:"bytes,4,opt,name=azureDisk" json:"azureDisk,omitempty"` - Csi *CSIVolumeSource `protobuf:"bytes,5,opt,name=csi" json:"csi,omitempty"` +func (x *CollectorServiceAccount) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *PersistentVolumeSource) Reset() { *m = PersistentVolumeSource{} } -func (m *PersistentVolumeSource) String() string { return proto.CompactTextString(m) } -func (*PersistentVolumeSource) ProtoMessage() {} -func (*PersistentVolumeSource) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{94} } +func (*CollectorServiceAccount) ProtoMessage() {} -func (m *PersistentVolumeSource) GetGcePersistentDisk() *GCEPersistentDiskVolumeSource { - if m != nil { - return m.GcePersistentDisk +func (x *CollectorServiceAccount) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[27] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -func (m *PersistentVolumeSource) GetAwsElasticBlockStore() *AWSElasticBlockStoreVolumeSource { - if m != nil { - return m.AwsElasticBlockStore - } - return nil +// Deprecated: Use CollectorServiceAccount.ProtoReflect.Descriptor instead. +func (*CollectorServiceAccount) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{27} } -func (m *PersistentVolumeSource) GetAzureFile() *AzureFilePersistentVolumeSource { - if m != nil { - return m.AzureFile +func (x *CollectorServiceAccount) GetClusterName() string { + if x != nil { + return x.ClusterName } - return nil + return "" } -func (m *PersistentVolumeSource) GetAzureDisk() *AzureDiskVolumeSource { - if m != nil { - return m.AzureDisk +func (x *CollectorServiceAccount) GetClusterId() string { + if x != nil { + return x.ClusterId } - return nil + return "" } -func (m *PersistentVolumeSource) GetCsi() *CSIVolumeSource { - if m != nil { - return m.Csi +func (x *CollectorServiceAccount) GetGroupId() int32 { + if x != nil { + return x.GroupId } - return nil + return 0 } -// reference https://github.com/kubernetes/api/blob/4bdcbc60ffeee2c04231f11ff114314c1a93ce65/core/v1/generated.proto#L1616 -type GCEPersistentDiskVolumeSource struct { - PdName string `protobuf:"bytes,1,opt,name=pdName,proto3" json:"pdName,omitempty"` - FsType string `protobuf:"bytes,2,opt,name=fsType,proto3" json:"fsType,omitempty"` - Partition int32 `protobuf:"varint,3,opt,name=partition,proto3" json:"partition,omitempty"` - ReadOnly bool `protobuf:"varint,4,opt,name=readOnly,proto3" json:"readOnly,omitempty"` +func (x *CollectorServiceAccount) GetGroupSize() int32 { + if x != nil { + return x.GroupSize + } + return 0 } -func (m *GCEPersistentDiskVolumeSource) Reset() { *m = GCEPersistentDiskVolumeSource{} } -func (m *GCEPersistentDiskVolumeSource) String() string { return proto.CompactTextString(m) } -func (*GCEPersistentDiskVolumeSource) ProtoMessage() {} -func (*GCEPersistentDiskVolumeSource) Descriptor() ([]byte, []int) { - return fileDescriptorAgent, []int{95} +func (x *CollectorServiceAccount) GetServiceAccounts() []*ServiceAccount { + if x != nil { + return x.ServiceAccounts + } + return nil } -// reference https://github.com/kubernetes/api/blob/release-1.27/core/v1/generated.proto#L39 -type AWSElasticBlockStoreVolumeSource struct { - VolumeID string `protobuf:"bytes,1,opt,name=volumeID,proto3" json:"volumeID,omitempty"` - FsType string `protobuf:"bytes,2,opt,name=fsType,proto3" json:"fsType,omitempty"` - Partition int32 `protobuf:"varint,3,opt,name=partition,proto3" json:"partition,omitempty"` - ReadOnly bool `protobuf:"varint,4,opt,name=readOnly,proto3" json:"readOnly,omitempty"` +func (x *CollectorServiceAccount) GetTags() []string { + if x != nil { + return x.Tags + } + return nil } -func (m *AWSElasticBlockStoreVolumeSource) Reset() { *m = AWSElasticBlockStoreVolumeSource{} } -func (m *AWSElasticBlockStoreVolumeSource) String() string { return proto.CompactTextString(m) } -func (*AWSElasticBlockStoreVolumeSource) ProtoMessage() {} -func (*AWSElasticBlockStoreVolumeSource) Descriptor() ([]byte, []int) { - return fileDescriptorAgent, []int{96} -} +type CollectorIngress struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -// reference https://github.com/kubernetes/api/blob/release-1.27/core/v1/generated.proto#L127 -type AzureFilePersistentVolumeSource struct { - SecretName string `protobuf:"bytes,1,opt,name=secretName,proto3" json:"secretName,omitempty"` - ShareName string `protobuf:"bytes,2,opt,name=shareName,proto3" json:"shareName,omitempty"` - ReadOnly bool `protobuf:"varint,3,opt,name=readOnly,proto3" json:"readOnly,omitempty"` - SecretNamespace string `protobuf:"bytes,4,opt,name=secretNamespace,proto3" json:"secretNamespace,omitempty"` + ClusterName string `protobuf:"bytes,1,opt,name=clusterName,proto3" json:"clusterName,omitempty"` + ClusterId string `protobuf:"bytes,2,opt,name=clusterId,proto3" json:"clusterId,omitempty"` + GroupId int32 `protobuf:"varint,3,opt,name=groupId,proto3" json:"groupId,omitempty"` + GroupSize int32 `protobuf:"varint,4,opt,name=groupSize,proto3" json:"groupSize,omitempty"` + Ingresses []*Ingress `protobuf:"bytes,5,rep,name=ingresses,proto3" json:"ingresses,omitempty"` + Tags []string `protobuf:"bytes,6,rep,name=tags,proto3" json:"tags,omitempty"` } -func (m *AzureFilePersistentVolumeSource) Reset() { *m = AzureFilePersistentVolumeSource{} } -func (m *AzureFilePersistentVolumeSource) String() string { return proto.CompactTextString(m) } -func (*AzureFilePersistentVolumeSource) ProtoMessage() {} -func (*AzureFilePersistentVolumeSource) Descriptor() ([]byte, []int) { - return fileDescriptorAgent, []int{97} +func (x *CollectorIngress) Reset() { + *x = CollectorIngress{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -// reference https://github.com/kubernetes/api/blob/release-1.27/core/v1/generated.proto#L100 -type AzureDiskVolumeSource struct { - DiskName string `protobuf:"bytes,1,opt,name=diskName,proto3" json:"diskName,omitempty"` - DiskURI string `protobuf:"bytes,2,opt,name=diskURI,proto3" json:"diskURI,omitempty"` - CachingMode string `protobuf:"bytes,3,opt,name=cachingMode,proto3" json:"cachingMode,omitempty"` - FsType string `protobuf:"bytes,4,opt,name=fsType,proto3" json:"fsType,omitempty"` - ReadOnly bool `protobuf:"varint,5,opt,name=readOnly,proto3" json:"readOnly,omitempty"` - Kind string `protobuf:"bytes,6,opt,name=kind,proto3" json:"kind,omitempty"` +func (x *CollectorIngress) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *AzureDiskVolumeSource) Reset() { *m = AzureDiskVolumeSource{} } -func (m *AzureDiskVolumeSource) String() string { return proto.CompactTextString(m) } -func (*AzureDiskVolumeSource) ProtoMessage() {} -func (*AzureDiskVolumeSource) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{98} } +func (*CollectorIngress) ProtoMessage() {} -// reference https://github.com/kubernetes/api/blob/release-1.27/core/v1/generated.proto#L172 -type CSIVolumeSource struct { - Driver string `protobuf:"bytes,1,opt,name=driver,proto3" json:"driver,omitempty"` - VolumeHandle string `protobuf:"bytes,2,opt,name=volumeHandle,proto3" json:"volumeHandle,omitempty"` - ReadOnly bool `protobuf:"varint,3,opt,name=readOnly,proto3" json:"readOnly,omitempty"` - FsType string `protobuf:"bytes,4,opt,name=fsType,proto3" json:"fsType,omitempty"` - VolumeAttributes map[string]string `protobuf:"bytes,5,rep,name=volumeAttributes" json:"volumeAttributes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - ControllerPublishSecretRef *SecretReference `protobuf:"bytes,6,opt,name=controllerPublishSecretRef" json:"controllerPublishSecretRef,omitempty"` - NodeStageSecretRef *SecretReference `protobuf:"bytes,7,opt,name=nodeStageSecretRef" json:"nodeStageSecretRef,omitempty"` - NodePublishSecretRef *SecretReference `protobuf:"bytes,8,opt,name=nodePublishSecretRef" json:"nodePublishSecretRef,omitempty"` - ControllerExpandSecretRef *SecretReference `protobuf:"bytes,9,opt,name=controllerExpandSecretRef" json:"controllerExpandSecretRef,omitempty"` - NodeExpandSecretRef *SecretReference `protobuf:"bytes,10,opt,name=nodeExpandSecretRef" json:"nodeExpandSecretRef,omitempty"` +func (x *CollectorIngress) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[28] + 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) } -func (m *CSIVolumeSource) Reset() { *m = CSIVolumeSource{} } -func (m *CSIVolumeSource) String() string { return proto.CompactTextString(m) } -func (*CSIVolumeSource) ProtoMessage() {} -func (*CSIVolumeSource) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{99} } +// Deprecated: Use CollectorIngress.ProtoReflect.Descriptor instead. +func (*CollectorIngress) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{28} +} -func (m *CSIVolumeSource) GetVolumeAttributes() map[string]string { - if m != nil { - return m.VolumeAttributes +func (x *CollectorIngress) GetClusterName() string { + if x != nil { + return x.ClusterName } - return nil + return "" } -func (m *CSIVolumeSource) GetControllerPublishSecretRef() *SecretReference { - if m != nil { - return m.ControllerPublishSecretRef +func (x *CollectorIngress) GetClusterId() string { + if x != nil { + return x.ClusterId } - return nil + return "" } -func (m *CSIVolumeSource) GetNodeStageSecretRef() *SecretReference { - if m != nil { - return m.NodeStageSecretRef +func (x *CollectorIngress) GetGroupId() int32 { + if x != nil { + return x.GroupId } - return nil + return 0 } -func (m *CSIVolumeSource) GetNodePublishSecretRef() *SecretReference { - if m != nil { - return m.NodePublishSecretRef +func (x *CollectorIngress) GetGroupSize() int32 { + if x != nil { + return x.GroupSize } - return nil + return 0 } -func (m *CSIVolumeSource) GetControllerExpandSecretRef() *SecretReference { - if m != nil { - return m.ControllerExpandSecretRef +func (x *CollectorIngress) GetIngresses() []*Ingress { + if x != nil { + return x.Ingresses } return nil } -func (m *CSIVolumeSource) GetNodeExpandSecretRef() *SecretReference { - if m != nil { - return m.NodeExpandSecretRef +func (x *CollectorIngress) GetTags() []string { + if x != nil { + return x.Tags } return nil } -// reference https://github.com/kubernetes/api/blob/4bdcbc60ffeee2c04231f11ff114314c1a93ce65/core/v1/generated.proto#L4553 -type SecretReference struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` +type CollectorVerticalPodAutoscaler struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ClusterName string `protobuf:"bytes,1,opt,name=clusterName,proto3" json:"clusterName,omitempty"` + ClusterId string `protobuf:"bytes,2,opt,name=clusterId,proto3" json:"clusterId,omitempty"` + GroupId int32 `protobuf:"varint,3,opt,name=groupId,proto3" json:"groupId,omitempty"` + GroupSize int32 `protobuf:"varint,4,opt,name=groupSize,proto3" json:"groupSize,omitempty"` + VerticalPodAutoscalers []*VerticalPodAutoscaler `protobuf:"bytes,5,rep,name=verticalPodAutoscalers,proto3" json:"verticalPodAutoscalers,omitempty"` + Tags []string `protobuf:"bytes,6,rep,name=tags,proto3" json:"tags,omitempty"` } -func (m *SecretReference) Reset() { *m = SecretReference{} } -func (m *SecretReference) String() string { return proto.CompactTextString(m) } -func (*SecretReference) ProtoMessage() {} -func (*SecretReference) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{100} } +func (x *CollectorVerticalPodAutoscaler) Reset() { + *x = CollectorVerticalPodAutoscaler{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[29] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} -// reference https://github.com/kubernetes/api/blob/4bdcbc60ffeee2c04231f11ff114314c1a93ce65/core/v1/generated.proto#L2940 -type PersistentVolumeStatus struct { - Phase string `protobuf:"bytes,1,opt,name=phase,proto3" json:"phase,omitempty"` - Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` - Reason string `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty"` +func (x *CollectorVerticalPodAutoscaler) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *PersistentVolumeStatus) Reset() { *m = PersistentVolumeStatus{} } -func (m *PersistentVolumeStatus) String() string { return proto.CompactTextString(m) } -func (*PersistentVolumeStatus) ProtoMessage() {} -func (*PersistentVolumeStatus) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{101} } +func (*CollectorVerticalPodAutoscaler) ProtoMessage() {} -type NodeSelectorTerm struct { - MatchExpressions []*LabelSelectorRequirement `protobuf:"bytes,1,rep,name=matchExpressions" json:"matchExpressions,omitempty"` - MatchFields []*LabelSelectorRequirement `protobuf:"bytes,2,rep,name=matchFields" json:"matchFields,omitempty"` +func (x *CollectorVerticalPodAutoscaler) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[29] + 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) } -func (m *NodeSelectorTerm) Reset() { *m = NodeSelectorTerm{} } -func (m *NodeSelectorTerm) String() string { return proto.CompactTextString(m) } -func (*NodeSelectorTerm) ProtoMessage() {} -func (*NodeSelectorTerm) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{102} } +// Deprecated: Use CollectorVerticalPodAutoscaler.ProtoReflect.Descriptor instead. +func (*CollectorVerticalPodAutoscaler) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{29} +} -func (m *NodeSelectorTerm) GetMatchExpressions() []*LabelSelectorRequirement { - if m != nil { - return m.MatchExpressions +func (x *CollectorVerticalPodAutoscaler) GetClusterName() string { + if x != nil { + return x.ClusterName } - return nil + return "" } -func (m *NodeSelectorTerm) GetMatchFields() []*LabelSelectorRequirement { - if m != nil { - return m.MatchFields +func (x *CollectorVerticalPodAutoscaler) GetClusterId() string { + if x != nil { + return x.ClusterId } - return nil + return "" } -// reference https://github.com/kubernetes/api/blob/4bdcbc60ffeee2c04231f11ff114314c1a93ce65/core/v1/generated.proto#L2597 -type PersistentVolumeClaim struct { - Metadata *Metadata `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"` - Spec *PersistentVolumeClaimSpec `protobuf:"bytes,2,opt,name=spec" json:"spec,omitempty"` - Status *PersistentVolumeClaimStatus `protobuf:"bytes,3,opt,name=status" json:"status,omitempty"` - Yaml []byte `protobuf:"bytes,4,opt,name=yaml,proto3" json:"yaml,omitempty"` - Tags []string `protobuf:"bytes,5,rep,name=tags" json:"tags,omitempty"` +func (x *CollectorVerticalPodAutoscaler) GetGroupId() int32 { + if x != nil { + return x.GroupId + } + return 0 } -func (m *PersistentVolumeClaim) Reset() { *m = PersistentVolumeClaim{} } -func (m *PersistentVolumeClaim) String() string { return proto.CompactTextString(m) } -func (*PersistentVolumeClaim) ProtoMessage() {} -func (*PersistentVolumeClaim) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{103} } - -func (m *PersistentVolumeClaim) GetMetadata() *Metadata { - if m != nil { - return m.Metadata +func (x *CollectorVerticalPodAutoscaler) GetGroupSize() int32 { + if x != nil { + return x.GroupSize } - return nil + return 0 } -func (m *PersistentVolumeClaim) GetSpec() *PersistentVolumeClaimSpec { - if m != nil { - return m.Spec +func (x *CollectorVerticalPodAutoscaler) GetVerticalPodAutoscalers() []*VerticalPodAutoscaler { + if x != nil { + return x.VerticalPodAutoscalers } return nil } -func (m *PersistentVolumeClaim) GetStatus() *PersistentVolumeClaimStatus { - if m != nil { - return m.Status +func (x *CollectorVerticalPodAutoscaler) GetTags() []string { + if x != nil { + return x.Tags } return nil } -// reference https://github.com/kubernetes/api/blob/4bdcbc60ffeee2c04231f11ff114314c1a93ce65/core/v1/generated.proto#L2715 -type PersistentVolumeClaimStatus struct { - Phase string `protobuf:"bytes,1,opt,name=phase,proto3" json:"phase,omitempty"` - AccessModes []string `protobuf:"bytes,2,rep,name=accessModes" json:"accessModes,omitempty"` - Capacity map[string]int64 `protobuf:"bytes,3,rep,name=capacity" json:"capacity,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` - Conditions []*PersistentVolumeClaimCondition `protobuf:"bytes,4,rep,name=conditions" json:"conditions,omitempty"` -} - -func (m *PersistentVolumeClaimStatus) Reset() { *m = PersistentVolumeClaimStatus{} } -func (m *PersistentVolumeClaimStatus) String() string { return proto.CompactTextString(m) } -func (*PersistentVolumeClaimStatus) ProtoMessage() {} -func (*PersistentVolumeClaimStatus) Descriptor() ([]byte, []int) { - return fileDescriptorAgent, []int{104} -} +type CollectorStatus struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *PersistentVolumeClaimStatus) GetCapacity() map[string]int64 { - if m != nil { - return m.Capacity - } - return nil + ActiveClients int32 `protobuf:"varint,1,opt,name=activeClients,proto3" json:"activeClients,omitempty"` + Interval int32 `protobuf:"varint,2,opt,name=interval,proto3" json:"interval,omitempty"` } -func (m *PersistentVolumeClaimStatus) GetConditions() []*PersistentVolumeClaimCondition { - if m != nil { - return m.Conditions +func (x *CollectorStatus) Reset() { + *x = CollectorStatus{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[30] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -// reference https://github.com/kubernetes/api/blob/4bdcbc60ffeee2c04231f11ff114314c1a93ce65/core/v1/generated.proto#L2654 -type PersistentVolumeClaimSpec struct { - AccessModes []string `protobuf:"bytes,1,rep,name=accessModes" json:"accessModes,omitempty"` - Resources *ResourceRequirements `protobuf:"bytes,2,opt,name=resources" json:"resources,omitempty"` - VolumeName string `protobuf:"bytes,3,opt,name=volumeName,proto3" json:"volumeName,omitempty"` - Selector []*LabelSelectorRequirement `protobuf:"bytes,4,rep,name=selector" json:"selector,omitempty"` - StorageClassName string `protobuf:"bytes,5,opt,name=storageClassName,proto3" json:"storageClassName,omitempty"` - VolumeMode string `protobuf:"bytes,6,opt,name=volumeMode,proto3" json:"volumeMode,omitempty"` - DataSource *TypedLocalObjectReference `protobuf:"bytes,7,opt,name=dataSource" json:"dataSource,omitempty"` +func (x *CollectorStatus) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *PersistentVolumeClaimSpec) Reset() { *m = PersistentVolumeClaimSpec{} } -func (m *PersistentVolumeClaimSpec) String() string { return proto.CompactTextString(m) } -func (*PersistentVolumeClaimSpec) ProtoMessage() {} -func (*PersistentVolumeClaimSpec) Descriptor() ([]byte, []int) { - return fileDescriptorAgent, []int{105} -} +func (*CollectorStatus) ProtoMessage() {} -func (m *PersistentVolumeClaimSpec) GetResources() *ResourceRequirements { - if m != nil { - return m.Resources +func (x *CollectorStatus) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[30] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -func (m *PersistentVolumeClaimSpec) GetSelector() []*LabelSelectorRequirement { - if m != nil { - return m.Selector - } - return nil +// Deprecated: Use CollectorStatus.ProtoReflect.Descriptor instead. +func (*CollectorStatus) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{30} } -func (m *PersistentVolumeClaimSpec) GetDataSource() *TypedLocalObjectReference { - if m != nil { - return m.DataSource +func (x *CollectorStatus) GetActiveClients() int32 { + if x != nil { + return x.ActiveClients } - return nil + return 0 } -// reference https://github.com/kubernetes/api/blob/4bdcbc60ffeee2c04231f11ff114314c1a93ce65/core/v1/generated.proto#L5327 -type TypedLocalObjectReference struct { - ApiGroup string `protobuf:"bytes,1,opt,name=apiGroup,proto3" json:"apiGroup,omitempty"` - Kind string `protobuf:"bytes,2,opt,name=kind,proto3" json:"kind,omitempty"` - Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` +func (x *CollectorStatus) GetInterval() int32 { + if x != nil { + return x.Interval + } + return 0 } -func (m *TypedLocalObjectReference) Reset() { *m = TypedLocalObjectReference{} } -func (m *TypedLocalObjectReference) String() string { return proto.CompactTextString(m) } -func (*TypedLocalObjectReference) ProtoMessage() {} -func (*TypedLocalObjectReference) Descriptor() ([]byte, []int) { - return fileDescriptorAgent, []int{106} -} +type Process struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -// reference https://github.com/kubernetes/api/blob/4bdcbc60ffeee2c04231f11ff114314c1a93ce65/core/v1/generated.proto#L2616 -type PersistentVolumeClaimCondition struct { - Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` - Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` - LastProbeTime int64 `protobuf:"varint,3,opt,name=lastProbeTime,proto3" json:"lastProbeTime,omitempty"` - LastTransitionTime int64 `protobuf:"varint,4,opt,name=lastTransitionTime,proto3" json:"lastTransitionTime,omitempty"` - Reason string `protobuf:"bytes,5,opt,name=reason,proto3" json:"reason,omitempty"` - Message string `protobuf:"bytes,6,opt,name=message,proto3" json:"message,omitempty"` + Key uint32 `protobuf:"varint,1,opt,name=key,proto3" json:"key,omitempty"` + Pid int32 `protobuf:"varint,2,opt,name=pid,proto3" json:"pid,omitempty"` + NsPid int32 `protobuf:"varint,20,opt,name=nsPid,proto3" json:"nsPid,omitempty"` + Host *Host `protobuf:"bytes,3,opt,name=host,proto3" json:"host,omitempty"` + Command *Command `protobuf:"bytes,4,opt,name=command,proto3" json:"command,omitempty"` + User *ProcessUser `protobuf:"bytes,5,opt,name=user,proto3" json:"user,omitempty"` + Memory *MemoryStat `protobuf:"bytes,7,opt,name=memory,proto3" json:"memory,omitempty"` + Cpu *CPUStat `protobuf:"bytes,8,opt,name=cpu,proto3" json:"cpu,omitempty"` + CreateTime int64 `protobuf:"varint,9,opt,name=createTime,proto3" json:"createTime,omitempty"` + Container *Container `protobuf:"bytes,10,opt,name=container,proto3" json:"container,omitempty"` // DEPRECATED - left in place to support previous versions + OpenFdCount int32 `protobuf:"varint,11,opt,name=openFdCount,proto3" json:"openFdCount,omitempty"` + State ProcessState `protobuf:"varint,12,opt,name=state,proto3,enum=datadog.process_agent.ProcessState" json:"state,omitempty"` + IoStat *IOStat `protobuf:"bytes,13,opt,name=ioStat,proto3" json:"ioStat,omitempty"` + ContainerId string `protobuf:"bytes,14,opt,name=containerId,proto3" json:"containerId,omitempty"` + ContainerKey uint32 `protobuf:"varint,15,opt,name=containerKey,proto3" json:"containerKey,omitempty"` + VoluntaryCtxSwitches uint64 `protobuf:"varint,16,opt,name=voluntaryCtxSwitches,proto3" json:"voluntaryCtxSwitches,omitempty"` + InvoluntaryCtxSwitches uint64 `protobuf:"varint,17,opt,name=involuntaryCtxSwitches,proto3" json:"involuntaryCtxSwitches,omitempty"` + ByteKey []byte `protobuf:"bytes,18,opt,name=byteKey,proto3" json:"byteKey,omitempty"` + ContainerByteKey []byte `protobuf:"bytes,19,opt,name=containerByteKey,proto3" json:"containerByteKey,omitempty"` + Networks *ProcessNetworks `protobuf:"bytes,21,opt,name=networks,proto3" json:"networks,omitempty"` } -func (m *PersistentVolumeClaimCondition) Reset() { *m = PersistentVolumeClaimCondition{} } -func (m *PersistentVolumeClaimCondition) String() string { return proto.CompactTextString(m) } -func (*PersistentVolumeClaimCondition) ProtoMessage() {} -func (*PersistentVolumeClaimCondition) Descriptor() ([]byte, []int) { - return fileDescriptorAgent, []int{107} +func (x *Process) Reset() { + *x = Process{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[31] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -// reference https://github.com/kubernetes/kubernetes/blob/cb19b56831d54d1d31249949318ef0b07bf00df9/staging/src/k8s.io/api/rbac/v1/generated.proto#L94 -type PolicyRule struct { - Verbs []string `protobuf:"bytes,1,rep,name=verbs" json:"verbs,omitempty"` - ApiGroups []string `protobuf:"bytes,2,rep,name=apiGroups" json:"apiGroups,omitempty"` - Resources []string `protobuf:"bytes,3,rep,name=resources" json:"resources,omitempty"` - ResourceNames []string `protobuf:"bytes,4,rep,name=resourceNames" json:"resourceNames,omitempty"` - NonResourceURLs []string `protobuf:"bytes,5,rep,name=nonResourceURLs" json:"nonResourceURLs,omitempty"` +func (x *Process) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *PolicyRule) Reset() { *m = PolicyRule{} } -func (m *PolicyRule) String() string { return proto.CompactTextString(m) } -func (*PolicyRule) ProtoMessage() {} -func (*PolicyRule) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{108} } +func (*Process) ProtoMessage() {} -// reference https://github.com/kubernetes/kubernetes/blob/cb19b56831d54d1d31249949318ef0b07bf00df9/staging/src/k8s.io/api/rbac/v1/generated.proto#L180 -type Subject struct { - Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"` - ApiGroup string `protobuf:"bytes,2,opt,name=apiGroup,proto3" json:"apiGroup,omitempty"` - Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` - Namespace string `protobuf:"bytes,4,opt,name=namespace,proto3" json:"namespace,omitempty"` +func (x *Process) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[31] + 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) } -func (m *Subject) Reset() { *m = Subject{} } -func (m *Subject) String() string { return proto.CompactTextString(m) } -func (*Subject) ProtoMessage() {} -func (*Subject) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{109} } - -// reference https://github.com/kubernetes/kubernetes/blob/cb19b56831d54d1d31249949318ef0b07bf00df9/staging/src/k8s.io/api/rbac/v1/generated.proto#L119 -type Role struct { - Metadata *Metadata `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"` - Rules []*PolicyRule `protobuf:"bytes,2,rep,name=rules" json:"rules,omitempty"` - Yaml []byte `protobuf:"bytes,3,opt,name=yaml,proto3" json:"yaml,omitempty"` - Tags []string `protobuf:"bytes,4,rep,name=tags" json:"tags,omitempty"` +// Deprecated: Use Process.ProtoReflect.Descriptor instead. +func (*Process) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{31} } -func (m *Role) Reset() { *m = Role{} } -func (m *Role) String() string { return proto.CompactTextString(m) } -func (*Role) ProtoMessage() {} -func (*Role) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{110} } - -func (m *Role) GetMetadata() *Metadata { - if m != nil { - return m.Metadata +func (x *Process) GetKey() uint32 { + if x != nil { + return x.Key } - return nil + return 0 } -func (m *Role) GetRules() []*PolicyRule { - if m != nil { - return m.Rules +func (x *Process) GetPid() int32 { + if x != nil { + return x.Pid } - return nil + return 0 } -// reference https://github.com/kubernetes/kubernetes/blob/cb19b56831d54d1d31249949318ef0b07bf00df9/staging/src/k8s.io/api/rbac/v1/generated.proto#L132 -type RoleBinding struct { - Metadata *Metadata `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"` - Subjects []*Subject `protobuf:"bytes,2,rep,name=subjects" json:"subjects,omitempty"` - RoleRef *TypedLocalObjectReference `protobuf:"bytes,3,opt,name=roleRef" json:"roleRef,omitempty"` - Yaml []byte `protobuf:"bytes,4,opt,name=yaml,proto3" json:"yaml,omitempty"` - Tags []string `protobuf:"bytes,5,rep,name=tags" json:"tags,omitempty"` +func (x *Process) GetNsPid() int32 { + if x != nil { + return x.NsPid + } + return 0 } -func (m *RoleBinding) Reset() { *m = RoleBinding{} } -func (m *RoleBinding) String() string { return proto.CompactTextString(m) } -func (*RoleBinding) ProtoMessage() {} -func (*RoleBinding) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{111} } - -func (m *RoleBinding) GetMetadata() *Metadata { - if m != nil { - return m.Metadata +func (x *Process) GetHost() *Host { + if x != nil { + return x.Host } return nil } -func (m *RoleBinding) GetSubjects() []*Subject { - if m != nil { - return m.Subjects +func (x *Process) GetCommand() *Command { + if x != nil { + return x.Command } return nil } -func (m *RoleBinding) GetRoleRef() *TypedLocalObjectReference { - if m != nil { - return m.RoleRef +func (x *Process) GetUser() *ProcessUser { + if x != nil { + return x.User } return nil } -// reference https://github.com/kubernetes/kubernetes/blob/cb19b56831d54d1d31249949318ef0b07bf00df9/staging/src/k8s.io/api/rbac/v1/generated.proto#L40 -type ClusterRole struct { - Metadata *Metadata `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"` - Rules []*PolicyRule `protobuf:"bytes,2,rep,name=rules" json:"rules,omitempty"` - AggregationRules []*LabelSelectorRequirement `protobuf:"bytes,3,rep,name=aggregationRules" json:"aggregationRules,omitempty"` - Yaml []byte `protobuf:"bytes,4,opt,name=yaml,proto3" json:"yaml,omitempty"` - Tags []string `protobuf:"bytes,5,rep,name=tags" json:"tags,omitempty"` - Metrics *ResourceMetrics `protobuf:"bytes,6,opt,name=metrics" json:"metrics,omitempty"` -} - -func (m *ClusterRole) Reset() { *m = ClusterRole{} } -func (m *ClusterRole) String() string { return proto.CompactTextString(m) } -func (*ClusterRole) ProtoMessage() {} -func (*ClusterRole) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{112} } - -func (m *ClusterRole) GetMetadata() *Metadata { - if m != nil { - return m.Metadata +func (x *Process) GetMemory() *MemoryStat { + if x != nil { + return x.Memory } return nil } -func (m *ClusterRole) GetRules() []*PolicyRule { - if m != nil { - return m.Rules +func (x *Process) GetCpu() *CPUStat { + if x != nil { + return x.Cpu } return nil } -func (m *ClusterRole) GetAggregationRules() []*LabelSelectorRequirement { - if m != nil { - return m.AggregationRules +func (x *Process) GetCreateTime() int64 { + if x != nil { + return x.CreateTime } - return nil + return 0 } -func (m *ClusterRole) GetMetrics() *ResourceMetrics { - if m != nil { - return m.Metrics +func (x *Process) GetContainer() *Container { + if x != nil { + return x.Container } return nil } -// reference https://github.com/kubernetes/kubernetes/blob/cb19b56831d54d1d31249949318ef0b07bf00df9/staging/src/k8s.io/api/rbac/v1/generated.proto#L58 -type ClusterRoleBinding struct { - Metadata *Metadata `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"` - Subjects []*Subject `protobuf:"bytes,2,rep,name=subjects" json:"subjects,omitempty"` - RoleRef *TypedLocalObjectReference `protobuf:"bytes,3,opt,name=roleRef" json:"roleRef,omitempty"` - Yaml []byte `protobuf:"bytes,4,opt,name=yaml,proto3" json:"yaml,omitempty"` - Tags []string `protobuf:"bytes,5,rep,name=tags" json:"tags,omitempty"` +func (x *Process) GetOpenFdCount() int32 { + if x != nil { + return x.OpenFdCount + } + return 0 } -func (m *ClusterRoleBinding) Reset() { *m = ClusterRoleBinding{} } -func (m *ClusterRoleBinding) String() string { return proto.CompactTextString(m) } -func (*ClusterRoleBinding) ProtoMessage() {} -func (*ClusterRoleBinding) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{113} } +func (x *Process) GetState() ProcessState { + if x != nil { + return x.State + } + return ProcessState_U +} -func (m *ClusterRoleBinding) GetMetadata() *Metadata { - if m != nil { - return m.Metadata +func (x *Process) GetIoStat() *IOStat { + if x != nil { + return x.IoStat } return nil } -func (m *ClusterRoleBinding) GetSubjects() []*Subject { - if m != nil { - return m.Subjects +func (x *Process) GetContainerId() string { + if x != nil { + return x.ContainerId } - return nil + return "" } -func (m *ClusterRoleBinding) GetRoleRef() *TypedLocalObjectReference { - if m != nil { - return m.RoleRef +func (x *Process) GetContainerKey() uint32 { + if x != nil { + return x.ContainerKey } - return nil + return 0 } -// reference https://github.com/kubernetes/kubernetes/blob/cb19b56831d54d1d31249949318ef0b07bf00df9/staging/src/k8s.io/api/core/v1/generated.proto#L4495 -type ServiceAccount struct { - Metadata *Metadata `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"` - Secrets []*ObjectReference `protobuf:"bytes,2,rep,name=secrets" json:"secrets,omitempty"` - ImagePullSecrets []*TypedLocalObjectReference `protobuf:"bytes,3,rep,name=imagePullSecrets" json:"imagePullSecrets,omitempty"` - AutomountServiceAccountToken bool `protobuf:"varint,4,opt,name=automountServiceAccountToken,proto3" json:"automountServiceAccountToken,omitempty"` - Yaml []byte `protobuf:"bytes,5,opt,name=yaml,proto3" json:"yaml,omitempty"` - Tags []string `protobuf:"bytes,6,rep,name=tags" json:"tags,omitempty"` +func (x *Process) GetVoluntaryCtxSwitches() uint64 { + if x != nil { + return x.VoluntaryCtxSwitches + } + return 0 } -func (m *ServiceAccount) Reset() { *m = ServiceAccount{} } -func (m *ServiceAccount) String() string { return proto.CompactTextString(m) } -func (*ServiceAccount) ProtoMessage() {} -func (*ServiceAccount) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{114} } +func (x *Process) GetInvoluntaryCtxSwitches() uint64 { + if x != nil { + return x.InvoluntaryCtxSwitches + } + return 0 +} -func (m *ServiceAccount) GetMetadata() *Metadata { - if m != nil { - return m.Metadata +func (x *Process) GetByteKey() []byte { + if x != nil { + return x.ByteKey } return nil } -func (m *ServiceAccount) GetSecrets() []*ObjectReference { - if m != nil { - return m.Secrets +func (x *Process) GetContainerByteKey() []byte { + if x != nil { + return x.ContainerByteKey } return nil } -func (m *ServiceAccount) GetImagePullSecrets() []*TypedLocalObjectReference { - if m != nil { - return m.ImagePullSecrets +func (x *Process) GetNetworks() *ProcessNetworks { + if x != nil { + return x.Networks } return nil } -// reference https://github.com/kubernetes/api/blob/v0.21.5/networking/v1/generated.proto#L259 -// Note: ServiceBackendPort (contains port name and number) is flattened. -type IngressServiceBackend struct { - ServiceName string `protobuf:"bytes,1,opt,name=serviceName,proto3" json:"serviceName,omitempty"` - PortName string `protobuf:"bytes,2,opt,name=portName,proto3" json:"portName,omitempty"` - PortNumber int32 `protobuf:"varint,3,opt,name=portNumber,proto3" json:"portNumber,omitempty"` +type ProcessDiscovery struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Pid int32 `protobuf:"varint,1,opt,name=pid,proto3" json:"pid,omitempty"` + NsPid int32 `protobuf:"varint,2,opt,name=nsPid,proto3" json:"nsPid,omitempty"` + Host *Host `protobuf:"bytes,3,opt,name=host,proto3" json:"host,omitempty"` + Command *Command `protobuf:"bytes,4,opt,name=command,proto3" json:"command,omitempty"` + User *ProcessUser `protobuf:"bytes,5,opt,name=user,proto3" json:"user,omitempty"` + CreateTime int64 `protobuf:"varint,6,opt,name=createTime,proto3" json:"createTime,omitempty"` + ByteKey []byte `protobuf:"bytes,7,opt,name=byteKey,proto3" json:"byteKey,omitempty"` } -func (m *IngressServiceBackend) Reset() { *m = IngressServiceBackend{} } -func (m *IngressServiceBackend) String() string { return proto.CompactTextString(m) } -func (*IngressServiceBackend) ProtoMessage() {} -func (*IngressServiceBackend) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{115} } +func (x *ProcessDiscovery) Reset() { + *x = ProcessDiscovery{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[32] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} -// reference https://github.com/kubernetes/api/blob/v0.21.5/networking/v1/generated.proto#L112 -type IngressBackend struct { - Service *IngressServiceBackend `protobuf:"bytes,1,opt,name=service" json:"service,omitempty"` - Resource *TypedLocalObjectReference `protobuf:"bytes,2,opt,name=resource" json:"resource,omitempty"` +func (x *ProcessDiscovery) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *IngressBackend) Reset() { *m = IngressBackend{} } -func (m *IngressBackend) String() string { return proto.CompactTextString(m) } -func (*IngressBackend) ProtoMessage() {} -func (*IngressBackend) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{116} } +func (*ProcessDiscovery) ProtoMessage() {} -func (m *IngressBackend) GetService() *IngressServiceBackend { - if m != nil { - return m.Service +func (x *ProcessDiscovery) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[32] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -func (m *IngressBackend) GetResource() *TypedLocalObjectReference { - if m != nil { - return m.Resource - } - return nil +// Deprecated: Use ProcessDiscovery.ProtoReflect.Descriptor instead. +func (*ProcessDiscovery) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{32} } -// reference https://github.com/kubernetes/api/blob/v0.21.5/networking/v1/generated.proto#L315 -type IngressTLS struct { - Hosts []string `protobuf:"bytes,1,rep,name=hosts" json:"hosts,omitempty"` - SecretName string `protobuf:"bytes,2,opt,name=secretName,proto3" json:"secretName,omitempty"` +func (x *ProcessDiscovery) GetPid() int32 { + if x != nil { + return x.Pid + } + return 0 } -func (m *IngressTLS) Reset() { *m = IngressTLS{} } -func (m *IngressTLS) String() string { return proto.CompactTextString(m) } -func (*IngressTLS) ProtoMessage() {} -func (*IngressTLS) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{117} } - -// reference https://github.com/kubernetes/api/blob/v0.21.5/networking/v1/generated.proto#L35 -type HTTPIngressPath struct { - Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` - PathType string `protobuf:"bytes,3,opt,name=pathType,proto3" json:"pathType,omitempty"` - Backend *IngressBackend `protobuf:"bytes,2,opt,name=backend" json:"backend,omitempty"` +func (x *ProcessDiscovery) GetNsPid() int32 { + if x != nil { + return x.NsPid + } + return 0 } -func (m *HTTPIngressPath) Reset() { *m = HTTPIngressPath{} } -func (m *HTTPIngressPath) String() string { return proto.CompactTextString(m) } -func (*HTTPIngressPath) ProtoMessage() {} -func (*HTTPIngressPath) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{118} } - -func (m *HTTPIngressPath) GetBackend() *IngressBackend { - if m != nil { - return m.Backend +func (x *ProcessDiscovery) GetHost() *Host { + if x != nil { + return x.Host } return nil } -// reference https://github.com/kubernetes/api/blob/v0.21.5/networking/v1/generated.proto#L214 -// Note: IngressRuleValue and HTTPIngressRuleValue are flattened -type IngressRule struct { - Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"` - HttpPaths []*HTTPIngressPath `protobuf:"bytes,2,rep,name=httpPaths" json:"httpPaths,omitempty"` +func (x *ProcessDiscovery) GetCommand() *Command { + if x != nil { + return x.Command + } + return nil } -func (m *IngressRule) Reset() { *m = IngressRule{} } -func (m *IngressRule) String() string { return proto.CompactTextString(m) } -func (*IngressRule) ProtoMessage() {} -func (*IngressRule) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{119} } - -func (m *IngressRule) GetHttpPaths() []*HTTPIngressPath { - if m != nil { - return m.HttpPaths +func (x *ProcessDiscovery) GetUser() *ProcessUser { + if x != nil { + return x.User } return nil } -// reference https://github.com/kubernetes/api/blob/v0.21.5/networking/v1/generated.proto#L270 -type IngressSpec struct { - DefaultBackend *IngressBackend `protobuf:"bytes,1,opt,name=defaultBackend" json:"defaultBackend,omitempty"` - Tls []*IngressTLS `protobuf:"bytes,2,rep,name=tls" json:"tls,omitempty"` - Rules []*IngressRule `protobuf:"bytes,3,rep,name=rules" json:"rules,omitempty"` - IngressClassName string `protobuf:"bytes,4,opt,name=ingressClassName,proto3" json:"ingressClassName,omitempty"` +func (x *ProcessDiscovery) GetCreateTime() int64 { + if x != nil { + return x.CreateTime + } + return 0 } -func (m *IngressSpec) Reset() { *m = IngressSpec{} } -func (m *IngressSpec) String() string { return proto.CompactTextString(m) } -func (*IngressSpec) ProtoMessage() {} -func (*IngressSpec) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{120} } - -func (m *IngressSpec) GetDefaultBackend() *IngressBackend { - if m != nil { - return m.DefaultBackend +func (x *ProcessDiscovery) GetByteKey() []byte { + if x != nil { + return x.ByteKey } return nil } -func (m *IngressSpec) GetTls() []*IngressTLS { - if m != nil { - return m.Tls - } - return nil +type Command struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Args []string `protobuf:"bytes,1,rep,name=args,proto3" json:"args,omitempty"` + Cwd string `protobuf:"bytes,3,opt,name=cwd,proto3" json:"cwd,omitempty"` + Root string `protobuf:"bytes,4,opt,name=root,proto3" json:"root,omitempty"` + OnDisk bool `protobuf:"varint,5,opt,name=onDisk,proto3" json:"onDisk,omitempty"` + Ppid int32 `protobuf:"varint,6,opt,name=ppid,proto3" json:"ppid,omitempty"` + Pgroup int32 `protobuf:"varint,7,opt,name=pgroup,proto3" json:"pgroup,omitempty"` + Exe string `protobuf:"bytes,8,opt,name=exe,proto3" json:"exe,omitempty"` } -func (m *IngressSpec) GetRules() []*IngressRule { - if m != nil { - return m.Rules +func (x *Command) Reset() { + *x = Command{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[33] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -// reference https://github.com/kubernetes/api/blob/v0.21.5/core/v1/generated.proto#L3781 -type PortStatus struct { - Port int32 `protobuf:"varint,1,opt,name=port,proto3" json:"port,omitempty"` - Protocol string `protobuf:"bytes,2,opt,name=protocol,proto3" json:"protocol,omitempty"` - Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"` +func (x *Command) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *PortStatus) Reset() { *m = PortStatus{} } -func (m *PortStatus) String() string { return proto.CompactTextString(m) } -func (*PortStatus) ProtoMessage() {} -func (*PortStatus) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{121} } +func (*Command) ProtoMessage() {} -// reference https://github.com/kubernetes/api/blob/v0.21.5/core/v1/generated.proto#L2024 -type LoadBalancerIngress struct { - Ip string `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"` - Hostname string `protobuf:"bytes,2,opt,name=hostname,proto3" json:"hostname,omitempty"` - Ports []*PortStatus `protobuf:"bytes,4,rep,name=ports" json:"ports,omitempty"` +func (x *Command) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[33] + 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) } -func (m *LoadBalancerIngress) Reset() { *m = LoadBalancerIngress{} } -func (m *LoadBalancerIngress) String() string { return proto.CompactTextString(m) } -func (*LoadBalancerIngress) ProtoMessage() {} -func (*LoadBalancerIngress) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{122} } +// Deprecated: Use Command.ProtoReflect.Descriptor instead. +func (*Command) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{33} +} -func (m *LoadBalancerIngress) GetPorts() []*PortStatus { - if m != nil { - return m.Ports +func (x *Command) GetArgs() []string { + if x != nil { + return x.Args } return nil } -// reference https://github.com/kubernetes/api/blob/v0.21.5/networking/v1/generated.proto#L308 -// LoadBalancerStatus is flattened -type IngressStatus struct { - Ingress []*LoadBalancerIngress `protobuf:"bytes,1,rep,name=ingress" json:"ingress,omitempty"` +func (x *Command) GetCwd() string { + if x != nil { + return x.Cwd + } + return "" } -func (m *IngressStatus) Reset() { *m = IngressStatus{} } -func (m *IngressStatus) String() string { return proto.CompactTextString(m) } -func (*IngressStatus) ProtoMessage() {} -func (*IngressStatus) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{123} } - -func (m *IngressStatus) GetIngress() []*LoadBalancerIngress { - if m != nil { - return m.Ingress +func (x *Command) GetRoot() string { + if x != nil { + return x.Root } - return nil + return "" } -// reference https://github.com/kubernetes/api/blob/v0.21.5/networking/v1/generated.proto#L94 -type Ingress struct { - Metadata *Metadata `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"` - Spec *IngressSpec `protobuf:"bytes,2,opt,name=spec" json:"spec,omitempty"` - Status *IngressStatus `protobuf:"bytes,3,opt,name=status" json:"status,omitempty"` - Yaml []byte `protobuf:"bytes,4,opt,name=yaml,proto3" json:"yaml,omitempty"` - Tags []string `protobuf:"bytes,5,rep,name=tags" json:"tags,omitempty"` +func (x *Command) GetOnDisk() bool { + if x != nil { + return x.OnDisk + } + return false } -func (m *Ingress) Reset() { *m = Ingress{} } -func (m *Ingress) String() string { return proto.CompactTextString(m) } -func (*Ingress) ProtoMessage() {} -func (*Ingress) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{124} } - -func (m *Ingress) GetMetadata() *Metadata { - if m != nil { - return m.Metadata +func (x *Command) GetPpid() int32 { + if x != nil { + return x.Ppid } - return nil + return 0 } -func (m *Ingress) GetSpec() *IngressSpec { - if m != nil { - return m.Spec +func (x *Command) GetPgroup() int32 { + if x != nil { + return x.Pgroup } - return nil + return 0 } -func (m *Ingress) GetStatus() *IngressStatus { - if m != nil { - return m.Status +func (x *Command) GetExe() string { + if x != nil { + return x.Exe } - return nil + return "" } -type KafkaRequestHeader struct { - RequestType uint32 `protobuf:"varint,1,opt,name=request_type,json=requestType,proto3" json:"request_type,omitempty"` - RequestVersion uint32 `protobuf:"varint,2,opt,name=request_version,json=requestVersion,proto3" json:"request_version,omitempty"` +type ProcessUser struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Uid int32 `protobuf:"varint,2,opt,name=uid,proto3" json:"uid,omitempty"` + Gid int32 `protobuf:"varint,3,opt,name=gid,proto3" json:"gid,omitempty"` + Euid int32 `protobuf:"varint,4,opt,name=euid,proto3" json:"euid,omitempty"` + Egid int32 `protobuf:"varint,5,opt,name=egid,proto3" json:"egid,omitempty"` + Suid int32 `protobuf:"varint,6,opt,name=suid,proto3" json:"suid,omitempty"` + Sgid int32 `protobuf:"varint,7,opt,name=sgid,proto3" json:"sgid,omitempty"` } -func (m *KafkaRequestHeader) Reset() { *m = KafkaRequestHeader{} } -func (m *KafkaRequestHeader) String() string { return proto.CompactTextString(m) } -func (*KafkaRequestHeader) ProtoMessage() {} -func (*KafkaRequestHeader) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{125} } +func (x *ProcessUser) Reset() { + *x = ProcessUser{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[34] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} -type KafkaAggregation struct { - Header *KafkaRequestHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` - Topic string `protobuf:"bytes,2,opt,name=topic,proto3" json:"topic,omitempty"` - Count uint32 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"` +func (x *ProcessUser) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *KafkaAggregation) Reset() { *m = KafkaAggregation{} } -func (m *KafkaAggregation) String() string { return proto.CompactTextString(m) } -func (*KafkaAggregation) ProtoMessage() {} -func (*KafkaAggregation) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{126} } +func (*ProcessUser) ProtoMessage() {} -func (m *KafkaAggregation) GetHeader() *KafkaRequestHeader { - if m != nil { - return m.Header +func (x *ProcessUser) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[34] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -type DataStreamsAggregations struct { - KafkaProduceAggregations *DataStreamsAggregations_KafkaProduceAggregations `protobuf:"bytes,1,opt,name=kafkaProduceAggregations" json:"kafkaProduceAggregations,omitempty"` - KafkaFetchAggregations *DataStreamsAggregations_KafkaFetchAggregations `protobuf:"bytes,2,opt,name=kafkaFetchAggregations" json:"kafkaFetchAggregations,omitempty"` - KafkaAggregations []*KafkaAggregation `protobuf:"bytes,3,rep,name=kafkaAggregations" json:"kafkaAggregations,omitempty"` +// Deprecated: Use ProcessUser.ProtoReflect.Descriptor instead. +func (*ProcessUser) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{34} } -func (m *DataStreamsAggregations) Reset() { *m = DataStreamsAggregations{} } -func (m *DataStreamsAggregations) String() string { return proto.CompactTextString(m) } -func (*DataStreamsAggregations) ProtoMessage() {} -func (*DataStreamsAggregations) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{127} } - -func (m *DataStreamsAggregations) GetKafkaProduceAggregations() *DataStreamsAggregations_KafkaProduceAggregations { - if m != nil { - return m.KafkaProduceAggregations +func (x *ProcessUser) GetName() string { + if x != nil { + return x.Name } - return nil + return "" } -func (m *DataStreamsAggregations) GetKafkaFetchAggregations() *DataStreamsAggregations_KafkaFetchAggregations { - if m != nil { - return m.KafkaFetchAggregations +func (x *ProcessUser) GetUid() int32 { + if x != nil { + return x.Uid } - return nil + return 0 } -func (m *DataStreamsAggregations) GetKafkaAggregations() []*KafkaAggregation { - if m != nil { - return m.KafkaAggregations +func (x *ProcessUser) GetGid() int32 { + if x != nil { + return x.Gid } - return nil + return 0 } -// TopicStats, KafkaProduceAggregations, and KafkaFetchAggregations should be deleted once we change dd-go to support the new DataStreamsAggregations format -type DataStreamsAggregations_TopicStats struct { - Topic string `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"` - Count uint32 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` +func (x *ProcessUser) GetEuid() int32 { + if x != nil { + return x.Euid + } + return 0 } -func (m *DataStreamsAggregations_TopicStats) Reset() { *m = DataStreamsAggregations_TopicStats{} } -func (m *DataStreamsAggregations_TopicStats) String() string { return proto.CompactTextString(m) } -func (*DataStreamsAggregations_TopicStats) ProtoMessage() {} -func (*DataStreamsAggregations_TopicStats) Descriptor() ([]byte, []int) { - return fileDescriptorAgent, []int{127, 0} +func (x *ProcessUser) GetEgid() int32 { + if x != nil { + return x.Egid + } + return 0 } -type DataStreamsAggregations_KafkaProduceAggregations struct { - Stats []*DataStreamsAggregations_TopicStats `protobuf:"bytes,1,rep,name=stats" json:"stats,omitempty"` +func (x *ProcessUser) GetSuid() int32 { + if x != nil { + return x.Suid + } + return 0 } -func (m *DataStreamsAggregations_KafkaProduceAggregations) Reset() { - *m = DataStreamsAggregations_KafkaProduceAggregations{} -} -func (m *DataStreamsAggregations_KafkaProduceAggregations) String() string { - return proto.CompactTextString(m) +func (x *ProcessUser) GetSgid() int32 { + if x != nil { + return x.Sgid + } + return 0 } -func (*DataStreamsAggregations_KafkaProduceAggregations) ProtoMessage() {} -func (*DataStreamsAggregations_KafkaProduceAggregations) Descriptor() ([]byte, []int) { - return fileDescriptorAgent, []int{127, 1} + +// ProcessNetworks is a structure that holds network related metrics for processes +type ProcessNetworks struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ConnectionRate float32 `protobuf:"fixed32,1,opt,name=connectionRate,proto3" json:"connectionRate,omitempty"` + BytesRate float32 `protobuf:"fixed32,2,opt,name=bytesRate,proto3" json:"bytesRate,omitempty"` } -func (m *DataStreamsAggregations_KafkaProduceAggregations) GetStats() []*DataStreamsAggregations_TopicStats { - if m != nil { - return m.Stats +func (x *ProcessNetworks) Reset() { + *x = ProcessNetworks{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[35] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -type DataStreamsAggregations_KafkaFetchAggregations struct { - Stats []*DataStreamsAggregations_TopicStats `protobuf:"bytes,1,rep,name=stats" json:"stats,omitempty"` +func (x *ProcessNetworks) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DataStreamsAggregations_KafkaFetchAggregations) Reset() { - *m = DataStreamsAggregations_KafkaFetchAggregations{} -} -func (m *DataStreamsAggregations_KafkaFetchAggregations) String() string { - return proto.CompactTextString(m) +func (*ProcessNetworks) ProtoMessage() {} + +func (x *ProcessNetworks) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[35] + 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) } -func (*DataStreamsAggregations_KafkaFetchAggregations) ProtoMessage() {} -func (*DataStreamsAggregations_KafkaFetchAggregations) Descriptor() ([]byte, []int) { - return fileDescriptorAgent, []int{127, 2} + +// Deprecated: Use ProcessNetworks.ProtoReflect.Descriptor instead. +func (*ProcessNetworks) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{35} } -func (m *DataStreamsAggregations_KafkaFetchAggregations) GetStats() []*DataStreamsAggregations_TopicStats { - if m != nil { - return m.Stats +func (x *ProcessNetworks) GetConnectionRate() float32 { + if x != nil { + return x.ConnectionRate } - return nil + return 0 } -type HTTPAggregations struct { - EndpointAggregations []*HTTPStats `protobuf:"bytes,2,rep,name=endpointAggregations" json:"endpointAggregations,omitempty"` +func (x *ProcessNetworks) GetBytesRate() float32 { + if x != nil { + return x.BytesRate + } + return 0 } -func (m *HTTPAggregations) Reset() { *m = HTTPAggregations{} } -func (m *HTTPAggregations) String() string { return proto.CompactTextString(m) } -func (*HTTPAggregations) ProtoMessage() {} -func (*HTTPAggregations) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{128} } +// ContainerAddr records the IPs, Ports and Protocols for each container +type ContainerAddr struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Ip string `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"` + Port int32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"` + Protocol ConnectionType `protobuf:"varint,3,opt,name=protocol,proto3,enum=datadog.process_agent.ConnectionType" json:"protocol,omitempty"` +} -func (m *HTTPAggregations) GetEndpointAggregations() []*HTTPStats { - if m != nil { - return m.EndpointAggregations +func (x *ContainerAddr) Reset() { + *x = ContainerAddr{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[36] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -// The current state of HTTP2Aggregations is identical to that of HTTPAggregations. -// However, there is a possibility that additional fields might be added to it in the future. -type HTTP2Aggregations struct { - EndpointAggregations []*HTTPStats `protobuf:"bytes,1,rep,name=endpointAggregations" json:"endpointAggregations,omitempty"` +func (x *ContainerAddr) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *HTTP2Aggregations) Reset() { *m = HTTP2Aggregations{} } -func (m *HTTP2Aggregations) String() string { return proto.CompactTextString(m) } -func (*HTTP2Aggregations) ProtoMessage() {} -func (*HTTP2Aggregations) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{129} } +func (*ContainerAddr) ProtoMessage() {} -func (m *HTTP2Aggregations) GetEndpointAggregations() []*HTTPStats { - if m != nil { - return m.EndpointAggregations +func (x *ContainerAddr) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[36] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -type HTTPStats struct { - Path string `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"` - Method HTTPMethod `protobuf:"varint,5,opt,name=method,proto3,enum=datadog.process_agent.HTTPMethod" json:"method,omitempty"` - // The agent can only read a limited part of the http header because - // of cpu/memory contraints. It is thus possible that the path is not - // read entirely. - // In case we're sure we've read the http path entirely, fullPath will - // be set to true. In any other cases, it would be set to false. - FullPath bool `protobuf:"varint,6,opt,name=fullPath,proto3" json:"fullPath,omitempty"` - StatsByResponseStatus []*HTTPStats_Data `protobuf:"bytes,1,rep,name=statsByResponseStatus" json:"statsByResponseStatus,omitempty"` - // This is a temporary field, that might be removed (and the index to be reserved) in the near future. - // This is the new format of saving aggregations. We support any status code rather than just the status code families - // as used in statsByResponseStatus. - StatsByStatusCode map[int32]*HTTPStats_Data `protobuf:"bytes,2,rep,name=statsByStatusCode" json:"statsByStatusCode,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value"` +// Deprecated: Use ContainerAddr.ProtoReflect.Descriptor instead. +func (*ContainerAddr) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{36} } -func (m *HTTPStats) Reset() { *m = HTTPStats{} } -func (m *HTTPStats) String() string { return proto.CompactTextString(m) } -func (*HTTPStats) ProtoMessage() {} -func (*HTTPStats) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{130} } - -func (m *HTTPStats) GetStatsByResponseStatus() []*HTTPStats_Data { - if m != nil { - return m.StatsByResponseStatus +func (x *ContainerAddr) GetIp() string { + if x != nil { + return x.Ip } - return nil + return "" } -func (m *HTTPStats) GetStatsByStatusCode() map[int32]*HTTPStats_Data { - if m != nil { - return m.StatsByStatusCode +func (x *ContainerAddr) GetPort() int32 { + if x != nil { + return x.Port } - return nil + return 0 } -type HTTPStats_Data struct { - Count uint32 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` - // a protobuf encoded sketch of all the requests in this HTTPStats. In nanoseconds. - // this will be nil if count == 1 - // To decode: - // use a protobuf library to decode this into a github.com/DataDog/sketches-go/ddsketch/pb/sketchpb.DDSketch - // then call github.com/DataDog/sketches-go/ddsketch.FromProto - // To encode: - // create a github.com/DataDog/sketches-go/ddsketch.DDSketch - // call ToProto() and then run through a protobuf encoder - Latencies []byte `protobuf:"bytes,2,opt,name=latencies,proto3" json:"latencies,omitempty"` - // if the HTTPStats has a single sample, this field will be the latency (in nanoseconds) of the only sample. - // this is purely to avoid the overhead of having single entry sketches. - FirstLatencySample float64 `protobuf:"fixed64,4,opt,name=firstLatencySample,proto3" json:"firstLatencySample,omitempty"` +func (x *ContainerAddr) GetProtocol() ConnectionType { + if x != nil { + return x.Protocol + } + return ConnectionType_tcp } -func (m *HTTPStats_Data) Reset() { *m = HTTPStats_Data{} } -func (m *HTTPStats_Data) String() string { return proto.CompactTextString(m) } -func (*HTTPStats_Data) ProtoMessage() {} -func (*HTTPStats_Data) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{130, 1} } +type Container struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -// replaces DNSEntry. Is a list of DNS names that a given IP resolved to. -// List of offsets into the EncodedDomainDatabase. -type DNSDatabaseEntry struct { - NameOffsets []int32 `protobuf:"varint,1,rep,name=nameOffsets" json:"nameOffsets,omitempty"` + Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` + Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` // DEPRECATED - left in place to support previous versions + Image string `protobuf:"bytes,4,opt,name=image,proto3" json:"image,omitempty"` // DEPRECATED - left in place to support previous versions + CpuLimit float32 `protobuf:"fixed32,5,opt,name=cpuLimit,proto3" json:"cpuLimit,omitempty"` + MemoryLimit uint64 `protobuf:"varint,6,opt,name=memoryLimit,proto3" json:"memoryLimit,omitempty"` + State ContainerState `protobuf:"varint,8,opt,name=state,proto3,enum=datadog.process_agent.ContainerState" json:"state,omitempty"` + Health ContainerHealth `protobuf:"varint,9,opt,name=health,proto3,enum=datadog.process_agent.ContainerHealth" json:"health,omitempty"` + Created int64 `protobuf:"varint,10,opt,name=created,proto3" json:"created,omitempty"` + Rbps float32 `protobuf:"fixed32,11,opt,name=rbps,proto3" json:"rbps,omitempty"` + Wbps float32 `protobuf:"fixed32,12,opt,name=wbps,proto3" json:"wbps,omitempty"` + Key uint32 `protobuf:"varint,13,opt,name=key,proto3" json:"key,omitempty"` // Unique key for a container resolved on backend. + NetRcvdPs float32 `protobuf:"fixed32,14,opt,name=netRcvdPs,proto3" json:"netRcvdPs,omitempty"` + NetSentPs float32 `protobuf:"fixed32,15,opt,name=netSentPs,proto3" json:"netSentPs,omitempty"` + NetRcvdBps float32 `protobuf:"fixed32,16,opt,name=netRcvdBps,proto3" json:"netRcvdBps,omitempty"` + NetSentBps float32 `protobuf:"fixed32,17,opt,name=netSentBps,proto3" json:"netSentBps,omitempty"` + UserPct float32 `protobuf:"fixed32,18,opt,name=userPct,proto3" json:"userPct,omitempty"` + SystemPct float32 `protobuf:"fixed32,19,opt,name=systemPct,proto3" json:"systemPct,omitempty"` + TotalPct float32 `protobuf:"fixed32,20,opt,name=totalPct,proto3" json:"totalPct,omitempty"` + MemRss uint64 `protobuf:"varint,21,opt,name=memRss,proto3" json:"memRss,omitempty"` + MemCache uint64 `protobuf:"varint,22,opt,name=memCache,proto3" json:"memCache,omitempty"` + Host *Host `protobuf:"bytes,23,opt,name=host,proto3" json:"host,omitempty"` // Used post-resolution + Started int64 `protobuf:"varint,24,opt,name=started,proto3" json:"started,omitempty"` + ByteKey []byte `protobuf:"bytes,25,opt,name=byteKey,proto3" json:"byteKey,omitempty"` + Tags []string `protobuf:"bytes,26,rep,name=tags,proto3" json:"tags,omitempty"` + Addresses []*ContainerAddr `protobuf:"bytes,27,rep,name=addresses,proto3" json:"addresses,omitempty"` + ThreadCount uint64 `protobuf:"varint,28,opt,name=threadCount,proto3" json:"threadCount,omitempty"` + ThreadLimit uint64 `protobuf:"varint,29,opt,name=threadLimit,proto3" json:"threadLimit,omitempty"` + MemUsage uint64 `protobuf:"varint,30,opt,name=memUsage,proto3" json:"memUsage,omitempty"` + CpuUsageNs float32 `protobuf:"fixed32,31,opt,name=cpuUsageNs,proto3" json:"cpuUsageNs,omitempty"` + MemAccounted uint64 `protobuf:"varint,32,opt,name=memAccounted,proto3" json:"memAccounted,omitempty"` } -func (m *DNSDatabaseEntry) Reset() { *m = DNSDatabaseEntry{} } -func (m *DNSDatabaseEntry) String() string { return proto.CompactTextString(m) } -func (*DNSDatabaseEntry) ProtoMessage() {} -func (*DNSDatabaseEntry) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{131} } +func (x *Container) Reset() { + *x = Container{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[37] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} -// ResourceList is a set of (resource name, quantity) pairs -// https://pkg.go.dev/k8s.io/api/core/v1#ResourceList -type ResourceList struct { - MetricValues map[string]float64 `protobuf:"bytes,1,rep,name=metricValues" json:"metricValues,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"fixed64,2,opt,name=value,proto3"` +func (x *Container) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ResourceList) Reset() { *m = ResourceList{} } -func (m *ResourceList) String() string { return proto.CompactTextString(m) } -func (*ResourceList) ProtoMessage() {} -func (*ResourceList) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{132} } +func (*Container) ProtoMessage() {} -func (m *ResourceList) GetMetricValues() map[string]float64 { - if m != nil { - return m.MetricValues +func (x *Container) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[37] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -// https://github.com/kubernetes/autoscaler/blob/master/vertical-pod-autoscaler/pkg/apis/autoscaling.k8s.io/v1/types.go -type VerticalPodAutoscaler struct { - Metadata *Metadata `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"` - Spec *VerticalPodAutoscalerSpec `protobuf:"bytes,2,opt,name=spec" json:"spec,omitempty"` - Status *VerticalPodAutoscalerStatus `protobuf:"bytes,3,opt,name=status" json:"status,omitempty"` - Yaml []byte `protobuf:"bytes,4,opt,name=yaml,proto3" json:"yaml,omitempty"` - Tags []string `protobuf:"bytes,5,rep,name=tags" json:"tags,omitempty"` - Conditions []*VerticalPodAutoscalerCondition `protobuf:"bytes,6,rep,name=conditions" json:"conditions,omitempty"` +// Deprecated: Use Container.ProtoReflect.Descriptor instead. +func (*Container) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{37} +} + +func (x *Container) GetType() string { + if x != nil { + return x.Type + } + return "" } -func (m *VerticalPodAutoscaler) Reset() { *m = VerticalPodAutoscaler{} } -func (m *VerticalPodAutoscaler) String() string { return proto.CompactTextString(m) } -func (*VerticalPodAutoscaler) ProtoMessage() {} -func (*VerticalPodAutoscaler) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{133} } +func (x *Container) GetId() string { + if x != nil { + return x.Id + } + return "" +} -func (m *VerticalPodAutoscaler) GetMetadata() *Metadata { - if m != nil { - return m.Metadata +func (x *Container) GetName() string { + if x != nil { + return x.Name } - return nil + return "" } -func (m *VerticalPodAutoscaler) GetSpec() *VerticalPodAutoscalerSpec { - if m != nil { - return m.Spec +func (x *Container) GetImage() string { + if x != nil { + return x.Image } - return nil + return "" } -func (m *VerticalPodAutoscaler) GetStatus() *VerticalPodAutoscalerStatus { - if m != nil { - return m.Status +func (x *Container) GetCpuLimit() float32 { + if x != nil { + return x.CpuLimit } - return nil + return 0 } -func (m *VerticalPodAutoscaler) GetConditions() []*VerticalPodAutoscalerCondition { - if m != nil { - return m.Conditions +func (x *Container) GetMemoryLimit() uint64 { + if x != nil { + return x.MemoryLimit } - return nil + return 0 } -// reference https://github.com/kubernetes/autoscaler/blob/master/vertical-pod-autoscaler/pkg/apis/autoscaling.k8s.io/v1/types.go#L295 -type VerticalPodAutoscalerCondition struct { - Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` - Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` - LastTransitionTime int64 `protobuf:"varint,3,opt,name=lastTransitionTime,proto3" json:"lastTransitionTime,omitempty"` - Reason string `protobuf:"bytes,4,opt,name=reason,proto3" json:"reason,omitempty"` - Message string `protobuf:"bytes,5,opt,name=message,proto3" json:"message,omitempty"` +func (x *Container) GetState() ContainerState { + if x != nil { + return x.State + } + return ContainerState_unknown } -func (m *VerticalPodAutoscalerCondition) Reset() { *m = VerticalPodAutoscalerCondition{} } -func (m *VerticalPodAutoscalerCondition) String() string { return proto.CompactTextString(m) } -func (*VerticalPodAutoscalerCondition) ProtoMessage() {} -func (*VerticalPodAutoscalerCondition) Descriptor() ([]byte, []int) { - return fileDescriptorAgent, []int{134} +func (x *Container) GetHealth() ContainerHealth { + if x != nil { + return x.Health + } + return ContainerHealth_unknownHealth } -type VerticalPodAutoscalerSpec struct { - Target *VerticalPodAutoscalerTarget `protobuf:"bytes,1,opt,name=target" json:"target,omitempty"` - UpdateMode string `protobuf:"bytes,2,opt,name=updateMode,proto3" json:"updateMode,omitempty"` - ResourcePolicies []*ContainerResourcePolicy `protobuf:"bytes,3,rep,name=resourcePolicies" json:"resourcePolicies,omitempty"` +func (x *Container) GetCreated() int64 { + if x != nil { + return x.Created + } + return 0 } -func (m *VerticalPodAutoscalerSpec) Reset() { *m = VerticalPodAutoscalerSpec{} } -func (m *VerticalPodAutoscalerSpec) String() string { return proto.CompactTextString(m) } -func (*VerticalPodAutoscalerSpec) ProtoMessage() {} -func (*VerticalPodAutoscalerSpec) Descriptor() ([]byte, []int) { - return fileDescriptorAgent, []int{135} +func (x *Container) GetRbps() float32 { + if x != nil { + return x.Rbps + } + return 0 } -func (m *VerticalPodAutoscalerSpec) GetTarget() *VerticalPodAutoscalerTarget { - if m != nil { - return m.Target +func (x *Container) GetWbps() float32 { + if x != nil { + return x.Wbps } - return nil + return 0 } -func (m *VerticalPodAutoscalerSpec) GetResourcePolicies() []*ContainerResourcePolicy { - if m != nil { - return m.ResourcePolicies +func (x *Container) GetKey() uint32 { + if x != nil { + return x.Key } - return nil + return 0 } -type VerticalPodAutoscalerTarget struct { - Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` +func (x *Container) GetNetRcvdPs() float32 { + if x != nil { + return x.NetRcvdPs + } + return 0 } -func (m *VerticalPodAutoscalerTarget) Reset() { *m = VerticalPodAutoscalerTarget{} } -func (m *VerticalPodAutoscalerTarget) String() string { return proto.CompactTextString(m) } -func (*VerticalPodAutoscalerTarget) ProtoMessage() {} -func (*VerticalPodAutoscalerTarget) Descriptor() ([]byte, []int) { - return fileDescriptorAgent, []int{136} +func (x *Container) GetNetSentPs() float32 { + if x != nil { + return x.NetSentPs + } + return 0 } -type ContainerResourcePolicy struct { - ContainerName string `protobuf:"bytes,1,opt,name=containerName,proto3" json:"containerName,omitempty"` - Mode string `protobuf:"bytes,2,opt,name=mode,proto3" json:"mode,omitempty"` - MinAllowed *ResourceList `protobuf:"bytes,3,opt,name=minAllowed" json:"minAllowed,omitempty"` - MaxAllowed *ResourceList `protobuf:"bytes,4,opt,name=maxAllowed" json:"maxAllowed,omitempty"` - ControlledResource []string `protobuf:"bytes,5,rep,name=controlledResource" json:"controlledResource,omitempty"` - ControlledValues string `protobuf:"bytes,6,opt,name=controlledValues,proto3" json:"controlledValues,omitempty"` +func (x *Container) GetNetRcvdBps() float32 { + if x != nil { + return x.NetRcvdBps + } + return 0 } -func (m *ContainerResourcePolicy) Reset() { *m = ContainerResourcePolicy{} } -func (m *ContainerResourcePolicy) String() string { return proto.CompactTextString(m) } -func (*ContainerResourcePolicy) ProtoMessage() {} -func (*ContainerResourcePolicy) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{137} } +func (x *Container) GetNetSentBps() float32 { + if x != nil { + return x.NetSentBps + } + return 0 +} -func (m *ContainerResourcePolicy) GetMinAllowed() *ResourceList { - if m != nil { - return m.MinAllowed +func (x *Container) GetUserPct() float32 { + if x != nil { + return x.UserPct } - return nil + return 0 } -func (m *ContainerResourcePolicy) GetMaxAllowed() *ResourceList { - if m != nil { - return m.MaxAllowed +func (x *Container) GetSystemPct() float32 { + if x != nil { + return x.SystemPct } - return nil + return 0 } -type VerticalPodAutoscalerStatus struct { - LastRecommendedDate int64 `protobuf:"varint,1,opt,name=LastRecommendedDate,proto3" json:"LastRecommendedDate,omitempty"` - Recommendations []*ContainerRecommendation `protobuf:"bytes,2,rep,name=recommendations" json:"recommendations,omitempty"` - Conditions []*VPACondition `protobuf:"bytes,3,rep,name=conditions" json:"conditions,omitempty"` +func (x *Container) GetTotalPct() float32 { + if x != nil { + return x.TotalPct + } + return 0 } -func (m *VerticalPodAutoscalerStatus) Reset() { *m = VerticalPodAutoscalerStatus{} } -func (m *VerticalPodAutoscalerStatus) String() string { return proto.CompactTextString(m) } -func (*VerticalPodAutoscalerStatus) ProtoMessage() {} -func (*VerticalPodAutoscalerStatus) Descriptor() ([]byte, []int) { - return fileDescriptorAgent, []int{138} +func (x *Container) GetMemRss() uint64 { + if x != nil { + return x.MemRss + } + return 0 } -func (m *VerticalPodAutoscalerStatus) GetRecommendations() []*ContainerRecommendation { - if m != nil { - return m.Recommendations +func (x *Container) GetMemCache() uint64 { + if x != nil { + return x.MemCache } - return nil + return 0 } -func (m *VerticalPodAutoscalerStatus) GetConditions() []*VPACondition { - if m != nil { - return m.Conditions +func (x *Container) GetHost() *Host { + if x != nil { + return x.Host } return nil } -type ContainerRecommendation struct { - ContainerName string `protobuf:"bytes,1,opt,name=containerName,proto3" json:"containerName,omitempty"` - Target *ResourceList `protobuf:"bytes,2,opt,name=target" json:"target,omitempty"` - LowerBound *ResourceList `protobuf:"bytes,3,opt,name=lowerBound" json:"lowerBound,omitempty"` - UpperBound *ResourceList `protobuf:"bytes,4,opt,name=upperBound" json:"upperBound,omitempty"` - UncappedTarget *ResourceList `protobuf:"bytes,5,opt,name=uncappedTarget" json:"uncappedTarget,omitempty"` +func (x *Container) GetStarted() int64 { + if x != nil { + return x.Started + } + return 0 } -func (m *ContainerRecommendation) Reset() { *m = ContainerRecommendation{} } -func (m *ContainerRecommendation) String() string { return proto.CompactTextString(m) } -func (*ContainerRecommendation) ProtoMessage() {} -func (*ContainerRecommendation) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{139} } - -func (m *ContainerRecommendation) GetTarget() *ResourceList { - if m != nil { - return m.Target +func (x *Container) GetByteKey() []byte { + if x != nil { + return x.ByteKey } return nil } -func (m *ContainerRecommendation) GetLowerBound() *ResourceList { - if m != nil { - return m.LowerBound +func (x *Container) GetTags() []string { + if x != nil { + return x.Tags } return nil } -func (m *ContainerRecommendation) GetUpperBound() *ResourceList { - if m != nil { - return m.UpperBound +func (x *Container) GetAddresses() []*ContainerAddr { + if x != nil { + return x.Addresses } return nil } -func (m *ContainerRecommendation) GetUncappedTarget() *ResourceList { - if m != nil { - return m.UncappedTarget +func (x *Container) GetThreadCount() uint64 { + if x != nil { + return x.ThreadCount } - return nil + return 0 } -type VPACondition struct { - ConditionType string `protobuf:"bytes,1,opt,name=ConditionType,proto3" json:"ConditionType,omitempty"` - ConditionStatus string `protobuf:"bytes,2,opt,name=ConditionStatus,proto3" json:"ConditionStatus,omitempty"` - LastTransitionTime int64 `protobuf:"varint,3,opt,name=LastTransitionTime,proto3" json:"LastTransitionTime,omitempty"` - Reason string `protobuf:"bytes,4,opt,name=Reason,proto3" json:"Reason,omitempty"` - Message string `protobuf:"bytes,5,opt,name=Message,proto3" json:"Message,omitempty"` +func (x *Container) GetThreadLimit() uint64 { + if x != nil { + return x.ThreadLimit + } + return 0 } -func (m *VPACondition) Reset() { *m = VPACondition{} } -func (m *VPACondition) String() string { return proto.CompactTextString(m) } -func (*VPACondition) ProtoMessage() {} -func (*VPACondition) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{140} } - -func init() { - proto.RegisterType((*ResCollector)(nil), "datadog.process_agent.ResCollector") - proto.RegisterType((*ResCollector_Header)(nil), "datadog.process_agent.ResCollector.Header") - proto.RegisterType((*CollectorProc)(nil), "datadog.process_agent.CollectorProc") - proto.RegisterType((*CollectorProcDiscovery)(nil), "datadog.process_agent.CollectorProcDiscovery") - proto.RegisterType((*CollectorRealTime)(nil), "datadog.process_agent.CollectorRealTime") - proto.RegisterType((*CollectorContainer)(nil), "datadog.process_agent.CollectorContainer") - proto.RegisterType((*CollectorContainerRealTime)(nil), "datadog.process_agent.CollectorContainerRealTime") - proto.RegisterType((*CollectorReqStatus)(nil), "datadog.process_agent.CollectorReqStatus") - proto.RegisterType((*CollectorPod)(nil), "datadog.process_agent.CollectorPod") - proto.RegisterType((*CollectorReplicaSet)(nil), "datadog.process_agent.CollectorReplicaSet") - proto.RegisterType((*CollectorDeployment)(nil), "datadog.process_agent.CollectorDeployment") - proto.RegisterType((*CollectorService)(nil), "datadog.process_agent.CollectorService") - proto.RegisterType((*CollectorNode)(nil), "datadog.process_agent.CollectorNode") - proto.RegisterType((*CollectorCluster)(nil), "datadog.process_agent.CollectorCluster") - proto.RegisterType((*CollectorManifest)(nil), "datadog.process_agent.CollectorManifest") - proto.RegisterType((*CollectorManifestCRD)(nil), "datadog.process_agent.CollectorManifestCRD") - proto.RegisterType((*CollectorManifestCR)(nil), "datadog.process_agent.CollectorManifestCR") - proto.RegisterType((*CollectorNamespace)(nil), "datadog.process_agent.CollectorNamespace") - proto.RegisterType((*CollectorJob)(nil), "datadog.process_agent.CollectorJob") - proto.RegisterType((*CollectorCronJob)(nil), "datadog.process_agent.CollectorCronJob") - proto.RegisterType((*CollectorDaemonSet)(nil), "datadog.process_agent.CollectorDaemonSet") - proto.RegisterType((*CollectorStatefulSet)(nil), "datadog.process_agent.CollectorStatefulSet") - proto.RegisterType((*CollectorPersistentVolume)(nil), "datadog.process_agent.CollectorPersistentVolume") - proto.RegisterType((*CollectorPersistentVolumeClaim)(nil), "datadog.process_agent.CollectorPersistentVolumeClaim") - proto.RegisterType((*CollectorRole)(nil), "datadog.process_agent.CollectorRole") - proto.RegisterType((*CollectorRoleBinding)(nil), "datadog.process_agent.CollectorRoleBinding") - proto.RegisterType((*CollectorClusterRole)(nil), "datadog.process_agent.CollectorClusterRole") - proto.RegisterType((*CollectorClusterRoleBinding)(nil), "datadog.process_agent.CollectorClusterRoleBinding") - proto.RegisterType((*CollectorServiceAccount)(nil), "datadog.process_agent.CollectorServiceAccount") - proto.RegisterType((*CollectorIngress)(nil), "datadog.process_agent.CollectorIngress") - proto.RegisterType((*CollectorVerticalPodAutoscaler)(nil), "datadog.process_agent.CollectorVerticalPodAutoscaler") - proto.RegisterType((*CollectorStatus)(nil), "datadog.process_agent.CollectorStatus") - proto.RegisterType((*Process)(nil), "datadog.process_agent.Process") - proto.RegisterType((*ProcessDiscovery)(nil), "datadog.process_agent.ProcessDiscovery") - proto.RegisterType((*Command)(nil), "datadog.process_agent.Command") - proto.RegisterType((*ProcessUser)(nil), "datadog.process_agent.ProcessUser") - proto.RegisterType((*ProcessNetworks)(nil), "datadog.process_agent.ProcessNetworks") - proto.RegisterType((*ContainerAddr)(nil), "datadog.process_agent.ContainerAddr") - proto.RegisterType((*Container)(nil), "datadog.process_agent.Container") - proto.RegisterType((*ProcessStat)(nil), "datadog.process_agent.ProcessStat") - proto.RegisterType((*ProcStatsWithPerm)(nil), "datadog.process_agent.ProcStatsWithPerm") - proto.RegisterType((*ProcStatsWithPermByPID)(nil), "datadog.process_agent.ProcStatsWithPermByPID") - proto.RegisterType((*ContainerStat)(nil), "datadog.process_agent.ContainerStat") - proto.RegisterType((*SystemInfo)(nil), "datadog.process_agent.SystemInfo") - proto.RegisterType((*OSInfo)(nil), "datadog.process_agent.OSInfo") - proto.RegisterType((*IOStat)(nil), "datadog.process_agent.IOStat") - proto.RegisterType((*MemoryStat)(nil), "datadog.process_agent.MemoryStat") - proto.RegisterType((*CPUStat)(nil), "datadog.process_agent.CPUStat") - proto.RegisterType((*SingleCPUStat)(nil), "datadog.process_agent.SingleCPUStat") - proto.RegisterType((*CPUInfo)(nil), "datadog.process_agent.CPUInfo") - proto.RegisterType((*Host)(nil), "datadog.process_agent.Host") - proto.RegisterType((*Cluster)(nil), "datadog.process_agent.Cluster") - proto.RegisterType((*Metadata)(nil), "datadog.process_agent.Metadata") - proto.RegisterType((*OwnerReference)(nil), "datadog.process_agent.OwnerReference") - proto.RegisterType((*ObjectReference)(nil), "datadog.process_agent.ObjectReference") - proto.RegisterType((*ServicePort)(nil), "datadog.process_agent.ServicePort") - proto.RegisterType((*ServiceSessionAffinityConfig)(nil), "datadog.process_agent.ServiceSessionAffinityConfig") - proto.RegisterType((*Node)(nil), "datadog.process_agent.Node") - proto.RegisterType((*NodeStatus)(nil), "datadog.process_agent.NodeStatus") - proto.RegisterType((*NodeCondition)(nil), "datadog.process_agent.NodeCondition") - proto.RegisterType((*ContainerImage)(nil), "datadog.process_agent.ContainerImage") - proto.RegisterType((*Taint)(nil), "datadog.process_agent.Taint") - proto.RegisterType((*ServiceSpec)(nil), "datadog.process_agent.ServiceSpec") - proto.RegisterType((*ServiceStatus)(nil), "datadog.process_agent.ServiceStatus") - proto.RegisterType((*Service)(nil), "datadog.process_agent.Service") - proto.RegisterType((*DeploymentCondition)(nil), "datadog.process_agent.DeploymentCondition") - proto.RegisterType((*Deployment)(nil), "datadog.process_agent.Deployment") - proto.RegisterType((*ReplicaSetCondition)(nil), "datadog.process_agent.ReplicaSetCondition") - proto.RegisterType((*ReplicaSet)(nil), "datadog.process_agent.ReplicaSet") - proto.RegisterType((*LabelSelectorRequirement)(nil), "datadog.process_agent.LabelSelectorRequirement") - proto.RegisterType((*Pod)(nil), "datadog.process_agent.Pod") - proto.RegisterType((*PodCondition)(nil), "datadog.process_agent.PodCondition") - proto.RegisterType((*ContainerStatus)(nil), "datadog.process_agent.ContainerStatus") - proto.RegisterType((*Manifest)(nil), "datadog.process_agent.Manifest") - proto.RegisterType((*NamespaceCondition)(nil), "datadog.process_agent.NamespaceCondition") - proto.RegisterType((*Namespace)(nil), "datadog.process_agent.Namespace") - proto.RegisterType((*ResourceRequirements)(nil), "datadog.process_agent.ResourceRequirements") - proto.RegisterType((*ResourceMetrics)(nil), "datadog.process_agent.ResourceMetrics") - proto.RegisterType((*JobSpec)(nil), "datadog.process_agent.JobSpec") - proto.RegisterType((*JobStatus)(nil), "datadog.process_agent.JobStatus") - proto.RegisterType((*JobCondition)(nil), "datadog.process_agent.JobCondition") - proto.RegisterType((*Job)(nil), "datadog.process_agent.Job") - proto.RegisterType((*CronJobSpec)(nil), "datadog.process_agent.CronJobSpec") - proto.RegisterType((*CronJobStatus)(nil), "datadog.process_agent.CronJobStatus") - proto.RegisterType((*CronJob)(nil), "datadog.process_agent.CronJob") - proto.RegisterType((*DaemonSetSpec)(nil), "datadog.process_agent.DaemonSetSpec") - proto.RegisterType((*DaemonSetStatus)(nil), "datadog.process_agent.DaemonSetStatus") - proto.RegisterType((*DaemonSetCondition)(nil), "datadog.process_agent.DaemonSetCondition") - proto.RegisterType((*DaemonSet)(nil), "datadog.process_agent.DaemonSet") - proto.RegisterType((*StatefulSetSpec)(nil), "datadog.process_agent.StatefulSetSpec") - proto.RegisterType((*StatefulSetStatus)(nil), "datadog.process_agent.StatefulSetStatus") - proto.RegisterType((*StatefulSetCondition)(nil), "datadog.process_agent.StatefulSetCondition") - proto.RegisterType((*StatefulSet)(nil), "datadog.process_agent.StatefulSet") - proto.RegisterType((*PersistentVolume)(nil), "datadog.process_agent.PersistentVolume") - proto.RegisterType((*PersistentVolumeSpec)(nil), "datadog.process_agent.PersistentVolumeSpec") - proto.RegisterType((*PersistentVolumeSource)(nil), "datadog.process_agent.PersistentVolumeSource") - proto.RegisterType((*GCEPersistentDiskVolumeSource)(nil), "datadog.process_agent.GCEPersistentDiskVolumeSource") - proto.RegisterType((*AWSElasticBlockStoreVolumeSource)(nil), "datadog.process_agent.AWSElasticBlockStoreVolumeSource") - proto.RegisterType((*AzureFilePersistentVolumeSource)(nil), "datadog.process_agent.AzureFilePersistentVolumeSource") - proto.RegisterType((*AzureDiskVolumeSource)(nil), "datadog.process_agent.AzureDiskVolumeSource") - proto.RegisterType((*CSIVolumeSource)(nil), "datadog.process_agent.CSIVolumeSource") - proto.RegisterType((*SecretReference)(nil), "datadog.process_agent.SecretReference") - proto.RegisterType((*PersistentVolumeStatus)(nil), "datadog.process_agent.PersistentVolumeStatus") - proto.RegisterType((*NodeSelectorTerm)(nil), "datadog.process_agent.NodeSelectorTerm") - proto.RegisterType((*PersistentVolumeClaim)(nil), "datadog.process_agent.PersistentVolumeClaim") - proto.RegisterType((*PersistentVolumeClaimStatus)(nil), "datadog.process_agent.PersistentVolumeClaimStatus") - proto.RegisterType((*PersistentVolumeClaimSpec)(nil), "datadog.process_agent.PersistentVolumeClaimSpec") - proto.RegisterType((*TypedLocalObjectReference)(nil), "datadog.process_agent.TypedLocalObjectReference") - proto.RegisterType((*PersistentVolumeClaimCondition)(nil), "datadog.process_agent.PersistentVolumeClaimCondition") - proto.RegisterType((*PolicyRule)(nil), "datadog.process_agent.PolicyRule") - proto.RegisterType((*Subject)(nil), "datadog.process_agent.Subject") - proto.RegisterType((*Role)(nil), "datadog.process_agent.Role") - proto.RegisterType((*RoleBinding)(nil), "datadog.process_agent.RoleBinding") - proto.RegisterType((*ClusterRole)(nil), "datadog.process_agent.ClusterRole") - proto.RegisterType((*ClusterRoleBinding)(nil), "datadog.process_agent.ClusterRoleBinding") - proto.RegisterType((*ServiceAccount)(nil), "datadog.process_agent.ServiceAccount") - proto.RegisterType((*IngressServiceBackend)(nil), "datadog.process_agent.IngressServiceBackend") - proto.RegisterType((*IngressBackend)(nil), "datadog.process_agent.IngressBackend") - proto.RegisterType((*IngressTLS)(nil), "datadog.process_agent.IngressTLS") - proto.RegisterType((*HTTPIngressPath)(nil), "datadog.process_agent.HTTPIngressPath") - proto.RegisterType((*IngressRule)(nil), "datadog.process_agent.IngressRule") - proto.RegisterType((*IngressSpec)(nil), "datadog.process_agent.IngressSpec") - proto.RegisterType((*PortStatus)(nil), "datadog.process_agent.PortStatus") - proto.RegisterType((*LoadBalancerIngress)(nil), "datadog.process_agent.LoadBalancerIngress") - proto.RegisterType((*IngressStatus)(nil), "datadog.process_agent.IngressStatus") - proto.RegisterType((*Ingress)(nil), "datadog.process_agent.Ingress") - proto.RegisterType((*KafkaRequestHeader)(nil), "datadog.process_agent.KafkaRequestHeader") - proto.RegisterType((*KafkaAggregation)(nil), "datadog.process_agent.KafkaAggregation") - proto.RegisterType((*DataStreamsAggregations)(nil), "datadog.process_agent.DataStreamsAggregations") - proto.RegisterType((*DataStreamsAggregations_TopicStats)(nil), "datadog.process_agent.DataStreamsAggregations.TopicStats") - proto.RegisterType((*DataStreamsAggregations_KafkaProduceAggregations)(nil), "datadog.process_agent.DataStreamsAggregations.KafkaProduceAggregations") - proto.RegisterType((*DataStreamsAggregations_KafkaFetchAggregations)(nil), "datadog.process_agent.DataStreamsAggregations.KafkaFetchAggregations") - proto.RegisterType((*HTTPAggregations)(nil), "datadog.process_agent.HTTPAggregations") - proto.RegisterType((*HTTP2Aggregations)(nil), "datadog.process_agent.HTTP2Aggregations") - proto.RegisterType((*HTTPStats)(nil), "datadog.process_agent.HTTPStats") - proto.RegisterType((*HTTPStats_Data)(nil), "datadog.process_agent.HTTPStats.Data") - proto.RegisterType((*DNSDatabaseEntry)(nil), "datadog.process_agent.DNSDatabaseEntry") - proto.RegisterType((*ResourceList)(nil), "datadog.process_agent.ResourceList") - proto.RegisterType((*VerticalPodAutoscaler)(nil), "datadog.process_agent.VerticalPodAutoscaler") - proto.RegisterType((*VerticalPodAutoscalerCondition)(nil), "datadog.process_agent.VerticalPodAutoscalerCondition") - proto.RegisterType((*VerticalPodAutoscalerSpec)(nil), "datadog.process_agent.VerticalPodAutoscalerSpec") - proto.RegisterType((*VerticalPodAutoscalerTarget)(nil), "datadog.process_agent.VerticalPodAutoscalerTarget") - proto.RegisterType((*ContainerResourcePolicy)(nil), "datadog.process_agent.ContainerResourcePolicy") - proto.RegisterType((*VerticalPodAutoscalerStatus)(nil), "datadog.process_agent.VerticalPodAutoscalerStatus") - proto.RegisterType((*ContainerRecommendation)(nil), "datadog.process_agent.ContainerRecommendation") - proto.RegisterType((*VPACondition)(nil), "datadog.process_agent.VPACondition") - proto.RegisterEnum("datadog.process_agent.ContainerHostType", ContainerHostType_name, ContainerHostType_value) - proto.RegisterEnum("datadog.process_agent.ContainerState", ContainerState_name, ContainerState_value) - proto.RegisterEnum("datadog.process_agent.ContainerHealth", ContainerHealth_name, ContainerHealth_value) - proto.RegisterEnum("datadog.process_agent.ProcessState", ProcessState_name, ProcessState_value) - proto.RegisterEnum("datadog.process_agent.ConnectionType", ConnectionType_name, ConnectionType_value) - proto.RegisterEnum("datadog.process_agent.K8SResource", K8SResource_name, K8SResource_value) - proto.RegisterEnum("datadog.process_agent.ResourceRequirementsType", ResourceRequirementsType_name, ResourceRequirementsType_value) - proto.RegisterEnum("datadog.process_agent.HTTPResponseStatus", HTTPResponseStatus_name, HTTPResponseStatus_value) - proto.RegisterEnum("datadog.process_agent.HTTPMethod", HTTPMethod_name, HTTPMethod_value) -} -func (m *ResCollector) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *ResCollector) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Header != nil { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(m.Header.Size())) - n1, err := m.Header.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n1 - } - if len(m.Message) > 0 { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Message))) - i += copy(data[i:], m.Message) - } - if m.Status != nil { - data[i] = 0x1a - i++ - i = encodeVarintAgent(data, i, uint64(m.Status.Size())) - n2, err := m.Status.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n2 - } - return i, nil -} - -func (m *ResCollector_Header) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *ResCollector_Header) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Type != 0 { - data[i] = 0x20 - i++ - i = encodeVarintAgent(data, i, uint64(m.Type)) - } - return i, nil -} - -func (m *CollectorProc) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *CollectorProc) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.HostName) > 0 { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.HostName))) - i += copy(data[i:], m.HostName) - } - if len(m.Processes) > 0 { - for _, msg := range m.Processes { - data[i] = 0x1a - i++ - i = encodeVarintAgent(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if m.Host != nil { - data[i] = 0x22 - i++ - i = encodeVarintAgent(data, i, uint64(m.Host.Size())) - n3, err := m.Host.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n3 - } - if m.Info != nil { - data[i] = 0x2a - i++ - i = encodeVarintAgent(data, i, uint64(m.Info.Size())) - n4, err := m.Info.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n4 - } - if m.GroupId != 0 { - data[i] = 0x30 - i++ - i = encodeVarintAgent(data, i, uint64(m.GroupId)) - } - if m.GroupSize != 0 { - data[i] = 0x38 - i++ - i = encodeVarintAgent(data, i, uint64(m.GroupSize)) - } - if len(m.Containers) > 0 { - for _, msg := range m.Containers { - data[i] = 0x52 - i++ - i = encodeVarintAgent(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if len(m.NetworkId) > 0 { - data[i] = 0x5a - i++ - i = encodeVarintAgent(data, i, uint64(len(m.NetworkId))) - i += copy(data[i:], m.NetworkId) - } - if m.ContainerHostType != 0 { - data[i] = 0x60 - i++ - i = encodeVarintAgent(data, i, uint64(m.ContainerHostType)) - } - if m.Hints != nil { - nn5, err := m.Hints.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += nn5 - } - return i, nil -} - -func (m *CollectorProc_HintMask) MarshalTo(data []byte) (int, error) { - i := 0 - data[i] = 0x70 - i++ - i = encodeVarintAgent(data, i, uint64(m.HintMask)) - return i, nil -} -func (m *CollectorProcDiscovery) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *CollectorProcDiscovery) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.HostName) > 0 { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(len(m.HostName))) - i += copy(data[i:], m.HostName) - } - if m.GroupId != 0 { - data[i] = 0x10 - i++ - i = encodeVarintAgent(data, i, uint64(m.GroupId)) - } - if m.GroupSize != 0 { - data[i] = 0x18 - i++ - i = encodeVarintAgent(data, i, uint64(m.GroupSize)) - } - if len(m.ProcessDiscoveries) > 0 { - for _, msg := range m.ProcessDiscoveries { - data[i] = 0x22 - i++ - i = encodeVarintAgent(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if m.Host != nil { - data[i] = 0x2a - i++ - i = encodeVarintAgent(data, i, uint64(m.Host.Size())) - n6, err := m.Host.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n6 - } - return i, nil -} - -func (m *CollectorRealTime) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *CollectorRealTime) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.HostName) > 0 { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.HostName))) - i += copy(data[i:], m.HostName) - } - if len(m.Stats) > 0 { - for _, msg := range m.Stats { - data[i] = 0x1a - i++ - i = encodeVarintAgent(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if m.HostId != 0 { - data[i] = 0x20 - i++ - i = encodeVarintAgent(data, i, uint64(m.HostId)) - } - if m.OrgId != 0 { - data[i] = 0x28 - i++ - i = encodeVarintAgent(data, i, uint64(m.OrgId)) - } - if m.GroupId != 0 { - data[i] = 0x30 - i++ - i = encodeVarintAgent(data, i, uint64(m.GroupId)) - } - if m.GroupSize != 0 { - data[i] = 0x38 - i++ - i = encodeVarintAgent(data, i, uint64(m.GroupSize)) - } - if m.NumCpus != 0 { - data[i] = 0x40 - i++ - i = encodeVarintAgent(data, i, uint64(m.NumCpus)) - } - if m.TotalMemory != 0 { - data[i] = 0x48 - i++ - i = encodeVarintAgent(data, i, uint64(m.TotalMemory)) - } - if len(m.ContainerStats) > 0 { - for _, msg := range m.ContainerStats { - data[i] = 0x52 - i++ - i = encodeVarintAgent(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if m.ContainerHostType != 0 { - data[i] = 0x58 - i++ - i = encodeVarintAgent(data, i, uint64(m.ContainerHostType)) - } - return i, nil -} - -func (m *CollectorContainer) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *CollectorContainer) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.HostName) > 0 { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(len(m.HostName))) - i += copy(data[i:], m.HostName) - } - if m.Info != nil { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(m.Info.Size())) - n7, err := m.Info.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n7 - } - if len(m.Containers) > 0 { - for _, msg := range m.Containers { - data[i] = 0x1a - i++ - i = encodeVarintAgent(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if m.GroupId != 0 { - data[i] = 0x20 - i++ - i = encodeVarintAgent(data, i, uint64(m.GroupId)) - } - if m.GroupSize != 0 { - data[i] = 0x28 - i++ - i = encodeVarintAgent(data, i, uint64(m.GroupSize)) - } - if m.Host != nil { - data[i] = 0x42 - i++ - i = encodeVarintAgent(data, i, uint64(m.Host.Size())) - n8, err := m.Host.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n8 - } - if m.ContainerHostType != 0 { - data[i] = 0x48 - i++ - i = encodeVarintAgent(data, i, uint64(m.ContainerHostType)) - } - if len(m.NetworkId) > 0 { - data[i] = 0x5a - i++ - i = encodeVarintAgent(data, i, uint64(len(m.NetworkId))) - i += copy(data[i:], m.NetworkId) - } - return i, nil -} - -func (m *CollectorContainerRealTime) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *CollectorContainerRealTime) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.HostName) > 0 { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(len(m.HostName))) - i += copy(data[i:], m.HostName) - } - if len(m.Stats) > 0 { - for _, msg := range m.Stats { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if m.NumCpus != 0 { - data[i] = 0x18 - i++ - i = encodeVarintAgent(data, i, uint64(m.NumCpus)) - } - if m.TotalMemory != 0 { - data[i] = 0x20 - i++ - i = encodeVarintAgent(data, i, uint64(m.TotalMemory)) - } - if m.HostId != 0 { - data[i] = 0x28 - i++ - i = encodeVarintAgent(data, i, uint64(m.HostId)) - } - if m.GroupId != 0 { - data[i] = 0x30 - i++ - i = encodeVarintAgent(data, i, uint64(m.GroupId)) - } - if m.GroupSize != 0 { - data[i] = 0x38 - i++ - i = encodeVarintAgent(data, i, uint64(m.GroupSize)) - } - if m.ContainerHostType != 0 { - data[i] = 0x40 - i++ - i = encodeVarintAgent(data, i, uint64(m.ContainerHostType)) - } - return i, nil -} - -func (m *CollectorReqStatus) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *CollectorReqStatus) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.HostName) > 0 { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.HostName))) - i += copy(data[i:], m.HostName) - } - return i, nil -} - -func (m *CollectorPod) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *CollectorPod) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.HostName) > 0 { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(len(m.HostName))) - i += copy(data[i:], m.HostName) - } - if len(m.ClusterName) > 0 { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.ClusterName))) - i += copy(data[i:], m.ClusterName) - } - if len(m.ClusterId) > 0 { - data[i] = 0x1a - i++ - i = encodeVarintAgent(data, i, uint64(len(m.ClusterId))) - i += copy(data[i:], m.ClusterId) - } - if m.GroupId != 0 { - data[i] = 0x20 - i++ - i = encodeVarintAgent(data, i, uint64(m.GroupId)) - } - if m.GroupSize != 0 { - data[i] = 0x28 - i++ - i = encodeVarintAgent(data, i, uint64(m.GroupSize)) - } - if len(m.Pods) > 0 { - for _, msg := range m.Pods { - data[i] = 0x32 - i++ - i = encodeVarintAgent(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if m.Host != nil { - data[i] = 0x3a - i++ - i = encodeVarintAgent(data, i, uint64(m.Host.Size())) - n9, err := m.Host.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n9 - } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - data[i] = 0x42 - i++ - l = len(s) - for l >= 1<<7 { - data[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - data[i] = uint8(l) - i++ - i += copy(data[i:], s) - } - } - return i, nil -} - -func (m *CollectorReplicaSet) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *CollectorReplicaSet) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.ClusterName) > 0 { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(len(m.ClusterName))) - i += copy(data[i:], m.ClusterName) - } - if len(m.ClusterId) > 0 { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.ClusterId))) - i += copy(data[i:], m.ClusterId) - } - if m.GroupId != 0 { - data[i] = 0x18 - i++ - i = encodeVarintAgent(data, i, uint64(m.GroupId)) - } - if m.GroupSize != 0 { - data[i] = 0x20 - i++ - i = encodeVarintAgent(data, i, uint64(m.GroupSize)) - } - if len(m.ReplicaSets) > 0 { - for _, msg := range m.ReplicaSets { - data[i] = 0x2a - i++ - i = encodeVarintAgent(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - data[i] = 0x32 - i++ - l = len(s) - for l >= 1<<7 { - data[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - data[i] = uint8(l) - i++ - i += copy(data[i:], s) - } - } - return i, nil -} - -func (m *CollectorDeployment) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *CollectorDeployment) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.ClusterName) > 0 { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(len(m.ClusterName))) - i += copy(data[i:], m.ClusterName) - } - if len(m.ClusterId) > 0 { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.ClusterId))) - i += copy(data[i:], m.ClusterId) - } - if m.GroupId != 0 { - data[i] = 0x18 - i++ - i = encodeVarintAgent(data, i, uint64(m.GroupId)) - } - if m.GroupSize != 0 { - data[i] = 0x20 - i++ - i = encodeVarintAgent(data, i, uint64(m.GroupSize)) - } - if len(m.Deployments) > 0 { - for _, msg := range m.Deployments { - data[i] = 0x2a - i++ - i = encodeVarintAgent(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - data[i] = 0x32 - i++ - l = len(s) - for l >= 1<<7 { - data[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - data[i] = uint8(l) - i++ - i += copy(data[i:], s) - } - } - return i, nil -} - -func (m *CollectorService) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *CollectorService) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.ClusterName) > 0 { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(len(m.ClusterName))) - i += copy(data[i:], m.ClusterName) - } - if len(m.ClusterId) > 0 { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.ClusterId))) - i += copy(data[i:], m.ClusterId) - } - if m.GroupId != 0 { - data[i] = 0x18 - i++ - i = encodeVarintAgent(data, i, uint64(m.GroupId)) - } - if m.GroupSize != 0 { - data[i] = 0x20 - i++ - i = encodeVarintAgent(data, i, uint64(m.GroupSize)) - } - if len(m.Services) > 0 { - for _, msg := range m.Services { - data[i] = 0x2a - i++ - i = encodeVarintAgent(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - data[i] = 0x32 - i++ - l = len(s) - for l >= 1<<7 { - data[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - data[i] = uint8(l) - i++ - i += copy(data[i:], s) - } - } - return i, nil -} - -func (m *CollectorNode) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *CollectorNode) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.ClusterName) > 0 { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(len(m.ClusterName))) - i += copy(data[i:], m.ClusterName) - } - if len(m.ClusterId) > 0 { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.ClusterId))) - i += copy(data[i:], m.ClusterId) - } - if m.GroupId != 0 { - data[i] = 0x18 - i++ - i = encodeVarintAgent(data, i, uint64(m.GroupId)) - } - if m.GroupSize != 0 { - data[i] = 0x20 - i++ - i = encodeVarintAgent(data, i, uint64(m.GroupSize)) - } - if len(m.Nodes) > 0 { - for _, msg := range m.Nodes { - data[i] = 0x2a - i++ - i = encodeVarintAgent(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - data[i] = 0x32 - i++ - l = len(s) - for l >= 1<<7 { - data[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - data[i] = uint8(l) - i++ - i += copy(data[i:], s) - } - } - if len(m.HostAliasMapping) > 0 { - for k, _ := range m.HostAliasMapping { - data[i] = 0x3a - i++ - v := m.HostAliasMapping[k] - msgSize := 0 - if v != nil { - msgSize = v.Size() - msgSize += 1 + sovAgent(uint64(msgSize)) - } - mapSize := 1 + len(k) + sovAgent(uint64(len(k))) + msgSize - i = encodeVarintAgent(data, i, uint64(mapSize)) - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(len(k))) - i += copy(data[i:], k) - if v != nil { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(v.Size())) - n10, err := v.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n10 - } - } +func (x *Container) GetMemUsage() uint64 { + if x != nil { + return x.MemUsage } - return i, nil -} - -func (m *CollectorCluster) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *CollectorCluster) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.ClusterName) > 0 { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(len(m.ClusterName))) - i += copy(data[i:], m.ClusterName) - } - if len(m.ClusterId) > 0 { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.ClusterId))) - i += copy(data[i:], m.ClusterId) - } - if m.GroupId != 0 { - data[i] = 0x18 - i++ - i = encodeVarintAgent(data, i, uint64(m.GroupId)) - } - if m.GroupSize != 0 { - data[i] = 0x20 - i++ - i = encodeVarintAgent(data, i, uint64(m.GroupSize)) - } - if m.Cluster != nil { - data[i] = 0x2a - i++ - i = encodeVarintAgent(data, i, uint64(m.Cluster.Size())) - n11, err := m.Cluster.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n11 - } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - data[i] = 0x32 - i++ - l = len(s) - for l >= 1<<7 { - data[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - data[i] = uint8(l) - i++ - i += copy(data[i:], s) - } - } - return i, nil -} - -func (m *CollectorManifest) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *CollectorManifest) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.ClusterName) > 0 { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(len(m.ClusterName))) - i += copy(data[i:], m.ClusterName) - } - if len(m.ClusterId) > 0 { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.ClusterId))) - i += copy(data[i:], m.ClusterId) - } - if m.GroupId != 0 { - data[i] = 0x18 - i++ - i = encodeVarintAgent(data, i, uint64(m.GroupId)) - } - if m.GroupSize != 0 { - data[i] = 0x20 - i++ - i = encodeVarintAgent(data, i, uint64(m.GroupSize)) - } - if len(m.Manifests) > 0 { - for _, msg := range m.Manifests { - data[i] = 0x2a - i++ - i = encodeVarintAgent(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n - } + return 0 +} + +func (x *Container) GetCpuUsageNs() float32 { + if x != nil { + return x.CpuUsageNs } - return i, nil -} - -func (m *CollectorManifestCRD) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *CollectorManifestCRD) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Manifest != nil { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(m.Manifest.Size())) - n12, err := m.Manifest.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n12 - } - return i, nil -} - -func (m *CollectorManifestCR) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *CollectorManifestCR) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Manifest != nil { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(m.Manifest.Size())) - n13, err := m.Manifest.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n13 - } - return i, nil -} - -func (m *CollectorNamespace) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *CollectorNamespace) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.ClusterName) > 0 { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(len(m.ClusterName))) - i += copy(data[i:], m.ClusterName) - } - if len(m.ClusterId) > 0 { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.ClusterId))) - i += copy(data[i:], m.ClusterId) - } - if m.GroupId != 0 { - data[i] = 0x18 - i++ - i = encodeVarintAgent(data, i, uint64(m.GroupId)) - } - if m.GroupSize != 0 { - data[i] = 0x20 - i++ - i = encodeVarintAgent(data, i, uint64(m.GroupSize)) - } - if len(m.Namespaces) > 0 { - for _, msg := range m.Namespaces { - data[i] = 0x2a - i++ - i = encodeVarintAgent(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - data[i] = 0x32 - i++ - l = len(s) - for l >= 1<<7 { - data[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - data[i] = uint8(l) - i++ - i += copy(data[i:], s) - } - } - return i, nil -} - -func (m *CollectorJob) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *CollectorJob) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.ClusterName) > 0 { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(len(m.ClusterName))) - i += copy(data[i:], m.ClusterName) - } - if len(m.ClusterId) > 0 { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.ClusterId))) - i += copy(data[i:], m.ClusterId) - } - if m.GroupId != 0 { - data[i] = 0x18 - i++ - i = encodeVarintAgent(data, i, uint64(m.GroupId)) - } - if m.GroupSize != 0 { - data[i] = 0x20 - i++ - i = encodeVarintAgent(data, i, uint64(m.GroupSize)) - } - if len(m.Jobs) > 0 { - for _, msg := range m.Jobs { - data[i] = 0x2a - i++ - i = encodeVarintAgent(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - data[i] = 0x32 - i++ - l = len(s) - for l >= 1<<7 { - data[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - data[i] = uint8(l) - i++ - i += copy(data[i:], s) - } - } - return i, nil -} - -func (m *CollectorCronJob) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *CollectorCronJob) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.ClusterName) > 0 { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(len(m.ClusterName))) - i += copy(data[i:], m.ClusterName) - } - if len(m.ClusterId) > 0 { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.ClusterId))) - i += copy(data[i:], m.ClusterId) - } - if m.GroupId != 0 { - data[i] = 0x18 - i++ - i = encodeVarintAgent(data, i, uint64(m.GroupId)) - } - if m.GroupSize != 0 { - data[i] = 0x20 - i++ - i = encodeVarintAgent(data, i, uint64(m.GroupSize)) - } - if len(m.CronJobs) > 0 { - for _, msg := range m.CronJobs { - data[i] = 0x2a - i++ - i = encodeVarintAgent(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - data[i] = 0x32 - i++ - l = len(s) - for l >= 1<<7 { - data[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - data[i] = uint8(l) - i++ - i += copy(data[i:], s) - } - } - return i, nil -} - -func (m *CollectorDaemonSet) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *CollectorDaemonSet) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.ClusterName) > 0 { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(len(m.ClusterName))) - i += copy(data[i:], m.ClusterName) - } - if len(m.ClusterId) > 0 { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.ClusterId))) - i += copy(data[i:], m.ClusterId) - } - if m.GroupId != 0 { - data[i] = 0x18 - i++ - i = encodeVarintAgent(data, i, uint64(m.GroupId)) - } - if m.GroupSize != 0 { - data[i] = 0x20 - i++ - i = encodeVarintAgent(data, i, uint64(m.GroupSize)) - } - if len(m.DaemonSets) > 0 { - for _, msg := range m.DaemonSets { - data[i] = 0x2a - i++ - i = encodeVarintAgent(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - data[i] = 0x32 - i++ - l = len(s) - for l >= 1<<7 { - data[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - data[i] = uint8(l) - i++ - i += copy(data[i:], s) - } - } - return i, nil -} - -func (m *CollectorStatefulSet) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *CollectorStatefulSet) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.ClusterName) > 0 { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(len(m.ClusterName))) - i += copy(data[i:], m.ClusterName) - } - if len(m.ClusterId) > 0 { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.ClusterId))) - i += copy(data[i:], m.ClusterId) - } - if m.GroupId != 0 { - data[i] = 0x18 - i++ - i = encodeVarintAgent(data, i, uint64(m.GroupId)) - } - if m.GroupSize != 0 { - data[i] = 0x20 - i++ - i = encodeVarintAgent(data, i, uint64(m.GroupSize)) - } - if len(m.StatefulSets) > 0 { - for _, msg := range m.StatefulSets { - data[i] = 0x2a - i++ - i = encodeVarintAgent(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - data[i] = 0x32 - i++ - l = len(s) - for l >= 1<<7 { - data[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - data[i] = uint8(l) - i++ - i += copy(data[i:], s) - } - } - return i, nil -} - -func (m *CollectorPersistentVolume) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *CollectorPersistentVolume) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.ClusterName) > 0 { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(len(m.ClusterName))) - i += copy(data[i:], m.ClusterName) - } - if len(m.ClusterId) > 0 { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.ClusterId))) - i += copy(data[i:], m.ClusterId) - } - if m.GroupId != 0 { - data[i] = 0x18 - i++ - i = encodeVarintAgent(data, i, uint64(m.GroupId)) - } - if m.GroupSize != 0 { - data[i] = 0x20 - i++ - i = encodeVarintAgent(data, i, uint64(m.GroupSize)) - } - if len(m.PersistentVolumes) > 0 { - for _, msg := range m.PersistentVolumes { - data[i] = 0x2a - i++ - i = encodeVarintAgent(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - data[i] = 0x32 - i++ - l = len(s) - for l >= 1<<7 { - data[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - data[i] = uint8(l) - i++ - i += copy(data[i:], s) - } - } - return i, nil -} - -func (m *CollectorPersistentVolumeClaim) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *CollectorPersistentVolumeClaim) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.ClusterName) > 0 { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(len(m.ClusterName))) - i += copy(data[i:], m.ClusterName) - } - if len(m.ClusterId) > 0 { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.ClusterId))) - i += copy(data[i:], m.ClusterId) - } - if m.GroupId != 0 { - data[i] = 0x18 - i++ - i = encodeVarintAgent(data, i, uint64(m.GroupId)) - } - if m.GroupSize != 0 { - data[i] = 0x20 - i++ - i = encodeVarintAgent(data, i, uint64(m.GroupSize)) - } - if len(m.PersistentVolumeClaims) > 0 { - for _, msg := range m.PersistentVolumeClaims { - data[i] = 0x2a - i++ - i = encodeVarintAgent(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - data[i] = 0x32 - i++ - l = len(s) - for l >= 1<<7 { - data[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - data[i] = uint8(l) - i++ - i += copy(data[i:], s) - } - } - return i, nil -} - -func (m *CollectorRole) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *CollectorRole) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.ClusterName) > 0 { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(len(m.ClusterName))) - i += copy(data[i:], m.ClusterName) - } - if len(m.ClusterId) > 0 { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.ClusterId))) - i += copy(data[i:], m.ClusterId) - } - if m.GroupId != 0 { - data[i] = 0x18 - i++ - i = encodeVarintAgent(data, i, uint64(m.GroupId)) - } - if m.GroupSize != 0 { - data[i] = 0x20 - i++ - i = encodeVarintAgent(data, i, uint64(m.GroupSize)) - } - if len(m.Roles) > 0 { - for _, msg := range m.Roles { - data[i] = 0x2a - i++ - i = encodeVarintAgent(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - data[i] = 0x32 - i++ - l = len(s) - for l >= 1<<7 { - data[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - data[i] = uint8(l) - i++ - i += copy(data[i:], s) - } - } - return i, nil -} - -func (m *CollectorRoleBinding) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *CollectorRoleBinding) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.ClusterName) > 0 { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(len(m.ClusterName))) - i += copy(data[i:], m.ClusterName) - } - if len(m.ClusterId) > 0 { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.ClusterId))) - i += copy(data[i:], m.ClusterId) - } - if m.GroupId != 0 { - data[i] = 0x18 - i++ - i = encodeVarintAgent(data, i, uint64(m.GroupId)) - } - if m.GroupSize != 0 { - data[i] = 0x20 - i++ - i = encodeVarintAgent(data, i, uint64(m.GroupSize)) - } - if len(m.RoleBindings) > 0 { - for _, msg := range m.RoleBindings { - data[i] = 0x2a - i++ - i = encodeVarintAgent(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - data[i] = 0x32 - i++ - l = len(s) - for l >= 1<<7 { - data[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - data[i] = uint8(l) - i++ - i += copy(data[i:], s) - } - } - return i, nil -} - -func (m *CollectorClusterRole) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *CollectorClusterRole) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.ClusterName) > 0 { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(len(m.ClusterName))) - i += copy(data[i:], m.ClusterName) - } - if len(m.ClusterId) > 0 { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.ClusterId))) - i += copy(data[i:], m.ClusterId) - } - if m.GroupId != 0 { - data[i] = 0x18 - i++ - i = encodeVarintAgent(data, i, uint64(m.GroupId)) - } - if m.GroupSize != 0 { - data[i] = 0x20 - i++ - i = encodeVarintAgent(data, i, uint64(m.GroupSize)) - } - if len(m.ClusterRoles) > 0 { - for _, msg := range m.ClusterRoles { - data[i] = 0x2a - i++ - i = encodeVarintAgent(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - data[i] = 0x32 - i++ - l = len(s) - for l >= 1<<7 { - data[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - data[i] = uint8(l) - i++ - i += copy(data[i:], s) - } - } - return i, nil -} - -func (m *CollectorClusterRoleBinding) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *CollectorClusterRoleBinding) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.ClusterName) > 0 { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(len(m.ClusterName))) - i += copy(data[i:], m.ClusterName) - } - if len(m.ClusterId) > 0 { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.ClusterId))) - i += copy(data[i:], m.ClusterId) - } - if m.GroupId != 0 { - data[i] = 0x18 - i++ - i = encodeVarintAgent(data, i, uint64(m.GroupId)) - } - if m.GroupSize != 0 { - data[i] = 0x20 - i++ - i = encodeVarintAgent(data, i, uint64(m.GroupSize)) - } - if len(m.ClusterRoleBindings) > 0 { - for _, msg := range m.ClusterRoleBindings { - data[i] = 0x2a - i++ - i = encodeVarintAgent(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - data[i] = 0x32 - i++ - l = len(s) - for l >= 1<<7 { - data[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - data[i] = uint8(l) - i++ - i += copy(data[i:], s) - } - } - return i, nil -} - -func (m *CollectorServiceAccount) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *CollectorServiceAccount) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.ClusterName) > 0 { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(len(m.ClusterName))) - i += copy(data[i:], m.ClusterName) - } - if len(m.ClusterId) > 0 { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.ClusterId))) - i += copy(data[i:], m.ClusterId) - } - if m.GroupId != 0 { - data[i] = 0x18 - i++ - i = encodeVarintAgent(data, i, uint64(m.GroupId)) - } - if m.GroupSize != 0 { - data[i] = 0x20 - i++ - i = encodeVarintAgent(data, i, uint64(m.GroupSize)) - } - if len(m.ServiceAccounts) > 0 { - for _, msg := range m.ServiceAccounts { - data[i] = 0x2a - i++ - i = encodeVarintAgent(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - data[i] = 0x32 - i++ - l = len(s) - for l >= 1<<7 { - data[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - data[i] = uint8(l) - i++ - i += copy(data[i:], s) - } - } - return i, nil -} - -func (m *CollectorIngress) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *CollectorIngress) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.ClusterName) > 0 { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(len(m.ClusterName))) - i += copy(data[i:], m.ClusterName) - } - if len(m.ClusterId) > 0 { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.ClusterId))) - i += copy(data[i:], m.ClusterId) - } - if m.GroupId != 0 { - data[i] = 0x18 - i++ - i = encodeVarintAgent(data, i, uint64(m.GroupId)) - } - if m.GroupSize != 0 { - data[i] = 0x20 - i++ - i = encodeVarintAgent(data, i, uint64(m.GroupSize)) - } - if len(m.Ingresses) > 0 { - for _, msg := range m.Ingresses { - data[i] = 0x2a - i++ - i = encodeVarintAgent(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - data[i] = 0x32 - i++ - l = len(s) - for l >= 1<<7 { - data[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - data[i] = uint8(l) - i++ - i += copy(data[i:], s) - } - } - return i, nil -} - -func (m *CollectorVerticalPodAutoscaler) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *CollectorVerticalPodAutoscaler) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.ClusterName) > 0 { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(len(m.ClusterName))) - i += copy(data[i:], m.ClusterName) - } - if len(m.ClusterId) > 0 { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.ClusterId))) - i += copy(data[i:], m.ClusterId) - } - if m.GroupId != 0 { - data[i] = 0x18 - i++ - i = encodeVarintAgent(data, i, uint64(m.GroupId)) - } - if m.GroupSize != 0 { - data[i] = 0x20 - i++ - i = encodeVarintAgent(data, i, uint64(m.GroupSize)) - } - if len(m.VerticalPodAutoscalers) > 0 { - for _, msg := range m.VerticalPodAutoscalers { - data[i] = 0x2a - i++ - i = encodeVarintAgent(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - data[i] = 0x32 - i++ - l = len(s) - for l >= 1<<7 { - data[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - data[i] = uint8(l) - i++ - i += copy(data[i:], s) - } - } - return i, nil -} - -func (m *CollectorStatus) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *CollectorStatus) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.ActiveClients != 0 { - data[i] = 0x8 - i++ - i = encodeVarintAgent(data, i, uint64(m.ActiveClients)) - } - if m.Interval != 0 { - data[i] = 0x10 - i++ - i = encodeVarintAgent(data, i, uint64(m.Interval)) - } - return i, nil -} - -func (m *Process) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *Process) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Key != 0 { - data[i] = 0x8 - i++ - i = encodeVarintAgent(data, i, uint64(m.Key)) - } - if m.Pid != 0 { - data[i] = 0x10 - i++ - i = encodeVarintAgent(data, i, uint64(m.Pid)) - } - if m.Host != nil { - data[i] = 0x1a - i++ - i = encodeVarintAgent(data, i, uint64(m.Host.Size())) - n14, err := m.Host.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n14 - } - if m.Command != nil { - data[i] = 0x22 - i++ - i = encodeVarintAgent(data, i, uint64(m.Command.Size())) - n15, err := m.Command.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n15 - } - if m.User != nil { - data[i] = 0x2a - i++ - i = encodeVarintAgent(data, i, uint64(m.User.Size())) - n16, err := m.User.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n16 - } - if m.Memory != nil { - data[i] = 0x3a - i++ - i = encodeVarintAgent(data, i, uint64(m.Memory.Size())) - n17, err := m.Memory.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n17 - } - if m.Cpu != nil { - data[i] = 0x42 - i++ - i = encodeVarintAgent(data, i, uint64(m.Cpu.Size())) - n18, err := m.Cpu.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n18 - } - if m.CreateTime != 0 { - data[i] = 0x48 - i++ - i = encodeVarintAgent(data, i, uint64(m.CreateTime)) - } - if m.Container != nil { - data[i] = 0x52 - i++ - i = encodeVarintAgent(data, i, uint64(m.Container.Size())) - n19, err := m.Container.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n19 - } - if m.OpenFdCount != 0 { - data[i] = 0x58 - i++ - i = encodeVarintAgent(data, i, uint64(m.OpenFdCount)) - } - if m.State != 0 { - data[i] = 0x60 - i++ - i = encodeVarintAgent(data, i, uint64(m.State)) - } - if m.IoStat != nil { - data[i] = 0x6a - i++ - i = encodeVarintAgent(data, i, uint64(m.IoStat.Size())) - n20, err := m.IoStat.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n20 - } - if len(m.ContainerId) > 0 { - data[i] = 0x72 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.ContainerId))) - i += copy(data[i:], m.ContainerId) - } - if m.ContainerKey != 0 { - data[i] = 0x78 - i++ - i = encodeVarintAgent(data, i, uint64(m.ContainerKey)) - } - if m.VoluntaryCtxSwitches != 0 { - data[i] = 0x80 - i++ - data[i] = 0x1 - i++ - i = encodeVarintAgent(data, i, uint64(m.VoluntaryCtxSwitches)) - } - if m.InvoluntaryCtxSwitches != 0 { - data[i] = 0x88 - i++ - data[i] = 0x1 - i++ - i = encodeVarintAgent(data, i, uint64(m.InvoluntaryCtxSwitches)) - } - if len(m.ByteKey) > 0 { - data[i] = 0x92 - i++ - data[i] = 0x1 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.ByteKey))) - i += copy(data[i:], m.ByteKey) - } - if len(m.ContainerByteKey) > 0 { - data[i] = 0x9a - i++ - data[i] = 0x1 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.ContainerByteKey))) - i += copy(data[i:], m.ContainerByteKey) - } - if m.NsPid != 0 { - data[i] = 0xa0 - i++ - data[i] = 0x1 - i++ - i = encodeVarintAgent(data, i, uint64(m.NsPid)) - } - if m.Networks != nil { - data[i] = 0xaa - i++ - data[i] = 0x1 - i++ - i = encodeVarintAgent(data, i, uint64(m.Networks.Size())) - n21, err := m.Networks.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n21 - } - return i, nil -} - -func (m *ProcessDiscovery) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *ProcessDiscovery) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Pid != 0 { - data[i] = 0x8 - i++ - i = encodeVarintAgent(data, i, uint64(m.Pid)) - } - if m.NsPid != 0 { - data[i] = 0x10 - i++ - i = encodeVarintAgent(data, i, uint64(m.NsPid)) - } - if m.Host != nil { - data[i] = 0x1a - i++ - i = encodeVarintAgent(data, i, uint64(m.Host.Size())) - n22, err := m.Host.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n22 - } - if m.Command != nil { - data[i] = 0x22 - i++ - i = encodeVarintAgent(data, i, uint64(m.Command.Size())) - n23, err := m.Command.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n23 - } - if m.User != nil { - data[i] = 0x2a - i++ - i = encodeVarintAgent(data, i, uint64(m.User.Size())) - n24, err := m.User.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n24 - } - if m.CreateTime != 0 { - data[i] = 0x30 - i++ - i = encodeVarintAgent(data, i, uint64(m.CreateTime)) - } - if len(m.ByteKey) > 0 { - data[i] = 0x3a - i++ - i = encodeVarintAgent(data, i, uint64(len(m.ByteKey))) - i += copy(data[i:], m.ByteKey) - } - return i, nil -} - -func (m *Command) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *Command) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Args) > 0 { - for _, s := range m.Args { - data[i] = 0xa - i++ - l = len(s) - for l >= 1<<7 { - data[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - data[i] = uint8(l) - i++ - i += copy(data[i:], s) - } - } - if len(m.Cwd) > 0 { - data[i] = 0x1a - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Cwd))) - i += copy(data[i:], m.Cwd) - } - if len(m.Root) > 0 { - data[i] = 0x22 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Root))) - i += copy(data[i:], m.Root) - } - if m.OnDisk { - data[i] = 0x28 - i++ - if m.OnDisk { - data[i] = 1 - } else { - data[i] = 0 - } - i++ - } - if m.Ppid != 0 { - data[i] = 0x30 - i++ - i = encodeVarintAgent(data, i, uint64(m.Ppid)) - } - if m.Pgroup != 0 { - data[i] = 0x38 - i++ - i = encodeVarintAgent(data, i, uint64(m.Pgroup)) - } - if len(m.Exe) > 0 { - data[i] = 0x42 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Exe))) - i += copy(data[i:], m.Exe) - } - return i, nil -} - -func (m *ProcessUser) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *ProcessUser) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Name) > 0 { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Name))) - i += copy(data[i:], m.Name) - } - if m.Uid != 0 { - data[i] = 0x10 - i++ - i = encodeVarintAgent(data, i, uint64(m.Uid)) - } - if m.Gid != 0 { - data[i] = 0x18 - i++ - i = encodeVarintAgent(data, i, uint64(m.Gid)) - } - if m.Euid != 0 { - data[i] = 0x20 - i++ - i = encodeVarintAgent(data, i, uint64(m.Euid)) - } - if m.Egid != 0 { - data[i] = 0x28 - i++ - i = encodeVarintAgent(data, i, uint64(m.Egid)) - } - if m.Suid != 0 { - data[i] = 0x30 - i++ - i = encodeVarintAgent(data, i, uint64(m.Suid)) - } - if m.Sgid != 0 { - data[i] = 0x38 - i++ - i = encodeVarintAgent(data, i, uint64(m.Sgid)) - } - return i, nil -} - -func (m *ProcessNetworks) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *ProcessNetworks) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.ConnectionRate != 0 { - data[i] = 0xd - i++ - i = encodeFixed32Agent(data, i, uint32(math.Float32bits(float32(m.ConnectionRate)))) - } - if m.BytesRate != 0 { - data[i] = 0x15 - i++ - i = encodeFixed32Agent(data, i, uint32(math.Float32bits(float32(m.BytesRate)))) - } - return i, nil -} - -func (m *ContainerAddr) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *ContainerAddr) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Ip) > 0 { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Ip))) - i += copy(data[i:], m.Ip) - } - if m.Port != 0 { - data[i] = 0x10 - i++ - i = encodeVarintAgent(data, i, uint64(m.Port)) - } - if m.Protocol != 0 { - data[i] = 0x18 - i++ - i = encodeVarintAgent(data, i, uint64(m.Protocol)) - } - return i, nil -} - -func (m *Container) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *Container) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Type) > 0 { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Type))) - i += copy(data[i:], m.Type) - } - if len(m.Id) > 0 { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Id))) - i += copy(data[i:], m.Id) - } - if len(m.Name) > 0 { - data[i] = 0x1a - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Name))) - i += copy(data[i:], m.Name) - } - if len(m.Image) > 0 { - data[i] = 0x22 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Image))) - i += copy(data[i:], m.Image) - } - if m.CpuLimit != 0 { - data[i] = 0x2d - i++ - i = encodeFixed32Agent(data, i, uint32(math.Float32bits(float32(m.CpuLimit)))) - } - if m.MemoryLimit != 0 { - data[i] = 0x30 - i++ - i = encodeVarintAgent(data, i, uint64(m.MemoryLimit)) - } - if m.State != 0 { - data[i] = 0x40 - i++ - i = encodeVarintAgent(data, i, uint64(m.State)) - } - if m.Health != 0 { - data[i] = 0x48 - i++ - i = encodeVarintAgent(data, i, uint64(m.Health)) - } - if m.Created != 0 { - data[i] = 0x50 - i++ - i = encodeVarintAgent(data, i, uint64(m.Created)) - } - if m.Rbps != 0 { - data[i] = 0x5d - i++ - i = encodeFixed32Agent(data, i, uint32(math.Float32bits(float32(m.Rbps)))) - } - if m.Wbps != 0 { - data[i] = 0x65 - i++ - i = encodeFixed32Agent(data, i, uint32(math.Float32bits(float32(m.Wbps)))) - } - if m.Key != 0 { - data[i] = 0x68 - i++ - i = encodeVarintAgent(data, i, uint64(m.Key)) - } - if m.NetRcvdPs != 0 { - data[i] = 0x75 - i++ - i = encodeFixed32Agent(data, i, uint32(math.Float32bits(float32(m.NetRcvdPs)))) - } - if m.NetSentPs != 0 { - data[i] = 0x7d - i++ - i = encodeFixed32Agent(data, i, uint32(math.Float32bits(float32(m.NetSentPs)))) - } - if m.NetRcvdBps != 0 { - data[i] = 0x85 - i++ - data[i] = 0x1 - i++ - i = encodeFixed32Agent(data, i, uint32(math.Float32bits(float32(m.NetRcvdBps)))) - } - if m.NetSentBps != 0 { - data[i] = 0x8d - i++ - data[i] = 0x1 - i++ - i = encodeFixed32Agent(data, i, uint32(math.Float32bits(float32(m.NetSentBps)))) - } - if m.UserPct != 0 { - data[i] = 0x95 - i++ - data[i] = 0x1 - i++ - i = encodeFixed32Agent(data, i, uint32(math.Float32bits(float32(m.UserPct)))) - } - if m.SystemPct != 0 { - data[i] = 0x9d - i++ - data[i] = 0x1 - i++ - i = encodeFixed32Agent(data, i, uint32(math.Float32bits(float32(m.SystemPct)))) - } - if m.TotalPct != 0 { - data[i] = 0xa5 - i++ - data[i] = 0x1 - i++ - i = encodeFixed32Agent(data, i, uint32(math.Float32bits(float32(m.TotalPct)))) - } - if m.MemRss != 0 { - data[i] = 0xa8 - i++ - data[i] = 0x1 - i++ - i = encodeVarintAgent(data, i, uint64(m.MemRss)) - } - if m.MemCache != 0 { - data[i] = 0xb0 - i++ - data[i] = 0x1 - i++ - i = encodeVarintAgent(data, i, uint64(m.MemCache)) - } - if m.Host != nil { - data[i] = 0xba - i++ - data[i] = 0x1 - i++ - i = encodeVarintAgent(data, i, uint64(m.Host.Size())) - n25, err := m.Host.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n25 - } - if m.Started != 0 { - data[i] = 0xc0 - i++ - data[i] = 0x1 - i++ - i = encodeVarintAgent(data, i, uint64(m.Started)) - } - if len(m.ByteKey) > 0 { - data[i] = 0xca - i++ - data[i] = 0x1 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.ByteKey))) - i += copy(data[i:], m.ByteKey) - } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - data[i] = 0xd2 - i++ - data[i] = 0x1 - i++ - l = len(s) - for l >= 1<<7 { - data[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - data[i] = uint8(l) - i++ - i += copy(data[i:], s) - } - } - if len(m.Addresses) > 0 { - for _, msg := range m.Addresses { - data[i] = 0xda - i++ - data[i] = 0x1 - i++ - i = encodeVarintAgent(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if m.ThreadCount != 0 { - data[i] = 0xe0 - i++ - data[i] = 0x1 - i++ - i = encodeVarintAgent(data, i, uint64(m.ThreadCount)) - } - if m.ThreadLimit != 0 { - data[i] = 0xe8 - i++ - data[i] = 0x1 - i++ - i = encodeVarintAgent(data, i, uint64(m.ThreadLimit)) - } - if m.MemUsage != 0 { - data[i] = 0xf0 - i++ - data[i] = 0x1 - i++ - i = encodeVarintAgent(data, i, uint64(m.MemUsage)) - } - if m.CpuUsageNs != 0 { - data[i] = 0xfd - i++ - data[i] = 0x1 - i++ - i = encodeFixed32Agent(data, i, uint32(math.Float32bits(float32(m.CpuUsageNs)))) - } - if m.MemAccounted != 0 { - data[i] = 0x80 - i++ - data[i] = 0x2 - i++ - i = encodeVarintAgent(data, i, uint64(m.MemAccounted)) - } - return i, nil -} - -func (m *ProcessStat) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *ProcessStat) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Pid != 0 { - data[i] = 0x8 - i++ - i = encodeVarintAgent(data, i, uint64(m.Pid)) - } - if m.CreateTime != 0 { - data[i] = 0x10 - i++ - i = encodeVarintAgent(data, i, uint64(m.CreateTime)) - } - if m.Memory != nil { - data[i] = 0x1a - i++ - i = encodeVarintAgent(data, i, uint64(m.Memory.Size())) - n26, err := m.Memory.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n26 - } - if m.Cpu != nil { - data[i] = 0x22 - i++ - i = encodeVarintAgent(data, i, uint64(m.Cpu.Size())) - n27, err := m.Cpu.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n27 - } - if m.Nice != 0 { - data[i] = 0x28 - i++ - i = encodeVarintAgent(data, i, uint64(m.Nice)) - } - if m.Threads != 0 { - data[i] = 0x38 - i++ - i = encodeVarintAgent(data, i, uint64(m.Threads)) - } - if m.OpenFdCount != 0 { - data[i] = 0x40 - i++ - i = encodeVarintAgent(data, i, uint64(m.OpenFdCount)) - } - if m.Key != 0 { - data[i] = 0x48 - i++ - i = encodeVarintAgent(data, i, uint64(m.Key)) - } - if len(m.ContainerId) > 0 { - data[i] = 0x52 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.ContainerId))) - i += copy(data[i:], m.ContainerId) - } - if m.ContainerState != 0 { - data[i] = 0x58 - i++ - i = encodeVarintAgent(data, i, uint64(m.ContainerState)) - } - if m.ProcessState != 0 { - data[i] = 0x60 - i++ - i = encodeVarintAgent(data, i, uint64(m.ProcessState)) - } - if m.ContainerHealth != 0 { - data[i] = 0x78 - i++ - i = encodeVarintAgent(data, i, uint64(m.ContainerHealth)) - } - if m.ContainerRbps != 0 { - data[i] = 0x85 - i++ - data[i] = 0x1 - i++ - i = encodeFixed32Agent(data, i, uint32(math.Float32bits(float32(m.ContainerRbps)))) - } - if m.ContainerWbps != 0 { - data[i] = 0x8d - i++ - data[i] = 0x1 - i++ - i = encodeFixed32Agent(data, i, uint32(math.Float32bits(float32(m.ContainerWbps)))) - } - if m.ContainerKey != 0 { - data[i] = 0x90 - i++ - data[i] = 0x1 - i++ - i = encodeVarintAgent(data, i, uint64(m.ContainerKey)) - } - if m.IoStat != nil { - data[i] = 0x9a - i++ - data[i] = 0x1 - i++ - i = encodeVarintAgent(data, i, uint64(m.IoStat.Size())) - n28, err := m.IoStat.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n28 - } - if m.ContainerNetRcvdPs != 0 { - data[i] = 0xa5 - i++ - data[i] = 0x1 - i++ - i = encodeFixed32Agent(data, i, uint32(math.Float32bits(float32(m.ContainerNetRcvdPs)))) - } - if m.ContainerNetSentPs != 0 { - data[i] = 0xad - i++ - data[i] = 0x1 - i++ - i = encodeFixed32Agent(data, i, uint32(math.Float32bits(float32(m.ContainerNetSentPs)))) - } - if m.ContainerNetRcvdBps != 0 { - data[i] = 0xb5 - i++ - data[i] = 0x1 - i++ - i = encodeFixed32Agent(data, i, uint32(math.Float32bits(float32(m.ContainerNetRcvdBps)))) - } - if m.ContainerNetSentBps != 0 { - data[i] = 0xbd - i++ - data[i] = 0x1 - i++ - i = encodeFixed32Agent(data, i, uint32(math.Float32bits(float32(m.ContainerNetSentBps)))) - } - if m.VoluntaryCtxSwitches != 0 { - data[i] = 0xc0 - i++ - data[i] = 0x1 - i++ - i = encodeVarintAgent(data, i, uint64(m.VoluntaryCtxSwitches)) - } - if m.InvoluntaryCtxSwitches != 0 { - data[i] = 0xc8 - i++ - data[i] = 0x1 - i++ - i = encodeVarintAgent(data, i, uint64(m.InvoluntaryCtxSwitches)) - } - if len(m.ByteKey) > 0 { - data[i] = 0xd2 - i++ - data[i] = 0x1 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.ByteKey))) - i += copy(data[i:], m.ByteKey) - } - if len(m.ContainerByteKey) > 0 { - data[i] = 0xda - i++ - data[i] = 0x1 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.ContainerByteKey))) - i += copy(data[i:], m.ContainerByteKey) - } - if m.Networks != nil { - data[i] = 0xe2 - i++ - data[i] = 0x1 - i++ - i = encodeVarintAgent(data, i, uint64(m.Networks.Size())) - n29, err := m.Networks.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n29 - } - return i, nil -} - -func (m *ProcStatsWithPerm) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *ProcStatsWithPerm) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.OpenFDCount != 0 { - data[i] = 0x8 - i++ - i = encodeVarintAgent(data, i, uint64(m.OpenFDCount)) - } - if m.ReadCount != 0 { - data[i] = 0x10 - i++ - i = encodeVarintAgent(data, i, uint64(m.ReadCount)) - } - if m.WriteCount != 0 { - data[i] = 0x18 - i++ - i = encodeVarintAgent(data, i, uint64(m.WriteCount)) - } - if m.ReadBytes != 0 { - data[i] = 0x20 - i++ - i = encodeVarintAgent(data, i, uint64(m.ReadBytes)) - } - if m.WriteBytes != 0 { - data[i] = 0x28 - i++ - i = encodeVarintAgent(data, i, uint64(m.WriteBytes)) - } - return i, nil -} - -func (m *ProcStatsWithPermByPID) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *ProcStatsWithPermByPID) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.StatsByPID) > 0 { - for k, _ := range m.StatsByPID { - data[i] = 0xa - i++ - v := m.StatsByPID[k] - msgSize := 0 - if v != nil { - msgSize = v.Size() - msgSize += 1 + sovAgent(uint64(msgSize)) - } - mapSize := 1 + sovAgent(uint64(k)) + msgSize - i = encodeVarintAgent(data, i, uint64(mapSize)) - data[i] = 0x8 - i++ - i = encodeVarintAgent(data, i, uint64(k)) - if v != nil { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(v.Size())) - n30, err := v.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n30 - } - } - } - return i, nil -} - -func (m *ContainerStat) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *ContainerStat) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Id) > 0 { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Id))) - i += copy(data[i:], m.Id) - } - if m.UserPct != 0 { - data[i] = 0x15 - i++ - i = encodeFixed32Agent(data, i, uint32(math.Float32bits(float32(m.UserPct)))) - } - if m.SystemPct != 0 { - data[i] = 0x1d - i++ - i = encodeFixed32Agent(data, i, uint32(math.Float32bits(float32(m.SystemPct)))) - } - if m.TotalPct != 0 { - data[i] = 0x25 - i++ - i = encodeFixed32Agent(data, i, uint32(math.Float32bits(float32(m.TotalPct)))) - } - if m.CpuLimit != 0 { - data[i] = 0x2d - i++ - i = encodeFixed32Agent(data, i, uint32(math.Float32bits(float32(m.CpuLimit)))) - } - if m.MemRss != 0 { - data[i] = 0x30 - i++ - i = encodeVarintAgent(data, i, uint64(m.MemRss)) - } - if m.MemCache != 0 { - data[i] = 0x38 - i++ - i = encodeVarintAgent(data, i, uint64(m.MemCache)) - } - if m.MemLimit != 0 { - data[i] = 0x40 - i++ - i = encodeVarintAgent(data, i, uint64(m.MemLimit)) - } - if m.Rbps != 0 { - data[i] = 0x4d - i++ - i = encodeFixed32Agent(data, i, uint32(math.Float32bits(float32(m.Rbps)))) - } - if m.Wbps != 0 { - data[i] = 0x55 - i++ - i = encodeFixed32Agent(data, i, uint32(math.Float32bits(float32(m.Wbps)))) - } - if m.NetRcvdPs != 0 { - data[i] = 0x5d - i++ - i = encodeFixed32Agent(data, i, uint32(math.Float32bits(float32(m.NetRcvdPs)))) - } - if m.NetSentPs != 0 { - data[i] = 0x65 - i++ - i = encodeFixed32Agent(data, i, uint32(math.Float32bits(float32(m.NetSentPs)))) - } - if m.NetRcvdBps != 0 { - data[i] = 0x6d - i++ - i = encodeFixed32Agent(data, i, uint32(math.Float32bits(float32(m.NetRcvdBps)))) - } - if m.NetSentBps != 0 { - data[i] = 0x75 - i++ - i = encodeFixed32Agent(data, i, uint32(math.Float32bits(float32(m.NetSentBps)))) - } - if m.State != 0 { - data[i] = 0x78 - i++ - i = encodeVarintAgent(data, i, uint64(m.State)) - } - if m.Health != 0 { - data[i] = 0x80 - i++ - data[i] = 0x1 - i++ - i = encodeVarintAgent(data, i, uint64(m.Health)) - } - if m.Key != 0 { - data[i] = 0x88 - i++ - data[i] = 0x1 - i++ - i = encodeVarintAgent(data, i, uint64(m.Key)) - } - if m.Started != 0 { - data[i] = 0x90 - i++ - data[i] = 0x1 - i++ - i = encodeVarintAgent(data, i, uint64(m.Started)) - } - if len(m.ByteKey) > 0 { - data[i] = 0x9a - i++ - data[i] = 0x1 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.ByteKey))) - i += copy(data[i:], m.ByteKey) - } - if m.ThreadCount != 0 { - data[i] = 0xa0 - i++ - data[i] = 0x1 - i++ - i = encodeVarintAgent(data, i, uint64(m.ThreadCount)) - } - if m.ThreadLimit != 0 { - data[i] = 0xa8 - i++ - data[i] = 0x1 - i++ - i = encodeVarintAgent(data, i, uint64(m.ThreadLimit)) - } - if m.MemUsage != 0 { - data[i] = 0xb0 - i++ - data[i] = 0x1 - i++ - i = encodeVarintAgent(data, i, uint64(m.MemUsage)) - } - if m.CpuUsageNs != 0 { - data[i] = 0xbd - i++ - data[i] = 0x1 - i++ - i = encodeFixed32Agent(data, i, uint32(math.Float32bits(float32(m.CpuUsageNs)))) - } - if m.MemAccounted != 0 { - data[i] = 0xc0 - i++ - data[i] = 0x1 - i++ - i = encodeVarintAgent(data, i, uint64(m.MemAccounted)) - } - return i, nil -} - -func (m *SystemInfo) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *SystemInfo) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Uuid) > 0 { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Uuid))) - i += copy(data[i:], m.Uuid) - } - if m.Os != nil { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(m.Os.Size())) - n31, err := m.Os.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n31 - } - if len(m.Cpus) > 0 { - for _, msg := range m.Cpus { - data[i] = 0x1a - i++ - i = encodeVarintAgent(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if m.TotalMemory != 0 { - data[i] = 0x28 - i++ - i = encodeVarintAgent(data, i, uint64(m.TotalMemory)) - } - return i, nil + return 0 } -func (m *OSInfo) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *OSInfo) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Name) > 0 { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Name))) - i += copy(data[i:], m.Name) - } - if len(m.Platform) > 0 { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Platform))) - i += copy(data[i:], m.Platform) - } - if len(m.Family) > 0 { - data[i] = 0x1a - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Family))) - i += copy(data[i:], m.Family) - } - if len(m.Version) > 0 { - data[i] = 0x22 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Version))) - i += copy(data[i:], m.Version) - } - if len(m.KernelVersion) > 0 { - data[i] = 0x2a - i++ - i = encodeVarintAgent(data, i, uint64(len(m.KernelVersion))) - i += copy(data[i:], m.KernelVersion) - } - return i, nil -} - -func (m *IOStat) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *IOStat) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.ReadRate != 0 { - data[i] = 0xd - i++ - i = encodeFixed32Agent(data, i, uint32(math.Float32bits(float32(m.ReadRate)))) - } - if m.WriteRate != 0 { - data[i] = 0x15 - i++ - i = encodeFixed32Agent(data, i, uint32(math.Float32bits(float32(m.WriteRate)))) - } - if m.ReadBytesRate != 0 { - data[i] = 0x1d - i++ - i = encodeFixed32Agent(data, i, uint32(math.Float32bits(float32(m.ReadBytesRate)))) - } - if m.WriteBytesRate != 0 { - data[i] = 0x25 - i++ - i = encodeFixed32Agent(data, i, uint32(math.Float32bits(float32(m.WriteBytesRate)))) - } - return i, nil -} - -func (m *MemoryStat) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *MemoryStat) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Rss != 0 { - data[i] = 0x8 - i++ - i = encodeVarintAgent(data, i, uint64(m.Rss)) - } - if m.Vms != 0 { - data[i] = 0x10 - i++ - i = encodeVarintAgent(data, i, uint64(m.Vms)) - } - if m.Swap != 0 { - data[i] = 0x18 - i++ - i = encodeVarintAgent(data, i, uint64(m.Swap)) - } - if m.Shared != 0 { - data[i] = 0x20 - i++ - i = encodeVarintAgent(data, i, uint64(m.Shared)) - } - if m.Text != 0 { - data[i] = 0x28 - i++ - i = encodeVarintAgent(data, i, uint64(m.Text)) - } - if m.Lib != 0 { - data[i] = 0x30 - i++ - i = encodeVarintAgent(data, i, uint64(m.Lib)) - } - if m.Data != 0 { - data[i] = 0x38 - i++ - i = encodeVarintAgent(data, i, uint64(m.Data)) - } - if m.Dirty != 0 { - data[i] = 0x40 - i++ - i = encodeVarintAgent(data, i, uint64(m.Dirty)) - } - return i, nil -} - -func (m *CPUStat) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *CPUStat) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.LastCpu) > 0 { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(len(m.LastCpu))) - i += copy(data[i:], m.LastCpu) - } - if m.TotalPct != 0 { - data[i] = 0x15 - i++ - i = encodeFixed32Agent(data, i, uint32(math.Float32bits(float32(m.TotalPct)))) - } - if m.UserPct != 0 { - data[i] = 0x1d - i++ - i = encodeFixed32Agent(data, i, uint32(math.Float32bits(float32(m.UserPct)))) - } - if m.SystemPct != 0 { - data[i] = 0x25 - i++ - i = encodeFixed32Agent(data, i, uint32(math.Float32bits(float32(m.SystemPct)))) - } - if m.NumThreads != 0 { - data[i] = 0x28 - i++ - i = encodeVarintAgent(data, i, uint64(m.NumThreads)) - } - if len(m.Cpus) > 0 { - for _, msg := range m.Cpus { - data[i] = 0x32 - i++ - i = encodeVarintAgent(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if m.Nice != 0 { - data[i] = 0x38 - i++ - i = encodeVarintAgent(data, i, uint64(m.Nice)) - } - if m.UserTime != 0 { - data[i] = 0x40 - i++ - i = encodeVarintAgent(data, i, uint64(m.UserTime)) - } - if m.SystemTime != 0 { - data[i] = 0x48 - i++ - i = encodeVarintAgent(data, i, uint64(m.SystemTime)) - } - return i, nil -} - -func (m *SingleCPUStat) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *SingleCPUStat) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Name) > 0 { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Name))) - i += copy(data[i:], m.Name) - } - if m.TotalPct != 0 { - data[i] = 0x15 - i++ - i = encodeFixed32Agent(data, i, uint32(math.Float32bits(float32(m.TotalPct)))) - } - return i, nil -} - -func (m *CPUInfo) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *CPUInfo) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Number != 0 { - data[i] = 0x8 - i++ - i = encodeVarintAgent(data, i, uint64(m.Number)) - } - if len(m.Vendor) > 0 { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Vendor))) - i += copy(data[i:], m.Vendor) - } - if len(m.Family) > 0 { - data[i] = 0x1a - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Family))) - i += copy(data[i:], m.Family) - } - if len(m.Model) > 0 { - data[i] = 0x22 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Model))) - i += copy(data[i:], m.Model) - } - if len(m.PhysicalId) > 0 { - data[i] = 0x2a - i++ - i = encodeVarintAgent(data, i, uint64(len(m.PhysicalId))) - i += copy(data[i:], m.PhysicalId) - } - if len(m.CoreId) > 0 { - data[i] = 0x32 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.CoreId))) - i += copy(data[i:], m.CoreId) - } - if m.Cores != 0 { - data[i] = 0x38 - i++ - i = encodeVarintAgent(data, i, uint64(m.Cores)) - } - if m.Mhz != 0 { - data[i] = 0x40 - i++ - i = encodeVarintAgent(data, i, uint64(m.Mhz)) - } - if m.CacheSize != 0 { - data[i] = 0x48 - i++ - i = encodeVarintAgent(data, i, uint64(m.CacheSize)) - } - return i, nil -} - -func (m *Host) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *Host) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Id != 0 { - data[i] = 0x8 - i++ - i = encodeVarintAgent(data, i, uint64(m.Id)) - } - if m.OrgId != 0 { - data[i] = 0x10 - i++ - i = encodeVarintAgent(data, i, uint64(m.OrgId)) - } - if len(m.Name) > 0 { - data[i] = 0x1a - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Name))) - i += copy(data[i:], m.Name) - } - if len(m.AllTags) > 0 { - for _, s := range m.AllTags { - data[i] = 0x32 - i++ - l = len(s) - for l >= 1<<7 { - data[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - data[i] = uint8(l) - i++ - i += copy(data[i:], s) - } - } - if m.NumCpus != 0 { - data[i] = 0x38 - i++ - i = encodeVarintAgent(data, i, uint64(m.NumCpus)) - } - if m.TotalMemory != 0 { - data[i] = 0x40 - i++ - i = encodeVarintAgent(data, i, uint64(m.TotalMemory)) - } - if m.TagIndex != 0 { - data[i] = 0x48 - i++ - i = encodeVarintAgent(data, i, uint64(m.TagIndex)) - } - if m.TagsModified != 0 { - data[i] = 0x50 - i++ - i = encodeVarintAgent(data, i, uint64(m.TagsModified)) - } - return i, nil -} - -func (m *Cluster) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *Cluster) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.NodeCount != 0 { - data[i] = 0x8 - i++ - i = encodeVarintAgent(data, i, uint64(m.NodeCount)) - } - if len(m.KubeletVersions) > 0 { - for k, _ := range m.KubeletVersions { - data[i] = 0x12 - i++ - v := m.KubeletVersions[k] - mapSize := 1 + len(k) + sovAgent(uint64(len(k))) + 1 + sovAgent(uint64(v)) - i = encodeVarintAgent(data, i, uint64(mapSize)) - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(len(k))) - i += copy(data[i:], k) - data[i] = 0x10 - i++ - i = encodeVarintAgent(data, i, uint64(v)) - } - } - if len(m.ApiServerVersions) > 0 { - for k, _ := range m.ApiServerVersions { - data[i] = 0x1a - i++ - v := m.ApiServerVersions[k] - mapSize := 1 + len(k) + sovAgent(uint64(len(k))) + 1 + sovAgent(uint64(v)) - i = encodeVarintAgent(data, i, uint64(mapSize)) - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(len(k))) - i += copy(data[i:], k) - data[i] = 0x10 - i++ - i = encodeVarintAgent(data, i, uint64(v)) - } - } - if m.PodCapacity != 0 { - data[i] = 0x20 - i++ - i = encodeVarintAgent(data, i, uint64(m.PodCapacity)) - } - if m.PodAllocatable != 0 { - data[i] = 0x28 - i++ - i = encodeVarintAgent(data, i, uint64(m.PodAllocatable)) - } - if m.MemoryAllocatable != 0 { - data[i] = 0x30 - i++ - i = encodeVarintAgent(data, i, uint64(m.MemoryAllocatable)) - } - if m.MemoryCapacity != 0 { - data[i] = 0x38 - i++ - i = encodeVarintAgent(data, i, uint64(m.MemoryCapacity)) - } - if m.CpuAllocatable != 0 { - data[i] = 0x40 - i++ - i = encodeVarintAgent(data, i, uint64(m.CpuAllocatable)) - } - if m.CpuCapacity != 0 { - data[i] = 0x48 - i++ - i = encodeVarintAgent(data, i, uint64(m.CpuCapacity)) - } - if len(m.ResourceVersion) > 0 { - data[i] = 0x52 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.ResourceVersion))) - i += copy(data[i:], m.ResourceVersion) - } - if m.CreationTimestamp != 0 { - data[i] = 0x58 - i++ - i = encodeVarintAgent(data, i, uint64(m.CreationTimestamp)) - } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - data[i] = 0x62 - i++ - l = len(s) - for l >= 1<<7 { - data[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - data[i] = uint8(l) - i++ - i += copy(data[i:], s) - } - } - if m.Metrics != nil { - data[i] = 0x6a - i++ - i = encodeVarintAgent(data, i, uint64(m.Metrics.Size())) - n32, err := m.Metrics.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n32 - } - return i, nil -} - -func (m *Metadata) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *Metadata) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Name) > 0 { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Name))) - i += copy(data[i:], m.Name) - } - if len(m.Namespace) > 0 { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Namespace))) - i += copy(data[i:], m.Namespace) - } - if len(m.Uid) > 0 { - data[i] = 0x1a - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Uid))) - i += copy(data[i:], m.Uid) - } - if m.CreationTimestamp != 0 { - data[i] = 0x20 - i++ - i = encodeVarintAgent(data, i, uint64(m.CreationTimestamp)) - } - if m.DeletionTimestamp != 0 { - data[i] = 0x28 - i++ - i = encodeVarintAgent(data, i, uint64(m.DeletionTimestamp)) - } - if len(m.Labels) > 0 { - for _, s := range m.Labels { - data[i] = 0x32 - i++ - l = len(s) - for l >= 1<<7 { - data[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - data[i] = uint8(l) - i++ - i += copy(data[i:], s) - } - } - if len(m.Annotations) > 0 { - for _, s := range m.Annotations { - data[i] = 0x3a - i++ - l = len(s) - for l >= 1<<7 { - data[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - data[i] = uint8(l) - i++ - i += copy(data[i:], s) - } - } - if len(m.OwnerReferences) > 0 { - for _, msg := range m.OwnerReferences { - data[i] = 0x42 - i++ - i = encodeVarintAgent(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if len(m.ResourceVersion) > 0 { - data[i] = 0x4a - i++ - i = encodeVarintAgent(data, i, uint64(len(m.ResourceVersion))) - i += copy(data[i:], m.ResourceVersion) - } - if len(m.Finalizers) > 0 { - for _, s := range m.Finalizers { - data[i] = 0x52 - i++ - l = len(s) - for l >= 1<<7 { - data[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - data[i] = uint8(l) - i++ - i += copy(data[i:], s) - } - } - return i, nil -} - -func (m *OwnerReference) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *OwnerReference) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Name) > 0 { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Name))) - i += copy(data[i:], m.Name) - } - if len(m.Uid) > 0 { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Uid))) - i += copy(data[i:], m.Uid) - } - if len(m.Kind) > 0 { - data[i] = 0x1a - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Kind))) - i += copy(data[i:], m.Kind) - } - return i, nil -} - -func (m *ObjectReference) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *ObjectReference) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Kind) > 0 { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Kind))) - i += copy(data[i:], m.Kind) - } - if len(m.Namespace) > 0 { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Namespace))) - i += copy(data[i:], m.Namespace) - } - if len(m.Name) > 0 { - data[i] = 0x1a - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Name))) - i += copy(data[i:], m.Name) - } - if len(m.Uid) > 0 { - data[i] = 0x22 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Uid))) - i += copy(data[i:], m.Uid) - } - if len(m.ApiVersion) > 0 { - data[i] = 0x2a - i++ - i = encodeVarintAgent(data, i, uint64(len(m.ApiVersion))) - i += copy(data[i:], m.ApiVersion) - } - if len(m.ResourceVersion) > 0 { - data[i] = 0x32 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.ResourceVersion))) - i += copy(data[i:], m.ResourceVersion) - } - if len(m.FieldPath) > 0 { - data[i] = 0x3a - i++ - i = encodeVarintAgent(data, i, uint64(len(m.FieldPath))) - i += copy(data[i:], m.FieldPath) - } - return i, nil -} - -func (m *ServicePort) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *ServicePort) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Name) > 0 { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Name))) - i += copy(data[i:], m.Name) - } - if len(m.Protocol) > 0 { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Protocol))) - i += copy(data[i:], m.Protocol) - } - if m.Port != 0 { - data[i] = 0x18 - i++ - i = encodeVarintAgent(data, i, uint64(m.Port)) - } - if len(m.TargetPort) > 0 { - data[i] = 0x22 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.TargetPort))) - i += copy(data[i:], m.TargetPort) - } - if m.NodePort != 0 { - data[i] = 0x28 - i++ - i = encodeVarintAgent(data, i, uint64(m.NodePort)) - } - return i, nil -} - -func (m *ServiceSessionAffinityConfig) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *ServiceSessionAffinityConfig) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.ClientIPTimeoutSeconds != 0 { - data[i] = 0x8 - i++ - i = encodeVarintAgent(data, i, uint64(m.ClientIPTimeoutSeconds)) - } - return i, nil -} - -func (m *Node) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *Node) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Metadata != nil { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(m.Metadata.Size())) - n33, err := m.Metadata.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n33 - } - if len(m.PodCIDR) > 0 { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.PodCIDR))) - i += copy(data[i:], m.PodCIDR) - } - if len(m.PodCIDRs) > 0 { - for _, s := range m.PodCIDRs { - data[i] = 0x1a - i++ - l = len(s) - for l >= 1<<7 { - data[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - data[i] = uint8(l) - i++ - i += copy(data[i:], s) - } - } - if m.Unschedulable { - data[i] = 0x20 - i++ - if m.Unschedulable { - data[i] = 1 - } else { - data[i] = 0 - } - i++ - } - if len(m.Taints) > 0 { - for _, msg := range m.Taints { - data[i] = 0x2a - i++ - i = encodeVarintAgent(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if m.Status != nil { - data[i] = 0x32 - i++ - i = encodeVarintAgent(data, i, uint64(m.Status.Size())) - n34, err := m.Status.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n34 - } - if len(m.Yaml) > 0 { - data[i] = 0x3a - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Yaml))) - i += copy(data[i:], m.Yaml) - } - if len(m.Roles) > 0 { - for _, s := range m.Roles { - data[i] = 0x42 - i++ - l = len(s) - for l >= 1<<7 { - data[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - data[i] = uint8(l) - i++ - i += copy(data[i:], s) - } - } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - data[i] = 0x4a - i++ - l = len(s) - for l >= 1<<7 { - data[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - data[i] = uint8(l) - i++ - i += copy(data[i:], s) - } - } - if len(m.ProviderID) > 0 { - data[i] = 0x52 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.ProviderID))) - i += copy(data[i:], m.ProviderID) - } - if m.Host != nil { - data[i] = 0x5a - i++ - i = encodeVarintAgent(data, i, uint64(m.Host.Size())) - n35, err := m.Host.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n35 - } - if m.Metrics != nil { - data[i] = 0x62 - i++ - i = encodeVarintAgent(data, i, uint64(m.Metrics.Size())) - n36, err := m.Metrics.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n36 - } - return i, nil -} - -func (m *NodeStatus) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *NodeStatus) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Capacity) > 0 { - for k, _ := range m.Capacity { - data[i] = 0xa - i++ - v := m.Capacity[k] - mapSize := 1 + len(k) + sovAgent(uint64(len(k))) + 1 + sovAgent(uint64(v)) - i = encodeVarintAgent(data, i, uint64(mapSize)) - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(len(k))) - i += copy(data[i:], k) - data[i] = 0x10 - i++ - i = encodeVarintAgent(data, i, uint64(v)) - } - } - if len(m.Allocatable) > 0 { - for k, _ := range m.Allocatable { - data[i] = 0x12 - i++ - v := m.Allocatable[k] - mapSize := 1 + len(k) + sovAgent(uint64(len(k))) + 1 + sovAgent(uint64(v)) - i = encodeVarintAgent(data, i, uint64(mapSize)) - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(len(k))) - i += copy(data[i:], k) - data[i] = 0x10 - i++ - i = encodeVarintAgent(data, i, uint64(v)) - } - } - if len(m.NodeAddresses) > 0 { - for k, _ := range m.NodeAddresses { - data[i] = 0x1a - i++ - v := m.NodeAddresses[k] - mapSize := 1 + len(k) + sovAgent(uint64(len(k))) + 1 + len(v) + sovAgent(uint64(len(v))) - i = encodeVarintAgent(data, i, uint64(mapSize)) - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(len(k))) - i += copy(data[i:], k) - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(len(v))) - i += copy(data[i:], v) - } - } - if len(m.Status) > 0 { - data[i] = 0x22 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Status))) - i += copy(data[i:], m.Status) - } - if len(m.KubeletVersion) > 0 { - data[i] = 0x2a - i++ - i = encodeVarintAgent(data, i, uint64(len(m.KubeletVersion))) - i += copy(data[i:], m.KubeletVersion) - } - if len(m.Conditions) > 0 { - for _, msg := range m.Conditions { - data[i] = 0x32 - i++ - i = encodeVarintAgent(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if len(m.Images) > 0 { - for _, msg := range m.Images { - data[i] = 0x3a - i++ - i = encodeVarintAgent(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if len(m.KubeProxyVersion) > 0 { - data[i] = 0x42 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.KubeProxyVersion))) - i += copy(data[i:], m.KubeProxyVersion) - } - if len(m.OperatingSystem) > 0 { - data[i] = 0x4a - i++ - i = encodeVarintAgent(data, i, uint64(len(m.OperatingSystem))) - i += copy(data[i:], m.OperatingSystem) - } - if len(m.Architecture) > 0 { - data[i] = 0x52 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Architecture))) - i += copy(data[i:], m.Architecture) - } - if len(m.KernelVersion) > 0 { - data[i] = 0x5a - i++ - i = encodeVarintAgent(data, i, uint64(len(m.KernelVersion))) - i += copy(data[i:], m.KernelVersion) - } - if len(m.OsImage) > 0 { - data[i] = 0x62 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.OsImage))) - i += copy(data[i:], m.OsImage) - } - if len(m.ContainerRuntimeVersion) > 0 { - data[i] = 0x6a - i++ - i = encodeVarintAgent(data, i, uint64(len(m.ContainerRuntimeVersion))) - i += copy(data[i:], m.ContainerRuntimeVersion) - } - return i, nil -} - -func (m *NodeCondition) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *NodeCondition) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Type) > 0 { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Type))) - i += copy(data[i:], m.Type) - } - if len(m.Status) > 0 { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Status))) - i += copy(data[i:], m.Status) - } - if m.LastTransitionTime != 0 { - data[i] = 0x18 - i++ - i = encodeVarintAgent(data, i, uint64(m.LastTransitionTime)) - } - if len(m.Reason) > 0 { - data[i] = 0x22 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Reason))) - i += copy(data[i:], m.Reason) - } - if len(m.Message) > 0 { - data[i] = 0x2a - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Message))) - i += copy(data[i:], m.Message) - } - return i, nil -} - -func (m *ContainerImage) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *ContainerImage) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Names) > 0 { - for _, s := range m.Names { - data[i] = 0xa - i++ - l = len(s) - for l >= 1<<7 { - data[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - data[i] = uint8(l) - i++ - i += copy(data[i:], s) - } - } - if m.SizeBytes != 0 { - data[i] = 0x10 - i++ - i = encodeVarintAgent(data, i, uint64(m.SizeBytes)) - } - return i, nil -} - -func (m *Taint) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *Taint) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Key) > 0 { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Key))) - i += copy(data[i:], m.Key) - } - if len(m.Value) > 0 { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Value))) - i += copy(data[i:], m.Value) - } - if len(m.Effect) > 0 { - data[i] = 0x1a - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Effect))) - i += copy(data[i:], m.Effect) - } - if m.TimeAdded != 0 { - data[i] = 0x20 - i++ - i = encodeVarintAgent(data, i, uint64(m.TimeAdded)) - } - return i, nil -} - -func (m *ServiceSpec) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *ServiceSpec) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Ports) > 0 { - for _, msg := range m.Ports { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if len(m.Selectors) > 0 { - for _, msg := range m.Selectors { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if len(m.ClusterIP) > 0 { - data[i] = 0x1a - i++ - i = encodeVarintAgent(data, i, uint64(len(m.ClusterIP))) - i += copy(data[i:], m.ClusterIP) - } - if len(m.Type) > 0 { - data[i] = 0x22 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Type))) - i += copy(data[i:], m.Type) - } - if len(m.ExternalIPs) > 0 { - for _, s := range m.ExternalIPs { - data[i] = 0x2a - i++ - l = len(s) - for l >= 1<<7 { - data[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - data[i] = uint8(l) - i++ - i += copy(data[i:], s) - } - } - if len(m.SessionAffinity) > 0 { - data[i] = 0x32 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.SessionAffinity))) - i += copy(data[i:], m.SessionAffinity) - } - if len(m.LoadBalancerIP) > 0 { - data[i] = 0x3a - i++ - i = encodeVarintAgent(data, i, uint64(len(m.LoadBalancerIP))) - i += copy(data[i:], m.LoadBalancerIP) - } - if len(m.LoadBalancerSourceRanges) > 0 { - for _, s := range m.LoadBalancerSourceRanges { - data[i] = 0x42 - i++ - l = len(s) - for l >= 1<<7 { - data[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - data[i] = uint8(l) - i++ - i += copy(data[i:], s) - } - } - if len(m.ExternalName) > 0 { - data[i] = 0x4a - i++ - i = encodeVarintAgent(data, i, uint64(len(m.ExternalName))) - i += copy(data[i:], m.ExternalName) - } - if len(m.ExternalTrafficPolicy) > 0 { - data[i] = 0x52 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.ExternalTrafficPolicy))) - i += copy(data[i:], m.ExternalTrafficPolicy) - } - if m.HealthCheckNodePort != 0 { - data[i] = 0x58 - i++ - i = encodeVarintAgent(data, i, uint64(m.HealthCheckNodePort)) - } - if m.PublishNotReadyAddresses { - data[i] = 0x60 - i++ - if m.PublishNotReadyAddresses { - data[i] = 1 - } else { - data[i] = 0 - } - i++ - } - if m.SessionAffinityConfig != nil { - data[i] = 0x6a - i++ - i = encodeVarintAgent(data, i, uint64(m.SessionAffinityConfig.Size())) - n37, err := m.SessionAffinityConfig.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n37 - } - if len(m.IpFamily) > 0 { - data[i] = 0x72 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.IpFamily))) - i += copy(data[i:], m.IpFamily) - } - return i, nil -} - -func (m *ServiceStatus) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *ServiceStatus) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.LoadBalancerIngress) > 0 { - for _, s := range m.LoadBalancerIngress { - data[i] = 0x8a - i++ - data[i] = 0x1 - i++ - l = len(s) - for l >= 1<<7 { - data[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - data[i] = uint8(l) - i++ - i += copy(data[i:], s) - } - } - return i, nil -} - -func (m *Service) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *Service) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Metadata != nil { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(m.Metadata.Size())) - n38, err := m.Metadata.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n38 - } - if m.Spec != nil { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(m.Spec.Size())) - n39, err := m.Spec.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n39 - } - if m.Status != nil { - data[i] = 0x1a - i++ - i = encodeVarintAgent(data, i, uint64(m.Status.Size())) - n40, err := m.Status.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n40 - } - if len(m.Yaml) > 0 { - data[i] = 0x22 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Yaml))) - i += copy(data[i:], m.Yaml) - } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - data[i] = 0x2a - i++ - l = len(s) - for l >= 1<<7 { - data[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - data[i] = uint8(l) - i++ - i += copy(data[i:], s) - } - } - if m.Metrics != nil { - data[i] = 0x32 - i++ - i = encodeVarintAgent(data, i, uint64(m.Metrics.Size())) - n41, err := m.Metrics.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n41 - } - return i, nil -} - -func (m *DeploymentCondition) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *DeploymentCondition) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Type) > 0 { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Type))) - i += copy(data[i:], m.Type) - } - if len(m.Status) > 0 { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Status))) - i += copy(data[i:], m.Status) - } - if len(m.Reason) > 0 { - data[i] = 0x22 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Reason))) - i += copy(data[i:], m.Reason) - } - if len(m.Message) > 0 { - data[i] = 0x2a - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Message))) - i += copy(data[i:], m.Message) - } - if m.LastUpdateTime != 0 { - data[i] = 0x30 - i++ - i = encodeVarintAgent(data, i, uint64(m.LastUpdateTime)) - } - if m.LastTransitionTime != 0 { - data[i] = 0x38 - i++ - i = encodeVarintAgent(data, i, uint64(m.LastTransitionTime)) - } - return i, nil -} - -func (m *Deployment) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *Deployment) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Metadata != nil { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(m.Metadata.Size())) - n42, err := m.Metadata.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n42 - } - if m.ReplicasDesired != 0 { - data[i] = 0x10 - i++ - i = encodeVarintAgent(data, i, uint64(m.ReplicasDesired)) - } - if len(m.DeploymentStrategy) > 0 { - data[i] = 0x1a - i++ - i = encodeVarintAgent(data, i, uint64(len(m.DeploymentStrategy))) - i += copy(data[i:], m.DeploymentStrategy) - } - if len(m.MaxUnavailable) > 0 { - data[i] = 0x22 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.MaxUnavailable))) - i += copy(data[i:], m.MaxUnavailable) - } - if len(m.MaxSurge) > 0 { - data[i] = 0x2a - i++ - i = encodeVarintAgent(data, i, uint64(len(m.MaxSurge))) - i += copy(data[i:], m.MaxSurge) - } - if m.Paused { - data[i] = 0x30 - i++ - if m.Paused { - data[i] = 1 - } else { - data[i] = 0 - } - i++ - } - if len(m.Selectors) > 0 { - for _, msg := range m.Selectors { - data[i] = 0x3a - i++ - i = encodeVarintAgent(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if m.Replicas != 0 { - data[i] = 0x40 - i++ - i = encodeVarintAgent(data, i, uint64(m.Replicas)) - } - if m.UpdatedReplicas != 0 { - data[i] = 0x48 - i++ - i = encodeVarintAgent(data, i, uint64(m.UpdatedReplicas)) - } - if m.ReadyReplicas != 0 { - data[i] = 0x50 - i++ - i = encodeVarintAgent(data, i, uint64(m.ReadyReplicas)) - } - if m.AvailableReplicas != 0 { - data[i] = 0x58 - i++ - i = encodeVarintAgent(data, i, uint64(m.AvailableReplicas)) - } - if m.UnavailableReplicas != 0 { - data[i] = 0x60 - i++ - i = encodeVarintAgent(data, i, uint64(m.UnavailableReplicas)) - } - if len(m.ConditionMessage) > 0 { - data[i] = 0x6a - i++ - i = encodeVarintAgent(data, i, uint64(len(m.ConditionMessage))) - i += copy(data[i:], m.ConditionMessage) - } - if len(m.Yaml) > 0 { - data[i] = 0x72 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Yaml))) - i += copy(data[i:], m.Yaml) - } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - data[i] = 0x7a - i++ - l = len(s) - for l >= 1<<7 { - data[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - data[i] = uint8(l) - i++ - i += copy(data[i:], s) - } - } - if len(m.ResourceRequirements) > 0 { - for _, msg := range m.ResourceRequirements { - data[i] = 0x82 - i++ - data[i] = 0x1 - i++ - i = encodeVarintAgent(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if m.Metrics != nil { - data[i] = 0x8a - i++ - data[i] = 0x1 - i++ - i = encodeVarintAgent(data, i, uint64(m.Metrics.Size())) - n43, err := m.Metrics.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n43 - } - if len(m.Conditions) > 0 { - for _, msg := range m.Conditions { - data[i] = 0x92 - i++ - data[i] = 0x1 - i++ - i = encodeVarintAgent(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *ReplicaSetCondition) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *ReplicaSetCondition) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Type) > 0 { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Type))) - i += copy(data[i:], m.Type) - } - if len(m.Status) > 0 { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Status))) - i += copy(data[i:], m.Status) - } - if m.LastTransitionTime != 0 { - data[i] = 0x18 - i++ - i = encodeVarintAgent(data, i, uint64(m.LastTransitionTime)) - } - if len(m.Reason) > 0 { - data[i] = 0x22 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Reason))) - i += copy(data[i:], m.Reason) - } - if len(m.Message) > 0 { - data[i] = 0x2a - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Message))) - i += copy(data[i:], m.Message) - } - return i, nil -} - -func (m *ReplicaSet) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *ReplicaSet) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Metadata != nil { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(m.Metadata.Size())) - n44, err := m.Metadata.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n44 - } - if m.ReplicasDesired != 0 { - data[i] = 0x10 - i++ - i = encodeVarintAgent(data, i, uint64(m.ReplicasDesired)) - } - if len(m.Selectors) > 0 { - for _, msg := range m.Selectors { - data[i] = 0x1a - i++ - i = encodeVarintAgent(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if m.Replicas != 0 { - data[i] = 0x20 - i++ - i = encodeVarintAgent(data, i, uint64(m.Replicas)) - } - if m.FullyLabeledReplicas != 0 { - data[i] = 0x28 - i++ - i = encodeVarintAgent(data, i, uint64(m.FullyLabeledReplicas)) - } - if m.ReadyReplicas != 0 { - data[i] = 0x30 - i++ - i = encodeVarintAgent(data, i, uint64(m.ReadyReplicas)) - } - if m.AvailableReplicas != 0 { - data[i] = 0x38 - i++ - i = encodeVarintAgent(data, i, uint64(m.AvailableReplicas)) - } - if len(m.Yaml) > 0 { - data[i] = 0x42 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Yaml))) - i += copy(data[i:], m.Yaml) - } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - data[i] = 0x4a - i++ - l = len(s) - for l >= 1<<7 { - data[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - data[i] = uint8(l) - i++ - i += copy(data[i:], s) - } - } - if len(m.ResourceRequirements) > 0 { - for _, msg := range m.ResourceRequirements { - data[i] = 0x52 - i++ - i = encodeVarintAgent(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if m.Metrics != nil { - data[i] = 0x5a - i++ - i = encodeVarintAgent(data, i, uint64(m.Metrics.Size())) - n45, err := m.Metrics.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n45 - } - if len(m.Conditions) > 0 { - for _, msg := range m.Conditions { - data[i] = 0x62 - i++ - i = encodeVarintAgent(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *LabelSelectorRequirement) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *LabelSelectorRequirement) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Key) > 0 { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Key))) - i += copy(data[i:], m.Key) - } - if len(m.Operator) > 0 { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Operator))) - i += copy(data[i:], m.Operator) - } - if len(m.Values) > 0 { - for _, s := range m.Values { - data[i] = 0x1a - i++ - l = len(s) - for l >= 1<<7 { - data[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - data[i] = uint8(l) - i++ - i += copy(data[i:], s) - } - } - return i, nil -} - -func (m *Pod) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *Pod) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Metadata != nil { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(m.Metadata.Size())) - n46, err := m.Metadata.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n46 - } - if len(m.IP) > 0 { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.IP))) - i += copy(data[i:], m.IP) - } - if len(m.NominatedNodeName) > 0 { - data[i] = 0x1a - i++ - i = encodeVarintAgent(data, i, uint64(len(m.NominatedNodeName))) - i += copy(data[i:], m.NominatedNodeName) - } - if len(m.NodeName) > 0 { - data[i] = 0x22 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.NodeName))) - i += copy(data[i:], m.NodeName) - } - if len(m.Phase) > 0 { - data[i] = 0x2a - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Phase))) - i += copy(data[i:], m.Phase) - } - if m.RestartCount != 0 { - data[i] = 0x30 - i++ - i = encodeVarintAgent(data, i, uint64(m.RestartCount)) - } - if len(m.ContainerStatuses) > 0 { - for _, msg := range m.ContainerStatuses { - data[i] = 0x3a - i++ - i = encodeVarintAgent(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if len(m.ConditionMessage) > 0 { - data[i] = 0x42 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.ConditionMessage))) - i += copy(data[i:], m.ConditionMessage) - } - if len(m.Status) > 0 { - data[i] = 0x4a - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Status))) - i += copy(data[i:], m.Status) - } - if len(m.Yaml) > 0 { - data[i] = 0x52 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Yaml))) - i += copy(data[i:], m.Yaml) - } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - data[i] = 0x5a - i++ - l = len(s) - for l >= 1<<7 { - data[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - data[i] = uint8(l) - i++ - i += copy(data[i:], s) - } - } - if m.Host != nil { - data[i] = 0x62 - i++ - i = encodeVarintAgent(data, i, uint64(m.Host.Size())) - n47, err := m.Host.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n47 - } - if len(m.ResourceRequirements) > 0 { - for _, msg := range m.ResourceRequirements { - data[i] = 0x6a - i++ - i = encodeVarintAgent(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if len(m.InitContainerStatuses) > 0 { - for _, msg := range m.InitContainerStatuses { - data[i] = 0x72 - i++ - i = encodeVarintAgent(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if len(m.QOSClass) > 0 { - data[i] = 0x7a - i++ - i = encodeVarintAgent(data, i, uint64(len(m.QOSClass))) - i += copy(data[i:], m.QOSClass) - } - if len(m.PriorityClass) > 0 { - data[i] = 0x82 - i++ - data[i] = 0x1 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.PriorityClass))) - i += copy(data[i:], m.PriorityClass) - } - if m.Metrics != nil { - data[i] = 0x8a - i++ - data[i] = 0x1 - i++ - i = encodeVarintAgent(data, i, uint64(m.Metrics.Size())) - n48, err := m.Metrics.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n48 - } - if m.StartTime != 0 { - data[i] = 0x90 - i++ - data[i] = 0x1 - i++ - i = encodeVarintAgent(data, i, uint64(m.StartTime)) - } - if m.ScheduledTime != 0 { - data[i] = 0x98 - i++ - data[i] = 0x1 - i++ - i = encodeVarintAgent(data, i, uint64(m.ScheduledTime)) - } - if len(m.Conditions) > 0 { - for _, msg := range m.Conditions { - data[i] = 0xa2 - i++ - data[i] = 0x1 - i++ - i = encodeVarintAgent(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *PodCondition) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *PodCondition) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Type) > 0 { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Type))) - i += copy(data[i:], m.Type) - } - if len(m.Status) > 0 { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Status))) - i += copy(data[i:], m.Status) - } - if m.LastProbeTime != 0 { - data[i] = 0x18 - i++ - i = encodeVarintAgent(data, i, uint64(m.LastProbeTime)) - } - if m.LastTransitionTime != 0 { - data[i] = 0x20 - i++ - i = encodeVarintAgent(data, i, uint64(m.LastTransitionTime)) - } - if len(m.Reason) > 0 { - data[i] = 0x2a - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Reason))) - i += copy(data[i:], m.Reason) - } - if len(m.Message) > 0 { - data[i] = 0x32 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Message))) - i += copy(data[i:], m.Message) - } - return i, nil -} - -func (m *ContainerStatus) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *ContainerStatus) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Name) > 0 { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Name))) - i += copy(data[i:], m.Name) - } - if len(m.ContainerID) > 0 { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.ContainerID))) - i += copy(data[i:], m.ContainerID) - } - if m.Ready { - data[i] = 0x18 - i++ - if m.Ready { - data[i] = 1 - } else { - data[i] = 0 - } - i++ - } - if m.RestartCount != 0 { - data[i] = 0x20 - i++ - i = encodeVarintAgent(data, i, uint64(m.RestartCount)) - } - if len(m.State) > 0 { - data[i] = 0x2a - i++ - i = encodeVarintAgent(data, i, uint64(len(m.State))) - i += copy(data[i:], m.State) - } - if len(m.Message) > 0 { - data[i] = 0x32 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Message))) - i += copy(data[i:], m.Message) - } - return i, nil -} - -func (m *Manifest) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *Manifest) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Type != 0 { - data[i] = 0x8 - i++ - i = encodeVarintAgent(data, i, uint64(m.Type)) - } - if len(m.ResourceVersion) > 0 { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.ResourceVersion))) - i += copy(data[i:], m.ResourceVersion) - } - if len(m.Uid) > 0 { - data[i] = 0x1a - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Uid))) - i += copy(data[i:], m.Uid) - } - if len(m.Content) > 0 { - data[i] = 0x22 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Content))) - i += copy(data[i:], m.Content) - } - if len(m.ContentType) > 0 { - data[i] = 0x2a - i++ - i = encodeVarintAgent(data, i, uint64(len(m.ContentType))) - i += copy(data[i:], m.ContentType) - } - if len(m.Version) > 0 { - data[i] = 0x32 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Version))) - i += copy(data[i:], m.Version) - } - return i, nil -} - -func (m *NamespaceCondition) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *NamespaceCondition) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Type) > 0 { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Type))) - i += copy(data[i:], m.Type) - } - if len(m.Status) > 0 { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Status))) - i += copy(data[i:], m.Status) - } - if m.LastTransitionTime != 0 { - data[i] = 0x18 - i++ - i = encodeVarintAgent(data, i, uint64(m.LastTransitionTime)) - } - if len(m.Reason) > 0 { - data[i] = 0x22 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Reason))) - i += copy(data[i:], m.Reason) - } - if len(m.Message) > 0 { - data[i] = 0x2a - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Message))) - i += copy(data[i:], m.Message) - } - return i, nil -} - -func (m *Namespace) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *Namespace) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Metadata != nil { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(m.Metadata.Size())) - n49, err := m.Metadata.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n49 - } - if len(m.Status) > 0 { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Status))) - i += copy(data[i:], m.Status) - } - if len(m.ConditionMessage) > 0 { - data[i] = 0x1a - i++ - i = encodeVarintAgent(data, i, uint64(len(m.ConditionMessage))) - i += copy(data[i:], m.ConditionMessage) - } - if len(m.Yaml) > 0 { - data[i] = 0x22 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Yaml))) - i += copy(data[i:], m.Yaml) - } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - data[i] = 0x2a - i++ - l = len(s) - for l >= 1<<7 { - data[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - data[i] = uint8(l) - i++ - i += copy(data[i:], s) - } - } - if len(m.Conditions) > 0 { - for _, msg := range m.Conditions { - data[i] = 0x32 - i++ - i = encodeVarintAgent(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *ResourceRequirements) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *ResourceRequirements) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Limits) > 0 { - for k, _ := range m.Limits { - data[i] = 0xa - i++ - v := m.Limits[k] - mapSize := 1 + len(k) + sovAgent(uint64(len(k))) + 1 + sovAgent(uint64(v)) - i = encodeVarintAgent(data, i, uint64(mapSize)) - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(len(k))) - i += copy(data[i:], k) - data[i] = 0x10 - i++ - i = encodeVarintAgent(data, i, uint64(v)) - } - } - if len(m.Requests) > 0 { - for k, _ := range m.Requests { - data[i] = 0x12 - i++ - v := m.Requests[k] - mapSize := 1 + len(k) + sovAgent(uint64(len(k))) + 1 + sovAgent(uint64(v)) - i = encodeVarintAgent(data, i, uint64(mapSize)) - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(len(k))) - i += copy(data[i:], k) - data[i] = 0x10 - i++ - i = encodeVarintAgent(data, i, uint64(v)) - } - } - if len(m.Name) > 0 { - data[i] = 0x1a - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Name))) - i += copy(data[i:], m.Name) - } - if m.Type != 0 { - data[i] = 0x20 - i++ - i = encodeVarintAgent(data, i, uint64(m.Type)) - } - return i, nil -} - -func (m *ResourceMetrics) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *ResourceMetrics) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.MetricValues) > 0 { - for k, _ := range m.MetricValues { - data[i] = 0xa - i++ - v := m.MetricValues[k] - mapSize := 1 + len(k) + sovAgent(uint64(len(k))) + 1 + 8 - i = encodeVarintAgent(data, i, uint64(mapSize)) - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(len(k))) - i += copy(data[i:], k) - data[i] = 0x11 - i++ - i = encodeFixed64Agent(data, i, uint64(math.Float64bits(float64(v)))) - } - } - return i, nil -} - -func (m *JobSpec) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *JobSpec) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Parallelism != 0 { - data[i] = 0x8 - i++ - i = encodeVarintAgent(data, i, uint64(m.Parallelism)) - } - if m.Completions != 0 { - data[i] = 0x10 - i++ - i = encodeVarintAgent(data, i, uint64(m.Completions)) - } - if m.ActiveDeadlineSeconds != 0 { - data[i] = 0x18 - i++ - i = encodeVarintAgent(data, i, uint64(m.ActiveDeadlineSeconds)) - } - if m.BackoffLimit != 0 { - data[i] = 0x20 - i++ - i = encodeVarintAgent(data, i, uint64(m.BackoffLimit)) - } - if len(m.Selectors) > 0 { - for _, msg := range m.Selectors { - data[i] = 0x2a - i++ - i = encodeVarintAgent(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if m.ManualSelector { - data[i] = 0x30 - i++ - if m.ManualSelector { - data[i] = 1 - } else { - data[i] = 0 - } - i++ - } - if len(m.ResourceRequirements) > 0 { - for _, msg := range m.ResourceRequirements { - data[i] = 0x3a - i++ - i = encodeVarintAgent(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *JobStatus) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *JobStatus) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.ConditionMessage) > 0 { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(len(m.ConditionMessage))) - i += copy(data[i:], m.ConditionMessage) - } - if m.StartTime != 0 { - data[i] = 0x10 - i++ - i = encodeVarintAgent(data, i, uint64(m.StartTime)) - } - if m.CompletionTime != 0 { - data[i] = 0x18 - i++ - i = encodeVarintAgent(data, i, uint64(m.CompletionTime)) - } - if m.Active != 0 { - data[i] = 0x20 - i++ - i = encodeVarintAgent(data, i, uint64(m.Active)) - } - if m.Succeeded != 0 { - data[i] = 0x28 - i++ - i = encodeVarintAgent(data, i, uint64(m.Succeeded)) - } - if m.Failed != 0 { - data[i] = 0x30 - i++ - i = encodeVarintAgent(data, i, uint64(m.Failed)) - } - return i, nil -} - -func (m *JobCondition) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *JobCondition) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Type) > 0 { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Type))) - i += copy(data[i:], m.Type) - } - if len(m.Status) > 0 { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Status))) - i += copy(data[i:], m.Status) - } - if m.LastProbeTime != 0 { - data[i] = 0x18 - i++ - i = encodeVarintAgent(data, i, uint64(m.LastProbeTime)) - } - if m.LastTransitionTime != 0 { - data[i] = 0x20 - i++ - i = encodeVarintAgent(data, i, uint64(m.LastTransitionTime)) - } - if len(m.Reason) > 0 { - data[i] = 0x2a - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Reason))) - i += copy(data[i:], m.Reason) - } - if len(m.Message) > 0 { - data[i] = 0x32 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Message))) - i += copy(data[i:], m.Message) - } - return i, nil -} - -func (m *Job) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *Job) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Metadata != nil { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(m.Metadata.Size())) - n50, err := m.Metadata.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n50 - } - if m.Spec != nil { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(m.Spec.Size())) - n51, err := m.Spec.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n51 - } - if m.Status != nil { - data[i] = 0x1a - i++ - i = encodeVarintAgent(data, i, uint64(m.Status.Size())) - n52, err := m.Status.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n52 - } - if len(m.Yaml) > 0 { - data[i] = 0x22 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Yaml))) - i += copy(data[i:], m.Yaml) - } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - data[i] = 0x2a - i++ - l = len(s) - for l >= 1<<7 { - data[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - data[i] = uint8(l) - i++ - i += copy(data[i:], s) - } - } - if len(m.Conditions) > 0 { - for _, msg := range m.Conditions { - data[i] = 0x32 - i++ - i = encodeVarintAgent(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *CronJobSpec) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *CronJobSpec) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Schedule) > 0 { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Schedule))) - i += copy(data[i:], m.Schedule) - } - if m.StartingDeadlineSeconds != 0 { - data[i] = 0x10 - i++ - i = encodeVarintAgent(data, i, uint64(m.StartingDeadlineSeconds)) - } - if len(m.ConcurrencyPolicy) > 0 { - data[i] = 0x1a - i++ - i = encodeVarintAgent(data, i, uint64(len(m.ConcurrencyPolicy))) - i += copy(data[i:], m.ConcurrencyPolicy) - } - if m.Suspend { - data[i] = 0x20 - i++ - if m.Suspend { - data[i] = 1 - } else { - data[i] = 0 - } - i++ - } - if m.SuccessfulJobsHistoryLimit != 0 { - data[i] = 0x28 - i++ - i = encodeVarintAgent(data, i, uint64(m.SuccessfulJobsHistoryLimit)) - } - if m.FailedJobsHistoryLimit != 0 { - data[i] = 0x30 - i++ - i = encodeVarintAgent(data, i, uint64(m.FailedJobsHistoryLimit)) - } - if len(m.ResourceRequirements) > 0 { - for _, msg := range m.ResourceRequirements { - data[i] = 0x3a - i++ - i = encodeVarintAgent(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n - } +func (x *Container) GetMemAccounted() uint64 { + if x != nil { + return x.MemAccounted } - return i, nil + return 0 } -func (m *CronJobStatus) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} +// ProcessStat is used for real-time process messages. It should only contain +// data that can change for a running process (and relevant information to +// generate a key). We will send a lot of these in the real-time messages so +// it's critical to keep this small. +type ProcessStat struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *CronJobStatus) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Active) > 0 { - for _, msg := range m.Active { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if m.LastScheduleTime != 0 { - data[i] = 0x10 - i++ - i = encodeVarintAgent(data, i, uint64(m.LastScheduleTime)) - } - return i, nil -} - -func (m *CronJob) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *CronJob) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Metadata != nil { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(m.Metadata.Size())) - n53, err := m.Metadata.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n53 - } - if m.Spec != nil { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(m.Spec.Size())) - n54, err := m.Spec.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n54 - } - if m.Status != nil { - data[i] = 0x1a - i++ - i = encodeVarintAgent(data, i, uint64(m.Status.Size())) - n55, err := m.Status.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n55 - } - if len(m.Yaml) > 0 { - data[i] = 0x22 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Yaml))) - i += copy(data[i:], m.Yaml) - } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - data[i] = 0x2a - i++ - l = len(s) - for l >= 1<<7 { - data[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - data[i] = uint8(l) - i++ - i += copy(data[i:], s) - } - } - return i, nil + Pid int32 `protobuf:"varint,1,opt,name=pid,proto3" json:"pid,omitempty"` + // In milliseconds + CreateTime int64 `protobuf:"varint,2,opt,name=createTime,proto3" json:"createTime,omitempty"` + Memory *MemoryStat `protobuf:"bytes,3,opt,name=memory,proto3" json:"memory,omitempty"` + Cpu *CPUStat `protobuf:"bytes,4,opt,name=cpu,proto3" json:"cpu,omitempty"` + Nice int32 `protobuf:"varint,5,opt,name=nice,proto3" json:"nice,omitempty"` + Threads int32 `protobuf:"varint,7,opt,name=threads,proto3" json:"threads,omitempty"` + OpenFdCount int32 `protobuf:"varint,8,opt,name=openFdCount,proto3" json:"openFdCount,omitempty"` + Key uint32 `protobuf:"varint,9,opt,name=key,proto3" json:"key,omitempty"` + // we need container id because we need to do the scoring by container + ContainerId string `protobuf:"bytes,10,opt,name=containerId,proto3" json:"containerId,omitempty"` + ContainerState ContainerState `protobuf:"varint,11,opt,name=containerState,proto3,enum=datadog.process_agent.ContainerState" json:"containerState,omitempty"` // DEPRECATED + ProcessState ProcessState `protobuf:"varint,12,opt,name=processState,proto3,enum=datadog.process_agent.ProcessState" json:"processState,omitempty"` + IoStat *IOStat `protobuf:"bytes,19,opt,name=ioStat,proto3" json:"ioStat,omitempty"` + Networks *ProcessNetworks `protobuf:"bytes,28,opt,name=networks,proto3" json:"networks,omitempty"` + // DEPRECATED: All container-level stats (except ID) have moved into ContainerStat. + // These will be removed in the future. + // These stats are from the container level but are stored per-process + // because we don't send a container primitive yet. + ContainerHealth ContainerHealth `protobuf:"varint,15,opt,name=containerHealth,proto3,enum=datadog.process_agent.ContainerHealth" json:"containerHealth,omitempty"` + ContainerRbps float32 `protobuf:"fixed32,16,opt,name=containerRbps,proto3" json:"containerRbps,omitempty"` + ContainerWbps float32 `protobuf:"fixed32,17,opt,name=containerWbps,proto3" json:"containerWbps,omitempty"` + ContainerKey uint32 `protobuf:"varint,18,opt,name=containerKey,proto3" json:"containerKey,omitempty"` + ContainerNetRcvdPs float32 `protobuf:"fixed32,20,opt,name=containerNetRcvdPs,proto3" json:"containerNetRcvdPs,omitempty"` + ContainerNetSentPs float32 `protobuf:"fixed32,21,opt,name=containerNetSentPs,proto3" json:"containerNetSentPs,omitempty"` + ContainerNetRcvdBps float32 `protobuf:"fixed32,22,opt,name=containerNetRcvdBps,proto3" json:"containerNetRcvdBps,omitempty"` + ContainerNetSentBps float32 `protobuf:"fixed32,23,opt,name=containerNetSentBps,proto3" json:"containerNetSentBps,omitempty"` + VoluntaryCtxSwitches uint64 `protobuf:"varint,24,opt,name=voluntaryCtxSwitches,proto3" json:"voluntaryCtxSwitches,omitempty"` + InvoluntaryCtxSwitches uint64 `protobuf:"varint,25,opt,name=involuntaryCtxSwitches,proto3" json:"involuntaryCtxSwitches,omitempty"` + ByteKey []byte `protobuf:"bytes,26,opt,name=byteKey,proto3" json:"byteKey,omitempty"` + ContainerByteKey []byte `protobuf:"bytes,27,opt,name=containerByteKey,proto3" json:"containerByteKey,omitempty"` } -func (m *DaemonSetSpec) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err +func (x *ProcessStat) Reset() { + *x = ProcessStat{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[38] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return data[:n], nil -} - -func (m *DaemonSetSpec) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Selectors) > 0 { - for _, msg := range m.Selectors { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if len(m.DeploymentStrategy) > 0 { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.DeploymentStrategy))) - i += copy(data[i:], m.DeploymentStrategy) - } - if len(m.MaxUnavailable) > 0 { - data[i] = 0x1a - i++ - i = encodeVarintAgent(data, i, uint64(len(m.MaxUnavailable))) - i += copy(data[i:], m.MaxUnavailable) - } - if m.MinReadySeconds != 0 { - data[i] = 0x20 - i++ - i = encodeVarintAgent(data, i, uint64(m.MinReadySeconds)) - } - if m.RevisionHistoryLimit != 0 { - data[i] = 0x28 - i++ - i = encodeVarintAgent(data, i, uint64(m.RevisionHistoryLimit)) - } - if len(m.ResourceRequirements) > 0 { - for _, msg := range m.ResourceRequirements { - data[i] = 0x32 - i++ - i = encodeVarintAgent(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil } -func (m *DaemonSetStatus) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil +func (x *ProcessStat) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DaemonSetStatus) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.CurrentNumberScheduled != 0 { - data[i] = 0x8 - i++ - i = encodeVarintAgent(data, i, uint64(m.CurrentNumberScheduled)) - } - if m.NumberMisscheduled != 0 { - data[i] = 0x10 - i++ - i = encodeVarintAgent(data, i, uint64(m.NumberMisscheduled)) - } - if m.DesiredNumberScheduled != 0 { - data[i] = 0x18 - i++ - i = encodeVarintAgent(data, i, uint64(m.DesiredNumberScheduled)) - } - if m.NumberReady != 0 { - data[i] = 0x20 - i++ - i = encodeVarintAgent(data, i, uint64(m.NumberReady)) - } - if m.UpdatedNumberScheduled != 0 { - data[i] = 0x30 - i++ - i = encodeVarintAgent(data, i, uint64(m.UpdatedNumberScheduled)) - } - if m.NumberAvailable != 0 { - data[i] = 0x38 - i++ - i = encodeVarintAgent(data, i, uint64(m.NumberAvailable)) - } - if m.NumberUnavailable != 0 { - data[i] = 0x40 - i++ - i = encodeVarintAgent(data, i, uint64(m.NumberUnavailable)) - } - return i, nil -} - -func (m *DaemonSetCondition) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *DaemonSetCondition) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Type) > 0 { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Type))) - i += copy(data[i:], m.Type) - } - if len(m.Status) > 0 { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Status))) - i += copy(data[i:], m.Status) - } - if m.LastTransitionTime != 0 { - data[i] = 0x18 - i++ - i = encodeVarintAgent(data, i, uint64(m.LastTransitionTime)) - } - if len(m.Reason) > 0 { - data[i] = 0x22 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Reason))) - i += copy(data[i:], m.Reason) - } - if len(m.Message) > 0 { - data[i] = 0x2a - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Message))) - i += copy(data[i:], m.Message) - } - return i, nil -} - -func (m *DaemonSet) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *DaemonSet) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Metadata != nil { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(m.Metadata.Size())) - n56, err := m.Metadata.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n56 - } - if m.Spec != nil { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(m.Spec.Size())) - n57, err := m.Spec.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n57 - } - if m.Status != nil { - data[i] = 0x1a - i++ - i = encodeVarintAgent(data, i, uint64(m.Status.Size())) - n58, err := m.Status.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n58 - } - if len(m.Yaml) > 0 { - data[i] = 0x22 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Yaml))) - i += copy(data[i:], m.Yaml) - } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - data[i] = 0x2a - i++ - l = len(s) - for l >= 1<<7 { - data[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - data[i] = uint8(l) - i++ - i += copy(data[i:], s) - } - } - if m.Metrics != nil { - data[i] = 0x32 - i++ - i = encodeVarintAgent(data, i, uint64(m.Metrics.Size())) - n59, err := m.Metrics.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n59 - } - if len(m.Conditions) > 0 { - for _, msg := range m.Conditions { - data[i] = 0x3a - i++ - i = encodeVarintAgent(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n +func (*ProcessStat) ProtoMessage() {} + +func (x *ProcessStat) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[38] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - return i, nil + return mi.MessageOf(x) } -func (m *StatefulSetSpec) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil +// Deprecated: Use ProcessStat.ProtoReflect.Descriptor instead. +func (*ProcessStat) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{38} } -func (m *StatefulSetSpec) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.DesiredReplicas != 0 { - data[i] = 0x8 - i++ - i = encodeVarintAgent(data, i, uint64(m.DesiredReplicas)) - } - if len(m.Selectors) > 0 { - for _, msg := range m.Selectors { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if len(m.ServiceName) > 0 { - data[i] = 0x1a - i++ - i = encodeVarintAgent(data, i, uint64(len(m.ServiceName))) - i += copy(data[i:], m.ServiceName) - } - if len(m.PodManagementPolicy) > 0 { - data[i] = 0x22 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.PodManagementPolicy))) - i += copy(data[i:], m.PodManagementPolicy) - } - if len(m.UpdateStrategy) > 0 { - data[i] = 0x2a - i++ - i = encodeVarintAgent(data, i, uint64(len(m.UpdateStrategy))) - i += copy(data[i:], m.UpdateStrategy) - } - if m.Partition != 0 { - data[i] = 0x30 - i++ - i = encodeVarintAgent(data, i, uint64(m.Partition)) - } - if len(m.ResourceRequirements) > 0 { - for _, msg := range m.ResourceRequirements { - data[i] = 0x3a - i++ - i = encodeVarintAgent(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n - } +func (x *ProcessStat) GetPid() int32 { + if x != nil { + return x.Pid } - return i, nil + return 0 } -func (m *StatefulSetStatus) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *StatefulSetStatus) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Replicas != 0 { - data[i] = 0x8 - i++ - i = encodeVarintAgent(data, i, uint64(m.Replicas)) - } - if m.ReadyReplicas != 0 { - data[i] = 0x10 - i++ - i = encodeVarintAgent(data, i, uint64(m.ReadyReplicas)) - } - if m.CurrentReplicas != 0 { - data[i] = 0x18 - i++ - i = encodeVarintAgent(data, i, uint64(m.CurrentReplicas)) - } - if m.UpdatedReplicas != 0 { - data[i] = 0x20 - i++ - i = encodeVarintAgent(data, i, uint64(m.UpdatedReplicas)) - } - return i, nil -} - -func (m *StatefulSetCondition) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *StatefulSetCondition) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Type) > 0 { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Type))) - i += copy(data[i:], m.Type) - } - if len(m.Status) > 0 { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Status))) - i += copy(data[i:], m.Status) - } - if m.LastTransitionTime != 0 { - data[i] = 0x18 - i++ - i = encodeVarintAgent(data, i, uint64(m.LastTransitionTime)) - } - if len(m.Reason) > 0 { - data[i] = 0x22 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Reason))) - i += copy(data[i:], m.Reason) - } - if len(m.Message) > 0 { - data[i] = 0x2a - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Message))) - i += copy(data[i:], m.Message) - } - return i, nil -} - -func (m *StatefulSet) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *StatefulSet) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Metadata != nil { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(m.Metadata.Size())) - n60, err := m.Metadata.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n60 - } - if m.Spec != nil { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(m.Spec.Size())) - n61, err := m.Spec.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n61 - } - if m.Status != nil { - data[i] = 0x1a - i++ - i = encodeVarintAgent(data, i, uint64(m.Status.Size())) - n62, err := m.Status.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n62 - } - if len(m.Yaml) > 0 { - data[i] = 0x22 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Yaml))) - i += copy(data[i:], m.Yaml) - } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - data[i] = 0x2a - i++ - l = len(s) - for l >= 1<<7 { - data[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - data[i] = uint8(l) - i++ - i += copy(data[i:], s) - } - } - if m.Metrics != nil { - data[i] = 0x32 - i++ - i = encodeVarintAgent(data, i, uint64(m.Metrics.Size())) - n63, err := m.Metrics.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n63 - } - if len(m.Conditions) > 0 { - for _, msg := range m.Conditions { - data[i] = 0x3a - i++ - i = encodeVarintAgent(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *PersistentVolume) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *PersistentVolume) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Metadata != nil { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(m.Metadata.Size())) - n64, err := m.Metadata.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n64 - } - if m.Spec != nil { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(m.Spec.Size())) - n65, err := m.Spec.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n65 - } - if m.Status != nil { - data[i] = 0x1a - i++ - i = encodeVarintAgent(data, i, uint64(m.Status.Size())) - n66, err := m.Status.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n66 - } - if len(m.Yaml) > 0 { - data[i] = 0x22 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Yaml))) - i += copy(data[i:], m.Yaml) - } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - data[i] = 0x2a - i++ - l = len(s) - for l >= 1<<7 { - data[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - data[i] = uint8(l) - i++ - i += copy(data[i:], s) - } - } - return i, nil -} - -func (m *PersistentVolumeSpec) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *PersistentVolumeSpec) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Capacity) > 0 { - for k, _ := range m.Capacity { - data[i] = 0xa - i++ - v := m.Capacity[k] - mapSize := 1 + len(k) + sovAgent(uint64(len(k))) + 1 + sovAgent(uint64(v)) - i = encodeVarintAgent(data, i, uint64(mapSize)) - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(len(k))) - i += copy(data[i:], k) - data[i] = 0x10 - i++ - i = encodeVarintAgent(data, i, uint64(v)) - } - } - if len(m.PersistentVolumeType) > 0 { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.PersistentVolumeType))) - i += copy(data[i:], m.PersistentVolumeType) - } - if len(m.AccessModes) > 0 { - for _, s := range m.AccessModes { - data[i] = 0x1a - i++ - l = len(s) - for l >= 1<<7 { - data[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - data[i] = uint8(l) - i++ - i += copy(data[i:], s) - } - } - if m.ClaimRef != nil { - data[i] = 0x22 - i++ - i = encodeVarintAgent(data, i, uint64(m.ClaimRef.Size())) - n67, err := m.ClaimRef.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n67 - } - if len(m.PersistentVolumeReclaimPolicy) > 0 { - data[i] = 0x2a - i++ - i = encodeVarintAgent(data, i, uint64(len(m.PersistentVolumeReclaimPolicy))) - i += copy(data[i:], m.PersistentVolumeReclaimPolicy) - } - if len(m.StorageClassName) > 0 { - data[i] = 0x32 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.StorageClassName))) - i += copy(data[i:], m.StorageClassName) - } - if len(m.MountOptions) > 0 { - for _, s := range m.MountOptions { - data[i] = 0x3a - i++ - l = len(s) - for l >= 1<<7 { - data[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - data[i] = uint8(l) - i++ - i += copy(data[i:], s) - } - } - if len(m.VolumeMode) > 0 { - data[i] = 0x42 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.VolumeMode))) - i += copy(data[i:], m.VolumeMode) - } - if len(m.NodeAffinity) > 0 { - for _, msg := range m.NodeAffinity { - data[i] = 0x4a - i++ - i = encodeVarintAgent(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if m.PersistentVolumeSource != nil { - data[i] = 0x52 - i++ - i = encodeVarintAgent(data, i, uint64(m.PersistentVolumeSource.Size())) - n68, err := m.PersistentVolumeSource.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n68 - } - return i, nil -} - -func (m *PersistentVolumeSource) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *PersistentVolumeSource) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.GcePersistentDisk != nil { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(m.GcePersistentDisk.Size())) - n69, err := m.GcePersistentDisk.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n69 - } - if m.AwsElasticBlockStore != nil { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(m.AwsElasticBlockStore.Size())) - n70, err := m.AwsElasticBlockStore.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n70 - } - if m.AzureFile != nil { - data[i] = 0x1a - i++ - i = encodeVarintAgent(data, i, uint64(m.AzureFile.Size())) - n71, err := m.AzureFile.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n71 - } - if m.AzureDisk != nil { - data[i] = 0x22 - i++ - i = encodeVarintAgent(data, i, uint64(m.AzureDisk.Size())) - n72, err := m.AzureDisk.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n72 - } - if m.Csi != nil { - data[i] = 0x2a - i++ - i = encodeVarintAgent(data, i, uint64(m.Csi.Size())) - n73, err := m.Csi.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n73 - } - return i, nil -} - -func (m *GCEPersistentDiskVolumeSource) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *GCEPersistentDiskVolumeSource) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.PdName) > 0 { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(len(m.PdName))) - i += copy(data[i:], m.PdName) - } - if len(m.FsType) > 0 { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.FsType))) - i += copy(data[i:], m.FsType) - } - if m.Partition != 0 { - data[i] = 0x18 - i++ - i = encodeVarintAgent(data, i, uint64(m.Partition)) - } - if m.ReadOnly { - data[i] = 0x20 - i++ - if m.ReadOnly { - data[i] = 1 - } else { - data[i] = 0 - } - i++ - } - return i, nil -} - -func (m *AWSElasticBlockStoreVolumeSource) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *AWSElasticBlockStoreVolumeSource) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.VolumeID) > 0 { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(len(m.VolumeID))) - i += copy(data[i:], m.VolumeID) - } - if len(m.FsType) > 0 { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.FsType))) - i += copy(data[i:], m.FsType) - } - if m.Partition != 0 { - data[i] = 0x18 - i++ - i = encodeVarintAgent(data, i, uint64(m.Partition)) - } - if m.ReadOnly { - data[i] = 0x20 - i++ - if m.ReadOnly { - data[i] = 1 - } else { - data[i] = 0 - } - i++ - } - return i, nil -} - -func (m *AzureFilePersistentVolumeSource) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *AzureFilePersistentVolumeSource) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.SecretName) > 0 { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(len(m.SecretName))) - i += copy(data[i:], m.SecretName) - } - if len(m.ShareName) > 0 { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.ShareName))) - i += copy(data[i:], m.ShareName) - } - if m.ReadOnly { - data[i] = 0x18 - i++ - if m.ReadOnly { - data[i] = 1 - } else { - data[i] = 0 - } - i++ - } - if len(m.SecretNamespace) > 0 { - data[i] = 0x22 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.SecretNamespace))) - i += copy(data[i:], m.SecretNamespace) - } - return i, nil -} - -func (m *AzureDiskVolumeSource) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *AzureDiskVolumeSource) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.DiskName) > 0 { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(len(m.DiskName))) - i += copy(data[i:], m.DiskName) - } - if len(m.DiskURI) > 0 { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.DiskURI))) - i += copy(data[i:], m.DiskURI) - } - if len(m.CachingMode) > 0 { - data[i] = 0x1a - i++ - i = encodeVarintAgent(data, i, uint64(len(m.CachingMode))) - i += copy(data[i:], m.CachingMode) - } - if len(m.FsType) > 0 { - data[i] = 0x22 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.FsType))) - i += copy(data[i:], m.FsType) - } - if m.ReadOnly { - data[i] = 0x28 - i++ - if m.ReadOnly { - data[i] = 1 - } else { - data[i] = 0 - } - i++ - } - if len(m.Kind) > 0 { - data[i] = 0x32 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Kind))) - i += copy(data[i:], m.Kind) - } - return i, nil -} - -func (m *CSIVolumeSource) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *CSIVolumeSource) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Driver) > 0 { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Driver))) - i += copy(data[i:], m.Driver) - } - if len(m.VolumeHandle) > 0 { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.VolumeHandle))) - i += copy(data[i:], m.VolumeHandle) - } - if m.ReadOnly { - data[i] = 0x18 - i++ - if m.ReadOnly { - data[i] = 1 - } else { - data[i] = 0 - } - i++ - } - if len(m.FsType) > 0 { - data[i] = 0x22 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.FsType))) - i += copy(data[i:], m.FsType) - } - if len(m.VolumeAttributes) > 0 { - for k, _ := range m.VolumeAttributes { - data[i] = 0x2a - i++ - v := m.VolumeAttributes[k] - mapSize := 1 + len(k) + sovAgent(uint64(len(k))) + 1 + len(v) + sovAgent(uint64(len(v))) - i = encodeVarintAgent(data, i, uint64(mapSize)) - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(len(k))) - i += copy(data[i:], k) - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(len(v))) - i += copy(data[i:], v) - } - } - if m.ControllerPublishSecretRef != nil { - data[i] = 0x32 - i++ - i = encodeVarintAgent(data, i, uint64(m.ControllerPublishSecretRef.Size())) - n74, err := m.ControllerPublishSecretRef.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n74 - } - if m.NodeStageSecretRef != nil { - data[i] = 0x3a - i++ - i = encodeVarintAgent(data, i, uint64(m.NodeStageSecretRef.Size())) - n75, err := m.NodeStageSecretRef.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n75 - } - if m.NodePublishSecretRef != nil { - data[i] = 0x42 - i++ - i = encodeVarintAgent(data, i, uint64(m.NodePublishSecretRef.Size())) - n76, err := m.NodePublishSecretRef.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n76 - } - if m.ControllerExpandSecretRef != nil { - data[i] = 0x4a - i++ - i = encodeVarintAgent(data, i, uint64(m.ControllerExpandSecretRef.Size())) - n77, err := m.ControllerExpandSecretRef.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n77 - } - if m.NodeExpandSecretRef != nil { - data[i] = 0x52 - i++ - i = encodeVarintAgent(data, i, uint64(m.NodeExpandSecretRef.Size())) - n78, err := m.NodeExpandSecretRef.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n78 - } - return i, nil -} - -func (m *SecretReference) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *SecretReference) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Name) > 0 { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Name))) - i += copy(data[i:], m.Name) - } - if len(m.Namespace) > 0 { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Namespace))) - i += copy(data[i:], m.Namespace) - } - return i, nil -} - -func (m *PersistentVolumeStatus) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *PersistentVolumeStatus) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Phase) > 0 { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Phase))) - i += copy(data[i:], m.Phase) - } - if len(m.Message) > 0 { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Message))) - i += copy(data[i:], m.Message) - } - if len(m.Reason) > 0 { - data[i] = 0x1a - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Reason))) - i += copy(data[i:], m.Reason) - } - return i, nil -} - -func (m *NodeSelectorTerm) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *NodeSelectorTerm) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.MatchExpressions) > 0 { - for _, msg := range m.MatchExpressions { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if len(m.MatchFields) > 0 { - for _, msg := range m.MatchFields { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *PersistentVolumeClaim) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *PersistentVolumeClaim) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Metadata != nil { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(m.Metadata.Size())) - n79, err := m.Metadata.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n79 - } - if m.Spec != nil { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(m.Spec.Size())) - n80, err := m.Spec.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n80 - } - if m.Status != nil { - data[i] = 0x1a - i++ - i = encodeVarintAgent(data, i, uint64(m.Status.Size())) - n81, err := m.Status.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n81 - } - if len(m.Yaml) > 0 { - data[i] = 0x22 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Yaml))) - i += copy(data[i:], m.Yaml) - } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - data[i] = 0x2a - i++ - l = len(s) - for l >= 1<<7 { - data[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - data[i] = uint8(l) - i++ - i += copy(data[i:], s) - } - } - return i, nil -} - -func (m *PersistentVolumeClaimStatus) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *PersistentVolumeClaimStatus) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Phase) > 0 { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Phase))) - i += copy(data[i:], m.Phase) - } - if len(m.AccessModes) > 0 { - for _, s := range m.AccessModes { - data[i] = 0x12 - i++ - l = len(s) - for l >= 1<<7 { - data[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - data[i] = uint8(l) - i++ - i += copy(data[i:], s) - } - } - if len(m.Capacity) > 0 { - for k, _ := range m.Capacity { - data[i] = 0x1a - i++ - v := m.Capacity[k] - mapSize := 1 + len(k) + sovAgent(uint64(len(k))) + 1 + sovAgent(uint64(v)) - i = encodeVarintAgent(data, i, uint64(mapSize)) - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(len(k))) - i += copy(data[i:], k) - data[i] = 0x10 - i++ - i = encodeVarintAgent(data, i, uint64(v)) - } - } - if len(m.Conditions) > 0 { - for _, msg := range m.Conditions { - data[i] = 0x22 - i++ - i = encodeVarintAgent(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n - } +func (x *ProcessStat) GetCreateTime() int64 { + if x != nil { + return x.CreateTime } - return i, nil + return 0 } -func (m *PersistentVolumeClaimSpec) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err +func (x *ProcessStat) GetMemory() *MemoryStat { + if x != nil { + return x.Memory } - return data[:n], nil + return nil } -func (m *PersistentVolumeClaimSpec) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.AccessModes) > 0 { - for _, s := range m.AccessModes { - data[i] = 0xa - i++ - l = len(s) - for l >= 1<<7 { - data[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - data[i] = uint8(l) - i++ - i += copy(data[i:], s) - } - } - if m.Resources != nil { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(m.Resources.Size())) - n82, err := m.Resources.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n82 - } - if len(m.VolumeName) > 0 { - data[i] = 0x1a - i++ - i = encodeVarintAgent(data, i, uint64(len(m.VolumeName))) - i += copy(data[i:], m.VolumeName) - } - if len(m.Selector) > 0 { - for _, msg := range m.Selector { - data[i] = 0x22 - i++ - i = encodeVarintAgent(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if len(m.StorageClassName) > 0 { - data[i] = 0x2a - i++ - i = encodeVarintAgent(data, i, uint64(len(m.StorageClassName))) - i += copy(data[i:], m.StorageClassName) - } - if len(m.VolumeMode) > 0 { - data[i] = 0x32 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.VolumeMode))) - i += copy(data[i:], m.VolumeMode) - } - if m.DataSource != nil { - data[i] = 0x3a - i++ - i = encodeVarintAgent(data, i, uint64(m.DataSource.Size())) - n83, err := m.DataSource.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n83 - } - return i, nil -} - -func (m *TypedLocalObjectReference) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *TypedLocalObjectReference) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.ApiGroup) > 0 { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(len(m.ApiGroup))) - i += copy(data[i:], m.ApiGroup) - } - if len(m.Kind) > 0 { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Kind))) - i += copy(data[i:], m.Kind) - } - if len(m.Name) > 0 { - data[i] = 0x1a - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Name))) - i += copy(data[i:], m.Name) - } - return i, nil -} - -func (m *PersistentVolumeClaimCondition) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *PersistentVolumeClaimCondition) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Type) > 0 { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Type))) - i += copy(data[i:], m.Type) - } - if len(m.Status) > 0 { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Status))) - i += copy(data[i:], m.Status) - } - if m.LastProbeTime != 0 { - data[i] = 0x18 - i++ - i = encodeVarintAgent(data, i, uint64(m.LastProbeTime)) - } - if m.LastTransitionTime != 0 { - data[i] = 0x20 - i++ - i = encodeVarintAgent(data, i, uint64(m.LastTransitionTime)) - } - if len(m.Reason) > 0 { - data[i] = 0x2a - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Reason))) - i += copy(data[i:], m.Reason) - } - if len(m.Message) > 0 { - data[i] = 0x32 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Message))) - i += copy(data[i:], m.Message) - } - return i, nil -} - -func (m *PolicyRule) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *PolicyRule) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Verbs) > 0 { - for _, s := range m.Verbs { - data[i] = 0xa - i++ - l = len(s) - for l >= 1<<7 { - data[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - data[i] = uint8(l) - i++ - i += copy(data[i:], s) - } - } - if len(m.ApiGroups) > 0 { - for _, s := range m.ApiGroups { - data[i] = 0x12 - i++ - l = len(s) - for l >= 1<<7 { - data[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - data[i] = uint8(l) - i++ - i += copy(data[i:], s) - } - } - if len(m.Resources) > 0 { - for _, s := range m.Resources { - data[i] = 0x1a - i++ - l = len(s) - for l >= 1<<7 { - data[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - data[i] = uint8(l) - i++ - i += copy(data[i:], s) - } - } - if len(m.ResourceNames) > 0 { - for _, s := range m.ResourceNames { - data[i] = 0x22 - i++ - l = len(s) - for l >= 1<<7 { - data[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - data[i] = uint8(l) - i++ - i += copy(data[i:], s) - } - } - if len(m.NonResourceURLs) > 0 { - for _, s := range m.NonResourceURLs { - data[i] = 0x2a - i++ - l = len(s) - for l >= 1<<7 { - data[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - data[i] = uint8(l) - i++ - i += copy(data[i:], s) - } - } - return i, nil -} - -func (m *Subject) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *Subject) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Kind) > 0 { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Kind))) - i += copy(data[i:], m.Kind) - } - if len(m.ApiGroup) > 0 { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.ApiGroup))) - i += copy(data[i:], m.ApiGroup) - } - if len(m.Name) > 0 { - data[i] = 0x1a - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Name))) - i += copy(data[i:], m.Name) - } - if len(m.Namespace) > 0 { - data[i] = 0x22 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Namespace))) - i += copy(data[i:], m.Namespace) - } - return i, nil -} - -func (m *Role) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *Role) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Metadata != nil { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(m.Metadata.Size())) - n84, err := m.Metadata.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n84 - } - if len(m.Rules) > 0 { - for _, msg := range m.Rules { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if len(m.Yaml) > 0 { - data[i] = 0x1a - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Yaml))) - i += copy(data[i:], m.Yaml) - } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - data[i] = 0x22 - i++ - l = len(s) - for l >= 1<<7 { - data[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - data[i] = uint8(l) - i++ - i += copy(data[i:], s) - } - } - return i, nil -} - -func (m *RoleBinding) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *RoleBinding) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Metadata != nil { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(m.Metadata.Size())) - n85, err := m.Metadata.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n85 - } - if len(m.Subjects) > 0 { - for _, msg := range m.Subjects { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if m.RoleRef != nil { - data[i] = 0x1a - i++ - i = encodeVarintAgent(data, i, uint64(m.RoleRef.Size())) - n86, err := m.RoleRef.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n86 - } - if len(m.Yaml) > 0 { - data[i] = 0x22 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Yaml))) - i += copy(data[i:], m.Yaml) - } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - data[i] = 0x2a - i++ - l = len(s) - for l >= 1<<7 { - data[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - data[i] = uint8(l) - i++ - i += copy(data[i:], s) - } - } - return i, nil -} - -func (m *ClusterRole) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *ClusterRole) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Metadata != nil { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(m.Metadata.Size())) - n87, err := m.Metadata.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n87 - } - if len(m.Rules) > 0 { - for _, msg := range m.Rules { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if len(m.AggregationRules) > 0 { - for _, msg := range m.AggregationRules { - data[i] = 0x1a - i++ - i = encodeVarintAgent(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if len(m.Yaml) > 0 { - data[i] = 0x22 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Yaml))) - i += copy(data[i:], m.Yaml) - } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - data[i] = 0x2a - i++ - l = len(s) - for l >= 1<<7 { - data[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - data[i] = uint8(l) - i++ - i += copy(data[i:], s) - } - } - if m.Metrics != nil { - data[i] = 0x32 - i++ - i = encodeVarintAgent(data, i, uint64(m.Metrics.Size())) - n88, err := m.Metrics.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n88 - } - return i, nil -} - -func (m *ClusterRoleBinding) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *ClusterRoleBinding) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Metadata != nil { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(m.Metadata.Size())) - n89, err := m.Metadata.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n89 - } - if len(m.Subjects) > 0 { - for _, msg := range m.Subjects { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if m.RoleRef != nil { - data[i] = 0x1a - i++ - i = encodeVarintAgent(data, i, uint64(m.RoleRef.Size())) - n90, err := m.RoleRef.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n90 - } - if len(m.Yaml) > 0 { - data[i] = 0x22 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Yaml))) - i += copy(data[i:], m.Yaml) - } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - data[i] = 0x2a - i++ - l = len(s) - for l >= 1<<7 { - data[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - data[i] = uint8(l) - i++ - i += copy(data[i:], s) - } - } - return i, nil -} - -func (m *ServiceAccount) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *ServiceAccount) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Metadata != nil { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(m.Metadata.Size())) - n91, err := m.Metadata.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n91 - } - if len(m.Secrets) > 0 { - for _, msg := range m.Secrets { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if len(m.ImagePullSecrets) > 0 { - for _, msg := range m.ImagePullSecrets { - data[i] = 0x1a - i++ - i = encodeVarintAgent(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if m.AutomountServiceAccountToken { - data[i] = 0x20 - i++ - if m.AutomountServiceAccountToken { - data[i] = 1 - } else { - data[i] = 0 - } - i++ - } - if len(m.Yaml) > 0 { - data[i] = 0x2a - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Yaml))) - i += copy(data[i:], m.Yaml) - } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - data[i] = 0x32 - i++ - l = len(s) - for l >= 1<<7 { - data[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - data[i] = uint8(l) - i++ - i += copy(data[i:], s) - } - } - return i, nil -} - -func (m *IngressServiceBackend) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *IngressServiceBackend) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.ServiceName) > 0 { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(len(m.ServiceName))) - i += copy(data[i:], m.ServiceName) - } - if len(m.PortName) > 0 { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.PortName))) - i += copy(data[i:], m.PortName) - } - if m.PortNumber != 0 { - data[i] = 0x18 - i++ - i = encodeVarintAgent(data, i, uint64(m.PortNumber)) - } - return i, nil -} - -func (m *IngressBackend) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *IngressBackend) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Service != nil { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(m.Service.Size())) - n92, err := m.Service.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n92 - } - if m.Resource != nil { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(m.Resource.Size())) - n93, err := m.Resource.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n93 - } - return i, nil -} - -func (m *IngressTLS) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *IngressTLS) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Hosts) > 0 { - for _, s := range m.Hosts { - data[i] = 0xa - i++ - l = len(s) - for l >= 1<<7 { - data[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - data[i] = uint8(l) - i++ - i += copy(data[i:], s) - } - } - if len(m.SecretName) > 0 { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.SecretName))) - i += copy(data[i:], m.SecretName) - } - return i, nil -} - -func (m *HTTPIngressPath) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *HTTPIngressPath) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Path) > 0 { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Path))) - i += copy(data[i:], m.Path) - } - if m.Backend != nil { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(m.Backend.Size())) - n94, err := m.Backend.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n94 - } - if len(m.PathType) > 0 { - data[i] = 0x1a - i++ - i = encodeVarintAgent(data, i, uint64(len(m.PathType))) - i += copy(data[i:], m.PathType) - } - return i, nil -} - -func (m *IngressRule) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *IngressRule) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Host) > 0 { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Host))) - i += copy(data[i:], m.Host) - } - if len(m.HttpPaths) > 0 { - for _, msg := range m.HttpPaths { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n - } +func (x *ProcessStat) GetCpu() *CPUStat { + if x != nil { + return x.Cpu } - return i, nil + return nil } -func (m *IngressSpec) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err +func (x *ProcessStat) GetNice() int32 { + if x != nil { + return x.Nice } - return data[:n], nil + return 0 } -func (m *IngressSpec) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.DefaultBackend != nil { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(m.DefaultBackend.Size())) - n95, err := m.DefaultBackend.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n95 - } - if len(m.Tls) > 0 { - for _, msg := range m.Tls { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if len(m.Rules) > 0 { - for _, msg := range m.Rules { - data[i] = 0x1a - i++ - i = encodeVarintAgent(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if len(m.IngressClassName) > 0 { - data[i] = 0x22 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.IngressClassName))) - i += copy(data[i:], m.IngressClassName) - } - return i, nil -} - -func (m *PortStatus) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *PortStatus) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Port != 0 { - data[i] = 0x8 - i++ - i = encodeVarintAgent(data, i, uint64(m.Port)) - } - if len(m.Protocol) > 0 { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Protocol))) - i += copy(data[i:], m.Protocol) - } - if len(m.Error) > 0 { - data[i] = 0x1a - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Error))) - i += copy(data[i:], m.Error) - } - return i, nil -} - -func (m *LoadBalancerIngress) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *LoadBalancerIngress) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Ip) > 0 { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Ip))) - i += copy(data[i:], m.Ip) - } - if len(m.Hostname) > 0 { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Hostname))) - i += copy(data[i:], m.Hostname) - } - if len(m.Ports) > 0 { - for _, msg := range m.Ports { - data[i] = 0x22 - i++ - i = encodeVarintAgent(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n - } +func (x *ProcessStat) GetThreads() int32 { + if x != nil { + return x.Threads } - return i, nil + return 0 } -func (m *IngressStatus) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err +func (x *ProcessStat) GetOpenFdCount() int32 { + if x != nil { + return x.OpenFdCount } - return data[:n], nil + return 0 } -func (m *IngressStatus) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Ingress) > 0 { - for _, msg := range m.Ingress { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *Ingress) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *Ingress) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Metadata != nil { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(m.Metadata.Size())) - n96, err := m.Metadata.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n96 - } - if m.Spec != nil { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(m.Spec.Size())) - n97, err := m.Spec.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n97 - } - if m.Status != nil { - data[i] = 0x1a - i++ - i = encodeVarintAgent(data, i, uint64(m.Status.Size())) - n98, err := m.Status.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n98 - } - if len(m.Yaml) > 0 { - data[i] = 0x22 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Yaml))) - i += copy(data[i:], m.Yaml) - } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - data[i] = 0x2a - i++ - l = len(s) - for l >= 1<<7 { - data[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - data[i] = uint8(l) - i++ - i += copy(data[i:], s) - } - } - return i, nil -} - -func (m *KafkaRequestHeader) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *KafkaRequestHeader) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.RequestType != 0 { - data[i] = 0x8 - i++ - i = encodeVarintAgent(data, i, uint64(m.RequestType)) - } - if m.RequestVersion != 0 { - data[i] = 0x10 - i++ - i = encodeVarintAgent(data, i, uint64(m.RequestVersion)) - } - return i, nil -} - -func (m *KafkaAggregation) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *KafkaAggregation) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Header != nil { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(m.Header.Size())) - n99, err := m.Header.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n99 - } - if len(m.Topic) > 0 { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Topic))) - i += copy(data[i:], m.Topic) - } - if m.Count != 0 { - data[i] = 0x18 - i++ - i = encodeVarintAgent(data, i, uint64(m.Count)) - } - return i, nil -} - -func (m *DataStreamsAggregations) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *DataStreamsAggregations) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.KafkaProduceAggregations != nil { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(m.KafkaProduceAggregations.Size())) - n100, err := m.KafkaProduceAggregations.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n100 - } - if m.KafkaFetchAggregations != nil { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(m.KafkaFetchAggregations.Size())) - n101, err := m.KafkaFetchAggregations.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n101 - } - if len(m.KafkaAggregations) > 0 { - for _, msg := range m.KafkaAggregations { - data[i] = 0x1a - i++ - i = encodeVarintAgent(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n - } +func (x *ProcessStat) GetKey() uint32 { + if x != nil { + return x.Key } - return i, nil + return 0 } -func (m *DataStreamsAggregations_TopicStats) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err +func (x *ProcessStat) GetContainerId() string { + if x != nil { + return x.ContainerId } - return data[:n], nil + return "" } -func (m *DataStreamsAggregations_TopicStats) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Topic) > 0 { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Topic))) - i += copy(data[i:], m.Topic) - } - if m.Count != 0 { - data[i] = 0x10 - i++ - i = encodeVarintAgent(data, i, uint64(m.Count)) +func (x *ProcessStat) GetContainerState() ContainerState { + if x != nil { + return x.ContainerState } - return i, nil + return ContainerState_unknown } -func (m *DataStreamsAggregations_KafkaProduceAggregations) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err +func (x *ProcessStat) GetProcessState() ProcessState { + if x != nil { + return x.ProcessState } - return data[:n], nil + return ProcessState_U } -func (m *DataStreamsAggregations_KafkaProduceAggregations) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Stats) > 0 { - for _, msg := range m.Stats { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n - } +func (x *ProcessStat) GetIoStat() *IOStat { + if x != nil { + return x.IoStat } - return i, nil + return nil } -func (m *DataStreamsAggregations_KafkaFetchAggregations) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err +func (x *ProcessStat) GetNetworks() *ProcessNetworks { + if x != nil { + return x.Networks } - return data[:n], nil + return nil } -func (m *DataStreamsAggregations_KafkaFetchAggregations) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Stats) > 0 { - for _, msg := range m.Stats { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n - } +func (x *ProcessStat) GetContainerHealth() ContainerHealth { + if x != nil { + return x.ContainerHealth } - return i, nil + return ContainerHealth_unknownHealth } -func (m *HTTPAggregations) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err +func (x *ProcessStat) GetContainerRbps() float32 { + if x != nil { + return x.ContainerRbps } - return data[:n], nil + return 0 } -func (m *HTTPAggregations) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.EndpointAggregations) > 0 { - for _, msg := range m.EndpointAggregations { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n - } +func (x *ProcessStat) GetContainerWbps() float32 { + if x != nil { + return x.ContainerWbps } - return i, nil + return 0 } -func (m *HTTP2Aggregations) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err +func (x *ProcessStat) GetContainerKey() uint32 { + if x != nil { + return x.ContainerKey } - return data[:n], nil + return 0 } -func (m *HTTP2Aggregations) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.EndpointAggregations) > 0 { - for _, msg := range m.EndpointAggregations { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n - } +func (x *ProcessStat) GetContainerNetRcvdPs() float32 { + if x != nil { + return x.ContainerNetRcvdPs } - return i, nil + return 0 } -func (m *HTTPStats) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err +func (x *ProcessStat) GetContainerNetSentPs() float32 { + if x != nil { + return x.ContainerNetSentPs } - return data[:n], nil + return 0 } -func (m *HTTPStats) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.StatsByResponseStatus) > 0 { - for _, msg := range m.StatsByResponseStatus { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if len(m.StatsByStatusCode) > 0 { - for k, _ := range m.StatsByStatusCode { - data[i] = 0x12 - i++ - v := m.StatsByStatusCode[k] - msgSize := 0 - if v != nil { - msgSize = v.Size() - msgSize += 1 + sovAgent(uint64(msgSize)) - } - mapSize := 1 + sovAgent(uint64(k)) + msgSize - i = encodeVarintAgent(data, i, uint64(mapSize)) - data[i] = 0x8 - i++ - i = encodeVarintAgent(data, i, uint64(k)) - if v != nil { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(v.Size())) - n102, err := v.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n102 - } - } - } - if len(m.Path) > 0 { - data[i] = 0x22 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Path))) - i += copy(data[i:], m.Path) - } - if m.Method != 0 { - data[i] = 0x28 - i++ - i = encodeVarintAgent(data, i, uint64(m.Method)) - } - if m.FullPath { - data[i] = 0x30 - i++ - if m.FullPath { - data[i] = 1 - } else { - data[i] = 0 - } - i++ +func (x *ProcessStat) GetContainerNetRcvdBps() float32 { + if x != nil { + return x.ContainerNetRcvdBps } - return i, nil -} + return 0 +} -func (m *HTTPStats_Data) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err +func (x *ProcessStat) GetContainerNetSentBps() float32 { + if x != nil { + return x.ContainerNetSentBps } - return data[:n], nil + return 0 } - -func (m *HTTPStats_Data) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Count != 0 { - data[i] = 0x8 - i++ - i = encodeVarintAgent(data, i, uint64(m.Count)) - } - if len(m.Latencies) > 0 { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Latencies))) - i += copy(data[i:], m.Latencies) - } - if m.FirstLatencySample != 0 { - data[i] = 0x21 - i++ - i = encodeFixed64Agent(data, i, uint64(math.Float64bits(float64(m.FirstLatencySample)))) - } - return i, nil -} - -func (m *DNSDatabaseEntry) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *DNSDatabaseEntry) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.NameOffsets) > 0 { - for _, num := range m.NameOffsets { - data[i] = 0x8 - i++ - i = encodeVarintAgent(data, i, uint64(num)) - } - } - return i, nil -} - -func (m *ResourceList) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *ResourceList) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.MetricValues) > 0 { - for k, _ := range m.MetricValues { - data[i] = 0xa - i++ - v := m.MetricValues[k] - mapSize := 1 + len(k) + sovAgent(uint64(len(k))) + 1 + 8 - i = encodeVarintAgent(data, i, uint64(mapSize)) - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(len(k))) - i += copy(data[i:], k) - data[i] = 0x11 - i++ - i = encodeFixed64Agent(data, i, uint64(math.Float64bits(float64(v)))) - } - } - return i, nil -} - -func (m *VerticalPodAutoscaler) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *VerticalPodAutoscaler) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Metadata != nil { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(m.Metadata.Size())) - n103, err := m.Metadata.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n103 - } - if m.Spec != nil { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(m.Spec.Size())) - n104, err := m.Spec.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n104 - } - if m.Status != nil { - data[i] = 0x1a - i++ - i = encodeVarintAgent(data, i, uint64(m.Status.Size())) - n105, err := m.Status.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n105 - } - if len(m.Yaml) > 0 { - data[i] = 0x22 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Yaml))) - i += copy(data[i:], m.Yaml) - } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - data[i] = 0x2a - i++ - l = len(s) - for l >= 1<<7 { - data[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - data[i] = uint8(l) - i++ - i += copy(data[i:], s) - } - } - if len(m.Conditions) > 0 { - for _, msg := range m.Conditions { - data[i] = 0x32 - i++ - i = encodeVarintAgent(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *VerticalPodAutoscalerCondition) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *VerticalPodAutoscalerCondition) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Type) > 0 { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Type))) - i += copy(data[i:], m.Type) - } - if len(m.Status) > 0 { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Status))) - i += copy(data[i:], m.Status) - } - if m.LastTransitionTime != 0 { - data[i] = 0x18 - i++ - i = encodeVarintAgent(data, i, uint64(m.LastTransitionTime)) - } - if len(m.Reason) > 0 { - data[i] = 0x22 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Reason))) - i += copy(data[i:], m.Reason) - } - if len(m.Message) > 0 { - data[i] = 0x2a - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Message))) - i += copy(data[i:], m.Message) - } - return i, nil -} - -func (m *VerticalPodAutoscalerSpec) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *VerticalPodAutoscalerSpec) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Target != nil { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(m.Target.Size())) - n106, err := m.Target.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n106 - } - if len(m.UpdateMode) > 0 { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.UpdateMode))) - i += copy(data[i:], m.UpdateMode) - } - if len(m.ResourcePolicies) > 0 { - for _, msg := range m.ResourcePolicies { - data[i] = 0x1a - i++ - i = encodeVarintAgent(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *VerticalPodAutoscalerTarget) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *VerticalPodAutoscalerTarget) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Kind) > 0 { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Kind))) - i += copy(data[i:], m.Kind) - } - if len(m.Name) > 0 { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Name))) - i += copy(data[i:], m.Name) - } - return i, nil -} - -func (m *ContainerResourcePolicy) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *ContainerResourcePolicy) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.ContainerName) > 0 { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(len(m.ContainerName))) - i += copy(data[i:], m.ContainerName) - } - if len(m.Mode) > 0 { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Mode))) - i += copy(data[i:], m.Mode) - } - if m.MinAllowed != nil { - data[i] = 0x1a - i++ - i = encodeVarintAgent(data, i, uint64(m.MinAllowed.Size())) - n107, err := m.MinAllowed.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n107 - } - if m.MaxAllowed != nil { - data[i] = 0x22 - i++ - i = encodeVarintAgent(data, i, uint64(m.MaxAllowed.Size())) - n108, err := m.MaxAllowed.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n108 - } - if len(m.ControlledResource) > 0 { - for _, s := range m.ControlledResource { - data[i] = 0x2a - i++ - l = len(s) - for l >= 1<<7 { - data[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - data[i] = uint8(l) - i++ - i += copy(data[i:], s) - } - } - if len(m.ControlledValues) > 0 { - data[i] = 0x32 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.ControlledValues))) - i += copy(data[i:], m.ControlledValues) - } - return i, nil -} - -func (m *VerticalPodAutoscalerStatus) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *VerticalPodAutoscalerStatus) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.LastRecommendedDate != 0 { - data[i] = 0x8 - i++ - i = encodeVarintAgent(data, i, uint64(m.LastRecommendedDate)) - } - if len(m.Recommendations) > 0 { - for _, msg := range m.Recommendations { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n - } + +func (x *ProcessStat) GetVoluntaryCtxSwitches() uint64 { + if x != nil { + return x.VoluntaryCtxSwitches } - if len(m.Conditions) > 0 { - for _, msg := range m.Conditions { - data[i] = 0x1a - i++ - i = encodeVarintAgent(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *ContainerRecommendation) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *ContainerRecommendation) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.ContainerName) > 0 { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(len(m.ContainerName))) - i += copy(data[i:], m.ContainerName) - } - if m.Target != nil { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(m.Target.Size())) - n109, err := m.Target.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n109 - } - if m.LowerBound != nil { - data[i] = 0x1a - i++ - i = encodeVarintAgent(data, i, uint64(m.LowerBound.Size())) - n110, err := m.LowerBound.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n110 - } - if m.UpperBound != nil { - data[i] = 0x22 - i++ - i = encodeVarintAgent(data, i, uint64(m.UpperBound.Size())) - n111, err := m.UpperBound.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n111 - } - if m.UncappedTarget != nil { - data[i] = 0x2a - i++ - i = encodeVarintAgent(data, i, uint64(m.UncappedTarget.Size())) - n112, err := m.UncappedTarget.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n112 - } - return i, nil -} - -func (m *VPACondition) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *VPACondition) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.ConditionType) > 0 { - data[i] = 0xa - i++ - i = encodeVarintAgent(data, i, uint64(len(m.ConditionType))) - i += copy(data[i:], m.ConditionType) - } - if len(m.ConditionStatus) > 0 { - data[i] = 0x12 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.ConditionStatus))) - i += copy(data[i:], m.ConditionStatus) - } - if m.LastTransitionTime != 0 { - data[i] = 0x18 - i++ - i = encodeVarintAgent(data, i, uint64(m.LastTransitionTime)) - } - if len(m.Reason) > 0 { - data[i] = 0x22 - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Reason))) - i += copy(data[i:], m.Reason) - } - if len(m.Message) > 0 { - data[i] = 0x2a - i++ - i = encodeVarintAgent(data, i, uint64(len(m.Message))) - i += copy(data[i:], m.Message) - } - return i, nil -} - -func encodeFixed64Agent(data []byte, offset int, v uint64) int { - data[offset] = uint8(v) - data[offset+1] = uint8(v >> 8) - data[offset+2] = uint8(v >> 16) - data[offset+3] = uint8(v >> 24) - data[offset+4] = uint8(v >> 32) - data[offset+5] = uint8(v >> 40) - data[offset+6] = uint8(v >> 48) - data[offset+7] = uint8(v >> 56) - return offset + 8 -} -func encodeFixed32Agent(data []byte, offset int, v uint32) int { - data[offset] = uint8(v) - data[offset+1] = uint8(v >> 8) - data[offset+2] = uint8(v >> 16) - data[offset+3] = uint8(v >> 24) - return offset + 4 -} -func encodeVarintAgent(data []byte, offset int, v uint64) int { - for v >= 1<<7 { - data[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - data[offset] = uint8(v) - return offset + 1 + return 0 } -func (m *ResCollector) Size() (n int) { - var l int - _ = l - if m.Header != nil { - l = m.Header.Size() - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.Message) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if m.Status != nil { - l = m.Status.Size() - n += 1 + l + sovAgent(uint64(l)) + +func (x *ProcessStat) GetInvoluntaryCtxSwitches() uint64 { + if x != nil { + return x.InvoluntaryCtxSwitches } - return n + return 0 } -func (m *ResCollector_Header) Size() (n int) { - var l int - _ = l - if m.Type != 0 { - n += 1 + sovAgent(uint64(m.Type)) +func (x *ProcessStat) GetByteKey() []byte { + if x != nil { + return x.ByteKey } - return n + return nil } -func (m *CollectorProc) Size() (n int) { - var l int - _ = l - l = len(m.HostName) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if len(m.Processes) > 0 { - for _, e := range m.Processes { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) - } - } - if m.Host != nil { - l = m.Host.Size() - n += 1 + l + sovAgent(uint64(l)) - } - if m.Info != nil { - l = m.Info.Size() - n += 1 + l + sovAgent(uint64(l)) +func (x *ProcessStat) GetContainerByteKey() []byte { + if x != nil { + return x.ContainerByteKey } - if m.GroupId != 0 { - n += 1 + sovAgent(uint64(m.GroupId)) - } - if m.GroupSize != 0 { - n += 1 + sovAgent(uint64(m.GroupSize)) + return nil +} + +// ProcStatsWithPerm is holding attributes for processes that requires extra permission to collect. +// It is used to pass data between system-probe and process-agent +type ProcStatsWithPerm struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + OpenFDCount int32 `protobuf:"varint,1,opt,name=openFDCount,proto3" json:"openFDCount,omitempty"` + ReadCount int64 `protobuf:"varint,2,opt,name=readCount,proto3" json:"readCount,omitempty"` + WriteCount int64 `protobuf:"varint,3,opt,name=writeCount,proto3" json:"writeCount,omitempty"` + ReadBytes int64 `protobuf:"varint,4,opt,name=readBytes,proto3" json:"readBytes,omitempty"` + WriteBytes int64 `protobuf:"varint,5,opt,name=writeBytes,proto3" json:"writeBytes,omitempty"` +} + +func (x *ProcStatsWithPerm) Reset() { + *x = ProcStatsWithPerm{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[39] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - if len(m.Containers) > 0 { - for _, e := range m.Containers { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) +} + +func (x *ProcStatsWithPerm) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ProcStatsWithPerm) ProtoMessage() {} + +func (x *ProcStatsWithPerm) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[39] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - l = len(m.NetworkId) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if m.ContainerHostType != 0 { - n += 1 + sovAgent(uint64(m.ContainerHostType)) - } - if m.Hints != nil { - n += m.Hints.Size() - } - return n + return mi.MessageOf(x) } -func (m *CollectorProc_HintMask) Size() (n int) { - var l int - _ = l - n += 1 + sovAgent(uint64(m.HintMask)) - return n +// Deprecated: Use ProcStatsWithPerm.ProtoReflect.Descriptor instead. +func (*ProcStatsWithPerm) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{39} } -func (m *CollectorProcDiscovery) Size() (n int) { - var l int - _ = l - l = len(m.HostName) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if m.GroupId != 0 { - n += 1 + sovAgent(uint64(m.GroupId)) - } - if m.GroupSize != 0 { - n += 1 + sovAgent(uint64(m.GroupSize)) - } - if len(m.ProcessDiscoveries) > 0 { - for _, e := range m.ProcessDiscoveries { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) - } + +func (x *ProcStatsWithPerm) GetOpenFDCount() int32 { + if x != nil { + return x.OpenFDCount } - if m.Host != nil { - l = m.Host.Size() - n += 1 + l + sovAgent(uint64(l)) + return 0 +} + +func (x *ProcStatsWithPerm) GetReadCount() int64 { + if x != nil { + return x.ReadCount } - return n + return 0 } -func (m *CollectorRealTime) Size() (n int) { - var l int - _ = l - l = len(m.HostName) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) +func (x *ProcStatsWithPerm) GetWriteCount() int64 { + if x != nil { + return x.WriteCount } - if len(m.Stats) > 0 { - for _, e := range m.Stats { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) - } - } - if m.HostId != 0 { - n += 1 + sovAgent(uint64(m.HostId)) - } - if m.OrgId != 0 { - n += 1 + sovAgent(uint64(m.OrgId)) - } - if m.GroupId != 0 { - n += 1 + sovAgent(uint64(m.GroupId)) - } - if m.GroupSize != 0 { - n += 1 + sovAgent(uint64(m.GroupSize)) - } - if m.NumCpus != 0 { - n += 1 + sovAgent(uint64(m.NumCpus)) - } - if m.TotalMemory != 0 { - n += 1 + sovAgent(uint64(m.TotalMemory)) - } - if len(m.ContainerStats) > 0 { - for _, e := range m.ContainerStats { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) - } - } - if m.ContainerHostType != 0 { - n += 1 + sovAgent(uint64(m.ContainerHostType)) - } - return n + return 0 } -func (m *CollectorContainer) Size() (n int) { - var l int - _ = l - l = len(m.HostName) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if m.Info != nil { - l = m.Info.Size() - n += 1 + l + sovAgent(uint64(l)) - } - if len(m.Containers) > 0 { - for _, e := range m.Containers { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) - } - } - if m.GroupId != 0 { - n += 1 + sovAgent(uint64(m.GroupId)) +func (x *ProcStatsWithPerm) GetReadBytes() int64 { + if x != nil { + return x.ReadBytes } - if m.GroupSize != 0 { - n += 1 + sovAgent(uint64(m.GroupSize)) - } - if m.Host != nil { - l = m.Host.Size() - n += 1 + l + sovAgent(uint64(l)) - } - if m.ContainerHostType != 0 { - n += 1 + sovAgent(uint64(m.ContainerHostType)) - } - l = len(m.NetworkId) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - return n + return 0 } -func (m *CollectorContainerRealTime) Size() (n int) { - var l int - _ = l - l = len(m.HostName) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if len(m.Stats) > 0 { - for _, e := range m.Stats { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) - } - } - if m.NumCpus != 0 { - n += 1 + sovAgent(uint64(m.NumCpus)) +func (x *ProcStatsWithPerm) GetWriteBytes() int64 { + if x != nil { + return x.WriteBytes } - if m.TotalMemory != 0 { - n += 1 + sovAgent(uint64(m.TotalMemory)) - } - if m.HostId != 0 { - n += 1 + sovAgent(uint64(m.HostId)) - } - if m.GroupId != 0 { - n += 1 + sovAgent(uint64(m.GroupId)) - } - if m.GroupSize != 0 { - n += 1 + sovAgent(uint64(m.GroupSize)) - } - if m.ContainerHostType != 0 { - n += 1 + sovAgent(uint64(m.ContainerHostType)) - } - return n + return 0 } -func (m *CollectorReqStatus) Size() (n int) { - var l int - _ = l - l = len(m.HostName) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - return n +// ProcStatsWithPermByPID stores ProcStatsWithPerm in a map with key as PIDs +type ProcStatsWithPermByPID struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + StatsByPID map[int32]*ProcStatsWithPerm `protobuf:"bytes,1,rep,name=statsByPID,proto3" json:"statsByPID,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` } -func (m *CollectorPod) Size() (n int) { - var l int - _ = l - l = len(m.HostName) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.ClusterName) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.ClusterId) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if m.GroupId != 0 { - n += 1 + sovAgent(uint64(m.GroupId)) - } - if m.GroupSize != 0 { - n += 1 + sovAgent(uint64(m.GroupSize)) - } - if len(m.Pods) > 0 { - for _, e := range m.Pods { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) - } +func (x *ProcStatsWithPermByPID) Reset() { + *x = ProcStatsWithPermByPID{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[40] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - if m.Host != nil { - l = m.Host.Size() - n += 1 + l + sovAgent(uint64(l)) - } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - l = len(s) - n += 1 + l + sovAgent(uint64(l)) - } - } - return n } -func (m *CollectorReplicaSet) Size() (n int) { - var l int - _ = l - l = len(m.ClusterName) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.ClusterId) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if m.GroupId != 0 { - n += 1 + sovAgent(uint64(m.GroupId)) - } - if m.GroupSize != 0 { - n += 1 + sovAgent(uint64(m.GroupSize)) - } - if len(m.ReplicaSets) > 0 { - for _, e := range m.ReplicaSets { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) - } - } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - l = len(s) - n += 1 + l + sovAgent(uint64(l)) - } - } - return n +func (x *ProcStatsWithPermByPID) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CollectorDeployment) Size() (n int) { - var l int - _ = l - l = len(m.ClusterName) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.ClusterId) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if m.GroupId != 0 { - n += 1 + sovAgent(uint64(m.GroupId)) - } - if m.GroupSize != 0 { - n += 1 + sovAgent(uint64(m.GroupSize)) - } - if len(m.Deployments) > 0 { - for _, e := range m.Deployments { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) - } - } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - l = len(s) - n += 1 + l + sovAgent(uint64(l)) +func (*ProcStatsWithPermByPID) ProtoMessage() {} + +func (x *ProcStatsWithPermByPID) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[40] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - return n + return mi.MessageOf(x) } -func (m *CollectorService) Size() (n int) { - var l int - _ = l - l = len(m.ClusterName) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.ClusterId) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if m.GroupId != 0 { - n += 1 + sovAgent(uint64(m.GroupId)) - } - if m.GroupSize != 0 { - n += 1 + sovAgent(uint64(m.GroupSize)) - } - if len(m.Services) > 0 { - for _, e := range m.Services { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) - } - } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - l = len(s) - n += 1 + l + sovAgent(uint64(l)) - } - } - return n +// Deprecated: Use ProcStatsWithPermByPID.ProtoReflect.Descriptor instead. +func (*ProcStatsWithPermByPID) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{40} } -func (m *CollectorNode) Size() (n int) { - var l int - _ = l - l = len(m.ClusterName) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.ClusterId) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if m.GroupId != 0 { - n += 1 + sovAgent(uint64(m.GroupId)) - } - if m.GroupSize != 0 { - n += 1 + sovAgent(uint64(m.GroupSize)) - } - if len(m.Nodes) > 0 { - for _, e := range m.Nodes { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) - } - } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - l = len(s) - n += 1 + l + sovAgent(uint64(l)) - } - } - if len(m.HostAliasMapping) > 0 { - for k, v := range m.HostAliasMapping { - _ = k - _ = v - l = 0 - if v != nil { - l = v.Size() - l += 1 + sovAgent(uint64(l)) - } - mapEntrySize := 1 + len(k) + sovAgent(uint64(len(k))) + l - n += mapEntrySize + 1 + sovAgent(uint64(mapEntrySize)) - } +func (x *ProcStatsWithPermByPID) GetStatsByPID() map[int32]*ProcStatsWithPerm { + if x != nil { + return x.StatsByPID } - return n + return nil } -func (m *CollectorCluster) Size() (n int) { - var l int - _ = l - l = len(m.ClusterName) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.ClusterId) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if m.GroupId != 0 { - n += 1 + sovAgent(uint64(m.GroupId)) - } - if m.GroupSize != 0 { - n += 1 + sovAgent(uint64(m.GroupSize)) - } - if m.Cluster != nil { - l = m.Cluster.Size() - n += 1 + l + sovAgent(uint64(l)) - } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - l = len(s) - n += 1 + l + sovAgent(uint64(l)) - } - } - return n +// ContainerStat is used for real-time container messages. It should only contain +// data that can change for a running container (and relevant information to +// generate a key). We will send a lot of these in the real-time messages so +// it's critical to keep this small (basically no strings except ID) +type ContainerStat struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + UserPct float32 `protobuf:"fixed32,2,opt,name=userPct,proto3" json:"userPct,omitempty"` + SystemPct float32 `protobuf:"fixed32,3,opt,name=systemPct,proto3" json:"systemPct,omitempty"` + TotalPct float32 `protobuf:"fixed32,4,opt,name=totalPct,proto3" json:"totalPct,omitempty"` + CpuLimit float32 `protobuf:"fixed32,5,opt,name=cpuLimit,proto3" json:"cpuLimit,omitempty"` + MemRss uint64 `protobuf:"varint,6,opt,name=memRss,proto3" json:"memRss,omitempty"` + MemCache uint64 `protobuf:"varint,7,opt,name=memCache,proto3" json:"memCache,omitempty"` + MemLimit uint64 `protobuf:"varint,8,opt,name=memLimit,proto3" json:"memLimit,omitempty"` + Rbps float32 `protobuf:"fixed32,9,opt,name=rbps,proto3" json:"rbps,omitempty"` + Wbps float32 `protobuf:"fixed32,10,opt,name=wbps,proto3" json:"wbps,omitempty"` + NetRcvdPs float32 `protobuf:"fixed32,11,opt,name=netRcvdPs,proto3" json:"netRcvdPs,omitempty"` + NetSentPs float32 `protobuf:"fixed32,12,opt,name=netSentPs,proto3" json:"netSentPs,omitempty"` + NetRcvdBps float32 `protobuf:"fixed32,13,opt,name=netRcvdBps,proto3" json:"netRcvdBps,omitempty"` + NetSentBps float32 `protobuf:"fixed32,14,opt,name=netSentBps,proto3" json:"netSentBps,omitempty"` + State ContainerState `protobuf:"varint,15,opt,name=state,proto3,enum=datadog.process_agent.ContainerState" json:"state,omitempty"` + Health ContainerHealth `protobuf:"varint,16,opt,name=health,proto3,enum=datadog.process_agent.ContainerHealth" json:"health,omitempty"` + // Post-resolved fields + Key uint32 `protobuf:"varint,17,opt,name=key,proto3" json:"key,omitempty"` + Started int64 `protobuf:"varint,18,opt,name=started,proto3" json:"started,omitempty"` + ByteKey []byte `protobuf:"bytes,19,opt,name=byteKey,proto3" json:"byteKey,omitempty"` + ThreadCount uint64 `protobuf:"varint,20,opt,name=threadCount,proto3" json:"threadCount,omitempty"` + ThreadLimit uint64 `protobuf:"varint,21,opt,name=threadLimit,proto3" json:"threadLimit,omitempty"` + MemUsage uint64 `protobuf:"varint,22,opt,name=memUsage,proto3" json:"memUsage,omitempty"` + CpuUsageNs float32 `protobuf:"fixed32,23,opt,name=cpuUsageNs,proto3" json:"cpuUsageNs,omitempty"` + MemAccounted uint64 `protobuf:"varint,24,opt,name=memAccounted,proto3" json:"memAccounted,omitempty"` } -func (m *CollectorManifest) Size() (n int) { - var l int - _ = l - l = len(m.ClusterName) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.ClusterId) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) +func (x *ContainerStat) Reset() { + *x = ContainerStat{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[41] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - if m.GroupId != 0 { - n += 1 + sovAgent(uint64(m.GroupId)) - } - if m.GroupSize != 0 { - n += 1 + sovAgent(uint64(m.GroupSize)) - } - if len(m.Manifests) > 0 { - for _, e := range m.Manifests { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) +} + +func (x *ContainerStat) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ContainerStat) ProtoMessage() {} + +func (x *ContainerStat) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[41] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - return n + return mi.MessageOf(x) } -func (m *CollectorManifestCRD) Size() (n int) { - var l int - _ = l - if m.Manifest != nil { - l = m.Manifest.Size() - n += 1 + l + sovAgent(uint64(l)) - } - return n +// Deprecated: Use ContainerStat.ProtoReflect.Descriptor instead. +func (*ContainerStat) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{41} } -func (m *CollectorManifestCR) Size() (n int) { - var l int - _ = l - if m.Manifest != nil { - l = m.Manifest.Size() - n += 1 + l + sovAgent(uint64(l)) +func (x *ContainerStat) GetId() string { + if x != nil { + return x.Id } - return n + return "" } -func (m *CollectorNamespace) Size() (n int) { - var l int - _ = l - l = len(m.ClusterName) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.ClusterId) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if m.GroupId != 0 { - n += 1 + sovAgent(uint64(m.GroupId)) - } - if m.GroupSize != 0 { - n += 1 + sovAgent(uint64(m.GroupSize)) - } - if len(m.Namespaces) > 0 { - for _, e := range m.Namespaces { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) - } - } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - l = len(s) - n += 1 + l + sovAgent(uint64(l)) - } +func (x *ContainerStat) GetUserPct() float32 { + if x != nil { + return x.UserPct } - return n + return 0 } -func (m *CollectorJob) Size() (n int) { - var l int - _ = l - l = len(m.ClusterName) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.ClusterId) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if m.GroupId != 0 { - n += 1 + sovAgent(uint64(m.GroupId)) - } - if m.GroupSize != 0 { - n += 1 + sovAgent(uint64(m.GroupSize)) - } - if len(m.Jobs) > 0 { - for _, e := range m.Jobs { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) - } - } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - l = len(s) - n += 1 + l + sovAgent(uint64(l)) - } +func (x *ContainerStat) GetSystemPct() float32 { + if x != nil { + return x.SystemPct } - return n + return 0 } -func (m *CollectorCronJob) Size() (n int) { - var l int - _ = l - l = len(m.ClusterName) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) +func (x *ContainerStat) GetTotalPct() float32 { + if x != nil { + return x.TotalPct } - l = len(m.ClusterId) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if m.GroupId != 0 { - n += 1 + sovAgent(uint64(m.GroupId)) + return 0 +} + +func (x *ContainerStat) GetCpuLimit() float32 { + if x != nil { + return x.CpuLimit } - if m.GroupSize != 0 { - n += 1 + sovAgent(uint64(m.GroupSize)) + return 0 +} + +func (x *ContainerStat) GetMemRss() uint64 { + if x != nil { + return x.MemRss } - if len(m.CronJobs) > 0 { - for _, e := range m.CronJobs { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) - } + return 0 +} + +func (x *ContainerStat) GetMemCache() uint64 { + if x != nil { + return x.MemCache } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - l = len(s) - n += 1 + l + sovAgent(uint64(l)) - } + return 0 +} + +func (x *ContainerStat) GetMemLimit() uint64 { + if x != nil { + return x.MemLimit } - return n + return 0 } -func (m *CollectorDaemonSet) Size() (n int) { - var l int - _ = l - l = len(m.ClusterName) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) +func (x *ContainerStat) GetRbps() float32 { + if x != nil { + return x.Rbps } - l = len(m.ClusterId) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) + return 0 +} + +func (x *ContainerStat) GetWbps() float32 { + if x != nil { + return x.Wbps } - if m.GroupId != 0 { - n += 1 + sovAgent(uint64(m.GroupId)) + return 0 +} + +func (x *ContainerStat) GetNetRcvdPs() float32 { + if x != nil { + return x.NetRcvdPs } - if m.GroupSize != 0 { - n += 1 + sovAgent(uint64(m.GroupSize)) + return 0 +} + +func (x *ContainerStat) GetNetSentPs() float32 { + if x != nil { + return x.NetSentPs } - if len(m.DaemonSets) > 0 { - for _, e := range m.DaemonSets { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) - } + return 0 +} + +func (x *ContainerStat) GetNetRcvdBps() float32 { + if x != nil { + return x.NetRcvdBps } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - l = len(s) - n += 1 + l + sovAgent(uint64(l)) - } + return 0 +} + +func (x *ContainerStat) GetNetSentBps() float32 { + if x != nil { + return x.NetSentBps } - return n + return 0 } -func (m *CollectorStatefulSet) Size() (n int) { - var l int - _ = l - l = len(m.ClusterName) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) +func (x *ContainerStat) GetState() ContainerState { + if x != nil { + return x.State } - l = len(m.ClusterId) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) + return ContainerState_unknown +} + +func (x *ContainerStat) GetHealth() ContainerHealth { + if x != nil { + return x.Health } - if m.GroupId != 0 { - n += 1 + sovAgent(uint64(m.GroupId)) + return ContainerHealth_unknownHealth +} + +func (x *ContainerStat) GetKey() uint32 { + if x != nil { + return x.Key } - if m.GroupSize != 0 { - n += 1 + sovAgent(uint64(m.GroupSize)) + return 0 +} + +func (x *ContainerStat) GetStarted() int64 { + if x != nil { + return x.Started } - if len(m.StatefulSets) > 0 { - for _, e := range m.StatefulSets { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) - } + return 0 +} + +func (x *ContainerStat) GetByteKey() []byte { + if x != nil { + return x.ByteKey } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - l = len(s) - n += 1 + l + sovAgent(uint64(l)) - } + return nil +} + +func (x *ContainerStat) GetThreadCount() uint64 { + if x != nil { + return x.ThreadCount } - return n + return 0 } -func (m *CollectorPersistentVolume) Size() (n int) { - var l int - _ = l - l = len(m.ClusterName) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) +func (x *ContainerStat) GetThreadLimit() uint64 { + if x != nil { + return x.ThreadLimit } - l = len(m.ClusterId) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) + return 0 +} + +func (x *ContainerStat) GetMemUsage() uint64 { + if x != nil { + return x.MemUsage } - if m.GroupId != 0 { - n += 1 + sovAgent(uint64(m.GroupId)) + return 0 +} + +func (x *ContainerStat) GetCpuUsageNs() float32 { + if x != nil { + return x.CpuUsageNs } - if m.GroupSize != 0 { - n += 1 + sovAgent(uint64(m.GroupSize)) + return 0 +} + +func (x *ContainerStat) GetMemAccounted() uint64 { + if x != nil { + return x.MemAccounted } - if len(m.PersistentVolumes) > 0 { - for _, e := range m.PersistentVolumes { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) - } + return 0 +} + +type SystemInfo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` + Os *OSInfo `protobuf:"bytes,2,opt,name=os,proto3" json:"os,omitempty"` + Cpus []*CPUInfo `protobuf:"bytes,3,rep,name=cpus,proto3" json:"cpus,omitempty"` + TotalMemory int64 `protobuf:"varint,5,opt,name=totalMemory,proto3" json:"totalMemory,omitempty"` +} + +func (x *SystemInfo) Reset() { + *x = SystemInfo{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[42] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - l = len(s) - n += 1 + l + sovAgent(uint64(l)) +} + +func (x *SystemInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SystemInfo) ProtoMessage() {} + +func (x *SystemInfo) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[42] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - return n + return mi.MessageOf(x) +} + +// Deprecated: Use SystemInfo.ProtoReflect.Descriptor instead. +func (*SystemInfo) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{42} } -func (m *CollectorPersistentVolumeClaim) Size() (n int) { - var l int - _ = l - l = len(m.ClusterName) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) +func (x *SystemInfo) GetUuid() string { + if x != nil { + return x.Uuid } - l = len(m.ClusterId) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) + return "" +} + +func (x *SystemInfo) GetOs() *OSInfo { + if x != nil { + return x.Os } - if m.GroupId != 0 { - n += 1 + sovAgent(uint64(m.GroupId)) + return nil +} + +func (x *SystemInfo) GetCpus() []*CPUInfo { + if x != nil { + return x.Cpus } - if m.GroupSize != 0 { - n += 1 + sovAgent(uint64(m.GroupSize)) + return nil +} + +func (x *SystemInfo) GetTotalMemory() int64 { + if x != nil { + return x.TotalMemory } - if len(m.PersistentVolumeClaims) > 0 { - for _, e := range m.PersistentVolumeClaims { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) - } + return 0 +} + +type OSInfo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Platform string `protobuf:"bytes,2,opt,name=platform,proto3" json:"platform,omitempty"` + Family string `protobuf:"bytes,3,opt,name=family,proto3" json:"family,omitempty"` + Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"` + KernelVersion string `protobuf:"bytes,5,opt,name=kernelVersion,proto3" json:"kernelVersion,omitempty"` +} + +func (x *OSInfo) Reset() { + *x = OSInfo{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[43] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - l = len(s) - n += 1 + l + sovAgent(uint64(l)) +} + +func (x *OSInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OSInfo) ProtoMessage() {} + +func (x *OSInfo) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[43] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - return n + return mi.MessageOf(x) } -func (m *CollectorRole) Size() (n int) { - var l int - _ = l - l = len(m.ClusterName) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.ClusterId) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if m.GroupId != 0 { - n += 1 + sovAgent(uint64(m.GroupId)) - } - if m.GroupSize != 0 { - n += 1 + sovAgent(uint64(m.GroupSize)) - } - if len(m.Roles) > 0 { - for _, e := range m.Roles { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) - } +// Deprecated: Use OSInfo.ProtoReflect.Descriptor instead. +func (*OSInfo) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{43} +} + +func (x *OSInfo) GetName() string { + if x != nil { + return x.Name } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - l = len(s) - n += 1 + l + sovAgent(uint64(l)) - } + return "" +} + +func (x *OSInfo) GetPlatform() string { + if x != nil { + return x.Platform } - return n + return "" } -func (m *CollectorRoleBinding) Size() (n int) { - var l int - _ = l - l = len(m.ClusterName) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) +func (x *OSInfo) GetFamily() string { + if x != nil { + return x.Family } - l = len(m.ClusterId) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) + return "" +} + +func (x *OSInfo) GetVersion() string { + if x != nil { + return x.Version } - if m.GroupId != 0 { - n += 1 + sovAgent(uint64(m.GroupId)) + return "" +} + +func (x *OSInfo) GetKernelVersion() string { + if x != nil { + return x.KernelVersion } - if m.GroupSize != 0 { - n += 1 + sovAgent(uint64(m.GroupSize)) - } - if len(m.RoleBindings) > 0 { - for _, e := range m.RoleBindings { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) - } + return "" +} + +type IOStat struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ReadRate float32 `protobuf:"fixed32,1,opt,name=readRate,proto3" json:"readRate,omitempty"` + WriteRate float32 `protobuf:"fixed32,2,opt,name=writeRate,proto3" json:"writeRate,omitempty"` + ReadBytesRate float32 `protobuf:"fixed32,3,opt,name=readBytesRate,proto3" json:"readBytesRate,omitempty"` + WriteBytesRate float32 `protobuf:"fixed32,4,opt,name=writeBytesRate,proto3" json:"writeBytesRate,omitempty"` +} + +func (x *IOStat) Reset() { + *x = IOStat{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[44] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - l = len(s) - n += 1 + l + sovAgent(uint64(l)) +} + +func (x *IOStat) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*IOStat) ProtoMessage() {} + +func (x *IOStat) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[44] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - return n + return mi.MessageOf(x) +} + +// Deprecated: Use IOStat.ProtoReflect.Descriptor instead. +func (*IOStat) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{44} } -func (m *CollectorClusterRole) Size() (n int) { - var l int - _ = l - l = len(m.ClusterName) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) +func (x *IOStat) GetReadRate() float32 { + if x != nil { + return x.ReadRate } - l = len(m.ClusterId) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) + return 0 +} + +func (x *IOStat) GetWriteRate() float32 { + if x != nil { + return x.WriteRate } - if m.GroupId != 0 { - n += 1 + sovAgent(uint64(m.GroupId)) + return 0 +} + +func (x *IOStat) GetReadBytesRate() float32 { + if x != nil { + return x.ReadBytesRate } - if m.GroupSize != 0 { - n += 1 + sovAgent(uint64(m.GroupSize)) + return 0 +} + +func (x *IOStat) GetWriteBytesRate() float32 { + if x != nil { + return x.WriteBytesRate } - if len(m.ClusterRoles) > 0 { - for _, e := range m.ClusterRoles { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) - } + return 0 +} + +type MemoryStat struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Rss uint64 `protobuf:"varint,1,opt,name=rss,proto3" json:"rss,omitempty"` + Vms uint64 `protobuf:"varint,2,opt,name=vms,proto3" json:"vms,omitempty"` + Swap uint64 `protobuf:"varint,3,opt,name=swap,proto3" json:"swap,omitempty"` + Shared uint64 `protobuf:"varint,4,opt,name=shared,proto3" json:"shared,omitempty"` + Text uint64 `protobuf:"varint,5,opt,name=text,proto3" json:"text,omitempty"` + Lib uint64 `protobuf:"varint,6,opt,name=lib,proto3" json:"lib,omitempty"` + Data uint64 `protobuf:"varint,7,opt,name=data,proto3" json:"data,omitempty"` + Dirty uint64 `protobuf:"varint,8,opt,name=dirty,proto3" json:"dirty,omitempty"` +} + +func (x *MemoryStat) Reset() { + *x = MemoryStat{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[45] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - l = len(s) - n += 1 + l + sovAgent(uint64(l)) +} + +func (x *MemoryStat) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MemoryStat) ProtoMessage() {} + +func (x *MemoryStat) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[45] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - return n + return mi.MessageOf(x) } -func (m *CollectorClusterRoleBinding) Size() (n int) { - var l int - _ = l - l = len(m.ClusterName) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.ClusterId) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if m.GroupId != 0 { - n += 1 + sovAgent(uint64(m.GroupId)) +// Deprecated: Use MemoryStat.ProtoReflect.Descriptor instead. +func (*MemoryStat) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{45} +} + +func (x *MemoryStat) GetRss() uint64 { + if x != nil { + return x.Rss } - if m.GroupSize != 0 { - n += 1 + sovAgent(uint64(m.GroupSize)) + return 0 +} + +func (x *MemoryStat) GetVms() uint64 { + if x != nil { + return x.Vms } - if len(m.ClusterRoleBindings) > 0 { - for _, e := range m.ClusterRoleBindings { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) - } + return 0 +} + +func (x *MemoryStat) GetSwap() uint64 { + if x != nil { + return x.Swap } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - l = len(s) - n += 1 + l + sovAgent(uint64(l)) - } + return 0 +} + +func (x *MemoryStat) GetShared() uint64 { + if x != nil { + return x.Shared } - return n + return 0 } -func (m *CollectorServiceAccount) Size() (n int) { - var l int - _ = l - l = len(m.ClusterName) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) +func (x *MemoryStat) GetText() uint64 { + if x != nil { + return x.Text } - l = len(m.ClusterId) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) + return 0 +} + +func (x *MemoryStat) GetLib() uint64 { + if x != nil { + return x.Lib } - if m.GroupId != 0 { - n += 1 + sovAgent(uint64(m.GroupId)) + return 0 +} + +func (x *MemoryStat) GetData() uint64 { + if x != nil { + return x.Data } - if m.GroupSize != 0 { - n += 1 + sovAgent(uint64(m.GroupSize)) + return 0 +} + +func (x *MemoryStat) GetDirty() uint64 { + if x != nil { + return x.Dirty } - if len(m.ServiceAccounts) > 0 { - for _, e := range m.ServiceAccounts { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) - } + return 0 +} + +type CPUStat struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + LastCpu string `protobuf:"bytes,1,opt,name=lastCpu,proto3" json:"lastCpu,omitempty"` + TotalPct float32 `protobuf:"fixed32,2,opt,name=totalPct,proto3" json:"totalPct,omitempty"` + UserPct float32 `protobuf:"fixed32,3,opt,name=userPct,proto3" json:"userPct,omitempty"` + SystemPct float32 `protobuf:"fixed32,4,opt,name=systemPct,proto3" json:"systemPct,omitempty"` + NumThreads int32 `protobuf:"varint,5,opt,name=numThreads,proto3" json:"numThreads,omitempty"` + Cpus []*SingleCPUStat `protobuf:"bytes,6,rep,name=cpus,proto3" json:"cpus,omitempty"` + Nice int32 `protobuf:"varint,7,opt,name=nice,proto3" json:"nice,omitempty"` + UserTime int64 `protobuf:"varint,8,opt,name=userTime,proto3" json:"userTime,omitempty"` + SystemTime int64 `protobuf:"varint,9,opt,name=systemTime,proto3" json:"systemTime,omitempty"` +} + +func (x *CPUStat) Reset() { + *x = CPUStat{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[46] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - l = len(s) - n += 1 + l + sovAgent(uint64(l)) +} + +func (x *CPUStat) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CPUStat) ProtoMessage() {} + +func (x *CPUStat) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[46] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - return n + return mi.MessageOf(x) } -func (m *CollectorIngress) Size() (n int) { - var l int - _ = l - l = len(m.ClusterName) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.ClusterId) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) +// Deprecated: Use CPUStat.ProtoReflect.Descriptor instead. +func (*CPUStat) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{46} +} + +func (x *CPUStat) GetLastCpu() string { + if x != nil { + return x.LastCpu } - if m.GroupId != 0 { - n += 1 + sovAgent(uint64(m.GroupId)) + return "" +} + +func (x *CPUStat) GetTotalPct() float32 { + if x != nil { + return x.TotalPct } - if m.GroupSize != 0 { - n += 1 + sovAgent(uint64(m.GroupSize)) + return 0 +} + +func (x *CPUStat) GetUserPct() float32 { + if x != nil { + return x.UserPct } - if len(m.Ingresses) > 0 { - for _, e := range m.Ingresses { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) - } + return 0 +} + +func (x *CPUStat) GetSystemPct() float32 { + if x != nil { + return x.SystemPct } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - l = len(s) - n += 1 + l + sovAgent(uint64(l)) - } + return 0 +} + +func (x *CPUStat) GetNumThreads() int32 { + if x != nil { + return x.NumThreads } - return n + return 0 } -func (m *CollectorVerticalPodAutoscaler) Size() (n int) { - var l int - _ = l - l = len(m.ClusterName) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) +func (x *CPUStat) GetCpus() []*SingleCPUStat { + if x != nil { + return x.Cpus } - l = len(m.ClusterId) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) + return nil +} + +func (x *CPUStat) GetNice() int32 { + if x != nil { + return x.Nice } - if m.GroupId != 0 { - n += 1 + sovAgent(uint64(m.GroupId)) + return 0 +} + +func (x *CPUStat) GetUserTime() int64 { + if x != nil { + return x.UserTime } - if m.GroupSize != 0 { - n += 1 + sovAgent(uint64(m.GroupSize)) + return 0 +} + +func (x *CPUStat) GetSystemTime() int64 { + if x != nil { + return x.SystemTime } - if len(m.VerticalPodAutoscalers) > 0 { - for _, e := range m.VerticalPodAutoscalers { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) - } + return 0 +} + +type SingleCPUStat struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + TotalPct float32 `protobuf:"fixed32,2,opt,name=totalPct,proto3" json:"totalPct,omitempty"` +} + +func (x *SingleCPUStat) Reset() { + *x = SingleCPUStat{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[47] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - l = len(s) - n += 1 + l + sovAgent(uint64(l)) +} + +func (x *SingleCPUStat) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SingleCPUStat) ProtoMessage() {} + +func (x *SingleCPUStat) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[47] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - return n + return mi.MessageOf(x) } -func (m *CollectorStatus) Size() (n int) { - var l int - _ = l - if m.ActiveClients != 0 { - n += 1 + sovAgent(uint64(m.ActiveClients)) - } - if m.Interval != 0 { - n += 1 + sovAgent(uint64(m.Interval)) - } - return n +// Deprecated: Use SingleCPUStat.ProtoReflect.Descriptor instead. +func (*SingleCPUStat) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{47} } -func (m *Process) Size() (n int) { - var l int - _ = l - if m.Key != 0 { - n += 1 + sovAgent(uint64(m.Key)) - } - if m.Pid != 0 { - n += 1 + sovAgent(uint64(m.Pid)) - } - if m.Host != nil { - l = m.Host.Size() - n += 1 + l + sovAgent(uint64(l)) - } - if m.Command != nil { - l = m.Command.Size() - n += 1 + l + sovAgent(uint64(l)) - } - if m.User != nil { - l = m.User.Size() - n += 1 + l + sovAgent(uint64(l)) - } - if m.Memory != nil { - l = m.Memory.Size() - n += 1 + l + sovAgent(uint64(l)) - } - if m.Cpu != nil { - l = m.Cpu.Size() - n += 1 + l + sovAgent(uint64(l)) +func (x *SingleCPUStat) GetName() string { + if x != nil { + return x.Name } - if m.CreateTime != 0 { - n += 1 + sovAgent(uint64(m.CreateTime)) - } - if m.Container != nil { - l = m.Container.Size() - n += 1 + l + sovAgent(uint64(l)) - } - if m.OpenFdCount != 0 { - n += 1 + sovAgent(uint64(m.OpenFdCount)) - } - if m.State != 0 { - n += 1 + sovAgent(uint64(m.State)) - } - if m.IoStat != nil { - l = m.IoStat.Size() - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.ContainerId) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if m.ContainerKey != 0 { - n += 1 + sovAgent(uint64(m.ContainerKey)) - } - if m.VoluntaryCtxSwitches != 0 { - n += 2 + sovAgent(uint64(m.VoluntaryCtxSwitches)) - } - if m.InvoluntaryCtxSwitches != 0 { - n += 2 + sovAgent(uint64(m.InvoluntaryCtxSwitches)) - } - l = len(m.ByteKey) - if l > 0 { - n += 2 + l + sovAgent(uint64(l)) - } - l = len(m.ContainerByteKey) - if l > 0 { - n += 2 + l + sovAgent(uint64(l)) - } - if m.NsPid != 0 { - n += 2 + sovAgent(uint64(m.NsPid)) - } - if m.Networks != nil { - l = m.Networks.Size() - n += 2 + l + sovAgent(uint64(l)) - } - return n + return "" } -func (m *ProcessDiscovery) Size() (n int) { - var l int - _ = l - if m.Pid != 0 { - n += 1 + sovAgent(uint64(m.Pid)) - } - if m.NsPid != 0 { - n += 1 + sovAgent(uint64(m.NsPid)) - } - if m.Host != nil { - l = m.Host.Size() - n += 1 + l + sovAgent(uint64(l)) - } - if m.Command != nil { - l = m.Command.Size() - n += 1 + l + sovAgent(uint64(l)) +func (x *SingleCPUStat) GetTotalPct() float32 { + if x != nil { + return x.TotalPct } - if m.User != nil { - l = m.User.Size() - n += 1 + l + sovAgent(uint64(l)) - } - if m.CreateTime != 0 { - n += 1 + sovAgent(uint64(m.CreateTime)) - } - l = len(m.ByteKey) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) + return 0 +} + +type CPUInfo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Number int32 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"` + Vendor string `protobuf:"bytes,2,opt,name=vendor,proto3" json:"vendor,omitempty"` + Family string `protobuf:"bytes,3,opt,name=family,proto3" json:"family,omitempty"` + Model string `protobuf:"bytes,4,opt,name=model,proto3" json:"model,omitempty"` + PhysicalId string `protobuf:"bytes,5,opt,name=physicalId,proto3" json:"physicalId,omitempty"` + CoreId string `protobuf:"bytes,6,opt,name=coreId,proto3" json:"coreId,omitempty"` + Cores int32 `protobuf:"varint,7,opt,name=cores,proto3" json:"cores,omitempty"` + Mhz int64 `protobuf:"varint,8,opt,name=mhz,proto3" json:"mhz,omitempty"` + CacheSize int32 `protobuf:"varint,9,opt,name=cacheSize,proto3" json:"cacheSize,omitempty"` +} + +func (x *CPUInfo) Reset() { + *x = CPUInfo{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[48] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return n } -func (m *Command) Size() (n int) { - var l int - _ = l - if len(m.Args) > 0 { - for _, s := range m.Args { - l = len(s) - n += 1 + l + sovAgent(uint64(l)) +func (x *CPUInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CPUInfo) ProtoMessage() {} + +func (x *CPUInfo) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[48] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - l = len(m.Cwd) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.Root) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if m.OnDisk { - n += 2 - } - if m.Ppid != 0 { - n += 1 + sovAgent(uint64(m.Ppid)) - } - if m.Pgroup != 0 { - n += 1 + sovAgent(uint64(m.Pgroup)) - } - l = len(m.Exe) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - return n + return mi.MessageOf(x) } -func (m *ProcessUser) Size() (n int) { - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if m.Uid != 0 { - n += 1 + sovAgent(uint64(m.Uid)) - } - if m.Gid != 0 { - n += 1 + sovAgent(uint64(m.Gid)) - } - if m.Euid != 0 { - n += 1 + sovAgent(uint64(m.Euid)) - } - if m.Egid != 0 { - n += 1 + sovAgent(uint64(m.Egid)) - } - if m.Suid != 0 { - n += 1 + sovAgent(uint64(m.Suid)) - } - if m.Sgid != 0 { - n += 1 + sovAgent(uint64(m.Sgid)) - } - return n +// Deprecated: Use CPUInfo.ProtoReflect.Descriptor instead. +func (*CPUInfo) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{48} } -func (m *ProcessNetworks) Size() (n int) { - var l int - _ = l - if m.ConnectionRate != 0 { - n += 5 +func (x *CPUInfo) GetNumber() int32 { + if x != nil { + return x.Number } - if m.BytesRate != 0 { - n += 5 - } - return n + return 0 } -func (m *ContainerAddr) Size() (n int) { - var l int - _ = l - l = len(m.Ip) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) +func (x *CPUInfo) GetVendor() string { + if x != nil { + return x.Vendor } - if m.Port != 0 { - n += 1 + sovAgent(uint64(m.Port)) - } - if m.Protocol != 0 { - n += 1 + sovAgent(uint64(m.Protocol)) - } - return n + return "" } -func (m *Container) Size() (n int) { - var l int - _ = l - l = len(m.Type) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) +func (x *CPUInfo) GetFamily() string { + if x != nil { + return x.Family } - l = len(m.Id) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) + return "" +} + +func (x *CPUInfo) GetModel() string { + if x != nil { + return x.Model } - l = len(m.Name) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) + return "" +} + +func (x *CPUInfo) GetPhysicalId() string { + if x != nil { + return x.PhysicalId } - l = len(m.Image) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) + return "" +} + +func (x *CPUInfo) GetCoreId() string { + if x != nil { + return x.CoreId } - if m.CpuLimit != 0 { - n += 5 + return "" +} + +func (x *CPUInfo) GetCores() int32 { + if x != nil { + return x.Cores } - if m.MemoryLimit != 0 { - n += 1 + sovAgent(uint64(m.MemoryLimit)) + return 0 +} + +func (x *CPUInfo) GetMhz() int64 { + if x != nil { + return x.Mhz } - if m.State != 0 { - n += 1 + sovAgent(uint64(m.State)) + return 0 +} + +func (x *CPUInfo) GetCacheSize() int32 { + if x != nil { + return x.CacheSize } - if m.Health != 0 { - n += 1 + sovAgent(uint64(m.Health)) + return 0 +} + +type Host struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + OrgId int32 `protobuf:"varint,2,opt,name=orgId,proto3" json:"orgId,omitempty"` + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + AllTags []string `protobuf:"bytes,6,rep,name=allTags,proto3" json:"allTags,omitempty"` + NumCpus int32 `protobuf:"varint,7,opt,name=numCpus,proto3" json:"numCpus,omitempty"` + TotalMemory int64 `protobuf:"varint,8,opt,name=totalMemory,proto3" json:"totalMemory,omitempty"` + TagIndex int32 `protobuf:"varint,9,opt,name=tagIndex,proto3" json:"tagIndex,omitempty"` + TagsModified int64 `protobuf:"varint,10,opt,name=tagsModified,proto3" json:"tagsModified,omitempty"` +} + +func (x *Host) Reset() { + *x = Host{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[49] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - if m.Created != 0 { - n += 1 + sovAgent(uint64(m.Created)) +} + +func (x *Host) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Host) ProtoMessage() {} + +func (x *Host) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[49] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - if m.Rbps != 0 { - n += 5 + return mi.MessageOf(x) +} + +// Deprecated: Use Host.ProtoReflect.Descriptor instead. +func (*Host) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{49} +} + +func (x *Host) GetId() int64 { + if x != nil { + return x.Id } - if m.Wbps != 0 { - n += 5 + return 0 +} + +func (x *Host) GetOrgId() int32 { + if x != nil { + return x.OrgId } - if m.Key != 0 { - n += 1 + sovAgent(uint64(m.Key)) + return 0 +} + +func (x *Host) GetName() string { + if x != nil { + return x.Name } - if m.NetRcvdPs != 0 { - n += 5 + return "" +} + +func (x *Host) GetAllTags() []string { + if x != nil { + return x.AllTags } - if m.NetSentPs != 0 { - n += 5 + return nil +} + +func (x *Host) GetNumCpus() int32 { + if x != nil { + return x.NumCpus } - if m.NetRcvdBps != 0 { - n += 6 + return 0 +} + +func (x *Host) GetTotalMemory() int64 { + if x != nil { + return x.TotalMemory } - if m.NetSentBps != 0 { - n += 6 + return 0 +} + +func (x *Host) GetTagIndex() int32 { + if x != nil { + return x.TagIndex } - if m.UserPct != 0 { - n += 6 + return 0 +} + +func (x *Host) GetTagsModified() int64 { + if x != nil { + return x.TagsModified } - if m.SystemPct != 0 { - n += 6 - } - if m.TotalPct != 0 { - n += 6 - } - if m.MemRss != 0 { - n += 2 + sovAgent(uint64(m.MemRss)) - } - if m.MemCache != 0 { - n += 2 + sovAgent(uint64(m.MemCache)) - } - if m.Host != nil { - l = m.Host.Size() - n += 2 + l + sovAgent(uint64(l)) - } - if m.Started != 0 { - n += 2 + sovAgent(uint64(m.Started)) - } - l = len(m.ByteKey) - if l > 0 { - n += 2 + l + sovAgent(uint64(l)) - } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - l = len(s) - n += 2 + l + sovAgent(uint64(l)) - } - } - if len(m.Addresses) > 0 { - for _, e := range m.Addresses { - l = e.Size() - n += 2 + l + sovAgent(uint64(l)) - } - } - if m.ThreadCount != 0 { - n += 2 + sovAgent(uint64(m.ThreadCount)) - } - if m.ThreadLimit != 0 { - n += 2 + sovAgent(uint64(m.ThreadLimit)) - } - if m.MemUsage != 0 { - n += 2 + sovAgent(uint64(m.MemUsage)) - } - if m.CpuUsageNs != 0 { - n += 6 - } - if m.MemAccounted != 0 { - n += 2 + sovAgent(uint64(m.MemAccounted)) - } - return n + return 0 } -func (m *ProcessStat) Size() (n int) { - var l int - _ = l - if m.Pid != 0 { - n += 1 + sovAgent(uint64(m.Pid)) - } - if m.CreateTime != 0 { - n += 1 + sovAgent(uint64(m.CreateTime)) - } - if m.Memory != nil { - l = m.Memory.Size() - n += 1 + l + sovAgent(uint64(l)) - } - if m.Cpu != nil { - l = m.Cpu.Size() - n += 1 + l + sovAgent(uint64(l)) - } - if m.Nice != 0 { - n += 1 + sovAgent(uint64(m.Nice)) - } - if m.Threads != 0 { - n += 1 + sovAgent(uint64(m.Threads)) - } - if m.OpenFdCount != 0 { - n += 1 + sovAgent(uint64(m.OpenFdCount)) - } - if m.Key != 0 { - n += 1 + sovAgent(uint64(m.Key)) - } - l = len(m.ContainerId) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if m.ContainerState != 0 { - n += 1 + sovAgent(uint64(m.ContainerState)) - } - if m.ProcessState != 0 { - n += 1 + sovAgent(uint64(m.ProcessState)) - } - if m.ContainerHealth != 0 { - n += 1 + sovAgent(uint64(m.ContainerHealth)) - } - if m.ContainerRbps != 0 { - n += 6 - } - if m.ContainerWbps != 0 { - n += 6 - } - if m.ContainerKey != 0 { - n += 2 + sovAgent(uint64(m.ContainerKey)) - } - if m.IoStat != nil { - l = m.IoStat.Size() - n += 2 + l + sovAgent(uint64(l)) - } - if m.ContainerNetRcvdPs != 0 { - n += 6 - } - if m.ContainerNetSentPs != 0 { - n += 6 - } - if m.ContainerNetRcvdBps != 0 { - n += 6 - } - if m.ContainerNetSentBps != 0 { - n += 6 - } - if m.VoluntaryCtxSwitches != 0 { - n += 2 + sovAgent(uint64(m.VoluntaryCtxSwitches)) - } - if m.InvoluntaryCtxSwitches != 0 { - n += 2 + sovAgent(uint64(m.InvoluntaryCtxSwitches)) - } - l = len(m.ByteKey) - if l > 0 { - n += 2 + l + sovAgent(uint64(l)) - } - l = len(m.ContainerByteKey) - if l > 0 { - n += 2 + l + sovAgent(uint64(l)) - } - if m.Networks != nil { - l = m.Networks.Size() - n += 2 + l + sovAgent(uint64(l)) - } - return n +type Cluster struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + NodeCount int32 `protobuf:"varint,1,opt,name=nodeCount,proto3" json:"nodeCount,omitempty"` + KubeletVersions map[string]int32 `protobuf:"bytes,2,rep,name=kubeletVersions,proto3" json:"kubeletVersions,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` + ApiServerVersions map[string]int32 `protobuf:"bytes,3,rep,name=apiServerVersions,proto3" json:"apiServerVersions,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` + // sum of all nodes capacities and allocatables. + // Using smallest possible quantity levels. + // For memory it is bytes, for CPU it is millicore. + PodCapacity uint32 `protobuf:"varint,4,opt,name=podCapacity,proto3" json:"podCapacity,omitempty"` + PodAllocatable uint32 `protobuf:"varint,5,opt,name=podAllocatable,proto3" json:"podAllocatable,omitempty"` + MemoryAllocatable uint64 `protobuf:"varint,6,opt,name=memoryAllocatable,proto3" json:"memoryAllocatable,omitempty"` + MemoryCapacity uint64 `protobuf:"varint,7,opt,name=memoryCapacity,proto3" json:"memoryCapacity,omitempty"` + CpuAllocatable uint64 `protobuf:"varint,8,opt,name=cpuAllocatable,proto3" json:"cpuAllocatable,omitempty"` + CpuCapacity uint64 `protobuf:"varint,9,opt,name=cpuCapacity,proto3" json:"cpuCapacity,omitempty"` + ResourceVersion string `protobuf:"bytes,10,opt,name=resourceVersion,proto3" json:"resourceVersion,omitempty"` + CreationTimestamp int64 `protobuf:"varint,11,opt,name=creationTimestamp,proto3" json:"creationTimestamp,omitempty"` + Tags []string `protobuf:"bytes,12,rep,name=tags,proto3" json:"tags,omitempty"` + Metrics *ResourceMetrics `protobuf:"bytes,13,opt,name=metrics,proto3" json:"metrics,omitempty"` } -func (m *ProcStatsWithPerm) Size() (n int) { - var l int - _ = l - if m.OpenFDCount != 0 { - n += 1 + sovAgent(uint64(m.OpenFDCount)) +func (x *Cluster) Reset() { + *x = Cluster{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[50] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - if m.ReadCount != 0 { - n += 1 + sovAgent(uint64(m.ReadCount)) - } - if m.WriteCount != 0 { - n += 1 + sovAgent(uint64(m.WriteCount)) - } - if m.ReadBytes != 0 { - n += 1 + sovAgent(uint64(m.ReadBytes)) - } - if m.WriteBytes != 0 { - n += 1 + sovAgent(uint64(m.WriteBytes)) - } - return n } -func (m *ProcStatsWithPermByPID) Size() (n int) { - var l int - _ = l - if len(m.StatsByPID) > 0 { - for k, v := range m.StatsByPID { - _ = k - _ = v - l = 0 - if v != nil { - l = v.Size() - l += 1 + sovAgent(uint64(l)) - } - mapEntrySize := 1 + sovAgent(uint64(k)) + l - n += mapEntrySize + 1 + sovAgent(uint64(mapEntrySize)) +func (x *Cluster) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Cluster) ProtoMessage() {} + +func (x *Cluster) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[50] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - return n + return mi.MessageOf(x) } -func (m *ContainerStat) Size() (n int) { - var l int - _ = l - l = len(m.Id) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if m.UserPct != 0 { - n += 5 - } - if m.SystemPct != 0 { - n += 5 - } - if m.TotalPct != 0 { - n += 5 - } - if m.CpuLimit != 0 { - n += 5 - } - if m.MemRss != 0 { - n += 1 + sovAgent(uint64(m.MemRss)) - } - if m.MemCache != 0 { - n += 1 + sovAgent(uint64(m.MemCache)) - } - if m.MemLimit != 0 { - n += 1 + sovAgent(uint64(m.MemLimit)) - } - if m.Rbps != 0 { - n += 5 - } - if m.Wbps != 0 { - n += 5 - } - if m.NetRcvdPs != 0 { - n += 5 - } - if m.NetSentPs != 0 { - n += 5 - } - if m.NetRcvdBps != 0 { - n += 5 - } - if m.NetSentBps != 0 { - n += 5 - } - if m.State != 0 { - n += 1 + sovAgent(uint64(m.State)) - } - if m.Health != 0 { - n += 2 + sovAgent(uint64(m.Health)) - } - if m.Key != 0 { - n += 2 + sovAgent(uint64(m.Key)) - } - if m.Started != 0 { - n += 2 + sovAgent(uint64(m.Started)) - } - l = len(m.ByteKey) - if l > 0 { - n += 2 + l + sovAgent(uint64(l)) - } - if m.ThreadCount != 0 { - n += 2 + sovAgent(uint64(m.ThreadCount)) - } - if m.ThreadLimit != 0 { - n += 2 + sovAgent(uint64(m.ThreadLimit)) - } - if m.MemUsage != 0 { - n += 2 + sovAgent(uint64(m.MemUsage)) - } - if m.CpuUsageNs != 0 { - n += 6 - } - if m.MemAccounted != 0 { - n += 2 + sovAgent(uint64(m.MemAccounted)) - } - return n +// Deprecated: Use Cluster.ProtoReflect.Descriptor instead. +func (*Cluster) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{50} } -func (m *SystemInfo) Size() (n int) { - var l int - _ = l - l = len(m.Uuid) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) +func (x *Cluster) GetNodeCount() int32 { + if x != nil { + return x.NodeCount } - if m.Os != nil { - l = m.Os.Size() - n += 1 + l + sovAgent(uint64(l)) - } - if len(m.Cpus) > 0 { - for _, e := range m.Cpus { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) - } - } - if m.TotalMemory != 0 { - n += 1 + sovAgent(uint64(m.TotalMemory)) - } - return n + return 0 } -func (m *OSInfo) Size() (n int) { - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.Platform) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.Family) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.Version) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) +func (x *Cluster) GetKubeletVersions() map[string]int32 { + if x != nil { + return x.KubeletVersions } - l = len(m.KernelVersion) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - return n + return nil } -func (m *IOStat) Size() (n int) { - var l int - _ = l - if m.ReadRate != 0 { - n += 5 - } - if m.WriteRate != 0 { - n += 5 - } - if m.ReadBytesRate != 0 { - n += 5 +func (x *Cluster) GetApiServerVersions() map[string]int32 { + if x != nil { + return x.ApiServerVersions } - if m.WriteBytesRate != 0 { - n += 5 - } - return n + return nil } -func (m *MemoryStat) Size() (n int) { - var l int - _ = l - if m.Rss != 0 { - n += 1 + sovAgent(uint64(m.Rss)) - } - if m.Vms != 0 { - n += 1 + sovAgent(uint64(m.Vms)) - } - if m.Swap != 0 { - n += 1 + sovAgent(uint64(m.Swap)) +func (x *Cluster) GetPodCapacity() uint32 { + if x != nil { + return x.PodCapacity } - if m.Shared != 0 { - n += 1 + sovAgent(uint64(m.Shared)) - } - if m.Text != 0 { - n += 1 + sovAgent(uint64(m.Text)) - } - if m.Lib != 0 { - n += 1 + sovAgent(uint64(m.Lib)) - } - if m.Data != 0 { - n += 1 + sovAgent(uint64(m.Data)) - } - if m.Dirty != 0 { - n += 1 + sovAgent(uint64(m.Dirty)) - } - return n + return 0 } -func (m *CPUStat) Size() (n int) { - var l int - _ = l - l = len(m.LastCpu) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if m.TotalPct != 0 { - n += 5 - } - if m.UserPct != 0 { - n += 5 +func (x *Cluster) GetPodAllocatable() uint32 { + if x != nil { + return x.PodAllocatable } - if m.SystemPct != 0 { - n += 5 - } - if m.NumThreads != 0 { - n += 1 + sovAgent(uint64(m.NumThreads)) - } - if len(m.Cpus) > 0 { - for _, e := range m.Cpus { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) - } - } - if m.Nice != 0 { - n += 1 + sovAgent(uint64(m.Nice)) - } - if m.UserTime != 0 { - n += 1 + sovAgent(uint64(m.UserTime)) - } - if m.SystemTime != 0 { - n += 1 + sovAgent(uint64(m.SystemTime)) - } - return n + return 0 } -func (m *SingleCPUStat) Size() (n int) { - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) +func (x *Cluster) GetMemoryAllocatable() uint64 { + if x != nil { + return x.MemoryAllocatable } - if m.TotalPct != 0 { - n += 5 - } - return n + return 0 } -func (m *CPUInfo) Size() (n int) { - var l int - _ = l - if m.Number != 0 { - n += 1 + sovAgent(uint64(m.Number)) - } - l = len(m.Vendor) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.Family) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) +func (x *Cluster) GetMemoryCapacity() uint64 { + if x != nil { + return x.MemoryCapacity } - l = len(m.Model) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.PhysicalId) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.CoreId) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) + return 0 +} + +func (x *Cluster) GetCpuAllocatable() uint64 { + if x != nil { + return x.CpuAllocatable } - if m.Cores != 0 { - n += 1 + sovAgent(uint64(m.Cores)) + return 0 +} + +func (x *Cluster) GetCpuCapacity() uint64 { + if x != nil { + return x.CpuCapacity } - if m.Mhz != 0 { - n += 1 + sovAgent(uint64(m.Mhz)) + return 0 +} + +func (x *Cluster) GetResourceVersion() string { + if x != nil { + return x.ResourceVersion } - if m.CacheSize != 0 { - n += 1 + sovAgent(uint64(m.CacheSize)) + return "" +} + +func (x *Cluster) GetCreationTimestamp() int64 { + if x != nil { + return x.CreationTimestamp } - return n + return 0 } -func (m *Host) Size() (n int) { - var l int - _ = l - if m.Id != 0 { - n += 1 + sovAgent(uint64(m.Id)) +func (x *Cluster) GetTags() []string { + if x != nil { + return x.Tags } - if m.OrgId != 0 { - n += 1 + sovAgent(uint64(m.OrgId)) + return nil +} + +func (x *Cluster) GetMetrics() *ResourceMetrics { + if x != nil { + return x.Metrics } - l = len(m.Name) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) + return nil +} + +// reference https://github.com/kubernetes/apimachinery/blob/2373d029717c4d169463414a6127cd1d0d12680e/pkg/apis/meta/v1/generated.proto#L521 +type Metadata struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` + Uid string `protobuf:"bytes,3,opt,name=uid,proto3" json:"uid,omitempty"` + CreationTimestamp int64 `protobuf:"varint,4,opt,name=creationTimestamp,proto3" json:"creationTimestamp,omitempty"` + DeletionTimestamp int64 `protobuf:"varint,5,opt,name=deletionTimestamp,proto3" json:"deletionTimestamp,omitempty"` + Labels []string `protobuf:"bytes,6,rep,name=labels,proto3" json:"labels,omitempty"` + Annotations []string `protobuf:"bytes,7,rep,name=annotations,proto3" json:"annotations,omitempty"` + OwnerReferences []*OwnerReference `protobuf:"bytes,8,rep,name=ownerReferences,proto3" json:"ownerReferences,omitempty"` + ResourceVersion string `protobuf:"bytes,9,opt,name=resourceVersion,proto3" json:"resourceVersion,omitempty"` + Finalizers []string `protobuf:"bytes,10,rep,name=finalizers,proto3" json:"finalizers,omitempty"` +} + +func (x *Metadata) Reset() { + *x = Metadata{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[51] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - if len(m.AllTags) > 0 { - for _, s := range m.AllTags { - l = len(s) - n += 1 + l + sovAgent(uint64(l)) +} + +func (x *Metadata) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Metadata) ProtoMessage() {} + +func (x *Metadata) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[51] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - if m.NumCpus != 0 { - n += 1 + sovAgent(uint64(m.NumCpus)) - } - if m.TotalMemory != 0 { - n += 1 + sovAgent(uint64(m.TotalMemory)) - } - if m.TagIndex != 0 { - n += 1 + sovAgent(uint64(m.TagIndex)) - } - if m.TagsModified != 0 { - n += 1 + sovAgent(uint64(m.TagsModified)) - } - return n + return mi.MessageOf(x) } -func (m *Cluster) Size() (n int) { - var l int - _ = l - if m.NodeCount != 0 { - n += 1 + sovAgent(uint64(m.NodeCount)) +// Deprecated: Use Metadata.ProtoReflect.Descriptor instead. +func (*Metadata) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{51} +} + +func (x *Metadata) GetName() string { + if x != nil { + return x.Name } - if len(m.KubeletVersions) > 0 { - for k, v := range m.KubeletVersions { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovAgent(uint64(len(k))) + 1 + sovAgent(uint64(v)) - n += mapEntrySize + 1 + sovAgent(uint64(mapEntrySize)) - } + return "" +} + +func (x *Metadata) GetNamespace() string { + if x != nil { + return x.Namespace } - if len(m.ApiServerVersions) > 0 { - for k, v := range m.ApiServerVersions { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovAgent(uint64(len(k))) + 1 + sovAgent(uint64(v)) - n += mapEntrySize + 1 + sovAgent(uint64(mapEntrySize)) - } + return "" +} + +func (x *Metadata) GetUid() string { + if x != nil { + return x.Uid } - if m.PodCapacity != 0 { - n += 1 + sovAgent(uint64(m.PodCapacity)) + return "" +} + +func (x *Metadata) GetCreationTimestamp() int64 { + if x != nil { + return x.CreationTimestamp } - if m.PodAllocatable != 0 { - n += 1 + sovAgent(uint64(m.PodAllocatable)) + return 0 +} + +func (x *Metadata) GetDeletionTimestamp() int64 { + if x != nil { + return x.DeletionTimestamp } - if m.MemoryAllocatable != 0 { - n += 1 + sovAgent(uint64(m.MemoryAllocatable)) + return 0 +} + +func (x *Metadata) GetLabels() []string { + if x != nil { + return x.Labels } - if m.MemoryCapacity != 0 { - n += 1 + sovAgent(uint64(m.MemoryCapacity)) + return nil +} + +func (x *Metadata) GetAnnotations() []string { + if x != nil { + return x.Annotations } - if m.CpuAllocatable != 0 { - n += 1 + sovAgent(uint64(m.CpuAllocatable)) + return nil +} + +func (x *Metadata) GetOwnerReferences() []*OwnerReference { + if x != nil { + return x.OwnerReferences } - if m.CpuCapacity != 0 { - n += 1 + sovAgent(uint64(m.CpuCapacity)) + return nil +} + +func (x *Metadata) GetResourceVersion() string { + if x != nil { + return x.ResourceVersion } - l = len(m.ResourceVersion) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) + return "" +} + +func (x *Metadata) GetFinalizers() []string { + if x != nil { + return x.Finalizers } - if m.CreationTimestamp != 0 { - n += 1 + sovAgent(uint64(m.CreationTimestamp)) + return nil +} + +type OwnerReference struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"` + Kind string `protobuf:"bytes,3,opt,name=kind,proto3" json:"kind,omitempty"` +} + +func (x *OwnerReference) Reset() { + *x = OwnerReference{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[52] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - l = len(s) - n += 1 + l + sovAgent(uint64(l)) +} + +func (x *OwnerReference) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OwnerReference) ProtoMessage() {} + +func (x *OwnerReference) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[52] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - if m.Metrics != nil { - l = m.Metrics.Size() - n += 1 + l + sovAgent(uint64(l)) - } - return n + return mi.MessageOf(x) } -func (m *Metadata) Size() (n int) { - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.Namespace) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.Uid) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if m.CreationTimestamp != 0 { - n += 1 + sovAgent(uint64(m.CreationTimestamp)) - } - if m.DeletionTimestamp != 0 { - n += 1 + sovAgent(uint64(m.DeletionTimestamp)) - } - if len(m.Labels) > 0 { - for _, s := range m.Labels { - l = len(s) - n += 1 + l + sovAgent(uint64(l)) - } +// Deprecated: Use OwnerReference.ProtoReflect.Descriptor instead. +func (*OwnerReference) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{52} +} + +func (x *OwnerReference) GetName() string { + if x != nil { + return x.Name } - if len(m.Annotations) > 0 { - for _, s := range m.Annotations { - l = len(s) - n += 1 + l + sovAgent(uint64(l)) - } + return "" +} + +func (x *OwnerReference) GetUid() string { + if x != nil { + return x.Uid } - if len(m.OwnerReferences) > 0 { - for _, e := range m.OwnerReferences { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) - } + return "" +} + +func (x *OwnerReference) GetKind() string { + if x != nil { + return x.Kind } - l = len(m.ResourceVersion) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) + return "" +} + +// reference https://github.com/kubernetes/kubernetes/blob/cb19b56831d54d1d31249949318ef0b07bf00df9/pkg/apis/core/types.go#L4317 +type ObjectReference struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"` + Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + Uid string `protobuf:"bytes,4,opt,name=uid,proto3" json:"uid,omitempty"` + ApiVersion string `protobuf:"bytes,5,opt,name=apiVersion,proto3" json:"apiVersion,omitempty"` + ResourceVersion string `protobuf:"bytes,6,opt,name=resourceVersion,proto3" json:"resourceVersion,omitempty"` + FieldPath string `protobuf:"bytes,7,opt,name=fieldPath,proto3" json:"fieldPath,omitempty"` +} + +func (x *ObjectReference) Reset() { + *x = ObjectReference{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[53] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - if len(m.Finalizers) > 0 { - for _, s := range m.Finalizers { - l = len(s) - n += 1 + l + sovAgent(uint64(l)) +} + +func (x *ObjectReference) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ObjectReference) ProtoMessage() {} + +func (x *ObjectReference) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[53] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - return n + return mi.MessageOf(x) } -func (m *OwnerReference) Size() (n int) { - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.Uid) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.Kind) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - return n +// Deprecated: Use ObjectReference.ProtoReflect.Descriptor instead. +func (*ObjectReference) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{53} } -func (m *ObjectReference) Size() (n int) { - var l int - _ = l - l = len(m.Kind) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.Namespace) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.Name) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.Uid) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.ApiVersion) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.ResourceVersion) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) +func (x *ObjectReference) GetKind() string { + if x != nil { + return x.Kind } - l = len(m.FieldPath) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - return n + return "" } -func (m *ServicePort) Size() (n int) { - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.Protocol) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) +func (x *ObjectReference) GetNamespace() string { + if x != nil { + return x.Namespace } - if m.Port != 0 { - n += 1 + sovAgent(uint64(m.Port)) + return "" +} + +func (x *ObjectReference) GetName() string { + if x != nil { + return x.Name } - l = len(m.TargetPort) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) + return "" +} + +func (x *ObjectReference) GetUid() string { + if x != nil { + return x.Uid } - if m.NodePort != 0 { - n += 1 + sovAgent(uint64(m.NodePort)) + return "" +} + +func (x *ObjectReference) GetApiVersion() string { + if x != nil { + return x.ApiVersion } - return n + return "" } -func (m *ServiceSessionAffinityConfig) Size() (n int) { - var l int - _ = l - if m.ClientIPTimeoutSeconds != 0 { - n += 1 + sovAgent(uint64(m.ClientIPTimeoutSeconds)) +func (x *ObjectReference) GetResourceVersion() string { + if x != nil { + return x.ResourceVersion } - return n + return "" } -func (m *Node) Size() (n int) { - var l int - _ = l - if m.Metadata != nil { - l = m.Metadata.Size() - n += 1 + l + sovAgent(uint64(l)) +func (x *ObjectReference) GetFieldPath() string { + if x != nil { + return x.FieldPath } - l = len(m.PodCIDR) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if len(m.PodCIDRs) > 0 { - for _, s := range m.PodCIDRs { - l = len(s) - n += 1 + l + sovAgent(uint64(l)) - } - } - if m.Unschedulable { - n += 2 - } - if len(m.Taints) > 0 { - for _, e := range m.Taints { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) - } - } - if m.Status != nil { - l = m.Status.Size() - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.Yaml) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if len(m.Roles) > 0 { - for _, s := range m.Roles { - l = len(s) - n += 1 + l + sovAgent(uint64(l)) - } - } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - l = len(s) - n += 1 + l + sovAgent(uint64(l)) - } - } - l = len(m.ProviderID) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if m.Host != nil { - l = m.Host.Size() - n += 1 + l + sovAgent(uint64(l)) - } - if m.Metrics != nil { - l = m.Metrics.Size() - n += 1 + l + sovAgent(uint64(l)) - } - return n + return "" } -func (m *NodeStatus) Size() (n int) { - var l int - _ = l - if len(m.Capacity) > 0 { - for k, v := range m.Capacity { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovAgent(uint64(len(k))) + 1 + sovAgent(uint64(v)) - n += mapEntrySize + 1 + sovAgent(uint64(mapEntrySize)) - } - } - if len(m.Allocatable) > 0 { - for k, v := range m.Allocatable { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovAgent(uint64(len(k))) + 1 + sovAgent(uint64(v)) - n += mapEntrySize + 1 + sovAgent(uint64(mapEntrySize)) - } - } - if len(m.NodeAddresses) > 0 { - for k, v := range m.NodeAddresses { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovAgent(uint64(len(k))) + 1 + len(v) + sovAgent(uint64(len(v))) - n += mapEntrySize + 1 + sovAgent(uint64(mapEntrySize)) - } - } - l = len(m.Status) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.KubeletVersion) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if len(m.Conditions) > 0 { - for _, e := range m.Conditions { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) - } - } - if len(m.Images) > 0 { - for _, e := range m.Images { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) - } - } - l = len(m.KubeProxyVersion) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.OperatingSystem) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.Architecture) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.KernelVersion) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.OsImage) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.ContainerRuntimeVersion) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - return n +// reference https://github.com/kubernetes/kubernetes/blob/cb19b56831d54d1d31249949318ef0b07bf00df9/staging/src/k8s.io/api/core/v1/generated.proto#L4571 +type ServicePort struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Protocol string `protobuf:"bytes,2,opt,name=protocol,proto3" json:"protocol,omitempty"` + Port int32 `protobuf:"varint,3,opt,name=port,proto3" json:"port,omitempty"` + TargetPort string `protobuf:"bytes,4,opt,name=targetPort,proto3" json:"targetPort,omitempty"` // int or str + NodePort int32 `protobuf:"varint,5,opt,name=nodePort,proto3" json:"nodePort,omitempty"` } -func (m *NodeCondition) Size() (n int) { - var l int - _ = l - l = len(m.Type) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) +func (x *ServicePort) Reset() { + *x = ServicePort{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[54] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - l = len(m.Status) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if m.LastTransitionTime != 0 { - n += 1 + sovAgent(uint64(m.LastTransitionTime)) - } - l = len(m.Reason) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.Message) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - return n } -func (m *ContainerImage) Size() (n int) { - var l int - _ = l - if len(m.Names) > 0 { - for _, s := range m.Names { - l = len(s) - n += 1 + l + sovAgent(uint64(l)) +func (x *ServicePort) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ServicePort) ProtoMessage() {} + +func (x *ServicePort) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[54] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - if m.SizeBytes != 0 { - n += 1 + sovAgent(uint64(m.SizeBytes)) - } - return n + return mi.MessageOf(x) } -func (m *Taint) Size() (n int) { - var l int - _ = l - l = len(m.Key) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.Value) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.Effect) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if m.TimeAdded != 0 { - n += 1 + sovAgent(uint64(m.TimeAdded)) - } - return n +// Deprecated: Use ServicePort.ProtoReflect.Descriptor instead. +func (*ServicePort) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{54} } -func (m *ServiceSpec) Size() (n int) { - var l int - _ = l - if len(m.Ports) > 0 { - for _, e := range m.Ports { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) - } - } - if len(m.Selectors) > 0 { - for _, e := range m.Selectors { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) - } - } - l = len(m.ClusterIP) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.Type) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if len(m.ExternalIPs) > 0 { - for _, s := range m.ExternalIPs { - l = len(s) - n += 1 + l + sovAgent(uint64(l)) - } - } - l = len(m.SessionAffinity) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.LoadBalancerIP) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if len(m.LoadBalancerSourceRanges) > 0 { - for _, s := range m.LoadBalancerSourceRanges { - l = len(s) - n += 1 + l + sovAgent(uint64(l)) - } - } - l = len(m.ExternalName) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) +func (x *ServicePort) GetName() string { + if x != nil { + return x.Name } - l = len(m.ExternalTrafficPolicy) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if m.HealthCheckNodePort != 0 { - n += 1 + sovAgent(uint64(m.HealthCheckNodePort)) - } - if m.PublishNotReadyAddresses { - n += 2 - } - if m.SessionAffinityConfig != nil { - l = m.SessionAffinityConfig.Size() - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.IpFamily) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - return n + return "" } -func (m *ServiceStatus) Size() (n int) { - var l int - _ = l - if len(m.LoadBalancerIngress) > 0 { - for _, s := range m.LoadBalancerIngress { - l = len(s) - n += 2 + l + sovAgent(uint64(l)) - } +func (x *ServicePort) GetProtocol() string { + if x != nil { + return x.Protocol } - return n + return "" } -func (m *Service) Size() (n int) { - var l int - _ = l - if m.Metadata != nil { - l = m.Metadata.Size() - n += 1 + l + sovAgent(uint64(l)) - } - if m.Spec != nil { - l = m.Spec.Size() - n += 1 + l + sovAgent(uint64(l)) - } - if m.Status != nil { - l = m.Status.Size() - n += 1 + l + sovAgent(uint64(l)) +func (x *ServicePort) GetPort() int32 { + if x != nil { + return x.Port } - l = len(m.Yaml) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - l = len(s) - n += 1 + l + sovAgent(uint64(l)) - } - } - if m.Metrics != nil { - l = m.Metrics.Size() - n += 1 + l + sovAgent(uint64(l)) - } - return n + return 0 } -func (m *DeploymentCondition) Size() (n int) { - var l int - _ = l - l = len(m.Type) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.Status) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.Reason) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.Message) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) +func (x *ServicePort) GetTargetPort() string { + if x != nil { + return x.TargetPort } - if m.LastUpdateTime != 0 { - n += 1 + sovAgent(uint64(m.LastUpdateTime)) - } - if m.LastTransitionTime != 0 { - n += 1 + sovAgent(uint64(m.LastTransitionTime)) - } - return n + return "" } -func (m *Deployment) Size() (n int) { - var l int - _ = l - if m.Metadata != nil { - l = m.Metadata.Size() - n += 1 + l + sovAgent(uint64(l)) - } - if m.ReplicasDesired != 0 { - n += 1 + sovAgent(uint64(m.ReplicasDesired)) - } - l = len(m.DeploymentStrategy) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.MaxUnavailable) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.MaxSurge) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if m.Paused { - n += 2 - } - if len(m.Selectors) > 0 { - for _, e := range m.Selectors { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) - } - } - if m.Replicas != 0 { - n += 1 + sovAgent(uint64(m.Replicas)) - } - if m.UpdatedReplicas != 0 { - n += 1 + sovAgent(uint64(m.UpdatedReplicas)) - } - if m.ReadyReplicas != 0 { - n += 1 + sovAgent(uint64(m.ReadyReplicas)) - } - if m.AvailableReplicas != 0 { - n += 1 + sovAgent(uint64(m.AvailableReplicas)) - } - if m.UnavailableReplicas != 0 { - n += 1 + sovAgent(uint64(m.UnavailableReplicas)) - } - l = len(m.ConditionMessage) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.Yaml) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) +func (x *ServicePort) GetNodePort() int32 { + if x != nil { + return x.NodePort } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - l = len(s) - n += 1 + l + sovAgent(uint64(l)) - } - } - if len(m.ResourceRequirements) > 0 { - for _, e := range m.ResourceRequirements { - l = e.Size() - n += 2 + l + sovAgent(uint64(l)) - } - } - if m.Metrics != nil { - l = m.Metrics.Size() - n += 2 + l + sovAgent(uint64(l)) - } - if len(m.Conditions) > 0 { - for _, e := range m.Conditions { - l = e.Size() - n += 2 + l + sovAgent(uint64(l)) - } - } - return n + return 0 } -func (m *ReplicaSetCondition) Size() (n int) { - var l int - _ = l - l = len(m.Type) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.Status) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if m.LastTransitionTime != 0 { - n += 1 + sovAgent(uint64(m.LastTransitionTime)) - } - l = len(m.Reason) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.Message) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - return n +// reference https://github.com/kubernetes/kubernetes/blob/cb19b56831d54d1d31249949318ef0b07bf00df9/staging/src/k8s.io/api/core/v1/generated.proto#L4756 +type ServiceSessionAffinityConfig struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ClientIPTimeoutSeconds int32 `protobuf:"varint,1,opt,name=clientIPTimeoutSeconds,proto3" json:"clientIPTimeoutSeconds,omitempty"` } -func (m *ReplicaSet) Size() (n int) { - var l int - _ = l - if m.Metadata != nil { - l = m.Metadata.Size() - n += 1 + l + sovAgent(uint64(l)) - } - if m.ReplicasDesired != 0 { - n += 1 + sovAgent(uint64(m.ReplicasDesired)) - } - if len(m.Selectors) > 0 { - for _, e := range m.Selectors { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) - } - } - if m.Replicas != 0 { - n += 1 + sovAgent(uint64(m.Replicas)) - } - if m.FullyLabeledReplicas != 0 { - n += 1 + sovAgent(uint64(m.FullyLabeledReplicas)) - } - if m.ReadyReplicas != 0 { - n += 1 + sovAgent(uint64(m.ReadyReplicas)) - } - if m.AvailableReplicas != 0 { - n += 1 + sovAgent(uint64(m.AvailableReplicas)) - } - l = len(m.Yaml) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - l = len(s) - n += 1 + l + sovAgent(uint64(l)) - } - } - if len(m.ResourceRequirements) > 0 { - for _, e := range m.ResourceRequirements { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) - } - } - if m.Metrics != nil { - l = m.Metrics.Size() - n += 1 + l + sovAgent(uint64(l)) - } - if len(m.Conditions) > 0 { - for _, e := range m.Conditions { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) - } +func (x *ServiceSessionAffinityConfig) Reset() { + *x = ServiceSessionAffinityConfig{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[55] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return n } -func (m *LabelSelectorRequirement) Size() (n int) { - var l int - _ = l - l = len(m.Key) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.Operator) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if len(m.Values) > 0 { - for _, s := range m.Values { - l = len(s) - n += 1 + l + sovAgent(uint64(l)) - } - } - return n +func (x *ServiceSessionAffinityConfig) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Pod) Size() (n int) { - var l int - _ = l - if m.Metadata != nil { - l = m.Metadata.Size() - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.IP) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.NominatedNodeName) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.NodeName) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.Phase) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if m.RestartCount != 0 { - n += 1 + sovAgent(uint64(m.RestartCount)) - } - if len(m.ContainerStatuses) > 0 { - for _, e := range m.ContainerStatuses { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) - } - } - l = len(m.ConditionMessage) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.Status) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.Yaml) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - l = len(s) - n += 1 + l + sovAgent(uint64(l)) - } - } - if m.Host != nil { - l = m.Host.Size() - n += 1 + l + sovAgent(uint64(l)) - } - if len(m.ResourceRequirements) > 0 { - for _, e := range m.ResourceRequirements { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) - } - } - if len(m.InitContainerStatuses) > 0 { - for _, e := range m.InitContainerStatuses { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) - } - } - l = len(m.QOSClass) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.PriorityClass) - if l > 0 { - n += 2 + l + sovAgent(uint64(l)) - } - if m.Metrics != nil { - l = m.Metrics.Size() - n += 2 + l + sovAgent(uint64(l)) - } - if m.StartTime != 0 { - n += 2 + sovAgent(uint64(m.StartTime)) - } - if m.ScheduledTime != 0 { - n += 2 + sovAgent(uint64(m.ScheduledTime)) - } - if len(m.Conditions) > 0 { - for _, e := range m.Conditions { - l = e.Size() - n += 2 + l + sovAgent(uint64(l)) +func (*ServiceSessionAffinityConfig) ProtoMessage() {} + +func (x *ServiceSessionAffinityConfig) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[55] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - return n + return mi.MessageOf(x) } -func (m *PodCondition) Size() (n int) { - var l int - _ = l - l = len(m.Type) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.Status) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if m.LastProbeTime != 0 { - n += 1 + sovAgent(uint64(m.LastProbeTime)) - } - if m.LastTransitionTime != 0 { - n += 1 + sovAgent(uint64(m.LastTransitionTime)) - } - l = len(m.Reason) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.Message) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - return n +// Deprecated: Use ServiceSessionAffinityConfig.ProtoReflect.Descriptor instead. +func (*ServiceSessionAffinityConfig) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{55} } -func (m *ContainerStatus) Size() (n int) { - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.ContainerID) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if m.Ready { - n += 2 - } - if m.RestartCount != 0 { - n += 1 + sovAgent(uint64(m.RestartCount)) - } - l = len(m.State) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.Message) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) +func (x *ServiceSessionAffinityConfig) GetClientIPTimeoutSeconds() int32 { + if x != nil { + return x.ClientIPTimeoutSeconds } - return n + return 0 } -func (m *Manifest) Size() (n int) { - var l int - _ = l - if m.Type != 0 { - n += 1 + sovAgent(uint64(m.Type)) - } - l = len(m.ResourceVersion) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.Uid) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.Content) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.ContentType) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.Version) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - return n +// reference https://github.com/kubernetes/kubernetes/blob/cb19b56831d54d1d31249949318ef0b07bf00df9/staging/src/k8s.io/api/core/v1/generated.proto#L2107 +type Node struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Metadata *Metadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` + // spec reference https://github.com/kubernetes/kubernetes/blob/cb19b56831d54d1d31249949318ef0b07bf00df9/staging/src/k8s.io/api/core/v1/generated.proto#L2312 + PodCIDR string `protobuf:"bytes,2,opt,name=podCIDR,proto3" json:"podCIDR,omitempty"` + PodCIDRs []string `protobuf:"bytes,3,rep,name=podCIDRs,proto3" json:"podCIDRs,omitempty"` + Unschedulable bool `protobuf:"varint,4,opt,name=unschedulable,proto3" json:"unschedulable,omitempty"` + Taints []*Taint `protobuf:"bytes,5,rep,name=taints,proto3" json:"taints,omitempty"` + Status *NodeStatus `protobuf:"bytes,6,opt,name=status,proto3" json:"status,omitempty"` + // Deprecated: Marked as deprecated in proto/process/agent.proto. + Yaml []byte `protobuf:"bytes,7,opt,name=yaml,proto3" json:"yaml,omitempty"` // see CollectorManifest + // we parse it from the labels. Similar to upstream https://github.com/kubernetes/kubernetes/blob/1e12d92a5179dbfeb455c79dbf9120c8536e5f9c/pkg/printers/internalversion/printers.go#L1487 + Roles []string `protobuf:"bytes,8,rep,name=roles,proto3" json:"roles,omitempty"` + Tags []string `protobuf:"bytes,9,rep,name=tags,proto3" json:"tags,omitempty"` + ProviderID string `protobuf:"bytes,10,opt,name=providerID,proto3" json:"providerID,omitempty"` + Host *Host `protobuf:"bytes,11,opt,name=host,proto3" json:"host,omitempty"` // Used post-resolution + Metrics *ResourceMetrics `protobuf:"bytes,12,opt,name=metrics,proto3" json:"metrics,omitempty"` } -func (m *NamespaceCondition) Size() (n int) { - var l int - _ = l - l = len(m.Type) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.Status) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) +func (x *Node) Reset() { + *x = Node{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[56] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - if m.LastTransitionTime != 0 { - n += 1 + sovAgent(uint64(m.LastTransitionTime)) - } - l = len(m.Reason) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.Message) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - return n } -func (m *Namespace) Size() (n int) { - var l int - _ = l - if m.Metadata != nil { - l = m.Metadata.Size() - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.Status) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.ConditionMessage) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.Yaml) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - l = len(s) - n += 1 + l + sovAgent(uint64(l)) - } - } - if len(m.Conditions) > 0 { - for _, e := range m.Conditions { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) - } - } - return n +func (x *Node) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ResourceRequirements) Size() (n int) { - var l int - _ = l - if len(m.Limits) > 0 { - for k, v := range m.Limits { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovAgent(uint64(len(k))) + 1 + sovAgent(uint64(v)) - n += mapEntrySize + 1 + sovAgent(uint64(mapEntrySize)) - } - } - if len(m.Requests) > 0 { - for k, v := range m.Requests { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovAgent(uint64(len(k))) + 1 + sovAgent(uint64(v)) - n += mapEntrySize + 1 + sovAgent(uint64(mapEntrySize)) +func (*Node) ProtoMessage() {} + +func (x *Node) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[56] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - l = len(m.Name) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if m.Type != 0 { - n += 1 + sovAgent(uint64(m.Type)) - } - return n + return mi.MessageOf(x) } -func (m *ResourceMetrics) Size() (n int) { - var l int - _ = l - if len(m.MetricValues) > 0 { - for k, v := range m.MetricValues { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovAgent(uint64(len(k))) + 1 + 8 - n += mapEntrySize + 1 + sovAgent(uint64(mapEntrySize)) - } - } - return n +// Deprecated: Use Node.ProtoReflect.Descriptor instead. +func (*Node) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{56} } -func (m *JobSpec) Size() (n int) { - var l int - _ = l - if m.Parallelism != 0 { - n += 1 + sovAgent(uint64(m.Parallelism)) - } - if m.Completions != 0 { - n += 1 + sovAgent(uint64(m.Completions)) - } - if m.ActiveDeadlineSeconds != 0 { - n += 1 + sovAgent(uint64(m.ActiveDeadlineSeconds)) - } - if m.BackoffLimit != 0 { - n += 1 + sovAgent(uint64(m.BackoffLimit)) - } - if len(m.Selectors) > 0 { - for _, e := range m.Selectors { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) - } - } - if m.ManualSelector { - n += 2 +func (x *Node) GetMetadata() *Metadata { + if x != nil { + return x.Metadata } - if len(m.ResourceRequirements) > 0 { - for _, e := range m.ResourceRequirements { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) - } - } - return n + return nil } -func (m *JobStatus) Size() (n int) { - var l int - _ = l - l = len(m.ConditionMessage) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if m.StartTime != 0 { - n += 1 + sovAgent(uint64(m.StartTime)) - } - if m.CompletionTime != 0 { - n += 1 + sovAgent(uint64(m.CompletionTime)) - } - if m.Active != 0 { - n += 1 + sovAgent(uint64(m.Active)) - } - if m.Succeeded != 0 { - n += 1 + sovAgent(uint64(m.Succeeded)) - } - if m.Failed != 0 { - n += 1 + sovAgent(uint64(m.Failed)) +func (x *Node) GetPodCIDR() string { + if x != nil { + return x.PodCIDR } - return n + return "" } -func (m *JobCondition) Size() (n int) { - var l int - _ = l - l = len(m.Type) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) +func (x *Node) GetPodCIDRs() []string { + if x != nil { + return x.PodCIDRs } - l = len(m.Status) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if m.LastProbeTime != 0 { - n += 1 + sovAgent(uint64(m.LastProbeTime)) - } - if m.LastTransitionTime != 0 { - n += 1 + sovAgent(uint64(m.LastTransitionTime)) - } - l = len(m.Reason) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.Message) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - return n + return nil } -func (m *Job) Size() (n int) { - var l int - _ = l - if m.Metadata != nil { - l = m.Metadata.Size() - n += 1 + l + sovAgent(uint64(l)) - } - if m.Spec != nil { - l = m.Spec.Size() - n += 1 + l + sovAgent(uint64(l)) - } - if m.Status != nil { - l = m.Status.Size() - n += 1 + l + sovAgent(uint64(l)) +func (x *Node) GetUnschedulable() bool { + if x != nil { + return x.Unschedulable } - l = len(m.Yaml) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - l = len(s) - n += 1 + l + sovAgent(uint64(l)) - } - } - if len(m.Conditions) > 0 { - for _, e := range m.Conditions { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) - } - } - return n + return false } -func (m *CronJobSpec) Size() (n int) { - var l int - _ = l - l = len(m.Schedule) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if m.StartingDeadlineSeconds != 0 { - n += 1 + sovAgent(uint64(m.StartingDeadlineSeconds)) - } - l = len(m.ConcurrencyPolicy) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if m.Suspend { - n += 2 +func (x *Node) GetTaints() []*Taint { + if x != nil { + return x.Taints } - if m.SuccessfulJobsHistoryLimit != 0 { - n += 1 + sovAgent(uint64(m.SuccessfulJobsHistoryLimit)) - } - if m.FailedJobsHistoryLimit != 0 { - n += 1 + sovAgent(uint64(m.FailedJobsHistoryLimit)) - } - if len(m.ResourceRequirements) > 0 { - for _, e := range m.ResourceRequirements { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) - } - } - return n + return nil } -func (m *CronJobStatus) Size() (n int) { - var l int - _ = l - if len(m.Active) > 0 { - for _, e := range m.Active { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) - } +func (x *Node) GetStatus() *NodeStatus { + if x != nil { + return x.Status } - if m.LastScheduleTime != 0 { - n += 1 + sovAgent(uint64(m.LastScheduleTime)) - } - return n + return nil } -func (m *CronJob) Size() (n int) { - var l int - _ = l - if m.Metadata != nil { - l = m.Metadata.Size() - n += 1 + l + sovAgent(uint64(l)) +// Deprecated: Marked as deprecated in proto/process/agent.proto. +func (x *Node) GetYaml() []byte { + if x != nil { + return x.Yaml } - if m.Spec != nil { - l = m.Spec.Size() - n += 1 + l + sovAgent(uint64(l)) - } - if m.Status != nil { - l = m.Status.Size() - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.Yaml) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - l = len(s) - n += 1 + l + sovAgent(uint64(l)) - } - } - return n + return nil } -func (m *DaemonSetSpec) Size() (n int) { - var l int - _ = l - if len(m.Selectors) > 0 { - for _, e := range m.Selectors { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) - } - } - l = len(m.DeploymentStrategy) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) +func (x *Node) GetRoles() []string { + if x != nil { + return x.Roles } - l = len(m.MaxUnavailable) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if m.MinReadySeconds != 0 { - n += 1 + sovAgent(uint64(m.MinReadySeconds)) - } - if m.RevisionHistoryLimit != 0 { - n += 1 + sovAgent(uint64(m.RevisionHistoryLimit)) - } - if len(m.ResourceRequirements) > 0 { - for _, e := range m.ResourceRequirements { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) - } + return nil +} + +func (x *Node) GetTags() []string { + if x != nil { + return x.Tags } - return n + return nil } -func (m *DaemonSetStatus) Size() (n int) { - var l int - _ = l - if m.CurrentNumberScheduled != 0 { - n += 1 + sovAgent(uint64(m.CurrentNumberScheduled)) +func (x *Node) GetProviderID() string { + if x != nil { + return x.ProviderID } - if m.NumberMisscheduled != 0 { - n += 1 + sovAgent(uint64(m.NumberMisscheduled)) - } - if m.DesiredNumberScheduled != 0 { - n += 1 + sovAgent(uint64(m.DesiredNumberScheduled)) - } - if m.NumberReady != 0 { - n += 1 + sovAgent(uint64(m.NumberReady)) - } - if m.UpdatedNumberScheduled != 0 { - n += 1 + sovAgent(uint64(m.UpdatedNumberScheduled)) - } - if m.NumberAvailable != 0 { - n += 1 + sovAgent(uint64(m.NumberAvailable)) - } - if m.NumberUnavailable != 0 { - n += 1 + sovAgent(uint64(m.NumberUnavailable)) - } - return n + return "" } -func (m *DaemonSetCondition) Size() (n int) { - var l int - _ = l - l = len(m.Type) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.Status) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if m.LastTransitionTime != 0 { - n += 1 + sovAgent(uint64(m.LastTransitionTime)) +func (x *Node) GetHost() *Host { + if x != nil { + return x.Host } - l = len(m.Reason) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.Message) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - return n + return nil } -func (m *DaemonSet) Size() (n int) { - var l int - _ = l - if m.Metadata != nil { - l = m.Metadata.Size() - n += 1 + l + sovAgent(uint64(l)) - } - if m.Spec != nil { - l = m.Spec.Size() - n += 1 + l + sovAgent(uint64(l)) - } - if m.Status != nil { - l = m.Status.Size() - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.Yaml) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - l = len(s) - n += 1 + l + sovAgent(uint64(l)) - } +func (x *Node) GetMetrics() *ResourceMetrics { + if x != nil { + return x.Metrics } - if m.Metrics != nil { - l = m.Metrics.Size() - n += 1 + l + sovAgent(uint64(l)) - } - if len(m.Conditions) > 0 { - for _, e := range m.Conditions { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) - } - } - return n + return nil } -func (m *StatefulSetSpec) Size() (n int) { - var l int - _ = l - if m.DesiredReplicas != 0 { - n += 1 + sovAgent(uint64(m.DesiredReplicas)) - } - if len(m.Selectors) > 0 { - for _, e := range m.Selectors { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) - } - } - l = len(m.ServiceName) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.PodManagementPolicy) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.UpdateStrategy) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if m.Partition != 0 { - n += 1 + sovAgent(uint64(m.Partition)) - } - if len(m.ResourceRequirements) > 0 { - for _, e := range m.ResourceRequirements { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) - } - } - return n +// reference https://github.com/kubernetes/kubernetes/blob/cb19b56831d54d1d31249949318ef0b07bf00df9/staging/src/k8s.io/api/core/v1/generated.proto#L2348 +type NodeStatus struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Key/Value of a resource type and a corresponding quantity as an int64. + Capacity map[string]int64 `protobuf:"bytes,1,rep,name=capacity,proto3" json:"capacity,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` + // Key/Value of a resource type and a corresponding quantity as an int64. + Allocatable map[string]int64 `protobuf:"bytes,2,rep,name=allocatable,proto3" json:"allocatable,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` + // https://github.com/kubernetes/kubernetes/blob/cb19b56831d54d1d31249949318ef0b07bf00df9/staging/src/k8s.io/api/core/v1/generated.proto#L2127 + // these are valid types https://github.com/kubernetes/api/blob/master/core/v1/types.go#L4739-L4753 + NodeAddresses map[string]string `protobuf:"bytes,3,rep,name=nodeAddresses,proto3" json:"nodeAddresses,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + // node status displayed by "kubectl get node" + // mostly based on NodeCondition + // and https://github.com/kubernetes/kubernetes/blob/1e12d92a5179dbfeb455c79dbf9120c8536e5f9c/pkg/printers/internalversion/printers.go#L1410 + Status string `protobuf:"bytes,4,opt,name=status,proto3" json:"status,omitempty"` + KubeletVersion string `protobuf:"bytes,5,opt,name=kubeletVersion,proto3" json:"kubeletVersion,omitempty"` + Conditions []*NodeCondition `protobuf:"bytes,6,rep,name=conditions,proto3" json:"conditions,omitempty"` + Images []*ContainerImage `protobuf:"bytes,7,rep,name=images,proto3" json:"images,omitempty"` + // node system info reference https://github.com/kubernetes/kubernetes/blob/cb19b56831d54d1d31249949318ef0b07bf00df9/staging/src/k8s.io/api/core/v1/generated.proto#L2411 + KubeProxyVersion string `protobuf:"bytes,8,opt,name=kubeProxyVersion,proto3" json:"kubeProxyVersion,omitempty"` + OperatingSystem string `protobuf:"bytes,9,opt,name=operatingSystem,proto3" json:"operatingSystem,omitempty"` + Architecture string `protobuf:"bytes,10,opt,name=architecture,proto3" json:"architecture,omitempty"` + KernelVersion string `protobuf:"bytes,11,opt,name=kernelVersion,proto3" json:"kernelVersion,omitempty"` + OsImage string `protobuf:"bytes,12,opt,name=osImage,proto3" json:"osImage,omitempty"` + ContainerRuntimeVersion string `protobuf:"bytes,13,opt,name=containerRuntimeVersion,proto3" json:"containerRuntimeVersion,omitempty"` } -func (m *StatefulSetStatus) Size() (n int) { - var l int - _ = l - if m.Replicas != 0 { - n += 1 + sovAgent(uint64(m.Replicas)) +func (x *NodeStatus) Reset() { + *x = NodeStatus{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[57] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - if m.ReadyReplicas != 0 { - n += 1 + sovAgent(uint64(m.ReadyReplicas)) - } - if m.CurrentReplicas != 0 { - n += 1 + sovAgent(uint64(m.CurrentReplicas)) - } - if m.UpdatedReplicas != 0 { - n += 1 + sovAgent(uint64(m.UpdatedReplicas)) - } - return n } -func (m *StatefulSetCondition) Size() (n int) { - var l int - _ = l - l = len(m.Type) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.Status) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if m.LastTransitionTime != 0 { - n += 1 + sovAgent(uint64(m.LastTransitionTime)) - } - l = len(m.Reason) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.Message) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - return n +func (x *NodeStatus) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *StatefulSet) Size() (n int) { - var l int - _ = l - if m.Metadata != nil { - l = m.Metadata.Size() - n += 1 + l + sovAgent(uint64(l)) - } - if m.Spec != nil { - l = m.Spec.Size() - n += 1 + l + sovAgent(uint64(l)) - } - if m.Status != nil { - l = m.Status.Size() - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.Yaml) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - l = len(s) - n += 1 + l + sovAgent(uint64(l)) - } - } - if m.Metrics != nil { - l = m.Metrics.Size() - n += 1 + l + sovAgent(uint64(l)) - } - if len(m.Conditions) > 0 { - for _, e := range m.Conditions { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) +func (*NodeStatus) ProtoMessage() {} + +func (x *NodeStatus) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[57] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - return n + return mi.MessageOf(x) } -func (m *PersistentVolume) Size() (n int) { - var l int - _ = l - if m.Metadata != nil { - l = m.Metadata.Size() - n += 1 + l + sovAgent(uint64(l)) - } - if m.Spec != nil { - l = m.Spec.Size() - n += 1 + l + sovAgent(uint64(l)) - } - if m.Status != nil { - l = m.Status.Size() - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.Yaml) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - l = len(s) - n += 1 + l + sovAgent(uint64(l)) - } - } - return n +// Deprecated: Use NodeStatus.ProtoReflect.Descriptor instead. +func (*NodeStatus) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{57} } -func (m *PersistentVolumeSpec) Size() (n int) { - var l int - _ = l - if len(m.Capacity) > 0 { - for k, v := range m.Capacity { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovAgent(uint64(len(k))) + 1 + sovAgent(uint64(v)) - n += mapEntrySize + 1 + sovAgent(uint64(mapEntrySize)) - } - } - l = len(m.PersistentVolumeType) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if len(m.AccessModes) > 0 { - for _, s := range m.AccessModes { - l = len(s) - n += 1 + l + sovAgent(uint64(l)) - } - } - if m.ClaimRef != nil { - l = m.ClaimRef.Size() - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.PersistentVolumeReclaimPolicy) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.StorageClassName) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if len(m.MountOptions) > 0 { - for _, s := range m.MountOptions { - l = len(s) - n += 1 + l + sovAgent(uint64(l)) - } - } - l = len(m.VolumeMode) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) +func (x *NodeStatus) GetCapacity() map[string]int64 { + if x != nil { + return x.Capacity } - if len(m.NodeAffinity) > 0 { - for _, e := range m.NodeAffinity { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) - } - } - if m.PersistentVolumeSource != nil { - l = m.PersistentVolumeSource.Size() - n += 1 + l + sovAgent(uint64(l)) - } - return n + return nil } -func (m *PersistentVolumeSource) Size() (n int) { - var l int - _ = l - if m.GcePersistentDisk != nil { - l = m.GcePersistentDisk.Size() - n += 1 + l + sovAgent(uint64(l)) - } - if m.AwsElasticBlockStore != nil { - l = m.AwsElasticBlockStore.Size() - n += 1 + l + sovAgent(uint64(l)) - } - if m.AzureFile != nil { - l = m.AzureFile.Size() - n += 1 + l + sovAgent(uint64(l)) - } - if m.AzureDisk != nil { - l = m.AzureDisk.Size() - n += 1 + l + sovAgent(uint64(l)) - } - if m.Csi != nil { - l = m.Csi.Size() - n += 1 + l + sovAgent(uint64(l)) +func (x *NodeStatus) GetAllocatable() map[string]int64 { + if x != nil { + return x.Allocatable } - return n + return nil } -func (m *GCEPersistentDiskVolumeSource) Size() (n int) { - var l int - _ = l - l = len(m.PdName) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.FsType) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if m.Partition != 0 { - n += 1 + sovAgent(uint64(m.Partition)) - } - if m.ReadOnly { - n += 2 +func (x *NodeStatus) GetNodeAddresses() map[string]string { + if x != nil { + return x.NodeAddresses } - return n + return nil } -func (m *AWSElasticBlockStoreVolumeSource) Size() (n int) { - var l int - _ = l - l = len(m.VolumeID) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.FsType) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if m.Partition != 0 { - n += 1 + sovAgent(uint64(m.Partition)) - } - if m.ReadOnly { - n += 2 +func (x *NodeStatus) GetStatus() string { + if x != nil { + return x.Status } - return n + return "" } -func (m *AzureFilePersistentVolumeSource) Size() (n int) { - var l int - _ = l - l = len(m.SecretName) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) +func (x *NodeStatus) GetKubeletVersion() string { + if x != nil { + return x.KubeletVersion } - l = len(m.ShareName) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if m.ReadOnly { - n += 2 - } - l = len(m.SecretNamespace) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - return n + return "" } -func (m *AzureDiskVolumeSource) Size() (n int) { - var l int - _ = l - l = len(m.DiskName) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.DiskURI) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.CachingMode) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.FsType) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if m.ReadOnly { - n += 2 - } - l = len(m.Kind) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) +func (x *NodeStatus) GetConditions() []*NodeCondition { + if x != nil { + return x.Conditions } - return n + return nil } -func (m *CSIVolumeSource) Size() (n int) { - var l int - _ = l - l = len(m.Driver) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.VolumeHandle) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if m.ReadOnly { - n += 2 - } - l = len(m.FsType) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if len(m.VolumeAttributes) > 0 { - for k, v := range m.VolumeAttributes { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovAgent(uint64(len(k))) + 1 + len(v) + sovAgent(uint64(len(v))) - n += mapEntrySize + 1 + sovAgent(uint64(mapEntrySize)) - } - } - if m.ControllerPublishSecretRef != nil { - l = m.ControllerPublishSecretRef.Size() - n += 1 + l + sovAgent(uint64(l)) - } - if m.NodeStageSecretRef != nil { - l = m.NodeStageSecretRef.Size() - n += 1 + l + sovAgent(uint64(l)) +func (x *NodeStatus) GetImages() []*ContainerImage { + if x != nil { + return x.Images } - if m.NodePublishSecretRef != nil { - l = m.NodePublishSecretRef.Size() - n += 1 + l + sovAgent(uint64(l)) - } - if m.ControllerExpandSecretRef != nil { - l = m.ControllerExpandSecretRef.Size() - n += 1 + l + sovAgent(uint64(l)) - } - if m.NodeExpandSecretRef != nil { - l = m.NodeExpandSecretRef.Size() - n += 1 + l + sovAgent(uint64(l)) - } - return n + return nil } -func (m *SecretReference) Size() (n int) { - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) +func (x *NodeStatus) GetKubeProxyVersion() string { + if x != nil { + return x.KubeProxyVersion } - l = len(m.Namespace) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - return n + return "" } -func (m *PersistentVolumeStatus) Size() (n int) { - var l int - _ = l - l = len(m.Phase) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.Message) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) +func (x *NodeStatus) GetOperatingSystem() string { + if x != nil { + return x.OperatingSystem } - l = len(m.Reason) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - return n + return "" } -func (m *NodeSelectorTerm) Size() (n int) { - var l int - _ = l - if len(m.MatchExpressions) > 0 { - for _, e := range m.MatchExpressions { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) - } +func (x *NodeStatus) GetArchitecture() string { + if x != nil { + return x.Architecture } - if len(m.MatchFields) > 0 { - for _, e := range m.MatchFields { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) - } - } - return n + return "" } -func (m *PersistentVolumeClaim) Size() (n int) { - var l int - _ = l - if m.Metadata != nil { - l = m.Metadata.Size() - n += 1 + l + sovAgent(uint64(l)) - } - if m.Spec != nil { - l = m.Spec.Size() - n += 1 + l + sovAgent(uint64(l)) - } - if m.Status != nil { - l = m.Status.Size() - n += 1 + l + sovAgent(uint64(l)) +func (x *NodeStatus) GetKernelVersion() string { + if x != nil { + return x.KernelVersion } - l = len(m.Yaml) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - l = len(s) - n += 1 + l + sovAgent(uint64(l)) - } - } - return n + return "" } -func (m *PersistentVolumeClaimStatus) Size() (n int) { - var l int - _ = l - l = len(m.Phase) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if len(m.AccessModes) > 0 { - for _, s := range m.AccessModes { - l = len(s) - n += 1 + l + sovAgent(uint64(l)) - } - } - if len(m.Capacity) > 0 { - for k, v := range m.Capacity { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovAgent(uint64(len(k))) + 1 + sovAgent(uint64(v)) - n += mapEntrySize + 1 + sovAgent(uint64(mapEntrySize)) - } - } - if len(m.Conditions) > 0 { - for _, e := range m.Conditions { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) - } +func (x *NodeStatus) GetOsImage() string { + if x != nil { + return x.OsImage } - return n + return "" } -func (m *PersistentVolumeClaimSpec) Size() (n int) { - var l int - _ = l - if len(m.AccessModes) > 0 { - for _, s := range m.AccessModes { - l = len(s) - n += 1 + l + sovAgent(uint64(l)) - } - } - if m.Resources != nil { - l = m.Resources.Size() - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.VolumeName) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) +func (x *NodeStatus) GetContainerRuntimeVersion() string { + if x != nil { + return x.ContainerRuntimeVersion } - if len(m.Selector) > 0 { - for _, e := range m.Selector { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) - } - } - l = len(m.StorageClassName) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.VolumeMode) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if m.DataSource != nil { - l = m.DataSource.Size() - n += 1 + l + sovAgent(uint64(l)) - } - return n + return "" } -func (m *TypedLocalObjectReference) Size() (n int) { - var l int - _ = l - l = len(m.ApiGroup) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.Kind) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.Name) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - return n +// reference: https://github.com/kubernetes/kubernetes/blob/cb19b56831d54d1d31249949318ef0b07bf00df9/staging/src/k8s.io/api/core/v1/generated.proto#L2158 +type NodeCondition struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` + Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` + LastTransitionTime int64 `protobuf:"varint,3,opt,name=lastTransitionTime,proto3" json:"lastTransitionTime,omitempty"` + Reason string `protobuf:"bytes,4,opt,name=reason,proto3" json:"reason,omitempty"` + Message string `protobuf:"bytes,5,opt,name=message,proto3" json:"message,omitempty"` } -func (m *PersistentVolumeClaimCondition) Size() (n int) { - var l int - _ = l - l = len(m.Type) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) +func (x *NodeCondition) Reset() { + *x = NodeCondition{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[58] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - l = len(m.Status) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if m.LastProbeTime != 0 { - n += 1 + sovAgent(uint64(m.LastProbeTime)) - } - if m.LastTransitionTime != 0 { - n += 1 + sovAgent(uint64(m.LastTransitionTime)) - } - l = len(m.Reason) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.Message) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - return n } -func (m *PolicyRule) Size() (n int) { - var l int - _ = l - if len(m.Verbs) > 0 { - for _, s := range m.Verbs { - l = len(s) - n += 1 + l + sovAgent(uint64(l)) - } - } - if len(m.ApiGroups) > 0 { - for _, s := range m.ApiGroups { - l = len(s) - n += 1 + l + sovAgent(uint64(l)) - } - } - if len(m.Resources) > 0 { - for _, s := range m.Resources { - l = len(s) - n += 1 + l + sovAgent(uint64(l)) - } - } - if len(m.ResourceNames) > 0 { - for _, s := range m.ResourceNames { - l = len(s) - n += 1 + l + sovAgent(uint64(l)) - } - } - if len(m.NonResourceURLs) > 0 { - for _, s := range m.NonResourceURLs { - l = len(s) - n += 1 + l + sovAgent(uint64(l)) +func (x *NodeCondition) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NodeCondition) ProtoMessage() {} + +func (x *NodeCondition) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[58] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - return n + return mi.MessageOf(x) } -func (m *Subject) Size() (n int) { - var l int - _ = l - l = len(m.Kind) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.ApiGroup) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.Name) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.Namespace) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - return n +// Deprecated: Use NodeCondition.ProtoReflect.Descriptor instead. +func (*NodeCondition) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{58} } -func (m *Role) Size() (n int) { - var l int - _ = l - if m.Metadata != nil { - l = m.Metadata.Size() - n += 1 + l + sovAgent(uint64(l)) - } - if len(m.Rules) > 0 { - for _, e := range m.Rules { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) - } - } - l = len(m.Yaml) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - l = len(s) - n += 1 + l + sovAgent(uint64(l)) - } +func (x *NodeCondition) GetType() string { + if x != nil { + return x.Type } - return n + return "" } -func (m *RoleBinding) Size() (n int) { - var l int - _ = l - if m.Metadata != nil { - l = m.Metadata.Size() - n += 1 + l + sovAgent(uint64(l)) - } - if len(m.Subjects) > 0 { - for _, e := range m.Subjects { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) - } - } - if m.RoleRef != nil { - l = m.RoleRef.Size() - n += 1 + l + sovAgent(uint64(l)) +func (x *NodeCondition) GetStatus() string { + if x != nil { + return x.Status } - l = len(m.Yaml) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - l = len(s) - n += 1 + l + sovAgent(uint64(l)) - } - } - return n + return "" } -func (m *ClusterRole) Size() (n int) { - var l int - _ = l - if m.Metadata != nil { - l = m.Metadata.Size() - n += 1 + l + sovAgent(uint64(l)) - } - if len(m.Rules) > 0 { - for _, e := range m.Rules { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) - } - } - if len(m.AggregationRules) > 0 { - for _, e := range m.AggregationRules { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) - } - } - l = len(m.Yaml) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) +func (x *NodeCondition) GetLastTransitionTime() int64 { + if x != nil { + return x.LastTransitionTime } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - l = len(s) - n += 1 + l + sovAgent(uint64(l)) - } - } - if m.Metrics != nil { - l = m.Metrics.Size() - n += 1 + l + sovAgent(uint64(l)) - } - return n + return 0 } -func (m *ClusterRoleBinding) Size() (n int) { - var l int - _ = l - if m.Metadata != nil { - l = m.Metadata.Size() - n += 1 + l + sovAgent(uint64(l)) +func (x *NodeCondition) GetReason() string { + if x != nil { + return x.Reason } - if len(m.Subjects) > 0 { - for _, e := range m.Subjects { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) - } - } - if m.RoleRef != nil { - l = m.RoleRef.Size() - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.Yaml) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - l = len(s) - n += 1 + l + sovAgent(uint64(l)) - } - } - return n + return "" } -func (m *ServiceAccount) Size() (n int) { - var l int - _ = l - if m.Metadata != nil { - l = m.Metadata.Size() - n += 1 + l + sovAgent(uint64(l)) - } - if len(m.Secrets) > 0 { - for _, e := range m.Secrets { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) - } +func (x *NodeCondition) GetMessage() string { + if x != nil { + return x.Message } - if len(m.ImagePullSecrets) > 0 { - for _, e := range m.ImagePullSecrets { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) - } - } - if m.AutomountServiceAccountToken { - n += 2 - } - l = len(m.Yaml) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - l = len(s) - n += 1 + l + sovAgent(uint64(l)) - } - } - return n + return "" } -func (m *IngressServiceBackend) Size() (n int) { - var l int - _ = l - l = len(m.ServiceName) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.PortName) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if m.PortNumber != 0 { - n += 1 + sovAgent(uint64(m.PortNumber)) - } - return n +// reference https://github.com/kubernetes/kubernetes/blob/cb19b56831d54d1d31249949318ef0b07bf00df9/staging/src/k8s.io/api/core/v1/generated.proto#L777 +type ContainerImage struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Names []string `protobuf:"bytes,1,rep,name=names,proto3" json:"names,omitempty"` + SizeBytes int64 `protobuf:"varint,2,opt,name=sizeBytes,proto3" json:"sizeBytes,omitempty"` } -func (m *IngressBackend) Size() (n int) { - var l int - _ = l - if m.Service != nil { - l = m.Service.Size() - n += 1 + l + sovAgent(uint64(l)) - } - if m.Resource != nil { - l = m.Resource.Size() - n += 1 + l + sovAgent(uint64(l)) +func (x *ContainerImage) Reset() { + *x = ContainerImage{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[59] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return n } -func (m *IngressTLS) Size() (n int) { - var l int - _ = l - if len(m.Hosts) > 0 { - for _, s := range m.Hosts { - l = len(s) - n += 1 + l + sovAgent(uint64(l)) +func (x *ContainerImage) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ContainerImage) ProtoMessage() {} + +func (x *ContainerImage) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[59] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - l = len(m.SecretName) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - return n + return mi.MessageOf(x) } -func (m *HTTPIngressPath) Size() (n int) { - var l int - _ = l - l = len(m.Path) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if m.Backend != nil { - l = m.Backend.Size() - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.PathType) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - return n +// Deprecated: Use ContainerImage.ProtoReflect.Descriptor instead. +func (*ContainerImage) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{59} } -func (m *IngressRule) Size() (n int) { - var l int - _ = l - l = len(m.Host) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if len(m.HttpPaths) > 0 { - for _, e := range m.HttpPaths { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) - } +func (x *ContainerImage) GetNames() []string { + if x != nil { + return x.Names } - return n + return nil } -func (m *IngressSpec) Size() (n int) { - var l int - _ = l - if m.DefaultBackend != nil { - l = m.DefaultBackend.Size() - n += 1 + l + sovAgent(uint64(l)) +func (x *ContainerImage) GetSizeBytes() int64 { + if x != nil { + return x.SizeBytes } - if len(m.Tls) > 0 { - for _, e := range m.Tls { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) - } - } - if len(m.Rules) > 0 { - for _, e := range m.Rules { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) - } - } - l = len(m.IngressClassName) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - return n + return 0 } -func (m *PortStatus) Size() (n int) { - var l int - _ = l - if m.Port != 0 { - n += 1 + sovAgent(uint64(m.Port)) - } - l = len(m.Protocol) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.Error) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - return n +// reference https://github.com/kubernetes/kubernetes/blob/cb19b56831d54d1d31249949318ef0b07bf00df9/staging/src/k8s.io/api/core/v1/generated.proto#L4849 +type Taint struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` + Effect string `protobuf:"bytes,3,opt,name=effect,proto3" json:"effect,omitempty"` + TimeAdded int64 `protobuf:"varint,4,opt,name=timeAdded,proto3" json:"timeAdded,omitempty"` } -func (m *LoadBalancerIngress) Size() (n int) { - var l int - _ = l - l = len(m.Ip) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) +func (x *Taint) Reset() { + *x = Taint{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[60] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - l = len(m.Hostname) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if len(m.Ports) > 0 { - for _, e := range m.Ports { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) - } - } - return n } -func (m *IngressStatus) Size() (n int) { - var l int - _ = l - if len(m.Ingress) > 0 { - for _, e := range m.Ingress { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) - } - } - return n +func (x *Taint) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Ingress) Size() (n int) { - var l int - _ = l - if m.Metadata != nil { - l = m.Metadata.Size() - n += 1 + l + sovAgent(uint64(l)) - } - if m.Spec != nil { - l = m.Spec.Size() - n += 1 + l + sovAgent(uint64(l)) - } - if m.Status != nil { - l = m.Status.Size() - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.Yaml) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - l = len(s) - n += 1 + l + sovAgent(uint64(l)) +func (*Taint) ProtoMessage() {} + +func (x *Taint) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[60] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - return n + return mi.MessageOf(x) } -func (m *KafkaRequestHeader) Size() (n int) { - var l int - _ = l - if m.RequestType != 0 { - n += 1 + sovAgent(uint64(m.RequestType)) - } - if m.RequestVersion != 0 { - n += 1 + sovAgent(uint64(m.RequestVersion)) - } - return n +// Deprecated: Use Taint.ProtoReflect.Descriptor instead. +func (*Taint) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{60} } -func (m *KafkaAggregation) Size() (n int) { - var l int - _ = l - if m.Header != nil { - l = m.Header.Size() - n += 1 + l + sovAgent(uint64(l)) +func (x *Taint) GetKey() string { + if x != nil { + return x.Key } - l = len(m.Topic) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) + return "" +} + +func (x *Taint) GetValue() string { + if x != nil { + return x.Value } - if m.Count != 0 { - n += 1 + sovAgent(uint64(m.Count)) + return "" +} + +func (x *Taint) GetEffect() string { + if x != nil { + return x.Effect } - return n + return "" } -func (m *DataStreamsAggregations) Size() (n int) { - var l int - _ = l - if m.KafkaProduceAggregations != nil { - l = m.KafkaProduceAggregations.Size() - n += 1 + l + sovAgent(uint64(l)) +func (x *Taint) GetTimeAdded() int64 { + if x != nil { + return x.TimeAdded } - if m.KafkaFetchAggregations != nil { - l = m.KafkaFetchAggregations.Size() - n += 1 + l + sovAgent(uint64(l)) + return 0 +} + +// reference https://github.com/kubernetes/kubernetes/blob/cb19b56831d54d1d31249949318ef0b07bf00df9/staging/src/k8s.io/api/core/v1/generated.proto#L4620 +type ServiceSpec struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Ports []*ServicePort `protobuf:"bytes,1,rep,name=ports,proto3" json:"ports,omitempty"` + Selectors []*LabelSelectorRequirement `protobuf:"bytes,2,rep,name=selectors,proto3" json:"selectors,omitempty"` + ClusterIP string `protobuf:"bytes,3,opt,name=clusterIP,proto3" json:"clusterIP,omitempty"` + Type string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"` + ExternalIPs []string `protobuf:"bytes,5,rep,name=externalIPs,proto3" json:"externalIPs,omitempty"` + SessionAffinity string `protobuf:"bytes,6,opt,name=sessionAffinity,proto3" json:"sessionAffinity,omitempty"` + LoadBalancerIP string `protobuf:"bytes,7,opt,name=loadBalancerIP,proto3" json:"loadBalancerIP,omitempty"` + LoadBalancerSourceRanges []string `protobuf:"bytes,8,rep,name=loadBalancerSourceRanges,proto3" json:"loadBalancerSourceRanges,omitempty"` + ExternalName string `protobuf:"bytes,9,opt,name=externalName,proto3" json:"externalName,omitempty"` + ExternalTrafficPolicy string `protobuf:"bytes,10,opt,name=externalTrafficPolicy,proto3" json:"externalTrafficPolicy,omitempty"` + HealthCheckNodePort int32 `protobuf:"varint,11,opt,name=healthCheckNodePort,proto3" json:"healthCheckNodePort,omitempty"` + PublishNotReadyAddresses bool `protobuf:"varint,12,opt,name=publishNotReadyAddresses,proto3" json:"publishNotReadyAddresses,omitempty"` + SessionAffinityConfig *ServiceSessionAffinityConfig `protobuf:"bytes,13,opt,name=sessionAffinityConfig,proto3" json:"sessionAffinityConfig,omitempty"` + IpFamily string `protobuf:"bytes,14,opt,name=ipFamily,proto3" json:"ipFamily,omitempty"` +} + +func (x *ServiceSpec) Reset() { + *x = ServiceSpec{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[61] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - if len(m.KafkaAggregations) > 0 { - for _, e := range m.KafkaAggregations { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) +} + +func (x *ServiceSpec) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ServiceSpec) ProtoMessage() {} + +func (x *ServiceSpec) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[61] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - return n + return mi.MessageOf(x) +} + +// Deprecated: Use ServiceSpec.ProtoReflect.Descriptor instead. +func (*ServiceSpec) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{61} } -func (m *DataStreamsAggregations_TopicStats) Size() (n int) { - var l int - _ = l - l = len(m.Topic) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) +func (x *ServiceSpec) GetPorts() []*ServicePort { + if x != nil { + return x.Ports } - if m.Count != 0 { - n += 1 + sovAgent(uint64(m.Count)) + return nil +} + +func (x *ServiceSpec) GetSelectors() []*LabelSelectorRequirement { + if x != nil { + return x.Selectors } - return n + return nil } -func (m *DataStreamsAggregations_KafkaProduceAggregations) Size() (n int) { - var l int - _ = l - if len(m.Stats) > 0 { - for _, e := range m.Stats { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) - } +func (x *ServiceSpec) GetClusterIP() string { + if x != nil { + return x.ClusterIP } - return n + return "" } -func (m *DataStreamsAggregations_KafkaFetchAggregations) Size() (n int) { - var l int - _ = l - if len(m.Stats) > 0 { - for _, e := range m.Stats { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) - } +func (x *ServiceSpec) GetType() string { + if x != nil { + return x.Type } - return n + return "" } -func (m *HTTPAggregations) Size() (n int) { - var l int - _ = l - if len(m.EndpointAggregations) > 0 { - for _, e := range m.EndpointAggregations { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) - } +func (x *ServiceSpec) GetExternalIPs() []string { + if x != nil { + return x.ExternalIPs } - return n + return nil } -func (m *HTTP2Aggregations) Size() (n int) { - var l int - _ = l - if len(m.EndpointAggregations) > 0 { - for _, e := range m.EndpointAggregations { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) - } +func (x *ServiceSpec) GetSessionAffinity() string { + if x != nil { + return x.SessionAffinity } - return n + return "" } -func (m *HTTPStats) Size() (n int) { - var l int - _ = l - if len(m.StatsByResponseStatus) > 0 { - for _, e := range m.StatsByResponseStatus { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) - } +func (x *ServiceSpec) GetLoadBalancerIP() string { + if x != nil { + return x.LoadBalancerIP } - if len(m.StatsByStatusCode) > 0 { - for k, v := range m.StatsByStatusCode { - _ = k - _ = v - l = 0 - if v != nil { - l = v.Size() - l += 1 + sovAgent(uint64(l)) - } - mapEntrySize := 1 + sovAgent(uint64(k)) + l - n += mapEntrySize + 1 + sovAgent(uint64(mapEntrySize)) - } + return "" +} + +func (x *ServiceSpec) GetLoadBalancerSourceRanges() []string { + if x != nil { + return x.LoadBalancerSourceRanges } - l = len(m.Path) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) + return nil +} + +func (x *ServiceSpec) GetExternalName() string { + if x != nil { + return x.ExternalName } - if m.Method != 0 { - n += 1 + sovAgent(uint64(m.Method)) + return "" +} + +func (x *ServiceSpec) GetExternalTrafficPolicy() string { + if x != nil { + return x.ExternalTrafficPolicy } - if m.FullPath { - n += 2 + return "" +} + +func (x *ServiceSpec) GetHealthCheckNodePort() int32 { + if x != nil { + return x.HealthCheckNodePort } - return n + return 0 } -func (m *HTTPStats_Data) Size() (n int) { - var l int - _ = l - if m.Count != 0 { - n += 1 + sovAgent(uint64(m.Count)) +func (x *ServiceSpec) GetPublishNotReadyAddresses() bool { + if x != nil { + return x.PublishNotReadyAddresses } - l = len(m.Latencies) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) + return false +} + +func (x *ServiceSpec) GetSessionAffinityConfig() *ServiceSessionAffinityConfig { + if x != nil { + return x.SessionAffinityConfig } - if m.FirstLatencySample != 0 { - n += 9 + return nil +} + +func (x *ServiceSpec) GetIpFamily() string { + if x != nil { + return x.IpFamily } - return n + return "" } -func (m *DNSDatabaseEntry) Size() (n int) { - var l int - _ = l - if len(m.NameOffsets) > 0 { - for _, e := range m.NameOffsets { - n += 1 + sovAgent(uint64(e)) - } +// reference https://github.com/kubernetes/kubernetes/blob/cb19b56831d54d1d31249949318ef0b07bf00df9/staging/src/k8s.io/api/core/v1/generated.proto#L4748 +type ServiceStatus struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + LoadBalancerIngress []string `protobuf:"bytes,17,rep,name=loadBalancerIngress,proto3" json:"loadBalancerIngress,omitempty"` +} + +func (x *ServiceStatus) Reset() { + *x = ServiceStatus{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[62] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return n } -func (m *ResourceList) Size() (n int) { - var l int - _ = l - if len(m.MetricValues) > 0 { - for k, v := range m.MetricValues { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovAgent(uint64(len(k))) + 1 + 8 - n += mapEntrySize + 1 + sovAgent(uint64(mapEntrySize)) +func (x *ServiceStatus) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ServiceStatus) ProtoMessage() {} + +func (x *ServiceStatus) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[62] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - return n + return mi.MessageOf(x) } -func (m *VerticalPodAutoscaler) Size() (n int) { - var l int - _ = l - if m.Metadata != nil { - l = m.Metadata.Size() - n += 1 + l + sovAgent(uint64(l)) - } - if m.Spec != nil { - l = m.Spec.Size() - n += 1 + l + sovAgent(uint64(l)) - } - if m.Status != nil { - l = m.Status.Size() - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.Yaml) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) +// Deprecated: Use ServiceStatus.ProtoReflect.Descriptor instead. +func (*ServiceStatus) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{62} +} + +func (x *ServiceStatus) GetLoadBalancerIngress() []string { + if x != nil { + return x.LoadBalancerIngress } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - l = len(s) - n += 1 + l + sovAgent(uint64(l)) - } + return nil +} + +// reference https://github.com/kubernetes/kubernetes/blob/release-1.19/staging/src/k8s.io/api/core/v1/generated.proto +type Service struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Metadata *Metadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` + Spec *ServiceSpec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"` + Status *ServiceStatus `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` + // Deprecated: Marked as deprecated in proto/process/agent.proto. + Yaml []byte `protobuf:"bytes,4,opt,name=yaml,proto3" json:"yaml,omitempty"` // see CollectorManifest + Tags []string `protobuf:"bytes,5,rep,name=tags,proto3" json:"tags,omitempty"` + Metrics *ResourceMetrics `protobuf:"bytes,6,opt,name=metrics,proto3" json:"metrics,omitempty"` +} + +func (x *Service) Reset() { + *x = Service{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[63] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - if len(m.Conditions) > 0 { - for _, e := range m.Conditions { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) +} + +func (x *Service) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Service) ProtoMessage() {} + +func (x *Service) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[63] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - return n + return mi.MessageOf(x) +} + +// Deprecated: Use Service.ProtoReflect.Descriptor instead. +func (*Service) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{63} } -func (m *VerticalPodAutoscalerCondition) Size() (n int) { - var l int - _ = l - l = len(m.Type) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) +func (x *Service) GetMetadata() *Metadata { + if x != nil { + return x.Metadata } - l = len(m.Status) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) + return nil +} + +func (x *Service) GetSpec() *ServiceSpec { + if x != nil { + return x.Spec } - if m.LastTransitionTime != 0 { - n += 1 + sovAgent(uint64(m.LastTransitionTime)) + return nil +} + +func (x *Service) GetStatus() *ServiceStatus { + if x != nil { + return x.Status } - l = len(m.Reason) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) + return nil +} + +// Deprecated: Marked as deprecated in proto/process/agent.proto. +func (x *Service) GetYaml() []byte { + if x != nil { + return x.Yaml } - l = len(m.Message) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) + return nil +} + +func (x *Service) GetTags() []string { + if x != nil { + return x.Tags } - return n + return nil } -func (m *VerticalPodAutoscalerSpec) Size() (n int) { - var l int - _ = l - if m.Target != nil { - l = m.Target.Size() - n += 1 + l + sovAgent(uint64(l)) +func (x *Service) GetMetrics() *ResourceMetrics { + if x != nil { + return x.Metrics } - l = len(m.UpdateMode) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) + return nil +} + +// reference https://github.com/kubernetes/kubernetes/blob/cb19b56831d54d1d31249949318ef0b07bf00df9/staging/src/k8s.io/api/apps/v1/generated.proto#L236 +type DeploymentCondition struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` + Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` + LastUpdateTime int64 `protobuf:"varint,6,opt,name=lastUpdateTime,proto3" json:"lastUpdateTime,omitempty"` + LastTransitionTime int64 `protobuf:"varint,7,opt,name=lastTransitionTime,proto3" json:"lastTransitionTime,omitempty"` + Reason string `protobuf:"bytes,4,opt,name=reason,proto3" json:"reason,omitempty"` + Message string `protobuf:"bytes,5,opt,name=message,proto3" json:"message,omitempty"` +} + +func (x *DeploymentCondition) Reset() { + *x = DeploymentCondition{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[64] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - if len(m.ResourcePolicies) > 0 { - for _, e := range m.ResourcePolicies { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) +} + +func (x *DeploymentCondition) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeploymentCondition) ProtoMessage() {} + +func (x *DeploymentCondition) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[64] + 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 DeploymentCondition.ProtoReflect.Descriptor instead. +func (*DeploymentCondition) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{64} +} + +func (x *DeploymentCondition) GetType() string { + if x != nil { + return x.Type } - return n + return "" } -func (m *VerticalPodAutoscalerTarget) Size() (n int) { - var l int - _ = l - l = len(m.Kind) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) +func (x *DeploymentCondition) GetStatus() string { + if x != nil { + return x.Status } - l = len(m.Name) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) + return "" +} + +func (x *DeploymentCondition) GetLastUpdateTime() int64 { + if x != nil { + return x.LastUpdateTime } - return n + return 0 } -func (m *ContainerResourcePolicy) Size() (n int) { - var l int - _ = l - l = len(m.ContainerName) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) +func (x *DeploymentCondition) GetLastTransitionTime() int64 { + if x != nil { + return x.LastTransitionTime } - l = len(m.Mode) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) + return 0 +} + +func (x *DeploymentCondition) GetReason() string { + if x != nil { + return x.Reason } - if m.MinAllowed != nil { - l = m.MinAllowed.Size() - n += 1 + l + sovAgent(uint64(l)) + return "" +} + +func (x *DeploymentCondition) GetMessage() string { + if x != nil { + return x.Message } - if m.MaxAllowed != nil { - l = m.MaxAllowed.Size() - n += 1 + l + sovAgent(uint64(l)) + return "" +} + +// reference https://github.com/kubernetes/kubernetes/blob/cb19b56831d54d1d31249949318ef0b07bf00df9/staging/src/k8s.io/api/apps/v1/generated.proto#L221 +type Deployment struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Metadata *Metadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` + // spec + ReplicasDesired int32 `protobuf:"varint,2,opt,name=replicasDesired,proto3" json:"replicasDesired,omitempty"` + DeploymentStrategy string `protobuf:"bytes,3,opt,name=deploymentStrategy,proto3" json:"deploymentStrategy,omitempty"` + MaxUnavailable string `protobuf:"bytes,4,opt,name=maxUnavailable,proto3" json:"maxUnavailable,omitempty"` // int or str + MaxSurge string `protobuf:"bytes,5,opt,name=maxSurge,proto3" json:"maxSurge,omitempty"` // int or str + Paused bool `protobuf:"varint,6,opt,name=paused,proto3" json:"paused,omitempty"` + Selectors []*LabelSelectorRequirement `protobuf:"bytes,7,rep,name=selectors,proto3" json:"selectors,omitempty"` + // status + Replicas int32 `protobuf:"varint,8,opt,name=replicas,proto3" json:"replicas,omitempty"` + UpdatedReplicas int32 `protobuf:"varint,9,opt,name=updatedReplicas,proto3" json:"updatedReplicas,omitempty"` + ReadyReplicas int32 `protobuf:"varint,10,opt,name=readyReplicas,proto3" json:"readyReplicas,omitempty"` + AvailableReplicas int32 `protobuf:"varint,11,opt,name=availableReplicas,proto3" json:"availableReplicas,omitempty"` + UnavailableReplicas int32 `protobuf:"varint,12,opt,name=unavailableReplicas,proto3" json:"unavailableReplicas,omitempty"` + ConditionMessage string `protobuf:"bytes,13,opt,name=conditionMessage,proto3" json:"conditionMessage,omitempty"` + ResourceRequirements []*ResourceRequirements `protobuf:"bytes,16,rep,name=resourceRequirements,proto3" json:"resourceRequirements,omitempty"` + // Deprecated: Marked as deprecated in proto/process/agent.proto. + Yaml []byte `protobuf:"bytes,14,opt,name=yaml,proto3" json:"yaml,omitempty"` // see CollectorManifest + Tags []string `protobuf:"bytes,15,rep,name=tags,proto3" json:"tags,omitempty"` + Metrics *ResourceMetrics `protobuf:"bytes,17,opt,name=metrics,proto3" json:"metrics,omitempty"` + Conditions []*DeploymentCondition `protobuf:"bytes,18,rep,name=conditions,proto3" json:"conditions,omitempty"` +} + +func (x *Deployment) Reset() { + *x = Deployment{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[65] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - if len(m.ControlledResource) > 0 { - for _, s := range m.ControlledResource { - l = len(s) - n += 1 + l + sovAgent(uint64(l)) +} + +func (x *Deployment) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Deployment) ProtoMessage() {} + +func (x *Deployment) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[65] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - l = len(m.ControlledValues) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) + return mi.MessageOf(x) +} + +// Deprecated: Use Deployment.ProtoReflect.Descriptor instead. +func (*Deployment) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{65} +} + +func (x *Deployment) GetMetadata() *Metadata { + if x != nil { + return x.Metadata } - return n + return nil } -func (m *VerticalPodAutoscalerStatus) Size() (n int) { - var l int - _ = l - if m.LastRecommendedDate != 0 { - n += 1 + sovAgent(uint64(m.LastRecommendedDate)) +func (x *Deployment) GetReplicasDesired() int32 { + if x != nil { + return x.ReplicasDesired } - if len(m.Recommendations) > 0 { - for _, e := range m.Recommendations { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) - } + return 0 +} + +func (x *Deployment) GetDeploymentStrategy() string { + if x != nil { + return x.DeploymentStrategy } - if len(m.Conditions) > 0 { - for _, e := range m.Conditions { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) - } + return "" +} + +func (x *Deployment) GetMaxUnavailable() string { + if x != nil { + return x.MaxUnavailable } - return n + return "" } -func (m *ContainerRecommendation) Size() (n int) { - var l int - _ = l - l = len(m.ContainerName) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) +func (x *Deployment) GetMaxSurge() string { + if x != nil { + return x.MaxSurge } - if m.Target != nil { - l = m.Target.Size() - n += 1 + l + sovAgent(uint64(l)) + return "" +} + +func (x *Deployment) GetPaused() bool { + if x != nil { + return x.Paused } - if m.LowerBound != nil { - l = m.LowerBound.Size() - n += 1 + l + sovAgent(uint64(l)) + return false +} + +func (x *Deployment) GetSelectors() []*LabelSelectorRequirement { + if x != nil { + return x.Selectors } - if m.UpperBound != nil { - l = m.UpperBound.Size() - n += 1 + l + sovAgent(uint64(l)) + return nil +} + +func (x *Deployment) GetReplicas() int32 { + if x != nil { + return x.Replicas } - if m.UncappedTarget != nil { - l = m.UncappedTarget.Size() - n += 1 + l + sovAgent(uint64(l)) + return 0 +} + +func (x *Deployment) GetUpdatedReplicas() int32 { + if x != nil { + return x.UpdatedReplicas } - return n + return 0 } -func (m *VPACondition) Size() (n int) { - var l int - _ = l - l = len(m.ConditionType) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) +func (x *Deployment) GetReadyReplicas() int32 { + if x != nil { + return x.ReadyReplicas } - l = len(m.ConditionStatus) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) + return 0 +} + +func (x *Deployment) GetAvailableReplicas() int32 { + if x != nil { + return x.AvailableReplicas } - if m.LastTransitionTime != 0 { - n += 1 + sovAgent(uint64(m.LastTransitionTime)) + return 0 +} + +func (x *Deployment) GetUnavailableReplicas() int32 { + if x != nil { + return x.UnavailableReplicas } - l = len(m.Reason) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) + return 0 +} + +func (x *Deployment) GetConditionMessage() string { + if x != nil { + return x.ConditionMessage } - l = len(m.Message) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) + return "" +} + +func (x *Deployment) GetResourceRequirements() []*ResourceRequirements { + if x != nil { + return x.ResourceRequirements } - return n + return nil } -func sovAgent(x uint64) (n int) { - for { - n++ - x >>= 7 - if x == 0 { - break - } +// Deprecated: Marked as deprecated in proto/process/agent.proto. +func (x *Deployment) GetYaml() []byte { + if x != nil { + return x.Yaml } - return n + return nil } -func sozAgent(x uint64) (n int) { - return sovAgent(uint64((x << 1) ^ uint64((int64(x) >> 63)))) + +func (x *Deployment) GetTags() []string { + if x != nil { + return x.Tags + } + return nil } -func (m *ResCollector) Unmarshal(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 ErrIntOverflowAgent - } - 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: ResCollector: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ResCollector: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Header == nil { - m.Header = &ResCollector_Header{} - } - if err := m.Header.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Message = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Status == nil { - m.Status = &CollectorStatus{} - } - if err := m.Status.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + +func (x *Deployment) GetMetrics() *ResourceMetrics { + if x != nil { + return x.Metrics } + return nil +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *Deployment) GetConditions() []*DeploymentCondition { + if x != nil { + return x.Conditions } return nil } -func (m *ResCollector_Header) Unmarshal(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 ErrIntOverflowAgent - } - 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: Header: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Header: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - m.Type = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.Type |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy + +// reference https://github.com/kubernetes/kubernetes/blob/cb19b56831d54d1d31249949318ef0b07bf00df9/staging/src/k8s.io/api/apps/v1/generated.proto#L388 +type ReplicaSetCondition struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` + Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` + LastTransitionTime int64 `protobuf:"varint,3,opt,name=lastTransitionTime,proto3" json:"lastTransitionTime,omitempty"` + Reason string `protobuf:"bytes,4,opt,name=reason,proto3" json:"reason,omitempty"` + Message string `protobuf:"bytes,5,opt,name=message,proto3" json:"message,omitempty"` +} + +func (x *ReplicaSetCondition) Reset() { + *x = ReplicaSetCondition{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[66] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ReplicaSetCondition) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ReplicaSetCondition) ProtoMessage() {} + +func (x *ReplicaSetCondition) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[66] + 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 ReplicaSetCondition.ProtoReflect.Descriptor instead. +func (*ReplicaSetCondition) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{66} +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *ReplicaSetCondition) GetType() string { + if x != nil { + return x.Type } - return nil + return "" } -func (m *CollectorProc) Unmarshal(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 ErrIntOverflowAgent - } - 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: CollectorProc: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CollectorProc: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field HostName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.HostName = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Processes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Processes = append(m.Processes, &Process{}) - if err := m.Processes[len(m.Processes)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Host", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Host == nil { - m.Host = &Host{} - } - if err := m.Host.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Info == nil { - m.Info = &SystemInfo{} - } - if err := m.Info.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) - } - m.GroupId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.GroupId |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupSize", wireType) - } - m.GroupSize = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.GroupSize |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Containers", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Containers = append(m.Containers, &Container{}) - if err := m.Containers[len(m.Containers)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 11: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NetworkId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NetworkId = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 12: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ContainerHostType", wireType) - } - m.ContainerHostType = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.ContainerHostType |= (ContainerHostType(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 14: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field HintMask", wireType) - } - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - v |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.Hints = &CollectorProc_HintMask{v} - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + +func (x *ReplicaSetCondition) GetStatus() string { + if x != nil { + return x.Status } + return "" +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *ReplicaSetCondition) GetLastTransitionTime() int64 { + if x != nil { + return x.LastTransitionTime } - return nil + return 0 } -func (m *CollectorProcDiscovery) Unmarshal(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 ErrIntOverflowAgent - } - 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: CollectorProcDiscovery: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CollectorProcDiscovery: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field HostName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.HostName = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) - } - m.GroupId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.GroupId |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupSize", wireType) - } - m.GroupSize = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.GroupSize |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ProcessDiscoveries", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ProcessDiscoveries = append(m.ProcessDiscoveries, &ProcessDiscovery{}) - if err := m.ProcessDiscoveries[len(m.ProcessDiscoveries)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Host", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Host == nil { - m.Host = &Host{} - } - if err := m.Host.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy + +func (x *ReplicaSetCondition) GetReason() string { + if x != nil { + return x.Reason + } + return "" +} + +func (x *ReplicaSetCondition) GetMessage() string { + if x != nil { + return x.Message + } + return "" +} + +// reference https://github.com/kubernetes/kubernetes/blob/cb19b56831d54d1d31249949318ef0b07bf00df9/staging/src/k8s.io/api/apps/v1/generated.proto#L366 +type ReplicaSet struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Metadata *Metadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` + // spec + ReplicasDesired int32 `protobuf:"varint,2,opt,name=replicasDesired,proto3" json:"replicasDesired,omitempty"` + Selectors []*LabelSelectorRequirement `protobuf:"bytes,3,rep,name=selectors,proto3" json:"selectors,omitempty"` + // status + Replicas int32 `protobuf:"varint,4,opt,name=replicas,proto3" json:"replicas,omitempty"` + FullyLabeledReplicas int32 `protobuf:"varint,5,opt,name=fullyLabeledReplicas,proto3" json:"fullyLabeledReplicas,omitempty"` + ReadyReplicas int32 `protobuf:"varint,6,opt,name=readyReplicas,proto3" json:"readyReplicas,omitempty"` + AvailableReplicas int32 `protobuf:"varint,7,opt,name=availableReplicas,proto3" json:"availableReplicas,omitempty"` + ResourceRequirements []*ResourceRequirements `protobuf:"bytes,10,rep,name=resourceRequirements,proto3" json:"resourceRequirements,omitempty"` + // Deprecated: Marked as deprecated in proto/process/agent.proto. + Yaml []byte `protobuf:"bytes,8,opt,name=yaml,proto3" json:"yaml,omitempty"` // see CollectorManifest + Tags []string `protobuf:"bytes,9,rep,name=tags,proto3" json:"tags,omitempty"` + Metrics *ResourceMetrics `protobuf:"bytes,11,opt,name=metrics,proto3" json:"metrics,omitempty"` + Conditions []*ReplicaSetCondition `protobuf:"bytes,12,rep,name=conditions,proto3" json:"conditions,omitempty"` +} + +func (x *ReplicaSet) Reset() { + *x = ReplicaSet{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[67] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ReplicaSet) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ReplicaSet) ProtoMessage() {} + +func (x *ReplicaSet) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[67] + 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) +} - if iNdEx > l { - return io.ErrUnexpectedEOF +// Deprecated: Use ReplicaSet.ProtoReflect.Descriptor instead. +func (*ReplicaSet) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{67} +} + +func (x *ReplicaSet) GetMetadata() *Metadata { + if x != nil { + return x.Metadata } return nil } -func (m *CollectorRealTime) Unmarshal(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 ErrIntOverflowAgent - } - 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: CollectorRealTime: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CollectorRealTime: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field HostName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.HostName = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Stats", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Stats = append(m.Stats, &ProcessStat{}) - if err := m.Stats[len(m.Stats)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field HostId", wireType) - } - m.HostId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.HostId |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field OrgId", wireType) - } - m.OrgId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.OrgId |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) - } - m.GroupId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.GroupId |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupSize", wireType) - } - m.GroupSize = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.GroupSize |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NumCpus", wireType) - } - m.NumCpus = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.NumCpus |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 9: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TotalMemory", wireType) - } - m.TotalMemory = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.TotalMemory |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContainerStats", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ContainerStats = append(m.ContainerStats, &ContainerStat{}) - if err := m.ContainerStats[len(m.ContainerStats)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 11: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ContainerHostType", wireType) - } - m.ContainerHostType = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.ContainerHostType |= (ContainerHostType(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + +func (x *ReplicaSet) GetReplicasDesired() int32 { + if x != nil { + return x.ReplicasDesired } + return 0 +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *ReplicaSet) GetSelectors() []*LabelSelectorRequirement { + if x != nil { + return x.Selectors } return nil } -func (m *CollectorContainer) Unmarshal(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 ErrIntOverflowAgent - } - 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: CollectorContainer: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CollectorContainer: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field HostName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.HostName = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Info == nil { - m.Info = &SystemInfo{} - } - if err := m.Info.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Containers", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Containers = append(m.Containers, &Container{}) - if err := m.Containers[len(m.Containers)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) - } - m.GroupId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.GroupId |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupSize", wireType) - } - m.GroupSize = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.GroupSize |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Host", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Host == nil { - m.Host = &Host{} - } - if err := m.Host.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 9: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ContainerHostType", wireType) - } - m.ContainerHostType = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.ContainerHostType |= (ContainerHostType(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 11: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NetworkId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NetworkId = string(data[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + +func (x *ReplicaSet) GetReplicas() int32 { + if x != nil { + return x.Replicas + } + return 0 +} + +func (x *ReplicaSet) GetFullyLabeledReplicas() int32 { + if x != nil { + return x.FullyLabeledReplicas + } + return 0 +} + +func (x *ReplicaSet) GetReadyReplicas() int32 { + if x != nil { + return x.ReadyReplicas + } + return 0 +} + +func (x *ReplicaSet) GetAvailableReplicas() int32 { + if x != nil { + return x.AvailableReplicas } + return 0 +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *ReplicaSet) GetResourceRequirements() []*ResourceRequirements { + if x != nil { + return x.ResourceRequirements } return nil } -func (m *CollectorContainerRealTime) Unmarshal(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 ErrIntOverflowAgent - } - 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: CollectorContainerRealTime: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CollectorContainerRealTime: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field HostName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.HostName = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Stats", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Stats = append(m.Stats, &ContainerStat{}) - if err := m.Stats[len(m.Stats)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NumCpus", wireType) - } - m.NumCpus = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.NumCpus |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TotalMemory", wireType) - } - m.TotalMemory = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.TotalMemory |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field HostId", wireType) - } - m.HostId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.HostId |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) - } - m.GroupId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.GroupId |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupSize", wireType) - } - m.GroupSize = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.GroupSize |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ContainerHostType", wireType) - } - m.ContainerHostType = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.ContainerHostType |= (ContainerHostType(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + +// Deprecated: Marked as deprecated in proto/process/agent.proto. +func (x *ReplicaSet) GetYaml() []byte { + if x != nil { + return x.Yaml } + return nil +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *ReplicaSet) GetTags() []string { + if x != nil { + return x.Tags } return nil } -func (m *CollectorReqStatus) Unmarshal(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 ErrIntOverflowAgent - } - 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: CollectorReqStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CollectorReqStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field HostName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.HostName = string(data[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + +func (x *ReplicaSet) GetMetrics() *ResourceMetrics { + if x != nil { + return x.Metrics } + return nil +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *ReplicaSet) GetConditions() []*ReplicaSetCondition { + if x != nil { + return x.Conditions } return nil } -func (m *CollectorPod) Unmarshal(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 ErrIntOverflowAgent - } - 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: CollectorPod: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CollectorPod: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field HostName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.HostName = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClusterName = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClusterId = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) - } - m.GroupId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.GroupId |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupSize", wireType) - } - m.GroupSize = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.GroupSize |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Pods", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Pods = append(m.Pods, &Pod{}) - if err := m.Pods[len(m.Pods)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Host", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Host == nil { - m.Host = &Host{} - } - if err := m.Host.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 8: - 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 ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Tags = append(m.Tags, string(data[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy + +type LabelSelectorRequirement struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + // Valid operators are In, NotIn, Exists and DoesNotExist. + Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` + Values []string `protobuf:"bytes,3,rep,name=values,proto3" json:"values,omitempty"` +} + +func (x *LabelSelectorRequirement) Reset() { + *x = LabelSelectorRequirement{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[68] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *LabelSelectorRequirement) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*LabelSelectorRequirement) ProtoMessage() {} + +func (x *LabelSelectorRequirement) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[68] + 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 LabelSelectorRequirement.ProtoReflect.Descriptor instead. +func (*LabelSelectorRequirement) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{68} +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *LabelSelectorRequirement) GetKey() string { + if x != nil { + return x.Key } - return nil + return "" } -func (m *CollectorReplicaSet) Unmarshal(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 ErrIntOverflowAgent - } - 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: CollectorReplicaSet: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CollectorReplicaSet: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClusterName = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClusterId = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) - } - m.GroupId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.GroupId |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupSize", wireType) - } - m.GroupSize = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.GroupSize |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ReplicaSets", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ReplicaSets = append(m.ReplicaSets, &ReplicaSet{}) - if err := m.ReplicaSets[len(m.ReplicaSets)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - 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 ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Tags = append(m.Tags, string(data[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + +func (x *LabelSelectorRequirement) GetOperator() string { + if x != nil { + return x.Operator } + return "" +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *LabelSelectorRequirement) GetValues() []string { + if x != nil { + return x.Values } return nil } -func (m *CollectorDeployment) Unmarshal(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 ErrIntOverflowAgent - } - 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: CollectorDeployment: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CollectorDeployment: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClusterName = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClusterId = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) - } - m.GroupId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.GroupId |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupSize", wireType) - } - m.GroupSize = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.GroupSize |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Deployments", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Deployments = append(m.Deployments, &Deployment{}) - if err := m.Deployments[len(m.Deployments)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - 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 ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Tags = append(m.Tags, string(data[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy + +// reference https://github.com/kubernetes/kubernetes/blob/cb19b56831d54d1d31249949318ef0b07bf00df9/staging/src/k8s.io/api/core/v1/generated.proto +type Pod struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Metadata *Metadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` + // status + IP string `protobuf:"bytes,2,opt,name=IP,proto3" json:"IP,omitempty"` + NominatedNodeName string `protobuf:"bytes,3,opt,name=nominatedNodeName,proto3" json:"nominatedNodeName,omitempty"` + NodeName string `protobuf:"bytes,4,opt,name=nodeName,proto3" json:"nodeName,omitempty"` + Phase string `protobuf:"bytes,5,opt,name=phase,proto3" json:"phase,omitempty"` + RestartCount int32 `protobuf:"varint,6,opt,name=restartCount,proto3" json:"restartCount,omitempty"` + ContainerStatuses []*ContainerStatus `protobuf:"bytes,7,rep,name=containerStatuses,proto3" json:"containerStatuses,omitempty"` + InitContainerStatuses []*ContainerStatus `protobuf:"bytes,14,rep,name=initContainerStatuses,proto3" json:"initContainerStatuses,omitempty"` + ConditionMessage string `protobuf:"bytes,8,opt,name=conditionMessage,proto3" json:"conditionMessage,omitempty"` + Status string `protobuf:"bytes,9,opt,name=status,proto3" json:"status,omitempty"` // pod status displayed by "kubectl get pod" + // Deprecated: Marked as deprecated in proto/process/agent.proto. + Yaml []byte `protobuf:"bytes,10,opt,name=yaml,proto3" json:"yaml,omitempty"` // see CollectorManifest + Tags []string `protobuf:"bytes,11,rep,name=tags,proto3" json:"tags,omitempty"` + Host *Host `protobuf:"bytes,12,opt,name=host,proto3" json:"host,omitempty"` // Used post-resolution + ResourceRequirements []*ResourceRequirements `protobuf:"bytes,13,rep,name=resourceRequirements,proto3" json:"resourceRequirements,omitempty"` + QOSClass string `protobuf:"bytes,15,opt,name=QOSClass,proto3" json:"QOSClass,omitempty"` + PriorityClass string `protobuf:"bytes,16,opt,name=priorityClass,proto3" json:"priorityClass,omitempty"` + Metrics *ResourceMetrics `protobuf:"bytes,17,opt,name=metrics,proto3" json:"metrics,omitempty"` + StartTime int64 `protobuf:"varint,18,opt,name=startTime,proto3" json:"startTime,omitempty"` + ScheduledTime int64 `protobuf:"varint,19,opt,name=scheduledTime,proto3" json:"scheduledTime,omitempty"` + Conditions []*PodCondition `protobuf:"bytes,20,rep,name=conditions,proto3" json:"conditions,omitempty"` +} + +func (x *Pod) Reset() { + *x = Pod{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[69] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Pod) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Pod) ProtoMessage() {} + +func (x *Pod) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[69] + 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 Pod.ProtoReflect.Descriptor instead. +func (*Pod) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{69} +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *Pod) GetMetadata() *Metadata { + if x != nil { + return x.Metadata } return nil } -func (m *CollectorService) Unmarshal(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 ErrIntOverflowAgent - } - 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: CollectorService: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CollectorService: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClusterName = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClusterId = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) - } - m.GroupId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.GroupId |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupSize", wireType) - } - m.GroupSize = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.GroupSize |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Services", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Services = append(m.Services, &Service{}) - if err := m.Services[len(m.Services)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - 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 ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Tags = append(m.Tags, string(data[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + +func (x *Pod) GetIP() string { + if x != nil { + return x.IP } + return "" +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *Pod) GetNominatedNodeName() string { + if x != nil { + return x.NominatedNodeName } - return nil + return "" } -func (m *CollectorNode) Unmarshal(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 ErrIntOverflowAgent - } - 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: CollectorNode: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CollectorNode: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClusterName = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClusterId = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) - } - m.GroupId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.GroupId |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupSize", wireType) - } - m.GroupSize = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.GroupSize |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Nodes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Nodes = append(m.Nodes, &Node{}) - if err := m.Nodes[len(m.Nodes)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - 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 ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Tags = append(m.Tags, string(data[iNdEx:postIndex])) - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field HostAliasMapping", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - var keykey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - keykey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey := string(data[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - if m.HostAliasMapping == nil { - m.HostAliasMapping = make(map[string]*Host) - } - if iNdEx < postIndex { - var valuekey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - valuekey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - mapmsglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return ErrInvalidLengthAgent - } - postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { - return ErrInvalidLengthAgent - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue := &Host{} - if err := mapvalue.Unmarshal(data[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - m.HostAliasMapping[mapkey] = mapvalue - } else { - var mapvalue *Host - m.HostAliasMapping[mapkey] = mapvalue - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + +func (x *Pod) GetNodeName() string { + if x != nil { + return x.NodeName + } + return "" +} + +func (x *Pod) GetPhase() string { + if x != nil { + return x.Phase + } + return "" +} + +func (x *Pod) GetRestartCount() int32 { + if x != nil { + return x.RestartCount } + return 0 +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *Pod) GetContainerStatuses() []*ContainerStatus { + if x != nil { + return x.ContainerStatuses } return nil } -func (m *CollectorCluster) Unmarshal(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 ErrIntOverflowAgent - } - 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: CollectorCluster: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CollectorCluster: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClusterName = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClusterId = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) - } - m.GroupId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.GroupId |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupSize", wireType) - } - m.GroupSize = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.GroupSize |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Cluster", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Cluster == nil { - m.Cluster = &Cluster{} - } - if err := m.Cluster.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - 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 ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Tags = append(m.Tags, string(data[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + +func (x *Pod) GetInitContainerStatuses() []*ContainerStatus { + if x != nil { + return x.InitContainerStatuses } + return nil +} + +func (x *Pod) GetConditionMessage() string { + if x != nil { + return x.ConditionMessage + } + return "" +} + +func (x *Pod) GetStatus() string { + if x != nil { + return x.Status + } + return "" +} - if iNdEx > l { - return io.ErrUnexpectedEOF +// Deprecated: Marked as deprecated in proto/process/agent.proto. +func (x *Pod) GetYaml() []byte { + if x != nil { + return x.Yaml } return nil } -func (m *CollectorManifest) Unmarshal(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 ErrIntOverflowAgent - } - 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: CollectorManifest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CollectorManifest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClusterName = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClusterId = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) - } - m.GroupId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.GroupId |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupSize", wireType) - } - m.GroupSize = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.GroupSize |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Manifests", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Manifests = append(m.Manifests, &Manifest{}) - if err := m.Manifests[len(m.Manifests)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *Pod) GetTags() []string { + if x != nil { + return x.Tags } return nil } -func (m *CollectorManifestCRD) Unmarshal(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 ErrIntOverflowAgent - } - 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: CollectorManifestCRD: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CollectorManifestCRD: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Manifest", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Manifest == nil { - m.Manifest = &CollectorManifest{} - } - if err := m.Manifest.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *Pod) GetHost() *Host { + if x != nil { + return x.Host } return nil } -func (m *CollectorManifestCR) Unmarshal(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 ErrIntOverflowAgent - } - 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: CollectorManifestCR: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CollectorManifestCR: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Manifest", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Manifest == nil { - m.Manifest = &CollectorManifest{} - } - if err := m.Manifest.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *Pod) GetResourceRequirements() []*ResourceRequirements { + if x != nil { + return x.ResourceRequirements } return nil } -func (m *CollectorNamespace) Unmarshal(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 ErrIntOverflowAgent - } - 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: CollectorNamespace: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CollectorNamespace: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClusterName = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClusterId = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) - } - m.GroupId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.GroupId |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupSize", wireType) - } - m.GroupSize = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.GroupSize |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespaces", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespaces = append(m.Namespaces, &Namespace{}) - if err := m.Namespaces[len(m.Namespaces)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - 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 ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Tags = append(m.Tags, string(data[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *Pod) GetQOSClass() string { + if x != nil { + return x.QOSClass } - return nil + return "" } -func (m *CollectorJob) Unmarshal(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 ErrIntOverflowAgent - } - 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: CollectorJob: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CollectorJob: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClusterName = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClusterId = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) - } - m.GroupId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.GroupId |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupSize", wireType) - } - m.GroupSize = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.GroupSize |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Jobs", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Jobs = append(m.Jobs, &Job{}) - if err := m.Jobs[len(m.Jobs)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - 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 ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Tags = append(m.Tags, string(data[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + +func (x *Pod) GetPriorityClass() string { + if x != nil { + return x.PriorityClass } + return "" +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *Pod) GetMetrics() *ResourceMetrics { + if x != nil { + return x.Metrics } return nil } -func (m *CollectorCronJob) Unmarshal(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 ErrIntOverflowAgent - } - 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: CollectorCronJob: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CollectorCronJob: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClusterName = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClusterId = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) - } - m.GroupId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.GroupId |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupSize", wireType) - } - m.GroupSize = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.GroupSize |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CronJobs", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CronJobs = append(m.CronJobs, &CronJob{}) - if err := m.CronJobs[len(m.CronJobs)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - 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 ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Tags = append(m.Tags, string(data[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + +func (x *Pod) GetStartTime() int64 { + if x != nil { + return x.StartTime } + return 0 +} + +func (x *Pod) GetScheduledTime() int64 { + if x != nil { + return x.ScheduledTime + } + return 0 +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *Pod) GetConditions() []*PodCondition { + if x != nil { + return x.Conditions } return nil } -func (m *CollectorDaemonSet) Unmarshal(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 ErrIntOverflowAgent - } - 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: CollectorDaemonSet: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CollectorDaemonSet: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClusterName = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClusterId = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) - } - m.GroupId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.GroupId |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupSize", wireType) - } - m.GroupSize = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.GroupSize |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DaemonSets", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DaemonSets = append(m.DaemonSets, &DaemonSet{}) - if err := m.DaemonSets[len(m.DaemonSets)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - 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 ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Tags = append(m.Tags, string(data[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy + +type PodCondition struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` + Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` + LastProbeTime int64 `protobuf:"varint,3,opt,name=lastProbeTime,proto3" json:"lastProbeTime,omitempty"` + LastTransitionTime int64 `protobuf:"varint,4,opt,name=lastTransitionTime,proto3" json:"lastTransitionTime,omitempty"` + Reason string `protobuf:"bytes,5,opt,name=reason,proto3" json:"reason,omitempty"` + Message string `protobuf:"bytes,6,opt,name=message,proto3" json:"message,omitempty"` +} + +func (x *PodCondition) Reset() { + *x = PodCondition{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[70] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PodCondition) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PodCondition) ProtoMessage() {} + +func (x *PodCondition) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[70] + 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 PodCondition.ProtoReflect.Descriptor instead. +func (*PodCondition) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{70} +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *PodCondition) GetType() string { + if x != nil { + return x.Type } - return nil + return "" } -func (m *CollectorStatefulSet) Unmarshal(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 ErrIntOverflowAgent - } - 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: CollectorStatefulSet: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CollectorStatefulSet: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClusterName = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClusterId = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) - } - m.GroupId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.GroupId |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupSize", wireType) - } - m.GroupSize = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.GroupSize |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StatefulSets", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.StatefulSets = append(m.StatefulSets, &StatefulSet{}) - if err := m.StatefulSets[len(m.StatefulSets)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - 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 ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Tags = append(m.Tags, string(data[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + +func (x *PodCondition) GetStatus() string { + if x != nil { + return x.Status } + return "" +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *PodCondition) GetLastProbeTime() int64 { + if x != nil { + return x.LastProbeTime } - return nil + return 0 } -func (m *CollectorPersistentVolume) Unmarshal(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 ErrIntOverflowAgent - } - 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: CollectorPersistentVolume: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CollectorPersistentVolume: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClusterName = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClusterId = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) - } - m.GroupId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.GroupId |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupSize", wireType) - } - m.GroupSize = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.GroupSize |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PersistentVolumes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PersistentVolumes = append(m.PersistentVolumes, &PersistentVolume{}) - if err := m.PersistentVolumes[len(m.PersistentVolumes)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - 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 ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Tags = append(m.Tags, string(data[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + +func (x *PodCondition) GetLastTransitionTime() int64 { + if x != nil { + return x.LastTransitionTime } + return 0 +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *PodCondition) GetReason() string { + if x != nil { + return x.Reason } - return nil + return "" } -func (m *CollectorPersistentVolumeClaim) Unmarshal(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 ErrIntOverflowAgent - } - 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: CollectorPersistentVolumeClaim: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CollectorPersistentVolumeClaim: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClusterName = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClusterId = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) - } - m.GroupId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.GroupId |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupSize", wireType) - } - m.GroupSize = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.GroupSize |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PersistentVolumeClaims", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PersistentVolumeClaims = append(m.PersistentVolumeClaims, &PersistentVolumeClaim{}) - if err := m.PersistentVolumeClaims[len(m.PersistentVolumeClaims)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - 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 ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Tags = append(m.Tags, string(data[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + +func (x *PodCondition) GetMessage() string { + if x != nil { + return x.Message } + return "" +} - if iNdEx > l { - return io.ErrUnexpectedEOF +type ContainerStatus struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + ContainerID string `protobuf:"bytes,2,opt,name=containerID,proto3" json:"containerID,omitempty"` + Ready bool `protobuf:"varint,3,opt,name=ready,proto3" json:"ready,omitempty"` + RestartCount int32 `protobuf:"varint,4,opt,name=restartCount,proto3" json:"restartCount,omitempty"` + State string `protobuf:"bytes,5,opt,name=state,proto3" json:"state,omitempty"` + Message string `protobuf:"bytes,6,opt,name=message,proto3" json:"message,omitempty"` +} + +func (x *ContainerStatus) Reset() { + *x = ContainerStatus{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[71] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -func (m *CollectorRole) Unmarshal(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 ErrIntOverflowAgent - } - 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: CollectorRole: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CollectorRole: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClusterName = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClusterId = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) - } - m.GroupId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.GroupId |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupSize", wireType) - } - m.GroupSize = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.GroupSize |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Roles", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Roles = append(m.Roles, &Role{}) - if err := m.Roles[len(m.Roles)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - 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 ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Tags = append(m.Tags, string(data[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy + +func (x *ContainerStatus) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ContainerStatus) ProtoMessage() {} + +func (x *ContainerStatus) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[71] + 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 ContainerStatus.ProtoReflect.Descriptor instead. +func (*ContainerStatus) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{71} +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *ContainerStatus) GetName() string { + if x != nil { + return x.Name } - return nil + return "" } -func (m *CollectorRoleBinding) Unmarshal(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 ErrIntOverflowAgent - } - 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: CollectorRoleBinding: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CollectorRoleBinding: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClusterName = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClusterId = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) - } - m.GroupId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.GroupId |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupSize", wireType) - } - m.GroupSize = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.GroupSize |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RoleBindings", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RoleBindings = append(m.RoleBindings, &RoleBinding{}) - if err := m.RoleBindings[len(m.RoleBindings)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - 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 ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Tags = append(m.Tags, string(data[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + +func (x *ContainerStatus) GetContainerID() string { + if x != nil { + return x.ContainerID } + return "" +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *ContainerStatus) GetReady() bool { + if x != nil { + return x.Ready } - return nil + return false } -func (m *CollectorClusterRole) Unmarshal(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 ErrIntOverflowAgent - } - 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: CollectorClusterRole: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CollectorClusterRole: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClusterName = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClusterId = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) - } - m.GroupId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.GroupId |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupSize", wireType) - } - m.GroupSize = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.GroupSize |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterRoles", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClusterRoles = append(m.ClusterRoles, &ClusterRole{}) - if err := m.ClusterRoles[len(m.ClusterRoles)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - 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 ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Tags = append(m.Tags, string(data[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + +func (x *ContainerStatus) GetRestartCount() int32 { + if x != nil { + return x.RestartCount } + return 0 +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *ContainerStatus) GetState() string { + if x != nil { + return x.State } - return nil + return "" } -func (m *CollectorClusterRoleBinding) Unmarshal(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 ErrIntOverflowAgent - } - 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: CollectorClusterRoleBinding: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CollectorClusterRoleBinding: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClusterName = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClusterId = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) - } - m.GroupId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.GroupId |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupSize", wireType) - } - m.GroupSize = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.GroupSize |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterRoleBindings", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClusterRoleBindings = append(m.ClusterRoleBindings, &ClusterRoleBinding{}) - if err := m.ClusterRoleBindings[len(m.ClusterRoleBindings)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - 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 ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Tags = append(m.Tags, string(data[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy + +func (x *ContainerStatus) GetMessage() string { + if x != nil { + return x.Message + } + return "" +} + +type Manifest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Type int32 `protobuf:"varint,1,opt,name=type,proto3" json:"type,omitempty"` + ResourceVersion string `protobuf:"bytes,2,opt,name=resourceVersion,proto3" json:"resourceVersion,omitempty"` + Uid string `protobuf:"bytes,3,opt,name=uid,proto3" json:"uid,omitempty"` + Content []byte `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty"` + ContentType string `protobuf:"bytes,5,opt,name=contentType,proto3" json:"contentType,omitempty"` + Version string `protobuf:"bytes,6,opt,name=version,proto3" json:"version,omitempty"` +} + +func (x *Manifest) Reset() { + *x = Manifest{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[72] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Manifest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Manifest) ProtoMessage() {} + +func (x *Manifest) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[72] + 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 Manifest.ProtoReflect.Descriptor instead. +func (*Manifest) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{72} +} + +func (x *Manifest) GetType() int32 { + if x != nil { + return x.Type + } + return 0 +} + +func (x *Manifest) GetResourceVersion() string { + if x != nil { + return x.ResourceVersion + } + return "" +} + +func (x *Manifest) GetUid() string { + if x != nil { + return x.Uid } + return "" +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *Manifest) GetContent() []byte { + if x != nil { + return x.Content } return nil } -func (m *CollectorServiceAccount) Unmarshal(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 ErrIntOverflowAgent - } - 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: CollectorServiceAccount: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CollectorServiceAccount: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClusterName = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClusterId = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) - } - m.GroupId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.GroupId |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupSize", wireType) - } - m.GroupSize = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.GroupSize |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ServiceAccounts", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ServiceAccounts = append(m.ServiceAccounts, &ServiceAccount{}) - if err := m.ServiceAccounts[len(m.ServiceAccounts)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - 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 ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Tags = append(m.Tags, string(data[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + +func (x *Manifest) GetContentType() string { + if x != nil { + return x.ContentType } + return "" +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *Manifest) GetVersion() string { + if x != nil { + return x.Version } - return nil + return "" } -func (m *CollectorIngress) Unmarshal(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 ErrIntOverflowAgent - } - 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: CollectorIngress: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CollectorIngress: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClusterName = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClusterId = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) - } - m.GroupId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.GroupId |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupSize", wireType) - } - m.GroupSize = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.GroupSize |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Ingresses", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Ingresses = append(m.Ingresses, &Ingress{}) - if err := m.Ingresses[len(m.Ingresses)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - 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 ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Tags = append(m.Tags, string(data[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy + +// reference https://github.com/kubernetes/kubernetes/blob/cb19b56831d54d1d31249949318ef0b07bf00df9/staging/src/k8s.io/api/core/v1/generated.proto#L2054 +type NamespaceCondition struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` + Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` + LastTransitionTime int64 `protobuf:"varint,3,opt,name=lastTransitionTime,proto3" json:"lastTransitionTime,omitempty"` + Reason string `protobuf:"bytes,4,opt,name=reason,proto3" json:"reason,omitempty"` + Message string `protobuf:"bytes,5,opt,name=message,proto3" json:"message,omitempty"` +} + +func (x *NamespaceCondition) Reset() { + *x = NamespaceCondition{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[73] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *NamespaceCondition) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NamespaceCondition) ProtoMessage() {} + +func (x *NamespaceCondition) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[73] + 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 NamespaceCondition.ProtoReflect.Descriptor instead. +func (*NamespaceCondition) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{73} +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *NamespaceCondition) GetType() string { + if x != nil { + return x.Type } - return nil + return "" } -func (m *CollectorVerticalPodAutoscaler) Unmarshal(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 ErrIntOverflowAgent - } - 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: CollectorVerticalPodAutoscaler: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CollectorVerticalPodAutoscaler: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClusterName = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClusterId = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) - } - m.GroupId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.GroupId |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupSize", wireType) - } - m.GroupSize = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.GroupSize |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VerticalPodAutoscalers", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.VerticalPodAutoscalers = append(m.VerticalPodAutoscalers, &VerticalPodAutoscaler{}) - if err := m.VerticalPodAutoscalers[len(m.VerticalPodAutoscalers)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - 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 ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Tags = append(m.Tags, string(data[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy + +func (x *NamespaceCondition) GetStatus() string { + if x != nil { + return x.Status + } + return "" +} + +func (x *NamespaceCondition) GetLastTransitionTime() int64 { + if x != nil { + return x.LastTransitionTime + } + return 0 +} + +func (x *NamespaceCondition) GetReason() string { + if x != nil { + return x.Reason + } + return "" +} + +func (x *NamespaceCondition) GetMessage() string { + if x != nil { + return x.Message + } + return "" +} + +// reference https://github.com/kubernetes/kubernetes/blob/cb19b56831d54d1d31249949318ef0b07bf00df9/staging/src/k8s.io/api/core/v1/generated.proto#L2036 +type Namespace struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Metadata *Metadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` + Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` // namespace status displayed by "kubectl get namespace" + ConditionMessage string `protobuf:"bytes,3,opt,name=conditionMessage,proto3" json:"conditionMessage,omitempty"` // the message of the first 'false' condition + // Deprecated: Marked as deprecated in proto/process/agent.proto. + Yaml []byte `protobuf:"bytes,4,opt,name=yaml,proto3" json:"yaml,omitempty"` // see CollectorManifest + Tags []string `protobuf:"bytes,5,rep,name=tags,proto3" json:"tags,omitempty"` + Conditions []*NamespaceCondition `protobuf:"bytes,6,rep,name=conditions,proto3" json:"conditions,omitempty"` +} + +func (x *Namespace) Reset() { + *x = Namespace{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[74] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Namespace) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Namespace) ProtoMessage() {} + +func (x *Namespace) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[74] + 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 Namespace.ProtoReflect.Descriptor instead. +func (*Namespace) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{74} +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *Namespace) GetMetadata() *Metadata { + if x != nil { + return x.Metadata } return nil } -func (m *CollectorStatus) Unmarshal(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 ErrIntOverflowAgent - } - 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: CollectorStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CollectorStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ActiveClients", wireType) - } - m.ActiveClients = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.ActiveClients |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Interval", wireType) - } - m.Interval = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.Interval |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + +func (x *Namespace) GetStatus() string { + if x != nil { + return x.Status + } + return "" +} + +func (x *Namespace) GetConditionMessage() string { + if x != nil { + return x.ConditionMessage } + return "" +} - if iNdEx > l { - return io.ErrUnexpectedEOF +// Deprecated: Marked as deprecated in proto/process/agent.proto. +func (x *Namespace) GetYaml() []byte { + if x != nil { + return x.Yaml } return nil } -func (m *Process) Unmarshal(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 ErrIntOverflowAgent - } - 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: Process: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Process: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) - } - m.Key = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.Key |= (uint32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Pid", wireType) - } - m.Pid = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.Pid |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Host", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Host == nil { - m.Host = &Host{} - } - if err := m.Host.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Command", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Command == nil { - m.Command = &Command{} - } - if err := m.Command.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field User", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.User == nil { - m.User = &ProcessUser{} - } - if err := m.User.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Memory", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Memory == nil { - m.Memory = &MemoryStat{} - } - if err := m.Memory.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Cpu", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Cpu == nil { - m.Cpu = &CPUStat{} - } - if err := m.Cpu.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 9: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CreateTime", wireType) - } - m.CreateTime = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.CreateTime |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Container", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Container == nil { - m.Container = &Container{} - } - if err := m.Container.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 11: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field OpenFdCount", wireType) - } - m.OpenFdCount = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.OpenFdCount |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 12: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) - } - m.State = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.State |= (ProcessState(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 13: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field IoStat", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.IoStat == nil { - m.IoStat = &IOStat{} - } - if err := m.IoStat.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 14: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContainerId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ContainerId = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 15: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ContainerKey", wireType) - } - m.ContainerKey = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.ContainerKey |= (uint32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 16: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field VoluntaryCtxSwitches", wireType) - } - m.VoluntaryCtxSwitches = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.VoluntaryCtxSwitches |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 17: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field InvoluntaryCtxSwitches", wireType) - } - m.InvoluntaryCtxSwitches = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.InvoluntaryCtxSwitches |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 18: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ByteKey", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - byteLen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + byteLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ByteKey = append(m.ByteKey[:0], data[iNdEx:postIndex]...) - if m.ByteKey == nil { - m.ByteKey = []byte{} - } - iNdEx = postIndex - case 19: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContainerByteKey", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - byteLen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + byteLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ContainerByteKey = append(m.ContainerByteKey[:0], data[iNdEx:postIndex]...) - if m.ContainerByteKey == nil { - m.ContainerByteKey = []byte{} - } - iNdEx = postIndex - case 20: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NsPid", wireType) - } - m.NsPid = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.NsPid |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 21: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Networks", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Networks == nil { - m.Networks = &ProcessNetworks{} - } - if err := m.Networks.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + +func (x *Namespace) GetTags() []string { + if x != nil { + return x.Tags } + return nil +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *Namespace) GetConditions() []*NamespaceCondition { + if x != nil { + return x.Conditions } return nil } -func (m *ProcessDiscovery) Unmarshal(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 ErrIntOverflowAgent - } - 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: ProcessDiscovery: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ProcessDiscovery: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Pid", wireType) - } - m.Pid = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.Pid |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NsPid", wireType) - } - m.NsPid = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.NsPid |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Host", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Host == nil { - m.Host = &Host{} - } - if err := m.Host.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Command", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Command == nil { - m.Command = &Command{} - } - if err := m.Command.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field User", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.User == nil { - m.User = &ProcessUser{} - } - if err := m.User.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CreateTime", wireType) - } - m.CreateTime = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.CreateTime |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ByteKey", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - byteLen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + byteLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ByteKey = append(m.ByteKey[:0], data[iNdEx:postIndex]...) - if m.ByteKey == nil { - m.ByteKey = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy + +// https://github.com/kubernetes/kubernetes/blob/4112d8db20c5550cc27d30d3cee2723db0f8e1c4/staging/src/k8s.io/api/core/v1/types.go#L2097 +// Using smallest possible quantity levels. +// For memory it is bytes, for CPU it is millicore. +type ResourceRequirements struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Limits describes the maximum amount of compute resources allowed. + // Key/Value of a resource type and a corresponding quantity as an int64. + Limits map[string]int64 `protobuf:"bytes,1,rep,name=limits,proto3" json:"limits,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` + // Requests describes the minimum amount of compute resources required. + // Key/Value of a resource type and a corresponding quantity as an int64. + Requests map[string]int64 `protobuf:"bytes,2,rep,name=requests,proto3" json:"requests,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` + // Name describes the name of the holder of the resource requirements (e.g. a container name). + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + // ResourceRequirementsType describes the type which uses the ResourceRequirements. + Type ResourceRequirementsType `protobuf:"varint,4,opt,name=type,proto3,enum=datadog.process_agent.ResourceRequirementsType" json:"type,omitempty"` +} + +func (x *ResourceRequirements) Reset() { + *x = ResourceRequirements{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[75] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ResourceRequirements) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ResourceRequirements) ProtoMessage() {} + +func (x *ResourceRequirements) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[75] + 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 ResourceRequirements.ProtoReflect.Descriptor instead. +func (*ResourceRequirements) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{75} +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *ResourceRequirements) GetLimits() map[string]int64 { + if x != nil { + return x.Limits } return nil } -func (m *Command) Unmarshal(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 ErrIntOverflowAgent - } - 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: Command: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Command: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Args", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Args = append(m.Args, string(data[iNdEx:postIndex])) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Cwd", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Cwd = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Root", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Root = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field OnDisk", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - v |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.OnDisk = bool(v != 0) - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Ppid", wireType) - } - m.Ppid = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.Ppid |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Pgroup", wireType) - } - m.Pgroup = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.Pgroup |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Exe", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Exe = string(data[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *ResourceRequirements) GetRequests() map[string]int64 { + if x != nil { + return x.Requests } return nil } -func (m *ProcessUser) Unmarshal(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 ErrIntOverflowAgent - } - 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: ProcessUser: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ProcessUser: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Uid", wireType) - } - m.Uid = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.Uid |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Gid", wireType) - } - m.Gid = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.Gid |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Euid", wireType) - } - m.Euid = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.Euid |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Egid", wireType) - } - m.Egid = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.Egid |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Suid", wireType) - } - m.Suid = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.Suid |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Sgid", wireType) - } - m.Sgid = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.Sgid |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy + +func (x *ResourceRequirements) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *ResourceRequirements) GetType() ResourceRequirementsType { + if x != nil { + return x.Type + } + return ResourceRequirementsType_unknownType +} + +// ResourceMetrics is used in backend enrichment. +type ResourceMetrics struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + MetricValues map[string]float64 `protobuf:"bytes,1,rep,name=metricValues,proto3" json:"metricValues,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"fixed64,2,opt,name=value,proto3"` +} + +func (x *ResourceMetrics) Reset() { + *x = ResourceMetrics{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[76] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ResourceMetrics) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ResourceMetrics) ProtoMessage() {} + +func (x *ResourceMetrics) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[76] + 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) +} - if iNdEx > l { - return io.ErrUnexpectedEOF +// Deprecated: Use ResourceMetrics.ProtoReflect.Descriptor instead. +func (*ResourceMetrics) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{76} +} + +func (x *ResourceMetrics) GetMetricValues() map[string]float64 { + if x != nil { + return x.MetricValues } return nil } -func (m *ProcessNetworks) Unmarshal(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 ErrIntOverflowAgent - } - 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: ProcessNetworks: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ProcessNetworks: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 5 { - return fmt.Errorf("proto: wrong wireType = %d for field ConnectionRate", wireType) - } - var v uint32 - if (iNdEx + 4) > l { - return io.ErrUnexpectedEOF - } - iNdEx += 4 - v = uint32(data[iNdEx-4]) - v |= uint32(data[iNdEx-3]) << 8 - v |= uint32(data[iNdEx-2]) << 16 - v |= uint32(data[iNdEx-1]) << 24 - m.ConnectionRate = float32(math.Float32frombits(v)) - case 2: - if wireType != 5 { - return fmt.Errorf("proto: wrong wireType = %d for field BytesRate", wireType) - } - var v uint32 - if (iNdEx + 4) > l { - return io.ErrUnexpectedEOF - } - iNdEx += 4 - v = uint32(data[iNdEx-4]) - v |= uint32(data[iNdEx-3]) << 8 - v |= uint32(data[iNdEx-2]) << 16 - v |= uint32(data[iNdEx-1]) << 24 - m.BytesRate = float32(math.Float32frombits(v)) - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy + +// reference https://github.com/kubernetes/kubernetes/blob/cb19b56831d54d1d31249949318ef0b07bf00df9/staging/src/k8s.io/api/batch/v1/types.go#L61 +type JobSpec struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Parallelism int32 `protobuf:"varint,1,opt,name=parallelism,proto3" json:"parallelism,omitempty"` + Completions int32 `protobuf:"varint,2,opt,name=completions,proto3" json:"completions,omitempty"` + ActiveDeadlineSeconds int64 `protobuf:"varint,3,opt,name=activeDeadlineSeconds,proto3" json:"activeDeadlineSeconds,omitempty"` + BackoffLimit int32 `protobuf:"varint,4,opt,name=backoffLimit,proto3" json:"backoffLimit,omitempty"` + Selectors []*LabelSelectorRequirement `protobuf:"bytes,5,rep,name=selectors,proto3" json:"selectors,omitempty"` + ManualSelector bool `protobuf:"varint,6,opt,name=manualSelector,proto3" json:"manualSelector,omitempty"` + ResourceRequirements []*ResourceRequirements `protobuf:"bytes,7,rep,name=resourceRequirements,proto3" json:"resourceRequirements,omitempty"` +} + +func (x *JobSpec) Reset() { + *x = JobSpec{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[77] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *JobSpec) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*JobSpec) ProtoMessage() {} + +func (x *JobSpec) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[77] + 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 JobSpec.ProtoReflect.Descriptor instead. +func (*JobSpec) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{77} +} + +func (x *JobSpec) GetParallelism() int32 { + if x != nil { + return x.Parallelism + } + return 0 +} + +func (x *JobSpec) GetCompletions() int32 { + if x != nil { + return x.Completions + } + return 0 +} + +func (x *JobSpec) GetActiveDeadlineSeconds() int64 { + if x != nil { + return x.ActiveDeadlineSeconds + } + return 0 +} + +func (x *JobSpec) GetBackoffLimit() int32 { + if x != nil { + return x.BackoffLimit + } + return 0 +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *JobSpec) GetSelectors() []*LabelSelectorRequirement { + if x != nil { + return x.Selectors } return nil } -func (m *ContainerAddr) Unmarshal(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 ErrIntOverflowAgent - } - 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: ContainerAddr: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ContainerAddr: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Ip", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Ip = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Port", wireType) - } - m.Port = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.Port |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Protocol", wireType) - } - m.Protocol = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.Protocol |= (ConnectionType(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + +func (x *JobSpec) GetManualSelector() bool { + if x != nil { + return x.ManualSelector } + return false +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *JobSpec) GetResourceRequirements() []*ResourceRequirements { + if x != nil { + return x.ResourceRequirements } return nil } -func (m *Container) Unmarshal(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 ErrIntOverflowAgent - } - 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: Container: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Container: illegal tag %d (wire type %d)", fieldNum, wire) + +// reference https://github.com/kubernetes/kubernetes/blob/cb19b56831d54d1d31249949318ef0b07bf00df9/staging/src/k8s.io/api/batch/v1/types.go#L132 +type JobStatus struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ConditionMessage string `protobuf:"bytes,1,opt,name=conditionMessage,proto3" json:"conditionMessage,omitempty"` + StartTime int64 `protobuf:"varint,2,opt,name=startTime,proto3" json:"startTime,omitempty"` + CompletionTime int64 `protobuf:"varint,3,opt,name=completionTime,proto3" json:"completionTime,omitempty"` + Active int32 `protobuf:"varint,4,opt,name=active,proto3" json:"active,omitempty"` + Succeeded int32 `protobuf:"varint,5,opt,name=succeeded,proto3" json:"succeeded,omitempty"` + Failed int32 `protobuf:"varint,6,opt,name=failed,proto3" json:"failed,omitempty"` +} + +func (x *JobStatus) Reset() { + *x = JobStatus{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[78] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *JobStatus) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*JobStatus) ProtoMessage() {} + +func (x *JobStatus) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[78] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Type = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Id = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Image", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Image = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 5 { - return fmt.Errorf("proto: wrong wireType = %d for field CpuLimit", wireType) - } - var v uint32 - if (iNdEx + 4) > l { - return io.ErrUnexpectedEOF - } - iNdEx += 4 - v = uint32(data[iNdEx-4]) - v |= uint32(data[iNdEx-3]) << 8 - v |= uint32(data[iNdEx-2]) << 16 - v |= uint32(data[iNdEx-1]) << 24 - m.CpuLimit = float32(math.Float32frombits(v)) - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MemoryLimit", wireType) - } - m.MemoryLimit = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.MemoryLimit |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) - } - m.State = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.State |= (ContainerState(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 9: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Health", wireType) - } - m.Health = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.Health |= (ContainerHealth(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 10: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Created", wireType) - } - m.Created = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.Created |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 11: - if wireType != 5 { - return fmt.Errorf("proto: wrong wireType = %d for field Rbps", wireType) - } - var v uint32 - if (iNdEx + 4) > l { - return io.ErrUnexpectedEOF - } - iNdEx += 4 - v = uint32(data[iNdEx-4]) - v |= uint32(data[iNdEx-3]) << 8 - v |= uint32(data[iNdEx-2]) << 16 - v |= uint32(data[iNdEx-1]) << 24 - m.Rbps = float32(math.Float32frombits(v)) - case 12: - if wireType != 5 { - return fmt.Errorf("proto: wrong wireType = %d for field Wbps", wireType) - } - var v uint32 - if (iNdEx + 4) > l { - return io.ErrUnexpectedEOF - } - iNdEx += 4 - v = uint32(data[iNdEx-4]) - v |= uint32(data[iNdEx-3]) << 8 - v |= uint32(data[iNdEx-2]) << 16 - v |= uint32(data[iNdEx-1]) << 24 - m.Wbps = float32(math.Float32frombits(v)) - case 13: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) - } - m.Key = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.Key |= (uint32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 14: - if wireType != 5 { - return fmt.Errorf("proto: wrong wireType = %d for field NetRcvdPs", wireType) - } - var v uint32 - if (iNdEx + 4) > l { - return io.ErrUnexpectedEOF - } - iNdEx += 4 - v = uint32(data[iNdEx-4]) - v |= uint32(data[iNdEx-3]) << 8 - v |= uint32(data[iNdEx-2]) << 16 - v |= uint32(data[iNdEx-1]) << 24 - m.NetRcvdPs = float32(math.Float32frombits(v)) - case 15: - if wireType != 5 { - return fmt.Errorf("proto: wrong wireType = %d for field NetSentPs", wireType) - } - var v uint32 - if (iNdEx + 4) > l { - return io.ErrUnexpectedEOF - } - iNdEx += 4 - v = uint32(data[iNdEx-4]) - v |= uint32(data[iNdEx-3]) << 8 - v |= uint32(data[iNdEx-2]) << 16 - v |= uint32(data[iNdEx-1]) << 24 - m.NetSentPs = float32(math.Float32frombits(v)) - case 16: - if wireType != 5 { - return fmt.Errorf("proto: wrong wireType = %d for field NetRcvdBps", wireType) - } - var v uint32 - if (iNdEx + 4) > l { - return io.ErrUnexpectedEOF - } - iNdEx += 4 - v = uint32(data[iNdEx-4]) - v |= uint32(data[iNdEx-3]) << 8 - v |= uint32(data[iNdEx-2]) << 16 - v |= uint32(data[iNdEx-1]) << 24 - m.NetRcvdBps = float32(math.Float32frombits(v)) - case 17: - if wireType != 5 { - return fmt.Errorf("proto: wrong wireType = %d for field NetSentBps", wireType) - } - var v uint32 - if (iNdEx + 4) > l { - return io.ErrUnexpectedEOF - } - iNdEx += 4 - v = uint32(data[iNdEx-4]) - v |= uint32(data[iNdEx-3]) << 8 - v |= uint32(data[iNdEx-2]) << 16 - v |= uint32(data[iNdEx-1]) << 24 - m.NetSentBps = float32(math.Float32frombits(v)) - case 18: - if wireType != 5 { - return fmt.Errorf("proto: wrong wireType = %d for field UserPct", wireType) - } - var v uint32 - if (iNdEx + 4) > l { - return io.ErrUnexpectedEOF - } - iNdEx += 4 - v = uint32(data[iNdEx-4]) - v |= uint32(data[iNdEx-3]) << 8 - v |= uint32(data[iNdEx-2]) << 16 - v |= uint32(data[iNdEx-1]) << 24 - m.UserPct = float32(math.Float32frombits(v)) - case 19: - if wireType != 5 { - return fmt.Errorf("proto: wrong wireType = %d for field SystemPct", wireType) - } - var v uint32 - if (iNdEx + 4) > l { - return io.ErrUnexpectedEOF - } - iNdEx += 4 - v = uint32(data[iNdEx-4]) - v |= uint32(data[iNdEx-3]) << 8 - v |= uint32(data[iNdEx-2]) << 16 - v |= uint32(data[iNdEx-1]) << 24 - m.SystemPct = float32(math.Float32frombits(v)) - case 20: - if wireType != 5 { - return fmt.Errorf("proto: wrong wireType = %d for field TotalPct", wireType) - } - var v uint32 - if (iNdEx + 4) > l { - return io.ErrUnexpectedEOF - } - iNdEx += 4 - v = uint32(data[iNdEx-4]) - v |= uint32(data[iNdEx-3]) << 8 - v |= uint32(data[iNdEx-2]) << 16 - v |= uint32(data[iNdEx-1]) << 24 - m.TotalPct = float32(math.Float32frombits(v)) - case 21: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MemRss", wireType) - } - m.MemRss = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.MemRss |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 22: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MemCache", wireType) - } - m.MemCache = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.MemCache |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 23: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Host", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Host == nil { - m.Host = &Host{} - } - if err := m.Host.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 24: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Started", wireType) - } - m.Started = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.Started |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 25: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ByteKey", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - byteLen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + byteLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ByteKey = append(m.ByteKey[:0], data[iNdEx:postIndex]...) - if m.ByteKey == nil { - m.ByteKey = []byte{} - } - iNdEx = postIndex - case 26: - 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 ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Tags = append(m.Tags, string(data[iNdEx:postIndex])) - iNdEx = postIndex - case 27: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Addresses", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Addresses = append(m.Addresses, &ContainerAddr{}) - if err := m.Addresses[len(m.Addresses)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 28: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ThreadCount", wireType) - } - m.ThreadCount = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.ThreadCount |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 29: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ThreadLimit", wireType) - } - m.ThreadLimit = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.ThreadLimit |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 30: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MemUsage", wireType) - } - m.MemUsage = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.MemUsage |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 31: - if wireType != 5 { - return fmt.Errorf("proto: wrong wireType = %d for field CpuUsageNs", wireType) - } - var v uint32 - if (iNdEx + 4) > l { - return io.ErrUnexpectedEOF - } - iNdEx += 4 - v = uint32(data[iNdEx-4]) - v |= uint32(data[iNdEx-3]) << 8 - v |= uint32(data[iNdEx-2]) << 16 - v |= uint32(data[iNdEx-1]) << 24 - m.CpuUsageNs = float32(math.Float32frombits(v)) - case 32: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MemAccounted", wireType) - } - m.MemAccounted = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.MemAccounted |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use JobStatus.ProtoReflect.Descriptor instead. +func (*JobStatus) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{78} +} + +func (x *JobStatus) GetConditionMessage() string { + if x != nil { + return x.ConditionMessage + } + return "" +} + +func (x *JobStatus) GetStartTime() int64 { + if x != nil { + return x.StartTime + } + return 0 +} + +func (x *JobStatus) GetCompletionTime() int64 { + if x != nil { + return x.CompletionTime + } + return 0 +} + +func (x *JobStatus) GetActive() int32 { + if x != nil { + return x.Active + } + return 0 +} + +func (x *JobStatus) GetSucceeded() int32 { + if x != nil { + return x.Succeeded + } + return 0 +} + +func (x *JobStatus) GetFailed() int32 { + if x != nil { + return x.Failed + } + return 0 +} + +// reference https://github.com/kubernetes/kubernetes/blob/cb19b56831d54d1d31249949318ef0b07bf00df9/staging/src/k8s.io/api/batch/v1/generated.proto#L51 +type JobCondition struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` + Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` + LastProbeTime int64 `protobuf:"varint,3,opt,name=lastProbeTime,proto3" json:"lastProbeTime,omitempty"` + LastTransitionTime int64 `protobuf:"varint,4,opt,name=lastTransitionTime,proto3" json:"lastTransitionTime,omitempty"` + Reason string `protobuf:"bytes,5,opt,name=reason,proto3" json:"reason,omitempty"` + Message string `protobuf:"bytes,6,opt,name=message,proto3" json:"message,omitempty"` +} + +func (x *JobCondition) Reset() { + *x = JobCondition{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[79] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *JobCondition) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*JobCondition) ProtoMessage() {} + +func (x *JobCondition) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[79] + 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 JobCondition.ProtoReflect.Descriptor instead. +func (*JobCondition) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{79} +} + +func (x *JobCondition) GetType() string { + if x != nil { + return x.Type + } + return "" +} + +func (x *JobCondition) GetStatus() string { + if x != nil { + return x.Status + } + return "" +} + +func (x *JobCondition) GetLastProbeTime() int64 { + if x != nil { + return x.LastProbeTime + } + return 0 +} + +func (x *JobCondition) GetLastTransitionTime() int64 { + if x != nil { + return x.LastTransitionTime + } + return 0 +} + +func (x *JobCondition) GetReason() string { + if x != nil { + return x.Reason + } + return "" +} + +func (x *JobCondition) GetMessage() string { + if x != nil { + return x.Message + } + return "" +} + +// reference https://github.com/kubernetes/kubernetes/blob/cb19b56831d54d1d31249949318ef0b07bf00df9/staging/src/k8s.io/api/batch/v1/types.go#L28 +type Job struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Metadata *Metadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` + Spec *JobSpec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"` + Status *JobStatus `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` + // Deprecated: Marked as deprecated in proto/process/agent.proto. + Yaml []byte `protobuf:"bytes,4,opt,name=yaml,proto3" json:"yaml,omitempty"` // see CollectorManifest + Tags []string `protobuf:"bytes,5,rep,name=tags,proto3" json:"tags,omitempty"` + Conditions []*JobCondition `protobuf:"bytes,6,rep,name=conditions,proto3" json:"conditions,omitempty"` +} + +func (x *Job) Reset() { + *x = Job{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[80] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Job) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Job) ProtoMessage() {} + +func (x *Job) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[80] + 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 Job.ProtoReflect.Descriptor instead. +func (*Job) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{80} +} + +func (x *Job) GetMetadata() *Metadata { + if x != nil { + return x.Metadata + } + return nil +} + +func (x *Job) GetSpec() *JobSpec { + if x != nil { + return x.Spec + } + return nil +} + +func (x *Job) GetStatus() *JobStatus { + if x != nil { + return x.Status + } + return nil +} + +// Deprecated: Marked as deprecated in proto/process/agent.proto. +func (x *Job) GetYaml() []byte { + if x != nil { + return x.Yaml + } + return nil +} + +func (x *Job) GetTags() []string { + if x != nil { + return x.Tags + } + return nil +} + +func (x *Job) GetConditions() []*JobCondition { + if x != nil { + return x.Conditions + } + return nil +} + +// reference https://github.com/kubernetes/kubernetes/blob/cb19b56831d54d1d31249949318ef0b07bf00df9/staging/src/k8s.io/api/batch/v1beta1/types.go#L92 +type CronJobSpec struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Schedule string `protobuf:"bytes,1,opt,name=schedule,proto3" json:"schedule,omitempty"` + StartingDeadlineSeconds int64 `protobuf:"varint,2,opt,name=startingDeadlineSeconds,proto3" json:"startingDeadlineSeconds,omitempty"` + ConcurrencyPolicy string `protobuf:"bytes,3,opt,name=concurrencyPolicy,proto3" json:"concurrencyPolicy,omitempty"` + Suspend bool `protobuf:"varint,4,opt,name=suspend,proto3" json:"suspend,omitempty"` + SuccessfulJobsHistoryLimit int32 `protobuf:"varint,5,opt,name=successfulJobsHistoryLimit,proto3" json:"successfulJobsHistoryLimit,omitempty"` + FailedJobsHistoryLimit int32 `protobuf:"varint,6,opt,name=failedJobsHistoryLimit,proto3" json:"failedJobsHistoryLimit,omitempty"` + ResourceRequirements []*ResourceRequirements `protobuf:"bytes,7,rep,name=resourceRequirements,proto3" json:"resourceRequirements,omitempty"` +} + +func (x *CronJobSpec) Reset() { + *x = CronJobSpec{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[81] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CronJobSpec) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CronJobSpec) ProtoMessage() {} + +func (x *CronJobSpec) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[81] + 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 CronJobSpec.ProtoReflect.Descriptor instead. +func (*CronJobSpec) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{81} +} + +func (x *CronJobSpec) GetSchedule() string { + if x != nil { + return x.Schedule + } + return "" +} + +func (x *CronJobSpec) GetStartingDeadlineSeconds() int64 { + if x != nil { + return x.StartingDeadlineSeconds + } + return 0 +} + +func (x *CronJobSpec) GetConcurrencyPolicy() string { + if x != nil { + return x.ConcurrencyPolicy + } + return "" +} + +func (x *CronJobSpec) GetSuspend() bool { + if x != nil { + return x.Suspend + } + return false +} + +func (x *CronJobSpec) GetSuccessfulJobsHistoryLimit() int32 { + if x != nil { + return x.SuccessfulJobsHistoryLimit + } + return 0 +} + +func (x *CronJobSpec) GetFailedJobsHistoryLimit() int32 { + if x != nil { + return x.FailedJobsHistoryLimit + } + return 0 +} + +func (x *CronJobSpec) GetResourceRequirements() []*ResourceRequirements { + if x != nil { + return x.ResourceRequirements + } + return nil +} + +// reference https://github.com/kubernetes/kubernetes/blob/cb19b56831d54d1d31249949318ef0b07bf00df9/staging/src/k8s.io/api/batch/v1beta1/types.go#L150 +type CronJobStatus struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Active []*ObjectReference `protobuf:"bytes,1,rep,name=active,proto3" json:"active,omitempty"` + LastScheduleTime int64 `protobuf:"varint,2,opt,name=lastScheduleTime,proto3" json:"lastScheduleTime,omitempty"` +} + +func (x *CronJobStatus) Reset() { + *x = CronJobStatus{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[82] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CronJobStatus) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CronJobStatus) ProtoMessage() {} + +func (x *CronJobStatus) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[82] + 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 CronJobStatus.ProtoReflect.Descriptor instead. +func (*CronJobStatus) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{82} +} + +func (x *CronJobStatus) GetActive() []*ObjectReference { + if x != nil { + return x.Active + } + return nil +} + +func (x *CronJobStatus) GetLastScheduleTime() int64 { + if x != nil { + return x.LastScheduleTime + } + return 0 +} + +// reference https://github.com/kubernetes/kubernetes/blob/cb19b56831d54d1d31249949318ef0b07bf00df9/staging/src/k8s.io/api/batch/v1beta1/types.go#L58 +type CronJob struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Metadata *Metadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` + Spec *CronJobSpec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"` + Status *CronJobStatus `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` + // Deprecated: Marked as deprecated in proto/process/agent.proto. + Yaml []byte `protobuf:"bytes,4,opt,name=yaml,proto3" json:"yaml,omitempty"` // see CollectorManifest + Tags []string `protobuf:"bytes,5,rep,name=tags,proto3" json:"tags,omitempty"` +} + +func (x *CronJob) Reset() { + *x = CronJob{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[83] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CronJob) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CronJob) ProtoMessage() {} + +func (x *CronJob) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[83] + 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 CronJob.ProtoReflect.Descriptor instead. +func (*CronJob) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{83} +} + +func (x *CronJob) GetMetadata() *Metadata { + if x != nil { + return x.Metadata + } + return nil +} + +func (x *CronJob) GetSpec() *CronJobSpec { + if x != nil { + return x.Spec + } + return nil +} + +func (x *CronJob) GetStatus() *CronJobStatus { + if x != nil { + return x.Status + } + return nil +} + +// Deprecated: Marked as deprecated in proto/process/agent.proto. +func (x *CronJob) GetYaml() []byte { + if x != nil { + return x.Yaml + } + return nil +} + +func (x *CronJob) GetTags() []string { + if x != nil { + return x.Tags + } + return nil +} + +// reference https://github.com/kubernetes/kubernetes/blob/cb19b56831d54d1d31249949318ef0b07bf00df9/staging/src/k8s.io/api/apps/v1/generated.proto#L119 +type DaemonSetSpec struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Selectors []*LabelSelectorRequirement `protobuf:"bytes,1,rep,name=selectors,proto3" json:"selectors,omitempty"` + DeploymentStrategy string `protobuf:"bytes,2,opt,name=deploymentStrategy,proto3" json:"deploymentStrategy,omitempty"` + MaxUnavailable string `protobuf:"bytes,3,opt,name=maxUnavailable,proto3" json:"maxUnavailable,omitempty"` // int or str + MinReadySeconds int32 `protobuf:"varint,4,opt,name=minReadySeconds,proto3" json:"minReadySeconds,omitempty"` + RevisionHistoryLimit int32 `protobuf:"varint,5,opt,name=revisionHistoryLimit,proto3" json:"revisionHistoryLimit,omitempty"` + ResourceRequirements []*ResourceRequirements `protobuf:"bytes,6,rep,name=resourceRequirements,proto3" json:"resourceRequirements,omitempty"` +} + +func (x *DaemonSetSpec) Reset() { + *x = DaemonSetSpec{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[84] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DaemonSetSpec) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DaemonSetSpec) ProtoMessage() {} + +func (x *DaemonSetSpec) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[84] + 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 DaemonSetSpec.ProtoReflect.Descriptor instead. +func (*DaemonSetSpec) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{84} +} + +func (x *DaemonSetSpec) GetSelectors() []*LabelSelectorRequirement { + if x != nil { + return x.Selectors + } + return nil +} + +func (x *DaemonSetSpec) GetDeploymentStrategy() string { + if x != nil { + return x.DeploymentStrategy + } + return "" +} + +func (x *DaemonSetSpec) GetMaxUnavailable() string { + if x != nil { + return x.MaxUnavailable + } + return "" +} + +func (x *DaemonSetSpec) GetMinReadySeconds() int32 { + if x != nil { + return x.MinReadySeconds + } + return 0 +} + +func (x *DaemonSetSpec) GetRevisionHistoryLimit() int32 { + if x != nil { + return x.RevisionHistoryLimit + } + return 0 +} + +func (x *DaemonSetSpec) GetResourceRequirements() []*ResourceRequirements { + if x != nil { + return x.ResourceRequirements + } + return nil +} + +// reference https://github.com/kubernetes/kubernetes/blob/cb19b56831d54d1d31249949318ef0b07bf00df9/staging/src/k8s.io/api/apps/v1/generated.proto#L152 +type DaemonSetStatus struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + CurrentNumberScheduled int32 `protobuf:"varint,1,opt,name=currentNumberScheduled,proto3" json:"currentNumberScheduled,omitempty"` + NumberMisscheduled int32 `protobuf:"varint,2,opt,name=numberMisscheduled,proto3" json:"numberMisscheduled,omitempty"` + DesiredNumberScheduled int32 `protobuf:"varint,3,opt,name=desiredNumberScheduled,proto3" json:"desiredNumberScheduled,omitempty"` + NumberReady int32 `protobuf:"varint,4,opt,name=numberReady,proto3" json:"numberReady,omitempty"` + UpdatedNumberScheduled int32 `protobuf:"varint,6,opt,name=updatedNumberScheduled,proto3" json:"updatedNumberScheduled,omitempty"` + NumberAvailable int32 `protobuf:"varint,7,opt,name=numberAvailable,proto3" json:"numberAvailable,omitempty"` + NumberUnavailable int32 `protobuf:"varint,8,opt,name=numberUnavailable,proto3" json:"numberUnavailable,omitempty"` +} + +func (x *DaemonSetStatus) Reset() { + *x = DaemonSetStatus{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[85] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DaemonSetStatus) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DaemonSetStatus) ProtoMessage() {} + +func (x *DaemonSetStatus) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[85] + 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 DaemonSetStatus.ProtoReflect.Descriptor instead. +func (*DaemonSetStatus) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{85} +} + +func (x *DaemonSetStatus) GetCurrentNumberScheduled() int32 { + if x != nil { + return x.CurrentNumberScheduled + } + return 0 +} + +func (x *DaemonSetStatus) GetNumberMisscheduled() int32 { + if x != nil { + return x.NumberMisscheduled + } + return 0 +} + +func (x *DaemonSetStatus) GetDesiredNumberScheduled() int32 { + if x != nil { + return x.DesiredNumberScheduled + } + return 0 +} + +func (x *DaemonSetStatus) GetNumberReady() int32 { + if x != nil { + return x.NumberReady + } + return 0 +} + +func (x *DaemonSetStatus) GetUpdatedNumberScheduled() int32 { + if x != nil { + return x.UpdatedNumberScheduled + } + return 0 +} + +func (x *DaemonSetStatus) GetNumberAvailable() int32 { + if x != nil { + return x.NumberAvailable + } + return 0 +} + +func (x *DaemonSetStatus) GetNumberUnavailable() int32 { + if x != nil { + return x.NumberUnavailable + } + return 0 +} + +// reference https://github.com/kubernetes/kubernetes/blob/cb19b56831d54d1d31249949318ef0b07bf00df9/staging/src/k8s.io/api/apps/v1/generated.proto#L87 +type DaemonSetCondition struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` + Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` + LastTransitionTime int64 `protobuf:"varint,3,opt,name=lastTransitionTime,proto3" json:"lastTransitionTime,omitempty"` + Reason string `protobuf:"bytes,4,opt,name=reason,proto3" json:"reason,omitempty"` + Message string `protobuf:"bytes,5,opt,name=message,proto3" json:"message,omitempty"` +} + +func (x *DaemonSetCondition) Reset() { + *x = DaemonSetCondition{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[86] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DaemonSetCondition) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DaemonSetCondition) ProtoMessage() {} + +func (x *DaemonSetCondition) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[86] + 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 DaemonSetCondition.ProtoReflect.Descriptor instead. +func (*DaemonSetCondition) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{86} +} + +func (x *DaemonSetCondition) GetType() string { + if x != nil { + return x.Type + } + return "" +} + +func (x *DaemonSetCondition) GetStatus() string { + if x != nil { + return x.Status + } + return "" +} + +func (x *DaemonSetCondition) GetLastTransitionTime() int64 { + if x != nil { + return x.LastTransitionTime + } + return 0 +} + +func (x *DaemonSetCondition) GetReason() string { + if x != nil { + return x.Reason + } + return "" +} + +func (x *DaemonSetCondition) GetMessage() string { + if x != nil { + return x.Message + } + return "" +} + +// reference https://github.com/kubernetes/kubernetes/blob/cb19b56831d54d1d31249949318ef0b07bf00df9/staging/src/k8s.io/api/apps/v1/generated.proto#L66 +type DaemonSet struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Metadata *Metadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` + Spec *DaemonSetSpec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"` + Status *DaemonSetStatus `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` + // Deprecated: Marked as deprecated in proto/process/agent.proto. + Yaml []byte `protobuf:"bytes,4,opt,name=yaml,proto3" json:"yaml,omitempty"` // see CollectorManifest + Tags []string `protobuf:"bytes,5,rep,name=tags,proto3" json:"tags,omitempty"` + Metrics *ResourceMetrics `protobuf:"bytes,6,opt,name=metrics,proto3" json:"metrics,omitempty"` + Conditions []*DaemonSetCondition `protobuf:"bytes,7,rep,name=conditions,proto3" json:"conditions,omitempty"` +} + +func (x *DaemonSet) Reset() { + *x = DaemonSet{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[87] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DaemonSet) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DaemonSet) ProtoMessage() {} + +func (x *DaemonSet) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[87] + 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 DaemonSet.ProtoReflect.Descriptor instead. +func (*DaemonSet) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{87} +} + +func (x *DaemonSet) GetMetadata() *Metadata { + if x != nil { + return x.Metadata + } + return nil +} + +func (x *DaemonSet) GetSpec() *DaemonSetSpec { + if x != nil { + return x.Spec + } + return nil +} + +func (x *DaemonSet) GetStatus() *DaemonSetStatus { + if x != nil { + return x.Status + } + return nil +} + +// Deprecated: Marked as deprecated in proto/process/agent.proto. +func (x *DaemonSet) GetYaml() []byte { + if x != nil { + return x.Yaml + } + return nil +} + +func (x *DaemonSet) GetTags() []string { + if x != nil { + return x.Tags + } + return nil +} + +func (x *DaemonSet) GetMetrics() *ResourceMetrics { + if x != nil { + return x.Metrics + } + return nil +} + +func (x *DaemonSet) GetConditions() []*DaemonSetCondition { + if x != nil { + return x.Conditions + } + return nil +} + +// reference https://github.com/kubernetes/kubernetes/blob/cb19b56831d54d1d31249949318ef0b07bf00df9/staging/src/k8s.io/api/apps/v1/generated.proto#L586 +type StatefulSetSpec struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + DesiredReplicas int32 `protobuf:"varint,1,opt,name=desiredReplicas,proto3" json:"desiredReplicas,omitempty"` + Selectors []*LabelSelectorRequirement `protobuf:"bytes,2,rep,name=selectors,proto3" json:"selectors,omitempty"` + ServiceName string `protobuf:"bytes,3,opt,name=serviceName,proto3" json:"serviceName,omitempty"` + PodManagementPolicy string `protobuf:"bytes,4,opt,name=podManagementPolicy,proto3" json:"podManagementPolicy,omitempty"` + UpdateStrategy string `protobuf:"bytes,5,opt,name=updateStrategy,proto3" json:"updateStrategy,omitempty"` + Partition int32 `protobuf:"varint,6,opt,name=partition,proto3" json:"partition,omitempty"` + ResourceRequirements []*ResourceRequirements `protobuf:"bytes,7,rep,name=resourceRequirements,proto3" json:"resourceRequirements,omitempty"` +} + +func (x *StatefulSetSpec) Reset() { + *x = StatefulSetSpec{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[88] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *StatefulSetSpec) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StatefulSetSpec) ProtoMessage() {} + +func (x *StatefulSetSpec) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[88] + 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 StatefulSetSpec.ProtoReflect.Descriptor instead. +func (*StatefulSetSpec) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{88} +} + +func (x *StatefulSetSpec) GetDesiredReplicas() int32 { + if x != nil { + return x.DesiredReplicas + } + return 0 +} + +func (x *StatefulSetSpec) GetSelectors() []*LabelSelectorRequirement { + if x != nil { + return x.Selectors + } + return nil +} + +func (x *StatefulSetSpec) GetServiceName() string { + if x != nil { + return x.ServiceName + } + return "" +} + +func (x *StatefulSetSpec) GetPodManagementPolicy() string { + if x != nil { + return x.PodManagementPolicy + } + return "" +} + +func (x *StatefulSetSpec) GetUpdateStrategy() string { + if x != nil { + return x.UpdateStrategy + } + return "" +} + +func (x *StatefulSetSpec) GetPartition() int32 { + if x != nil { + return x.Partition + } + return 0 +} + +func (x *StatefulSetSpec) GetResourceRequirements() []*ResourceRequirements { + if x != nil { + return x.ResourceRequirements + } + return nil +} + +// reference https://github.com/kubernetes/kubernetes/blob/cb19b56831d54d1d31249949318ef0b07bf00df9/staging/src/k8s.io/api/apps/v1/generated.proto#L647 +type StatefulSetStatus struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Replicas int32 `protobuf:"varint,1,opt,name=replicas,proto3" json:"replicas,omitempty"` + ReadyReplicas int32 `protobuf:"varint,2,opt,name=readyReplicas,proto3" json:"readyReplicas,omitempty"` + CurrentReplicas int32 `protobuf:"varint,3,opt,name=currentReplicas,proto3" json:"currentReplicas,omitempty"` + UpdatedReplicas int32 `protobuf:"varint,4,opt,name=updatedReplicas,proto3" json:"updatedReplicas,omitempty"` +} + +func (x *StatefulSetStatus) Reset() { + *x = StatefulSetStatus{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[89] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *StatefulSetStatus) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StatefulSetStatus) ProtoMessage() {} + +func (x *StatefulSetStatus) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[89] + 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 StatefulSetStatus.ProtoReflect.Descriptor instead. +func (*StatefulSetStatus) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{89} +} + +func (x *StatefulSetStatus) GetReplicas() int32 { + if x != nil { + return x.Replicas + } + return 0 +} + +func (x *StatefulSetStatus) GetReadyReplicas() int32 { + if x != nil { + return x.ReadyReplicas + } + return 0 +} + +func (x *StatefulSetStatus) GetCurrentReplicas() int32 { + if x != nil { + return x.CurrentReplicas + } + return 0 +} + +func (x *StatefulSetStatus) GetUpdatedReplicas() int32 { + if x != nil { + return x.UpdatedReplicas + } + return 0 +} + +// reference https://github.com/kubernetes/kubernetes/blob/cb19b56831d54d1d31249949318ef0b07bf00df9/staging/src/k8s.io/api/apps/v1/generated.proto#L557 +type StatefulSetCondition struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` + Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` + LastTransitionTime int64 `protobuf:"varint,3,opt,name=lastTransitionTime,proto3" json:"lastTransitionTime,omitempty"` + Reason string `protobuf:"bytes,4,opt,name=reason,proto3" json:"reason,omitempty"` + Message string `protobuf:"bytes,5,opt,name=message,proto3" json:"message,omitempty"` +} + +func (x *StatefulSetCondition) Reset() { + *x = StatefulSetCondition{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[90] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *StatefulSetCondition) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StatefulSetCondition) ProtoMessage() {} + +func (x *StatefulSetCondition) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[90] + 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 StatefulSetCondition.ProtoReflect.Descriptor instead. +func (*StatefulSetCondition) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{90} +} + +func (x *StatefulSetCondition) GetType() string { + if x != nil { + return x.Type + } + return "" +} + +func (x *StatefulSetCondition) GetStatus() string { + if x != nil { + return x.Status + } + return "" +} + +func (x *StatefulSetCondition) GetLastTransitionTime() int64 { + if x != nil { + return x.LastTransitionTime + } + return 0 +} + +func (x *StatefulSetCondition) GetReason() string { + if x != nil { + return x.Reason + } + return "" +} + +func (x *StatefulSetCondition) GetMessage() string { + if x != nil { + return x.Message + } + return "" +} + +// reference https://github.com/kubernetes/kubernetes/blob/cb19b56831d54d1d31249949318ef0b07bf00df9/staging/src/k8s.io/api/apps/v1/generated.proto#L542 +type StatefulSet struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Metadata *Metadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` + Spec *StatefulSetSpec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"` + Status *StatefulSetStatus `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` + // Deprecated: Marked as deprecated in proto/process/agent.proto. + Yaml []byte `protobuf:"bytes,4,opt,name=yaml,proto3" json:"yaml,omitempty"` // see CollectorManifest + Tags []string `protobuf:"bytes,5,rep,name=tags,proto3" json:"tags,omitempty"` + Metrics *ResourceMetrics `protobuf:"bytes,6,opt,name=metrics,proto3" json:"metrics,omitempty"` + Conditions []*StatefulSetCondition `protobuf:"bytes,7,rep,name=conditions,proto3" json:"conditions,omitempty"` +} + +func (x *StatefulSet) Reset() { + *x = StatefulSet{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[91] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *StatefulSet) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StatefulSet) ProtoMessage() {} + +func (x *StatefulSet) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[91] + 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 StatefulSet.ProtoReflect.Descriptor instead. +func (*StatefulSet) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{91} +} + +func (x *StatefulSet) GetMetadata() *Metadata { + if x != nil { + return x.Metadata + } + return nil +} + +func (x *StatefulSet) GetSpec() *StatefulSetSpec { + if x != nil { + return x.Spec + } + return nil +} + +func (x *StatefulSet) GetStatus() *StatefulSetStatus { + if x != nil { + return x.Status + } + return nil +} + +// Deprecated: Marked as deprecated in proto/process/agent.proto. +func (x *StatefulSet) GetYaml() []byte { + if x != nil { + return x.Yaml + } + return nil +} + +func (x *StatefulSet) GetTags() []string { + if x != nil { + return x.Tags + } + return nil +} + +func (x *StatefulSet) GetMetrics() *ResourceMetrics { + if x != nil { + return x.Metrics + } + return nil +} + +func (x *StatefulSet) GetConditions() []*StatefulSetCondition { + if x != nil { + return x.Conditions + } + return nil +} + +// reference https://github.com/kubernetes/api/blob/4bdcbc60ffeee2c04231f11ff114314c1a93ce65/core/v1/generated.proto#L2576 +type PersistentVolume struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Metadata *Metadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` + Spec *PersistentVolumeSpec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"` + Status *PersistentVolumeStatus `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` + // Deprecated: Marked as deprecated in proto/process/agent.proto. + Yaml []byte `protobuf:"bytes,4,opt,name=yaml,proto3" json:"yaml,omitempty"` // see CollectorManifest + Tags []string `protobuf:"bytes,5,rep,name=tags,proto3" json:"tags,omitempty"` +} + +func (x *PersistentVolume) Reset() { + *x = PersistentVolume{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[92] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PersistentVolume) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PersistentVolume) ProtoMessage() {} + +func (x *PersistentVolume) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[92] + 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 PersistentVolume.ProtoReflect.Descriptor instead. +func (*PersistentVolume) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{92} +} + +func (x *PersistentVolume) GetMetadata() *Metadata { + if x != nil { + return x.Metadata } + return nil +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *PersistentVolume) GetSpec() *PersistentVolumeSpec { + if x != nil { + return x.Spec } return nil } -func (m *ProcessStat) Unmarshal(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 ErrIntOverflowAgent - } - 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: ProcessStat: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ProcessStat: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Pid", wireType) - } - m.Pid = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.Pid |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CreateTime", wireType) - } - m.CreateTime = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.CreateTime |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Memory", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Memory == nil { - m.Memory = &MemoryStat{} - } - if err := m.Memory.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Cpu", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Cpu == nil { - m.Cpu = &CPUStat{} - } - if err := m.Cpu.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Nice", wireType) - } - m.Nice = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.Nice |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Threads", wireType) - } - m.Threads = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.Threads |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field OpenFdCount", wireType) - } - m.OpenFdCount = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.OpenFdCount |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 9: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) - } - m.Key = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.Key |= (uint32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContainerId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ContainerId = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 11: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ContainerState", wireType) - } - m.ContainerState = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.ContainerState |= (ContainerState(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 12: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ProcessState", wireType) - } - m.ProcessState = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.ProcessState |= (ProcessState(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 15: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ContainerHealth", wireType) - } - m.ContainerHealth = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.ContainerHealth |= (ContainerHealth(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 16: - if wireType != 5 { - return fmt.Errorf("proto: wrong wireType = %d for field ContainerRbps", wireType) - } - var v uint32 - if (iNdEx + 4) > l { - return io.ErrUnexpectedEOF - } - iNdEx += 4 - v = uint32(data[iNdEx-4]) - v |= uint32(data[iNdEx-3]) << 8 - v |= uint32(data[iNdEx-2]) << 16 - v |= uint32(data[iNdEx-1]) << 24 - m.ContainerRbps = float32(math.Float32frombits(v)) - case 17: - if wireType != 5 { - return fmt.Errorf("proto: wrong wireType = %d for field ContainerWbps", wireType) - } - var v uint32 - if (iNdEx + 4) > l { - return io.ErrUnexpectedEOF - } - iNdEx += 4 - v = uint32(data[iNdEx-4]) - v |= uint32(data[iNdEx-3]) << 8 - v |= uint32(data[iNdEx-2]) << 16 - v |= uint32(data[iNdEx-1]) << 24 - m.ContainerWbps = float32(math.Float32frombits(v)) - case 18: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ContainerKey", wireType) - } - m.ContainerKey = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.ContainerKey |= (uint32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 19: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field IoStat", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.IoStat == nil { - m.IoStat = &IOStat{} - } - if err := m.IoStat.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 20: - if wireType != 5 { - return fmt.Errorf("proto: wrong wireType = %d for field ContainerNetRcvdPs", wireType) - } - var v uint32 - if (iNdEx + 4) > l { - return io.ErrUnexpectedEOF - } - iNdEx += 4 - v = uint32(data[iNdEx-4]) - v |= uint32(data[iNdEx-3]) << 8 - v |= uint32(data[iNdEx-2]) << 16 - v |= uint32(data[iNdEx-1]) << 24 - m.ContainerNetRcvdPs = float32(math.Float32frombits(v)) - case 21: - if wireType != 5 { - return fmt.Errorf("proto: wrong wireType = %d for field ContainerNetSentPs", wireType) - } - var v uint32 - if (iNdEx + 4) > l { - return io.ErrUnexpectedEOF - } - iNdEx += 4 - v = uint32(data[iNdEx-4]) - v |= uint32(data[iNdEx-3]) << 8 - v |= uint32(data[iNdEx-2]) << 16 - v |= uint32(data[iNdEx-1]) << 24 - m.ContainerNetSentPs = float32(math.Float32frombits(v)) - case 22: - if wireType != 5 { - return fmt.Errorf("proto: wrong wireType = %d for field ContainerNetRcvdBps", wireType) - } - var v uint32 - if (iNdEx + 4) > l { - return io.ErrUnexpectedEOF - } - iNdEx += 4 - v = uint32(data[iNdEx-4]) - v |= uint32(data[iNdEx-3]) << 8 - v |= uint32(data[iNdEx-2]) << 16 - v |= uint32(data[iNdEx-1]) << 24 - m.ContainerNetRcvdBps = float32(math.Float32frombits(v)) - case 23: - if wireType != 5 { - return fmt.Errorf("proto: wrong wireType = %d for field ContainerNetSentBps", wireType) - } - var v uint32 - if (iNdEx + 4) > l { - return io.ErrUnexpectedEOF - } - iNdEx += 4 - v = uint32(data[iNdEx-4]) - v |= uint32(data[iNdEx-3]) << 8 - v |= uint32(data[iNdEx-2]) << 16 - v |= uint32(data[iNdEx-1]) << 24 - m.ContainerNetSentBps = float32(math.Float32frombits(v)) - case 24: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field VoluntaryCtxSwitches", wireType) - } - m.VoluntaryCtxSwitches = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.VoluntaryCtxSwitches |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 25: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field InvoluntaryCtxSwitches", wireType) - } - m.InvoluntaryCtxSwitches = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.InvoluntaryCtxSwitches |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 26: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ByteKey", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - byteLen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + byteLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ByteKey = append(m.ByteKey[:0], data[iNdEx:postIndex]...) - if m.ByteKey == nil { - m.ByteKey = []byte{} - } - iNdEx = postIndex - case 27: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContainerByteKey", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - byteLen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + byteLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ContainerByteKey = append(m.ContainerByteKey[:0], data[iNdEx:postIndex]...) - if m.ContainerByteKey == nil { - m.ContainerByteKey = []byte{} - } - iNdEx = postIndex - case 28: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Networks", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Networks == nil { - m.Networks = &ProcessNetworks{} - } - if err := m.Networks.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + +func (x *PersistentVolume) GetStatus() *PersistentVolumeStatus { + if x != nil { + return x.Status } + return nil +} - if iNdEx > l { - return io.ErrUnexpectedEOF +// Deprecated: Marked as deprecated in proto/process/agent.proto. +func (x *PersistentVolume) GetYaml() []byte { + if x != nil { + return x.Yaml } return nil } -func (m *ProcStatsWithPerm) Unmarshal(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 ErrIntOverflowAgent - } - 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: ProcStatsWithPerm: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ProcStatsWithPerm: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field OpenFDCount", wireType) - } - m.OpenFDCount = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.OpenFDCount |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReadCount", wireType) - } - m.ReadCount = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.ReadCount |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field WriteCount", wireType) - } - m.WriteCount = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.WriteCount |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReadBytes", wireType) - } - m.ReadBytes = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.ReadBytes |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field WriteBytes", wireType) - } - m.WriteBytes = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.WriteBytes |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy + +func (x *PersistentVolume) GetTags() []string { + if x != nil { + return x.Tags + } + return nil +} + +// reference https://github.com/kubernetes/api/blob/4bdcbc60ffeee2c04231f11ff114314c1a93ce65/core/v1/generated.proto#L2889 +type PersistentVolumeSpec struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Key/Value of a resource type and a corresponding quantity as an int64. + Capacity map[string]int64 `protobuf:"bytes,1,rep,name=capacity,proto3" json:"capacity,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` + // in kubernetes these are actually fields in a struct where only one can be set. + // For now we only set it to a string with the name. + PersistentVolumeType string `protobuf:"bytes,2,opt,name=persistentVolumeType,proto3" json:"persistentVolumeType,omitempty"` + AccessModes []string `protobuf:"bytes,3,rep,name=accessModes,proto3" json:"accessModes,omitempty"` + ClaimRef *ObjectReference `protobuf:"bytes,4,opt,name=claimRef,proto3" json:"claimRef,omitempty"` + PersistentVolumeReclaimPolicy string `protobuf:"bytes,5,opt,name=persistentVolumeReclaimPolicy,proto3" json:"persistentVolumeReclaimPolicy,omitempty"` + StorageClassName string `protobuf:"bytes,6,opt,name=storageClassName,proto3" json:"storageClassName,omitempty"` + MountOptions []string `protobuf:"bytes,7,rep,name=mountOptions,proto3" json:"mountOptions,omitempty"` + VolumeMode string `protobuf:"bytes,8,opt,name=volumeMode,proto3" json:"volumeMode,omitempty"` + NodeAffinity []*NodeSelectorTerm `protobuf:"bytes,9,rep,name=nodeAffinity,proto3" json:"nodeAffinity,omitempty"` + PersistentVolumeSource *PersistentVolumeSource `protobuf:"bytes,10,opt,name=persistentVolumeSource,proto3" json:"persistentVolumeSource,omitempty"` +} + +func (x *PersistentVolumeSpec) Reset() { + *x = PersistentVolumeSpec{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[93] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PersistentVolumeSpec) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PersistentVolumeSpec) ProtoMessage() {} + +func (x *PersistentVolumeSpec) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[93] + 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) +} - if iNdEx > l { - return io.ErrUnexpectedEOF +// Deprecated: Use PersistentVolumeSpec.ProtoReflect.Descriptor instead. +func (*PersistentVolumeSpec) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{93} +} + +func (x *PersistentVolumeSpec) GetCapacity() map[string]int64 { + if x != nil { + return x.Capacity } return nil } -func (m *ProcStatsWithPermByPID) Unmarshal(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 ErrIntOverflowAgent - } - 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: ProcStatsWithPermByPID: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ProcStatsWithPermByPID: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StatsByPID", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - var keykey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - keykey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - var mapkey int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - mapkey |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if m.StatsByPID == nil { - m.StatsByPID = make(map[int32]*ProcStatsWithPerm) - } - if iNdEx < postIndex { - var valuekey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - valuekey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - mapmsglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return ErrInvalidLengthAgent - } - postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { - return ErrInvalidLengthAgent - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue := &ProcStatsWithPerm{} - if err := mapvalue.Unmarshal(data[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - m.StatsByPID[mapkey] = mapvalue - } else { - var mapvalue *ProcStatsWithPerm - m.StatsByPID[mapkey] = mapvalue - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + +func (x *PersistentVolumeSpec) GetPersistentVolumeType() string { + if x != nil { + return x.PersistentVolumeType } + return "" +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *PersistentVolumeSpec) GetAccessModes() []string { + if x != nil { + return x.AccessModes } return nil } -func (m *ContainerStat) Unmarshal(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 ErrIntOverflowAgent - } - 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: ContainerStat: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ContainerStat: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Id = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 5 { - return fmt.Errorf("proto: wrong wireType = %d for field UserPct", wireType) - } - var v uint32 - if (iNdEx + 4) > l { - return io.ErrUnexpectedEOF - } - iNdEx += 4 - v = uint32(data[iNdEx-4]) - v |= uint32(data[iNdEx-3]) << 8 - v |= uint32(data[iNdEx-2]) << 16 - v |= uint32(data[iNdEx-1]) << 24 - m.UserPct = float32(math.Float32frombits(v)) - case 3: - if wireType != 5 { - return fmt.Errorf("proto: wrong wireType = %d for field SystemPct", wireType) - } - var v uint32 - if (iNdEx + 4) > l { - return io.ErrUnexpectedEOF - } - iNdEx += 4 - v = uint32(data[iNdEx-4]) - v |= uint32(data[iNdEx-3]) << 8 - v |= uint32(data[iNdEx-2]) << 16 - v |= uint32(data[iNdEx-1]) << 24 - m.SystemPct = float32(math.Float32frombits(v)) - case 4: - if wireType != 5 { - return fmt.Errorf("proto: wrong wireType = %d for field TotalPct", wireType) - } - var v uint32 - if (iNdEx + 4) > l { - return io.ErrUnexpectedEOF - } - iNdEx += 4 - v = uint32(data[iNdEx-4]) - v |= uint32(data[iNdEx-3]) << 8 - v |= uint32(data[iNdEx-2]) << 16 - v |= uint32(data[iNdEx-1]) << 24 - m.TotalPct = float32(math.Float32frombits(v)) - case 5: - if wireType != 5 { - return fmt.Errorf("proto: wrong wireType = %d for field CpuLimit", wireType) - } - var v uint32 - if (iNdEx + 4) > l { - return io.ErrUnexpectedEOF - } - iNdEx += 4 - v = uint32(data[iNdEx-4]) - v |= uint32(data[iNdEx-3]) << 8 - v |= uint32(data[iNdEx-2]) << 16 - v |= uint32(data[iNdEx-1]) << 24 - m.CpuLimit = float32(math.Float32frombits(v)) - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MemRss", wireType) - } - m.MemRss = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.MemRss |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MemCache", wireType) - } - m.MemCache = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.MemCache |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MemLimit", wireType) - } - m.MemLimit = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.MemLimit |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 9: - if wireType != 5 { - return fmt.Errorf("proto: wrong wireType = %d for field Rbps", wireType) - } - var v uint32 - if (iNdEx + 4) > l { - return io.ErrUnexpectedEOF - } - iNdEx += 4 - v = uint32(data[iNdEx-4]) - v |= uint32(data[iNdEx-3]) << 8 - v |= uint32(data[iNdEx-2]) << 16 - v |= uint32(data[iNdEx-1]) << 24 - m.Rbps = float32(math.Float32frombits(v)) - case 10: - if wireType != 5 { - return fmt.Errorf("proto: wrong wireType = %d for field Wbps", wireType) - } - var v uint32 - if (iNdEx + 4) > l { - return io.ErrUnexpectedEOF - } - iNdEx += 4 - v = uint32(data[iNdEx-4]) - v |= uint32(data[iNdEx-3]) << 8 - v |= uint32(data[iNdEx-2]) << 16 - v |= uint32(data[iNdEx-1]) << 24 - m.Wbps = float32(math.Float32frombits(v)) - case 11: - if wireType != 5 { - return fmt.Errorf("proto: wrong wireType = %d for field NetRcvdPs", wireType) - } - var v uint32 - if (iNdEx + 4) > l { - return io.ErrUnexpectedEOF - } - iNdEx += 4 - v = uint32(data[iNdEx-4]) - v |= uint32(data[iNdEx-3]) << 8 - v |= uint32(data[iNdEx-2]) << 16 - v |= uint32(data[iNdEx-1]) << 24 - m.NetRcvdPs = float32(math.Float32frombits(v)) - case 12: - if wireType != 5 { - return fmt.Errorf("proto: wrong wireType = %d for field NetSentPs", wireType) - } - var v uint32 - if (iNdEx + 4) > l { - return io.ErrUnexpectedEOF - } - iNdEx += 4 - v = uint32(data[iNdEx-4]) - v |= uint32(data[iNdEx-3]) << 8 - v |= uint32(data[iNdEx-2]) << 16 - v |= uint32(data[iNdEx-1]) << 24 - m.NetSentPs = float32(math.Float32frombits(v)) - case 13: - if wireType != 5 { - return fmt.Errorf("proto: wrong wireType = %d for field NetRcvdBps", wireType) - } - var v uint32 - if (iNdEx + 4) > l { - return io.ErrUnexpectedEOF - } - iNdEx += 4 - v = uint32(data[iNdEx-4]) - v |= uint32(data[iNdEx-3]) << 8 - v |= uint32(data[iNdEx-2]) << 16 - v |= uint32(data[iNdEx-1]) << 24 - m.NetRcvdBps = float32(math.Float32frombits(v)) - case 14: - if wireType != 5 { - return fmt.Errorf("proto: wrong wireType = %d for field NetSentBps", wireType) - } - var v uint32 - if (iNdEx + 4) > l { - return io.ErrUnexpectedEOF - } - iNdEx += 4 - v = uint32(data[iNdEx-4]) - v |= uint32(data[iNdEx-3]) << 8 - v |= uint32(data[iNdEx-2]) << 16 - v |= uint32(data[iNdEx-1]) << 24 - m.NetSentBps = float32(math.Float32frombits(v)) - case 15: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) - } - m.State = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.State |= (ContainerState(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 16: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Health", wireType) - } - m.Health = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.Health |= (ContainerHealth(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 17: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) - } - m.Key = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.Key |= (uint32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 18: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Started", wireType) - } - m.Started = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.Started |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 19: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ByteKey", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - byteLen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + byteLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ByteKey = append(m.ByteKey[:0], data[iNdEx:postIndex]...) - if m.ByteKey == nil { - m.ByteKey = []byte{} - } - iNdEx = postIndex - case 20: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ThreadCount", wireType) - } - m.ThreadCount = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.ThreadCount |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 21: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ThreadLimit", wireType) - } - m.ThreadLimit = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.ThreadLimit |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 22: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MemUsage", wireType) - } - m.MemUsage = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.MemUsage |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 23: - if wireType != 5 { - return fmt.Errorf("proto: wrong wireType = %d for field CpuUsageNs", wireType) - } - var v uint32 - if (iNdEx + 4) > l { - return io.ErrUnexpectedEOF - } - iNdEx += 4 - v = uint32(data[iNdEx-4]) - v |= uint32(data[iNdEx-3]) << 8 - v |= uint32(data[iNdEx-2]) << 16 - v |= uint32(data[iNdEx-1]) << 24 - m.CpuUsageNs = float32(math.Float32frombits(v)) - case 24: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MemAccounted", wireType) - } - m.MemAccounted = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.MemAccounted |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy + +func (x *PersistentVolumeSpec) GetClaimRef() *ObjectReference { + if x != nil { + return x.ClaimRef + } + return nil +} + +func (x *PersistentVolumeSpec) GetPersistentVolumeReclaimPolicy() string { + if x != nil { + return x.PersistentVolumeReclaimPolicy + } + return "" +} + +func (x *PersistentVolumeSpec) GetStorageClassName() string { + if x != nil { + return x.StorageClassName + } + return "" +} + +func (x *PersistentVolumeSpec) GetMountOptions() []string { + if x != nil { + return x.MountOptions + } + return nil +} + +func (x *PersistentVolumeSpec) GetVolumeMode() string { + if x != nil { + return x.VolumeMode + } + return "" +} + +func (x *PersistentVolumeSpec) GetNodeAffinity() []*NodeSelectorTerm { + if x != nil { + return x.NodeAffinity + } + return nil +} + +func (x *PersistentVolumeSpec) GetPersistentVolumeSource() *PersistentVolumeSource { + if x != nil { + return x.PersistentVolumeSource + } + return nil +} + +// reference https://github.com/kubernetes/api/blob/release-1.27/core/v1/generated.proto#L1722 +type PersistentVolumeSource struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + GcePersistentDisk *GCEPersistentDiskVolumeSource `protobuf:"bytes,1,opt,name=gcePersistentDisk,proto3" json:"gcePersistentDisk,omitempty"` + AwsElasticBlockStore *AWSElasticBlockStoreVolumeSource `protobuf:"bytes,2,opt,name=awsElasticBlockStore,proto3" json:"awsElasticBlockStore,omitempty"` + AzureFile *AzureFilePersistentVolumeSource `protobuf:"bytes,3,opt,name=azureFile,proto3" json:"azureFile,omitempty"` + AzureDisk *AzureDiskVolumeSource `protobuf:"bytes,4,opt,name=azureDisk,proto3" json:"azureDisk,omitempty"` + Csi *CSIVolumeSource `protobuf:"bytes,5,opt,name=csi,proto3" json:"csi,omitempty"` +} + +func (x *PersistentVolumeSource) Reset() { + *x = PersistentVolumeSource{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[94] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PersistentVolumeSource) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PersistentVolumeSource) ProtoMessage() {} + +func (x *PersistentVolumeSource) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[94] + 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 PersistentVolumeSource.ProtoReflect.Descriptor instead. +func (*PersistentVolumeSource) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{94} +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *PersistentVolumeSource) GetGcePersistentDisk() *GCEPersistentDiskVolumeSource { + if x != nil { + return x.GcePersistentDisk } return nil } -func (m *SystemInfo) Unmarshal(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 ErrIntOverflowAgent - } - 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: SystemInfo: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SystemInfo: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Uuid", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Uuid = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Os", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Os == nil { - m.Os = &OSInfo{} - } - if err := m.Os.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Cpus", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Cpus = append(m.Cpus, &CPUInfo{}) - if err := m.Cpus[len(m.Cpus)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TotalMemory", wireType) - } - m.TotalMemory = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.TotalMemory |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + +func (x *PersistentVolumeSource) GetAwsElasticBlockStore() *AWSElasticBlockStoreVolumeSource { + if x != nil { + return x.AwsElasticBlockStore } + return nil +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *PersistentVolumeSource) GetAzureFile() *AzureFilePersistentVolumeSource { + if x != nil { + return x.AzureFile } return nil } -func (m *OSInfo) Unmarshal(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 ErrIntOverflowAgent - } - 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: OSInfo: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: OSInfo: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Platform", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Platform = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Family", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Family = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Version = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field KernelVersion", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.KernelVersion = string(data[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + +func (x *PersistentVolumeSource) GetAzureDisk() *AzureDiskVolumeSource { + if x != nil { + return x.AzureDisk } + return nil +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *PersistentVolumeSource) GetCsi() *CSIVolumeSource { + if x != nil { + return x.Csi } return nil } -func (m *IOStat) Unmarshal(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 ErrIntOverflowAgent - } - 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: IOStat: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: IOStat: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 5 { - return fmt.Errorf("proto: wrong wireType = %d for field ReadRate", wireType) - } - var v uint32 - if (iNdEx + 4) > l { - return io.ErrUnexpectedEOF - } - iNdEx += 4 - v = uint32(data[iNdEx-4]) - v |= uint32(data[iNdEx-3]) << 8 - v |= uint32(data[iNdEx-2]) << 16 - v |= uint32(data[iNdEx-1]) << 24 - m.ReadRate = float32(math.Float32frombits(v)) - case 2: - if wireType != 5 { - return fmt.Errorf("proto: wrong wireType = %d for field WriteRate", wireType) - } - var v uint32 - if (iNdEx + 4) > l { - return io.ErrUnexpectedEOF - } - iNdEx += 4 - v = uint32(data[iNdEx-4]) - v |= uint32(data[iNdEx-3]) << 8 - v |= uint32(data[iNdEx-2]) << 16 - v |= uint32(data[iNdEx-1]) << 24 - m.WriteRate = float32(math.Float32frombits(v)) - case 3: - if wireType != 5 { - return fmt.Errorf("proto: wrong wireType = %d for field ReadBytesRate", wireType) - } - var v uint32 - if (iNdEx + 4) > l { - return io.ErrUnexpectedEOF - } - iNdEx += 4 - v = uint32(data[iNdEx-4]) - v |= uint32(data[iNdEx-3]) << 8 - v |= uint32(data[iNdEx-2]) << 16 - v |= uint32(data[iNdEx-1]) << 24 - m.ReadBytesRate = float32(math.Float32frombits(v)) - case 4: - if wireType != 5 { - return fmt.Errorf("proto: wrong wireType = %d for field WriteBytesRate", wireType) - } - var v uint32 - if (iNdEx + 4) > l { - return io.ErrUnexpectedEOF - } - iNdEx += 4 - v = uint32(data[iNdEx-4]) - v |= uint32(data[iNdEx-3]) << 8 - v |= uint32(data[iNdEx-2]) << 16 - v |= uint32(data[iNdEx-1]) << 24 - m.WriteBytesRate = float32(math.Float32frombits(v)) - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy + +// reference https://github.com/kubernetes/api/blob/4bdcbc60ffeee2c04231f11ff114314c1a93ce65/core/v1/generated.proto#L1616 +type GCEPersistentDiskVolumeSource struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + PdName string `protobuf:"bytes,1,opt,name=pdName,proto3" json:"pdName,omitempty"` + FsType string `protobuf:"bytes,2,opt,name=fsType,proto3" json:"fsType,omitempty"` + Partition int32 `protobuf:"varint,3,opt,name=partition,proto3" json:"partition,omitempty"` + ReadOnly bool `protobuf:"varint,4,opt,name=readOnly,proto3" json:"readOnly,omitempty"` +} + +func (x *GCEPersistentDiskVolumeSource) Reset() { + *x = GCEPersistentDiskVolumeSource{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[95] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GCEPersistentDiskVolumeSource) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GCEPersistentDiskVolumeSource) ProtoMessage() {} + +func (x *GCEPersistentDiskVolumeSource) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[95] + 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 GCEPersistentDiskVolumeSource.ProtoReflect.Descriptor instead. +func (*GCEPersistentDiskVolumeSource) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{95} +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *GCEPersistentDiskVolumeSource) GetPdName() string { + if x != nil { + return x.PdName } - return nil + return "" } -func (m *MemoryStat) Unmarshal(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 ErrIntOverflowAgent - } - 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: MemoryStat: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MemoryStat: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Rss", wireType) - } - m.Rss = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.Rss |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Vms", wireType) - } - m.Vms = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.Vms |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Swap", wireType) - } - m.Swap = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.Swap |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Shared", wireType) - } - m.Shared = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.Shared |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Text", wireType) - } - m.Text = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.Text |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Lib", wireType) - } - m.Lib = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.Lib |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) - } - m.Data = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.Data |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Dirty", wireType) - } - m.Dirty = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.Dirty |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + +func (x *GCEPersistentDiskVolumeSource) GetFsType() string { + if x != nil { + return x.FsType } + return "" +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *GCEPersistentDiskVolumeSource) GetPartition() int32 { + if x != nil { + return x.Partition } - return nil + return 0 } -func (m *CPUStat) Unmarshal(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 ErrIntOverflowAgent - } - 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: CPUStat: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CPUStat: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LastCpu", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.LastCpu = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 5 { - return fmt.Errorf("proto: wrong wireType = %d for field TotalPct", wireType) - } - var v uint32 - if (iNdEx + 4) > l { - return io.ErrUnexpectedEOF - } - iNdEx += 4 - v = uint32(data[iNdEx-4]) - v |= uint32(data[iNdEx-3]) << 8 - v |= uint32(data[iNdEx-2]) << 16 - v |= uint32(data[iNdEx-1]) << 24 - m.TotalPct = float32(math.Float32frombits(v)) - case 3: - if wireType != 5 { - return fmt.Errorf("proto: wrong wireType = %d for field UserPct", wireType) - } - var v uint32 - if (iNdEx + 4) > l { - return io.ErrUnexpectedEOF - } - iNdEx += 4 - v = uint32(data[iNdEx-4]) - v |= uint32(data[iNdEx-3]) << 8 - v |= uint32(data[iNdEx-2]) << 16 - v |= uint32(data[iNdEx-1]) << 24 - m.UserPct = float32(math.Float32frombits(v)) - case 4: - if wireType != 5 { - return fmt.Errorf("proto: wrong wireType = %d for field SystemPct", wireType) - } - var v uint32 - if (iNdEx + 4) > l { - return io.ErrUnexpectedEOF - } - iNdEx += 4 - v = uint32(data[iNdEx-4]) - v |= uint32(data[iNdEx-3]) << 8 - v |= uint32(data[iNdEx-2]) << 16 - v |= uint32(data[iNdEx-1]) << 24 - m.SystemPct = float32(math.Float32frombits(v)) - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NumThreads", wireType) - } - m.NumThreads = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.NumThreads |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Cpus", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Cpus = append(m.Cpus, &SingleCPUStat{}) - if err := m.Cpus[len(m.Cpus)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Nice", wireType) - } - m.Nice = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.Nice |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field UserTime", wireType) - } - m.UserTime = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.UserTime |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 9: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field SystemTime", wireType) - } - m.SystemTime = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.SystemTime |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + +func (x *GCEPersistentDiskVolumeSource) GetReadOnly() bool { + if x != nil { + return x.ReadOnly } + return false +} + +// reference https://github.com/kubernetes/api/blob/release-1.27/core/v1/generated.proto#L39 +type AWSElasticBlockStoreVolumeSource struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + VolumeID string `protobuf:"bytes,1,opt,name=volumeID,proto3" json:"volumeID,omitempty"` + FsType string `protobuf:"bytes,2,opt,name=fsType,proto3" json:"fsType,omitempty"` + Partition int32 `protobuf:"varint,3,opt,name=partition,proto3" json:"partition,omitempty"` + ReadOnly bool `protobuf:"varint,4,opt,name=readOnly,proto3" json:"readOnly,omitempty"` +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *AWSElasticBlockStoreVolumeSource) Reset() { + *x = AWSElasticBlockStoreVolumeSource{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[96] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -func (m *SingleCPUStat) Unmarshal(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 ErrIntOverflowAgent - } - 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: SingleCPUStat: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SingleCPUStat: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 5 { - return fmt.Errorf("proto: wrong wireType = %d for field TotalPct", wireType) - } - var v uint32 - if (iNdEx + 4) > l { - return io.ErrUnexpectedEOF - } - iNdEx += 4 - v = uint32(data[iNdEx-4]) - v |= uint32(data[iNdEx-3]) << 8 - v |= uint32(data[iNdEx-2]) << 16 - v |= uint32(data[iNdEx-1]) << 24 - m.TotalPct = float32(math.Float32frombits(v)) - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy + +func (x *AWSElasticBlockStoreVolumeSource) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AWSElasticBlockStoreVolumeSource) ProtoMessage() {} + +func (x *AWSElasticBlockStoreVolumeSource) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[96] + 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) +} - if iNdEx > l { - return io.ErrUnexpectedEOF +// Deprecated: Use AWSElasticBlockStoreVolumeSource.ProtoReflect.Descriptor instead. +func (*AWSElasticBlockStoreVolumeSource) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{96} +} + +func (x *AWSElasticBlockStoreVolumeSource) GetVolumeID() string { + if x != nil { + return x.VolumeID } - return nil + return "" } -func (m *CPUInfo) Unmarshal(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 ErrIntOverflowAgent - } - 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: CPUInfo: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CPUInfo: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Number", wireType) - } - m.Number = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.Number |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Vendor", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Vendor = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Family", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Family = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Model", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Model = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PhysicalId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PhysicalId = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CoreId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CoreId = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Cores", wireType) - } - m.Cores = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.Cores |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Mhz", wireType) - } - m.Mhz = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.Mhz |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 9: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CacheSize", wireType) - } - m.CacheSize = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.CacheSize |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy + +func (x *AWSElasticBlockStoreVolumeSource) GetFsType() string { + if x != nil { + return x.FsType + } + return "" +} + +func (x *AWSElasticBlockStoreVolumeSource) GetPartition() int32 { + if x != nil { + return x.Partition + } + return 0 +} + +func (x *AWSElasticBlockStoreVolumeSource) GetReadOnly() bool { + if x != nil { + return x.ReadOnly + } + return false +} + +// reference https://github.com/kubernetes/api/blob/release-1.27/core/v1/generated.proto#L127 +type AzureFilePersistentVolumeSource struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + SecretName string `protobuf:"bytes,1,opt,name=secretName,proto3" json:"secretName,omitempty"` + ShareName string `protobuf:"bytes,2,opt,name=shareName,proto3" json:"shareName,omitempty"` + ReadOnly bool `protobuf:"varint,3,opt,name=readOnly,proto3" json:"readOnly,omitempty"` + SecretNamespace string `protobuf:"bytes,4,opt,name=secretNamespace,proto3" json:"secretNamespace,omitempty"` +} + +func (x *AzureFilePersistentVolumeSource) Reset() { + *x = AzureFilePersistentVolumeSource{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[97] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AzureFilePersistentVolumeSource) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AzureFilePersistentVolumeSource) ProtoMessage() {} + +func (x *AzureFilePersistentVolumeSource) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[97] + 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) +} - if iNdEx > l { - return io.ErrUnexpectedEOF +// Deprecated: Use AzureFilePersistentVolumeSource.ProtoReflect.Descriptor instead. +func (*AzureFilePersistentVolumeSource) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{97} +} + +func (x *AzureFilePersistentVolumeSource) GetSecretName() string { + if x != nil { + return x.SecretName } - return nil + return "" } -func (m *Host) Unmarshal(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 ErrIntOverflowAgent - } - 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: Host: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Host: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - m.Id = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.Id |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field OrgId", wireType) - } - m.OrgId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.OrgId |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AllTags", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.AllTags = append(m.AllTags, string(data[iNdEx:postIndex])) - iNdEx = postIndex - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NumCpus", wireType) - } - m.NumCpus = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.NumCpus |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TotalMemory", wireType) - } - m.TotalMemory = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.TotalMemory |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 9: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TagIndex", wireType) - } - m.TagIndex = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.TagIndex |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 10: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TagsModified", wireType) - } - m.TagsModified = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.TagsModified |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + +func (x *AzureFilePersistentVolumeSource) GetShareName() string { + if x != nil { + return x.ShareName } + return "" +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *AzureFilePersistentVolumeSource) GetReadOnly() bool { + if x != nil { + return x.ReadOnly } - return nil + return false } -func (m *Cluster) Unmarshal(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 ErrIntOverflowAgent - } - 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: Cluster: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Cluster: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NodeCount", wireType) - } - m.NodeCount = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.NodeCount |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field KubeletVersions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - var keykey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - keykey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey := string(data[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - if m.KubeletVersions == nil { - m.KubeletVersions = make(map[string]int32) - } - if iNdEx < postIndex { - var valuekey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - valuekey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - var mapvalue int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - mapvalue |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.KubeletVersions[mapkey] = mapvalue - } else { - var mapvalue int32 - m.KubeletVersions[mapkey] = mapvalue - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ApiServerVersions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - var keykey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - keykey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey := string(data[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - if m.ApiServerVersions == nil { - m.ApiServerVersions = make(map[string]int32) - } - if iNdEx < postIndex { - var valuekey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - valuekey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - var mapvalue int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - mapvalue |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.ApiServerVersions[mapkey] = mapvalue - } else { - var mapvalue int32 - m.ApiServerVersions[mapkey] = mapvalue - } - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field PodCapacity", wireType) - } - m.PodCapacity = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.PodCapacity |= (uint32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field PodAllocatable", wireType) - } - m.PodAllocatable = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.PodAllocatable |= (uint32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MemoryAllocatable", wireType) - } - m.MemoryAllocatable = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.MemoryAllocatable |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MemoryCapacity", wireType) - } - m.MemoryCapacity = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.MemoryCapacity |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CpuAllocatable", wireType) - } - m.CpuAllocatable = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.CpuAllocatable |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 9: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CpuCapacity", wireType) - } - m.CpuCapacity = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.CpuCapacity |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ResourceVersion", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ResourceVersion = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 11: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CreationTimestamp", wireType) - } - m.CreationTimestamp = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.CreationTimestamp |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 12: - 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 ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Tags = append(m.Tags, string(data[iNdEx:postIndex])) - iNdEx = postIndex - case 13: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Metrics", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Metrics == nil { - m.Metrics = &ResourceMetrics{} - } - if err := m.Metrics.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + +func (x *AzureFilePersistentVolumeSource) GetSecretNamespace() string { + if x != nil { + return x.SecretNamespace } + return "" +} + +// reference https://github.com/kubernetes/api/blob/release-1.27/core/v1/generated.proto#L100 +type AzureDiskVolumeSource struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + DiskName string `protobuf:"bytes,1,opt,name=diskName,proto3" json:"diskName,omitempty"` + DiskURI string `protobuf:"bytes,2,opt,name=diskURI,proto3" json:"diskURI,omitempty"` + CachingMode string `protobuf:"bytes,3,opt,name=cachingMode,proto3" json:"cachingMode,omitempty"` + FsType string `protobuf:"bytes,4,opt,name=fsType,proto3" json:"fsType,omitempty"` + ReadOnly bool `protobuf:"varint,5,opt,name=readOnly,proto3" json:"readOnly,omitempty"` + Kind string `protobuf:"bytes,6,opt,name=kind,proto3" json:"kind,omitempty"` +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *AzureDiskVolumeSource) Reset() { + *x = AzureDiskVolumeSource{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[98] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -func (m *Metadata) Unmarshal(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 ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Metadata: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Metadata: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespace = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Uid", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Uid = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CreationTimestamp", wireType) - } - m.CreationTimestamp = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.CreationTimestamp |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DeletionTimestamp", wireType) - } - m.DeletionTimestamp = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.DeletionTimestamp |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Labels", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Labels = append(m.Labels, string(data[iNdEx:postIndex])) - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Annotations", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Annotations = append(m.Annotations, string(data[iNdEx:postIndex])) - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field OwnerReferences", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.OwnerReferences = append(m.OwnerReferences, &OwnerReference{}) - if err := m.OwnerReferences[len(m.OwnerReferences)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ResourceVersion", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ResourceVersion = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Finalizers", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Finalizers = append(m.Finalizers, string(data[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy + +func (x *AzureDiskVolumeSource) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AzureDiskVolumeSource) ProtoMessage() {} + +func (x *AzureDiskVolumeSource) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[98] + 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 AzureDiskVolumeSource.ProtoReflect.Descriptor instead. +func (*AzureDiskVolumeSource) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{98} +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *AzureDiskVolumeSource) GetDiskName() string { + if x != nil { + return x.DiskName } - return nil + return "" } -func (m *OwnerReference) Unmarshal(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 ErrIntOverflowAgent - } - 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: OwnerReference: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: OwnerReference: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Uid", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Uid = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Kind", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Kind = string(data[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + +func (x *AzureDiskVolumeSource) GetDiskURI() string { + if x != nil { + return x.DiskURI } + return "" +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *AzureDiskVolumeSource) GetCachingMode() string { + if x != nil { + return x.CachingMode } - return nil + return "" } -func (m *ObjectReference) Unmarshal(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 ErrIntOverflowAgent - } - 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: ObjectReference: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ObjectReference: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Kind", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Kind = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespace = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Uid", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Uid = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ApiVersion", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ApiVersion = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ResourceVersion", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ResourceVersion = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FieldPath", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.FieldPath = string(data[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy + +func (x *AzureDiskVolumeSource) GetFsType() string { + if x != nil { + return x.FsType + } + return "" +} + +func (x *AzureDiskVolumeSource) GetReadOnly() bool { + if x != nil { + return x.ReadOnly + } + return false +} + +func (x *AzureDiskVolumeSource) GetKind() string { + if x != nil { + return x.Kind + } + return "" +} + +// reference https://github.com/kubernetes/api/blob/release-1.27/core/v1/generated.proto#L172 +type CSIVolumeSource struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Driver string `protobuf:"bytes,1,opt,name=driver,proto3" json:"driver,omitempty"` + VolumeHandle string `protobuf:"bytes,2,opt,name=volumeHandle,proto3" json:"volumeHandle,omitempty"` + ReadOnly bool `protobuf:"varint,3,opt,name=readOnly,proto3" json:"readOnly,omitempty"` + FsType string `protobuf:"bytes,4,opt,name=fsType,proto3" json:"fsType,omitempty"` + VolumeAttributes map[string]string `protobuf:"bytes,5,rep,name=volumeAttributes,proto3" json:"volumeAttributes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + ControllerPublishSecretRef *SecretReference `protobuf:"bytes,6,opt,name=controllerPublishSecretRef,proto3" json:"controllerPublishSecretRef,omitempty"` + NodeStageSecretRef *SecretReference `protobuf:"bytes,7,opt,name=nodeStageSecretRef,proto3" json:"nodeStageSecretRef,omitempty"` + NodePublishSecretRef *SecretReference `protobuf:"bytes,8,opt,name=nodePublishSecretRef,proto3" json:"nodePublishSecretRef,omitempty"` + ControllerExpandSecretRef *SecretReference `protobuf:"bytes,9,opt,name=controllerExpandSecretRef,proto3" json:"controllerExpandSecretRef,omitempty"` + NodeExpandSecretRef *SecretReference `protobuf:"bytes,10,opt,name=nodeExpandSecretRef,proto3" json:"nodeExpandSecretRef,omitempty"` +} + +func (x *CSIVolumeSource) Reset() { + *x = CSIVolumeSource{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[99] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CSIVolumeSource) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CSIVolumeSource) ProtoMessage() {} + +func (x *CSIVolumeSource) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[99] + 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 CSIVolumeSource.ProtoReflect.Descriptor instead. +func (*CSIVolumeSource) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{99} +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *CSIVolumeSource) GetDriver() string { + if x != nil { + return x.Driver } - return nil + return "" } -func (m *ServicePort) Unmarshal(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 ErrIntOverflowAgent - } - 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: ServicePort: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ServicePort: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Protocol", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Protocol = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Port", wireType) - } - m.Port = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.Port |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TargetPort", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TargetPort = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NodePort", wireType) - } - m.NodePort = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.NodePort |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + +func (x *CSIVolumeSource) GetVolumeHandle() string { + if x != nil { + return x.VolumeHandle + } + return "" +} + +func (x *CSIVolumeSource) GetReadOnly() bool { + if x != nil { + return x.ReadOnly + } + return false +} + +func (x *CSIVolumeSource) GetFsType() string { + if x != nil { + return x.FsType } + return "" +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *CSIVolumeSource) GetVolumeAttributes() map[string]string { + if x != nil { + return x.VolumeAttributes } return nil } -func (m *ServiceSessionAffinityConfig) Unmarshal(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 ErrIntOverflowAgent - } - 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: ServiceSessionAffinityConfig: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ServiceSessionAffinityConfig: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ClientIPTimeoutSeconds", wireType) - } - m.ClientIPTimeoutSeconds = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.ClientIPTimeoutSeconds |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + +func (x *CSIVolumeSource) GetControllerPublishSecretRef() *SecretReference { + if x != nil { + return x.ControllerPublishSecretRef } + return nil +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *CSIVolumeSource) GetNodeStageSecretRef() *SecretReference { + if x != nil { + return x.NodeStageSecretRef } return nil } -func (m *Node) Unmarshal(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 ErrIntOverflowAgent - } - 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: Node: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Node: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - 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 ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Metadata == nil { - m.Metadata = &Metadata{} - } - if err := m.Metadata.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PodCIDR", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PodCIDR = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PodCIDRs", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PodCIDRs = append(m.PodCIDRs, string(data[iNdEx:postIndex])) - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Unschedulable", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - v |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.Unschedulable = bool(v != 0) - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Taints", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Taints = append(m.Taints, &Taint{}) - if err := m.Taints[len(m.Taints)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Status == nil { - m.Status = &NodeStatus{} - } - if err := m.Status.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Yaml", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - byteLen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + byteLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Yaml = append(m.Yaml[:0], data[iNdEx:postIndex]...) - if m.Yaml == nil { - m.Yaml = []byte{} - } - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Roles", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Roles = append(m.Roles, string(data[iNdEx:postIndex])) - iNdEx = postIndex - case 9: - 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 ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Tags = append(m.Tags, string(data[iNdEx:postIndex])) - iNdEx = postIndex - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ProviderID", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ProviderID = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 11: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Host", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Host == nil { - m.Host = &Host{} - } - if err := m.Host.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 12: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Metrics", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Metrics == nil { - m.Metrics = &ResourceMetrics{} - } - if err := m.Metrics.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + +func (x *CSIVolumeSource) GetNodePublishSecretRef() *SecretReference { + if x != nil { + return x.NodePublishSecretRef } + return nil +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *CSIVolumeSource) GetControllerExpandSecretRef() *SecretReference { + if x != nil { + return x.ControllerExpandSecretRef } return nil } -func (m *NodeStatus) Unmarshal(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 ErrIntOverflowAgent - } - 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: NodeStatus: wiretype end group for non-group") + +func (x *CSIVolumeSource) GetNodeExpandSecretRef() *SecretReference { + if x != nil { + return x.NodeExpandSecretRef + } + return nil +} + +// reference https://github.com/kubernetes/api/blob/4bdcbc60ffeee2c04231f11ff114314c1a93ce65/core/v1/generated.proto#L4553 +type SecretReference struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` +} + +func (x *SecretReference) Reset() { + *x = SecretReference{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[100] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SecretReference) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SecretReference) ProtoMessage() {} + +func (x *SecretReference) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[100] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - if fieldNum <= 0 { - return fmt.Errorf("proto: NodeStatus: illegal tag %d (wire type %d)", fieldNum, wire) + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SecretReference.ProtoReflect.Descriptor instead. +func (*SecretReference) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{100} +} + +func (x *SecretReference) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *SecretReference) GetNamespace() string { + if x != nil { + return x.Namespace + } + return "" +} + +// reference https://github.com/kubernetes/api/blob/4bdcbc60ffeee2c04231f11ff114314c1a93ce65/core/v1/generated.proto#L2940 +type PersistentVolumeStatus struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Phase string `protobuf:"bytes,1,opt,name=phase,proto3" json:"phase,omitempty"` + Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` + Reason string `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty"` +} + +func (x *PersistentVolumeStatus) Reset() { + *x = PersistentVolumeStatus{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[101] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PersistentVolumeStatus) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PersistentVolumeStatus) ProtoMessage() {} + +func (x *PersistentVolumeStatus) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[101] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Capacity", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - var keykey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - keykey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey := string(data[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - if m.Capacity == nil { - m.Capacity = make(map[string]int64) - } - if iNdEx < postIndex { - var valuekey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - valuekey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - var mapvalue int64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - mapvalue |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.Capacity[mapkey] = mapvalue - } else { - var mapvalue int64 - m.Capacity[mapkey] = mapvalue - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Allocatable", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - var keykey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - keykey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey := string(data[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - if m.Allocatable == nil { - m.Allocatable = make(map[string]int64) - } - if iNdEx < postIndex { - var valuekey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - valuekey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - var mapvalue int64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - mapvalue |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.Allocatable[mapkey] = mapvalue - } else { - var mapvalue int64 - m.Allocatable[mapkey] = mapvalue - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NodeAddresses", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - var keykey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - keykey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey := string(data[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - if m.NodeAddresses == nil { - m.NodeAddresses = make(map[string]string) - } - if iNdEx < postIndex { - var valuekey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - valuekey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - stringLenmapvalue |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthAgent - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue := string(data[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - m.NodeAddresses[mapkey] = mapvalue - } else { - var mapvalue string - m.NodeAddresses[mapkey] = mapvalue - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Status = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field KubeletVersion", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.KubeletVersion = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Conditions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Conditions = append(m.Conditions, &NodeCondition{}) - if err := m.Conditions[len(m.Conditions)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Images", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Images = append(m.Images, &ContainerImage{}) - if err := m.Images[len(m.Images)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field KubeProxyVersion", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.KubeProxyVersion = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field OperatingSystem", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.OperatingSystem = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Architecture", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Architecture = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 11: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field KernelVersion", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.KernelVersion = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 12: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field OsImage", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.OsImage = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 13: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContainerRuntimeVersion", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ContainerRuntimeVersion = string(data[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PersistentVolumeStatus.ProtoReflect.Descriptor instead. +func (*PersistentVolumeStatus) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{101} +} + +func (x *PersistentVolumeStatus) GetPhase() string { + if x != nil { + return x.Phase + } + return "" +} + +func (x *PersistentVolumeStatus) GetMessage() string { + if x != nil { + return x.Message + } + return "" +} + +func (x *PersistentVolumeStatus) GetReason() string { + if x != nil { + return x.Reason + } + return "" +} + +type NodeSelectorTerm struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + MatchExpressions []*LabelSelectorRequirement `protobuf:"bytes,1,rep,name=matchExpressions,proto3" json:"matchExpressions,omitempty"` + MatchFields []*LabelSelectorRequirement `protobuf:"bytes,2,rep,name=matchFields,proto3" json:"matchFields,omitempty"` +} + +func (x *NodeSelectorTerm) Reset() { + *x = NodeSelectorTerm{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[102] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *NodeSelectorTerm) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NodeSelectorTerm) ProtoMessage() {} + +func (x *NodeSelectorTerm) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[102] + 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 NodeSelectorTerm.ProtoReflect.Descriptor instead. +func (*NodeSelectorTerm) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{102} +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *NodeSelectorTerm) GetMatchExpressions() []*LabelSelectorRequirement { + if x != nil { + return x.MatchExpressions } return nil } -func (m *NodeCondition) Unmarshal(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 ErrIntOverflowAgent - } - 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: NodeCondition: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: NodeCondition: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Type = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Status = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field LastTransitionTime", wireType) - } - m.LastTransitionTime = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.LastTransitionTime |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Reason = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Message = string(data[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy + +func (x *NodeSelectorTerm) GetMatchFields() []*LabelSelectorRequirement { + if x != nil { + return x.MatchFields + } + return nil +} + +// reference https://github.com/kubernetes/api/blob/4bdcbc60ffeee2c04231f11ff114314c1a93ce65/core/v1/generated.proto#L2597 +type PersistentVolumeClaim struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Metadata *Metadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` + Spec *PersistentVolumeClaimSpec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"` + Status *PersistentVolumeClaimStatus `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` + // Deprecated: Marked as deprecated in proto/process/agent.proto. + Yaml []byte `protobuf:"bytes,4,opt,name=yaml,proto3" json:"yaml,omitempty"` // see CollectorManifest + Tags []string `protobuf:"bytes,5,rep,name=tags,proto3" json:"tags,omitempty"` +} + +func (x *PersistentVolumeClaim) Reset() { + *x = PersistentVolumeClaim{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[103] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PersistentVolumeClaim) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PersistentVolumeClaim) ProtoMessage() {} + +func (x *PersistentVolumeClaim) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[103] + 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 PersistentVolumeClaim.ProtoReflect.Descriptor instead. +func (*PersistentVolumeClaim) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{103} +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *PersistentVolumeClaim) GetMetadata() *Metadata { + if x != nil { + return x.Metadata } return nil } -func (m *ContainerImage) Unmarshal(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 ErrIntOverflowAgent - } - 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: ContainerImage: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ContainerImage: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Names", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Names = append(m.Names, string(data[iNdEx:postIndex])) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field SizeBytes", wireType) - } - m.SizeBytes = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.SizeBytes |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + +func (x *PersistentVolumeClaim) GetSpec() *PersistentVolumeClaimSpec { + if x != nil { + return x.Spec } + return nil +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *PersistentVolumeClaim) GetStatus() *PersistentVolumeClaimStatus { + if x != nil { + return x.Status } return nil } -func (m *Taint) Unmarshal(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 ErrIntOverflowAgent - } - 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: Taint: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Taint: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Key = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Value = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Effect", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Effect = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TimeAdded", wireType) - } - m.TimeAdded = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.TimeAdded |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + +// Deprecated: Marked as deprecated in proto/process/agent.proto. +func (x *PersistentVolumeClaim) GetYaml() []byte { + if x != nil { + return x.Yaml } + return nil +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *PersistentVolumeClaim) GetTags() []string { + if x != nil { + return x.Tags } return nil } -func (m *ServiceSpec) Unmarshal(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 ErrIntOverflowAgent - } - 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: ServiceSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ServiceSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Ports", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Ports = append(m.Ports, &ServicePort{}) - if err := m.Ports[len(m.Ports)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Selectors", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Selectors = append(m.Selectors, &LabelSelectorRequirement{}) - if err := m.Selectors[len(m.Selectors)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterIP", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClusterIP = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Type = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ExternalIPs", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ExternalIPs = append(m.ExternalIPs, string(data[iNdEx:postIndex])) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SessionAffinity", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SessionAffinity = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LoadBalancerIP", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.LoadBalancerIP = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LoadBalancerSourceRanges", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.LoadBalancerSourceRanges = append(m.LoadBalancerSourceRanges, string(data[iNdEx:postIndex])) - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ExternalName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ExternalName = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ExternalTrafficPolicy", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ExternalTrafficPolicy = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 11: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field HealthCheckNodePort", wireType) - } - m.HealthCheckNodePort = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.HealthCheckNodePort |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 12: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field PublishNotReadyAddresses", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - v |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.PublishNotReadyAddresses = bool(v != 0) - case 13: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SessionAffinityConfig", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.SessionAffinityConfig == nil { - m.SessionAffinityConfig = &ServiceSessionAffinityConfig{} - } - if err := m.SessionAffinityConfig.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 14: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field IpFamily", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.IpFamily = string(data[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy + +// reference https://github.com/kubernetes/api/blob/4bdcbc60ffeee2c04231f11ff114314c1a93ce65/core/v1/generated.proto#L2715 +type PersistentVolumeClaimStatus struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Phase string `protobuf:"bytes,1,opt,name=phase,proto3" json:"phase,omitempty"` + AccessModes []string `protobuf:"bytes,2,rep,name=accessModes,proto3" json:"accessModes,omitempty"` + Capacity map[string]int64 `protobuf:"bytes,3,rep,name=capacity,proto3" json:"capacity,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` + Conditions []*PersistentVolumeClaimCondition `protobuf:"bytes,4,rep,name=conditions,proto3" json:"conditions,omitempty"` +} + +func (x *PersistentVolumeClaimStatus) Reset() { + *x = PersistentVolumeClaimStatus{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[104] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PersistentVolumeClaimStatus) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PersistentVolumeClaimStatus) ProtoMessage() {} + +func (x *PersistentVolumeClaimStatus) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[104] + 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 PersistentVolumeClaimStatus.ProtoReflect.Descriptor instead. +func (*PersistentVolumeClaimStatus) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{104} +} + +func (x *PersistentVolumeClaimStatus) GetPhase() string { + if x != nil { + return x.Phase } + return "" +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *PersistentVolumeClaimStatus) GetAccessModes() []string { + if x != nil { + return x.AccessModes } return nil } -func (m *ServiceStatus) Unmarshal(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 ErrIntOverflowAgent - } - 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: ServiceStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ServiceStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 17: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LoadBalancerIngress", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.LoadBalancerIngress = append(m.LoadBalancerIngress, string(data[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + +func (x *PersistentVolumeClaimStatus) GetCapacity() map[string]int64 { + if x != nil { + return x.Capacity } + return nil +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *PersistentVolumeClaimStatus) GetConditions() []*PersistentVolumeClaimCondition { + if x != nil { + return x.Conditions } return nil } -func (m *Service) Unmarshal(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 ErrIntOverflowAgent - } - 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: Service: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Service: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - 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 ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Metadata == nil { - m.Metadata = &Metadata{} - } - if err := m.Metadata.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Spec == nil { - m.Spec = &ServiceSpec{} - } - if err := m.Spec.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Status == nil { - m.Status = &ServiceStatus{} - } - if err := m.Status.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Yaml", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - byteLen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + byteLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Yaml = append(m.Yaml[:0], data[iNdEx:postIndex]...) - if m.Yaml == nil { - m.Yaml = []byte{} - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Tags", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Tags = append(m.Tags, string(data[iNdEx:postIndex])) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Metrics", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Metrics == nil { - m.Metrics = &ResourceMetrics{} - } - if err := m.Metrics.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy + +// reference https://github.com/kubernetes/api/blob/4bdcbc60ffeee2c04231f11ff114314c1a93ce65/core/v1/generated.proto#L2654 +type PersistentVolumeClaimSpec struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + AccessModes []string `protobuf:"bytes,1,rep,name=accessModes,proto3" json:"accessModes,omitempty"` + Resources *ResourceRequirements `protobuf:"bytes,2,opt,name=resources,proto3" json:"resources,omitempty"` + VolumeName string `protobuf:"bytes,3,opt,name=volumeName,proto3" json:"volumeName,omitempty"` + Selector []*LabelSelectorRequirement `protobuf:"bytes,4,rep,name=selector,proto3" json:"selector,omitempty"` + StorageClassName string `protobuf:"bytes,5,opt,name=storageClassName,proto3" json:"storageClassName,omitempty"` + VolumeMode string `protobuf:"bytes,6,opt,name=volumeMode,proto3" json:"volumeMode,omitempty"` + DataSource *TypedLocalObjectReference `protobuf:"bytes,7,opt,name=dataSource,proto3" json:"dataSource,omitempty"` +} + +func (x *PersistentVolumeClaimSpec) Reset() { + *x = PersistentVolumeClaimSpec{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[105] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PersistentVolumeClaimSpec) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PersistentVolumeClaimSpec) ProtoMessage() {} + +func (x *PersistentVolumeClaimSpec) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[105] + 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 PersistentVolumeClaimSpec.ProtoReflect.Descriptor instead. +func (*PersistentVolumeClaimSpec) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{105} +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *PersistentVolumeClaimSpec) GetAccessModes() []string { + if x != nil { + return x.AccessModes } return nil } -func (m *DeploymentCondition) Unmarshal(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 ErrIntOverflowAgent - } - 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: DeploymentCondition: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DeploymentCondition: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Type = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Status = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Reason = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Message = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field LastUpdateTime", wireType) - } - m.LastUpdateTime = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.LastUpdateTime |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field LastTransitionTime", wireType) - } - m.LastTransitionTime = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.LastTransitionTime |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *PersistentVolumeClaimSpec) GetResources() *ResourceRequirements { + if x != nil { + return x.Resources } return nil } -func (m *Deployment) Unmarshal(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 ErrIntOverflowAgent - } - 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: Deployment: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Deployment: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - 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 ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Metadata == nil { - m.Metadata = &Metadata{} - } - if err := m.Metadata.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReplicasDesired", wireType) - } - m.ReplicasDesired = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.ReplicasDesired |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DeploymentStrategy", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DeploymentStrategy = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MaxUnavailable", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.MaxUnavailable = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MaxSurge", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.MaxSurge = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Paused", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - v |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.Paused = bool(v != 0) - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Selectors", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Selectors = append(m.Selectors, &LabelSelectorRequirement{}) - if err := m.Selectors[len(m.Selectors)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Replicas", wireType) - } - m.Replicas = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.Replicas |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 9: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field UpdatedReplicas", wireType) - } - m.UpdatedReplicas = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.UpdatedReplicas |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 10: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReadyReplicas", wireType) - } - m.ReadyReplicas = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.ReadyReplicas |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 11: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AvailableReplicas", wireType) - } - m.AvailableReplicas = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.AvailableReplicas |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 12: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field UnavailableReplicas", wireType) - } - m.UnavailableReplicas = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.UnavailableReplicas |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 13: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ConditionMessage", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ConditionMessage = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 14: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Yaml", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - byteLen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + byteLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Yaml = append(m.Yaml[:0], data[iNdEx:postIndex]...) - if m.Yaml == nil { - m.Yaml = []byte{} - } - iNdEx = postIndex - case 15: - 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 ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Tags = append(m.Tags, string(data[iNdEx:postIndex])) - iNdEx = postIndex - case 16: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ResourceRequirements", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ResourceRequirements = append(m.ResourceRequirements, &ResourceRequirements{}) - if err := m.ResourceRequirements[len(m.ResourceRequirements)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 17: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Metrics", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Metrics == nil { - m.Metrics = &ResourceMetrics{} - } - if err := m.Metrics.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 18: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Conditions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Conditions = append(m.Conditions, &DeploymentCondition{}) - if err := m.Conditions[len(m.Conditions)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + +func (x *PersistentVolumeClaimSpec) GetVolumeName() string { + if x != nil { + return x.VolumeName } + return "" +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *PersistentVolumeClaimSpec) GetSelector() []*LabelSelectorRequirement { + if x != nil { + return x.Selector } return nil } -func (m *ReplicaSetCondition) Unmarshal(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 ErrIntOverflowAgent - } - 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: ReplicaSetCondition: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ReplicaSetCondition: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Type = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Status = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field LastTransitionTime", wireType) - } - m.LastTransitionTime = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.LastTransitionTime |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Reason = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Message = string(data[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + +func (x *PersistentVolumeClaimSpec) GetStorageClassName() string { + if x != nil { + return x.StorageClassName } + return "" +} + +func (x *PersistentVolumeClaimSpec) GetVolumeMode() string { + if x != nil { + return x.VolumeMode + } + return "" +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *PersistentVolumeClaimSpec) GetDataSource() *TypedLocalObjectReference { + if x != nil { + return x.DataSource } return nil } -func (m *ReplicaSet) Unmarshal(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 ErrIntOverflowAgent - } - 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: ReplicaSet: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ReplicaSet: illegal tag %d (wire type %d)", fieldNum, wire) + +// reference https://github.com/kubernetes/api/blob/4bdcbc60ffeee2c04231f11ff114314c1a93ce65/core/v1/generated.proto#L5327 +type TypedLocalObjectReference struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ApiGroup string `protobuf:"bytes,1,opt,name=apiGroup,proto3" json:"apiGroup,omitempty"` + Kind string `protobuf:"bytes,2,opt,name=kind,proto3" json:"kind,omitempty"` + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` +} + +func (x *TypedLocalObjectReference) Reset() { + *x = TypedLocalObjectReference{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[106] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TypedLocalObjectReference) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TypedLocalObjectReference) ProtoMessage() {} + +func (x *TypedLocalObjectReference) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[106] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - switch fieldNum { - case 1: - 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 ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Metadata == nil { - m.Metadata = &Metadata{} - } - if err := m.Metadata.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReplicasDesired", wireType) - } - m.ReplicasDesired = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.ReplicasDesired |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Selectors", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Selectors = append(m.Selectors, &LabelSelectorRequirement{}) - if err := m.Selectors[len(m.Selectors)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Replicas", wireType) - } - m.Replicas = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.Replicas |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field FullyLabeledReplicas", wireType) - } - m.FullyLabeledReplicas = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.FullyLabeledReplicas |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReadyReplicas", wireType) - } - m.ReadyReplicas = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.ReadyReplicas |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AvailableReplicas", wireType) - } - m.AvailableReplicas = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.AvailableReplicas |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Yaml", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - byteLen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + byteLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Yaml = append(m.Yaml[:0], data[iNdEx:postIndex]...) - if m.Yaml == nil { - m.Yaml = []byte{} - } - iNdEx = postIndex - case 9: - 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 ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Tags = append(m.Tags, string(data[iNdEx:postIndex])) - iNdEx = postIndex - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ResourceRequirements", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ResourceRequirements = append(m.ResourceRequirements, &ResourceRequirements{}) - if err := m.ResourceRequirements[len(m.ResourceRequirements)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 11: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Metrics", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Metrics == nil { - m.Metrics = &ResourceMetrics{} - } - if err := m.Metrics.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 12: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Conditions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Conditions = append(m.Conditions, &ReplicaSetCondition{}) - if err := m.Conditions[len(m.Conditions)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use TypedLocalObjectReference.ProtoReflect.Descriptor instead. +func (*TypedLocalObjectReference) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{106} +} + +func (x *TypedLocalObjectReference) GetApiGroup() string { + if x != nil { + return x.ApiGroup + } + return "" +} + +func (x *TypedLocalObjectReference) GetKind() string { + if x != nil { + return x.Kind + } + return "" +} + +func (x *TypedLocalObjectReference) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +// reference https://github.com/kubernetes/api/blob/4bdcbc60ffeee2c04231f11ff114314c1a93ce65/core/v1/generated.proto#L2616 +type PersistentVolumeClaimCondition struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` + Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` + LastProbeTime int64 `protobuf:"varint,3,opt,name=lastProbeTime,proto3" json:"lastProbeTime,omitempty"` + LastTransitionTime int64 `protobuf:"varint,4,opt,name=lastTransitionTime,proto3" json:"lastTransitionTime,omitempty"` + Reason string `protobuf:"bytes,5,opt,name=reason,proto3" json:"reason,omitempty"` + Message string `protobuf:"bytes,6,opt,name=message,proto3" json:"message,omitempty"` +} + +func (x *PersistentVolumeClaimCondition) Reset() { + *x = PersistentVolumeClaimCondition{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[107] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PersistentVolumeClaimCondition) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PersistentVolumeClaimCondition) ProtoMessage() {} + +func (x *PersistentVolumeClaimCondition) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[107] + 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 PersistentVolumeClaimCondition.ProtoReflect.Descriptor instead. +func (*PersistentVolumeClaimCondition) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{107} +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *PersistentVolumeClaimCondition) GetType() string { + if x != nil { + return x.Type } - return nil + return "" } -func (m *LabelSelectorRequirement) Unmarshal(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 ErrIntOverflowAgent - } - 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: LabelSelectorRequirement: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: LabelSelectorRequirement: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Key = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Operator = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Values", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Values = append(m.Values, string(data[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy + +func (x *PersistentVolumeClaimCondition) GetStatus() string { + if x != nil { + return x.Status + } + return "" +} + +func (x *PersistentVolumeClaimCondition) GetLastProbeTime() int64 { + if x != nil { + return x.LastProbeTime + } + return 0 +} + +func (x *PersistentVolumeClaimCondition) GetLastTransitionTime() int64 { + if x != nil { + return x.LastTransitionTime + } + return 0 +} + +func (x *PersistentVolumeClaimCondition) GetReason() string { + if x != nil { + return x.Reason + } + return "" +} + +func (x *PersistentVolumeClaimCondition) GetMessage() string { + if x != nil { + return x.Message + } + return "" +} + +// reference https://github.com/kubernetes/kubernetes/blob/cb19b56831d54d1d31249949318ef0b07bf00df9/staging/src/k8s.io/api/rbac/v1/generated.proto#L94 +type PolicyRule struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Verbs []string `protobuf:"bytes,1,rep,name=verbs,proto3" json:"verbs,omitempty"` + ApiGroups []string `protobuf:"bytes,2,rep,name=apiGroups,proto3" json:"apiGroups,omitempty"` + Resources []string `protobuf:"bytes,3,rep,name=resources,proto3" json:"resources,omitempty"` + ResourceNames []string `protobuf:"bytes,4,rep,name=resourceNames,proto3" json:"resourceNames,omitempty"` + NonResourceURLs []string `protobuf:"bytes,5,rep,name=nonResourceURLs,proto3" json:"nonResourceURLs,omitempty"` +} + +func (x *PolicyRule) Reset() { + *x = PolicyRule{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[108] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PolicyRule) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PolicyRule) ProtoMessage() {} + +func (x *PolicyRule) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[108] + 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 PolicyRule.ProtoReflect.Descriptor instead. +func (*PolicyRule) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{108} +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *PolicyRule) GetVerbs() []string { + if x != nil { + return x.Verbs } return nil } -func (m *Pod) Unmarshal(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 ErrIntOverflowAgent - } - 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: Pod: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Pod: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - 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 ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Metadata == nil { - m.Metadata = &Metadata{} - } - if err := m.Metadata.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field IP", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.IP = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NominatedNodeName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NominatedNodeName = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NodeName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NodeName = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Phase", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Phase = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RestartCount", wireType) - } - m.RestartCount = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.RestartCount |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContainerStatuses", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ContainerStatuses = append(m.ContainerStatuses, &ContainerStatus{}) - if err := m.ContainerStatuses[len(m.ContainerStatuses)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ConditionMessage", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ConditionMessage = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Status = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Yaml", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - byteLen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + byteLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Yaml = append(m.Yaml[:0], data[iNdEx:postIndex]...) - if m.Yaml == nil { - m.Yaml = []byte{} - } - iNdEx = postIndex - case 11: - 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 ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Tags = append(m.Tags, string(data[iNdEx:postIndex])) - iNdEx = postIndex - case 12: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Host", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Host == nil { - m.Host = &Host{} - } - if err := m.Host.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 13: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ResourceRequirements", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ResourceRequirements = append(m.ResourceRequirements, &ResourceRequirements{}) - if err := m.ResourceRequirements[len(m.ResourceRequirements)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 14: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field InitContainerStatuses", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.InitContainerStatuses = append(m.InitContainerStatuses, &ContainerStatus{}) - if err := m.InitContainerStatuses[len(m.InitContainerStatuses)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 15: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field QOSClass", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.QOSClass = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 16: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PriorityClass", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PriorityClass = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 17: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Metrics", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Metrics == nil { - m.Metrics = &ResourceMetrics{} - } - if err := m.Metrics.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 18: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field StartTime", wireType) - } - m.StartTime = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.StartTime |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 19: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ScheduledTime", wireType) - } - m.ScheduledTime = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.ScheduledTime |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 20: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Conditions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Conditions = append(m.Conditions, &PodCondition{}) - if err := m.Conditions[len(m.Conditions)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + +func (x *PolicyRule) GetApiGroups() []string { + if x != nil { + return x.ApiGroups } + return nil +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *PolicyRule) GetResources() []string { + if x != nil { + return x.Resources } return nil } -func (m *PodCondition) Unmarshal(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 ErrIntOverflowAgent - } - 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: PodCondition: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PodCondition: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Type = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Status = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field LastProbeTime", wireType) - } - m.LastProbeTime = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.LastProbeTime |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field LastTransitionTime", wireType) - } - m.LastTransitionTime = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.LastTransitionTime |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Reason = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Message = string(data[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + +func (x *PolicyRule) GetResourceNames() []string { + if x != nil { + return x.ResourceNames } + return nil +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *PolicyRule) GetNonResourceURLs() []string { + if x != nil { + return x.NonResourceURLs } return nil } -func (m *ContainerStatus) Unmarshal(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 ErrIntOverflowAgent - } - 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: ContainerStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ContainerStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContainerID", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ContainerID = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Ready", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - v |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.Ready = bool(v != 0) - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RestartCount", wireType) - } - m.RestartCount = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.RestartCount |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.State = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Message = string(data[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy + +// reference https://github.com/kubernetes/kubernetes/blob/cb19b56831d54d1d31249949318ef0b07bf00df9/staging/src/k8s.io/api/rbac/v1/generated.proto#L180 +type Subject struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"` + ApiGroup string `protobuf:"bytes,2,opt,name=apiGroup,proto3" json:"apiGroup,omitempty"` + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + Namespace string `protobuf:"bytes,4,opt,name=namespace,proto3" json:"namespace,omitempty"` +} + +func (x *Subject) Reset() { + *x = Subject{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[109] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Subject) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Subject) ProtoMessage() {} + +func (x *Subject) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[109] + 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 Subject.ProtoReflect.Descriptor instead. +func (*Subject) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{109} +} + +func (x *Subject) GetKind() string { + if x != nil { + return x.Kind + } + return "" +} + +func (x *Subject) GetApiGroup() string { + if x != nil { + return x.ApiGroup + } + return "" +} + +func (x *Subject) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *Subject) GetNamespace() string { + if x != nil { + return x.Namespace } + return "" +} + +// reference https://github.com/kubernetes/kubernetes/blob/cb19b56831d54d1d31249949318ef0b07bf00df9/staging/src/k8s.io/api/rbac/v1/generated.proto#L119 +type Role struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Metadata *Metadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` + Rules []*PolicyRule `protobuf:"bytes,2,rep,name=rules,proto3" json:"rules,omitempty"` + // Deprecated: Marked as deprecated in proto/process/agent.proto. + Yaml []byte `protobuf:"bytes,3,opt,name=yaml,proto3" json:"yaml,omitempty"` // see CollectorManifest + Tags []string `protobuf:"bytes,4,rep,name=tags,proto3" json:"tags,omitempty"` +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *Role) Reset() { + *x = Role{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[110] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -func (m *Manifest) Unmarshal(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 ErrIntOverflowAgent - } - 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: Manifest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Manifest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - m.Type = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.Type |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ResourceVersion", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ResourceVersion = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Uid", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Uid = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Content", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - byteLen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + byteLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Content = append(m.Content[:0], data[iNdEx:postIndex]...) - if m.Content == nil { - m.Content = []byte{} - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContentType", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ContentType = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Version = string(data[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy + +func (x *Role) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Role) ProtoMessage() {} + +func (x *Role) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[110] + 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 Role.ProtoReflect.Descriptor instead. +func (*Role) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{110} +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *Role) GetMetadata() *Metadata { + if x != nil { + return x.Metadata } return nil } -func (m *NamespaceCondition) Unmarshal(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 ErrIntOverflowAgent - } - 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: NamespaceCondition: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: NamespaceCondition: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Type = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Status = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field LastTransitionTime", wireType) - } - m.LastTransitionTime = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.LastTransitionTime |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Reason = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Message = string(data[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *Role) GetRules() []*PolicyRule { + if x != nil { + return x.Rules } return nil } -func (m *Namespace) Unmarshal(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 ErrIntOverflowAgent - } - 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: Namespace: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Namespace: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - 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 ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Metadata == nil { - m.Metadata = &Metadata{} - } - if err := m.Metadata.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Status = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ConditionMessage", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ConditionMessage = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Yaml", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - byteLen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + byteLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Yaml = append(m.Yaml[:0], data[iNdEx:postIndex]...) - if m.Yaml == nil { - m.Yaml = []byte{} - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Tags", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Tags = append(m.Tags, string(data[iNdEx:postIndex])) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Conditions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Conditions = append(m.Conditions, &NamespaceCondition{}) - if err := m.Conditions[len(m.Conditions)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + +// Deprecated: Marked as deprecated in proto/process/agent.proto. +func (x *Role) GetYaml() []byte { + if x != nil { + return x.Yaml } + return nil +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *Role) GetTags() []string { + if x != nil { + return x.Tags } return nil } -func (m *ResourceRequirements) Unmarshal(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 ErrIntOverflowAgent - } - 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: ResourceRequirements: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ResourceRequirements: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Limits", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - var keykey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - keykey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey := string(data[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - if m.Limits == nil { - m.Limits = make(map[string]int64) - } - if iNdEx < postIndex { - var valuekey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - valuekey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - var mapvalue int64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - mapvalue |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.Limits[mapkey] = mapvalue - } else { - var mapvalue int64 - m.Limits[mapkey] = mapvalue - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Requests", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - var keykey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - keykey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey := string(data[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - if m.Requests == nil { - m.Requests = make(map[string]int64) - } - if iNdEx < postIndex { - var valuekey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - valuekey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - var mapvalue int64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - mapvalue |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.Requests[mapkey] = mapvalue - } else { - var mapvalue int64 - m.Requests[mapkey] = mapvalue - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - m.Type = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.Type |= (ResourceRequirementsType(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy + +// reference https://github.com/kubernetes/kubernetes/blob/cb19b56831d54d1d31249949318ef0b07bf00df9/staging/src/k8s.io/api/rbac/v1/generated.proto#L132 +type RoleBinding struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Metadata *Metadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` + Subjects []*Subject `protobuf:"bytes,2,rep,name=subjects,proto3" json:"subjects,omitempty"` + RoleRef *TypedLocalObjectReference `protobuf:"bytes,3,opt,name=roleRef,proto3" json:"roleRef,omitempty"` + // Deprecated: Marked as deprecated in proto/process/agent.proto. + Yaml []byte `protobuf:"bytes,4,opt,name=yaml,proto3" json:"yaml,omitempty"` // see CollectorManifest + Tags []string `protobuf:"bytes,5,rep,name=tags,proto3" json:"tags,omitempty"` +} + +func (x *RoleBinding) Reset() { + *x = RoleBinding{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[111] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RoleBinding) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RoleBinding) ProtoMessage() {} + +func (x *RoleBinding) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[111] + 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 RoleBinding.ProtoReflect.Descriptor instead. +func (*RoleBinding) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{111} +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *RoleBinding) GetMetadata() *Metadata { + if x != nil { + return x.Metadata } return nil } -func (m *ResourceMetrics) Unmarshal(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 ErrIntOverflowAgent - } - 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: ResourceMetrics: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ResourceMetrics: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MetricValues", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - var keykey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - keykey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey := string(data[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - if m.MetricValues == nil { - m.MetricValues = make(map[string]float64) - } - if iNdEx < postIndex { - var valuekey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - valuekey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - var mapvaluetemp uint64 - if (iNdEx + 8) > l { - return io.ErrUnexpectedEOF - } - iNdEx += 8 - mapvaluetemp = uint64(data[iNdEx-8]) - mapvaluetemp |= uint64(data[iNdEx-7]) << 8 - mapvaluetemp |= uint64(data[iNdEx-6]) << 16 - mapvaluetemp |= uint64(data[iNdEx-5]) << 24 - mapvaluetemp |= uint64(data[iNdEx-4]) << 32 - mapvaluetemp |= uint64(data[iNdEx-3]) << 40 - mapvaluetemp |= uint64(data[iNdEx-2]) << 48 - mapvaluetemp |= uint64(data[iNdEx-1]) << 56 - mapvalue := math.Float64frombits(mapvaluetemp) - m.MetricValues[mapkey] = mapvalue - } else { - var mapvalue float64 - m.MetricValues[mapkey] = mapvalue - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + +func (x *RoleBinding) GetSubjects() []*Subject { + if x != nil { + return x.Subjects } + return nil +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *RoleBinding) GetRoleRef() *TypedLocalObjectReference { + if x != nil { + return x.RoleRef } return nil } -func (m *JobSpec) Unmarshal(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 ErrIntOverflowAgent - } - 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: JobSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: JobSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Parallelism", wireType) - } - m.Parallelism = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.Parallelism |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Completions", wireType) - } - m.Completions = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.Completions |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ActiveDeadlineSeconds", wireType) - } - m.ActiveDeadlineSeconds = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.ActiveDeadlineSeconds |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field BackoffLimit", wireType) - } - m.BackoffLimit = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.BackoffLimit |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Selectors", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Selectors = append(m.Selectors, &LabelSelectorRequirement{}) - if err := m.Selectors[len(m.Selectors)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ManualSelector", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - v |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.ManualSelector = bool(v != 0) - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ResourceRequirements", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ResourceRequirements = append(m.ResourceRequirements, &ResourceRequirements{}) - if err := m.ResourceRequirements[len(m.ResourceRequirements)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + +// Deprecated: Marked as deprecated in proto/process/agent.proto. +func (x *RoleBinding) GetYaml() []byte { + if x != nil { + return x.Yaml } + return nil +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *RoleBinding) GetTags() []string { + if x != nil { + return x.Tags } return nil } -func (m *JobStatus) Unmarshal(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 ErrIntOverflowAgent - } - 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: JobStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: JobStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ConditionMessage", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ConditionMessage = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field StartTime", wireType) - } - m.StartTime = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.StartTime |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CompletionTime", wireType) - } - m.CompletionTime = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.CompletionTime |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Active", wireType) - } - m.Active = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.Active |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Succeeded", wireType) - } - m.Succeeded = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.Succeeded |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Failed", wireType) - } - m.Failed = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.Failed |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy + +// reference https://github.com/kubernetes/kubernetes/blob/cb19b56831d54d1d31249949318ef0b07bf00df9/staging/src/k8s.io/api/rbac/v1/generated.proto#L40 +type ClusterRole struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Metadata *Metadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` + Rules []*PolicyRule `protobuf:"bytes,2,rep,name=rules,proto3" json:"rules,omitempty"` + AggregationRules []*LabelSelectorRequirement `protobuf:"bytes,3,rep,name=aggregationRules,proto3" json:"aggregationRules,omitempty"` + // Deprecated: Marked as deprecated in proto/process/agent.proto. + Yaml []byte `protobuf:"bytes,4,opt,name=yaml,proto3" json:"yaml,omitempty"` // see CollectorManifest + Tags []string `protobuf:"bytes,5,rep,name=tags,proto3" json:"tags,omitempty"` + Metrics *ResourceMetrics `protobuf:"bytes,6,opt,name=metrics,proto3" json:"metrics,omitempty"` +} + +func (x *ClusterRole) Reset() { + *x = ClusterRole{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[112] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ClusterRole) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ClusterRole) ProtoMessage() {} + +func (x *ClusterRole) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[112] + 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 ClusterRole.ProtoReflect.Descriptor instead. +func (*ClusterRole) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{112} +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *ClusterRole) GetMetadata() *Metadata { + if x != nil { + return x.Metadata } return nil } -func (m *JobCondition) Unmarshal(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 ErrIntOverflowAgent - } - 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: JobCondition: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: JobCondition: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Type = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Status = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field LastProbeTime", wireType) - } - m.LastProbeTime = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.LastProbeTime |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field LastTransitionTime", wireType) - } - m.LastTransitionTime = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.LastTransitionTime |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Reason = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Message = string(data[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *ClusterRole) GetRules() []*PolicyRule { + if x != nil { + return x.Rules } return nil } -func (m *Job) Unmarshal(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 ErrIntOverflowAgent - } - 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: Job: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Job: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - 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 ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Metadata == nil { - m.Metadata = &Metadata{} - } - if err := m.Metadata.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Spec == nil { - m.Spec = &JobSpec{} - } - if err := m.Spec.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Status == nil { - m.Status = &JobStatus{} - } - if err := m.Status.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Yaml", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - byteLen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + byteLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Yaml = append(m.Yaml[:0], data[iNdEx:postIndex]...) - if m.Yaml == nil { - m.Yaml = []byte{} - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Tags", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Tags = append(m.Tags, string(data[iNdEx:postIndex])) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Conditions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Conditions = append(m.Conditions, &JobCondition{}) - if err := m.Conditions[len(m.Conditions)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + +func (x *ClusterRole) GetAggregationRules() []*LabelSelectorRequirement { + if x != nil { + return x.AggregationRules } + return nil +} - if iNdEx > l { - return io.ErrUnexpectedEOF +// Deprecated: Marked as deprecated in proto/process/agent.proto. +func (x *ClusterRole) GetYaml() []byte { + if x != nil { + return x.Yaml } return nil } -func (m *CronJobSpec) Unmarshal(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 ErrIntOverflowAgent - } - 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: CronJobSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CronJobSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Schedule", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Schedule = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field StartingDeadlineSeconds", wireType) - } - m.StartingDeadlineSeconds = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.StartingDeadlineSeconds |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ConcurrencyPolicy", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ConcurrencyPolicy = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Suspend", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - v |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.Suspend = bool(v != 0) - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field SuccessfulJobsHistoryLimit", wireType) - } - m.SuccessfulJobsHistoryLimit = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.SuccessfulJobsHistoryLimit |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field FailedJobsHistoryLimit", wireType) - } - m.FailedJobsHistoryLimit = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.FailedJobsHistoryLimit |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ResourceRequirements", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ResourceRequirements = append(m.ResourceRequirements, &ResourceRequirements{}) - if err := m.ResourceRequirements[len(m.ResourceRequirements)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + +func (x *ClusterRole) GetTags() []string { + if x != nil { + return x.Tags } + return nil +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *ClusterRole) GetMetrics() *ResourceMetrics { + if x != nil { + return x.Metrics } return nil } -func (m *CronJobStatus) Unmarshal(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 ErrIntOverflowAgent - } - 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: CronJobStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CronJobStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Active", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Active = append(m.Active, &ObjectReference{}) - if err := m.Active[len(m.Active)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field LastScheduleTime", wireType) - } - m.LastScheduleTime = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.LastScheduleTime |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy + +// reference https://github.com/kubernetes/kubernetes/blob/cb19b56831d54d1d31249949318ef0b07bf00df9/staging/src/k8s.io/api/rbac/v1/generated.proto#L58 +type ClusterRoleBinding struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Metadata *Metadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` + Subjects []*Subject `protobuf:"bytes,2,rep,name=subjects,proto3" json:"subjects,omitempty"` + RoleRef *TypedLocalObjectReference `protobuf:"bytes,3,opt,name=roleRef,proto3" json:"roleRef,omitempty"` + // Deprecated: Marked as deprecated in proto/process/agent.proto. + Yaml []byte `protobuf:"bytes,4,opt,name=yaml,proto3" json:"yaml,omitempty"` // see CollectorManifest + Tags []string `protobuf:"bytes,5,rep,name=tags,proto3" json:"tags,omitempty"` +} + +func (x *ClusterRoleBinding) Reset() { + *x = ClusterRoleBinding{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[113] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ClusterRoleBinding) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ClusterRoleBinding) ProtoMessage() {} + +func (x *ClusterRoleBinding) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[113] + 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) +} - if iNdEx > l { - return io.ErrUnexpectedEOF +// Deprecated: Use ClusterRoleBinding.ProtoReflect.Descriptor instead. +func (*ClusterRoleBinding) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{113} +} + +func (x *ClusterRoleBinding) GetMetadata() *Metadata { + if x != nil { + return x.Metadata } return nil } -func (m *CronJob) Unmarshal(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 ErrIntOverflowAgent - } - 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: CronJob: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CronJob: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - 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 ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Metadata == nil { - m.Metadata = &Metadata{} - } - if err := m.Metadata.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Spec == nil { - m.Spec = &CronJobSpec{} - } - if err := m.Spec.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Status == nil { - m.Status = &CronJobStatus{} - } - if err := m.Status.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Yaml", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - byteLen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + byteLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Yaml = append(m.Yaml[:0], data[iNdEx:postIndex]...) - if m.Yaml == nil { - m.Yaml = []byte{} - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Tags", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Tags = append(m.Tags, string(data[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + +func (x *ClusterRoleBinding) GetSubjects() []*Subject { + if x != nil { + return x.Subjects } + return nil +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *ClusterRoleBinding) GetRoleRef() *TypedLocalObjectReference { + if x != nil { + return x.RoleRef } return nil } -func (m *DaemonSetSpec) Unmarshal(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 ErrIntOverflowAgent - } - 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: DaemonSetSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DaemonSetSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Selectors", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Selectors = append(m.Selectors, &LabelSelectorRequirement{}) - if err := m.Selectors[len(m.Selectors)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DeploymentStrategy", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DeploymentStrategy = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MaxUnavailable", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.MaxUnavailable = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MinReadySeconds", wireType) - } - m.MinReadySeconds = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.MinReadySeconds |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RevisionHistoryLimit", wireType) - } - m.RevisionHistoryLimit = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.RevisionHistoryLimit |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ResourceRequirements", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ResourceRequirements = append(m.ResourceRequirements, &ResourceRequirements{}) - if err := m.ResourceRequirements[len(m.ResourceRequirements)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + +// Deprecated: Marked as deprecated in proto/process/agent.proto. +func (x *ClusterRoleBinding) GetYaml() []byte { + if x != nil { + return x.Yaml } + return nil +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *ClusterRoleBinding) GetTags() []string { + if x != nil { + return x.Tags } return nil } -func (m *DaemonSetStatus) Unmarshal(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 ErrIntOverflowAgent - } - 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: DaemonSetStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DaemonSetStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CurrentNumberScheduled", wireType) - } - m.CurrentNumberScheduled = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.CurrentNumberScheduled |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NumberMisscheduled", wireType) - } - m.NumberMisscheduled = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.NumberMisscheduled |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DesiredNumberScheduled", wireType) - } - m.DesiredNumberScheduled = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.DesiredNumberScheduled |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NumberReady", wireType) - } - m.NumberReady = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.NumberReady |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field UpdatedNumberScheduled", wireType) - } - m.UpdatedNumberScheduled = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.UpdatedNumberScheduled |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NumberAvailable", wireType) - } - m.NumberAvailable = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.NumberAvailable |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NumberUnavailable", wireType) - } - m.NumberUnavailable = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.NumberUnavailable |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy + +// reference https://github.com/kubernetes/kubernetes/blob/cb19b56831d54d1d31249949318ef0b07bf00df9/staging/src/k8s.io/api/core/v1/generated.proto#L4495 +type ServiceAccount struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Metadata *Metadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` + Secrets []*ObjectReference `protobuf:"bytes,2,rep,name=secrets,proto3" json:"secrets,omitempty"` + ImagePullSecrets []*TypedLocalObjectReference `protobuf:"bytes,3,rep,name=imagePullSecrets,proto3" json:"imagePullSecrets,omitempty"` + AutomountServiceAccountToken bool `protobuf:"varint,4,opt,name=automountServiceAccountToken,proto3" json:"automountServiceAccountToken,omitempty"` + // Deprecated: Marked as deprecated in proto/process/agent.proto. + Yaml []byte `protobuf:"bytes,5,opt,name=yaml,proto3" json:"yaml,omitempty"` // see CollectorManifest + Tags []string `protobuf:"bytes,6,rep,name=tags,proto3" json:"tags,omitempty"` +} + +func (x *ServiceAccount) Reset() { + *x = ServiceAccount{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[114] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ServiceAccount) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ServiceAccount) ProtoMessage() {} + +func (x *ServiceAccount) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[114] + 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 ServiceAccount.ProtoReflect.Descriptor instead. +func (*ServiceAccount) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{114} +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *ServiceAccount) GetMetadata() *Metadata { + if x != nil { + return x.Metadata } return nil } -func (m *DaemonSetCondition) Unmarshal(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 ErrIntOverflowAgent - } - 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: DaemonSetCondition: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DaemonSetCondition: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Type = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Status = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field LastTransitionTime", wireType) - } - m.LastTransitionTime = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.LastTransitionTime |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Reason = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Message = string(data[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + +func (x *ServiceAccount) GetSecrets() []*ObjectReference { + if x != nil { + return x.Secrets } + return nil +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *ServiceAccount) GetImagePullSecrets() []*TypedLocalObjectReference { + if x != nil { + return x.ImagePullSecrets } return nil } -func (m *DaemonSet) Unmarshal(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 ErrIntOverflowAgent - } - 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: DaemonSet: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DaemonSet: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - 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 ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Metadata == nil { - m.Metadata = &Metadata{} - } - if err := m.Metadata.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Spec == nil { - m.Spec = &DaemonSetSpec{} - } - if err := m.Spec.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Status == nil { - m.Status = &DaemonSetStatus{} - } - if err := m.Status.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Yaml", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - byteLen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + byteLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Yaml = append(m.Yaml[:0], data[iNdEx:postIndex]...) - if m.Yaml == nil { - m.Yaml = []byte{} - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Tags", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Tags = append(m.Tags, string(data[iNdEx:postIndex])) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Metrics", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Metrics == nil { - m.Metrics = &ResourceMetrics{} - } - if err := m.Metrics.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Conditions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Conditions = append(m.Conditions, &DaemonSetCondition{}) - if err := m.Conditions[len(m.Conditions)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + +func (x *ServiceAccount) GetAutomountServiceAccountToken() bool { + if x != nil { + return x.AutomountServiceAccountToken } + return false +} - if iNdEx > l { - return io.ErrUnexpectedEOF +// Deprecated: Marked as deprecated in proto/process/agent.proto. +func (x *ServiceAccount) GetYaml() []byte { + if x != nil { + return x.Yaml } return nil } -func (m *StatefulSetSpec) Unmarshal(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 ErrIntOverflowAgent - } - 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: StatefulSetSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: StatefulSetSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DesiredReplicas", wireType) - } - m.DesiredReplicas = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.DesiredReplicas |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Selectors", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Selectors = append(m.Selectors, &LabelSelectorRequirement{}) - if err := m.Selectors[len(m.Selectors)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ServiceName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ServiceName = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PodManagementPolicy", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PodManagementPolicy = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UpdateStrategy", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.UpdateStrategy = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Partition", wireType) - } - m.Partition = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.Partition |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ResourceRequirements", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ResourceRequirements = append(m.ResourceRequirements, &ResourceRequirements{}) - if err := m.ResourceRequirements[len(m.ResourceRequirements)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *ServiceAccount) GetTags() []string { + if x != nil { + return x.Tags } return nil } -func (m *StatefulSetStatus) Unmarshal(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 ErrIntOverflowAgent - } - 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: StatefulSetStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: StatefulSetStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Replicas", wireType) - } - m.Replicas = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.Replicas |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReadyReplicas", wireType) - } - m.ReadyReplicas = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.ReadyReplicas |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CurrentReplicas", wireType) - } - m.CurrentReplicas = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.CurrentReplicas |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field UpdatedReplicas", wireType) - } - m.UpdatedReplicas = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.UpdatedReplicas |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy + +// reference https://github.com/kubernetes/api/blob/v0.21.5/networking/v1/generated.proto#L259 +// Note: ServiceBackendPort (contains port name and number) is flattened. +type IngressServiceBackend struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ServiceName string `protobuf:"bytes,1,opt,name=serviceName,proto3" json:"serviceName,omitempty"` + PortName string `protobuf:"bytes,2,opt,name=portName,proto3" json:"portName,omitempty"` + PortNumber int32 `protobuf:"varint,3,opt,name=portNumber,proto3" json:"portNumber,omitempty"` +} + +func (x *IngressServiceBackend) Reset() { + *x = IngressServiceBackend{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[115] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *IngressServiceBackend) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*IngressServiceBackend) ProtoMessage() {} + +func (x *IngressServiceBackend) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[115] + 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) +} - if iNdEx > l { - return io.ErrUnexpectedEOF +// Deprecated: Use IngressServiceBackend.ProtoReflect.Descriptor instead. +func (*IngressServiceBackend) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{115} +} + +func (x *IngressServiceBackend) GetServiceName() string { + if x != nil { + return x.ServiceName } - return nil + return "" } -func (m *StatefulSetCondition) Unmarshal(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 ErrIntOverflowAgent - } - 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: StatefulSetCondition: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: StatefulSetCondition: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Type = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Status = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field LastTransitionTime", wireType) - } - m.LastTransitionTime = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.LastTransitionTime |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Reason = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Message = string(data[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy + +func (x *IngressServiceBackend) GetPortName() string { + if x != nil { + return x.PortName + } + return "" +} + +func (x *IngressServiceBackend) GetPortNumber() int32 { + if x != nil { + return x.PortNumber + } + return 0 +} + +// reference https://github.com/kubernetes/api/blob/v0.21.5/networking/v1/generated.proto#L112 +type IngressBackend struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Service *IngressServiceBackend `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"` + Resource *TypedLocalObjectReference `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"` +} + +func (x *IngressBackend) Reset() { + *x = IngressBackend{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[116] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *IngressBackend) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*IngressBackend) ProtoMessage() {} + +func (x *IngressBackend) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[116] + 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 IngressBackend.ProtoReflect.Descriptor instead. +func (*IngressBackend) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{116} +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *IngressBackend) GetService() *IngressServiceBackend { + if x != nil { + return x.Service } return nil } -func (m *StatefulSet) Unmarshal(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 ErrIntOverflowAgent - } - 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: StatefulSet: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: StatefulSet: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - 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 ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Metadata == nil { - m.Metadata = &Metadata{} - } - if err := m.Metadata.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Spec == nil { - m.Spec = &StatefulSetSpec{} - } - if err := m.Spec.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Status == nil { - m.Status = &StatefulSetStatus{} - } - if err := m.Status.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Yaml", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - byteLen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + byteLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Yaml = append(m.Yaml[:0], data[iNdEx:postIndex]...) - if m.Yaml == nil { - m.Yaml = []byte{} - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Tags", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Tags = append(m.Tags, string(data[iNdEx:postIndex])) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Metrics", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Metrics == nil { - m.Metrics = &ResourceMetrics{} - } - if err := m.Metrics.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Conditions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Conditions = append(m.Conditions, &StatefulSetCondition{}) - if err := m.Conditions[len(m.Conditions)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + +func (x *IngressBackend) GetResource() *TypedLocalObjectReference { + if x != nil { + return x.Resource } + return nil +} + +// reference https://github.com/kubernetes/api/blob/v0.21.5/networking/v1/generated.proto#L315 +type IngressTLS struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Hosts []string `protobuf:"bytes,1,rep,name=hosts,proto3" json:"hosts,omitempty"` + SecretName string `protobuf:"bytes,2,opt,name=secretName,proto3" json:"secretName,omitempty"` +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *IngressTLS) Reset() { + *x = IngressTLS{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[117] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -func (m *PersistentVolume) Unmarshal(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 ErrIntOverflowAgent - } - 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: PersistentVolume: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PersistentVolume: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - 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 ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Metadata == nil { - m.Metadata = &Metadata{} - } - if err := m.Metadata.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Spec == nil { - m.Spec = &PersistentVolumeSpec{} - } - if err := m.Spec.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Status == nil { - m.Status = &PersistentVolumeStatus{} - } - if err := m.Status.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Yaml", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - byteLen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + byteLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Yaml = append(m.Yaml[:0], data[iNdEx:postIndex]...) - if m.Yaml == nil { - m.Yaml = []byte{} - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Tags", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Tags = append(m.Tags, string(data[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy + +func (x *IngressTLS) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*IngressTLS) ProtoMessage() {} + +func (x *IngressTLS) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[117] + 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 IngressTLS.ProtoReflect.Descriptor instead. +func (*IngressTLS) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{117} +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *IngressTLS) GetHosts() []string { + if x != nil { + return x.Hosts } return nil } -func (m *PersistentVolumeSpec) Unmarshal(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 ErrIntOverflowAgent - } - 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: PersistentVolumeSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PersistentVolumeSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Capacity", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - var keykey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - keykey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey := string(data[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - if m.Capacity == nil { - m.Capacity = make(map[string]int64) - } - if iNdEx < postIndex { - var valuekey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - valuekey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - var mapvalue int64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - mapvalue |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.Capacity[mapkey] = mapvalue - } else { - var mapvalue int64 - m.Capacity[mapkey] = mapvalue - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PersistentVolumeType", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PersistentVolumeType = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AccessModes", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.AccessModes = append(m.AccessModes, string(data[iNdEx:postIndex])) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClaimRef", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ClaimRef == nil { - m.ClaimRef = &ObjectReference{} - } - if err := m.ClaimRef.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PersistentVolumeReclaimPolicy", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PersistentVolumeReclaimPolicy = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StorageClassName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.StorageClassName = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MountOptions", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.MountOptions = append(m.MountOptions, string(data[iNdEx:postIndex])) - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VolumeMode", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.VolumeMode = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NodeAffinity", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NodeAffinity = append(m.NodeAffinity, &NodeSelectorTerm{}) - if err := m.NodeAffinity[len(m.NodeAffinity)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PersistentVolumeSource", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.PersistentVolumeSource == nil { - m.PersistentVolumeSource = &PersistentVolumeSource{} - } - if err := m.PersistentVolumeSource.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + +func (x *IngressTLS) GetSecretName() string { + if x != nil { + return x.SecretName } + return "" +} - if iNdEx > l { - return io.ErrUnexpectedEOF +// reference https://github.com/kubernetes/api/blob/v0.21.5/networking/v1/generated.proto#L35 +type HTTPIngressPath struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` + PathType string `protobuf:"bytes,3,opt,name=pathType,proto3" json:"pathType,omitempty"` + Backend *IngressBackend `protobuf:"bytes,2,opt,name=backend,proto3" json:"backend,omitempty"` +} + +func (x *HTTPIngressPath) Reset() { + *x = HTTPIngressPath{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[118] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -func (m *PersistentVolumeSource) Unmarshal(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 ErrIntOverflowAgent - } - 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: PersistentVolumeSource: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PersistentVolumeSource: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GcePersistentDisk", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.GcePersistentDisk == nil { - m.GcePersistentDisk = &GCEPersistentDiskVolumeSource{} - } - if err := m.GcePersistentDisk.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AwsElasticBlockStore", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.AwsElasticBlockStore == nil { - m.AwsElasticBlockStore = &AWSElasticBlockStoreVolumeSource{} - } - if err := m.AwsElasticBlockStore.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AzureFile", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.AzureFile == nil { - m.AzureFile = &AzureFilePersistentVolumeSource{} - } - if err := m.AzureFile.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AzureDisk", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.AzureDisk == nil { - m.AzureDisk = &AzureDiskVolumeSource{} - } - if err := m.AzureDisk.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Csi", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Csi == nil { - m.Csi = &CSIVolumeSource{} - } - if err := m.Csi.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy + +func (x *HTTPIngressPath) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*HTTPIngressPath) ProtoMessage() {} + +func (x *HTTPIngressPath) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[118] + 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) +} - if iNdEx > l { - return io.ErrUnexpectedEOF +// Deprecated: Use HTTPIngressPath.ProtoReflect.Descriptor instead. +func (*HTTPIngressPath) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{118} +} + +func (x *HTTPIngressPath) GetPath() string { + if x != nil { + return x.Path } - return nil + return "" } -func (m *GCEPersistentDiskVolumeSource) Unmarshal(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 ErrIntOverflowAgent - } - 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: GCEPersistentDiskVolumeSource: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GCEPersistentDiskVolumeSource: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PdName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PdName = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FsType", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.FsType = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Partition", wireType) - } - m.Partition = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.Partition |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReadOnly", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - v |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.ReadOnly = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + +func (x *HTTPIngressPath) GetPathType() string { + if x != nil { + return x.PathType } + return "" +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *HTTPIngressPath) GetBackend() *IngressBackend { + if x != nil { + return x.Backend } return nil } -func (m *AWSElasticBlockStoreVolumeSource) Unmarshal(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 ErrIntOverflowAgent - } - 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: AWSElasticBlockStoreVolumeSource: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AWSElasticBlockStoreVolumeSource: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VolumeID", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.VolumeID = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FsType", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.FsType = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Partition", wireType) - } - m.Partition = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.Partition |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReadOnly", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - v |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.ReadOnly = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy + +// reference https://github.com/kubernetes/api/blob/v0.21.5/networking/v1/generated.proto#L214 +// Note: IngressRuleValue and HTTPIngressRuleValue are flattened +type IngressRule struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"` + HttpPaths []*HTTPIngressPath `protobuf:"bytes,2,rep,name=httpPaths,proto3" json:"httpPaths,omitempty"` +} + +func (x *IngressRule) Reset() { + *x = IngressRule{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[119] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *IngressRule) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*IngressRule) ProtoMessage() {} + +func (x *IngressRule) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[119] + 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 IngressRule.ProtoReflect.Descriptor instead. +func (*IngressRule) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{119} +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *IngressRule) GetHost() string { + if x != nil { + return x.Host } - return nil + return "" } -func (m *AzureFilePersistentVolumeSource) Unmarshal(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 ErrIntOverflowAgent - } - 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: AzureFilePersistentVolumeSource: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AzureFilePersistentVolumeSource: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SecretName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SecretName = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ShareName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ShareName = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReadOnly", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - v |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.ReadOnly = bool(v != 0) - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SecretNamespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SecretNamespace = string(data[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy + +func (x *IngressRule) GetHttpPaths() []*HTTPIngressPath { + if x != nil { + return x.HttpPaths + } + return nil +} + +// reference https://github.com/kubernetes/api/blob/v0.21.5/networking/v1/generated.proto#L270 +type IngressSpec struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + DefaultBackend *IngressBackend `protobuf:"bytes,1,opt,name=defaultBackend,proto3" json:"defaultBackend,omitempty"` + Tls []*IngressTLS `protobuf:"bytes,2,rep,name=tls,proto3" json:"tls,omitempty"` + Rules []*IngressRule `protobuf:"bytes,3,rep,name=rules,proto3" json:"rules,omitempty"` + IngressClassName string `protobuf:"bytes,4,opt,name=ingressClassName,proto3" json:"ingressClassName,omitempty"` +} + +func (x *IngressSpec) Reset() { + *x = IngressSpec{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[120] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *IngressSpec) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*IngressSpec) ProtoMessage() {} + +func (x *IngressSpec) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[120] + 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 IngressSpec.ProtoReflect.Descriptor instead. +func (*IngressSpec) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{120} +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *IngressSpec) GetDefaultBackend() *IngressBackend { + if x != nil { + return x.DefaultBackend } return nil } -func (m *AzureDiskVolumeSource) Unmarshal(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 ErrIntOverflowAgent - } - 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: AzureDiskVolumeSource: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AzureDiskVolumeSource: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DiskName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DiskName = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DiskURI", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DiskURI = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CachingMode", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CachingMode = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FsType", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.FsType = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReadOnly", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - v |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.ReadOnly = bool(v != 0) - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Kind", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Kind = string(data[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + +func (x *IngressSpec) GetTls() []*IngressTLS { + if x != nil { + return x.Tls } + return nil +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *IngressSpec) GetRules() []*IngressRule { + if x != nil { + return x.Rules } return nil } -func (m *CSIVolumeSource) Unmarshal(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 ErrIntOverflowAgent - } - 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: CSIVolumeSource: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CSIVolumeSource: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Driver", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Driver = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VolumeHandle", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.VolumeHandle = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReadOnly", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - v |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.ReadOnly = bool(v != 0) - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FsType", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.FsType = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VolumeAttributes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - var keykey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - keykey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey := string(data[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - if m.VolumeAttributes == nil { - m.VolumeAttributes = make(map[string]string) - } - if iNdEx < postIndex { - var valuekey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - valuekey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - stringLenmapvalue |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthAgent - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue := string(data[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - m.VolumeAttributes[mapkey] = mapvalue - } else { - var mapvalue string - m.VolumeAttributes[mapkey] = mapvalue - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ControllerPublishSecretRef", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ControllerPublishSecretRef == nil { - m.ControllerPublishSecretRef = &SecretReference{} - } - if err := m.ControllerPublishSecretRef.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NodeStageSecretRef", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.NodeStageSecretRef == nil { - m.NodeStageSecretRef = &SecretReference{} - } - if err := m.NodeStageSecretRef.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NodePublishSecretRef", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.NodePublishSecretRef == nil { - m.NodePublishSecretRef = &SecretReference{} - } - if err := m.NodePublishSecretRef.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ControllerExpandSecretRef", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ControllerExpandSecretRef == nil { - m.ControllerExpandSecretRef = &SecretReference{} - } - if err := m.ControllerExpandSecretRef.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NodeExpandSecretRef", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.NodeExpandSecretRef == nil { - m.NodeExpandSecretRef = &SecretReference{} - } - if err := m.NodeExpandSecretRef.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + +func (x *IngressSpec) GetIngressClassName() string { + if x != nil { + return x.IngressClassName } + return "" +} + +// reference https://github.com/kubernetes/api/blob/v0.21.5/core/v1/generated.proto#L3781 +type PortStatus struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Port int32 `protobuf:"varint,1,opt,name=port,proto3" json:"port,omitempty"` + Protocol string `protobuf:"bytes,2,opt,name=protocol,proto3" json:"protocol,omitempty"` + Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"` +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *PortStatus) Reset() { + *x = PortStatus{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[121] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -func (m *SecretReference) Unmarshal(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 ErrIntOverflowAgent - } - 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: SecretReference: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SecretReference: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespace = string(data[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy + +func (x *PortStatus) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PortStatus) ProtoMessage() {} + +func (x *PortStatus) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[121] + 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 PortStatus.ProtoReflect.Descriptor instead. +func (*PortStatus) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{121} +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *PortStatus) GetPort() int32 { + if x != nil { + return x.Port } - return nil + return 0 } -func (m *PersistentVolumeStatus) Unmarshal(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 ErrIntOverflowAgent - } - 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: PersistentVolumeStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PersistentVolumeStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Phase", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Phase = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Message = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Reason = string(data[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + +func (x *PortStatus) GetProtocol() string { + if x != nil { + return x.Protocol } + return "" +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *PortStatus) GetError() string { + if x != nil { + return x.Error } - return nil + return "" } -func (m *NodeSelectorTerm) Unmarshal(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 ErrIntOverflowAgent - } - 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: NodeSelectorTerm: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: NodeSelectorTerm: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MatchExpressions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.MatchExpressions = append(m.MatchExpressions, &LabelSelectorRequirement{}) - if err := m.MatchExpressions[len(m.MatchExpressions)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MatchFields", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.MatchFields = append(m.MatchFields, &LabelSelectorRequirement{}) - if err := m.MatchFields[len(m.MatchFields)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy + +// reference https://github.com/kubernetes/api/blob/v0.21.5/core/v1/generated.proto#L2024 +type LoadBalancerIngress struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Ip string `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"` + Hostname string `protobuf:"bytes,2,opt,name=hostname,proto3" json:"hostname,omitempty"` + Ports []*PortStatus `protobuf:"bytes,4,rep,name=ports,proto3" json:"ports,omitempty"` +} + +func (x *LoadBalancerIngress) Reset() { + *x = LoadBalancerIngress{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[122] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *LoadBalancerIngress) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*LoadBalancerIngress) ProtoMessage() {} + +func (x *LoadBalancerIngress) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[122] + 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) +} - if iNdEx > l { - return io.ErrUnexpectedEOF +// Deprecated: Use LoadBalancerIngress.ProtoReflect.Descriptor instead. +func (*LoadBalancerIngress) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{122} +} + +func (x *LoadBalancerIngress) GetIp() string { + if x != nil { + return x.Ip } - return nil + return "" } -func (m *PersistentVolumeClaim) Unmarshal(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 ErrIntOverflowAgent - } - 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: PersistentVolumeClaim: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PersistentVolumeClaim: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - 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 ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Metadata == nil { - m.Metadata = &Metadata{} - } - if err := m.Metadata.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Spec == nil { - m.Spec = &PersistentVolumeClaimSpec{} - } - if err := m.Spec.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Status == nil { - m.Status = &PersistentVolumeClaimStatus{} - } - if err := m.Status.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Yaml", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - byteLen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + byteLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Yaml = append(m.Yaml[:0], data[iNdEx:postIndex]...) - if m.Yaml == nil { - m.Yaml = []byte{} - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Tags", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Tags = append(m.Tags, string(data[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy + +func (x *LoadBalancerIngress) GetHostname() string { + if x != nil { + return x.Hostname + } + return "" +} + +func (x *LoadBalancerIngress) GetPorts() []*PortStatus { + if x != nil { + return x.Ports + } + return nil +} + +// reference https://github.com/kubernetes/api/blob/v0.21.5/networking/v1/generated.proto#L308 +// LoadBalancerStatus is flattened +type IngressStatus struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Ingress []*LoadBalancerIngress `protobuf:"bytes,1,rep,name=ingress,proto3" json:"ingress,omitempty"` +} + +func (x *IngressStatus) Reset() { + *x = IngressStatus{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[123] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *IngressStatus) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*IngressStatus) ProtoMessage() {} + +func (x *IngressStatus) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[123] + 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) +} - if iNdEx > l { - return io.ErrUnexpectedEOF +// Deprecated: Use IngressStatus.ProtoReflect.Descriptor instead. +func (*IngressStatus) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{123} +} + +func (x *IngressStatus) GetIngress() []*LoadBalancerIngress { + if x != nil { + return x.Ingress } return nil } -func (m *PersistentVolumeClaimStatus) Unmarshal(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 ErrIntOverflowAgent - } - 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: PersistentVolumeClaimStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PersistentVolumeClaimStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Phase", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Phase = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AccessModes", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.AccessModes = append(m.AccessModes, string(data[iNdEx:postIndex])) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Capacity", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - var keykey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - keykey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey := string(data[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - if m.Capacity == nil { - m.Capacity = make(map[string]int64) - } - if iNdEx < postIndex { - var valuekey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - valuekey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - var mapvalue int64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - mapvalue |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.Capacity[mapkey] = mapvalue - } else { - var mapvalue int64 - m.Capacity[mapkey] = mapvalue - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Conditions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Conditions = append(m.Conditions, &PersistentVolumeClaimCondition{}) - if err := m.Conditions[len(m.Conditions)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy + +// reference https://github.com/kubernetes/api/blob/v0.21.5/networking/v1/generated.proto#L94 +type Ingress struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Metadata *Metadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` + Spec *IngressSpec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"` + Status *IngressStatus `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` + // Deprecated: Marked as deprecated in proto/process/agent.proto. + Yaml []byte `protobuf:"bytes,4,opt,name=yaml,proto3" json:"yaml,omitempty"` // see CollectorManifest + Tags []string `protobuf:"bytes,5,rep,name=tags,proto3" json:"tags,omitempty"` +} + +func (x *Ingress) Reset() { + *x = Ingress{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[124] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Ingress) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Ingress) ProtoMessage() {} + +func (x *Ingress) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[124] + 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 Ingress.ProtoReflect.Descriptor instead. +func (*Ingress) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{124} +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *Ingress) GetMetadata() *Metadata { + if x != nil { + return x.Metadata } return nil } -func (m *PersistentVolumeClaimSpec) Unmarshal(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 ErrIntOverflowAgent - } - 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: PersistentVolumeClaimSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PersistentVolumeClaimSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AccessModes", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.AccessModes = append(m.AccessModes, string(data[iNdEx:postIndex])) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Resources", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Resources == nil { - m.Resources = &ResourceRequirements{} - } - if err := m.Resources.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VolumeName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.VolumeName = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Selector", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Selector = append(m.Selector, &LabelSelectorRequirement{}) - if err := m.Selector[len(m.Selector)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StorageClassName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.StorageClassName = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VolumeMode", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.VolumeMode = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DataSource", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.DataSource == nil { - m.DataSource = &TypedLocalObjectReference{} - } - if err := m.DataSource.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + +func (x *Ingress) GetSpec() *IngressSpec { + if x != nil { + return x.Spec } + return nil +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *Ingress) GetStatus() *IngressStatus { + if x != nil { + return x.Status } return nil } -func (m *TypedLocalObjectReference) Unmarshal(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 ErrIntOverflowAgent - } - 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: TypedLocalObjectReference: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: TypedLocalObjectReference: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ApiGroup", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ApiGroup = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Kind", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Kind = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(data[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + +// Deprecated: Marked as deprecated in proto/process/agent.proto. +func (x *Ingress) GetYaml() []byte { + if x != nil { + return x.Yaml } + return nil +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *Ingress) GetTags() []string { + if x != nil { + return x.Tags } return nil } -func (m *PersistentVolumeClaimCondition) Unmarshal(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 ErrIntOverflowAgent - } - 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: PersistentVolumeClaimCondition: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PersistentVolumeClaimCondition: illegal tag %d (wire type %d)", fieldNum, wire) + +type KafkaRequestHeader struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + RequestType uint32 `protobuf:"varint,1,opt,name=request_type,json=requestType,proto3" json:"request_type,omitempty"` // this is Kafka api key value from the protocol + RequestVersion uint32 `protobuf:"varint,2,opt,name=request_version,json=requestVersion,proto3" json:"request_version,omitempty"` +} + +func (x *KafkaRequestHeader) Reset() { + *x = KafkaRequestHeader{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[125] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *KafkaRequestHeader) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*KafkaRequestHeader) ProtoMessage() {} + +func (x *KafkaRequestHeader) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[125] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Type = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Status = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field LastProbeTime", wireType) - } - m.LastProbeTime = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.LastProbeTime |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field LastTransitionTime", wireType) - } - m.LastTransitionTime = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.LastTransitionTime |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Reason = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Message = string(data[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use KafkaRequestHeader.ProtoReflect.Descriptor instead. +func (*KafkaRequestHeader) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{125} +} + +func (x *KafkaRequestHeader) GetRequestType() uint32 { + if x != nil { + return x.RequestType + } + return 0 +} + +func (x *KafkaRequestHeader) GetRequestVersion() uint32 { + if x != nil { + return x.RequestVersion + } + return 0 +} + +type KafkaAggregation struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Header *KafkaRequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Topic string `protobuf:"bytes,2,opt,name=topic,proto3" json:"topic,omitempty"` + Count uint32 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"` +} + +func (x *KafkaAggregation) Reset() { + *x = KafkaAggregation{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[126] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *KafkaAggregation) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*KafkaAggregation) ProtoMessage() {} + +func (x *KafkaAggregation) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[126] + 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 KafkaAggregation.ProtoReflect.Descriptor instead. +func (*KafkaAggregation) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{126} +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *KafkaAggregation) GetHeader() *KafkaRequestHeader { + if x != nil { + return x.Header } return nil } -func (m *PolicyRule) Unmarshal(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 ErrIntOverflowAgent - } - 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: PolicyRule: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PolicyRule: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Verbs", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Verbs = append(m.Verbs, string(data[iNdEx:postIndex])) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ApiGroups", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ApiGroups = append(m.ApiGroups, string(data[iNdEx:postIndex])) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Resources", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Resources = append(m.Resources, string(data[iNdEx:postIndex])) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ResourceNames", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ResourceNames = append(m.ResourceNames, string(data[iNdEx:postIndex])) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NonResourceURLs", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NonResourceURLs = append(m.NonResourceURLs, string(data[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy + +func (x *KafkaAggregation) GetTopic() string { + if x != nil { + return x.Topic + } + return "" +} + +func (x *KafkaAggregation) GetCount() uint32 { + if x != nil { + return x.Count + } + return 0 +} + +type DataStreamsAggregations struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + KafkaProduceAggregations *DataStreamsAggregations_KafkaProduceAggregations `protobuf:"bytes,1,opt,name=kafkaProduceAggregations,proto3" json:"kafkaProduceAggregations,omitempty"` + KafkaFetchAggregations *DataStreamsAggregations_KafkaFetchAggregations `protobuf:"bytes,2,opt,name=kafkaFetchAggregations,proto3" json:"kafkaFetchAggregations,omitempty"` + KafkaAggregations []*KafkaAggregation `protobuf:"bytes,3,rep,name=kafkaAggregations,proto3" json:"kafkaAggregations,omitempty"` +} + +func (x *DataStreamsAggregations) Reset() { + *x = DataStreamsAggregations{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[127] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DataStreamsAggregations) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DataStreamsAggregations) ProtoMessage() {} + +func (x *DataStreamsAggregations) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[127] + 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 DataStreamsAggregations.ProtoReflect.Descriptor instead. +func (*DataStreamsAggregations) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{127} +} + +func (x *DataStreamsAggregations) GetKafkaProduceAggregations() *DataStreamsAggregations_KafkaProduceAggregations { + if x != nil { + return x.KafkaProduceAggregations } + return nil +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *DataStreamsAggregations) GetKafkaFetchAggregations() *DataStreamsAggregations_KafkaFetchAggregations { + if x != nil { + return x.KafkaFetchAggregations } return nil } -func (m *Subject) Unmarshal(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 ErrIntOverflowAgent - } - 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: Subject: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Subject: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Kind", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Kind = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ApiGroup", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ApiGroup = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespace = string(data[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy + +func (x *DataStreamsAggregations) GetKafkaAggregations() []*KafkaAggregation { + if x != nil { + return x.KafkaAggregations + } + return nil +} + +type HTTPAggregations struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + EndpointAggregations []*HTTPStats `protobuf:"bytes,2,rep,name=endpointAggregations,proto3" json:"endpointAggregations,omitempty"` +} + +func (x *HTTPAggregations) Reset() { + *x = HTTPAggregations{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[128] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *HTTPAggregations) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*HTTPAggregations) ProtoMessage() {} + +func (x *HTTPAggregations) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[128] + 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 HTTPAggregations.ProtoReflect.Descriptor instead. +func (*HTTPAggregations) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{128} +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *HTTPAggregations) GetEndpointAggregations() []*HTTPStats { + if x != nil { + return x.EndpointAggregations } return nil } -func (m *Role) Unmarshal(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 ErrIntOverflowAgent - } - 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: Role: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Role: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - 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 ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Metadata == nil { - m.Metadata = &Metadata{} - } - if err := m.Metadata.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Rules", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Rules = append(m.Rules, &PolicyRule{}) - if err := m.Rules[len(m.Rules)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Yaml", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - byteLen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + byteLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Yaml = append(m.Yaml[:0], data[iNdEx:postIndex]...) - if m.Yaml == nil { - m.Yaml = []byte{} - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Tags", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Tags = append(m.Tags, string(data[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy + +// The current state of HTTP2Aggregations is identical to that of HTTPAggregations. +// However, there is a possibility that additional fields might be added to it in the future. +type HTTP2Aggregations struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + EndpointAggregations []*HTTPStats `protobuf:"bytes,1,rep,name=endpointAggregations,proto3" json:"endpointAggregations,omitempty"` +} + +func (x *HTTP2Aggregations) Reset() { + *x = HTTP2Aggregations{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[129] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *HTTP2Aggregations) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*HTTP2Aggregations) ProtoMessage() {} + +func (x *HTTP2Aggregations) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[129] + 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) +} - if iNdEx > l { - return io.ErrUnexpectedEOF +// Deprecated: Use HTTP2Aggregations.ProtoReflect.Descriptor instead. +func (*HTTP2Aggregations) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{129} +} + +func (x *HTTP2Aggregations) GetEndpointAggregations() []*HTTPStats { + if x != nil { + return x.EndpointAggregations } return nil } -func (m *RoleBinding) Unmarshal(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 ErrIntOverflowAgent - } - 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: RoleBinding: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RoleBinding: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - 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 ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Metadata == nil { - m.Metadata = &Metadata{} - } - if err := m.Metadata.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Subjects", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Subjects = append(m.Subjects, &Subject{}) - if err := m.Subjects[len(m.Subjects)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RoleRef", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.RoleRef == nil { - m.RoleRef = &TypedLocalObjectReference{} - } - if err := m.RoleRef.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Yaml", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - byteLen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + byteLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Yaml = append(m.Yaml[:0], data[iNdEx:postIndex]...) - if m.Yaml == nil { - m.Yaml = []byte{} - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Tags", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Tags = append(m.Tags, string(data[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy + +type HTTPStats struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Path string `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"` + Method HTTPMethod `protobuf:"varint,5,opt,name=method,proto3,enum=datadog.process_agent.HTTPMethod" json:"method,omitempty"` + // The agent can only read a limited part of the http header because + // of cpu/memory contraints. It is thus possible that the path is not + // read entirely. + // In case we're sure we've read the http path entirely, fullPath will + // be set to true. In any other cases, it would be set to false. + FullPath bool `protobuf:"varint,6,opt,name=fullPath,proto3" json:"fullPath,omitempty"` + StatsByResponseStatus []*HTTPStats_Data `protobuf:"bytes,1,rep,name=statsByResponseStatus,proto3" json:"statsByResponseStatus,omitempty"` + // This is a temporary field, that might be removed (and the index to be reserved) in the near future. + // This is the new format of saving aggregations. We support any status code rather than just the status code families + // as used in statsByResponseStatus. + StatsByStatusCode map[int32]*HTTPStats_Data `protobuf:"bytes,2,rep,name=statsByStatusCode,proto3" json:"statsByStatusCode,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` +} + +func (x *HTTPStats) Reset() { + *x = HTTPStats{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[130] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *HTTPStats) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*HTTPStats) ProtoMessage() {} + +func (x *HTTPStats) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[130] + 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 HTTPStats.ProtoReflect.Descriptor instead. +func (*HTTPStats) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{130} +} + +func (x *HTTPStats) GetPath() string { + if x != nil { + return x.Path } + return "" +} + +func (x *HTTPStats) GetMethod() HTTPMethod { + if x != nil { + return x.Method + } + return HTTPMethod_Unknown +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *HTTPStats) GetFullPath() bool { + if x != nil { + return x.FullPath + } + return false +} + +func (x *HTTPStats) GetStatsByResponseStatus() []*HTTPStats_Data { + if x != nil { + return x.StatsByResponseStatus } return nil } -func (m *ClusterRole) Unmarshal(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 ErrIntOverflowAgent - } - 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: ClusterRole: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ClusterRole: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - 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 ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Metadata == nil { - m.Metadata = &Metadata{} - } - if err := m.Metadata.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Rules", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Rules = append(m.Rules, &PolicyRule{}) - if err := m.Rules[len(m.Rules)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AggregationRules", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.AggregationRules = append(m.AggregationRules, &LabelSelectorRequirement{}) - if err := m.AggregationRules[len(m.AggregationRules)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Yaml", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - byteLen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + byteLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Yaml = append(m.Yaml[:0], data[iNdEx:postIndex]...) - if m.Yaml == nil { - m.Yaml = []byte{} - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Tags", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Tags = append(m.Tags, string(data[iNdEx:postIndex])) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Metrics", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Metrics == nil { - m.Metrics = &ResourceMetrics{} - } - if err := m.Metrics.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy + +func (x *HTTPStats) GetStatsByStatusCode() map[int32]*HTTPStats_Data { + if x != nil { + return x.StatsByStatusCode + } + return nil +} + +// replaces DNSEntry. Is a list of DNS names that a given IP resolved to. +// List of offsets into the EncodedDomainDatabase. +type DNSDatabaseEntry struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + NameOffsets []int32 `protobuf:"varint,1,rep,packed,name=nameOffsets,proto3" json:"nameOffsets,omitempty"` +} + +func (x *DNSDatabaseEntry) Reset() { + *x = DNSDatabaseEntry{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[131] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DNSDatabaseEntry) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DNSDatabaseEntry) ProtoMessage() {} + +func (x *DNSDatabaseEntry) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[131] + 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 DNSDatabaseEntry.ProtoReflect.Descriptor instead. +func (*DNSDatabaseEntry) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{131} +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *DNSDatabaseEntry) GetNameOffsets() []int32 { + if x != nil { + return x.NameOffsets } return nil } -func (m *ClusterRoleBinding) Unmarshal(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 ErrIntOverflowAgent - } - 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: ClusterRoleBinding: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ClusterRoleBinding: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - 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 ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Metadata == nil { - m.Metadata = &Metadata{} - } - if err := m.Metadata.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Subjects", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Subjects = append(m.Subjects, &Subject{}) - if err := m.Subjects[len(m.Subjects)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RoleRef", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.RoleRef == nil { - m.RoleRef = &TypedLocalObjectReference{} - } - if err := m.RoleRef.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Yaml", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - byteLen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + byteLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Yaml = append(m.Yaml[:0], data[iNdEx:postIndex]...) - if m.Yaml == nil { - m.Yaml = []byte{} - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Tags", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Tags = append(m.Tags, string(data[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy + +// ResourceList is a set of (resource name, quantity) pairs +// https://pkg.go.dev/k8s.io/api/core/v1#ResourceList +type ResourceList struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + MetricValues map[string]float64 `protobuf:"bytes,1,rep,name=metricValues,proto3" json:"metricValues,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"fixed64,2,opt,name=value,proto3"` +} + +func (x *ResourceList) Reset() { + *x = ResourceList{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[132] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ResourceList) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ResourceList) ProtoMessage() {} + +func (x *ResourceList) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[132] + 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) +} - if iNdEx > l { - return io.ErrUnexpectedEOF +// Deprecated: Use ResourceList.ProtoReflect.Descriptor instead. +func (*ResourceList) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{132} +} + +func (x *ResourceList) GetMetricValues() map[string]float64 { + if x != nil { + return x.MetricValues } return nil } -func (m *ServiceAccount) Unmarshal(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 ErrIntOverflowAgent - } - 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: ServiceAccount: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ServiceAccount: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - 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 ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Metadata == nil { - m.Metadata = &Metadata{} - } - if err := m.Metadata.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Secrets", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Secrets = append(m.Secrets, &ObjectReference{}) - if err := m.Secrets[len(m.Secrets)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ImagePullSecrets", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ImagePullSecrets = append(m.ImagePullSecrets, &TypedLocalObjectReference{}) - if err := m.ImagePullSecrets[len(m.ImagePullSecrets)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AutomountServiceAccountToken", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - v |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.AutomountServiceAccountToken = bool(v != 0) - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Yaml", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - byteLen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + byteLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Yaml = append(m.Yaml[:0], data[iNdEx:postIndex]...) - if m.Yaml == nil { - m.Yaml = []byte{} - } - iNdEx = postIndex - case 6: - 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 ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Tags = append(m.Tags, string(data[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy + +// https://github.com/kubernetes/autoscaler/blob/master/vertical-pod-autoscaler/pkg/apis/autoscaling.k8s.io/v1/types.go +type VerticalPodAutoscaler struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Metadata *Metadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` + Spec *VerticalPodAutoscalerSpec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"` + Status *VerticalPodAutoscalerStatus `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` + // Deprecated: Marked as deprecated in proto/process/agent.proto. + Yaml []byte `protobuf:"bytes,4,opt,name=yaml,proto3" json:"yaml,omitempty"` // see CollectorManifest + Tags []string `protobuf:"bytes,5,rep,name=tags,proto3" json:"tags,omitempty"` + Conditions []*VerticalPodAutoscalerCondition `protobuf:"bytes,6,rep,name=conditions,proto3" json:"conditions,omitempty"` +} + +func (x *VerticalPodAutoscaler) Reset() { + *x = VerticalPodAutoscaler{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[133] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *VerticalPodAutoscaler) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*VerticalPodAutoscaler) ProtoMessage() {} + +func (x *VerticalPodAutoscaler) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[133] + 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 VerticalPodAutoscaler.ProtoReflect.Descriptor instead. +func (*VerticalPodAutoscaler) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{133} +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *VerticalPodAutoscaler) GetMetadata() *Metadata { + if x != nil { + return x.Metadata } return nil } -func (m *IngressServiceBackend) Unmarshal(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 ErrIntOverflowAgent - } - 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: IngressServiceBackend: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: IngressServiceBackend: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ServiceName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ServiceName = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PortName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PortName = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field PortNumber", wireType) - } - m.PortNumber = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.PortNumber |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *VerticalPodAutoscaler) GetSpec() *VerticalPodAutoscalerSpec { + if x != nil { + return x.Spec } return nil } -func (m *IngressBackend) Unmarshal(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 ErrIntOverflowAgent - } - 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: IngressBackend: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: IngressBackend: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Service", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Service == nil { - m.Service = &IngressServiceBackend{} - } - if err := m.Service.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Resource", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Resource == nil { - m.Resource = &TypedLocalObjectReference{} - } - if err := m.Resource.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + +func (x *VerticalPodAutoscaler) GetStatus() *VerticalPodAutoscalerStatus { + if x != nil { + return x.Status } + return nil +} - if iNdEx > l { - return io.ErrUnexpectedEOF +// Deprecated: Marked as deprecated in proto/process/agent.proto. +func (x *VerticalPodAutoscaler) GetYaml() []byte { + if x != nil { + return x.Yaml } return nil } -func (m *IngressTLS) Unmarshal(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 ErrIntOverflowAgent - } - 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: IngressTLS: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: IngressTLS: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Hosts", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Hosts = append(m.Hosts, string(data[iNdEx:postIndex])) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SecretName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SecretName = string(data[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + +func (x *VerticalPodAutoscaler) GetTags() []string { + if x != nil { + return x.Tags } + return nil +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *VerticalPodAutoscaler) GetConditions() []*VerticalPodAutoscalerCondition { + if x != nil { + return x.Conditions } return nil } -func (m *HTTPIngressPath) Unmarshal(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 ErrIntOverflowAgent - } - 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: HTTPIngressPath: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: HTTPIngressPath: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Path = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Backend", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Backend == nil { - m.Backend = &IngressBackend{} - } - if err := m.Backend.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PathType", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PathType = string(data[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy + +// reference https://github.com/kubernetes/autoscaler/blob/master/vertical-pod-autoscaler/pkg/apis/autoscaling.k8s.io/v1/types.go#L295 +type VerticalPodAutoscalerCondition struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` + Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` + LastTransitionTime int64 `protobuf:"varint,3,opt,name=lastTransitionTime,proto3" json:"lastTransitionTime,omitempty"` + Reason string `protobuf:"bytes,4,opt,name=reason,proto3" json:"reason,omitempty"` + Message string `protobuf:"bytes,5,opt,name=message,proto3" json:"message,omitempty"` +} + +func (x *VerticalPodAutoscalerCondition) Reset() { + *x = VerticalPodAutoscalerCondition{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[134] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *VerticalPodAutoscalerCondition) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*VerticalPodAutoscalerCondition) ProtoMessage() {} + +func (x *VerticalPodAutoscalerCondition) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[134] + 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 VerticalPodAutoscalerCondition.ProtoReflect.Descriptor instead. +func (*VerticalPodAutoscalerCondition) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{134} +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *VerticalPodAutoscalerCondition) GetType() string { + if x != nil { + return x.Type } - return nil + return "" } -func (m *IngressRule) Unmarshal(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 ErrIntOverflowAgent - } - 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: IngressRule: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: IngressRule: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Host", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Host = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field HttpPaths", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.HttpPaths = append(m.HttpPaths, &HTTPIngressPath{}) - if err := m.HttpPaths[len(m.HttpPaths)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + +func (x *VerticalPodAutoscalerCondition) GetStatus() string { + if x != nil { + return x.Status } + return "" +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *VerticalPodAutoscalerCondition) GetLastTransitionTime() int64 { + if x != nil { + return x.LastTransitionTime } - return nil + return 0 } -func (m *IngressSpec) Unmarshal(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 ErrIntOverflowAgent - } - 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: IngressSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: IngressSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DefaultBackend", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.DefaultBackend == nil { - m.DefaultBackend = &IngressBackend{} - } - if err := m.DefaultBackend.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Tls", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Tls = append(m.Tls, &IngressTLS{}) - if err := m.Tls[len(m.Tls)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Rules", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Rules = append(m.Rules, &IngressRule{}) - if err := m.Rules[len(m.Rules)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field IngressClassName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.IngressClassName = string(data[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + +func (x *VerticalPodAutoscalerCondition) GetReason() string { + if x != nil { + return x.Reason } + return "" +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *VerticalPodAutoscalerCondition) GetMessage() string { + if x != nil { + return x.Message } - return nil + return "" } -func (m *PortStatus) Unmarshal(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 ErrIntOverflowAgent - } - 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: PortStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PortStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Port", wireType) - } - m.Port = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.Port |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Protocol", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Protocol = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Error = string(data[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy + +type VerticalPodAutoscalerSpec struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Target *VerticalPodAutoscalerTarget `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"` + UpdateMode string `protobuf:"bytes,2,opt,name=updateMode,proto3" json:"updateMode,omitempty"` // Extracted from UpdatePolicy + ResourcePolicies []*ContainerResourcePolicy `protobuf:"bytes,3,rep,name=resourcePolicies,proto3" json:"resourcePolicies,omitempty"` +} + +func (x *VerticalPodAutoscalerSpec) Reset() { + *x = VerticalPodAutoscalerSpec{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[135] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *VerticalPodAutoscalerSpec) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*VerticalPodAutoscalerSpec) ProtoMessage() {} + +func (x *VerticalPodAutoscalerSpec) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[135] + 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) +} - if iNdEx > l { - return io.ErrUnexpectedEOF +// Deprecated: Use VerticalPodAutoscalerSpec.ProtoReflect.Descriptor instead. +func (*VerticalPodAutoscalerSpec) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{135} +} + +func (x *VerticalPodAutoscalerSpec) GetTarget() *VerticalPodAutoscalerTarget { + if x != nil { + return x.Target } return nil } -func (m *LoadBalancerIngress) Unmarshal(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 ErrIntOverflowAgent - } - 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: LoadBalancerIngress: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: LoadBalancerIngress: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Ip", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Ip = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Hostname", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Hostname = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Ports", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Ports = append(m.Ports, &PortStatus{}) - if err := m.Ports[len(m.Ports)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + +func (x *VerticalPodAutoscalerSpec) GetUpdateMode() string { + if x != nil { + return x.UpdateMode } + return "" +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *VerticalPodAutoscalerSpec) GetResourcePolicies() []*ContainerResourcePolicy { + if x != nil { + return x.ResourcePolicies } return nil } -func (m *IngressStatus) Unmarshal(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 ErrIntOverflowAgent - } - 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: IngressStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: IngressStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Ingress", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Ingress = append(m.Ingress, &LoadBalancerIngress{}) - if err := m.Ingress[len(m.Ingress)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy + +type VerticalPodAutoscalerTarget struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` +} + +func (x *VerticalPodAutoscalerTarget) Reset() { + *x = VerticalPodAutoscalerTarget{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[136] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *VerticalPodAutoscalerTarget) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*VerticalPodAutoscalerTarget) ProtoMessage() {} + +func (x *VerticalPodAutoscalerTarget) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[136] + 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) +} - if iNdEx > l { - return io.ErrUnexpectedEOF +// Deprecated: Use VerticalPodAutoscalerTarget.ProtoReflect.Descriptor instead. +func (*VerticalPodAutoscalerTarget) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{136} +} + +func (x *VerticalPodAutoscalerTarget) GetKind() string { + if x != nil { + return x.Kind } - return nil + return "" } -func (m *Ingress) Unmarshal(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 ErrIntOverflowAgent - } - 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: Ingress: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Ingress: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - 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 ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Metadata == nil { - m.Metadata = &Metadata{} - } - if err := m.Metadata.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Spec == nil { - m.Spec = &IngressSpec{} - } - if err := m.Spec.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Status == nil { - m.Status = &IngressStatus{} - } - if err := m.Status.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Yaml", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - byteLen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + byteLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Yaml = append(m.Yaml[:0], data[iNdEx:postIndex]...) - if m.Yaml == nil { - m.Yaml = []byte{} - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Tags", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Tags = append(m.Tags, string(data[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + +func (x *VerticalPodAutoscalerTarget) GetName() string { + if x != nil { + return x.Name } + return "" +} + +type ContainerResourcePolicy struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ContainerName string `protobuf:"bytes,1,opt,name=containerName,proto3" json:"containerName,omitempty"` + Mode string `protobuf:"bytes,2,opt,name=mode,proto3" json:"mode,omitempty"` + MinAllowed *ResourceList `protobuf:"bytes,3,opt,name=minAllowed,proto3" json:"minAllowed,omitempty"` + MaxAllowed *ResourceList `protobuf:"bytes,4,opt,name=maxAllowed,proto3" json:"maxAllowed,omitempty"` + ControlledResource []string `protobuf:"bytes,5,rep,name=controlledResource,proto3" json:"controlledResource,omitempty"` + ControlledValues string `protobuf:"bytes,6,opt,name=controlledValues,proto3" json:"controlledValues,omitempty"` +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *ContainerResourcePolicy) Reset() { + *x = ContainerResourcePolicy{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[137] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -func (m *KafkaRequestHeader) Unmarshal(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 ErrIntOverflowAgent - } - 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: KafkaRequestHeader: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: KafkaRequestHeader: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RequestType", wireType) - } - m.RequestType = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.RequestType |= (uint32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RequestVersion", wireType) - } - m.RequestVersion = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.RequestVersion |= (uint32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy + +func (x *ContainerResourcePolicy) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ContainerResourcePolicy) ProtoMessage() {} + +func (x *ContainerResourcePolicy) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[137] + 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 ContainerResourcePolicy.ProtoReflect.Descriptor instead. +func (*ContainerResourcePolicy) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{137} +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *ContainerResourcePolicy) GetContainerName() string { + if x != nil { + return x.ContainerName } - return nil + return "" } -func (m *KafkaAggregation) Unmarshal(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 ErrIntOverflowAgent - } - 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: KafkaAggregation: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: KafkaAggregation: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Header == nil { - m.Header = &KafkaRequestHeader{} - } - if err := m.Header.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Topic", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Topic = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Count", wireType) - } - m.Count = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.Count |= (uint32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + +func (x *ContainerResourcePolicy) GetMode() string { + if x != nil { + return x.Mode } + return "" +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *ContainerResourcePolicy) GetMinAllowed() *ResourceList { + if x != nil { + return x.MinAllowed } return nil } -func (m *DataStreamsAggregations) Unmarshal(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 ErrIntOverflowAgent - } - 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: DataStreamsAggregations: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DataStreamsAggregations: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field KafkaProduceAggregations", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.KafkaProduceAggregations == nil { - m.KafkaProduceAggregations = &DataStreamsAggregations_KafkaProduceAggregations{} - } - if err := m.KafkaProduceAggregations.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field KafkaFetchAggregations", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.KafkaFetchAggregations == nil { - m.KafkaFetchAggregations = &DataStreamsAggregations_KafkaFetchAggregations{} - } - if err := m.KafkaFetchAggregations.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field KafkaAggregations", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.KafkaAggregations = append(m.KafkaAggregations, &KafkaAggregation{}) - if err := m.KafkaAggregations[len(m.KafkaAggregations)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + +func (x *ContainerResourcePolicy) GetMaxAllowed() *ResourceList { + if x != nil { + return x.MaxAllowed } + return nil +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *ContainerResourcePolicy) GetControlledResource() []string { + if x != nil { + return x.ControlledResource } return nil } -func (m *DataStreamsAggregations_TopicStats) Unmarshal(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 ErrIntOverflowAgent - } - 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: TopicStats: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: TopicStats: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Topic", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Topic = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Count", wireType) - } - m.Count = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.Count |= (uint32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy + +func (x *ContainerResourcePolicy) GetControlledValues() string { + if x != nil { + return x.ControlledValues + } + return "" +} + +type VerticalPodAutoscalerStatus struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + LastRecommendedDate int64 `protobuf:"varint,1,opt,name=LastRecommendedDate,proto3" json:"LastRecommendedDate,omitempty"` // Extracted from Condition=RecommendationProvided AND Status=true + Recommendations []*ContainerRecommendation `protobuf:"bytes,2,rep,name=recommendations,proto3" json:"recommendations,omitempty"` + Conditions []*VPACondition `protobuf:"bytes,3,rep,name=conditions,proto3" json:"conditions,omitempty"` +} + +func (x *VerticalPodAutoscalerStatus) Reset() { + *x = VerticalPodAutoscalerStatus{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[138] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *VerticalPodAutoscalerStatus) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*VerticalPodAutoscalerStatus) ProtoMessage() {} + +func (x *VerticalPodAutoscalerStatus) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[138] + 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 VerticalPodAutoscalerStatus.ProtoReflect.Descriptor instead. +func (*VerticalPodAutoscalerStatus) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{138} +} + +func (x *VerticalPodAutoscalerStatus) GetLastRecommendedDate() int64 { + if x != nil { + return x.LastRecommendedDate } + return 0 +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *VerticalPodAutoscalerStatus) GetRecommendations() []*ContainerRecommendation { + if x != nil { + return x.Recommendations } return nil } -func (m *DataStreamsAggregations_KafkaProduceAggregations) Unmarshal(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 ErrIntOverflowAgent - } - 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: KafkaProduceAggregations: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: KafkaProduceAggregations: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Stats", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Stats = append(m.Stats, &DataStreamsAggregations_TopicStats{}) - if err := m.Stats[len(m.Stats)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy + +func (x *VerticalPodAutoscalerStatus) GetConditions() []*VPACondition { + if x != nil { + return x.Conditions + } + return nil +} + +type ContainerRecommendation struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ContainerName string `protobuf:"bytes,1,opt,name=containerName,proto3" json:"containerName,omitempty"` + Target *ResourceList `protobuf:"bytes,2,opt,name=target,proto3" json:"target,omitempty"` + LowerBound *ResourceList `protobuf:"bytes,3,opt,name=lowerBound,proto3" json:"lowerBound,omitempty"` + UpperBound *ResourceList `protobuf:"bytes,4,opt,name=upperBound,proto3" json:"upperBound,omitempty"` + UncappedTarget *ResourceList `protobuf:"bytes,5,opt,name=uncappedTarget,proto3" json:"uncappedTarget,omitempty"` +} + +func (x *ContainerRecommendation) Reset() { + *x = ContainerRecommendation{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[139] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ContainerRecommendation) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ContainerRecommendation) ProtoMessage() {} + +func (x *ContainerRecommendation) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[139] + 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) +} - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil +// Deprecated: Use ContainerRecommendation.ProtoReflect.Descriptor instead. +func (*ContainerRecommendation) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{139} } -func (m *DataStreamsAggregations_KafkaFetchAggregations) Unmarshal(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 ErrIntOverflowAgent - } - 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: KafkaFetchAggregations: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: KafkaFetchAggregations: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Stats", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Stats = append(m.Stats, &DataStreamsAggregations_TopicStats{}) - if err := m.Stats[len(m.Stats)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + +func (x *ContainerRecommendation) GetContainerName() string { + if x != nil { + return x.ContainerName } + return "" +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *ContainerRecommendation) GetTarget() *ResourceList { + if x != nil { + return x.Target } return nil } -func (m *HTTPAggregations) Unmarshal(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 ErrIntOverflowAgent - } - 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: HTTPAggregations: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: HTTPAggregations: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EndpointAggregations", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.EndpointAggregations = append(m.EndpointAggregations, &HTTPStats{}) - if err := m.EndpointAggregations[len(m.EndpointAggregations)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *ContainerRecommendation) GetLowerBound() *ResourceList { + if x != nil { + return x.LowerBound } return nil } -func (m *HTTP2Aggregations) Unmarshal(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 ErrIntOverflowAgent - } - 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: HTTP2Aggregations: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: HTTP2Aggregations: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EndpointAggregations", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.EndpointAggregations = append(m.EndpointAggregations, &HTTPStats{}) - if err := m.EndpointAggregations[len(m.EndpointAggregations)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *ContainerRecommendation) GetUpperBound() *ResourceList { + if x != nil { + return x.UpperBound } return nil } -func (m *HTTPStats) Unmarshal(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 ErrIntOverflowAgent - } - 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: HTTPStats: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: HTTPStats: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StatsByResponseStatus", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.StatsByResponseStatus = append(m.StatsByResponseStatus, &HTTPStats_Data{}) - if err := m.StatsByResponseStatus[len(m.StatsByResponseStatus)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StatsByStatusCode", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - var keykey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - keykey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - var mapkey int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - mapkey |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if m.StatsByStatusCode == nil { - m.StatsByStatusCode = make(map[int32]*HTTPStats_Data) - } - if iNdEx < postIndex { - var valuekey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - valuekey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - mapmsglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return ErrInvalidLengthAgent - } - postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { - return ErrInvalidLengthAgent - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue := &HTTPStats_Data{} - if err := mapvalue.Unmarshal(data[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - m.StatsByStatusCode[mapkey] = mapvalue - } else { - var mapvalue *HTTPStats_Data - m.StatsByStatusCode[mapkey] = mapvalue - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Path = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Method", wireType) - } - m.Method = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.Method |= (HTTPMethod(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field FullPath", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - v |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.FullPath = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *ContainerRecommendation) GetUncappedTarget() *ResourceList { + if x != nil { + return x.UncappedTarget } return nil } -func (m *HTTPStats_Data) Unmarshal(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 ErrIntOverflowAgent - } - 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: Data: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Data: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Count", wireType) - } - m.Count = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.Count |= (uint32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Latencies", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - byteLen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + byteLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Latencies = append(m.Latencies[:0], data[iNdEx:postIndex]...) - if m.Latencies == nil { - m.Latencies = []byte{} - } - iNdEx = postIndex - case 4: - if wireType != 1 { - return fmt.Errorf("proto: wrong wireType = %d for field FirstLatencySample", wireType) - } - var v uint64 - if (iNdEx + 8) > l { - return io.ErrUnexpectedEOF - } - iNdEx += 8 - v = uint64(data[iNdEx-8]) - v |= uint64(data[iNdEx-7]) << 8 - v |= uint64(data[iNdEx-6]) << 16 - v |= uint64(data[iNdEx-5]) << 24 - v |= uint64(data[iNdEx-4]) << 32 - v |= uint64(data[iNdEx-3]) << 40 - v |= uint64(data[iNdEx-2]) << 48 - v |= uint64(data[iNdEx-1]) << 56 - m.FirstLatencySample = float64(math.Float64frombits(v)) - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF +type VPACondition struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ConditionType string `protobuf:"bytes,1,opt,name=ConditionType,proto3" json:"ConditionType,omitempty"` + ConditionStatus string `protobuf:"bytes,2,opt,name=ConditionStatus,proto3" json:"ConditionStatus,omitempty"` + LastTransitionTime int64 `protobuf:"varint,3,opt,name=LastTransitionTime,proto3" json:"LastTransitionTime,omitempty"` + Reason string `protobuf:"bytes,4,opt,name=Reason,proto3" json:"Reason,omitempty"` + Message string `protobuf:"bytes,5,opt,name=Message,proto3" json:"Message,omitempty"` +} + +func (x *VPACondition) Reset() { + *x = VPACondition{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[140] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -func (m *DNSDatabaseEntry) Unmarshal(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 ErrIntOverflowAgent - } - 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: DNSDatabaseEntry: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DNSDatabaseEntry: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NameOffsets", wireType) - } - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - v |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.NameOffsets = append(m.NameOffsets, v) - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy + +func (x *VPACondition) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*VPACondition) ProtoMessage() {} + +func (x *VPACondition) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[140] + 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 VPACondition.ProtoReflect.Descriptor instead. +func (*VPACondition) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{140} +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *VPACondition) GetConditionType() string { + if x != nil { + return x.ConditionType } - return nil + return "" } -func (m *ResourceList) Unmarshal(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 ErrIntOverflowAgent - } - 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: ResourceList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ResourceList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MetricValues", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - var keykey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - keykey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey := string(data[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - if m.MetricValues == nil { - m.MetricValues = make(map[string]float64) - } - if iNdEx < postIndex { - var valuekey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - valuekey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - var mapvaluetemp uint64 - if (iNdEx + 8) > l { - return io.ErrUnexpectedEOF - } - iNdEx += 8 - mapvaluetemp = uint64(data[iNdEx-8]) - mapvaluetemp |= uint64(data[iNdEx-7]) << 8 - mapvaluetemp |= uint64(data[iNdEx-6]) << 16 - mapvaluetemp |= uint64(data[iNdEx-5]) << 24 - mapvaluetemp |= uint64(data[iNdEx-4]) << 32 - mapvaluetemp |= uint64(data[iNdEx-3]) << 40 - mapvaluetemp |= uint64(data[iNdEx-2]) << 48 - mapvaluetemp |= uint64(data[iNdEx-1]) << 56 - mapvalue := math.Float64frombits(mapvaluetemp) - m.MetricValues[mapkey] = mapvalue - } else { - var mapvalue float64 - m.MetricValues[mapkey] = mapvalue - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + +func (x *VPACondition) GetConditionStatus() string { + if x != nil { + return x.ConditionStatus } + return "" +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *VPACondition) GetLastTransitionTime() int64 { + if x != nil { + return x.LastTransitionTime } - return nil + return 0 } -func (m *VerticalPodAutoscaler) Unmarshal(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 ErrIntOverflowAgent - } - 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: VerticalPodAutoscaler: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: VerticalPodAutoscaler: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - 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 ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Metadata == nil { - m.Metadata = &Metadata{} - } - if err := m.Metadata.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Spec == nil { - m.Spec = &VerticalPodAutoscalerSpec{} - } - if err := m.Spec.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Status == nil { - m.Status = &VerticalPodAutoscalerStatus{} - } - if err := m.Status.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Yaml", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - byteLen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + byteLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Yaml = append(m.Yaml[:0], data[iNdEx:postIndex]...) - if m.Yaml == nil { - m.Yaml = []byte{} - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Tags", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Tags = append(m.Tags, string(data[iNdEx:postIndex])) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Conditions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Conditions = append(m.Conditions, &VerticalPodAutoscalerCondition{}) - if err := m.Conditions[len(m.Conditions)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + +func (x *VPACondition) GetReason() string { + if x != nil { + return x.Reason } + return "" +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *VPACondition) GetMessage() string { + if x != nil { + return x.Message } - return nil + return "" } -func (m *VerticalPodAutoscalerCondition) Unmarshal(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 ErrIntOverflowAgent - } - 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: VerticalPodAutoscalerCondition: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: VerticalPodAutoscalerCondition: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Type = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Status = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field LastTransitionTime", wireType) - } - m.LastTransitionTime = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.LastTransitionTime |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Reason = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Message = string(data[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy + +// Header must exist at position 1 for compatibility +// with older version of the Agent. We should be able +// to drop this at some point. +type ResCollector_Header struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Type int32 `protobuf:"varint,4,opt,name=type,proto3" json:"type,omitempty"` +} + +func (x *ResCollector_Header) Reset() { + *x = ResCollector_Header{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[141] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ResCollector_Header) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ResCollector_Header) ProtoMessage() {} + +func (x *ResCollector_Header) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[141] + 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 ResCollector_Header.ProtoReflect.Descriptor instead. +func (*ResCollector_Header) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{0, 0} +} + +func (x *ResCollector_Header) GetType() int32 { + if x != nil { + return x.Type } + return 0 +} + +// TopicStats, KafkaProduceAggregations, and KafkaFetchAggregations should be deleted once we change dd-go to support the new DataStreamsAggregations format +type DataStreamsAggregations_TopicStats struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Topic string `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"` + Count uint32 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *DataStreamsAggregations_TopicStats) Reset() { + *x = DataStreamsAggregations_TopicStats{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[155] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -func (m *VerticalPodAutoscalerSpec) Unmarshal(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 ErrIntOverflowAgent - } - 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: VerticalPodAutoscalerSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: VerticalPodAutoscalerSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Target", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Target == nil { - m.Target = &VerticalPodAutoscalerTarget{} - } - if err := m.Target.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UpdateMode", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.UpdateMode = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ResourcePolicies", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ResourcePolicies = append(m.ResourcePolicies, &ContainerResourcePolicy{}) - if err := m.ResourcePolicies[len(m.ResourcePolicies)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy + +func (x *DataStreamsAggregations_TopicStats) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DataStreamsAggregations_TopicStats) ProtoMessage() {} + +func (x *DataStreamsAggregations_TopicStats) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[155] + 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 DataStreamsAggregations_TopicStats.ProtoReflect.Descriptor instead. +func (*DataStreamsAggregations_TopicStats) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{127, 0} +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *DataStreamsAggregations_TopicStats) GetTopic() string { + if x != nil { + return x.Topic } - return nil + return "" } -func (m *VerticalPodAutoscalerTarget) Unmarshal(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 ErrIntOverflowAgent - } - 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: VerticalPodAutoscalerTarget: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: VerticalPodAutoscalerTarget: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Kind", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Kind = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(data[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + +func (x *DataStreamsAggregations_TopicStats) GetCount() uint32 { + if x != nil { + return x.Count } + return 0 +} + +type DataStreamsAggregations_KafkaProduceAggregations struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields - if iNdEx > l { - return io.ErrUnexpectedEOF + Stats []*DataStreamsAggregations_TopicStats `protobuf:"bytes,1,rep,name=stats,proto3" json:"stats,omitempty"` +} + +func (x *DataStreamsAggregations_KafkaProduceAggregations) Reset() { + *x = DataStreamsAggregations_KafkaProduceAggregations{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[156] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -func (m *ContainerResourcePolicy) Unmarshal(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 ErrIntOverflowAgent - } - 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: ContainerResourcePolicy: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ContainerResourcePolicy: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContainerName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ContainerName = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Mode", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Mode = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MinAllowed", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.MinAllowed == nil { - m.MinAllowed = &ResourceList{} - } - if err := m.MinAllowed.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MaxAllowed", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.MaxAllowed == nil { - m.MaxAllowed = &ResourceList{} - } - if err := m.MaxAllowed.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ControlledResource", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ControlledResource = append(m.ControlledResource, string(data[iNdEx:postIndex])) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ControlledValues", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ControlledValues = string(data[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy + +func (x *DataStreamsAggregations_KafkaProduceAggregations) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DataStreamsAggregations_KafkaProduceAggregations) ProtoMessage() {} + +func (x *DataStreamsAggregations_KafkaProduceAggregations) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[156] + 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 DataStreamsAggregations_KafkaProduceAggregations.ProtoReflect.Descriptor instead. +func (*DataStreamsAggregations_KafkaProduceAggregations) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{127, 1} +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *DataStreamsAggregations_KafkaProduceAggregations) GetStats() []*DataStreamsAggregations_TopicStats { + if x != nil { + return x.Stats } return nil } -func (m *VerticalPodAutoscalerStatus) Unmarshal(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 ErrIntOverflowAgent - } - 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: VerticalPodAutoscalerStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: VerticalPodAutoscalerStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field LastRecommendedDate", wireType) - } - m.LastRecommendedDate = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.LastRecommendedDate |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Recommendations", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Recommendations = append(m.Recommendations, &ContainerRecommendation{}) - if err := m.Recommendations[len(m.Recommendations)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Conditions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Conditions = append(m.Conditions, &VPACondition{}) - if err := m.Conditions[len(m.Conditions)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF +type DataStreamsAggregations_KafkaFetchAggregations struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Stats []*DataStreamsAggregations_TopicStats `protobuf:"bytes,1,rep,name=stats,proto3" json:"stats,omitempty"` +} + +func (x *DataStreamsAggregations_KafkaFetchAggregations) Reset() { + *x = DataStreamsAggregations_KafkaFetchAggregations{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[157] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -func (m *ContainerRecommendation) Unmarshal(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 ErrIntOverflowAgent - } - 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: ContainerRecommendation: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ContainerRecommendation: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContainerName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ContainerName = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Target", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Target == nil { - m.Target = &ResourceList{} - } - if err := m.Target.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LowerBound", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.LowerBound == nil { - m.LowerBound = &ResourceList{} - } - if err := m.LowerBound.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UpperBound", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.UpperBound == nil { - m.UpperBound = &ResourceList{} - } - if err := m.UpperBound.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UncappedTarget", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.UncappedTarget == nil { - m.UncappedTarget = &ResourceList{} - } - if err := m.UncappedTarget.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy + +func (x *DataStreamsAggregations_KafkaFetchAggregations) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DataStreamsAggregations_KafkaFetchAggregations) ProtoMessage() {} + +func (x *DataStreamsAggregations_KafkaFetchAggregations) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[157] + 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) +} - if iNdEx > l { - return io.ErrUnexpectedEOF +// Deprecated: Use DataStreamsAggregations_KafkaFetchAggregations.ProtoReflect.Descriptor instead. +func (*DataStreamsAggregations_KafkaFetchAggregations) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{127, 2} +} + +func (x *DataStreamsAggregations_KafkaFetchAggregations) GetStats() []*DataStreamsAggregations_TopicStats { + if x != nil { + return x.Stats } return nil } -func (m *VPACondition) Unmarshal(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 ErrIntOverflowAgent - } - 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: VPACondition: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: VPACondition: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ConditionType", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ConditionType = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ConditionStatus", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ConditionStatus = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field LastTransitionTime", wireType) - } - m.LastTransitionTime = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.LastTransitionTime |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Reason = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - 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 ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Message = string(data[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy + +type HTTPStats_Data struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Count uint32 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` + // a protobuf encoded sketch of all the requests in this HTTPStats. In nanoseconds. + // this will be nil if count == 1 + // To decode: + // use a protobuf library to decode this into a github.com/DataDog/sketches-go/ddsketch/pb/sketchpb.DDSketch + // then call github.com/DataDog/sketches-go/ddsketch.FromProto + // To encode: + // create a github.com/DataDog/sketches-go/ddsketch.DDSketch + // call ToProto() and then run through a protobuf encoder + Latencies []byte `protobuf:"bytes,2,opt,name=latencies,proto3" json:"latencies,omitempty"` + // if the HTTPStats has a single sample, this field will be the latency (in nanoseconds) of the only sample. + // this is purely to avoid the overhead of having single entry sketches. + FirstLatencySample float64 `protobuf:"fixed64,4,opt,name=firstLatencySample,proto3" json:"firstLatencySample,omitempty"` +} + +func (x *HTTPStats_Data) Reset() { + *x = HTTPStats_Data{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_agent_proto_msgTypes[159] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *HTTPStats_Data) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*HTTPStats_Data) ProtoMessage() {} + +func (x *HTTPStats_Data) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_agent_proto_msgTypes[159] + 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 HTTPStats_Data.ProtoReflect.Descriptor instead. +func (*HTTPStats_Data) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{130, 1} +} + +func (x *HTTPStats_Data) GetCount() uint32 { + if x != nil { + return x.Count } + return 0 +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *HTTPStats_Data) GetLatencies() []byte { + if x != nil { + return x.Latencies } return nil } -func skipAgent(data []byte) (n int, err error) { - l := len(data) - iNdEx := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowAgent - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowAgent - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if data[iNdEx-1] < 0x80 { - break - } - } - return iNdEx, nil - case 1: - iNdEx += 8 - return iNdEx, nil - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowAgent - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - iNdEx += length - if length < 0 { - return 0, ErrInvalidLengthAgent - } - return iNdEx, nil - case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowAgent - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipAgent(data[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - } - return iNdEx, nil - case 4: - return iNdEx, nil - case 5: - iNdEx += 4 - return iNdEx, nil - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } + +func (x *HTTPStats_Data) GetFirstLatencySample() float64 { + if x != nil { + return x.FirstLatencySample } - panic("unreachable") + return 0 +} + +var File_proto_process_agent_proto protoreflect.FileDescriptor + +var file_proto_process_agent_proto_rawDesc = []byte{ + 0x0a, 0x19, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x2f, + 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x64, 0x61, 0x74, + 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, + 0x6e, 0x74, 0x22, 0xca, 0x01, 0x0a, 0x0c, 0x52, 0x65, 0x73, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, + 0x74, 0x6f, 0x72, 0x12, 0x42, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, + 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x52, 0x65, 0x73, 0x43, + 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, + 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, + 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, + 0x65, 0x12, 0x3e, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x26, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, + 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, + 0x74, 0x6f, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x1a, 0x1c, 0x0a, 0x06, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x74, + 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, + 0xfa, 0x03, 0x0a, 0x0d, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x50, 0x72, 0x6f, + 0x63, 0x12, 0x1a, 0x0a, 0x08, 0x68, 0x6f, 0x73, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x08, 0x68, 0x6f, 0x73, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a, + 0x09, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x49, 0x64, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x09, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x49, 0x64, 0x12, 0x3c, 0x0a, 0x09, 0x70, + 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, + 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, + 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x52, 0x09, + 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x65, 0x73, 0x12, 0x2f, 0x0a, 0x04, 0x68, 0x6f, 0x73, + 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, + 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, + 0x48, 0x6f, 0x73, 0x74, 0x52, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x12, 0x35, 0x0a, 0x04, 0x69, 0x6e, + 0x66, 0x6f, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, + 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, + 0x2e, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x04, 0x69, 0x6e, 0x66, + 0x6f, 0x12, 0x18, 0x0a, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x18, 0x06, 0x20, 0x01, + 0x28, 0x05, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x67, + 0x72, 0x6f, 0x75, 0x70, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, + 0x67, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x40, 0x0a, 0x0a, 0x63, 0x6f, 0x6e, + 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, + 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, + 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x52, + 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x73, 0x12, 0x56, 0x0a, 0x11, 0x63, + 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x48, 0x6f, 0x73, 0x74, 0x54, 0x79, 0x70, 0x65, + 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x28, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, + 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x43, + 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x48, 0x6f, 0x73, 0x74, 0x54, 0x79, 0x70, 0x65, + 0x52, 0x11, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x48, 0x6f, 0x73, 0x74, 0x54, + 0x79, 0x70, 0x65, 0x12, 0x1c, 0x0a, 0x08, 0x68, 0x69, 0x6e, 0x74, 0x4d, 0x61, 0x73, 0x6b, 0x18, + 0x0e, 0x20, 0x01, 0x28, 0x05, 0x48, 0x00, 0x52, 0x08, 0x68, 0x69, 0x6e, 0x74, 0x4d, 0x61, 0x73, + 0x6b, 0x42, 0x07, 0x0a, 0x05, 0x68, 0x69, 0x6e, 0x74, 0x73, 0x4a, 0x04, 0x08, 0x0d, 0x10, 0x0e, + 0x4a, 0x04, 0x08, 0x08, 0x10, 0x09, 0x4a, 0x04, 0x08, 0x09, 0x10, 0x0a, 0x22, 0xf6, 0x01, 0x0a, + 0x16, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x63, 0x44, 0x69, + 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x68, 0x6f, 0x73, 0x74, 0x4e, + 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x68, 0x6f, 0x73, 0x74, 0x4e, + 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x1c, 0x0a, + 0x09, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, + 0x52, 0x09, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x57, 0x0a, 0x12, 0x70, + 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x69, 0x65, + 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, + 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, + 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, + 0x52, 0x12, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, + 0x72, 0x69, 0x65, 0x73, 0x12, 0x2f, 0x0a, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, + 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x48, 0x6f, 0x73, 0x74, 0x52, + 0x04, 0x68, 0x6f, 0x73, 0x74, 0x22, 0xb1, 0x03, 0x0a, 0x11, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, + 0x74, 0x6f, 0x72, 0x52, 0x65, 0x61, 0x6c, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x68, + 0x6f, 0x73, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x68, + 0x6f, 0x73, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x38, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x73, + 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, + 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x50, + 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x53, 0x74, 0x61, 0x74, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, + 0x73, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x6f, 0x73, 0x74, 0x49, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x06, 0x68, 0x6f, 0x73, 0x74, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x72, 0x67, + 0x49, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x6f, 0x72, 0x67, 0x49, 0x64, 0x12, + 0x18, 0x0a, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, + 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x67, 0x72, 0x6f, + 0x75, 0x70, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x67, 0x72, + 0x6f, 0x75, 0x70, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6e, 0x75, 0x6d, 0x43, 0x70, + 0x75, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x6e, 0x75, 0x6d, 0x43, 0x70, 0x75, + 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x4d, 0x65, 0x6d, 0x6f, 0x72, 0x79, + 0x18, 0x09, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x4d, 0x65, 0x6d, + 0x6f, 0x72, 0x79, 0x12, 0x4c, 0x0a, 0x0e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, + 0x53, 0x74, 0x61, 0x74, 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x64, 0x61, + 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, + 0x65, 0x6e, 0x74, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x53, 0x74, 0x61, + 0x74, 0x52, 0x0e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, + 0x73, 0x12, 0x56, 0x0a, 0x11, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x48, 0x6f, + 0x73, 0x74, 0x54, 0x79, 0x70, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x28, 0x2e, 0x64, + 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, + 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x48, 0x6f, + 0x73, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x11, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, + 0x72, 0x48, 0x6f, 0x73, 0x74, 0x54, 0x79, 0x70, 0x65, 0x22, 0x94, 0x03, 0x0a, 0x12, 0x43, 0x6f, + 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, + 0x12, 0x1a, 0x0a, 0x08, 0x68, 0x6f, 0x73, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x08, 0x68, 0x6f, 0x73, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, + 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x49, 0x64, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x09, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x49, 0x64, 0x12, 0x35, 0x0a, 0x04, 0x69, 0x6e, + 0x66, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, + 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, + 0x2e, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x04, 0x69, 0x6e, 0x66, + 0x6f, 0x12, 0x40, 0x0a, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x73, 0x18, + 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, + 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x43, 0x6f, + 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, + 0x65, 0x72, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x1c, 0x0a, + 0x09, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, + 0x52, 0x09, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x2f, 0x0a, 0x04, 0x68, + 0x6f, 0x73, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x64, 0x61, 0x74, 0x61, + 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, + 0x74, 0x2e, 0x48, 0x6f, 0x73, 0x74, 0x52, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x12, 0x56, 0x0a, 0x11, + 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x48, 0x6f, 0x73, 0x74, 0x54, 0x79, 0x70, + 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x28, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, + 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, + 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x48, 0x6f, 0x73, 0x74, 0x54, 0x79, 0x70, + 0x65, 0x52, 0x11, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x48, 0x6f, 0x73, 0x74, + 0x54, 0x79, 0x70, 0x65, 0x4a, 0x04, 0x08, 0x06, 0x10, 0x07, 0x4a, 0x04, 0x08, 0x07, 0x10, 0x08, + 0x22, 0xd8, 0x02, 0x0a, 0x1a, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x43, 0x6f, + 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x52, 0x65, 0x61, 0x6c, 0x54, 0x69, 0x6d, 0x65, 0x12, + 0x1a, 0x0a, 0x08, 0x68, 0x6f, 0x73, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x08, 0x68, 0x6f, 0x73, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x3a, 0x0a, 0x05, 0x73, + 0x74, 0x61, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x64, 0x61, 0x74, + 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, + 0x6e, 0x74, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, + 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x6e, 0x75, 0x6d, 0x43, 0x70, + 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x6e, 0x75, 0x6d, 0x43, 0x70, 0x75, + 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x4d, 0x65, 0x6d, 0x6f, 0x72, 0x79, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x4d, 0x65, 0x6d, + 0x6f, 0x72, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x6f, 0x73, 0x74, 0x49, 0x64, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x03, 0x52, 0x06, 0x68, 0x6f, 0x73, 0x74, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x67, + 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x67, 0x72, + 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x69, + 0x7a, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x53, + 0x69, 0x7a, 0x65, 0x12, 0x56, 0x0a, 0x11, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, + 0x48, 0x6f, 0x73, 0x74, 0x54, 0x79, 0x70, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x28, + 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, + 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, + 0x48, 0x6f, 0x73, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x11, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, + 0x6e, 0x65, 0x72, 0x48, 0x6f, 0x73, 0x74, 0x54, 0x79, 0x70, 0x65, 0x22, 0x30, 0x0a, 0x12, 0x43, + 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x53, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x68, 0x6f, 0x73, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x08, 0x68, 0x6f, 0x73, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x97, 0x02, + 0x0a, 0x0c, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x50, 0x6f, 0x64, 0x12, 0x1a, + 0x0a, 0x08, 0x68, 0x6f, 0x73, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x08, 0x68, 0x6f, 0x73, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6c, + 0x75, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, + 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x09, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x67, 0x72, + 0x6f, 0x75, 0x70, 0x49, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x67, 0x72, 0x6f, + 0x75, 0x70, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x69, 0x7a, + 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x69, + 0x7a, 0x65, 0x12, 0x2e, 0x0a, 0x04, 0x70, 0x6f, 0x64, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x1a, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, + 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x6f, 0x64, 0x52, 0x04, 0x70, 0x6f, + 0x64, 0x73, 0x12, 0x2f, 0x0a, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1b, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, + 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x48, 0x6f, 0x73, 0x74, 0x52, 0x04, 0x68, + 0x6f, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, + 0x09, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x22, 0xe6, 0x01, 0x0a, 0x13, 0x43, 0x6f, 0x6c, 0x6c, + 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x53, 0x65, 0x74, 0x12, + 0x20, 0x0a, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x61, 0x6d, + 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, + 0x18, 0x0a, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, + 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x67, 0x72, 0x6f, + 0x75, 0x70, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x67, 0x72, + 0x6f, 0x75, 0x70, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x43, 0x0a, 0x0b, 0x72, 0x65, 0x70, 0x6c, 0x69, + 0x63, 0x61, 0x53, 0x65, 0x74, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x64, + 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, + 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x53, 0x65, 0x74, 0x52, + 0x0b, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x53, 0x65, 0x74, 0x73, 0x12, 0x12, 0x0a, 0x04, + 0x74, 0x61, 0x67, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, + 0x22, 0xe6, 0x01, 0x0a, 0x13, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x44, 0x65, + 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6c, 0x75, 0x73, + 0x74, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, + 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6c, + 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, + 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x67, 0x72, 0x6f, 0x75, + 0x70, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, + 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x69, 0x7a, 0x65, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x69, 0x7a, 0x65, + 0x12, 0x43, 0x0a, 0x0b, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, + 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, + 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x44, 0x65, + 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x0b, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, + 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x06, 0x20, + 0x03, 0x28, 0x09, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x22, 0xda, 0x01, 0x0a, 0x10, 0x43, 0x6f, + 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x20, + 0x0a, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, + 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x18, + 0x0a, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, + 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x67, 0x72, 0x6f, 0x75, + 0x70, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x67, 0x72, 0x6f, + 0x75, 0x70, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x3a, 0x0a, 0x08, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, + 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, + 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x08, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, + 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x22, 0x98, 0x03, 0x0a, 0x0d, 0x43, 0x6f, 0x6c, 0x6c, 0x65, + 0x63, 0x74, 0x6f, 0x72, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6c, 0x75, 0x73, + 0x74, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, + 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6c, + 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, + 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x67, 0x72, 0x6f, 0x75, + 0x70, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, + 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x69, 0x7a, 0x65, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x69, 0x7a, 0x65, + 0x12, 0x31, 0x0a, 0x05, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x1b, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, + 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x05, 0x6e, 0x6f, + 0x64, 0x65, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, + 0x09, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x12, 0x66, 0x0a, 0x10, 0x68, 0x6f, 0x73, 0x74, 0x41, + 0x6c, 0x69, 0x61, 0x73, 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x18, 0x07, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x3a, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, + 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, + 0x74, 0x6f, 0x72, 0x4e, 0x6f, 0x64, 0x65, 0x2e, 0x48, 0x6f, 0x73, 0x74, 0x41, 0x6c, 0x69, 0x61, + 0x73, 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x10, 0x68, + 0x6f, 0x73, 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x1a, + 0x60, 0x0a, 0x15, 0x48, 0x6f, 0x73, 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x4d, 0x61, 0x70, 0x70, + 0x69, 0x6e, 0x67, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x31, 0x0a, 0x05, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x64, 0x61, 0x74, 0x61, + 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, + 0x74, 0x2e, 0x48, 0x6f, 0x73, 0x74, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, + 0x01, 0x22, 0xd8, 0x01, 0x0a, 0x10, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x43, + 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, + 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6c, 0x75, + 0x73, 0x74, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6c, 0x75, 0x73, + 0x74, 0x65, 0x72, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6c, 0x75, + 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, + 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, + 0x12, 0x1c, 0x0a, 0x09, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x05, 0x52, 0x09, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x38, + 0x0a, 0x07, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, + 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, + 0x07, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, + 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x22, 0xca, 0x01, 0x0a, + 0x11, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, + 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x61, 0x6d, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, + 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, + 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, + 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x05, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, + 0x67, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, + 0x09, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x3d, 0x0a, 0x09, 0x6d, 0x61, + 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, + 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, + 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x52, 0x09, + 0x6d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x73, 0x22, 0x5c, 0x0a, 0x14, 0x43, 0x6f, 0x6c, + 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x43, 0x52, + 0x44, 0x12, 0x44, 0x0a, 0x08, 0x6d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, + 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x43, 0x6f, 0x6c, 0x6c, + 0x65, 0x63, 0x74, 0x6f, 0x72, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x52, 0x08, 0x6d, + 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x22, 0x5b, 0x0a, 0x13, 0x43, 0x6f, 0x6c, 0x6c, 0x65, + 0x63, 0x74, 0x6f, 0x72, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x43, 0x52, 0x12, 0x44, + 0x0a, 0x08, 0x6d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x28, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, + 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, + 0x6f, 0x72, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x52, 0x08, 0x6d, 0x61, 0x6e, 0x69, + 0x66, 0x65, 0x73, 0x74, 0x22, 0xe2, 0x01, 0x0a, 0x12, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, + 0x6f, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x63, + 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a, + 0x09, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x09, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x67, + 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x67, 0x72, + 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x69, + 0x7a, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x53, + 0x69, 0x7a, 0x65, 0x12, 0x40, 0x0a, 0x0a, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, + 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, + 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, + 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x0a, 0x6e, 0x61, 0x6d, 0x65, 0x73, + 0x70, 0x61, 0x63, 0x65, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x06, 0x20, + 0x03, 0x28, 0x09, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x22, 0xca, 0x01, 0x0a, 0x0c, 0x43, 0x6f, + 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x4a, 0x6f, 0x62, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6c, + 0x75, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, + 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x09, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x67, 0x72, + 0x6f, 0x75, 0x70, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x67, 0x72, 0x6f, + 0x75, 0x70, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x69, 0x7a, + 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x69, + 0x7a, 0x65, 0x12, 0x2e, 0x0a, 0x04, 0x6a, 0x6f, 0x62, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x1a, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, + 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x4a, 0x6f, 0x62, 0x52, 0x04, 0x6a, 0x6f, + 0x62, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, + 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x22, 0xda, 0x01, 0x0a, 0x10, 0x43, 0x6f, 0x6c, 0x6c, 0x65, + 0x63, 0x74, 0x6f, 0x72, 0x43, 0x72, 0x6f, 0x6e, 0x4a, 0x6f, 0x62, 0x12, 0x20, 0x0a, 0x0b, 0x63, + 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a, + 0x09, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x09, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x67, + 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x67, 0x72, + 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x69, + 0x7a, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x53, + 0x69, 0x7a, 0x65, 0x12, 0x3a, 0x0a, 0x08, 0x63, 0x72, 0x6f, 0x6e, 0x4a, 0x6f, 0x62, 0x73, 0x18, + 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, + 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x43, 0x72, + 0x6f, 0x6e, 0x4a, 0x6f, 0x62, 0x52, 0x08, 0x63, 0x72, 0x6f, 0x6e, 0x4a, 0x6f, 0x62, 0x73, 0x12, + 0x12, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x74, + 0x61, 0x67, 0x73, 0x22, 0xe2, 0x01, 0x0a, 0x12, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f, + 0x72, 0x44, 0x61, 0x65, 0x6d, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6c, + 0x75, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, + 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x09, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x67, 0x72, + 0x6f, 0x75, 0x70, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x67, 0x72, 0x6f, + 0x75, 0x70, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x69, 0x7a, + 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x69, + 0x7a, 0x65, 0x12, 0x40, 0x0a, 0x0a, 0x64, 0x61, 0x65, 0x6d, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x73, + 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, + 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x44, + 0x61, 0x65, 0x6d, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x52, 0x0a, 0x64, 0x61, 0x65, 0x6d, 0x6f, 0x6e, + 0x53, 0x65, 0x74, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x06, 0x20, 0x03, + 0x28, 0x09, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x22, 0xea, 0x01, 0x0a, 0x14, 0x43, 0x6f, 0x6c, + 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x53, 0x74, 0x61, 0x74, 0x65, 0x66, 0x75, 0x6c, 0x53, 0x65, + 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4e, + 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, + 0x64, 0x12, 0x18, 0x0a, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x05, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x67, + 0x72, 0x6f, 0x75, 0x70, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, + 0x67, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x46, 0x0a, 0x0c, 0x73, 0x74, 0x61, + 0x74, 0x65, 0x66, 0x75, 0x6c, 0x53, 0x65, 0x74, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x22, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, + 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x66, 0x75, 0x6c, + 0x53, 0x65, 0x74, 0x52, 0x0c, 0x73, 0x74, 0x61, 0x74, 0x65, 0x66, 0x75, 0x6c, 0x53, 0x65, 0x74, + 0x73, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, + 0x04, 0x74, 0x61, 0x67, 0x73, 0x22, 0xfe, 0x01, 0x0a, 0x19, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, + 0x74, 0x6f, 0x72, 0x50, 0x65, 0x72, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x74, 0x56, 0x6f, 0x6c, + 0x75, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x61, + 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, + 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, + 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, + 0x72, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x1c, 0x0a, + 0x09, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, + 0x52, 0x09, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x55, 0x0a, 0x11, 0x70, + 0x65, 0x72, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x74, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x73, + 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, + 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x50, + 0x65, 0x72, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x74, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x52, + 0x11, 0x70, 0x65, 0x72, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x74, 0x56, 0x6f, 0x6c, 0x75, 0x6d, + 0x65, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, + 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x22, 0x92, 0x02, 0x0a, 0x1e, 0x43, 0x6f, 0x6c, 0x6c, 0x65, + 0x63, 0x74, 0x6f, 0x72, 0x50, 0x65, 0x72, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x74, 0x56, 0x6f, + 0x6c, 0x75, 0x6d, 0x65, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6c, 0x75, + 0x73, 0x74, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, + 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x63, + 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, + 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x67, 0x72, 0x6f, + 0x75, 0x70, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, + 0x70, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x69, 0x7a, 0x65, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x69, 0x7a, + 0x65, 0x12, 0x64, 0x0a, 0x16, 0x70, 0x65, 0x72, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x74, 0x56, + 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x2c, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, + 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x65, 0x72, 0x73, 0x69, 0x73, + 0x74, 0x65, 0x6e, 0x74, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x52, + 0x16, 0x70, 0x65, 0x72, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x74, 0x56, 0x6f, 0x6c, 0x75, 0x6d, + 0x65, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, + 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x22, 0xce, 0x01, 0x0a, 0x0d, + 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x20, 0x0a, + 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, + 0x1c, 0x0a, 0x09, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x09, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x18, 0x0a, + 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, + 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x67, 0x72, 0x6f, 0x75, 0x70, + 0x53, 0x69, 0x7a, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x67, 0x72, 0x6f, 0x75, + 0x70, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x31, 0x0a, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x18, 0x05, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, + 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x52, 0x6f, 0x6c, + 0x65, 0x52, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, + 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x22, 0xea, 0x01, 0x0a, + 0x14, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x6f, 0x6c, 0x65, 0x42, 0x69, + 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, + 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6c, 0x75, 0x73, + 0x74, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6c, 0x75, 0x73, 0x74, + 0x65, 0x72, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6c, 0x75, 0x73, + 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, + 0x1c, 0x0a, 0x09, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x05, 0x52, 0x09, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x46, 0x0a, + 0x0c, 0x72, 0x6f, 0x6c, 0x65, 0x42, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x05, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, + 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x52, 0x6f, 0x6c, 0x65, + 0x42, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x52, 0x0c, 0x72, 0x6f, 0x6c, 0x65, 0x42, 0x69, 0x6e, + 0x64, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x06, 0x20, + 0x03, 0x28, 0x09, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x22, 0xea, 0x01, 0x0a, 0x14, 0x43, 0x6f, + 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x6f, + 0x6c, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x61, 0x6d, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, + 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, + 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, + 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x05, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, + 0x67, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, + 0x09, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x46, 0x0a, 0x0c, 0x63, 0x6c, + 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x22, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, + 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, + 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x0c, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x6f, 0x6c, + 0x65, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, + 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x22, 0x86, 0x02, 0x0a, 0x1b, 0x43, 0x6f, 0x6c, 0x6c, 0x65, + 0x63, 0x74, 0x6f, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x6f, 0x6c, 0x65, 0x42, + 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, + 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6c, 0x75, + 0x73, 0x74, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6c, 0x75, 0x73, + 0x74, 0x65, 0x72, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6c, 0x75, + 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, + 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, + 0x12, 0x1c, 0x0a, 0x09, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x05, 0x52, 0x09, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x5b, + 0x0a, 0x13, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x6f, 0x6c, 0x65, 0x42, 0x69, 0x6e, + 0x64, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x64, 0x61, + 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, + 0x65, 0x6e, 0x74, 0x2e, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x6f, 0x6c, 0x65, 0x42, + 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x52, 0x13, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, + 0x6f, 0x6c, 0x65, 0x42, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x74, + 0x61, 0x67, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x22, + 0xf6, 0x01, 0x0a, 0x17, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x72, + 0x76, 0x69, 0x63, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x63, + 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a, + 0x09, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x09, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x67, + 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x67, 0x72, + 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x69, + 0x7a, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x53, + 0x69, 0x7a, 0x65, 0x12, 0x4f, 0x0a, 0x0f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x41, 0x63, + 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x64, + 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, + 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x41, 0x63, 0x63, 0x6f, + 0x75, 0x6e, 0x74, 0x52, 0x0f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x41, 0x63, 0x63, 0x6f, + 0x75, 0x6e, 0x74, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x06, 0x20, 0x03, + 0x28, 0x09, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x22, 0xdc, 0x01, 0x0a, 0x10, 0x43, 0x6f, 0x6c, + 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x49, 0x6e, 0x67, 0x72, 0x65, 0x73, 0x73, 0x12, 0x20, 0x0a, + 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, + 0x1c, 0x0a, 0x09, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x09, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x18, 0x0a, + 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, + 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x67, 0x72, 0x6f, 0x75, 0x70, + 0x53, 0x69, 0x7a, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x67, 0x72, 0x6f, 0x75, + 0x70, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x3c, 0x0a, 0x09, 0x69, 0x6e, 0x67, 0x72, 0x65, 0x73, 0x73, + 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, + 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, + 0x2e, 0x49, 0x6e, 0x67, 0x72, 0x65, 0x73, 0x73, 0x52, 0x09, 0x69, 0x6e, 0x67, 0x72, 0x65, 0x73, + 0x73, 0x65, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, + 0x09, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x22, 0x92, 0x02, 0x0a, 0x1e, 0x43, 0x6f, 0x6c, 0x6c, + 0x65, 0x63, 0x74, 0x6f, 0x72, 0x56, 0x65, 0x72, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x50, 0x6f, 0x64, + 0x41, 0x75, 0x74, 0x6f, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x72, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6c, + 0x75, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, + 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x09, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x67, 0x72, + 0x6f, 0x75, 0x70, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x67, 0x72, 0x6f, + 0x75, 0x70, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x69, 0x7a, + 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x69, + 0x7a, 0x65, 0x12, 0x64, 0x0a, 0x16, 0x76, 0x65, 0x72, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x50, 0x6f, + 0x64, 0x41, 0x75, 0x74, 0x6f, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x72, 0x73, 0x18, 0x05, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, + 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x56, 0x65, 0x72, 0x74, 0x69, + 0x63, 0x61, 0x6c, 0x50, 0x6f, 0x64, 0x41, 0x75, 0x74, 0x6f, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x72, + 0x52, 0x16, 0x76, 0x65, 0x72, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x50, 0x6f, 0x64, 0x41, 0x75, 0x74, + 0x6f, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x72, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, + 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x22, 0x53, 0x0a, 0x0f, + 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, + 0x24, 0x0a, 0x0d, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x73, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0d, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x43, 0x6c, + 0x69, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, + 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, + 0x6c, 0x22, 0x89, 0x07, 0x0a, 0x07, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x12, 0x10, 0x0a, + 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, + 0x10, 0x0a, 0x03, 0x70, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x70, 0x69, + 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x73, 0x50, 0x69, 0x64, 0x18, 0x14, 0x20, 0x01, 0x28, 0x05, + 0x52, 0x05, 0x6e, 0x73, 0x50, 0x69, 0x64, 0x12, 0x2f, 0x0a, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, + 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x48, 0x6f, + 0x73, 0x74, 0x52, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, + 0x61, 0x6e, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x64, 0x61, 0x74, 0x61, + 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, + 0x74, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x61, + 0x6e, 0x64, 0x12, 0x36, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x22, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, + 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, + 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x39, 0x0a, 0x06, 0x6d, 0x65, + 0x6d, 0x6f, 0x72, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x64, 0x61, 0x74, + 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, + 0x6e, 0x74, 0x2e, 0x4d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x53, 0x74, 0x61, 0x74, 0x52, 0x06, 0x6d, + 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x12, 0x30, 0x0a, 0x03, 0x63, 0x70, 0x75, 0x18, 0x08, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, + 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x43, 0x50, 0x55, 0x53, 0x74, + 0x61, 0x74, 0x52, 0x03, 0x63, 0x70, 0x75, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x63, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x3e, 0x0a, 0x09, 0x63, 0x6f, 0x6e, 0x74, 0x61, + 0x69, 0x6e, 0x65, 0x72, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x64, 0x61, 0x74, + 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, + 0x6e, 0x74, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x52, 0x09, 0x63, 0x6f, + 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x12, 0x20, 0x0a, 0x0b, 0x6f, 0x70, 0x65, 0x6e, 0x46, + 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x6f, 0x70, + 0x65, 0x6e, 0x46, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x39, 0x0a, 0x05, 0x73, 0x74, 0x61, + 0x74, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x23, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, + 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, + 0x2e, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, + 0x74, 0x61, 0x74, 0x65, 0x12, 0x35, 0x0a, 0x06, 0x69, 0x6f, 0x53, 0x74, 0x61, 0x74, 0x18, 0x0d, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, + 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x49, 0x4f, 0x53, + 0x74, 0x61, 0x74, 0x52, 0x06, 0x69, 0x6f, 0x53, 0x74, 0x61, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x63, + 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x12, 0x22, 0x0a, + 0x0c, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x4b, 0x65, 0x79, 0x18, 0x0f, 0x20, + 0x01, 0x28, 0x0d, 0x52, 0x0c, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x4b, 0x65, + 0x79, 0x12, 0x32, 0x0a, 0x14, 0x76, 0x6f, 0x6c, 0x75, 0x6e, 0x74, 0x61, 0x72, 0x79, 0x43, 0x74, + 0x78, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x65, 0x73, 0x18, 0x10, 0x20, 0x01, 0x28, 0x04, 0x52, + 0x14, 0x76, 0x6f, 0x6c, 0x75, 0x6e, 0x74, 0x61, 0x72, 0x79, 0x43, 0x74, 0x78, 0x53, 0x77, 0x69, + 0x74, 0x63, 0x68, 0x65, 0x73, 0x12, 0x36, 0x0a, 0x16, 0x69, 0x6e, 0x76, 0x6f, 0x6c, 0x75, 0x6e, + 0x74, 0x61, 0x72, 0x79, 0x43, 0x74, 0x78, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x65, 0x73, 0x18, + 0x11, 0x20, 0x01, 0x28, 0x04, 0x52, 0x16, 0x69, 0x6e, 0x76, 0x6f, 0x6c, 0x75, 0x6e, 0x74, 0x61, + 0x72, 0x79, 0x43, 0x74, 0x78, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x65, 0x73, 0x12, 0x18, 0x0a, + 0x07, 0x62, 0x79, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x18, 0x12, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, + 0x62, 0x79, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x12, 0x2a, 0x0a, 0x10, 0x63, 0x6f, 0x6e, 0x74, 0x61, + 0x69, 0x6e, 0x65, 0x72, 0x42, 0x79, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x18, 0x13, 0x20, 0x01, 0x28, + 0x0c, 0x52, 0x10, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x42, 0x79, 0x74, 0x65, + 0x4b, 0x65, 0x79, 0x12, 0x42, 0x0a, 0x08, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x18, + 0x15, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, + 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x72, + 0x6f, 0x63, 0x65, 0x73, 0x73, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x52, 0x08, 0x6e, + 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x4a, 0x04, 0x08, 0x06, 0x10, 0x07, 0x22, 0x97, 0x02, + 0x0a, 0x10, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, + 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x70, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, + 0x03, 0x70, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x73, 0x50, 0x69, 0x64, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x05, 0x52, 0x05, 0x6e, 0x73, 0x50, 0x69, 0x64, 0x12, 0x2f, 0x0a, 0x04, 0x68, 0x6f, + 0x73, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, + 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, + 0x2e, 0x48, 0x6f, 0x73, 0x74, 0x52, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x07, 0x63, + 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x64, + 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, + 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x52, 0x07, 0x63, 0x6f, + 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x12, 0x36, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, + 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x72, 0x6f, 0x63, + 0x65, 0x73, 0x73, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x1e, 0x0a, + 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x18, 0x0a, + 0x07, 0x62, 0x79, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, + 0x62, 0x79, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x22, 0x99, 0x01, 0x0a, 0x07, 0x43, 0x6f, 0x6d, 0x6d, + 0x61, 0x6e, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x61, 0x72, 0x67, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x09, 0x52, 0x04, 0x61, 0x72, 0x67, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x63, 0x77, 0x64, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x63, 0x77, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x72, 0x6f, 0x6f, + 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x72, 0x6f, 0x6f, 0x74, 0x12, 0x16, 0x0a, + 0x06, 0x6f, 0x6e, 0x44, 0x69, 0x73, 0x6b, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x6f, + 0x6e, 0x44, 0x69, 0x73, 0x6b, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x70, 0x69, 0x64, 0x18, 0x06, 0x20, + 0x01, 0x28, 0x05, 0x52, 0x04, 0x70, 0x70, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x67, 0x72, + 0x6f, 0x75, 0x70, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x70, 0x67, 0x72, 0x6f, 0x75, + 0x70, 0x12, 0x10, 0x0a, 0x03, 0x65, 0x78, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, + 0x65, 0x78, 0x65, 0x22, 0x95, 0x01, 0x0a, 0x0b, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x55, + 0x73, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x67, 0x69, 0x64, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x67, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x65, + 0x75, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x65, 0x75, 0x69, 0x64, 0x12, + 0x12, 0x0a, 0x04, 0x65, 0x67, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x65, + 0x67, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x75, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, + 0x05, 0x52, 0x04, 0x73, 0x75, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x67, 0x69, 0x64, 0x18, + 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x73, 0x67, 0x69, 0x64, 0x22, 0x57, 0x0a, 0x0f, 0x50, + 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x12, 0x26, + 0x0a, 0x0e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x61, 0x74, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x02, 0x52, 0x0e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x52, 0x61, 0x74, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x62, 0x79, 0x74, 0x65, 0x73, 0x52, + 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x02, 0x52, 0x09, 0x62, 0x79, 0x74, 0x65, 0x73, + 0x52, 0x61, 0x74, 0x65, 0x22, 0x76, 0x0a, 0x0d, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, + 0x72, 0x41, 0x64, 0x64, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x02, 0x69, 0x70, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x05, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x41, 0x0a, 0x08, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x25, 0x2e, 0x64, 0x61, + 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, + 0x65, 0x6e, 0x74, 0x2e, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, + 0x70, 0x65, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x22, 0xd3, 0x07, 0x0a, + 0x09, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, + 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x0e, + 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, + 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x70, 0x75, 0x4c, + 0x69, 0x6d, 0x69, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x02, 0x52, 0x08, 0x63, 0x70, 0x75, 0x4c, + 0x69, 0x6d, 0x69, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x4c, 0x69, + 0x6d, 0x69, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x6d, 0x65, 0x6d, 0x6f, 0x72, + 0x79, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x3b, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, + 0x08, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x25, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, + 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x43, 0x6f, + 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, + 0x61, 0x74, 0x65, 0x12, 0x3e, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x18, 0x09, 0x20, + 0x01, 0x28, 0x0e, 0x32, 0x26, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, + 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x43, 0x6f, 0x6e, 0x74, + 0x61, 0x69, 0x6e, 0x65, 0x72, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x52, 0x06, 0x68, 0x65, 0x61, + 0x6c, 0x74, 0x68, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x18, 0x0a, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x12, 0x12, 0x0a, + 0x04, 0x72, 0x62, 0x70, 0x73, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x02, 0x52, 0x04, 0x72, 0x62, 0x70, + 0x73, 0x12, 0x12, 0x0a, 0x04, 0x77, 0x62, 0x70, 0x73, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x02, 0x52, + 0x04, 0x77, 0x62, 0x70, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x0d, 0x20, 0x01, + 0x28, 0x0d, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x65, 0x74, 0x52, 0x63, + 0x76, 0x64, 0x50, 0x73, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x02, 0x52, 0x09, 0x6e, 0x65, 0x74, 0x52, + 0x63, 0x76, 0x64, 0x50, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x65, 0x74, 0x53, 0x65, 0x6e, 0x74, + 0x50, 0x73, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x02, 0x52, 0x09, 0x6e, 0x65, 0x74, 0x53, 0x65, 0x6e, + 0x74, 0x50, 0x73, 0x12, 0x1e, 0x0a, 0x0a, 0x6e, 0x65, 0x74, 0x52, 0x63, 0x76, 0x64, 0x42, 0x70, + 0x73, 0x18, 0x10, 0x20, 0x01, 0x28, 0x02, 0x52, 0x0a, 0x6e, 0x65, 0x74, 0x52, 0x63, 0x76, 0x64, + 0x42, 0x70, 0x73, 0x12, 0x1e, 0x0a, 0x0a, 0x6e, 0x65, 0x74, 0x53, 0x65, 0x6e, 0x74, 0x42, 0x70, + 0x73, 0x18, 0x11, 0x20, 0x01, 0x28, 0x02, 0x52, 0x0a, 0x6e, 0x65, 0x74, 0x53, 0x65, 0x6e, 0x74, + 0x42, 0x70, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x50, 0x63, 0x74, 0x18, 0x12, + 0x20, 0x01, 0x28, 0x02, 0x52, 0x07, 0x75, 0x73, 0x65, 0x72, 0x50, 0x63, 0x74, 0x12, 0x1c, 0x0a, + 0x09, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x50, 0x63, 0x74, 0x18, 0x13, 0x20, 0x01, 0x28, 0x02, + 0x52, 0x09, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x50, 0x63, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x74, + 0x6f, 0x74, 0x61, 0x6c, 0x50, 0x63, 0x74, 0x18, 0x14, 0x20, 0x01, 0x28, 0x02, 0x52, 0x08, 0x74, + 0x6f, 0x74, 0x61, 0x6c, 0x50, 0x63, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x65, 0x6d, 0x52, 0x73, + 0x73, 0x18, 0x15, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x6d, 0x65, 0x6d, 0x52, 0x73, 0x73, 0x12, + 0x1a, 0x0a, 0x08, 0x6d, 0x65, 0x6d, 0x43, 0x61, 0x63, 0x68, 0x65, 0x18, 0x16, 0x20, 0x01, 0x28, + 0x04, 0x52, 0x08, 0x6d, 0x65, 0x6d, 0x43, 0x61, 0x63, 0x68, 0x65, 0x12, 0x2f, 0x0a, 0x04, 0x68, + 0x6f, 0x73, 0x74, 0x18, 0x17, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x64, 0x61, 0x74, 0x61, + 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, + 0x74, 0x2e, 0x48, 0x6f, 0x73, 0x74, 0x52, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, + 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x18, 0x18, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x73, + 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x62, 0x79, 0x74, 0x65, 0x4b, 0x65, + 0x79, 0x18, 0x19, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x62, 0x79, 0x74, 0x65, 0x4b, 0x65, 0x79, + 0x12, 0x12, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x1a, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, + 0x74, 0x61, 0x67, 0x73, 0x12, 0x42, 0x0a, 0x09, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, + 0x73, 0x18, 0x1b, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, + 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, + 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x52, 0x09, 0x61, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x74, 0x68, 0x72, 0x65, + 0x61, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x1c, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x74, + 0x68, 0x72, 0x65, 0x61, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x74, 0x68, + 0x72, 0x65, 0x61, 0x64, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x1d, 0x20, 0x01, 0x28, 0x04, 0x52, + 0x0b, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x1a, 0x0a, 0x08, + 0x6d, 0x65, 0x6d, 0x55, 0x73, 0x61, 0x67, 0x65, 0x18, 0x1e, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, + 0x6d, 0x65, 0x6d, 0x55, 0x73, 0x61, 0x67, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x70, 0x75, 0x55, + 0x73, 0x61, 0x67, 0x65, 0x4e, 0x73, 0x18, 0x1f, 0x20, 0x01, 0x28, 0x02, 0x52, 0x0a, 0x63, 0x70, + 0x75, 0x55, 0x73, 0x61, 0x67, 0x65, 0x4e, 0x73, 0x12, 0x22, 0x0a, 0x0c, 0x6d, 0x65, 0x6d, 0x41, + 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x64, 0x18, 0x20, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, + 0x6d, 0x65, 0x6d, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x64, 0x4a, 0x04, 0x08, 0x07, + 0x10, 0x08, 0x22, 0xfb, 0x08, 0x0a, 0x0b, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x53, 0x74, + 0x61, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x70, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, + 0x03, 0x70, 0x69, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, + 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x54, 0x69, 0x6d, 0x65, 0x12, 0x39, 0x0a, 0x06, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, + 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x4d, 0x65, 0x6d, + 0x6f, 0x72, 0x79, 0x53, 0x74, 0x61, 0x74, 0x52, 0x06, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x12, + 0x30, 0x0a, 0x03, 0x63, 0x70, 0x75, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x64, + 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, + 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x43, 0x50, 0x55, 0x53, 0x74, 0x61, 0x74, 0x52, 0x03, 0x63, 0x70, + 0x75, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x69, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, + 0x04, 0x6e, 0x69, 0x63, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x73, + 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x73, 0x12, + 0x20, 0x0a, 0x0b, 0x6f, 0x70, 0x65, 0x6e, 0x46, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x08, + 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x6f, 0x70, 0x65, 0x6e, 0x46, 0x64, 0x43, 0x6f, 0x75, 0x6e, + 0x74, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, + 0x6b, 0x65, 0x79, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, + 0x49, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, + 0x6e, 0x65, 0x72, 0x49, 0x64, 0x12, 0x4d, 0x0a, 0x0e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, + 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x25, 0x2e, + 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, + 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x53, + 0x74, 0x61, 0x74, 0x65, 0x52, 0x0e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x53, + 0x74, 0x61, 0x74, 0x65, 0x12, 0x47, 0x0a, 0x0c, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x53, + 0x74, 0x61, 0x74, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x23, 0x2e, 0x64, 0x61, 0x74, + 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, + 0x6e, 0x74, 0x2e, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, + 0x0c, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x35, 0x0a, + 0x06, 0x69, 0x6f, 0x53, 0x74, 0x61, 0x74, 0x18, 0x13, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, + 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, + 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x49, 0x4f, 0x53, 0x74, 0x61, 0x74, 0x52, 0x06, 0x69, 0x6f, + 0x53, 0x74, 0x61, 0x74, 0x12, 0x42, 0x0a, 0x08, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x73, + 0x18, 0x1c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, + 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x50, + 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x52, 0x08, + 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x12, 0x50, 0x0a, 0x0f, 0x63, 0x6f, 0x6e, 0x74, + 0x61, 0x69, 0x6e, 0x65, 0x72, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x18, 0x0f, 0x20, 0x01, 0x28, + 0x0e, 0x32, 0x26, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, + 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, + 0x6e, 0x65, 0x72, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x52, 0x0f, 0x63, 0x6f, 0x6e, 0x74, 0x61, + 0x69, 0x6e, 0x65, 0x72, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x12, 0x24, 0x0a, 0x0d, 0x63, 0x6f, + 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x52, 0x62, 0x70, 0x73, 0x18, 0x10, 0x20, 0x01, 0x28, + 0x02, 0x52, 0x0d, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x52, 0x62, 0x70, 0x73, + 0x12, 0x24, 0x0a, 0x0d, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x57, 0x62, 0x70, + 0x73, 0x18, 0x11, 0x20, 0x01, 0x28, 0x02, 0x52, 0x0d, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, + 0x65, 0x72, 0x57, 0x62, 0x70, 0x73, 0x12, 0x22, 0x0a, 0x0c, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, + 0x6e, 0x65, 0x72, 0x4b, 0x65, 0x79, 0x18, 0x12, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0c, 0x63, 0x6f, + 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x4b, 0x65, 0x79, 0x12, 0x2e, 0x0a, 0x12, 0x63, 0x6f, + 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x4e, 0x65, 0x74, 0x52, 0x63, 0x76, 0x64, 0x50, 0x73, + 0x18, 0x14, 0x20, 0x01, 0x28, 0x02, 0x52, 0x12, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, + 0x72, 0x4e, 0x65, 0x74, 0x52, 0x63, 0x76, 0x64, 0x50, 0x73, 0x12, 0x2e, 0x0a, 0x12, 0x63, 0x6f, + 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x4e, 0x65, 0x74, 0x53, 0x65, 0x6e, 0x74, 0x50, 0x73, + 0x18, 0x15, 0x20, 0x01, 0x28, 0x02, 0x52, 0x12, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, + 0x72, 0x4e, 0x65, 0x74, 0x53, 0x65, 0x6e, 0x74, 0x50, 0x73, 0x12, 0x30, 0x0a, 0x13, 0x63, 0x6f, + 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x4e, 0x65, 0x74, 0x52, 0x63, 0x76, 0x64, 0x42, 0x70, + 0x73, 0x18, 0x16, 0x20, 0x01, 0x28, 0x02, 0x52, 0x13, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, + 0x65, 0x72, 0x4e, 0x65, 0x74, 0x52, 0x63, 0x76, 0x64, 0x42, 0x70, 0x73, 0x12, 0x30, 0x0a, 0x13, + 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x4e, 0x65, 0x74, 0x53, 0x65, 0x6e, 0x74, + 0x42, 0x70, 0x73, 0x18, 0x17, 0x20, 0x01, 0x28, 0x02, 0x52, 0x13, 0x63, 0x6f, 0x6e, 0x74, 0x61, + 0x69, 0x6e, 0x65, 0x72, 0x4e, 0x65, 0x74, 0x53, 0x65, 0x6e, 0x74, 0x42, 0x70, 0x73, 0x12, 0x32, + 0x0a, 0x14, 0x76, 0x6f, 0x6c, 0x75, 0x6e, 0x74, 0x61, 0x72, 0x79, 0x43, 0x74, 0x78, 0x53, 0x77, + 0x69, 0x74, 0x63, 0x68, 0x65, 0x73, 0x18, 0x18, 0x20, 0x01, 0x28, 0x04, 0x52, 0x14, 0x76, 0x6f, + 0x6c, 0x75, 0x6e, 0x74, 0x61, 0x72, 0x79, 0x43, 0x74, 0x78, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, + 0x65, 0x73, 0x12, 0x36, 0x0a, 0x16, 0x69, 0x6e, 0x76, 0x6f, 0x6c, 0x75, 0x6e, 0x74, 0x61, 0x72, + 0x79, 0x43, 0x74, 0x78, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x65, 0x73, 0x18, 0x19, 0x20, 0x01, + 0x28, 0x04, 0x52, 0x16, 0x69, 0x6e, 0x76, 0x6f, 0x6c, 0x75, 0x6e, 0x74, 0x61, 0x72, 0x79, 0x43, + 0x74, 0x78, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x65, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x62, 0x79, + 0x74, 0x65, 0x4b, 0x65, 0x79, 0x18, 0x1a, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x62, 0x79, 0x74, + 0x65, 0x4b, 0x65, 0x79, 0x12, 0x2a, 0x0a, 0x10, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, + 0x72, 0x42, 0x79, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x18, 0x1b, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x10, + 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x42, 0x79, 0x74, 0x65, 0x4b, 0x65, 0x79, + 0x22, 0xb1, 0x01, 0x0a, 0x11, 0x50, 0x72, 0x6f, 0x63, 0x53, 0x74, 0x61, 0x74, 0x73, 0x57, 0x69, + 0x74, 0x68, 0x50, 0x65, 0x72, 0x6d, 0x12, 0x20, 0x0a, 0x0b, 0x6f, 0x70, 0x65, 0x6e, 0x46, 0x44, + 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x6f, 0x70, 0x65, + 0x6e, 0x46, 0x44, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x61, 0x64, + 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x72, 0x65, 0x61, + 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x77, 0x72, 0x69, 0x74, 0x65, 0x43, + 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x77, 0x72, 0x69, 0x74, + 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x61, 0x64, 0x42, 0x79, + 0x74, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x72, 0x65, 0x61, 0x64, 0x42, + 0x79, 0x74, 0x65, 0x73, 0x12, 0x1e, 0x0a, 0x0a, 0x77, 0x72, 0x69, 0x74, 0x65, 0x42, 0x79, 0x74, + 0x65, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x77, 0x72, 0x69, 0x74, 0x65, 0x42, + 0x79, 0x74, 0x65, 0x73, 0x22, 0xe0, 0x01, 0x0a, 0x16, 0x50, 0x72, 0x6f, 0x63, 0x53, 0x74, 0x61, + 0x74, 0x73, 0x57, 0x69, 0x74, 0x68, 0x50, 0x65, 0x72, 0x6d, 0x42, 0x79, 0x50, 0x49, 0x44, 0x12, + 0x5d, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x74, 0x73, 0x42, 0x79, 0x50, 0x49, 0x44, 0x18, 0x01, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x3d, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, + 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x72, 0x6f, 0x63, + 0x53, 0x74, 0x61, 0x74, 0x73, 0x57, 0x69, 0x74, 0x68, 0x50, 0x65, 0x72, 0x6d, 0x42, 0x79, 0x50, + 0x49, 0x44, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x73, 0x42, 0x79, 0x50, 0x49, 0x44, 0x45, 0x6e, 0x74, + 0x72, 0x79, 0x52, 0x0a, 0x73, 0x74, 0x61, 0x74, 0x73, 0x42, 0x79, 0x50, 0x49, 0x44, 0x1a, 0x67, + 0x0a, 0x0f, 0x53, 0x74, 0x61, 0x74, 0x73, 0x42, 0x79, 0x50, 0x49, 0x44, 0x45, 0x6e, 0x74, 0x72, + 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, + 0x6b, 0x65, 0x79, 0x12, 0x3e, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, + 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x72, 0x6f, 0x63, 0x53, + 0x74, 0x61, 0x74, 0x73, 0x57, 0x69, 0x74, 0x68, 0x50, 0x65, 0x72, 0x6d, 0x52, 0x05, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xea, 0x05, 0x0a, 0x0d, 0x43, 0x6f, 0x6e, 0x74, + 0x61, 0x69, 0x6e, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x75, 0x73, 0x65, + 0x72, 0x50, 0x63, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x02, 0x52, 0x07, 0x75, 0x73, 0x65, 0x72, + 0x50, 0x63, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x50, 0x63, 0x74, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x02, 0x52, 0x09, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x50, 0x63, + 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x50, 0x63, 0x74, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x02, 0x52, 0x08, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x50, 0x63, 0x74, 0x12, 0x1a, 0x0a, + 0x08, 0x63, 0x70, 0x75, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x02, 0x52, + 0x08, 0x63, 0x70, 0x75, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x65, 0x6d, + 0x52, 0x73, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x6d, 0x65, 0x6d, 0x52, 0x73, + 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x65, 0x6d, 0x43, 0x61, 0x63, 0x68, 0x65, 0x18, 0x07, 0x20, + 0x01, 0x28, 0x04, 0x52, 0x08, 0x6d, 0x65, 0x6d, 0x43, 0x61, 0x63, 0x68, 0x65, 0x12, 0x1a, 0x0a, + 0x08, 0x6d, 0x65, 0x6d, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x04, 0x52, + 0x08, 0x6d, 0x65, 0x6d, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x72, 0x62, 0x70, + 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x02, 0x52, 0x04, 0x72, 0x62, 0x70, 0x73, 0x12, 0x12, 0x0a, + 0x04, 0x77, 0x62, 0x70, 0x73, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x02, 0x52, 0x04, 0x77, 0x62, 0x70, + 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x65, 0x74, 0x52, 0x63, 0x76, 0x64, 0x50, 0x73, 0x18, 0x0b, + 0x20, 0x01, 0x28, 0x02, 0x52, 0x09, 0x6e, 0x65, 0x74, 0x52, 0x63, 0x76, 0x64, 0x50, 0x73, 0x12, + 0x1c, 0x0a, 0x09, 0x6e, 0x65, 0x74, 0x53, 0x65, 0x6e, 0x74, 0x50, 0x73, 0x18, 0x0c, 0x20, 0x01, + 0x28, 0x02, 0x52, 0x09, 0x6e, 0x65, 0x74, 0x53, 0x65, 0x6e, 0x74, 0x50, 0x73, 0x12, 0x1e, 0x0a, + 0x0a, 0x6e, 0x65, 0x74, 0x52, 0x63, 0x76, 0x64, 0x42, 0x70, 0x73, 0x18, 0x0d, 0x20, 0x01, 0x28, + 0x02, 0x52, 0x0a, 0x6e, 0x65, 0x74, 0x52, 0x63, 0x76, 0x64, 0x42, 0x70, 0x73, 0x12, 0x1e, 0x0a, + 0x0a, 0x6e, 0x65, 0x74, 0x53, 0x65, 0x6e, 0x74, 0x42, 0x70, 0x73, 0x18, 0x0e, 0x20, 0x01, 0x28, + 0x02, 0x52, 0x0a, 0x6e, 0x65, 0x74, 0x53, 0x65, 0x6e, 0x74, 0x42, 0x70, 0x73, 0x12, 0x3b, 0x0a, + 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x25, 0x2e, 0x64, + 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, + 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x53, 0x74, + 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x3e, 0x0a, 0x06, 0x68, 0x65, + 0x61, 0x6c, 0x74, 0x68, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x26, 0x2e, 0x64, 0x61, 0x74, + 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, + 0x6e, 0x74, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x48, 0x65, 0x61, 0x6c, + 0x74, 0x68, 0x52, 0x06, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, + 0x79, 0x18, 0x11, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x18, 0x0a, 0x07, + 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x18, 0x12, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x73, + 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x62, 0x79, 0x74, 0x65, 0x4b, 0x65, + 0x79, 0x18, 0x13, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x62, 0x79, 0x74, 0x65, 0x4b, 0x65, 0x79, + 0x12, 0x20, 0x0a, 0x0b, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x18, + 0x14, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x43, 0x6f, 0x75, + 0x6e, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x4c, 0x69, 0x6d, 0x69, + 0x74, 0x18, 0x15, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x4c, + 0x69, 0x6d, 0x69, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x65, 0x6d, 0x55, 0x73, 0x61, 0x67, 0x65, + 0x18, 0x16, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x6d, 0x65, 0x6d, 0x55, 0x73, 0x61, 0x67, 0x65, + 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x70, 0x75, 0x55, 0x73, 0x61, 0x67, 0x65, 0x4e, 0x73, 0x18, 0x17, + 0x20, 0x01, 0x28, 0x02, 0x52, 0x0a, 0x63, 0x70, 0x75, 0x55, 0x73, 0x61, 0x67, 0x65, 0x4e, 0x73, + 0x12, 0x22, 0x0a, 0x0c, 0x6d, 0x65, 0x6d, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x64, + 0x18, 0x18, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x6d, 0x65, 0x6d, 0x41, 0x63, 0x63, 0x6f, 0x75, + 0x6e, 0x74, 0x65, 0x64, 0x22, 0xab, 0x01, 0x0a, 0x0a, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x49, + 0x6e, 0x66, 0x6f, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x04, 0x75, 0x75, 0x69, 0x64, 0x12, 0x2d, 0x0a, 0x02, 0x6f, 0x73, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, + 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x4f, 0x53, 0x49, 0x6e, + 0x66, 0x6f, 0x52, 0x02, 0x6f, 0x73, 0x12, 0x32, 0x0a, 0x04, 0x63, 0x70, 0x75, 0x73, 0x18, 0x03, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, + 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x43, 0x50, 0x55, + 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x04, 0x63, 0x70, 0x75, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x74, 0x6f, + 0x74, 0x61, 0x6c, 0x4d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, + 0x0b, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x4d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x4a, 0x04, 0x08, 0x04, + 0x10, 0x05, 0x22, 0x90, 0x01, 0x0a, 0x06, 0x4f, 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, 0x1a, 0x0a, 0x08, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x12, 0x16, 0x0a, + 0x06, 0x66, 0x61, 0x6d, 0x69, 0x6c, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, + 0x61, 0x6d, 0x69, 0x6c, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, + 0x24, 0x0a, 0x0d, 0x6b, 0x65, 0x72, 0x6e, 0x65, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6b, 0x65, 0x72, 0x6e, 0x65, 0x6c, 0x56, 0x65, + 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x90, 0x01, 0x0a, 0x06, 0x49, 0x4f, 0x53, 0x74, 0x61, 0x74, + 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x61, 0x64, 0x52, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x02, 0x52, 0x08, 0x72, 0x65, 0x61, 0x64, 0x52, 0x61, 0x74, 0x65, 0x12, 0x1c, 0x0a, 0x09, + 0x77, 0x72, 0x69, 0x74, 0x65, 0x52, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x02, 0x52, + 0x09, 0x77, 0x72, 0x69, 0x74, 0x65, 0x52, 0x61, 0x74, 0x65, 0x12, 0x24, 0x0a, 0x0d, 0x72, 0x65, + 0x61, 0x64, 0x42, 0x79, 0x74, 0x65, 0x73, 0x52, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x02, 0x52, 0x0d, 0x72, 0x65, 0x61, 0x64, 0x42, 0x79, 0x74, 0x65, 0x73, 0x52, 0x61, 0x74, 0x65, + 0x12, 0x26, 0x0a, 0x0e, 0x77, 0x72, 0x69, 0x74, 0x65, 0x42, 0x79, 0x74, 0x65, 0x73, 0x52, 0x61, + 0x74, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x02, 0x52, 0x0e, 0x77, 0x72, 0x69, 0x74, 0x65, 0x42, + 0x79, 0x74, 0x65, 0x73, 0x52, 0x61, 0x74, 0x65, 0x22, 0xac, 0x01, 0x0a, 0x0a, 0x4d, 0x65, 0x6d, + 0x6f, 0x72, 0x79, 0x53, 0x74, 0x61, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x72, 0x73, 0x73, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x72, 0x73, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x76, 0x6d, 0x73, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x76, 0x6d, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x73, + 0x77, 0x61, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x73, 0x77, 0x61, 0x70, 0x12, + 0x16, 0x0a, 0x06, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, + 0x06, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x65, 0x78, 0x74, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x74, 0x65, 0x78, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x6c, + 0x69, 0x62, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x6c, 0x69, 0x62, 0x12, 0x12, 0x0a, + 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x07, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x64, 0x61, 0x74, + 0x61, 0x12, 0x14, 0x0a, 0x05, 0x64, 0x69, 0x72, 0x74, 0x79, 0x18, 0x08, 0x20, 0x01, 0x28, 0x04, + 0x52, 0x05, 0x64, 0x69, 0x72, 0x74, 0x79, 0x22, 0xa1, 0x02, 0x0a, 0x07, 0x43, 0x50, 0x55, 0x53, + 0x74, 0x61, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x6c, 0x61, 0x73, 0x74, 0x43, 0x70, 0x75, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6c, 0x61, 0x73, 0x74, 0x43, 0x70, 0x75, 0x12, 0x1a, 0x0a, + 0x08, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x50, 0x63, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x02, 0x52, + 0x08, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x50, 0x63, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x75, 0x73, 0x65, + 0x72, 0x50, 0x63, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x02, 0x52, 0x07, 0x75, 0x73, 0x65, 0x72, + 0x50, 0x63, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x50, 0x63, 0x74, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x02, 0x52, 0x09, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x50, 0x63, + 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x6e, 0x75, 0x6d, 0x54, 0x68, 0x72, 0x65, 0x61, 0x64, 0x73, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x6e, 0x75, 0x6d, 0x54, 0x68, 0x72, 0x65, 0x61, 0x64, + 0x73, 0x12, 0x38, 0x0a, 0x04, 0x63, 0x70, 0x75, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x24, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, + 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x43, 0x50, + 0x55, 0x53, 0x74, 0x61, 0x74, 0x52, 0x04, 0x63, 0x70, 0x75, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x6e, + 0x69, 0x63, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x6e, 0x69, 0x63, 0x65, 0x12, + 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x73, + 0x79, 0x73, 0x74, 0x65, 0x6d, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x03, 0x52, + 0x0a, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x54, 0x69, 0x6d, 0x65, 0x22, 0x3f, 0x0a, 0x0d, 0x53, + 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x43, 0x50, 0x55, 0x53, 0x74, 0x61, 0x74, 0x12, 0x12, 0x0a, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x12, 0x1a, 0x0a, 0x08, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x50, 0x63, 0x74, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x02, 0x52, 0x08, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x50, 0x63, 0x74, 0x22, 0xe5, 0x01, 0x0a, + 0x07, 0x43, 0x50, 0x55, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x16, 0x0a, 0x06, 0x6e, 0x75, 0x6d, 0x62, + 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, + 0x12, 0x16, 0x0a, 0x06, 0x76, 0x65, 0x6e, 0x64, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x06, 0x76, 0x65, 0x6e, 0x64, 0x6f, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x61, 0x6d, 0x69, + 0x6c, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x61, 0x6d, 0x69, 0x6c, 0x79, + 0x12, 0x14, 0x0a, 0x05, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x05, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x12, 0x1e, 0x0a, 0x0a, 0x70, 0x68, 0x79, 0x73, 0x69, 0x63, + 0x61, 0x6c, 0x49, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x68, 0x79, 0x73, + 0x69, 0x63, 0x61, 0x6c, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x6f, 0x72, 0x65, 0x49, 0x64, + 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x63, 0x6f, 0x72, 0x65, 0x49, 0x64, 0x12, 0x14, + 0x0a, 0x05, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x63, + 0x6f, 0x72, 0x65, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x68, 0x7a, 0x18, 0x08, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x03, 0x6d, 0x68, 0x7a, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x61, 0x63, 0x68, 0x65, 0x53, + 0x69, 0x7a, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x63, 0x61, 0x63, 0x68, 0x65, + 0x53, 0x69, 0x7a, 0x65, 0x22, 0xe2, 0x01, 0x0a, 0x04, 0x48, 0x6f, 0x73, 0x74, 0x12, 0x0e, 0x0a, + 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, + 0x05, 0x6f, 0x72, 0x67, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x6f, 0x72, + 0x67, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x6c, 0x6c, 0x54, 0x61, + 0x67, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x61, 0x6c, 0x6c, 0x54, 0x61, 0x67, + 0x73, 0x12, 0x18, 0x0a, 0x07, 0x6e, 0x75, 0x6d, 0x43, 0x70, 0x75, 0x73, 0x18, 0x07, 0x20, 0x01, + 0x28, 0x05, 0x52, 0x07, 0x6e, 0x75, 0x6d, 0x43, 0x70, 0x75, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x74, + 0x6f, 0x74, 0x61, 0x6c, 0x4d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, + 0x52, 0x0b, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x4d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x12, 0x1a, 0x0a, + 0x08, 0x74, 0x61, 0x67, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x09, 0x20, 0x01, 0x28, 0x05, 0x52, + 0x08, 0x74, 0x61, 0x67, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x22, 0x0a, 0x0c, 0x74, 0x61, 0x67, + 0x73, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x03, 0x52, + 0x0c, 0x74, 0x61, 0x67, 0x73, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, 0x4a, 0x04, 0x08, + 0x04, 0x10, 0x05, 0x4a, 0x04, 0x08, 0x05, 0x10, 0x06, 0x22, 0x8d, 0x06, 0x0a, 0x07, 0x43, 0x6c, + 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x6f, 0x64, 0x65, 0x43, 0x6f, 0x75, + 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x6e, 0x6f, 0x64, 0x65, 0x43, 0x6f, + 0x75, 0x6e, 0x74, 0x12, 0x5d, 0x0a, 0x0f, 0x6b, 0x75, 0x62, 0x65, 0x6c, 0x65, 0x74, 0x56, 0x65, + 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x64, + 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, + 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x4b, 0x75, 0x62, + 0x65, 0x6c, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, + 0x79, 0x52, 0x0f, 0x6b, 0x75, 0x62, 0x65, 0x6c, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, + 0x6e, 0x73, 0x12, 0x63, 0x0a, 0x11, 0x61, 0x70, 0x69, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x56, + 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x35, 0x2e, + 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, + 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x41, 0x70, + 0x69, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x45, + 0x6e, 0x74, 0x72, 0x79, 0x52, 0x11, 0x61, 0x70, 0x69, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x56, + 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x70, 0x6f, 0x64, 0x43, 0x61, + 0x70, 0x61, 0x63, 0x69, 0x74, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0b, 0x70, 0x6f, + 0x64, 0x43, 0x61, 0x70, 0x61, 0x63, 0x69, 0x74, 0x79, 0x12, 0x26, 0x0a, 0x0e, 0x70, 0x6f, 0x64, + 0x41, 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x0d, 0x52, 0x0e, 0x70, 0x6f, 0x64, 0x41, 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x61, 0x62, 0x6c, + 0x65, 0x12, 0x2c, 0x0a, 0x11, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x6f, 0x63, + 0x61, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x11, 0x6d, 0x65, + 0x6d, 0x6f, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x12, + 0x26, 0x0a, 0x0e, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x43, 0x61, 0x70, 0x61, 0x63, 0x69, 0x74, + 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0e, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x43, + 0x61, 0x70, 0x61, 0x63, 0x69, 0x74, 0x79, 0x12, 0x26, 0x0a, 0x0e, 0x63, 0x70, 0x75, 0x41, 0x6c, + 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x04, 0x52, + 0x0e, 0x63, 0x70, 0x75, 0x41, 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x12, + 0x20, 0x0a, 0x0b, 0x63, 0x70, 0x75, 0x43, 0x61, 0x70, 0x61, 0x63, 0x69, 0x74, 0x79, 0x18, 0x09, + 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x63, 0x70, 0x75, 0x43, 0x61, 0x70, 0x61, 0x63, 0x69, 0x74, + 0x79, 0x12, 0x28, 0x0a, 0x0f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x56, 0x65, 0x72, + 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x72, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x2c, 0x0a, 0x11, 0x63, + 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, + 0x18, 0x0b, 0x20, 0x01, 0x28, 0x03, 0x52, 0x11, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x61, 0x67, + 0x73, 0x18, 0x0c, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x12, 0x40, 0x0a, + 0x07, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, + 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, + 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4d, + 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x52, 0x07, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x1a, + 0x42, 0x0a, 0x14, 0x4b, 0x75, 0x62, 0x65, 0x6c, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, + 0x6e, 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, 0x05, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, + 0x02, 0x38, 0x01, 0x1a, 0x44, 0x0a, 0x16, 0x41, 0x70, 0x69, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, + 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 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, 0x05, 0x52, 0x05, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xff, 0x02, 0x0a, 0x08, 0x4d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x61, + 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e, + 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x2c, 0x0a, 0x11, 0x63, 0x72, + 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x11, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, + 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x2c, 0x0a, 0x11, 0x64, 0x65, 0x6c, 0x65, + 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x03, 0x52, 0x11, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x69, 0x6d, + 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x16, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, + 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x20, + 0x0a, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x07, 0x20, + 0x03, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x12, 0x4f, 0x0a, 0x0f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, + 0x63, 0x65, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x64, 0x61, 0x74, 0x61, + 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, + 0x74, 0x2e, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, + 0x52, 0x0f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, + 0x73, 0x12, 0x28, 0x0a, 0x0f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x56, 0x65, 0x72, + 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x72, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1e, 0x0a, 0x0a, 0x66, + 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x72, 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x09, 0x52, + 0x0a, 0x66, 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x72, 0x73, 0x22, 0x4a, 0x0a, 0x0e, 0x4f, + 0x77, 0x6e, 0x65, 0x72, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x12, 0x0a, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, + 0x75, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x22, 0xd1, 0x01, 0x0a, 0x0f, 0x4f, 0x62, 0x6a, 0x65, + 0x63, 0x74, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6b, + 0x69, 0x6e, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x12, + 0x1c, 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x12, 0x0a, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, + 0x75, 0x69, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x61, 0x70, 0x69, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, + 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x61, 0x70, 0x69, 0x56, 0x65, 0x72, 0x73, + 0x69, 0x6f, 0x6e, 0x12, 0x28, 0x0a, 0x0f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x56, + 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x72, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1c, 0x0a, + 0x09, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x50, 0x61, 0x74, 0x68, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x09, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x50, 0x61, 0x74, 0x68, 0x22, 0x8d, 0x01, 0x0a, 0x0b, + 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x6f, 0x72, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, + 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x70, + 0x6f, 0x72, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, + 0x1e, 0x0a, 0x0a, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x50, 0x6f, 0x72, 0x74, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0a, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x50, 0x6f, 0x72, 0x74, 0x12, + 0x1a, 0x0a, 0x08, 0x6e, 0x6f, 0x64, 0x65, 0x50, 0x6f, 0x72, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x05, 0x52, 0x08, 0x6e, 0x6f, 0x64, 0x65, 0x50, 0x6f, 0x72, 0x74, 0x22, 0x56, 0x0a, 0x1c, 0x53, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x41, 0x66, 0x66, + 0x69, 0x6e, 0x69, 0x74, 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x36, 0x0a, 0x16, 0x63, + 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x50, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x53, 0x65, + 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x16, 0x63, 0x6c, 0x69, + 0x65, 0x6e, 0x74, 0x49, 0x50, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x53, 0x65, 0x63, 0x6f, + 0x6e, 0x64, 0x73, 0x22, 0xe5, 0x03, 0x0a, 0x04, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x3b, 0x0a, 0x08, + 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, + 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, + 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, + 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x6f, 0x64, + 0x43, 0x49, 0x44, 0x52, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x6f, 0x64, 0x43, + 0x49, 0x44, 0x52, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x6f, 0x64, 0x43, 0x49, 0x44, 0x52, 0x73, 0x18, + 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x70, 0x6f, 0x64, 0x43, 0x49, 0x44, 0x52, 0x73, 0x12, + 0x24, 0x0a, 0x0d, 0x75, 0x6e, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x61, 0x62, 0x6c, 0x65, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x75, 0x6e, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, + 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x34, 0x0a, 0x06, 0x74, 0x61, 0x69, 0x6e, 0x74, 0x73, 0x18, + 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, + 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x54, 0x61, + 0x69, 0x6e, 0x74, 0x52, 0x06, 0x74, 0x61, 0x69, 0x6e, 0x74, 0x73, 0x12, 0x39, 0x0a, 0x06, 0x73, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x64, 0x61, + 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, + 0x65, 0x6e, 0x74, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, + 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x0a, 0x04, 0x79, 0x61, 0x6d, 0x6c, 0x18, 0x07, + 0x20, 0x01, 0x28, 0x0c, 0x42, 0x02, 0x18, 0x01, 0x52, 0x04, 0x79, 0x61, 0x6d, 0x6c, 0x12, 0x14, + 0x0a, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x72, + 0x6f, 0x6c, 0x65, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x09, 0x20, 0x03, + 0x28, 0x09, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x12, 0x1e, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x76, + 0x69, 0x64, 0x65, 0x72, 0x49, 0x44, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x72, + 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x49, 0x44, 0x12, 0x2f, 0x0a, 0x04, 0x68, 0x6f, 0x73, 0x74, + 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, + 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x48, + 0x6f, 0x73, 0x74, 0x52, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x12, 0x40, 0x0a, 0x07, 0x6d, 0x65, 0x74, + 0x72, 0x69, 0x63, 0x73, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x64, 0x61, 0x74, + 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, + 0x6e, 0x74, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4d, 0x65, 0x74, 0x72, 0x69, + 0x63, 0x73, 0x52, 0x07, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x22, 0x83, 0x07, 0x0a, 0x0a, + 0x4e, 0x6f, 0x64, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x4b, 0x0a, 0x08, 0x63, 0x61, + 0x70, 0x61, 0x63, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x64, + 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, + 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, + 0x43, 0x61, 0x70, 0x61, 0x63, 0x69, 0x74, 0x79, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, 0x63, + 0x61, 0x70, 0x61, 0x63, 0x69, 0x74, 0x79, 0x12, 0x54, 0x0a, 0x0b, 0x61, 0x6c, 0x6c, 0x6f, 0x63, + 0x61, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x64, + 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, + 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, + 0x41, 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, + 0x52, 0x0b, 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x5a, 0x0a, + 0x0d, 0x6e, 0x6f, 0x64, 0x65, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x18, 0x03, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, + 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x4e, 0x6f, 0x64, + 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x41, 0x64, 0x64, 0x72, + 0x65, 0x73, 0x73, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0d, 0x6e, 0x6f, 0x64, 0x65, + 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x12, 0x26, 0x0a, 0x0e, 0x6b, 0x75, 0x62, 0x65, 0x6c, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, + 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x6b, 0x75, 0x62, 0x65, 0x6c, + 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x44, 0x0a, 0x0a, 0x63, 0x6f, 0x6e, + 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, + 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, + 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, + 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, + 0x3d, 0x0a, 0x06, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x25, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, + 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, + 0x72, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x52, 0x06, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x73, 0x12, 0x2a, + 0x0a, 0x10, 0x6b, 0x75, 0x62, 0x65, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x56, 0x65, 0x72, 0x73, 0x69, + 0x6f, 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x6b, 0x75, 0x62, 0x65, 0x50, 0x72, + 0x6f, 0x78, 0x79, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x28, 0x0a, 0x0f, 0x6f, 0x70, + 0x65, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x18, 0x09, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0f, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x53, 0x79, + 0x73, 0x74, 0x65, 0x6d, 0x12, 0x22, 0x0a, 0x0c, 0x61, 0x72, 0x63, 0x68, 0x69, 0x74, 0x65, 0x63, + 0x74, 0x75, 0x72, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x61, 0x72, 0x63, 0x68, + 0x69, 0x74, 0x65, 0x63, 0x74, 0x75, 0x72, 0x65, 0x12, 0x24, 0x0a, 0x0d, 0x6b, 0x65, 0x72, 0x6e, + 0x65, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0d, 0x6b, 0x65, 0x72, 0x6e, 0x65, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x18, + 0x0a, 0x07, 0x6f, 0x73, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x07, 0x6f, 0x73, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x38, 0x0a, 0x17, 0x63, 0x6f, 0x6e, 0x74, + 0x61, 0x69, 0x6e, 0x65, 0x72, 0x52, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x56, 0x65, 0x72, 0x73, + 0x69, 0x6f, 0x6e, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x17, 0x63, 0x6f, 0x6e, 0x74, 0x61, + 0x69, 0x6e, 0x65, 0x72, 0x52, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, + 0x6f, 0x6e, 0x1a, 0x3b, 0x0a, 0x0d, 0x43, 0x61, 0x70, 0x61, 0x63, 0x69, 0x74, 0x79, 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, 0x03, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, + 0x3e, 0x0a, 0x10, 0x41, 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x61, 0x62, 0x6c, 0x65, 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, 0x03, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, + 0x40, 0x0a, 0x12, 0x4e, 0x6f, 0x64, 0x65, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 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, 0x9d, 0x01, 0x0a, 0x0d, 0x4e, 0x6f, 0x64, 0x65, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, + 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, + 0x2e, 0x0a, 0x12, 0x6c, 0x61, 0x73, 0x74, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x6f, + 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x12, 0x6c, 0x61, 0x73, + 0x74, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x12, + 0x16, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, + 0x67, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, + 0x65, 0x22, 0x44, 0x0a, 0x0e, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x49, 0x6d, + 0x61, 0x67, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, + 0x28, 0x09, 0x52, 0x05, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x7a, + 0x65, 0x42, 0x79, 0x74, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x73, 0x69, + 0x7a, 0x65, 0x42, 0x79, 0x74, 0x65, 0x73, 0x22, 0x65, 0x0a, 0x05, 0x54, 0x61, 0x69, 0x6e, 0x74, + 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, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x66, 0x66, 0x65, + 0x63, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x65, 0x66, 0x66, 0x65, 0x63, 0x74, + 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x41, 0x64, 0x64, 0x65, 0x64, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x41, 0x64, 0x64, 0x65, 0x64, 0x22, 0xc7, + 0x05, 0x0a, 0x0b, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x53, 0x70, 0x65, 0x63, 0x12, 0x38, + 0x0a, 0x05, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, + 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, + 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x6f, 0x72, + 0x74, 0x52, 0x05, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x12, 0x4d, 0x0a, 0x09, 0x73, 0x65, 0x6c, 0x65, + 0x63, 0x74, 0x6f, 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x64, 0x61, + 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, + 0x65, 0x6e, 0x74, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, + 0x72, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x09, 0x73, 0x65, + 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6c, 0x75, 0x73, 0x74, + 0x65, 0x72, 0x49, 0x50, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6c, 0x75, 0x73, + 0x74, 0x65, 0x72, 0x49, 0x50, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x65, 0x78, 0x74, + 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x49, 0x50, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, + 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x49, 0x50, 0x73, 0x12, 0x28, 0x0a, 0x0f, 0x73, + 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x41, 0x66, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x79, 0x18, 0x06, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x41, 0x66, 0x66, + 0x69, 0x6e, 0x69, 0x74, 0x79, 0x12, 0x26, 0x0a, 0x0e, 0x6c, 0x6f, 0x61, 0x64, 0x42, 0x61, 0x6c, + 0x61, 0x6e, 0x63, 0x65, 0x72, 0x49, 0x50, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x6c, + 0x6f, 0x61, 0x64, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x72, 0x49, 0x50, 0x12, 0x3a, 0x0a, + 0x18, 0x6c, 0x6f, 0x61, 0x64, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x72, 0x53, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x09, 0x52, + 0x18, 0x6c, 0x6f, 0x61, 0x64, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x72, 0x53, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x12, 0x22, 0x0a, 0x0c, 0x65, 0x78, 0x74, + 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0c, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x34, 0x0a, + 0x15, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x54, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, + 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x15, 0x65, 0x78, + 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x54, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x50, 0x6f, 0x6c, + 0x69, 0x63, 0x79, 0x12, 0x30, 0x0a, 0x13, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, + 0x63, 0x6b, 0x4e, 0x6f, 0x64, 0x65, 0x50, 0x6f, 0x72, 0x74, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x05, + 0x52, 0x13, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x4e, 0x6f, 0x64, + 0x65, 0x50, 0x6f, 0x72, 0x74, 0x12, 0x3a, 0x0a, 0x18, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, + 0x4e, 0x6f, 0x74, 0x52, 0x65, 0x61, 0x64, 0x79, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, + 0x73, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x08, 0x52, 0x18, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, + 0x4e, 0x6f, 0x74, 0x52, 0x65, 0x61, 0x64, 0x79, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, + 0x73, 0x12, 0x69, 0x0a, 0x15, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x41, 0x66, 0x66, 0x69, + 0x6e, 0x69, 0x74, 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x33, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, + 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, + 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x41, 0x66, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x79, 0x43, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x15, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x41, 0x66, + 0x66, 0x69, 0x6e, 0x69, 0x74, 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x1a, 0x0a, 0x08, + 0x69, 0x70, 0x46, 0x61, 0x6d, 0x69, 0x6c, 0x79, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, + 0x69, 0x70, 0x46, 0x61, 0x6d, 0x69, 0x6c, 0x79, 0x22, 0x41, 0x0a, 0x0d, 0x53, 0x65, 0x72, 0x76, + 0x69, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x30, 0x0a, 0x13, 0x6c, 0x6f, 0x61, + 0x64, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x72, 0x49, 0x6e, 0x67, 0x72, 0x65, 0x73, 0x73, + 0x18, 0x11, 0x20, 0x03, 0x28, 0x09, 0x52, 0x13, 0x6c, 0x6f, 0x61, 0x64, 0x42, 0x61, 0x6c, 0x61, + 0x6e, 0x63, 0x65, 0x72, 0x49, 0x6e, 0x67, 0x72, 0x65, 0x73, 0x73, 0x22, 0xaa, 0x02, 0x0a, 0x07, + 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x3b, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x64, 0x61, 0x74, 0x61, + 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, + 0x74, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0x12, 0x36, 0x0a, 0x04, 0x73, 0x70, 0x65, 0x63, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, + 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x53, 0x70, 0x65, 0x63, 0x52, 0x04, 0x73, 0x70, 0x65, 0x63, 0x12, 0x3c, 0x0a, 0x06, + 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x64, + 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, + 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x0a, 0x04, 0x79, 0x61, + 0x6d, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x42, 0x02, 0x18, 0x01, 0x52, 0x04, 0x79, 0x61, + 0x6d, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, + 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x12, 0x40, 0x0a, 0x07, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, + 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, + 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, + 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x52, + 0x07, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x22, 0xcb, 0x01, 0x0a, 0x13, 0x44, 0x65, 0x70, + 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, + 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, + 0x74, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x26, 0x0a, 0x0e, + 0x6c, 0x61, 0x73, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x06, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x0e, 0x6c, 0x61, 0x73, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x54, 0x69, 0x6d, 0x65, 0x12, 0x2e, 0x0a, 0x12, 0x6c, 0x61, 0x73, 0x74, 0x54, 0x72, 0x61, 0x6e, + 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, + 0x52, 0x12, 0x6c, 0x61, 0x73, 0x74, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, + 0x54, 0x69, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, + 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, + 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0xe1, 0x06, 0x0a, 0x0a, 0x44, 0x65, 0x70, 0x6c, 0x6f, + 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x3b, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, + 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, + 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, + 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0x12, 0x28, 0x0a, 0x0f, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x44, 0x65, + 0x73, 0x69, 0x72, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0f, 0x72, 0x65, 0x70, + 0x6c, 0x69, 0x63, 0x61, 0x73, 0x44, 0x65, 0x73, 0x69, 0x72, 0x65, 0x64, 0x12, 0x2e, 0x0a, 0x12, + 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, + 0x67, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x12, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, + 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x12, 0x26, 0x0a, 0x0e, + 0x6d, 0x61, 0x78, 0x55, 0x6e, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x6d, 0x61, 0x78, 0x55, 0x6e, 0x61, 0x76, 0x61, 0x69, 0x6c, + 0x61, 0x62, 0x6c, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x61, 0x78, 0x53, 0x75, 0x72, 0x67, 0x65, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x61, 0x78, 0x53, 0x75, 0x72, 0x67, 0x65, + 0x12, 0x16, 0x0a, 0x06, 0x70, 0x61, 0x75, 0x73, 0x65, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, + 0x52, 0x06, 0x70, 0x61, 0x75, 0x73, 0x65, 0x64, 0x12, 0x4d, 0x0a, 0x09, 0x73, 0x65, 0x6c, 0x65, + 0x63, 0x74, 0x6f, 0x72, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x64, 0x61, + 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, + 0x65, 0x6e, 0x74, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, + 0x72, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x09, 0x73, 0x65, + 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x70, 0x6c, 0x69, + 0x63, 0x61, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x72, 0x65, 0x70, 0x6c, 0x69, + 0x63, 0x61, 0x73, 0x12, 0x28, 0x0a, 0x0f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x52, 0x65, + 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0f, 0x75, 0x70, + 0x64, 0x61, 0x74, 0x65, 0x64, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x12, 0x24, 0x0a, + 0x0d, 0x72, 0x65, 0x61, 0x64, 0x79, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x18, 0x0a, + 0x20, 0x01, 0x28, 0x05, 0x52, 0x0d, 0x72, 0x65, 0x61, 0x64, 0x79, 0x52, 0x65, 0x70, 0x6c, 0x69, + 0x63, 0x61, 0x73, 0x12, 0x2c, 0x0a, 0x11, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, + 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x05, 0x52, 0x11, + 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, + 0x73, 0x12, 0x30, 0x0a, 0x13, 0x75, 0x6e, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, + 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x05, 0x52, 0x13, + 0x75, 0x6e, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x65, 0x70, 0x6c, 0x69, + 0x63, 0x61, 0x73, 0x12, 0x2a, 0x0a, 0x10, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, + 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x63, + 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, + 0x5f, 0x0a, 0x14, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x69, + 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x10, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2b, 0x2e, + 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, + 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, + 0x71, 0x75, 0x69, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x14, 0x72, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, + 0x12, 0x16, 0x0a, 0x04, 0x79, 0x61, 0x6d, 0x6c, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0c, 0x42, 0x02, + 0x18, 0x01, 0x52, 0x04, 0x79, 0x61, 0x6d, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, + 0x18, 0x0f, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x12, 0x40, 0x0a, 0x07, + 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x18, 0x11, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, + 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, + 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4d, 0x65, + 0x74, 0x72, 0x69, 0x63, 0x73, 0x52, 0x07, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x12, 0x4a, + 0x0a, 0x0a, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x12, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, + 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x44, 0x65, 0x70, 0x6c, 0x6f, + 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a, + 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0xa3, 0x01, 0x0a, 0x13, 0x52, + 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x53, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, + 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x2e, + 0x0a, 0x12, 0x6c, 0x61, 0x73, 0x74, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, + 0x54, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x12, 0x6c, 0x61, 0x73, 0x74, + 0x54, 0x72, 0x61, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x16, + 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, + 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, + 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, + 0x22, 0x81, 0x05, 0x0a, 0x0a, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x53, 0x65, 0x74, 0x12, + 0x3b, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1f, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, + 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x28, 0x0a, 0x0f, + 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x44, 0x65, 0x73, 0x69, 0x72, 0x65, 0x64, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0f, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x44, + 0x65, 0x73, 0x69, 0x72, 0x65, 0x64, 0x12, 0x4d, 0x0a, 0x09, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, + 0x6f, 0x72, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x64, 0x61, 0x74, 0x61, + 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, + 0x74, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, + 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x09, 0x73, 0x65, 0x6c, 0x65, + 0x63, 0x74, 0x6f, 0x72, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, + 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, + 0x73, 0x12, 0x32, 0x0a, 0x14, 0x66, 0x75, 0x6c, 0x6c, 0x79, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x65, + 0x64, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, + 0x14, 0x66, 0x75, 0x6c, 0x6c, 0x79, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x70, + 0x6c, 0x69, 0x63, 0x61, 0x73, 0x12, 0x24, 0x0a, 0x0d, 0x72, 0x65, 0x61, 0x64, 0x79, 0x52, 0x65, + 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0d, 0x72, 0x65, + 0x61, 0x64, 0x79, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x12, 0x2c, 0x0a, 0x11, 0x61, + 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, + 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x11, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, + 0x65, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x12, 0x5f, 0x0a, 0x14, 0x72, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, + 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, + 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, + 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x6d, + 0x65, 0x6e, 0x74, 0x73, 0x52, 0x14, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, + 0x71, 0x75, 0x69, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x16, 0x0a, 0x04, 0x79, 0x61, + 0x6d, 0x6c, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0c, 0x42, 0x02, 0x18, 0x01, 0x52, 0x04, 0x79, 0x61, + 0x6d, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x09, + 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x12, 0x40, 0x0a, 0x07, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, + 0x73, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, + 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, + 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x52, + 0x07, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x12, 0x4a, 0x0a, 0x0a, 0x63, 0x6f, 0x6e, 0x64, + 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x0c, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x64, + 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, + 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x53, 0x65, 0x74, 0x43, + 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x60, 0x0a, 0x18, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x53, 0x65, 0x6c, + 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, + 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, + 0x65, 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x16, + 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x22, 0x99, 0x07, 0x0a, 0x03, 0x50, 0x6f, 0x64, 0x12, 0x3b, + 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1f, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, + 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, + 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x0e, 0x0a, 0x02, 0x49, + 0x50, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x49, 0x50, 0x12, 0x2c, 0x0a, 0x11, 0x6e, + 0x6f, 0x6d, 0x69, 0x6e, 0x61, 0x74, 0x65, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x4e, 0x61, 0x6d, 0x65, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x6e, 0x6f, 0x6d, 0x69, 0x6e, 0x61, 0x74, 0x65, + 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x6e, 0x6f, 0x64, + 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6e, 0x6f, 0x64, + 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x68, 0x61, 0x73, 0x65, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x70, 0x68, 0x61, 0x73, 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x72, + 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, + 0x05, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, + 0x54, 0x0a, 0x11, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x65, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x64, 0x61, 0x74, + 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, + 0x6e, 0x74, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x52, 0x11, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x53, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x65, 0x73, 0x12, 0x5c, 0x0a, 0x15, 0x69, 0x6e, 0x69, 0x74, 0x43, 0x6f, 0x6e, + 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x65, 0x73, 0x18, 0x0e, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, + 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x43, 0x6f, 0x6e, + 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x15, 0x69, 0x6e, + 0x69, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x65, 0x73, 0x12, 0x2a, 0x0a, 0x10, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, + 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x63, + 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, + 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x0a, 0x04, 0x79, 0x61, 0x6d, 0x6c, 0x18, + 0x0a, 0x20, 0x01, 0x28, 0x0c, 0x42, 0x02, 0x18, 0x01, 0x52, 0x04, 0x79, 0x61, 0x6d, 0x6c, 0x12, + 0x12, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x74, + 0x61, 0x67, 0x73, 0x12, 0x2f, 0x0a, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x0c, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1b, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, + 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x48, 0x6f, 0x73, 0x74, 0x52, 0x04, + 0x68, 0x6f, 0x73, 0x74, 0x12, 0x5f, 0x0a, 0x14, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x0d, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, + 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, + 0x14, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, + 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x51, 0x4f, 0x53, 0x43, 0x6c, 0x61, 0x73, + 0x73, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x51, 0x4f, 0x53, 0x43, 0x6c, 0x61, 0x73, + 0x73, 0x12, 0x24, 0x0a, 0x0d, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x43, 0x6c, 0x61, + 0x73, 0x73, 0x18, 0x10, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, + 0x74, 0x79, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x12, 0x40, 0x0a, 0x07, 0x6d, 0x65, 0x74, 0x72, 0x69, + 0x63, 0x73, 0x18, 0x11, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, + 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, + 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, + 0x52, 0x07, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x74, 0x61, + 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x12, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x73, 0x74, + 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x24, 0x0a, 0x0d, 0x73, 0x63, 0x68, 0x65, 0x64, + 0x75, 0x6c, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x13, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, + 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x43, 0x0a, + 0x0a, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x14, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x23, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, + 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x6f, 0x64, 0x43, 0x6f, 0x6e, + 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x22, 0xc2, 0x01, 0x0a, 0x0c, 0x50, 0x6f, 0x64, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, + 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, + 0x24, 0x0a, 0x0d, 0x6c, 0x61, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x62, 0x65, 0x54, 0x69, 0x6d, 0x65, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x6c, 0x61, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x62, + 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x2e, 0x0a, 0x12, 0x6c, 0x61, 0x73, 0x74, 0x54, 0x72, 0x61, + 0x6e, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x12, 0x6c, 0x61, 0x73, 0x74, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x6f, + 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x18, 0x0a, + 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, + 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0xb1, 0x01, 0x0a, 0x0f, 0x43, 0x6f, 0x6e, 0x74, + 0x61, 0x69, 0x6e, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, + 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x49, 0x44, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x49, + 0x44, 0x12, 0x14, 0x0a, 0x05, 0x72, 0x65, 0x61, 0x64, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, + 0x52, 0x05, 0x72, 0x65, 0x61, 0x64, 0x79, 0x12, 0x22, 0x0a, 0x0c, 0x72, 0x65, 0x73, 0x74, 0x61, + 0x72, 0x74, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0c, 0x72, + 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x73, + 0x74, 0x61, 0x74, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, + 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x06, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0xb0, 0x01, 0x0a, 0x08, + 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x28, 0x0a, 0x0f, + 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x56, + 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, + 0x65, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, + 0x6e, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, + 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, + 0x54, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, + 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0xa2, + 0x01, 0x0a, 0x12, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x64, + 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x12, 0x2e, 0x0a, 0x12, 0x6c, 0x61, 0x73, 0x74, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x69, 0x74, + 0x69, 0x6f, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x12, 0x6c, + 0x61, 0x73, 0x74, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x69, 0x6d, + 0x65, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, + 0x73, 0x61, 0x67, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, + 0x61, 0x67, 0x65, 0x22, 0x83, 0x02, 0x0a, 0x09, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, + 0x65, 0x12, 0x3b, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, + 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x4d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x16, + 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, + 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x2a, 0x0a, 0x10, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, + 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x10, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, + 0x67, 0x65, 0x12, 0x16, 0x0a, 0x04, 0x79, 0x61, 0x6d, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, + 0x42, 0x02, 0x18, 0x01, 0x52, 0x04, 0x79, 0x61, 0x6d, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x61, + 0x67, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x12, 0x49, + 0x0a, 0x0a, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x06, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, + 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x4e, 0x61, 0x6d, 0x65, 0x73, + 0x70, 0x61, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x63, + 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x8f, 0x03, 0x0a, 0x14, 0x52, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x6d, 0x65, 0x6e, + 0x74, 0x73, 0x12, 0x4f, 0x0a, 0x06, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, + 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, + 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, 0x69, 0x6d, + 0x69, 0x74, 0x73, 0x12, 0x55, 0x0a, 0x08, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x18, + 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x39, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, + 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x52, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x6d, 0x65, 0x6e, + 0x74, 0x73, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, + 0x52, 0x08, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x43, + 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2f, 0x2e, 0x64, + 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, + 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, + 0x75, 0x69, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, + 0x79, 0x70, 0x65, 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x69, 0x6d, 0x69, 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, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x03, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x3b, + 0x0a, 0x0d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 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, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, + 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xb0, 0x01, 0x0a, 0x0f, + 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x12, + 0x5c, 0x0a, 0x0c, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, + 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x38, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, + 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x52, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e, 0x4d, 0x65, + 0x74, 0x72, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, + 0x0c, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x1a, 0x3f, 0x0a, + 0x11, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 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, 0x01, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xff, + 0x02, 0x0a, 0x07, 0x4a, 0x6f, 0x62, 0x53, 0x70, 0x65, 0x63, 0x12, 0x20, 0x0a, 0x0b, 0x70, 0x61, + 0x72, 0x61, 0x6c, 0x6c, 0x65, 0x6c, 0x69, 0x73, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, + 0x0b, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x6c, 0x65, 0x6c, 0x69, 0x73, 0x6d, 0x12, 0x20, 0x0a, 0x0b, + 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x05, 0x52, 0x0b, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x34, + 0x0a, 0x15, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x44, 0x65, 0x61, 0x64, 0x6c, 0x69, 0x6e, 0x65, + 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x15, 0x61, + 0x63, 0x74, 0x69, 0x76, 0x65, 0x44, 0x65, 0x61, 0x64, 0x6c, 0x69, 0x6e, 0x65, 0x53, 0x65, 0x63, + 0x6f, 0x6e, 0x64, 0x73, 0x12, 0x22, 0x0a, 0x0c, 0x62, 0x61, 0x63, 0x6b, 0x6f, 0x66, 0x66, 0x4c, + 0x69, 0x6d, 0x69, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0c, 0x62, 0x61, 0x63, 0x6b, + 0x6f, 0x66, 0x66, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x4d, 0x0a, 0x09, 0x73, 0x65, 0x6c, 0x65, + 0x63, 0x74, 0x6f, 0x72, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x64, 0x61, + 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, + 0x65, 0x6e, 0x74, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, + 0x72, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x09, 0x73, 0x65, + 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x12, 0x26, 0x0a, 0x0e, 0x6d, 0x61, 0x6e, 0x75, 0x61, + 0x6c, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, + 0x0e, 0x6d, 0x61, 0x6e, 0x75, 0x61, 0x6c, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x12, + 0x5f, 0x0a, 0x14, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x69, + 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2b, 0x2e, + 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, + 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, + 0x71, 0x75, 0x69, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x14, 0x72, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, + 0x22, 0xcb, 0x01, 0x0a, 0x09, 0x4a, 0x6f, 0x62, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x2a, + 0x0a, 0x10, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, + 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, + 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x74, + 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x73, + 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x26, 0x0a, 0x0e, 0x63, 0x6f, 0x6d, 0x70, + 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, + 0x52, 0x0e, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x69, 0x6d, 0x65, + 0x12, 0x16, 0x0a, 0x06, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, + 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x75, 0x63, 0x63, + 0x65, 0x65, 0x64, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x73, 0x75, 0x63, + 0x63, 0x65, 0x65, 0x64, 0x65, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x61, 0x69, 0x6c, 0x65, 0x64, + 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x66, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x22, 0xc2, + 0x01, 0x0a, 0x0c, 0x4a, 0x6f, 0x62, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, + 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, + 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x24, 0x0a, 0x0d, 0x6c, + 0x61, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x62, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x03, 0x52, 0x0d, 0x6c, 0x61, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x62, 0x65, 0x54, 0x69, 0x6d, + 0x65, 0x12, 0x2e, 0x0a, 0x12, 0x6c, 0x61, 0x73, 0x74, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x69, 0x74, + 0x69, 0x6f, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x12, 0x6c, + 0x61, 0x73, 0x74, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x69, 0x6d, + 0x65, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, + 0x73, 0x61, 0x67, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, + 0x61, 0x67, 0x65, 0x22, 0xa1, 0x02, 0x0a, 0x03, 0x4a, 0x6f, 0x62, 0x12, 0x3b, 0x0a, 0x08, 0x6d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, + 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, + 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, + 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x32, 0x0a, 0x04, 0x73, 0x70, 0x65, 0x63, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, + 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x4a, + 0x6f, 0x62, 0x53, 0x70, 0x65, 0x63, 0x52, 0x04, 0x73, 0x70, 0x65, 0x63, 0x12, 0x38, 0x0a, 0x06, + 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x64, + 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, + 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x4a, 0x6f, 0x62, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, + 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x0a, 0x04, 0x79, 0x61, 0x6d, 0x6c, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x0c, 0x42, 0x02, 0x18, 0x01, 0x52, 0x04, 0x79, 0x61, 0x6d, 0x6c, 0x12, 0x12, + 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x74, 0x61, + 0x67, 0x73, 0x12, 0x43, 0x0a, 0x0a, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, + 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x4a, + 0x6f, 0x62, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x63, 0x6f, 0x6e, + 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x84, 0x03, 0x0a, 0x0b, 0x43, 0x72, 0x6f, 0x6e, + 0x4a, 0x6f, 0x62, 0x53, 0x70, 0x65, 0x63, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x63, 0x68, 0x65, 0x64, + 0x75, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x63, 0x68, 0x65, 0x64, + 0x75, 0x6c, 0x65, 0x12, 0x38, 0x0a, 0x17, 0x73, 0x74, 0x61, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x44, + 0x65, 0x61, 0x64, 0x6c, 0x69, 0x6e, 0x65, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x17, 0x73, 0x74, 0x61, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x44, 0x65, + 0x61, 0x64, 0x6c, 0x69, 0x6e, 0x65, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x12, 0x2c, 0x0a, + 0x11, 0x63, 0x6f, 0x6e, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x50, 0x6f, 0x6c, 0x69, + 0x63, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x63, 0x6f, 0x6e, 0x63, 0x75, 0x72, + 0x72, 0x65, 0x6e, 0x63, 0x79, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x73, + 0x75, 0x73, 0x70, 0x65, 0x6e, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x73, 0x75, + 0x73, 0x70, 0x65, 0x6e, 0x64, 0x12, 0x3e, 0x0a, 0x1a, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, + 0x66, 0x75, 0x6c, 0x4a, 0x6f, 0x62, 0x73, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x4c, 0x69, + 0x6d, 0x69, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x1a, 0x73, 0x75, 0x63, 0x63, 0x65, + 0x73, 0x73, 0x66, 0x75, 0x6c, 0x4a, 0x6f, 0x62, 0x73, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, + 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x36, 0x0a, 0x16, 0x66, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x4a, + 0x6f, 0x62, 0x73, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x18, + 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x16, 0x66, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x4a, 0x6f, 0x62, + 0x73, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x5f, 0x0a, + 0x14, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, + 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x64, 0x61, + 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, + 0x65, 0x6e, 0x74, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, + 0x69, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x14, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x22, 0x7b, + 0x0a, 0x0d, 0x43, 0x72, 0x6f, 0x6e, 0x4a, 0x6f, 0x62, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, + 0x3e, 0x0a, 0x06, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x26, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, + 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, + 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x12, + 0x2a, 0x0a, 0x10, 0x6c, 0x61, 0x73, 0x74, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x54, + 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x6c, 0x61, 0x73, 0x74, 0x53, + 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x22, 0xe8, 0x01, 0x0a, 0x07, + 0x43, 0x72, 0x6f, 0x6e, 0x4a, 0x6f, 0x62, 0x12, 0x3b, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x64, 0x61, 0x74, 0x61, + 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, + 0x74, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0x12, 0x36, 0x0a, 0x04, 0x73, 0x70, 0x65, 0x63, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, + 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x43, 0x72, 0x6f, 0x6e, 0x4a, + 0x6f, 0x62, 0x53, 0x70, 0x65, 0x63, 0x52, 0x04, 0x73, 0x70, 0x65, 0x63, 0x12, 0x3c, 0x0a, 0x06, + 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x64, + 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, + 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x43, 0x72, 0x6f, 0x6e, 0x4a, 0x6f, 0x62, 0x53, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x0a, 0x04, 0x79, 0x61, + 0x6d, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x42, 0x02, 0x18, 0x01, 0x52, 0x04, 0x79, 0x61, + 0x6d, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, + 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x22, 0xf5, 0x02, 0x0a, 0x0d, 0x44, 0x61, 0x65, 0x6d, 0x6f, + 0x6e, 0x53, 0x65, 0x74, 0x53, 0x70, 0x65, 0x63, 0x12, 0x4d, 0x0a, 0x09, 0x73, 0x65, 0x6c, 0x65, + 0x63, 0x74, 0x6f, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x64, 0x61, + 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, + 0x65, 0x6e, 0x74, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, + 0x72, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x09, 0x73, 0x65, + 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x12, 0x2e, 0x0a, 0x12, 0x64, 0x65, 0x70, 0x6c, 0x6f, + 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x12, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x53, + 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x12, 0x26, 0x0a, 0x0e, 0x6d, 0x61, 0x78, 0x55, 0x6e, + 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0e, 0x6d, 0x61, 0x78, 0x55, 0x6e, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x12, + 0x28, 0x0a, 0x0f, 0x6d, 0x69, 0x6e, 0x52, 0x65, 0x61, 0x64, 0x79, 0x53, 0x65, 0x63, 0x6f, 0x6e, + 0x64, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0f, 0x6d, 0x69, 0x6e, 0x52, 0x65, 0x61, + 0x64, 0x79, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x12, 0x32, 0x0a, 0x14, 0x72, 0x65, 0x76, + 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x4c, 0x69, 0x6d, 0x69, + 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x14, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, + 0x6e, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x5f, 0x0a, + 0x14, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, + 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x64, 0x61, + 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, + 0x65, 0x6e, 0x74, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, + 0x69, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x14, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x22, 0xe3, + 0x02, 0x0a, 0x0f, 0x44, 0x61, 0x65, 0x6d, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x12, 0x36, 0x0a, 0x16, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x4e, 0x75, 0x6d, + 0x62, 0x65, 0x72, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x05, 0x52, 0x16, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x4e, 0x75, 0x6d, 0x62, 0x65, + 0x72, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x64, 0x12, 0x2e, 0x0a, 0x12, 0x6e, 0x75, + 0x6d, 0x62, 0x65, 0x72, 0x4d, 0x69, 0x73, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x64, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x12, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x4d, 0x69, + 0x73, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x64, 0x12, 0x36, 0x0a, 0x16, 0x64, 0x65, + 0x73, 0x69, 0x72, 0x65, 0x64, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x53, 0x63, 0x68, 0x65, 0x64, + 0x75, 0x6c, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x16, 0x64, 0x65, 0x73, 0x69, + 0x72, 0x65, 0x64, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, + 0x65, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x65, 0x61, 0x64, + 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x52, + 0x65, 0x61, 0x64, 0x79, 0x12, 0x36, 0x0a, 0x16, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x4e, + 0x75, 0x6d, 0x62, 0x65, 0x72, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x64, 0x18, 0x06, + 0x20, 0x01, 0x28, 0x05, 0x52, 0x16, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x4e, 0x75, 0x6d, + 0x62, 0x65, 0x72, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x64, 0x12, 0x28, 0x0a, 0x0f, + 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x18, + 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x41, 0x76, 0x61, + 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x2c, 0x0a, 0x11, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, + 0x55, 0x6e, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, + 0x05, 0x52, 0x11, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x55, 0x6e, 0x61, 0x76, 0x61, 0x69, 0x6c, + 0x61, 0x62, 0x6c, 0x65, 0x22, 0xa2, 0x01, 0x0a, 0x12, 0x44, 0x61, 0x65, 0x6d, 0x6f, 0x6e, 0x53, + 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x74, + 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, + 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x2e, 0x0a, 0x12, 0x6c, 0x61, 0x73, 0x74, 0x54, + 0x72, 0x61, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x03, 0x52, 0x12, 0x6c, 0x61, 0x73, 0x74, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x69, 0x74, + 0x69, 0x6f, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, + 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, + 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0xfb, 0x02, 0x0a, 0x09, 0x44, 0x61, + 0x65, 0x6d, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x12, 0x3b, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x64, 0x61, 0x74, 0x61, + 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, + 0x74, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0x12, 0x38, 0x0a, 0x04, 0x73, 0x70, 0x65, 0x63, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, + 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x44, 0x61, 0x65, 0x6d, 0x6f, + 0x6e, 0x53, 0x65, 0x74, 0x53, 0x70, 0x65, 0x63, 0x52, 0x04, 0x73, 0x70, 0x65, 0x63, 0x12, 0x3e, + 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, + 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, + 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x44, 0x61, 0x65, 0x6d, 0x6f, 0x6e, 0x53, 0x65, 0x74, + 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, + 0x0a, 0x04, 0x79, 0x61, 0x6d, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x42, 0x02, 0x18, 0x01, + 0x52, 0x04, 0x79, 0x61, 0x6d, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x05, + 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x12, 0x40, 0x0a, 0x07, 0x6d, 0x65, + 0x74, 0x72, 0x69, 0x63, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x64, 0x61, + 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, + 0x65, 0x6e, 0x74, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4d, 0x65, 0x74, 0x72, + 0x69, 0x63, 0x73, 0x52, 0x07, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x12, 0x49, 0x0a, 0x0a, + 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x29, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, + 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x44, 0x61, 0x65, 0x6d, 0x6f, 0x6e, 0x53, + 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x63, 0x6f, 0x6e, + 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x85, 0x03, 0x0a, 0x0f, 0x53, 0x74, 0x61, 0x74, + 0x65, 0x66, 0x75, 0x6c, 0x53, 0x65, 0x74, 0x53, 0x70, 0x65, 0x63, 0x12, 0x28, 0x0a, 0x0f, 0x64, + 0x65, 0x73, 0x69, 0x72, 0x65, 0x64, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x05, 0x52, 0x0f, 0x64, 0x65, 0x73, 0x69, 0x72, 0x65, 0x64, 0x52, 0x65, 0x70, + 0x6c, 0x69, 0x63, 0x61, 0x73, 0x12, 0x4d, 0x0a, 0x09, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, + 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, + 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, + 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x65, + 0x71, 0x75, 0x69, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x09, 0x73, 0x65, 0x6c, 0x65, 0x63, + 0x74, 0x6f, 0x72, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4e, + 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x30, 0x0a, 0x13, 0x70, 0x6f, 0x64, 0x4d, 0x61, 0x6e, + 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x13, 0x70, 0x6f, 0x64, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, + 0x6e, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x26, 0x0a, 0x0e, 0x75, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0e, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, + 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, + 0x01, 0x28, 0x05, 0x52, 0x09, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x5f, + 0x0a, 0x14, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, + 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x64, + 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, + 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, + 0x75, 0x69, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x14, 0x72, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x22, + 0xa9, 0x01, 0x0a, 0x11, 0x53, 0x74, 0x61, 0x74, 0x65, 0x66, 0x75, 0x6c, 0x53, 0x65, 0x74, 0x53, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, + 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, + 0x73, 0x12, 0x24, 0x0a, 0x0d, 0x72, 0x65, 0x61, 0x64, 0x79, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, + 0x61, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0d, 0x72, 0x65, 0x61, 0x64, 0x79, 0x52, + 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x12, 0x28, 0x0a, 0x0f, 0x63, 0x75, 0x72, 0x72, 0x65, + 0x6e, 0x74, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, + 0x52, 0x0f, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, + 0x73, 0x12, 0x28, 0x0a, 0x0f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x52, 0x65, 0x70, 0x6c, + 0x69, 0x63, 0x61, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0f, 0x75, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x64, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x22, 0xa4, 0x01, 0x0a, 0x14, + 0x53, 0x74, 0x61, 0x74, 0x65, 0x66, 0x75, 0x6c, 0x53, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x64, 0x69, + 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x12, 0x2e, 0x0a, 0x12, 0x6c, 0x61, 0x73, 0x74, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x69, 0x74, 0x69, + 0x6f, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x12, 0x6c, 0x61, + 0x73, 0x74, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x69, 0x6d, 0x65, + 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, + 0x61, 0x67, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, + 0x67, 0x65, 0x22, 0x83, 0x03, 0x0a, 0x0b, 0x53, 0x74, 0x61, 0x74, 0x65, 0x66, 0x75, 0x6c, 0x53, + 0x65, 0x74, 0x12, 0x3b, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, + 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x4d, 0x65, 0x74, + 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, + 0x3a, 0x0a, 0x04, 0x73, 0x70, 0x65, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, + 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, + 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x66, 0x75, 0x6c, 0x53, 0x65, + 0x74, 0x53, 0x70, 0x65, 0x63, 0x52, 0x04, 0x73, 0x70, 0x65, 0x63, 0x12, 0x40, 0x0a, 0x06, 0x73, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x64, 0x61, + 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, + 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x66, 0x75, 0x6c, 0x53, 0x65, 0x74, 0x53, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x0a, + 0x04, 0x79, 0x61, 0x6d, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x42, 0x02, 0x18, 0x01, 0x52, + 0x04, 0x79, 0x61, 0x6d, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x05, 0x20, + 0x03, 0x28, 0x09, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x12, 0x40, 0x0a, 0x07, 0x6d, 0x65, 0x74, + 0x72, 0x69, 0x63, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x64, 0x61, 0x74, + 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, + 0x6e, 0x74, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4d, 0x65, 0x74, 0x72, 0x69, + 0x63, 0x73, 0x52, 0x07, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x12, 0x4b, 0x0a, 0x0a, 0x63, + 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x2b, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, + 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x66, 0x75, 0x6c, + 0x53, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x63, 0x6f, + 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x83, 0x02, 0x0a, 0x10, 0x50, 0x65, 0x72, + 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x74, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x12, 0x3b, 0x0a, + 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1f, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, + 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x3f, 0x0a, 0x04, 0x73, 0x70, + 0x65, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, + 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, + 0x2e, 0x50, 0x65, 0x72, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x74, 0x56, 0x6f, 0x6c, 0x75, 0x6d, + 0x65, 0x53, 0x70, 0x65, 0x63, 0x52, 0x04, 0x73, 0x70, 0x65, 0x63, 0x12, 0x45, 0x0a, 0x06, 0x73, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x64, 0x61, + 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, + 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x65, 0x72, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x74, 0x56, 0x6f, + 0x6c, 0x75, 0x6d, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x12, 0x16, 0x0a, 0x04, 0x79, 0x61, 0x6d, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, + 0x42, 0x02, 0x18, 0x01, 0x52, 0x04, 0x79, 0x61, 0x6d, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x61, + 0x67, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x22, 0xae, + 0x05, 0x0a, 0x14, 0x50, 0x65, 0x72, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x74, 0x56, 0x6f, 0x6c, + 0x75, 0x6d, 0x65, 0x53, 0x70, 0x65, 0x63, 0x12, 0x55, 0x0a, 0x08, 0x63, 0x61, 0x70, 0x61, 0x63, + 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x39, 0x2e, 0x64, 0x61, 0x74, 0x61, + 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, + 0x74, 0x2e, 0x50, 0x65, 0x72, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x74, 0x56, 0x6f, 0x6c, 0x75, + 0x6d, 0x65, 0x53, 0x70, 0x65, 0x63, 0x2e, 0x43, 0x61, 0x70, 0x61, 0x63, 0x69, 0x74, 0x79, 0x45, + 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, 0x63, 0x61, 0x70, 0x61, 0x63, 0x69, 0x74, 0x79, 0x12, 0x32, + 0x0a, 0x14, 0x70, 0x65, 0x72, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x74, 0x56, 0x6f, 0x6c, 0x75, + 0x6d, 0x65, 0x54, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x14, 0x70, 0x65, + 0x72, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x74, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x54, 0x79, + 0x70, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4d, 0x6f, 0x64, 0x65, + 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4d, + 0x6f, 0x64, 0x65, 0x73, 0x12, 0x42, 0x0a, 0x08, 0x63, 0x6c, 0x61, 0x69, 0x6d, 0x52, 0x65, 0x66, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, + 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x4f, + 0x62, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x08, + 0x63, 0x6c, 0x61, 0x69, 0x6d, 0x52, 0x65, 0x66, 0x12, 0x44, 0x0a, 0x1d, 0x70, 0x65, 0x72, 0x73, + 0x69, 0x73, 0x74, 0x65, 0x6e, 0x74, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x52, 0x65, 0x63, 0x6c, + 0x61, 0x69, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x1d, 0x70, 0x65, 0x72, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x74, 0x56, 0x6f, 0x6c, 0x75, 0x6d, + 0x65, 0x52, 0x65, 0x63, 0x6c, 0x61, 0x69, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x2a, + 0x0a, 0x10, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x4e, 0x61, + 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, + 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x6d, 0x6f, + 0x75, 0x6e, 0x74, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x09, + 0x52, 0x0c, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1e, + 0x0a, 0x0a, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x18, 0x08, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0a, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x4b, + 0x0a, 0x0c, 0x6e, 0x6f, 0x64, 0x65, 0x41, 0x66, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x79, 0x18, 0x09, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, + 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x4e, 0x6f, 0x64, + 0x65, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x54, 0x65, 0x72, 0x6d, 0x52, 0x0c, 0x6e, + 0x6f, 0x64, 0x65, 0x41, 0x66, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x79, 0x12, 0x65, 0x0a, 0x16, 0x70, + 0x65, 0x72, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x74, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x53, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x64, 0x61, + 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, + 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x65, 0x72, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x74, 0x56, 0x6f, + 0x6c, 0x75, 0x6d, 0x65, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x16, 0x70, 0x65, 0x72, 0x73, + 0x69, 0x73, 0x74, 0x65, 0x6e, 0x74, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x53, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x1a, 0x3b, 0x0a, 0x0d, 0x43, 0x61, 0x70, 0x61, 0x63, 0x69, 0x74, 0x79, 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, 0x03, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, + 0xc5, 0x03, 0x0a, 0x16, 0x50, 0x65, 0x72, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x74, 0x56, 0x6f, + 0x6c, 0x75, 0x6d, 0x65, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x62, 0x0a, 0x11, 0x67, 0x63, + 0x65, 0x50, 0x65, 0x72, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x74, 0x44, 0x69, 0x73, 0x6b, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, + 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x47, 0x43, + 0x45, 0x50, 0x65, 0x72, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x74, 0x44, 0x69, 0x73, 0x6b, 0x56, + 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x11, 0x67, 0x63, 0x65, + 0x50, 0x65, 0x72, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x74, 0x44, 0x69, 0x73, 0x6b, 0x12, 0x6b, + 0x0a, 0x14, 0x61, 0x77, 0x73, 0x45, 0x6c, 0x61, 0x73, 0x74, 0x69, 0x63, 0x42, 0x6c, 0x6f, 0x63, + 0x6b, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x64, + 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, + 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x41, 0x57, 0x53, 0x45, 0x6c, 0x61, 0x73, 0x74, 0x69, 0x63, 0x42, + 0x6c, 0x6f, 0x63, 0x6b, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x53, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x14, 0x61, 0x77, 0x73, 0x45, 0x6c, 0x61, 0x73, 0x74, 0x69, + 0x63, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x12, 0x54, 0x0a, 0x09, 0x61, + 0x7a, 0x75, 0x72, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x36, + 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, + 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x46, 0x69, 0x6c, 0x65, + 0x50, 0x65, 0x72, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x74, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, + 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x09, 0x61, 0x7a, 0x75, 0x72, 0x65, 0x46, 0x69, 0x6c, + 0x65, 0x12, 0x4a, 0x0a, 0x09, 0x61, 0x7a, 0x75, 0x72, 0x65, 0x44, 0x69, 0x73, 0x6b, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, + 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x41, 0x7a, 0x75, + 0x72, 0x65, 0x44, 0x69, 0x73, 0x6b, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x53, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x52, 0x09, 0x61, 0x7a, 0x75, 0x72, 0x65, 0x44, 0x69, 0x73, 0x6b, 0x12, 0x38, 0x0a, + 0x03, 0x63, 0x73, 0x69, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x64, 0x61, 0x74, + 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, + 0x6e, 0x74, 0x2e, 0x43, 0x53, 0x49, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x53, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x52, 0x03, 0x63, 0x73, 0x69, 0x22, 0x89, 0x01, 0x0a, 0x1d, 0x47, 0x43, 0x45, 0x50, + 0x65, 0x72, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x74, 0x44, 0x69, 0x73, 0x6b, 0x56, 0x6f, 0x6c, + 0x75, 0x6d, 0x65, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x64, 0x4e, + 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x64, 0x4e, 0x61, 0x6d, + 0x65, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x73, 0x54, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x06, 0x66, 0x73, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x61, 0x72, + 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x70, 0x61, + 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x61, 0x64, 0x4f, + 0x6e, 0x6c, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x72, 0x65, 0x61, 0x64, 0x4f, + 0x6e, 0x6c, 0x79, 0x22, 0x90, 0x01, 0x0a, 0x20, 0x41, 0x57, 0x53, 0x45, 0x6c, 0x61, 0x73, 0x74, + 0x69, 0x63, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x56, 0x6f, 0x6c, 0x75, + 0x6d, 0x65, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x76, 0x6f, 0x6c, 0x75, + 0x6d, 0x65, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x76, 0x6f, 0x6c, 0x75, + 0x6d, 0x65, 0x49, 0x44, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x73, 0x54, 0x79, 0x70, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x73, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1c, 0x0a, 0x09, + 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, + 0x09, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, + 0x61, 0x64, 0x4f, 0x6e, 0x6c, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x72, 0x65, + 0x61, 0x64, 0x4f, 0x6e, 0x6c, 0x79, 0x22, 0xa5, 0x01, 0x0a, 0x1f, 0x41, 0x7a, 0x75, 0x72, 0x65, + 0x46, 0x69, 0x6c, 0x65, 0x50, 0x65, 0x72, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x74, 0x56, 0x6f, + 0x6c, 0x75, 0x6d, 0x65, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x73, 0x65, + 0x63, 0x72, 0x65, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, + 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x68, + 0x61, 0x72, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, + 0x68, 0x61, 0x72, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x61, 0x64, + 0x4f, 0x6e, 0x6c, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x72, 0x65, 0x61, 0x64, + 0x4f, 0x6e, 0x6c, 0x79, 0x12, 0x28, 0x0a, 0x0f, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x4e, 0x61, + 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x73, + 0x65, 0x63, 0x72, 0x65, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x22, 0xb7, + 0x01, 0x0a, 0x15, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x44, 0x69, 0x73, 0x6b, 0x56, 0x6f, 0x6c, 0x75, + 0x6d, 0x65, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x69, 0x73, 0x6b, + 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, 0x69, 0x73, 0x6b, + 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x69, 0x73, 0x6b, 0x55, 0x52, 0x49, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x64, 0x69, 0x73, 0x6b, 0x55, 0x52, 0x49, 0x12, 0x20, + 0x0a, 0x0b, 0x63, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x4d, 0x6f, 0x64, 0x65, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x4d, 0x6f, 0x64, 0x65, + 0x12, 0x16, 0x0a, 0x06, 0x66, 0x73, 0x54, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x06, 0x66, 0x73, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x61, 0x64, + 0x4f, 0x6e, 0x6c, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x72, 0x65, 0x61, 0x64, + 0x4f, 0x6e, 0x6c, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x06, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x22, 0x8c, 0x06, 0x0a, 0x0f, 0x43, 0x53, 0x49, + 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x16, 0x0a, 0x06, + 0x64, 0x72, 0x69, 0x76, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x72, + 0x69, 0x76, 0x65, 0x72, 0x12, 0x22, 0x0a, 0x0c, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x48, 0x61, + 0x6e, 0x64, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x76, 0x6f, 0x6c, 0x75, + 0x6d, 0x65, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x61, 0x64, + 0x4f, 0x6e, 0x6c, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x72, 0x65, 0x61, 0x64, + 0x4f, 0x6e, 0x6c, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x73, 0x54, 0x79, 0x70, 0x65, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x73, 0x54, 0x79, 0x70, 0x65, 0x12, 0x68, 0x0a, 0x10, + 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, + 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3c, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, + 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x43, + 0x53, 0x49, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x56, + 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x45, + 0x6e, 0x74, 0x72, 0x79, 0x52, 0x10, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x41, 0x74, 0x74, 0x72, + 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x66, 0x0a, 0x1a, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, + 0x6c, 0x6c, 0x65, 0x72, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x53, 0x65, 0x63, 0x72, 0x65, + 0x74, 0x52, 0x65, 0x66, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x64, 0x61, 0x74, + 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, + 0x6e, 0x74, 0x2e, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, + 0x63, 0x65, 0x52, 0x1a, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x50, 0x75, + 0x62, 0x6c, 0x69, 0x73, 0x68, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x52, 0x65, 0x66, 0x12, 0x56, + 0x0a, 0x12, 0x6e, 0x6f, 0x64, 0x65, 0x53, 0x74, 0x61, 0x67, 0x65, 0x53, 0x65, 0x63, 0x72, 0x65, + 0x74, 0x52, 0x65, 0x66, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x64, 0x61, 0x74, + 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, + 0x6e, 0x74, 0x2e, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, + 0x63, 0x65, 0x52, 0x12, 0x6e, 0x6f, 0x64, 0x65, 0x53, 0x74, 0x61, 0x67, 0x65, 0x53, 0x65, 0x63, + 0x72, 0x65, 0x74, 0x52, 0x65, 0x66, 0x12, 0x5a, 0x0a, 0x14, 0x6e, 0x6f, 0x64, 0x65, 0x50, 0x75, + 0x62, 0x6c, 0x69, 0x73, 0x68, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x52, 0x65, 0x66, 0x18, 0x08, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, + 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x65, 0x63, + 0x72, 0x65, 0x74, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x14, 0x6e, 0x6f, + 0x64, 0x65, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x52, + 0x65, 0x66, 0x12, 0x64, 0x0a, 0x19, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, + 0x45, 0x78, 0x70, 0x61, 0x6e, 0x64, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x52, 0x65, 0x66, 0x18, + 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, + 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x65, + 0x63, 0x72, 0x65, 0x74, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x19, 0x63, + 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x45, 0x78, 0x70, 0x61, 0x6e, 0x64, 0x53, + 0x65, 0x63, 0x72, 0x65, 0x74, 0x52, 0x65, 0x66, 0x12, 0x58, 0x0a, 0x13, 0x6e, 0x6f, 0x64, 0x65, + 0x45, 0x78, 0x70, 0x61, 0x6e, 0x64, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x52, 0x65, 0x66, 0x18, + 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, + 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x65, + 0x63, 0x72, 0x65, 0x74, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x13, 0x6e, + 0x6f, 0x64, 0x65, 0x45, 0x78, 0x70, 0x61, 0x6e, 0x64, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x52, + 0x65, 0x66, 0x1a, 0x43, 0x0a, 0x15, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x41, 0x74, 0x74, 0x72, + 0x69, 0x62, 0x75, 0x74, 0x65, 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, 0x43, 0x0a, 0x0f, 0x53, 0x65, 0x63, 0x72, 0x65, + 0x74, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1c, + 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x22, 0x60, 0x0a, 0x16, + 0x50, 0x65, 0x72, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x74, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, + 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x68, 0x61, 0x73, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x70, 0x68, 0x61, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, + 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, + 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x22, 0xc2, + 0x01, 0x0a, 0x10, 0x4e, 0x6f, 0x64, 0x65, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x54, + 0x65, 0x72, 0x6d, 0x12, 0x5b, 0x0a, 0x10, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x45, 0x78, 0x70, 0x72, + 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, + 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, + 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x53, 0x65, 0x6c, 0x65, 0x63, + 0x74, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x10, + 0x6d, 0x61, 0x74, 0x63, 0x68, 0x45, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, + 0x12, 0x51, 0x0a, 0x0b, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x18, + 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, + 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x4c, 0x61, + 0x62, 0x65, 0x6c, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x69, + 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x0b, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x46, 0x69, 0x65, + 0x6c, 0x64, 0x73, 0x22, 0x92, 0x02, 0x0a, 0x15, 0x50, 0x65, 0x72, 0x73, 0x69, 0x73, 0x74, 0x65, + 0x6e, 0x74, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x12, 0x3b, 0x0a, + 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1f, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, + 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x44, 0x0a, 0x04, 0x73, 0x70, + 0x65, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, + 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, + 0x2e, 0x50, 0x65, 0x72, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x74, 0x56, 0x6f, 0x6c, 0x75, 0x6d, + 0x65, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x53, 0x70, 0x65, 0x63, 0x52, 0x04, 0x73, 0x70, 0x65, 0x63, + 0x12, 0x4a, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x32, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, + 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x65, 0x72, 0x73, 0x69, 0x73, 0x74, + 0x65, 0x6e, 0x74, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x53, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x0a, 0x04, + 0x79, 0x61, 0x6d, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x42, 0x02, 0x18, 0x01, 0x52, 0x04, + 0x79, 0x61, 0x6d, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x05, 0x20, 0x03, + 0x28, 0x09, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x22, 0xc7, 0x02, 0x0a, 0x1b, 0x50, 0x65, 0x72, + 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x74, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x43, 0x6c, 0x61, + 0x69, 0x6d, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x68, 0x61, 0x73, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x70, 0x68, 0x61, 0x73, 0x65, 0x12, 0x20, + 0x0a, 0x0b, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4d, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x02, 0x20, + 0x03, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4d, 0x6f, 0x64, 0x65, 0x73, + 0x12, 0x5c, 0x0a, 0x08, 0x63, 0x61, 0x70, 0x61, 0x63, 0x69, 0x74, 0x79, 0x18, 0x03, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x40, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, + 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x65, 0x72, 0x73, 0x69, + 0x73, 0x74, 0x65, 0x6e, 0x74, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x43, 0x6c, 0x61, 0x69, 0x6d, + 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x43, 0x61, 0x70, 0x61, 0x63, 0x69, 0x74, 0x79, 0x45, + 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, 0x63, 0x61, 0x70, 0x61, 0x63, 0x69, 0x74, 0x79, 0x12, 0x55, + 0x0a, 0x0a, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, + 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x65, 0x72, 0x73, 0x69, + 0x73, 0x74, 0x65, 0x6e, 0x74, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x43, 0x6c, 0x61, 0x69, 0x6d, + 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x64, 0x69, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x3b, 0x0a, 0x0d, 0x43, 0x61, 0x70, 0x61, 0x63, 0x69, 0x74, + 0x79, 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, 0x03, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, + 0x38, 0x01, 0x22, 0x93, 0x03, 0x0a, 0x19, 0x50, 0x65, 0x72, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, + 0x74, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x53, 0x70, 0x65, 0x63, + 0x12, 0x20, 0x0a, 0x0b, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4d, 0x6f, 0x64, 0x65, 0x73, 0x18, + 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4d, 0x6f, 0x64, + 0x65, 0x73, 0x12, 0x49, 0x0a, 0x09, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, + 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x52, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x6d, 0x65, 0x6e, + 0x74, 0x73, 0x52, 0x09, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x12, 0x1e, 0x0a, + 0x0a, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0a, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x4b, 0x0a, + 0x08, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x2f, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, + 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x53, 0x65, 0x6c, + 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, + 0x52, 0x08, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x2a, 0x0a, 0x10, 0x73, 0x74, + 0x6f, 0x72, 0x61, 0x67, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x43, 0x6c, 0x61, + 0x73, 0x73, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, + 0x4d, 0x6f, 0x64, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x76, 0x6f, 0x6c, 0x75, + 0x6d, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x50, 0x0a, 0x0a, 0x64, 0x61, 0x74, 0x61, 0x53, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x64, 0x61, 0x74, + 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, + 0x6e, 0x74, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x64, 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x4f, 0x62, 0x6a, + 0x65, 0x63, 0x74, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x0a, 0x64, 0x61, + 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x22, 0x5f, 0x0a, 0x19, 0x54, 0x79, 0x70, 0x65, + 0x64, 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x66, 0x65, + 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x61, 0x70, 0x69, 0x47, 0x72, 0x6f, 0x75, + 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x61, 0x70, 0x69, 0x47, 0x72, 0x6f, 0x75, + 0x70, 0x12, 0x12, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xd4, 0x01, 0x0a, 0x1e, 0x50, 0x65, + 0x72, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x74, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x43, 0x6c, + 0x61, 0x69, 0x6d, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, + 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, + 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x24, 0x0a, 0x0d, 0x6c, 0x61, 0x73, 0x74, + 0x50, 0x72, 0x6f, 0x62, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, + 0x0d, 0x6c, 0x61, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x62, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x2e, + 0x0a, 0x12, 0x6c, 0x61, 0x73, 0x74, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, + 0x54, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x12, 0x6c, 0x61, 0x73, 0x74, + 0x54, 0x72, 0x61, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x16, + 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, + 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, + 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, + 0x22, 0xae, 0x01, 0x0a, 0x0a, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x75, 0x6c, 0x65, 0x12, + 0x14, 0x0a, 0x05, 0x76, 0x65, 0x72, 0x62, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, + 0x76, 0x65, 0x72, 0x62, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x70, 0x69, 0x47, 0x72, 0x6f, 0x75, + 0x70, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x61, 0x70, 0x69, 0x47, 0x72, 0x6f, + 0x75, 0x70, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, + 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x73, 0x12, 0x24, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4e, 0x61, 0x6d, + 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x28, 0x0a, 0x0f, 0x6e, 0x6f, 0x6e, 0x52, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x55, 0x52, 0x4c, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, + 0x52, 0x0f, 0x6e, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x55, 0x52, 0x4c, + 0x73, 0x22, 0x6b, 0x0a, 0x07, 0x53, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x12, 0x0a, 0x04, + 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6b, 0x69, 0x6e, 0x64, + 0x12, 0x1a, 0x0a, 0x08, 0x61, 0x70, 0x69, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x08, 0x61, 0x70, 0x69, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x12, 0x0a, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x22, 0xa8, + 0x01, 0x0a, 0x04, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x3b, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x64, 0x61, 0x74, 0x61, + 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, + 0x74, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0x12, 0x37, 0x0a, 0x05, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x18, 0x02, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, + 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x6f, 0x6c, 0x69, + 0x63, 0x79, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x05, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x12, 0x16, 0x0a, + 0x04, 0x79, 0x61, 0x6d, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x42, 0x02, 0x18, 0x01, 0x52, + 0x04, 0x79, 0x61, 0x6d, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x04, 0x20, + 0x03, 0x28, 0x09, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x22, 0xfe, 0x01, 0x0a, 0x0b, 0x52, 0x6f, + 0x6c, 0x65, 0x42, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x12, 0x3b, 0x0a, 0x08, 0x6d, 0x65, 0x74, + 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x64, 0x61, + 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, + 0x65, 0x6e, 0x74, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x3a, 0x0a, 0x08, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, + 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, + 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, + 0x2e, 0x53, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x08, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, + 0x74, 0x73, 0x12, 0x4a, 0x0a, 0x07, 0x72, 0x6f, 0x6c, 0x65, 0x52, 0x65, 0x66, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, + 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x54, 0x79, 0x70, 0x65, + 0x64, 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x66, 0x65, + 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x07, 0x72, 0x6f, 0x6c, 0x65, 0x52, 0x65, 0x66, 0x12, 0x16, + 0x0a, 0x04, 0x79, 0x61, 0x6d, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x42, 0x02, 0x18, 0x01, + 0x52, 0x04, 0x79, 0x61, 0x6d, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x05, + 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x22, 0xce, 0x02, 0x0a, 0x0b, 0x43, + 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x3b, 0x0a, 0x08, 0x6d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x64, + 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, + 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x37, 0x0a, 0x05, 0x72, 0x75, 0x6c, 0x65, 0x73, + 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, + 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x50, + 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x05, 0x72, 0x75, 0x6c, 0x65, 0x73, + 0x12, 0x5b, 0x0a, 0x10, 0x61, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, + 0x75, 0x6c, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x64, 0x61, 0x74, + 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, + 0x6e, 0x74, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, + 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x10, 0x61, 0x67, 0x67, + 0x72, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x12, 0x16, 0x0a, + 0x04, 0x79, 0x61, 0x6d, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x42, 0x02, 0x18, 0x01, 0x52, + 0x04, 0x79, 0x61, 0x6d, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x05, 0x20, + 0x03, 0x28, 0x09, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x12, 0x40, 0x0a, 0x07, 0x6d, 0x65, 0x74, + 0x72, 0x69, 0x63, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x64, 0x61, 0x74, + 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, + 0x6e, 0x74, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4d, 0x65, 0x74, 0x72, 0x69, + 0x63, 0x73, 0x52, 0x07, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x22, 0x85, 0x02, 0x0a, 0x12, + 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x6f, 0x6c, 0x65, 0x42, 0x69, 0x6e, 0x64, 0x69, + 0x6e, 0x67, 0x12, 0x3b, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, + 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x4d, 0x65, 0x74, + 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, + 0x3a, 0x0a, 0x08, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x1e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, + 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x75, 0x62, 0x6a, 0x65, 0x63, + 0x74, 0x52, 0x08, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x12, 0x4a, 0x0a, 0x07, 0x72, + 0x6f, 0x6c, 0x65, 0x52, 0x65, 0x66, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x64, + 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, + 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x64, 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x4f, + 0x62, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x07, + 0x72, 0x6f, 0x6c, 0x65, 0x52, 0x65, 0x66, 0x12, 0x16, 0x0a, 0x04, 0x79, 0x61, 0x6d, 0x6c, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x0c, 0x42, 0x02, 0x18, 0x01, 0x52, 0x04, 0x79, 0x61, 0x6d, 0x6c, 0x12, + 0x12, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x74, + 0x61, 0x67, 0x73, 0x22, 0xdd, 0x02, 0x0a, 0x0e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x41, + 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x3b, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, + 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, + 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0x12, 0x40, 0x0a, 0x07, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x18, 0x02, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, + 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x4f, 0x62, 0x6a, + 0x65, 0x63, 0x74, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x07, 0x73, 0x65, + 0x63, 0x72, 0x65, 0x74, 0x73, 0x12, 0x5c, 0x0a, 0x10, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x50, 0x75, + 0x6c, 0x6c, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x30, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, + 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x64, 0x4c, 0x6f, 0x63, + 0x61, 0x6c, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, + 0x65, 0x52, 0x10, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x50, 0x75, 0x6c, 0x6c, 0x53, 0x65, 0x63, 0x72, + 0x65, 0x74, 0x73, 0x12, 0x42, 0x0a, 0x1c, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x6f, 0x75, 0x6e, 0x74, + 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x54, 0x6f, + 0x6b, 0x65, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x1c, 0x61, 0x75, 0x74, 0x6f, 0x6d, + 0x6f, 0x75, 0x6e, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, + 0x6e, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x16, 0x0a, 0x04, 0x79, 0x61, 0x6d, 0x6c, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x0c, 0x42, 0x02, 0x18, 0x01, 0x52, 0x04, 0x79, 0x61, 0x6d, 0x6c, 0x12, + 0x12, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x74, + 0x61, 0x67, 0x73, 0x22, 0x75, 0x0a, 0x15, 0x49, 0x6e, 0x67, 0x72, 0x65, 0x73, 0x73, 0x53, 0x65, + 0x72, 0x76, 0x69, 0x63, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x12, 0x20, 0x0a, 0x0b, + 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1a, + 0x0a, 0x08, 0x70, 0x6f, 0x72, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x08, 0x70, 0x6f, 0x72, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x70, 0x6f, + 0x72, 0x74, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, + 0x70, 0x6f, 0x72, 0x74, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x22, 0xa6, 0x01, 0x0a, 0x0e, 0x49, + 0x6e, 0x67, 0x72, 0x65, 0x73, 0x73, 0x42, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x12, 0x46, 0x0a, + 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, + 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, + 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x49, 0x6e, 0x67, 0x72, 0x65, 0x73, 0x73, 0x53, 0x65, + 0x72, 0x76, 0x69, 0x63, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x52, 0x07, 0x73, 0x65, + 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x4c, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, + 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, + 0x54, 0x79, 0x70, 0x65, 0x64, 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, + 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x22, 0x42, 0x0a, 0x0a, 0x49, 0x6e, 0x67, 0x72, 0x65, 0x73, 0x73, 0x54, 0x4c, + 0x53, 0x12, 0x14, 0x0a, 0x05, 0x68, 0x6f, 0x73, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, + 0x52, 0x05, 0x68, 0x6f, 0x73, 0x74, 0x73, 0x12, 0x1e, 0x0a, 0x0a, 0x73, 0x65, 0x63, 0x72, 0x65, + 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x65, 0x63, + 0x72, 0x65, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x82, 0x01, 0x0a, 0x0f, 0x48, 0x54, 0x54, 0x50, + 0x49, 0x6e, 0x67, 0x72, 0x65, 0x73, 0x73, 0x50, 0x61, 0x74, 0x68, 0x12, 0x12, 0x0a, 0x04, 0x70, + 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, + 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x74, 0x68, 0x54, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x08, 0x70, 0x61, 0x74, 0x68, 0x54, 0x79, 0x70, 0x65, 0x12, 0x3f, 0x0a, 0x07, 0x62, + 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x64, + 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, + 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x49, 0x6e, 0x67, 0x72, 0x65, 0x73, 0x73, 0x42, 0x61, 0x63, 0x6b, + 0x65, 0x6e, 0x64, 0x52, 0x07, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x22, 0x67, 0x0a, 0x0b, + 0x49, 0x6e, 0x67, 0x72, 0x65, 0x73, 0x73, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x68, + 0x6f, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x12, + 0x44, 0x0a, 0x09, 0x68, 0x74, 0x74, 0x70, 0x50, 0x61, 0x74, 0x68, 0x73, 0x18, 0x02, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, + 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x48, 0x54, 0x54, 0x50, 0x49, + 0x6e, 0x67, 0x72, 0x65, 0x73, 0x73, 0x50, 0x61, 0x74, 0x68, 0x52, 0x09, 0x68, 0x74, 0x74, 0x70, + 0x50, 0x61, 0x74, 0x68, 0x73, 0x22, 0xf7, 0x01, 0x0a, 0x0b, 0x49, 0x6e, 0x67, 0x72, 0x65, 0x73, + 0x73, 0x53, 0x70, 0x65, 0x63, 0x12, 0x4d, 0x0a, 0x0e, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, + 0x42, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, + 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, + 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x49, 0x6e, 0x67, 0x72, 0x65, 0x73, 0x73, 0x42, 0x61, 0x63, + 0x6b, 0x65, 0x6e, 0x64, 0x52, 0x0e, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x42, 0x61, 0x63, + 0x6b, 0x65, 0x6e, 0x64, 0x12, 0x33, 0x0a, 0x03, 0x74, 0x6c, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x21, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, + 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x49, 0x6e, 0x67, 0x72, 0x65, 0x73, + 0x73, 0x54, 0x4c, 0x53, 0x52, 0x03, 0x74, 0x6c, 0x73, 0x12, 0x38, 0x0a, 0x05, 0x72, 0x75, 0x6c, + 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, + 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, + 0x2e, 0x49, 0x6e, 0x67, 0x72, 0x65, 0x73, 0x73, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x05, 0x72, 0x75, + 0x6c, 0x65, 0x73, 0x12, 0x2a, 0x0a, 0x10, 0x69, 0x6e, 0x67, 0x72, 0x65, 0x73, 0x73, 0x43, 0x6c, + 0x61, 0x73, 0x73, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x69, + 0x6e, 0x67, 0x72, 0x65, 0x73, 0x73, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x4e, 0x61, 0x6d, 0x65, 0x22, + 0x52, 0x0a, 0x0a, 0x50, 0x6f, 0x72, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x12, 0x0a, + 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x70, 0x6f, 0x72, + 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x14, 0x0a, + 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, + 0x72, 0x6f, 0x72, 0x22, 0x7a, 0x0a, 0x13, 0x4c, 0x6f, 0x61, 0x64, 0x42, 0x61, 0x6c, 0x61, 0x6e, + 0x63, 0x65, 0x72, 0x49, 0x6e, 0x67, 0x72, 0x65, 0x73, 0x73, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x70, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x70, 0x12, 0x1a, 0x0a, 0x08, 0x68, 0x6f, + 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x68, 0x6f, + 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x37, 0x0a, 0x05, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x18, + 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, + 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x6f, + 0x72, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x05, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x22, + 0x55, 0x0a, 0x0d, 0x49, 0x6e, 0x67, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x12, 0x44, 0x0a, 0x07, 0x69, 0x6e, 0x67, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x2a, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, + 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x4c, 0x6f, 0x61, 0x64, 0x42, 0x61, + 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x72, 0x49, 0x6e, 0x67, 0x72, 0x65, 0x73, 0x73, 0x52, 0x07, 0x69, + 0x6e, 0x67, 0x72, 0x65, 0x73, 0x73, 0x22, 0xe8, 0x01, 0x0a, 0x07, 0x49, 0x6e, 0x67, 0x72, 0x65, + 0x73, 0x73, 0x12, 0x3b, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, + 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x4d, 0x65, 0x74, + 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, + 0x36, 0x0a, 0x04, 0x73, 0x70, 0x65, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, + 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, + 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x49, 0x6e, 0x67, 0x72, 0x65, 0x73, 0x73, 0x53, 0x70, 0x65, + 0x63, 0x52, 0x04, 0x73, 0x70, 0x65, 0x63, 0x12, 0x3c, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, + 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, + 0x49, 0x6e, 0x67, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x0a, 0x04, 0x79, 0x61, 0x6d, 0x6c, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x0c, 0x42, 0x02, 0x18, 0x01, 0x52, 0x04, 0x79, 0x61, 0x6d, 0x6c, 0x12, 0x12, 0x0a, + 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x74, 0x61, 0x67, + 0x73, 0x22, 0x60, 0x0a, 0x12, 0x4b, 0x61, 0x66, 0x6b, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x72, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0b, 0x72, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x72, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0d, 0x52, 0x0e, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x56, 0x65, 0x72, 0x73, + 0x69, 0x6f, 0x6e, 0x22, 0x81, 0x01, 0x0a, 0x10, 0x4b, 0x61, 0x66, 0x6b, 0x61, 0x41, 0x67, 0x67, + 0x72, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x41, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, + 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, + 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, + 0x2e, 0x4b, 0x61, 0x66, 0x6b, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x65, 0x61, + 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x74, + 0x6f, 0x70, 0x69, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x70, 0x69, + 0x63, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, + 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x87, 0x05, 0x0a, 0x17, 0x44, 0x61, 0x74, 0x61, + 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x73, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x12, 0x83, 0x01, 0x0a, 0x18, 0x6b, 0x61, 0x66, 0x6b, 0x61, 0x50, 0x72, 0x6f, + 0x64, 0x75, 0x63, 0x65, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x47, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, + 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x44, + 0x61, 0x74, 0x61, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x73, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x4b, 0x61, 0x66, 0x6b, 0x61, 0x50, 0x72, 0x6f, 0x64, + 0x75, 0x63, 0x65, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, + 0x18, 0x6b, 0x61, 0x66, 0x6b, 0x61, 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x65, 0x41, 0x67, 0x67, + 0x72, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x7d, 0x0a, 0x16, 0x6b, 0x61, 0x66, + 0x6b, 0x61, 0x46, 0x65, 0x74, 0x63, 0x68, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x45, 0x2e, 0x64, 0x61, 0x74, 0x61, + 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, + 0x74, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x73, 0x41, 0x67, 0x67, + 0x72, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x4b, 0x61, 0x66, 0x6b, 0x61, 0x46, + 0x65, 0x74, 0x63, 0x68, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x52, 0x16, 0x6b, 0x61, 0x66, 0x6b, 0x61, 0x46, 0x65, 0x74, 0x63, 0x68, 0x41, 0x67, 0x67, 0x72, + 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x55, 0x0a, 0x11, 0x6b, 0x61, 0x66, 0x6b, + 0x61, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, + 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x4b, 0x61, 0x66, 0x6b, + 0x61, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x11, 0x6b, 0x61, + 0x66, 0x6b, 0x61, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, + 0x38, 0x0a, 0x0a, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x53, 0x74, 0x61, 0x74, 0x73, 0x12, 0x14, 0x0a, + 0x05, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, + 0x70, 0x69, 0x63, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0d, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x1a, 0x6b, 0x0a, 0x18, 0x4b, 0x61, 0x66, + 0x6b, 0x61, 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x65, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x4f, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x73, 0x18, 0x01, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x39, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, + 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x44, 0x61, 0x74, + 0x61, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x73, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, + 0x05, 0x73, 0x74, 0x61, 0x74, 0x73, 0x1a, 0x69, 0x0a, 0x16, 0x4b, 0x61, 0x66, 0x6b, 0x61, 0x46, + 0x65, 0x74, 0x63, 0x68, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x12, 0x4f, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x39, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, + 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x53, 0x74, 0x72, 0x65, + 0x61, 0x6d, 0x73, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, + 0x54, 0x6f, 0x70, 0x69, 0x63, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, + 0x73, 0x22, 0x6e, 0x0a, 0x10, 0x48, 0x54, 0x54, 0x50, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x54, 0x0a, 0x14, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, + 0x74, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, + 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x48, 0x54, 0x54, 0x50, + 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x14, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x41, + 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x4a, 0x04, 0x08, 0x01, 0x10, + 0x02, 0x22, 0x69, 0x0a, 0x11, 0x48, 0x54, 0x54, 0x50, 0x32, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x54, 0x0a, 0x14, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, + 0x6e, 0x74, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, + 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x48, 0x54, 0x54, + 0x50, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x14, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, + 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x99, 0x04, 0x0a, + 0x09, 0x48, 0x54, 0x54, 0x50, 0x53, 0x74, 0x61, 0x74, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, + 0x74, 0x68, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x39, + 0x0a, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, + 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, + 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x48, 0x54, 0x54, 0x50, 0x4d, 0x65, 0x74, 0x68, 0x6f, + 0x64, 0x52, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x66, 0x75, 0x6c, + 0x6c, 0x50, 0x61, 0x74, 0x68, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x66, 0x75, 0x6c, + 0x6c, 0x50, 0x61, 0x74, 0x68, 0x12, 0x5b, 0x0a, 0x15, 0x73, 0x74, 0x61, 0x74, 0x73, 0x42, 0x79, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, + 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x48, 0x54, 0x54, + 0x50, 0x53, 0x74, 0x61, 0x74, 0x73, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x52, 0x15, 0x73, 0x74, 0x61, + 0x74, 0x73, 0x42, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x53, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x12, 0x65, 0x0a, 0x11, 0x73, 0x74, 0x61, 0x74, 0x73, 0x42, 0x79, 0x53, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x43, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x37, 0x2e, + 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, + 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x48, 0x54, 0x54, 0x50, 0x53, 0x74, 0x61, 0x74, 0x73, 0x2e, + 0x53, 0x74, 0x61, 0x74, 0x73, 0x42, 0x79, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x43, 0x6f, 0x64, + 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x11, 0x73, 0x74, 0x61, 0x74, 0x73, 0x42, 0x79, 0x53, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x43, 0x6f, 0x64, 0x65, 0x1a, 0x6b, 0x0a, 0x16, 0x53, 0x74, 0x61, + 0x74, 0x73, 0x42, 0x79, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x43, 0x6f, 0x64, 0x65, 0x45, 0x6e, + 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, + 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, 0x70, + 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x48, 0x54, 0x54, + 0x50, 0x53, 0x74, 0x61, 0x74, 0x73, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x52, 0x05, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x70, 0x0a, 0x04, 0x44, 0x61, 0x74, 0x61, 0x12, 0x14, + 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x63, + 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x6c, 0x61, 0x74, 0x65, 0x6e, 0x63, 0x69, 0x65, + 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x6c, 0x61, 0x74, 0x65, 0x6e, 0x63, 0x69, + 0x65, 0x73, 0x12, 0x2e, 0x0a, 0x12, 0x66, 0x69, 0x72, 0x73, 0x74, 0x4c, 0x61, 0x74, 0x65, 0x6e, + 0x63, 0x79, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x01, 0x52, 0x12, + 0x66, 0x69, 0x72, 0x73, 0x74, 0x4c, 0x61, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x53, 0x61, 0x6d, 0x70, + 0x6c, 0x65, 0x4a, 0x04, 0x08, 0x03, 0x10, 0x04, 0x22, 0x34, 0x0a, 0x10, 0x44, 0x4e, 0x53, 0x44, + 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x20, 0x0a, 0x0b, + 0x6e, 0x61, 0x6d, 0x65, 0x4f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x05, 0x52, 0x0b, 0x6e, 0x61, 0x6d, 0x65, 0x4f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x73, 0x22, 0xaa, + 0x01, 0x0a, 0x0c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x12, + 0x59, 0x0a, 0x0c, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, + 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, + 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x52, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x2e, 0x4d, 0x65, 0x74, 0x72, 0x69, + 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0c, 0x6d, 0x65, + 0x74, 0x72, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x1a, 0x3f, 0x0a, 0x11, 0x4d, 0x65, + 0x74, 0x72, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 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, 0x01, + 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xe9, 0x02, 0x0a, 0x15, + 0x56, 0x65, 0x72, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x50, 0x6f, 0x64, 0x41, 0x75, 0x74, 0x6f, 0x73, + 0x63, 0x61, 0x6c, 0x65, 0x72, 0x12, 0x3b, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, + 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, + 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, + 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0x12, 0x44, 0x0a, 0x04, 0x73, 0x70, 0x65, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x30, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, + 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x56, 0x65, 0x72, 0x74, 0x69, 0x63, 0x61, + 0x6c, 0x50, 0x6f, 0x64, 0x41, 0x75, 0x74, 0x6f, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x72, 0x53, 0x70, + 0x65, 0x63, 0x52, 0x04, 0x73, 0x70, 0x65, 0x63, 0x12, 0x4a, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, + 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, + 0x2e, 0x56, 0x65, 0x72, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x50, 0x6f, 0x64, 0x41, 0x75, 0x74, 0x6f, + 0x73, 0x63, 0x61, 0x6c, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x0a, 0x04, 0x79, 0x61, 0x6d, 0x6c, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x0c, 0x42, 0x02, 0x18, 0x01, 0x52, 0x04, 0x79, 0x61, 0x6d, 0x6c, 0x12, 0x12, 0x0a, 0x04, + 0x74, 0x61, 0x67, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, + 0x12, 0x55, 0x0a, 0x0a, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x06, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, + 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x56, 0x65, 0x72, + 0x74, 0x69, 0x63, 0x61, 0x6c, 0x50, 0x6f, 0x64, 0x41, 0x75, 0x74, 0x6f, 0x73, 0x63, 0x61, 0x6c, + 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x63, 0x6f, 0x6e, + 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0xae, 0x01, 0x0a, 0x1e, 0x56, 0x65, 0x72, 0x74, + 0x69, 0x63, 0x61, 0x6c, 0x50, 0x6f, 0x64, 0x41, 0x75, 0x74, 0x6f, 0x73, 0x63, 0x61, 0x6c, 0x65, + 0x72, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, + 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x16, + 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, + 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x2e, 0x0a, 0x12, 0x6c, 0x61, 0x73, 0x74, 0x54, 0x72, + 0x61, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x03, 0x52, 0x12, 0x6c, 0x61, 0x73, 0x74, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x69, 0x74, 0x69, + 0x6f, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x18, + 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0xe3, 0x01, 0x0a, 0x19, 0x56, 0x65, 0x72, + 0x74, 0x69, 0x63, 0x61, 0x6c, 0x50, 0x6f, 0x64, 0x41, 0x75, 0x74, 0x6f, 0x73, 0x63, 0x61, 0x6c, + 0x65, 0x72, 0x53, 0x70, 0x65, 0x63, 0x12, 0x4a, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, + 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x56, + 0x65, 0x72, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x50, 0x6f, 0x64, 0x41, 0x75, 0x74, 0x6f, 0x73, 0x63, + 0x61, 0x6c, 0x65, 0x72, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, + 0x65, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x6f, 0x64, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x6f, + 0x64, 0x65, 0x12, 0x5a, 0x0a, 0x10, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x50, 0x6f, + 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x64, + 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, + 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x52, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x10, 0x72, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x22, 0x45, + 0x0a, 0x1b, 0x56, 0x65, 0x72, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x50, 0x6f, 0x64, 0x41, 0x75, 0x74, + 0x6f, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x72, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x12, 0x0a, + 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6b, 0x69, 0x6e, + 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xb9, 0x02, 0x0a, 0x17, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, + 0x6e, 0x65, 0x72, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, + 0x79, 0x12, 0x24, 0x0a, 0x0d, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x4e, 0x61, + 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, + 0x6e, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x12, 0x43, 0x0a, 0x0a, 0x6d, + 0x69, 0x6e, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x23, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, + 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x4c, 0x69, 0x73, 0x74, 0x52, 0x0a, 0x6d, 0x69, 0x6e, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, + 0x12, 0x43, 0x0a, 0x0a, 0x6d, 0x61, 0x78, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, + 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x52, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x0a, 0x6d, 0x61, 0x78, 0x41, 0x6c, + 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x12, 0x2e, 0x0a, 0x12, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, + 0x6c, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x05, 0x20, 0x03, 0x28, + 0x09, 0x52, 0x12, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x2a, 0x0a, 0x10, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, + 0x6c, 0x65, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x10, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, + 0x73, 0x22, 0xee, 0x01, 0x0a, 0x1b, 0x56, 0x65, 0x72, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x50, 0x6f, + 0x64, 0x41, 0x75, 0x74, 0x6f, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x12, 0x30, 0x0a, 0x13, 0x4c, 0x61, 0x73, 0x74, 0x52, 0x65, 0x63, 0x6f, 0x6d, 0x6d, 0x65, + 0x6e, 0x64, 0x65, 0x64, 0x44, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x13, + 0x4c, 0x61, 0x73, 0x74, 0x52, 0x65, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x44, + 0x61, 0x74, 0x65, 0x12, 0x58, 0x0a, 0x0f, 0x72, 0x65, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x64, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x64, + 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, + 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x52, 0x65, + 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0f, 0x72, 0x65, + 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x43, 0x0a, + 0x0a, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x23, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, + 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x56, 0x50, 0x41, 0x43, 0x6f, 0x6e, + 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x22, 0xd3, 0x02, 0x0a, 0x17, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, + 0x52, 0x65, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x24, + 0x0a, 0x0d, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, + 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x3b, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, + 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x52, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, + 0x74, 0x12, 0x43, 0x0a, 0x0a, 0x6c, 0x6f, 0x77, 0x65, 0x72, 0x42, 0x6f, 0x75, 0x6e, 0x64, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, + 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x52, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x0a, 0x6c, 0x6f, 0x77, 0x65, + 0x72, 0x42, 0x6f, 0x75, 0x6e, 0x64, 0x12, 0x43, 0x0a, 0x0a, 0x75, 0x70, 0x70, 0x65, 0x72, 0x42, + 0x6f, 0x75, 0x6e, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x64, 0x61, 0x74, + 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, + 0x6e, 0x74, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, + 0x0a, 0x75, 0x70, 0x70, 0x65, 0x72, 0x42, 0x6f, 0x75, 0x6e, 0x64, 0x12, 0x4b, 0x0a, 0x0e, 0x75, + 0x6e, 0x63, 0x61, 0x70, 0x70, 0x65, 0x64, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, + 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x52, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x0e, 0x75, 0x6e, 0x63, 0x61, 0x70, 0x70, + 0x65, 0x64, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x22, 0xc0, 0x01, 0x0a, 0x0c, 0x56, 0x50, 0x41, + 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x0a, 0x0d, 0x43, 0x6f, 0x6e, + 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0d, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, + 0x28, 0x0a, 0x0f, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, + 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x2e, 0x0a, 0x12, 0x4c, 0x61, 0x73, + 0x74, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x12, 0x4c, 0x61, 0x73, 0x74, 0x54, 0x72, 0x61, 0x6e, 0x73, + 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x52, 0x65, 0x61, + 0x73, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x52, 0x65, 0x61, 0x73, 0x6f, + 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x07, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2a, 0x45, 0x0a, 0x11, 0x43, + 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x48, 0x6f, 0x73, 0x74, 0x54, 0x79, 0x70, 0x65, + 0x12, 0x10, 0x0a, 0x0c, 0x6e, 0x6f, 0x74, 0x53, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x65, 0x64, + 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x66, 0x61, 0x72, 0x67, 0x61, 0x74, 0x65, 0x45, 0x43, 0x53, + 0x10, 0x01, 0x12, 0x0e, 0x0a, 0x0a, 0x66, 0x61, 0x72, 0x67, 0x61, 0x74, 0x65, 0x45, 0x4b, 0x53, + 0x10, 0x02, 0x2a, 0x69, 0x0a, 0x0e, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x53, + 0x74, 0x61, 0x74, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x75, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x10, + 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x10, 0x01, 0x12, 0x0e, + 0x0a, 0x0a, 0x72, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x10, 0x02, 0x12, 0x0b, + 0x0a, 0x07, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x10, 0x03, 0x12, 0x0a, 0x0a, 0x06, 0x70, + 0x61, 0x75, 0x73, 0x65, 0x64, 0x10, 0x04, 0x12, 0x0a, 0x0a, 0x06, 0x65, 0x78, 0x69, 0x74, 0x65, + 0x64, 0x10, 0x05, 0x12, 0x08, 0x0a, 0x04, 0x64, 0x65, 0x61, 0x64, 0x10, 0x06, 0x2a, 0x4e, 0x0a, + 0x0f, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, + 0x12, 0x11, 0x0a, 0x0d, 0x75, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x48, 0x65, 0x61, 0x6c, 0x74, + 0x68, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x73, 0x74, 0x61, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x10, + 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x79, 0x10, 0x02, 0x12, 0x0d, + 0x0a, 0x09, 0x75, 0x6e, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x79, 0x10, 0x03, 0x2a, 0x46, 0x0a, + 0x0c, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x05, 0x0a, + 0x01, 0x55, 0x10, 0x00, 0x12, 0x05, 0x0a, 0x01, 0x44, 0x10, 0x01, 0x12, 0x05, 0x0a, 0x01, 0x52, + 0x10, 0x02, 0x12, 0x05, 0x0a, 0x01, 0x53, 0x10, 0x03, 0x12, 0x05, 0x0a, 0x01, 0x54, 0x10, 0x04, + 0x12, 0x05, 0x0a, 0x01, 0x57, 0x10, 0x05, 0x12, 0x05, 0x0a, 0x01, 0x58, 0x10, 0x06, 0x12, 0x05, + 0x0a, 0x01, 0x5a, 0x10, 0x07, 0x2a, 0x22, 0x0a, 0x0e, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x07, 0x0a, 0x03, 0x74, 0x63, 0x70, 0x10, 0x00, + 0x12, 0x07, 0x0a, 0x03, 0x75, 0x64, 0x70, 0x10, 0x01, 0x2a, 0xfe, 0x02, 0x0a, 0x0b, 0x4b, 0x38, + 0x73, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x1b, 0x0a, 0x17, 0x4b, 0x38, 0x53, + 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, + 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x50, 0x4f, 0x44, 0x10, 0x01, 0x12, + 0x0e, 0x0a, 0x0a, 0x52, 0x45, 0x50, 0x4c, 0x49, 0x43, 0x41, 0x53, 0x45, 0x54, 0x10, 0x02, 0x12, + 0x0b, 0x0a, 0x07, 0x53, 0x45, 0x52, 0x56, 0x49, 0x43, 0x45, 0x10, 0x03, 0x12, 0x08, 0x0a, 0x04, + 0x4e, 0x4f, 0x44, 0x45, 0x10, 0x04, 0x12, 0x0b, 0x0a, 0x07, 0x43, 0x4c, 0x55, 0x53, 0x54, 0x45, + 0x52, 0x10, 0x05, 0x12, 0x07, 0x0a, 0x03, 0x4a, 0x4f, 0x42, 0x10, 0x06, 0x12, 0x0b, 0x0a, 0x07, + 0x43, 0x52, 0x4f, 0x4e, 0x4a, 0x4f, 0x42, 0x10, 0x07, 0x12, 0x0d, 0x0a, 0x09, 0x44, 0x41, 0x45, + 0x4d, 0x4f, 0x4e, 0x53, 0x45, 0x54, 0x10, 0x08, 0x12, 0x0f, 0x0a, 0x0b, 0x53, 0x54, 0x41, 0x54, + 0x45, 0x46, 0x55, 0x4c, 0x53, 0x45, 0x54, 0x10, 0x09, 0x12, 0x14, 0x0a, 0x10, 0x50, 0x45, 0x52, + 0x53, 0x49, 0x53, 0x54, 0x45, 0x4e, 0x54, 0x56, 0x4f, 0x4c, 0x55, 0x4d, 0x45, 0x10, 0x0a, 0x12, + 0x19, 0x0a, 0x15, 0x50, 0x45, 0x52, 0x53, 0x49, 0x53, 0x54, 0x45, 0x4e, 0x54, 0x56, 0x4f, 0x4c, + 0x55, 0x4d, 0x45, 0x43, 0x4c, 0x41, 0x49, 0x4d, 0x10, 0x0b, 0x12, 0x08, 0x0a, 0x04, 0x52, 0x4f, + 0x4c, 0x45, 0x10, 0x0c, 0x12, 0x0f, 0x0a, 0x0b, 0x52, 0x4f, 0x4c, 0x45, 0x42, 0x49, 0x4e, 0x44, + 0x49, 0x4e, 0x47, 0x10, 0x0d, 0x12, 0x0f, 0x0a, 0x0b, 0x43, 0x4c, 0x55, 0x53, 0x54, 0x45, 0x52, + 0x52, 0x4f, 0x4c, 0x45, 0x10, 0x0e, 0x12, 0x16, 0x0a, 0x12, 0x43, 0x4c, 0x55, 0x53, 0x54, 0x45, + 0x52, 0x52, 0x4f, 0x4c, 0x45, 0x42, 0x49, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x0f, 0x12, 0x12, + 0x0a, 0x0e, 0x53, 0x45, 0x52, 0x56, 0x49, 0x43, 0x45, 0x41, 0x43, 0x43, 0x4f, 0x55, 0x4e, 0x54, + 0x10, 0x10, 0x12, 0x0b, 0x0a, 0x07, 0x49, 0x4e, 0x47, 0x52, 0x45, 0x53, 0x53, 0x10, 0x11, 0x12, + 0x0e, 0x0a, 0x0a, 0x44, 0x45, 0x50, 0x4c, 0x4f, 0x59, 0x4d, 0x45, 0x4e, 0x54, 0x10, 0x12, 0x12, + 0x0d, 0x0a, 0x09, 0x4e, 0x41, 0x4d, 0x45, 0x53, 0x50, 0x41, 0x43, 0x45, 0x10, 0x13, 0x12, 0x07, + 0x0a, 0x03, 0x43, 0x52, 0x44, 0x10, 0x14, 0x12, 0x06, 0x0a, 0x02, 0x43, 0x52, 0x10, 0x15, 0x12, + 0x19, 0x0a, 0x15, 0x56, 0x45, 0x52, 0x54, 0x49, 0x43, 0x41, 0x4c, 0x50, 0x4f, 0x44, 0x41, 0x55, + 0x54, 0x4f, 0x53, 0x43, 0x41, 0x4c, 0x45, 0x52, 0x10, 0x16, 0x2a, 0x65, 0x0a, 0x18, 0x52, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x6d, 0x65, 0x6e, + 0x74, 0x73, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0f, 0x0a, 0x0b, 0x75, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, + 0x6e, 0x54, 0x79, 0x70, 0x65, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x63, 0x6f, 0x6e, 0x74, 0x61, + 0x69, 0x6e, 0x65, 0x72, 0x10, 0x01, 0x12, 0x11, 0x0a, 0x0d, 0x69, 0x6e, 0x69, 0x74, 0x43, 0x6f, + 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x10, 0x02, 0x12, 0x16, 0x0a, 0x12, 0x65, 0x70, 0x68, + 0x65, 0x6d, 0x65, 0x72, 0x61, 0x6c, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x10, + 0x03, 0x2a, 0x57, 0x0a, 0x12, 0x48, 0x54, 0x54, 0x50, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x08, 0x0a, 0x04, 0x49, 0x6e, 0x66, 0x6f, 0x10, + 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x10, 0x01, 0x12, 0x0c, + 0x0a, 0x08, 0x52, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x10, 0x02, 0x12, 0x0d, 0x0a, 0x09, + 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x45, 0x72, 0x72, 0x10, 0x03, 0x12, 0x0d, 0x0a, 0x09, 0x53, + 0x65, 0x72, 0x76, 0x65, 0x72, 0x45, 0x72, 0x72, 0x10, 0x04, 0x2a, 0x63, 0x0a, 0x0a, 0x48, 0x54, + 0x54, 0x50, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x6e, 0x6b, 0x6e, + 0x6f, 0x77, 0x6e, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x47, 0x65, 0x74, 0x10, 0x01, 0x12, 0x08, + 0x0a, 0x04, 0x50, 0x6f, 0x73, 0x74, 0x10, 0x02, 0x12, 0x07, 0x0a, 0x03, 0x50, 0x75, 0x74, 0x10, + 0x03, 0x12, 0x0a, 0x0a, 0x06, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x10, 0x04, 0x12, 0x08, 0x0a, + 0x04, 0x48, 0x65, 0x61, 0x64, 0x10, 0x05, 0x12, 0x0b, 0x0a, 0x07, 0x4f, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x10, 0x06, 0x12, 0x09, 0x0a, 0x05, 0x50, 0x61, 0x74, 0x63, 0x68, 0x10, 0x07, 0x42, + 0x2d, 0x5a, 0x2b, 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, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x62, 0x06, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - ErrInvalidLengthAgent = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowAgent = fmt.Errorf("proto: integer overflow") + file_proto_process_agent_proto_rawDescOnce sync.Once + file_proto_process_agent_proto_rawDescData = file_proto_process_agent_proto_rawDesc ) -func init() { proto.RegisterFile("proto/process/agent.proto", fileDescriptorAgent) } - -var fileDescriptorAgent = []byte{ - // 9275 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe4, 0x7d, 0x5b, 0x6c, 0x24, 0x57, - 0x76, 0x98, 0xaa, 0xdf, 0x7d, 0xf8, 0x2a, 0xde, 0xe1, 0x50, 0x2d, 0x6a, 0x76, 0x76, 0xb6, 0x76, - 0x57, 0x3b, 0x9e, 0xd5, 0x8e, 0x94, 0x59, 0x49, 0x3b, 0x92, 0x76, 0xb5, 0x22, 0x9b, 0x1c, 0x89, - 0x1c, 0x3e, 0xda, 0xb7, 0xc9, 0xd1, 0x5a, 0x92, 0xa1, 0x2d, 0x56, 0x5d, 0x36, 0xcb, 0xac, 0xae, - 0x6a, 0x57, 0x55, 0x73, 0x86, 0x0a, 0xf2, 0xe1, 0x6c, 0x9c, 0xc0, 0x40, 0x8c, 0x2c, 0x9c, 0x04, - 0xce, 0x7e, 0xe4, 0xc3, 0x79, 0x21, 0x71, 0x82, 0x45, 0xf6, 0x2b, 0xc8, 0x5f, 0x60, 0x20, 0x70, - 0x60, 0x03, 0x46, 0x02, 0xe7, 0xc3, 0x08, 0x12, 0xc0, 0xd1, 0xc2, 0x41, 0xe2, 0x8f, 0xfc, 0xc5, - 0x01, 0x62, 0xc0, 0x09, 0xee, 0xab, 0xea, 0x56, 0x75, 0x55, 0x77, 0x93, 0x1c, 0x89, 0x5a, 0xe4, - 0xab, 0xfb, 0x9e, 0x7b, 0xef, 0xb9, 0xaf, 0x73, 0xce, 0x3d, 0xe7, 0xdc, 0x73, 0x6f, 0xc1, 0x73, - 0x83, 0xc0, 0x8f, 0xfc, 0x97, 0x06, 0x81, 0x6f, 0x91, 0x30, 0x7c, 0xc9, 0xec, 0x11, 0x2f, 0xba, - 0xcb, 0x60, 0xe8, 0xba, 0x6d, 0x46, 0xa6, 0xed, 0xf7, 0xee, 0x8a, 0xcc, 0x8f, 0x58, 0xa6, 0xf1, - 0x7b, 0x1a, 0xcc, 0x62, 0x12, 0xb6, 0x7d, 0xd7, 0x25, 0x56, 0xe4, 0x07, 0x68, 0x0d, 0x6a, 0xc7, - 0xc4, 0xb4, 0x49, 0xd0, 0xd2, 0x6e, 0x69, 0xb7, 0x67, 0xee, 0xdd, 0xb9, 0x9b, 0x5b, 0xf1, 0xae, - 0x5a, 0xe9, 0xee, 0xbb, 0xac, 0x06, 0x16, 0x35, 0x51, 0x0b, 0xea, 0x7d, 0x12, 0x86, 0x66, 0x8f, - 0xb4, 0x4a, 0xb7, 0xb4, 0xdb, 0x4d, 0x2c, 0x93, 0xe8, 0x2d, 0xa8, 0x85, 0x91, 0x19, 0x0d, 0xc3, - 0x56, 0x99, 0x61, 0x7f, 0xa1, 0x00, 0x7b, 0x8c, 0xba, 0xcb, 0x4a, 0x63, 0x51, 0x6b, 0xe5, 0x06, - 0xd4, 0x78, 0x5b, 0x08, 0x41, 0x25, 0x3a, 0x1b, 0x90, 0x56, 0xe5, 0x96, 0x76, 0xbb, 0x8a, 0xd9, - 0x7f, 0xe3, 0xff, 0x94, 0x61, 0x2e, 0xae, 0xd9, 0x09, 0x7c, 0x0b, 0xad, 0x40, 0xe3, 0xd8, 0x0f, - 0xa3, 0x5d, 0xb3, 0x2f, 0xbb, 0x12, 0xa7, 0xd1, 0xb7, 0xa1, 0x29, 0x1a, 0x25, 0xb4, 0x3b, 0xe5, - 0xdb, 0x33, 0xf7, 0x6e, 0x16, 0x74, 0xa7, 0xc3, 0x53, 0x38, 0xa9, 0x80, 0x5e, 0x82, 0x0a, 0xc5, - 0xc4, 0xda, 0x9f, 0xb9, 0xf7, 0x7c, 0x41, 0xc5, 0x77, 0xfd, 0x30, 0xc2, 0xac, 0x20, 0x7a, 0x15, - 0x2a, 0x8e, 0x77, 0xe4, 0xb7, 0xaa, 0xac, 0xc2, 0x97, 0x0a, 0x2a, 0x74, 0xcf, 0xc2, 0x88, 0xf4, - 0x37, 0xbd, 0x23, 0x1f, 0xb3, 0xe2, 0x74, 0x2e, 0x7b, 0x81, 0x3f, 0x1c, 0x6c, 0xda, 0xad, 0x1a, - 0x1b, 0xaa, 0x4c, 0xa2, 0x1b, 0xd0, 0x64, 0x7f, 0xbb, 0xce, 0xc7, 0xa4, 0x55, 0x67, 0x79, 0x09, - 0x00, 0xbd, 0x0d, 0x60, 0xf9, 0x5e, 0x64, 0x3a, 0x1e, 0x09, 0xc2, 0x16, 0xb0, 0xe1, 0xdd, 0x2a, - 0x9c, 0x6d, 0x51, 0x10, 0x2b, 0x75, 0x28, 0x7e, 0x8f, 0x44, 0x8f, 0xfd, 0xe0, 0x64, 0xd3, 0x6e, - 0xcd, 0xb0, 0xc9, 0x4b, 0x00, 0xe8, 0x11, 0x2c, 0xc6, 0x65, 0xe9, 0x28, 0xf7, 0xe9, 0x62, 0xcc, - 0xde, 0xd2, 0x6e, 0xcf, 0xdf, 0xbb, 0x3d, 0xa9, 0x19, 0x59, 0x1e, 0x8f, 0xa2, 0x40, 0x37, 0xa0, - 0x71, 0xec, 0x78, 0xd1, 0x8e, 0x19, 0x9e, 0xb4, 0xe6, 0xe9, 0xa0, 0xde, 0x7d, 0x06, 0xc7, 0x90, - 0xb5, 0x3a, 0x54, 0xe9, 0xff, 0x70, 0xab, 0xd2, 0x98, 0xd3, 0xe7, 0xb7, 0x2a, 0x8d, 0x86, 0xde, - 0xdc, 0xaa, 0x34, 0x9a, 0x3a, 0x18, 0x7f, 0xa6, 0xc1, 0x72, 0x6a, 0xf1, 0xd7, 0x9d, 0xd0, 0xf2, - 0x4f, 0x49, 0x70, 0x96, 0xa2, 0x02, 0x2d, 0x43, 0x05, 0xca, 0xfc, 0x96, 0xc6, 0xcc, 0x6f, 0x39, - 0x3b, 0xbf, 0xef, 0x01, 0x12, 0xa3, 0x93, 0xed, 0x38, 0x24, 0x6c, 0x55, 0xd8, 0x3c, 0x7f, 0x6d, - 0x3c, 0x19, 0xc5, 0x1d, 0xc3, 0x39, 0x28, 0x62, 0xc2, 0xaa, 0x4e, 0x49, 0x58, 0xc6, 0x4f, 0xca, - 0xb0, 0x18, 0x0f, 0x1c, 0x13, 0xd3, 0xdd, 0x77, 0xfa, 0x64, 0x2c, 0xe5, 0xdf, 0x87, 0x2a, 0xe5, - 0x27, 0x49, 0xf5, 0xc6, 0xf8, 0xee, 0x52, 0x16, 0xc4, 0xbc, 0x02, 0x5a, 0x86, 0x1a, 0xc5, 0xb2, - 0x69, 0x33, 0xba, 0x2f, 0x63, 0x91, 0x42, 0x4b, 0x50, 0xf5, 0x83, 0xde, 0xa6, 0xcd, 0x7a, 0x5d, - 0xc5, 0x3c, 0x71, 0x61, 0xda, 0x6d, 0x41, 0xdd, 0x1b, 0xf6, 0xdb, 0x83, 0x61, 0xd8, 0x6a, 0xf0, - 0x7a, 0x22, 0x89, 0x6e, 0xc1, 0x4c, 0xe4, 0x47, 0xa6, 0xbb, 0x43, 0xfa, 0x7e, 0x70, 0xd6, 0x6a, - 0xb2, 0x4e, 0xa8, 0x20, 0xb4, 0x0d, 0xf3, 0x31, 0x51, 0x75, 0xd9, 0x20, 0x39, 0xed, 0x7f, 0x65, - 0x12, 0x51, 0xb2, 0x61, 0x66, 0xea, 0xe6, 0x53, 0xf9, 0xcc, 0xa5, 0xa9, 0xdc, 0xf8, 0x3b, 0x65, - 0x40, 0xf1, 0x9a, 0xc5, 0x35, 0xc6, 0x12, 0xaa, 0x94, 0x1f, 0xa5, 0xf3, 0xc9, 0x8f, 0xb4, 0x1c, - 0x28, 0x5f, 0x40, 0x0e, 0x28, 0xab, 0x58, 0x19, 0xb3, 0x8a, 0xd5, 0xec, 0x2a, 0x4a, 0x42, 0x6e, - 0x4c, 0x2b, 0x21, 0x73, 0x27, 0xbb, 0xf9, 0x34, 0x44, 0xca, 0x18, 0x41, 0xb6, 0x55, 0x69, 0xd4, - 0xf4, 0xfa, 0x56, 0xa5, 0x51, 0xd7, 0x1b, 0xc6, 0x1f, 0x95, 0x60, 0x65, 0x74, 0x59, 0x72, 0x79, - 0x2a, 0xbb, 0x3c, 0x6f, 0x48, 0x9e, 0x2a, 0x9d, 0x83, 0xdc, 0x04, 0x57, 0x29, 0xf4, 0x5e, 0x1e, - 0x4b, 0xef, 0x95, 0x51, 0x7a, 0x4f, 0x38, 0xb2, 0x9a, 0xe2, 0xc8, 0x8b, 0xf2, 0x5e, 0xee, 0x22, - 0x34, 0x2e, 0x4f, 0xf1, 0x2f, 0x2b, 0x04, 0x8f, 0xc9, 0x2f, 0xf3, 0x7d, 0x7d, 0x9c, 0x94, 0x32, - 0x7e, 0xb3, 0x04, 0xb3, 0x89, 0x40, 0xf7, 0xed, 0xb1, 0xd3, 0x7f, 0x0b, 0x66, 0x2c, 0x77, 0x18, - 0x46, 0x24, 0x50, 0x70, 0xa9, 0x20, 0x3a, 0x6c, 0x91, 0xdc, 0xb4, 0xd9, 0x34, 0x37, 0x71, 0x02, - 0xb8, 0x30, 0x91, 0xdf, 0x85, 0xca, 0xc0, 0xb7, 0xc3, 0x56, 0x8d, 0xad, 0xfa, 0x4a, 0x91, 0x24, - 0xf5, 0x6d, 0xcc, 0xca, 0xc5, 0x4c, 0x51, 0x9f, 0x96, 0x29, 0xa8, 0x9e, 0x63, 0xf6, 0xa8, 0x20, - 0x2c, 0xdf, 0x6e, 0x62, 0xf6, 0xdf, 0xf8, 0x6f, 0x1a, 0x5c, 0x53, 0x26, 0x73, 0xe0, 0x3a, 0x96, - 0xd9, 0x25, 0x51, 0x76, 0x12, 0xb4, 0x09, 0x93, 0x50, 0x1a, 0x33, 0x09, 0xe5, 0x31, 0x93, 0x50, - 0xc9, 0x4e, 0x42, 0x1b, 0x66, 0x82, 0xb8, 0x17, 0x61, 0xab, 0xca, 0xe6, 0xe2, 0x4b, 0x85, 0x8a, - 0xa3, 0x2c, 0x89, 0xd5, 0x5a, 0xf1, 0x40, 0x6b, 0x45, 0x03, 0x5d, 0x27, 0x03, 0xd7, 0x3f, 0xeb, - 0x13, 0xef, 0x4a, 0x07, 0x6a, 0xc7, 0xbd, 0x98, 0x34, 0xd0, 0xa4, 0xbf, 0x58, 0xad, 0x95, 0x3b, - 0xd0, 0xff, 0xa4, 0x81, 0x9e, 0xe8, 0xbc, 0x24, 0x38, 0x75, 0x2c, 0x72, 0x65, 0xa3, 0x7c, 0x03, - 0x1a, 0x21, 0xef, 0x82, 0x1c, 0x62, 0x91, 0x5e, 0x2c, 0x7a, 0x8a, 0xe3, 0xf2, 0xb9, 0x83, 0xfb, - 0x7b, 0xaa, 0x5a, 0xbe, 0xeb, 0xdb, 0x57, 0x37, 0xb2, 0xbf, 0x04, 0x55, 0xcf, 0xb7, 0xe3, 0x61, - 0x15, 0xb1, 0x1f, 0xed, 0x23, 0xe6, 0x25, 0xf3, 0x06, 0x84, 0x8e, 0x40, 0xa7, 0xbc, 0xb9, 0xea, - 0x3a, 0x66, 0xb8, 0x63, 0x0e, 0x06, 0x8e, 0xd7, 0x6b, 0xd5, 0x19, 0xc6, 0x37, 0x26, 0xd9, 0x33, - 0x14, 0x35, 0x63, 0x6f, 0xb5, 0xf2, 0x86, 0x17, 0x05, 0x67, 0x78, 0x04, 0xe7, 0xca, 0xf7, 0xe1, - 0x7a, 0x6e, 0x51, 0xa4, 0x43, 0xf9, 0x84, 0x9c, 0x89, 0x79, 0xa3, 0x7f, 0xe9, 0xc8, 0x4e, 0x4d, - 0x77, 0x48, 0x84, 0x7a, 0x30, 0x56, 0xb0, 0xf0, 0x92, 0x6f, 0x94, 0xee, 0x6b, 0xc6, 0x1f, 0xa9, - 0x74, 0xd7, 0xe6, 0xf3, 0x7b, 0x65, 0xab, 0x73, 0x1f, 0xea, 0x02, 0x89, 0x50, 0x7e, 0x8b, 0xc8, - 0x4e, 0x74, 0x14, 0xcb, 0xe2, 0xb9, 0x54, 0xf7, 0x7b, 0x9a, 0xa2, 0x16, 0xef, 0x98, 0x9e, 0x73, - 0x44, 0xc2, 0xab, 0x93, 0x1c, 0xdf, 0x81, 0x66, 0x5f, 0xf4, 0x41, 0x52, 0xdf, 0x17, 0x0b, 0x46, - 0x27, 0xfb, 0x8a, 0x93, 0x1a, 0xc6, 0x87, 0xb0, 0x34, 0x32, 0x96, 0x36, 0x5e, 0x47, 0xeb, 0xd0, - 0x90, 0x85, 0x84, 0xbd, 0x7e, 0x7b, 0x12, 0x05, 0xc6, 0xe8, 0xe3, 0x9a, 0xc6, 0x07, 0x8a, 0x94, - 0x4d, 0xb0, 0x3f, 0x25, 0xe4, 0x9f, 0x68, 0xca, 0xce, 0x4f, 0x67, 0x38, 0x1c, 0x98, 0x57, 0x28, - 0xdc, 0xde, 0x06, 0xf0, 0x64, 0x27, 0xe4, 0x4a, 0x14, 0xe9, 0xc3, 0x71, 0x6f, 0xb1, 0x52, 0xa7, - 0x88, 0xd8, 0x12, 0x5d, 0x65, 0xcb, 0x3f, 0xbc, 0xb2, 0xe1, 0xdd, 0x85, 0xca, 0x2f, 0xf9, 0x87, - 0x72, 0x60, 0x45, 0xfa, 0xc8, 0x96, 0x7f, 0x88, 0x59, 0xb9, 0xc9, 0x9b, 0x51, 0x3b, 0xf0, 0xbd, - 0xab, 0x1c, 0xd0, 0x1b, 0xd0, 0xb0, 0x78, 0x17, 0x26, 0x6d, 0x46, 0xa2, 0xa7, 0x38, 0x2e, 0x9f, - 0x3b, 0xb8, 0x14, 0x39, 0xae, 0x9b, 0xa4, 0xef, 0x7b, 0x57, 0xa9, 0x3a, 0xbd, 0x0d, 0x60, 0xcb, - 0x4e, 0x4c, 0x22, 0xc7, 0xb8, 0xb7, 0x58, 0xa9, 0x93, 0x3b, 0xc8, 0x3f, 0xd5, 0x14, 0x79, 0x41, - 0x55, 0x6d, 0x72, 0x34, 0x74, 0xaf, 0x72, 0x98, 0x0f, 0x60, 0x36, 0x4c, 0xba, 0x21, 0x07, 0x5a, - 0xe4, 0x78, 0x50, 0x7a, 0x8c, 0x53, 0xf5, 0x72, 0x07, 0xfb, 0x17, 0x1a, 0x3c, 0x97, 0xd8, 0x09, - 0x24, 0x08, 0x9d, 0x30, 0x22, 0x5e, 0xf4, 0xc8, 0x77, 0x87, 0xfd, 0xab, 0x93, 0x33, 0x07, 0xb0, - 0x38, 0xc8, 0xf4, 0x45, 0x0e, 0xbb, 0xd0, 0x3d, 0x94, 0x29, 0x8f, 0x47, 0x31, 0xe4, 0x4e, 0xc0, - 0x6f, 0x94, 0xe0, 0x66, 0xe1, 0x04, 0xb4, 0x5d, 0xd3, 0xe9, 0x5f, 0xd9, 0x2c, 0xd8, 0xb0, 0x3c, - 0xc8, 0xeb, 0x90, 0x9c, 0x8a, 0x17, 0xa7, 0x9c, 0x0a, 0x56, 0x09, 0x17, 0xe0, 0xca, 0x9d, 0x94, - 0x3f, 0xd0, 0x14, 0xa5, 0x13, 0xfb, 0xee, 0x95, 0x2a, 0x9d, 0x81, 0xef, 0x4e, 0x54, 0x3a, 0x69, - 0x1f, 0x31, 0x2f, 0x39, 0x99, 0xa7, 0x69, 0xe1, 0x35, 0xc7, 0xb3, 0x1d, 0xaf, 0x77, 0x95, 0x3c, - 0x1d, 0x24, 0xdd, 0x98, 0xc4, 0xd3, 0x4a, 0x8f, 0x71, 0xaa, 0xde, 0xe4, 0xc1, 0x4a, 0x75, 0xef, - 0x2a, 0x17, 0xf1, 0x01, 0xcc, 0x5a, 0x49, 0x37, 0x26, 0x0d, 0x56, 0xe9, 0x31, 0x4e, 0xd5, 0xcb, - 0x1d, 0xec, 0x5f, 0x2f, 0xc1, 0xf3, 0x79, 0x83, 0xbd, 0xea, 0x05, 0xfe, 0x00, 0xae, 0x59, 0x23, - 0xbd, 0x91, 0x43, 0xff, 0xb9, 0xc9, 0x43, 0x97, 0xcb, 0x9d, 0x87, 0x25, 0x77, 0x22, 0xfe, 0x4c, - 0x83, 0x67, 0xb3, 0x56, 0xf0, 0xaa, 0x65, 0xf9, 0xc3, 0x2b, 0x34, 0xf9, 0xf7, 0x60, 0x21, 0x4c, - 0xf5, 0x44, 0x4e, 0xc0, 0x57, 0xc7, 0xdb, 0xc4, 0xa2, 0x34, 0xce, 0xd6, 0xce, 0x1d, 0xf8, 0x7f, - 0x56, 0x35, 0xae, 0x4d, 0xaf, 0x17, 0x90, 0x30, 0xbc, 0xb2, 0x11, 0x7f, 0x1b, 0x9a, 0x0e, 0xef, - 0xc2, 0x44, 0xfb, 0x5f, 0x74, 0x15, 0x27, 0x15, 0x26, 0x6f, 0x50, 0x8f, 0x48, 0x10, 0x39, 0x96, - 0xe9, 0x76, 0x7c, 0x7b, 0x75, 0x18, 0xf9, 0xa1, 0x65, 0xba, 0x57, 0x68, 0x73, 0xda, 0xb0, 0x7c, - 0x9a, 0xd7, 0xa1, 0x49, 0x1b, 0x54, 0xee, 0x28, 0x70, 0x01, 0xae, 0xdc, 0x49, 0xe9, 0xc2, 0x42, - 0xe6, 0x94, 0x13, 0x7d, 0x05, 0xe6, 0x4c, 0x2b, 0x72, 0x4e, 0x49, 0xdb, 0x75, 0x98, 0x83, 0x49, - 0x63, 0xdd, 0x4d, 0x03, 0xd1, 0x0a, 0x34, 0x1c, 0x2f, 0x22, 0xc1, 0xa9, 0xe9, 0x8a, 0x23, 0xab, - 0x38, 0x6d, 0xfc, 0x5a, 0x1d, 0xea, 0xe2, 0xd8, 0x46, 0x75, 0x12, 0xcc, 0x71, 0x27, 0x81, 0x0e, - 0xe5, 0x81, 0x23, 0xcf, 0xb9, 0xe8, 0xdf, 0xd8, 0x1d, 0x59, 0x9e, 0xd6, 0x1d, 0x49, 0x6d, 0x74, - 0xbf, 0xdf, 0x37, 0x3d, 0x5b, 0x9c, 0x7c, 0x16, 0x6a, 0xe3, 0xbc, 0x14, 0x96, 0xc5, 0xd1, 0x6b, - 0x50, 0x19, 0x86, 0xb1, 0x69, 0x3f, 0xe1, 0xcc, 0xe9, 0x20, 0x24, 0x01, 0x66, 0xe5, 0xd1, 0xeb, - 0x50, 0xeb, 0x73, 0xef, 0x77, 0x7d, 0xec, 0xc9, 0x07, 0xf7, 0x87, 0x33, 0xb7, 0xba, 0xa8, 0x80, - 0x5e, 0x86, 0xb2, 0x35, 0x18, 0x8a, 0x03, 0x88, 0xc2, 0x8e, 0x76, 0x0e, 0x58, 0x25, 0x5a, 0x14, - 0xdd, 0x04, 0xb0, 0x02, 0x62, 0x46, 0x64, 0xdf, 0xe9, 0x13, 0x71, 0xbc, 0xa4, 0x40, 0xd0, 0x5b, - 0xd0, 0x8c, 0x5d, 0xdb, 0x2d, 0x60, 0x78, 0x27, 0x1f, 0xa6, 0x24, 0x55, 0x28, 0x99, 0xfb, 0x03, - 0xe2, 0x3d, 0xb0, 0xdb, 0x54, 0x18, 0xb0, 0xc3, 0x88, 0x2a, 0x56, 0x41, 0xe8, 0x75, 0x7e, 0x8e, - 0x20, 0xcf, 0x52, 0xbf, 0x3c, 0xf9, 0x6c, 0x8e, 0xf0, 0x63, 0x04, 0x82, 0x5e, 0x85, 0x9a, 0xe3, - 0x53, 0x48, 0x6b, 0x8e, 0xf5, 0xec, 0x0b, 0x45, 0x5c, 0xbb, 0xc7, 0x67, 0x89, 0x17, 0x66, 0xac, - 0x27, 0x3b, 0xb8, 0x69, 0xb3, 0x43, 0x57, 0xca, 0x7a, 0x09, 0x08, 0x19, 0x30, 0x1b, 0x27, 0x1f, - 0x92, 0xb3, 0xd6, 0x02, 0x23, 0xa9, 0x14, 0x0c, 0xdd, 0x83, 0xa5, 0x53, 0xdf, 0x1d, 0x7a, 0x91, - 0x19, 0x9c, 0xb5, 0xa3, 0x27, 0xdd, 0xc7, 0x4e, 0x64, 0x1d, 0x93, 0xb0, 0xa5, 0xdf, 0xd2, 0x6e, - 0x57, 0x70, 0x6e, 0x1e, 0x7a, 0x0d, 0x96, 0x1d, 0x2f, 0xb7, 0xd6, 0x22, 0xab, 0x55, 0x90, 0x4b, - 0x99, 0xfd, 0xf0, 0x2c, 0x22, 0xb4, 0x2b, 0xe8, 0x96, 0x76, 0x7b, 0x16, 0xcb, 0x24, 0xba, 0x03, - 0x7a, 0xdc, 0xab, 0x35, 0x51, 0xe4, 0x1a, 0x2b, 0x32, 0x02, 0x47, 0x4b, 0x50, 0xf5, 0xc2, 0x8e, - 0x63, 0xb7, 0x96, 0xf8, 0x99, 0x25, 0x4b, 0xa0, 0x35, 0x68, 0x88, 0xb3, 0xa1, 0xb0, 0x75, 0x7d, - 0x6c, 0x8c, 0x82, 0x58, 0x82, 0x5d, 0x51, 0x1a, 0xc7, 0xf5, 0xf8, 0x91, 0x92, 0xf1, 0x9b, 0x25, - 0xd0, 0xb3, 0x27, 0xbe, 0x92, 0x05, 0xb5, 0x84, 0x05, 0xe3, 0x6e, 0x94, 0xd4, 0x6e, 0xfc, 0x0c, - 0x30, 0x66, 0x9a, 0x57, 0x6a, 0x23, 0xbc, 0xa2, 0xac, 0x52, 0x3d, 0xb5, 0x4a, 0xc6, 0x8f, 0x34, - 0xa8, 0x8b, 0x6e, 0x50, 0xd1, 0x68, 0x06, 0x3d, 0x2a, 0xea, 0x98, 0x68, 0xa4, 0xff, 0xe9, 0x24, - 0x59, 0x8f, 0xe5, 0x21, 0x0d, 0xfd, 0x4b, 0x4b, 0x05, 0xbe, 0xcf, 0xa3, 0x2d, 0x9a, 0x98, 0xfd, - 0x47, 0xcb, 0x50, 0xf3, 0xbd, 0x75, 0x27, 0x3c, 0x61, 0x3d, 0x6f, 0x60, 0x91, 0xa2, 0x65, 0x07, - 0x74, 0x8e, 0xf9, 0xb1, 0x17, 0xfb, 0x4f, 0xcb, 0x0e, 0x98, 0xd0, 0x17, 0x07, 0x5e, 0x22, 0x45, - 0x5b, 0x22, 0x4f, 0xf8, 0xf9, 0x56, 0x13, 0xd3, 0xbf, 0xc6, 0xdf, 0xd5, 0x60, 0x46, 0x19, 0x2b, - 0xc5, 0xe6, 0x25, 0x3b, 0x12, 0xfb, 0x4f, 0x6b, 0x0d, 0x13, 0x39, 0x3a, 0x74, 0x6c, 0x0a, 0xe9, - 0x39, 0x72, 0xeb, 0xa1, 0x7f, 0x69, 0x3d, 0x42, 0x0b, 0x89, 0xf8, 0x14, 0xfa, 0x9f, 0xc1, 0x68, - 0xb1, 0xaa, 0x80, 0x89, 0x72, 0xe1, 0x30, 0xe9, 0x6d, 0x28, 0xca, 0x85, 0xb4, 0x5c, 0x5d, 0xc0, - 0x7a, 0x8e, 0x6d, 0xbc, 0x07, 0x0b, 0x19, 0x82, 0x43, 0x2f, 0xb0, 0xa3, 0x6e, 0x8f, 0x58, 0x91, - 0xe3, 0x7b, 0x98, 0xca, 0x0c, 0xda, 0xc9, 0x12, 0xce, 0x40, 0xe9, 0x0e, 0x48, 0x67, 0x3e, 0x64, - 0x45, 0x4a, 0xac, 0x48, 0x02, 0x30, 0x4e, 0xa9, 0x9d, 0x24, 0x58, 0x63, 0xd5, 0xb6, 0x03, 0x34, - 0x0f, 0x25, 0x67, 0x20, 0xc6, 0x5b, 0x72, 0x06, 0x6c, 0x3e, 0xfd, 0x20, 0x12, 0xc3, 0x65, 0xff, - 0xd1, 0x2a, 0x34, 0x58, 0x58, 0x91, 0xe5, 0xbb, 0x6c, 0xd0, 0xf3, 0x85, 0xea, 0x50, 0x3b, 0xee, - 0x0b, 0x3b, 0x19, 0x8c, 0xab, 0x19, 0x7f, 0x58, 0x87, 0x66, 0x72, 0xf2, 0x2d, 0xc3, 0x79, 0xc4, - 0x34, 0xd3, 0xff, 0xac, 0x23, 0x72, 0xab, 0x2f, 0xf1, 0x69, 0x61, 0x4b, 0x51, 0x56, 0x96, 0x62, - 0x09, 0xaa, 0x4e, 0xdf, 0xec, 0x11, 0x41, 0x19, 0x3c, 0x41, 0xb7, 0x48, 0x6b, 0x30, 0xdc, 0x76, - 0xfa, 0x0e, 0x8f, 0xa3, 0x28, 0xe1, 0x38, 0x4d, 0xc5, 0x1d, 0xdf, 0x1e, 0x78, 0x76, 0x8d, 0x49, - 0x1a, 0x15, 0x84, 0xde, 0x94, 0x22, 0xb8, 0x31, 0x69, 0x64, 0xc9, 0x51, 0x6e, 0x2c, 0x84, 0xdf, - 0x62, 0xf1, 0x53, 0x6e, 0x74, 0x2c, 0x4e, 0xae, 0x5f, 0x98, 0x78, 0x68, 0xca, 0x4a, 0x63, 0x51, - 0x8b, 0x72, 0x0d, 0xe7, 0x21, 0x9b, 0xed, 0x2f, 0x65, 0x2c, 0x93, 0x8c, 0x07, 0x0e, 0x07, 0x21, - 0xdb, 0x34, 0x4a, 0x98, 0xfd, 0xa7, 0xb0, 0xc7, 0x14, 0x36, 0xcb, 0x61, 0xf4, 0xbf, 0xdc, 0xf7, - 0xe7, 0x92, 0x7d, 0x9f, 0x1f, 0x80, 0x63, 0xeb, 0xd4, 0xee, 0x84, 0x4c, 0xbe, 0x97, 0x70, 0x02, - 0x10, 0xb9, 0x5d, 0xe2, 0x45, 0x9d, 0x90, 0x89, 0x76, 0x9e, 0xcb, 0x01, 0x94, 0xcb, 0x45, 0xd1, - 0xb5, 0x01, 0x97, 0xe6, 0x25, 0xac, 0x40, 0x44, 0x3e, 0x2d, 0x4c, 0xf3, 0x17, 0xe3, 0x7c, 0x01, - 0xa1, 0xe3, 0xa1, 0xd2, 0xa2, 0x63, 0x45, 0x4c, 0x56, 0x97, 0xb0, 0x4c, 0xd2, 0x76, 0x43, 0x16, - 0xad, 0x40, 0xf3, 0xae, 0xf1, 0x76, 0x63, 0x00, 0x5d, 0x42, 0x76, 0xcc, 0x4d, 0x33, 0x97, 0xf8, - 0x12, 0xca, 0x34, 0xe5, 0xe6, 0x3e, 0xe9, 0xe3, 0x90, 0x4b, 0xe8, 0x0a, 0x16, 0x29, 0x5a, 0xa7, - 0x4f, 0xfa, 0x6d, 0xd3, 0x3a, 0x26, 0xad, 0x65, 0x96, 0x13, 0xa7, 0x63, 0x81, 0xfa, 0xec, 0xb4, - 0x02, 0xb5, 0x05, 0xf5, 0x30, 0x32, 0x03, 0xba, 0x10, 0x2d, 0xbe, 0x10, 0x22, 0xa9, 0x0a, 0xb6, - 0xe7, 0xd2, 0xdb, 0x8f, 0xd4, 0xf3, 0x56, 0x94, 0xc3, 0xa2, 0x35, 0x68, 0x9a, 0xb6, 0x2d, 0xd4, - 0xe9, 0xe7, 0xa7, 0x0b, 0x0e, 0xa0, 0x7c, 0x88, 0x93, 0x6a, 0x2c, 0x0c, 0xe0, 0x38, 0x20, 0xa6, - 0x50, 0x1b, 0x6e, 0x70, 0x9a, 0x55, 0x40, 0x49, 0x09, 0x4e, 0xd5, 0x5f, 0x50, 0x4b, 0x70, 0xaa, - 0xe6, 0x93, 0x73, 0xc0, 0xa2, 0xf2, 0x6e, 0xc6, 0x93, 0xc3, 0xd2, 0x4c, 0x94, 0x0f, 0x86, 0xec, - 0xff, 0x6e, 0xd8, 0xfa, 0x22, 0x5f, 0xc4, 0x04, 0x42, 0x15, 0x80, 0x3e, 0xe9, 0x0b, 0x13, 0x86, - 0xd8, 0xad, 0x5b, 0xac, 0x7e, 0x0a, 0x26, 0x22, 0x28, 0xfe, 0xbc, 0x11, 0x8b, 0x4f, 0xa6, 0x5c, - 0x8c, 0xee, 0x77, 0xe9, 0x6d, 0xa3, 0x34, 0xb2, 0x6d, 0x24, 0xfa, 0x5e, 0xf9, 0x82, 0xfa, 0x5e, - 0x65, 0x7a, 0x7d, 0x8f, 0x8a, 0x14, 0xc7, 0x92, 0xe7, 0xfa, 0xec, 0x3f, 0x5d, 0x5e, 0x3e, 0x6f, - 0xa1, 0x10, 0xc0, 0x32, 0x99, 0xd5, 0xde, 0x1a, 0xa3, 0xda, 0x9b, 0xe0, 0xbd, 0x66, 0xc2, 0x7b, - 0x19, 0xed, 0x0a, 0x46, 0xb5, 0xab, 0x9d, 0x4c, 0xc4, 0x92, 0x0c, 0x30, 0x9a, 0x52, 0xee, 0x64, - 0x2a, 0xa3, 0x77, 0x60, 0x76, 0xa0, 0x28, 0x87, 0xe7, 0xd1, 0x23, 0x53, 0x15, 0x51, 0x07, 0x16, - 0xac, 0xb4, 0x90, 0x62, 0xd2, 0x61, 0x7a, 0x91, 0x96, 0xad, 0x4e, 0xed, 0x9b, 0x18, 0x84, 0x0f, - 0x63, 0x71, 0x92, 0x06, 0xa6, 0x4a, 0xbd, 0x77, 0x18, 0x0b, 0x95, 0x34, 0x70, 0x44, 0x27, 0x45, - 0x39, 0x3a, 0x69, 0xa2, 0x10, 0x5f, 0x3b, 0x8f, 0x42, 0x7c, 0x17, 0x50, 0x8c, 0x66, 0x37, 0x96, - 0x9b, 0x5c, 0x08, 0xe5, 0xe4, 0x64, 0xcb, 0x0b, 0x49, 0x7a, 0x7d, 0xb4, 0xbc, 0x10, 0xa9, 0x2f, - 0xc3, 0xb5, 0x2c, 0x16, 0x2a, 0x3b, 0x97, 0x59, 0x85, 0xbc, 0xac, 0x6c, 0x0d, 0x29, 0x6d, 0x9f, - 0x1d, 0xad, 0x21, 0xc5, 0x6e, 0x91, 0x3a, 0xde, 0xba, 0x90, 0x3a, 0xfe, 0xdc, 0xb4, 0xea, 0xf8, - 0xca, 0x64, 0x75, 0xfc, 0xf9, 0x02, 0x75, 0x5c, 0x55, 0xbc, 0x6f, 0x5c, 0x4c, 0xf1, 0x36, 0x7e, - 0xa2, 0xc1, 0x22, 0xcd, 0x65, 0xc1, 0x7b, 0xef, 0x39, 0xd1, 0x71, 0x87, 0x04, 0xfd, 0x98, 0x6d, - 0xd7, 0x39, 0xdb, 0x6a, 0x0a, 0xdb, 0x72, 0x10, 0xdd, 0x8a, 0x12, 0xe9, 0xca, 0x45, 0x52, 0x02, - 0xa0, 0x12, 0xeb, 0x71, 0xe0, 0x44, 0x84, 0x67, 0x97, 0xb9, 0xc4, 0x4a, 0x20, 0xb2, 0x36, 0x1d, - 0x48, 0x28, 0x42, 0xb4, 0x12, 0x40, 0x5c, 0x9b, 0x67, 0x57, 0x95, 0xda, 0x0c, 0x62, 0xfc, 0xb1, - 0x06, 0xcb, 0x23, 0x7d, 0x5e, 0x3b, 0xeb, 0x6c, 0xae, 0xa3, 0x5f, 0x04, 0x60, 0x01, 0x62, 0x2c, - 0xc5, 0x34, 0xe4, 0x99, 0x7b, 0xdf, 0x19, 0x33, 0x29, 0xa3, 0x28, 0xd8, 0x51, 0x0a, 0xaf, 0xcf, - 0x83, 0x0c, 0x14, 0x84, 0x2b, 0x3d, 0x58, 0xc8, 0x64, 0xab, 0x3e, 0x83, 0x2a, 0x97, 0x5f, 0x6f, - 0xa5, 0x03, 0x0b, 0x6e, 0x4f, 0xdb, 0xbc, 0x1a, 0x65, 0xf0, 0xa7, 0x55, 0x45, 0xc7, 0x64, 0x2c, - 0xc6, 0x55, 0x3b, 0x2d, 0x56, 0xed, 0x14, 0x2d, 0xa1, 0x34, 0x46, 0x4b, 0x28, 0x8f, 0xd3, 0x12, - 0x2a, 0x19, 0x2d, 0x61, 0x9c, 0x12, 0x98, 0x68, 0x10, 0xb5, 0x42, 0x0d, 0xa2, 0x9e, 0xd1, 0x20, - 0x78, 0x1e, 0xc7, 0xd7, 0x88, 0xf3, 0x38, 0x3e, 0xa9, 0x9b, 0x35, 0x73, 0x74, 0x33, 0x50, 0x74, - 0xb3, 0x94, 0x26, 0x36, 0x33, 0x56, 0x13, 0x9b, 0x1d, 0xaf, 0x89, 0xcd, 0x4d, 0xd0, 0xc4, 0xe6, - 0x47, 0x34, 0xb1, 0x58, 0xad, 0x5d, 0xb8, 0x94, 0x5a, 0xab, 0x5f, 0x48, 0xad, 0x15, 0x84, 0xb5, - 0x98, 0x6c, 0x8c, 0x8a, 0x7e, 0x85, 0x0a, 0xf5, 0xab, 0x6b, 0x69, 0x79, 0x92, 0xd1, 0x83, 0x96, - 0x26, 0xea, 0x41, 0xd7, 0xc7, 0xeb, 0x41, 0xcb, 0x63, 0xf5, 0xa0, 0x67, 0x27, 0xea, 0x41, 0xad, - 0x51, 0x3d, 0xc8, 0xf8, 0xe7, 0x1a, 0x40, 0x12, 0x85, 0x4b, 0xa9, 0x60, 0x38, 0x8c, 0x69, 0x9d, - 0xfd, 0x47, 0xdf, 0x80, 0x92, 0x1f, 0x0a, 0x86, 0x2a, 0xda, 0x93, 0xf6, 0xba, 0x2c, 0x88, 0xb7, - 0xe4, 0x53, 0x59, 0x5e, 0xb1, 0x78, 0x6c, 0x68, 0x79, 0xbc, 0x5e, 0xc3, 0xc3, 0x7e, 0xad, 0x9c, - 0xc0, 0xd1, 0xea, 0x48, 0xe0, 0xe8, 0x56, 0xa5, 0x51, 0xd1, 0xab, 0xc6, 0x0f, 0x35, 0xa8, 0xf1, - 0xa6, 0x72, 0x2d, 0xdd, 0x15, 0x68, 0x0c, 0x5c, 0x33, 0x3a, 0xf2, 0x83, 0xbe, 0x8c, 0xcf, 0x94, - 0x69, 0xca, 0x43, 0x47, 0x66, 0xdf, 0x71, 0xcf, 0x84, 0x41, 0x26, 0x52, 0x74, 0xf9, 0x4e, 0x49, - 0x10, 0x3a, 0xbe, 0x27, 0x8c, 0x32, 0x99, 0xa4, 0x3b, 0xfb, 0x09, 0x09, 0x3c, 0xe2, 0x3e, 0x12, - 0xf9, 0x55, 0x96, 0x9f, 0x06, 0xb2, 0x2e, 0xf1, 0x1d, 0x99, 0x36, 0x4f, 0x17, 0x4e, 0xb1, 0x6d, - 0xe3, 0x34, 0x65, 0x16, 0x26, 0x45, 0x55, 0xab, 0x36, 0x06, 0xd0, 0xa6, 0x62, 0x11, 0xcc, 0x4a, - 0x70, 0xd1, 0x91, 0x06, 0x52, 0x0b, 0x3a, 0x91, 0xc4, 0xac, 0x18, 0x17, 0x22, 0x19, 0xa8, 0xf1, - 0x2f, 0x34, 0x80, 0x44, 0xdf, 0xa4, 0xc4, 0x1c, 0x84, 0xdc, 0x3b, 0x5b, 0xc1, 0xf4, 0x2f, 0x85, - 0x9c, 0xf6, 0xf9, 0x92, 0x56, 0x30, 0xfd, 0xcb, 0x6c, 0xf8, 0xc7, 0xe6, 0x80, 0xb5, 0x5b, 0xc1, - 0xec, 0x3f, 0x9d, 0xb1, 0xf0, 0xd8, 0x0c, 0x08, 0xf7, 0x0a, 0x54, 0xb0, 0x48, 0x31, 0xb3, 0x81, - 0x3c, 0xe1, 0x52, 0xaa, 0x82, 0xd9, 0x7f, 0x8a, 0xd1, 0x75, 0x0e, 0x85, 0x78, 0xa2, 0x7f, 0x69, - 0x29, 0xba, 0xf2, 0x42, 0x2e, 0xb1, 0xff, 0xd4, 0xfc, 0xb5, 0x9d, 0x20, 0x3a, 0x13, 0x02, 0x89, - 0x27, 0x8c, 0xdf, 0x2a, 0x41, 0x5d, 0xa8, 0xb9, 0x74, 0x35, 0x5c, 0x33, 0x8c, 0xda, 0x83, 0xa1, - 0x58, 0x58, 0x99, 0x4c, 0xc9, 0xce, 0x52, 0x46, 0x76, 0x2a, 0xf2, 0xb8, 0x3c, 0x46, 0x1e, 0x57, - 0xb2, 0xf2, 0x98, 0xca, 0xa0, 0x61, 0x7f, 0x5f, 0xa8, 0xcf, 0x5c, 0xab, 0x56, 0x20, 0xe8, 0xbe, - 0x20, 0xe5, 0xda, 0x58, 0x3b, 0xa8, 0xeb, 0x78, 0x3d, 0x97, 0x48, 0x45, 0x9d, 0x13, 0xb4, 0xd4, - 0xd4, 0xeb, 0x8a, 0xa6, 0xbe, 0x02, 0x0d, 0xda, 0x2d, 0x66, 0x48, 0x34, 0x18, 0x85, 0xc7, 0x69, - 0xda, 0x13, 0xde, 0x2d, 0xd5, 0x93, 0x9b, 0x40, 0x8c, 0xef, 0xc2, 0x5c, 0xaa, 0x99, 0x22, 0xf2, - 0x2f, 0x9a, 0x22, 0xe3, 0x4f, 0x34, 0x36, 0xc9, 0x8c, 0x75, 0x96, 0xa1, 0xe6, 0x0d, 0xfb, 0x87, - 0xe2, 0xd2, 0x54, 0x15, 0x8b, 0x14, 0x85, 0x9f, 0x12, 0xcf, 0xf6, 0x03, 0xc1, 0x3c, 0x22, 0x55, - 0xc8, 0x3a, 0x4b, 0x50, 0xed, 0xfb, 0x36, 0x71, 0xa5, 0x37, 0x83, 0x25, 0xe8, 0x50, 0x06, 0xc7, - 0x67, 0xa1, 0x63, 0x99, 0xae, 0x08, 0xf3, 0x6e, 0x62, 0x05, 0x42, 0xb1, 0x59, 0x7e, 0x40, 0x44, - 0xa4, 0x77, 0x13, 0x8b, 0x14, 0xc5, 0x46, 0xff, 0x49, 0x33, 0x86, 0x27, 0x28, 0x61, 0xf5, 0x8f, - 0x3f, 0x16, 0xf3, 0x45, 0xff, 0xb2, 0x93, 0x15, 0xba, 0xc3, 0xb1, 0x13, 0x92, 0x26, 0x3f, 0x21, - 0x89, 0x01, 0xc6, 0x27, 0x1a, 0x54, 0xa8, 0x59, 0xac, 0xec, 0xd9, 0x65, 0xb6, 0x67, 0xc7, 0x77, - 0x3e, 0x4a, 0xea, 0x9d, 0x8f, 0x3c, 0x27, 0x4d, 0x0b, 0xea, 0xa6, 0xeb, 0xee, 0x27, 0x27, 0x20, - 0x32, 0xa9, 0x46, 0xbe, 0xd7, 0xc7, 0x46, 0xbe, 0x37, 0x46, 0x23, 0xdf, 0xe9, 0xe2, 0x98, 0xbd, - 0x4d, 0xcf, 0x26, 0x4f, 0x44, 0xaf, 0xe3, 0x34, 0x15, 0xd4, 0xd4, 0xf8, 0xde, 0xf1, 0x6d, 0xe7, - 0xc8, 0x89, 0x5d, 0x29, 0x29, 0x18, 0x17, 0x80, 0x5b, 0x95, 0x46, 0x55, 0xaf, 0x19, 0xbf, 0x5e, - 0x83, 0xba, 0x0c, 0x7f, 0xa4, 0xbb, 0xb0, 0x6f, 0x13, 0x55, 0x59, 0x4c, 0x00, 0xe8, 0x17, 0x61, - 0xe1, 0x64, 0x78, 0x48, 0x5c, 0x12, 0x09, 0x79, 0x25, 0x23, 0xfe, 0xbf, 0x39, 0xfe, 0x40, 0xf4, - 0xee, 0xc3, 0x74, 0x2d, 0xae, 0x8e, 0x65, 0x71, 0x21, 0x0b, 0x16, 0xcd, 0x81, 0xd3, 0x25, 0xc1, - 0x29, 0x09, 0xe2, 0x06, 0xb8, 0xe0, 0x7f, 0x75, 0x42, 0x03, 0xab, 0xd9, 0x7a, 0xbc, 0x89, 0x51, - 0x7c, 0x74, 0x6e, 0x07, 0xbe, 0xdd, 0x36, 0x07, 0xa6, 0xe5, 0x44, 0xfc, 0x56, 0xc1, 0x1c, 0x56, - 0x41, 0x54, 0x30, 0x0e, 0x7c, 0x7b, 0xd5, 0x75, 0x7d, 0xcb, 0x8c, 0xcc, 0x43, 0x97, 0x5b, 0xc8, - 0x73, 0x38, 0x03, 0x45, 0x2f, 0xc2, 0x22, 0xb7, 0xbd, 0xd5, 0xa2, 0x5c, 0x66, 0x8d, 0x66, 0x50, - 0xac, 0x1c, 0x18, 0x37, 0xcd, 0x65, 0x59, 0x06, 0xca, 0x1c, 0x9b, 0x83, 0xa1, 0x8a, 0x92, 0x8b, - 0xb7, 0x0c, 0x94, 0xd9, 0xd6, 0x83, 0x61, 0x8c, 0xac, 0xc9, 0x37, 0x7b, 0x05, 0x84, 0x6e, 0xc3, - 0x42, 0x40, 0x42, 0x7f, 0x18, 0x58, 0x44, 0xee, 0x39, 0xdc, 0x02, 0xcf, 0x82, 0xe9, 0x48, 0x98, - 0x13, 0xc2, 0xf1, 0x3d, 0x2a, 0x1f, 0xc2, 0xc8, 0xec, 0x0f, 0x98, 0x86, 0x56, 0xc6, 0xa3, 0x19, - 0xb1, 0xa3, 0x67, 0x56, 0x71, 0xf4, 0xbc, 0x0d, 0xf5, 0x3e, 0x89, 0x02, 0xc7, 0x0a, 0xc5, 0xf9, - 0xcb, 0x0b, 0xc5, 0x57, 0x27, 0x59, 0xd3, 0x3b, 0xbc, 0x34, 0x96, 0xd5, 0x56, 0xd6, 0x60, 0x29, - 0x8f, 0x4a, 0x72, 0xc2, 0x7d, 0x97, 0x54, 0xad, 0xbc, 0xaa, 0xe8, 0xda, 0x2b, 0xeb, 0xb0, 0x9c, - 0x4f, 0x08, 0xe7, 0xc1, 0x62, 0xfc, 0xdf, 0x12, 0x34, 0x76, 0x48, 0x64, 0xb2, 0x4d, 0x26, 0x4f, - 0x32, 0x52, 0x26, 0x91, 0x21, 0x91, 0xf2, 0x34, 0x36, 0x06, 0x48, 0x07, 0xb9, 0x70, 0xe0, 0x53, - 0x95, 0x27, 0x77, 0x7a, 0x2b, 0x45, 0xd3, 0xfb, 0x22, 0x2c, 0xda, 0x74, 0x1a, 0x52, 0xa5, 0xb9, - 0x0e, 0x33, 0x9a, 0x41, 0xe5, 0x9f, 0x6b, 0x1e, 0x12, 0x57, 0x4a, 0x17, 0x91, 0xa2, 0xe4, 0x61, - 0x7a, 0x9e, 0x1f, 0x31, 0xe4, 0x21, 0x8b, 0xd0, 0x6e, 0x62, 0x15, 0x84, 0xf6, 0x60, 0xc1, 0x7f, - 0xcc, 0x6e, 0xf8, 0x1c, 0x91, 0x80, 0x78, 0x16, 0xe1, 0xf7, 0x2c, 0x8a, 0x0f, 0xf7, 0xf7, 0x52, - 0xa5, 0x71, 0xb6, 0x76, 0x1e, 0xbd, 0x35, 0xf3, 0xe9, 0xed, 0x26, 0xc0, 0x91, 0xe3, 0x99, 0xae, - 0xf3, 0xb1, 0xbc, 0x9f, 0xd9, 0xc4, 0x0a, 0xc4, 0xd8, 0x82, 0xf9, 0x74, 0x63, 0x93, 0x4e, 0x22, - 0xc4, 0x44, 0x23, 0xa8, 0x9c, 0x38, 0x9e, 0x9c, 0x7b, 0xf6, 0xdf, 0xf8, 0x0f, 0x1a, 0x2c, 0xec, - 0x1d, 0xfe, 0x12, 0xb1, 0xa2, 0x14, 0x36, 0x56, 0x4e, 0x4b, 0xca, 0x4d, 0x58, 0xd4, 0x3c, 0xc9, - 0x2e, 0xda, 0xaf, 0x24, 0xed, 0xdf, 0x04, 0x30, 0x07, 0x4e, 0x5a, 0xc1, 0x53, 0x20, 0x79, 0x33, - 0x54, 0xcb, 0x9f, 0xa1, 0x1b, 0xd0, 0x3c, 0x72, 0x88, 0x6b, 0x77, 0xcc, 0xe8, 0x98, 0x09, 0x8a, - 0x26, 0x4e, 0x00, 0xc6, 0xaf, 0x6b, 0x30, 0x23, 0x42, 0x2d, 0x3a, 0x7e, 0x50, 0xb8, 0x7d, 0xc7, - 0xa7, 0x14, 0x52, 0x7b, 0x15, 0xe9, 0xf8, 0x54, 0xa3, 0xac, 0x9c, 0x6a, 0xdc, 0x04, 0x88, 0xcc, - 0xa0, 0x47, 0x22, 0x8a, 0x51, 0x0c, 0x4a, 0x81, 0x50, 0x7c, 0x74, 0x23, 0x60, 0xb9, 0x5c, 0xb7, - 0x89, 0xd3, 0xc6, 0x23, 0xb8, 0x21, 0xba, 0xd3, 0x25, 0x21, 0xed, 0xff, 0xea, 0xd1, 0x91, 0xe3, - 0x39, 0xd1, 0x59, 0xdb, 0xf7, 0x8e, 0x9c, 0x1e, 0x7a, 0x0d, 0x96, 0x2d, 0x76, 0x80, 0xbf, 0xd9, - 0xa1, 0x94, 0xeb, 0x0f, 0xa3, 0x2e, 0xb1, 0x7c, 0xcf, 0x96, 0x87, 0xfc, 0x05, 0xb9, 0xc6, 0x9f, - 0x94, 0xa1, 0xc2, 0xee, 0x4c, 0xbc, 0x49, 0xed, 0x16, 0xce, 0x91, 0x22, 0x1a, 0xbb, 0x30, 0x80, - 0x5c, 0x14, 0xc3, 0x71, 0x05, 0xba, 0xcf, 0x52, 0xf1, 0xbe, 0xb9, 0x8e, 0xe5, 0x8d, 0x6c, 0x91, - 0x64, 0x73, 0xc4, 0xff, 0xf2, 0x7d, 0x86, 0xce, 0x91, 0x48, 0x53, 0x25, 0x7a, 0xe8, 0x85, 0xd6, - 0x31, 0xb1, 0x87, 0x2e, 0x13, 0xc3, 0x15, 0x76, 0xd0, 0x96, 0x06, 0xa2, 0x57, 0xa0, 0x46, 0x4d, - 0xbe, 0x38, 0x30, 0xe6, 0x46, 0x41, 0xb7, 0xf6, 0x69, 0x21, 0x2c, 0xca, 0xa2, 0xd7, 0xe3, 0x9b, - 0xe0, 0xb5, 0xb1, 0x6e, 0x5e, 0x3a, 0xf6, 0xf4, 0x25, 0x70, 0xb4, 0x0c, 0x95, 0x33, 0xb3, 0xef, - 0xf2, 0x53, 0xc5, 0xb5, 0x52, 0x4b, 0xc3, 0x2c, 0x4d, 0xc5, 0x19, 0x0f, 0xb4, 0xe3, 0x77, 0xa5, - 0x32, 0xb1, 0x74, 0x4d, 0x45, 0x54, 0x53, 0x8d, 0x2a, 0xf0, 0x4f, 0x1d, 0x9b, 0x04, 0x9b, 0xeb, - 0x62, 0x47, 0x50, 0x20, 0xf1, 0x61, 0xc1, 0xcc, 0xb4, 0x87, 0x05, 0x8a, 0xec, 0x9f, 0xbd, 0x90, - 0xec, 0x37, 0x7e, 0x50, 0x07, 0x48, 0xc6, 0x8a, 0x1e, 0x42, 0xc3, 0x92, 0xfb, 0x1a, 0x77, 0xfc, - 0xbc, 0x34, 0x71, 0x82, 0xee, 0xca, 0x6d, 0x8f, 0x6f, 0xfc, 0x31, 0x02, 0xb4, 0x0f, 0x33, 0xa6, - 0xb2, 0x99, 0x72, 0x7d, 0xe5, 0xde, 0x64, 0x7c, 0xca, 0x5e, 0xcb, 0x51, 0xaa, 0x68, 0xd0, 0xfb, - 0x30, 0x47, 0xa9, 0x7f, 0x35, 0x3e, 0xdc, 0xe0, 0x6a, 0xca, 0x2b, 0x93, 0xf1, 0xee, 0xaa, 0xd5, - 0x38, 0xe6, 0x34, 0x2a, 0x66, 0x29, 0x71, 0xea, 0xe0, 0x5c, 0x28, 0x97, 0xfe, 0x05, 0x98, 0x4f, - 0x6b, 0x4c, 0x42, 0xc2, 0x64, 0xa0, 0x68, 0x9d, 0xdd, 0x7a, 0xb5, 0x1d, 0x2e, 0xf9, 0xc7, 0x5b, - 0x1b, 0xbb, 0x4c, 0xb7, 0x13, 0x85, 0xb1, 0x52, 0x0f, 0x7d, 0x07, 0x6a, 0xec, 0x3c, 0x31, 0x14, - 0xb7, 0x7b, 0x26, 0xba, 0x4c, 0x36, 0x69, 0x69, 0x2c, 0x2a, 0xa1, 0x3b, 0xa0, 0xd3, 0x6e, 0x75, - 0x02, 0xff, 0xc9, 0x99, 0xec, 0x2e, 0x3f, 0x69, 0x1e, 0x81, 0x53, 0xb1, 0xe8, 0x0f, 0x48, 0x60, - 0x46, 0x8e, 0xd7, 0xe3, 0xde, 0x03, 0xb9, 0x71, 0x64, 0xc0, 0x54, 0xb5, 0x35, 0x03, 0xeb, 0xd8, - 0x89, 0x88, 0x15, 0x0d, 0x03, 0x22, 0xa8, 0x37, 0x05, 0x1b, 0x35, 0xb4, 0x67, 0x72, 0x0c, 0x6d, - 0x2a, 0x14, 0xfc, 0x90, 0x75, 0x99, 0x11, 0x6d, 0x13, 0xcb, 0x24, 0xba, 0x0f, 0xcf, 0x26, 0x3e, - 0xf9, 0xa1, 0x17, 0x39, 0xfd, 0x58, 0x58, 0xcf, 0xb1, 0x92, 0x45, 0xd9, 0x2b, 0x6f, 0xc2, 0x5c, - 0x8a, 0x0a, 0x27, 0x69, 0x1d, 0x65, 0x55, 0x77, 0x79, 0x0b, 0xf4, 0x2c, 0xc9, 0x9d, 0xab, 0xfe, - 0xdb, 0x80, 0x46, 0x49, 0x6b, 0x12, 0x86, 0xa6, 0xaa, 0xf7, 0xfc, 0x7d, 0x0d, 0xe6, 0x52, 0xf4, - 0x90, 0x7b, 0x30, 0x9d, 0x50, 0x67, 0x29, 0x45, 0x9d, 0x77, 0x01, 0x51, 0xe3, 0x7a, 0x3f, 0x30, - 0xbd, 0xd0, 0x91, 0x3a, 0x8a, 0x70, 0x18, 0xe7, 0xe4, 0x50, 0x3c, 0x01, 0x31, 0xc3, 0xd8, 0x51, - 0x22, 0x52, 0xea, 0xfb, 0x19, 0xd5, 0xd4, 0xfb, 0x19, 0xc6, 0x3a, 0xcc, 0xa7, 0x89, 0x8d, 0x85, - 0x8f, 0xd0, 0x2d, 0x5a, 0x04, 0x50, 0xf0, 0x04, 0xb3, 0xd2, 0x9d, 0x8f, 0x85, 0xcf, 0x59, 0x38, - 0xb4, 0x63, 0x80, 0x41, 0xa0, 0xca, 0x84, 0xf1, 0xb4, 0x53, 0x43, 0x3b, 0x4a, 0x8e, 0x8e, 0x88, - 0xf0, 0x06, 0x34, 0xb1, 0x48, 0xd1, 0x66, 0xe8, 0xe2, 0xaf, 0xda, 0x36, 0x91, 0x2f, 0x02, 0x24, - 0x00, 0xe3, 0x77, 0xab, 0xf1, 0x16, 0xdd, 0x1d, 0x10, 0x0b, 0xdd, 0x87, 0x2a, 0xdd, 0x66, 0x43, - 0x21, 0xd0, 0x8c, 0xf1, 0x01, 0x94, 0x74, 0x57, 0xc5, 0xbc, 0x02, 0xda, 0x81, 0x66, 0x48, 0x78, - 0xa8, 0x9c, 0x34, 0xb7, 0x8a, 0xc4, 0xe1, 0x36, 0xd5, 0xfd, 0xba, 0x24, 0xbe, 0x68, 0x3c, 0x74, - 0x02, 0xc2, 0xee, 0x60, 0x26, 0x18, 0xd4, 0x50, 0xc2, 0x4e, 0xf6, 0x2a, 0x70, 0x27, 0xf5, 0xb2, - 0x88, 0x5c, 0xf1, 0x5b, 0x30, 0x43, 0x9e, 0x44, 0x24, 0xf0, 0x4c, 0x77, 0xb3, 0xc3, 0x37, 0xba, - 0x26, 0x56, 0x41, 0x94, 0x81, 0xc3, 0xf4, 0xc6, 0x2f, 0xf5, 0x9a, 0x0c, 0x98, 0xca, 0x30, 0xd7, - 0x37, 0xed, 0x35, 0xd3, 0x35, 0x3d, 0x8b, 0x75, 0x81, 0x2b, 0x37, 0x19, 0x28, 0x7a, 0x03, 0x5a, - 0x2a, 0xa4, 0xcb, 0xf6, 0x0d, 0x6c, 0x7a, 0xbd, 0x78, 0x87, 0x2b, 0xcc, 0xa7, 0x42, 0x42, 0x76, - 0x8e, 0xc5, 0x53, 0x72, 0x59, 0x92, 0x82, 0xa1, 0x57, 0xe0, 0xba, 0x4c, 0xef, 0x07, 0xe6, 0xd1, - 0x91, 0x63, 0x75, 0x7c, 0xd7, 0xb1, 0xce, 0x84, 0x44, 0xc9, 0xcf, 0x44, 0x2f, 0xc3, 0x35, 0xee, - 0xd2, 0x6d, 0x1f, 0x13, 0xeb, 0x64, 0x57, 0xaa, 0x43, 0x3c, 0x92, 0x2d, 0x2f, 0x8b, 0x8e, 0x63, - 0x30, 0x3c, 0x74, 0x9d, 0xf0, 0x78, 0xd7, 0x8f, 0x30, 0x31, 0xed, 0xb3, 0x64, 0xcb, 0x98, 0x65, - 0x0a, 0x45, 0x61, 0x3e, 0x72, 0xe0, 0x7a, 0x98, 0xa7, 0x4e, 0x09, 0x0b, 0xeb, 0x9b, 0xe3, 0x49, - 0x28, 0x57, 0x13, 0xc3, 0xf9, 0x18, 0x59, 0x58, 0xe5, 0xe0, 0x01, 0xf7, 0xca, 0xf0, 0x18, 0xb8, - 0x38, 0x6d, 0xac, 0xc2, 0x9c, 0x44, 0xc9, 0x39, 0xfd, 0x65, 0xb8, 0x96, 0x5a, 0x2d, 0x1e, 0xfe, - 0xda, 0x5a, 0x64, 0xcb, 0x92, 0x97, 0x65, 0xfc, 0x76, 0x09, 0xea, 0xf2, 0x62, 0xef, 0xa5, 0x54, - 0xb9, 0xd7, 0xa0, 0x12, 0x0e, 0x88, 0x25, 0xdc, 0xc7, 0x13, 0x98, 0x88, 0xf2, 0x1d, 0x66, 0xe5, - 0xd1, 0xb7, 0x33, 0x4f, 0xef, 0x7c, 0x65, 0x42, 0xcd, 0x7c, 0x9d, 0xab, 0x92, 0xd1, 0xb9, 0xa4, - 0x76, 0x55, 0xcd, 0x37, 0x84, 0x6b, 0x17, 0x53, 0x86, 0x7e, 0x5f, 0x83, 0x6b, 0xc9, 0xf5, 0xe9, - 0x8b, 0x09, 0xe3, 0x73, 0x0b, 0x57, 0xc6, 0x98, 0x66, 0x18, 0x1d, 0x0c, 0xec, 0x74, 0x50, 0x5b, - 0x06, 0x5a, 0x20, 0xe6, 0xeb, 0x45, 0x62, 0xde, 0xf8, 0xaf, 0x35, 0x00, 0xe5, 0xf2, 0xfa, 0xa5, - 0x56, 0x9f, 0x99, 0x4f, 0xec, 0xd2, 0x7c, 0xb8, 0x4e, 0x42, 0x27, 0x20, 0xd2, 0xfd, 0x96, 0x05, - 0xd3, 0x5e, 0x26, 0xb7, 0xce, 0xbb, 0x51, 0x60, 0x46, 0xa4, 0x27, 0xfd, 0x8d, 0x39, 0x39, 0xcc, - 0x39, 0x63, 0x3e, 0x39, 0xf0, 0xcc, 0x53, 0xd3, 0x49, 0xb4, 0xfd, 0x26, 0xce, 0x40, 0xd9, 0xf9, - 0x89, 0xf9, 0xa4, 0x3b, 0x0c, 0xe2, 0x09, 0x8c, 0xd3, 0x2c, 0xcc, 0xce, 0x1c, 0x86, 0x84, 0x7b, - 0x22, 0x1b, 0x58, 0xa4, 0xd2, 0xf2, 0xbb, 0x7e, 0x69, 0xf9, 0xcd, 0x8e, 0x05, 0xf8, 0x68, 0x45, - 0x10, 0x46, 0x9c, 0xa6, 0x13, 0x34, 0x64, 0x4b, 0x65, 0x63, 0x59, 0x84, 0x3b, 0x07, 0xb3, 0x60, - 0x79, 0x44, 0x70, 0x16, 0x97, 0x03, 0x1e, 0x6d, 0x9d, 0x02, 0xa2, 0x17, 0x61, 0x31, 0x1e, 0x7b, - 0x5c, 0x92, 0x4b, 0xbb, 0xd1, 0x0c, 0x2a, 0x17, 0x86, 0xde, 0x68, 0xf9, 0x59, 0x2e, 0x1d, 0x73, - 0xb2, 0xc4, 0x11, 0x39, 0xa7, 0xef, 0x1d, 0x41, 0x97, 0x5c, 0xc7, 0x1a, 0x81, 0xc7, 0x4c, 0x38, - 0x5f, 0xc0, 0x84, 0x0b, 0x0a, 0x13, 0x7e, 0x04, 0x4b, 0xd2, 0xa0, 0x56, 0x66, 0x31, 0x6c, 0xe9, - 0x6c, 0xf6, 0xbf, 0x3e, 0x81, 0x23, 0xd5, 0x2a, 0x38, 0x17, 0x91, 0xca, 0xe5, 0x8b, 0x17, 0xe2, - 0x72, 0xb4, 0x95, 0x52, 0xd2, 0x11, 0xeb, 0xd8, 0x9d, 0x89, 0x8f, 0x29, 0xe4, 0xaa, 0xea, 0xc6, - 0x3f, 0xd4, 0xe0, 0x5a, 0xf2, 0xb2, 0xc4, 0xe7, 0x55, 0x7d, 0xfb, 0x95, 0x2a, 0x80, 0xf2, 0x5e, - 0xc7, 0x67, 0x24, 0x09, 0x52, 0xdc, 0x57, 0x7e, 0xaa, 0xdc, 0x57, 0xc9, 0x70, 0xdf, 0x3d, 0x58, - 0x3a, 0x1a, 0xba, 0xee, 0x19, 0xc3, 0xa3, 0xb0, 0x20, 0xf7, 0x96, 0xe4, 0xe6, 0x8d, 0xf2, 0x61, - 0x6d, 0x6a, 0x3e, 0xac, 0x17, 0xf1, 0xa1, 0xe4, 0x94, 0x46, 0x01, 0xa7, 0x34, 0xa7, 0xe0, 0x14, - 0xf8, 0x14, 0x38, 0x65, 0xe6, 0x69, 0x70, 0xca, 0xec, 0x58, 0x4e, 0xc9, 0xe1, 0x82, 0x14, 0xa7, - 0x7c, 0x1f, 0x5a, 0x45, 0xab, 0x9c, 0x63, 0x0f, 0xac, 0x40, 0x83, 0x1b, 0xa0, 0xf1, 0x19, 0x56, - 0x9c, 0x66, 0xa7, 0x5b, 0xd4, 0x3c, 0x90, 0x8e, 0x23, 0x91, 0x32, 0x7e, 0x54, 0x87, 0x72, 0xc7, - 0xb7, 0x2f, 0x47, 0xde, 0xf3, 0x50, 0xda, 0xec, 0xc8, 0xe0, 0xdf, 0xcd, 0x0e, 0x5d, 0x7f, 0xcf, - 0xef, 0x3b, 0x1e, 0x15, 0xe1, 0x54, 0xb5, 0xdc, 0x4d, 0x5c, 0x91, 0xa3, 0x19, 0xd2, 0x53, 0xc7, - 0x0a, 0x71, 0xe6, 0x8c, 0xd3, 0xd4, 0xc4, 0x19, 0x1c, 0x9b, 0xa1, 0x64, 0x4e, 0x9e, 0xa0, 0x1a, - 0x73, 0x40, 0x58, 0x04, 0x02, 0x3f, 0xf8, 0xe1, 0x44, 0x98, 0x82, 0xa1, 0x7d, 0xe5, 0x6d, 0x24, - 0xae, 0x1f, 0xc5, 0xae, 0x81, 0x17, 0xa6, 0x89, 0xa6, 0x18, 0x86, 0x78, 0x14, 0x41, 0xee, 0x0e, - 0xd0, 0x28, 0xdc, 0x01, 0xa4, 0xe8, 0x6a, 0x66, 0x94, 0x1d, 0x4e, 0xef, 0x50, 0x40, 0xef, 0x33, - 0x0a, 0xbd, 0x4b, 0xe7, 0xd6, 0xec, 0xb4, 0xce, 0xad, 0x22, 0x06, 0x99, 0x7b, 0x5a, 0x0c, 0xf2, - 0x21, 0x5c, 0xa7, 0x9a, 0x78, 0x7b, 0x64, 0x6e, 0xe7, 0xcf, 0x35, 0xb7, 0xf9, 0x48, 0x28, 0x2d, - 0xfc, 0xfc, 0x5e, 0xb7, 0xed, 0x9a, 0x21, 0x0f, 0x6f, 0x6e, 0xe2, 0x38, 0x4d, 0x65, 0xcf, 0x20, - 0x70, 0xfc, 0x80, 0x9a, 0x01, 0xac, 0x80, 0xce, 0x1d, 0x25, 0x29, 0xe0, 0x53, 0xd8, 0xea, 0xa8, - 0x3d, 0x4e, 0xe9, 0x88, 0xed, 0x28, 0x48, 0xd8, 0xe3, 0x12, 0x40, 0x7b, 0x21, 0x1c, 0xaa, 0xc4, - 0x66, 0x25, 0xae, 0xb1, 0x12, 0x69, 0x20, 0x6a, 0xa7, 0x84, 0xc0, 0x12, 0x9b, 0x9a, 0x2f, 0x17, - 0x3f, 0x38, 0x95, 0xcf, 0xfd, 0xbf, 0xa3, 0xc1, 0xac, 0x9a, 0x79, 0xae, 0x0d, 0xf2, 0x2b, 0x30, - 0x47, 0xb7, 0xc1, 0x4e, 0xe0, 0x1f, 0x12, 0x65, 0x6f, 0x4c, 0x03, 0x0b, 0xb6, 0xd1, 0xca, 0x14, - 0xdb, 0x68, 0xb5, 0x68, 0x1b, 0xad, 0xa5, 0xb7, 0xd1, 0x9f, 0x68, 0xb0, 0x90, 0x59, 0xe7, 0x5c, - 0xff, 0x7f, 0x2a, 0xf6, 0x76, 0x3d, 0x7e, 0x14, 0x2c, 0x01, 0x31, 0x97, 0x31, 0xdd, 0x66, 0xd8, - 0x48, 0x1a, 0x98, 0x27, 0x46, 0x64, 0x41, 0x25, 0x47, 0x16, 0x2c, 0xc9, 0x68, 0x2a, 0x21, 0x45, - 0x78, 0x98, 0x54, 0x71, 0x9f, 0xff, 0xa5, 0x06, 0x8d, 0xf8, 0x15, 0x1a, 0x75, 0xd2, 0xc5, 0xe3, - 0xa5, 0x79, 0x07, 0x23, 0xa5, 0xfc, 0x83, 0x91, 0xd1, 0xd3, 0xb5, 0x16, 0xd4, 0xe9, 0xa8, 0x88, - 0xe8, 0xeb, 0x2c, 0x96, 0x49, 0x39, 0x05, 0xc4, 0xe3, 0x0f, 0xb9, 0x55, 0x93, 0x29, 0x10, 0x20, - 0x35, 0x5c, 0xa7, 0x96, 0x0a, 0xd7, 0x31, 0xfe, 0x81, 0x06, 0x28, 0x7e, 0x02, 0xe5, 0xf3, 0xaa, - 0x52, 0xfd, 0xa0, 0x04, 0xcd, 0xe4, 0x55, 0x99, 0x4b, 0x6d, 0x39, 0x45, 0x83, 0xc8, 0x13, 0xd0, - 0xe5, 0x09, 0x2a, 0xfa, 0x34, 0x76, 0xf2, 0x66, 0x8e, 0x93, 0xfa, 0xe7, 0x26, 0x3d, 0x45, 0x93, - 0xcf, 0xd6, 0x7f, 0xab, 0x0c, 0x4b, 0x79, 0x02, 0x17, 0xed, 0x41, 0xcd, 0x75, 0xfa, 0x4e, 0xec, - 0x74, 0xfb, 0xd6, 0x39, 0xa4, 0xf5, 0x5d, 0x16, 0x30, 0x27, 0x1c, 0xf4, 0x02, 0x0d, 0x3a, 0xa0, - 0xda, 0xdf, 0x2f, 0x0f, 0xd9, 0x3b, 0x46, 0xdc, 0x13, 0xf7, 0xfa, 0x79, 0x50, 0x62, 0x51, 0x57, - 0x1c, 0x51, 0x48, 0x54, 0xb9, 0x87, 0x8b, 0x6d, 0xc5, 0x11, 0x37, 0x5f, 0xa8, 0xb2, 0xe6, 0x35, - 0xc3, 0xae, 0x1a, 0xb1, 0xca, 0x2b, 0xaf, 0xc3, 0x8c, 0x32, 0x8c, 0x73, 0xb9, 0x93, 0xdf, 0x84, - 0xb9, 0x54, 0x77, 0xcf, 0x53, 0x99, 0xf2, 0xfb, 0x42, 0x66, 0x3b, 0x40, 0x1f, 0xc2, 0x2c, 0xdf, - 0x10, 0x1e, 0x71, 0xb5, 0x89, 0x2f, 0xc9, 0xfd, 0xe9, 0x36, 0x93, 0xbb, 0x3b, 0x4a, 0x55, 0x3e, - 0x7d, 0x29, 0x6c, 0x2b, 0xdf, 0x85, 0xc5, 0x91, 0x22, 0x93, 0xba, 0xac, 0x65, 0x0e, 0xfd, 0xeb, - 0x5b, 0xfe, 0x21, 0xf3, 0xd5, 0xde, 0x82, 0x99, 0x81, 0x19, 0x98, 0xae, 0x4b, 0x5c, 0x27, 0xec, - 0xcb, 0x98, 0x69, 0x05, 0xc4, 0x25, 0x4b, 0x7f, 0xc0, 0x0f, 0xe3, 0x43, 0x61, 0x7b, 0xa8, 0x20, - 0xf4, 0x0a, 0x5c, 0xe7, 0x37, 0x97, 0xd7, 0x89, 0x69, 0xbb, 0x8e, 0x47, 0xe4, 0x89, 0x27, 0xe7, - 0xff, 0xfc, 0x4c, 0x2a, 0x7c, 0x0f, 0x4d, 0xeb, 0xc4, 0x3f, 0x3a, 0xe2, 0x21, 0x9c, 0x42, 0xf8, - 0xaa, 0xb0, 0xb4, 0x45, 0x53, 0xbd, 0xb4, 0x45, 0xc3, 0x5c, 0x1f, 0xde, 0xd0, 0x8c, 0xcb, 0x09, - 0xf7, 0x45, 0x06, 0x5a, 0xa8, 0x08, 0xd5, 0x9f, 0x92, 0x22, 0x64, 0xfc, 0xbe, 0x06, 0x4d, 0xba, - 0x02, 0xc5, 0x72, 0x47, 0x2b, 0x90, 0x3b, 0x29, 0x05, 0xa3, 0x94, 0x55, 0x30, 0xd8, 0x4d, 0x41, - 0xb9, 0x30, 0x8a, 0x08, 0xce, 0x40, 0xa9, 0x04, 0xe4, 0x8b, 0x22, 0x66, 0x5d, 0xa4, 0x18, 0xf6, - 0xa1, 0x65, 0x11, 0x62, 0x13, 0x79, 0x7b, 0x31, 0x01, 0xf0, 0x68, 0x36, 0xc7, 0x25, 0xf2, 0x12, - 0xa3, 0x48, 0x31, 0x5d, 0x63, 0xcb, 0x3f, 0xfc, 0xd9, 0xd6, 0x35, 0x7e, 0xab, 0x04, 0xe5, 0x2d, - 0xff, 0xf0, 0x72, 0x3b, 0xcb, 0xbd, 0x94, 0xcf, 0xf6, 0x66, 0xf1, 0xab, 0x5c, 0x8a, 0xbf, 0xf6, - 0x7e, 0xc6, 0x5f, 0x7b, 0x6b, 0x4c, 0xad, 0x8b, 0xfb, 0x6a, 0xdb, 0x39, 0x7b, 0xd0, 0x97, 0x8b, - 0x5b, 0xca, 0xdf, 0x7d, 0xfe, 0x5a, 0x19, 0x66, 0xc4, 0xeb, 0x5b, 0x4c, 0x78, 0xac, 0x40, 0x43, - 0xaa, 0xae, 0xf2, 0xa1, 0x56, 0x99, 0x46, 0xf7, 0xe1, 0x59, 0x46, 0x97, 0x8e, 0xd7, 0xcb, 0x8a, - 0x05, 0x4e, 0xb6, 0x45, 0xd9, 0x2c, 0x84, 0xc8, 0xf7, 0xac, 0x61, 0x10, 0x10, 0xcf, 0x3a, 0x13, - 0x67, 0x15, 0xc2, 0x02, 0x1c, 0xc9, 0x60, 0xe1, 0xe5, 0xc3, 0x70, 0x40, 0xc4, 0x7d, 0xe8, 0x06, - 0x96, 0x49, 0xf4, 0x16, 0xac, 0x30, 0xda, 0x0d, 0xc3, 0xa3, 0xa1, 0xbb, 0xe5, 0x1f, 0x86, 0xef, - 0x3a, 0x61, 0x14, 0xdf, 0x07, 0xe5, 0xd4, 0x3d, 0xa6, 0x04, 0x7a, 0x0d, 0x96, 0x39, 0x81, 0x8f, - 0xd4, 0xe5, 0xe4, 0x5f, 0x90, 0xfb, 0xe9, 0x4b, 0x8f, 0xbf, 0x0c, 0x73, 0x72, 0x15, 0x38, 0x21, - 0xbc, 0x15, 0xb3, 0xb3, 0x36, 0xd6, 0x90, 0xca, 0xc4, 0x06, 0xc5, 0x6c, 0x7f, 0x07, 0x74, 0xca, - 0x43, 0x5d, 0xb1, 0x76, 0x8a, 0x6c, 0x19, 0x81, 0x1b, 0xff, 0x5d, 0x83, 0xba, 0x7c, 0x2b, 0xee, - 0x33, 0x38, 0xdf, 0x50, 0xc8, 0xed, 0x9c, 0xe7, 0x1b, 0xa9, 0x29, 0xba, 0x08, 0xcf, 0x18, 0xff, - 0xab, 0x04, 0x73, 0xf1, 0x5b, 0x6c, 0x8c, 0xe0, 0x53, 0xfb, 0x91, 0x76, 0xe9, 0xfd, 0x28, 0xdf, - 0x75, 0x5f, 0x3a, 0x87, 0xeb, 0xbe, 0x9c, 0xeb, 0xba, 0xbf, 0x0d, 0x0b, 0x7d, 0xc7, 0x63, 0x47, - 0x6c, 0x92, 0xe7, 0xb8, 0x9c, 0xcf, 0x82, 0xd1, 0x3d, 0x4a, 0xab, 0xa7, 0x0e, 0x35, 0x03, 0x72, - 0xb8, 0x23, 0x37, 0xaf, 0x90, 0xbe, 0x6b, 0x4f, 0x8b, 0xbe, 0x7f, 0x5a, 0x82, 0x85, 0x64, 0xde, - 0xf9, 0xba, 0xbd, 0x06, 0xcb, 0x9c, 0xf1, 0xa3, 0x5d, 0x16, 0x72, 0x2d, 0x69, 0xd2, 0x8e, 0xc3, - 0xaa, 0x72, 0x73, 0xe9, 0x14, 0xf3, 0x18, 0xed, 0x1d, 0x27, 0x8c, 0xcd, 0x6c, 0xa1, 0xc4, 0xe4, - 0xe4, 0xd0, 0x76, 0x6c, 0xee, 0x4e, 0xcd, 0xb6, 0xc3, 0x03, 0xc8, 0x0a, 0x72, 0xa9, 0x96, 0xc4, - 0xb1, 0xb1, 0xe9, 0x15, 0xd3, 0xad, 0x82, 0x28, 0x66, 0x71, 0x32, 0x91, 0xc5, 0x2c, 0xc4, 0x49, - 0x7e, 0x2e, 0x5d, 0x4c, 0x8e, 0x66, 0x35, 0x5e, 0x75, 0xee, 0x0e, 0xcd, 0x82, 0x99, 0xeb, 0x8c, - 0x81, 0x54, 0x0a, 0xe1, 0xe7, 0x26, 0xa3, 0x19, 0xcc, 0xea, 0x8b, 0x67, 0xf9, 0xf3, 0x6a, 0xf5, - 0xfd, 0x79, 0x09, 0x9a, 0xc9, 0xe3, 0x8d, 0x97, 0x92, 0x37, 0xf7, 0x53, 0xf2, 0xe6, 0x2b, 0x93, - 0xde, 0x5e, 0x54, 0x24, 0xce, 0xb4, 0x1f, 0x33, 0xc9, 0xd0, 0xec, 0xd5, 0x9c, 0xa9, 0x66, 0xac, - 0xcd, 0xfa, 0x58, 0x6b, 0x73, 0x74, 0xfd, 0x53, 0xfb, 0xfd, 0xaf, 0x96, 0xf9, 0xcd, 0x41, 0xf1, - 0x2c, 0x23, 0x13, 0x81, 0xb7, 0x61, 0x41, 0xb0, 0x40, 0xec, 0x9d, 0xe7, 0x1c, 0x98, 0x05, 0x3f, - 0xed, 0x60, 0x8e, 0x5b, 0x30, 0x23, 0x9e, 0xd8, 0x52, 0x5c, 0xc2, 0x2a, 0x08, 0xbd, 0x0c, 0xd7, - 0x06, 0xbe, 0xbd, 0x63, 0x7a, 0x66, 0x8f, 0xd5, 0x16, 0xaa, 0x03, 0xa7, 0xb5, 0xbc, 0x2c, 0x2a, - 0x50, 0x39, 0xd7, 0xc5, 0xc2, 0x57, 0x84, 0x99, 0xa5, 0xa1, 0x54, 0x2f, 0x1e, 0x50, 0x65, 0x25, - 0x92, 0xde, 0x93, 0x2a, 0x4e, 0x00, 0x9f, 0xfe, 0x86, 0xff, 0xcf, 0x34, 0x58, 0x54, 0xd7, 0x21, - 0x7e, 0x53, 0x3f, 0x48, 0x2f, 0x41, 0x72, 0x3e, 0x33, 0x72, 0xd6, 0x52, 0xca, 0x3b, 0x6b, 0xb9, - 0x0d, 0x0b, 0x42, 0x6c, 0xc6, 0xe5, 0xb8, 0x94, 0xcb, 0x82, 0xf3, 0x4e, 0x5b, 0x2b, 0xb9, 0xa7, - 0xad, 0xc6, 0x3f, 0xd2, 0x60, 0x49, 0xe9, 0xeb, 0xe7, 0xd6, 0x9d, 0x54, 0x86, 0x19, 0xf5, 0xc1, - 0xd4, 0x4b, 0x89, 0x96, 0x37, 0x52, 0xa2, 0xe5, 0x85, 0xc9, 0xaf, 0x9d, 0x2a, 0xc2, 0xe5, 0xed, - 0x8c, 0x70, 0xb9, 0x3d, 0x45, 0xed, 0xab, 0x14, 0x2f, 0x0f, 0x73, 0xc4, 0xcb, 0xd7, 0x27, 0xf7, - 0x39, 0x5f, 0xc0, 0xfc, 0xa0, 0x04, 0xfa, 0xc8, 0x4b, 0xae, 0x97, 0x5a, 0x8a, 0xef, 0xa6, 0x96, - 0xe2, 0xeb, 0x53, 0x3e, 0x3b, 0xaa, 0xac, 0xc7, 0x46, 0x66, 0x3d, 0xbe, 0x31, 0x2d, 0x8a, 0x8b, - 0xeb, 0x99, 0x3f, 0xae, 0xc2, 0x52, 0x5e, 0x8f, 0xd0, 0xc1, 0x48, 0x70, 0xf0, 0xeb, 0xe7, 0x18, - 0x50, 0x61, 0x98, 0xf0, 0x3d, 0x58, 0xca, 0x3e, 0xb0, 0xca, 0x9c, 0xc6, 0x9c, 0x07, 0x73, 0xf3, - 0xd8, 0x1d, 0x0b, 0x66, 0x29, 0xed, 0xb0, 0x77, 0xf5, 0xcb, 0xe2, 0x8e, 0x45, 0x02, 0x42, 0x6b, - 0xd0, 0xb0, 0xd8, 0xeb, 0xad, 0xe4, 0x48, 0xbc, 0xcc, 0x31, 0xad, 0x19, 0x12, 0xd7, 0x43, 0xeb, - 0xf0, 0x85, 0x6c, 0xeb, 0x98, 0xb0, 0x5c, 0x21, 0xcb, 0x39, 0x17, 0x8f, 0x2f, 0x44, 0xcd, 0x19, - 0xaa, 0xae, 0x9a, 0x3d, 0xc2, 0x8e, 0x75, 0xd8, 0x76, 0xc1, 0xad, 0xfd, 0x11, 0x38, 0xbb, 0xe9, - 0xeb, 0x0f, 0xbd, 0x68, 0x6f, 0xa0, 0x5e, 0x1e, 0x49, 0xc1, 0xd0, 0x4d, 0x80, 0x53, 0xd6, 0x0c, - 0x1d, 0xa8, 0x38, 0xb2, 0x53, 0x20, 0xe8, 0x21, 0xcc, 0xb2, 0xa8, 0x66, 0x19, 0x0f, 0xd8, 0x1c, - 0xfb, 0xfa, 0x2f, 0x8b, 0x8f, 0x16, 0xbb, 0xda, 0x3e, 0x09, 0xfa, 0x38, 0x55, 0x19, 0x91, 0xd1, - 0x97, 0x74, 0x79, 0xc4, 0x9f, 0x78, 0x86, 0x6e, 0x6a, 0x7a, 0xe4, 0xdb, 0x48, 0x01, 0xb2, 0x4b, - 0xc5, 0xef, 0x1a, 0xff, 0xb6, 0x0c, 0xcb, 0xf9, 0xed, 0xa1, 0x43, 0x58, 0xec, 0x59, 0x24, 0xc9, - 0x64, 0xef, 0x76, 0x71, 0x2e, 0x2e, 0x0a, 0x18, 0x7f, 0xa7, 0xbd, 0x91, 0x2e, 0x9f, 0x1a, 0xc0, - 0x28, 0x3a, 0x74, 0x02, 0x4b, 0xe6, 0xe3, 0x70, 0x83, 0xee, 0x03, 0x8e, 0xb5, 0xe6, 0xfa, 0xd6, - 0x49, 0x37, 0xf2, 0x03, 0xf9, 0x72, 0x41, 0x91, 0xe7, 0x7b, 0xf5, 0xbd, 0xee, 0x48, 0x95, 0x54, - 0x4b, 0xb9, 0x48, 0xd1, 0x3e, 0x34, 0xcd, 0x8f, 0x87, 0x01, 0x79, 0xe0, 0x08, 0x73, 0x6b, 0xe6, - 0xde, 0x6b, 0x45, 0x2d, 0xc8, 0x72, 0x05, 0x6b, 0x91, 0x20, 0x42, 0x5b, 0x02, 0x2b, 0x9b, 0x1e, - 0xce, 0x2d, 0x2f, 0x8e, 0xc3, 0x3a, 0x32, 0x2d, 0x49, 0x75, 0x74, 0x1f, 0xca, 0x56, 0xe8, 0x88, - 0x67, 0xdd, 0x0a, 0xcf, 0x50, 0xbb, 0x9b, 0xa9, 0xfa, 0xb4, 0x8a, 0xf1, 0x6b, 0x1a, 0x7c, 0x61, - 0xec, 0xec, 0xb3, 0x40, 0x2f, 0x5b, 0x79, 0xa9, 0x53, 0xa4, 0x98, 0x2b, 0x30, 0x54, 0x84, 0x86, - 0x48, 0xa5, 0x15, 0xa5, 0x72, 0x56, 0x51, 0x12, 0xd7, 0xbc, 0xf7, 0x3c, 0xf7, 0x4c, 0x38, 0x6b, - 0xe2, 0xb4, 0xf1, 0x43, 0x0d, 0x6e, 0x4d, 0x5a, 0x22, 0x8a, 0x80, 0xf3, 0x1d, 0x7b, 0x26, 0x83, - 0x39, 0x9c, 0x64, 0xfa, 0x53, 0xe8, 0xd2, 0x3f, 0xd6, 0xe0, 0x8b, 0x13, 0xd6, 0x94, 0x5d, 0x3f, - 0x26, 0x56, 0x40, 0xd4, 0xaf, 0x15, 0x29, 0x10, 0xe6, 0x51, 0x3d, 0x36, 0x03, 0xa2, 0x7c, 0xad, - 0x28, 0x01, 0xa4, 0x5a, 0x2f, 0xa7, 0x5b, 0xe7, 0x81, 0xc6, 0x12, 0x0f, 0xbf, 0xaa, 0x55, 0x91, - 0x81, 0xc6, 0x29, 0xb0, 0xf1, 0xaf, 0x34, 0xb8, 0x9e, 0x4b, 0x25, 0x14, 0xbf, 0xed, 0x84, 0x27, - 0xea, 0x97, 0x94, 0x64, 0x9a, 0xea, 0x46, 0xf4, 0xff, 0x01, 0xde, 0x94, 0x57, 0x85, 0x44, 0x92, - 0x79, 0xfc, 0x4d, 0xeb, 0xd8, 0xf1, 0x7a, 0x4c, 0xe0, 0x09, 0x4d, 0x5b, 0x01, 0x29, 0x73, 0x5d, - 0x49, 0xcd, 0xb5, 0x3a, 0x9e, 0x6a, 0x66, 0x3c, 0xf2, 0x22, 0x5a, 0x4d, 0xb9, 0xb0, 0xf6, 0x37, - 0x6b, 0xb0, 0x90, 0xa1, 0x4c, 0x8a, 0xdb, 0x0e, 0x9c, 0x53, 0x71, 0xc7, 0xba, 0x89, 0x45, 0x8a, - 0x4a, 0x6a, 0xbe, 0xd6, 0xef, 0x9a, 0x9e, 0xed, 0xca, 0xc9, 0x4c, 0xc1, 0xc6, 0xce, 0x67, 0x51, - 0x9f, 0x8f, 0x41, 0xe7, 0x38, 0x56, 0xa3, 0x28, 0x70, 0x0e, 0x87, 0x51, 0xfc, 0x1a, 0xee, 0xb7, - 0xa7, 0xe3, 0xa5, 0xbb, 0x8f, 0x32, 0xd5, 0xc5, 0x67, 0x5e, 0xb2, 0x58, 0xd1, 0x11, 0xac, 0x58, - 0xbe, 0x17, 0x05, 0xbe, 0xeb, 0x92, 0xa0, 0xc3, 0x43, 0xa1, 0xbb, 0x6c, 0x2d, 0xe9, 0x9e, 0x39, - 0x5e, 0x1f, 0x8b, 0xcb, 0x89, 0x3d, 0x73, 0x0c, 0x26, 0xf4, 0x08, 0x90, 0xc7, 0x2f, 0xe1, 0xf4, - 0x48, 0x82, 0xbf, 0x7e, 0x2e, 0xfc, 0x39, 0x18, 0xd0, 0xfb, 0xb0, 0xc4, 0xae, 0xc1, 0x65, 0x7b, - 0xde, 0x38, 0x17, 0xe6, 0x5c, 0x1c, 0xc8, 0x86, 0xe7, 0x92, 0x11, 0x6d, 0x3c, 0x19, 0x98, 0x9e, - 0x9d, 0x34, 0xd0, 0x3c, 0x57, 0x03, 0xc5, 0x88, 0xd0, 0xf7, 0xe0, 0x1a, 0x6d, 0x3d, 0x8b, 0x1f, - 0xce, 0x85, 0x3f, 0x0f, 0xc5, 0x4a, 0x1b, 0xae, 0xe7, 0x92, 0xc1, 0xb9, 0x6e, 0xa5, 0xb4, 0x61, - 0x21, 0xd3, 0xd8, 0xf9, 0xef, 0xe4, 0x1a, 0xdf, 0xcf, 0xd9, 0x9b, 0xb9, 0x4e, 0x1a, 0x07, 0x44, - 0x69, 0x6a, 0x40, 0x54, 0xf1, 0x47, 0x5c, 0x13, 0xab, 0xaa, 0xac, 0x5a, 0x55, 0xc6, 0xef, 0x68, - 0xa0, 0x67, 0xb5, 0x18, 0xf4, 0x01, 0xe8, 0x7d, 0x33, 0xb2, 0x8e, 0x37, 0x9e, 0x0c, 0x02, 0x1e, - 0x77, 0x7f, 0x61, 0x0f, 0xe9, 0x08, 0x22, 0xf4, 0xf3, 0x30, 0xc3, 0x60, 0x0f, 0x1c, 0xe2, 0xda, - 0x17, 0x76, 0x26, 0xa8, 0x38, 0x8c, 0xdf, 0x28, 0xc1, 0xf5, 0xfc, 0x6f, 0x28, 0x5c, 0xca, 0xfe, - 0x58, 0x4f, 0xd9, 0x1f, 0x2f, 0x9f, 0xe7, 0xb3, 0x07, 0x8a, 0x11, 0xb2, 0x95, 0x31, 0x42, 0xee, - 0x9d, 0x0b, 0xcf, 0xc5, 0x2d, 0x91, 0xdf, 0x2d, 0xc1, 0xf3, 0x63, 0x70, 0x16, 0x50, 0x50, 0xc6, - 0x36, 0x28, 0x8d, 0xda, 0x06, 0x1f, 0x2a, 0x86, 0x0c, 0x0f, 0x4c, 0x7d, 0xfb, 0xfc, 0x23, 0x2a, - 0xb4, 0x67, 0x0e, 0x52, 0x26, 0x69, 0x65, 0xec, 0x23, 0x0a, 0xb9, 0xf8, 0x73, 0x8d, 0xd3, 0xcb, - 0xa9, 0xc8, 0x7f, 0xbb, 0x0c, 0xcf, 0x15, 0xae, 0x72, 0x76, 0xc6, 0xb4, 0xd1, 0x19, 0xdb, 0x84, - 0xa6, 0x74, 0x05, 0x85, 0x13, 0x8c, 0xd9, 0x5c, 0x47, 0x52, 0x52, 0x3b, 0x31, 0x5f, 0x14, 0xbf, - 0x99, 0x02, 0x41, 0x0f, 0xa1, 0x21, 0xbd, 0x6c, 0x62, 0xf2, 0xce, 0xcd, 0x59, 0x31, 0x82, 0x5c, - 0xdb, 0xab, 0x5a, 0x60, 0x7b, 0xa5, 0xed, 0xaa, 0xda, 0x88, 0x5d, 0xd5, 0x01, 0xa0, 0xfd, 0x10, - 0xe6, 0x4f, 0x7d, 0x2c, 0x47, 0xd1, 0xad, 0xdc, 0xde, 0xf6, 0x2d, 0xd3, 0xcd, 0x5a, 0x97, 0x0a, - 0x0e, 0xe3, 0x23, 0x78, 0xae, 0xb0, 0x20, 0x55, 0x1e, 0xcc, 0x81, 0xf3, 0x0e, 0x7b, 0x3d, 0x58, - 0x28, 0x4b, 0x32, 0x1d, 0x2b, 0x2f, 0x25, 0xe5, 0x16, 0x7d, 0x4e, 0x28, 0x8b, 0xf1, 0x1f, 0x35, - 0xb8, 0x39, 0x9e, 0xc4, 0x7e, 0x26, 0x0f, 0xc7, 0x7f, 0xac, 0x01, 0x70, 0xe3, 0x1a, 0x0f, 0x5d, - 0x16, 0x59, 0x7b, 0x4a, 0x82, 0xc3, 0xf8, 0x2e, 0x22, 0x4b, 0xd0, 0x6d, 0x49, 0xce, 0x97, 0x14, - 0x02, 0x09, 0x80, 0x3f, 0x9e, 0x27, 0x09, 0x9a, 0xbb, 0x0f, 0x14, 0x1a, 0x65, 0xfe, 0x4a, 0x9e, - 0x60, 0x7a, 0x2d, 0x23, 0xc4, 0x26, 0x4e, 0x03, 0xd9, 0x51, 0x88, 0xef, 0x49, 0x7a, 0x3f, 0xc0, - 0xdb, 0x52, 0x7a, 0x65, 0xc1, 0xc6, 0x09, 0xd4, 0xbb, 0x43, 0xb6, 0xbe, 0xb9, 0x0f, 0x20, 0xa8, - 0x4b, 0x5d, 0x1a, 0x5d, 0xea, 0x91, 0x08, 0xa5, 0xd4, 0x8e, 0x5b, 0xc9, 0xee, 0xb8, 0xff, 0x54, - 0x83, 0x0a, 0xfb, 0x68, 0xc9, 0xa5, 0x76, 0x8e, 0x6f, 0x41, 0x35, 0x18, 0xba, 0x44, 0xee, 0x6e, - 0x5f, 0x2a, 0x8c, 0xf8, 0x94, 0xcb, 0x80, 0x79, 0xf9, 0x58, 0xc0, 0x97, 0x0b, 0x04, 0x7c, 0x25, - 0xfd, 0x0d, 0xa5, 0x19, 0xf5, 0x93, 0x23, 0x97, 0x74, 0x7b, 0x36, 0x42, 0x3e, 0xc9, 0xb2, 0xd3, - 0x85, 0xdf, 0x8f, 0xe4, 0xc5, 0x70, 0x5c, 0x1e, 0x6d, 0x41, 0x3d, 0xf0, 0x5d, 0x42, 0xb5, 0xaf, - 0xf2, 0x05, 0x19, 0x5b, 0x22, 0x38, 0xd7, 0x0e, 0xf7, 0x07, 0x25, 0x98, 0x51, 0xbf, 0x33, 0x73, - 0x35, 0x4b, 0xf6, 0x01, 0xe8, 0x66, 0xaf, 0x17, 0x90, 0x1e, 0x7b, 0x9f, 0x04, 0x33, 0x1c, 0x17, - 0xbc, 0xb0, 0x31, 0x82, 0xe8, 0x33, 0xbe, 0xc2, 0xf7, 0xab, 0x25, 0x40, 0x39, 0xdf, 0xb2, 0xf9, - 0xff, 0x8e, 0xb0, 0xfe, 0x4b, 0x09, 0xe6, 0x33, 0x9f, 0xb2, 0xb9, 0xd4, 0x1c, 0xbc, 0x0d, 0x75, - 0x6e, 0xe7, 0xcb, 0x29, 0x98, 0xd6, 0x9b, 0x2a, 0xab, 0xa1, 0x0f, 0x41, 0x67, 0x0f, 0x14, 0x74, - 0x86, 0xae, 0xdb, 0x15, 0xa8, 0x38, 0x91, 0x9d, 0x7f, 0x4a, 0x46, 0x30, 0xa1, 0x35, 0xb8, 0x61, - 0x0e, 0x23, 0x9f, 0x39, 0x4a, 0xd3, 0xe3, 0xde, 0xf7, 0x4f, 0x88, 0x27, 0x9c, 0x29, 0x63, 0xcb, - 0xc4, 0xf3, 0x5b, 0x2d, 0x98, 0x5f, 0xf5, 0x33, 0x2a, 0x43, 0xb8, 0x2e, 0xae, 0xd8, 0x0a, 0x4c, - 0x6b, 0xa6, 0x75, 0x42, 0x3c, 0x3b, 0x7b, 0x2e, 0xa8, 0x8d, 0x9e, 0x0b, 0xb2, 0xa7, 0x4f, 0x82, - 0xd4, 0xc7, 0xa7, 0x65, 0x9a, 0xbd, 0x10, 0x42, 0xff, 0xf3, 0x57, 0xdd, 0xb8, 0x7b, 0x48, 0x81, - 0x18, 0xff, 0x44, 0x83, 0x79, 0xd1, 0xae, 0x6c, 0xf0, 0x01, 0x5d, 0x19, 0x86, 0x5d, 0xac, 0xea, - 0x8b, 0xe3, 0xbf, 0x9a, 0x93, 0xee, 0x2f, 0x96, 0x95, 0xd1, 0x36, 0x34, 0xe4, 0xf6, 0x36, 0xc1, - 0x5c, 0x28, 0x5e, 0x97, 0x18, 0x83, 0xb1, 0x06, 0x20, 0xda, 0xdb, 0xdf, 0xee, 0xd2, 0x1d, 0xfa, - 0xd8, 0x0f, 0xa3, 0x78, 0x87, 0x66, 0x89, 0x8c, 0xb3, 0xaa, 0x94, 0x75, 0x56, 0x19, 0x7f, 0x55, - 0x83, 0x85, 0x77, 0xf7, 0xf7, 0x3b, 0x02, 0x51, 0xc7, 0x8c, 0x8e, 0xd9, 0xfb, 0x39, 0x66, 0x74, - 0x2c, 0xb7, 0x4f, 0xfa, 0x1f, 0x7d, 0x17, 0xea, 0x87, 0x7c, 0x34, 0xa2, 0xe3, 0x5f, 0x1d, 0x3f, - 0x03, 0xf1, 0xd0, 0x45, 0x2d, 0xb6, 0x22, 0x66, 0x74, 0xcc, 0xbc, 0x31, 0x65, 0xb1, 0x22, 0x22, - 0x6d, 0xf4, 0x60, 0x46, 0x7e, 0x6e, 0x88, 0xea, 0x1a, 0x48, 0xdc, 0x62, 0x11, 0xed, 0xb3, 0x8b, - 0x2a, 0xeb, 0xd0, 0x3c, 0x8e, 0xa2, 0x01, 0xed, 0xdf, 0x24, 0xee, 0xc8, 0x0c, 0x07, 0x27, 0x15, - 0x8d, 0xff, 0xad, 0xc5, 0x2d, 0x89, 0xe0, 0x9e, 0x79, 0x9b, 0x1c, 0x99, 0x43, 0x37, 0x12, 0xfd, - 0x15, 0xcb, 0x3b, 0xe5, 0xe0, 0x32, 0x95, 0xd1, 0x37, 0xa1, 0x1c, 0xb9, 0x93, 0xb6, 0x86, 0x64, - 0xc9, 0x30, 0x2d, 0x8d, 0xee, 0xcb, 0x1d, 0xa5, 0x3c, 0xf6, 0xe9, 0x04, 0x65, 0x82, 0xe4, 0x96, - 0x72, 0x07, 0x74, 0xf1, 0x71, 0xa6, 0x44, 0xf1, 0xe6, 0x9a, 0xca, 0x08, 0xdc, 0xc0, 0x54, 0x9b, - 0x0b, 0xa2, 0xe4, 0x46, 0x05, 0x7b, 0x21, 0x49, 0x53, 0x5e, 0x48, 0x1a, 0xf7, 0xa2, 0xd2, 0x12, - 0x54, 0x49, 0x10, 0xf8, 0x81, 0x58, 0x39, 0x9e, 0x30, 0x3e, 0x86, 0x6b, 0xdb, 0xa3, 0xd7, 0xe1, - 0x47, 0x3e, 0x32, 0x21, 0xbe, 0xed, 0xee, 0x65, 0x3e, 0x04, 0xcf, 0xb4, 0xac, 0x6f, 0xc9, 0x77, - 0x23, 0x2a, 0x13, 0xb6, 0x53, 0xd9, 0x75, 0xf1, 0x6c, 0x84, 0x71, 0x00, 0x73, 0x72, 0x21, 0xf9, - 0x90, 0xd6, 0xa1, 0x2e, 0x06, 0x2d, 0x7c, 0x10, 0x45, 0x97, 0xe8, 0x72, 0xba, 0x8c, 0x65, 0x55, - 0x16, 0xea, 0x26, 0xc7, 0xf1, 0x19, 0x84, 0xba, 0x29, 0xb4, 0x78, 0xce, 0x50, 0xb7, 0xd4, 0xe0, - 0x2f, 0x64, 0xf8, 0x7f, 0x1f, 0xd0, 0x43, 0xf3, 0xe8, 0xc4, 0x14, 0x71, 0xf0, 0xef, 0x12, 0xd3, - 0x26, 0x01, 0xfa, 0x12, 0xcc, 0x8a, 0xc0, 0xfd, 0x8f, 0x62, 0x93, 0x65, 0x0e, 0xcf, 0x08, 0x18, - 0xf3, 0x9e, 0x7e, 0x0d, 0x16, 0x64, 0x91, 0x53, 0xe5, 0x36, 0xcb, 0x1c, 0x9e, 0x17, 0x60, 0xf9, - 0xda, 0xeb, 0xaf, 0x68, 0xa0, 0xb3, 0x26, 0x56, 0x13, 0x7d, 0x05, 0xad, 0xb2, 0xd7, 0x86, 0x6d, - 0xe1, 0xeb, 0x2d, 0x8e, 0x53, 0x19, 0xed, 0x1b, 0x16, 0x15, 0x29, 0x35, 0x46, 0xfe, 0xc0, 0xb1, - 0xa4, 0x37, 0x8d, 0x25, 0xf8, 0x93, 0x98, 0xf2, 0x15, 0xef, 0x39, 0xcc, 0x13, 0xc6, 0xdf, 0xa8, - 0xc2, 0xb3, 0xeb, 0xd4, 0x1a, 0x8c, 0x02, 0x62, 0xf6, 0x43, 0xa5, 0x27, 0x21, 0xfa, 0x81, 0x06, - 0xad, 0x13, 0xda, 0x4c, 0x27, 0xf0, 0xed, 0xa1, 0x45, 0xd4, 0x4c, 0xd1, 0xbb, 0x77, 0x0a, 0xa3, - 0x68, 0x72, 0x51, 0xf2, 0x5e, 0xe7, 0xa0, 0xc3, 0x85, 0x0d, 0xa1, 0xbf, 0x02, 0xcb, 0x2c, 0xef, - 0x01, 0x89, 0xac, 0xe3, 0x54, 0x17, 0x38, 0xed, 0x6c, 0x5c, 0xa4, 0x0b, 0x23, 0xc8, 0x70, 0x41, - 0x23, 0xe8, 0x00, 0x16, 0x4f, 0x32, 0x6b, 0x24, 0x45, 0xd1, 0xd7, 0xc6, 0x2d, 0x8d, 0x52, 0x1e, - 0x8f, 0x62, 0x58, 0xb9, 0x0f, 0xb0, 0x4f, 0x97, 0x85, 0x3d, 0x1c, 0x9e, 0xac, 0x98, 0x96, 0xbb, - 0x62, 0x25, 0x65, 0xc5, 0x56, 0x4e, 0xa0, 0x55, 0x34, 0x8b, 0x68, 0x8f, 0xdf, 0xcc, 0x0a, 0x27, - 0x1c, 0x8d, 0x17, 0x4d, 0x4d, 0xd2, 0x23, 0x7e, 0xa9, 0x2b, 0x5c, 0x71, 0x60, 0x39, 0x7f, 0xbe, - 0x9e, 0x7a, 0x53, 0x86, 0x07, 0x3a, 0xdd, 0x99, 0x52, 0x8d, 0xec, 0xc3, 0x12, 0xf1, 0xec, 0x81, - 0xef, 0x78, 0x51, 0x66, 0xe5, 0xc7, 0x7d, 0x2c, 0x98, 0xa2, 0xe1, 0xa8, 0x73, 0x6b, 0x6f, 0x55, - 0x1a, 0x9a, 0x5e, 0x32, 0x1c, 0x58, 0xa4, 0x05, 0xef, 0x4d, 0xd5, 0xa0, 0x76, 0x99, 0x06, 0x8d, - 0x1f, 0x55, 0xa0, 0x19, 0x97, 0x41, 0x1f, 0xc0, 0x75, 0xf1, 0x12, 0x3d, 0x26, 0xe1, 0xc0, 0xf7, - 0x42, 0xe1, 0x8c, 0x16, 0x8d, 0x7c, 0x75, 0x52, 0x23, 0x6c, 0x4e, 0x71, 0x3e, 0x0e, 0x44, 0x60, - 0x51, 0x64, 0x70, 0x40, 0xdb, 0xb7, 0xe5, 0xab, 0x67, 0xdf, 0x9a, 0x88, 0xb8, 0x9b, 0xad, 0x29, - 0x9e, 0x51, 0x1d, 0xc1, 0x18, 0xab, 0x40, 0x15, 0x45, 0x05, 0x62, 0x5f, 0x2f, 0x89, 0x8e, 0x7d, - 0x7e, 0x4d, 0x62, 0xbe, 0x70, 0xb3, 0xa2, 0xed, 0xed, 0xb0, 0x82, 0x58, 0x54, 0xa0, 0x5b, 0xe0, - 0xd1, 0xd0, 0x75, 0xd9, 0x73, 0x87, 0xfc, 0xfe, 0x49, 0x9c, 0x5e, 0x39, 0x81, 0xe5, 0xfc, 0x7e, - 0xe5, 0xbc, 0xd8, 0xff, 0x66, 0xfa, 0xc5, 0xfe, 0x29, 0xa7, 0x52, 0xb9, 0xf7, 0x34, 0x80, 0xca, - 0xba, 0x78, 0x5c, 0xda, 0x8a, 0x1f, 0xc1, 0x95, 0xac, 0x87, 0x6e, 0x40, 0xd3, 0x35, 0x23, 0xe2, - 0x59, 0x8e, 0xf0, 0x40, 0xce, 0xe2, 0x04, 0x80, 0xee, 0x02, 0x3a, 0x72, 0x82, 0x30, 0xda, 0x66, - 0x90, 0xb3, 0xae, 0xd9, 0x1f, 0x88, 0x97, 0x44, 0x34, 0x9c, 0x93, 0xb3, 0x55, 0x69, 0x94, 0xf5, - 0x8a, 0xf1, 0x0a, 0xe8, 0xeb, 0xbb, 0x5d, 0xda, 0xe8, 0xa1, 0x19, 0x8a, 0x81, 0xdd, 0x82, 0x19, - 0xba, 0xfb, 0xef, 0x1d, 0x1d, 0x85, 0x44, 0x70, 0x58, 0x15, 0xab, 0x20, 0xe3, 0xb7, 0x35, 0x98, - 0x95, 0xf6, 0xe7, 0xb6, 0x13, 0x46, 0xe8, 0x17, 0x72, 0xef, 0x57, 0xbd, 0x3a, 0xc1, 0x74, 0xa5, - 0x55, 0x3f, 0xfd, 0xcb, 0x55, 0xff, 0xa3, 0x04, 0xd7, 0xf3, 0x3f, 0x7d, 0xf9, 0x19, 0x9c, 0x2b, - 0xe4, 0x36, 0x7c, 0x81, 0x73, 0x85, 0x7c, 0x3c, 0x17, 0x0f, 0x3b, 0x3b, 0xc8, 0xb9, 0x7d, 0xf2, - 0xea, 0x79, 0xda, 0xce, 0x0f, 0x1f, 0xfb, 0xb1, 0x06, 0x37, 0xc7, 0x17, 0xff, 0x9c, 0x45, 0x1d, - 0xfe, 0x54, 0x83, 0xe7, 0x0a, 0xd7, 0x88, 0xae, 0x0e, 0x7f, 0x84, 0x54, 0x90, 0xc7, 0xb9, 0x56, - 0x67, 0x9f, 0xd5, 0xc4, 0x02, 0x03, 0x35, 0xf5, 0x78, 0x64, 0xe6, 0x0e, 0x97, 0x89, 0xcc, 0xd4, - 0x4b, 0x20, 0xe8, 0x7d, 0xd0, 0xa5, 0xe9, 0xc8, 0xdc, 0x53, 0x4e, 0x6c, 0x73, 0xdc, 0x9d, 0xf8, - 0x9d, 0x4b, 0xb5, 0xde, 0x19, 0x1e, 0xc1, 0x63, 0x6c, 0xc0, 0xf3, 0x63, 0xba, 0x98, 0xeb, 0x90, - 0x95, 0x4e, 0xd7, 0x92, 0xe2, 0x4b, 0xff, 0xd7, 0x25, 0x78, 0xb6, 0xa0, 0xd1, 0xd4, 0xb7, 0x83, - 0x14, 0xb3, 0x3f, 0x0d, 0xa4, 0x58, 0xfb, 0xc9, 0xf0, 0xd9, 0x7f, 0xd4, 0x06, 0xe8, 0x3b, 0xde, - 0xaa, 0xeb, 0xfa, 0x8f, 0x45, 0x50, 0x7f, 0xf1, 0x45, 0x28, 0x55, 0x72, 0x60, 0xa5, 0x1a, 0x43, - 0x62, 0x3e, 0x91, 0x48, 0x2a, 0xe7, 0x41, 0x12, 0x57, 0x93, 0x9f, 0x13, 0x62, 0x27, 0xd5, 0xb6, - 0x2c, 0x25, 0xd8, 0x26, 0x27, 0x47, 0x7e, 0x64, 0x87, 0x43, 0x85, 0xe4, 0xab, 0xc5, 0xd7, 0x04, - 0x53, 0x70, 0xe3, 0x7f, 0x6a, 0x05, 0x6b, 0x90, 0xbc, 0x6b, 0xb6, 0x6d, 0x86, 0x11, 0x26, 0x96, - 0xdf, 0xef, 0x13, 0xcf, 0x26, 0xf6, 0xba, 0xfc, 0xf6, 0x42, 0x19, 0xe7, 0x65, 0xa1, 0xef, 0x51, - 0x45, 0x5f, 0x80, 0x52, 0x8a, 0xc9, 0x14, 0xf4, 0xa2, 0x56, 0xc3, 0x59, 0x34, 0x99, 0xab, 0x69, - 0xe5, 0xb1, 0x57, 0xd3, 0x1e, 0x75, 0x56, 0xf3, 0x45, 0xc1, 0x1f, 0xa6, 0x89, 0x45, 0x6d, 0x61, - 0x4a, 0x62, 0x79, 0x33, 0xe6, 0xbe, 0xd2, 0xf4, 0xeb, 0x29, 0xd9, 0xad, 0x0d, 0x40, 0x17, 0x35, - 0x58, 0xf3, 0x87, 0xde, 0xf9, 0xa8, 0x2a, 0xa9, 0x46, 0x91, 0x0c, 0x07, 0x03, 0x89, 0xe4, 0x3c, - 0x54, 0x95, 0x54, 0x43, 0x0f, 0x61, 0x7e, 0xe8, 0x59, 0xe6, 0x60, 0x40, 0x6c, 0xce, 0x6f, 0x22, - 0x30, 0x6c, 0x2a, 0x44, 0x99, 0xaa, 0xc6, 0xbf, 0xd1, 0x60, 0x56, 0x9d, 0x72, 0x3a, 0x95, 0x71, - 0x62, 0x3f, 0x91, 0xab, 0x69, 0x20, 0xba, 0xcd, 0x9e, 0x6d, 0xe0, 0x80, 0xae, 0x2a, 0x69, 0xb3, - 0x60, 0xca, 0x03, 0xdb, 0x85, 0x22, 0x77, 0x3b, 0x57, 0xe4, 0xe2, 0x94, 0xc8, 0xc5, 0xb1, 0xc8, - 0xdd, 0x49, 0x8b, 0x5c, 0x91, 0xbc, 0xb3, 0x01, 0x8b, 0xc9, 0xb7, 0x6a, 0x7c, 0x61, 0xb5, 0xea, - 0x30, 0xeb, 0xf9, 0x2c, 0x0a, 0x9b, 0x7d, 0x22, 0x40, 0x7f, 0x06, 0xcd, 0x03, 0x1c, 0x99, 0x41, - 0xcf, 0x8c, 0xc8, 0x46, 0xbb, 0xab, 0x6b, 0x6a, 0xfa, 0x61, 0x57, 0x2f, 0xdd, 0x71, 0x94, 0x07, - 0x39, 0xf9, 0x67, 0xd3, 0x66, 0xa0, 0x3e, 0xf4, 0x4e, 0x3c, 0xff, 0xb1, 0xa7, 0x3f, 0x43, 0x13, - 0xe2, 0xf3, 0x8d, 0xbc, 0xae, 0x78, 0x42, 0xc2, 0xf1, 0x7a, 0x7a, 0x89, 0x66, 0x06, 0x43, 0xcf, - 0xa3, 0x89, 0x32, 0x02, 0xf9, 0x74, 0x9a, 0x5e, 0xa1, 0xff, 0xc9, 0x13, 0x87, 0x56, 0xaa, 0xa2, - 0x06, 0x54, 0x6c, 0x62, 0xda, 0x7a, 0xed, 0xce, 0xae, 0xf2, 0xe8, 0x85, 0xf8, 0xa0, 0xda, 0x22, - 0xcc, 0x89, 0xb6, 0x38, 0x40, 0x7f, 0x06, 0xcd, 0x42, 0x23, 0x6e, 0x42, 0xa3, 0x4d, 0xf0, 0x27, - 0x19, 0xcf, 0xf4, 0x12, 0x9a, 0x83, 0xe6, 0xd0, 0x93, 0xc9, 0xf2, 0x9d, 0x07, 0x30, 0xab, 0x7e, - 0xfd, 0x0d, 0x55, 0x41, 0x3b, 0xd0, 0x9f, 0xa1, 0x3f, 0xeb, 0xba, 0x46, 0x7f, 0xb0, 0x5e, 0xa2, - 0x3f, 0x5d, 0xbd, 0x4c, 0x7f, 0xf6, 0xf5, 0x0a, 0xfd, 0x79, 0x4f, 0xaf, 0xd2, 0x9f, 0xef, 0xe9, - 0x35, 0xfa, 0xf3, 0xbe, 0x5e, 0xbf, 0x63, 0xb0, 0x29, 0x50, 0x3e, 0xf2, 0x89, 0xea, 0x50, 0x8e, - 0xac, 0x81, 0xfe, 0x0c, 0xfd, 0x33, 0xb4, 0x07, 0xba, 0x76, 0xe7, 0x2f, 0x4a, 0x30, 0xf3, 0xf0, - 0x7e, 0x18, 0xcb, 0xac, 0xe7, 0xe1, 0xd9, 0x87, 0xf7, 0xbb, 0x78, 0xa3, 0xbb, 0x77, 0x80, 0xdb, - 0x1b, 0x1f, 0x1d, 0xec, 0x76, 0x3b, 0x1b, 0xed, 0xcd, 0x07, 0x9b, 0x1b, 0xeb, 0xbc, 0x56, 0x67, - 0x6f, 0x9d, 0x4f, 0x18, 0xde, 0xe8, 0x6c, 0x6f, 0xb6, 0x57, 0xbb, 0x1b, 0xfb, 0x7c, 0xc2, 0xba, - 0x1b, 0xf8, 0xd1, 0x66, 0x7b, 0x43, 0x2f, 0xd3, 0x89, 0xd9, 0xdd, 0x5b, 0xdf, 0xd0, 0x2b, 0x14, - 0xdc, 0xde, 0x3e, 0xe8, 0xee, 0x6f, 0x60, 0xbd, 0x4a, 0x2b, 0x6f, 0xed, 0xad, 0xe9, 0x35, 0x06, - 0xc5, 0x7b, 0xbb, 0x34, 0x51, 0xa7, 0x43, 0x5f, 0x5f, 0xdd, 0xd8, 0xd9, 0xdb, 0xa5, 0x88, 0x1a, - 0x68, 0x01, 0x66, 0xba, 0xfb, 0xab, 0xfb, 0x1b, 0x0f, 0x0e, 0xb6, 0x29, 0xa0, 0x89, 0x96, 0x40, - 0xef, 0x6c, 0xe0, 0xee, 0x66, 0x77, 0x7f, 0x63, 0x77, 0xff, 0xd1, 0xde, 0xf6, 0xc1, 0xce, 0x86, - 0x0e, 0xe8, 0x39, 0xb8, 0x9e, 0x85, 0xb6, 0xb7, 0x57, 0x37, 0x77, 0xf4, 0x19, 0xda, 0x3a, 0xde, - 0xdb, 0xde, 0xd0, 0x67, 0x29, 0x2e, 0xfa, 0x6f, 0x6d, 0x73, 0x77, 0x7d, 0x73, 0xf7, 0x1d, 0x7d, - 0x8e, 0x02, 0x44, 0x77, 0x58, 0x89, 0x79, 0xb4, 0x0c, 0x48, 0x01, 0xc8, 0x82, 0x0b, 0x08, 0xc1, - 0xbc, 0x18, 0xce, 0x6a, 0xbb, 0xbd, 0x77, 0xb0, 0xbb, 0xaf, 0xeb, 0xb4, 0xd7, 0x9b, 0xbb, 0xef, - 0xe0, 0x8d, 0x6e, 0x57, 0x5f, 0xa4, 0xe3, 0x5f, 0xdf, 0xe8, 0x6c, 0xef, 0xfd, 0xc2, 0xce, 0xc6, - 0xee, 0xbe, 0x8e, 0xe8, 0x28, 0x76, 0x57, 0x77, 0x36, 0xba, 0x9d, 0xd5, 0xf6, 0x86, 0x7e, 0x8d, - 0x0e, 0xb5, 0x8d, 0xd7, 0xf5, 0x25, 0x54, 0x83, 0x52, 0x1b, 0xeb, 0xd7, 0x69, 0x7f, 0x1f, 0x6d, - 0xe0, 0xfd, 0xcd, 0xf6, 0xea, 0x76, 0x67, 0x6f, 0x7d, 0xf5, 0x60, 0x7f, 0xaf, 0xdb, 0x5e, 0xdd, - 0xde, 0xc0, 0xfa, 0xf2, 0x1d, 0x02, 0xad, 0xa2, 0x87, 0x12, 0x68, 0x87, 0x05, 0x15, 0xd1, 0xa4, - 0xfe, 0x0c, 0x6d, 0x27, 0x96, 0x81, 0xba, 0x46, 0xa9, 0x2c, 0xf5, 0xb2, 0x8e, 0x5e, 0xa2, 0x43, - 0x22, 0x83, 0x63, 0xd2, 0x27, 0x81, 0xe9, 0x26, 0xf0, 0xf2, 0x9d, 0xf7, 0x00, 0x51, 0xbb, 0x22, - 0x63, 0x8f, 0x35, 0xa0, 0xb2, 0xe9, 0x1d, 0xf9, 0x9c, 0x1f, 0xba, 0xfc, 0x66, 0xad, 0xae, 0x51, - 0x52, 0xc5, 0xc4, 0x76, 0x02, 0x62, 0x45, 0x9c, 0x3a, 0xf9, 0x17, 0xce, 0x37, 0x82, 0x40, 0x2f, - 0xd3, 0x24, 0xff, 0x88, 0x01, 0x4d, 0x56, 0xee, 0x58, 0x00, 0x89, 0xc9, 0x44, 0xd1, 0x1c, 0xc4, - 0x3c, 0x56, 0x87, 0xf2, 0x3b, 0x24, 0xd2, 0x35, 0xda, 0x4c, 0xc7, 0x0f, 0x29, 0x2e, 0x4a, 0x41, - 0xc3, 0x88, 0x73, 0xd5, 0x3a, 0x71, 0x49, 0x44, 0xf4, 0x0a, 0xcd, 0x7e, 0x97, 0x72, 0x52, 0x95, - 0x56, 0x17, 0x31, 0xdc, 0x7a, 0x0d, 0x35, 0xa1, 0xda, 0x31, 0x23, 0xeb, 0x58, 0xaf, 0xaf, 0x7d, - 0xe7, 0xdf, 0x7d, 0x72, 0x53, 0xfb, 0xf7, 0x9f, 0xdc, 0xd4, 0xfe, 0xf8, 0x93, 0x9b, 0xda, 0x0f, - 0x7f, 0x7a, 0xf3, 0x99, 0xf7, 0xbf, 0xde, 0x73, 0xa2, 0xe3, 0xe1, 0xe1, 0x5d, 0xcb, 0xef, 0xbf, - 0x44, 0xcd, 0x93, 0x75, 0xbf, 0xf7, 0x12, 0x93, 0x8f, 0xdf, 0x18, 0x98, 0x67, 0xae, 0x6f, 0xda, - 0x2f, 0x9d, 0xbe, 0xfa, 0x92, 0x10, 0x9c, 0x87, 0x35, 0xe6, 0x0a, 0xfd, 0xe6, 0xff, 0x0b, 0x00, - 0x00, 0xff, 0xff, 0x31, 0x68, 0x88, 0x8f, 0x86, 0x9b, 0x00, 0x00, +func file_proto_process_agent_proto_rawDescGZIP() []byte { + file_proto_process_agent_proto_rawDescOnce.Do(func() { + file_proto_process_agent_proto_rawDescData = protoimpl.X.CompressGZIP(file_proto_process_agent_proto_rawDescData) + }) + return file_proto_process_agent_proto_rawDescData +} + +var file_proto_process_agent_proto_enumTypes = make([]protoimpl.EnumInfo, 9) +var file_proto_process_agent_proto_msgTypes = make([]protoimpl.MessageInfo, 161) +var file_proto_process_agent_proto_goTypes = []interface{}{ + (ContainerHostType)(0), // 0: datadog.process_agent.ContainerHostType + (ContainerState)(0), // 1: datadog.process_agent.ContainerState + (ContainerHealth)(0), // 2: datadog.process_agent.ContainerHealth + (ProcessState)(0), // 3: datadog.process_agent.ProcessState + (ConnectionType)(0), // 4: datadog.process_agent.ConnectionType + (K8SResource)(0), // 5: datadog.process_agent.K8sResource + (ResourceRequirementsType)(0), // 6: datadog.process_agent.ResourceRequirementsType + (HTTPResponseStatus)(0), // 7: datadog.process_agent.HTTPResponseStatus + (HTTPMethod)(0), // 8: datadog.process_agent.HTTPMethod + (*ResCollector)(nil), // 9: datadog.process_agent.ResCollector + (*CollectorProc)(nil), // 10: datadog.process_agent.CollectorProc + (*CollectorProcDiscovery)(nil), // 11: datadog.process_agent.CollectorProcDiscovery + (*CollectorRealTime)(nil), // 12: datadog.process_agent.CollectorRealTime + (*CollectorContainer)(nil), // 13: datadog.process_agent.CollectorContainer + (*CollectorContainerRealTime)(nil), // 14: datadog.process_agent.CollectorContainerRealTime + (*CollectorReqStatus)(nil), // 15: datadog.process_agent.CollectorReqStatus + (*CollectorPod)(nil), // 16: datadog.process_agent.CollectorPod + (*CollectorReplicaSet)(nil), // 17: datadog.process_agent.CollectorReplicaSet + (*CollectorDeployment)(nil), // 18: datadog.process_agent.CollectorDeployment + (*CollectorService)(nil), // 19: datadog.process_agent.CollectorService + (*CollectorNode)(nil), // 20: datadog.process_agent.CollectorNode + (*CollectorCluster)(nil), // 21: datadog.process_agent.CollectorCluster + (*CollectorManifest)(nil), // 22: datadog.process_agent.CollectorManifest + (*CollectorManifestCRD)(nil), // 23: datadog.process_agent.CollectorManifestCRD + (*CollectorManifestCR)(nil), // 24: datadog.process_agent.CollectorManifestCR + (*CollectorNamespace)(nil), // 25: datadog.process_agent.CollectorNamespace + (*CollectorJob)(nil), // 26: datadog.process_agent.CollectorJob + (*CollectorCronJob)(nil), // 27: datadog.process_agent.CollectorCronJob + (*CollectorDaemonSet)(nil), // 28: datadog.process_agent.CollectorDaemonSet + (*CollectorStatefulSet)(nil), // 29: datadog.process_agent.CollectorStatefulSet + (*CollectorPersistentVolume)(nil), // 30: datadog.process_agent.CollectorPersistentVolume + (*CollectorPersistentVolumeClaim)(nil), // 31: datadog.process_agent.CollectorPersistentVolumeClaim + (*CollectorRole)(nil), // 32: datadog.process_agent.CollectorRole + (*CollectorRoleBinding)(nil), // 33: datadog.process_agent.CollectorRoleBinding + (*CollectorClusterRole)(nil), // 34: datadog.process_agent.CollectorClusterRole + (*CollectorClusterRoleBinding)(nil), // 35: datadog.process_agent.CollectorClusterRoleBinding + (*CollectorServiceAccount)(nil), // 36: datadog.process_agent.CollectorServiceAccount + (*CollectorIngress)(nil), // 37: datadog.process_agent.CollectorIngress + (*CollectorVerticalPodAutoscaler)(nil), // 38: datadog.process_agent.CollectorVerticalPodAutoscaler + (*CollectorStatus)(nil), // 39: datadog.process_agent.CollectorStatus + (*Process)(nil), // 40: datadog.process_agent.Process + (*ProcessDiscovery)(nil), // 41: datadog.process_agent.ProcessDiscovery + (*Command)(nil), // 42: datadog.process_agent.Command + (*ProcessUser)(nil), // 43: datadog.process_agent.ProcessUser + (*ProcessNetworks)(nil), // 44: datadog.process_agent.ProcessNetworks + (*ContainerAddr)(nil), // 45: datadog.process_agent.ContainerAddr + (*Container)(nil), // 46: datadog.process_agent.Container + (*ProcessStat)(nil), // 47: datadog.process_agent.ProcessStat + (*ProcStatsWithPerm)(nil), // 48: datadog.process_agent.ProcStatsWithPerm + (*ProcStatsWithPermByPID)(nil), // 49: datadog.process_agent.ProcStatsWithPermByPID + (*ContainerStat)(nil), // 50: datadog.process_agent.ContainerStat + (*SystemInfo)(nil), // 51: datadog.process_agent.SystemInfo + (*OSInfo)(nil), // 52: datadog.process_agent.OSInfo + (*IOStat)(nil), // 53: datadog.process_agent.IOStat + (*MemoryStat)(nil), // 54: datadog.process_agent.MemoryStat + (*CPUStat)(nil), // 55: datadog.process_agent.CPUStat + (*SingleCPUStat)(nil), // 56: datadog.process_agent.SingleCPUStat + (*CPUInfo)(nil), // 57: datadog.process_agent.CPUInfo + (*Host)(nil), // 58: datadog.process_agent.Host + (*Cluster)(nil), // 59: datadog.process_agent.Cluster + (*Metadata)(nil), // 60: datadog.process_agent.Metadata + (*OwnerReference)(nil), // 61: datadog.process_agent.OwnerReference + (*ObjectReference)(nil), // 62: datadog.process_agent.ObjectReference + (*ServicePort)(nil), // 63: datadog.process_agent.ServicePort + (*ServiceSessionAffinityConfig)(nil), // 64: datadog.process_agent.ServiceSessionAffinityConfig + (*Node)(nil), // 65: datadog.process_agent.Node + (*NodeStatus)(nil), // 66: datadog.process_agent.NodeStatus + (*NodeCondition)(nil), // 67: datadog.process_agent.NodeCondition + (*ContainerImage)(nil), // 68: datadog.process_agent.ContainerImage + (*Taint)(nil), // 69: datadog.process_agent.Taint + (*ServiceSpec)(nil), // 70: datadog.process_agent.ServiceSpec + (*ServiceStatus)(nil), // 71: datadog.process_agent.ServiceStatus + (*Service)(nil), // 72: datadog.process_agent.Service + (*DeploymentCondition)(nil), // 73: datadog.process_agent.DeploymentCondition + (*Deployment)(nil), // 74: datadog.process_agent.Deployment + (*ReplicaSetCondition)(nil), // 75: datadog.process_agent.ReplicaSetCondition + (*ReplicaSet)(nil), // 76: datadog.process_agent.ReplicaSet + (*LabelSelectorRequirement)(nil), // 77: datadog.process_agent.LabelSelectorRequirement + (*Pod)(nil), // 78: datadog.process_agent.Pod + (*PodCondition)(nil), // 79: datadog.process_agent.PodCondition + (*ContainerStatus)(nil), // 80: datadog.process_agent.ContainerStatus + (*Manifest)(nil), // 81: datadog.process_agent.Manifest + (*NamespaceCondition)(nil), // 82: datadog.process_agent.NamespaceCondition + (*Namespace)(nil), // 83: datadog.process_agent.Namespace + (*ResourceRequirements)(nil), // 84: datadog.process_agent.ResourceRequirements + (*ResourceMetrics)(nil), // 85: datadog.process_agent.ResourceMetrics + (*JobSpec)(nil), // 86: datadog.process_agent.JobSpec + (*JobStatus)(nil), // 87: datadog.process_agent.JobStatus + (*JobCondition)(nil), // 88: datadog.process_agent.JobCondition + (*Job)(nil), // 89: datadog.process_agent.Job + (*CronJobSpec)(nil), // 90: datadog.process_agent.CronJobSpec + (*CronJobStatus)(nil), // 91: datadog.process_agent.CronJobStatus + (*CronJob)(nil), // 92: datadog.process_agent.CronJob + (*DaemonSetSpec)(nil), // 93: datadog.process_agent.DaemonSetSpec + (*DaemonSetStatus)(nil), // 94: datadog.process_agent.DaemonSetStatus + (*DaemonSetCondition)(nil), // 95: datadog.process_agent.DaemonSetCondition + (*DaemonSet)(nil), // 96: datadog.process_agent.DaemonSet + (*StatefulSetSpec)(nil), // 97: datadog.process_agent.StatefulSetSpec + (*StatefulSetStatus)(nil), // 98: datadog.process_agent.StatefulSetStatus + (*StatefulSetCondition)(nil), // 99: datadog.process_agent.StatefulSetCondition + (*StatefulSet)(nil), // 100: datadog.process_agent.StatefulSet + (*PersistentVolume)(nil), // 101: datadog.process_agent.PersistentVolume + (*PersistentVolumeSpec)(nil), // 102: datadog.process_agent.PersistentVolumeSpec + (*PersistentVolumeSource)(nil), // 103: datadog.process_agent.PersistentVolumeSource + (*GCEPersistentDiskVolumeSource)(nil), // 104: datadog.process_agent.GCEPersistentDiskVolumeSource + (*AWSElasticBlockStoreVolumeSource)(nil), // 105: datadog.process_agent.AWSElasticBlockStoreVolumeSource + (*AzureFilePersistentVolumeSource)(nil), // 106: datadog.process_agent.AzureFilePersistentVolumeSource + (*AzureDiskVolumeSource)(nil), // 107: datadog.process_agent.AzureDiskVolumeSource + (*CSIVolumeSource)(nil), // 108: datadog.process_agent.CSIVolumeSource + (*SecretReference)(nil), // 109: datadog.process_agent.SecretReference + (*PersistentVolumeStatus)(nil), // 110: datadog.process_agent.PersistentVolumeStatus + (*NodeSelectorTerm)(nil), // 111: datadog.process_agent.NodeSelectorTerm + (*PersistentVolumeClaim)(nil), // 112: datadog.process_agent.PersistentVolumeClaim + (*PersistentVolumeClaimStatus)(nil), // 113: datadog.process_agent.PersistentVolumeClaimStatus + (*PersistentVolumeClaimSpec)(nil), // 114: datadog.process_agent.PersistentVolumeClaimSpec + (*TypedLocalObjectReference)(nil), // 115: datadog.process_agent.TypedLocalObjectReference + (*PersistentVolumeClaimCondition)(nil), // 116: datadog.process_agent.PersistentVolumeClaimCondition + (*PolicyRule)(nil), // 117: datadog.process_agent.PolicyRule + (*Subject)(nil), // 118: datadog.process_agent.Subject + (*Role)(nil), // 119: datadog.process_agent.Role + (*RoleBinding)(nil), // 120: datadog.process_agent.RoleBinding + (*ClusterRole)(nil), // 121: datadog.process_agent.ClusterRole + (*ClusterRoleBinding)(nil), // 122: datadog.process_agent.ClusterRoleBinding + (*ServiceAccount)(nil), // 123: datadog.process_agent.ServiceAccount + (*IngressServiceBackend)(nil), // 124: datadog.process_agent.IngressServiceBackend + (*IngressBackend)(nil), // 125: datadog.process_agent.IngressBackend + (*IngressTLS)(nil), // 126: datadog.process_agent.IngressTLS + (*HTTPIngressPath)(nil), // 127: datadog.process_agent.HTTPIngressPath + (*IngressRule)(nil), // 128: datadog.process_agent.IngressRule + (*IngressSpec)(nil), // 129: datadog.process_agent.IngressSpec + (*PortStatus)(nil), // 130: datadog.process_agent.PortStatus + (*LoadBalancerIngress)(nil), // 131: datadog.process_agent.LoadBalancerIngress + (*IngressStatus)(nil), // 132: datadog.process_agent.IngressStatus + (*Ingress)(nil), // 133: datadog.process_agent.Ingress + (*KafkaRequestHeader)(nil), // 134: datadog.process_agent.KafkaRequestHeader + (*KafkaAggregation)(nil), // 135: datadog.process_agent.KafkaAggregation + (*DataStreamsAggregations)(nil), // 136: datadog.process_agent.DataStreamsAggregations + (*HTTPAggregations)(nil), // 137: datadog.process_agent.HTTPAggregations + (*HTTP2Aggregations)(nil), // 138: datadog.process_agent.HTTP2Aggregations + (*HTTPStats)(nil), // 139: datadog.process_agent.HTTPStats + (*DNSDatabaseEntry)(nil), // 140: datadog.process_agent.DNSDatabaseEntry + (*ResourceList)(nil), // 141: datadog.process_agent.ResourceList + (*VerticalPodAutoscaler)(nil), // 142: datadog.process_agent.VerticalPodAutoscaler + (*VerticalPodAutoscalerCondition)(nil), // 143: datadog.process_agent.VerticalPodAutoscalerCondition + (*VerticalPodAutoscalerSpec)(nil), // 144: datadog.process_agent.VerticalPodAutoscalerSpec + (*VerticalPodAutoscalerTarget)(nil), // 145: datadog.process_agent.VerticalPodAutoscalerTarget + (*ContainerResourcePolicy)(nil), // 146: datadog.process_agent.ContainerResourcePolicy + (*VerticalPodAutoscalerStatus)(nil), // 147: datadog.process_agent.VerticalPodAutoscalerStatus + (*ContainerRecommendation)(nil), // 148: datadog.process_agent.ContainerRecommendation + (*VPACondition)(nil), // 149: datadog.process_agent.VPACondition + (*ResCollector_Header)(nil), // 150: datadog.process_agent.ResCollector.Header + nil, // 151: datadog.process_agent.CollectorNode.HostAliasMappingEntry + nil, // 152: datadog.process_agent.ProcStatsWithPermByPID.StatsByPIDEntry + nil, // 153: datadog.process_agent.Cluster.KubeletVersionsEntry + nil, // 154: datadog.process_agent.Cluster.ApiServerVersionsEntry + nil, // 155: datadog.process_agent.NodeStatus.CapacityEntry + nil, // 156: datadog.process_agent.NodeStatus.AllocatableEntry + nil, // 157: datadog.process_agent.NodeStatus.NodeAddressesEntry + nil, // 158: datadog.process_agent.ResourceRequirements.LimitsEntry + nil, // 159: datadog.process_agent.ResourceRequirements.RequestsEntry + nil, // 160: datadog.process_agent.ResourceMetrics.MetricValuesEntry + nil, // 161: datadog.process_agent.PersistentVolumeSpec.CapacityEntry + nil, // 162: datadog.process_agent.CSIVolumeSource.VolumeAttributesEntry + nil, // 163: datadog.process_agent.PersistentVolumeClaimStatus.CapacityEntry + (*DataStreamsAggregations_TopicStats)(nil), // 164: datadog.process_agent.DataStreamsAggregations.TopicStats + (*DataStreamsAggregations_KafkaProduceAggregations)(nil), // 165: datadog.process_agent.DataStreamsAggregations.KafkaProduceAggregations + (*DataStreamsAggregations_KafkaFetchAggregations)(nil), // 166: datadog.process_agent.DataStreamsAggregations.KafkaFetchAggregations + nil, // 167: datadog.process_agent.HTTPStats.StatsByStatusCodeEntry + (*HTTPStats_Data)(nil), // 168: datadog.process_agent.HTTPStats.Data + nil, // 169: datadog.process_agent.ResourceList.MetricValuesEntry +} +var file_proto_process_agent_proto_depIdxs = []int32{ + 150, // 0: datadog.process_agent.ResCollector.header:type_name -> datadog.process_agent.ResCollector.Header + 39, // 1: datadog.process_agent.ResCollector.status:type_name -> datadog.process_agent.CollectorStatus + 40, // 2: datadog.process_agent.CollectorProc.processes:type_name -> datadog.process_agent.Process + 58, // 3: datadog.process_agent.CollectorProc.host:type_name -> datadog.process_agent.Host + 51, // 4: datadog.process_agent.CollectorProc.info:type_name -> datadog.process_agent.SystemInfo + 46, // 5: datadog.process_agent.CollectorProc.containers:type_name -> datadog.process_agent.Container + 0, // 6: datadog.process_agent.CollectorProc.containerHostType:type_name -> datadog.process_agent.ContainerHostType + 41, // 7: datadog.process_agent.CollectorProcDiscovery.processDiscoveries:type_name -> datadog.process_agent.ProcessDiscovery + 58, // 8: datadog.process_agent.CollectorProcDiscovery.host:type_name -> datadog.process_agent.Host + 47, // 9: datadog.process_agent.CollectorRealTime.stats:type_name -> datadog.process_agent.ProcessStat + 50, // 10: datadog.process_agent.CollectorRealTime.containerStats:type_name -> datadog.process_agent.ContainerStat + 0, // 11: datadog.process_agent.CollectorRealTime.containerHostType:type_name -> datadog.process_agent.ContainerHostType + 51, // 12: datadog.process_agent.CollectorContainer.info:type_name -> datadog.process_agent.SystemInfo + 46, // 13: datadog.process_agent.CollectorContainer.containers:type_name -> datadog.process_agent.Container + 58, // 14: datadog.process_agent.CollectorContainer.host:type_name -> datadog.process_agent.Host + 0, // 15: datadog.process_agent.CollectorContainer.containerHostType:type_name -> datadog.process_agent.ContainerHostType + 50, // 16: datadog.process_agent.CollectorContainerRealTime.stats:type_name -> datadog.process_agent.ContainerStat + 0, // 17: datadog.process_agent.CollectorContainerRealTime.containerHostType:type_name -> datadog.process_agent.ContainerHostType + 78, // 18: datadog.process_agent.CollectorPod.pods:type_name -> datadog.process_agent.Pod + 58, // 19: datadog.process_agent.CollectorPod.host:type_name -> datadog.process_agent.Host + 76, // 20: datadog.process_agent.CollectorReplicaSet.replicaSets:type_name -> datadog.process_agent.ReplicaSet + 74, // 21: datadog.process_agent.CollectorDeployment.deployments:type_name -> datadog.process_agent.Deployment + 72, // 22: datadog.process_agent.CollectorService.services:type_name -> datadog.process_agent.Service + 65, // 23: datadog.process_agent.CollectorNode.nodes:type_name -> datadog.process_agent.Node + 151, // 24: datadog.process_agent.CollectorNode.hostAliasMapping:type_name -> datadog.process_agent.CollectorNode.HostAliasMappingEntry + 59, // 25: datadog.process_agent.CollectorCluster.cluster:type_name -> datadog.process_agent.Cluster + 81, // 26: datadog.process_agent.CollectorManifest.manifests:type_name -> datadog.process_agent.Manifest + 22, // 27: datadog.process_agent.CollectorManifestCRD.manifest:type_name -> datadog.process_agent.CollectorManifest + 22, // 28: datadog.process_agent.CollectorManifestCR.manifest:type_name -> datadog.process_agent.CollectorManifest + 83, // 29: datadog.process_agent.CollectorNamespace.namespaces:type_name -> datadog.process_agent.Namespace + 89, // 30: datadog.process_agent.CollectorJob.jobs:type_name -> datadog.process_agent.Job + 92, // 31: datadog.process_agent.CollectorCronJob.cronJobs:type_name -> datadog.process_agent.CronJob + 96, // 32: datadog.process_agent.CollectorDaemonSet.daemonSets:type_name -> datadog.process_agent.DaemonSet + 100, // 33: datadog.process_agent.CollectorStatefulSet.statefulSets:type_name -> datadog.process_agent.StatefulSet + 101, // 34: datadog.process_agent.CollectorPersistentVolume.persistentVolumes:type_name -> datadog.process_agent.PersistentVolume + 112, // 35: datadog.process_agent.CollectorPersistentVolumeClaim.persistentVolumeClaims:type_name -> datadog.process_agent.PersistentVolumeClaim + 119, // 36: datadog.process_agent.CollectorRole.roles:type_name -> datadog.process_agent.Role + 120, // 37: datadog.process_agent.CollectorRoleBinding.roleBindings:type_name -> datadog.process_agent.RoleBinding + 121, // 38: datadog.process_agent.CollectorClusterRole.clusterRoles:type_name -> datadog.process_agent.ClusterRole + 122, // 39: datadog.process_agent.CollectorClusterRoleBinding.clusterRoleBindings:type_name -> datadog.process_agent.ClusterRoleBinding + 123, // 40: datadog.process_agent.CollectorServiceAccount.serviceAccounts:type_name -> datadog.process_agent.ServiceAccount + 133, // 41: datadog.process_agent.CollectorIngress.ingresses:type_name -> datadog.process_agent.Ingress + 142, // 42: datadog.process_agent.CollectorVerticalPodAutoscaler.verticalPodAutoscalers:type_name -> datadog.process_agent.VerticalPodAutoscaler + 58, // 43: datadog.process_agent.Process.host:type_name -> datadog.process_agent.Host + 42, // 44: datadog.process_agent.Process.command:type_name -> datadog.process_agent.Command + 43, // 45: datadog.process_agent.Process.user:type_name -> datadog.process_agent.ProcessUser + 54, // 46: datadog.process_agent.Process.memory:type_name -> datadog.process_agent.MemoryStat + 55, // 47: datadog.process_agent.Process.cpu:type_name -> datadog.process_agent.CPUStat + 46, // 48: datadog.process_agent.Process.container:type_name -> datadog.process_agent.Container + 3, // 49: datadog.process_agent.Process.state:type_name -> datadog.process_agent.ProcessState + 53, // 50: datadog.process_agent.Process.ioStat:type_name -> datadog.process_agent.IOStat + 44, // 51: datadog.process_agent.Process.networks:type_name -> datadog.process_agent.ProcessNetworks + 58, // 52: datadog.process_agent.ProcessDiscovery.host:type_name -> datadog.process_agent.Host + 42, // 53: datadog.process_agent.ProcessDiscovery.command:type_name -> datadog.process_agent.Command + 43, // 54: datadog.process_agent.ProcessDiscovery.user:type_name -> datadog.process_agent.ProcessUser + 4, // 55: datadog.process_agent.ContainerAddr.protocol:type_name -> datadog.process_agent.ConnectionType + 1, // 56: datadog.process_agent.Container.state:type_name -> datadog.process_agent.ContainerState + 2, // 57: datadog.process_agent.Container.health:type_name -> datadog.process_agent.ContainerHealth + 58, // 58: datadog.process_agent.Container.host:type_name -> datadog.process_agent.Host + 45, // 59: datadog.process_agent.Container.addresses:type_name -> datadog.process_agent.ContainerAddr + 54, // 60: datadog.process_agent.ProcessStat.memory:type_name -> datadog.process_agent.MemoryStat + 55, // 61: datadog.process_agent.ProcessStat.cpu:type_name -> datadog.process_agent.CPUStat + 1, // 62: datadog.process_agent.ProcessStat.containerState:type_name -> datadog.process_agent.ContainerState + 3, // 63: datadog.process_agent.ProcessStat.processState:type_name -> datadog.process_agent.ProcessState + 53, // 64: datadog.process_agent.ProcessStat.ioStat:type_name -> datadog.process_agent.IOStat + 44, // 65: datadog.process_agent.ProcessStat.networks:type_name -> datadog.process_agent.ProcessNetworks + 2, // 66: datadog.process_agent.ProcessStat.containerHealth:type_name -> datadog.process_agent.ContainerHealth + 152, // 67: datadog.process_agent.ProcStatsWithPermByPID.statsByPID:type_name -> datadog.process_agent.ProcStatsWithPermByPID.StatsByPIDEntry + 1, // 68: datadog.process_agent.ContainerStat.state:type_name -> datadog.process_agent.ContainerState + 2, // 69: datadog.process_agent.ContainerStat.health:type_name -> datadog.process_agent.ContainerHealth + 52, // 70: datadog.process_agent.SystemInfo.os:type_name -> datadog.process_agent.OSInfo + 57, // 71: datadog.process_agent.SystemInfo.cpus:type_name -> datadog.process_agent.CPUInfo + 56, // 72: datadog.process_agent.CPUStat.cpus:type_name -> datadog.process_agent.SingleCPUStat + 153, // 73: datadog.process_agent.Cluster.kubeletVersions:type_name -> datadog.process_agent.Cluster.KubeletVersionsEntry + 154, // 74: datadog.process_agent.Cluster.apiServerVersions:type_name -> datadog.process_agent.Cluster.ApiServerVersionsEntry + 85, // 75: datadog.process_agent.Cluster.metrics:type_name -> datadog.process_agent.ResourceMetrics + 61, // 76: datadog.process_agent.Metadata.ownerReferences:type_name -> datadog.process_agent.OwnerReference + 60, // 77: datadog.process_agent.Node.metadata:type_name -> datadog.process_agent.Metadata + 69, // 78: datadog.process_agent.Node.taints:type_name -> datadog.process_agent.Taint + 66, // 79: datadog.process_agent.Node.status:type_name -> datadog.process_agent.NodeStatus + 58, // 80: datadog.process_agent.Node.host:type_name -> datadog.process_agent.Host + 85, // 81: datadog.process_agent.Node.metrics:type_name -> datadog.process_agent.ResourceMetrics + 155, // 82: datadog.process_agent.NodeStatus.capacity:type_name -> datadog.process_agent.NodeStatus.CapacityEntry + 156, // 83: datadog.process_agent.NodeStatus.allocatable:type_name -> datadog.process_agent.NodeStatus.AllocatableEntry + 157, // 84: datadog.process_agent.NodeStatus.nodeAddresses:type_name -> datadog.process_agent.NodeStatus.NodeAddressesEntry + 67, // 85: datadog.process_agent.NodeStatus.conditions:type_name -> datadog.process_agent.NodeCondition + 68, // 86: datadog.process_agent.NodeStatus.images:type_name -> datadog.process_agent.ContainerImage + 63, // 87: datadog.process_agent.ServiceSpec.ports:type_name -> datadog.process_agent.ServicePort + 77, // 88: datadog.process_agent.ServiceSpec.selectors:type_name -> datadog.process_agent.LabelSelectorRequirement + 64, // 89: datadog.process_agent.ServiceSpec.sessionAffinityConfig:type_name -> datadog.process_agent.ServiceSessionAffinityConfig + 60, // 90: datadog.process_agent.Service.metadata:type_name -> datadog.process_agent.Metadata + 70, // 91: datadog.process_agent.Service.spec:type_name -> datadog.process_agent.ServiceSpec + 71, // 92: datadog.process_agent.Service.status:type_name -> datadog.process_agent.ServiceStatus + 85, // 93: datadog.process_agent.Service.metrics:type_name -> datadog.process_agent.ResourceMetrics + 60, // 94: datadog.process_agent.Deployment.metadata:type_name -> datadog.process_agent.Metadata + 77, // 95: datadog.process_agent.Deployment.selectors:type_name -> datadog.process_agent.LabelSelectorRequirement + 84, // 96: datadog.process_agent.Deployment.resourceRequirements:type_name -> datadog.process_agent.ResourceRequirements + 85, // 97: datadog.process_agent.Deployment.metrics:type_name -> datadog.process_agent.ResourceMetrics + 73, // 98: datadog.process_agent.Deployment.conditions:type_name -> datadog.process_agent.DeploymentCondition + 60, // 99: datadog.process_agent.ReplicaSet.metadata:type_name -> datadog.process_agent.Metadata + 77, // 100: datadog.process_agent.ReplicaSet.selectors:type_name -> datadog.process_agent.LabelSelectorRequirement + 84, // 101: datadog.process_agent.ReplicaSet.resourceRequirements:type_name -> datadog.process_agent.ResourceRequirements + 85, // 102: datadog.process_agent.ReplicaSet.metrics:type_name -> datadog.process_agent.ResourceMetrics + 75, // 103: datadog.process_agent.ReplicaSet.conditions:type_name -> datadog.process_agent.ReplicaSetCondition + 60, // 104: datadog.process_agent.Pod.metadata:type_name -> datadog.process_agent.Metadata + 80, // 105: datadog.process_agent.Pod.containerStatuses:type_name -> datadog.process_agent.ContainerStatus + 80, // 106: datadog.process_agent.Pod.initContainerStatuses:type_name -> datadog.process_agent.ContainerStatus + 58, // 107: datadog.process_agent.Pod.host:type_name -> datadog.process_agent.Host + 84, // 108: datadog.process_agent.Pod.resourceRequirements:type_name -> datadog.process_agent.ResourceRequirements + 85, // 109: datadog.process_agent.Pod.metrics:type_name -> datadog.process_agent.ResourceMetrics + 79, // 110: datadog.process_agent.Pod.conditions:type_name -> datadog.process_agent.PodCondition + 60, // 111: datadog.process_agent.Namespace.metadata:type_name -> datadog.process_agent.Metadata + 82, // 112: datadog.process_agent.Namespace.conditions:type_name -> datadog.process_agent.NamespaceCondition + 158, // 113: datadog.process_agent.ResourceRequirements.limits:type_name -> datadog.process_agent.ResourceRequirements.LimitsEntry + 159, // 114: datadog.process_agent.ResourceRequirements.requests:type_name -> datadog.process_agent.ResourceRequirements.RequestsEntry + 6, // 115: datadog.process_agent.ResourceRequirements.type:type_name -> datadog.process_agent.ResourceRequirementsType + 160, // 116: datadog.process_agent.ResourceMetrics.metricValues:type_name -> datadog.process_agent.ResourceMetrics.MetricValuesEntry + 77, // 117: datadog.process_agent.JobSpec.selectors:type_name -> datadog.process_agent.LabelSelectorRequirement + 84, // 118: datadog.process_agent.JobSpec.resourceRequirements:type_name -> datadog.process_agent.ResourceRequirements + 60, // 119: datadog.process_agent.Job.metadata:type_name -> datadog.process_agent.Metadata + 86, // 120: datadog.process_agent.Job.spec:type_name -> datadog.process_agent.JobSpec + 87, // 121: datadog.process_agent.Job.status:type_name -> datadog.process_agent.JobStatus + 88, // 122: datadog.process_agent.Job.conditions:type_name -> datadog.process_agent.JobCondition + 84, // 123: datadog.process_agent.CronJobSpec.resourceRequirements:type_name -> datadog.process_agent.ResourceRequirements + 62, // 124: datadog.process_agent.CronJobStatus.active:type_name -> datadog.process_agent.ObjectReference + 60, // 125: datadog.process_agent.CronJob.metadata:type_name -> datadog.process_agent.Metadata + 90, // 126: datadog.process_agent.CronJob.spec:type_name -> datadog.process_agent.CronJobSpec + 91, // 127: datadog.process_agent.CronJob.status:type_name -> datadog.process_agent.CronJobStatus + 77, // 128: datadog.process_agent.DaemonSetSpec.selectors:type_name -> datadog.process_agent.LabelSelectorRequirement + 84, // 129: datadog.process_agent.DaemonSetSpec.resourceRequirements:type_name -> datadog.process_agent.ResourceRequirements + 60, // 130: datadog.process_agent.DaemonSet.metadata:type_name -> datadog.process_agent.Metadata + 93, // 131: datadog.process_agent.DaemonSet.spec:type_name -> datadog.process_agent.DaemonSetSpec + 94, // 132: datadog.process_agent.DaemonSet.status:type_name -> datadog.process_agent.DaemonSetStatus + 85, // 133: datadog.process_agent.DaemonSet.metrics:type_name -> datadog.process_agent.ResourceMetrics + 95, // 134: datadog.process_agent.DaemonSet.conditions:type_name -> datadog.process_agent.DaemonSetCondition + 77, // 135: datadog.process_agent.StatefulSetSpec.selectors:type_name -> datadog.process_agent.LabelSelectorRequirement + 84, // 136: datadog.process_agent.StatefulSetSpec.resourceRequirements:type_name -> datadog.process_agent.ResourceRequirements + 60, // 137: datadog.process_agent.StatefulSet.metadata:type_name -> datadog.process_agent.Metadata + 97, // 138: datadog.process_agent.StatefulSet.spec:type_name -> datadog.process_agent.StatefulSetSpec + 98, // 139: datadog.process_agent.StatefulSet.status:type_name -> datadog.process_agent.StatefulSetStatus + 85, // 140: datadog.process_agent.StatefulSet.metrics:type_name -> datadog.process_agent.ResourceMetrics + 99, // 141: datadog.process_agent.StatefulSet.conditions:type_name -> datadog.process_agent.StatefulSetCondition + 60, // 142: datadog.process_agent.PersistentVolume.metadata:type_name -> datadog.process_agent.Metadata + 102, // 143: datadog.process_agent.PersistentVolume.spec:type_name -> datadog.process_agent.PersistentVolumeSpec + 110, // 144: datadog.process_agent.PersistentVolume.status:type_name -> datadog.process_agent.PersistentVolumeStatus + 161, // 145: datadog.process_agent.PersistentVolumeSpec.capacity:type_name -> datadog.process_agent.PersistentVolumeSpec.CapacityEntry + 62, // 146: datadog.process_agent.PersistentVolumeSpec.claimRef:type_name -> datadog.process_agent.ObjectReference + 111, // 147: datadog.process_agent.PersistentVolumeSpec.nodeAffinity:type_name -> datadog.process_agent.NodeSelectorTerm + 103, // 148: datadog.process_agent.PersistentVolumeSpec.persistentVolumeSource:type_name -> datadog.process_agent.PersistentVolumeSource + 104, // 149: datadog.process_agent.PersistentVolumeSource.gcePersistentDisk:type_name -> datadog.process_agent.GCEPersistentDiskVolumeSource + 105, // 150: datadog.process_agent.PersistentVolumeSource.awsElasticBlockStore:type_name -> datadog.process_agent.AWSElasticBlockStoreVolumeSource + 106, // 151: datadog.process_agent.PersistentVolumeSource.azureFile:type_name -> datadog.process_agent.AzureFilePersistentVolumeSource + 107, // 152: datadog.process_agent.PersistentVolumeSource.azureDisk:type_name -> datadog.process_agent.AzureDiskVolumeSource + 108, // 153: datadog.process_agent.PersistentVolumeSource.csi:type_name -> datadog.process_agent.CSIVolumeSource + 162, // 154: datadog.process_agent.CSIVolumeSource.volumeAttributes:type_name -> datadog.process_agent.CSIVolumeSource.VolumeAttributesEntry + 109, // 155: datadog.process_agent.CSIVolumeSource.controllerPublishSecretRef:type_name -> datadog.process_agent.SecretReference + 109, // 156: datadog.process_agent.CSIVolumeSource.nodeStageSecretRef:type_name -> datadog.process_agent.SecretReference + 109, // 157: datadog.process_agent.CSIVolumeSource.nodePublishSecretRef:type_name -> datadog.process_agent.SecretReference + 109, // 158: datadog.process_agent.CSIVolumeSource.controllerExpandSecretRef:type_name -> datadog.process_agent.SecretReference + 109, // 159: datadog.process_agent.CSIVolumeSource.nodeExpandSecretRef:type_name -> datadog.process_agent.SecretReference + 77, // 160: datadog.process_agent.NodeSelectorTerm.matchExpressions:type_name -> datadog.process_agent.LabelSelectorRequirement + 77, // 161: datadog.process_agent.NodeSelectorTerm.matchFields:type_name -> datadog.process_agent.LabelSelectorRequirement + 60, // 162: datadog.process_agent.PersistentVolumeClaim.metadata:type_name -> datadog.process_agent.Metadata + 114, // 163: datadog.process_agent.PersistentVolumeClaim.spec:type_name -> datadog.process_agent.PersistentVolumeClaimSpec + 113, // 164: datadog.process_agent.PersistentVolumeClaim.status:type_name -> datadog.process_agent.PersistentVolumeClaimStatus + 163, // 165: datadog.process_agent.PersistentVolumeClaimStatus.capacity:type_name -> datadog.process_agent.PersistentVolumeClaimStatus.CapacityEntry + 116, // 166: datadog.process_agent.PersistentVolumeClaimStatus.conditions:type_name -> datadog.process_agent.PersistentVolumeClaimCondition + 84, // 167: datadog.process_agent.PersistentVolumeClaimSpec.resources:type_name -> datadog.process_agent.ResourceRequirements + 77, // 168: datadog.process_agent.PersistentVolumeClaimSpec.selector:type_name -> datadog.process_agent.LabelSelectorRequirement + 115, // 169: datadog.process_agent.PersistentVolumeClaimSpec.dataSource:type_name -> datadog.process_agent.TypedLocalObjectReference + 60, // 170: datadog.process_agent.Role.metadata:type_name -> datadog.process_agent.Metadata + 117, // 171: datadog.process_agent.Role.rules:type_name -> datadog.process_agent.PolicyRule + 60, // 172: datadog.process_agent.RoleBinding.metadata:type_name -> datadog.process_agent.Metadata + 118, // 173: datadog.process_agent.RoleBinding.subjects:type_name -> datadog.process_agent.Subject + 115, // 174: datadog.process_agent.RoleBinding.roleRef:type_name -> datadog.process_agent.TypedLocalObjectReference + 60, // 175: datadog.process_agent.ClusterRole.metadata:type_name -> datadog.process_agent.Metadata + 117, // 176: datadog.process_agent.ClusterRole.rules:type_name -> datadog.process_agent.PolicyRule + 77, // 177: datadog.process_agent.ClusterRole.aggregationRules:type_name -> datadog.process_agent.LabelSelectorRequirement + 85, // 178: datadog.process_agent.ClusterRole.metrics:type_name -> datadog.process_agent.ResourceMetrics + 60, // 179: datadog.process_agent.ClusterRoleBinding.metadata:type_name -> datadog.process_agent.Metadata + 118, // 180: datadog.process_agent.ClusterRoleBinding.subjects:type_name -> datadog.process_agent.Subject + 115, // 181: datadog.process_agent.ClusterRoleBinding.roleRef:type_name -> datadog.process_agent.TypedLocalObjectReference + 60, // 182: datadog.process_agent.ServiceAccount.metadata:type_name -> datadog.process_agent.Metadata + 62, // 183: datadog.process_agent.ServiceAccount.secrets:type_name -> datadog.process_agent.ObjectReference + 115, // 184: datadog.process_agent.ServiceAccount.imagePullSecrets:type_name -> datadog.process_agent.TypedLocalObjectReference + 124, // 185: datadog.process_agent.IngressBackend.service:type_name -> datadog.process_agent.IngressServiceBackend + 115, // 186: datadog.process_agent.IngressBackend.resource:type_name -> datadog.process_agent.TypedLocalObjectReference + 125, // 187: datadog.process_agent.HTTPIngressPath.backend:type_name -> datadog.process_agent.IngressBackend + 127, // 188: datadog.process_agent.IngressRule.httpPaths:type_name -> datadog.process_agent.HTTPIngressPath + 125, // 189: datadog.process_agent.IngressSpec.defaultBackend:type_name -> datadog.process_agent.IngressBackend + 126, // 190: datadog.process_agent.IngressSpec.tls:type_name -> datadog.process_agent.IngressTLS + 128, // 191: datadog.process_agent.IngressSpec.rules:type_name -> datadog.process_agent.IngressRule + 130, // 192: datadog.process_agent.LoadBalancerIngress.ports:type_name -> datadog.process_agent.PortStatus + 131, // 193: datadog.process_agent.IngressStatus.ingress:type_name -> datadog.process_agent.LoadBalancerIngress + 60, // 194: datadog.process_agent.Ingress.metadata:type_name -> datadog.process_agent.Metadata + 129, // 195: datadog.process_agent.Ingress.spec:type_name -> datadog.process_agent.IngressSpec + 132, // 196: datadog.process_agent.Ingress.status:type_name -> datadog.process_agent.IngressStatus + 134, // 197: datadog.process_agent.KafkaAggregation.header:type_name -> datadog.process_agent.KafkaRequestHeader + 165, // 198: datadog.process_agent.DataStreamsAggregations.kafkaProduceAggregations:type_name -> datadog.process_agent.DataStreamsAggregations.KafkaProduceAggregations + 166, // 199: datadog.process_agent.DataStreamsAggregations.kafkaFetchAggregations:type_name -> datadog.process_agent.DataStreamsAggregations.KafkaFetchAggregations + 135, // 200: datadog.process_agent.DataStreamsAggregations.kafkaAggregations:type_name -> datadog.process_agent.KafkaAggregation + 139, // 201: datadog.process_agent.HTTPAggregations.endpointAggregations:type_name -> datadog.process_agent.HTTPStats + 139, // 202: datadog.process_agent.HTTP2Aggregations.endpointAggregations:type_name -> datadog.process_agent.HTTPStats + 8, // 203: datadog.process_agent.HTTPStats.method:type_name -> datadog.process_agent.HTTPMethod + 168, // 204: datadog.process_agent.HTTPStats.statsByResponseStatus:type_name -> datadog.process_agent.HTTPStats.Data + 167, // 205: datadog.process_agent.HTTPStats.statsByStatusCode:type_name -> datadog.process_agent.HTTPStats.StatsByStatusCodeEntry + 169, // 206: datadog.process_agent.ResourceList.metricValues:type_name -> datadog.process_agent.ResourceList.MetricValuesEntry + 60, // 207: datadog.process_agent.VerticalPodAutoscaler.metadata:type_name -> datadog.process_agent.Metadata + 144, // 208: datadog.process_agent.VerticalPodAutoscaler.spec:type_name -> datadog.process_agent.VerticalPodAutoscalerSpec + 147, // 209: datadog.process_agent.VerticalPodAutoscaler.status:type_name -> datadog.process_agent.VerticalPodAutoscalerStatus + 143, // 210: datadog.process_agent.VerticalPodAutoscaler.conditions:type_name -> datadog.process_agent.VerticalPodAutoscalerCondition + 145, // 211: datadog.process_agent.VerticalPodAutoscalerSpec.target:type_name -> datadog.process_agent.VerticalPodAutoscalerTarget + 146, // 212: datadog.process_agent.VerticalPodAutoscalerSpec.resourcePolicies:type_name -> datadog.process_agent.ContainerResourcePolicy + 141, // 213: datadog.process_agent.ContainerResourcePolicy.minAllowed:type_name -> datadog.process_agent.ResourceList + 141, // 214: datadog.process_agent.ContainerResourcePolicy.maxAllowed:type_name -> datadog.process_agent.ResourceList + 148, // 215: datadog.process_agent.VerticalPodAutoscalerStatus.recommendations:type_name -> datadog.process_agent.ContainerRecommendation + 149, // 216: datadog.process_agent.VerticalPodAutoscalerStatus.conditions:type_name -> datadog.process_agent.VPACondition + 141, // 217: datadog.process_agent.ContainerRecommendation.target:type_name -> datadog.process_agent.ResourceList + 141, // 218: datadog.process_agent.ContainerRecommendation.lowerBound:type_name -> datadog.process_agent.ResourceList + 141, // 219: datadog.process_agent.ContainerRecommendation.upperBound:type_name -> datadog.process_agent.ResourceList + 141, // 220: datadog.process_agent.ContainerRecommendation.uncappedTarget:type_name -> datadog.process_agent.ResourceList + 58, // 221: datadog.process_agent.CollectorNode.HostAliasMappingEntry.value:type_name -> datadog.process_agent.Host + 48, // 222: datadog.process_agent.ProcStatsWithPermByPID.StatsByPIDEntry.value:type_name -> datadog.process_agent.ProcStatsWithPerm + 164, // 223: datadog.process_agent.DataStreamsAggregations.KafkaProduceAggregations.stats:type_name -> datadog.process_agent.DataStreamsAggregations.TopicStats + 164, // 224: datadog.process_agent.DataStreamsAggregations.KafkaFetchAggregations.stats:type_name -> datadog.process_agent.DataStreamsAggregations.TopicStats + 168, // 225: datadog.process_agent.HTTPStats.StatsByStatusCodeEntry.value:type_name -> datadog.process_agent.HTTPStats.Data + 226, // [226:226] is the sub-list for method output_type + 226, // [226:226] is the sub-list for method input_type + 226, // [226:226] is the sub-list for extension type_name + 226, // [226:226] is the sub-list for extension extendee + 0, // [0:226] is the sub-list for field type_name +} + +func init() { file_proto_process_agent_proto_init() } +func file_proto_process_agent_proto_init() { + if File_proto_process_agent_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_proto_process_agent_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ResCollector); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CollectorProc); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CollectorProcDiscovery); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CollectorRealTime); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CollectorContainer); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CollectorContainerRealTime); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CollectorReqStatus); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CollectorPod); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CollectorReplicaSet); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CollectorDeployment); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CollectorService); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CollectorNode); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CollectorCluster); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CollectorManifest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CollectorManifestCRD); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CollectorManifestCR); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CollectorNamespace); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CollectorJob); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CollectorCronJob); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CollectorDaemonSet); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CollectorStatefulSet); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CollectorPersistentVolume); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CollectorPersistentVolumeClaim); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CollectorRole); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CollectorRoleBinding); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CollectorClusterRole); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CollectorClusterRoleBinding); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CollectorServiceAccount); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CollectorIngress); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CollectorVerticalPodAutoscaler); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CollectorStatus); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Process); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ProcessDiscovery); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Command); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ProcessUser); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ProcessNetworks); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ContainerAddr); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Container); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ProcessStat); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ProcStatsWithPerm); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ProcStatsWithPermByPID); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ContainerStat); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SystemInfo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OSInfo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*IOStat); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[45].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MemoryStat); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[46].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CPUStat); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[47].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SingleCPUStat); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[48].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CPUInfo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[49].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Host); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[50].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Cluster); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[51].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Metadata); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[52].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OwnerReference); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[53].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ObjectReference); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[54].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ServicePort); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[55].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ServiceSessionAffinityConfig); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[56].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Node); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[57].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NodeStatus); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[58].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NodeCondition); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[59].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ContainerImage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[60].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Taint); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[61].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ServiceSpec); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[62].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ServiceStatus); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[63].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Service); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[64].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DeploymentCondition); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[65].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Deployment); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[66].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ReplicaSetCondition); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[67].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ReplicaSet); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[68].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LabelSelectorRequirement); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[69].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Pod); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[70].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PodCondition); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[71].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ContainerStatus); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[72].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Manifest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[73].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NamespaceCondition); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[74].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Namespace); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[75].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ResourceRequirements); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[76].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ResourceMetrics); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[77].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*JobSpec); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[78].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*JobStatus); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[79].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*JobCondition); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[80].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Job); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[81].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CronJobSpec); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[82].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CronJobStatus); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[83].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CronJob); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[84].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DaemonSetSpec); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[85].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DaemonSetStatus); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[86].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DaemonSetCondition); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[87].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DaemonSet); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[88].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StatefulSetSpec); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[89].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StatefulSetStatus); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[90].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StatefulSetCondition); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[91].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StatefulSet); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[92].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PersistentVolume); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[93].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PersistentVolumeSpec); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[94].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PersistentVolumeSource); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[95].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GCEPersistentDiskVolumeSource); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[96].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AWSElasticBlockStoreVolumeSource); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[97].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AzureFilePersistentVolumeSource); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[98].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AzureDiskVolumeSource); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[99].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CSIVolumeSource); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[100].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SecretReference); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[101].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PersistentVolumeStatus); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[102].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NodeSelectorTerm); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[103].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PersistentVolumeClaim); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[104].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PersistentVolumeClaimStatus); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[105].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PersistentVolumeClaimSpec); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[106].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TypedLocalObjectReference); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[107].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PersistentVolumeClaimCondition); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[108].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PolicyRule); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[109].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Subject); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[110].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Role); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[111].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RoleBinding); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[112].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ClusterRole); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[113].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ClusterRoleBinding); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[114].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ServiceAccount); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[115].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*IngressServiceBackend); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[116].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*IngressBackend); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[117].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*IngressTLS); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[118].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*HTTPIngressPath); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[119].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*IngressRule); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[120].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*IngressSpec); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[121].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PortStatus); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[122].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LoadBalancerIngress); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[123].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*IngressStatus); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[124].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Ingress); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[125].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*KafkaRequestHeader); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[126].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*KafkaAggregation); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[127].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DataStreamsAggregations); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[128].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*HTTPAggregations); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[129].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*HTTP2Aggregations); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[130].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*HTTPStats); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[131].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DNSDatabaseEntry); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[132].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ResourceList); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[133].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*VerticalPodAutoscaler); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[134].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*VerticalPodAutoscalerCondition); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[135].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*VerticalPodAutoscalerSpec); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[136].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*VerticalPodAutoscalerTarget); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[137].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ContainerResourcePolicy); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[138].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*VerticalPodAutoscalerStatus); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[139].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ContainerRecommendation); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[140].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*VPACondition); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[141].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ResCollector_Header); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[155].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DataStreamsAggregations_TopicStats); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[156].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DataStreamsAggregations_KafkaProduceAggregations); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[157].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DataStreamsAggregations_KafkaFetchAggregations); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_agent_proto_msgTypes[159].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*HTTPStats_Data); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_proto_process_agent_proto_msgTypes[1].OneofWrappers = []interface{}{ + (*CollectorProc_HintMask)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_proto_process_agent_proto_rawDesc, + NumEnums: 9, + NumMessages: 161, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_proto_process_agent_proto_goTypes, + DependencyIndexes: file_proto_process_agent_proto_depIdxs, + EnumInfos: file_proto_process_agent_proto_enumTypes, + MessageInfos: file_proto_process_agent_proto_msgTypes, + }.Build() + File_proto_process_agent_proto = out.File + file_proto_process_agent_proto_rawDesc = nil + file_proto_process_agent_proto_goTypes = nil + file_proto_process_agent_proto_depIdxs = nil } diff --git a/process/agent_vtproto.pb.go b/process/agent_vtproto.pb.go new file mode 100644 index 00000000..e000895f --- /dev/null +++ b/process/agent_vtproto.pb.go @@ -0,0 +1,55340 @@ +// Code generated by protoc-gen-go-vtproto. DO NOT EDIT. +// protoc-gen-go-vtproto version: v0.4.0 +// source: proto/process/agent.proto + +package process + +import ( + binary "encoding/binary" + fmt "fmt" + proto "google.golang.org/protobuf/proto" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + io "io" + math "math" + bits "math/bits" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +func (this *ResCollector_Header) EqualVT(that *ResCollector_Header) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.Type != that.Type { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *ResCollector_Header) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*ResCollector_Header) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *ResCollector) EqualVT(that *ResCollector) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if !this.Header.EqualVT(that.Header) { + return false + } + if this.Message != that.Message { + return false + } + if !this.Status.EqualVT(that.Status) { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *ResCollector) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*ResCollector) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *CollectorProc) EqualVT(that *CollectorProc) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.Hints == nil && that.Hints != nil { + return false + } else if this.Hints != nil { + if that.Hints == nil { + return false + } + if !this.Hints.(interface { + EqualVT(isCollectorProc_Hints) bool + }).EqualVT(that.Hints) { + return false + } + } + if this.HostName != that.HostName { + return false + } + if len(this.Processes) != len(that.Processes) { + return false + } + for i, vx := range this.Processes { + vy := that.Processes[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &Process{} + } + if q == nil { + q = &Process{} + } + if !p.EqualVT(q) { + return false + } + } + } + if !this.Host.EqualVT(that.Host) { + return false + } + if !this.Info.EqualVT(that.Info) { + return false + } + if this.GroupId != that.GroupId { + return false + } + if this.GroupSize != that.GroupSize { + return false + } + if len(this.Containers) != len(that.Containers) { + return false + } + for i, vx := range this.Containers { + vy := that.Containers[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &Container{} + } + if q == nil { + q = &Container{} + } + if !p.EqualVT(q) { + return false + } + } + } + if this.NetworkId != that.NetworkId { + return false + } + if this.ContainerHostType != that.ContainerHostType { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *CollectorProc) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*CollectorProc) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *CollectorProc_HintMask) EqualVT(thatIface isCollectorProc_Hints) bool { + that, ok := thatIface.(*CollectorProc_HintMask) + if !ok { + return false + } + if this == that { + return true + } + if this == nil && that != nil || this != nil && that == nil { + return false + } + if this.HintMask != that.HintMask { + return false + } + return true +} + +func (this *CollectorProcDiscovery) EqualVT(that *CollectorProcDiscovery) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.HostName != that.HostName { + return false + } + if this.GroupId != that.GroupId { + return false + } + if this.GroupSize != that.GroupSize { + return false + } + if len(this.ProcessDiscoveries) != len(that.ProcessDiscoveries) { + return false + } + for i, vx := range this.ProcessDiscoveries { + vy := that.ProcessDiscoveries[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &ProcessDiscovery{} + } + if q == nil { + q = &ProcessDiscovery{} + } + if !p.EqualVT(q) { + return false + } + } + } + if !this.Host.EqualVT(that.Host) { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *CollectorProcDiscovery) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*CollectorProcDiscovery) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *CollectorRealTime) EqualVT(that *CollectorRealTime) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.HostName != that.HostName { + return false + } + if len(this.Stats) != len(that.Stats) { + return false + } + for i, vx := range this.Stats { + vy := that.Stats[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &ProcessStat{} + } + if q == nil { + q = &ProcessStat{} + } + if !p.EqualVT(q) { + return false + } + } + } + if this.HostId != that.HostId { + return false + } + if this.OrgId != that.OrgId { + return false + } + if this.GroupId != that.GroupId { + return false + } + if this.GroupSize != that.GroupSize { + return false + } + if this.NumCpus != that.NumCpus { + return false + } + if this.TotalMemory != that.TotalMemory { + return false + } + if len(this.ContainerStats) != len(that.ContainerStats) { + return false + } + for i, vx := range this.ContainerStats { + vy := that.ContainerStats[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &ContainerStat{} + } + if q == nil { + q = &ContainerStat{} + } + if !p.EqualVT(q) { + return false + } + } + } + if this.ContainerHostType != that.ContainerHostType { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *CollectorRealTime) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*CollectorRealTime) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *CollectorContainer) EqualVT(that *CollectorContainer) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.HostName != that.HostName { + return false + } + if !this.Info.EqualVT(that.Info) { + return false + } + if len(this.Containers) != len(that.Containers) { + return false + } + for i, vx := range this.Containers { + vy := that.Containers[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &Container{} + } + if q == nil { + q = &Container{} + } + if !p.EqualVT(q) { + return false + } + } + } + if this.GroupId != that.GroupId { + return false + } + if this.GroupSize != that.GroupSize { + return false + } + if !this.Host.EqualVT(that.Host) { + return false + } + if this.ContainerHostType != that.ContainerHostType { + return false + } + if this.NetworkId != that.NetworkId { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *CollectorContainer) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*CollectorContainer) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *CollectorContainerRealTime) EqualVT(that *CollectorContainerRealTime) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.HostName != that.HostName { + return false + } + if len(this.Stats) != len(that.Stats) { + return false + } + for i, vx := range this.Stats { + vy := that.Stats[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &ContainerStat{} + } + if q == nil { + q = &ContainerStat{} + } + if !p.EqualVT(q) { + return false + } + } + } + if this.NumCpus != that.NumCpus { + return false + } + if this.TotalMemory != that.TotalMemory { + return false + } + if this.HostId != that.HostId { + return false + } + if this.GroupId != that.GroupId { + return false + } + if this.GroupSize != that.GroupSize { + return false + } + if this.ContainerHostType != that.ContainerHostType { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *CollectorContainerRealTime) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*CollectorContainerRealTime) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *CollectorReqStatus) EqualVT(that *CollectorReqStatus) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.HostName != that.HostName { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *CollectorReqStatus) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*CollectorReqStatus) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *CollectorPod) EqualVT(that *CollectorPod) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.HostName != that.HostName { + return false + } + if this.ClusterName != that.ClusterName { + return false + } + if this.ClusterId != that.ClusterId { + return false + } + if this.GroupId != that.GroupId { + return false + } + if this.GroupSize != that.GroupSize { + return false + } + if len(this.Pods) != len(that.Pods) { + return false + } + for i, vx := range this.Pods { + vy := that.Pods[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &Pod{} + } + if q == nil { + q = &Pod{} + } + if !p.EqualVT(q) { + return false + } + } + } + if !this.Host.EqualVT(that.Host) { + return false + } + if len(this.Tags) != len(that.Tags) { + return false + } + for i, vx := range this.Tags { + vy := that.Tags[i] + if vx != vy { + return false + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *CollectorPod) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*CollectorPod) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *CollectorReplicaSet) EqualVT(that *CollectorReplicaSet) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.ClusterName != that.ClusterName { + return false + } + if this.ClusterId != that.ClusterId { + return false + } + if this.GroupId != that.GroupId { + return false + } + if this.GroupSize != that.GroupSize { + return false + } + if len(this.ReplicaSets) != len(that.ReplicaSets) { + return false + } + for i, vx := range this.ReplicaSets { + vy := that.ReplicaSets[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &ReplicaSet{} + } + if q == nil { + q = &ReplicaSet{} + } + if !p.EqualVT(q) { + return false + } + } + } + if len(this.Tags) != len(that.Tags) { + return false + } + for i, vx := range this.Tags { + vy := that.Tags[i] + if vx != vy { + return false + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *CollectorReplicaSet) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*CollectorReplicaSet) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *CollectorDeployment) EqualVT(that *CollectorDeployment) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.ClusterName != that.ClusterName { + return false + } + if this.ClusterId != that.ClusterId { + return false + } + if this.GroupId != that.GroupId { + return false + } + if this.GroupSize != that.GroupSize { + return false + } + if len(this.Deployments) != len(that.Deployments) { + return false + } + for i, vx := range this.Deployments { + vy := that.Deployments[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &Deployment{} + } + if q == nil { + q = &Deployment{} + } + if !p.EqualVT(q) { + return false + } + } + } + if len(this.Tags) != len(that.Tags) { + return false + } + for i, vx := range this.Tags { + vy := that.Tags[i] + if vx != vy { + return false + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *CollectorDeployment) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*CollectorDeployment) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *CollectorService) EqualVT(that *CollectorService) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.ClusterName != that.ClusterName { + return false + } + if this.ClusterId != that.ClusterId { + return false + } + if this.GroupId != that.GroupId { + return false + } + if this.GroupSize != that.GroupSize { + return false + } + if len(this.Services) != len(that.Services) { + return false + } + for i, vx := range this.Services { + vy := that.Services[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &Service{} + } + if q == nil { + q = &Service{} + } + if !p.EqualVT(q) { + return false + } + } + } + if len(this.Tags) != len(that.Tags) { + return false + } + for i, vx := range this.Tags { + vy := that.Tags[i] + if vx != vy { + return false + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *CollectorService) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*CollectorService) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *CollectorNode) EqualVT(that *CollectorNode) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.ClusterName != that.ClusterName { + return false + } + if this.ClusterId != that.ClusterId { + return false + } + if this.GroupId != that.GroupId { + return false + } + if this.GroupSize != that.GroupSize { + return false + } + if len(this.Nodes) != len(that.Nodes) { + return false + } + for i, vx := range this.Nodes { + vy := that.Nodes[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &Node{} + } + if q == nil { + q = &Node{} + } + if !p.EqualVT(q) { + return false + } + } + } + if len(this.Tags) != len(that.Tags) { + return false + } + for i, vx := range this.Tags { + vy := that.Tags[i] + if vx != vy { + return false + } + } + if len(this.HostAliasMapping) != len(that.HostAliasMapping) { + return false + } + for i, vx := range this.HostAliasMapping { + vy, ok := that.HostAliasMapping[i] + if !ok { + return false + } + if p, q := vx, vy; p != q { + if p == nil { + p = &Host{} + } + if q == nil { + q = &Host{} + } + if !p.EqualVT(q) { + return false + } + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *CollectorNode) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*CollectorNode) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *CollectorCluster) EqualVT(that *CollectorCluster) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.ClusterName != that.ClusterName { + return false + } + if this.ClusterId != that.ClusterId { + return false + } + if this.GroupId != that.GroupId { + return false + } + if this.GroupSize != that.GroupSize { + return false + } + if !this.Cluster.EqualVT(that.Cluster) { + return false + } + if len(this.Tags) != len(that.Tags) { + return false + } + for i, vx := range this.Tags { + vy := that.Tags[i] + if vx != vy { + return false + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *CollectorCluster) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*CollectorCluster) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *CollectorManifest) EqualVT(that *CollectorManifest) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.ClusterName != that.ClusterName { + return false + } + if this.ClusterId != that.ClusterId { + return false + } + if this.GroupId != that.GroupId { + return false + } + if this.GroupSize != that.GroupSize { + return false + } + if len(this.Manifests) != len(that.Manifests) { + return false + } + for i, vx := range this.Manifests { + vy := that.Manifests[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &Manifest{} + } + if q == nil { + q = &Manifest{} + } + if !p.EqualVT(q) { + return false + } + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *CollectorManifest) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*CollectorManifest) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *CollectorManifestCRD) EqualVT(that *CollectorManifestCRD) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if !this.Manifest.EqualVT(that.Manifest) { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *CollectorManifestCRD) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*CollectorManifestCRD) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *CollectorManifestCR) EqualVT(that *CollectorManifestCR) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if !this.Manifest.EqualVT(that.Manifest) { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *CollectorManifestCR) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*CollectorManifestCR) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *CollectorNamespace) EqualVT(that *CollectorNamespace) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.ClusterName != that.ClusterName { + return false + } + if this.ClusterId != that.ClusterId { + return false + } + if this.GroupId != that.GroupId { + return false + } + if this.GroupSize != that.GroupSize { + return false + } + if len(this.Namespaces) != len(that.Namespaces) { + return false + } + for i, vx := range this.Namespaces { + vy := that.Namespaces[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &Namespace{} + } + if q == nil { + q = &Namespace{} + } + if !p.EqualVT(q) { + return false + } + } + } + if len(this.Tags) != len(that.Tags) { + return false + } + for i, vx := range this.Tags { + vy := that.Tags[i] + if vx != vy { + return false + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *CollectorNamespace) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*CollectorNamespace) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *CollectorJob) EqualVT(that *CollectorJob) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.ClusterName != that.ClusterName { + return false + } + if this.ClusterId != that.ClusterId { + return false + } + if this.GroupId != that.GroupId { + return false + } + if this.GroupSize != that.GroupSize { + return false + } + if len(this.Jobs) != len(that.Jobs) { + return false + } + for i, vx := range this.Jobs { + vy := that.Jobs[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &Job{} + } + if q == nil { + q = &Job{} + } + if !p.EqualVT(q) { + return false + } + } + } + if len(this.Tags) != len(that.Tags) { + return false + } + for i, vx := range this.Tags { + vy := that.Tags[i] + if vx != vy { + return false + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *CollectorJob) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*CollectorJob) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *CollectorCronJob) EqualVT(that *CollectorCronJob) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.ClusterName != that.ClusterName { + return false + } + if this.ClusterId != that.ClusterId { + return false + } + if this.GroupId != that.GroupId { + return false + } + if this.GroupSize != that.GroupSize { + return false + } + if len(this.CronJobs) != len(that.CronJobs) { + return false + } + for i, vx := range this.CronJobs { + vy := that.CronJobs[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &CronJob{} + } + if q == nil { + q = &CronJob{} + } + if !p.EqualVT(q) { + return false + } + } + } + if len(this.Tags) != len(that.Tags) { + return false + } + for i, vx := range this.Tags { + vy := that.Tags[i] + if vx != vy { + return false + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *CollectorCronJob) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*CollectorCronJob) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *CollectorDaemonSet) EqualVT(that *CollectorDaemonSet) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.ClusterName != that.ClusterName { + return false + } + if this.ClusterId != that.ClusterId { + return false + } + if this.GroupId != that.GroupId { + return false + } + if this.GroupSize != that.GroupSize { + return false + } + if len(this.DaemonSets) != len(that.DaemonSets) { + return false + } + for i, vx := range this.DaemonSets { + vy := that.DaemonSets[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &DaemonSet{} + } + if q == nil { + q = &DaemonSet{} + } + if !p.EqualVT(q) { + return false + } + } + } + if len(this.Tags) != len(that.Tags) { + return false + } + for i, vx := range this.Tags { + vy := that.Tags[i] + if vx != vy { + return false + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *CollectorDaemonSet) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*CollectorDaemonSet) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *CollectorStatefulSet) EqualVT(that *CollectorStatefulSet) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.ClusterName != that.ClusterName { + return false + } + if this.ClusterId != that.ClusterId { + return false + } + if this.GroupId != that.GroupId { + return false + } + if this.GroupSize != that.GroupSize { + return false + } + if len(this.StatefulSets) != len(that.StatefulSets) { + return false + } + for i, vx := range this.StatefulSets { + vy := that.StatefulSets[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &StatefulSet{} + } + if q == nil { + q = &StatefulSet{} + } + if !p.EqualVT(q) { + return false + } + } + } + if len(this.Tags) != len(that.Tags) { + return false + } + for i, vx := range this.Tags { + vy := that.Tags[i] + if vx != vy { + return false + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *CollectorStatefulSet) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*CollectorStatefulSet) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *CollectorPersistentVolume) EqualVT(that *CollectorPersistentVolume) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.ClusterName != that.ClusterName { + return false + } + if this.ClusterId != that.ClusterId { + return false + } + if this.GroupId != that.GroupId { + return false + } + if this.GroupSize != that.GroupSize { + return false + } + if len(this.PersistentVolumes) != len(that.PersistentVolumes) { + return false + } + for i, vx := range this.PersistentVolumes { + vy := that.PersistentVolumes[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &PersistentVolume{} + } + if q == nil { + q = &PersistentVolume{} + } + if !p.EqualVT(q) { + return false + } + } + } + if len(this.Tags) != len(that.Tags) { + return false + } + for i, vx := range this.Tags { + vy := that.Tags[i] + if vx != vy { + return false + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *CollectorPersistentVolume) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*CollectorPersistentVolume) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *CollectorPersistentVolumeClaim) EqualVT(that *CollectorPersistentVolumeClaim) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.ClusterName != that.ClusterName { + return false + } + if this.ClusterId != that.ClusterId { + return false + } + if this.GroupId != that.GroupId { + return false + } + if this.GroupSize != that.GroupSize { + return false + } + if len(this.PersistentVolumeClaims) != len(that.PersistentVolumeClaims) { + return false + } + for i, vx := range this.PersistentVolumeClaims { + vy := that.PersistentVolumeClaims[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &PersistentVolumeClaim{} + } + if q == nil { + q = &PersistentVolumeClaim{} + } + if !p.EqualVT(q) { + return false + } + } + } + if len(this.Tags) != len(that.Tags) { + return false + } + for i, vx := range this.Tags { + vy := that.Tags[i] + if vx != vy { + return false + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *CollectorPersistentVolumeClaim) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*CollectorPersistentVolumeClaim) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *CollectorRole) EqualVT(that *CollectorRole) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.ClusterName != that.ClusterName { + return false + } + if this.ClusterId != that.ClusterId { + return false + } + if this.GroupId != that.GroupId { + return false + } + if this.GroupSize != that.GroupSize { + return false + } + if len(this.Roles) != len(that.Roles) { + return false + } + for i, vx := range this.Roles { + vy := that.Roles[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &Role{} + } + if q == nil { + q = &Role{} + } + if !p.EqualVT(q) { + return false + } + } + } + if len(this.Tags) != len(that.Tags) { + return false + } + for i, vx := range this.Tags { + vy := that.Tags[i] + if vx != vy { + return false + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *CollectorRole) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*CollectorRole) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *CollectorRoleBinding) EqualVT(that *CollectorRoleBinding) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.ClusterName != that.ClusterName { + return false + } + if this.ClusterId != that.ClusterId { + return false + } + if this.GroupId != that.GroupId { + return false + } + if this.GroupSize != that.GroupSize { + return false + } + if len(this.RoleBindings) != len(that.RoleBindings) { + return false + } + for i, vx := range this.RoleBindings { + vy := that.RoleBindings[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &RoleBinding{} + } + if q == nil { + q = &RoleBinding{} + } + if !p.EqualVT(q) { + return false + } + } + } + if len(this.Tags) != len(that.Tags) { + return false + } + for i, vx := range this.Tags { + vy := that.Tags[i] + if vx != vy { + return false + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *CollectorRoleBinding) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*CollectorRoleBinding) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *CollectorClusterRole) EqualVT(that *CollectorClusterRole) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.ClusterName != that.ClusterName { + return false + } + if this.ClusterId != that.ClusterId { + return false + } + if this.GroupId != that.GroupId { + return false + } + if this.GroupSize != that.GroupSize { + return false + } + if len(this.ClusterRoles) != len(that.ClusterRoles) { + return false + } + for i, vx := range this.ClusterRoles { + vy := that.ClusterRoles[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &ClusterRole{} + } + if q == nil { + q = &ClusterRole{} + } + if !p.EqualVT(q) { + return false + } + } + } + if len(this.Tags) != len(that.Tags) { + return false + } + for i, vx := range this.Tags { + vy := that.Tags[i] + if vx != vy { + return false + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *CollectorClusterRole) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*CollectorClusterRole) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *CollectorClusterRoleBinding) EqualVT(that *CollectorClusterRoleBinding) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.ClusterName != that.ClusterName { + return false + } + if this.ClusterId != that.ClusterId { + return false + } + if this.GroupId != that.GroupId { + return false + } + if this.GroupSize != that.GroupSize { + return false + } + if len(this.ClusterRoleBindings) != len(that.ClusterRoleBindings) { + return false + } + for i, vx := range this.ClusterRoleBindings { + vy := that.ClusterRoleBindings[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &ClusterRoleBinding{} + } + if q == nil { + q = &ClusterRoleBinding{} + } + if !p.EqualVT(q) { + return false + } + } + } + if len(this.Tags) != len(that.Tags) { + return false + } + for i, vx := range this.Tags { + vy := that.Tags[i] + if vx != vy { + return false + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *CollectorClusterRoleBinding) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*CollectorClusterRoleBinding) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *CollectorServiceAccount) EqualVT(that *CollectorServiceAccount) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.ClusterName != that.ClusterName { + return false + } + if this.ClusterId != that.ClusterId { + return false + } + if this.GroupId != that.GroupId { + return false + } + if this.GroupSize != that.GroupSize { + return false + } + if len(this.ServiceAccounts) != len(that.ServiceAccounts) { + return false + } + for i, vx := range this.ServiceAccounts { + vy := that.ServiceAccounts[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &ServiceAccount{} + } + if q == nil { + q = &ServiceAccount{} + } + if !p.EqualVT(q) { + return false + } + } + } + if len(this.Tags) != len(that.Tags) { + return false + } + for i, vx := range this.Tags { + vy := that.Tags[i] + if vx != vy { + return false + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *CollectorServiceAccount) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*CollectorServiceAccount) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *CollectorIngress) EqualVT(that *CollectorIngress) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.ClusterName != that.ClusterName { + return false + } + if this.ClusterId != that.ClusterId { + return false + } + if this.GroupId != that.GroupId { + return false + } + if this.GroupSize != that.GroupSize { + return false + } + if len(this.Ingresses) != len(that.Ingresses) { + return false + } + for i, vx := range this.Ingresses { + vy := that.Ingresses[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &Ingress{} + } + if q == nil { + q = &Ingress{} + } + if !p.EqualVT(q) { + return false + } + } + } + if len(this.Tags) != len(that.Tags) { + return false + } + for i, vx := range this.Tags { + vy := that.Tags[i] + if vx != vy { + return false + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *CollectorIngress) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*CollectorIngress) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *CollectorVerticalPodAutoscaler) EqualVT(that *CollectorVerticalPodAutoscaler) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.ClusterName != that.ClusterName { + return false + } + if this.ClusterId != that.ClusterId { + return false + } + if this.GroupId != that.GroupId { + return false + } + if this.GroupSize != that.GroupSize { + return false + } + if len(this.VerticalPodAutoscalers) != len(that.VerticalPodAutoscalers) { + return false + } + for i, vx := range this.VerticalPodAutoscalers { + vy := that.VerticalPodAutoscalers[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &VerticalPodAutoscaler{} + } + if q == nil { + q = &VerticalPodAutoscaler{} + } + if !p.EqualVT(q) { + return false + } + } + } + if len(this.Tags) != len(that.Tags) { + return false + } + for i, vx := range this.Tags { + vy := that.Tags[i] + if vx != vy { + return false + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *CollectorVerticalPodAutoscaler) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*CollectorVerticalPodAutoscaler) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *CollectorStatus) EqualVT(that *CollectorStatus) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.ActiveClients != that.ActiveClients { + return false + } + if this.Interval != that.Interval { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *CollectorStatus) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*CollectorStatus) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *Process) EqualVT(that *Process) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.Key != that.Key { + return false + } + if this.Pid != that.Pid { + return false + } + if !this.Host.EqualVT(that.Host) { + return false + } + if !this.Command.EqualVT(that.Command) { + return false + } + if !this.User.EqualVT(that.User) { + return false + } + if !this.Memory.EqualVT(that.Memory) { + return false + } + if !this.Cpu.EqualVT(that.Cpu) { + return false + } + if this.CreateTime != that.CreateTime { + return false + } + if !this.Container.EqualVT(that.Container) { + return false + } + if this.OpenFdCount != that.OpenFdCount { + return false + } + if this.State != that.State { + return false + } + if !this.IoStat.EqualVT(that.IoStat) { + return false + } + if this.ContainerId != that.ContainerId { + return false + } + if this.ContainerKey != that.ContainerKey { + return false + } + if this.VoluntaryCtxSwitches != that.VoluntaryCtxSwitches { + return false + } + if this.InvoluntaryCtxSwitches != that.InvoluntaryCtxSwitches { + return false + } + if string(this.ByteKey) != string(that.ByteKey) { + return false + } + if string(this.ContainerByteKey) != string(that.ContainerByteKey) { + return false + } + if this.NsPid != that.NsPid { + return false + } + if !this.Networks.EqualVT(that.Networks) { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *Process) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*Process) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *ProcessDiscovery) EqualVT(that *ProcessDiscovery) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.Pid != that.Pid { + return false + } + if this.NsPid != that.NsPid { + return false + } + if !this.Host.EqualVT(that.Host) { + return false + } + if !this.Command.EqualVT(that.Command) { + return false + } + if !this.User.EqualVT(that.User) { + return false + } + if this.CreateTime != that.CreateTime { + return false + } + if string(this.ByteKey) != string(that.ByteKey) { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *ProcessDiscovery) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*ProcessDiscovery) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *Command) EqualVT(that *Command) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if len(this.Args) != len(that.Args) { + return false + } + for i, vx := range this.Args { + vy := that.Args[i] + if vx != vy { + return false + } + } + if this.Cwd != that.Cwd { + return false + } + if this.Root != that.Root { + return false + } + if this.OnDisk != that.OnDisk { + return false + } + if this.Ppid != that.Ppid { + return false + } + if this.Pgroup != that.Pgroup { + return false + } + if this.Exe != that.Exe { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *Command) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*Command) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *ProcessUser) EqualVT(that *ProcessUser) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.Name != that.Name { + return false + } + if this.Uid != that.Uid { + return false + } + if this.Gid != that.Gid { + return false + } + if this.Euid != that.Euid { + return false + } + if this.Egid != that.Egid { + return false + } + if this.Suid != that.Suid { + return false + } + if this.Sgid != that.Sgid { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *ProcessUser) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*ProcessUser) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *ProcessNetworks) EqualVT(that *ProcessNetworks) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.ConnectionRate != that.ConnectionRate { + return false + } + if this.BytesRate != that.BytesRate { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *ProcessNetworks) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*ProcessNetworks) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *ContainerAddr) EqualVT(that *ContainerAddr) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.Ip != that.Ip { + return false + } + if this.Port != that.Port { + return false + } + if this.Protocol != that.Protocol { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *ContainerAddr) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*ContainerAddr) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *Container) EqualVT(that *Container) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.Type != that.Type { + return false + } + if this.Id != that.Id { + return false + } + if this.Name != that.Name { + return false + } + if this.Image != that.Image { + return false + } + if this.CpuLimit != that.CpuLimit { + return false + } + if this.MemoryLimit != that.MemoryLimit { + return false + } + if this.State != that.State { + return false + } + if this.Health != that.Health { + return false + } + if this.Created != that.Created { + return false + } + if this.Rbps != that.Rbps { + return false + } + if this.Wbps != that.Wbps { + return false + } + if this.Key != that.Key { + return false + } + if this.NetRcvdPs != that.NetRcvdPs { + return false + } + if this.NetSentPs != that.NetSentPs { + return false + } + if this.NetRcvdBps != that.NetRcvdBps { + return false + } + if this.NetSentBps != that.NetSentBps { + return false + } + if this.UserPct != that.UserPct { + return false + } + if this.SystemPct != that.SystemPct { + return false + } + if this.TotalPct != that.TotalPct { + return false + } + if this.MemRss != that.MemRss { + return false + } + if this.MemCache != that.MemCache { + return false + } + if !this.Host.EqualVT(that.Host) { + return false + } + if this.Started != that.Started { + return false + } + if string(this.ByteKey) != string(that.ByteKey) { + return false + } + if len(this.Tags) != len(that.Tags) { + return false + } + for i, vx := range this.Tags { + vy := that.Tags[i] + if vx != vy { + return false + } + } + if len(this.Addresses) != len(that.Addresses) { + return false + } + for i, vx := range this.Addresses { + vy := that.Addresses[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &ContainerAddr{} + } + if q == nil { + q = &ContainerAddr{} + } + if !p.EqualVT(q) { + return false + } + } + } + if this.ThreadCount != that.ThreadCount { + return false + } + if this.ThreadLimit != that.ThreadLimit { + return false + } + if this.MemUsage != that.MemUsage { + return false + } + if this.CpuUsageNs != that.CpuUsageNs { + return false + } + if this.MemAccounted != that.MemAccounted { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *Container) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*Container) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *ProcessStat) EqualVT(that *ProcessStat) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.Pid != that.Pid { + return false + } + if this.CreateTime != that.CreateTime { + return false + } + if !this.Memory.EqualVT(that.Memory) { + return false + } + if !this.Cpu.EqualVT(that.Cpu) { + return false + } + if this.Nice != that.Nice { + return false + } + if this.Threads != that.Threads { + return false + } + if this.OpenFdCount != that.OpenFdCount { + return false + } + if this.Key != that.Key { + return false + } + if this.ContainerId != that.ContainerId { + return false + } + if this.ContainerState != that.ContainerState { + return false + } + if this.ProcessState != that.ProcessState { + return false + } + if this.ContainerHealth != that.ContainerHealth { + return false + } + if this.ContainerRbps != that.ContainerRbps { + return false + } + if this.ContainerWbps != that.ContainerWbps { + return false + } + if this.ContainerKey != that.ContainerKey { + return false + } + if !this.IoStat.EqualVT(that.IoStat) { + return false + } + if this.ContainerNetRcvdPs != that.ContainerNetRcvdPs { + return false + } + if this.ContainerNetSentPs != that.ContainerNetSentPs { + return false + } + if this.ContainerNetRcvdBps != that.ContainerNetRcvdBps { + return false + } + if this.ContainerNetSentBps != that.ContainerNetSentBps { + return false + } + if this.VoluntaryCtxSwitches != that.VoluntaryCtxSwitches { + return false + } + if this.InvoluntaryCtxSwitches != that.InvoluntaryCtxSwitches { + return false + } + if string(this.ByteKey) != string(that.ByteKey) { + return false + } + if string(this.ContainerByteKey) != string(that.ContainerByteKey) { + return false + } + if !this.Networks.EqualVT(that.Networks) { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *ProcessStat) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*ProcessStat) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *ProcStatsWithPerm) EqualVT(that *ProcStatsWithPerm) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.OpenFDCount != that.OpenFDCount { + return false + } + if this.ReadCount != that.ReadCount { + return false + } + if this.WriteCount != that.WriteCount { + return false + } + if this.ReadBytes != that.ReadBytes { + return false + } + if this.WriteBytes != that.WriteBytes { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *ProcStatsWithPerm) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*ProcStatsWithPerm) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *ProcStatsWithPermByPID) EqualVT(that *ProcStatsWithPermByPID) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if len(this.StatsByPID) != len(that.StatsByPID) { + return false + } + for i, vx := range this.StatsByPID { + vy, ok := that.StatsByPID[i] + if !ok { + return false + } + if p, q := vx, vy; p != q { + if p == nil { + p = &ProcStatsWithPerm{} + } + if q == nil { + q = &ProcStatsWithPerm{} + } + if !p.EqualVT(q) { + return false + } + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *ProcStatsWithPermByPID) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*ProcStatsWithPermByPID) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *ContainerStat) EqualVT(that *ContainerStat) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.Id != that.Id { + return false + } + if this.UserPct != that.UserPct { + return false + } + if this.SystemPct != that.SystemPct { + return false + } + if this.TotalPct != that.TotalPct { + return false + } + if this.CpuLimit != that.CpuLimit { + return false + } + if this.MemRss != that.MemRss { + return false + } + if this.MemCache != that.MemCache { + return false + } + if this.MemLimit != that.MemLimit { + return false + } + if this.Rbps != that.Rbps { + return false + } + if this.Wbps != that.Wbps { + return false + } + if this.NetRcvdPs != that.NetRcvdPs { + return false + } + if this.NetSentPs != that.NetSentPs { + return false + } + if this.NetRcvdBps != that.NetRcvdBps { + return false + } + if this.NetSentBps != that.NetSentBps { + return false + } + if this.State != that.State { + return false + } + if this.Health != that.Health { + return false + } + if this.Key != that.Key { + return false + } + if this.Started != that.Started { + return false + } + if string(this.ByteKey) != string(that.ByteKey) { + return false + } + if this.ThreadCount != that.ThreadCount { + return false + } + if this.ThreadLimit != that.ThreadLimit { + return false + } + if this.MemUsage != that.MemUsage { + return false + } + if this.CpuUsageNs != that.CpuUsageNs { + return false + } + if this.MemAccounted != that.MemAccounted { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *ContainerStat) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*ContainerStat) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *SystemInfo) EqualVT(that *SystemInfo) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.Uuid != that.Uuid { + return false + } + if !this.Os.EqualVT(that.Os) { + return false + } + if len(this.Cpus) != len(that.Cpus) { + return false + } + for i, vx := range this.Cpus { + vy := that.Cpus[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &CPUInfo{} + } + if q == nil { + q = &CPUInfo{} + } + if !p.EqualVT(q) { + return false + } + } + } + if this.TotalMemory != that.TotalMemory { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *SystemInfo) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*SystemInfo) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *OSInfo) EqualVT(that *OSInfo) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.Name != that.Name { + return false + } + if this.Platform != that.Platform { + return false + } + if this.Family != that.Family { + return false + } + if this.Version != that.Version { + return false + } + if this.KernelVersion != that.KernelVersion { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *OSInfo) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*OSInfo) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *IOStat) EqualVT(that *IOStat) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.ReadRate != that.ReadRate { + return false + } + if this.WriteRate != that.WriteRate { + return false + } + if this.ReadBytesRate != that.ReadBytesRate { + return false + } + if this.WriteBytesRate != that.WriteBytesRate { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *IOStat) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*IOStat) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *MemoryStat) EqualVT(that *MemoryStat) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.Rss != that.Rss { + return false + } + if this.Vms != that.Vms { + return false + } + if this.Swap != that.Swap { + return false + } + if this.Shared != that.Shared { + return false + } + if this.Text != that.Text { + return false + } + if this.Lib != that.Lib { + return false + } + if this.Data != that.Data { + return false + } + if this.Dirty != that.Dirty { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *MemoryStat) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*MemoryStat) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *CPUStat) EqualVT(that *CPUStat) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.LastCpu != that.LastCpu { + return false + } + if this.TotalPct != that.TotalPct { + return false + } + if this.UserPct != that.UserPct { + return false + } + if this.SystemPct != that.SystemPct { + return false + } + if this.NumThreads != that.NumThreads { + return false + } + if len(this.Cpus) != len(that.Cpus) { + return false + } + for i, vx := range this.Cpus { + vy := that.Cpus[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &SingleCPUStat{} + } + if q == nil { + q = &SingleCPUStat{} + } + if !p.EqualVT(q) { + return false + } + } + } + if this.Nice != that.Nice { + return false + } + if this.UserTime != that.UserTime { + return false + } + if this.SystemTime != that.SystemTime { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *CPUStat) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*CPUStat) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *SingleCPUStat) EqualVT(that *SingleCPUStat) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.Name != that.Name { + return false + } + if this.TotalPct != that.TotalPct { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *SingleCPUStat) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*SingleCPUStat) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *CPUInfo) EqualVT(that *CPUInfo) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.Number != that.Number { + return false + } + if this.Vendor != that.Vendor { + return false + } + if this.Family != that.Family { + return false + } + if this.Model != that.Model { + return false + } + if this.PhysicalId != that.PhysicalId { + return false + } + if this.CoreId != that.CoreId { + return false + } + if this.Cores != that.Cores { + return false + } + if this.Mhz != that.Mhz { + return false + } + if this.CacheSize != that.CacheSize { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *CPUInfo) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*CPUInfo) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *Host) EqualVT(that *Host) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.Id != that.Id { + return false + } + if this.OrgId != that.OrgId { + return false + } + if this.Name != that.Name { + return false + } + if len(this.AllTags) != len(that.AllTags) { + return false + } + for i, vx := range this.AllTags { + vy := that.AllTags[i] + if vx != vy { + return false + } + } + if this.NumCpus != that.NumCpus { + return false + } + if this.TotalMemory != that.TotalMemory { + return false + } + if this.TagIndex != that.TagIndex { + return false + } + if this.TagsModified != that.TagsModified { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *Host) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*Host) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *Cluster) EqualVT(that *Cluster) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.NodeCount != that.NodeCount { + return false + } + if len(this.KubeletVersions) != len(that.KubeletVersions) { + return false + } + for i, vx := range this.KubeletVersions { + vy, ok := that.KubeletVersions[i] + if !ok { + return false + } + if vx != vy { + return false + } + } + if len(this.ApiServerVersions) != len(that.ApiServerVersions) { + return false + } + for i, vx := range this.ApiServerVersions { + vy, ok := that.ApiServerVersions[i] + if !ok { + return false + } + if vx != vy { + return false + } + } + if this.PodCapacity != that.PodCapacity { + return false + } + if this.PodAllocatable != that.PodAllocatable { + return false + } + if this.MemoryAllocatable != that.MemoryAllocatable { + return false + } + if this.MemoryCapacity != that.MemoryCapacity { + return false + } + if this.CpuAllocatable != that.CpuAllocatable { + return false + } + if this.CpuCapacity != that.CpuCapacity { + return false + } + if this.ResourceVersion != that.ResourceVersion { + return false + } + if this.CreationTimestamp != that.CreationTimestamp { + return false + } + if len(this.Tags) != len(that.Tags) { + return false + } + for i, vx := range this.Tags { + vy := that.Tags[i] + if vx != vy { + return false + } + } + if !this.Metrics.EqualVT(that.Metrics) { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *Cluster) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*Cluster) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *Metadata) EqualVT(that *Metadata) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.Name != that.Name { + return false + } + if this.Namespace != that.Namespace { + return false + } + if this.Uid != that.Uid { + return false + } + if this.CreationTimestamp != that.CreationTimestamp { + return false + } + if this.DeletionTimestamp != that.DeletionTimestamp { + return false + } + if len(this.Labels) != len(that.Labels) { + return false + } + for i, vx := range this.Labels { + vy := that.Labels[i] + if vx != vy { + return false + } + } + if len(this.Annotations) != len(that.Annotations) { + return false + } + for i, vx := range this.Annotations { + vy := that.Annotations[i] + if vx != vy { + return false + } + } + if len(this.OwnerReferences) != len(that.OwnerReferences) { + return false + } + for i, vx := range this.OwnerReferences { + vy := that.OwnerReferences[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &OwnerReference{} + } + if q == nil { + q = &OwnerReference{} + } + if !p.EqualVT(q) { + return false + } + } + } + if this.ResourceVersion != that.ResourceVersion { + return false + } + if len(this.Finalizers) != len(that.Finalizers) { + return false + } + for i, vx := range this.Finalizers { + vy := that.Finalizers[i] + if vx != vy { + return false + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *Metadata) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*Metadata) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *OwnerReference) EqualVT(that *OwnerReference) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.Name != that.Name { + return false + } + if this.Uid != that.Uid { + return false + } + if this.Kind != that.Kind { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *OwnerReference) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*OwnerReference) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *ObjectReference) EqualVT(that *ObjectReference) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.Kind != that.Kind { + return false + } + if this.Namespace != that.Namespace { + return false + } + if this.Name != that.Name { + return false + } + if this.Uid != that.Uid { + return false + } + if this.ApiVersion != that.ApiVersion { + return false + } + if this.ResourceVersion != that.ResourceVersion { + return false + } + if this.FieldPath != that.FieldPath { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *ObjectReference) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*ObjectReference) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *ServicePort) EqualVT(that *ServicePort) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.Name != that.Name { + return false + } + if this.Protocol != that.Protocol { + return false + } + if this.Port != that.Port { + return false + } + if this.TargetPort != that.TargetPort { + return false + } + if this.NodePort != that.NodePort { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *ServicePort) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*ServicePort) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *ServiceSessionAffinityConfig) EqualVT(that *ServiceSessionAffinityConfig) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.ClientIPTimeoutSeconds != that.ClientIPTimeoutSeconds { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *ServiceSessionAffinityConfig) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*ServiceSessionAffinityConfig) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *Node) EqualVT(that *Node) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if !this.Metadata.EqualVT(that.Metadata) { + return false + } + if this.PodCIDR != that.PodCIDR { + return false + } + if len(this.PodCIDRs) != len(that.PodCIDRs) { + return false + } + for i, vx := range this.PodCIDRs { + vy := that.PodCIDRs[i] + if vx != vy { + return false + } + } + if this.Unschedulable != that.Unschedulable { + return false + } + if len(this.Taints) != len(that.Taints) { + return false + } + for i, vx := range this.Taints { + vy := that.Taints[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &Taint{} + } + if q == nil { + q = &Taint{} + } + if !p.EqualVT(q) { + return false + } + } + } + if !this.Status.EqualVT(that.Status) { + return false + } + if string(this.Yaml) != string(that.Yaml) { + return false + } + if len(this.Roles) != len(that.Roles) { + return false + } + for i, vx := range this.Roles { + vy := that.Roles[i] + if vx != vy { + return false + } + } + if len(this.Tags) != len(that.Tags) { + return false + } + for i, vx := range this.Tags { + vy := that.Tags[i] + if vx != vy { + return false + } + } + if this.ProviderID != that.ProviderID { + return false + } + if !this.Host.EqualVT(that.Host) { + return false + } + if !this.Metrics.EqualVT(that.Metrics) { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *Node) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*Node) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *NodeStatus) EqualVT(that *NodeStatus) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if len(this.Capacity) != len(that.Capacity) { + return false + } + for i, vx := range this.Capacity { + vy, ok := that.Capacity[i] + if !ok { + return false + } + if vx != vy { + return false + } + } + if len(this.Allocatable) != len(that.Allocatable) { + return false + } + for i, vx := range this.Allocatable { + vy, ok := that.Allocatable[i] + if !ok { + return false + } + if vx != vy { + return false + } + } + if len(this.NodeAddresses) != len(that.NodeAddresses) { + return false + } + for i, vx := range this.NodeAddresses { + vy, ok := that.NodeAddresses[i] + if !ok { + return false + } + if vx != vy { + return false + } + } + if this.Status != that.Status { + return false + } + if this.KubeletVersion != that.KubeletVersion { + return false + } + if len(this.Conditions) != len(that.Conditions) { + return false + } + for i, vx := range this.Conditions { + vy := that.Conditions[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &NodeCondition{} + } + if q == nil { + q = &NodeCondition{} + } + if !p.EqualVT(q) { + return false + } + } + } + if len(this.Images) != len(that.Images) { + return false + } + for i, vx := range this.Images { + vy := that.Images[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &ContainerImage{} + } + if q == nil { + q = &ContainerImage{} + } + if !p.EqualVT(q) { + return false + } + } + } + if this.KubeProxyVersion != that.KubeProxyVersion { + return false + } + if this.OperatingSystem != that.OperatingSystem { + return false + } + if this.Architecture != that.Architecture { + return false + } + if this.KernelVersion != that.KernelVersion { + return false + } + if this.OsImage != that.OsImage { + return false + } + if this.ContainerRuntimeVersion != that.ContainerRuntimeVersion { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *NodeStatus) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*NodeStatus) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *NodeCondition) EqualVT(that *NodeCondition) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.Type != that.Type { + return false + } + if this.Status != that.Status { + return false + } + if this.LastTransitionTime != that.LastTransitionTime { + return false + } + if this.Reason != that.Reason { + return false + } + if this.Message != that.Message { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *NodeCondition) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*NodeCondition) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *ContainerImage) EqualVT(that *ContainerImage) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if len(this.Names) != len(that.Names) { + return false + } + for i, vx := range this.Names { + vy := that.Names[i] + if vx != vy { + return false + } + } + if this.SizeBytes != that.SizeBytes { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *ContainerImage) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*ContainerImage) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *Taint) EqualVT(that *Taint) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.Key != that.Key { + return false + } + if this.Value != that.Value { + return false + } + if this.Effect != that.Effect { + return false + } + if this.TimeAdded != that.TimeAdded { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *Taint) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*Taint) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *ServiceSpec) EqualVT(that *ServiceSpec) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if len(this.Ports) != len(that.Ports) { + return false + } + for i, vx := range this.Ports { + vy := that.Ports[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &ServicePort{} + } + if q == nil { + q = &ServicePort{} + } + if !p.EqualVT(q) { + return false + } + } + } + if len(this.Selectors) != len(that.Selectors) { + return false + } + for i, vx := range this.Selectors { + vy := that.Selectors[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &LabelSelectorRequirement{} + } + if q == nil { + q = &LabelSelectorRequirement{} + } + if !p.EqualVT(q) { + return false + } + } + } + if this.ClusterIP != that.ClusterIP { + return false + } + if this.Type != that.Type { + return false + } + if len(this.ExternalIPs) != len(that.ExternalIPs) { + return false + } + for i, vx := range this.ExternalIPs { + vy := that.ExternalIPs[i] + if vx != vy { + return false + } + } + if this.SessionAffinity != that.SessionAffinity { + return false + } + if this.LoadBalancerIP != that.LoadBalancerIP { + return false + } + if len(this.LoadBalancerSourceRanges) != len(that.LoadBalancerSourceRanges) { + return false + } + for i, vx := range this.LoadBalancerSourceRanges { + vy := that.LoadBalancerSourceRanges[i] + if vx != vy { + return false + } + } + if this.ExternalName != that.ExternalName { + return false + } + if this.ExternalTrafficPolicy != that.ExternalTrafficPolicy { + return false + } + if this.HealthCheckNodePort != that.HealthCheckNodePort { + return false + } + if this.PublishNotReadyAddresses != that.PublishNotReadyAddresses { + return false + } + if !this.SessionAffinityConfig.EqualVT(that.SessionAffinityConfig) { + return false + } + if this.IpFamily != that.IpFamily { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *ServiceSpec) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*ServiceSpec) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *ServiceStatus) EqualVT(that *ServiceStatus) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if len(this.LoadBalancerIngress) != len(that.LoadBalancerIngress) { + return false + } + for i, vx := range this.LoadBalancerIngress { + vy := that.LoadBalancerIngress[i] + if vx != vy { + return false + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *ServiceStatus) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*ServiceStatus) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *Service) EqualVT(that *Service) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if !this.Metadata.EqualVT(that.Metadata) { + return false + } + if !this.Spec.EqualVT(that.Spec) { + return false + } + if !this.Status.EqualVT(that.Status) { + return false + } + if string(this.Yaml) != string(that.Yaml) { + return false + } + if len(this.Tags) != len(that.Tags) { + return false + } + for i, vx := range this.Tags { + vy := that.Tags[i] + if vx != vy { + return false + } + } + if !this.Metrics.EqualVT(that.Metrics) { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *Service) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*Service) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *DeploymentCondition) EqualVT(that *DeploymentCondition) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.Type != that.Type { + return false + } + if this.Status != that.Status { + return false + } + if this.Reason != that.Reason { + return false + } + if this.Message != that.Message { + return false + } + if this.LastUpdateTime != that.LastUpdateTime { + return false + } + if this.LastTransitionTime != that.LastTransitionTime { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *DeploymentCondition) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*DeploymentCondition) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *Deployment) EqualVT(that *Deployment) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if !this.Metadata.EqualVT(that.Metadata) { + return false + } + if this.ReplicasDesired != that.ReplicasDesired { + return false + } + if this.DeploymentStrategy != that.DeploymentStrategy { + return false + } + if this.MaxUnavailable != that.MaxUnavailable { + return false + } + if this.MaxSurge != that.MaxSurge { + return false + } + if this.Paused != that.Paused { + return false + } + if len(this.Selectors) != len(that.Selectors) { + return false + } + for i, vx := range this.Selectors { + vy := that.Selectors[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &LabelSelectorRequirement{} + } + if q == nil { + q = &LabelSelectorRequirement{} + } + if !p.EqualVT(q) { + return false + } + } + } + if this.Replicas != that.Replicas { + return false + } + if this.UpdatedReplicas != that.UpdatedReplicas { + return false + } + if this.ReadyReplicas != that.ReadyReplicas { + return false + } + if this.AvailableReplicas != that.AvailableReplicas { + return false + } + if this.UnavailableReplicas != that.UnavailableReplicas { + return false + } + if this.ConditionMessage != that.ConditionMessage { + return false + } + if string(this.Yaml) != string(that.Yaml) { + return false + } + if len(this.Tags) != len(that.Tags) { + return false + } + for i, vx := range this.Tags { + vy := that.Tags[i] + if vx != vy { + return false + } + } + if len(this.ResourceRequirements) != len(that.ResourceRequirements) { + return false + } + for i, vx := range this.ResourceRequirements { + vy := that.ResourceRequirements[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &ResourceRequirements{} + } + if q == nil { + q = &ResourceRequirements{} + } + if !p.EqualVT(q) { + return false + } + } + } + if !this.Metrics.EqualVT(that.Metrics) { + return false + } + if len(this.Conditions) != len(that.Conditions) { + return false + } + for i, vx := range this.Conditions { + vy := that.Conditions[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &DeploymentCondition{} + } + if q == nil { + q = &DeploymentCondition{} + } + if !p.EqualVT(q) { + return false + } + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *Deployment) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*Deployment) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *ReplicaSetCondition) EqualVT(that *ReplicaSetCondition) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.Type != that.Type { + return false + } + if this.Status != that.Status { + return false + } + if this.LastTransitionTime != that.LastTransitionTime { + return false + } + if this.Reason != that.Reason { + return false + } + if this.Message != that.Message { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *ReplicaSetCondition) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*ReplicaSetCondition) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *ReplicaSet) EqualVT(that *ReplicaSet) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if !this.Metadata.EqualVT(that.Metadata) { + return false + } + if this.ReplicasDesired != that.ReplicasDesired { + return false + } + if len(this.Selectors) != len(that.Selectors) { + return false + } + for i, vx := range this.Selectors { + vy := that.Selectors[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &LabelSelectorRequirement{} + } + if q == nil { + q = &LabelSelectorRequirement{} + } + if !p.EqualVT(q) { + return false + } + } + } + if this.Replicas != that.Replicas { + return false + } + if this.FullyLabeledReplicas != that.FullyLabeledReplicas { + return false + } + if this.ReadyReplicas != that.ReadyReplicas { + return false + } + if this.AvailableReplicas != that.AvailableReplicas { + return false + } + if string(this.Yaml) != string(that.Yaml) { + return false + } + if len(this.Tags) != len(that.Tags) { + return false + } + for i, vx := range this.Tags { + vy := that.Tags[i] + if vx != vy { + return false + } + } + if len(this.ResourceRequirements) != len(that.ResourceRequirements) { + return false + } + for i, vx := range this.ResourceRequirements { + vy := that.ResourceRequirements[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &ResourceRequirements{} + } + if q == nil { + q = &ResourceRequirements{} + } + if !p.EqualVT(q) { + return false + } + } + } + if !this.Metrics.EqualVT(that.Metrics) { + return false + } + if len(this.Conditions) != len(that.Conditions) { + return false + } + for i, vx := range this.Conditions { + vy := that.Conditions[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &ReplicaSetCondition{} + } + if q == nil { + q = &ReplicaSetCondition{} + } + if !p.EqualVT(q) { + return false + } + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *ReplicaSet) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*ReplicaSet) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *LabelSelectorRequirement) EqualVT(that *LabelSelectorRequirement) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.Key != that.Key { + return false + } + if this.Operator != that.Operator { + return false + } + if len(this.Values) != len(that.Values) { + return false + } + for i, vx := range this.Values { + vy := that.Values[i] + if vx != vy { + return false + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *LabelSelectorRequirement) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*LabelSelectorRequirement) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *Pod) EqualVT(that *Pod) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if !this.Metadata.EqualVT(that.Metadata) { + return false + } + if this.IP != that.IP { + return false + } + if this.NominatedNodeName != that.NominatedNodeName { + return false + } + if this.NodeName != that.NodeName { + return false + } + if this.Phase != that.Phase { + return false + } + if this.RestartCount != that.RestartCount { + return false + } + if len(this.ContainerStatuses) != len(that.ContainerStatuses) { + return false + } + for i, vx := range this.ContainerStatuses { + vy := that.ContainerStatuses[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &ContainerStatus{} + } + if q == nil { + q = &ContainerStatus{} + } + if !p.EqualVT(q) { + return false + } + } + } + if this.ConditionMessage != that.ConditionMessage { + return false + } + if this.Status != that.Status { + return false + } + if string(this.Yaml) != string(that.Yaml) { + return false + } + if len(this.Tags) != len(that.Tags) { + return false + } + for i, vx := range this.Tags { + vy := that.Tags[i] + if vx != vy { + return false + } + } + if !this.Host.EqualVT(that.Host) { + return false + } + if len(this.ResourceRequirements) != len(that.ResourceRequirements) { + return false + } + for i, vx := range this.ResourceRequirements { + vy := that.ResourceRequirements[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &ResourceRequirements{} + } + if q == nil { + q = &ResourceRequirements{} + } + if !p.EqualVT(q) { + return false + } + } + } + if len(this.InitContainerStatuses) != len(that.InitContainerStatuses) { + return false + } + for i, vx := range this.InitContainerStatuses { + vy := that.InitContainerStatuses[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &ContainerStatus{} + } + if q == nil { + q = &ContainerStatus{} + } + if !p.EqualVT(q) { + return false + } + } + } + if this.QOSClass != that.QOSClass { + return false + } + if this.PriorityClass != that.PriorityClass { + return false + } + if !this.Metrics.EqualVT(that.Metrics) { + return false + } + if this.StartTime != that.StartTime { + return false + } + if this.ScheduledTime != that.ScheduledTime { + return false + } + if len(this.Conditions) != len(that.Conditions) { + return false + } + for i, vx := range this.Conditions { + vy := that.Conditions[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &PodCondition{} + } + if q == nil { + q = &PodCondition{} + } + if !p.EqualVT(q) { + return false + } + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *Pod) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*Pod) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *PodCondition) EqualVT(that *PodCondition) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.Type != that.Type { + return false + } + if this.Status != that.Status { + return false + } + if this.LastProbeTime != that.LastProbeTime { + return false + } + if this.LastTransitionTime != that.LastTransitionTime { + return false + } + if this.Reason != that.Reason { + return false + } + if this.Message != that.Message { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *PodCondition) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*PodCondition) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *ContainerStatus) EqualVT(that *ContainerStatus) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.Name != that.Name { + return false + } + if this.ContainerID != that.ContainerID { + return false + } + if this.Ready != that.Ready { + return false + } + if this.RestartCount != that.RestartCount { + return false + } + if this.State != that.State { + return false + } + if this.Message != that.Message { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *ContainerStatus) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*ContainerStatus) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *Manifest) EqualVT(that *Manifest) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.Type != that.Type { + return false + } + if this.ResourceVersion != that.ResourceVersion { + return false + } + if this.Uid != that.Uid { + return false + } + if string(this.Content) != string(that.Content) { + return false + } + if this.ContentType != that.ContentType { + return false + } + if this.Version != that.Version { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *Manifest) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*Manifest) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *NamespaceCondition) EqualVT(that *NamespaceCondition) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.Type != that.Type { + return false + } + if this.Status != that.Status { + return false + } + if this.LastTransitionTime != that.LastTransitionTime { + return false + } + if this.Reason != that.Reason { + return false + } + if this.Message != that.Message { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *NamespaceCondition) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*NamespaceCondition) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *Namespace) EqualVT(that *Namespace) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if !this.Metadata.EqualVT(that.Metadata) { + return false + } + if this.Status != that.Status { + return false + } + if this.ConditionMessage != that.ConditionMessage { + return false + } + if string(this.Yaml) != string(that.Yaml) { + return false + } + if len(this.Tags) != len(that.Tags) { + return false + } + for i, vx := range this.Tags { + vy := that.Tags[i] + if vx != vy { + return false + } + } + if len(this.Conditions) != len(that.Conditions) { + return false + } + for i, vx := range this.Conditions { + vy := that.Conditions[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &NamespaceCondition{} + } + if q == nil { + q = &NamespaceCondition{} + } + if !p.EqualVT(q) { + return false + } + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *Namespace) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*Namespace) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *ResourceRequirements) EqualVT(that *ResourceRequirements) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if len(this.Limits) != len(that.Limits) { + return false + } + for i, vx := range this.Limits { + vy, ok := that.Limits[i] + if !ok { + return false + } + if vx != vy { + return false + } + } + if len(this.Requests) != len(that.Requests) { + return false + } + for i, vx := range this.Requests { + vy, ok := that.Requests[i] + if !ok { + return false + } + if vx != vy { + return false + } + } + if this.Name != that.Name { + return false + } + if this.Type != that.Type { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *ResourceRequirements) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*ResourceRequirements) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *ResourceMetrics) EqualVT(that *ResourceMetrics) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if len(this.MetricValues) != len(that.MetricValues) { + return false + } + for i, vx := range this.MetricValues { + vy, ok := that.MetricValues[i] + if !ok { + return false + } + if vx != vy { + return false + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *ResourceMetrics) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*ResourceMetrics) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *JobSpec) EqualVT(that *JobSpec) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.Parallelism != that.Parallelism { + return false + } + if this.Completions != that.Completions { + return false + } + if this.ActiveDeadlineSeconds != that.ActiveDeadlineSeconds { + return false + } + if this.BackoffLimit != that.BackoffLimit { + return false + } + if len(this.Selectors) != len(that.Selectors) { + return false + } + for i, vx := range this.Selectors { + vy := that.Selectors[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &LabelSelectorRequirement{} + } + if q == nil { + q = &LabelSelectorRequirement{} + } + if !p.EqualVT(q) { + return false + } + } + } + if this.ManualSelector != that.ManualSelector { + return false + } + if len(this.ResourceRequirements) != len(that.ResourceRequirements) { + return false + } + for i, vx := range this.ResourceRequirements { + vy := that.ResourceRequirements[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &ResourceRequirements{} + } + if q == nil { + q = &ResourceRequirements{} + } + if !p.EqualVT(q) { + return false + } + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *JobSpec) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*JobSpec) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *JobStatus) EqualVT(that *JobStatus) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.ConditionMessage != that.ConditionMessage { + return false + } + if this.StartTime != that.StartTime { + return false + } + if this.CompletionTime != that.CompletionTime { + return false + } + if this.Active != that.Active { + return false + } + if this.Succeeded != that.Succeeded { + return false + } + if this.Failed != that.Failed { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *JobStatus) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*JobStatus) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *JobCondition) EqualVT(that *JobCondition) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.Type != that.Type { + return false + } + if this.Status != that.Status { + return false + } + if this.LastProbeTime != that.LastProbeTime { + return false + } + if this.LastTransitionTime != that.LastTransitionTime { + return false + } + if this.Reason != that.Reason { + return false + } + if this.Message != that.Message { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *JobCondition) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*JobCondition) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *Job) EqualVT(that *Job) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if !this.Metadata.EqualVT(that.Metadata) { + return false + } + if !this.Spec.EqualVT(that.Spec) { + return false + } + if !this.Status.EqualVT(that.Status) { + return false + } + if string(this.Yaml) != string(that.Yaml) { + return false + } + if len(this.Tags) != len(that.Tags) { + return false + } + for i, vx := range this.Tags { + vy := that.Tags[i] + if vx != vy { + return false + } + } + if len(this.Conditions) != len(that.Conditions) { + return false + } + for i, vx := range this.Conditions { + vy := that.Conditions[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &JobCondition{} + } + if q == nil { + q = &JobCondition{} + } + if !p.EqualVT(q) { + return false + } + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *Job) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*Job) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *CronJobSpec) EqualVT(that *CronJobSpec) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.Schedule != that.Schedule { + return false + } + if this.StartingDeadlineSeconds != that.StartingDeadlineSeconds { + return false + } + if this.ConcurrencyPolicy != that.ConcurrencyPolicy { + return false + } + if this.Suspend != that.Suspend { + return false + } + if this.SuccessfulJobsHistoryLimit != that.SuccessfulJobsHistoryLimit { + return false + } + if this.FailedJobsHistoryLimit != that.FailedJobsHistoryLimit { + return false + } + if len(this.ResourceRequirements) != len(that.ResourceRequirements) { + return false + } + for i, vx := range this.ResourceRequirements { + vy := that.ResourceRequirements[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &ResourceRequirements{} + } + if q == nil { + q = &ResourceRequirements{} + } + if !p.EqualVT(q) { + return false + } + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *CronJobSpec) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*CronJobSpec) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *CronJobStatus) EqualVT(that *CronJobStatus) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if len(this.Active) != len(that.Active) { + return false + } + for i, vx := range this.Active { + vy := that.Active[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &ObjectReference{} + } + if q == nil { + q = &ObjectReference{} + } + if !p.EqualVT(q) { + return false + } + } + } + if this.LastScheduleTime != that.LastScheduleTime { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *CronJobStatus) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*CronJobStatus) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *CronJob) EqualVT(that *CronJob) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if !this.Metadata.EqualVT(that.Metadata) { + return false + } + if !this.Spec.EqualVT(that.Spec) { + return false + } + if !this.Status.EqualVT(that.Status) { + return false + } + if string(this.Yaml) != string(that.Yaml) { + return false + } + if len(this.Tags) != len(that.Tags) { + return false + } + for i, vx := range this.Tags { + vy := that.Tags[i] + if vx != vy { + return false + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *CronJob) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*CronJob) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *DaemonSetSpec) EqualVT(that *DaemonSetSpec) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if len(this.Selectors) != len(that.Selectors) { + return false + } + for i, vx := range this.Selectors { + vy := that.Selectors[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &LabelSelectorRequirement{} + } + if q == nil { + q = &LabelSelectorRequirement{} + } + if !p.EqualVT(q) { + return false + } + } + } + if this.DeploymentStrategy != that.DeploymentStrategy { + return false + } + if this.MaxUnavailable != that.MaxUnavailable { + return false + } + if this.MinReadySeconds != that.MinReadySeconds { + return false + } + if this.RevisionHistoryLimit != that.RevisionHistoryLimit { + return false + } + if len(this.ResourceRequirements) != len(that.ResourceRequirements) { + return false + } + for i, vx := range this.ResourceRequirements { + vy := that.ResourceRequirements[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &ResourceRequirements{} + } + if q == nil { + q = &ResourceRequirements{} + } + if !p.EqualVT(q) { + return false + } + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *DaemonSetSpec) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*DaemonSetSpec) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *DaemonSetStatus) EqualVT(that *DaemonSetStatus) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.CurrentNumberScheduled != that.CurrentNumberScheduled { + return false + } + if this.NumberMisscheduled != that.NumberMisscheduled { + return false + } + if this.DesiredNumberScheduled != that.DesiredNumberScheduled { + return false + } + if this.NumberReady != that.NumberReady { + return false + } + if this.UpdatedNumberScheduled != that.UpdatedNumberScheduled { + return false + } + if this.NumberAvailable != that.NumberAvailable { + return false + } + if this.NumberUnavailable != that.NumberUnavailable { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *DaemonSetStatus) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*DaemonSetStatus) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *DaemonSetCondition) EqualVT(that *DaemonSetCondition) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.Type != that.Type { + return false + } + if this.Status != that.Status { + return false + } + if this.LastTransitionTime != that.LastTransitionTime { + return false + } + if this.Reason != that.Reason { + return false + } + if this.Message != that.Message { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *DaemonSetCondition) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*DaemonSetCondition) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *DaemonSet) EqualVT(that *DaemonSet) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if !this.Metadata.EqualVT(that.Metadata) { + return false + } + if !this.Spec.EqualVT(that.Spec) { + return false + } + if !this.Status.EqualVT(that.Status) { + return false + } + if string(this.Yaml) != string(that.Yaml) { + return false + } + if len(this.Tags) != len(that.Tags) { + return false + } + for i, vx := range this.Tags { + vy := that.Tags[i] + if vx != vy { + return false + } + } + if !this.Metrics.EqualVT(that.Metrics) { + return false + } + if len(this.Conditions) != len(that.Conditions) { + return false + } + for i, vx := range this.Conditions { + vy := that.Conditions[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &DaemonSetCondition{} + } + if q == nil { + q = &DaemonSetCondition{} + } + if !p.EqualVT(q) { + return false + } + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *DaemonSet) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*DaemonSet) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *StatefulSetSpec) EqualVT(that *StatefulSetSpec) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.DesiredReplicas != that.DesiredReplicas { + return false + } + if len(this.Selectors) != len(that.Selectors) { + return false + } + for i, vx := range this.Selectors { + vy := that.Selectors[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &LabelSelectorRequirement{} + } + if q == nil { + q = &LabelSelectorRequirement{} + } + if !p.EqualVT(q) { + return false + } + } + } + if this.ServiceName != that.ServiceName { + return false + } + if this.PodManagementPolicy != that.PodManagementPolicy { + return false + } + if this.UpdateStrategy != that.UpdateStrategy { + return false + } + if this.Partition != that.Partition { + return false + } + if len(this.ResourceRequirements) != len(that.ResourceRequirements) { + return false + } + for i, vx := range this.ResourceRequirements { + vy := that.ResourceRequirements[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &ResourceRequirements{} + } + if q == nil { + q = &ResourceRequirements{} + } + if !p.EqualVT(q) { + return false + } + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *StatefulSetSpec) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*StatefulSetSpec) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *StatefulSetStatus) EqualVT(that *StatefulSetStatus) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.Replicas != that.Replicas { + return false + } + if this.ReadyReplicas != that.ReadyReplicas { + return false + } + if this.CurrentReplicas != that.CurrentReplicas { + return false + } + if this.UpdatedReplicas != that.UpdatedReplicas { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *StatefulSetStatus) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*StatefulSetStatus) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *StatefulSetCondition) EqualVT(that *StatefulSetCondition) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.Type != that.Type { + return false + } + if this.Status != that.Status { + return false + } + if this.LastTransitionTime != that.LastTransitionTime { + return false + } + if this.Reason != that.Reason { + return false + } + if this.Message != that.Message { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *StatefulSetCondition) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*StatefulSetCondition) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *StatefulSet) EqualVT(that *StatefulSet) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if !this.Metadata.EqualVT(that.Metadata) { + return false + } + if !this.Spec.EqualVT(that.Spec) { + return false + } + if !this.Status.EqualVT(that.Status) { + return false + } + if string(this.Yaml) != string(that.Yaml) { + return false + } + if len(this.Tags) != len(that.Tags) { + return false + } + for i, vx := range this.Tags { + vy := that.Tags[i] + if vx != vy { + return false + } + } + if !this.Metrics.EqualVT(that.Metrics) { + return false + } + if len(this.Conditions) != len(that.Conditions) { + return false + } + for i, vx := range this.Conditions { + vy := that.Conditions[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &StatefulSetCondition{} + } + if q == nil { + q = &StatefulSetCondition{} + } + if !p.EqualVT(q) { + return false + } + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *StatefulSet) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*StatefulSet) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *PersistentVolume) EqualVT(that *PersistentVolume) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if !this.Metadata.EqualVT(that.Metadata) { + return false + } + if !this.Spec.EqualVT(that.Spec) { + return false + } + if !this.Status.EqualVT(that.Status) { + return false + } + if string(this.Yaml) != string(that.Yaml) { + return false + } + if len(this.Tags) != len(that.Tags) { + return false + } + for i, vx := range this.Tags { + vy := that.Tags[i] + if vx != vy { + return false + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *PersistentVolume) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*PersistentVolume) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *PersistentVolumeSpec) EqualVT(that *PersistentVolumeSpec) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if len(this.Capacity) != len(that.Capacity) { + return false + } + for i, vx := range this.Capacity { + vy, ok := that.Capacity[i] + if !ok { + return false + } + if vx != vy { + return false + } + } + if this.PersistentVolumeType != that.PersistentVolumeType { + return false + } + if len(this.AccessModes) != len(that.AccessModes) { + return false + } + for i, vx := range this.AccessModes { + vy := that.AccessModes[i] + if vx != vy { + return false + } + } + if !this.ClaimRef.EqualVT(that.ClaimRef) { + return false + } + if this.PersistentVolumeReclaimPolicy != that.PersistentVolumeReclaimPolicy { + return false + } + if this.StorageClassName != that.StorageClassName { + return false + } + if len(this.MountOptions) != len(that.MountOptions) { + return false + } + for i, vx := range this.MountOptions { + vy := that.MountOptions[i] + if vx != vy { + return false + } + } + if this.VolumeMode != that.VolumeMode { + return false + } + if len(this.NodeAffinity) != len(that.NodeAffinity) { + return false + } + for i, vx := range this.NodeAffinity { + vy := that.NodeAffinity[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &NodeSelectorTerm{} + } + if q == nil { + q = &NodeSelectorTerm{} + } + if !p.EqualVT(q) { + return false + } + } + } + if !this.PersistentVolumeSource.EqualVT(that.PersistentVolumeSource) { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *PersistentVolumeSpec) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*PersistentVolumeSpec) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *PersistentVolumeSource) EqualVT(that *PersistentVolumeSource) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if !this.GcePersistentDisk.EqualVT(that.GcePersistentDisk) { + return false + } + if !this.AwsElasticBlockStore.EqualVT(that.AwsElasticBlockStore) { + return false + } + if !this.AzureFile.EqualVT(that.AzureFile) { + return false + } + if !this.AzureDisk.EqualVT(that.AzureDisk) { + return false + } + if !this.Csi.EqualVT(that.Csi) { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *PersistentVolumeSource) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*PersistentVolumeSource) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *GCEPersistentDiskVolumeSource) EqualVT(that *GCEPersistentDiskVolumeSource) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.PdName != that.PdName { + return false + } + if this.FsType != that.FsType { + return false + } + if this.Partition != that.Partition { + return false + } + if this.ReadOnly != that.ReadOnly { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *GCEPersistentDiskVolumeSource) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*GCEPersistentDiskVolumeSource) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *AWSElasticBlockStoreVolumeSource) EqualVT(that *AWSElasticBlockStoreVolumeSource) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.VolumeID != that.VolumeID { + return false + } + if this.FsType != that.FsType { + return false + } + if this.Partition != that.Partition { + return false + } + if this.ReadOnly != that.ReadOnly { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *AWSElasticBlockStoreVolumeSource) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*AWSElasticBlockStoreVolumeSource) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *AzureFilePersistentVolumeSource) EqualVT(that *AzureFilePersistentVolumeSource) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.SecretName != that.SecretName { + return false + } + if this.ShareName != that.ShareName { + return false + } + if this.ReadOnly != that.ReadOnly { + return false + } + if this.SecretNamespace != that.SecretNamespace { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *AzureFilePersistentVolumeSource) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*AzureFilePersistentVolumeSource) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *AzureDiskVolumeSource) EqualVT(that *AzureDiskVolumeSource) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.DiskName != that.DiskName { + return false + } + if this.DiskURI != that.DiskURI { + return false + } + if this.CachingMode != that.CachingMode { + return false + } + if this.FsType != that.FsType { + return false + } + if this.ReadOnly != that.ReadOnly { + return false + } + if this.Kind != that.Kind { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *AzureDiskVolumeSource) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*AzureDiskVolumeSource) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *CSIVolumeSource) EqualVT(that *CSIVolumeSource) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.Driver != that.Driver { + return false + } + if this.VolumeHandle != that.VolumeHandle { + return false + } + if this.ReadOnly != that.ReadOnly { + return false + } + if this.FsType != that.FsType { + return false + } + if len(this.VolumeAttributes) != len(that.VolumeAttributes) { + return false + } + for i, vx := range this.VolumeAttributes { + vy, ok := that.VolumeAttributes[i] + if !ok { + return false + } + if vx != vy { + return false + } + } + if !this.ControllerPublishSecretRef.EqualVT(that.ControllerPublishSecretRef) { + return false + } + if !this.NodeStageSecretRef.EqualVT(that.NodeStageSecretRef) { + return false + } + if !this.NodePublishSecretRef.EqualVT(that.NodePublishSecretRef) { + return false + } + if !this.ControllerExpandSecretRef.EqualVT(that.ControllerExpandSecretRef) { + return false + } + if !this.NodeExpandSecretRef.EqualVT(that.NodeExpandSecretRef) { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *CSIVolumeSource) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*CSIVolumeSource) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *SecretReference) EqualVT(that *SecretReference) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.Name != that.Name { + return false + } + if this.Namespace != that.Namespace { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *SecretReference) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*SecretReference) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *PersistentVolumeStatus) EqualVT(that *PersistentVolumeStatus) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.Phase != that.Phase { + return false + } + if this.Message != that.Message { + return false + } + if this.Reason != that.Reason { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *PersistentVolumeStatus) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*PersistentVolumeStatus) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *NodeSelectorTerm) EqualVT(that *NodeSelectorTerm) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if len(this.MatchExpressions) != len(that.MatchExpressions) { + return false + } + for i, vx := range this.MatchExpressions { + vy := that.MatchExpressions[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &LabelSelectorRequirement{} + } + if q == nil { + q = &LabelSelectorRequirement{} + } + if !p.EqualVT(q) { + return false + } + } + } + if len(this.MatchFields) != len(that.MatchFields) { + return false + } + for i, vx := range this.MatchFields { + vy := that.MatchFields[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &LabelSelectorRequirement{} + } + if q == nil { + q = &LabelSelectorRequirement{} + } + if !p.EqualVT(q) { + return false + } + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *NodeSelectorTerm) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*NodeSelectorTerm) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *PersistentVolumeClaim) EqualVT(that *PersistentVolumeClaim) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if !this.Metadata.EqualVT(that.Metadata) { + return false + } + if !this.Spec.EqualVT(that.Spec) { + return false + } + if !this.Status.EqualVT(that.Status) { + return false + } + if string(this.Yaml) != string(that.Yaml) { + return false + } + if len(this.Tags) != len(that.Tags) { + return false + } + for i, vx := range this.Tags { + vy := that.Tags[i] + if vx != vy { + return false + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *PersistentVolumeClaim) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*PersistentVolumeClaim) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *PersistentVolumeClaimStatus) EqualVT(that *PersistentVolumeClaimStatus) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.Phase != that.Phase { + return false + } + if len(this.AccessModes) != len(that.AccessModes) { + return false + } + for i, vx := range this.AccessModes { + vy := that.AccessModes[i] + if vx != vy { + return false + } + } + if len(this.Capacity) != len(that.Capacity) { + return false + } + for i, vx := range this.Capacity { + vy, ok := that.Capacity[i] + if !ok { + return false + } + if vx != vy { + return false + } + } + if len(this.Conditions) != len(that.Conditions) { + return false + } + for i, vx := range this.Conditions { + vy := that.Conditions[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &PersistentVolumeClaimCondition{} + } + if q == nil { + q = &PersistentVolumeClaimCondition{} + } + if !p.EqualVT(q) { + return false + } + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *PersistentVolumeClaimStatus) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*PersistentVolumeClaimStatus) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *PersistentVolumeClaimSpec) EqualVT(that *PersistentVolumeClaimSpec) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if len(this.AccessModes) != len(that.AccessModes) { + return false + } + for i, vx := range this.AccessModes { + vy := that.AccessModes[i] + if vx != vy { + return false + } + } + if !this.Resources.EqualVT(that.Resources) { + return false + } + if this.VolumeName != that.VolumeName { + return false + } + if len(this.Selector) != len(that.Selector) { + return false + } + for i, vx := range this.Selector { + vy := that.Selector[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &LabelSelectorRequirement{} + } + if q == nil { + q = &LabelSelectorRequirement{} + } + if !p.EqualVT(q) { + return false + } + } + } + if this.StorageClassName != that.StorageClassName { + return false + } + if this.VolumeMode != that.VolumeMode { + return false + } + if !this.DataSource.EqualVT(that.DataSource) { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *PersistentVolumeClaimSpec) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*PersistentVolumeClaimSpec) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *TypedLocalObjectReference) EqualVT(that *TypedLocalObjectReference) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.ApiGroup != that.ApiGroup { + return false + } + if this.Kind != that.Kind { + return false + } + if this.Name != that.Name { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *TypedLocalObjectReference) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*TypedLocalObjectReference) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *PersistentVolumeClaimCondition) EqualVT(that *PersistentVolumeClaimCondition) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.Type != that.Type { + return false + } + if this.Status != that.Status { + return false + } + if this.LastProbeTime != that.LastProbeTime { + return false + } + if this.LastTransitionTime != that.LastTransitionTime { + return false + } + if this.Reason != that.Reason { + return false + } + if this.Message != that.Message { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *PersistentVolumeClaimCondition) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*PersistentVolumeClaimCondition) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *PolicyRule) EqualVT(that *PolicyRule) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if len(this.Verbs) != len(that.Verbs) { + return false + } + for i, vx := range this.Verbs { + vy := that.Verbs[i] + if vx != vy { + return false + } + } + if len(this.ApiGroups) != len(that.ApiGroups) { + return false + } + for i, vx := range this.ApiGroups { + vy := that.ApiGroups[i] + if vx != vy { + return false + } + } + if len(this.Resources) != len(that.Resources) { + return false + } + for i, vx := range this.Resources { + vy := that.Resources[i] + if vx != vy { + return false + } + } + if len(this.ResourceNames) != len(that.ResourceNames) { + return false + } + for i, vx := range this.ResourceNames { + vy := that.ResourceNames[i] + if vx != vy { + return false + } + } + if len(this.NonResourceURLs) != len(that.NonResourceURLs) { + return false + } + for i, vx := range this.NonResourceURLs { + vy := that.NonResourceURLs[i] + if vx != vy { + return false + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *PolicyRule) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*PolicyRule) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *Subject) EqualVT(that *Subject) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.Kind != that.Kind { + return false + } + if this.ApiGroup != that.ApiGroup { + return false + } + if this.Name != that.Name { + return false + } + if this.Namespace != that.Namespace { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *Subject) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*Subject) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *Role) EqualVT(that *Role) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if !this.Metadata.EqualVT(that.Metadata) { + return false + } + if len(this.Rules) != len(that.Rules) { + return false + } + for i, vx := range this.Rules { + vy := that.Rules[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &PolicyRule{} + } + if q == nil { + q = &PolicyRule{} + } + if !p.EqualVT(q) { + return false + } + } + } + if string(this.Yaml) != string(that.Yaml) { + return false + } + if len(this.Tags) != len(that.Tags) { + return false + } + for i, vx := range this.Tags { + vy := that.Tags[i] + if vx != vy { + return false + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *Role) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*Role) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *RoleBinding) EqualVT(that *RoleBinding) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if !this.Metadata.EqualVT(that.Metadata) { + return false + } + if len(this.Subjects) != len(that.Subjects) { + return false + } + for i, vx := range this.Subjects { + vy := that.Subjects[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &Subject{} + } + if q == nil { + q = &Subject{} + } + if !p.EqualVT(q) { + return false + } + } + } + if !this.RoleRef.EqualVT(that.RoleRef) { + return false + } + if string(this.Yaml) != string(that.Yaml) { + return false + } + if len(this.Tags) != len(that.Tags) { + return false + } + for i, vx := range this.Tags { + vy := that.Tags[i] + if vx != vy { + return false + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *RoleBinding) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*RoleBinding) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *ClusterRole) EqualVT(that *ClusterRole) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if !this.Metadata.EqualVT(that.Metadata) { + return false + } + if len(this.Rules) != len(that.Rules) { + return false + } + for i, vx := range this.Rules { + vy := that.Rules[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &PolicyRule{} + } + if q == nil { + q = &PolicyRule{} + } + if !p.EqualVT(q) { + return false + } + } + } + if len(this.AggregationRules) != len(that.AggregationRules) { + return false + } + for i, vx := range this.AggregationRules { + vy := that.AggregationRules[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &LabelSelectorRequirement{} + } + if q == nil { + q = &LabelSelectorRequirement{} + } + if !p.EqualVT(q) { + return false + } + } + } + if string(this.Yaml) != string(that.Yaml) { + return false + } + if len(this.Tags) != len(that.Tags) { + return false + } + for i, vx := range this.Tags { + vy := that.Tags[i] + if vx != vy { + return false + } + } + if !this.Metrics.EqualVT(that.Metrics) { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *ClusterRole) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*ClusterRole) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *ClusterRoleBinding) EqualVT(that *ClusterRoleBinding) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if !this.Metadata.EqualVT(that.Metadata) { + return false + } + if len(this.Subjects) != len(that.Subjects) { + return false + } + for i, vx := range this.Subjects { + vy := that.Subjects[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &Subject{} + } + if q == nil { + q = &Subject{} + } + if !p.EqualVT(q) { + return false + } + } + } + if !this.RoleRef.EqualVT(that.RoleRef) { + return false + } + if string(this.Yaml) != string(that.Yaml) { + return false + } + if len(this.Tags) != len(that.Tags) { + return false + } + for i, vx := range this.Tags { + vy := that.Tags[i] + if vx != vy { + return false + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *ClusterRoleBinding) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*ClusterRoleBinding) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *ServiceAccount) EqualVT(that *ServiceAccount) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if !this.Metadata.EqualVT(that.Metadata) { + return false + } + if len(this.Secrets) != len(that.Secrets) { + return false + } + for i, vx := range this.Secrets { + vy := that.Secrets[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &ObjectReference{} + } + if q == nil { + q = &ObjectReference{} + } + if !p.EqualVT(q) { + return false + } + } + } + if len(this.ImagePullSecrets) != len(that.ImagePullSecrets) { + return false + } + for i, vx := range this.ImagePullSecrets { + vy := that.ImagePullSecrets[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &TypedLocalObjectReference{} + } + if q == nil { + q = &TypedLocalObjectReference{} + } + if !p.EqualVT(q) { + return false + } + } + } + if this.AutomountServiceAccountToken != that.AutomountServiceAccountToken { + return false + } + if string(this.Yaml) != string(that.Yaml) { + return false + } + if len(this.Tags) != len(that.Tags) { + return false + } + for i, vx := range this.Tags { + vy := that.Tags[i] + if vx != vy { + return false + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *ServiceAccount) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*ServiceAccount) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *IngressServiceBackend) EqualVT(that *IngressServiceBackend) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.ServiceName != that.ServiceName { + return false + } + if this.PortName != that.PortName { + return false + } + if this.PortNumber != that.PortNumber { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *IngressServiceBackend) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*IngressServiceBackend) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *IngressBackend) EqualVT(that *IngressBackend) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if !this.Service.EqualVT(that.Service) { + return false + } + if !this.Resource.EqualVT(that.Resource) { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *IngressBackend) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*IngressBackend) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *IngressTLS) EqualVT(that *IngressTLS) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if len(this.Hosts) != len(that.Hosts) { + return false + } + for i, vx := range this.Hosts { + vy := that.Hosts[i] + if vx != vy { + return false + } + } + if this.SecretName != that.SecretName { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *IngressTLS) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*IngressTLS) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *HTTPIngressPath) EqualVT(that *HTTPIngressPath) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.Path != that.Path { + return false + } + if !this.Backend.EqualVT(that.Backend) { + return false + } + if this.PathType != that.PathType { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *HTTPIngressPath) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*HTTPIngressPath) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *IngressRule) EqualVT(that *IngressRule) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.Host != that.Host { + return false + } + if len(this.HttpPaths) != len(that.HttpPaths) { + return false + } + for i, vx := range this.HttpPaths { + vy := that.HttpPaths[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &HTTPIngressPath{} + } + if q == nil { + q = &HTTPIngressPath{} + } + if !p.EqualVT(q) { + return false + } + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *IngressRule) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*IngressRule) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *IngressSpec) EqualVT(that *IngressSpec) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if !this.DefaultBackend.EqualVT(that.DefaultBackend) { + return false + } + if len(this.Tls) != len(that.Tls) { + return false + } + for i, vx := range this.Tls { + vy := that.Tls[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &IngressTLS{} + } + if q == nil { + q = &IngressTLS{} + } + if !p.EqualVT(q) { + return false + } + } + } + if len(this.Rules) != len(that.Rules) { + return false + } + for i, vx := range this.Rules { + vy := that.Rules[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &IngressRule{} + } + if q == nil { + q = &IngressRule{} + } + if !p.EqualVT(q) { + return false + } + } + } + if this.IngressClassName != that.IngressClassName { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *IngressSpec) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*IngressSpec) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *PortStatus) EqualVT(that *PortStatus) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.Port != that.Port { + return false + } + if this.Protocol != that.Protocol { + return false + } + if this.Error != that.Error { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *PortStatus) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*PortStatus) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *LoadBalancerIngress) EqualVT(that *LoadBalancerIngress) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.Ip != that.Ip { + return false + } + if this.Hostname != that.Hostname { + return false + } + if len(this.Ports) != len(that.Ports) { + return false + } + for i, vx := range this.Ports { + vy := that.Ports[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &PortStatus{} + } + if q == nil { + q = &PortStatus{} + } + if !p.EqualVT(q) { + return false + } + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *LoadBalancerIngress) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*LoadBalancerIngress) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *IngressStatus) EqualVT(that *IngressStatus) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if len(this.Ingress) != len(that.Ingress) { + return false + } + for i, vx := range this.Ingress { + vy := that.Ingress[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &LoadBalancerIngress{} + } + if q == nil { + q = &LoadBalancerIngress{} + } + if !p.EqualVT(q) { + return false + } + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *IngressStatus) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*IngressStatus) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *Ingress) EqualVT(that *Ingress) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if !this.Metadata.EqualVT(that.Metadata) { + return false + } + if !this.Spec.EqualVT(that.Spec) { + return false + } + if !this.Status.EqualVT(that.Status) { + return false + } + if string(this.Yaml) != string(that.Yaml) { + return false + } + if len(this.Tags) != len(that.Tags) { + return false + } + for i, vx := range this.Tags { + vy := that.Tags[i] + if vx != vy { + return false + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *Ingress) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*Ingress) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *KafkaRequestHeader) EqualVT(that *KafkaRequestHeader) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.RequestType != that.RequestType { + return false + } + if this.RequestVersion != that.RequestVersion { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *KafkaRequestHeader) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*KafkaRequestHeader) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *KafkaAggregation) EqualVT(that *KafkaAggregation) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if !this.Header.EqualVT(that.Header) { + return false + } + if this.Topic != that.Topic { + return false + } + if this.Count != that.Count { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *KafkaAggregation) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*KafkaAggregation) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *DataStreamsAggregations_TopicStats) EqualVT(that *DataStreamsAggregations_TopicStats) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.Topic != that.Topic { + return false + } + if this.Count != that.Count { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *DataStreamsAggregations_TopicStats) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*DataStreamsAggregations_TopicStats) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *DataStreamsAggregations_KafkaProduceAggregations) EqualVT(that *DataStreamsAggregations_KafkaProduceAggregations) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if len(this.Stats) != len(that.Stats) { + return false + } + for i, vx := range this.Stats { + vy := that.Stats[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &DataStreamsAggregations_TopicStats{} + } + if q == nil { + q = &DataStreamsAggregations_TopicStats{} + } + if !p.EqualVT(q) { + return false + } + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *DataStreamsAggregations_KafkaProduceAggregations) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*DataStreamsAggregations_KafkaProduceAggregations) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *DataStreamsAggregations_KafkaFetchAggregations) EqualVT(that *DataStreamsAggregations_KafkaFetchAggregations) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if len(this.Stats) != len(that.Stats) { + return false + } + for i, vx := range this.Stats { + vy := that.Stats[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &DataStreamsAggregations_TopicStats{} + } + if q == nil { + q = &DataStreamsAggregations_TopicStats{} + } + if !p.EqualVT(q) { + return false + } + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *DataStreamsAggregations_KafkaFetchAggregations) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*DataStreamsAggregations_KafkaFetchAggregations) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *DataStreamsAggregations) EqualVT(that *DataStreamsAggregations) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if !this.KafkaProduceAggregations.EqualVT(that.KafkaProduceAggregations) { + return false + } + if !this.KafkaFetchAggregations.EqualVT(that.KafkaFetchAggregations) { + return false + } + if len(this.KafkaAggregations) != len(that.KafkaAggregations) { + return false + } + for i, vx := range this.KafkaAggregations { + vy := that.KafkaAggregations[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &KafkaAggregation{} + } + if q == nil { + q = &KafkaAggregation{} + } + if !p.EqualVT(q) { + return false + } + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *DataStreamsAggregations) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*DataStreamsAggregations) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *HTTPAggregations) EqualVT(that *HTTPAggregations) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if len(this.EndpointAggregations) != len(that.EndpointAggregations) { + return false + } + for i, vx := range this.EndpointAggregations { + vy := that.EndpointAggregations[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &HTTPStats{} + } + if q == nil { + q = &HTTPStats{} + } + if !p.EqualVT(q) { + return false + } + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *HTTPAggregations) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*HTTPAggregations) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *HTTP2Aggregations) EqualVT(that *HTTP2Aggregations) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if len(this.EndpointAggregations) != len(that.EndpointAggregations) { + return false + } + for i, vx := range this.EndpointAggregations { + vy := that.EndpointAggregations[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &HTTPStats{} + } + if q == nil { + q = &HTTPStats{} + } + if !p.EqualVT(q) { + return false + } + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *HTTP2Aggregations) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*HTTP2Aggregations) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *HTTPStats_Data) EqualVT(that *HTTPStats_Data) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.Count != that.Count { + return false + } + if string(this.Latencies) != string(that.Latencies) { + return false + } + if this.FirstLatencySample != that.FirstLatencySample { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *HTTPStats_Data) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*HTTPStats_Data) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *HTTPStats) EqualVT(that *HTTPStats) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if len(this.StatsByResponseStatus) != len(that.StatsByResponseStatus) { + return false + } + for i, vx := range this.StatsByResponseStatus { + vy := that.StatsByResponseStatus[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &HTTPStats_Data{} + } + if q == nil { + q = &HTTPStats_Data{} + } + if !p.EqualVT(q) { + return false + } + } + } + if len(this.StatsByStatusCode) != len(that.StatsByStatusCode) { + return false + } + for i, vx := range this.StatsByStatusCode { + vy, ok := that.StatsByStatusCode[i] + if !ok { + return false + } + if p, q := vx, vy; p != q { + if p == nil { + p = &HTTPStats_Data{} + } + if q == nil { + q = &HTTPStats_Data{} + } + if !p.EqualVT(q) { + return false + } + } + } + if this.Path != that.Path { + return false + } + if this.Method != that.Method { + return false + } + if this.FullPath != that.FullPath { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *HTTPStats) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*HTTPStats) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *DNSDatabaseEntry) EqualVT(that *DNSDatabaseEntry) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if len(this.NameOffsets) != len(that.NameOffsets) { + return false + } + for i, vx := range this.NameOffsets { + vy := that.NameOffsets[i] + if vx != vy { + return false + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *DNSDatabaseEntry) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*DNSDatabaseEntry) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *ResourceList) EqualVT(that *ResourceList) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if len(this.MetricValues) != len(that.MetricValues) { + return false + } + for i, vx := range this.MetricValues { + vy, ok := that.MetricValues[i] + if !ok { + return false + } + if vx != vy { + return false + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *ResourceList) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*ResourceList) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *VerticalPodAutoscaler) EqualVT(that *VerticalPodAutoscaler) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if !this.Metadata.EqualVT(that.Metadata) { + return false + } + if !this.Spec.EqualVT(that.Spec) { + return false + } + if !this.Status.EqualVT(that.Status) { + return false + } + if string(this.Yaml) != string(that.Yaml) { + return false + } + if len(this.Tags) != len(that.Tags) { + return false + } + for i, vx := range this.Tags { + vy := that.Tags[i] + if vx != vy { + return false + } + } + if len(this.Conditions) != len(that.Conditions) { + return false + } + for i, vx := range this.Conditions { + vy := that.Conditions[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &VerticalPodAutoscalerCondition{} + } + if q == nil { + q = &VerticalPodAutoscalerCondition{} + } + if !p.EqualVT(q) { + return false + } + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *VerticalPodAutoscaler) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*VerticalPodAutoscaler) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *VerticalPodAutoscalerCondition) EqualVT(that *VerticalPodAutoscalerCondition) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.Type != that.Type { + return false + } + if this.Status != that.Status { + return false + } + if this.LastTransitionTime != that.LastTransitionTime { + return false + } + if this.Reason != that.Reason { + return false + } + if this.Message != that.Message { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *VerticalPodAutoscalerCondition) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*VerticalPodAutoscalerCondition) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *VerticalPodAutoscalerSpec) EqualVT(that *VerticalPodAutoscalerSpec) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if !this.Target.EqualVT(that.Target) { + return false + } + if this.UpdateMode != that.UpdateMode { + return false + } + if len(this.ResourcePolicies) != len(that.ResourcePolicies) { + return false + } + for i, vx := range this.ResourcePolicies { + vy := that.ResourcePolicies[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &ContainerResourcePolicy{} + } + if q == nil { + q = &ContainerResourcePolicy{} + } + if !p.EqualVT(q) { + return false + } + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *VerticalPodAutoscalerSpec) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*VerticalPodAutoscalerSpec) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *VerticalPodAutoscalerTarget) EqualVT(that *VerticalPodAutoscalerTarget) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.Kind != that.Kind { + return false + } + if this.Name != that.Name { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *VerticalPodAutoscalerTarget) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*VerticalPodAutoscalerTarget) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *ContainerResourcePolicy) EqualVT(that *ContainerResourcePolicy) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.ContainerName != that.ContainerName { + return false + } + if this.Mode != that.Mode { + return false + } + if !this.MinAllowed.EqualVT(that.MinAllowed) { + return false + } + if !this.MaxAllowed.EqualVT(that.MaxAllowed) { + return false + } + if len(this.ControlledResource) != len(that.ControlledResource) { + return false + } + for i, vx := range this.ControlledResource { + vy := that.ControlledResource[i] + if vx != vy { + return false + } + } + if this.ControlledValues != that.ControlledValues { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *ContainerResourcePolicy) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*ContainerResourcePolicy) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *VerticalPodAutoscalerStatus) EqualVT(that *VerticalPodAutoscalerStatus) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.LastRecommendedDate != that.LastRecommendedDate { + return false + } + if len(this.Recommendations) != len(that.Recommendations) { + return false + } + for i, vx := range this.Recommendations { + vy := that.Recommendations[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &ContainerRecommendation{} + } + if q == nil { + q = &ContainerRecommendation{} + } + if !p.EqualVT(q) { + return false + } + } + } + if len(this.Conditions) != len(that.Conditions) { + return false + } + for i, vx := range this.Conditions { + vy := that.Conditions[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &VPACondition{} + } + if q == nil { + q = &VPACondition{} + } + if !p.EqualVT(q) { + return false + } + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *VerticalPodAutoscalerStatus) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*VerticalPodAutoscalerStatus) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *ContainerRecommendation) EqualVT(that *ContainerRecommendation) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.ContainerName != that.ContainerName { + return false + } + if !this.Target.EqualVT(that.Target) { + return false + } + if !this.LowerBound.EqualVT(that.LowerBound) { + return false + } + if !this.UpperBound.EqualVT(that.UpperBound) { + return false + } + if !this.UncappedTarget.EqualVT(that.UncappedTarget) { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *ContainerRecommendation) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*ContainerRecommendation) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *VPACondition) EqualVT(that *VPACondition) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.ConditionType != that.ConditionType { + return false + } + if this.ConditionStatus != that.ConditionStatus { + return false + } + if this.LastTransitionTime != that.LastTransitionTime { + return false + } + if this.Reason != that.Reason { + return false + } + if this.Message != that.Message { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *VPACondition) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*VPACondition) + if !ok { + return false + } + return this.EqualVT(that) +} +func (m *ResCollector_Header) 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 *ResCollector_Header) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *ResCollector_Header) 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.Type != 0 { + i = encodeVarint(dAtA, i, uint64(m.Type)) + i-- + dAtA[i] = 0x20 + } + return len(dAtA) - i, nil +} + +func (m *ResCollector) 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 *ResCollector) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *ResCollector) 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.Status != nil { + size, err := m.Status.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x1a + } + if len(m.Message) > 0 { + i -= len(m.Message) + copy(dAtA[i:], m.Message) + i = encodeVarint(dAtA, i, uint64(len(m.Message))) + i-- + dAtA[i] = 0x12 + } + if m.Header != nil { + size, err := m.Header.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *CollectorProc) 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 *CollectorProc) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *CollectorProc) 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 vtmsg, ok := m.Hints.(interface { + MarshalToSizedBufferVT([]byte) (int, error) + }); ok { + size, err := vtmsg.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + } + if m.ContainerHostType != 0 { + i = encodeVarint(dAtA, i, uint64(m.ContainerHostType)) + i-- + dAtA[i] = 0x60 + } + if len(m.NetworkId) > 0 { + i -= len(m.NetworkId) + copy(dAtA[i:], m.NetworkId) + i = encodeVarint(dAtA, i, uint64(len(m.NetworkId))) + i-- + dAtA[i] = 0x5a + } + if len(m.Containers) > 0 { + for iNdEx := len(m.Containers) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Containers[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x52 + } + } + if m.GroupSize != 0 { + i = encodeVarint(dAtA, i, uint64(m.GroupSize)) + i-- + dAtA[i] = 0x38 + } + if m.GroupId != 0 { + i = encodeVarint(dAtA, i, uint64(m.GroupId)) + i-- + dAtA[i] = 0x30 + } + if m.Info != nil { + size, err := m.Info.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x2a + } + if m.Host != nil { + size, err := m.Host.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x22 + } + if len(m.Processes) > 0 { + for iNdEx := len(m.Processes) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Processes[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x1a + } + } + if len(m.HostName) > 0 { + i -= len(m.HostName) + copy(dAtA[i:], m.HostName) + i = encodeVarint(dAtA, i, uint64(len(m.HostName))) + i-- + dAtA[i] = 0x12 + } + return len(dAtA) - i, nil +} + +func (m *CollectorProc_HintMask) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *CollectorProc_HintMask) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + i := len(dAtA) + i = encodeVarint(dAtA, i, uint64(m.HintMask)) + i-- + dAtA[i] = 0x70 + return len(dAtA) - i, nil +} +func (m *CollectorProcDiscovery) 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 *CollectorProcDiscovery) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *CollectorProcDiscovery) 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.Host != nil { + size, err := m.Host.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x2a + } + if len(m.ProcessDiscoveries) > 0 { + for iNdEx := len(m.ProcessDiscoveries) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.ProcessDiscoveries[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x22 + } + } + if m.GroupSize != 0 { + i = encodeVarint(dAtA, i, uint64(m.GroupSize)) + i-- + dAtA[i] = 0x18 + } + if m.GroupId != 0 { + i = encodeVarint(dAtA, i, uint64(m.GroupId)) + i-- + dAtA[i] = 0x10 + } + if len(m.HostName) > 0 { + i -= len(m.HostName) + copy(dAtA[i:], m.HostName) + i = encodeVarint(dAtA, i, uint64(len(m.HostName))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *CollectorRealTime) 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 *CollectorRealTime) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *CollectorRealTime) 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.ContainerHostType != 0 { + i = encodeVarint(dAtA, i, uint64(m.ContainerHostType)) + i-- + dAtA[i] = 0x58 + } + if len(m.ContainerStats) > 0 { + for iNdEx := len(m.ContainerStats) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.ContainerStats[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x52 + } + } + if m.TotalMemory != 0 { + i = encodeVarint(dAtA, i, uint64(m.TotalMemory)) + i-- + dAtA[i] = 0x48 + } + if m.NumCpus != 0 { + i = encodeVarint(dAtA, i, uint64(m.NumCpus)) + i-- + dAtA[i] = 0x40 + } + if m.GroupSize != 0 { + i = encodeVarint(dAtA, i, uint64(m.GroupSize)) + i-- + dAtA[i] = 0x38 + } + if m.GroupId != 0 { + i = encodeVarint(dAtA, i, uint64(m.GroupId)) + i-- + dAtA[i] = 0x30 + } + if m.OrgId != 0 { + i = encodeVarint(dAtA, i, uint64(m.OrgId)) + i-- + dAtA[i] = 0x28 + } + if m.HostId != 0 { + i = encodeVarint(dAtA, i, uint64(m.HostId)) + i-- + dAtA[i] = 0x20 + } + if len(m.Stats) > 0 { + for iNdEx := len(m.Stats) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Stats[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x1a + } + } + if len(m.HostName) > 0 { + i -= len(m.HostName) + copy(dAtA[i:], m.HostName) + i = encodeVarint(dAtA, i, uint64(len(m.HostName))) + i-- + dAtA[i] = 0x12 + } + return len(dAtA) - i, nil +} + +func (m *CollectorContainer) 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 *CollectorContainer) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *CollectorContainer) 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.NetworkId) > 0 { + i -= len(m.NetworkId) + copy(dAtA[i:], m.NetworkId) + i = encodeVarint(dAtA, i, uint64(len(m.NetworkId))) + i-- + dAtA[i] = 0x5a + } + if m.ContainerHostType != 0 { + i = encodeVarint(dAtA, i, uint64(m.ContainerHostType)) + i-- + dAtA[i] = 0x48 + } + if m.Host != nil { + size, err := m.Host.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x42 + } + if m.GroupSize != 0 { + i = encodeVarint(dAtA, i, uint64(m.GroupSize)) + i-- + dAtA[i] = 0x28 + } + if m.GroupId != 0 { + i = encodeVarint(dAtA, i, uint64(m.GroupId)) + i-- + dAtA[i] = 0x20 + } + if len(m.Containers) > 0 { + for iNdEx := len(m.Containers) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Containers[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x1a + } + } + if m.Info != nil { + size, err := m.Info.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 + } + if len(m.HostName) > 0 { + i -= len(m.HostName) + copy(dAtA[i:], m.HostName) + i = encodeVarint(dAtA, i, uint64(len(m.HostName))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *CollectorContainerRealTime) 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 *CollectorContainerRealTime) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *CollectorContainerRealTime) 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.ContainerHostType != 0 { + i = encodeVarint(dAtA, i, uint64(m.ContainerHostType)) + i-- + dAtA[i] = 0x40 + } + if m.GroupSize != 0 { + i = encodeVarint(dAtA, i, uint64(m.GroupSize)) + i-- + dAtA[i] = 0x38 + } + if m.GroupId != 0 { + i = encodeVarint(dAtA, i, uint64(m.GroupId)) + i-- + dAtA[i] = 0x30 + } + if m.HostId != 0 { + i = encodeVarint(dAtA, i, uint64(m.HostId)) + i-- + dAtA[i] = 0x28 + } + if m.TotalMemory != 0 { + i = encodeVarint(dAtA, i, uint64(m.TotalMemory)) + i-- + dAtA[i] = 0x20 + } + if m.NumCpus != 0 { + i = encodeVarint(dAtA, i, uint64(m.NumCpus)) + i-- + dAtA[i] = 0x18 + } + if len(m.Stats) > 0 { + for iNdEx := len(m.Stats) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Stats[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 + } + } + if len(m.HostName) > 0 { + i -= len(m.HostName) + copy(dAtA[i:], m.HostName) + i = encodeVarint(dAtA, i, uint64(len(m.HostName))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *CollectorReqStatus) 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 *CollectorReqStatus) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *CollectorReqStatus) 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.HostName) > 0 { + i -= len(m.HostName) + copy(dAtA[i:], m.HostName) + i = encodeVarint(dAtA, i, uint64(len(m.HostName))) + i-- + dAtA[i] = 0x12 + } + return len(dAtA) - i, nil +} + +func (m *CollectorPod) 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 *CollectorPod) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *CollectorPod) 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.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] = 0x42 + } + } + if m.Host != nil { + size, err := m.Host.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x3a + } + if len(m.Pods) > 0 { + for iNdEx := len(m.Pods) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Pods[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x32 + } + } + if m.GroupSize != 0 { + i = encodeVarint(dAtA, i, uint64(m.GroupSize)) + i-- + dAtA[i] = 0x28 + } + if m.GroupId != 0 { + i = encodeVarint(dAtA, i, uint64(m.GroupId)) + i-- + dAtA[i] = 0x20 + } + if len(m.ClusterId) > 0 { + i -= len(m.ClusterId) + copy(dAtA[i:], m.ClusterId) + i = encodeVarint(dAtA, i, uint64(len(m.ClusterId))) + i-- + dAtA[i] = 0x1a + } + if len(m.ClusterName) > 0 { + i -= len(m.ClusterName) + copy(dAtA[i:], m.ClusterName) + i = encodeVarint(dAtA, i, uint64(len(m.ClusterName))) + i-- + dAtA[i] = 0x12 + } + if len(m.HostName) > 0 { + i -= len(m.HostName) + copy(dAtA[i:], m.HostName) + i = encodeVarint(dAtA, i, uint64(len(m.HostName))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *CollectorReplicaSet) 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 *CollectorReplicaSet) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *CollectorReplicaSet) 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.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 + } + } + if len(m.ReplicaSets) > 0 { + for iNdEx := len(m.ReplicaSets) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.ReplicaSets[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x2a + } + } + if m.GroupSize != 0 { + i = encodeVarint(dAtA, i, uint64(m.GroupSize)) + i-- + dAtA[i] = 0x20 + } + if m.GroupId != 0 { + i = encodeVarint(dAtA, i, uint64(m.GroupId)) + i-- + dAtA[i] = 0x18 + } + if len(m.ClusterId) > 0 { + i -= len(m.ClusterId) + copy(dAtA[i:], m.ClusterId) + i = encodeVarint(dAtA, i, uint64(len(m.ClusterId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ClusterName) > 0 { + i -= len(m.ClusterName) + copy(dAtA[i:], m.ClusterName) + i = encodeVarint(dAtA, i, uint64(len(m.ClusterName))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *CollectorDeployment) 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 *CollectorDeployment) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *CollectorDeployment) 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.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 + } + } + if len(m.Deployments) > 0 { + for iNdEx := len(m.Deployments) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Deployments[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x2a + } + } + if m.GroupSize != 0 { + i = encodeVarint(dAtA, i, uint64(m.GroupSize)) + i-- + dAtA[i] = 0x20 + } + if m.GroupId != 0 { + i = encodeVarint(dAtA, i, uint64(m.GroupId)) + i-- + dAtA[i] = 0x18 + } + if len(m.ClusterId) > 0 { + i -= len(m.ClusterId) + copy(dAtA[i:], m.ClusterId) + i = encodeVarint(dAtA, i, uint64(len(m.ClusterId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ClusterName) > 0 { + i -= len(m.ClusterName) + copy(dAtA[i:], m.ClusterName) + i = encodeVarint(dAtA, i, uint64(len(m.ClusterName))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *CollectorService) 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 *CollectorService) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *CollectorService) 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.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 + } + } + if len(m.Services) > 0 { + for iNdEx := len(m.Services) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Services[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x2a + } + } + if m.GroupSize != 0 { + i = encodeVarint(dAtA, i, uint64(m.GroupSize)) + i-- + dAtA[i] = 0x20 + } + if m.GroupId != 0 { + i = encodeVarint(dAtA, i, uint64(m.GroupId)) + i-- + dAtA[i] = 0x18 + } + if len(m.ClusterId) > 0 { + i -= len(m.ClusterId) + copy(dAtA[i:], m.ClusterId) + i = encodeVarint(dAtA, i, uint64(len(m.ClusterId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ClusterName) > 0 { + i -= len(m.ClusterName) + copy(dAtA[i:], m.ClusterName) + i = encodeVarint(dAtA, i, uint64(len(m.ClusterName))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *CollectorNode) 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 *CollectorNode) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *CollectorNode) 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.HostAliasMapping) > 0 { + for k := range m.HostAliasMapping { + v := m.HostAliasMapping[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.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 + } + } + if len(m.Nodes) > 0 { + for iNdEx := len(m.Nodes) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Nodes[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x2a + } + } + if m.GroupSize != 0 { + i = encodeVarint(dAtA, i, uint64(m.GroupSize)) + i-- + dAtA[i] = 0x20 + } + if m.GroupId != 0 { + i = encodeVarint(dAtA, i, uint64(m.GroupId)) + i-- + dAtA[i] = 0x18 + } + if len(m.ClusterId) > 0 { + i -= len(m.ClusterId) + copy(dAtA[i:], m.ClusterId) + i = encodeVarint(dAtA, i, uint64(len(m.ClusterId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ClusterName) > 0 { + i -= len(m.ClusterName) + copy(dAtA[i:], m.ClusterName) + i = encodeVarint(dAtA, i, uint64(len(m.ClusterName))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *CollectorCluster) 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 *CollectorCluster) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *CollectorCluster) 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.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 + } + } + if m.Cluster != nil { + size, err := m.Cluster.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x2a + } + if m.GroupSize != 0 { + i = encodeVarint(dAtA, i, uint64(m.GroupSize)) + i-- + dAtA[i] = 0x20 + } + if m.GroupId != 0 { + i = encodeVarint(dAtA, i, uint64(m.GroupId)) + i-- + dAtA[i] = 0x18 + } + if len(m.ClusterId) > 0 { + i -= len(m.ClusterId) + copy(dAtA[i:], m.ClusterId) + i = encodeVarint(dAtA, i, uint64(len(m.ClusterId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ClusterName) > 0 { + i -= len(m.ClusterName) + copy(dAtA[i:], m.ClusterName) + i = encodeVarint(dAtA, i, uint64(len(m.ClusterName))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *CollectorManifest) 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 *CollectorManifest) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *CollectorManifest) 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.Manifests) > 0 { + for iNdEx := len(m.Manifests) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Manifests[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x2a + } + } + if m.GroupSize != 0 { + i = encodeVarint(dAtA, i, uint64(m.GroupSize)) + i-- + dAtA[i] = 0x20 + } + if m.GroupId != 0 { + i = encodeVarint(dAtA, i, uint64(m.GroupId)) + i-- + dAtA[i] = 0x18 + } + if len(m.ClusterId) > 0 { + i -= len(m.ClusterId) + copy(dAtA[i:], m.ClusterId) + i = encodeVarint(dAtA, i, uint64(len(m.ClusterId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ClusterName) > 0 { + i -= len(m.ClusterName) + copy(dAtA[i:], m.ClusterName) + i = encodeVarint(dAtA, i, uint64(len(m.ClusterName))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *CollectorManifestCRD) 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 *CollectorManifestCRD) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *CollectorManifestCRD) 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.Manifest != nil { + size, err := m.Manifest.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *CollectorManifestCR) 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 *CollectorManifestCR) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *CollectorManifestCR) 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.Manifest != nil { + size, err := m.Manifest.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *CollectorNamespace) 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 *CollectorNamespace) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *CollectorNamespace) 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.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 + } + } + if len(m.Namespaces) > 0 { + for iNdEx := len(m.Namespaces) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Namespaces[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x2a + } + } + if m.GroupSize != 0 { + i = encodeVarint(dAtA, i, uint64(m.GroupSize)) + i-- + dAtA[i] = 0x20 + } + if m.GroupId != 0 { + i = encodeVarint(dAtA, i, uint64(m.GroupId)) + i-- + dAtA[i] = 0x18 + } + if len(m.ClusterId) > 0 { + i -= len(m.ClusterId) + copy(dAtA[i:], m.ClusterId) + i = encodeVarint(dAtA, i, uint64(len(m.ClusterId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ClusterName) > 0 { + i -= len(m.ClusterName) + copy(dAtA[i:], m.ClusterName) + i = encodeVarint(dAtA, i, uint64(len(m.ClusterName))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *CollectorJob) 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 *CollectorJob) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *CollectorJob) 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.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 + } + } + if len(m.Jobs) > 0 { + for iNdEx := len(m.Jobs) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Jobs[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x2a + } + } + if m.GroupSize != 0 { + i = encodeVarint(dAtA, i, uint64(m.GroupSize)) + i-- + dAtA[i] = 0x20 + } + if m.GroupId != 0 { + i = encodeVarint(dAtA, i, uint64(m.GroupId)) + i-- + dAtA[i] = 0x18 + } + if len(m.ClusterId) > 0 { + i -= len(m.ClusterId) + copy(dAtA[i:], m.ClusterId) + i = encodeVarint(dAtA, i, uint64(len(m.ClusterId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ClusterName) > 0 { + i -= len(m.ClusterName) + copy(dAtA[i:], m.ClusterName) + i = encodeVarint(dAtA, i, uint64(len(m.ClusterName))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *CollectorCronJob) 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 *CollectorCronJob) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *CollectorCronJob) 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.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 + } + } + if len(m.CronJobs) > 0 { + for iNdEx := len(m.CronJobs) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.CronJobs[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x2a + } + } + if m.GroupSize != 0 { + i = encodeVarint(dAtA, i, uint64(m.GroupSize)) + i-- + dAtA[i] = 0x20 + } + if m.GroupId != 0 { + i = encodeVarint(dAtA, i, uint64(m.GroupId)) + i-- + dAtA[i] = 0x18 + } + if len(m.ClusterId) > 0 { + i -= len(m.ClusterId) + copy(dAtA[i:], m.ClusterId) + i = encodeVarint(dAtA, i, uint64(len(m.ClusterId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ClusterName) > 0 { + i -= len(m.ClusterName) + copy(dAtA[i:], m.ClusterName) + i = encodeVarint(dAtA, i, uint64(len(m.ClusterName))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *CollectorDaemonSet) 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 *CollectorDaemonSet) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *CollectorDaemonSet) 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.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 + } + } + if len(m.DaemonSets) > 0 { + for iNdEx := len(m.DaemonSets) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.DaemonSets[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x2a + } + } + if m.GroupSize != 0 { + i = encodeVarint(dAtA, i, uint64(m.GroupSize)) + i-- + dAtA[i] = 0x20 + } + if m.GroupId != 0 { + i = encodeVarint(dAtA, i, uint64(m.GroupId)) + i-- + dAtA[i] = 0x18 + } + if len(m.ClusterId) > 0 { + i -= len(m.ClusterId) + copy(dAtA[i:], m.ClusterId) + i = encodeVarint(dAtA, i, uint64(len(m.ClusterId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ClusterName) > 0 { + i -= len(m.ClusterName) + copy(dAtA[i:], m.ClusterName) + i = encodeVarint(dAtA, i, uint64(len(m.ClusterName))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *CollectorStatefulSet) 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 *CollectorStatefulSet) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *CollectorStatefulSet) 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.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 + } + } + if len(m.StatefulSets) > 0 { + for iNdEx := len(m.StatefulSets) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.StatefulSets[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x2a + } + } + if m.GroupSize != 0 { + i = encodeVarint(dAtA, i, uint64(m.GroupSize)) + i-- + dAtA[i] = 0x20 + } + if m.GroupId != 0 { + i = encodeVarint(dAtA, i, uint64(m.GroupId)) + i-- + dAtA[i] = 0x18 + } + if len(m.ClusterId) > 0 { + i -= len(m.ClusterId) + copy(dAtA[i:], m.ClusterId) + i = encodeVarint(dAtA, i, uint64(len(m.ClusterId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ClusterName) > 0 { + i -= len(m.ClusterName) + copy(dAtA[i:], m.ClusterName) + i = encodeVarint(dAtA, i, uint64(len(m.ClusterName))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *CollectorPersistentVolume) 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 *CollectorPersistentVolume) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *CollectorPersistentVolume) 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.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 + } + } + if len(m.PersistentVolumes) > 0 { + for iNdEx := len(m.PersistentVolumes) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.PersistentVolumes[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x2a + } + } + if m.GroupSize != 0 { + i = encodeVarint(dAtA, i, uint64(m.GroupSize)) + i-- + dAtA[i] = 0x20 + } + if m.GroupId != 0 { + i = encodeVarint(dAtA, i, uint64(m.GroupId)) + i-- + dAtA[i] = 0x18 + } + if len(m.ClusterId) > 0 { + i -= len(m.ClusterId) + copy(dAtA[i:], m.ClusterId) + i = encodeVarint(dAtA, i, uint64(len(m.ClusterId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ClusterName) > 0 { + i -= len(m.ClusterName) + copy(dAtA[i:], m.ClusterName) + i = encodeVarint(dAtA, i, uint64(len(m.ClusterName))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *CollectorPersistentVolumeClaim) 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 *CollectorPersistentVolumeClaim) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *CollectorPersistentVolumeClaim) 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.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 + } + } + if len(m.PersistentVolumeClaims) > 0 { + for iNdEx := len(m.PersistentVolumeClaims) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.PersistentVolumeClaims[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x2a + } + } + if m.GroupSize != 0 { + i = encodeVarint(dAtA, i, uint64(m.GroupSize)) + i-- + dAtA[i] = 0x20 + } + if m.GroupId != 0 { + i = encodeVarint(dAtA, i, uint64(m.GroupId)) + i-- + dAtA[i] = 0x18 + } + if len(m.ClusterId) > 0 { + i -= len(m.ClusterId) + copy(dAtA[i:], m.ClusterId) + i = encodeVarint(dAtA, i, uint64(len(m.ClusterId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ClusterName) > 0 { + i -= len(m.ClusterName) + copy(dAtA[i:], m.ClusterName) + i = encodeVarint(dAtA, i, uint64(len(m.ClusterName))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *CollectorRole) 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 *CollectorRole) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *CollectorRole) 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.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 + } + } + if len(m.Roles) > 0 { + for iNdEx := len(m.Roles) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Roles[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x2a + } + } + if m.GroupSize != 0 { + i = encodeVarint(dAtA, i, uint64(m.GroupSize)) + i-- + dAtA[i] = 0x20 + } + if m.GroupId != 0 { + i = encodeVarint(dAtA, i, uint64(m.GroupId)) + i-- + dAtA[i] = 0x18 + } + if len(m.ClusterId) > 0 { + i -= len(m.ClusterId) + copy(dAtA[i:], m.ClusterId) + i = encodeVarint(dAtA, i, uint64(len(m.ClusterId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ClusterName) > 0 { + i -= len(m.ClusterName) + copy(dAtA[i:], m.ClusterName) + i = encodeVarint(dAtA, i, uint64(len(m.ClusterName))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *CollectorRoleBinding) 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 *CollectorRoleBinding) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *CollectorRoleBinding) 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.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 + } + } + if len(m.RoleBindings) > 0 { + for iNdEx := len(m.RoleBindings) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.RoleBindings[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x2a + } + } + if m.GroupSize != 0 { + i = encodeVarint(dAtA, i, uint64(m.GroupSize)) + i-- + dAtA[i] = 0x20 + } + if m.GroupId != 0 { + i = encodeVarint(dAtA, i, uint64(m.GroupId)) + i-- + dAtA[i] = 0x18 + } + if len(m.ClusterId) > 0 { + i -= len(m.ClusterId) + copy(dAtA[i:], m.ClusterId) + i = encodeVarint(dAtA, i, uint64(len(m.ClusterId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ClusterName) > 0 { + i -= len(m.ClusterName) + copy(dAtA[i:], m.ClusterName) + i = encodeVarint(dAtA, i, uint64(len(m.ClusterName))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *CollectorClusterRole) 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 *CollectorClusterRole) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *CollectorClusterRole) 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.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 + } + } + if len(m.ClusterRoles) > 0 { + for iNdEx := len(m.ClusterRoles) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.ClusterRoles[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x2a + } + } + if m.GroupSize != 0 { + i = encodeVarint(dAtA, i, uint64(m.GroupSize)) + i-- + dAtA[i] = 0x20 + } + if m.GroupId != 0 { + i = encodeVarint(dAtA, i, uint64(m.GroupId)) + i-- + dAtA[i] = 0x18 + } + if len(m.ClusterId) > 0 { + i -= len(m.ClusterId) + copy(dAtA[i:], m.ClusterId) + i = encodeVarint(dAtA, i, uint64(len(m.ClusterId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ClusterName) > 0 { + i -= len(m.ClusterName) + copy(dAtA[i:], m.ClusterName) + i = encodeVarint(dAtA, i, uint64(len(m.ClusterName))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *CollectorClusterRoleBinding) 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 *CollectorClusterRoleBinding) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *CollectorClusterRoleBinding) 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.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 + } + } + if len(m.ClusterRoleBindings) > 0 { + for iNdEx := len(m.ClusterRoleBindings) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.ClusterRoleBindings[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x2a + } + } + if m.GroupSize != 0 { + i = encodeVarint(dAtA, i, uint64(m.GroupSize)) + i-- + dAtA[i] = 0x20 + } + if m.GroupId != 0 { + i = encodeVarint(dAtA, i, uint64(m.GroupId)) + i-- + dAtA[i] = 0x18 + } + if len(m.ClusterId) > 0 { + i -= len(m.ClusterId) + copy(dAtA[i:], m.ClusterId) + i = encodeVarint(dAtA, i, uint64(len(m.ClusterId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ClusterName) > 0 { + i -= len(m.ClusterName) + copy(dAtA[i:], m.ClusterName) + i = encodeVarint(dAtA, i, uint64(len(m.ClusterName))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *CollectorServiceAccount) 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 *CollectorServiceAccount) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *CollectorServiceAccount) 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.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 + } + } + if len(m.ServiceAccounts) > 0 { + for iNdEx := len(m.ServiceAccounts) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.ServiceAccounts[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x2a + } + } + if m.GroupSize != 0 { + i = encodeVarint(dAtA, i, uint64(m.GroupSize)) + i-- + dAtA[i] = 0x20 + } + if m.GroupId != 0 { + i = encodeVarint(dAtA, i, uint64(m.GroupId)) + i-- + dAtA[i] = 0x18 + } + if len(m.ClusterId) > 0 { + i -= len(m.ClusterId) + copy(dAtA[i:], m.ClusterId) + i = encodeVarint(dAtA, i, uint64(len(m.ClusterId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ClusterName) > 0 { + i -= len(m.ClusterName) + copy(dAtA[i:], m.ClusterName) + i = encodeVarint(dAtA, i, uint64(len(m.ClusterName))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *CollectorIngress) 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 *CollectorIngress) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *CollectorIngress) 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.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 + } + } + if len(m.Ingresses) > 0 { + for iNdEx := len(m.Ingresses) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Ingresses[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x2a + } + } + if m.GroupSize != 0 { + i = encodeVarint(dAtA, i, uint64(m.GroupSize)) + i-- + dAtA[i] = 0x20 + } + if m.GroupId != 0 { + i = encodeVarint(dAtA, i, uint64(m.GroupId)) + i-- + dAtA[i] = 0x18 + } + if len(m.ClusterId) > 0 { + i -= len(m.ClusterId) + copy(dAtA[i:], m.ClusterId) + i = encodeVarint(dAtA, i, uint64(len(m.ClusterId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ClusterName) > 0 { + i -= len(m.ClusterName) + copy(dAtA[i:], m.ClusterName) + i = encodeVarint(dAtA, i, uint64(len(m.ClusterName))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *CollectorVerticalPodAutoscaler) 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 *CollectorVerticalPodAutoscaler) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *CollectorVerticalPodAutoscaler) 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.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 + } + } + if len(m.VerticalPodAutoscalers) > 0 { + for iNdEx := len(m.VerticalPodAutoscalers) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.VerticalPodAutoscalers[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x2a + } + } + if m.GroupSize != 0 { + i = encodeVarint(dAtA, i, uint64(m.GroupSize)) + i-- + dAtA[i] = 0x20 + } + if m.GroupId != 0 { + i = encodeVarint(dAtA, i, uint64(m.GroupId)) + i-- + dAtA[i] = 0x18 + } + if len(m.ClusterId) > 0 { + i -= len(m.ClusterId) + copy(dAtA[i:], m.ClusterId) + i = encodeVarint(dAtA, i, uint64(len(m.ClusterId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ClusterName) > 0 { + i -= len(m.ClusterName) + copy(dAtA[i:], m.ClusterName) + i = encodeVarint(dAtA, i, uint64(len(m.ClusterName))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *CollectorStatus) 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 *CollectorStatus) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *CollectorStatus) 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.Interval != 0 { + i = encodeVarint(dAtA, i, uint64(m.Interval)) + i-- + dAtA[i] = 0x10 + } + if m.ActiveClients != 0 { + i = encodeVarint(dAtA, i, uint64(m.ActiveClients)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *Process) 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 *Process) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *Process) 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.Networks != nil { + size, err := m.Networks.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xaa + } + if m.NsPid != 0 { + i = encodeVarint(dAtA, i, uint64(m.NsPid)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xa0 + } + if len(m.ContainerByteKey) > 0 { + i -= len(m.ContainerByteKey) + copy(dAtA[i:], m.ContainerByteKey) + i = encodeVarint(dAtA, i, uint64(len(m.ContainerByteKey))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x9a + } + if len(m.ByteKey) > 0 { + i -= len(m.ByteKey) + copy(dAtA[i:], m.ByteKey) + i = encodeVarint(dAtA, i, uint64(len(m.ByteKey))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x92 + } + if m.InvoluntaryCtxSwitches != 0 { + i = encodeVarint(dAtA, i, uint64(m.InvoluntaryCtxSwitches)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x88 + } + if m.VoluntaryCtxSwitches != 0 { + i = encodeVarint(dAtA, i, uint64(m.VoluntaryCtxSwitches)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x80 + } + if m.ContainerKey != 0 { + i = encodeVarint(dAtA, i, uint64(m.ContainerKey)) + i-- + dAtA[i] = 0x78 + } + if len(m.ContainerId) > 0 { + i -= len(m.ContainerId) + copy(dAtA[i:], m.ContainerId) + i = encodeVarint(dAtA, i, uint64(len(m.ContainerId))) + i-- + dAtA[i] = 0x72 + } + if m.IoStat != nil { + size, err := m.IoStat.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x6a + } + if m.State != 0 { + i = encodeVarint(dAtA, i, uint64(m.State)) + i-- + dAtA[i] = 0x60 + } + if m.OpenFdCount != 0 { + i = encodeVarint(dAtA, i, uint64(m.OpenFdCount)) + i-- + dAtA[i] = 0x58 + } + if m.Container != nil { + size, err := m.Container.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x52 + } + if m.CreateTime != 0 { + i = encodeVarint(dAtA, i, uint64(m.CreateTime)) + i-- + dAtA[i] = 0x48 + } + if m.Cpu != nil { + size, err := m.Cpu.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x42 + } + if m.Memory != nil { + size, err := m.Memory.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x3a + } + if m.User != nil { + size, err := m.User.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x2a + } + if m.Command != nil { + size, err := m.Command.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x22 + } + if m.Host != nil { + size, err := m.Host.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x1a + } + if m.Pid != 0 { + i = encodeVarint(dAtA, i, uint64(m.Pid)) + i-- + dAtA[i] = 0x10 + } + if m.Key != 0 { + i = encodeVarint(dAtA, i, uint64(m.Key)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *ProcessDiscovery) 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 *ProcessDiscovery) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *ProcessDiscovery) 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.ByteKey) > 0 { + i -= len(m.ByteKey) + copy(dAtA[i:], m.ByteKey) + i = encodeVarint(dAtA, i, uint64(len(m.ByteKey))) + i-- + dAtA[i] = 0x3a + } + if m.CreateTime != 0 { + i = encodeVarint(dAtA, i, uint64(m.CreateTime)) + i-- + dAtA[i] = 0x30 + } + if m.User != nil { + size, err := m.User.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x2a + } + if m.Command != nil { + size, err := m.Command.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x22 + } + if m.Host != nil { + size, err := m.Host.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x1a + } + if m.NsPid != 0 { + i = encodeVarint(dAtA, i, uint64(m.NsPid)) + i-- + dAtA[i] = 0x10 + } + if m.Pid != 0 { + i = encodeVarint(dAtA, i, uint64(m.Pid)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *Command) 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 *Command) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *Command) 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.Exe) > 0 { + i -= len(m.Exe) + copy(dAtA[i:], m.Exe) + i = encodeVarint(dAtA, i, uint64(len(m.Exe))) + i-- + dAtA[i] = 0x42 + } + if m.Pgroup != 0 { + i = encodeVarint(dAtA, i, uint64(m.Pgroup)) + i-- + dAtA[i] = 0x38 + } + if m.Ppid != 0 { + i = encodeVarint(dAtA, i, uint64(m.Ppid)) + i-- + dAtA[i] = 0x30 + } + if m.OnDisk { + i-- + if m.OnDisk { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x28 + } + if len(m.Root) > 0 { + i -= len(m.Root) + copy(dAtA[i:], m.Root) + i = encodeVarint(dAtA, i, uint64(len(m.Root))) + i-- + dAtA[i] = 0x22 + } + if len(m.Cwd) > 0 { + i -= len(m.Cwd) + copy(dAtA[i:], m.Cwd) + i = encodeVarint(dAtA, i, uint64(len(m.Cwd))) + i-- + dAtA[i] = 0x1a + } + if len(m.Args) > 0 { + for iNdEx := len(m.Args) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Args[iNdEx]) + copy(dAtA[i:], m.Args[iNdEx]) + i = encodeVarint(dAtA, i, uint64(len(m.Args[iNdEx]))) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *ProcessUser) 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 *ProcessUser) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *ProcessUser) 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.Sgid != 0 { + i = encodeVarint(dAtA, i, uint64(m.Sgid)) + i-- + dAtA[i] = 0x38 + } + if m.Suid != 0 { + i = encodeVarint(dAtA, i, uint64(m.Suid)) + i-- + dAtA[i] = 0x30 + } + if m.Egid != 0 { + i = encodeVarint(dAtA, i, uint64(m.Egid)) + i-- + dAtA[i] = 0x28 + } + if m.Euid != 0 { + i = encodeVarint(dAtA, i, uint64(m.Euid)) + i-- + dAtA[i] = 0x20 + } + if m.Gid != 0 { + i = encodeVarint(dAtA, i, uint64(m.Gid)) + i-- + dAtA[i] = 0x18 + } + if m.Uid != 0 { + i = encodeVarint(dAtA, i, uint64(m.Uid)) + i-- + dAtA[i] = 0x10 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarint(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ProcessNetworks) 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 *ProcessNetworks) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *ProcessNetworks) 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.BytesRate != 0 { + i -= 4 + binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.BytesRate)))) + i-- + dAtA[i] = 0x15 + } + if m.ConnectionRate != 0 { + i -= 4 + binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.ConnectionRate)))) + i-- + dAtA[i] = 0xd + } + return len(dAtA) - i, nil +} + +func (m *ContainerAddr) 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 *ContainerAddr) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *ContainerAddr) 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.Protocol != 0 { + i = encodeVarint(dAtA, i, uint64(m.Protocol)) + i-- + dAtA[i] = 0x18 + } + if m.Port != 0 { + i = encodeVarint(dAtA, i, uint64(m.Port)) + i-- + dAtA[i] = 0x10 + } + if len(m.Ip) > 0 { + i -= len(m.Ip) + copy(dAtA[i:], m.Ip) + i = encodeVarint(dAtA, i, uint64(len(m.Ip))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Container) 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 *Container) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *Container) 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.MemAccounted != 0 { + i = encodeVarint(dAtA, i, uint64(m.MemAccounted)) + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0x80 + } + if m.CpuUsageNs != 0 { + i -= 4 + binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.CpuUsageNs)))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xfd + } + if m.MemUsage != 0 { + i = encodeVarint(dAtA, i, uint64(m.MemUsage)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xf0 + } + if m.ThreadLimit != 0 { + i = encodeVarint(dAtA, i, uint64(m.ThreadLimit)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xe8 + } + if m.ThreadCount != 0 { + i = encodeVarint(dAtA, i, uint64(m.ThreadCount)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xe0 + } + if len(m.Addresses) > 0 { + for iNdEx := len(m.Addresses) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Addresses[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xda + } + } + 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] = 0x1 + i-- + dAtA[i] = 0xd2 + } + } + if len(m.ByteKey) > 0 { + i -= len(m.ByteKey) + copy(dAtA[i:], m.ByteKey) + i = encodeVarint(dAtA, i, uint64(len(m.ByteKey))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xca + } + if m.Started != 0 { + i = encodeVarint(dAtA, i, uint64(m.Started)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xc0 + } + if m.Host != nil { + size, err := m.Host.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xba + } + if m.MemCache != 0 { + i = encodeVarint(dAtA, i, uint64(m.MemCache)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xb0 + } + if m.MemRss != 0 { + i = encodeVarint(dAtA, i, uint64(m.MemRss)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xa8 + } + if m.TotalPct != 0 { + i -= 4 + binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.TotalPct)))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xa5 + } + if m.SystemPct != 0 { + i -= 4 + binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.SystemPct)))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x9d + } + if m.UserPct != 0 { + i -= 4 + binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.UserPct)))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x95 + } + if m.NetSentBps != 0 { + i -= 4 + binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.NetSentBps)))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x8d + } + if m.NetRcvdBps != 0 { + i -= 4 + binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.NetRcvdBps)))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x85 + } + if m.NetSentPs != 0 { + i -= 4 + binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.NetSentPs)))) + i-- + dAtA[i] = 0x7d + } + if m.NetRcvdPs != 0 { + i -= 4 + binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.NetRcvdPs)))) + i-- + dAtA[i] = 0x75 + } + if m.Key != 0 { + i = encodeVarint(dAtA, i, uint64(m.Key)) + i-- + dAtA[i] = 0x68 + } + if m.Wbps != 0 { + i -= 4 + binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.Wbps)))) + i-- + dAtA[i] = 0x65 + } + if m.Rbps != 0 { + i -= 4 + binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.Rbps)))) + i-- + dAtA[i] = 0x5d + } + if m.Created != 0 { + i = encodeVarint(dAtA, i, uint64(m.Created)) + i-- + dAtA[i] = 0x50 + } + if m.Health != 0 { + i = encodeVarint(dAtA, i, uint64(m.Health)) + i-- + dAtA[i] = 0x48 + } + if m.State != 0 { + i = encodeVarint(dAtA, i, uint64(m.State)) + i-- + dAtA[i] = 0x40 + } + if m.MemoryLimit != 0 { + i = encodeVarint(dAtA, i, uint64(m.MemoryLimit)) + i-- + dAtA[i] = 0x30 + } + if m.CpuLimit != 0 { + i -= 4 + binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.CpuLimit)))) + i-- + dAtA[i] = 0x2d + } + if len(m.Image) > 0 { + i -= len(m.Image) + copy(dAtA[i:], m.Image) + i = encodeVarint(dAtA, i, uint64(len(m.Image))) + i-- + dAtA[i] = 0x22 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarint(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x1a + } + if len(m.Id) > 0 { + i -= len(m.Id) + copy(dAtA[i:], m.Id) + i = encodeVarint(dAtA, i, uint64(len(m.Id))) + i-- + dAtA[i] = 0x12 + } + if len(m.Type) > 0 { + i -= len(m.Type) + copy(dAtA[i:], m.Type) + i = encodeVarint(dAtA, i, uint64(len(m.Type))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ProcessStat) 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 *ProcessStat) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *ProcessStat) 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.Networks != nil { + size, err := m.Networks.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xe2 + } + if len(m.ContainerByteKey) > 0 { + i -= len(m.ContainerByteKey) + copy(dAtA[i:], m.ContainerByteKey) + i = encodeVarint(dAtA, i, uint64(len(m.ContainerByteKey))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xda + } + if len(m.ByteKey) > 0 { + i -= len(m.ByteKey) + copy(dAtA[i:], m.ByteKey) + i = encodeVarint(dAtA, i, uint64(len(m.ByteKey))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xd2 + } + if m.InvoluntaryCtxSwitches != 0 { + i = encodeVarint(dAtA, i, uint64(m.InvoluntaryCtxSwitches)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xc8 + } + if m.VoluntaryCtxSwitches != 0 { + i = encodeVarint(dAtA, i, uint64(m.VoluntaryCtxSwitches)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xc0 + } + if m.ContainerNetSentBps != 0 { + i -= 4 + binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.ContainerNetSentBps)))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xbd + } + if m.ContainerNetRcvdBps != 0 { + i -= 4 + binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.ContainerNetRcvdBps)))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xb5 + } + if m.ContainerNetSentPs != 0 { + i -= 4 + binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.ContainerNetSentPs)))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xad + } + if m.ContainerNetRcvdPs != 0 { + i -= 4 + binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.ContainerNetRcvdPs)))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xa5 + } + if m.IoStat != nil { + size, err := m.IoStat.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x9a + } + if m.ContainerKey != 0 { + i = encodeVarint(dAtA, i, uint64(m.ContainerKey)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x90 + } + if m.ContainerWbps != 0 { + i -= 4 + binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.ContainerWbps)))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x8d + } + if m.ContainerRbps != 0 { + i -= 4 + binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.ContainerRbps)))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x85 + } + if m.ContainerHealth != 0 { + i = encodeVarint(dAtA, i, uint64(m.ContainerHealth)) + i-- + dAtA[i] = 0x78 + } + if m.ProcessState != 0 { + i = encodeVarint(dAtA, i, uint64(m.ProcessState)) + i-- + dAtA[i] = 0x60 + } + if m.ContainerState != 0 { + i = encodeVarint(dAtA, i, uint64(m.ContainerState)) + i-- + dAtA[i] = 0x58 + } + if len(m.ContainerId) > 0 { + i -= len(m.ContainerId) + copy(dAtA[i:], m.ContainerId) + i = encodeVarint(dAtA, i, uint64(len(m.ContainerId))) + i-- + dAtA[i] = 0x52 + } + if m.Key != 0 { + i = encodeVarint(dAtA, i, uint64(m.Key)) + i-- + dAtA[i] = 0x48 + } + if m.OpenFdCount != 0 { + i = encodeVarint(dAtA, i, uint64(m.OpenFdCount)) + i-- + dAtA[i] = 0x40 + } + if m.Threads != 0 { + i = encodeVarint(dAtA, i, uint64(m.Threads)) + i-- + dAtA[i] = 0x38 + } + if m.Nice != 0 { + i = encodeVarint(dAtA, i, uint64(m.Nice)) + i-- + dAtA[i] = 0x28 + } + if m.Cpu != nil { + size, err := m.Cpu.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x22 + } + if m.Memory != nil { + size, err := m.Memory.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x1a + } + if m.CreateTime != 0 { + i = encodeVarint(dAtA, i, uint64(m.CreateTime)) + i-- + dAtA[i] = 0x10 + } + if m.Pid != 0 { + i = encodeVarint(dAtA, i, uint64(m.Pid)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *ProcStatsWithPerm) 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 *ProcStatsWithPerm) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *ProcStatsWithPerm) 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.WriteBytes != 0 { + i = encodeVarint(dAtA, i, uint64(m.WriteBytes)) + i-- + dAtA[i] = 0x28 + } + if m.ReadBytes != 0 { + i = encodeVarint(dAtA, i, uint64(m.ReadBytes)) + i-- + dAtA[i] = 0x20 + } + if m.WriteCount != 0 { + i = encodeVarint(dAtA, i, uint64(m.WriteCount)) + i-- + dAtA[i] = 0x18 + } + if m.ReadCount != 0 { + i = encodeVarint(dAtA, i, uint64(m.ReadCount)) + i-- + dAtA[i] = 0x10 + } + if m.OpenFDCount != 0 { + i = encodeVarint(dAtA, i, uint64(m.OpenFDCount)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *ProcStatsWithPermByPID) 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 *ProcStatsWithPermByPID) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *ProcStatsWithPermByPID) 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.StatsByPID) > 0 { + for k := range m.StatsByPID { + v := m.StatsByPID[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 = encodeVarint(dAtA, i, uint64(k)) + i-- + dAtA[i] = 0x8 + i = encodeVarint(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *ContainerStat) 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 *ContainerStat) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *ContainerStat) 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.MemAccounted != 0 { + i = encodeVarint(dAtA, i, uint64(m.MemAccounted)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xc0 + } + if m.CpuUsageNs != 0 { + i -= 4 + binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.CpuUsageNs)))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xbd + } + if m.MemUsage != 0 { + i = encodeVarint(dAtA, i, uint64(m.MemUsage)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xb0 + } + if m.ThreadLimit != 0 { + i = encodeVarint(dAtA, i, uint64(m.ThreadLimit)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xa8 + } + if m.ThreadCount != 0 { + i = encodeVarint(dAtA, i, uint64(m.ThreadCount)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xa0 + } + if len(m.ByteKey) > 0 { + i -= len(m.ByteKey) + copy(dAtA[i:], m.ByteKey) + i = encodeVarint(dAtA, i, uint64(len(m.ByteKey))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x9a + } + if m.Started != 0 { + i = encodeVarint(dAtA, i, uint64(m.Started)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x90 + } + if m.Key != 0 { + i = encodeVarint(dAtA, i, uint64(m.Key)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x88 + } + if m.Health != 0 { + i = encodeVarint(dAtA, i, uint64(m.Health)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x80 + } + if m.State != 0 { + i = encodeVarint(dAtA, i, uint64(m.State)) + i-- + dAtA[i] = 0x78 + } + if m.NetSentBps != 0 { + i -= 4 + binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.NetSentBps)))) + i-- + dAtA[i] = 0x75 + } + if m.NetRcvdBps != 0 { + i -= 4 + binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.NetRcvdBps)))) + i-- + dAtA[i] = 0x6d + } + if m.NetSentPs != 0 { + i -= 4 + binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.NetSentPs)))) + i-- + dAtA[i] = 0x65 + } + if m.NetRcvdPs != 0 { + i -= 4 + binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.NetRcvdPs)))) + i-- + dAtA[i] = 0x5d + } + if m.Wbps != 0 { + i -= 4 + binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.Wbps)))) + i-- + dAtA[i] = 0x55 + } + if m.Rbps != 0 { + i -= 4 + binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.Rbps)))) + i-- + dAtA[i] = 0x4d + } + if m.MemLimit != 0 { + i = encodeVarint(dAtA, i, uint64(m.MemLimit)) + i-- + dAtA[i] = 0x40 + } + if m.MemCache != 0 { + i = encodeVarint(dAtA, i, uint64(m.MemCache)) + i-- + dAtA[i] = 0x38 + } + if m.MemRss != 0 { + i = encodeVarint(dAtA, i, uint64(m.MemRss)) + i-- + dAtA[i] = 0x30 + } + if m.CpuLimit != 0 { + i -= 4 + binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.CpuLimit)))) + i-- + dAtA[i] = 0x2d + } + if m.TotalPct != 0 { + i -= 4 + binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.TotalPct)))) + i-- + dAtA[i] = 0x25 + } + if m.SystemPct != 0 { + i -= 4 + binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.SystemPct)))) + i-- + dAtA[i] = 0x1d + } + if m.UserPct != 0 { + i -= 4 + binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.UserPct)))) + i-- + dAtA[i] = 0x15 + } + if len(m.Id) > 0 { + i -= len(m.Id) + copy(dAtA[i:], m.Id) + i = encodeVarint(dAtA, i, uint64(len(m.Id))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *SystemInfo) 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 *SystemInfo) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *SystemInfo) 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.TotalMemory != 0 { + i = encodeVarint(dAtA, i, uint64(m.TotalMemory)) + i-- + dAtA[i] = 0x28 + } + if len(m.Cpus) > 0 { + for iNdEx := len(m.Cpus) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Cpus[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x1a + } + } + if m.Os != nil { + size, err := m.Os.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 + } + if len(m.Uuid) > 0 { + i -= len(m.Uuid) + copy(dAtA[i:], m.Uuid) + i = encodeVarint(dAtA, i, uint64(len(m.Uuid))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *OSInfo) 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 *OSInfo) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *OSInfo) 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.KernelVersion) > 0 { + i -= len(m.KernelVersion) + copy(dAtA[i:], m.KernelVersion) + i = encodeVarint(dAtA, i, uint64(len(m.KernelVersion))) + i-- + dAtA[i] = 0x2a + } + 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] = 0x22 + } + if len(m.Family) > 0 { + i -= len(m.Family) + copy(dAtA[i:], m.Family) + i = encodeVarint(dAtA, i, uint64(len(m.Family))) + i-- + dAtA[i] = 0x1a + } + if len(m.Platform) > 0 { + i -= len(m.Platform) + copy(dAtA[i:], m.Platform) + i = encodeVarint(dAtA, i, uint64(len(m.Platform))) + i-- + dAtA[i] = 0x12 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarint(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *IOStat) 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 *IOStat) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *IOStat) 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.WriteBytesRate != 0 { + i -= 4 + binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.WriteBytesRate)))) + i-- + dAtA[i] = 0x25 + } + if m.ReadBytesRate != 0 { + i -= 4 + binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.ReadBytesRate)))) + i-- + dAtA[i] = 0x1d + } + if m.WriteRate != 0 { + i -= 4 + binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.WriteRate)))) + i-- + dAtA[i] = 0x15 + } + if m.ReadRate != 0 { + i -= 4 + binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.ReadRate)))) + i-- + dAtA[i] = 0xd + } + return len(dAtA) - i, nil +} + +func (m *MemoryStat) 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 *MemoryStat) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *MemoryStat) 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.Dirty != 0 { + i = encodeVarint(dAtA, i, uint64(m.Dirty)) + i-- + dAtA[i] = 0x40 + } + if m.Data != 0 { + i = encodeVarint(dAtA, i, uint64(m.Data)) + i-- + dAtA[i] = 0x38 + } + if m.Lib != 0 { + i = encodeVarint(dAtA, i, uint64(m.Lib)) + i-- + dAtA[i] = 0x30 + } + if m.Text != 0 { + i = encodeVarint(dAtA, i, uint64(m.Text)) + i-- + dAtA[i] = 0x28 + } + if m.Shared != 0 { + i = encodeVarint(dAtA, i, uint64(m.Shared)) + i-- + dAtA[i] = 0x20 + } + if m.Swap != 0 { + i = encodeVarint(dAtA, i, uint64(m.Swap)) + i-- + dAtA[i] = 0x18 + } + if m.Vms != 0 { + i = encodeVarint(dAtA, i, uint64(m.Vms)) + i-- + dAtA[i] = 0x10 + } + if m.Rss != 0 { + i = encodeVarint(dAtA, i, uint64(m.Rss)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *CPUStat) 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 *CPUStat) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *CPUStat) 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.SystemTime != 0 { + i = encodeVarint(dAtA, i, uint64(m.SystemTime)) + i-- + dAtA[i] = 0x48 + } + if m.UserTime != 0 { + i = encodeVarint(dAtA, i, uint64(m.UserTime)) + i-- + dAtA[i] = 0x40 + } + if m.Nice != 0 { + i = encodeVarint(dAtA, i, uint64(m.Nice)) + i-- + dAtA[i] = 0x38 + } + if len(m.Cpus) > 0 { + for iNdEx := len(m.Cpus) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Cpus[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x32 + } + } + if m.NumThreads != 0 { + i = encodeVarint(dAtA, i, uint64(m.NumThreads)) + i-- + dAtA[i] = 0x28 + } + if m.SystemPct != 0 { + i -= 4 + binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.SystemPct)))) + i-- + dAtA[i] = 0x25 + } + if m.UserPct != 0 { + i -= 4 + binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.UserPct)))) + i-- + dAtA[i] = 0x1d + } + if m.TotalPct != 0 { + i -= 4 + binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.TotalPct)))) + i-- + dAtA[i] = 0x15 + } + if len(m.LastCpu) > 0 { + i -= len(m.LastCpu) + copy(dAtA[i:], m.LastCpu) + i = encodeVarint(dAtA, i, uint64(len(m.LastCpu))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *SingleCPUStat) 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 *SingleCPUStat) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *SingleCPUStat) 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.TotalPct != 0 { + i -= 4 + binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.TotalPct)))) + i-- + dAtA[i] = 0x15 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarint(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *CPUInfo) 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 *CPUInfo) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *CPUInfo) 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.CacheSize != 0 { + i = encodeVarint(dAtA, i, uint64(m.CacheSize)) + i-- + dAtA[i] = 0x48 + } + if m.Mhz != 0 { + i = encodeVarint(dAtA, i, uint64(m.Mhz)) + i-- + dAtA[i] = 0x40 + } + if m.Cores != 0 { + i = encodeVarint(dAtA, i, uint64(m.Cores)) + i-- + dAtA[i] = 0x38 + } + if len(m.CoreId) > 0 { + i -= len(m.CoreId) + copy(dAtA[i:], m.CoreId) + i = encodeVarint(dAtA, i, uint64(len(m.CoreId))) + i-- + dAtA[i] = 0x32 + } + if len(m.PhysicalId) > 0 { + i -= len(m.PhysicalId) + copy(dAtA[i:], m.PhysicalId) + i = encodeVarint(dAtA, i, uint64(len(m.PhysicalId))) + i-- + dAtA[i] = 0x2a + } + if len(m.Model) > 0 { + i -= len(m.Model) + copy(dAtA[i:], m.Model) + i = encodeVarint(dAtA, i, uint64(len(m.Model))) + i-- + dAtA[i] = 0x22 + } + if len(m.Family) > 0 { + i -= len(m.Family) + copy(dAtA[i:], m.Family) + i = encodeVarint(dAtA, i, uint64(len(m.Family))) + i-- + dAtA[i] = 0x1a + } + if len(m.Vendor) > 0 { + i -= len(m.Vendor) + copy(dAtA[i:], m.Vendor) + i = encodeVarint(dAtA, i, uint64(len(m.Vendor))) + i-- + dAtA[i] = 0x12 + } + if m.Number != 0 { + i = encodeVarint(dAtA, i, uint64(m.Number)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *Host) 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 *Host) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *Host) 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.TagsModified != 0 { + i = encodeVarint(dAtA, i, uint64(m.TagsModified)) + i-- + dAtA[i] = 0x50 + } + if m.TagIndex != 0 { + i = encodeVarint(dAtA, i, uint64(m.TagIndex)) + i-- + dAtA[i] = 0x48 + } + if m.TotalMemory != 0 { + i = encodeVarint(dAtA, i, uint64(m.TotalMemory)) + i-- + dAtA[i] = 0x40 + } + if m.NumCpus != 0 { + i = encodeVarint(dAtA, i, uint64(m.NumCpus)) + i-- + dAtA[i] = 0x38 + } + if len(m.AllTags) > 0 { + for iNdEx := len(m.AllTags) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.AllTags[iNdEx]) + copy(dAtA[i:], m.AllTags[iNdEx]) + i = encodeVarint(dAtA, i, uint64(len(m.AllTags[iNdEx]))) + i-- + dAtA[i] = 0x32 + } + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarint(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x1a + } + if m.OrgId != 0 { + i = encodeVarint(dAtA, i, uint64(m.OrgId)) + i-- + dAtA[i] = 0x10 + } + if m.Id != 0 { + i = encodeVarint(dAtA, i, uint64(m.Id)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *Cluster) 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 *Cluster) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *Cluster) 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.Metrics != nil { + size, err := m.Metrics.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x6a + } + 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] = 0x62 + } + } + if m.CreationTimestamp != 0 { + i = encodeVarint(dAtA, i, uint64(m.CreationTimestamp)) + i-- + dAtA[i] = 0x58 + } + if len(m.ResourceVersion) > 0 { + i -= len(m.ResourceVersion) + copy(dAtA[i:], m.ResourceVersion) + i = encodeVarint(dAtA, i, uint64(len(m.ResourceVersion))) + i-- + dAtA[i] = 0x52 + } + if m.CpuCapacity != 0 { + i = encodeVarint(dAtA, i, uint64(m.CpuCapacity)) + i-- + dAtA[i] = 0x48 + } + if m.CpuAllocatable != 0 { + i = encodeVarint(dAtA, i, uint64(m.CpuAllocatable)) + i-- + dAtA[i] = 0x40 + } + if m.MemoryCapacity != 0 { + i = encodeVarint(dAtA, i, uint64(m.MemoryCapacity)) + i-- + dAtA[i] = 0x38 + } + if m.MemoryAllocatable != 0 { + i = encodeVarint(dAtA, i, uint64(m.MemoryAllocatable)) + i-- + dAtA[i] = 0x30 + } + if m.PodAllocatable != 0 { + i = encodeVarint(dAtA, i, uint64(m.PodAllocatable)) + i-- + dAtA[i] = 0x28 + } + if m.PodCapacity != 0 { + i = encodeVarint(dAtA, i, uint64(m.PodCapacity)) + i-- + dAtA[i] = 0x20 + } + if len(m.ApiServerVersions) > 0 { + for k := range m.ApiServerVersions { + v := m.ApiServerVersions[k] + baseI := i + i = encodeVarint(dAtA, i, uint64(v)) + i-- + dAtA[i] = 0x10 + 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] = 0x1a + } + } + if len(m.KubeletVersions) > 0 { + for k := range m.KubeletVersions { + v := m.KubeletVersions[k] + baseI := i + i = encodeVarint(dAtA, i, uint64(v)) + i-- + dAtA[i] = 0x10 + 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] = 0x12 + } + } + if m.NodeCount != 0 { + i = encodeVarint(dAtA, i, uint64(m.NodeCount)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *Metadata) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Metadata) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *Metadata) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.Finalizers) > 0 { + for iNdEx := len(m.Finalizers) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Finalizers[iNdEx]) + copy(dAtA[i:], m.Finalizers[iNdEx]) + i = encodeVarint(dAtA, i, uint64(len(m.Finalizers[iNdEx]))) + i-- + dAtA[i] = 0x52 + } + } + if len(m.ResourceVersion) > 0 { + i -= len(m.ResourceVersion) + copy(dAtA[i:], m.ResourceVersion) + i = encodeVarint(dAtA, i, uint64(len(m.ResourceVersion))) + i-- + dAtA[i] = 0x4a + } + if len(m.OwnerReferences) > 0 { + for iNdEx := len(m.OwnerReferences) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.OwnerReferences[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x42 + } + } + if len(m.Annotations) > 0 { + for iNdEx := len(m.Annotations) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Annotations[iNdEx]) + copy(dAtA[i:], m.Annotations[iNdEx]) + i = encodeVarint(dAtA, i, uint64(len(m.Annotations[iNdEx]))) + i-- + dAtA[i] = 0x3a + } + } + if len(m.Labels) > 0 { + for iNdEx := len(m.Labels) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Labels[iNdEx]) + copy(dAtA[i:], m.Labels[iNdEx]) + i = encodeVarint(dAtA, i, uint64(len(m.Labels[iNdEx]))) + i-- + dAtA[i] = 0x32 + } + } + if m.DeletionTimestamp != 0 { + i = encodeVarint(dAtA, i, uint64(m.DeletionTimestamp)) + i-- + dAtA[i] = 0x28 + } + if m.CreationTimestamp != 0 { + i = encodeVarint(dAtA, i, uint64(m.CreationTimestamp)) + i-- + dAtA[i] = 0x20 + } + if len(m.Uid) > 0 { + i -= len(m.Uid) + copy(dAtA[i:], m.Uid) + i = encodeVarint(dAtA, i, uint64(len(m.Uid))) + i-- + dAtA[i] = 0x1a + } + if len(m.Namespace) > 0 { + i -= len(m.Namespace) + copy(dAtA[i:], m.Namespace) + i = encodeVarint(dAtA, i, uint64(len(m.Namespace))) + i-- + dAtA[i] = 0x12 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarint(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *OwnerReference) 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 *OwnerReference) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *OwnerReference) 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.Kind) > 0 { + i -= len(m.Kind) + copy(dAtA[i:], m.Kind) + i = encodeVarint(dAtA, i, uint64(len(m.Kind))) + i-- + dAtA[i] = 0x1a + } + if len(m.Uid) > 0 { + i -= len(m.Uid) + copy(dAtA[i:], m.Uid) + i = encodeVarint(dAtA, i, uint64(len(m.Uid))) + i-- + dAtA[i] = 0x12 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarint(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ObjectReference) 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 *ObjectReference) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *ObjectReference) 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.FieldPath) > 0 { + i -= len(m.FieldPath) + copy(dAtA[i:], m.FieldPath) + i = encodeVarint(dAtA, i, uint64(len(m.FieldPath))) + i-- + dAtA[i] = 0x3a + } + if len(m.ResourceVersion) > 0 { + i -= len(m.ResourceVersion) + copy(dAtA[i:], m.ResourceVersion) + i = encodeVarint(dAtA, i, uint64(len(m.ResourceVersion))) + i-- + dAtA[i] = 0x32 + } + if len(m.ApiVersion) > 0 { + i -= len(m.ApiVersion) + copy(dAtA[i:], m.ApiVersion) + i = encodeVarint(dAtA, i, uint64(len(m.ApiVersion))) + i-- + dAtA[i] = 0x2a + } + if len(m.Uid) > 0 { + i -= len(m.Uid) + copy(dAtA[i:], m.Uid) + i = encodeVarint(dAtA, i, uint64(len(m.Uid))) + i-- + dAtA[i] = 0x22 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarint(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x1a + } + if len(m.Namespace) > 0 { + i -= len(m.Namespace) + copy(dAtA[i:], m.Namespace) + i = encodeVarint(dAtA, i, uint64(len(m.Namespace))) + i-- + dAtA[i] = 0x12 + } + if len(m.Kind) > 0 { + i -= len(m.Kind) + copy(dAtA[i:], m.Kind) + i = encodeVarint(dAtA, i, uint64(len(m.Kind))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ServicePort) 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 *ServicePort) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *ServicePort) 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.NodePort != 0 { + i = encodeVarint(dAtA, i, uint64(m.NodePort)) + i-- + dAtA[i] = 0x28 + } + if len(m.TargetPort) > 0 { + i -= len(m.TargetPort) + copy(dAtA[i:], m.TargetPort) + i = encodeVarint(dAtA, i, uint64(len(m.TargetPort))) + i-- + dAtA[i] = 0x22 + } + if m.Port != 0 { + i = encodeVarint(dAtA, i, uint64(m.Port)) + i-- + dAtA[i] = 0x18 + } + if len(m.Protocol) > 0 { + i -= len(m.Protocol) + copy(dAtA[i:], m.Protocol) + i = encodeVarint(dAtA, i, uint64(len(m.Protocol))) + i-- + dAtA[i] = 0x12 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarint(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ServiceSessionAffinityConfig) 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 *ServiceSessionAffinityConfig) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *ServiceSessionAffinityConfig) 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.ClientIPTimeoutSeconds != 0 { + i = encodeVarint(dAtA, i, uint64(m.ClientIPTimeoutSeconds)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *Node) 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 *Node) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *Node) 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.Metrics != nil { + size, err := m.Metrics.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x62 + } + if m.Host != nil { + size, err := m.Host.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x5a + } + if len(m.ProviderID) > 0 { + i -= len(m.ProviderID) + copy(dAtA[i:], m.ProviderID) + i = encodeVarint(dAtA, i, uint64(len(m.ProviderID))) + i-- + dAtA[i] = 0x52 + } + 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] = 0x4a + } + } + if len(m.Roles) > 0 { + for iNdEx := len(m.Roles) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Roles[iNdEx]) + copy(dAtA[i:], m.Roles[iNdEx]) + i = encodeVarint(dAtA, i, uint64(len(m.Roles[iNdEx]))) + i-- + dAtA[i] = 0x42 + } + } + if len(m.Yaml) > 0 { + i -= len(m.Yaml) + copy(dAtA[i:], m.Yaml) + i = encodeVarint(dAtA, i, uint64(len(m.Yaml))) + i-- + dAtA[i] = 0x3a + } + if m.Status != nil { + size, err := m.Status.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x32 + } + if len(m.Taints) > 0 { + for iNdEx := len(m.Taints) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Taints[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x2a + } + } + if m.Unschedulable { + i-- + if m.Unschedulable { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x20 + } + if len(m.PodCIDRs) > 0 { + for iNdEx := len(m.PodCIDRs) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.PodCIDRs[iNdEx]) + copy(dAtA[i:], m.PodCIDRs[iNdEx]) + i = encodeVarint(dAtA, i, uint64(len(m.PodCIDRs[iNdEx]))) + i-- + dAtA[i] = 0x1a + } + } + if len(m.PodCIDR) > 0 { + i -= len(m.PodCIDR) + copy(dAtA[i:], m.PodCIDR) + i = encodeVarint(dAtA, i, uint64(len(m.PodCIDR))) + i-- + dAtA[i] = 0x12 + } + if m.Metadata != nil { + size, err := m.Metadata.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *NodeStatus) 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 *NodeStatus) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *NodeStatus) 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.ContainerRuntimeVersion) > 0 { + i -= len(m.ContainerRuntimeVersion) + copy(dAtA[i:], m.ContainerRuntimeVersion) + i = encodeVarint(dAtA, i, uint64(len(m.ContainerRuntimeVersion))) + i-- + dAtA[i] = 0x6a + } + if len(m.OsImage) > 0 { + i -= len(m.OsImage) + copy(dAtA[i:], m.OsImage) + i = encodeVarint(dAtA, i, uint64(len(m.OsImage))) + i-- + dAtA[i] = 0x62 + } + if len(m.KernelVersion) > 0 { + i -= len(m.KernelVersion) + copy(dAtA[i:], m.KernelVersion) + i = encodeVarint(dAtA, i, uint64(len(m.KernelVersion))) + i-- + dAtA[i] = 0x5a + } + if len(m.Architecture) > 0 { + i -= len(m.Architecture) + copy(dAtA[i:], m.Architecture) + i = encodeVarint(dAtA, i, uint64(len(m.Architecture))) + i-- + dAtA[i] = 0x52 + } + if len(m.OperatingSystem) > 0 { + i -= len(m.OperatingSystem) + copy(dAtA[i:], m.OperatingSystem) + i = encodeVarint(dAtA, i, uint64(len(m.OperatingSystem))) + i-- + dAtA[i] = 0x4a + } + if len(m.KubeProxyVersion) > 0 { + i -= len(m.KubeProxyVersion) + copy(dAtA[i:], m.KubeProxyVersion) + i = encodeVarint(dAtA, i, uint64(len(m.KubeProxyVersion))) + i-- + dAtA[i] = 0x42 + } + if len(m.Images) > 0 { + for iNdEx := len(m.Images) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Images[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x3a + } + } + if len(m.Conditions) > 0 { + for iNdEx := len(m.Conditions) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Conditions[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x32 + } + } + if len(m.KubeletVersion) > 0 { + i -= len(m.KubeletVersion) + copy(dAtA[i:], m.KubeletVersion) + i = encodeVarint(dAtA, i, uint64(len(m.KubeletVersion))) + i-- + dAtA[i] = 0x2a + } + if len(m.Status) > 0 { + i -= len(m.Status) + copy(dAtA[i:], m.Status) + i = encodeVarint(dAtA, i, uint64(len(m.Status))) + i-- + dAtA[i] = 0x22 + } + if len(m.NodeAddresses) > 0 { + for k := range m.NodeAddresses { + v := m.NodeAddresses[k] + baseI := i + i -= len(v) + copy(dAtA[i:], v) + i = encodeVarint(dAtA, i, uint64(len(v))) + i-- + dAtA[i] = 0x12 + i -= len(k) + copy(dAtA[i:], k) + i = encodeVarint(dAtA, i, uint64(len(k))) + i-- + dAtA[i] = 0xa + i = encodeVarint(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0x1a + } + } + if len(m.Allocatable) > 0 { + for k := range m.Allocatable { + v := m.Allocatable[k] + baseI := i + i = encodeVarint(dAtA, i, uint64(v)) + i-- + dAtA[i] = 0x10 + 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] = 0x12 + } + } + if len(m.Capacity) > 0 { + for k := range m.Capacity { + v := m.Capacity[k] + baseI := i + i = encodeVarint(dAtA, i, uint64(v)) + i-- + dAtA[i] = 0x10 + 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] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *NodeCondition) 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 *NodeCondition) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *NodeCondition) 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.Message) > 0 { + i -= len(m.Message) + copy(dAtA[i:], m.Message) + i = encodeVarint(dAtA, i, uint64(len(m.Message))) + i-- + dAtA[i] = 0x2a + } + if len(m.Reason) > 0 { + i -= len(m.Reason) + copy(dAtA[i:], m.Reason) + i = encodeVarint(dAtA, i, uint64(len(m.Reason))) + i-- + dAtA[i] = 0x22 + } + if m.LastTransitionTime != 0 { + i = encodeVarint(dAtA, i, uint64(m.LastTransitionTime)) + i-- + dAtA[i] = 0x18 + } + if len(m.Status) > 0 { + i -= len(m.Status) + copy(dAtA[i:], m.Status) + i = encodeVarint(dAtA, i, uint64(len(m.Status))) + i-- + dAtA[i] = 0x12 + } + if len(m.Type) > 0 { + i -= len(m.Type) + copy(dAtA[i:], m.Type) + i = encodeVarint(dAtA, i, uint64(len(m.Type))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ContainerImage) 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 *ContainerImage) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *ContainerImage) 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.SizeBytes != 0 { + i = encodeVarint(dAtA, i, uint64(m.SizeBytes)) + i-- + dAtA[i] = 0x10 + } + if len(m.Names) > 0 { + for iNdEx := len(m.Names) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Names[iNdEx]) + copy(dAtA[i:], m.Names[iNdEx]) + i = encodeVarint(dAtA, i, uint64(len(m.Names[iNdEx]))) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *Taint) 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 *Taint) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *Taint) 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.TimeAdded != 0 { + i = encodeVarint(dAtA, i, uint64(m.TimeAdded)) + i-- + dAtA[i] = 0x20 + } + if len(m.Effect) > 0 { + i -= len(m.Effect) + copy(dAtA[i:], m.Effect) + i = encodeVarint(dAtA, i, uint64(len(m.Effect))) + i-- + dAtA[i] = 0x1a + } + if len(m.Value) > 0 { + i -= len(m.Value) + copy(dAtA[i:], m.Value) + i = encodeVarint(dAtA, i, uint64(len(m.Value))) + i-- + dAtA[i] = 0x12 + } + if len(m.Key) > 0 { + i -= len(m.Key) + copy(dAtA[i:], m.Key) + i = encodeVarint(dAtA, i, uint64(len(m.Key))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ServiceSpec) 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 *ServiceSpec) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *ServiceSpec) 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.IpFamily) > 0 { + i -= len(m.IpFamily) + copy(dAtA[i:], m.IpFamily) + i = encodeVarint(dAtA, i, uint64(len(m.IpFamily))) + i-- + dAtA[i] = 0x72 + } + if m.SessionAffinityConfig != nil { + size, err := m.SessionAffinityConfig.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x6a + } + if m.PublishNotReadyAddresses { + i-- + if m.PublishNotReadyAddresses { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x60 + } + if m.HealthCheckNodePort != 0 { + i = encodeVarint(dAtA, i, uint64(m.HealthCheckNodePort)) + i-- + dAtA[i] = 0x58 + } + if len(m.ExternalTrafficPolicy) > 0 { + i -= len(m.ExternalTrafficPolicy) + copy(dAtA[i:], m.ExternalTrafficPolicy) + i = encodeVarint(dAtA, i, uint64(len(m.ExternalTrafficPolicy))) + i-- + dAtA[i] = 0x52 + } + if len(m.ExternalName) > 0 { + i -= len(m.ExternalName) + copy(dAtA[i:], m.ExternalName) + i = encodeVarint(dAtA, i, uint64(len(m.ExternalName))) + i-- + dAtA[i] = 0x4a + } + if len(m.LoadBalancerSourceRanges) > 0 { + for iNdEx := len(m.LoadBalancerSourceRanges) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.LoadBalancerSourceRanges[iNdEx]) + copy(dAtA[i:], m.LoadBalancerSourceRanges[iNdEx]) + i = encodeVarint(dAtA, i, uint64(len(m.LoadBalancerSourceRanges[iNdEx]))) + i-- + dAtA[i] = 0x42 + } + } + if len(m.LoadBalancerIP) > 0 { + i -= len(m.LoadBalancerIP) + copy(dAtA[i:], m.LoadBalancerIP) + i = encodeVarint(dAtA, i, uint64(len(m.LoadBalancerIP))) + i-- + dAtA[i] = 0x3a + } + if len(m.SessionAffinity) > 0 { + i -= len(m.SessionAffinity) + copy(dAtA[i:], m.SessionAffinity) + i = encodeVarint(dAtA, i, uint64(len(m.SessionAffinity))) + i-- + dAtA[i] = 0x32 + } + if len(m.ExternalIPs) > 0 { + for iNdEx := len(m.ExternalIPs) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ExternalIPs[iNdEx]) + copy(dAtA[i:], m.ExternalIPs[iNdEx]) + i = encodeVarint(dAtA, i, uint64(len(m.ExternalIPs[iNdEx]))) + i-- + dAtA[i] = 0x2a + } + } + if len(m.Type) > 0 { + i -= len(m.Type) + copy(dAtA[i:], m.Type) + i = encodeVarint(dAtA, i, uint64(len(m.Type))) + i-- + dAtA[i] = 0x22 + } + if len(m.ClusterIP) > 0 { + i -= len(m.ClusterIP) + copy(dAtA[i:], m.ClusterIP) + i = encodeVarint(dAtA, i, uint64(len(m.ClusterIP))) + i-- + dAtA[i] = 0x1a + } + if len(m.Selectors) > 0 { + for iNdEx := len(m.Selectors) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Selectors[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 + } + } + if len(m.Ports) > 0 { + for iNdEx := len(m.Ports) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Ports[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *ServiceStatus) 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 *ServiceStatus) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *ServiceStatus) 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.LoadBalancerIngress) > 0 { + for iNdEx := len(m.LoadBalancerIngress) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.LoadBalancerIngress[iNdEx]) + copy(dAtA[i:], m.LoadBalancerIngress[iNdEx]) + i = encodeVarint(dAtA, i, uint64(len(m.LoadBalancerIngress[iNdEx]))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x8a + } + } + return len(dAtA) - i, nil +} + +func (m *Service) 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 *Service) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *Service) 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.Metrics != nil { + size, err := m.Metrics.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x32 + } + if len(m.Tags) > 0 { + for iNdEx := len(m.Tags) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Tags[iNdEx]) + copy(dAtA[i:], m.Tags[iNdEx]) + i = encodeVarint(dAtA, i, uint64(len(m.Tags[iNdEx]))) + i-- + dAtA[i] = 0x2a + } + } + if len(m.Yaml) > 0 { + i -= len(m.Yaml) + copy(dAtA[i:], m.Yaml) + i = encodeVarint(dAtA, i, uint64(len(m.Yaml))) + i-- + dAtA[i] = 0x22 + } + if m.Status != nil { + size, err := m.Status.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x1a + } + if m.Spec != nil { + size, err := m.Spec.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 + } + if m.Metadata != nil { + size, err := m.Metadata.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *DeploymentCondition) 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 *DeploymentCondition) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *DeploymentCondition) 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.LastTransitionTime != 0 { + i = encodeVarint(dAtA, i, uint64(m.LastTransitionTime)) + i-- + dAtA[i] = 0x38 + } + if m.LastUpdateTime != 0 { + i = encodeVarint(dAtA, i, uint64(m.LastUpdateTime)) + i-- + dAtA[i] = 0x30 + } + if len(m.Message) > 0 { + i -= len(m.Message) + copy(dAtA[i:], m.Message) + i = encodeVarint(dAtA, i, uint64(len(m.Message))) + i-- + dAtA[i] = 0x2a + } + if len(m.Reason) > 0 { + i -= len(m.Reason) + copy(dAtA[i:], m.Reason) + i = encodeVarint(dAtA, i, uint64(len(m.Reason))) + i-- + dAtA[i] = 0x22 + } + if len(m.Status) > 0 { + i -= len(m.Status) + copy(dAtA[i:], m.Status) + i = encodeVarint(dAtA, i, uint64(len(m.Status))) + i-- + dAtA[i] = 0x12 + } + if len(m.Type) > 0 { + i -= len(m.Type) + copy(dAtA[i:], m.Type) + i = encodeVarint(dAtA, i, uint64(len(m.Type))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Deployment) 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 *Deployment) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *Deployment) 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.Conditions) > 0 { + for iNdEx := len(m.Conditions) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Conditions[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x92 + } + } + if m.Metrics != nil { + size, err := m.Metrics.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x8a + } + if len(m.ResourceRequirements) > 0 { + for iNdEx := len(m.ResourceRequirements) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.ResourceRequirements[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x82 + } + } + 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] = 0x7a + } + } + if len(m.Yaml) > 0 { + i -= len(m.Yaml) + copy(dAtA[i:], m.Yaml) + i = encodeVarint(dAtA, i, uint64(len(m.Yaml))) + i-- + dAtA[i] = 0x72 + } + if len(m.ConditionMessage) > 0 { + i -= len(m.ConditionMessage) + copy(dAtA[i:], m.ConditionMessage) + i = encodeVarint(dAtA, i, uint64(len(m.ConditionMessage))) + i-- + dAtA[i] = 0x6a + } + if m.UnavailableReplicas != 0 { + i = encodeVarint(dAtA, i, uint64(m.UnavailableReplicas)) + i-- + dAtA[i] = 0x60 + } + if m.AvailableReplicas != 0 { + i = encodeVarint(dAtA, i, uint64(m.AvailableReplicas)) + i-- + dAtA[i] = 0x58 + } + if m.ReadyReplicas != 0 { + i = encodeVarint(dAtA, i, uint64(m.ReadyReplicas)) + i-- + dAtA[i] = 0x50 + } + if m.UpdatedReplicas != 0 { + i = encodeVarint(dAtA, i, uint64(m.UpdatedReplicas)) + i-- + dAtA[i] = 0x48 + } + if m.Replicas != 0 { + i = encodeVarint(dAtA, i, uint64(m.Replicas)) + i-- + dAtA[i] = 0x40 + } + if len(m.Selectors) > 0 { + for iNdEx := len(m.Selectors) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Selectors[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x3a + } + } + if m.Paused { + i-- + if m.Paused { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x30 + } + if len(m.MaxSurge) > 0 { + i -= len(m.MaxSurge) + copy(dAtA[i:], m.MaxSurge) + i = encodeVarint(dAtA, i, uint64(len(m.MaxSurge))) + i-- + dAtA[i] = 0x2a + } + if len(m.MaxUnavailable) > 0 { + i -= len(m.MaxUnavailable) + copy(dAtA[i:], m.MaxUnavailable) + i = encodeVarint(dAtA, i, uint64(len(m.MaxUnavailable))) + i-- + dAtA[i] = 0x22 + } + if len(m.DeploymentStrategy) > 0 { + i -= len(m.DeploymentStrategy) + copy(dAtA[i:], m.DeploymentStrategy) + i = encodeVarint(dAtA, i, uint64(len(m.DeploymentStrategy))) + i-- + dAtA[i] = 0x1a + } + if m.ReplicasDesired != 0 { + i = encodeVarint(dAtA, i, uint64(m.ReplicasDesired)) + i-- + dAtA[i] = 0x10 + } + if m.Metadata != nil { + size, err := m.Metadata.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ReplicaSetCondition) 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 *ReplicaSetCondition) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *ReplicaSetCondition) 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.Message) > 0 { + i -= len(m.Message) + copy(dAtA[i:], m.Message) + i = encodeVarint(dAtA, i, uint64(len(m.Message))) + i-- + dAtA[i] = 0x2a + } + if len(m.Reason) > 0 { + i -= len(m.Reason) + copy(dAtA[i:], m.Reason) + i = encodeVarint(dAtA, i, uint64(len(m.Reason))) + i-- + dAtA[i] = 0x22 + } + if m.LastTransitionTime != 0 { + i = encodeVarint(dAtA, i, uint64(m.LastTransitionTime)) + i-- + dAtA[i] = 0x18 + } + if len(m.Status) > 0 { + i -= len(m.Status) + copy(dAtA[i:], m.Status) + i = encodeVarint(dAtA, i, uint64(len(m.Status))) + i-- + dAtA[i] = 0x12 + } + if len(m.Type) > 0 { + i -= len(m.Type) + copy(dAtA[i:], m.Type) + i = encodeVarint(dAtA, i, uint64(len(m.Type))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ReplicaSet) 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 *ReplicaSet) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *ReplicaSet) 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.Conditions) > 0 { + for iNdEx := len(m.Conditions) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Conditions[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x62 + } + } + if m.Metrics != nil { + size, err := m.Metrics.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x5a + } + if len(m.ResourceRequirements) > 0 { + for iNdEx := len(m.ResourceRequirements) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.ResourceRequirements[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x52 + } + } + 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] = 0x4a + } + } + if len(m.Yaml) > 0 { + i -= len(m.Yaml) + copy(dAtA[i:], m.Yaml) + i = encodeVarint(dAtA, i, uint64(len(m.Yaml))) + i-- + dAtA[i] = 0x42 + } + if m.AvailableReplicas != 0 { + i = encodeVarint(dAtA, i, uint64(m.AvailableReplicas)) + i-- + dAtA[i] = 0x38 + } + if m.ReadyReplicas != 0 { + i = encodeVarint(dAtA, i, uint64(m.ReadyReplicas)) + i-- + dAtA[i] = 0x30 + } + if m.FullyLabeledReplicas != 0 { + i = encodeVarint(dAtA, i, uint64(m.FullyLabeledReplicas)) + i-- + dAtA[i] = 0x28 + } + if m.Replicas != 0 { + i = encodeVarint(dAtA, i, uint64(m.Replicas)) + i-- + dAtA[i] = 0x20 + } + if len(m.Selectors) > 0 { + for iNdEx := len(m.Selectors) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Selectors[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x1a + } + } + if m.ReplicasDesired != 0 { + i = encodeVarint(dAtA, i, uint64(m.ReplicasDesired)) + i-- + dAtA[i] = 0x10 + } + if m.Metadata != nil { + size, err := m.Metadata.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *LabelSelectorRequirement) 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 *LabelSelectorRequirement) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *LabelSelectorRequirement) 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.Values) > 0 { + for iNdEx := len(m.Values) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Values[iNdEx]) + copy(dAtA[i:], m.Values[iNdEx]) + i = encodeVarint(dAtA, i, uint64(len(m.Values[iNdEx]))) + i-- + dAtA[i] = 0x1a + } + } + if len(m.Operator) > 0 { + i -= len(m.Operator) + copy(dAtA[i:], m.Operator) + i = encodeVarint(dAtA, i, uint64(len(m.Operator))) + i-- + dAtA[i] = 0x12 + } + if len(m.Key) > 0 { + i -= len(m.Key) + copy(dAtA[i:], m.Key) + i = encodeVarint(dAtA, i, uint64(len(m.Key))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Pod) 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 *Pod) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *Pod) 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.Conditions) > 0 { + for iNdEx := len(m.Conditions) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Conditions[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xa2 + } + } + if m.ScheduledTime != 0 { + i = encodeVarint(dAtA, i, uint64(m.ScheduledTime)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x98 + } + if m.StartTime != 0 { + i = encodeVarint(dAtA, i, uint64(m.StartTime)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x90 + } + if m.Metrics != nil { + size, err := m.Metrics.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x8a + } + if len(m.PriorityClass) > 0 { + i -= len(m.PriorityClass) + copy(dAtA[i:], m.PriorityClass) + i = encodeVarint(dAtA, i, uint64(len(m.PriorityClass))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x82 + } + if len(m.QOSClass) > 0 { + i -= len(m.QOSClass) + copy(dAtA[i:], m.QOSClass) + i = encodeVarint(dAtA, i, uint64(len(m.QOSClass))) + i-- + dAtA[i] = 0x7a + } + if len(m.InitContainerStatuses) > 0 { + for iNdEx := len(m.InitContainerStatuses) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.InitContainerStatuses[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x72 + } + } + if len(m.ResourceRequirements) > 0 { + for iNdEx := len(m.ResourceRequirements) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.ResourceRequirements[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x6a + } + } + if m.Host != nil { + size, err := m.Host.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x62 + } + 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] = 0x5a + } + } + if len(m.Yaml) > 0 { + i -= len(m.Yaml) + copy(dAtA[i:], m.Yaml) + i = encodeVarint(dAtA, i, uint64(len(m.Yaml))) + i-- + dAtA[i] = 0x52 + } + if len(m.Status) > 0 { + i -= len(m.Status) + copy(dAtA[i:], m.Status) + i = encodeVarint(dAtA, i, uint64(len(m.Status))) + i-- + dAtA[i] = 0x4a + } + if len(m.ConditionMessage) > 0 { + i -= len(m.ConditionMessage) + copy(dAtA[i:], m.ConditionMessage) + i = encodeVarint(dAtA, i, uint64(len(m.ConditionMessage))) + i-- + dAtA[i] = 0x42 + } + if len(m.ContainerStatuses) > 0 { + for iNdEx := len(m.ContainerStatuses) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.ContainerStatuses[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x3a + } + } + if m.RestartCount != 0 { + i = encodeVarint(dAtA, i, uint64(m.RestartCount)) + i-- + dAtA[i] = 0x30 + } + if len(m.Phase) > 0 { + i -= len(m.Phase) + copy(dAtA[i:], m.Phase) + i = encodeVarint(dAtA, i, uint64(len(m.Phase))) + i-- + dAtA[i] = 0x2a + } + if len(m.NodeName) > 0 { + i -= len(m.NodeName) + copy(dAtA[i:], m.NodeName) + i = encodeVarint(dAtA, i, uint64(len(m.NodeName))) + i-- + dAtA[i] = 0x22 + } + if len(m.NominatedNodeName) > 0 { + i -= len(m.NominatedNodeName) + copy(dAtA[i:], m.NominatedNodeName) + i = encodeVarint(dAtA, i, uint64(len(m.NominatedNodeName))) + i-- + dAtA[i] = 0x1a + } + if len(m.IP) > 0 { + i -= len(m.IP) + copy(dAtA[i:], m.IP) + i = encodeVarint(dAtA, i, uint64(len(m.IP))) + i-- + dAtA[i] = 0x12 + } + if m.Metadata != nil { + size, err := m.Metadata.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *PodCondition) 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 *PodCondition) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *PodCondition) 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.Message) > 0 { + i -= len(m.Message) + copy(dAtA[i:], m.Message) + i = encodeVarint(dAtA, i, uint64(len(m.Message))) + i-- + dAtA[i] = 0x32 + } + if len(m.Reason) > 0 { + i -= len(m.Reason) + copy(dAtA[i:], m.Reason) + i = encodeVarint(dAtA, i, uint64(len(m.Reason))) + i-- + dAtA[i] = 0x2a + } + if m.LastTransitionTime != 0 { + i = encodeVarint(dAtA, i, uint64(m.LastTransitionTime)) + i-- + dAtA[i] = 0x20 + } + if m.LastProbeTime != 0 { + i = encodeVarint(dAtA, i, uint64(m.LastProbeTime)) + i-- + dAtA[i] = 0x18 + } + if len(m.Status) > 0 { + i -= len(m.Status) + copy(dAtA[i:], m.Status) + i = encodeVarint(dAtA, i, uint64(len(m.Status))) + i-- + dAtA[i] = 0x12 + } + if len(m.Type) > 0 { + i -= len(m.Type) + copy(dAtA[i:], m.Type) + i = encodeVarint(dAtA, i, uint64(len(m.Type))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ContainerStatus) 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 *ContainerStatus) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *ContainerStatus) 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.Message) > 0 { + i -= len(m.Message) + copy(dAtA[i:], m.Message) + i = encodeVarint(dAtA, i, uint64(len(m.Message))) + i-- + dAtA[i] = 0x32 + } + if len(m.State) > 0 { + i -= len(m.State) + copy(dAtA[i:], m.State) + i = encodeVarint(dAtA, i, uint64(len(m.State))) + i-- + dAtA[i] = 0x2a + } + if m.RestartCount != 0 { + i = encodeVarint(dAtA, i, uint64(m.RestartCount)) + i-- + dAtA[i] = 0x20 + } + if m.Ready { + i-- + if m.Ready { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + } + if len(m.ContainerID) > 0 { + i -= len(m.ContainerID) + copy(dAtA[i:], m.ContainerID) + i = encodeVarint(dAtA, i, uint64(len(m.ContainerID))) + i-- + dAtA[i] = 0x12 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarint(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Manifest) 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 *Manifest) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *Manifest) 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.Version) > 0 { + i -= len(m.Version) + copy(dAtA[i:], m.Version) + i = encodeVarint(dAtA, i, uint64(len(m.Version))) + i-- + dAtA[i] = 0x32 + } + if len(m.ContentType) > 0 { + i -= len(m.ContentType) + copy(dAtA[i:], m.ContentType) + i = encodeVarint(dAtA, i, uint64(len(m.ContentType))) + i-- + dAtA[i] = 0x2a + } + if len(m.Content) > 0 { + i -= len(m.Content) + copy(dAtA[i:], m.Content) + i = encodeVarint(dAtA, i, uint64(len(m.Content))) + i-- + dAtA[i] = 0x22 + } + if len(m.Uid) > 0 { + i -= len(m.Uid) + copy(dAtA[i:], m.Uid) + i = encodeVarint(dAtA, i, uint64(len(m.Uid))) + i-- + dAtA[i] = 0x1a + } + if len(m.ResourceVersion) > 0 { + i -= len(m.ResourceVersion) + copy(dAtA[i:], m.ResourceVersion) + i = encodeVarint(dAtA, i, uint64(len(m.ResourceVersion))) + i-- + dAtA[i] = 0x12 + } + if m.Type != 0 { + i = encodeVarint(dAtA, i, uint64(m.Type)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *NamespaceCondition) 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 *NamespaceCondition) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *NamespaceCondition) 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.Message) > 0 { + i -= len(m.Message) + copy(dAtA[i:], m.Message) + i = encodeVarint(dAtA, i, uint64(len(m.Message))) + i-- + dAtA[i] = 0x2a + } + if len(m.Reason) > 0 { + i -= len(m.Reason) + copy(dAtA[i:], m.Reason) + i = encodeVarint(dAtA, i, uint64(len(m.Reason))) + i-- + dAtA[i] = 0x22 + } + if m.LastTransitionTime != 0 { + i = encodeVarint(dAtA, i, uint64(m.LastTransitionTime)) + i-- + dAtA[i] = 0x18 + } + if len(m.Status) > 0 { + i -= len(m.Status) + copy(dAtA[i:], m.Status) + i = encodeVarint(dAtA, i, uint64(len(m.Status))) + i-- + dAtA[i] = 0x12 + } + if len(m.Type) > 0 { + i -= len(m.Type) + copy(dAtA[i:], m.Type) + i = encodeVarint(dAtA, i, uint64(len(m.Type))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Namespace) 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 *Namespace) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *Namespace) 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.Conditions) > 0 { + for iNdEx := len(m.Conditions) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Conditions[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x32 + } + } + if len(m.Tags) > 0 { + for iNdEx := len(m.Tags) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Tags[iNdEx]) + copy(dAtA[i:], m.Tags[iNdEx]) + i = encodeVarint(dAtA, i, uint64(len(m.Tags[iNdEx]))) + i-- + dAtA[i] = 0x2a + } + } + if len(m.Yaml) > 0 { + i -= len(m.Yaml) + copy(dAtA[i:], m.Yaml) + i = encodeVarint(dAtA, i, uint64(len(m.Yaml))) + i-- + dAtA[i] = 0x22 + } + if len(m.ConditionMessage) > 0 { + i -= len(m.ConditionMessage) + copy(dAtA[i:], m.ConditionMessage) + i = encodeVarint(dAtA, i, uint64(len(m.ConditionMessage))) + i-- + dAtA[i] = 0x1a + } + if len(m.Status) > 0 { + i -= len(m.Status) + copy(dAtA[i:], m.Status) + i = encodeVarint(dAtA, i, uint64(len(m.Status))) + i-- + dAtA[i] = 0x12 + } + if m.Metadata != nil { + size, err := m.Metadata.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ResourceRequirements) 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 *ResourceRequirements) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *ResourceRequirements) 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.Type != 0 { + i = encodeVarint(dAtA, i, uint64(m.Type)) + i-- + dAtA[i] = 0x20 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarint(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x1a + } + if len(m.Requests) > 0 { + for k := range m.Requests { + v := m.Requests[k] + baseI := i + i = encodeVarint(dAtA, i, uint64(v)) + i-- + dAtA[i] = 0x10 + 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] = 0x12 + } + } + if len(m.Limits) > 0 { + for k := range m.Limits { + v := m.Limits[k] + baseI := i + i = encodeVarint(dAtA, i, uint64(v)) + i-- + dAtA[i] = 0x10 + 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] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *ResourceMetrics) 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 *ResourceMetrics) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *ResourceMetrics) 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.MetricValues) > 0 { + for k := range m.MetricValues { + v := m.MetricValues[k] + baseI := i + i -= 8 + binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(v)))) + i-- + dAtA[i] = 0x11 + 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] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *JobSpec) 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 *JobSpec) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *JobSpec) 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.ResourceRequirements) > 0 { + for iNdEx := len(m.ResourceRequirements) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.ResourceRequirements[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x3a + } + } + if m.ManualSelector { + i-- + if m.ManualSelector { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x30 + } + if len(m.Selectors) > 0 { + for iNdEx := len(m.Selectors) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Selectors[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x2a + } + } + if m.BackoffLimit != 0 { + i = encodeVarint(dAtA, i, uint64(m.BackoffLimit)) + i-- + dAtA[i] = 0x20 + } + if m.ActiveDeadlineSeconds != 0 { + i = encodeVarint(dAtA, i, uint64(m.ActiveDeadlineSeconds)) + i-- + dAtA[i] = 0x18 + } + if m.Completions != 0 { + i = encodeVarint(dAtA, i, uint64(m.Completions)) + i-- + dAtA[i] = 0x10 + } + if m.Parallelism != 0 { + i = encodeVarint(dAtA, i, uint64(m.Parallelism)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *JobStatus) 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 *JobStatus) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *JobStatus) 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.Failed != 0 { + i = encodeVarint(dAtA, i, uint64(m.Failed)) + i-- + dAtA[i] = 0x30 + } + if m.Succeeded != 0 { + i = encodeVarint(dAtA, i, uint64(m.Succeeded)) + i-- + dAtA[i] = 0x28 + } + if m.Active != 0 { + i = encodeVarint(dAtA, i, uint64(m.Active)) + i-- + dAtA[i] = 0x20 + } + if m.CompletionTime != 0 { + i = encodeVarint(dAtA, i, uint64(m.CompletionTime)) + i-- + dAtA[i] = 0x18 + } + if m.StartTime != 0 { + i = encodeVarint(dAtA, i, uint64(m.StartTime)) + i-- + dAtA[i] = 0x10 + } + if len(m.ConditionMessage) > 0 { + i -= len(m.ConditionMessage) + copy(dAtA[i:], m.ConditionMessage) + i = encodeVarint(dAtA, i, uint64(len(m.ConditionMessage))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *JobCondition) 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 *JobCondition) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *JobCondition) 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.Message) > 0 { + i -= len(m.Message) + copy(dAtA[i:], m.Message) + i = encodeVarint(dAtA, i, uint64(len(m.Message))) + i-- + dAtA[i] = 0x32 + } + if len(m.Reason) > 0 { + i -= len(m.Reason) + copy(dAtA[i:], m.Reason) + i = encodeVarint(dAtA, i, uint64(len(m.Reason))) + i-- + dAtA[i] = 0x2a + } + if m.LastTransitionTime != 0 { + i = encodeVarint(dAtA, i, uint64(m.LastTransitionTime)) + i-- + dAtA[i] = 0x20 + } + if m.LastProbeTime != 0 { + i = encodeVarint(dAtA, i, uint64(m.LastProbeTime)) + i-- + dAtA[i] = 0x18 + } + if len(m.Status) > 0 { + i -= len(m.Status) + copy(dAtA[i:], m.Status) + i = encodeVarint(dAtA, i, uint64(len(m.Status))) + i-- + dAtA[i] = 0x12 + } + if len(m.Type) > 0 { + i -= len(m.Type) + copy(dAtA[i:], m.Type) + i = encodeVarint(dAtA, i, uint64(len(m.Type))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Job) 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 *Job) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *Job) 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.Conditions) > 0 { + for iNdEx := len(m.Conditions) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Conditions[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x32 + } + } + if len(m.Tags) > 0 { + for iNdEx := len(m.Tags) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Tags[iNdEx]) + copy(dAtA[i:], m.Tags[iNdEx]) + i = encodeVarint(dAtA, i, uint64(len(m.Tags[iNdEx]))) + i-- + dAtA[i] = 0x2a + } + } + if len(m.Yaml) > 0 { + i -= len(m.Yaml) + copy(dAtA[i:], m.Yaml) + i = encodeVarint(dAtA, i, uint64(len(m.Yaml))) + i-- + dAtA[i] = 0x22 + } + if m.Status != nil { + size, err := m.Status.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x1a + } + if m.Spec != nil { + size, err := m.Spec.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 + } + if m.Metadata != nil { + size, err := m.Metadata.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *CronJobSpec) 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 *CronJobSpec) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *CronJobSpec) 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.ResourceRequirements) > 0 { + for iNdEx := len(m.ResourceRequirements) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.ResourceRequirements[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x3a + } + } + if m.FailedJobsHistoryLimit != 0 { + i = encodeVarint(dAtA, i, uint64(m.FailedJobsHistoryLimit)) + i-- + dAtA[i] = 0x30 + } + if m.SuccessfulJobsHistoryLimit != 0 { + i = encodeVarint(dAtA, i, uint64(m.SuccessfulJobsHistoryLimit)) + i-- + dAtA[i] = 0x28 + } + if m.Suspend { + i-- + if m.Suspend { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x20 + } + if len(m.ConcurrencyPolicy) > 0 { + i -= len(m.ConcurrencyPolicy) + copy(dAtA[i:], m.ConcurrencyPolicy) + i = encodeVarint(dAtA, i, uint64(len(m.ConcurrencyPolicy))) + i-- + dAtA[i] = 0x1a + } + if m.StartingDeadlineSeconds != 0 { + i = encodeVarint(dAtA, i, uint64(m.StartingDeadlineSeconds)) + i-- + dAtA[i] = 0x10 + } + if len(m.Schedule) > 0 { + i -= len(m.Schedule) + copy(dAtA[i:], m.Schedule) + i = encodeVarint(dAtA, i, uint64(len(m.Schedule))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *CronJobStatus) 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 *CronJobStatus) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *CronJobStatus) 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.LastScheduleTime != 0 { + i = encodeVarint(dAtA, i, uint64(m.LastScheduleTime)) + i-- + dAtA[i] = 0x10 + } + if len(m.Active) > 0 { + for iNdEx := len(m.Active) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Active[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *CronJob) 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 *CronJob) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *CronJob) 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.Tags) > 0 { + for iNdEx := len(m.Tags) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Tags[iNdEx]) + copy(dAtA[i:], m.Tags[iNdEx]) + i = encodeVarint(dAtA, i, uint64(len(m.Tags[iNdEx]))) + i-- + dAtA[i] = 0x2a + } + } + if len(m.Yaml) > 0 { + i -= len(m.Yaml) + copy(dAtA[i:], m.Yaml) + i = encodeVarint(dAtA, i, uint64(len(m.Yaml))) + i-- + dAtA[i] = 0x22 + } + if m.Status != nil { + size, err := m.Status.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x1a + } + if m.Spec != nil { + size, err := m.Spec.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 + } + if m.Metadata != nil { + size, err := m.Metadata.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *DaemonSetSpec) 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 *DaemonSetSpec) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *DaemonSetSpec) 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.ResourceRequirements) > 0 { + for iNdEx := len(m.ResourceRequirements) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.ResourceRequirements[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x32 + } + } + if m.RevisionHistoryLimit != 0 { + i = encodeVarint(dAtA, i, uint64(m.RevisionHistoryLimit)) + i-- + dAtA[i] = 0x28 + } + if m.MinReadySeconds != 0 { + i = encodeVarint(dAtA, i, uint64(m.MinReadySeconds)) + i-- + dAtA[i] = 0x20 + } + if len(m.MaxUnavailable) > 0 { + i -= len(m.MaxUnavailable) + copy(dAtA[i:], m.MaxUnavailable) + i = encodeVarint(dAtA, i, uint64(len(m.MaxUnavailable))) + i-- + dAtA[i] = 0x1a + } + if len(m.DeploymentStrategy) > 0 { + i -= len(m.DeploymentStrategy) + copy(dAtA[i:], m.DeploymentStrategy) + i = encodeVarint(dAtA, i, uint64(len(m.DeploymentStrategy))) + i-- + dAtA[i] = 0x12 + } + if len(m.Selectors) > 0 { + for iNdEx := len(m.Selectors) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Selectors[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *DaemonSetStatus) 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 *DaemonSetStatus) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *DaemonSetStatus) 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.NumberUnavailable != 0 { + i = encodeVarint(dAtA, i, uint64(m.NumberUnavailable)) + i-- + dAtA[i] = 0x40 + } + if m.NumberAvailable != 0 { + i = encodeVarint(dAtA, i, uint64(m.NumberAvailable)) + i-- + dAtA[i] = 0x38 + } + if m.UpdatedNumberScheduled != 0 { + i = encodeVarint(dAtA, i, uint64(m.UpdatedNumberScheduled)) + i-- + dAtA[i] = 0x30 + } + if m.NumberReady != 0 { + i = encodeVarint(dAtA, i, uint64(m.NumberReady)) + i-- + dAtA[i] = 0x20 + } + if m.DesiredNumberScheduled != 0 { + i = encodeVarint(dAtA, i, uint64(m.DesiredNumberScheduled)) + i-- + dAtA[i] = 0x18 + } + if m.NumberMisscheduled != 0 { + i = encodeVarint(dAtA, i, uint64(m.NumberMisscheduled)) + i-- + dAtA[i] = 0x10 + } + if m.CurrentNumberScheduled != 0 { + i = encodeVarint(dAtA, i, uint64(m.CurrentNumberScheduled)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *DaemonSetCondition) 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 *DaemonSetCondition) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *DaemonSetCondition) 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.Message) > 0 { + i -= len(m.Message) + copy(dAtA[i:], m.Message) + i = encodeVarint(dAtA, i, uint64(len(m.Message))) + i-- + dAtA[i] = 0x2a + } + if len(m.Reason) > 0 { + i -= len(m.Reason) + copy(dAtA[i:], m.Reason) + i = encodeVarint(dAtA, i, uint64(len(m.Reason))) + i-- + dAtA[i] = 0x22 + } + if m.LastTransitionTime != 0 { + i = encodeVarint(dAtA, i, uint64(m.LastTransitionTime)) + i-- + dAtA[i] = 0x18 + } + if len(m.Status) > 0 { + i -= len(m.Status) + copy(dAtA[i:], m.Status) + i = encodeVarint(dAtA, i, uint64(len(m.Status))) + i-- + dAtA[i] = 0x12 + } + if len(m.Type) > 0 { + i -= len(m.Type) + copy(dAtA[i:], m.Type) + i = encodeVarint(dAtA, i, uint64(len(m.Type))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *DaemonSet) 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 *DaemonSet) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *DaemonSet) 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.Conditions) > 0 { + for iNdEx := len(m.Conditions) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Conditions[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x3a + } + } + if m.Metrics != nil { + size, err := m.Metrics.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x32 + } + if len(m.Tags) > 0 { + for iNdEx := len(m.Tags) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Tags[iNdEx]) + copy(dAtA[i:], m.Tags[iNdEx]) + i = encodeVarint(dAtA, i, uint64(len(m.Tags[iNdEx]))) + i-- + dAtA[i] = 0x2a + } + } + if len(m.Yaml) > 0 { + i -= len(m.Yaml) + copy(dAtA[i:], m.Yaml) + i = encodeVarint(dAtA, i, uint64(len(m.Yaml))) + i-- + dAtA[i] = 0x22 + } + if m.Status != nil { + size, err := m.Status.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x1a + } + if m.Spec != nil { + size, err := m.Spec.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 + } + if m.Metadata != nil { + size, err := m.Metadata.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *StatefulSetSpec) 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 *StatefulSetSpec) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *StatefulSetSpec) 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.ResourceRequirements) > 0 { + for iNdEx := len(m.ResourceRequirements) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.ResourceRequirements[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x3a + } + } + if m.Partition != 0 { + i = encodeVarint(dAtA, i, uint64(m.Partition)) + i-- + dAtA[i] = 0x30 + } + if len(m.UpdateStrategy) > 0 { + i -= len(m.UpdateStrategy) + copy(dAtA[i:], m.UpdateStrategy) + i = encodeVarint(dAtA, i, uint64(len(m.UpdateStrategy))) + i-- + dAtA[i] = 0x2a + } + if len(m.PodManagementPolicy) > 0 { + i -= len(m.PodManagementPolicy) + copy(dAtA[i:], m.PodManagementPolicy) + i = encodeVarint(dAtA, i, uint64(len(m.PodManagementPolicy))) + i-- + dAtA[i] = 0x22 + } + if len(m.ServiceName) > 0 { + i -= len(m.ServiceName) + copy(dAtA[i:], m.ServiceName) + i = encodeVarint(dAtA, i, uint64(len(m.ServiceName))) + i-- + dAtA[i] = 0x1a + } + if len(m.Selectors) > 0 { + for iNdEx := len(m.Selectors) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Selectors[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 + } + } + if m.DesiredReplicas != 0 { + i = encodeVarint(dAtA, i, uint64(m.DesiredReplicas)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *StatefulSetStatus) 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 *StatefulSetStatus) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *StatefulSetStatus) 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.UpdatedReplicas != 0 { + i = encodeVarint(dAtA, i, uint64(m.UpdatedReplicas)) + i-- + dAtA[i] = 0x20 + } + if m.CurrentReplicas != 0 { + i = encodeVarint(dAtA, i, uint64(m.CurrentReplicas)) + i-- + dAtA[i] = 0x18 + } + if m.ReadyReplicas != 0 { + i = encodeVarint(dAtA, i, uint64(m.ReadyReplicas)) + i-- + dAtA[i] = 0x10 + } + if m.Replicas != 0 { + i = encodeVarint(dAtA, i, uint64(m.Replicas)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *StatefulSetCondition) 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 *StatefulSetCondition) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *StatefulSetCondition) 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.Message) > 0 { + i -= len(m.Message) + copy(dAtA[i:], m.Message) + i = encodeVarint(dAtA, i, uint64(len(m.Message))) + i-- + dAtA[i] = 0x2a + } + if len(m.Reason) > 0 { + i -= len(m.Reason) + copy(dAtA[i:], m.Reason) + i = encodeVarint(dAtA, i, uint64(len(m.Reason))) + i-- + dAtA[i] = 0x22 + } + if m.LastTransitionTime != 0 { + i = encodeVarint(dAtA, i, uint64(m.LastTransitionTime)) + i-- + dAtA[i] = 0x18 + } + if len(m.Status) > 0 { + i -= len(m.Status) + copy(dAtA[i:], m.Status) + i = encodeVarint(dAtA, i, uint64(len(m.Status))) + i-- + dAtA[i] = 0x12 + } + if len(m.Type) > 0 { + i -= len(m.Type) + copy(dAtA[i:], m.Type) + i = encodeVarint(dAtA, i, uint64(len(m.Type))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *StatefulSet) 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 *StatefulSet) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *StatefulSet) 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.Conditions) > 0 { + for iNdEx := len(m.Conditions) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Conditions[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x3a + } + } + if m.Metrics != nil { + size, err := m.Metrics.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x32 + } + if len(m.Tags) > 0 { + for iNdEx := len(m.Tags) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Tags[iNdEx]) + copy(dAtA[i:], m.Tags[iNdEx]) + i = encodeVarint(dAtA, i, uint64(len(m.Tags[iNdEx]))) + i-- + dAtA[i] = 0x2a + } + } + if len(m.Yaml) > 0 { + i -= len(m.Yaml) + copy(dAtA[i:], m.Yaml) + i = encodeVarint(dAtA, i, uint64(len(m.Yaml))) + i-- + dAtA[i] = 0x22 + } + if m.Status != nil { + size, err := m.Status.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x1a + } + if m.Spec != nil { + size, err := m.Spec.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 + } + if m.Metadata != nil { + size, err := m.Metadata.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *PersistentVolume) 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 *PersistentVolume) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *PersistentVolume) 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.Tags) > 0 { + for iNdEx := len(m.Tags) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Tags[iNdEx]) + copy(dAtA[i:], m.Tags[iNdEx]) + i = encodeVarint(dAtA, i, uint64(len(m.Tags[iNdEx]))) + i-- + dAtA[i] = 0x2a + } + } + if len(m.Yaml) > 0 { + i -= len(m.Yaml) + copy(dAtA[i:], m.Yaml) + i = encodeVarint(dAtA, i, uint64(len(m.Yaml))) + i-- + dAtA[i] = 0x22 + } + if m.Status != nil { + size, err := m.Status.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x1a + } + if m.Spec != nil { + size, err := m.Spec.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 + } + if m.Metadata != nil { + size, err := m.Metadata.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *PersistentVolumeSpec) 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 *PersistentVolumeSpec) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *PersistentVolumeSpec) 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.PersistentVolumeSource != nil { + size, err := m.PersistentVolumeSource.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x52 + } + if len(m.NodeAffinity) > 0 { + for iNdEx := len(m.NodeAffinity) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.NodeAffinity[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x4a + } + } + if len(m.VolumeMode) > 0 { + i -= len(m.VolumeMode) + copy(dAtA[i:], m.VolumeMode) + i = encodeVarint(dAtA, i, uint64(len(m.VolumeMode))) + i-- + dAtA[i] = 0x42 + } + if len(m.MountOptions) > 0 { + for iNdEx := len(m.MountOptions) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.MountOptions[iNdEx]) + copy(dAtA[i:], m.MountOptions[iNdEx]) + i = encodeVarint(dAtA, i, uint64(len(m.MountOptions[iNdEx]))) + i-- + dAtA[i] = 0x3a + } + } + if len(m.StorageClassName) > 0 { + i -= len(m.StorageClassName) + copy(dAtA[i:], m.StorageClassName) + i = encodeVarint(dAtA, i, uint64(len(m.StorageClassName))) + i-- + dAtA[i] = 0x32 + } + if len(m.PersistentVolumeReclaimPolicy) > 0 { + i -= len(m.PersistentVolumeReclaimPolicy) + copy(dAtA[i:], m.PersistentVolumeReclaimPolicy) + i = encodeVarint(dAtA, i, uint64(len(m.PersistentVolumeReclaimPolicy))) + i-- + dAtA[i] = 0x2a + } + if m.ClaimRef != nil { + size, err := m.ClaimRef.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x22 + } + if len(m.AccessModes) > 0 { + for iNdEx := len(m.AccessModes) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.AccessModes[iNdEx]) + copy(dAtA[i:], m.AccessModes[iNdEx]) + i = encodeVarint(dAtA, i, uint64(len(m.AccessModes[iNdEx]))) + i-- + dAtA[i] = 0x1a + } + } + if len(m.PersistentVolumeType) > 0 { + i -= len(m.PersistentVolumeType) + copy(dAtA[i:], m.PersistentVolumeType) + i = encodeVarint(dAtA, i, uint64(len(m.PersistentVolumeType))) + i-- + dAtA[i] = 0x12 + } + if len(m.Capacity) > 0 { + for k := range m.Capacity { + v := m.Capacity[k] + baseI := i + i = encodeVarint(dAtA, i, uint64(v)) + i-- + dAtA[i] = 0x10 + 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] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *PersistentVolumeSource) 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 *PersistentVolumeSource) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *PersistentVolumeSource) 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.Csi != nil { + size, err := m.Csi.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x2a + } + if m.AzureDisk != nil { + size, err := m.AzureDisk.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x22 + } + if m.AzureFile != nil { + size, err := m.AzureFile.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x1a + } + if m.AwsElasticBlockStore != nil { + size, err := m.AwsElasticBlockStore.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 + } + if m.GcePersistentDisk != nil { + size, err := m.GcePersistentDisk.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *GCEPersistentDiskVolumeSource) 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 *GCEPersistentDiskVolumeSource) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *GCEPersistentDiskVolumeSource) 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.ReadOnly { + i-- + if m.ReadOnly { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x20 + } + if m.Partition != 0 { + i = encodeVarint(dAtA, i, uint64(m.Partition)) + i-- + dAtA[i] = 0x18 + } + if len(m.FsType) > 0 { + i -= len(m.FsType) + copy(dAtA[i:], m.FsType) + i = encodeVarint(dAtA, i, uint64(len(m.FsType))) + i-- + dAtA[i] = 0x12 + } + if len(m.PdName) > 0 { + i -= len(m.PdName) + copy(dAtA[i:], m.PdName) + i = encodeVarint(dAtA, i, uint64(len(m.PdName))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *AWSElasticBlockStoreVolumeSource) 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 *AWSElasticBlockStoreVolumeSource) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *AWSElasticBlockStoreVolumeSource) 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.ReadOnly { + i-- + if m.ReadOnly { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x20 + } + if m.Partition != 0 { + i = encodeVarint(dAtA, i, uint64(m.Partition)) + i-- + dAtA[i] = 0x18 + } + if len(m.FsType) > 0 { + i -= len(m.FsType) + copy(dAtA[i:], m.FsType) + i = encodeVarint(dAtA, i, uint64(len(m.FsType))) + i-- + dAtA[i] = 0x12 + } + if len(m.VolumeID) > 0 { + i -= len(m.VolumeID) + copy(dAtA[i:], m.VolumeID) + i = encodeVarint(dAtA, i, uint64(len(m.VolumeID))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *AzureFilePersistentVolumeSource) 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 *AzureFilePersistentVolumeSource) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *AzureFilePersistentVolumeSource) 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.SecretNamespace) > 0 { + i -= len(m.SecretNamespace) + copy(dAtA[i:], m.SecretNamespace) + i = encodeVarint(dAtA, i, uint64(len(m.SecretNamespace))) + i-- + dAtA[i] = 0x22 + } + if m.ReadOnly { + i-- + if m.ReadOnly { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + } + if len(m.ShareName) > 0 { + i -= len(m.ShareName) + copy(dAtA[i:], m.ShareName) + i = encodeVarint(dAtA, i, uint64(len(m.ShareName))) + i-- + dAtA[i] = 0x12 + } + if len(m.SecretName) > 0 { + i -= len(m.SecretName) + copy(dAtA[i:], m.SecretName) + i = encodeVarint(dAtA, i, uint64(len(m.SecretName))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *AzureDiskVolumeSource) 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 *AzureDiskVolumeSource) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *AzureDiskVolumeSource) 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.Kind) > 0 { + i -= len(m.Kind) + copy(dAtA[i:], m.Kind) + i = encodeVarint(dAtA, i, uint64(len(m.Kind))) + i-- + dAtA[i] = 0x32 + } + if m.ReadOnly { + i-- + if m.ReadOnly { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x28 + } + if len(m.FsType) > 0 { + i -= len(m.FsType) + copy(dAtA[i:], m.FsType) + i = encodeVarint(dAtA, i, uint64(len(m.FsType))) + i-- + dAtA[i] = 0x22 + } + if len(m.CachingMode) > 0 { + i -= len(m.CachingMode) + copy(dAtA[i:], m.CachingMode) + i = encodeVarint(dAtA, i, uint64(len(m.CachingMode))) + i-- + dAtA[i] = 0x1a + } + if len(m.DiskURI) > 0 { + i -= len(m.DiskURI) + copy(dAtA[i:], m.DiskURI) + i = encodeVarint(dAtA, i, uint64(len(m.DiskURI))) + i-- + dAtA[i] = 0x12 + } + if len(m.DiskName) > 0 { + i -= len(m.DiskName) + copy(dAtA[i:], m.DiskName) + i = encodeVarint(dAtA, i, uint64(len(m.DiskName))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *CSIVolumeSource) 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 *CSIVolumeSource) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *CSIVolumeSource) 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.NodeExpandSecretRef != nil { + size, err := m.NodeExpandSecretRef.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x52 + } + if m.ControllerExpandSecretRef != nil { + size, err := m.ControllerExpandSecretRef.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x4a + } + if m.NodePublishSecretRef != nil { + size, err := m.NodePublishSecretRef.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x42 + } + if m.NodeStageSecretRef != nil { + size, err := m.NodeStageSecretRef.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x3a + } + if m.ControllerPublishSecretRef != nil { + size, err := m.ControllerPublishSecretRef.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x32 + } + if len(m.VolumeAttributes) > 0 { + for k := range m.VolumeAttributes { + v := m.VolumeAttributes[k] + baseI := i + i -= len(v) + copy(dAtA[i:], v) + i = encodeVarint(dAtA, i, uint64(len(v))) + i-- + dAtA[i] = 0x12 + i -= len(k) + copy(dAtA[i:], k) + i = encodeVarint(dAtA, i, uint64(len(k))) + i-- + dAtA[i] = 0xa + i = encodeVarint(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0x2a + } + } + if len(m.FsType) > 0 { + i -= len(m.FsType) + copy(dAtA[i:], m.FsType) + i = encodeVarint(dAtA, i, uint64(len(m.FsType))) + i-- + dAtA[i] = 0x22 + } + if m.ReadOnly { + i-- + if m.ReadOnly { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + } + if len(m.VolumeHandle) > 0 { + i -= len(m.VolumeHandle) + copy(dAtA[i:], m.VolumeHandle) + i = encodeVarint(dAtA, i, uint64(len(m.VolumeHandle))) + i-- + dAtA[i] = 0x12 + } + if len(m.Driver) > 0 { + i -= len(m.Driver) + copy(dAtA[i:], m.Driver) + i = encodeVarint(dAtA, i, uint64(len(m.Driver))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *SecretReference) 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 *SecretReference) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *SecretReference) 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.Namespace) > 0 { + i -= len(m.Namespace) + copy(dAtA[i:], m.Namespace) + i = encodeVarint(dAtA, i, uint64(len(m.Namespace))) + i-- + dAtA[i] = 0x12 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarint(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *PersistentVolumeStatus) 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 *PersistentVolumeStatus) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *PersistentVolumeStatus) 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.Reason) > 0 { + i -= len(m.Reason) + copy(dAtA[i:], m.Reason) + i = encodeVarint(dAtA, i, uint64(len(m.Reason))) + i-- + dAtA[i] = 0x1a + } + if len(m.Message) > 0 { + i -= len(m.Message) + copy(dAtA[i:], m.Message) + i = encodeVarint(dAtA, i, uint64(len(m.Message))) + i-- + dAtA[i] = 0x12 + } + if len(m.Phase) > 0 { + i -= len(m.Phase) + copy(dAtA[i:], m.Phase) + i = encodeVarint(dAtA, i, uint64(len(m.Phase))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *NodeSelectorTerm) 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 *NodeSelectorTerm) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *NodeSelectorTerm) 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.MatchFields) > 0 { + for iNdEx := len(m.MatchFields) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.MatchFields[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 + } + } + if len(m.MatchExpressions) > 0 { + for iNdEx := len(m.MatchExpressions) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.MatchExpressions[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *PersistentVolumeClaim) 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 *PersistentVolumeClaim) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *PersistentVolumeClaim) 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.Tags) > 0 { + for iNdEx := len(m.Tags) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Tags[iNdEx]) + copy(dAtA[i:], m.Tags[iNdEx]) + i = encodeVarint(dAtA, i, uint64(len(m.Tags[iNdEx]))) + i-- + dAtA[i] = 0x2a + } + } + if len(m.Yaml) > 0 { + i -= len(m.Yaml) + copy(dAtA[i:], m.Yaml) + i = encodeVarint(dAtA, i, uint64(len(m.Yaml))) + i-- + dAtA[i] = 0x22 + } + if m.Status != nil { + size, err := m.Status.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x1a + } + if m.Spec != nil { + size, err := m.Spec.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 + } + if m.Metadata != nil { + size, err := m.Metadata.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *PersistentVolumeClaimStatus) 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 *PersistentVolumeClaimStatus) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *PersistentVolumeClaimStatus) 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.Conditions) > 0 { + for iNdEx := len(m.Conditions) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Conditions[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x22 + } + } + if len(m.Capacity) > 0 { + for k := range m.Capacity { + v := m.Capacity[k] + baseI := i + i = encodeVarint(dAtA, i, uint64(v)) + i-- + dAtA[i] = 0x10 + 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] = 0x1a + } + } + if len(m.AccessModes) > 0 { + for iNdEx := len(m.AccessModes) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.AccessModes[iNdEx]) + copy(dAtA[i:], m.AccessModes[iNdEx]) + i = encodeVarint(dAtA, i, uint64(len(m.AccessModes[iNdEx]))) + i-- + dAtA[i] = 0x12 + } + } + if len(m.Phase) > 0 { + i -= len(m.Phase) + copy(dAtA[i:], m.Phase) + i = encodeVarint(dAtA, i, uint64(len(m.Phase))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *PersistentVolumeClaimSpec) 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 *PersistentVolumeClaimSpec) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *PersistentVolumeClaimSpec) 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.DataSource != nil { + size, err := m.DataSource.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x3a + } + if len(m.VolumeMode) > 0 { + i -= len(m.VolumeMode) + copy(dAtA[i:], m.VolumeMode) + i = encodeVarint(dAtA, i, uint64(len(m.VolumeMode))) + i-- + dAtA[i] = 0x32 + } + if len(m.StorageClassName) > 0 { + i -= len(m.StorageClassName) + copy(dAtA[i:], m.StorageClassName) + i = encodeVarint(dAtA, i, uint64(len(m.StorageClassName))) + i-- + dAtA[i] = 0x2a + } + if len(m.Selector) > 0 { + for iNdEx := len(m.Selector) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Selector[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x22 + } + } + if len(m.VolumeName) > 0 { + i -= len(m.VolumeName) + copy(dAtA[i:], m.VolumeName) + i = encodeVarint(dAtA, i, uint64(len(m.VolumeName))) + i-- + dAtA[i] = 0x1a + } + if m.Resources != nil { + size, err := m.Resources.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 + } + if len(m.AccessModes) > 0 { + for iNdEx := len(m.AccessModes) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.AccessModes[iNdEx]) + copy(dAtA[i:], m.AccessModes[iNdEx]) + i = encodeVarint(dAtA, i, uint64(len(m.AccessModes[iNdEx]))) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *TypedLocalObjectReference) 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 *TypedLocalObjectReference) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *TypedLocalObjectReference) 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.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarint(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x1a + } + if len(m.Kind) > 0 { + i -= len(m.Kind) + copy(dAtA[i:], m.Kind) + i = encodeVarint(dAtA, i, uint64(len(m.Kind))) + i-- + dAtA[i] = 0x12 + } + if len(m.ApiGroup) > 0 { + i -= len(m.ApiGroup) + copy(dAtA[i:], m.ApiGroup) + i = encodeVarint(dAtA, i, uint64(len(m.ApiGroup))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *PersistentVolumeClaimCondition) 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 *PersistentVolumeClaimCondition) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *PersistentVolumeClaimCondition) 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.Message) > 0 { + i -= len(m.Message) + copy(dAtA[i:], m.Message) + i = encodeVarint(dAtA, i, uint64(len(m.Message))) + i-- + dAtA[i] = 0x32 + } + if len(m.Reason) > 0 { + i -= len(m.Reason) + copy(dAtA[i:], m.Reason) + i = encodeVarint(dAtA, i, uint64(len(m.Reason))) + i-- + dAtA[i] = 0x2a + } + if m.LastTransitionTime != 0 { + i = encodeVarint(dAtA, i, uint64(m.LastTransitionTime)) + i-- + dAtA[i] = 0x20 + } + if m.LastProbeTime != 0 { + i = encodeVarint(dAtA, i, uint64(m.LastProbeTime)) + i-- + dAtA[i] = 0x18 + } + if len(m.Status) > 0 { + i -= len(m.Status) + copy(dAtA[i:], m.Status) + i = encodeVarint(dAtA, i, uint64(len(m.Status))) + i-- + dAtA[i] = 0x12 + } + if len(m.Type) > 0 { + i -= len(m.Type) + copy(dAtA[i:], m.Type) + i = encodeVarint(dAtA, i, uint64(len(m.Type))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *PolicyRule) 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 *PolicyRule) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *PolicyRule) 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.NonResourceURLs) > 0 { + for iNdEx := len(m.NonResourceURLs) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.NonResourceURLs[iNdEx]) + copy(dAtA[i:], m.NonResourceURLs[iNdEx]) + i = encodeVarint(dAtA, i, uint64(len(m.NonResourceURLs[iNdEx]))) + i-- + dAtA[i] = 0x2a + } + } + if len(m.ResourceNames) > 0 { + for iNdEx := len(m.ResourceNames) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ResourceNames[iNdEx]) + copy(dAtA[i:], m.ResourceNames[iNdEx]) + i = encodeVarint(dAtA, i, uint64(len(m.ResourceNames[iNdEx]))) + i-- + dAtA[i] = 0x22 + } + } + if len(m.Resources) > 0 { + for iNdEx := len(m.Resources) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Resources[iNdEx]) + copy(dAtA[i:], m.Resources[iNdEx]) + i = encodeVarint(dAtA, i, uint64(len(m.Resources[iNdEx]))) + i-- + dAtA[i] = 0x1a + } + } + if len(m.ApiGroups) > 0 { + for iNdEx := len(m.ApiGroups) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ApiGroups[iNdEx]) + copy(dAtA[i:], m.ApiGroups[iNdEx]) + i = encodeVarint(dAtA, i, uint64(len(m.ApiGroups[iNdEx]))) + i-- + dAtA[i] = 0x12 + } + } + if len(m.Verbs) > 0 { + for iNdEx := len(m.Verbs) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Verbs[iNdEx]) + copy(dAtA[i:], m.Verbs[iNdEx]) + i = encodeVarint(dAtA, i, uint64(len(m.Verbs[iNdEx]))) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *Subject) 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 *Subject) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *Subject) 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.Namespace) > 0 { + i -= len(m.Namespace) + copy(dAtA[i:], m.Namespace) + i = encodeVarint(dAtA, i, uint64(len(m.Namespace))) + i-- + dAtA[i] = 0x22 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarint(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x1a + } + if len(m.ApiGroup) > 0 { + i -= len(m.ApiGroup) + copy(dAtA[i:], m.ApiGroup) + i = encodeVarint(dAtA, i, uint64(len(m.ApiGroup))) + i-- + dAtA[i] = 0x12 + } + if len(m.Kind) > 0 { + i -= len(m.Kind) + copy(dAtA[i:], m.Kind) + i = encodeVarint(dAtA, i, uint64(len(m.Kind))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Role) 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 *Role) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *Role) 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.Tags) > 0 { + for iNdEx := len(m.Tags) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Tags[iNdEx]) + copy(dAtA[i:], m.Tags[iNdEx]) + i = encodeVarint(dAtA, i, uint64(len(m.Tags[iNdEx]))) + i-- + dAtA[i] = 0x22 + } + } + if len(m.Yaml) > 0 { + i -= len(m.Yaml) + copy(dAtA[i:], m.Yaml) + i = encodeVarint(dAtA, i, uint64(len(m.Yaml))) + i-- + dAtA[i] = 0x1a + } + if len(m.Rules) > 0 { + for iNdEx := len(m.Rules) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Rules[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 + } + } + if m.Metadata != nil { + size, err := m.Metadata.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RoleBinding) 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 *RoleBinding) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *RoleBinding) 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.Tags) > 0 { + for iNdEx := len(m.Tags) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Tags[iNdEx]) + copy(dAtA[i:], m.Tags[iNdEx]) + i = encodeVarint(dAtA, i, uint64(len(m.Tags[iNdEx]))) + i-- + dAtA[i] = 0x2a + } + } + if len(m.Yaml) > 0 { + i -= len(m.Yaml) + copy(dAtA[i:], m.Yaml) + i = encodeVarint(dAtA, i, uint64(len(m.Yaml))) + i-- + dAtA[i] = 0x22 + } + if m.RoleRef != nil { + size, err := m.RoleRef.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x1a + } + if len(m.Subjects) > 0 { + for iNdEx := len(m.Subjects) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Subjects[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 + } + } + if m.Metadata != nil { + size, err := m.Metadata.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ClusterRole) 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 *ClusterRole) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *ClusterRole) 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.Metrics != nil { + size, err := m.Metrics.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x32 + } + if len(m.Tags) > 0 { + for iNdEx := len(m.Tags) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Tags[iNdEx]) + copy(dAtA[i:], m.Tags[iNdEx]) + i = encodeVarint(dAtA, i, uint64(len(m.Tags[iNdEx]))) + i-- + dAtA[i] = 0x2a + } + } + if len(m.Yaml) > 0 { + i -= len(m.Yaml) + copy(dAtA[i:], m.Yaml) + i = encodeVarint(dAtA, i, uint64(len(m.Yaml))) + i-- + dAtA[i] = 0x22 + } + if len(m.AggregationRules) > 0 { + for iNdEx := len(m.AggregationRules) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.AggregationRules[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x1a + } + } + if len(m.Rules) > 0 { + for iNdEx := len(m.Rules) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Rules[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 + } + } + if m.Metadata != nil { + size, err := m.Metadata.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ClusterRoleBinding) 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 *ClusterRoleBinding) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *ClusterRoleBinding) 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.Tags) > 0 { + for iNdEx := len(m.Tags) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Tags[iNdEx]) + copy(dAtA[i:], m.Tags[iNdEx]) + i = encodeVarint(dAtA, i, uint64(len(m.Tags[iNdEx]))) + i-- + dAtA[i] = 0x2a + } + } + if len(m.Yaml) > 0 { + i -= len(m.Yaml) + copy(dAtA[i:], m.Yaml) + i = encodeVarint(dAtA, i, uint64(len(m.Yaml))) + i-- + dAtA[i] = 0x22 + } + if m.RoleRef != nil { + size, err := m.RoleRef.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x1a + } + if len(m.Subjects) > 0 { + for iNdEx := len(m.Subjects) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Subjects[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 + } + } + if m.Metadata != nil { + size, err := m.Metadata.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ServiceAccount) 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 *ServiceAccount) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *ServiceAccount) 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.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 + } + } + if len(m.Yaml) > 0 { + i -= len(m.Yaml) + copy(dAtA[i:], m.Yaml) + i = encodeVarint(dAtA, i, uint64(len(m.Yaml))) + i-- + dAtA[i] = 0x2a + } + if m.AutomountServiceAccountToken { + i-- + if m.AutomountServiceAccountToken { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x20 + } + if len(m.ImagePullSecrets) > 0 { + for iNdEx := len(m.ImagePullSecrets) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.ImagePullSecrets[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x1a + } + } + if len(m.Secrets) > 0 { + for iNdEx := len(m.Secrets) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Secrets[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 + } + } + if m.Metadata != nil { + size, err := m.Metadata.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *IngressServiceBackend) 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 *IngressServiceBackend) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *IngressServiceBackend) 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.PortNumber != 0 { + i = encodeVarint(dAtA, i, uint64(m.PortNumber)) + i-- + dAtA[i] = 0x18 + } + if len(m.PortName) > 0 { + i -= len(m.PortName) + copy(dAtA[i:], m.PortName) + i = encodeVarint(dAtA, i, uint64(len(m.PortName))) + i-- + dAtA[i] = 0x12 + } + if len(m.ServiceName) > 0 { + i -= len(m.ServiceName) + copy(dAtA[i:], m.ServiceName) + i = encodeVarint(dAtA, i, uint64(len(m.ServiceName))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *IngressBackend) 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 *IngressBackend) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *IngressBackend) 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.Resource != nil { + size, err := m.Resource.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 + } + if m.Service != nil { + size, err := m.Service.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *IngressTLS) 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 *IngressTLS) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *IngressTLS) 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.SecretName) > 0 { + i -= len(m.SecretName) + copy(dAtA[i:], m.SecretName) + i = encodeVarint(dAtA, i, uint64(len(m.SecretName))) + i-- + dAtA[i] = 0x12 + } + if len(m.Hosts) > 0 { + for iNdEx := len(m.Hosts) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Hosts[iNdEx]) + copy(dAtA[i:], m.Hosts[iNdEx]) + i = encodeVarint(dAtA, i, uint64(len(m.Hosts[iNdEx]))) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *HTTPIngressPath) 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 *HTTPIngressPath) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *HTTPIngressPath) 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.PathType) > 0 { + i -= len(m.PathType) + copy(dAtA[i:], m.PathType) + i = encodeVarint(dAtA, i, uint64(len(m.PathType))) + i-- + dAtA[i] = 0x1a + } + if m.Backend != nil { + size, err := m.Backend.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 + } + if len(m.Path) > 0 { + i -= len(m.Path) + copy(dAtA[i:], m.Path) + i = encodeVarint(dAtA, i, uint64(len(m.Path))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *IngressRule) 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 *IngressRule) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *IngressRule) 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.HttpPaths) > 0 { + for iNdEx := len(m.HttpPaths) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.HttpPaths[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 + } + } + if len(m.Host) > 0 { + i -= len(m.Host) + copy(dAtA[i:], m.Host) + i = encodeVarint(dAtA, i, uint64(len(m.Host))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *IngressSpec) 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 *IngressSpec) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *IngressSpec) 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.IngressClassName) > 0 { + i -= len(m.IngressClassName) + copy(dAtA[i:], m.IngressClassName) + i = encodeVarint(dAtA, i, uint64(len(m.IngressClassName))) + i-- + dAtA[i] = 0x22 + } + if len(m.Rules) > 0 { + for iNdEx := len(m.Rules) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Rules[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x1a + } + } + if len(m.Tls) > 0 { + for iNdEx := len(m.Tls) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Tls[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 + } + } + if m.DefaultBackend != nil { + size, err := m.DefaultBackend.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *PortStatus) 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 *PortStatus) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *PortStatus) 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.Error) > 0 { + i -= len(m.Error) + copy(dAtA[i:], m.Error) + i = encodeVarint(dAtA, i, uint64(len(m.Error))) + i-- + dAtA[i] = 0x1a + } + if len(m.Protocol) > 0 { + i -= len(m.Protocol) + copy(dAtA[i:], m.Protocol) + i = encodeVarint(dAtA, i, uint64(len(m.Protocol))) + i-- + dAtA[i] = 0x12 + } + if m.Port != 0 { + i = encodeVarint(dAtA, i, uint64(m.Port)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *LoadBalancerIngress) 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 *LoadBalancerIngress) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *LoadBalancerIngress) 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.Ports) > 0 { + for iNdEx := len(m.Ports) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Ports[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x22 + } + } + if len(m.Hostname) > 0 { + i -= len(m.Hostname) + copy(dAtA[i:], m.Hostname) + i = encodeVarint(dAtA, i, uint64(len(m.Hostname))) + i-- + dAtA[i] = 0x12 + } + if len(m.Ip) > 0 { + i -= len(m.Ip) + copy(dAtA[i:], m.Ip) + i = encodeVarint(dAtA, i, uint64(len(m.Ip))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *IngressStatus) 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 *IngressStatus) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *IngressStatus) 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.Ingress) > 0 { + for iNdEx := len(m.Ingress) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Ingress[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *Ingress) 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 *Ingress) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *Ingress) 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.Tags) > 0 { + for iNdEx := len(m.Tags) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Tags[iNdEx]) + copy(dAtA[i:], m.Tags[iNdEx]) + i = encodeVarint(dAtA, i, uint64(len(m.Tags[iNdEx]))) + i-- + dAtA[i] = 0x2a + } + } + if len(m.Yaml) > 0 { + i -= len(m.Yaml) + copy(dAtA[i:], m.Yaml) + i = encodeVarint(dAtA, i, uint64(len(m.Yaml))) + i-- + dAtA[i] = 0x22 + } + if m.Status != nil { + size, err := m.Status.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x1a + } + if m.Spec != nil { + size, err := m.Spec.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 + } + if m.Metadata != nil { + size, err := m.Metadata.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *KafkaRequestHeader) 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 *KafkaRequestHeader) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *KafkaRequestHeader) 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.RequestVersion != 0 { + i = encodeVarint(dAtA, i, uint64(m.RequestVersion)) + i-- + dAtA[i] = 0x10 + } + if m.RequestType != 0 { + i = encodeVarint(dAtA, i, uint64(m.RequestType)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *KafkaAggregation) 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 *KafkaAggregation) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *KafkaAggregation) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.Count != 0 { + i = encodeVarint(dAtA, i, uint64(m.Count)) + i-- + dAtA[i] = 0x18 + } + if len(m.Topic) > 0 { + i -= len(m.Topic) + copy(dAtA[i:], m.Topic) + i = encodeVarint(dAtA, i, uint64(len(m.Topic))) + i-- + dAtA[i] = 0x12 + } + if m.Header != nil { + size, err := m.Header.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *DataStreamsAggregations_TopicStats) 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 *DataStreamsAggregations_TopicStats) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *DataStreamsAggregations_TopicStats) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.Count != 0 { + i = encodeVarint(dAtA, i, uint64(m.Count)) + i-- + dAtA[i] = 0x10 + } + if len(m.Topic) > 0 { + i -= len(m.Topic) + copy(dAtA[i:], m.Topic) + i = encodeVarint(dAtA, i, uint64(len(m.Topic))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *DataStreamsAggregations_KafkaProduceAggregations) 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 *DataStreamsAggregations_KafkaProduceAggregations) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *DataStreamsAggregations_KafkaProduceAggregations) 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.Stats) > 0 { + for iNdEx := len(m.Stats) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Stats[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *DataStreamsAggregations_KafkaFetchAggregations) 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 *DataStreamsAggregations_KafkaFetchAggregations) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *DataStreamsAggregations_KafkaFetchAggregations) 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.Stats) > 0 { + for iNdEx := len(m.Stats) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Stats[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *DataStreamsAggregations) 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 *DataStreamsAggregations) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *DataStreamsAggregations) 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.KafkaAggregations) > 0 { + for iNdEx := len(m.KafkaAggregations) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.KafkaAggregations[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x1a + } + } + if m.KafkaFetchAggregations != nil { + size, err := m.KafkaFetchAggregations.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 + } + if m.KafkaProduceAggregations != nil { + size, err := m.KafkaProduceAggregations.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *HTTPAggregations) 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 *HTTPAggregations) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *HTTPAggregations) 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.EndpointAggregations) > 0 { + for iNdEx := len(m.EndpointAggregations) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.EndpointAggregations[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 + } + } + return len(dAtA) - i, nil +} + +func (m *HTTP2Aggregations) 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 *HTTP2Aggregations) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *HTTP2Aggregations) 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.EndpointAggregations) > 0 { + for iNdEx := len(m.EndpointAggregations) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.EndpointAggregations[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *HTTPStats_Data) 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 *HTTPStats_Data) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *HTTPStats_Data) 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.FirstLatencySample != 0 { + i -= 8 + binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.FirstLatencySample)))) + i-- + dAtA[i] = 0x21 + } + if len(m.Latencies) > 0 { + i -= len(m.Latencies) + copy(dAtA[i:], m.Latencies) + i = encodeVarint(dAtA, i, uint64(len(m.Latencies))) + i-- + dAtA[i] = 0x12 + } + if m.Count != 0 { + i = encodeVarint(dAtA, i, uint64(m.Count)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *HTTPStats) 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 *HTTPStats) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *HTTPStats) 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.FullPath { + i-- + if m.FullPath { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x30 + } + if m.Method != 0 { + i = encodeVarint(dAtA, i, uint64(m.Method)) + i-- + dAtA[i] = 0x28 + } + if len(m.Path) > 0 { + i -= len(m.Path) + copy(dAtA[i:], m.Path) + i = encodeVarint(dAtA, i, uint64(len(m.Path))) + i-- + dAtA[i] = 0x22 + } + if len(m.StatsByStatusCode) > 0 { + for k := range m.StatsByStatusCode { + v := m.StatsByStatusCode[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 = encodeVarint(dAtA, i, uint64(k)) + i-- + dAtA[i] = 0x8 + i = encodeVarint(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0x12 + } + } + if len(m.StatsByResponseStatus) > 0 { + for iNdEx := len(m.StatsByResponseStatus) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.StatsByResponseStatus[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *DNSDatabaseEntry) 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 *DNSDatabaseEntry) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *DNSDatabaseEntry) 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.NameOffsets) > 0 { + var pksize2 int + for _, num := range m.NameOffsets { + pksize2 += sov(uint64(num)) + } + i -= pksize2 + j1 := i + for _, num1 := range m.NameOffsets { + num := uint64(num1) + for num >= 1<<7 { + dAtA[j1] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j1++ + } + dAtA[j1] = uint8(num) + j1++ + } + i = encodeVarint(dAtA, i, uint64(pksize2)) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ResourceList) 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 *ResourceList) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *ResourceList) 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.MetricValues) > 0 { + for k := range m.MetricValues { + v := m.MetricValues[k] + baseI := i + i -= 8 + binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(v)))) + i-- + dAtA[i] = 0x11 + 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] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *VerticalPodAutoscaler) 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 *VerticalPodAutoscaler) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *VerticalPodAutoscaler) 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.Conditions) > 0 { + for iNdEx := len(m.Conditions) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Conditions[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x32 + } + } + if len(m.Tags) > 0 { + for iNdEx := len(m.Tags) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Tags[iNdEx]) + copy(dAtA[i:], m.Tags[iNdEx]) + i = encodeVarint(dAtA, i, uint64(len(m.Tags[iNdEx]))) + i-- + dAtA[i] = 0x2a + } + } + if len(m.Yaml) > 0 { + i -= len(m.Yaml) + copy(dAtA[i:], m.Yaml) + i = encodeVarint(dAtA, i, uint64(len(m.Yaml))) + i-- + dAtA[i] = 0x22 + } + if m.Status != nil { + size, err := m.Status.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x1a + } + if m.Spec != nil { + size, err := m.Spec.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 + } + if m.Metadata != nil { + size, err := m.Metadata.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *VerticalPodAutoscalerCondition) 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 *VerticalPodAutoscalerCondition) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *VerticalPodAutoscalerCondition) 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.Message) > 0 { + i -= len(m.Message) + copy(dAtA[i:], m.Message) + i = encodeVarint(dAtA, i, uint64(len(m.Message))) + i-- + dAtA[i] = 0x2a + } + if len(m.Reason) > 0 { + i -= len(m.Reason) + copy(dAtA[i:], m.Reason) + i = encodeVarint(dAtA, i, uint64(len(m.Reason))) + i-- + dAtA[i] = 0x22 + } + if m.LastTransitionTime != 0 { + i = encodeVarint(dAtA, i, uint64(m.LastTransitionTime)) + i-- + dAtA[i] = 0x18 + } + if len(m.Status) > 0 { + i -= len(m.Status) + copy(dAtA[i:], m.Status) + i = encodeVarint(dAtA, i, uint64(len(m.Status))) + i-- + dAtA[i] = 0x12 + } + if len(m.Type) > 0 { + i -= len(m.Type) + copy(dAtA[i:], m.Type) + i = encodeVarint(dAtA, i, uint64(len(m.Type))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *VerticalPodAutoscalerSpec) 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 *VerticalPodAutoscalerSpec) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *VerticalPodAutoscalerSpec) 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.ResourcePolicies) > 0 { + for iNdEx := len(m.ResourcePolicies) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.ResourcePolicies[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x1a + } + } + if len(m.UpdateMode) > 0 { + i -= len(m.UpdateMode) + copy(dAtA[i:], m.UpdateMode) + i = encodeVarint(dAtA, i, uint64(len(m.UpdateMode))) + i-- + dAtA[i] = 0x12 + } + if m.Target != nil { + size, err := m.Target.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *VerticalPodAutoscalerTarget) 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 *VerticalPodAutoscalerTarget) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *VerticalPodAutoscalerTarget) 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.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarint(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x12 + } + if len(m.Kind) > 0 { + i -= len(m.Kind) + copy(dAtA[i:], m.Kind) + i = encodeVarint(dAtA, i, uint64(len(m.Kind))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ContainerResourcePolicy) 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 *ContainerResourcePolicy) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *ContainerResourcePolicy) 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.ControlledValues) > 0 { + i -= len(m.ControlledValues) + copy(dAtA[i:], m.ControlledValues) + i = encodeVarint(dAtA, i, uint64(len(m.ControlledValues))) + i-- + dAtA[i] = 0x32 + } + if len(m.ControlledResource) > 0 { + for iNdEx := len(m.ControlledResource) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ControlledResource[iNdEx]) + copy(dAtA[i:], m.ControlledResource[iNdEx]) + i = encodeVarint(dAtA, i, uint64(len(m.ControlledResource[iNdEx]))) + i-- + dAtA[i] = 0x2a + } + } + if m.MaxAllowed != nil { + size, err := m.MaxAllowed.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x22 + } + if m.MinAllowed != nil { + size, err := m.MinAllowed.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x1a + } + if len(m.Mode) > 0 { + i -= len(m.Mode) + copy(dAtA[i:], m.Mode) + i = encodeVarint(dAtA, i, uint64(len(m.Mode))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContainerName) > 0 { + i -= len(m.ContainerName) + copy(dAtA[i:], m.ContainerName) + i = encodeVarint(dAtA, i, uint64(len(m.ContainerName))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *VerticalPodAutoscalerStatus) 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 *VerticalPodAutoscalerStatus) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *VerticalPodAutoscalerStatus) 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.Conditions) > 0 { + for iNdEx := len(m.Conditions) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Conditions[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x1a + } + } + if len(m.Recommendations) > 0 { + for iNdEx := len(m.Recommendations) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Recommendations[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 + } + } + if m.LastRecommendedDate != 0 { + i = encodeVarint(dAtA, i, uint64(m.LastRecommendedDate)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *ContainerRecommendation) 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 *ContainerRecommendation) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *ContainerRecommendation) 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.UncappedTarget != nil { + size, err := m.UncappedTarget.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x2a + } + if m.UpperBound != nil { + size, err := m.UpperBound.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x22 + } + if m.LowerBound != nil { + size, err := m.LowerBound.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x1a + } + if m.Target != nil { + size, err := m.Target.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 + } + if len(m.ContainerName) > 0 { + i -= len(m.ContainerName) + copy(dAtA[i:], m.ContainerName) + i = encodeVarint(dAtA, i, uint64(len(m.ContainerName))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *VPACondition) 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 *VPACondition) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *VPACondition) 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.Message) > 0 { + i -= len(m.Message) + copy(dAtA[i:], m.Message) + i = encodeVarint(dAtA, i, uint64(len(m.Message))) + i-- + dAtA[i] = 0x2a + } + if len(m.Reason) > 0 { + i -= len(m.Reason) + copy(dAtA[i:], m.Reason) + i = encodeVarint(dAtA, i, uint64(len(m.Reason))) + i-- + dAtA[i] = 0x22 + } + if m.LastTransitionTime != 0 { + i = encodeVarint(dAtA, i, uint64(m.LastTransitionTime)) + i-- + dAtA[i] = 0x18 + } + if len(m.ConditionStatus) > 0 { + i -= len(m.ConditionStatus) + copy(dAtA[i:], m.ConditionStatus) + i = encodeVarint(dAtA, i, uint64(len(m.ConditionStatus))) + i-- + dAtA[i] = 0x12 + } + if len(m.ConditionType) > 0 { + i -= len(m.ConditionType) + copy(dAtA[i:], m.ConditionType) + i = encodeVarint(dAtA, i, uint64(len(m.ConditionType))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarint(dAtA []byte, offset int, v uint64) int { + offset -= sov(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *ResCollector_Header) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Type != 0 { + n += 1 + sov(uint64(m.Type)) + } + n += len(m.unknownFields) + return n +} + +func (m *ResCollector) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Header != nil { + l = m.Header.SizeVT() + n += 1 + l + sov(uint64(l)) + } + l = len(m.Message) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.Status != nil { + l = m.Status.SizeVT() + n += 1 + l + sov(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *CollectorProc) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.HostName) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if len(m.Processes) > 0 { + for _, e := range m.Processes { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + if m.Host != nil { + l = m.Host.SizeVT() + n += 1 + l + sov(uint64(l)) + } + if m.Info != nil { + l = m.Info.SizeVT() + n += 1 + l + sov(uint64(l)) + } + if m.GroupId != 0 { + n += 1 + sov(uint64(m.GroupId)) + } + if m.GroupSize != 0 { + n += 1 + sov(uint64(m.GroupSize)) + } + if len(m.Containers) > 0 { + for _, e := range m.Containers { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + l = len(m.NetworkId) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.ContainerHostType != 0 { + n += 1 + sov(uint64(m.ContainerHostType)) + } + if vtmsg, ok := m.Hints.(interface{ SizeVT() int }); ok { + n += vtmsg.SizeVT() + } + n += len(m.unknownFields) + return n +} + +func (m *CollectorProc_HintMask) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += 1 + sov(uint64(m.HintMask)) + return n +} +func (m *CollectorProcDiscovery) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.HostName) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.GroupId != 0 { + n += 1 + sov(uint64(m.GroupId)) + } + if m.GroupSize != 0 { + n += 1 + sov(uint64(m.GroupSize)) + } + if len(m.ProcessDiscoveries) > 0 { + for _, e := range m.ProcessDiscoveries { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + if m.Host != nil { + l = m.Host.SizeVT() + n += 1 + l + sov(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *CollectorRealTime) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.HostName) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if len(m.Stats) > 0 { + for _, e := range m.Stats { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + if m.HostId != 0 { + n += 1 + sov(uint64(m.HostId)) + } + if m.OrgId != 0 { + n += 1 + sov(uint64(m.OrgId)) + } + if m.GroupId != 0 { + n += 1 + sov(uint64(m.GroupId)) + } + if m.GroupSize != 0 { + n += 1 + sov(uint64(m.GroupSize)) + } + if m.NumCpus != 0 { + n += 1 + sov(uint64(m.NumCpus)) + } + if m.TotalMemory != 0 { + n += 1 + sov(uint64(m.TotalMemory)) + } + if len(m.ContainerStats) > 0 { + for _, e := range m.ContainerStats { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + if m.ContainerHostType != 0 { + n += 1 + sov(uint64(m.ContainerHostType)) + } + n += len(m.unknownFields) + return n +} + +func (m *CollectorContainer) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.HostName) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.Info != nil { + l = m.Info.SizeVT() + n += 1 + l + sov(uint64(l)) + } + if len(m.Containers) > 0 { + for _, e := range m.Containers { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + if m.GroupId != 0 { + n += 1 + sov(uint64(m.GroupId)) + } + if m.GroupSize != 0 { + n += 1 + sov(uint64(m.GroupSize)) + } + if m.Host != nil { + l = m.Host.SizeVT() + n += 1 + l + sov(uint64(l)) + } + if m.ContainerHostType != 0 { + n += 1 + sov(uint64(m.ContainerHostType)) + } + l = len(m.NetworkId) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *CollectorContainerRealTime) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.HostName) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if len(m.Stats) > 0 { + for _, e := range m.Stats { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + if m.NumCpus != 0 { + n += 1 + sov(uint64(m.NumCpus)) + } + if m.TotalMemory != 0 { + n += 1 + sov(uint64(m.TotalMemory)) + } + if m.HostId != 0 { + n += 1 + sov(uint64(m.HostId)) + } + if m.GroupId != 0 { + n += 1 + sov(uint64(m.GroupId)) + } + if m.GroupSize != 0 { + n += 1 + sov(uint64(m.GroupSize)) + } + if m.ContainerHostType != 0 { + n += 1 + sov(uint64(m.ContainerHostType)) + } + n += len(m.unknownFields) + return n +} + +func (m *CollectorReqStatus) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.HostName) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *CollectorPod) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.HostName) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.ClusterName) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.ClusterId) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.GroupId != 0 { + n += 1 + sov(uint64(m.GroupId)) + } + if m.GroupSize != 0 { + n += 1 + sov(uint64(m.GroupSize)) + } + if len(m.Pods) > 0 { + for _, e := range m.Pods { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + if m.Host != nil { + l = m.Host.SizeVT() + n += 1 + l + sov(uint64(l)) + } + if len(m.Tags) > 0 { + for _, s := range m.Tags { + l = len(s) + n += 1 + l + sov(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *CollectorReplicaSet) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ClusterName) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.ClusterId) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.GroupId != 0 { + n += 1 + sov(uint64(m.GroupId)) + } + if m.GroupSize != 0 { + n += 1 + sov(uint64(m.GroupSize)) + } + if len(m.ReplicaSets) > 0 { + for _, e := range m.ReplicaSets { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + if len(m.Tags) > 0 { + for _, s := range m.Tags { + l = len(s) + n += 1 + l + sov(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *CollectorDeployment) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ClusterName) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.ClusterId) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.GroupId != 0 { + n += 1 + sov(uint64(m.GroupId)) + } + if m.GroupSize != 0 { + n += 1 + sov(uint64(m.GroupSize)) + } + if len(m.Deployments) > 0 { + for _, e := range m.Deployments { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + if len(m.Tags) > 0 { + for _, s := range m.Tags { + l = len(s) + n += 1 + l + sov(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *CollectorService) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ClusterName) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.ClusterId) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.GroupId != 0 { + n += 1 + sov(uint64(m.GroupId)) + } + if m.GroupSize != 0 { + n += 1 + sov(uint64(m.GroupSize)) + } + if len(m.Services) > 0 { + for _, e := range m.Services { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + if len(m.Tags) > 0 { + for _, s := range m.Tags { + l = len(s) + n += 1 + l + sov(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *CollectorNode) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ClusterName) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.ClusterId) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.GroupId != 0 { + n += 1 + sov(uint64(m.GroupId)) + } + if m.GroupSize != 0 { + n += 1 + sov(uint64(m.GroupSize)) + } + if len(m.Nodes) > 0 { + for _, e := range m.Nodes { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + if len(m.Tags) > 0 { + for _, s := range m.Tags { + l = len(s) + n += 1 + l + sov(uint64(l)) + } + } + if len(m.HostAliasMapping) > 0 { + for k, v := range m.HostAliasMapping { + _ = 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 +} + +func (m *CollectorCluster) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ClusterName) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.ClusterId) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.GroupId != 0 { + n += 1 + sov(uint64(m.GroupId)) + } + if m.GroupSize != 0 { + n += 1 + sov(uint64(m.GroupSize)) + } + if m.Cluster != nil { + l = m.Cluster.SizeVT() + n += 1 + l + sov(uint64(l)) + } + if len(m.Tags) > 0 { + for _, s := range m.Tags { + l = len(s) + n += 1 + l + sov(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *CollectorManifest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ClusterName) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.ClusterId) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.GroupId != 0 { + n += 1 + sov(uint64(m.GroupId)) + } + if m.GroupSize != 0 { + n += 1 + sov(uint64(m.GroupSize)) + } + if len(m.Manifests) > 0 { + for _, e := range m.Manifests { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *CollectorManifestCRD) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Manifest != nil { + l = m.Manifest.SizeVT() + n += 1 + l + sov(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *CollectorManifestCR) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Manifest != nil { + l = m.Manifest.SizeVT() + n += 1 + l + sov(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *CollectorNamespace) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ClusterName) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.ClusterId) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.GroupId != 0 { + n += 1 + sov(uint64(m.GroupId)) + } + if m.GroupSize != 0 { + n += 1 + sov(uint64(m.GroupSize)) + } + if len(m.Namespaces) > 0 { + for _, e := range m.Namespaces { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + if len(m.Tags) > 0 { + for _, s := range m.Tags { + l = len(s) + n += 1 + l + sov(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *CollectorJob) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ClusterName) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.ClusterId) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.GroupId != 0 { + n += 1 + sov(uint64(m.GroupId)) + } + if m.GroupSize != 0 { + n += 1 + sov(uint64(m.GroupSize)) + } + if len(m.Jobs) > 0 { + for _, e := range m.Jobs { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + if len(m.Tags) > 0 { + for _, s := range m.Tags { + l = len(s) + n += 1 + l + sov(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *CollectorCronJob) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ClusterName) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.ClusterId) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.GroupId != 0 { + n += 1 + sov(uint64(m.GroupId)) + } + if m.GroupSize != 0 { + n += 1 + sov(uint64(m.GroupSize)) + } + if len(m.CronJobs) > 0 { + for _, e := range m.CronJobs { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + if len(m.Tags) > 0 { + for _, s := range m.Tags { + l = len(s) + n += 1 + l + sov(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *CollectorDaemonSet) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ClusterName) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.ClusterId) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.GroupId != 0 { + n += 1 + sov(uint64(m.GroupId)) + } + if m.GroupSize != 0 { + n += 1 + sov(uint64(m.GroupSize)) + } + if len(m.DaemonSets) > 0 { + for _, e := range m.DaemonSets { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + if len(m.Tags) > 0 { + for _, s := range m.Tags { + l = len(s) + n += 1 + l + sov(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *CollectorStatefulSet) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ClusterName) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.ClusterId) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.GroupId != 0 { + n += 1 + sov(uint64(m.GroupId)) + } + if m.GroupSize != 0 { + n += 1 + sov(uint64(m.GroupSize)) + } + if len(m.StatefulSets) > 0 { + for _, e := range m.StatefulSets { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + if len(m.Tags) > 0 { + for _, s := range m.Tags { + l = len(s) + n += 1 + l + sov(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *CollectorPersistentVolume) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ClusterName) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.ClusterId) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.GroupId != 0 { + n += 1 + sov(uint64(m.GroupId)) + } + if m.GroupSize != 0 { + n += 1 + sov(uint64(m.GroupSize)) + } + if len(m.PersistentVolumes) > 0 { + for _, e := range m.PersistentVolumes { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + if len(m.Tags) > 0 { + for _, s := range m.Tags { + l = len(s) + n += 1 + l + sov(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *CollectorPersistentVolumeClaim) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ClusterName) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.ClusterId) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.GroupId != 0 { + n += 1 + sov(uint64(m.GroupId)) + } + if m.GroupSize != 0 { + n += 1 + sov(uint64(m.GroupSize)) + } + if len(m.PersistentVolumeClaims) > 0 { + for _, e := range m.PersistentVolumeClaims { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + if len(m.Tags) > 0 { + for _, s := range m.Tags { + l = len(s) + n += 1 + l + sov(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *CollectorRole) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ClusterName) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.ClusterId) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.GroupId != 0 { + n += 1 + sov(uint64(m.GroupId)) + } + if m.GroupSize != 0 { + n += 1 + sov(uint64(m.GroupSize)) + } + if len(m.Roles) > 0 { + for _, e := range m.Roles { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + if len(m.Tags) > 0 { + for _, s := range m.Tags { + l = len(s) + n += 1 + l + sov(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *CollectorRoleBinding) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ClusterName) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.ClusterId) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.GroupId != 0 { + n += 1 + sov(uint64(m.GroupId)) + } + if m.GroupSize != 0 { + n += 1 + sov(uint64(m.GroupSize)) + } + if len(m.RoleBindings) > 0 { + for _, e := range m.RoleBindings { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + if len(m.Tags) > 0 { + for _, s := range m.Tags { + l = len(s) + n += 1 + l + sov(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *CollectorClusterRole) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ClusterName) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.ClusterId) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.GroupId != 0 { + n += 1 + sov(uint64(m.GroupId)) + } + if m.GroupSize != 0 { + n += 1 + sov(uint64(m.GroupSize)) + } + if len(m.ClusterRoles) > 0 { + for _, e := range m.ClusterRoles { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + if len(m.Tags) > 0 { + for _, s := range m.Tags { + l = len(s) + n += 1 + l + sov(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *CollectorClusterRoleBinding) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ClusterName) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.ClusterId) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.GroupId != 0 { + n += 1 + sov(uint64(m.GroupId)) + } + if m.GroupSize != 0 { + n += 1 + sov(uint64(m.GroupSize)) + } + if len(m.ClusterRoleBindings) > 0 { + for _, e := range m.ClusterRoleBindings { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + if len(m.Tags) > 0 { + for _, s := range m.Tags { + l = len(s) + n += 1 + l + sov(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *CollectorServiceAccount) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ClusterName) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.ClusterId) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.GroupId != 0 { + n += 1 + sov(uint64(m.GroupId)) + } + if m.GroupSize != 0 { + n += 1 + sov(uint64(m.GroupSize)) + } + if len(m.ServiceAccounts) > 0 { + for _, e := range m.ServiceAccounts { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + if len(m.Tags) > 0 { + for _, s := range m.Tags { + l = len(s) + n += 1 + l + sov(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *CollectorIngress) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ClusterName) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.ClusterId) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.GroupId != 0 { + n += 1 + sov(uint64(m.GroupId)) + } + if m.GroupSize != 0 { + n += 1 + sov(uint64(m.GroupSize)) + } + if len(m.Ingresses) > 0 { + for _, e := range m.Ingresses { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + if len(m.Tags) > 0 { + for _, s := range m.Tags { + l = len(s) + n += 1 + l + sov(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *CollectorVerticalPodAutoscaler) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ClusterName) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.ClusterId) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.GroupId != 0 { + n += 1 + sov(uint64(m.GroupId)) + } + if m.GroupSize != 0 { + n += 1 + sov(uint64(m.GroupSize)) + } + if len(m.VerticalPodAutoscalers) > 0 { + for _, e := range m.VerticalPodAutoscalers { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + if len(m.Tags) > 0 { + for _, s := range m.Tags { + l = len(s) + n += 1 + l + sov(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *CollectorStatus) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ActiveClients != 0 { + n += 1 + sov(uint64(m.ActiveClients)) + } + if m.Interval != 0 { + n += 1 + sov(uint64(m.Interval)) + } + n += len(m.unknownFields) + return n +} + +func (m *Process) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Key != 0 { + n += 1 + sov(uint64(m.Key)) + } + if m.Pid != 0 { + n += 1 + sov(uint64(m.Pid)) + } + if m.Host != nil { + l = m.Host.SizeVT() + n += 1 + l + sov(uint64(l)) + } + if m.Command != nil { + l = m.Command.SizeVT() + n += 1 + l + sov(uint64(l)) + } + if m.User != nil { + l = m.User.SizeVT() + n += 1 + l + sov(uint64(l)) + } + if m.Memory != nil { + l = m.Memory.SizeVT() + n += 1 + l + sov(uint64(l)) + } + if m.Cpu != nil { + l = m.Cpu.SizeVT() + n += 1 + l + sov(uint64(l)) + } + if m.CreateTime != 0 { + n += 1 + sov(uint64(m.CreateTime)) + } + if m.Container != nil { + l = m.Container.SizeVT() + n += 1 + l + sov(uint64(l)) + } + if m.OpenFdCount != 0 { + n += 1 + sov(uint64(m.OpenFdCount)) + } + if m.State != 0 { + n += 1 + sov(uint64(m.State)) + } + if m.IoStat != nil { + l = m.IoStat.SizeVT() + n += 1 + l + sov(uint64(l)) + } + l = len(m.ContainerId) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.ContainerKey != 0 { + n += 1 + sov(uint64(m.ContainerKey)) + } + if m.VoluntaryCtxSwitches != 0 { + n += 2 + sov(uint64(m.VoluntaryCtxSwitches)) + } + if m.InvoluntaryCtxSwitches != 0 { + n += 2 + sov(uint64(m.InvoluntaryCtxSwitches)) + } + l = len(m.ByteKey) + if l > 0 { + n += 2 + l + sov(uint64(l)) + } + l = len(m.ContainerByteKey) + if l > 0 { + n += 2 + l + sov(uint64(l)) + } + if m.NsPid != 0 { + n += 2 + sov(uint64(m.NsPid)) + } + if m.Networks != nil { + l = m.Networks.SizeVT() + n += 2 + l + sov(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *ProcessDiscovery) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Pid != 0 { + n += 1 + sov(uint64(m.Pid)) + } + if m.NsPid != 0 { + n += 1 + sov(uint64(m.NsPid)) + } + if m.Host != nil { + l = m.Host.SizeVT() + n += 1 + l + sov(uint64(l)) + } + if m.Command != nil { + l = m.Command.SizeVT() + n += 1 + l + sov(uint64(l)) + } + if m.User != nil { + l = m.User.SizeVT() + n += 1 + l + sov(uint64(l)) + } + if m.CreateTime != 0 { + n += 1 + sov(uint64(m.CreateTime)) + } + l = len(m.ByteKey) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *Command) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Args) > 0 { + for _, s := range m.Args { + l = len(s) + n += 1 + l + sov(uint64(l)) + } + } + l = len(m.Cwd) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.Root) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.OnDisk { + n += 2 + } + if m.Ppid != 0 { + n += 1 + sov(uint64(m.Ppid)) + } + if m.Pgroup != 0 { + n += 1 + sov(uint64(m.Pgroup)) + } + l = len(m.Exe) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *ProcessUser) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.Uid != 0 { + n += 1 + sov(uint64(m.Uid)) + } + if m.Gid != 0 { + n += 1 + sov(uint64(m.Gid)) + } + if m.Euid != 0 { + n += 1 + sov(uint64(m.Euid)) + } + if m.Egid != 0 { + n += 1 + sov(uint64(m.Egid)) + } + if m.Suid != 0 { + n += 1 + sov(uint64(m.Suid)) + } + if m.Sgid != 0 { + n += 1 + sov(uint64(m.Sgid)) + } + n += len(m.unknownFields) + return n +} + +func (m *ProcessNetworks) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ConnectionRate != 0 { + n += 5 + } + if m.BytesRate != 0 { + n += 5 + } + n += len(m.unknownFields) + return n +} + +func (m *ContainerAddr) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Ip) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.Port != 0 { + n += 1 + sov(uint64(m.Port)) + } + if m.Protocol != 0 { + n += 1 + sov(uint64(m.Protocol)) + } + n += len(m.unknownFields) + return n +} + +func (m *Container) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Type) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.Id) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.Image) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.CpuLimit != 0 { + n += 5 + } + if m.MemoryLimit != 0 { + n += 1 + sov(uint64(m.MemoryLimit)) + } + if m.State != 0 { + n += 1 + sov(uint64(m.State)) + } + if m.Health != 0 { + n += 1 + sov(uint64(m.Health)) + } + if m.Created != 0 { + n += 1 + sov(uint64(m.Created)) + } + if m.Rbps != 0 { + n += 5 + } + if m.Wbps != 0 { + n += 5 + } + if m.Key != 0 { + n += 1 + sov(uint64(m.Key)) + } + if m.NetRcvdPs != 0 { + n += 5 + } + if m.NetSentPs != 0 { + n += 5 + } + if m.NetRcvdBps != 0 { + n += 6 + } + if m.NetSentBps != 0 { + n += 6 + } + if m.UserPct != 0 { + n += 6 + } + if m.SystemPct != 0 { + n += 6 + } + if m.TotalPct != 0 { + n += 6 + } + if m.MemRss != 0 { + n += 2 + sov(uint64(m.MemRss)) + } + if m.MemCache != 0 { + n += 2 + sov(uint64(m.MemCache)) + } + if m.Host != nil { + l = m.Host.SizeVT() + n += 2 + l + sov(uint64(l)) + } + if m.Started != 0 { + n += 2 + sov(uint64(m.Started)) + } + l = len(m.ByteKey) + if l > 0 { + n += 2 + l + sov(uint64(l)) + } + if len(m.Tags) > 0 { + for _, s := range m.Tags { + l = len(s) + n += 2 + l + sov(uint64(l)) + } + } + if len(m.Addresses) > 0 { + for _, e := range m.Addresses { + l = e.SizeVT() + n += 2 + l + sov(uint64(l)) + } + } + if m.ThreadCount != 0 { + n += 2 + sov(uint64(m.ThreadCount)) + } + if m.ThreadLimit != 0 { + n += 2 + sov(uint64(m.ThreadLimit)) + } + if m.MemUsage != 0 { + n += 2 + sov(uint64(m.MemUsage)) + } + if m.CpuUsageNs != 0 { + n += 6 + } + if m.MemAccounted != 0 { + n += 2 + sov(uint64(m.MemAccounted)) + } + n += len(m.unknownFields) + return n +} + +func (m *ProcessStat) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Pid != 0 { + n += 1 + sov(uint64(m.Pid)) + } + if m.CreateTime != 0 { + n += 1 + sov(uint64(m.CreateTime)) + } + if m.Memory != nil { + l = m.Memory.SizeVT() + n += 1 + l + sov(uint64(l)) + } + if m.Cpu != nil { + l = m.Cpu.SizeVT() + n += 1 + l + sov(uint64(l)) + } + if m.Nice != 0 { + n += 1 + sov(uint64(m.Nice)) + } + if m.Threads != 0 { + n += 1 + sov(uint64(m.Threads)) + } + if m.OpenFdCount != 0 { + n += 1 + sov(uint64(m.OpenFdCount)) + } + if m.Key != 0 { + n += 1 + sov(uint64(m.Key)) + } + l = len(m.ContainerId) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.ContainerState != 0 { + n += 1 + sov(uint64(m.ContainerState)) + } + if m.ProcessState != 0 { + n += 1 + sov(uint64(m.ProcessState)) + } + if m.ContainerHealth != 0 { + n += 1 + sov(uint64(m.ContainerHealth)) + } + if m.ContainerRbps != 0 { + n += 6 + } + if m.ContainerWbps != 0 { + n += 6 + } + if m.ContainerKey != 0 { + n += 2 + sov(uint64(m.ContainerKey)) + } + if m.IoStat != nil { + l = m.IoStat.SizeVT() + n += 2 + l + sov(uint64(l)) + } + if m.ContainerNetRcvdPs != 0 { + n += 6 + } + if m.ContainerNetSentPs != 0 { + n += 6 + } + if m.ContainerNetRcvdBps != 0 { + n += 6 + } + if m.ContainerNetSentBps != 0 { + n += 6 + } + if m.VoluntaryCtxSwitches != 0 { + n += 2 + sov(uint64(m.VoluntaryCtxSwitches)) + } + if m.InvoluntaryCtxSwitches != 0 { + n += 2 + sov(uint64(m.InvoluntaryCtxSwitches)) + } + l = len(m.ByteKey) + if l > 0 { + n += 2 + l + sov(uint64(l)) + } + l = len(m.ContainerByteKey) + if l > 0 { + n += 2 + l + sov(uint64(l)) + } + if m.Networks != nil { + l = m.Networks.SizeVT() + n += 2 + l + sov(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *ProcStatsWithPerm) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.OpenFDCount != 0 { + n += 1 + sov(uint64(m.OpenFDCount)) + } + if m.ReadCount != 0 { + n += 1 + sov(uint64(m.ReadCount)) + } + if m.WriteCount != 0 { + n += 1 + sov(uint64(m.WriteCount)) + } + if m.ReadBytes != 0 { + n += 1 + sov(uint64(m.ReadBytes)) + } + if m.WriteBytes != 0 { + n += 1 + sov(uint64(m.WriteBytes)) + } + n += len(m.unknownFields) + return n +} + +func (m *ProcStatsWithPermByPID) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.StatsByPID) > 0 { + for k, v := range m.StatsByPID { + _ = 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)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *ContainerStat) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Id) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.UserPct != 0 { + n += 5 + } + if m.SystemPct != 0 { + n += 5 + } + if m.TotalPct != 0 { + n += 5 + } + if m.CpuLimit != 0 { + n += 5 + } + if m.MemRss != 0 { + n += 1 + sov(uint64(m.MemRss)) + } + if m.MemCache != 0 { + n += 1 + sov(uint64(m.MemCache)) + } + if m.MemLimit != 0 { + n += 1 + sov(uint64(m.MemLimit)) + } + if m.Rbps != 0 { + n += 5 + } + if m.Wbps != 0 { + n += 5 + } + if m.NetRcvdPs != 0 { + n += 5 + } + if m.NetSentPs != 0 { + n += 5 + } + if m.NetRcvdBps != 0 { + n += 5 + } + if m.NetSentBps != 0 { + n += 5 + } + if m.State != 0 { + n += 1 + sov(uint64(m.State)) + } + if m.Health != 0 { + n += 2 + sov(uint64(m.Health)) + } + if m.Key != 0 { + n += 2 + sov(uint64(m.Key)) + } + if m.Started != 0 { + n += 2 + sov(uint64(m.Started)) + } + l = len(m.ByteKey) + if l > 0 { + n += 2 + l + sov(uint64(l)) + } + if m.ThreadCount != 0 { + n += 2 + sov(uint64(m.ThreadCount)) + } + if m.ThreadLimit != 0 { + n += 2 + sov(uint64(m.ThreadLimit)) + } + if m.MemUsage != 0 { + n += 2 + sov(uint64(m.MemUsage)) + } + if m.CpuUsageNs != 0 { + n += 6 + } + if m.MemAccounted != 0 { + n += 2 + sov(uint64(m.MemAccounted)) + } + n += len(m.unknownFields) + return n +} + +func (m *SystemInfo) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Uuid) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.Os != nil { + l = m.Os.SizeVT() + n += 1 + l + sov(uint64(l)) + } + if len(m.Cpus) > 0 { + for _, e := range m.Cpus { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + if m.TotalMemory != 0 { + n += 1 + sov(uint64(m.TotalMemory)) + } + n += len(m.unknownFields) + return n +} + +func (m *OSInfo) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.Platform) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.Family) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.Version) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.KernelVersion) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *IOStat) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ReadRate != 0 { + n += 5 + } + if m.WriteRate != 0 { + n += 5 + } + if m.ReadBytesRate != 0 { + n += 5 + } + if m.WriteBytesRate != 0 { + n += 5 + } + n += len(m.unknownFields) + return n +} + +func (m *MemoryStat) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Rss != 0 { + n += 1 + sov(uint64(m.Rss)) + } + if m.Vms != 0 { + n += 1 + sov(uint64(m.Vms)) + } + if m.Swap != 0 { + n += 1 + sov(uint64(m.Swap)) + } + if m.Shared != 0 { + n += 1 + sov(uint64(m.Shared)) + } + if m.Text != 0 { + n += 1 + sov(uint64(m.Text)) + } + if m.Lib != 0 { + n += 1 + sov(uint64(m.Lib)) + } + if m.Data != 0 { + n += 1 + sov(uint64(m.Data)) + } + if m.Dirty != 0 { + n += 1 + sov(uint64(m.Dirty)) + } + n += len(m.unknownFields) + return n +} + +func (m *CPUStat) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.LastCpu) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.TotalPct != 0 { + n += 5 + } + if m.UserPct != 0 { + n += 5 + } + if m.SystemPct != 0 { + n += 5 + } + if m.NumThreads != 0 { + n += 1 + sov(uint64(m.NumThreads)) + } + if len(m.Cpus) > 0 { + for _, e := range m.Cpus { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + if m.Nice != 0 { + n += 1 + sov(uint64(m.Nice)) + } + if m.UserTime != 0 { + n += 1 + sov(uint64(m.UserTime)) + } + if m.SystemTime != 0 { + n += 1 + sov(uint64(m.SystemTime)) + } + n += len(m.unknownFields) + return n +} + +func (m *SingleCPUStat) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.TotalPct != 0 { + n += 5 + } + n += len(m.unknownFields) + return n +} + +func (m *CPUInfo) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Number != 0 { + n += 1 + sov(uint64(m.Number)) + } + l = len(m.Vendor) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.Family) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.Model) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.PhysicalId) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.CoreId) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.Cores != 0 { + n += 1 + sov(uint64(m.Cores)) + } + if m.Mhz != 0 { + n += 1 + sov(uint64(m.Mhz)) + } + if m.CacheSize != 0 { + n += 1 + sov(uint64(m.CacheSize)) + } + n += len(m.unknownFields) + return n +} + +func (m *Host) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Id != 0 { + n += 1 + sov(uint64(m.Id)) + } + if m.OrgId != 0 { + n += 1 + sov(uint64(m.OrgId)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if len(m.AllTags) > 0 { + for _, s := range m.AllTags { + l = len(s) + n += 1 + l + sov(uint64(l)) + } + } + if m.NumCpus != 0 { + n += 1 + sov(uint64(m.NumCpus)) + } + if m.TotalMemory != 0 { + n += 1 + sov(uint64(m.TotalMemory)) + } + if m.TagIndex != 0 { + n += 1 + sov(uint64(m.TagIndex)) + } + if m.TagsModified != 0 { + n += 1 + sov(uint64(m.TagsModified)) + } + n += len(m.unknownFields) + return n +} + +func (m *Cluster) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.NodeCount != 0 { + n += 1 + sov(uint64(m.NodeCount)) + } + if len(m.KubeletVersions) > 0 { + for k, v := range m.KubeletVersions { + _ = k + _ = v + mapEntrySize := 1 + len(k) + sov(uint64(len(k))) + 1 + sov(uint64(v)) + n += mapEntrySize + 1 + sov(uint64(mapEntrySize)) + } + } + if len(m.ApiServerVersions) > 0 { + for k, v := range m.ApiServerVersions { + _ = k + _ = v + mapEntrySize := 1 + len(k) + sov(uint64(len(k))) + 1 + sov(uint64(v)) + n += mapEntrySize + 1 + sov(uint64(mapEntrySize)) + } + } + if m.PodCapacity != 0 { + n += 1 + sov(uint64(m.PodCapacity)) + } + if m.PodAllocatable != 0 { + n += 1 + sov(uint64(m.PodAllocatable)) + } + if m.MemoryAllocatable != 0 { + n += 1 + sov(uint64(m.MemoryAllocatable)) + } + if m.MemoryCapacity != 0 { + n += 1 + sov(uint64(m.MemoryCapacity)) + } + if m.CpuAllocatable != 0 { + n += 1 + sov(uint64(m.CpuAllocatable)) + } + if m.CpuCapacity != 0 { + n += 1 + sov(uint64(m.CpuCapacity)) + } + l = len(m.ResourceVersion) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.CreationTimestamp != 0 { + n += 1 + sov(uint64(m.CreationTimestamp)) + } + if len(m.Tags) > 0 { + for _, s := range m.Tags { + l = len(s) + n += 1 + l + sov(uint64(l)) + } + } + if m.Metrics != nil { + l = m.Metrics.SizeVT() + n += 1 + l + sov(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *Metadata) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.Namespace) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.Uid) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.CreationTimestamp != 0 { + n += 1 + sov(uint64(m.CreationTimestamp)) + } + if m.DeletionTimestamp != 0 { + n += 1 + sov(uint64(m.DeletionTimestamp)) + } + if len(m.Labels) > 0 { + for _, s := range m.Labels { + l = len(s) + n += 1 + l + sov(uint64(l)) + } + } + if len(m.Annotations) > 0 { + for _, s := range m.Annotations { + l = len(s) + n += 1 + l + sov(uint64(l)) + } + } + if len(m.OwnerReferences) > 0 { + for _, e := range m.OwnerReferences { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + l = len(m.ResourceVersion) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if len(m.Finalizers) > 0 { + for _, s := range m.Finalizers { + l = len(s) + n += 1 + l + sov(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *OwnerReference) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.Uid) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.Kind) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *ObjectReference) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Kind) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.Namespace) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.Uid) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.ApiVersion) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.ResourceVersion) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.FieldPath) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *ServicePort) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.Protocol) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.Port != 0 { + n += 1 + sov(uint64(m.Port)) + } + l = len(m.TargetPort) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.NodePort != 0 { + n += 1 + sov(uint64(m.NodePort)) + } + n += len(m.unknownFields) + return n +} + +func (m *ServiceSessionAffinityConfig) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ClientIPTimeoutSeconds != 0 { + n += 1 + sov(uint64(m.ClientIPTimeoutSeconds)) + } + n += len(m.unknownFields) + return n +} + +func (m *Node) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Metadata != nil { + l = m.Metadata.SizeVT() + n += 1 + l + sov(uint64(l)) + } + l = len(m.PodCIDR) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if len(m.PodCIDRs) > 0 { + for _, s := range m.PodCIDRs { + l = len(s) + n += 1 + l + sov(uint64(l)) + } + } + if m.Unschedulable { + n += 2 + } + if len(m.Taints) > 0 { + for _, e := range m.Taints { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + if m.Status != nil { + l = m.Status.SizeVT() + n += 1 + l + sov(uint64(l)) + } + l = len(m.Yaml) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if len(m.Roles) > 0 { + for _, s := range m.Roles { + l = len(s) + n += 1 + l + sov(uint64(l)) + } + } + if len(m.Tags) > 0 { + for _, s := range m.Tags { + l = len(s) + n += 1 + l + sov(uint64(l)) + } + } + l = len(m.ProviderID) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.Host != nil { + l = m.Host.SizeVT() + n += 1 + l + sov(uint64(l)) + } + if m.Metrics != nil { + l = m.Metrics.SizeVT() + n += 1 + l + sov(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *NodeStatus) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Capacity) > 0 { + for k, v := range m.Capacity { + _ = k + _ = v + mapEntrySize := 1 + len(k) + sov(uint64(len(k))) + 1 + sov(uint64(v)) + n += mapEntrySize + 1 + sov(uint64(mapEntrySize)) + } + } + if len(m.Allocatable) > 0 { + for k, v := range m.Allocatable { + _ = k + _ = v + mapEntrySize := 1 + len(k) + sov(uint64(len(k))) + 1 + sov(uint64(v)) + n += mapEntrySize + 1 + sov(uint64(mapEntrySize)) + } + } + if len(m.NodeAddresses) > 0 { + for k, v := range m.NodeAddresses { + _ = k + _ = v + mapEntrySize := 1 + len(k) + sov(uint64(len(k))) + 1 + len(v) + sov(uint64(len(v))) + n += mapEntrySize + 1 + sov(uint64(mapEntrySize)) + } + } + l = len(m.Status) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.KubeletVersion) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if len(m.Conditions) > 0 { + for _, e := range m.Conditions { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + if len(m.Images) > 0 { + for _, e := range m.Images { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + l = len(m.KubeProxyVersion) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.OperatingSystem) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.Architecture) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.KernelVersion) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.OsImage) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.ContainerRuntimeVersion) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *NodeCondition) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Type) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.Status) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.LastTransitionTime != 0 { + n += 1 + sov(uint64(m.LastTransitionTime)) + } + l = len(m.Reason) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.Message) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *ContainerImage) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Names) > 0 { + for _, s := range m.Names { + l = len(s) + n += 1 + l + sov(uint64(l)) + } + } + if m.SizeBytes != 0 { + n += 1 + sov(uint64(m.SizeBytes)) + } + n += len(m.unknownFields) + return n +} + +func (m *Taint) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Key) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.Value) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.Effect) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.TimeAdded != 0 { + n += 1 + sov(uint64(m.TimeAdded)) + } + n += len(m.unknownFields) + return n +} + +func (m *ServiceSpec) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Ports) > 0 { + for _, e := range m.Ports { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + if len(m.Selectors) > 0 { + for _, e := range m.Selectors { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + l = len(m.ClusterIP) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.Type) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if len(m.ExternalIPs) > 0 { + for _, s := range m.ExternalIPs { + l = len(s) + n += 1 + l + sov(uint64(l)) + } + } + l = len(m.SessionAffinity) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.LoadBalancerIP) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if len(m.LoadBalancerSourceRanges) > 0 { + for _, s := range m.LoadBalancerSourceRanges { + l = len(s) + n += 1 + l + sov(uint64(l)) + } + } + l = len(m.ExternalName) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.ExternalTrafficPolicy) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.HealthCheckNodePort != 0 { + n += 1 + sov(uint64(m.HealthCheckNodePort)) + } + if m.PublishNotReadyAddresses { + n += 2 + } + if m.SessionAffinityConfig != nil { + l = m.SessionAffinityConfig.SizeVT() + n += 1 + l + sov(uint64(l)) + } + l = len(m.IpFamily) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *ServiceStatus) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.LoadBalancerIngress) > 0 { + for _, s := range m.LoadBalancerIngress { + l = len(s) + n += 2 + l + sov(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *Service) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Metadata != nil { + l = m.Metadata.SizeVT() + n += 1 + l + sov(uint64(l)) + } + if m.Spec != nil { + l = m.Spec.SizeVT() + n += 1 + l + sov(uint64(l)) + } + if m.Status != nil { + l = m.Status.SizeVT() + n += 1 + l + sov(uint64(l)) + } + l = len(m.Yaml) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if len(m.Tags) > 0 { + for _, s := range m.Tags { + l = len(s) + n += 1 + l + sov(uint64(l)) + } + } + if m.Metrics != nil { + l = m.Metrics.SizeVT() + n += 1 + l + sov(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *DeploymentCondition) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Type) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.Status) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.Reason) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.Message) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.LastUpdateTime != 0 { + n += 1 + sov(uint64(m.LastUpdateTime)) + } + if m.LastTransitionTime != 0 { + n += 1 + sov(uint64(m.LastTransitionTime)) + } + n += len(m.unknownFields) + return n +} + +func (m *Deployment) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Metadata != nil { + l = m.Metadata.SizeVT() + n += 1 + l + sov(uint64(l)) + } + if m.ReplicasDesired != 0 { + n += 1 + sov(uint64(m.ReplicasDesired)) + } + l = len(m.DeploymentStrategy) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.MaxUnavailable) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.MaxSurge) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.Paused { + n += 2 + } + if len(m.Selectors) > 0 { + for _, e := range m.Selectors { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + if m.Replicas != 0 { + n += 1 + sov(uint64(m.Replicas)) + } + if m.UpdatedReplicas != 0 { + n += 1 + sov(uint64(m.UpdatedReplicas)) + } + if m.ReadyReplicas != 0 { + n += 1 + sov(uint64(m.ReadyReplicas)) + } + if m.AvailableReplicas != 0 { + n += 1 + sov(uint64(m.AvailableReplicas)) + } + if m.UnavailableReplicas != 0 { + n += 1 + sov(uint64(m.UnavailableReplicas)) + } + l = len(m.ConditionMessage) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.Yaml) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if len(m.Tags) > 0 { + for _, s := range m.Tags { + l = len(s) + n += 1 + l + sov(uint64(l)) + } + } + if len(m.ResourceRequirements) > 0 { + for _, e := range m.ResourceRequirements { + l = e.SizeVT() + n += 2 + l + sov(uint64(l)) + } + } + if m.Metrics != nil { + l = m.Metrics.SizeVT() + n += 2 + l + sov(uint64(l)) + } + if len(m.Conditions) > 0 { + for _, e := range m.Conditions { + l = e.SizeVT() + n += 2 + l + sov(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *ReplicaSetCondition) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Type) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.Status) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.LastTransitionTime != 0 { + n += 1 + sov(uint64(m.LastTransitionTime)) + } + l = len(m.Reason) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.Message) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *ReplicaSet) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Metadata != nil { + l = m.Metadata.SizeVT() + n += 1 + l + sov(uint64(l)) + } + if m.ReplicasDesired != 0 { + n += 1 + sov(uint64(m.ReplicasDesired)) + } + if len(m.Selectors) > 0 { + for _, e := range m.Selectors { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + if m.Replicas != 0 { + n += 1 + sov(uint64(m.Replicas)) + } + if m.FullyLabeledReplicas != 0 { + n += 1 + sov(uint64(m.FullyLabeledReplicas)) + } + if m.ReadyReplicas != 0 { + n += 1 + sov(uint64(m.ReadyReplicas)) + } + if m.AvailableReplicas != 0 { + n += 1 + sov(uint64(m.AvailableReplicas)) + } + l = len(m.Yaml) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if len(m.Tags) > 0 { + for _, s := range m.Tags { + l = len(s) + n += 1 + l + sov(uint64(l)) + } + } + if len(m.ResourceRequirements) > 0 { + for _, e := range m.ResourceRequirements { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + if m.Metrics != nil { + l = m.Metrics.SizeVT() + n += 1 + l + sov(uint64(l)) + } + if len(m.Conditions) > 0 { + for _, e := range m.Conditions { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *LabelSelectorRequirement) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Key) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.Operator) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if len(m.Values) > 0 { + for _, s := range m.Values { + l = len(s) + n += 1 + l + sov(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *Pod) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Metadata != nil { + l = m.Metadata.SizeVT() + n += 1 + l + sov(uint64(l)) + } + l = len(m.IP) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.NominatedNodeName) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.NodeName) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.Phase) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.RestartCount != 0 { + n += 1 + sov(uint64(m.RestartCount)) + } + if len(m.ContainerStatuses) > 0 { + for _, e := range m.ContainerStatuses { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + l = len(m.ConditionMessage) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.Status) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.Yaml) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if len(m.Tags) > 0 { + for _, s := range m.Tags { + l = len(s) + n += 1 + l + sov(uint64(l)) + } + } + if m.Host != nil { + l = m.Host.SizeVT() + n += 1 + l + sov(uint64(l)) + } + if len(m.ResourceRequirements) > 0 { + for _, e := range m.ResourceRequirements { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + if len(m.InitContainerStatuses) > 0 { + for _, e := range m.InitContainerStatuses { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + l = len(m.QOSClass) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.PriorityClass) + if l > 0 { + n += 2 + l + sov(uint64(l)) + } + if m.Metrics != nil { + l = m.Metrics.SizeVT() + n += 2 + l + sov(uint64(l)) + } + if m.StartTime != 0 { + n += 2 + sov(uint64(m.StartTime)) + } + if m.ScheduledTime != 0 { + n += 2 + sov(uint64(m.ScheduledTime)) + } + if len(m.Conditions) > 0 { + for _, e := range m.Conditions { + l = e.SizeVT() + n += 2 + l + sov(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *PodCondition) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Type) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.Status) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.LastProbeTime != 0 { + n += 1 + sov(uint64(m.LastProbeTime)) + } + if m.LastTransitionTime != 0 { + n += 1 + sov(uint64(m.LastTransitionTime)) + } + l = len(m.Reason) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.Message) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *ContainerStatus) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.ContainerID) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.Ready { + n += 2 + } + if m.RestartCount != 0 { + n += 1 + sov(uint64(m.RestartCount)) + } + l = len(m.State) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.Message) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *Manifest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Type != 0 { + n += 1 + sov(uint64(m.Type)) + } + l = len(m.ResourceVersion) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.Uid) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.Content) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.ContentType) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.Version) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *NamespaceCondition) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Type) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.Status) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.LastTransitionTime != 0 { + n += 1 + sov(uint64(m.LastTransitionTime)) + } + l = len(m.Reason) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.Message) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *Namespace) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Metadata != nil { + l = m.Metadata.SizeVT() + n += 1 + l + sov(uint64(l)) + } + l = len(m.Status) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.ConditionMessage) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.Yaml) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if len(m.Tags) > 0 { + for _, s := range m.Tags { + l = len(s) + n += 1 + l + sov(uint64(l)) + } + } + if len(m.Conditions) > 0 { + for _, e := range m.Conditions { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *ResourceRequirements) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Limits) > 0 { + for k, v := range m.Limits { + _ = k + _ = v + mapEntrySize := 1 + len(k) + sov(uint64(len(k))) + 1 + sov(uint64(v)) + n += mapEntrySize + 1 + sov(uint64(mapEntrySize)) + } + } + if len(m.Requests) > 0 { + for k, v := range m.Requests { + _ = k + _ = v + mapEntrySize := 1 + len(k) + sov(uint64(len(k))) + 1 + sov(uint64(v)) + n += mapEntrySize + 1 + sov(uint64(mapEntrySize)) + } + } + l = len(m.Name) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.Type != 0 { + n += 1 + sov(uint64(m.Type)) + } + n += len(m.unknownFields) + return n +} + +func (m *ResourceMetrics) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.MetricValues) > 0 { + for k, v := range m.MetricValues { + _ = k + _ = v + mapEntrySize := 1 + len(k) + sov(uint64(len(k))) + 1 + 8 + n += mapEntrySize + 1 + sov(uint64(mapEntrySize)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *JobSpec) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Parallelism != 0 { + n += 1 + sov(uint64(m.Parallelism)) + } + if m.Completions != 0 { + n += 1 + sov(uint64(m.Completions)) + } + if m.ActiveDeadlineSeconds != 0 { + n += 1 + sov(uint64(m.ActiveDeadlineSeconds)) + } + if m.BackoffLimit != 0 { + n += 1 + sov(uint64(m.BackoffLimit)) + } + if len(m.Selectors) > 0 { + for _, e := range m.Selectors { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + if m.ManualSelector { + n += 2 + } + if len(m.ResourceRequirements) > 0 { + for _, e := range m.ResourceRequirements { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *JobStatus) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ConditionMessage) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.StartTime != 0 { + n += 1 + sov(uint64(m.StartTime)) + } + if m.CompletionTime != 0 { + n += 1 + sov(uint64(m.CompletionTime)) + } + if m.Active != 0 { + n += 1 + sov(uint64(m.Active)) + } + if m.Succeeded != 0 { + n += 1 + sov(uint64(m.Succeeded)) + } + if m.Failed != 0 { + n += 1 + sov(uint64(m.Failed)) + } + n += len(m.unknownFields) + return n +} + +func (m *JobCondition) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Type) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.Status) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.LastProbeTime != 0 { + n += 1 + sov(uint64(m.LastProbeTime)) + } + if m.LastTransitionTime != 0 { + n += 1 + sov(uint64(m.LastTransitionTime)) + } + l = len(m.Reason) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.Message) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *Job) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Metadata != nil { + l = m.Metadata.SizeVT() + n += 1 + l + sov(uint64(l)) + } + if m.Spec != nil { + l = m.Spec.SizeVT() + n += 1 + l + sov(uint64(l)) + } + if m.Status != nil { + l = m.Status.SizeVT() + n += 1 + l + sov(uint64(l)) + } + l = len(m.Yaml) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if len(m.Tags) > 0 { + for _, s := range m.Tags { + l = len(s) + n += 1 + l + sov(uint64(l)) + } + } + if len(m.Conditions) > 0 { + for _, e := range m.Conditions { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *CronJobSpec) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Schedule) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.StartingDeadlineSeconds != 0 { + n += 1 + sov(uint64(m.StartingDeadlineSeconds)) + } + l = len(m.ConcurrencyPolicy) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.Suspend { + n += 2 + } + if m.SuccessfulJobsHistoryLimit != 0 { + n += 1 + sov(uint64(m.SuccessfulJobsHistoryLimit)) + } + if m.FailedJobsHistoryLimit != 0 { + n += 1 + sov(uint64(m.FailedJobsHistoryLimit)) + } + if len(m.ResourceRequirements) > 0 { + for _, e := range m.ResourceRequirements { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *CronJobStatus) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Active) > 0 { + for _, e := range m.Active { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + if m.LastScheduleTime != 0 { + n += 1 + sov(uint64(m.LastScheduleTime)) + } + n += len(m.unknownFields) + return n +} + +func (m *CronJob) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Metadata != nil { + l = m.Metadata.SizeVT() + n += 1 + l + sov(uint64(l)) + } + if m.Spec != nil { + l = m.Spec.SizeVT() + n += 1 + l + sov(uint64(l)) + } + if m.Status != nil { + l = m.Status.SizeVT() + n += 1 + l + sov(uint64(l)) + } + l = len(m.Yaml) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if len(m.Tags) > 0 { + for _, s := range m.Tags { + l = len(s) + n += 1 + l + sov(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *DaemonSetSpec) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Selectors) > 0 { + for _, e := range m.Selectors { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + l = len(m.DeploymentStrategy) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.MaxUnavailable) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.MinReadySeconds != 0 { + n += 1 + sov(uint64(m.MinReadySeconds)) + } + if m.RevisionHistoryLimit != 0 { + n += 1 + sov(uint64(m.RevisionHistoryLimit)) + } + if len(m.ResourceRequirements) > 0 { + for _, e := range m.ResourceRequirements { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *DaemonSetStatus) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.CurrentNumberScheduled != 0 { + n += 1 + sov(uint64(m.CurrentNumberScheduled)) + } + if m.NumberMisscheduled != 0 { + n += 1 + sov(uint64(m.NumberMisscheduled)) + } + if m.DesiredNumberScheduled != 0 { + n += 1 + sov(uint64(m.DesiredNumberScheduled)) + } + if m.NumberReady != 0 { + n += 1 + sov(uint64(m.NumberReady)) + } + if m.UpdatedNumberScheduled != 0 { + n += 1 + sov(uint64(m.UpdatedNumberScheduled)) + } + if m.NumberAvailable != 0 { + n += 1 + sov(uint64(m.NumberAvailable)) + } + if m.NumberUnavailable != 0 { + n += 1 + sov(uint64(m.NumberUnavailable)) + } + n += len(m.unknownFields) + return n +} + +func (m *DaemonSetCondition) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Type) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.Status) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.LastTransitionTime != 0 { + n += 1 + sov(uint64(m.LastTransitionTime)) + } + l = len(m.Reason) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.Message) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *DaemonSet) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Metadata != nil { + l = m.Metadata.SizeVT() + n += 1 + l + sov(uint64(l)) + } + if m.Spec != nil { + l = m.Spec.SizeVT() + n += 1 + l + sov(uint64(l)) + } + if m.Status != nil { + l = m.Status.SizeVT() + n += 1 + l + sov(uint64(l)) + } + l = len(m.Yaml) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if len(m.Tags) > 0 { + for _, s := range m.Tags { + l = len(s) + n += 1 + l + sov(uint64(l)) + } + } + if m.Metrics != nil { + l = m.Metrics.SizeVT() + n += 1 + l + sov(uint64(l)) + } + if len(m.Conditions) > 0 { + for _, e := range m.Conditions { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *StatefulSetSpec) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.DesiredReplicas != 0 { + n += 1 + sov(uint64(m.DesiredReplicas)) + } + if len(m.Selectors) > 0 { + for _, e := range m.Selectors { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + l = len(m.ServiceName) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.PodManagementPolicy) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.UpdateStrategy) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.Partition != 0 { + n += 1 + sov(uint64(m.Partition)) + } + if len(m.ResourceRequirements) > 0 { + for _, e := range m.ResourceRequirements { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *StatefulSetStatus) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Replicas != 0 { + n += 1 + sov(uint64(m.Replicas)) + } + if m.ReadyReplicas != 0 { + n += 1 + sov(uint64(m.ReadyReplicas)) + } + if m.CurrentReplicas != 0 { + n += 1 + sov(uint64(m.CurrentReplicas)) + } + if m.UpdatedReplicas != 0 { + n += 1 + sov(uint64(m.UpdatedReplicas)) + } + n += len(m.unknownFields) + return n +} + +func (m *StatefulSetCondition) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Type) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.Status) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.LastTransitionTime != 0 { + n += 1 + sov(uint64(m.LastTransitionTime)) + } + l = len(m.Reason) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.Message) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *StatefulSet) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Metadata != nil { + l = m.Metadata.SizeVT() + n += 1 + l + sov(uint64(l)) + } + if m.Spec != nil { + l = m.Spec.SizeVT() + n += 1 + l + sov(uint64(l)) + } + if m.Status != nil { + l = m.Status.SizeVT() + n += 1 + l + sov(uint64(l)) + } + l = len(m.Yaml) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if len(m.Tags) > 0 { + for _, s := range m.Tags { + l = len(s) + n += 1 + l + sov(uint64(l)) + } + } + if m.Metrics != nil { + l = m.Metrics.SizeVT() + n += 1 + l + sov(uint64(l)) + } + if len(m.Conditions) > 0 { + for _, e := range m.Conditions { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *PersistentVolume) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Metadata != nil { + l = m.Metadata.SizeVT() + n += 1 + l + sov(uint64(l)) + } + if m.Spec != nil { + l = m.Spec.SizeVT() + n += 1 + l + sov(uint64(l)) + } + if m.Status != nil { + l = m.Status.SizeVT() + n += 1 + l + sov(uint64(l)) + } + l = len(m.Yaml) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if len(m.Tags) > 0 { + for _, s := range m.Tags { + l = len(s) + n += 1 + l + sov(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *PersistentVolumeSpec) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Capacity) > 0 { + for k, v := range m.Capacity { + _ = k + _ = v + mapEntrySize := 1 + len(k) + sov(uint64(len(k))) + 1 + sov(uint64(v)) + n += mapEntrySize + 1 + sov(uint64(mapEntrySize)) + } + } + l = len(m.PersistentVolumeType) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if len(m.AccessModes) > 0 { + for _, s := range m.AccessModes { + l = len(s) + n += 1 + l + sov(uint64(l)) + } + } + if m.ClaimRef != nil { + l = m.ClaimRef.SizeVT() + n += 1 + l + sov(uint64(l)) + } + l = len(m.PersistentVolumeReclaimPolicy) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.StorageClassName) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if len(m.MountOptions) > 0 { + for _, s := range m.MountOptions { + l = len(s) + n += 1 + l + sov(uint64(l)) + } + } + l = len(m.VolumeMode) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if len(m.NodeAffinity) > 0 { + for _, e := range m.NodeAffinity { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + if m.PersistentVolumeSource != nil { + l = m.PersistentVolumeSource.SizeVT() + n += 1 + l + sov(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *PersistentVolumeSource) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.GcePersistentDisk != nil { + l = m.GcePersistentDisk.SizeVT() + n += 1 + l + sov(uint64(l)) + } + if m.AwsElasticBlockStore != nil { + l = m.AwsElasticBlockStore.SizeVT() + n += 1 + l + sov(uint64(l)) + } + if m.AzureFile != nil { + l = m.AzureFile.SizeVT() + n += 1 + l + sov(uint64(l)) + } + if m.AzureDisk != nil { + l = m.AzureDisk.SizeVT() + n += 1 + l + sov(uint64(l)) + } + if m.Csi != nil { + l = m.Csi.SizeVT() + n += 1 + l + sov(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *GCEPersistentDiskVolumeSource) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.PdName) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.FsType) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.Partition != 0 { + n += 1 + sov(uint64(m.Partition)) + } + if m.ReadOnly { + n += 2 + } + n += len(m.unknownFields) + return n +} + +func (m *AWSElasticBlockStoreVolumeSource) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.VolumeID) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.FsType) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.Partition != 0 { + n += 1 + sov(uint64(m.Partition)) + } + if m.ReadOnly { + n += 2 + } + n += len(m.unknownFields) + return n +} + +func (m *AzureFilePersistentVolumeSource) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.SecretName) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.ShareName) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.ReadOnly { + n += 2 + } + l = len(m.SecretNamespace) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *AzureDiskVolumeSource) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.DiskName) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.DiskURI) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.CachingMode) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.FsType) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.ReadOnly { + n += 2 + } + l = len(m.Kind) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *CSIVolumeSource) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Driver) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.VolumeHandle) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.ReadOnly { + n += 2 + } + l = len(m.FsType) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if len(m.VolumeAttributes) > 0 { + for k, v := range m.VolumeAttributes { + _ = k + _ = v + mapEntrySize := 1 + len(k) + sov(uint64(len(k))) + 1 + len(v) + sov(uint64(len(v))) + n += mapEntrySize + 1 + sov(uint64(mapEntrySize)) + } + } + if m.ControllerPublishSecretRef != nil { + l = m.ControllerPublishSecretRef.SizeVT() + n += 1 + l + sov(uint64(l)) + } + if m.NodeStageSecretRef != nil { + l = m.NodeStageSecretRef.SizeVT() + n += 1 + l + sov(uint64(l)) + } + if m.NodePublishSecretRef != nil { + l = m.NodePublishSecretRef.SizeVT() + n += 1 + l + sov(uint64(l)) + } + if m.ControllerExpandSecretRef != nil { + l = m.ControllerExpandSecretRef.SizeVT() + n += 1 + l + sov(uint64(l)) + } + if m.NodeExpandSecretRef != nil { + l = m.NodeExpandSecretRef.SizeVT() + n += 1 + l + sov(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *SecretReference) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.Namespace) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *PersistentVolumeStatus) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Phase) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.Message) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.Reason) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *NodeSelectorTerm) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.MatchExpressions) > 0 { + for _, e := range m.MatchExpressions { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + if len(m.MatchFields) > 0 { + for _, e := range m.MatchFields { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *PersistentVolumeClaim) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Metadata != nil { + l = m.Metadata.SizeVT() + n += 1 + l + sov(uint64(l)) + } + if m.Spec != nil { + l = m.Spec.SizeVT() + n += 1 + l + sov(uint64(l)) + } + if m.Status != nil { + l = m.Status.SizeVT() + n += 1 + l + sov(uint64(l)) + } + l = len(m.Yaml) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if len(m.Tags) > 0 { + for _, s := range m.Tags { + l = len(s) + n += 1 + l + sov(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *PersistentVolumeClaimStatus) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Phase) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if len(m.AccessModes) > 0 { + for _, s := range m.AccessModes { + l = len(s) + n += 1 + l + sov(uint64(l)) + } + } + if len(m.Capacity) > 0 { + for k, v := range m.Capacity { + _ = k + _ = v + mapEntrySize := 1 + len(k) + sov(uint64(len(k))) + 1 + sov(uint64(v)) + n += mapEntrySize + 1 + sov(uint64(mapEntrySize)) + } + } + if len(m.Conditions) > 0 { + for _, e := range m.Conditions { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *PersistentVolumeClaimSpec) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.AccessModes) > 0 { + for _, s := range m.AccessModes { + l = len(s) + n += 1 + l + sov(uint64(l)) + } + } + if m.Resources != nil { + l = m.Resources.SizeVT() + n += 1 + l + sov(uint64(l)) + } + l = len(m.VolumeName) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if len(m.Selector) > 0 { + for _, e := range m.Selector { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + l = len(m.StorageClassName) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.VolumeMode) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.DataSource != nil { + l = m.DataSource.SizeVT() + n += 1 + l + sov(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *TypedLocalObjectReference) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ApiGroup) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.Kind) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *PersistentVolumeClaimCondition) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Type) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.Status) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.LastProbeTime != 0 { + n += 1 + sov(uint64(m.LastProbeTime)) + } + if m.LastTransitionTime != 0 { + n += 1 + sov(uint64(m.LastTransitionTime)) + } + l = len(m.Reason) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.Message) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *PolicyRule) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Verbs) > 0 { + for _, s := range m.Verbs { + l = len(s) + n += 1 + l + sov(uint64(l)) + } + } + if len(m.ApiGroups) > 0 { + for _, s := range m.ApiGroups { + l = len(s) + n += 1 + l + sov(uint64(l)) + } + } + if len(m.Resources) > 0 { + for _, s := range m.Resources { + l = len(s) + n += 1 + l + sov(uint64(l)) + } + } + if len(m.ResourceNames) > 0 { + for _, s := range m.ResourceNames { + l = len(s) + n += 1 + l + sov(uint64(l)) + } + } + if len(m.NonResourceURLs) > 0 { + for _, s := range m.NonResourceURLs { + l = len(s) + n += 1 + l + sov(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *Subject) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Kind) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.ApiGroup) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.Namespace) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *Role) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Metadata != nil { + l = m.Metadata.SizeVT() + n += 1 + l + sov(uint64(l)) + } + if len(m.Rules) > 0 { + for _, e := range m.Rules { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + l = len(m.Yaml) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if len(m.Tags) > 0 { + for _, s := range m.Tags { + l = len(s) + n += 1 + l + sov(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *RoleBinding) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Metadata != nil { + l = m.Metadata.SizeVT() + n += 1 + l + sov(uint64(l)) + } + if len(m.Subjects) > 0 { + for _, e := range m.Subjects { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + if m.RoleRef != nil { + l = m.RoleRef.SizeVT() + n += 1 + l + sov(uint64(l)) + } + l = len(m.Yaml) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if len(m.Tags) > 0 { + for _, s := range m.Tags { + l = len(s) + n += 1 + l + sov(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *ClusterRole) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Metadata != nil { + l = m.Metadata.SizeVT() + n += 1 + l + sov(uint64(l)) + } + if len(m.Rules) > 0 { + for _, e := range m.Rules { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + if len(m.AggregationRules) > 0 { + for _, e := range m.AggregationRules { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + l = len(m.Yaml) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if len(m.Tags) > 0 { + for _, s := range m.Tags { + l = len(s) + n += 1 + l + sov(uint64(l)) + } + } + if m.Metrics != nil { + l = m.Metrics.SizeVT() + n += 1 + l + sov(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *ClusterRoleBinding) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Metadata != nil { + l = m.Metadata.SizeVT() + n += 1 + l + sov(uint64(l)) + } + if len(m.Subjects) > 0 { + for _, e := range m.Subjects { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + if m.RoleRef != nil { + l = m.RoleRef.SizeVT() + n += 1 + l + sov(uint64(l)) + } + l = len(m.Yaml) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if len(m.Tags) > 0 { + for _, s := range m.Tags { + l = len(s) + n += 1 + l + sov(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *ServiceAccount) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Metadata != nil { + l = m.Metadata.SizeVT() + n += 1 + l + sov(uint64(l)) + } + if len(m.Secrets) > 0 { + for _, e := range m.Secrets { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + if len(m.ImagePullSecrets) > 0 { + for _, e := range m.ImagePullSecrets { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + if m.AutomountServiceAccountToken { + n += 2 + } + l = len(m.Yaml) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if len(m.Tags) > 0 { + for _, s := range m.Tags { + l = len(s) + n += 1 + l + sov(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *IngressServiceBackend) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ServiceName) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.PortName) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.PortNumber != 0 { + n += 1 + sov(uint64(m.PortNumber)) + } + n += len(m.unknownFields) + return n +} + +func (m *IngressBackend) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Service != nil { + l = m.Service.SizeVT() + n += 1 + l + sov(uint64(l)) + } + if m.Resource != nil { + l = m.Resource.SizeVT() + n += 1 + l + sov(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *IngressTLS) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Hosts) > 0 { + for _, s := range m.Hosts { + l = len(s) + n += 1 + l + sov(uint64(l)) + } + } + l = len(m.SecretName) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *HTTPIngressPath) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Path) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.Backend != nil { + l = m.Backend.SizeVT() + n += 1 + l + sov(uint64(l)) + } + l = len(m.PathType) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *IngressRule) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Host) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if len(m.HttpPaths) > 0 { + for _, e := range m.HttpPaths { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *IngressSpec) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.DefaultBackend != nil { + l = m.DefaultBackend.SizeVT() + n += 1 + l + sov(uint64(l)) + } + if len(m.Tls) > 0 { + for _, e := range m.Tls { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + if len(m.Rules) > 0 { + for _, e := range m.Rules { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + l = len(m.IngressClassName) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *PortStatus) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Port != 0 { + n += 1 + sov(uint64(m.Port)) + } + l = len(m.Protocol) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.Error) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *LoadBalancerIngress) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Ip) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.Hostname) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if len(m.Ports) > 0 { + for _, e := range m.Ports { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *IngressStatus) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Ingress) > 0 { + for _, e := range m.Ingress { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *Ingress) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Metadata != nil { + l = m.Metadata.SizeVT() + n += 1 + l + sov(uint64(l)) + } + if m.Spec != nil { + l = m.Spec.SizeVT() + n += 1 + l + sov(uint64(l)) + } + if m.Status != nil { + l = m.Status.SizeVT() + n += 1 + l + sov(uint64(l)) + } + l = len(m.Yaml) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if len(m.Tags) > 0 { + for _, s := range m.Tags { + l = len(s) + n += 1 + l + sov(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *KafkaRequestHeader) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.RequestType != 0 { + n += 1 + sov(uint64(m.RequestType)) + } + if m.RequestVersion != 0 { + n += 1 + sov(uint64(m.RequestVersion)) + } + n += len(m.unknownFields) + return n +} + +func (m *KafkaAggregation) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Header != nil { + l = m.Header.SizeVT() + n += 1 + l + sov(uint64(l)) + } + l = len(m.Topic) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.Count != 0 { + n += 1 + sov(uint64(m.Count)) + } + n += len(m.unknownFields) + return n +} + +func (m *DataStreamsAggregations_TopicStats) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Topic) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.Count != 0 { + n += 1 + sov(uint64(m.Count)) + } + n += len(m.unknownFields) + return n +} + +func (m *DataStreamsAggregations_KafkaProduceAggregations) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Stats) > 0 { + for _, e := range m.Stats { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *DataStreamsAggregations_KafkaFetchAggregations) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Stats) > 0 { + for _, e := range m.Stats { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *DataStreamsAggregations) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.KafkaProduceAggregations != nil { + l = m.KafkaProduceAggregations.SizeVT() + n += 1 + l + sov(uint64(l)) + } + if m.KafkaFetchAggregations != nil { + l = m.KafkaFetchAggregations.SizeVT() + n += 1 + l + sov(uint64(l)) + } + if len(m.KafkaAggregations) > 0 { + for _, e := range m.KafkaAggregations { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *HTTPAggregations) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.EndpointAggregations) > 0 { + for _, e := range m.EndpointAggregations { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *HTTP2Aggregations) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.EndpointAggregations) > 0 { + for _, e := range m.EndpointAggregations { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *HTTPStats_Data) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Count != 0 { + n += 1 + sov(uint64(m.Count)) + } + l = len(m.Latencies) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.FirstLatencySample != 0 { + n += 9 + } + n += len(m.unknownFields) + return n +} + +func (m *HTTPStats) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.StatsByResponseStatus) > 0 { + for _, e := range m.StatsByResponseStatus { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + if len(m.StatsByStatusCode) > 0 { + for k, v := range m.StatsByStatusCode { + _ = 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)) + } + } + l = len(m.Path) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.Method != 0 { + n += 1 + sov(uint64(m.Method)) + } + if m.FullPath { + n += 2 + } + n += len(m.unknownFields) + return n +} + +func (m *DNSDatabaseEntry) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.NameOffsets) > 0 { + l = 0 + for _, e := range m.NameOffsets { + l += sov(uint64(e)) + } + n += 1 + sov(uint64(l)) + l + } + n += len(m.unknownFields) + return n +} + +func (m *ResourceList) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.MetricValues) > 0 { + for k, v := range m.MetricValues { + _ = k + _ = v + mapEntrySize := 1 + len(k) + sov(uint64(len(k))) + 1 + 8 + n += mapEntrySize + 1 + sov(uint64(mapEntrySize)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *VerticalPodAutoscaler) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Metadata != nil { + l = m.Metadata.SizeVT() + n += 1 + l + sov(uint64(l)) + } + if m.Spec != nil { + l = m.Spec.SizeVT() + n += 1 + l + sov(uint64(l)) + } + if m.Status != nil { + l = m.Status.SizeVT() + n += 1 + l + sov(uint64(l)) + } + l = len(m.Yaml) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if len(m.Tags) > 0 { + for _, s := range m.Tags { + l = len(s) + n += 1 + l + sov(uint64(l)) + } + } + if len(m.Conditions) > 0 { + for _, e := range m.Conditions { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *VerticalPodAutoscalerCondition) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Type) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.Status) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.LastTransitionTime != 0 { + n += 1 + sov(uint64(m.LastTransitionTime)) + } + l = len(m.Reason) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.Message) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *VerticalPodAutoscalerSpec) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Target != nil { + l = m.Target.SizeVT() + n += 1 + l + sov(uint64(l)) + } + l = len(m.UpdateMode) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if len(m.ResourcePolicies) > 0 { + for _, e := range m.ResourcePolicies { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *VerticalPodAutoscalerTarget) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Kind) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *ContainerResourcePolicy) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContainerName) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.Mode) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.MinAllowed != nil { + l = m.MinAllowed.SizeVT() + n += 1 + l + sov(uint64(l)) + } + if m.MaxAllowed != nil { + l = m.MaxAllowed.SizeVT() + n += 1 + l + sov(uint64(l)) + } + if len(m.ControlledResource) > 0 { + for _, s := range m.ControlledResource { + l = len(s) + n += 1 + l + sov(uint64(l)) + } + } + l = len(m.ControlledValues) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *VerticalPodAutoscalerStatus) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.LastRecommendedDate != 0 { + n += 1 + sov(uint64(m.LastRecommendedDate)) + } + if len(m.Recommendations) > 0 { + for _, e := range m.Recommendations { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + if len(m.Conditions) > 0 { + for _, e := range m.Conditions { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *ContainerRecommendation) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContainerName) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.Target != nil { + l = m.Target.SizeVT() + n += 1 + l + sov(uint64(l)) + } + if m.LowerBound != nil { + l = m.LowerBound.SizeVT() + n += 1 + l + sov(uint64(l)) + } + if m.UpperBound != nil { + l = m.UpperBound.SizeVT() + n += 1 + l + sov(uint64(l)) + } + if m.UncappedTarget != nil { + l = m.UncappedTarget.SizeVT() + n += 1 + l + sov(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *VPACondition) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ConditionType) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.ConditionStatus) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.LastTransitionTime != 0 { + n += 1 + sov(uint64(m.LastTransitionTime)) + } + l = len(m.Reason) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.Message) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func sov(x uint64) (n int) { + return (bits.Len64(x|1) + 6) / 7 +} +func soz(x uint64) (n int) { + return sov(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *ResCollector_Header) 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: ResCollector_Header: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ResCollector_Header: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + m.Type = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Type |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ResCollector) 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: ResCollector: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ResCollector: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Header", 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.Header == nil { + m.Header = &ResCollector_Header{} + } + if err := m.Header.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Message", 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.Message = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", 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.Status == nil { + m.Status = &CollectorStatus{} + } + if err := m.Status.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CollectorProc) 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: CollectorProc: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CollectorProc: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HostName", 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.HostName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Processes", 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.Processes = append(m.Processes, &Process{}) + if err := m.Processes[len(m.Processes)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Host", 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.Host == nil { + m.Host = &Host{} + } + if err := m.Host.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Info", 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.Info == nil { + m.Info = &SystemInfo{} + } + if err := m.Info.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) + } + m.GroupId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.GroupId |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GroupSize", wireType) + } + m.GroupSize = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.GroupSize |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Containers", 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.Containers = append(m.Containers, &Container{}) + if err := m.Containers[len(m.Containers)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 11: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NetworkId", 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.NetworkId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 12: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ContainerHostType", wireType) + } + m.ContainerHostType = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ContainerHostType |= ContainerHostType(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 14: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HintMask", wireType) + } + var v int32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Hints = &CollectorProc_HintMask{HintMask: v} + 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 *CollectorProcDiscovery) 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: CollectorProcDiscovery: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CollectorProcDiscovery: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HostName", 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.HostName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) + } + m.GroupId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.GroupId |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GroupSize", wireType) + } + m.GroupSize = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.GroupSize |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ProcessDiscoveries", 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.ProcessDiscoveries = append(m.ProcessDiscoveries, &ProcessDiscovery{}) + if err := m.ProcessDiscoveries[len(m.ProcessDiscoveries)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Host", 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.Host == nil { + m.Host = &Host{} + } + if err := m.Host.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CollectorRealTime) 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: CollectorRealTime: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CollectorRealTime: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HostName", 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.HostName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Stats", 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.Stats = append(m.Stats, &ProcessStat{}) + if err := m.Stats[len(m.Stats)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HostId", wireType) + } + m.HostId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.HostId |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OrgId", wireType) + } + m.OrgId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.OrgId |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) + } + m.GroupId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.GroupId |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GroupSize", wireType) + } + m.GroupSize = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.GroupSize |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NumCpus", wireType) + } + m.NumCpus = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.NumCpus |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalMemory", wireType) + } + m.TotalMemory = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TotalMemory |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContainerStats", 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.ContainerStats = append(m.ContainerStats, &ContainerStat{}) + if err := m.ContainerStats[len(m.ContainerStats)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 11: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ContainerHostType", wireType) + } + m.ContainerHostType = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ContainerHostType |= ContainerHostType(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CollectorContainer) 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: CollectorContainer: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CollectorContainer: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HostName", 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.HostName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Info", 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.Info == nil { + m.Info = &SystemInfo{} + } + if err := m.Info.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Containers", 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.Containers = append(m.Containers, &Container{}) + if err := m.Containers[len(m.Containers)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) + } + m.GroupId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.GroupId |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GroupSize", wireType) + } + m.GroupSize = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.GroupSize |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Host", 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.Host == nil { + m.Host = &Host{} + } + if err := m.Host.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ContainerHostType", wireType) + } + m.ContainerHostType = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ContainerHostType |= ContainerHostType(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 11: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NetworkId", 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.NetworkId = 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 *CollectorContainerRealTime) 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: CollectorContainerRealTime: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CollectorContainerRealTime: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HostName", 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.HostName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Stats", 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.Stats = append(m.Stats, &ContainerStat{}) + if err := m.Stats[len(m.Stats)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NumCpus", wireType) + } + m.NumCpus = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.NumCpus |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalMemory", wireType) + } + m.TotalMemory = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TotalMemory |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HostId", wireType) + } + m.HostId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.HostId |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) + } + m.GroupId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.GroupId |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GroupSize", wireType) + } + m.GroupSize = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.GroupSize |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ContainerHostType", wireType) + } + m.ContainerHostType = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ContainerHostType |= ContainerHostType(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CollectorReqStatus) 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: CollectorReqStatus: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CollectorReqStatus: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HostName", 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.HostName = 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 *CollectorPod) 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: CollectorPod: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CollectorPod: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HostName", 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.HostName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClusterName", 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.ClusterName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", 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.ClusterId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) + } + m.GroupId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.GroupId |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GroupSize", wireType) + } + m.GroupSize = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.GroupSize |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pods", 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.Pods = append(m.Pods, &Pod{}) + if err := m.Pods[len(m.Pods)-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 Host", 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.Host == nil { + m.Host = &Host{} + } + if err := m.Host.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 8: + 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 *CollectorReplicaSet) 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: CollectorReplicaSet: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CollectorReplicaSet: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClusterName", 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.ClusterName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", 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.ClusterId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) + } + m.GroupId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.GroupId |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GroupSize", wireType) + } + m.GroupSize = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.GroupSize |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ReplicaSets", 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.ReplicaSets = append(m.ReplicaSets, &ReplicaSet{}) + if err := m.ReplicaSets[len(m.ReplicaSets)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field 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 *CollectorDeployment) 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: CollectorDeployment: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CollectorDeployment: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClusterName", 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.ClusterName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", 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.ClusterId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) + } + m.GroupId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.GroupId |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GroupSize", wireType) + } + m.GroupSize = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.GroupSize |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Deployments", 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.Deployments = append(m.Deployments, &Deployment{}) + if err := m.Deployments[len(m.Deployments)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field 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 *CollectorService) 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: CollectorService: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CollectorService: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClusterName", 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.ClusterName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", 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.ClusterId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) + } + m.GroupId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.GroupId |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GroupSize", wireType) + } + m.GroupSize = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.GroupSize |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Services", 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.Services = append(m.Services, &Service{}) + if err := m.Services[len(m.Services)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field 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 *CollectorNode) 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: CollectorNode: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CollectorNode: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClusterName", 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.ClusterName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", 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.ClusterId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) + } + m.GroupId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.GroupId |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GroupSize", wireType) + } + m.GroupSize = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.GroupSize |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Nodes", 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.Nodes = append(m.Nodes, &Node{}) + if err := m.Nodes[len(m.Nodes)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Tags", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Tags = append(m.Tags, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HostAliasMapping", 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.HostAliasMapping == nil { + m.HostAliasMapping = make(map[string]*Host) + } + var mapkey string + var mapvalue *Host + 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 = &Host{} + 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 + } + } + m.HostAliasMapping[mapkey] = mapvalue + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CollectorCluster) 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: CollectorCluster: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CollectorCluster: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClusterName", 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.ClusterName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", 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.ClusterId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) + } + m.GroupId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.GroupId |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GroupSize", wireType) + } + m.GroupSize = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.GroupSize |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Cluster", 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.Cluster == nil { + m.Cluster = &Cluster{} + } + if err := m.Cluster.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + 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 *CollectorManifest) 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: CollectorManifest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CollectorManifest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClusterName", 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.ClusterName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", 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.ClusterId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) + } + m.GroupId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.GroupId |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GroupSize", wireType) + } + m.GroupSize = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.GroupSize |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Manifests", 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.Manifests = append(m.Manifests, &Manifest{}) + if err := m.Manifests[len(m.Manifests)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CollectorManifestCRD) 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: CollectorManifestCRD: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CollectorManifestCRD: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Manifest", 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.Manifest == nil { + m.Manifest = &CollectorManifest{} + } + if err := m.Manifest.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CollectorManifestCR) 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: CollectorManifestCR: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CollectorManifestCR: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Manifest", 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.Manifest == nil { + m.Manifest = &CollectorManifest{} + } + if err := m.Manifest.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CollectorNamespace) 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: CollectorNamespace: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CollectorNamespace: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClusterName", 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.ClusterName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", 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.ClusterId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) + } + m.GroupId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.GroupId |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GroupSize", wireType) + } + m.GroupSize = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.GroupSize |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Namespaces", 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.Namespaces = append(m.Namespaces, &Namespace{}) + if err := m.Namespaces[len(m.Namespaces)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field 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 *CollectorJob) 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: CollectorJob: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CollectorJob: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClusterName", 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.ClusterName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", 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.ClusterId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) + } + m.GroupId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.GroupId |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GroupSize", wireType) + } + m.GroupSize = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.GroupSize |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Jobs", 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.Jobs = append(m.Jobs, &Job{}) + if err := m.Jobs[len(m.Jobs)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field 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 *CollectorCronJob) 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: CollectorCronJob: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CollectorCronJob: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClusterName", 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.ClusterName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", 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.ClusterId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) + } + m.GroupId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.GroupId |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GroupSize", wireType) + } + m.GroupSize = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.GroupSize |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CronJobs", 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.CronJobs = append(m.CronJobs, &CronJob{}) + if err := m.CronJobs[len(m.CronJobs)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field 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 *CollectorDaemonSet) 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: CollectorDaemonSet: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CollectorDaemonSet: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClusterName", 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.ClusterName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", 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.ClusterId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) + } + m.GroupId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.GroupId |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GroupSize", wireType) + } + m.GroupSize = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.GroupSize |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DaemonSets", 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.DaemonSets = append(m.DaemonSets, &DaemonSet{}) + if err := m.DaemonSets[len(m.DaemonSets)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field 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 *CollectorStatefulSet) 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: CollectorStatefulSet: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CollectorStatefulSet: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClusterName", 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.ClusterName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", 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.ClusterId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) + } + m.GroupId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.GroupId |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GroupSize", wireType) + } + m.GroupSize = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.GroupSize |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StatefulSets", 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.StatefulSets = append(m.StatefulSets, &StatefulSet{}) + if err := m.StatefulSets[len(m.StatefulSets)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field 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 *CollectorPersistentVolume) 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: CollectorPersistentVolume: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CollectorPersistentVolume: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClusterName", 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.ClusterName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", 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.ClusterId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) + } + m.GroupId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.GroupId |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GroupSize", wireType) + } + m.GroupSize = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.GroupSize |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PersistentVolumes", 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.PersistentVolumes = append(m.PersistentVolumes, &PersistentVolume{}) + if err := m.PersistentVolumes[len(m.PersistentVolumes)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field 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 *CollectorPersistentVolumeClaim) 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: CollectorPersistentVolumeClaim: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CollectorPersistentVolumeClaim: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClusterName", 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.ClusterName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", 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.ClusterId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) + } + m.GroupId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.GroupId |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GroupSize", wireType) + } + m.GroupSize = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.GroupSize |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PersistentVolumeClaims", 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.PersistentVolumeClaims = append(m.PersistentVolumeClaims, &PersistentVolumeClaim{}) + if err := m.PersistentVolumeClaims[len(m.PersistentVolumeClaims)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field 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 *CollectorRole) 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: CollectorRole: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CollectorRole: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClusterName", 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.ClusterName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", 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.ClusterId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) + } + m.GroupId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.GroupId |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GroupSize", wireType) + } + m.GroupSize = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.GroupSize |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Roles", 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.Roles = append(m.Roles, &Role{}) + if err := m.Roles[len(m.Roles)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field 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 *CollectorRoleBinding) 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: CollectorRoleBinding: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CollectorRoleBinding: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClusterName", 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.ClusterName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", 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.ClusterId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) + } + m.GroupId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.GroupId |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GroupSize", wireType) + } + m.GroupSize = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.GroupSize |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RoleBindings", 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.RoleBindings = append(m.RoleBindings, &RoleBinding{}) + if err := m.RoleBindings[len(m.RoleBindings)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field 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 *CollectorClusterRole) 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: CollectorClusterRole: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CollectorClusterRole: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClusterName", 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.ClusterName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", 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.ClusterId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) + } + m.GroupId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.GroupId |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GroupSize", wireType) + } + m.GroupSize = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.GroupSize |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClusterRoles", 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.ClusterRoles = append(m.ClusterRoles, &ClusterRole{}) + if err := m.ClusterRoles[len(m.ClusterRoles)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field 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 *CollectorClusterRoleBinding) 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: CollectorClusterRoleBinding: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CollectorClusterRoleBinding: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClusterName", 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.ClusterName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", 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.ClusterId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) + } + m.GroupId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.GroupId |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GroupSize", wireType) + } + m.GroupSize = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.GroupSize |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClusterRoleBindings", 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.ClusterRoleBindings = append(m.ClusterRoleBindings, &ClusterRoleBinding{}) + if err := m.ClusterRoleBindings[len(m.ClusterRoleBindings)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field 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 *CollectorServiceAccount) 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: CollectorServiceAccount: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CollectorServiceAccount: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClusterName", 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.ClusterName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", 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.ClusterId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) + } + m.GroupId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.GroupId |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GroupSize", wireType) + } + m.GroupSize = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.GroupSize |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ServiceAccounts", 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.ServiceAccounts = append(m.ServiceAccounts, &ServiceAccount{}) + if err := m.ServiceAccounts[len(m.ServiceAccounts)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field 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 *CollectorIngress) 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: CollectorIngress: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CollectorIngress: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClusterName", 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.ClusterName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", 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.ClusterId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) + } + m.GroupId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.GroupId |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GroupSize", wireType) + } + m.GroupSize = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.GroupSize |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ingresses", 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.Ingresses = append(m.Ingresses, &Ingress{}) + if err := m.Ingresses[len(m.Ingresses)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field 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 *CollectorVerticalPodAutoscaler) 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: CollectorVerticalPodAutoscaler: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CollectorVerticalPodAutoscaler: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClusterName", 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.ClusterName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", 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.ClusterId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) + } + m.GroupId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.GroupId |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GroupSize", wireType) + } + m.GroupSize = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.GroupSize |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field VerticalPodAutoscalers", 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.VerticalPodAutoscalers = append(m.VerticalPodAutoscalers, &VerticalPodAutoscaler{}) + if err := m.VerticalPodAutoscalers[len(m.VerticalPodAutoscalers)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field 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 *CollectorStatus) 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: CollectorStatus: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CollectorStatus: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ActiveClients", wireType) + } + m.ActiveClients = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ActiveClients |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Interval", wireType) + } + m.Interval = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Interval |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Process) 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: Process: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Process: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) + } + m.Key = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Key |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Pid", wireType) + } + m.Pid = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Pid |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Host", 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.Host == nil { + m.Host = &Host{} + } + if err := m.Host.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Command", 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.Command == nil { + m.Command = &Command{} + } + if err := m.Command.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field User", 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.User == nil { + m.User = &ProcessUser{} + } + if err := m.User.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Memory", 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.Memory == nil { + m.Memory = &MemoryStat{} + } + if err := m.Memory.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Cpu", 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.Cpu == nil { + m.Cpu = &CPUStat{} + } + if err := m.Cpu.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CreateTime", wireType) + } + m.CreateTime = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.CreateTime |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Container", 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.Container == nil { + m.Container = &Container{} + } + if err := m.Container.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 11: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OpenFdCount", wireType) + } + m.OpenFdCount = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.OpenFdCount |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 12: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + m.State = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.State |= ProcessState(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 13: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IoStat", 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.IoStat == nil { + m.IoStat = &IOStat{} + } + if err := m.IoStat.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 14: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContainerId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContainerId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 15: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ContainerKey", wireType) + } + m.ContainerKey = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ContainerKey |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 16: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field VoluntaryCtxSwitches", wireType) + } + m.VoluntaryCtxSwitches = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.VoluntaryCtxSwitches |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 17: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InvoluntaryCtxSwitches", wireType) + } + m.InvoluntaryCtxSwitches = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.InvoluntaryCtxSwitches |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 18: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ByteKey", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ByteKey = append(m.ByteKey[:0], dAtA[iNdEx:postIndex]...) + if m.ByteKey == nil { + m.ByteKey = []byte{} + } + iNdEx = postIndex + case 19: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContainerByteKey", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContainerByteKey = append(m.ContainerByteKey[:0], dAtA[iNdEx:postIndex]...) + if m.ContainerByteKey == nil { + m.ContainerByteKey = []byte{} + } + iNdEx = postIndex + case 20: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NsPid", wireType) + } + m.NsPid = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.NsPid |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 21: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Networks", 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.Networks == nil { + m.Networks = &ProcessNetworks{} + } + if err := m.Networks.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ProcessDiscovery) 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: ProcessDiscovery: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ProcessDiscovery: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Pid", wireType) + } + m.Pid = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Pid |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NsPid", wireType) + } + m.NsPid = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.NsPid |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Host", 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.Host == nil { + m.Host = &Host{} + } + if err := m.Host.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Command", 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.Command == nil { + m.Command = &Command{} + } + if err := m.Command.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field User", 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.User == nil { + m.User = &ProcessUser{} + } + if err := m.User.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CreateTime", wireType) + } + m.CreateTime = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.CreateTime |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ByteKey", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ByteKey = append(m.ByteKey[:0], dAtA[iNdEx:postIndex]...) + if m.ByteKey == nil { + m.ByteKey = []byte{} + } + 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 *Command) 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: Command: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Command: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Args", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Args = append(m.Args, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Cwd", 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.Cwd = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Root", 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.Root = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OnDisk", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OnDisk = bool(v != 0) + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Ppid", wireType) + } + m.Ppid = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Ppid |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Pgroup", wireType) + } + m.Pgroup = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Pgroup |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Exe", 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.Exe = 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 *ProcessUser) 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: ProcessUser: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ProcessUser: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Uid", wireType) + } + m.Uid = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Uid |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Gid", wireType) + } + m.Gid = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Gid |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Euid", wireType) + } + m.Euid = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Euid |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Egid", wireType) + } + m.Egid = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Egid |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Suid", wireType) + } + m.Suid = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Suid |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Sgid", wireType) + } + m.Sgid = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Sgid |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ProcessNetworks) 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: ProcessNetworks: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ProcessNetworks: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 5 { + return fmt.Errorf("proto: wrong wireType = %d for field ConnectionRate", wireType) + } + var v uint32 + if (iNdEx + 4) > l { + return io.ErrUnexpectedEOF + } + v = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:])) + iNdEx += 4 + m.ConnectionRate = float32(math.Float32frombits(v)) + case 2: + if wireType != 5 { + return fmt.Errorf("proto: wrong wireType = %d for field BytesRate", wireType) + } + var v uint32 + if (iNdEx + 4) > l { + return io.ErrUnexpectedEOF + } + v = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:])) + iNdEx += 4 + m.BytesRate = float32(math.Float32frombits(v)) + 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 *ContainerAddr) 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: ContainerAddr: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ContainerAddr: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ip", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Ip = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Port", wireType) + } + m.Port = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Port |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Protocol", wireType) + } + m.Protocol = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Protocol |= ConnectionType(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Container) 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: Container: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Container: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", 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.Type = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", 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.Id = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Image", 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.Image = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 5 { + return fmt.Errorf("proto: wrong wireType = %d for field CpuLimit", wireType) + } + var v uint32 + if (iNdEx + 4) > l { + return io.ErrUnexpectedEOF + } + v = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:])) + iNdEx += 4 + m.CpuLimit = float32(math.Float32frombits(v)) + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MemoryLimit", wireType) + } + m.MemoryLimit = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MemoryLimit |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + m.State = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.State |= ContainerState(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Health", wireType) + } + m.Health = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Health |= ContainerHealth(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 10: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Created", wireType) + } + m.Created = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Created |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 11: + if wireType != 5 { + return fmt.Errorf("proto: wrong wireType = %d for field Rbps", wireType) + } + var v uint32 + if (iNdEx + 4) > l { + return io.ErrUnexpectedEOF + } + v = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:])) + iNdEx += 4 + m.Rbps = float32(math.Float32frombits(v)) + case 12: + if wireType != 5 { + return fmt.Errorf("proto: wrong wireType = %d for field Wbps", wireType) + } + var v uint32 + if (iNdEx + 4) > l { + return io.ErrUnexpectedEOF + } + v = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:])) + iNdEx += 4 + m.Wbps = float32(math.Float32frombits(v)) + case 13: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) + } + m.Key = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Key |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 14: + if wireType != 5 { + return fmt.Errorf("proto: wrong wireType = %d for field NetRcvdPs", wireType) + } + var v uint32 + if (iNdEx + 4) > l { + return io.ErrUnexpectedEOF + } + v = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:])) + iNdEx += 4 + m.NetRcvdPs = float32(math.Float32frombits(v)) + case 15: + if wireType != 5 { + return fmt.Errorf("proto: wrong wireType = %d for field NetSentPs", wireType) + } + var v uint32 + if (iNdEx + 4) > l { + return io.ErrUnexpectedEOF + } + v = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:])) + iNdEx += 4 + m.NetSentPs = float32(math.Float32frombits(v)) + case 16: + if wireType != 5 { + return fmt.Errorf("proto: wrong wireType = %d for field NetRcvdBps", wireType) + } + var v uint32 + if (iNdEx + 4) > l { + return io.ErrUnexpectedEOF + } + v = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:])) + iNdEx += 4 + m.NetRcvdBps = float32(math.Float32frombits(v)) + case 17: + if wireType != 5 { + return fmt.Errorf("proto: wrong wireType = %d for field NetSentBps", wireType) + } + var v uint32 + if (iNdEx + 4) > l { + return io.ErrUnexpectedEOF + } + v = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:])) + iNdEx += 4 + m.NetSentBps = float32(math.Float32frombits(v)) + case 18: + if wireType != 5 { + return fmt.Errorf("proto: wrong wireType = %d for field UserPct", wireType) + } + var v uint32 + if (iNdEx + 4) > l { + return io.ErrUnexpectedEOF + } + v = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:])) + iNdEx += 4 + m.UserPct = float32(math.Float32frombits(v)) + case 19: + if wireType != 5 { + return fmt.Errorf("proto: wrong wireType = %d for field SystemPct", wireType) + } + var v uint32 + if (iNdEx + 4) > l { + return io.ErrUnexpectedEOF + } + v = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:])) + iNdEx += 4 + m.SystemPct = float32(math.Float32frombits(v)) + case 20: + if wireType != 5 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalPct", wireType) + } + var v uint32 + if (iNdEx + 4) > l { + return io.ErrUnexpectedEOF + } + v = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:])) + iNdEx += 4 + m.TotalPct = float32(math.Float32frombits(v)) + case 21: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MemRss", wireType) + } + m.MemRss = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MemRss |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 22: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MemCache", wireType) + } + m.MemCache = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MemCache |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 23: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Host", 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.Host == nil { + m.Host = &Host{} + } + if err := m.Host.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 24: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Started", wireType) + } + m.Started = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Started |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 25: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ByteKey", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ByteKey = append(m.ByteKey[:0], dAtA[iNdEx:postIndex]...) + if m.ByteKey == nil { + m.ByteKey = []byte{} + } + iNdEx = postIndex + case 26: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Tags", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Tags = append(m.Tags, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 27: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Addresses", 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.Addresses = append(m.Addresses, &ContainerAddr{}) + if err := m.Addresses[len(m.Addresses)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 28: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ThreadCount", wireType) + } + m.ThreadCount = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ThreadCount |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 29: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ThreadLimit", wireType) + } + m.ThreadLimit = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ThreadLimit |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 30: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MemUsage", wireType) + } + m.MemUsage = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MemUsage |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 31: + if wireType != 5 { + return fmt.Errorf("proto: wrong wireType = %d for field CpuUsageNs", wireType) + } + var v uint32 + if (iNdEx + 4) > l { + return io.ErrUnexpectedEOF + } + v = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:])) + iNdEx += 4 + m.CpuUsageNs = float32(math.Float32frombits(v)) + case 32: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MemAccounted", wireType) + } + m.MemAccounted = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MemAccounted |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ProcessStat) 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: ProcessStat: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ProcessStat: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Pid", wireType) + } + m.Pid = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Pid |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CreateTime", wireType) + } + m.CreateTime = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.CreateTime |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Memory", 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.Memory == nil { + m.Memory = &MemoryStat{} + } + if err := m.Memory.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Cpu", 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.Cpu == nil { + m.Cpu = &CPUStat{} + } + if err := m.Cpu.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Nice", wireType) + } + m.Nice = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Nice |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Threads", wireType) + } + m.Threads = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Threads |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OpenFdCount", wireType) + } + m.OpenFdCount = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.OpenFdCount |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) + } + m.Key = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Key |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContainerId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContainerId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 11: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ContainerState", wireType) + } + m.ContainerState = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ContainerState |= ContainerState(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 12: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ProcessState", wireType) + } + m.ProcessState = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ProcessState |= ProcessState(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 15: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ContainerHealth", wireType) + } + m.ContainerHealth = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ContainerHealth |= ContainerHealth(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 16: + if wireType != 5 { + return fmt.Errorf("proto: wrong wireType = %d for field ContainerRbps", wireType) + } + var v uint32 + if (iNdEx + 4) > l { + return io.ErrUnexpectedEOF + } + v = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:])) + iNdEx += 4 + m.ContainerRbps = float32(math.Float32frombits(v)) + case 17: + if wireType != 5 { + return fmt.Errorf("proto: wrong wireType = %d for field ContainerWbps", wireType) + } + var v uint32 + if (iNdEx + 4) > l { + return io.ErrUnexpectedEOF + } + v = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:])) + iNdEx += 4 + m.ContainerWbps = float32(math.Float32frombits(v)) + case 18: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ContainerKey", wireType) + } + m.ContainerKey = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ContainerKey |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 19: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IoStat", 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.IoStat == nil { + m.IoStat = &IOStat{} + } + if err := m.IoStat.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 20: + if wireType != 5 { + return fmt.Errorf("proto: wrong wireType = %d for field ContainerNetRcvdPs", wireType) + } + var v uint32 + if (iNdEx + 4) > l { + return io.ErrUnexpectedEOF + } + v = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:])) + iNdEx += 4 + m.ContainerNetRcvdPs = float32(math.Float32frombits(v)) + case 21: + if wireType != 5 { + return fmt.Errorf("proto: wrong wireType = %d for field ContainerNetSentPs", wireType) + } + var v uint32 + if (iNdEx + 4) > l { + return io.ErrUnexpectedEOF + } + v = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:])) + iNdEx += 4 + m.ContainerNetSentPs = float32(math.Float32frombits(v)) + case 22: + if wireType != 5 { + return fmt.Errorf("proto: wrong wireType = %d for field ContainerNetRcvdBps", wireType) + } + var v uint32 + if (iNdEx + 4) > l { + return io.ErrUnexpectedEOF + } + v = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:])) + iNdEx += 4 + m.ContainerNetRcvdBps = float32(math.Float32frombits(v)) + case 23: + if wireType != 5 { + return fmt.Errorf("proto: wrong wireType = %d for field ContainerNetSentBps", wireType) + } + var v uint32 + if (iNdEx + 4) > l { + return io.ErrUnexpectedEOF + } + v = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:])) + iNdEx += 4 + m.ContainerNetSentBps = float32(math.Float32frombits(v)) + case 24: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field VoluntaryCtxSwitches", wireType) + } + m.VoluntaryCtxSwitches = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.VoluntaryCtxSwitches |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 25: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InvoluntaryCtxSwitches", wireType) + } + m.InvoluntaryCtxSwitches = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.InvoluntaryCtxSwitches |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 26: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ByteKey", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ByteKey = append(m.ByteKey[:0], dAtA[iNdEx:postIndex]...) + if m.ByteKey == nil { + m.ByteKey = []byte{} + } + iNdEx = postIndex + case 27: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContainerByteKey", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContainerByteKey = append(m.ContainerByteKey[:0], dAtA[iNdEx:postIndex]...) + if m.ContainerByteKey == nil { + m.ContainerByteKey = []byte{} + } + iNdEx = postIndex + case 28: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Networks", 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.Networks == nil { + m.Networks = &ProcessNetworks{} + } + if err := m.Networks.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ProcStatsWithPerm) 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: ProcStatsWithPerm: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ProcStatsWithPerm: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OpenFDCount", wireType) + } + m.OpenFDCount = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.OpenFDCount |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ReadCount", wireType) + } + m.ReadCount = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ReadCount |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field WriteCount", wireType) + } + m.WriteCount = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.WriteCount |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ReadBytes", wireType) + } + m.ReadBytes = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ReadBytes |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field WriteBytes", wireType) + } + m.WriteBytes = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.WriteBytes |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ProcStatsWithPermByPID) 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: ProcStatsWithPermByPID: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ProcStatsWithPermByPID: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StatsByPID", 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.StatsByPID == nil { + m.StatsByPID = make(map[int32]*ProcStatsWithPerm) + } + var mapkey int32 + var mapvalue *ProcStatsWithPerm + 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 { + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + mapkey |= int32(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 = &ProcStatsWithPerm{} + 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 + } + } + m.StatsByPID[mapkey] = mapvalue + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ContainerStat) 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: ContainerStat: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ContainerStat: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", 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.Id = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 5 { + return fmt.Errorf("proto: wrong wireType = %d for field UserPct", wireType) + } + var v uint32 + if (iNdEx + 4) > l { + return io.ErrUnexpectedEOF + } + v = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:])) + iNdEx += 4 + m.UserPct = float32(math.Float32frombits(v)) + case 3: + if wireType != 5 { + return fmt.Errorf("proto: wrong wireType = %d for field SystemPct", wireType) + } + var v uint32 + if (iNdEx + 4) > l { + return io.ErrUnexpectedEOF + } + v = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:])) + iNdEx += 4 + m.SystemPct = float32(math.Float32frombits(v)) + case 4: + if wireType != 5 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalPct", wireType) + } + var v uint32 + if (iNdEx + 4) > l { + return io.ErrUnexpectedEOF + } + v = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:])) + iNdEx += 4 + m.TotalPct = float32(math.Float32frombits(v)) + case 5: + if wireType != 5 { + return fmt.Errorf("proto: wrong wireType = %d for field CpuLimit", wireType) + } + var v uint32 + if (iNdEx + 4) > l { + return io.ErrUnexpectedEOF + } + v = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:])) + iNdEx += 4 + m.CpuLimit = float32(math.Float32frombits(v)) + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MemRss", wireType) + } + m.MemRss = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MemRss |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MemCache", wireType) + } + m.MemCache = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MemCache |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MemLimit", wireType) + } + m.MemLimit = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MemLimit |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 9: + if wireType != 5 { + return fmt.Errorf("proto: wrong wireType = %d for field Rbps", wireType) + } + var v uint32 + if (iNdEx + 4) > l { + return io.ErrUnexpectedEOF + } + v = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:])) + iNdEx += 4 + m.Rbps = float32(math.Float32frombits(v)) + case 10: + if wireType != 5 { + return fmt.Errorf("proto: wrong wireType = %d for field Wbps", wireType) + } + var v uint32 + if (iNdEx + 4) > l { + return io.ErrUnexpectedEOF + } + v = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:])) + iNdEx += 4 + m.Wbps = float32(math.Float32frombits(v)) + case 11: + if wireType != 5 { + return fmt.Errorf("proto: wrong wireType = %d for field NetRcvdPs", wireType) + } + var v uint32 + if (iNdEx + 4) > l { + return io.ErrUnexpectedEOF + } + v = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:])) + iNdEx += 4 + m.NetRcvdPs = float32(math.Float32frombits(v)) + case 12: + if wireType != 5 { + return fmt.Errorf("proto: wrong wireType = %d for field NetSentPs", wireType) + } + var v uint32 + if (iNdEx + 4) > l { + return io.ErrUnexpectedEOF + } + v = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:])) + iNdEx += 4 + m.NetSentPs = float32(math.Float32frombits(v)) + case 13: + if wireType != 5 { + return fmt.Errorf("proto: wrong wireType = %d for field NetRcvdBps", wireType) + } + var v uint32 + if (iNdEx + 4) > l { + return io.ErrUnexpectedEOF + } + v = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:])) + iNdEx += 4 + m.NetRcvdBps = float32(math.Float32frombits(v)) + case 14: + if wireType != 5 { + return fmt.Errorf("proto: wrong wireType = %d for field NetSentBps", wireType) + } + var v uint32 + if (iNdEx + 4) > l { + return io.ErrUnexpectedEOF + } + v = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:])) + iNdEx += 4 + m.NetSentBps = float32(math.Float32frombits(v)) + case 15: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + m.State = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.State |= ContainerState(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 16: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Health", wireType) + } + m.Health = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Health |= ContainerHealth(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 17: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) + } + m.Key = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Key |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 18: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Started", wireType) + } + m.Started = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Started |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 19: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ByteKey", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ByteKey = append(m.ByteKey[:0], dAtA[iNdEx:postIndex]...) + if m.ByteKey == nil { + m.ByteKey = []byte{} + } + iNdEx = postIndex + case 20: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ThreadCount", wireType) + } + m.ThreadCount = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ThreadCount |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 21: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ThreadLimit", wireType) + } + m.ThreadLimit = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ThreadLimit |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 22: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MemUsage", wireType) + } + m.MemUsage = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MemUsage |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 23: + if wireType != 5 { + return fmt.Errorf("proto: wrong wireType = %d for field CpuUsageNs", wireType) + } + var v uint32 + if (iNdEx + 4) > l { + return io.ErrUnexpectedEOF + } + v = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:])) + iNdEx += 4 + m.CpuUsageNs = float32(math.Float32frombits(v)) + case 24: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MemAccounted", wireType) + } + m.MemAccounted = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MemAccounted |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SystemInfo) 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: SystemInfo: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SystemInfo: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Uuid", 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.Uuid = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Os", 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.Os == nil { + m.Os = &OSInfo{} + } + if err := m.Os.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Cpus", 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.Cpus = append(m.Cpus, &CPUInfo{}) + if err := m.Cpus[len(m.Cpus)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalMemory", wireType) + } + m.TotalMemory = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TotalMemory |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *OSInfo) 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: OSInfo: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: OSInfo: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Platform", 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.Platform = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Family", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Family = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Version = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field KernelVersion", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.KernelVersion = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + 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 *IOStat) 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: IOStat: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: IOStat: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 5 { + return fmt.Errorf("proto: wrong wireType = %d for field ReadRate", wireType) + } + var v uint32 + if (iNdEx + 4) > l { + return io.ErrUnexpectedEOF + } + v = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:])) + iNdEx += 4 + m.ReadRate = float32(math.Float32frombits(v)) + case 2: + if wireType != 5 { + return fmt.Errorf("proto: wrong wireType = %d for field WriteRate", wireType) + } + var v uint32 + if (iNdEx + 4) > l { + return io.ErrUnexpectedEOF + } + v = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:])) + iNdEx += 4 + m.WriteRate = float32(math.Float32frombits(v)) + case 3: + if wireType != 5 { + return fmt.Errorf("proto: wrong wireType = %d for field ReadBytesRate", wireType) + } + var v uint32 + if (iNdEx + 4) > l { + return io.ErrUnexpectedEOF + } + v = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:])) + iNdEx += 4 + m.ReadBytesRate = float32(math.Float32frombits(v)) + case 4: + if wireType != 5 { + return fmt.Errorf("proto: wrong wireType = %d for field WriteBytesRate", wireType) + } + var v uint32 + if (iNdEx + 4) > l { + return io.ErrUnexpectedEOF + } + v = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:])) + iNdEx += 4 + m.WriteBytesRate = float32(math.Float32frombits(v)) + 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 *MemoryStat) 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: MemoryStat: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MemoryStat: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Rss", wireType) + } + m.Rss = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Rss |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Vms", wireType) + } + m.Vms = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Vms |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Swap", wireType) + } + m.Swap = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Swap |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Shared", wireType) + } + m.Shared = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Shared |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Text", wireType) + } + m.Text = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Text |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Lib", wireType) + } + m.Lib = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Lib |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) + } + m.Data = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Data |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Dirty", wireType) + } + m.Dirty = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Dirty |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CPUStat) 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: CPUStat: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CPUStat: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LastCpu", 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.LastCpu = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 5 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalPct", wireType) + } + var v uint32 + if (iNdEx + 4) > l { + return io.ErrUnexpectedEOF + } + v = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:])) + iNdEx += 4 + m.TotalPct = float32(math.Float32frombits(v)) + case 3: + if wireType != 5 { + return fmt.Errorf("proto: wrong wireType = %d for field UserPct", wireType) + } + var v uint32 + if (iNdEx + 4) > l { + return io.ErrUnexpectedEOF + } + v = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:])) + iNdEx += 4 + m.UserPct = float32(math.Float32frombits(v)) + case 4: + if wireType != 5 { + return fmt.Errorf("proto: wrong wireType = %d for field SystemPct", wireType) + } + var v uint32 + if (iNdEx + 4) > l { + return io.ErrUnexpectedEOF + } + v = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:])) + iNdEx += 4 + m.SystemPct = float32(math.Float32frombits(v)) + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NumThreads", wireType) + } + m.NumThreads = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.NumThreads |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Cpus", 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.Cpus = append(m.Cpus, &SingleCPUStat{}) + if err := m.Cpus[len(m.Cpus)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Nice", wireType) + } + m.Nice = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Nice |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UserTime", wireType) + } + m.UserTime = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.UserTime |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SystemTime", wireType) + } + m.SystemTime = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.SystemTime |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SingleCPUStat) 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: SingleCPUStat: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SingleCPUStat: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 5 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalPct", wireType) + } + var v uint32 + if (iNdEx + 4) > l { + return io.ErrUnexpectedEOF + } + v = uint32(binary.LittleEndian.Uint32(dAtA[iNdEx:])) + iNdEx += 4 + m.TotalPct = float32(math.Float32frombits(v)) + 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 *CPUInfo) 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: CPUInfo: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CPUInfo: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Number", wireType) + } + m.Number = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Number |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Vendor", 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.Vendor = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Family", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Family = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Model", 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.Model = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PhysicalId", 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.PhysicalId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CoreId", 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.CoreId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Cores", wireType) + } + m.Cores = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Cores |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Mhz", wireType) + } + m.Mhz = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Mhz |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CacheSize", wireType) + } + m.CacheSize = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.CacheSize |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Host) 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: Host: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Host: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + m.Id = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Id |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OrgId", wireType) + } + m.OrgId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.OrgId |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AllTags", 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.AllTags = append(m.AllTags, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NumCpus", wireType) + } + m.NumCpus = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.NumCpus |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalMemory", wireType) + } + m.TotalMemory = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TotalMemory |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TagIndex", wireType) + } + m.TagIndex = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TagIndex |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 10: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TagsModified", wireType) + } + m.TagsModified = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TagsModified |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Cluster) 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: Cluster: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Cluster: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NodeCount", wireType) + } + m.NodeCount = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.NodeCount |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field KubeletVersions", 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.KubeletVersions == nil { + m.KubeletVersions = make(map[string]int32) + } + var mapkey string + var mapvalue int32 + 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 { + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + mapvalue |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + } else { + iNdEx = entryPreIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + m.KubeletVersions[mapkey] = mapvalue + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ApiServerVersions", 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.ApiServerVersions == nil { + m.ApiServerVersions = make(map[string]int32) + } + var mapkey string + var mapvalue int32 + 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 { + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + mapvalue |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + } else { + iNdEx = entryPreIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + m.ApiServerVersions[mapkey] = mapvalue + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PodCapacity", wireType) + } + m.PodCapacity = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.PodCapacity |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PodAllocatable", wireType) + } + m.PodAllocatable = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.PodAllocatable |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MemoryAllocatable", wireType) + } + m.MemoryAllocatable = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MemoryAllocatable |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MemoryCapacity", wireType) + } + m.MemoryCapacity = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MemoryCapacity |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CpuAllocatable", wireType) + } + m.CpuAllocatable = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.CpuAllocatable |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CpuCapacity", wireType) + } + m.CpuCapacity = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.CpuCapacity |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceVersion", 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.ResourceVersion = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 11: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CreationTimestamp", wireType) + } + m.CreationTimestamp = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.CreationTimestamp |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 12: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Tags", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Tags = append(m.Tags, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 13: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Metrics", 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.Metrics == nil { + m.Metrics = &ResourceMetrics{} + } + if err := m.Metrics.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Metadata) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Metadata: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Metadata: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Namespace", 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.Namespace = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Uid", 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.Uid = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CreationTimestamp", wireType) + } + m.CreationTimestamp = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.CreationTimestamp |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DeletionTimestamp", wireType) + } + m.DeletionTimestamp = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.DeletionTimestamp |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Labels", 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.Labels = append(m.Labels, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Annotations", 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.Annotations = append(m.Annotations, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OwnerReferences", 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.OwnerReferences = append(m.OwnerReferences, &OwnerReference{}) + if err := m.OwnerReferences[len(m.OwnerReferences)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceVersion", 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.ResourceVersion = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Finalizers", 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.Finalizers = append(m.Finalizers, 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 *OwnerReference) 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: OwnerReference: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: OwnerReference: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Uid", 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.Uid = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Kind", 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.Kind = 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 *ObjectReference) 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: ObjectReference: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ObjectReference: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Kind", 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.Kind = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Namespace", 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.Namespace = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Uid", 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.Uid = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ApiVersion", 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.ApiVersion = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceVersion", 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.ResourceVersion = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FieldPath", 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.FieldPath = 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 *ServicePort) 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: ServicePort: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ServicePort: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Protocol", 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.Protocol = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Port", wireType) + } + m.Port = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Port |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TargetPort", 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.TargetPort = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NodePort", wireType) + } + m.NodePort = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.NodePort |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ServiceSessionAffinityConfig) 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: ServiceSessionAffinityConfig: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ServiceSessionAffinityConfig: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ClientIPTimeoutSeconds", wireType) + } + m.ClientIPTimeoutSeconds = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ClientIPTimeoutSeconds |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Node) 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: Node: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Node: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + 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 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PodCIDR", 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.PodCIDR = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PodCIDRs", 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.PodCIDRs = append(m.PodCIDRs, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Unschedulable", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Unschedulable = bool(v != 0) + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Taints", 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.Taints = append(m.Taints, &Taint{}) + if err := m.Taints[len(m.Taints)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", 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.Status == nil { + m.Status = &NodeStatus{} + } + if err := m.Status.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Yaml", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Yaml = append(m.Yaml[:0], dAtA[iNdEx:postIndex]...) + if m.Yaml == nil { + m.Yaml = []byte{} + } + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Roles", 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.Roles = append(m.Roles, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Tags", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Tags = append(m.Tags, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ProviderID", 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.ProviderID = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 11: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Host", 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.Host == nil { + m.Host = &Host{} + } + if err := m.Host.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 12: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Metrics", 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.Metrics == nil { + m.Metrics = &ResourceMetrics{} + } + if err := m.Metrics.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NodeStatus) 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: NodeStatus: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NodeStatus: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Capacity", 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.Capacity == nil { + m.Capacity = make(map[string]int64) + } + var mapkey string + var mapvalue int64 + 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 { + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + mapvalue |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + } else { + iNdEx = entryPreIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + m.Capacity[mapkey] = mapvalue + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Allocatable", 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.Allocatable == nil { + m.Allocatable = make(map[string]int64) + } + var mapkey string + var mapvalue int64 + 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 { + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + mapvalue |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + } else { + iNdEx = entryPreIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + m.Allocatable[mapkey] = mapvalue + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NodeAddresses", 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.NodeAddresses == nil { + m.NodeAddresses = make(map[string]string) + } + var mapkey string + var mapvalue string + for iNdEx < postIndex { + entryPreIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + if fieldNum == 1 { + var stringLenmapkey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapkey |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return ErrInvalidLength + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLength + } + if postStringIndexmapkey > l { + return io.ErrUnexpectedEOF + } + mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + } else if fieldNum == 2 { + var stringLenmapvalue uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapvalue |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapvalue := int(stringLenmapvalue) + if intStringLenmapvalue < 0 { + return ErrInvalidLength + } + postStringIndexmapvalue := iNdEx + intStringLenmapvalue + if postStringIndexmapvalue < 0 { + return ErrInvalidLength + } + if postStringIndexmapvalue > l { + return io.ErrUnexpectedEOF + } + mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) + iNdEx = postStringIndexmapvalue + } else { + iNdEx = entryPreIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + m.NodeAddresses[mapkey] = mapvalue + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", 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.Status = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field KubeletVersion", 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.KubeletVersion = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Conditions", 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.Conditions = append(m.Conditions, &NodeCondition{}) + if err := m.Conditions[len(m.Conditions)-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 Images", 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.Images = append(m.Images, &ContainerImage{}) + if err := m.Images[len(m.Images)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field KubeProxyVersion", 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.KubeProxyVersion = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OperatingSystem", 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.OperatingSystem = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Architecture", 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.Architecture = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 11: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field KernelVersion", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.KernelVersion = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 12: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OsImage", 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.OsImage = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 13: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContainerRuntimeVersion", 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.ContainerRuntimeVersion = 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 *NodeCondition) 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: NodeCondition: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NodeCondition: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", 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.Type = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", 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.Status = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LastTransitionTime", wireType) + } + m.LastTransitionTime = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.LastTransitionTime |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Reason", 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.Reason = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Message", 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.Message = 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 *ContainerImage) 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: ContainerImage: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ContainerImage: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Names", 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.Names = append(m.Names, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SizeBytes", wireType) + } + m.SizeBytes = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.SizeBytes |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Taint) 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: Taint: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Taint: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Key", 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.Key = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", 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.Value = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Effect", 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.Effect = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TimeAdded", wireType) + } + m.TimeAdded = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TimeAdded |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ServiceSpec) 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: ServiceSpec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ServiceSpec: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ports", 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.Ports = append(m.Ports, &ServicePort{}) + if err := m.Ports[len(m.Ports)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Selectors", 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.Selectors = append(m.Selectors, &LabelSelectorRequirement{}) + if err := m.Selectors[len(m.Selectors)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClusterIP", 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.ClusterIP = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", 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.Type = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExternalIPs", 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.ExternalIPs = append(m.ExternalIPs, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SessionAffinity", 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.SessionAffinity = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LoadBalancerIP", 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.LoadBalancerIP = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LoadBalancerSourceRanges", 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.LoadBalancerSourceRanges = append(m.LoadBalancerSourceRanges, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExternalName", 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.ExternalName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExternalTrafficPolicy", 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.ExternalTrafficPolicy = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 11: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HealthCheckNodePort", wireType) + } + m.HealthCheckNodePort = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.HealthCheckNodePort |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 12: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PublishNotReadyAddresses", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PublishNotReadyAddresses = bool(v != 0) + case 13: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SessionAffinityConfig", 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.SessionAffinityConfig == nil { + m.SessionAffinityConfig = &ServiceSessionAffinityConfig{} + } + if err := m.SessionAffinityConfig.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 14: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IpFamily", 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.IpFamily = 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 *ServiceStatus) 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: ServiceStatus: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ServiceStatus: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 17: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LoadBalancerIngress", 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.LoadBalancerIngress = append(m.LoadBalancerIngress, 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 *Service) 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: Service: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Service: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + 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 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Spec", 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.Spec == nil { + m.Spec = &ServiceSpec{} + } + if err := m.Spec.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", 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.Status == nil { + m.Status = &ServiceStatus{} + } + if err := m.Status.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Yaml", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Yaml = append(m.Yaml[:0], dAtA[iNdEx:postIndex]...) + if m.Yaml == nil { + m.Yaml = []byte{} + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Tags", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Tags = append(m.Tags, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Metrics", 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.Metrics == nil { + m.Metrics = &ResourceMetrics{} + } + if err := m.Metrics.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DeploymentCondition) 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: DeploymentCondition: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DeploymentCondition: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", 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.Type = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", 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.Status = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Reason", 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.Reason = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Message", 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.Message = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LastUpdateTime", wireType) + } + m.LastUpdateTime = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.LastUpdateTime |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LastTransitionTime", wireType) + } + m.LastTransitionTime = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.LastTransitionTime |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Deployment) 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: Deployment: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Deployment: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + 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 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ReplicasDesired", wireType) + } + m.ReplicasDesired = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ReplicasDesired |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DeploymentStrategy", 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.DeploymentStrategy = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxUnavailable", 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.MaxUnavailable = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxSurge", 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.MaxSurge = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Paused", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Paused = bool(v != 0) + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Selectors", 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.Selectors = append(m.Selectors, &LabelSelectorRequirement{}) + if err := m.Selectors[len(m.Selectors)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Replicas", wireType) + } + m.Replicas = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Replicas |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UpdatedReplicas", wireType) + } + m.UpdatedReplicas = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.UpdatedReplicas |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 10: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ReadyReplicas", wireType) + } + m.ReadyReplicas = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ReadyReplicas |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 11: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AvailableReplicas", wireType) + } + m.AvailableReplicas = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.AvailableReplicas |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 12: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UnavailableReplicas", wireType) + } + m.UnavailableReplicas = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.UnavailableReplicas |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 13: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ConditionMessage", 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.ConditionMessage = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 14: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Yaml", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Yaml = append(m.Yaml[:0], dAtA[iNdEx:postIndex]...) + if m.Yaml == nil { + m.Yaml = []byte{} + } + iNdEx = postIndex + case 15: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Tags", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Tags = append(m.Tags, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 16: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceRequirements", 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.ResourceRequirements = append(m.ResourceRequirements, &ResourceRequirements{}) + if err := m.ResourceRequirements[len(m.ResourceRequirements)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 17: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Metrics", 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.Metrics == nil { + m.Metrics = &ResourceMetrics{} + } + if err := m.Metrics.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 18: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Conditions", 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.Conditions = append(m.Conditions, &DeploymentCondition{}) + if err := m.Conditions[len(m.Conditions)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ReplicaSetCondition) 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: ReplicaSetCondition: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ReplicaSetCondition: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", 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.Type = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", 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.Status = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LastTransitionTime", wireType) + } + m.LastTransitionTime = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.LastTransitionTime |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Reason", 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.Reason = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Message", 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.Message = 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 *ReplicaSet) 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: ReplicaSet: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ReplicaSet: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + 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 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ReplicasDesired", wireType) + } + m.ReplicasDesired = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ReplicasDesired |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Selectors", 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.Selectors = append(m.Selectors, &LabelSelectorRequirement{}) + if err := m.Selectors[len(m.Selectors)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Replicas", wireType) + } + m.Replicas = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Replicas |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field FullyLabeledReplicas", wireType) + } + m.FullyLabeledReplicas = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.FullyLabeledReplicas |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ReadyReplicas", wireType) + } + m.ReadyReplicas = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ReadyReplicas |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AvailableReplicas", wireType) + } + m.AvailableReplicas = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.AvailableReplicas |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Yaml", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Yaml = append(m.Yaml[:0], dAtA[iNdEx:postIndex]...) + if m.Yaml == nil { + m.Yaml = []byte{} + } + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Tags", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Tags = append(m.Tags, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceRequirements", 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.ResourceRequirements = append(m.ResourceRequirements, &ResourceRequirements{}) + if err := m.ResourceRequirements[len(m.ResourceRequirements)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 11: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Metrics", 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.Metrics == nil { + m.Metrics = &ResourceMetrics{} + } + if err := m.Metrics.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 12: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Conditions", 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.Conditions = append(m.Conditions, &ReplicaSetCondition{}) + if err := m.Conditions[len(m.Conditions)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *LabelSelectorRequirement) 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: LabelSelectorRequirement: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: LabelSelectorRequirement: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Key", 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.Key = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Operator", 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.Operator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Values", 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.Values = append(m.Values, 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 *Pod) 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: Pod: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Pod: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + 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 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IP", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.IP = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NominatedNodeName", 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.NominatedNodeName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NodeName", 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.NodeName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Phase", 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.Phase = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RestartCount", wireType) + } + m.RestartCount = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.RestartCount |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContainerStatuses", 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.ContainerStatuses = append(m.ContainerStatuses, &ContainerStatus{}) + if err := m.ContainerStatuses[len(m.ContainerStatuses)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ConditionMessage", 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.ConditionMessage = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", 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.Status = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Yaml", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Yaml = append(m.Yaml[:0], dAtA[iNdEx:postIndex]...) + if m.Yaml == nil { + m.Yaml = []byte{} + } + iNdEx = postIndex + case 11: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Tags", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Tags = append(m.Tags, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 12: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Host", 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.Host == nil { + m.Host = &Host{} + } + if err := m.Host.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 13: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceRequirements", 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.ResourceRequirements = append(m.ResourceRequirements, &ResourceRequirements{}) + if err := m.ResourceRequirements[len(m.ResourceRequirements)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 14: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InitContainerStatuses", 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.InitContainerStatuses = append(m.InitContainerStatuses, &ContainerStatus{}) + if err := m.InitContainerStatuses[len(m.InitContainerStatuses)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 15: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field QOSClass", 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.QOSClass = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 16: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PriorityClass", 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.PriorityClass = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 17: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Metrics", 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.Metrics == nil { + m.Metrics = &ResourceMetrics{} + } + if err := m.Metrics.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 18: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field StartTime", wireType) + } + m.StartTime = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.StartTime |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 19: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ScheduledTime", wireType) + } + m.ScheduledTime = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ScheduledTime |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 20: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Conditions", 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.Conditions = append(m.Conditions, &PodCondition{}) + if err := m.Conditions[len(m.Conditions)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *PodCondition) 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: PodCondition: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PodCondition: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", 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.Type = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", 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.Status = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LastProbeTime", wireType) + } + m.LastProbeTime = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.LastProbeTime |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LastTransitionTime", wireType) + } + m.LastTransitionTime = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.LastTransitionTime |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Reason", 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.Reason = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Message", 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.Message = 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 *ContainerStatus) 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: ContainerStatus: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ContainerStatus: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContainerID", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContainerID = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Ready", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Ready = bool(v != 0) + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RestartCount", wireType) + } + m.RestartCount = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.RestartCount |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", 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.State = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Message", 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.Message = 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 *Manifest) 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: Manifest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Manifest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + m.Type = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Type |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceVersion", 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.ResourceVersion = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Uid", 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.Uid = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Content", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Content = append(m.Content[:0], dAtA[iNdEx:postIndex]...) + if m.Content == nil { + m.Content = []byte{} + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContentType", 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.ContentType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Version = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + 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 *NamespaceCondition) 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: NamespaceCondition: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NamespaceCondition: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", 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.Type = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", 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.Status = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LastTransitionTime", wireType) + } + m.LastTransitionTime = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.LastTransitionTime |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Reason", 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.Reason = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Message", 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.Message = 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 *Namespace) 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: Namespace: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Namespace: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + 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 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", 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.Status = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ConditionMessage", 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.ConditionMessage = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Yaml", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Yaml = append(m.Yaml[:0], dAtA[iNdEx:postIndex]...) + if m.Yaml == nil { + m.Yaml = []byte{} + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Tags", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Tags = append(m.Tags, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Conditions", 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.Conditions = append(m.Conditions, &NamespaceCondition{}) + if err := m.Conditions[len(m.Conditions)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ResourceRequirements) 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: ResourceRequirements: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ResourceRequirements: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Limits", 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.Limits == nil { + m.Limits = make(map[string]int64) + } + var mapkey string + var mapvalue int64 + 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 { + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + mapvalue |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + } else { + iNdEx = entryPreIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + m.Limits[mapkey] = mapvalue + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Requests", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Requests == nil { + m.Requests = make(map[string]int64) + } + var mapkey string + var mapvalue int64 + 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 { + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + mapvalue |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + } else { + iNdEx = entryPreIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + m.Requests[mapkey] = mapvalue + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + m.Type = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Type |= ResourceRequirementsType(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ResourceMetrics) 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: ResourceMetrics: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ResourceMetrics: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MetricValues", 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.MetricValues == nil { + m.MetricValues = make(map[string]float64) + } + var mapkey string + var mapvalue float64 + 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 mapvaluetemp uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + mapvaluetemp = uint64(binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + mapvalue = math.Float64frombits(mapvaluetemp) + } else { + iNdEx = entryPreIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + m.MetricValues[mapkey] = mapvalue + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JobSpec) 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: JobSpec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: JobSpec: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Parallelism", wireType) + } + m.Parallelism = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Parallelism |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Completions", wireType) + } + m.Completions = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Completions |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ActiveDeadlineSeconds", wireType) + } + m.ActiveDeadlineSeconds = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ActiveDeadlineSeconds |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BackoffLimit", wireType) + } + m.BackoffLimit = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.BackoffLimit |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Selectors", 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.Selectors = append(m.Selectors, &LabelSelectorRequirement{}) + if err := m.Selectors[len(m.Selectors)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ManualSelector", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ManualSelector = bool(v != 0) + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceRequirements", 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.ResourceRequirements = append(m.ResourceRequirements, &ResourceRequirements{}) + if err := m.ResourceRequirements[len(m.ResourceRequirements)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JobStatus) 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: JobStatus: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: JobStatus: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ConditionMessage", 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.ConditionMessage = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field StartTime", wireType) + } + m.StartTime = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.StartTime |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CompletionTime", wireType) + } + m.CompletionTime = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.CompletionTime |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Active", wireType) + } + m.Active = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Active |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Succeeded", wireType) + } + m.Succeeded = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Succeeded |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Failed", wireType) + } + m.Failed = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Failed |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JobCondition) 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: JobCondition: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: JobCondition: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", 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.Type = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", 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.Status = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LastProbeTime", wireType) + } + m.LastProbeTime = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.LastProbeTime |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LastTransitionTime", wireType) + } + m.LastTransitionTime = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.LastTransitionTime |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Reason", 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.Reason = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Message", 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.Message = 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 *Job) 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: Job: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Job: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + 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 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Spec", 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.Spec == nil { + m.Spec = &JobSpec{} + } + if err := m.Spec.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", 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.Status == nil { + m.Status = &JobStatus{} + } + if err := m.Status.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Yaml", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Yaml = append(m.Yaml[:0], dAtA[iNdEx:postIndex]...) + if m.Yaml == nil { + m.Yaml = []byte{} + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Tags", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Tags = append(m.Tags, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Conditions", 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.Conditions = append(m.Conditions, &JobCondition{}) + if err := m.Conditions[len(m.Conditions)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CronJobSpec) 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: CronJobSpec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CronJobSpec: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Schedule", 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.Schedule = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field StartingDeadlineSeconds", wireType) + } + m.StartingDeadlineSeconds = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.StartingDeadlineSeconds |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ConcurrencyPolicy", 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.ConcurrencyPolicy = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Suspend", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Suspend = bool(v != 0) + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SuccessfulJobsHistoryLimit", wireType) + } + m.SuccessfulJobsHistoryLimit = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.SuccessfulJobsHistoryLimit |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field FailedJobsHistoryLimit", wireType) + } + m.FailedJobsHistoryLimit = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.FailedJobsHistoryLimit |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceRequirements", 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.ResourceRequirements = append(m.ResourceRequirements, &ResourceRequirements{}) + if err := m.ResourceRequirements[len(m.ResourceRequirements)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CronJobStatus) 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: CronJobStatus: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CronJobStatus: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Active", 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.Active = append(m.Active, &ObjectReference{}) + if err := m.Active[len(m.Active)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LastScheduleTime", wireType) + } + m.LastScheduleTime = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.LastScheduleTime |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CronJob) 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: CronJob: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CronJob: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + 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 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Spec", 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.Spec == nil { + m.Spec = &CronJobSpec{} + } + if err := m.Spec.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", 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.Status == nil { + m.Status = &CronJobStatus{} + } + if err := m.Status.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Yaml", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Yaml = append(m.Yaml[:0], dAtA[iNdEx:postIndex]...) + if m.Yaml == nil { + m.Yaml = []byte{} + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Tags", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Tags = append(m.Tags, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + 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 *DaemonSetSpec) 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: DaemonSetSpec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DaemonSetSpec: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Selectors", 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.Selectors = append(m.Selectors, &LabelSelectorRequirement{}) + if err := m.Selectors[len(m.Selectors)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DeploymentStrategy", 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.DeploymentStrategy = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxUnavailable", 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.MaxUnavailable = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MinReadySeconds", wireType) + } + m.MinReadySeconds = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MinReadySeconds |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RevisionHistoryLimit", wireType) + } + m.RevisionHistoryLimit = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.RevisionHistoryLimit |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceRequirements", 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.ResourceRequirements = append(m.ResourceRequirements, &ResourceRequirements{}) + if err := m.ResourceRequirements[len(m.ResourceRequirements)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DaemonSetStatus) 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: DaemonSetStatus: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DaemonSetStatus: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CurrentNumberScheduled", wireType) + } + m.CurrentNumberScheduled = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.CurrentNumberScheduled |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NumberMisscheduled", wireType) + } + m.NumberMisscheduled = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.NumberMisscheduled |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DesiredNumberScheduled", wireType) + } + m.DesiredNumberScheduled = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.DesiredNumberScheduled |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NumberReady", wireType) + } + m.NumberReady = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.NumberReady |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UpdatedNumberScheduled", wireType) + } + m.UpdatedNumberScheduled = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.UpdatedNumberScheduled |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NumberAvailable", wireType) + } + m.NumberAvailable = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.NumberAvailable |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NumberUnavailable", wireType) + } + m.NumberUnavailable = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.NumberUnavailable |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DaemonSetCondition) 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: DaemonSetCondition: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DaemonSetCondition: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", 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.Type = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", 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.Status = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LastTransitionTime", wireType) + } + m.LastTransitionTime = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.LastTransitionTime |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Reason", 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.Reason = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Message", 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.Message = 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 *DaemonSet) 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: DaemonSet: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DaemonSet: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + 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 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Spec", 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.Spec == nil { + m.Spec = &DaemonSetSpec{} + } + if err := m.Spec.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", 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.Status == nil { + m.Status = &DaemonSetStatus{} + } + if err := m.Status.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Yaml", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Yaml = append(m.Yaml[:0], dAtA[iNdEx:postIndex]...) + if m.Yaml == nil { + m.Yaml = []byte{} + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Tags", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Tags = append(m.Tags, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Metrics", 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.Metrics == nil { + m.Metrics = &ResourceMetrics{} + } + if err := m.Metrics.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Conditions", 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.Conditions = append(m.Conditions, &DaemonSetCondition{}) + if err := m.Conditions[len(m.Conditions)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *StatefulSetSpec) 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: StatefulSetSpec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: StatefulSetSpec: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DesiredReplicas", wireType) + } + m.DesiredReplicas = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.DesiredReplicas |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Selectors", 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.Selectors = append(m.Selectors, &LabelSelectorRequirement{}) + if err := m.Selectors[len(m.Selectors)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ServiceName", 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.ServiceName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PodManagementPolicy", 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.PodManagementPolicy = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UpdateStrategy", 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.UpdateStrategy = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Partition", wireType) + } + m.Partition = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Partition |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceRequirements", 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.ResourceRequirements = append(m.ResourceRequirements, &ResourceRequirements{}) + if err := m.ResourceRequirements[len(m.ResourceRequirements)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *StatefulSetStatus) 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: StatefulSetStatus: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: StatefulSetStatus: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Replicas", wireType) + } + m.Replicas = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Replicas |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ReadyReplicas", wireType) + } + m.ReadyReplicas = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ReadyReplicas |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CurrentReplicas", wireType) + } + m.CurrentReplicas = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.CurrentReplicas |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UpdatedReplicas", wireType) + } + m.UpdatedReplicas = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.UpdatedReplicas |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *StatefulSetCondition) 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: StatefulSetCondition: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: StatefulSetCondition: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", 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.Type = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", 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.Status = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LastTransitionTime", wireType) + } + m.LastTransitionTime = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.LastTransitionTime |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Reason", 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.Reason = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Message", 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.Message = 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 *StatefulSet) 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: StatefulSet: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: StatefulSet: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + 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 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Spec", 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.Spec == nil { + m.Spec = &StatefulSetSpec{} + } + if err := m.Spec.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", 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.Status == nil { + m.Status = &StatefulSetStatus{} + } + if err := m.Status.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Yaml", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Yaml = append(m.Yaml[:0], dAtA[iNdEx:postIndex]...) + if m.Yaml == nil { + m.Yaml = []byte{} + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Tags", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Tags = append(m.Tags, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Metrics", 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.Metrics == nil { + m.Metrics = &ResourceMetrics{} + } + if err := m.Metrics.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Conditions", 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.Conditions = append(m.Conditions, &StatefulSetCondition{}) + if err := m.Conditions[len(m.Conditions)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *PersistentVolume) 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: PersistentVolume: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PersistentVolume: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + 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 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Spec", 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.Spec == nil { + m.Spec = &PersistentVolumeSpec{} + } + if err := m.Spec.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", 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.Status == nil { + m.Status = &PersistentVolumeStatus{} + } + if err := m.Status.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Yaml", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Yaml = append(m.Yaml[:0], dAtA[iNdEx:postIndex]...) + if m.Yaml == nil { + m.Yaml = []byte{} + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Tags", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Tags = append(m.Tags, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + 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 *PersistentVolumeSpec) 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: PersistentVolumeSpec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PersistentVolumeSpec: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Capacity", 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.Capacity == nil { + m.Capacity = make(map[string]int64) + } + var mapkey string + var mapvalue int64 + 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 { + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + mapvalue |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + } else { + iNdEx = entryPreIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + m.Capacity[mapkey] = mapvalue + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PersistentVolumeType", 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.PersistentVolumeType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AccessModes", 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.AccessModes = append(m.AccessModes, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClaimRef", 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.ClaimRef == nil { + m.ClaimRef = &ObjectReference{} + } + if err := m.ClaimRef.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PersistentVolumeReclaimPolicy", 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.PersistentVolumeReclaimPolicy = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StorageClassName", 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.StorageClassName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MountOptions", 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.MountOptions = append(m.MountOptions, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field VolumeMode", 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.VolumeMode = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NodeAffinity", 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.NodeAffinity = append(m.NodeAffinity, &NodeSelectorTerm{}) + if err := m.NodeAffinity[len(m.NodeAffinity)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PersistentVolumeSource", 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.PersistentVolumeSource == nil { + m.PersistentVolumeSource = &PersistentVolumeSource{} + } + if err := m.PersistentVolumeSource.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *PersistentVolumeSource) 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: PersistentVolumeSource: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PersistentVolumeSource: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field GcePersistentDisk", 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.GcePersistentDisk == nil { + m.GcePersistentDisk = &GCEPersistentDiskVolumeSource{} + } + if err := m.GcePersistentDisk.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AwsElasticBlockStore", 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.AwsElasticBlockStore == nil { + m.AwsElasticBlockStore = &AWSElasticBlockStoreVolumeSource{} + } + if err := m.AwsElasticBlockStore.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AzureFile", 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.AzureFile == nil { + m.AzureFile = &AzureFilePersistentVolumeSource{} + } + if err := m.AzureFile.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AzureDisk", 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.AzureDisk == nil { + m.AzureDisk = &AzureDiskVolumeSource{} + } + if err := m.AzureDisk.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Csi", 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.Csi == nil { + m.Csi = &CSIVolumeSource{} + } + if err := m.Csi.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GCEPersistentDiskVolumeSource) 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: GCEPersistentDiskVolumeSource: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GCEPersistentDiskVolumeSource: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PdName", 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.PdName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FsType", 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.FsType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Partition", wireType) + } + m.Partition = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Partition |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ReadOnly", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ReadOnly = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AWSElasticBlockStoreVolumeSource) 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: AWSElasticBlockStoreVolumeSource: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AWSElasticBlockStoreVolumeSource: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field VolumeID", 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.VolumeID = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FsType", 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.FsType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Partition", wireType) + } + m.Partition = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Partition |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ReadOnly", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ReadOnly = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AzureFilePersistentVolumeSource) 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: AzureFilePersistentVolumeSource: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AzureFilePersistentVolumeSource: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SecretName", 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.SecretName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ShareName", 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.ShareName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ReadOnly", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ReadOnly = bool(v != 0) + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SecretNamespace", 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.SecretNamespace = 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 *AzureDiskVolumeSource) 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: AzureDiskVolumeSource: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AzureDiskVolumeSource: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DiskName", 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.DiskName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DiskURI", 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.DiskURI = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CachingMode", 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.CachingMode = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FsType", 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.FsType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ReadOnly", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ReadOnly = bool(v != 0) + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Kind", 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.Kind = 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 *CSIVolumeSource) 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: CSIVolumeSource: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CSIVolumeSource: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Driver", 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.Driver = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field VolumeHandle", 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.VolumeHandle = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ReadOnly", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ReadOnly = bool(v != 0) + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FsType", 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.FsType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field VolumeAttributes", 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.VolumeAttributes == nil { + m.VolumeAttributes = make(map[string]string) + } + var mapkey string + var mapvalue string + for iNdEx < postIndex { + entryPreIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + if fieldNum == 1 { + var stringLenmapkey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapkey |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return ErrInvalidLength + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLength + } + if postStringIndexmapkey > l { + return io.ErrUnexpectedEOF + } + mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + } else if fieldNum == 2 { + var stringLenmapvalue uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapvalue |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapvalue := int(stringLenmapvalue) + if intStringLenmapvalue < 0 { + return ErrInvalidLength + } + postStringIndexmapvalue := iNdEx + intStringLenmapvalue + if postStringIndexmapvalue < 0 { + return ErrInvalidLength + } + if postStringIndexmapvalue > l { + return io.ErrUnexpectedEOF + } + mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) + iNdEx = postStringIndexmapvalue + } else { + iNdEx = entryPreIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + m.VolumeAttributes[mapkey] = mapvalue + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ControllerPublishSecretRef", 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.ControllerPublishSecretRef == nil { + m.ControllerPublishSecretRef = &SecretReference{} + } + if err := m.ControllerPublishSecretRef.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NodeStageSecretRef", 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.NodeStageSecretRef == nil { + m.NodeStageSecretRef = &SecretReference{} + } + if err := m.NodeStageSecretRef.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NodePublishSecretRef", 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.NodePublishSecretRef == nil { + m.NodePublishSecretRef = &SecretReference{} + } + if err := m.NodePublishSecretRef.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ControllerExpandSecretRef", 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.ControllerExpandSecretRef == nil { + m.ControllerExpandSecretRef = &SecretReference{} + } + if err := m.ControllerExpandSecretRef.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NodeExpandSecretRef", 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.NodeExpandSecretRef == nil { + m.NodeExpandSecretRef = &SecretReference{} + } + if err := m.NodeExpandSecretRef.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SecretReference) 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: SecretReference: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SecretReference: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Namespace", 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.Namespace = 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 *PersistentVolumeStatus) 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: PersistentVolumeStatus: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PersistentVolumeStatus: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Phase", 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.Phase = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Message", 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.Message = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Reason", 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.Reason = 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 *NodeSelectorTerm) 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: NodeSelectorTerm: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NodeSelectorTerm: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MatchExpressions", 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.MatchExpressions = append(m.MatchExpressions, &LabelSelectorRequirement{}) + if err := m.MatchExpressions[len(m.MatchExpressions)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MatchFields", 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.MatchFields = append(m.MatchFields, &LabelSelectorRequirement{}) + if err := m.MatchFields[len(m.MatchFields)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *PersistentVolumeClaim) 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: PersistentVolumeClaim: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PersistentVolumeClaim: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + 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 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Spec", 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.Spec == nil { + m.Spec = &PersistentVolumeClaimSpec{} + } + if err := m.Spec.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", 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.Status == nil { + m.Status = &PersistentVolumeClaimStatus{} + } + if err := m.Status.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Yaml", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Yaml = append(m.Yaml[:0], dAtA[iNdEx:postIndex]...) + if m.Yaml == nil { + m.Yaml = []byte{} + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Tags", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Tags = append(m.Tags, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + 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 *PersistentVolumeClaimStatus) 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: PersistentVolumeClaimStatus: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PersistentVolumeClaimStatus: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Phase", 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.Phase = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AccessModes", 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.AccessModes = append(m.AccessModes, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Capacity", 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.Capacity == nil { + m.Capacity = make(map[string]int64) + } + var mapkey string + var mapvalue int64 + 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 { + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + mapvalue |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + } else { + iNdEx = entryPreIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + m.Capacity[mapkey] = mapvalue + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Conditions", 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.Conditions = append(m.Conditions, &PersistentVolumeClaimCondition{}) + if err := m.Conditions[len(m.Conditions)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *PersistentVolumeClaimSpec) 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: PersistentVolumeClaimSpec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PersistentVolumeClaimSpec: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AccessModes", 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.AccessModes = append(m.AccessModes, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Resources", 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.Resources == nil { + m.Resources = &ResourceRequirements{} + } + if err := m.Resources.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field VolumeName", 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.VolumeName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Selector", 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.Selector = append(m.Selector, &LabelSelectorRequirement{}) + if err := m.Selector[len(m.Selector)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StorageClassName", 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.StorageClassName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field VolumeMode", 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.VolumeMode = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DataSource", 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.DataSource == nil { + m.DataSource = &TypedLocalObjectReference{} + } + if err := m.DataSource.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *TypedLocalObjectReference) 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: TypedLocalObjectReference: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TypedLocalObjectReference: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ApiGroup", 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.ApiGroup = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Kind", 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.Kind = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + 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 *PersistentVolumeClaimCondition) 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: PersistentVolumeClaimCondition: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PersistentVolumeClaimCondition: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", 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.Type = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", 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.Status = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LastProbeTime", wireType) + } + m.LastProbeTime = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.LastProbeTime |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LastTransitionTime", wireType) + } + m.LastTransitionTime = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.LastTransitionTime |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Reason", 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.Reason = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Message", 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.Message = 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 *PolicyRule) 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: PolicyRule: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PolicyRule: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Verbs", 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.Verbs = append(m.Verbs, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ApiGroups", 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.ApiGroups = append(m.ApiGroups, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Resources", 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.Resources = append(m.Resources, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceNames", 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.ResourceNames = append(m.ResourceNames, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NonResourceURLs", 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.NonResourceURLs = append(m.NonResourceURLs, 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 *Subject) 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: Subject: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Subject: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Kind", 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.Kind = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ApiGroup", 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.ApiGroup = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Namespace", 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.Namespace = 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 *Role) 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: Role: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Role: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + 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 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Rules", 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.Rules = append(m.Rules, &PolicyRule{}) + if err := m.Rules[len(m.Rules)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Yaml", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Yaml = append(m.Yaml[:0], dAtA[iNdEx:postIndex]...) + if m.Yaml == nil { + m.Yaml = []byte{} + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Tags", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Tags = append(m.Tags, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + 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 *RoleBinding) 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: RoleBinding: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RoleBinding: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + 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 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Subjects", 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.Subjects = append(m.Subjects, &Subject{}) + if err := m.Subjects[len(m.Subjects)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RoleRef", 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.RoleRef == nil { + m.RoleRef = &TypedLocalObjectReference{} + } + if err := m.RoleRef.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Yaml", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Yaml = append(m.Yaml[:0], dAtA[iNdEx:postIndex]...) + if m.Yaml == nil { + m.Yaml = []byte{} + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Tags", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Tags = append(m.Tags, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + 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 *ClusterRole) 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: ClusterRole: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ClusterRole: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + 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 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Rules", 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.Rules = append(m.Rules, &PolicyRule{}) + if err := m.Rules[len(m.Rules)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AggregationRules", 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.AggregationRules = append(m.AggregationRules, &LabelSelectorRequirement{}) + if err := m.AggregationRules[len(m.AggregationRules)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Yaml", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Yaml = append(m.Yaml[:0], dAtA[iNdEx:postIndex]...) + if m.Yaml == nil { + m.Yaml = []byte{} + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Tags", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Tags = append(m.Tags, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Metrics", 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.Metrics == nil { + m.Metrics = &ResourceMetrics{} + } + if err := m.Metrics.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ClusterRoleBinding) 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: ClusterRoleBinding: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ClusterRoleBinding: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + 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 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Subjects", 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.Subjects = append(m.Subjects, &Subject{}) + if err := m.Subjects[len(m.Subjects)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RoleRef", 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.RoleRef == nil { + m.RoleRef = &TypedLocalObjectReference{} + } + if err := m.RoleRef.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Yaml", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Yaml = append(m.Yaml[:0], dAtA[iNdEx:postIndex]...) + if m.Yaml == nil { + m.Yaml = []byte{} + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Tags", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Tags = append(m.Tags, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + 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 *ServiceAccount) 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: ServiceAccount: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ServiceAccount: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + 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 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Secrets", 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.Secrets = append(m.Secrets, &ObjectReference{}) + if err := m.Secrets[len(m.Secrets)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ImagePullSecrets", 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.ImagePullSecrets = append(m.ImagePullSecrets, &TypedLocalObjectReference{}) + if err := m.ImagePullSecrets[len(m.ImagePullSecrets)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AutomountServiceAccountToken", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AutomountServiceAccountToken = bool(v != 0) + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Yaml", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Yaml = append(m.Yaml[:0], dAtA[iNdEx:postIndex]...) + if m.Yaml == nil { + m.Yaml = []byte{} + } + iNdEx = postIndex + case 6: + 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 *IngressServiceBackend) 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: IngressServiceBackend: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: IngressServiceBackend: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ServiceName", 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.ServiceName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PortName", 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.PortName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PortNumber", wireType) + } + m.PortNumber = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.PortNumber |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *IngressBackend) 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: IngressBackend: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: IngressBackend: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Service", 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.Service == nil { + m.Service = &IngressServiceBackend{} + } + if err := m.Service.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Resource", 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.Resource == nil { + m.Resource = &TypedLocalObjectReference{} + } + if err := m.Resource.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *IngressTLS) 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: IngressTLS: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: IngressTLS: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Hosts", 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.Hosts = append(m.Hosts, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SecretName", 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.SecretName = 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 *HTTPIngressPath) 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: HTTPIngressPath: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: HTTPIngressPath: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Path = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Backend", 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.Backend == nil { + m.Backend = &IngressBackend{} + } + if err := m.Backend.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PathType", 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.PathType = 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 *IngressRule) 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: IngressRule: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: IngressRule: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Host", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Host = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HttpPaths", 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.HttpPaths = append(m.HttpPaths, &HTTPIngressPath{}) + if err := m.HttpPaths[len(m.HttpPaths)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *IngressSpec) 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: IngressSpec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: IngressSpec: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DefaultBackend", 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.DefaultBackend == nil { + m.DefaultBackend = &IngressBackend{} + } + if err := m.DefaultBackend.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Tls", 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.Tls = append(m.Tls, &IngressTLS{}) + if err := m.Tls[len(m.Tls)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Rules", 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.Rules = append(m.Rules, &IngressRule{}) + if err := m.Rules[len(m.Rules)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IngressClassName", 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.IngressClassName = 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 *PortStatus) 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: PortStatus: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PortStatus: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Port", wireType) + } + m.Port = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Port |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Protocol", 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.Protocol = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Error", 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.Error = 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 *LoadBalancerIngress) 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: LoadBalancerIngress: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: LoadBalancerIngress: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ip", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Ip = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Hostname", 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.Hostname = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ports", 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.Ports = append(m.Ports, &PortStatus{}) + if err := m.Ports[len(m.Ports)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *IngressStatus) 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: IngressStatus: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: IngressStatus: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ingress", 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.Ingress = append(m.Ingress, &LoadBalancerIngress{}) + if err := m.Ingress[len(m.Ingress)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Ingress) 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: Ingress: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Ingress: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + 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 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Spec", 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.Spec == nil { + m.Spec = &IngressSpec{} + } + if err := m.Spec.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", 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.Status == nil { + m.Status = &IngressStatus{} + } + if err := m.Status.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Yaml", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Yaml = append(m.Yaml[:0], dAtA[iNdEx:postIndex]...) + if m.Yaml == nil { + m.Yaml = []byte{} + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Tags", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Tags = append(m.Tags, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + 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 *KafkaRequestHeader) 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: KafkaRequestHeader: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: KafkaRequestHeader: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RequestType", wireType) + } + m.RequestType = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.RequestType |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RequestVersion", wireType) + } + m.RequestVersion = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.RequestVersion |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *KafkaAggregation) 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: KafkaAggregation: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: KafkaAggregation: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Header", 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.Header == nil { + m.Header = &KafkaRequestHeader{} + } + if err := m.Header.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Topic", 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.Topic = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Count", wireType) + } + m.Count = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Count |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DataStreamsAggregations_TopicStats) 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: DataStreamsAggregations_TopicStats: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DataStreamsAggregations_TopicStats: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Topic", 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.Topic = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Count", wireType) + } + m.Count = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Count |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DataStreamsAggregations_KafkaProduceAggregations) 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: DataStreamsAggregations_KafkaProduceAggregations: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DataStreamsAggregations_KafkaProduceAggregations: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Stats", 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.Stats = append(m.Stats, &DataStreamsAggregations_TopicStats{}) + if err := m.Stats[len(m.Stats)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DataStreamsAggregations_KafkaFetchAggregations) 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: DataStreamsAggregations_KafkaFetchAggregations: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DataStreamsAggregations_KafkaFetchAggregations: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Stats", 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.Stats = append(m.Stats, &DataStreamsAggregations_TopicStats{}) + if err := m.Stats[len(m.Stats)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DataStreamsAggregations) 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: DataStreamsAggregations: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DataStreamsAggregations: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field KafkaProduceAggregations", 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.KafkaProduceAggregations == nil { + m.KafkaProduceAggregations = &DataStreamsAggregations_KafkaProduceAggregations{} + } + if err := m.KafkaProduceAggregations.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field KafkaFetchAggregations", 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.KafkaFetchAggregations == nil { + m.KafkaFetchAggregations = &DataStreamsAggregations_KafkaFetchAggregations{} + } + if err := m.KafkaFetchAggregations.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field KafkaAggregations", 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.KafkaAggregations = append(m.KafkaAggregations, &KafkaAggregation{}) + if err := m.KafkaAggregations[len(m.KafkaAggregations)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *HTTPAggregations) 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: HTTPAggregations: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: HTTPAggregations: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EndpointAggregations", 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.EndpointAggregations = append(m.EndpointAggregations, &HTTPStats{}) + if err := m.EndpointAggregations[len(m.EndpointAggregations)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *HTTP2Aggregations) 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: HTTP2Aggregations: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: HTTP2Aggregations: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EndpointAggregations", 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.EndpointAggregations = append(m.EndpointAggregations, &HTTPStats{}) + if err := m.EndpointAggregations[len(m.EndpointAggregations)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *HTTPStats_Data) 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: HTTPStats_Data: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: HTTPStats_Data: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Count", wireType) + } + m.Count = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Count |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Latencies", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Latencies = append(m.Latencies[:0], dAtA[iNdEx:postIndex]...) + if m.Latencies == nil { + m.Latencies = []byte{} + } + iNdEx = postIndex + case 4: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field FirstLatencySample", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + m.FirstLatencySample = float64(math.Float64frombits(v)) + 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 *HTTPStats) 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: HTTPStats: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: HTTPStats: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StatsByResponseStatus", 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.StatsByResponseStatus = append(m.StatsByResponseStatus, &HTTPStats_Data{}) + if err := m.StatsByResponseStatus[len(m.StatsByResponseStatus)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StatsByStatusCode", 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.StatsByStatusCode == nil { + m.StatsByStatusCode = make(map[int32]*HTTPStats_Data) + } + var mapkey int32 + var mapvalue *HTTPStats_Data + 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 { + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + mapkey |= int32(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 = &HTTPStats_Data{} + 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 + } + } + m.StatsByStatusCode[mapkey] = mapvalue + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Path = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Method", wireType) + } + m.Method = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Method |= HTTPMethod(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field FullPath", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.FullPath = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DNSDatabaseEntry) 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: DNSDatabaseEntry: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DNSDatabaseEntry: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType == 0 { + var v int32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NameOffsets = append(m.NameOffsets, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.NameOffsets) == 0 { + m.NameOffsets = make([]int32, 0, elementCount) + } + for iNdEx < postIndex { + var v int32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NameOffsets = append(m.NameOffsets, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field NameOffsets", wireType) + } + 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 *ResourceList) 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: ResourceList: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ResourceList: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MetricValues", 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.MetricValues == nil { + m.MetricValues = make(map[string]float64) + } + var mapkey string + var mapvalue float64 + 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 mapvaluetemp uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + mapvaluetemp = uint64(binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + mapvalue = math.Float64frombits(mapvaluetemp) + } else { + iNdEx = entryPreIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + m.MetricValues[mapkey] = mapvalue + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *VerticalPodAutoscaler) 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: VerticalPodAutoscaler: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: VerticalPodAutoscaler: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + 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 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Spec", 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.Spec == nil { + m.Spec = &VerticalPodAutoscalerSpec{} + } + if err := m.Spec.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", 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.Status == nil { + m.Status = &VerticalPodAutoscalerStatus{} + } + if err := m.Status.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Yaml", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Yaml = append(m.Yaml[:0], dAtA[iNdEx:postIndex]...) + if m.Yaml == nil { + m.Yaml = []byte{} + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Tags", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Tags = append(m.Tags, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Conditions", 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.Conditions = append(m.Conditions, &VerticalPodAutoscalerCondition{}) + if err := m.Conditions[len(m.Conditions)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *VerticalPodAutoscalerCondition) 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: VerticalPodAutoscalerCondition: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: VerticalPodAutoscalerCondition: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", 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.Type = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", 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.Status = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LastTransitionTime", wireType) + } + m.LastTransitionTime = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.LastTransitionTime |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Reason", 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.Reason = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Message", 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.Message = 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 *VerticalPodAutoscalerSpec) 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: VerticalPodAutoscalerSpec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: VerticalPodAutoscalerSpec: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Target", 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.Target == nil { + m.Target = &VerticalPodAutoscalerTarget{} + } + if err := m.Target.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UpdateMode", 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.UpdateMode = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourcePolicies", 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.ResourcePolicies = append(m.ResourcePolicies, &ContainerResourcePolicy{}) + if err := m.ResourcePolicies[len(m.ResourcePolicies)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *VerticalPodAutoscalerTarget) 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: VerticalPodAutoscalerTarget: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: VerticalPodAutoscalerTarget: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Kind", 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.Kind = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + 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 *ContainerResourcePolicy) 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: ContainerResourcePolicy: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ContainerResourcePolicy: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContainerName", 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.ContainerName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Mode", 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.Mode = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MinAllowed", 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.MinAllowed == nil { + m.MinAllowed = &ResourceList{} + } + if err := m.MinAllowed.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxAllowed", 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.MaxAllowed == nil { + m.MaxAllowed = &ResourceList{} + } + if err := m.MaxAllowed.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ControlledResource", 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.ControlledResource = append(m.ControlledResource, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ControlledValues", 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.ControlledValues = 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 *VerticalPodAutoscalerStatus) 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: VerticalPodAutoscalerStatus: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: VerticalPodAutoscalerStatus: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LastRecommendedDate", wireType) + } + m.LastRecommendedDate = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.LastRecommendedDate |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Recommendations", 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.Recommendations = append(m.Recommendations, &ContainerRecommendation{}) + if err := m.Recommendations[len(m.Recommendations)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Conditions", 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.Conditions = append(m.Conditions, &VPACondition{}) + if err := m.Conditions[len(m.Conditions)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ContainerRecommendation) 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: ContainerRecommendation: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ContainerRecommendation: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContainerName", 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.ContainerName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Target", 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.Target == nil { + m.Target = &ResourceList{} + } + if err := m.Target.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LowerBound", 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.LowerBound == nil { + m.LowerBound = &ResourceList{} + } + if err := m.LowerBound.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UpperBound", 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.UpperBound == nil { + m.UpperBound = &ResourceList{} + } + if err := m.UpperBound.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UncappedTarget", 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.UncappedTarget == nil { + m.UncappedTarget = &ResourceList{} + } + if err := m.UncappedTarget.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *VPACondition) 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: VPACondition: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: VPACondition: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ConditionType", 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.ConditionType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ConditionStatus", 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.ConditionStatus = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LastTransitionTime", wireType) + } + m.LastTransitionTime = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.LastTransitionTime |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Reason", 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.Reason = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Message", 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.Message = 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 skip(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflow + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflow + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflow + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLength + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroup + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLength + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLength = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflow = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroup = fmt.Errorf("proto: unexpected end of group") +) diff --git a/process/connections.pb.go b/process/connections.pb.go index 40eec38e..ea86a3b1 100644 --- a/process/connections.pb.go +++ b/process/connections.pb.go @@ -1,19 +1,24 @@ -// Code generated by protoc-gen-gogo. +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.31.0 +// protoc v3.21.12 // source: proto/process/connections.proto -// DO NOT EDIT! package process -import proto "github.com/gogo/protobuf/proto" -import fmt "fmt" -import math "math" - -import io "io" +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) type RuntimeCompilationResult int32 @@ -32,40 +37,63 @@ const ( RuntimeCompilationResult_InputHashError RuntimeCompilationResult = 11 ) -var RuntimeCompilationResult_name = map[int32]string{ - 0: "NotAttempted", - 1: "CompilationSuccess", - 2: "KernelVersionErr", - 3: "VerificationError", - 4: "OutputDirErr", - 5: "OutputFileErr", - 6: "NewCompilerErr", - 7: "CompilationErr", - 8: "ResultReadErr", - 9: "HeaderFetchErr", - 10: "CompiledOutputFound", - 11: "InputHashError", -} -var RuntimeCompilationResult_value = map[string]int32{ - "NotAttempted": 0, - "CompilationSuccess": 1, - "KernelVersionErr": 2, - "VerificationError": 3, - "OutputDirErr": 4, - "OutputFileErr": 5, - "NewCompilerErr": 6, - "CompilationErr": 7, - "ResultReadErr": 8, - "HeaderFetchErr": 9, - "CompiledOutputFound": 10, - "InputHashError": 11, +// Enum value maps for RuntimeCompilationResult. +var ( + RuntimeCompilationResult_name = map[int32]string{ + 0: "NotAttempted", + 1: "CompilationSuccess", + 2: "KernelVersionErr", + 3: "VerificationError", + 4: "OutputDirErr", + 5: "OutputFileErr", + 6: "NewCompilerErr", + 7: "CompilationErr", + 8: "ResultReadErr", + 9: "HeaderFetchErr", + 10: "CompiledOutputFound", + 11: "InputHashError", + } + RuntimeCompilationResult_value = map[string]int32{ + "NotAttempted": 0, + "CompilationSuccess": 1, + "KernelVersionErr": 2, + "VerificationError": 3, + "OutputDirErr": 4, + "OutputFileErr": 5, + "NewCompilerErr": 6, + "CompilationErr": 7, + "ResultReadErr": 8, + "HeaderFetchErr": 9, + "CompiledOutputFound": 10, + "InputHashError": 11, + } +) + +func (x RuntimeCompilationResult) Enum() *RuntimeCompilationResult { + p := new(RuntimeCompilationResult) + *p = x + return p } func (x RuntimeCompilationResult) String() string { - return proto.EnumName(RuntimeCompilationResult_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } + +func (RuntimeCompilationResult) Descriptor() protoreflect.EnumDescriptor { + return file_proto_process_connections_proto_enumTypes[0].Descriptor() +} + +func (RuntimeCompilationResult) Type() protoreflect.EnumType { + return &file_proto_process_connections_proto_enumTypes[0] +} + +func (x RuntimeCompilationResult) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use RuntimeCompilationResult.Descriptor instead. func (RuntimeCompilationResult) EnumDescriptor() ([]byte, []int) { - return fileDescriptorConnections, []int{0} + return file_proto_process_connections_proto_rawDescGZIP(), []int{0} } type KernelHeaderFetchResult int32 @@ -84,38 +112,61 @@ const ( KernelHeaderFetchResult_HeadersNotFoundDownloadDisabled KernelHeaderFetchResult = 10 ) -var KernelHeaderFetchResult_name = map[int32]string{ - 0: "FetchNotAttempted", - 1: "CustomHeadersFound", - 2: "DefaultHeadersFound", - 3: "SysfsHeadersFound", - 4: "DownloadedHeadersFound", - 5: "DownloadSuccess", - 6: "HostVersionErr", - 7: "DownloadFailure", - 8: "ValidationFailure", - 9: "ReposDirAccessFailure", - 10: "HeadersNotFoundDownloadDisabled", -} -var KernelHeaderFetchResult_value = map[string]int32{ - "FetchNotAttempted": 0, - "CustomHeadersFound": 1, - "DefaultHeadersFound": 2, - "SysfsHeadersFound": 3, - "DownloadedHeadersFound": 4, - "DownloadSuccess": 5, - "HostVersionErr": 6, - "DownloadFailure": 7, - "ValidationFailure": 8, - "ReposDirAccessFailure": 9, - "HeadersNotFoundDownloadDisabled": 10, +// Enum value maps for KernelHeaderFetchResult. +var ( + KernelHeaderFetchResult_name = map[int32]string{ + 0: "FetchNotAttempted", + 1: "CustomHeadersFound", + 2: "DefaultHeadersFound", + 3: "SysfsHeadersFound", + 4: "DownloadedHeadersFound", + 5: "DownloadSuccess", + 6: "HostVersionErr", + 7: "DownloadFailure", + 8: "ValidationFailure", + 9: "ReposDirAccessFailure", + 10: "HeadersNotFoundDownloadDisabled", + } + KernelHeaderFetchResult_value = map[string]int32{ + "FetchNotAttempted": 0, + "CustomHeadersFound": 1, + "DefaultHeadersFound": 2, + "SysfsHeadersFound": 3, + "DownloadedHeadersFound": 4, + "DownloadSuccess": 5, + "HostVersionErr": 6, + "DownloadFailure": 7, + "ValidationFailure": 8, + "ReposDirAccessFailure": 9, + "HeadersNotFoundDownloadDisabled": 10, + } +) + +func (x KernelHeaderFetchResult) Enum() *KernelHeaderFetchResult { + p := new(KernelHeaderFetchResult) + *p = x + return p } func (x KernelHeaderFetchResult) String() string { - return proto.EnumName(KernelHeaderFetchResult_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (KernelHeaderFetchResult) Descriptor() protoreflect.EnumDescriptor { + return file_proto_process_connections_proto_enumTypes[1].Descriptor() +} + +func (KernelHeaderFetchResult) Type() protoreflect.EnumType { + return &file_proto_process_connections_proto_enumTypes[1] +} + +func (x KernelHeaderFetchResult) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } + +// Deprecated: Use KernelHeaderFetchResult.Descriptor instead. func (KernelHeaderFetchResult) EnumDescriptor() ([]byte, []int) { - return fileDescriptorConnections, []int{1} + return file_proto_process_connections_proto_rawDescGZIP(), []int{1} } type COREResult int32 @@ -130,29 +181,54 @@ const ( COREResult_LoaderError COREResult = 6 ) -var COREResult_name = map[int32]string{ - 0: "SuccessCustomBTF", - 1: "SuccessEmbeddedBTF", - 2: "SuccessDefaultBTF", - 3: "BtfNotFound", - 4: "AssetReadError", - 5: "VerifierError", - 6: "LoaderError", -} -var COREResult_value = map[string]int32{ - "SuccessCustomBTF": 0, - "SuccessEmbeddedBTF": 1, - "SuccessDefaultBTF": 2, - "BtfNotFound": 3, - "AssetReadError": 4, - "VerifierError": 5, - "LoaderError": 6, +// Enum value maps for COREResult. +var ( + COREResult_name = map[int32]string{ + 0: "SuccessCustomBTF", + 1: "SuccessEmbeddedBTF", + 2: "SuccessDefaultBTF", + 3: "BtfNotFound", + 4: "AssetReadError", + 5: "VerifierError", + 6: "LoaderError", + } + COREResult_value = map[string]int32{ + "SuccessCustomBTF": 0, + "SuccessEmbeddedBTF": 1, + "SuccessDefaultBTF": 2, + "BtfNotFound": 3, + "AssetReadError": 4, + "VerifierError": 5, + "LoaderError": 6, + } +) + +func (x COREResult) Enum() *COREResult { + p := new(COREResult) + *p = x + return p } func (x COREResult) String() string { - return proto.EnumName(COREResult_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (COREResult) Descriptor() protoreflect.EnumDescriptor { + return file_proto_process_connections_proto_enumTypes[2].Descriptor() +} + +func (COREResult) Type() protoreflect.EnumType { + return &file_proto_process_connections_proto_enumTypes[2] +} + +func (x COREResult) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use COREResult.Descriptor instead. +func (COREResult) EnumDescriptor() ([]byte, []int) { + return file_proto_process_connections_proto_rawDescGZIP(), []int{2} } -func (COREResult) EnumDescriptor() ([]byte, []int) { return fileDescriptorConnections, []int{2} } type ConnectionFamily int32 @@ -161,19 +237,44 @@ const ( ConnectionFamily_v6 ConnectionFamily = 1 ) -var ConnectionFamily_name = map[int32]string{ - 0: "v4", - 1: "v6", -} -var ConnectionFamily_value = map[string]int32{ - "v4": 0, - "v6": 1, +// Enum value maps for ConnectionFamily. +var ( + ConnectionFamily_name = map[int32]string{ + 0: "v4", + 1: "v6", + } + ConnectionFamily_value = map[string]int32{ + "v4": 0, + "v6": 1, + } +) + +func (x ConnectionFamily) Enum() *ConnectionFamily { + p := new(ConnectionFamily) + *p = x + return p } func (x ConnectionFamily) String() string { - return proto.EnumName(ConnectionFamily_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ConnectionFamily) Descriptor() protoreflect.EnumDescriptor { + return file_proto_process_connections_proto_enumTypes[3].Descriptor() +} + +func (ConnectionFamily) Type() protoreflect.EnumType { + return &file_proto_process_connections_proto_enumTypes[3] +} + +func (x ConnectionFamily) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ConnectionFamily.Descriptor instead. +func (ConnectionFamily) EnumDescriptor() ([]byte, []int) { + return file_proto_process_connections_proto_rawDescGZIP(), []int{3} } -func (ConnectionFamily) EnumDescriptor() ([]byte, []int) { return fileDescriptorConnections, []int{3} } type ConnectionDirection int32 @@ -185,26 +286,49 @@ const ( ConnectionDirection_none ConnectionDirection = 4 ) -var ConnectionDirection_name = map[int32]string{ - 0: "unspecified", - 1: "incoming", - 2: "outgoing", - 3: "local", - 4: "none", -} -var ConnectionDirection_value = map[string]int32{ - "unspecified": 0, - "incoming": 1, - "outgoing": 2, - "local": 3, - "none": 4, +// Enum value maps for ConnectionDirection. +var ( + ConnectionDirection_name = map[int32]string{ + 0: "unspecified", + 1: "incoming", + 2: "outgoing", + 3: "local", + 4: "none", + } + ConnectionDirection_value = map[string]int32{ + "unspecified": 0, + "incoming": 1, + "outgoing": 2, + "local": 3, + "none": 4, + } +) + +func (x ConnectionDirection) Enum() *ConnectionDirection { + p := new(ConnectionDirection) + *p = x + return p } func (x ConnectionDirection) String() string { - return proto.EnumName(ConnectionDirection_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ConnectionDirection) Descriptor() protoreflect.EnumDescriptor { + return file_proto_process_connections_proto_enumTypes[4].Descriptor() +} + +func (ConnectionDirection) Type() protoreflect.EnumType { + return &file_proto_process_connections_proto_enumTypes[4] +} + +func (x ConnectionDirection) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } + +// Deprecated: Use ConnectionDirection.Descriptor instead. func (ConnectionDirection) EnumDescriptor() ([]byte, []int) { - return fileDescriptorConnections, []int{4} + return file_proto_process_connections_proto_rawDescGZIP(), []int{4} } type EphemeralPortState int32 @@ -215,22 +339,45 @@ const ( EphemeralPortState_ephemeralFalse EphemeralPortState = 2 ) -var EphemeralPortState_name = map[int32]string{ - 0: "ephemeralUnspecified", - 1: "ephemeralTrue", - 2: "ephemeralFalse", -} -var EphemeralPortState_value = map[string]int32{ - "ephemeralUnspecified": 0, - "ephemeralTrue": 1, - "ephemeralFalse": 2, +// Enum value maps for EphemeralPortState. +var ( + EphemeralPortState_name = map[int32]string{ + 0: "ephemeralUnspecified", + 1: "ephemeralTrue", + 2: "ephemeralFalse", + } + EphemeralPortState_value = map[string]int32{ + "ephemeralUnspecified": 0, + "ephemeralTrue": 1, + "ephemeralFalse": 2, + } +) + +func (x EphemeralPortState) Enum() *EphemeralPortState { + p := new(EphemeralPortState) + *p = x + return p } func (x EphemeralPortState) String() string { - return proto.EnumName(EphemeralPortState_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (EphemeralPortState) Descriptor() protoreflect.EnumDescriptor { + return file_proto_process_connections_proto_enumTypes[5].Descriptor() } + +func (EphemeralPortState) Type() protoreflect.EnumType { + return &file_proto_process_connections_proto_enumTypes[5] +} + +func (x EphemeralPortState) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use EphemeralPortState.Descriptor instead. func (EphemeralPortState) EnumDescriptor() ([]byte, []int) { - return fileDescriptorConnections, []int{5} + return file_proto_process_connections_proto_rawDescGZIP(), []int{5} } type ProtocolType int32 @@ -250,51 +397,80 @@ const ( ProtocolType_protocolGRPC ProtocolType = 11 ) -var ProtocolType_name = map[int32]string{ - 0: "protocolUnclassified", - 1: "protocolUnknown", - 2: "protocolHTTP", - 3: "protocolHTTP2", - 4: "protocolTLS", - 5: "protocolKafka", - 6: "protocolMongo", - 7: "protocolPostgres", - 8: "protocolAMQP", - 9: "protocolRedis", - 10: "protocolMySQL", - 11: "protocolGRPC", -} -var ProtocolType_value = map[string]int32{ - "protocolUnclassified": 0, - "protocolUnknown": 1, - "protocolHTTP": 2, - "protocolHTTP2": 3, - "protocolTLS": 4, - "protocolKafka": 5, - "protocolMongo": 6, - "protocolPostgres": 7, - "protocolAMQP": 8, - "protocolRedis": 9, - "protocolMySQL": 10, - "protocolGRPC": 11, +// Enum value maps for ProtocolType. +var ( + ProtocolType_name = map[int32]string{ + 0: "protocolUnclassified", + 1: "protocolUnknown", + 2: "protocolHTTP", + 3: "protocolHTTP2", + 4: "protocolTLS", + 5: "protocolKafka", + 6: "protocolMongo", + 7: "protocolPostgres", + 8: "protocolAMQP", + 9: "protocolRedis", + 10: "protocolMySQL", + 11: "protocolGRPC", + } + ProtocolType_value = map[string]int32{ + "protocolUnclassified": 0, + "protocolUnknown": 1, + "protocolHTTP": 2, + "protocolHTTP2": 3, + "protocolTLS": 4, + "protocolKafka": 5, + "protocolMongo": 6, + "protocolPostgres": 7, + "protocolAMQP": 8, + "protocolRedis": 9, + "protocolMySQL": 10, + "protocolGRPC": 11, + } +) + +func (x ProtocolType) Enum() *ProtocolType { + p := new(ProtocolType) + *p = x + return p } func (x ProtocolType) String() string { - return proto.EnumName(ProtocolType_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ProtocolType) Descriptor() protoreflect.EnumDescriptor { + return file_proto_process_connections_proto_enumTypes[6].Descriptor() +} + +func (ProtocolType) Type() protoreflect.EnumType { + return &file_proto_process_connections_proto_enumTypes[6] +} + +func (x ProtocolType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ProtocolType.Descriptor instead. +func (ProtocolType) EnumDescriptor() ([]byte, []int) { + return file_proto_process_connections_proto_rawDescGZIP(), []int{6} } -func (ProtocolType) EnumDescriptor() ([]byte, []int) { return fileDescriptorConnections, []int{6} } type CollectorConnections struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + HostName string `protobuf:"bytes,2,opt,name=hostName,proto3" json:"hostName,omitempty"` NetworkId string `protobuf:"bytes,12,opt,name=networkId,proto3" json:"networkId,omitempty"` - Connections []*Connection `protobuf:"bytes,3,rep,name=connections" json:"connections,omitempty"` + Connections []*Connection `protobuf:"bytes,3,rep,name=connections,proto3" json:"connections,omitempty"` // Message batching metadata GroupId int32 `protobuf:"varint,5,opt,name=groupId,proto3" json:"groupId,omitempty"` GroupSize int32 `protobuf:"varint,6,opt,name=groupSize,proto3" json:"groupSize,omitempty"` // Mapping of resourceID to metadata. For containers, each `connection` has a containerId field which can be mapped here. - ResolvedResources map[string]*ResourceMetadata `protobuf:"bytes,8,rep,name=resolvedResources" json:"resolvedResources,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value"` + ResolvedResources map[string]*ResourceMetadata `protobuf:"bytes,8,rep,name=resolvedResources,proto3" json:"resolvedResources,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // Post-resolution field // Mapping of processes running in each container - ContainerForPid map[int32]string `protobuf:"bytes,10,rep,name=containerForPid" json:"containerForPid,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + ContainerForPid map[int32]string `protobuf:"bytes,10,rep,name=containerForPid,proto3" json:"containerForPid,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // encoded bytes here are use to store a tags []string // the tags encoder is more space efficient than protobuf EncodedTags []byte `protobuf:"bytes,11,opt,name=encodedTags,proto3" json:"encodedTags,omitempty"` @@ -302,28 +478,28 @@ type CollectorConnections struct { EncodedConnectionsTags []byte `protobuf:"bytes,38,opt,name=encodedConnectionsTags,proto3" json:"encodedConnectionsTags,omitempty"` ContainerHostType ContainerHostType `protobuf:"varint,15,opt,name=containerHostType,proto3,enum=datadog.process_agent.ContainerHostType" json:"containerHostType,omitempty"` // For now, we'll keep emitting telemetry from agents < 7.35 - ConnTelemetry *CollectorConnectionsTelemetry `protobuf:"bytes,16,opt,name=connTelemetry" json:"connTelemetry,omitempty"` - ConnTelemetryMap map[string]int64 `protobuf:"bytes,39,rep,name=connTelemetryMap" json:"connTelemetryMap,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` + ConnTelemetry *CollectorConnectionsTelemetry `protobuf:"bytes,16,opt,name=connTelemetry,proto3" json:"connTelemetry,omitempty"` + ConnTelemetryMap map[string]int64 `protobuf:"bytes,39,rep,name=connTelemetryMap,proto3" json:"connTelemetryMap,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` // OS Telemetry Architecture string `protobuf:"bytes,17,opt,name=architecture,proto3" json:"architecture,omitempty"` KernelVersion string `protobuf:"bytes,18,opt,name=kernelVersion,proto3" json:"kernelVersion,omitempty"` Platform string `protobuf:"bytes,19,opt,name=platform,proto3" json:"platform,omitempty"` PlatformVersion string `protobuf:"bytes,20,opt,name=platformVersion,proto3" json:"platformVersion,omitempty"` // Runtime compilation telemetry - CompilationTelemetryByAsset map[string]*RuntimeCompilationTelemetry `protobuf:"bytes,21,rep,name=compilationTelemetryByAsset" json:"compilationTelemetryByAsset,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value"` + CompilationTelemetryByAsset map[string]*RuntimeCompilationTelemetry `protobuf:"bytes,21,rep,name=compilationTelemetryByAsset,proto3" json:"compilationTelemetryByAsset,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` KernelHeaderFetchResult KernelHeaderFetchResult `protobuf:"varint,41,opt,name=kernelHeaderFetchResult,proto3,enum=datadog.process_agent.KernelHeaderFetchResult" json:"kernelHeaderFetchResult,omitempty"` // CO-RE telemetry - CORETelemetryByAsset map[string]COREResult `protobuf:"bytes,42,rep,name=CORETelemetryByAsset" json:"CORETelemetryByAsset,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3,enum=datadog.process_agent.COREResult"` + CORETelemetryByAsset map[string]COREResult `protobuf:"bytes,42,rep,name=CORETelemetryByAsset,proto3" json:"CORETelemetryByAsset,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3,enum=datadog.process_agent.COREResult"` // Prebuilt EBPF assets in use - PrebuiltEBPFAssets []string `protobuf:"bytes,44,rep,name=PrebuiltEBPFAssets" json:"PrebuiltEBPFAssets,omitempty"` - Routes []*Route `protobuf:"bytes,31,rep,name=routes" json:"routes,omitempty"` - RouteMetadata []*RouteMetadata `protobuf:"bytes,34,rep,name=routeMetadata" json:"routeMetadata,omitempty"` - AgentConfiguration *AgentConfiguration `protobuf:"bytes,35,opt,name=agentConfiguration" json:"agentConfiguration,omitempty"` + PrebuiltEBPFAssets []string `protobuf:"bytes,44,rep,name=PrebuiltEBPFAssets,proto3" json:"PrebuiltEBPFAssets,omitempty"` + Routes []*Route `protobuf:"bytes,31,rep,name=routes,proto3" json:"routes,omitempty"` + RouteMetadata []*RouteMetadata `protobuf:"bytes,34,rep,name=routeMetadata,proto3" json:"routeMetadata,omitempty"` + AgentConfiguration *AgentConfiguration `protobuf:"bytes,35,opt,name=agentConfiguration,proto3" json:"agentConfiguration,omitempty"` // encoded dns is a map of (string) ip-> list of domains (DNSEntry) EncodedDNS []byte `protobuf:"bytes,14,opt,name=encodedDNS,proto3" json:"encodedDNS,omitempty"` // All queried DNS domains for which we have collected stats - Domains []string `protobuf:"bytes,30,rep,name=domains" json:"domains,omitempty"` - // //////////////// + Domains []string `protobuf:"bytes,30,rep,name=domains,proto3" json:"domains,omitempty"` + ////////////////// // V2 encodings // all domain strings are now indexes into a single array of strings // hostname query information. Encoded via V2DNSEncoder.EncodeDomainDatabase @@ -333,172 +509,381 @@ type CollectorConnections struct { // of the IP --> DNSDatabaseEntry message. (was encodedDNS). Encoded // via V2DNSEncoder.EncodeMapped. Full buffer description provided there. EncodedDnsLookups []byte `protobuf:"bytes,37,opt,name=encodedDnsLookups,proto3" json:"encodedDnsLookups,omitempty"` - ResolvedHostsByName map[string]*Host `protobuf:"bytes,40,rep,name=resolvedHostsByName" json:"resolvedHostsByName,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value"` + ResolvedHostsByName map[string]*Host `protobuf:"bytes,40,rep,name=resolvedHostsByName,proto3" json:"resolvedHostsByName,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // Post-resolution field +} + +func (x *CollectorConnections) Reset() { + *x = CollectorConnections{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_connections_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CollectorConnections) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CollectorConnections) ProtoMessage() {} + +func (x *CollectorConnections) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_connections_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CollectorConnections.ProtoReflect.Descriptor instead. +func (*CollectorConnections) Descriptor() ([]byte, []int) { + return file_proto_process_connections_proto_rawDescGZIP(), []int{0} +} + +func (x *CollectorConnections) GetHostName() string { + if x != nil { + return x.HostName + } + return "" +} + +func (x *CollectorConnections) GetNetworkId() string { + if x != nil { + return x.NetworkId + } + return "" +} + +func (x *CollectorConnections) GetConnections() []*Connection { + if x != nil { + return x.Connections + } + return nil +} + +func (x *CollectorConnections) GetGroupId() int32 { + if x != nil { + return x.GroupId + } + return 0 +} + +func (x *CollectorConnections) GetGroupSize() int32 { + if x != nil { + return x.GroupSize + } + return 0 +} + +func (x *CollectorConnections) GetResolvedResources() map[string]*ResourceMetadata { + if x != nil { + return x.ResolvedResources + } + return nil +} + +func (x *CollectorConnections) GetContainerForPid() map[int32]string { + if x != nil { + return x.ContainerForPid + } + return nil +} + +func (x *CollectorConnections) GetEncodedTags() []byte { + if x != nil { + return x.EncodedTags + } + return nil +} + +func (x *CollectorConnections) GetEncodedConnectionsTags() []byte { + if x != nil { + return x.EncodedConnectionsTags + } + return nil +} + +func (x *CollectorConnections) GetContainerHostType() ContainerHostType { + if x != nil { + return x.ContainerHostType + } + return ContainerHostType_notSpecified +} + +func (x *CollectorConnections) GetConnTelemetry() *CollectorConnectionsTelemetry { + if x != nil { + return x.ConnTelemetry + } + return nil +} + +func (x *CollectorConnections) GetConnTelemetryMap() map[string]int64 { + if x != nil { + return x.ConnTelemetryMap + } + return nil +} + +func (x *CollectorConnections) GetArchitecture() string { + if x != nil { + return x.Architecture + } + return "" +} + +func (x *CollectorConnections) GetKernelVersion() string { + if x != nil { + return x.KernelVersion + } + return "" +} + +func (x *CollectorConnections) GetPlatform() string { + if x != nil { + return x.Platform + } + return "" } -func (m *CollectorConnections) Reset() { *m = CollectorConnections{} } -func (m *CollectorConnections) String() string { return proto.CompactTextString(m) } -func (*CollectorConnections) ProtoMessage() {} -func (*CollectorConnections) Descriptor() ([]byte, []int) { return fileDescriptorConnections, []int{0} } +func (x *CollectorConnections) GetPlatformVersion() string { + if x != nil { + return x.PlatformVersion + } + return "" +} -func (m *CollectorConnections) GetConnections() []*Connection { - if m != nil { - return m.Connections +func (x *CollectorConnections) GetCompilationTelemetryByAsset() map[string]*RuntimeCompilationTelemetry { + if x != nil { + return x.CompilationTelemetryByAsset } return nil } -func (m *CollectorConnections) GetResolvedResources() map[string]*ResourceMetadata { - if m != nil { - return m.ResolvedResources +func (x *CollectorConnections) GetKernelHeaderFetchResult() KernelHeaderFetchResult { + if x != nil { + return x.KernelHeaderFetchResult + } + return KernelHeaderFetchResult_FetchNotAttempted +} + +func (x *CollectorConnections) GetCORETelemetryByAsset() map[string]COREResult { + if x != nil { + return x.CORETelemetryByAsset } return nil } -func (m *CollectorConnections) GetContainerForPid() map[int32]string { - if m != nil { - return m.ContainerForPid +func (x *CollectorConnections) GetPrebuiltEBPFAssets() []string { + if x != nil { + return x.PrebuiltEBPFAssets } return nil } -func (m *CollectorConnections) GetConnTelemetry() *CollectorConnectionsTelemetry { - if m != nil { - return m.ConnTelemetry +func (x *CollectorConnections) GetRoutes() []*Route { + if x != nil { + return x.Routes } return nil } -func (m *CollectorConnections) GetConnTelemetryMap() map[string]int64 { - if m != nil { - return m.ConnTelemetryMap +func (x *CollectorConnections) GetRouteMetadata() []*RouteMetadata { + if x != nil { + return x.RouteMetadata } return nil } -func (m *CollectorConnections) GetCompilationTelemetryByAsset() map[string]*RuntimeCompilationTelemetry { - if m != nil { - return m.CompilationTelemetryByAsset +func (x *CollectorConnections) GetAgentConfiguration() *AgentConfiguration { + if x != nil { + return x.AgentConfiguration } return nil } -func (m *CollectorConnections) GetCORETelemetryByAsset() map[string]COREResult { - if m != nil { - return m.CORETelemetryByAsset +func (x *CollectorConnections) GetEncodedDNS() []byte { + if x != nil { + return x.EncodedDNS } return nil } -func (m *CollectorConnections) GetRoutes() []*Route { - if m != nil { - return m.Routes +func (x *CollectorConnections) GetDomains() []string { + if x != nil { + return x.Domains } return nil } -func (m *CollectorConnections) GetRouteMetadata() []*RouteMetadata { - if m != nil { - return m.RouteMetadata +func (x *CollectorConnections) GetEncodedDomainDatabase() []byte { + if x != nil { + return x.EncodedDomainDatabase } return nil } -func (m *CollectorConnections) GetAgentConfiguration() *AgentConfiguration { - if m != nil { - return m.AgentConfiguration +func (x *CollectorConnections) GetEncodedDnsLookups() []byte { + if x != nil { + return x.EncodedDnsLookups } return nil } -func (m *CollectorConnections) GetResolvedHostsByName() map[string]*Host { - if m != nil { - return m.ResolvedHostsByName +func (x *CollectorConnections) GetResolvedHostsByName() map[string]*Host { + if x != nil { + return x.ResolvedHostsByName } return nil } type Connections struct { - Conns []*Connection `protobuf:"bytes,1,rep,name=conns" json:"conns,omitempty"` - Dns map[string]*DNSEntry `protobuf:"bytes,2,rep,name=dns" json:"dns,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Conns []*Connection `protobuf:"bytes,1,rep,name=conns,proto3" json:"conns,omitempty"` + Dns map[string]*DNSEntry `protobuf:"bytes,2,rep,name=dns,proto3" json:"dns,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // For now, we'll keep emitting telemetry from agents < 7.35 - ConnTelemetry *ConnectionsTelemetry `protobuf:"bytes,3,opt,name=connTelemetry" json:"connTelemetry,omitempty"` - Domains []string `protobuf:"bytes,4,rep,name=domains" json:"domains,omitempty"` - Routes []*Route `protobuf:"bytes,5,rep,name=routes" json:"routes,omitempty"` - CompilationTelemetryByAsset map[string]*RuntimeCompilationTelemetry `protobuf:"bytes,6,rep,name=compilationTelemetryByAsset" json:"compilationTelemetryByAsset,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value"` - AgentConfiguration *AgentConfiguration `protobuf:"bytes,7,opt,name=agentConfiguration" json:"agentConfiguration,omitempty"` - Tags []string `protobuf:"bytes,8,rep,name=tags" json:"tags,omitempty"` - ConnTelemetryMap map[string]int64 `protobuf:"bytes,9,rep,name=connTelemetryMap" json:"connTelemetryMap,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` + ConnTelemetry *ConnectionsTelemetry `protobuf:"bytes,3,opt,name=connTelemetry,proto3" json:"connTelemetry,omitempty"` + Domains []string `protobuf:"bytes,4,rep,name=domains,proto3" json:"domains,omitempty"` + Routes []*Route `protobuf:"bytes,5,rep,name=routes,proto3" json:"routes,omitempty"` + CompilationTelemetryByAsset map[string]*RuntimeCompilationTelemetry `protobuf:"bytes,6,rep,name=compilationTelemetryByAsset,proto3" json:"compilationTelemetryByAsset,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + AgentConfiguration *AgentConfiguration `protobuf:"bytes,7,opt,name=agentConfiguration,proto3" json:"agentConfiguration,omitempty"` + Tags []string `protobuf:"bytes,8,rep,name=tags,proto3" json:"tags,omitempty"` + ConnTelemetryMap map[string]int64 `protobuf:"bytes,9,rep,name=connTelemetryMap,proto3" json:"connTelemetryMap,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` KernelHeaderFetchResult KernelHeaderFetchResult `protobuf:"varint,10,opt,name=kernelHeaderFetchResult,proto3,enum=datadog.process_agent.KernelHeaderFetchResult" json:"kernelHeaderFetchResult,omitempty"` - CORETelemetryByAsset map[string]COREResult `protobuf:"bytes,11,rep,name=CORETelemetryByAsset" json:"CORETelemetryByAsset,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3,enum=datadog.process_agent.COREResult"` - PrebuiltEBPFAssets []string `protobuf:"bytes,12,rep,name=PrebuiltEBPFAssets" json:"PrebuiltEBPFAssets,omitempty"` + CORETelemetryByAsset map[string]COREResult `protobuf:"bytes,11,rep,name=CORETelemetryByAsset,proto3" json:"CORETelemetryByAsset,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3,enum=datadog.process_agent.COREResult"` + PrebuiltEBPFAssets []string `protobuf:"bytes,12,rep,name=PrebuiltEBPFAssets,proto3" json:"PrebuiltEBPFAssets,omitempty"` } -func (m *Connections) Reset() { *m = Connections{} } -func (m *Connections) String() string { return proto.CompactTextString(m) } -func (*Connections) ProtoMessage() {} -func (*Connections) Descriptor() ([]byte, []int) { return fileDescriptorConnections, []int{1} } +func (x *Connections) Reset() { + *x = Connections{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_connections_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Connections) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Connections) ProtoMessage() {} + +func (x *Connections) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_connections_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Connections.ProtoReflect.Descriptor instead. +func (*Connections) Descriptor() ([]byte, []int) { + return file_proto_process_connections_proto_rawDescGZIP(), []int{1} +} + +func (x *Connections) GetConns() []*Connection { + if x != nil { + return x.Conns + } + return nil +} + +func (x *Connections) GetDns() map[string]*DNSEntry { + if x != nil { + return x.Dns + } + return nil +} + +func (x *Connections) GetConnTelemetry() *ConnectionsTelemetry { + if x != nil { + return x.ConnTelemetry + } + return nil +} -func (m *Connections) GetConns() []*Connection { - if m != nil { - return m.Conns +func (x *Connections) GetDomains() []string { + if x != nil { + return x.Domains } return nil } -func (m *Connections) GetDns() map[string]*DNSEntry { - if m != nil { - return m.Dns +func (x *Connections) GetRoutes() []*Route { + if x != nil { + return x.Routes } return nil } -func (m *Connections) GetConnTelemetry() *ConnectionsTelemetry { - if m != nil { - return m.ConnTelemetry +func (x *Connections) GetCompilationTelemetryByAsset() map[string]*RuntimeCompilationTelemetry { + if x != nil { + return x.CompilationTelemetryByAsset } return nil } -func (m *Connections) GetRoutes() []*Route { - if m != nil { - return m.Routes +func (x *Connections) GetAgentConfiguration() *AgentConfiguration { + if x != nil { + return x.AgentConfiguration } return nil } -func (m *Connections) GetCompilationTelemetryByAsset() map[string]*RuntimeCompilationTelemetry { - if m != nil { - return m.CompilationTelemetryByAsset +func (x *Connections) GetTags() []string { + if x != nil { + return x.Tags } return nil } -func (m *Connections) GetAgentConfiguration() *AgentConfiguration { - if m != nil { - return m.AgentConfiguration +func (x *Connections) GetConnTelemetryMap() map[string]int64 { + if x != nil { + return x.ConnTelemetryMap } return nil } -func (m *Connections) GetConnTelemetryMap() map[string]int64 { - if m != nil { - return m.ConnTelemetryMap +func (x *Connections) GetKernelHeaderFetchResult() KernelHeaderFetchResult { + if x != nil { + return x.KernelHeaderFetchResult + } + return KernelHeaderFetchResult_FetchNotAttempted +} + +func (x *Connections) GetCORETelemetryByAsset() map[string]COREResult { + if x != nil { + return x.CORETelemetryByAsset } return nil } -func (m *Connections) GetCORETelemetryByAsset() map[string]COREResult { - if m != nil { - return m.CORETelemetryByAsset +func (x *Connections) GetPrebuiltEBPFAssets() []string { + if x != nil { + return x.PrebuiltEBPFAssets } return nil } type Connection struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Pid int32 `protobuf:"varint,1,opt,name=pid,proto3" json:"pid,omitempty"` - Laddr *Addr `protobuf:"bytes,5,opt,name=laddr" json:"laddr,omitempty"` - Raddr *Addr `protobuf:"bytes,6,opt,name=raddr" json:"raddr,omitempty"` + Laddr *Addr `protobuf:"bytes,5,opt,name=laddr,proto3" json:"laddr,omitempty"` // Local address + Raddr *Addr `protobuf:"bytes,6,opt,name=raddr,proto3" json:"raddr,omitempty"` // Remote address Family ConnectionFamily `protobuf:"varint,10,opt,name=family,proto3,enum=datadog.process_agent.ConnectionFamily" json:"family,omitempty"` Type ConnectionType `protobuf:"varint,11,opt,name=type,proto3,enum=datadog.process_agent.ConnectionType" json:"type,omitempty"` IsLocalPortEphemeral EphemeralPortState `protobuf:"varint,41,opt,name=isLocalPortEphemeral,proto3,enum=datadog.process_agent.EphemeralPortState" json:"isLocalPortEphemeral,omitempty"` @@ -509,13 +894,13 @@ type Connection struct { Direction ConnectionDirection `protobuf:"varint,19,opt,name=direction,proto3,enum=datadog.process_agent.ConnectionDirection" json:"direction,omitempty"` LastPacketsSent uint64 `protobuf:"varint,38,opt,name=lastPacketsSent,proto3" json:"lastPacketsSent,omitempty"` LastPacketsReceived uint64 `protobuf:"varint,39,opt,name=lastPacketsReceived,proto3" json:"lastPacketsReceived,omitempty"` - Protocol *ProtocolStack `protobuf:"bytes,48,opt,name=protocol" json:"protocol,omitempty"` + Protocol *ProtocolStack `protobuf:"bytes,48,opt,name=protocol,proto3" json:"protocol,omitempty"` // Network namespace NetNS uint32 `protobuf:"varint,20,opt,name=netNS,proto3" json:"netNS,omitempty"` // NetworkID of the remote address (post-resolution field) RemoteNetworkId string `protobuf:"bytes,32,opt,name=remoteNetworkId,proto3" json:"remoteNetworkId,omitempty"` // the conntrack entry associated with the connection. May be null on systems which don't support querying conntrack. - IpTranslation *IPTranslation `protobuf:"bytes,21,opt,name=ipTranslation" json:"ipTranslation,omitempty"` + IpTranslation *IPTranslation `protobuf:"bytes,21,opt,name=ipTranslation,proto3" json:"ipTranslation,omitempty"` // TCP-specific metrics Rtt uint32 `protobuf:"varint,22,opt,name=rtt,proto3" json:"rtt,omitempty"` RttVar uint32 `protobuf:"varint,23,opt,name=rttVar,proto3" json:"rttVar,omitempty"` @@ -527,24 +912,24 @@ type Connection struct { DnsTimeouts uint32 `protobuf:"varint,27,opt,name=dnsTimeouts,proto3" json:"dnsTimeouts,omitempty"` DnsSuccessLatencySum uint64 `protobuf:"varint,28,opt,name=dnsSuccessLatencySum,proto3" json:"dnsSuccessLatencySum,omitempty"` DnsFailureLatencySum uint64 `protobuf:"varint,29,opt,name=dnsFailureLatencySum,proto3" json:"dnsFailureLatencySum,omitempty"` - DnsCountByRcode map[uint32]uint32 `protobuf:"bytes,33,rep,name=dnsCountByRcode" json:"dnsCountByRcode,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` + DnsCountByRcode map[uint32]uint32 `protobuf:"bytes,33,rep,name=dnsCountByRcode,proto3" json:"dnsCountByRcode,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` // TCP state transition counters relative to last check LastTcpEstablished uint32 `protobuf:"varint,30,opt,name=lastTcpEstablished,proto3" json:"lastTcpEstablished,omitempty"` LastTcpClosed uint32 `protobuf:"varint,31,opt,name=lastTcpClosed,proto3" json:"lastTcpClosed,omitempty"` // dns stats based on domain queried, the key corresponds to an index into the `domains` field // dnsStatsByDomain is deprecated field, left in for handling old agent versions - DnsStatsByDomain map[int32]*DNSStats `protobuf:"bytes,34,rep,name=dnsStatsByDomain" json:"dnsStatsByDomain,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value"` + DnsStatsByDomain map[int32]*DNSStats `protobuf:"bytes,34,rep,name=dnsStatsByDomain,proto3" json:"dnsStatsByDomain,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // dnsStatsByDomainByQueryType is new field - DnsStatsByDomainByQueryType map[int32]*DNSStatsByQueryType `protobuf:"bytes,42,rep,name=dnsStatsByDomainByQueryType" json:"dnsStatsByDomainByQueryType,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value"` + DnsStatsByDomainByQueryType map[int32]*DNSStatsByQueryType `protobuf:"bytes,42,rep,name=dnsStatsByDomainByQueryType,proto3" json:"dnsStatsByDomainByQueryType,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // int32 index into map is the offset into the CollectorConnections.encodedDomainDatabase - DnsStatsByDomainOffsetByQueryType map[int32]*DNSStatsByQueryType `protobuf:"bytes,43,rep,name=dnsStatsByDomainOffsetByQueryType" json:"dnsStatsByDomainOffsetByQueryType,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value"` + DnsStatsByDomainOffsetByQueryType map[int32]*DNSStatsByQueryType `protobuf:"bytes,43,rep,name=dnsStatsByDomainOffsetByQueryType,proto3" json:"dnsStatsByDomainOffsetByQueryType,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` RouteIdx int32 `protobuf:"varint,36,opt,name=routeIdx,proto3" json:"routeIdx,omitempty"` // the index of the resolved target of the route (post-resolution field) RouteTargetIdx int32 `protobuf:"varint,40,opt,name=routeTargetIdx,proto3" json:"routeTargetIdx,omitempty"` // serialized HTTPAggregations object summarizing all http transactions recorded for this connection, organized by request path HttpAggregations []byte `protobuf:"bytes,37,opt,name=httpAggregations,proto3" json:"httpAggregations,omitempty"` // The stored values corresponds to an index into the `Connections.tags` field - Tags []uint32 `protobuf:"varint,44,rep,name=tags" json:"tags,omitempty"` + Tags []uint32 `protobuf:"varint,44,rep,packed,name=tags,proto3" json:"tags,omitempty"` // the tags index of encodedConnectionsTags (from process.tagsV2.Encode()) TagsIdx int32 `protobuf:"varint,45,opt,name=tagsIdx,proto3" json:"tagsIdx,omitempty"` // a checksum of all the tags in this connection. Populated by the agent, but used by the backend to know when tags have changed for a connection. @@ -557,8330 +942,2331 @@ type Connection struct { Http2Aggregations []byte `protobuf:"bytes,50,opt,name=http2Aggregations,proto3" json:"http2Aggregations,omitempty"` } -func (m *Connection) Reset() { *m = Connection{} } -func (m *Connection) String() string { return proto.CompactTextString(m) } -func (*Connection) ProtoMessage() {} -func (*Connection) Descriptor() ([]byte, []int) { return fileDescriptorConnections, []int{2} } - -func (m *Connection) GetLaddr() *Addr { - if m != nil { - return m.Laddr +func (x *Connection) Reset() { + *x = Connection{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_connections_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -func (m *Connection) GetRaddr() *Addr { - if m != nil { - return m.Raddr - } - return nil +func (x *Connection) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Connection) GetProtocol() *ProtocolStack { - if m != nil { - return m.Protocol +func (*Connection) ProtoMessage() {} + +func (x *Connection) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_connections_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -func (m *Connection) GetIpTranslation() *IPTranslation { - if m != nil { - return m.IpTranslation - } - return nil +// Deprecated: Use Connection.ProtoReflect.Descriptor instead. +func (*Connection) Descriptor() ([]byte, []int) { + return file_proto_process_connections_proto_rawDescGZIP(), []int{2} } -func (m *Connection) GetDnsCountByRcode() map[uint32]uint32 { - if m != nil { - return m.DnsCountByRcode +func (x *Connection) GetPid() int32 { + if x != nil { + return x.Pid } - return nil + return 0 } -func (m *Connection) GetDnsStatsByDomain() map[int32]*DNSStats { - if m != nil { - return m.DnsStatsByDomain +func (x *Connection) GetLaddr() *Addr { + if x != nil { + return x.Laddr } return nil } -func (m *Connection) GetDnsStatsByDomainByQueryType() map[int32]*DNSStatsByQueryType { - if m != nil { - return m.DnsStatsByDomainByQueryType +func (x *Connection) GetRaddr() *Addr { + if x != nil { + return x.Raddr } return nil } -func (m *Connection) GetDnsStatsByDomainOffsetByQueryType() map[int32]*DNSStatsByQueryType { - if m != nil { - return m.DnsStatsByDomainOffsetByQueryType +func (x *Connection) GetFamily() ConnectionFamily { + if x != nil { + return x.Family } - return nil + return ConnectionFamily_v4 } -// ResourceMetadata only holds enough information to identify a resource in connection data -type ResourceMetadata struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Key uint32 `protobuf:"varint,2,opt,name=key,proto3" json:"key,omitempty"` - ByteKey []byte `protobuf:"bytes,3,opt,name=byteKey,proto3" json:"byteKey,omitempty"` - Tags []string `protobuf:"bytes,4,rep,name=tags" json:"tags,omitempty"` - TagIndex int32 `protobuf:"varint,5,opt,name=tagIndex,proto3" json:"tagIndex,omitempty"` - TagsModified int64 `protobuf:"varint,6,opt,name=tagsModified,proto3" json:"tagsModified,omitempty"` +func (x *Connection) GetType() ConnectionType { + if x != nil { + return x.Type + } + return ConnectionType_tcp } -func (m *ResourceMetadata) Reset() { *m = ResourceMetadata{} } -func (m *ResourceMetadata) String() string { return proto.CompactTextString(m) } -func (*ResourceMetadata) ProtoMessage() {} -func (*ResourceMetadata) Descriptor() ([]byte, []int) { return fileDescriptorConnections, []int{3} } - -type ConnectionsTelemetry struct { - MonotonicKprobesTriggered int64 `protobuf:"varint,1,opt,name=monotonicKprobesTriggered,proto3" json:"monotonicKprobesTriggered,omitempty"` - MonotonicKprobesMissed int64 `protobuf:"varint,2,opt,name=monotonicKprobesMissed,proto3" json:"monotonicKprobesMissed,omitempty"` - MonotonicConntrackRegisters int64 `protobuf:"varint,3,opt,name=monotonicConntrackRegisters,proto3" json:"monotonicConntrackRegisters,omitempty"` - MonotonicConntrackRegistersDropped int64 `protobuf:"varint,4,opt,name=monotonicConntrackRegistersDropped,proto3" json:"monotonicConntrackRegistersDropped,omitempty"` - MonotonicDnsPacketsProcessed int64 `protobuf:"varint,5,opt,name=monotonicDnsPacketsProcessed,proto3" json:"monotonicDnsPacketsProcessed,omitempty"` - MonotonicConnsClosed int64 `protobuf:"varint,6,opt,name=monotonicConnsClosed,proto3" json:"monotonicConnsClosed,omitempty"` - ConnsBpfMapSize int64 `protobuf:"varint,7,opt,name=connsBpfMapSize,proto3" json:"connsBpfMapSize,omitempty"` - MonotonicUdpSendsProcessed int64 `protobuf:"varint,8,opt,name=monotonicUdpSendsProcessed,proto3" json:"monotonicUdpSendsProcessed,omitempty"` - MonotonicUdpSendsMissed int64 `protobuf:"varint,9,opt,name=monotonicUdpSendsMissed,proto3" json:"monotonicUdpSendsMissed,omitempty"` - ConntrackSamplingPercent int64 `protobuf:"varint,10,opt,name=conntrackSamplingPercent,proto3" json:"conntrackSamplingPercent,omitempty"` - DnsStatsDropped int64 `protobuf:"varint,11,opt,name=dnsStatsDropped,proto3" json:"dnsStatsDropped,omitempty"` +func (x *Connection) GetIsLocalPortEphemeral() EphemeralPortState { + if x != nil { + return x.IsLocalPortEphemeral + } + return EphemeralPortState_ephemeralUnspecified } -func (m *ConnectionsTelemetry) Reset() { *m = ConnectionsTelemetry{} } -func (m *ConnectionsTelemetry) String() string { return proto.CompactTextString(m) } -func (*ConnectionsTelemetry) ProtoMessage() {} -func (*ConnectionsTelemetry) Descriptor() ([]byte, []int) { return fileDescriptorConnections, []int{4} } - -type CollectorConnectionsTelemetry struct { - KprobesTriggered int64 `protobuf:"varint,1,opt,name=kprobesTriggered,proto3" json:"kprobesTriggered,omitempty"` - KprobesMissed int64 `protobuf:"varint,2,opt,name=kprobesMissed,proto3" json:"kprobesMissed,omitempty"` - ConntrackRegisters int64 `protobuf:"varint,3,opt,name=conntrackRegisters,proto3" json:"conntrackRegisters,omitempty"` - ConntrackRegistersDropped int64 `protobuf:"varint,4,opt,name=conntrackRegistersDropped,proto3" json:"conntrackRegistersDropped,omitempty"` - DnsPacketsProcessed int64 `protobuf:"varint,5,opt,name=dnsPacketsProcessed,proto3" json:"dnsPacketsProcessed,omitempty"` - ConnsClosed int64 `protobuf:"varint,6,opt,name=connsClosed,proto3" json:"connsClosed,omitempty"` - ConnsBpfMapSize int64 `protobuf:"varint,7,opt,name=connsBpfMapSize,proto3" json:"connsBpfMapSize,omitempty"` - UdpSendsProcessed int64 `protobuf:"varint,8,opt,name=udpSendsProcessed,proto3" json:"udpSendsProcessed,omitempty"` - UdpSendsMissed int64 `protobuf:"varint,9,opt,name=udpSendsMissed,proto3" json:"udpSendsMissed,omitempty"` - ConntrackSamplingPercent int64 `protobuf:"varint,10,opt,name=conntrackSamplingPercent,proto3" json:"conntrackSamplingPercent,omitempty"` - DnsStatsDropped int64 `protobuf:"varint,11,opt,name=dnsStatsDropped,proto3" json:"dnsStatsDropped,omitempty"` +func (x *Connection) GetLastBytesSent() uint64 { + if x != nil { + return x.LastBytesSent + } + return 0 } -func (m *CollectorConnectionsTelemetry) Reset() { *m = CollectorConnectionsTelemetry{} } -func (m *CollectorConnectionsTelemetry) String() string { return proto.CompactTextString(m) } -func (*CollectorConnectionsTelemetry) ProtoMessage() {} -func (*CollectorConnectionsTelemetry) Descriptor() ([]byte, []int) { - return fileDescriptorConnections, []int{5} +func (x *Connection) GetLastBytesReceived() uint64 { + if x != nil { + return x.LastBytesReceived + } + return 0 } -type RuntimeCompilationTelemetry struct { - RuntimeCompilationEnabled bool `protobuf:"varint,1,opt,name=runtimeCompilationEnabled,proto3" json:"runtimeCompilationEnabled,omitempty"` - RuntimeCompilationResult RuntimeCompilationResult `protobuf:"varint,2,opt,name=runtimeCompilationResult,proto3,enum=datadog.process_agent.RuntimeCompilationResult" json:"runtimeCompilationResult,omitempty"` - RuntimeCompilationDuration int64 `protobuf:"varint,3,opt,name=runtimeCompilationDuration,proto3" json:"runtimeCompilationDuration,omitempty"` - // Field below was deprecated in agent 7.41 - KernelHeaderFetchResult KernelHeaderFetchResult `protobuf:"varint,4,opt,name=kernelHeaderFetchResult,proto3,enum=datadog.process_agent.KernelHeaderFetchResult" json:"kernelHeaderFetchResult,omitempty"` +func (x *Connection) GetLastRetransmits() uint32 { + if x != nil { + return x.LastRetransmits + } + return 0 } -func (m *RuntimeCompilationTelemetry) Reset() { *m = RuntimeCompilationTelemetry{} } -func (m *RuntimeCompilationTelemetry) String() string { return proto.CompactTextString(m) } -func (*RuntimeCompilationTelemetry) ProtoMessage() {} -func (*RuntimeCompilationTelemetry) Descriptor() ([]byte, []int) { - return fileDescriptorConnections, []int{6} +func (x *Connection) GetDirection() ConnectionDirection { + if x != nil { + return x.Direction + } + return ConnectionDirection_unspecified } -type AgentConfiguration struct { - NpmEnabled bool `protobuf:"varint,1,opt,name=npmEnabled,proto3" json:"npmEnabled,omitempty"` - UsmEnabled bool `protobuf:"varint,2,opt,name=usmEnabled,proto3" json:"usmEnabled,omitempty"` - DsmEnabled bool `protobuf:"varint,3,opt,name=dsmEnabled,proto3" json:"dsmEnabled,omitempty"` +func (x *Connection) GetLastPacketsSent() uint64 { + if x != nil { + return x.LastPacketsSent + } + return 0 } -func (m *AgentConfiguration) Reset() { *m = AgentConfiguration{} } -func (m *AgentConfiguration) String() string { return proto.CompactTextString(m) } -func (*AgentConfiguration) ProtoMessage() {} -func (*AgentConfiguration) Descriptor() ([]byte, []int) { return fileDescriptorConnections, []int{7} } - -type Route struct { - Subnet *Subnet `protobuf:"bytes,1,opt,name=subnet" json:"subnet,omitempty"` +func (x *Connection) GetLastPacketsReceived() uint64 { + if x != nil { + return x.LastPacketsReceived + } + return 0 } -func (m *Route) Reset() { *m = Route{} } -func (m *Route) String() string { return proto.CompactTextString(m) } -func (*Route) ProtoMessage() {} -func (*Route) Descriptor() ([]byte, []int) { return fileDescriptorConnections, []int{8} } - -func (m *Route) GetSubnet() *Subnet { - if m != nil { - return m.Subnet +func (x *Connection) GetProtocol() *ProtocolStack { + if x != nil { + return x.Protocol } return nil } -type Subnet struct { - Alias string `protobuf:"bytes,1,opt,name=alias,proto3" json:"alias,omitempty"` +func (x *Connection) GetNetNS() uint32 { + if x != nil { + return x.NetNS + } + return 0 } -func (m *Subnet) Reset() { *m = Subnet{} } -func (m *Subnet) String() string { return proto.CompactTextString(m) } -func (*Subnet) ProtoMessage() {} -func (*Subnet) Descriptor() ([]byte, []int) { return fileDescriptorConnections, []int{9} } +func (x *Connection) GetRemoteNetworkId() string { + if x != nil { + return x.RemoteNetworkId + } + return "" +} -type RouteMetadata struct { - Alias string `protobuf:"bytes,1,opt,name=alias,proto3" json:"alias,omitempty"` - TagIndex int32 `protobuf:"varint,2,opt,name=tagIndex,proto3" json:"tagIndex,omitempty"` - TagsModified int64 `protobuf:"varint,3,opt,name=tagsModified,proto3" json:"tagsModified,omitempty"` - Tags []string `protobuf:"bytes,4,rep,name=tags" json:"tags,omitempty"` +func (x *Connection) GetIpTranslation() *IPTranslation { + if x != nil { + return x.IpTranslation + } + return nil } -func (m *RouteMetadata) Reset() { *m = RouteMetadata{} } -func (m *RouteMetadata) String() string { return proto.CompactTextString(m) } -func (*RouteMetadata) ProtoMessage() {} -func (*RouteMetadata) Descriptor() ([]byte, []int) { return fileDescriptorConnections, []int{10} } +func (x *Connection) GetRtt() uint32 { + if x != nil { + return x.Rtt + } + return 0 +} -type IPTranslation struct { - ReplSrcIP string `protobuf:"bytes,1,opt,name=replSrcIP,proto3" json:"replSrcIP,omitempty"` - ReplDstIP string `protobuf:"bytes,2,opt,name=replDstIP,proto3" json:"replDstIP,omitempty"` - ReplSrcPort int32 `protobuf:"varint,3,opt,name=replSrcPort,proto3" json:"replSrcPort,omitempty"` - ReplDstPort int32 `protobuf:"varint,4,opt,name=replDstPort,proto3" json:"replDstPort,omitempty"` +func (x *Connection) GetRttVar() uint32 { + if x != nil { + return x.RttVar + } + return 0 } -func (m *IPTranslation) Reset() { *m = IPTranslation{} } -func (m *IPTranslation) String() string { return proto.CompactTextString(m) } -func (*IPTranslation) ProtoMessage() {} -func (*IPTranslation) Descriptor() ([]byte, []int) { return fileDescriptorConnections, []int{11} } +func (x *Connection) GetIntraHost() bool { + if x != nil { + return x.IntraHost + } + return false +} -type Addr struct { - Ip string `protobuf:"bytes,2,opt,name=ip,proto3" json:"ip,omitempty"` - Port int32 `protobuf:"varint,3,opt,name=port,proto3" json:"port,omitempty"` - ContainerId string `protobuf:"bytes,5,opt,name=containerId,proto3" json:"containerId,omitempty"` - HostName string `protobuf:"bytes,7,opt,name=hostName,proto3" json:"hostName,omitempty"` +func (x *Connection) GetDnsSuccessfulResponses() uint32 { + if x != nil { + return x.DnsSuccessfulResponses + } + return 0 } -func (m *Addr) Reset() { *m = Addr{} } -func (m *Addr) String() string { return proto.CompactTextString(m) } -func (*Addr) ProtoMessage() {} -func (*Addr) Descriptor() ([]byte, []int) { return fileDescriptorConnections, []int{12} } +func (x *Connection) GetDnsFailedResponses() uint32 { + if x != nil { + return x.DnsFailedResponses + } + return 0 +} -type ProtocolStack struct { - Stack []ProtocolType `protobuf:"varint,1,rep,name=stack,enum=datadog.process_agent.ProtocolType" json:"stack,omitempty"` +func (x *Connection) GetDnsTimeouts() uint32 { + if x != nil { + return x.DnsTimeouts + } + return 0 } -func (m *ProtocolStack) Reset() { *m = ProtocolStack{} } -func (m *ProtocolStack) String() string { return proto.CompactTextString(m) } -func (*ProtocolStack) ProtoMessage() {} -func (*ProtocolStack) Descriptor() ([]byte, []int) { return fileDescriptorConnections, []int{13} } +func (x *Connection) GetDnsSuccessLatencySum() uint64 { + if x != nil { + return x.DnsSuccessLatencySum + } + return 0 +} -type DNSEntry struct { - Names []string `protobuf:"bytes,1,rep,name=names" json:"names,omitempty"` +func (x *Connection) GetDnsFailureLatencySum() uint64 { + if x != nil { + return x.DnsFailureLatencySum + } + return 0 } -func (m *DNSEntry) Reset() { *m = DNSEntry{} } -func (m *DNSEntry) String() string { return proto.CompactTextString(m) } -func (*DNSEntry) ProtoMessage() {} -func (*DNSEntry) Descriptor() ([]byte, []int) { return fileDescriptorConnections, []int{14} } +func (x *Connection) GetDnsCountByRcode() map[uint32]uint32 { + if x != nil { + return x.DnsCountByRcode + } + return nil +} -type DNSStats struct { - DnsTimeouts uint32 `protobuf:"varint,1,opt,name=dnsTimeouts,proto3" json:"dnsTimeouts,omitempty"` - DnsSuccessLatencySum uint64 `protobuf:"varint,2,opt,name=dnsSuccessLatencySum,proto3" json:"dnsSuccessLatencySum,omitempty"` - DnsFailureLatencySum uint64 `protobuf:"varint,3,opt,name=dnsFailureLatencySum,proto3" json:"dnsFailureLatencySum,omitempty"` - DnsCountByRcode map[uint32]uint32 `protobuf:"bytes,4,rep,name=dnsCountByRcode" json:"dnsCountByRcode,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` +func (x *Connection) GetLastTcpEstablished() uint32 { + if x != nil { + return x.LastTcpEstablished + } + return 0 } -func (m *DNSStats) Reset() { *m = DNSStats{} } -func (m *DNSStats) String() string { return proto.CompactTextString(m) } -func (*DNSStats) ProtoMessage() {} -func (*DNSStats) Descriptor() ([]byte, []int) { return fileDescriptorConnections, []int{15} } +func (x *Connection) GetLastTcpClosed() uint32 { + if x != nil { + return x.LastTcpClosed + } + return 0 +} -func (m *DNSStats) GetDnsCountByRcode() map[uint32]uint32 { - if m != nil { - return m.DnsCountByRcode +func (x *Connection) GetDnsStatsByDomain() map[int32]*DNSStats { + if x != nil { + return x.DnsStatsByDomain } return nil } -type DNSStatsByQueryType struct { - DnsStatsByQueryType map[int32]*DNSStats `protobuf:"bytes,1,rep,name=dnsStatsByQueryType" json:"dnsStatsByQueryType,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value"` +func (x *Connection) GetDnsStatsByDomainByQueryType() map[int32]*DNSStatsByQueryType { + if x != nil { + return x.DnsStatsByDomainByQueryType + } + return nil } -func (m *DNSStatsByQueryType) Reset() { *m = DNSStatsByQueryType{} } -func (m *DNSStatsByQueryType) String() string { return proto.CompactTextString(m) } -func (*DNSStatsByQueryType) ProtoMessage() {} -func (*DNSStatsByQueryType) Descriptor() ([]byte, []int) { return fileDescriptorConnections, []int{16} } - -func (m *DNSStatsByQueryType) GetDnsStatsByQueryType() map[int32]*DNSStats { - if m != nil { - return m.DnsStatsByQueryType +func (x *Connection) GetDnsStatsByDomainOffsetByQueryType() map[int32]*DNSStatsByQueryType { + if x != nil { + return x.DnsStatsByDomainOffsetByQueryType } return nil } -func init() { - proto.RegisterType((*CollectorConnections)(nil), "datadog.process_agent.CollectorConnections") - proto.RegisterType((*Connections)(nil), "datadog.process_agent.Connections") - proto.RegisterType((*Connection)(nil), "datadog.process_agent.Connection") - proto.RegisterType((*ResourceMetadata)(nil), "datadog.process_agent.ResourceMetadata") - proto.RegisterType((*ConnectionsTelemetry)(nil), "datadog.process_agent.ConnectionsTelemetry") - proto.RegisterType((*CollectorConnectionsTelemetry)(nil), "datadog.process_agent.CollectorConnectionsTelemetry") - proto.RegisterType((*RuntimeCompilationTelemetry)(nil), "datadog.process_agent.RuntimeCompilationTelemetry") - proto.RegisterType((*AgentConfiguration)(nil), "datadog.process_agent.AgentConfiguration") - proto.RegisterType((*Route)(nil), "datadog.process_agent.Route") - proto.RegisterType((*Subnet)(nil), "datadog.process_agent.Subnet") - proto.RegisterType((*RouteMetadata)(nil), "datadog.process_agent.RouteMetadata") - proto.RegisterType((*IPTranslation)(nil), "datadog.process_agent.IPTranslation") - proto.RegisterType((*Addr)(nil), "datadog.process_agent.Addr") - proto.RegisterType((*ProtocolStack)(nil), "datadog.process_agent.ProtocolStack") - proto.RegisterType((*DNSEntry)(nil), "datadog.process_agent.DNSEntry") - proto.RegisterType((*DNSStats)(nil), "datadog.process_agent.DNSStats") - proto.RegisterType((*DNSStatsByQueryType)(nil), "datadog.process_agent.DNSStatsByQueryType") - proto.RegisterEnum("datadog.process_agent.RuntimeCompilationResult", RuntimeCompilationResult_name, RuntimeCompilationResult_value) - proto.RegisterEnum("datadog.process_agent.KernelHeaderFetchResult", KernelHeaderFetchResult_name, KernelHeaderFetchResult_value) - proto.RegisterEnum("datadog.process_agent.COREResult", COREResult_name, COREResult_value) - proto.RegisterEnum("datadog.process_agent.ConnectionFamily", ConnectionFamily_name, ConnectionFamily_value) - proto.RegisterEnum("datadog.process_agent.ConnectionDirection", ConnectionDirection_name, ConnectionDirection_value) - proto.RegisterEnum("datadog.process_agent.EphemeralPortState", EphemeralPortState_name, EphemeralPortState_value) - proto.RegisterEnum("datadog.process_agent.ProtocolType", ProtocolType_name, ProtocolType_value) -} -func (m *CollectorConnections) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *CollectorConnections) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.HostName) > 0 { - data[i] = 0x12 - i++ - i = encodeVarintConnections(data, i, uint64(len(m.HostName))) - i += copy(data[i:], m.HostName) - } - if len(m.Connections) > 0 { - for _, msg := range m.Connections { - data[i] = 0x1a - i++ - i = encodeVarintConnections(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n - } +func (x *Connection) GetRouteIdx() int32 { + if x != nil { + return x.RouteIdx } - if m.GroupId != 0 { - data[i] = 0x28 - i++ - i = encodeVarintConnections(data, i, uint64(m.GroupId)) - } - if m.GroupSize != 0 { - data[i] = 0x30 - i++ - i = encodeVarintConnections(data, i, uint64(m.GroupSize)) - } - if len(m.ResolvedResources) > 0 { - for k, _ := range m.ResolvedResources { - data[i] = 0x42 - i++ - v := m.ResolvedResources[k] - msgSize := 0 - if v != nil { - msgSize = v.Size() - msgSize += 1 + sovConnections(uint64(msgSize)) - } - mapSize := 1 + len(k) + sovConnections(uint64(len(k))) + msgSize - i = encodeVarintConnections(data, i, uint64(mapSize)) - data[i] = 0xa - i++ - i = encodeVarintConnections(data, i, uint64(len(k))) - i += copy(data[i:], k) - if v != nil { - data[i] = 0x12 - i++ - i = encodeVarintConnections(data, i, uint64(v.Size())) - n1, err := v.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n1 - } - } + return 0 +} + +func (x *Connection) GetRouteTargetIdx() int32 { + if x != nil { + return x.RouteTargetIdx } - if len(m.ContainerForPid) > 0 { - for k, _ := range m.ContainerForPid { - data[i] = 0x52 - i++ - v := m.ContainerForPid[k] - mapSize := 1 + sovConnections(uint64(k)) + 1 + len(v) + sovConnections(uint64(len(v))) - i = encodeVarintConnections(data, i, uint64(mapSize)) - data[i] = 0x8 - i++ - i = encodeVarintConnections(data, i, uint64(k)) - data[i] = 0x12 - i++ - i = encodeVarintConnections(data, i, uint64(len(v))) - i += copy(data[i:], v) - } + return 0 +} + +func (x *Connection) GetHttpAggregations() []byte { + if x != nil { + return x.HttpAggregations } - if len(m.EncodedTags) > 0 { - data[i] = 0x5a - i++ - i = encodeVarintConnections(data, i, uint64(len(m.EncodedTags))) - i += copy(data[i:], m.EncodedTags) - } - if len(m.NetworkId) > 0 { - data[i] = 0x62 - i++ - i = encodeVarintConnections(data, i, uint64(len(m.NetworkId))) - i += copy(data[i:], m.NetworkId) - } - if len(m.EncodedDNS) > 0 { - data[i] = 0x72 - i++ - i = encodeVarintConnections(data, i, uint64(len(m.EncodedDNS))) - i += copy(data[i:], m.EncodedDNS) - } - if m.ContainerHostType != 0 { - data[i] = 0x78 - i++ - i = encodeVarintConnections(data, i, uint64(m.ContainerHostType)) - } - if m.ConnTelemetry != nil { - data[i] = 0x82 - i++ - data[i] = 0x1 - i++ - i = encodeVarintConnections(data, i, uint64(m.ConnTelemetry.Size())) - n2, err := m.ConnTelemetry.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n2 - } - if len(m.Architecture) > 0 { - data[i] = 0x8a - i++ - data[i] = 0x1 - i++ - i = encodeVarintConnections(data, i, uint64(len(m.Architecture))) - i += copy(data[i:], m.Architecture) - } - if len(m.KernelVersion) > 0 { - data[i] = 0x92 - i++ - data[i] = 0x1 - i++ - i = encodeVarintConnections(data, i, uint64(len(m.KernelVersion))) - i += copy(data[i:], m.KernelVersion) - } - if len(m.Platform) > 0 { - data[i] = 0x9a - i++ - data[i] = 0x1 - i++ - i = encodeVarintConnections(data, i, uint64(len(m.Platform))) - i += copy(data[i:], m.Platform) - } - if len(m.PlatformVersion) > 0 { - data[i] = 0xa2 - i++ - data[i] = 0x1 - i++ - i = encodeVarintConnections(data, i, uint64(len(m.PlatformVersion))) - i += copy(data[i:], m.PlatformVersion) - } - if len(m.CompilationTelemetryByAsset) > 0 { - for k, _ := range m.CompilationTelemetryByAsset { - data[i] = 0xaa - i++ - data[i] = 0x1 - i++ - v := m.CompilationTelemetryByAsset[k] - msgSize := 0 - if v != nil { - msgSize = v.Size() - msgSize += 1 + sovConnections(uint64(msgSize)) - } - mapSize := 1 + len(k) + sovConnections(uint64(len(k))) + msgSize - i = encodeVarintConnections(data, i, uint64(mapSize)) - data[i] = 0xa - i++ - i = encodeVarintConnections(data, i, uint64(len(k))) - i += copy(data[i:], k) - if v != nil { - data[i] = 0x12 - i++ - i = encodeVarintConnections(data, i, uint64(v.Size())) - n3, err := v.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n3 - } - } + return nil +} + +func (x *Connection) GetTags() []uint32 { + if x != nil { + return x.Tags } - if len(m.Domains) > 0 { - for _, s := range m.Domains { - data[i] = 0xf2 - i++ - data[i] = 0x1 - i++ - l = len(s) - for l >= 1<<7 { - data[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - data[i] = uint8(l) - i++ - i += copy(data[i:], s) - } + return nil +} + +func (x *Connection) GetTagsIdx() int32 { + if x != nil { + return x.TagsIdx } - if len(m.Routes) > 0 { - for _, msg := range m.Routes { - data[i] = 0xfa - i++ - data[i] = 0x1 - i++ - i = encodeVarintConnections(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n - } + return 0 +} + +func (x *Connection) GetTagsChecksum() uint32 { + if x != nil { + return x.TagsChecksum } - if len(m.RouteMetadata) > 0 { - for _, msg := range m.RouteMetadata { - data[i] = 0x92 - i++ - data[i] = 0x2 - i++ - i = encodeVarintConnections(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n - } + return 0 +} + +func (x *Connection) GetStateIndex() uint32 { + if x != nil { + return x.StateIndex } - if m.AgentConfiguration != nil { - data[i] = 0x9a - i++ - data[i] = 0x2 - i++ - i = encodeVarintConnections(data, i, uint64(m.AgentConfiguration.Size())) - n4, err := m.AgentConfiguration.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n4 - } - if len(m.EncodedDomainDatabase) > 0 { - data[i] = 0xa2 - i++ - data[i] = 0x2 - i++ - i = encodeVarintConnections(data, i, uint64(len(m.EncodedDomainDatabase))) - i += copy(data[i:], m.EncodedDomainDatabase) - } - if len(m.EncodedDnsLookups) > 0 { - data[i] = 0xaa - i++ - data[i] = 0x2 - i++ - i = encodeVarintConnections(data, i, uint64(len(m.EncodedDnsLookups))) - i += copy(data[i:], m.EncodedDnsLookups) - } - if len(m.EncodedConnectionsTags) > 0 { - data[i] = 0xb2 - i++ - data[i] = 0x2 - i++ - i = encodeVarintConnections(data, i, uint64(len(m.EncodedConnectionsTags))) - i += copy(data[i:], m.EncodedConnectionsTags) - } - if len(m.ConnTelemetryMap) > 0 { - for k, _ := range m.ConnTelemetryMap { - data[i] = 0xba - i++ - data[i] = 0x2 - i++ - v := m.ConnTelemetryMap[k] - mapSize := 1 + len(k) + sovConnections(uint64(len(k))) + 1 + sovConnections(uint64(v)) - i = encodeVarintConnections(data, i, uint64(mapSize)) - data[i] = 0xa - i++ - i = encodeVarintConnections(data, i, uint64(len(k))) - i += copy(data[i:], k) - data[i] = 0x10 - i++ - i = encodeVarintConnections(data, i, uint64(v)) - } + return 0 +} + +func (x *Connection) GetDataStreamsAggregations() []byte { + if x != nil { + return x.DataStreamsAggregations } - if len(m.ResolvedHostsByName) > 0 { - for k, _ := range m.ResolvedHostsByName { - data[i] = 0xc2 - i++ - data[i] = 0x2 - i++ - v := m.ResolvedHostsByName[k] - msgSize := 0 - if v != nil { - msgSize = v.Size() - msgSize += 1 + sovConnections(uint64(msgSize)) - } - mapSize := 1 + len(k) + sovConnections(uint64(len(k))) + msgSize - i = encodeVarintConnections(data, i, uint64(mapSize)) - data[i] = 0xa - i++ - i = encodeVarintConnections(data, i, uint64(len(k))) - i += copy(data[i:], k) - if v != nil { - data[i] = 0x12 - i++ - i = encodeVarintConnections(data, i, uint64(v.Size())) - n5, err := v.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n5 - } - } + return nil +} + +func (x *Connection) GetHttp2Aggregations() []byte { + if x != nil { + return x.Http2Aggregations } - if m.KernelHeaderFetchResult != 0 { - data[i] = 0xc8 - i++ - data[i] = 0x2 - i++ - i = encodeVarintConnections(data, i, uint64(m.KernelHeaderFetchResult)) - } - if len(m.CORETelemetryByAsset) > 0 { - for k, _ := range m.CORETelemetryByAsset { - data[i] = 0xd2 - i++ - data[i] = 0x2 - i++ - v := m.CORETelemetryByAsset[k] - mapSize := 1 + len(k) + sovConnections(uint64(len(k))) + 1 + sovConnections(uint64(v)) - i = encodeVarintConnections(data, i, uint64(mapSize)) - data[i] = 0xa - i++ - i = encodeVarintConnections(data, i, uint64(len(k))) - i += copy(data[i:], k) - data[i] = 0x10 - i++ - i = encodeVarintConnections(data, i, uint64(v)) - } + return nil +} + +// ResourceMetadata only holds enough information to identify a resource in connection data +type ResourceMetadata struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Key uint32 `protobuf:"varint,2,opt,name=key,proto3" json:"key,omitempty"` + ByteKey []byte `protobuf:"bytes,3,opt,name=byteKey,proto3" json:"byteKey,omitempty"` + Tags []string `protobuf:"bytes,4,rep,name=tags,proto3" json:"tags,omitempty"` + TagIndex int32 `protobuf:"varint,5,opt,name=tagIndex,proto3" json:"tagIndex,omitempty"` + TagsModified int64 `protobuf:"varint,6,opt,name=tagsModified,proto3" json:"tagsModified,omitempty"` +} + +func (x *ResourceMetadata) Reset() { + *x = ResourceMetadata{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_connections_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - if len(m.PrebuiltEBPFAssets) > 0 { - for _, s := range m.PrebuiltEBPFAssets { - data[i] = 0xe2 - i++ - data[i] = 0x2 - i++ - l = len(s) - for l >= 1<<7 { - data[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - data[i] = uint8(l) - i++ - i += copy(data[i:], s) +} + +func (x *ResourceMetadata) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ResourceMetadata) ProtoMessage() {} + +func (x *ResourceMetadata) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_connections_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 i, nil + return mi.MessageOf(x) +} + +// Deprecated: Use ResourceMetadata.ProtoReflect.Descriptor instead. +func (*ResourceMetadata) Descriptor() ([]byte, []int) { + return file_proto_process_connections_proto_rawDescGZIP(), []int{3} } -func (m *Connections) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err +func (x *ResourceMetadata) GetId() string { + if x != nil { + return x.Id } - return data[:n], nil + return "" } -func (m *Connections) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Conns) > 0 { - for _, msg := range m.Conns { - data[i] = 0xa - i++ - i = encodeVarintConnections(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n - } +func (x *ResourceMetadata) GetKey() uint32 { + if x != nil { + return x.Key } - if len(m.Dns) > 0 { - for k, _ := range m.Dns { - data[i] = 0x12 - i++ - v := m.Dns[k] - msgSize := 0 - if v != nil { - msgSize = v.Size() - msgSize += 1 + sovConnections(uint64(msgSize)) - } - mapSize := 1 + len(k) + sovConnections(uint64(len(k))) + msgSize - i = encodeVarintConnections(data, i, uint64(mapSize)) - data[i] = 0xa - i++ - i = encodeVarintConnections(data, i, uint64(len(k))) - i += copy(data[i:], k) - if v != nil { - data[i] = 0x12 - i++ - i = encodeVarintConnections(data, i, uint64(v.Size())) - n6, err := v.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n6 - } - } + return 0 +} + +func (x *ResourceMetadata) GetByteKey() []byte { + if x != nil { + return x.ByteKey } - if m.ConnTelemetry != nil { - data[i] = 0x1a - i++ - i = encodeVarintConnections(data, i, uint64(m.ConnTelemetry.Size())) - n7, err := m.ConnTelemetry.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n7 - } - if len(m.Domains) > 0 { - for _, s := range m.Domains { - data[i] = 0x22 - i++ - l = len(s) - for l >= 1<<7 { - data[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - data[i] = uint8(l) - i++ - i += copy(data[i:], s) - } + return nil +} + +func (x *ResourceMetadata) GetTags() []string { + if x != nil { + return x.Tags } - if len(m.Routes) > 0 { - for _, msg := range m.Routes { - data[i] = 0x2a - i++ - i = encodeVarintConnections(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n - } + return nil +} + +func (x *ResourceMetadata) GetTagIndex() int32 { + if x != nil { + return x.TagIndex } - if len(m.CompilationTelemetryByAsset) > 0 { - for k, _ := range m.CompilationTelemetryByAsset { - data[i] = 0x32 - i++ - v := m.CompilationTelemetryByAsset[k] - msgSize := 0 - if v != nil { - msgSize = v.Size() - msgSize += 1 + sovConnections(uint64(msgSize)) - } - mapSize := 1 + len(k) + sovConnections(uint64(len(k))) + msgSize - i = encodeVarintConnections(data, i, uint64(mapSize)) - data[i] = 0xa - i++ - i = encodeVarintConnections(data, i, uint64(len(k))) - i += copy(data[i:], k) - if v != nil { - data[i] = 0x12 - i++ - i = encodeVarintConnections(data, i, uint64(v.Size())) - n8, err := v.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n8 - } - } + return 0 +} + +func (x *ResourceMetadata) GetTagsModified() int64 { + if x != nil { + return x.TagsModified } - if m.AgentConfiguration != nil { - data[i] = 0x3a - i++ - i = encodeVarintConnections(data, i, uint64(m.AgentConfiguration.Size())) - n9, err := m.AgentConfiguration.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n9 - } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - data[i] = 0x42 - i++ - l = len(s) - for l >= 1<<7 { - data[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - data[i] = uint8(l) - i++ - i += copy(data[i:], s) - } + return 0 +} + +type ConnectionsTelemetry struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + MonotonicKprobesTriggered int64 `protobuf:"varint,1,opt,name=monotonicKprobesTriggered,proto3" json:"monotonicKprobesTriggered,omitempty"` + MonotonicKprobesMissed int64 `protobuf:"varint,2,opt,name=monotonicKprobesMissed,proto3" json:"monotonicKprobesMissed,omitempty"` + MonotonicConntrackRegisters int64 `protobuf:"varint,3,opt,name=monotonicConntrackRegisters,proto3" json:"monotonicConntrackRegisters,omitempty"` + MonotonicConntrackRegistersDropped int64 `protobuf:"varint,4,opt,name=monotonicConntrackRegistersDropped,proto3" json:"monotonicConntrackRegistersDropped,omitempty"` + MonotonicDnsPacketsProcessed int64 `protobuf:"varint,5,opt,name=monotonicDnsPacketsProcessed,proto3" json:"monotonicDnsPacketsProcessed,omitempty"` + MonotonicConnsClosed int64 `protobuf:"varint,6,opt,name=monotonicConnsClosed,proto3" json:"monotonicConnsClosed,omitempty"` + ConnsBpfMapSize int64 `protobuf:"varint,7,opt,name=connsBpfMapSize,proto3" json:"connsBpfMapSize,omitempty"` + MonotonicUdpSendsProcessed int64 `protobuf:"varint,8,opt,name=monotonicUdpSendsProcessed,proto3" json:"monotonicUdpSendsProcessed,omitempty"` + MonotonicUdpSendsMissed int64 `protobuf:"varint,9,opt,name=monotonicUdpSendsMissed,proto3" json:"monotonicUdpSendsMissed,omitempty"` + ConntrackSamplingPercent int64 `protobuf:"varint,10,opt,name=conntrackSamplingPercent,proto3" json:"conntrackSamplingPercent,omitempty"` + DnsStatsDropped int64 `protobuf:"varint,11,opt,name=dnsStatsDropped,proto3" json:"dnsStatsDropped,omitempty"` +} + +func (x *ConnectionsTelemetry) Reset() { + *x = ConnectionsTelemetry{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_connections_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - if len(m.ConnTelemetryMap) > 0 { - for k, _ := range m.ConnTelemetryMap { - data[i] = 0x4a - i++ - v := m.ConnTelemetryMap[k] - mapSize := 1 + len(k) + sovConnections(uint64(len(k))) + 1 + sovConnections(uint64(v)) - i = encodeVarintConnections(data, i, uint64(mapSize)) - data[i] = 0xa - i++ - i = encodeVarintConnections(data, i, uint64(len(k))) - i += copy(data[i:], k) - data[i] = 0x10 - i++ - i = encodeVarintConnections(data, i, uint64(v)) +} + +func (x *ConnectionsTelemetry) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ConnectionsTelemetry) ProtoMessage() {} + +func (x *ConnectionsTelemetry) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_connections_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - if m.KernelHeaderFetchResult != 0 { - data[i] = 0x50 - i++ - i = encodeVarintConnections(data, i, uint64(m.KernelHeaderFetchResult)) - } - if len(m.CORETelemetryByAsset) > 0 { - for k, _ := range m.CORETelemetryByAsset { - data[i] = 0x5a - i++ - v := m.CORETelemetryByAsset[k] - mapSize := 1 + len(k) + sovConnections(uint64(len(k))) + 1 + sovConnections(uint64(v)) - i = encodeVarintConnections(data, i, uint64(mapSize)) - data[i] = 0xa - i++ - i = encodeVarintConnections(data, i, uint64(len(k))) - i += copy(data[i:], k) - data[i] = 0x10 - i++ - i = encodeVarintConnections(data, i, uint64(v)) - } + return mi.MessageOf(x) +} + +// Deprecated: Use ConnectionsTelemetry.ProtoReflect.Descriptor instead. +func (*ConnectionsTelemetry) Descriptor() ([]byte, []int) { + return file_proto_process_connections_proto_rawDescGZIP(), []int{4} +} + +func (x *ConnectionsTelemetry) GetMonotonicKprobesTriggered() int64 { + if x != nil { + return x.MonotonicKprobesTriggered } - if len(m.PrebuiltEBPFAssets) > 0 { - for _, s := range m.PrebuiltEBPFAssets { - data[i] = 0x62 - i++ - l = len(s) - for l >= 1<<7 { - data[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - data[i] = uint8(l) - i++ - i += copy(data[i:], s) - } + return 0 +} + +func (x *ConnectionsTelemetry) GetMonotonicKprobesMissed() int64 { + if x != nil { + return x.MonotonicKprobesMissed } - return i, nil + return 0 } -func (m *Connection) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err +func (x *ConnectionsTelemetry) GetMonotonicConntrackRegisters() int64 { + if x != nil { + return x.MonotonicConntrackRegisters } - return data[:n], nil + return 0 } -func (m *Connection) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Pid != 0 { - data[i] = 0x8 - i++ - i = encodeVarintConnections(data, i, uint64(m.Pid)) +func (x *ConnectionsTelemetry) GetMonotonicConntrackRegistersDropped() int64 { + if x != nil { + return x.MonotonicConntrackRegistersDropped } - if m.Laddr != nil { - data[i] = 0x2a - i++ - i = encodeVarintConnections(data, i, uint64(m.Laddr.Size())) - n10, err := m.Laddr.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n10 - } - if m.Raddr != nil { - data[i] = 0x32 - i++ - i = encodeVarintConnections(data, i, uint64(m.Raddr.Size())) - n11, err := m.Raddr.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n11 - } - if m.Family != 0 { - data[i] = 0x50 - i++ - i = encodeVarintConnections(data, i, uint64(m.Family)) - } - if m.Type != 0 { - data[i] = 0x58 - i++ - i = encodeVarintConnections(data, i, uint64(m.Type)) - } - if m.LastBytesSent != 0 { - data[i] = 0x80 - i++ - data[i] = 0x1 - i++ - i = encodeVarintConnections(data, i, uint64(m.LastBytesSent)) - } - if m.LastBytesReceived != 0 { - data[i] = 0x88 - i++ - data[i] = 0x1 - i++ - i = encodeVarintConnections(data, i, uint64(m.LastBytesReceived)) - } - if m.LastRetransmits != 0 { - data[i] = 0x90 - i++ - data[i] = 0x1 - i++ - i = encodeVarintConnections(data, i, uint64(m.LastRetransmits)) - } - if m.Direction != 0 { - data[i] = 0x98 - i++ - data[i] = 0x1 - i++ - i = encodeVarintConnections(data, i, uint64(m.Direction)) - } - if m.NetNS != 0 { - data[i] = 0xa0 - i++ - data[i] = 0x1 - i++ - i = encodeVarintConnections(data, i, uint64(m.NetNS)) - } - if m.IpTranslation != nil { - data[i] = 0xaa - i++ - data[i] = 0x1 - i++ - i = encodeVarintConnections(data, i, uint64(m.IpTranslation.Size())) - n12, err := m.IpTranslation.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n12 - } - if m.Rtt != 0 { - data[i] = 0xb0 - i++ - data[i] = 0x1 - i++ - i = encodeVarintConnections(data, i, uint64(m.Rtt)) - } - if m.RttVar != 0 { - data[i] = 0xb8 - i++ - data[i] = 0x1 - i++ - i = encodeVarintConnections(data, i, uint64(m.RttVar)) - } - if m.IntraHost { - data[i] = 0xc0 - i++ - data[i] = 0x1 - i++ - if m.IntraHost { - data[i] = 1 - } else { - data[i] = 0 - } - i++ - } - if m.DnsSuccessfulResponses != 0 { - data[i] = 0xc8 - i++ - data[i] = 0x1 - i++ - i = encodeVarintConnections(data, i, uint64(m.DnsSuccessfulResponses)) - } - if m.DnsFailedResponses != 0 { - data[i] = 0xd0 - i++ - data[i] = 0x1 - i++ - i = encodeVarintConnections(data, i, uint64(m.DnsFailedResponses)) - } - if m.DnsTimeouts != 0 { - data[i] = 0xd8 - i++ - data[i] = 0x1 - i++ - i = encodeVarintConnections(data, i, uint64(m.DnsTimeouts)) - } - if m.DnsSuccessLatencySum != 0 { - data[i] = 0xe0 - i++ - data[i] = 0x1 - i++ - i = encodeVarintConnections(data, i, uint64(m.DnsSuccessLatencySum)) - } - if m.DnsFailureLatencySum != 0 { - data[i] = 0xe8 - i++ - data[i] = 0x1 - i++ - i = encodeVarintConnections(data, i, uint64(m.DnsFailureLatencySum)) - } - if m.LastTcpEstablished != 0 { - data[i] = 0xf0 - i++ - data[i] = 0x1 - i++ - i = encodeVarintConnections(data, i, uint64(m.LastTcpEstablished)) - } - if m.LastTcpClosed != 0 { - data[i] = 0xf8 - i++ - data[i] = 0x1 - i++ - i = encodeVarintConnections(data, i, uint64(m.LastTcpClosed)) - } - if len(m.RemoteNetworkId) > 0 { - data[i] = 0x82 - i++ - data[i] = 0x2 - i++ - i = encodeVarintConnections(data, i, uint64(len(m.RemoteNetworkId))) - i += copy(data[i:], m.RemoteNetworkId) - } - if len(m.DnsCountByRcode) > 0 { - for k, _ := range m.DnsCountByRcode { - data[i] = 0x8a - i++ - data[i] = 0x2 - i++ - v := m.DnsCountByRcode[k] - mapSize := 1 + sovConnections(uint64(k)) + 1 + sovConnections(uint64(v)) - i = encodeVarintConnections(data, i, uint64(mapSize)) - data[i] = 0x8 - i++ - i = encodeVarintConnections(data, i, uint64(k)) - data[i] = 0x10 - i++ - i = encodeVarintConnections(data, i, uint64(v)) - } + return 0 +} + +func (x *ConnectionsTelemetry) GetMonotonicDnsPacketsProcessed() int64 { + if x != nil { + return x.MonotonicDnsPacketsProcessed } - if len(m.DnsStatsByDomain) > 0 { - for k, _ := range m.DnsStatsByDomain { - data[i] = 0x92 - i++ - data[i] = 0x2 - i++ - v := m.DnsStatsByDomain[k] - msgSize := 0 - if v != nil { - msgSize = v.Size() - msgSize += 1 + sovConnections(uint64(msgSize)) - } - mapSize := 1 + sovConnections(uint64(k)) + msgSize - i = encodeVarintConnections(data, i, uint64(mapSize)) - data[i] = 0x8 - i++ - i = encodeVarintConnections(data, i, uint64(k)) - if v != nil { - data[i] = 0x12 - i++ - i = encodeVarintConnections(data, i, uint64(v.Size())) - n13, err := v.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n13 - } - } + return 0 +} + +func (x *ConnectionsTelemetry) GetMonotonicConnsClosed() int64 { + if x != nil { + return x.MonotonicConnsClosed } - if m.RouteIdx != 0 { - data[i] = 0xa0 - i++ - data[i] = 0x2 - i++ - i = encodeVarintConnections(data, i, uint64(m.RouteIdx)) - } - if len(m.HttpAggregations) > 0 { - data[i] = 0xaa - i++ - data[i] = 0x2 - i++ - i = encodeVarintConnections(data, i, uint64(len(m.HttpAggregations))) - i += copy(data[i:], m.HttpAggregations) - } - if m.LastPacketsSent != 0 { - data[i] = 0xb0 - i++ - data[i] = 0x2 - i++ - i = encodeVarintConnections(data, i, uint64(m.LastPacketsSent)) - } - if m.LastPacketsReceived != 0 { - data[i] = 0xb8 - i++ - data[i] = 0x2 - i++ - i = encodeVarintConnections(data, i, uint64(m.LastPacketsReceived)) - } - if m.RouteTargetIdx != 0 { - data[i] = 0xc0 - i++ - data[i] = 0x2 - i++ - i = encodeVarintConnections(data, i, uint64(m.RouteTargetIdx)) - } - if m.IsLocalPortEphemeral != 0 { - data[i] = 0xc8 - i++ - data[i] = 0x2 - i++ - i = encodeVarintConnections(data, i, uint64(m.IsLocalPortEphemeral)) - } - if len(m.DnsStatsByDomainByQueryType) > 0 { - for k, _ := range m.DnsStatsByDomainByQueryType { - data[i] = 0xd2 - i++ - data[i] = 0x2 - i++ - v := m.DnsStatsByDomainByQueryType[k] - msgSize := 0 - if v != nil { - msgSize = v.Size() - msgSize += 1 + sovConnections(uint64(msgSize)) - } - mapSize := 1 + sovConnections(uint64(k)) + msgSize - i = encodeVarintConnections(data, i, uint64(mapSize)) - data[i] = 0x8 - i++ - i = encodeVarintConnections(data, i, uint64(k)) - if v != nil { - data[i] = 0x12 - i++ - i = encodeVarintConnections(data, i, uint64(v.Size())) - n14, err := v.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n14 - } - } + return 0 +} + +func (x *ConnectionsTelemetry) GetConnsBpfMapSize() int64 { + if x != nil { + return x.ConnsBpfMapSize } - if len(m.DnsStatsByDomainOffsetByQueryType) > 0 { - for k, _ := range m.DnsStatsByDomainOffsetByQueryType { - data[i] = 0xda - i++ - data[i] = 0x2 - i++ - v := m.DnsStatsByDomainOffsetByQueryType[k] - msgSize := 0 - if v != nil { - msgSize = v.Size() - msgSize += 1 + sovConnections(uint64(msgSize)) - } - mapSize := 1 + sovConnections(uint64(k)) + msgSize - i = encodeVarintConnections(data, i, uint64(mapSize)) - data[i] = 0x8 - i++ - i = encodeVarintConnections(data, i, uint64(k)) - if v != nil { - data[i] = 0x12 - i++ - i = encodeVarintConnections(data, i, uint64(v.Size())) - n15, err := v.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n15 - } - } + return 0 +} + +func (x *ConnectionsTelemetry) GetMonotonicUdpSendsProcessed() int64 { + if x != nil { + return x.MonotonicUdpSendsProcessed } - if len(m.Tags) > 0 { - for _, num := range m.Tags { - data[i] = 0xe0 - i++ - data[i] = 0x2 - i++ - i = encodeVarintConnections(data, i, uint64(num)) - } + return 0 +} + +func (x *ConnectionsTelemetry) GetMonotonicUdpSendsMissed() int64 { + if x != nil { + return x.MonotonicUdpSendsMissed } - if m.TagsIdx != 0 { - data[i] = 0xe8 - i++ - data[i] = 0x2 - i++ - i = encodeVarintConnections(data, i, uint64(m.TagsIdx)) - } - if m.StateIndex != 0 { - data[i] = 0xf0 - i++ - data[i] = 0x2 - i++ - i = encodeVarintConnections(data, i, uint64(m.StateIndex)) - } - if m.TagsChecksum != 0 { - data[i] = 0xf8 - i++ - data[i] = 0x2 - i++ - i = encodeVarintConnections(data, i, uint64(m.TagsChecksum)) - } - if m.Protocol != nil { - data[i] = 0x82 - i++ - data[i] = 0x3 - i++ - i = encodeVarintConnections(data, i, uint64(m.Protocol.Size())) - n16, err := m.Protocol.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n16 - } - if len(m.DataStreamsAggregations) > 0 { - data[i] = 0x8a - i++ - data[i] = 0x3 - i++ - i = encodeVarintConnections(data, i, uint64(len(m.DataStreamsAggregations))) - i += copy(data[i:], m.DataStreamsAggregations) - } - if len(m.Http2Aggregations) > 0 { - data[i] = 0x92 - i++ - data[i] = 0x3 - i++ - i = encodeVarintConnections(data, i, uint64(len(m.Http2Aggregations))) - i += copy(data[i:], m.Http2Aggregations) - } - return i, nil -} - -func (m *ResourceMetadata) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *ResourceMetadata) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Id) > 0 { - data[i] = 0xa - i++ - i = encodeVarintConnections(data, i, uint64(len(m.Id))) - i += copy(data[i:], m.Id) - } - if m.Key != 0 { - data[i] = 0x10 - i++ - i = encodeVarintConnections(data, i, uint64(m.Key)) - } - if len(m.ByteKey) > 0 { - data[i] = 0x1a - i++ - i = encodeVarintConnections(data, i, uint64(len(m.ByteKey))) - i += copy(data[i:], m.ByteKey) - } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - data[i] = 0x22 - i++ - l = len(s) - for l >= 1<<7 { - data[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - data[i] = uint8(l) - i++ - i += copy(data[i:], s) - } + return 0 +} + +func (x *ConnectionsTelemetry) GetConntrackSamplingPercent() int64 { + if x != nil { + return x.ConntrackSamplingPercent } - if m.TagIndex != 0 { - data[i] = 0x28 - i++ - i = encodeVarintConnections(data, i, uint64(m.TagIndex)) - } - if m.TagsModified != 0 { - data[i] = 0x30 - i++ - i = encodeVarintConnections(data, i, uint64(m.TagsModified)) - } - return i, nil -} - -func (m *ConnectionsTelemetry) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *ConnectionsTelemetry) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.MonotonicKprobesTriggered != 0 { - data[i] = 0x8 - i++ - i = encodeVarintConnections(data, i, uint64(m.MonotonicKprobesTriggered)) - } - if m.MonotonicKprobesMissed != 0 { - data[i] = 0x10 - i++ - i = encodeVarintConnections(data, i, uint64(m.MonotonicKprobesMissed)) - } - if m.MonotonicConntrackRegisters != 0 { - data[i] = 0x18 - i++ - i = encodeVarintConnections(data, i, uint64(m.MonotonicConntrackRegisters)) - } - if m.MonotonicConntrackRegistersDropped != 0 { - data[i] = 0x20 - i++ - i = encodeVarintConnections(data, i, uint64(m.MonotonicConntrackRegistersDropped)) - } - if m.MonotonicDnsPacketsProcessed != 0 { - data[i] = 0x28 - i++ - i = encodeVarintConnections(data, i, uint64(m.MonotonicDnsPacketsProcessed)) - } - if m.MonotonicConnsClosed != 0 { - data[i] = 0x30 - i++ - i = encodeVarintConnections(data, i, uint64(m.MonotonicConnsClosed)) - } - if m.ConnsBpfMapSize != 0 { - data[i] = 0x38 - i++ - i = encodeVarintConnections(data, i, uint64(m.ConnsBpfMapSize)) - } - if m.MonotonicUdpSendsProcessed != 0 { - data[i] = 0x40 - i++ - i = encodeVarintConnections(data, i, uint64(m.MonotonicUdpSendsProcessed)) - } - if m.MonotonicUdpSendsMissed != 0 { - data[i] = 0x48 - i++ - i = encodeVarintConnections(data, i, uint64(m.MonotonicUdpSendsMissed)) - } - if m.ConntrackSamplingPercent != 0 { - data[i] = 0x50 - i++ - i = encodeVarintConnections(data, i, uint64(m.ConntrackSamplingPercent)) - } - if m.DnsStatsDropped != 0 { - data[i] = 0x58 - i++ - i = encodeVarintConnections(data, i, uint64(m.DnsStatsDropped)) - } - return i, nil -} - -func (m *CollectorConnectionsTelemetry) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *CollectorConnectionsTelemetry) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.KprobesTriggered != 0 { - data[i] = 0x8 - i++ - i = encodeVarintConnections(data, i, uint64(m.KprobesTriggered)) - } - if m.KprobesMissed != 0 { - data[i] = 0x10 - i++ - i = encodeVarintConnections(data, i, uint64(m.KprobesMissed)) - } - if m.ConntrackRegisters != 0 { - data[i] = 0x18 - i++ - i = encodeVarintConnections(data, i, uint64(m.ConntrackRegisters)) - } - if m.ConntrackRegistersDropped != 0 { - data[i] = 0x20 - i++ - i = encodeVarintConnections(data, i, uint64(m.ConntrackRegistersDropped)) - } - if m.DnsPacketsProcessed != 0 { - data[i] = 0x28 - i++ - i = encodeVarintConnections(data, i, uint64(m.DnsPacketsProcessed)) - } - if m.ConnsClosed != 0 { - data[i] = 0x30 - i++ - i = encodeVarintConnections(data, i, uint64(m.ConnsClosed)) - } - if m.ConnsBpfMapSize != 0 { - data[i] = 0x38 - i++ - i = encodeVarintConnections(data, i, uint64(m.ConnsBpfMapSize)) - } - if m.UdpSendsProcessed != 0 { - data[i] = 0x40 - i++ - i = encodeVarintConnections(data, i, uint64(m.UdpSendsProcessed)) - } - if m.UdpSendsMissed != 0 { - data[i] = 0x48 - i++ - i = encodeVarintConnections(data, i, uint64(m.UdpSendsMissed)) - } - if m.ConntrackSamplingPercent != 0 { - data[i] = 0x50 - i++ - i = encodeVarintConnections(data, i, uint64(m.ConntrackSamplingPercent)) - } - if m.DnsStatsDropped != 0 { - data[i] = 0x58 - i++ - i = encodeVarintConnections(data, i, uint64(m.DnsStatsDropped)) - } - return i, nil -} - -func (m *RuntimeCompilationTelemetry) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *RuntimeCompilationTelemetry) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.RuntimeCompilationEnabled { - data[i] = 0x8 - i++ - if m.RuntimeCompilationEnabled { - data[i] = 1 - } else { - data[i] = 0 - } - i++ - } - if m.RuntimeCompilationResult != 0 { - data[i] = 0x10 - i++ - i = encodeVarintConnections(data, i, uint64(m.RuntimeCompilationResult)) - } - if m.RuntimeCompilationDuration != 0 { - data[i] = 0x18 - i++ - i = encodeVarintConnections(data, i, uint64(m.RuntimeCompilationDuration)) - } - if m.KernelHeaderFetchResult != 0 { - data[i] = 0x20 - i++ - i = encodeVarintConnections(data, i, uint64(m.KernelHeaderFetchResult)) - } - return i, nil -} - -func (m *AgentConfiguration) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *AgentConfiguration) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.NpmEnabled { - data[i] = 0x8 - i++ - if m.NpmEnabled { - data[i] = 1 - } else { - data[i] = 0 - } - i++ - } - if m.UsmEnabled { - data[i] = 0x10 - i++ - if m.UsmEnabled { - data[i] = 1 - } else { - data[i] = 0 - } - i++ - } - if m.DsmEnabled { - data[i] = 0x18 - i++ - if m.DsmEnabled { - data[i] = 1 - } else { - data[i] = 0 - } - i++ + return 0 +} + +func (x *ConnectionsTelemetry) GetDnsStatsDropped() int64 { + if x != nil { + return x.DnsStatsDropped } - return i, nil + return 0 +} + +type CollectorConnectionsTelemetry struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + KprobesTriggered int64 `protobuf:"varint,1,opt,name=kprobesTriggered,proto3" json:"kprobesTriggered,omitempty"` + KprobesMissed int64 `protobuf:"varint,2,opt,name=kprobesMissed,proto3" json:"kprobesMissed,omitempty"` + ConntrackRegisters int64 `protobuf:"varint,3,opt,name=conntrackRegisters,proto3" json:"conntrackRegisters,omitempty"` + ConntrackRegistersDropped int64 `protobuf:"varint,4,opt,name=conntrackRegistersDropped,proto3" json:"conntrackRegistersDropped,omitempty"` + DnsPacketsProcessed int64 `protobuf:"varint,5,opt,name=dnsPacketsProcessed,proto3" json:"dnsPacketsProcessed,omitempty"` + ConnsClosed int64 `protobuf:"varint,6,opt,name=connsClosed,proto3" json:"connsClosed,omitempty"` + ConnsBpfMapSize int64 `protobuf:"varint,7,opt,name=connsBpfMapSize,proto3" json:"connsBpfMapSize,omitempty"` + UdpSendsProcessed int64 `protobuf:"varint,8,opt,name=udpSendsProcessed,proto3" json:"udpSendsProcessed,omitempty"` + UdpSendsMissed int64 `protobuf:"varint,9,opt,name=udpSendsMissed,proto3" json:"udpSendsMissed,omitempty"` + ConntrackSamplingPercent int64 `protobuf:"varint,10,opt,name=conntrackSamplingPercent,proto3" json:"conntrackSamplingPercent,omitempty"` + DnsStatsDropped int64 `protobuf:"varint,11,opt,name=dnsStatsDropped,proto3" json:"dnsStatsDropped,omitempty"` } -func (m *Route) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err +func (x *CollectorConnectionsTelemetry) Reset() { + *x = CollectorConnectionsTelemetry{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_connections_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return data[:n], nil } -func (m *Route) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Subnet != nil { - data[i] = 0xa - i++ - i = encodeVarintConnections(data, i, uint64(m.Subnet.Size())) - n17, err := m.Subnet.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n17 - } - return i, nil -} - -func (m *Subnet) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *Subnet) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Alias) > 0 { - data[i] = 0xa - i++ - i = encodeVarintConnections(data, i, uint64(len(m.Alias))) - i += copy(data[i:], m.Alias) - } - return i, nil -} - -func (m *RouteMetadata) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *RouteMetadata) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Alias) > 0 { - data[i] = 0xa - i++ - i = encodeVarintConnections(data, i, uint64(len(m.Alias))) - i += copy(data[i:], m.Alias) - } - if m.TagIndex != 0 { - data[i] = 0x10 - i++ - i = encodeVarintConnections(data, i, uint64(m.TagIndex)) - } - if m.TagsModified != 0 { - data[i] = 0x18 - i++ - i = encodeVarintConnections(data, i, uint64(m.TagsModified)) - } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - data[i] = 0x22 - i++ - l = len(s) - for l >= 1<<7 { - data[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - data[i] = uint8(l) - i++ - i += copy(data[i:], s) +func (x *CollectorConnectionsTelemetry) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CollectorConnectionsTelemetry) ProtoMessage() {} + +func (x *CollectorConnectionsTelemetry) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_connections_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - return i, nil -} - -func (m *IPTranslation) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *IPTranslation) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.ReplSrcIP) > 0 { - data[i] = 0xa - i++ - i = encodeVarintConnections(data, i, uint64(len(m.ReplSrcIP))) - i += copy(data[i:], m.ReplSrcIP) - } - if len(m.ReplDstIP) > 0 { - data[i] = 0x12 - i++ - i = encodeVarintConnections(data, i, uint64(len(m.ReplDstIP))) - i += copy(data[i:], m.ReplDstIP) - } - if m.ReplSrcPort != 0 { - data[i] = 0x18 - i++ - i = encodeVarintConnections(data, i, uint64(m.ReplSrcPort)) - } - if m.ReplDstPort != 0 { - data[i] = 0x20 - i++ - i = encodeVarintConnections(data, i, uint64(m.ReplDstPort)) - } - return i, nil -} - -func (m *Addr) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *Addr) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Ip) > 0 { - data[i] = 0x12 - i++ - i = encodeVarintConnections(data, i, uint64(len(m.Ip))) - i += copy(data[i:], m.Ip) - } - if m.Port != 0 { - data[i] = 0x18 - i++ - i = encodeVarintConnections(data, i, uint64(m.Port)) - } - if len(m.ContainerId) > 0 { - data[i] = 0x2a - i++ - i = encodeVarintConnections(data, i, uint64(len(m.ContainerId))) - i += copy(data[i:], m.ContainerId) - } - if len(m.HostName) > 0 { - data[i] = 0x3a - i++ - i = encodeVarintConnections(data, i, uint64(len(m.HostName))) - i += copy(data[i:], m.HostName) - } - return i, nil -} - -func (m *ProtocolStack) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *ProtocolStack) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Stack) > 0 { - for _, num := range m.Stack { - data[i] = 0x8 - i++ - i = encodeVarintConnections(data, i, uint64(num)) - } + return mi.MessageOf(x) +} + +// Deprecated: Use CollectorConnectionsTelemetry.ProtoReflect.Descriptor instead. +func (*CollectorConnectionsTelemetry) Descriptor() ([]byte, []int) { + return file_proto_process_connections_proto_rawDescGZIP(), []int{5} +} + +func (x *CollectorConnectionsTelemetry) GetKprobesTriggered() int64 { + if x != nil { + return x.KprobesTriggered } - return i, nil -} - -func (m *DNSEntry) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *DNSEntry) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Names) > 0 { - for _, s := range m.Names { - data[i] = 0xa - i++ - l = len(s) - for l >= 1<<7 { - data[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - data[i] = uint8(l) - i++ - i += copy(data[i:], s) - } + return 0 +} + +func (x *CollectorConnectionsTelemetry) GetKprobesMissed() int64 { + if x != nil { + return x.KprobesMissed } - return i, nil -} - -func (m *DNSStats) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *DNSStats) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.DnsTimeouts != 0 { - data[i] = 0x8 - i++ - i = encodeVarintConnections(data, i, uint64(m.DnsTimeouts)) - } - if m.DnsSuccessLatencySum != 0 { - data[i] = 0x10 - i++ - i = encodeVarintConnections(data, i, uint64(m.DnsSuccessLatencySum)) - } - if m.DnsFailureLatencySum != 0 { - data[i] = 0x18 - i++ - i = encodeVarintConnections(data, i, uint64(m.DnsFailureLatencySum)) - } - if len(m.DnsCountByRcode) > 0 { - for k, _ := range m.DnsCountByRcode { - data[i] = 0x22 - i++ - v := m.DnsCountByRcode[k] - mapSize := 1 + sovConnections(uint64(k)) + 1 + sovConnections(uint64(v)) - i = encodeVarintConnections(data, i, uint64(mapSize)) - data[i] = 0x8 - i++ - i = encodeVarintConnections(data, i, uint64(k)) - data[i] = 0x10 - i++ - i = encodeVarintConnections(data, i, uint64(v)) - } + return 0 +} + +func (x *CollectorConnectionsTelemetry) GetConntrackRegisters() int64 { + if x != nil { + return x.ConntrackRegisters } - return i, nil -} - -func (m *DNSStatsByQueryType) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil -} - -func (m *DNSStatsByQueryType) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.DnsStatsByQueryType) > 0 { - for k, _ := range m.DnsStatsByQueryType { - data[i] = 0xa - i++ - v := m.DnsStatsByQueryType[k] - msgSize := 0 - if v != nil { - msgSize = v.Size() - msgSize += 1 + sovConnections(uint64(msgSize)) - } - mapSize := 1 + sovConnections(uint64(k)) + msgSize - i = encodeVarintConnections(data, i, uint64(mapSize)) - data[i] = 0x8 - i++ - i = encodeVarintConnections(data, i, uint64(k)) - if v != nil { - data[i] = 0x12 - i++ - i = encodeVarintConnections(data, i, uint64(v.Size())) - n18, err := v.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n18 - } - } + return 0 +} + +func (x *CollectorConnectionsTelemetry) GetConntrackRegistersDropped() int64 { + if x != nil { + return x.ConntrackRegistersDropped } - return i, nil -} - -func encodeFixed64Connections(data []byte, offset int, v uint64) int { - data[offset] = uint8(v) - data[offset+1] = uint8(v >> 8) - data[offset+2] = uint8(v >> 16) - data[offset+3] = uint8(v >> 24) - data[offset+4] = uint8(v >> 32) - data[offset+5] = uint8(v >> 40) - data[offset+6] = uint8(v >> 48) - data[offset+7] = uint8(v >> 56) - return offset + 8 -} -func encodeFixed32Connections(data []byte, offset int, v uint32) int { - data[offset] = uint8(v) - data[offset+1] = uint8(v >> 8) - data[offset+2] = uint8(v >> 16) - data[offset+3] = uint8(v >> 24) - return offset + 4 -} -func encodeVarintConnections(data []byte, offset int, v uint64) int { - for v >= 1<<7 { - data[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - data[offset] = uint8(v) - return offset + 1 -} -func (m *CollectorConnections) Size() (n int) { - var l int - _ = l - l = len(m.HostName) - if l > 0 { - n += 1 + l + sovConnections(uint64(l)) - } - if len(m.Connections) > 0 { - for _, e := range m.Connections { - l = e.Size() - n += 1 + l + sovConnections(uint64(l)) - } + return 0 +} + +func (x *CollectorConnectionsTelemetry) GetDnsPacketsProcessed() int64 { + if x != nil { + return x.DnsPacketsProcessed } - if m.GroupId != 0 { - n += 1 + sovConnections(uint64(m.GroupId)) + return 0 +} + +func (x *CollectorConnectionsTelemetry) GetConnsClosed() int64 { + if x != nil { + return x.ConnsClosed } - if m.GroupSize != 0 { - n += 1 + sovConnections(uint64(m.GroupSize)) + return 0 +} + +func (x *CollectorConnectionsTelemetry) GetConnsBpfMapSize() int64 { + if x != nil { + return x.ConnsBpfMapSize } - if len(m.ResolvedResources) > 0 { - for k, v := range m.ResolvedResources { - _ = k - _ = v - l = 0 - if v != nil { - l = v.Size() - l += 1 + sovConnections(uint64(l)) - } - mapEntrySize := 1 + len(k) + sovConnections(uint64(len(k))) + l - n += mapEntrySize + 1 + sovConnections(uint64(mapEntrySize)) - } + return 0 +} + +func (x *CollectorConnectionsTelemetry) GetUdpSendsProcessed() int64 { + if x != nil { + return x.UdpSendsProcessed } - if len(m.ContainerForPid) > 0 { - for k, v := range m.ContainerForPid { - _ = k - _ = v - mapEntrySize := 1 + sovConnections(uint64(k)) + 1 + len(v) + sovConnections(uint64(len(v))) - n += mapEntrySize + 1 + sovConnections(uint64(mapEntrySize)) - } + return 0 +} + +func (x *CollectorConnectionsTelemetry) GetUdpSendsMissed() int64 { + if x != nil { + return x.UdpSendsMissed } - l = len(m.EncodedTags) - if l > 0 { - n += 1 + l + sovConnections(uint64(l)) - } - l = len(m.NetworkId) - if l > 0 { - n += 1 + l + sovConnections(uint64(l)) - } - l = len(m.EncodedDNS) - if l > 0 { - n += 1 + l + sovConnections(uint64(l)) - } - if m.ContainerHostType != 0 { - n += 1 + sovConnections(uint64(m.ContainerHostType)) - } - if m.ConnTelemetry != nil { - l = m.ConnTelemetry.Size() - n += 2 + l + sovConnections(uint64(l)) - } - l = len(m.Architecture) - if l > 0 { - n += 2 + l + sovConnections(uint64(l)) - } - l = len(m.KernelVersion) - if l > 0 { - n += 2 + l + sovConnections(uint64(l)) - } - l = len(m.Platform) - if l > 0 { - n += 2 + l + sovConnections(uint64(l)) - } - l = len(m.PlatformVersion) - if l > 0 { - n += 2 + l + sovConnections(uint64(l)) - } - if len(m.CompilationTelemetryByAsset) > 0 { - for k, v := range m.CompilationTelemetryByAsset { - _ = k - _ = v - l = 0 - if v != nil { - l = v.Size() - l += 1 + sovConnections(uint64(l)) - } - mapEntrySize := 1 + len(k) + sovConnections(uint64(len(k))) + l - n += mapEntrySize + 2 + sovConnections(uint64(mapEntrySize)) - } + return 0 +} + +func (x *CollectorConnectionsTelemetry) GetConntrackSamplingPercent() int64 { + if x != nil { + return x.ConntrackSamplingPercent } - if len(m.Domains) > 0 { - for _, s := range m.Domains { - l = len(s) - n += 2 + l + sovConnections(uint64(l)) - } - } - if len(m.Routes) > 0 { - for _, e := range m.Routes { - l = e.Size() - n += 2 + l + sovConnections(uint64(l)) - } - } - if len(m.RouteMetadata) > 0 { - for _, e := range m.RouteMetadata { - l = e.Size() - n += 2 + l + sovConnections(uint64(l)) - } - } - if m.AgentConfiguration != nil { - l = m.AgentConfiguration.Size() - n += 2 + l + sovConnections(uint64(l)) - } - l = len(m.EncodedDomainDatabase) - if l > 0 { - n += 2 + l + sovConnections(uint64(l)) - } - l = len(m.EncodedDnsLookups) - if l > 0 { - n += 2 + l + sovConnections(uint64(l)) - } - l = len(m.EncodedConnectionsTags) - if l > 0 { - n += 2 + l + sovConnections(uint64(l)) - } - if len(m.ConnTelemetryMap) > 0 { - for k, v := range m.ConnTelemetryMap { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovConnections(uint64(len(k))) + 1 + sovConnections(uint64(v)) - n += mapEntrySize + 2 + sovConnections(uint64(mapEntrySize)) - } - } - if len(m.ResolvedHostsByName) > 0 { - for k, v := range m.ResolvedHostsByName { - _ = k - _ = v - l = 0 - if v != nil { - l = v.Size() - l += 1 + sovConnections(uint64(l)) - } - mapEntrySize := 1 + len(k) + sovConnections(uint64(len(k))) + l - n += mapEntrySize + 2 + sovConnections(uint64(mapEntrySize)) - } - } - if m.KernelHeaderFetchResult != 0 { - n += 2 + sovConnections(uint64(m.KernelHeaderFetchResult)) + return 0 +} + +func (x *CollectorConnectionsTelemetry) GetDnsStatsDropped() int64 { + if x != nil { + return x.DnsStatsDropped } - if len(m.CORETelemetryByAsset) > 0 { - for k, v := range m.CORETelemetryByAsset { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovConnections(uint64(len(k))) + 1 + sovConnections(uint64(v)) - n += mapEntrySize + 2 + sovConnections(uint64(mapEntrySize)) - } + return 0 +} + +type RuntimeCompilationTelemetry struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + RuntimeCompilationEnabled bool `protobuf:"varint,1,opt,name=runtimeCompilationEnabled,proto3" json:"runtimeCompilationEnabled,omitempty"` + RuntimeCompilationResult RuntimeCompilationResult `protobuf:"varint,2,opt,name=runtimeCompilationResult,proto3,enum=datadog.process_agent.RuntimeCompilationResult" json:"runtimeCompilationResult,omitempty"` + RuntimeCompilationDuration int64 `protobuf:"varint,3,opt,name=runtimeCompilationDuration,proto3" json:"runtimeCompilationDuration,omitempty"` + // Field below was deprecated in agent 7.41 + KernelHeaderFetchResult KernelHeaderFetchResult `protobuf:"varint,4,opt,name=kernelHeaderFetchResult,proto3,enum=datadog.process_agent.KernelHeaderFetchResult" json:"kernelHeaderFetchResult,omitempty"` +} + +func (x *RuntimeCompilationTelemetry) Reset() { + *x = RuntimeCompilationTelemetry{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_connections_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - if len(m.PrebuiltEBPFAssets) > 0 { - for _, s := range m.PrebuiltEBPFAssets { - l = len(s) - n += 2 + l + sovConnections(uint64(l)) +} + +func (x *RuntimeCompilationTelemetry) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RuntimeCompilationTelemetry) ProtoMessage() {} + +func (x *RuntimeCompilationTelemetry) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_connections_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - return n + return mi.MessageOf(x) } -func (m *Connections) Size() (n int) { - var l int - _ = l - if len(m.Conns) > 0 { - for _, e := range m.Conns { - l = e.Size() - n += 1 + l + sovConnections(uint64(l)) - } +// Deprecated: Use RuntimeCompilationTelemetry.ProtoReflect.Descriptor instead. +func (*RuntimeCompilationTelemetry) Descriptor() ([]byte, []int) { + return file_proto_process_connections_proto_rawDescGZIP(), []int{6} +} + +func (x *RuntimeCompilationTelemetry) GetRuntimeCompilationEnabled() bool { + if x != nil { + return x.RuntimeCompilationEnabled } - if len(m.Dns) > 0 { - for k, v := range m.Dns { - _ = k - _ = v - l = 0 - if v != nil { - l = v.Size() - l += 1 + sovConnections(uint64(l)) - } - mapEntrySize := 1 + len(k) + sovConnections(uint64(len(k))) + l - n += mapEntrySize + 1 + sovConnections(uint64(mapEntrySize)) - } + return false +} + +func (x *RuntimeCompilationTelemetry) GetRuntimeCompilationResult() RuntimeCompilationResult { + if x != nil { + return x.RuntimeCompilationResult } - if m.ConnTelemetry != nil { - l = m.ConnTelemetry.Size() - n += 1 + l + sovConnections(uint64(l)) + return RuntimeCompilationResult_NotAttempted +} + +func (x *RuntimeCompilationTelemetry) GetRuntimeCompilationDuration() int64 { + if x != nil { + return x.RuntimeCompilationDuration } - if len(m.Domains) > 0 { - for _, s := range m.Domains { - l = len(s) - n += 1 + l + sovConnections(uint64(l)) - } + return 0 +} + +func (x *RuntimeCompilationTelemetry) GetKernelHeaderFetchResult() KernelHeaderFetchResult { + if x != nil { + return x.KernelHeaderFetchResult } - if len(m.Routes) > 0 { - for _, e := range m.Routes { - l = e.Size() - n += 1 + l + sovConnections(uint64(l)) - } + return KernelHeaderFetchResult_FetchNotAttempted +} + +type AgentConfiguration struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + NpmEnabled bool `protobuf:"varint,1,opt,name=npmEnabled,proto3" json:"npmEnabled,omitempty"` + UsmEnabled bool `protobuf:"varint,2,opt,name=usmEnabled,proto3" json:"usmEnabled,omitempty"` + DsmEnabled bool `protobuf:"varint,3,opt,name=dsmEnabled,proto3" json:"dsmEnabled,omitempty"` +} + +func (x *AgentConfiguration) Reset() { + *x = AgentConfiguration{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_connections_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - if len(m.CompilationTelemetryByAsset) > 0 { - for k, v := range m.CompilationTelemetryByAsset { - _ = k - _ = v - l = 0 - if v != nil { - l = v.Size() - l += 1 + sovConnections(uint64(l)) - } - mapEntrySize := 1 + len(k) + sovConnections(uint64(len(k))) + l - n += mapEntrySize + 1 + sovConnections(uint64(mapEntrySize)) +} + +func (x *AgentConfiguration) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AgentConfiguration) ProtoMessage() {} + +func (x *AgentConfiguration) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_connections_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - if m.AgentConfiguration != nil { - l = m.AgentConfiguration.Size() - n += 1 + l + sovConnections(uint64(l)) - } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - l = len(s) - n += 1 + l + sovConnections(uint64(l)) - } + return mi.MessageOf(x) +} + +// Deprecated: Use AgentConfiguration.ProtoReflect.Descriptor instead. +func (*AgentConfiguration) Descriptor() ([]byte, []int) { + return file_proto_process_connections_proto_rawDescGZIP(), []int{7} +} + +func (x *AgentConfiguration) GetNpmEnabled() bool { + if x != nil { + return x.NpmEnabled } - if len(m.ConnTelemetryMap) > 0 { - for k, v := range m.ConnTelemetryMap { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovConnections(uint64(len(k))) + 1 + sovConnections(uint64(v)) - n += mapEntrySize + 1 + sovConnections(uint64(mapEntrySize)) - } + return false +} + +func (x *AgentConfiguration) GetUsmEnabled() bool { + if x != nil { + return x.UsmEnabled } - if m.KernelHeaderFetchResult != 0 { - n += 1 + sovConnections(uint64(m.KernelHeaderFetchResult)) + return false +} + +func (x *AgentConfiguration) GetDsmEnabled() bool { + if x != nil { + return x.DsmEnabled } - if len(m.CORETelemetryByAsset) > 0 { - for k, v := range m.CORETelemetryByAsset { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovConnections(uint64(len(k))) + 1 + sovConnections(uint64(v)) - n += mapEntrySize + 1 + sovConnections(uint64(mapEntrySize)) - } + return false +} + +type Route struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Subnet *Subnet `protobuf:"bytes,1,opt,name=subnet,proto3" json:"subnet,omitempty"` +} + +func (x *Route) Reset() { + *x = Route{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_connections_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - if len(m.PrebuiltEBPFAssets) > 0 { - for _, s := range m.PrebuiltEBPFAssets { - l = len(s) - n += 1 + l + sovConnections(uint64(l)) +} + +func (x *Route) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Route) ProtoMessage() {} + +func (x *Route) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_connections_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - return n + return mi.MessageOf(x) } -func (m *Connection) Size() (n int) { - var l int - _ = l - if m.Pid != 0 { - n += 1 + sovConnections(uint64(m.Pid)) - } - if m.Laddr != nil { - l = m.Laddr.Size() - n += 1 + l + sovConnections(uint64(l)) - } - if m.Raddr != nil { - l = m.Raddr.Size() - n += 1 + l + sovConnections(uint64(l)) - } - if m.Family != 0 { - n += 1 + sovConnections(uint64(m.Family)) - } - if m.Type != 0 { - n += 1 + sovConnections(uint64(m.Type)) - } - if m.LastBytesSent != 0 { - n += 2 + sovConnections(uint64(m.LastBytesSent)) - } - if m.LastBytesReceived != 0 { - n += 2 + sovConnections(uint64(m.LastBytesReceived)) - } - if m.LastRetransmits != 0 { - n += 2 + sovConnections(uint64(m.LastRetransmits)) - } - if m.Direction != 0 { - n += 2 + sovConnections(uint64(m.Direction)) - } - if m.NetNS != 0 { - n += 2 + sovConnections(uint64(m.NetNS)) - } - if m.IpTranslation != nil { - l = m.IpTranslation.Size() - n += 2 + l + sovConnections(uint64(l)) - } - if m.Rtt != 0 { - n += 2 + sovConnections(uint64(m.Rtt)) - } - if m.RttVar != 0 { - n += 2 + sovConnections(uint64(m.RttVar)) - } - if m.IntraHost { - n += 3 - } - if m.DnsSuccessfulResponses != 0 { - n += 2 + sovConnections(uint64(m.DnsSuccessfulResponses)) - } - if m.DnsFailedResponses != 0 { - n += 2 + sovConnections(uint64(m.DnsFailedResponses)) - } - if m.DnsTimeouts != 0 { - n += 2 + sovConnections(uint64(m.DnsTimeouts)) - } - if m.DnsSuccessLatencySum != 0 { - n += 2 + sovConnections(uint64(m.DnsSuccessLatencySum)) - } - if m.DnsFailureLatencySum != 0 { - n += 2 + sovConnections(uint64(m.DnsFailureLatencySum)) - } - if m.LastTcpEstablished != 0 { - n += 2 + sovConnections(uint64(m.LastTcpEstablished)) - } - if m.LastTcpClosed != 0 { - n += 2 + sovConnections(uint64(m.LastTcpClosed)) - } - l = len(m.RemoteNetworkId) - if l > 0 { - n += 2 + l + sovConnections(uint64(l)) +// Deprecated: Use Route.ProtoReflect.Descriptor instead. +func (*Route) Descriptor() ([]byte, []int) { + return file_proto_process_connections_proto_rawDescGZIP(), []int{8} +} + +func (x *Route) GetSubnet() *Subnet { + if x != nil { + return x.Subnet } - if len(m.DnsCountByRcode) > 0 { - for k, v := range m.DnsCountByRcode { - _ = k - _ = v - mapEntrySize := 1 + sovConnections(uint64(k)) + 1 + sovConnections(uint64(v)) - n += mapEntrySize + 2 + sovConnections(uint64(mapEntrySize)) - } + return nil +} + +type Subnet struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Alias string `protobuf:"bytes,1,opt,name=alias,proto3" json:"alias,omitempty"` +} + +func (x *Subnet) Reset() { + *x = Subnet{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_connections_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - if len(m.DnsStatsByDomain) > 0 { - for k, v := range m.DnsStatsByDomain { - _ = k - _ = v - l = 0 - if v != nil { - l = v.Size() - l += 1 + sovConnections(uint64(l)) - } - mapEntrySize := 1 + sovConnections(uint64(k)) + l - n += mapEntrySize + 2 + sovConnections(uint64(mapEntrySize)) +} + +func (x *Subnet) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Subnet) ProtoMessage() {} + +func (x *Subnet) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_connections_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - if m.RouteIdx != 0 { - n += 2 + sovConnections(uint64(m.RouteIdx)) - } - l = len(m.HttpAggregations) - if l > 0 { - n += 2 + l + sovConnections(uint64(l)) - } - if m.LastPacketsSent != 0 { - n += 2 + sovConnections(uint64(m.LastPacketsSent)) - } - if m.LastPacketsReceived != 0 { - n += 2 + sovConnections(uint64(m.LastPacketsReceived)) - } - if m.RouteTargetIdx != 0 { - n += 2 + sovConnections(uint64(m.RouteTargetIdx)) - } - if m.IsLocalPortEphemeral != 0 { - n += 2 + sovConnections(uint64(m.IsLocalPortEphemeral)) - } - if len(m.DnsStatsByDomainByQueryType) > 0 { - for k, v := range m.DnsStatsByDomainByQueryType { - _ = k - _ = v - l = 0 - if v != nil { - l = v.Size() - l += 1 + sovConnections(uint64(l)) - } - mapEntrySize := 1 + sovConnections(uint64(k)) + l - n += mapEntrySize + 2 + sovConnections(uint64(mapEntrySize)) - } + return mi.MessageOf(x) +} + +// Deprecated: Use Subnet.ProtoReflect.Descriptor instead. +func (*Subnet) Descriptor() ([]byte, []int) { + return file_proto_process_connections_proto_rawDescGZIP(), []int{9} +} + +func (x *Subnet) GetAlias() string { + if x != nil { + return x.Alias } - if len(m.DnsStatsByDomainOffsetByQueryType) > 0 { - for k, v := range m.DnsStatsByDomainOffsetByQueryType { - _ = k - _ = v - l = 0 - if v != nil { - l = v.Size() - l += 1 + sovConnections(uint64(l)) - } - mapEntrySize := 1 + sovConnections(uint64(k)) + l - n += mapEntrySize + 2 + sovConnections(uint64(mapEntrySize)) - } + return "" +} + +type RouteMetadata struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Alias string `protobuf:"bytes,1,opt,name=alias,proto3" json:"alias,omitempty"` + TagIndex int32 `protobuf:"varint,2,opt,name=tagIndex,proto3" json:"tagIndex,omitempty"` + TagsModified int64 `protobuf:"varint,3,opt,name=tagsModified,proto3" json:"tagsModified,omitempty"` + Tags []string `protobuf:"bytes,4,rep,name=tags,proto3" json:"tags,omitempty"` // Used only on the backend +} + +func (x *RouteMetadata) Reset() { + *x = RouteMetadata{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_connections_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - if len(m.Tags) > 0 { - for _, e := range m.Tags { - n += 2 + sovConnections(uint64(e)) +} + +func (x *RouteMetadata) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RouteMetadata) ProtoMessage() {} + +func (x *RouteMetadata) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_connections_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - if m.TagsIdx != 0 { - n += 2 + sovConnections(uint64(m.TagsIdx)) - } - if m.StateIndex != 0 { - n += 2 + sovConnections(uint64(m.StateIndex)) - } - if m.TagsChecksum != 0 { - n += 2 + sovConnections(uint64(m.TagsChecksum)) - } - if m.Protocol != nil { - l = m.Protocol.Size() - n += 2 + l + sovConnections(uint64(l)) - } - l = len(m.DataStreamsAggregations) - if l > 0 { - n += 2 + l + sovConnections(uint64(l)) + return mi.MessageOf(x) +} + +// Deprecated: Use RouteMetadata.ProtoReflect.Descriptor instead. +func (*RouteMetadata) Descriptor() ([]byte, []int) { + return file_proto_process_connections_proto_rawDescGZIP(), []int{10} +} + +func (x *RouteMetadata) GetAlias() string { + if x != nil { + return x.Alias } - l = len(m.Http2Aggregations) - if l > 0 { - n += 2 + l + sovConnections(uint64(l)) + return "" +} + +func (x *RouteMetadata) GetTagIndex() int32 { + if x != nil { + return x.TagIndex } - return n + return 0 } -func (m *ResourceMetadata) Size() (n int) { - var l int - _ = l - l = len(m.Id) - if l > 0 { - n += 1 + l + sovConnections(uint64(l)) +func (x *RouteMetadata) GetTagsModified() int64 { + if x != nil { + return x.TagsModified } - if m.Key != 0 { - n += 1 + sovConnections(uint64(m.Key)) + return 0 +} + +func (x *RouteMetadata) GetTags() []string { + if x != nil { + return x.Tags } - l = len(m.ByteKey) - if l > 0 { - n += 1 + l + sovConnections(uint64(l)) + return nil +} + +type IPTranslation struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ReplSrcIP string `protobuf:"bytes,1,opt,name=replSrcIP,proto3" json:"replSrcIP,omitempty"` + ReplDstIP string `protobuf:"bytes,2,opt,name=replDstIP,proto3" json:"replDstIP,omitempty"` + ReplSrcPort int32 `protobuf:"varint,3,opt,name=replSrcPort,proto3" json:"replSrcPort,omitempty"` + ReplDstPort int32 `protobuf:"varint,4,opt,name=replDstPort,proto3" json:"replDstPort,omitempty"` +} + +func (x *IPTranslation) Reset() { + *x = IPTranslation{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_connections_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - l = len(s) - n += 1 + l + sovConnections(uint64(l)) +} + +func (x *IPTranslation) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*IPTranslation) ProtoMessage() {} + +func (x *IPTranslation) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_connections_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - if m.TagIndex != 0 { - n += 1 + sovConnections(uint64(m.TagIndex)) - } - if m.TagsModified != 0 { - n += 1 + sovConnections(uint64(m.TagsModified)) - } - return n + return mi.MessageOf(x) } -func (m *ConnectionsTelemetry) Size() (n int) { - var l int - _ = l - if m.MonotonicKprobesTriggered != 0 { - n += 1 + sovConnections(uint64(m.MonotonicKprobesTriggered)) - } - if m.MonotonicKprobesMissed != 0 { - n += 1 + sovConnections(uint64(m.MonotonicKprobesMissed)) - } - if m.MonotonicConntrackRegisters != 0 { - n += 1 + sovConnections(uint64(m.MonotonicConntrackRegisters)) - } - if m.MonotonicConntrackRegistersDropped != 0 { - n += 1 + sovConnections(uint64(m.MonotonicConntrackRegistersDropped)) - } - if m.MonotonicDnsPacketsProcessed != 0 { - n += 1 + sovConnections(uint64(m.MonotonicDnsPacketsProcessed)) - } - if m.MonotonicConnsClosed != 0 { - n += 1 + sovConnections(uint64(m.MonotonicConnsClosed)) - } - if m.ConnsBpfMapSize != 0 { - n += 1 + sovConnections(uint64(m.ConnsBpfMapSize)) - } - if m.MonotonicUdpSendsProcessed != 0 { - n += 1 + sovConnections(uint64(m.MonotonicUdpSendsProcessed)) - } - if m.MonotonicUdpSendsMissed != 0 { - n += 1 + sovConnections(uint64(m.MonotonicUdpSendsMissed)) - } - if m.ConntrackSamplingPercent != 0 { - n += 1 + sovConnections(uint64(m.ConntrackSamplingPercent)) - } - if m.DnsStatsDropped != 0 { - n += 1 + sovConnections(uint64(m.DnsStatsDropped)) - } - return n +// Deprecated: Use IPTranslation.ProtoReflect.Descriptor instead. +func (*IPTranslation) Descriptor() ([]byte, []int) { + return file_proto_process_connections_proto_rawDescGZIP(), []int{11} } -func (m *CollectorConnectionsTelemetry) Size() (n int) { - var l int - _ = l - if m.KprobesTriggered != 0 { - n += 1 + sovConnections(uint64(m.KprobesTriggered)) - } - if m.KprobesMissed != 0 { - n += 1 + sovConnections(uint64(m.KprobesMissed)) - } - if m.ConntrackRegisters != 0 { - n += 1 + sovConnections(uint64(m.ConntrackRegisters)) - } - if m.ConntrackRegistersDropped != 0 { - n += 1 + sovConnections(uint64(m.ConntrackRegistersDropped)) - } - if m.DnsPacketsProcessed != 0 { - n += 1 + sovConnections(uint64(m.DnsPacketsProcessed)) - } - if m.ConnsClosed != 0 { - n += 1 + sovConnections(uint64(m.ConnsClosed)) - } - if m.ConnsBpfMapSize != 0 { - n += 1 + sovConnections(uint64(m.ConnsBpfMapSize)) - } - if m.UdpSendsProcessed != 0 { - n += 1 + sovConnections(uint64(m.UdpSendsProcessed)) +func (x *IPTranslation) GetReplSrcIP() string { + if x != nil { + return x.ReplSrcIP } - if m.UdpSendsMissed != 0 { - n += 1 + sovConnections(uint64(m.UdpSendsMissed)) - } - if m.ConntrackSamplingPercent != 0 { - n += 1 + sovConnections(uint64(m.ConntrackSamplingPercent)) - } - if m.DnsStatsDropped != 0 { - n += 1 + sovConnections(uint64(m.DnsStatsDropped)) - } - return n + return "" } -func (m *RuntimeCompilationTelemetry) Size() (n int) { - var l int - _ = l - if m.RuntimeCompilationEnabled { - n += 2 - } - if m.RuntimeCompilationResult != 0 { - n += 1 + sovConnections(uint64(m.RuntimeCompilationResult)) +func (x *IPTranslation) GetReplDstIP() string { + if x != nil { + return x.ReplDstIP } - if m.RuntimeCompilationDuration != 0 { - n += 1 + sovConnections(uint64(m.RuntimeCompilationDuration)) - } - if m.KernelHeaderFetchResult != 0 { - n += 1 + sovConnections(uint64(m.KernelHeaderFetchResult)) - } - return n + return "" } -func (m *AgentConfiguration) Size() (n int) { - var l int - _ = l - if m.NpmEnabled { - n += 2 - } - if m.UsmEnabled { - n += 2 - } - if m.DsmEnabled { - n += 2 +func (x *IPTranslation) GetReplSrcPort() int32 { + if x != nil { + return x.ReplSrcPort } - return n + return 0 } -func (m *Route) Size() (n int) { - var l int - _ = l - if m.Subnet != nil { - l = m.Subnet.Size() - n += 1 + l + sovConnections(uint64(l)) +func (x *IPTranslation) GetReplDstPort() int32 { + if x != nil { + return x.ReplDstPort } - return n + return 0 } -func (m *Subnet) Size() (n int) { - var l int - _ = l - l = len(m.Alias) - if l > 0 { - n += 1 + l + sovConnections(uint64(l)) - } - return n +type Addr struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Ip string `protobuf:"bytes,2,opt,name=ip,proto3" json:"ip,omitempty"` + Port int32 `protobuf:"varint,3,opt,name=port,proto3" json:"port,omitempty"` + ContainerId string `protobuf:"bytes,5,opt,name=containerId,proto3" json:"containerId,omitempty"` // post-resolution field + HostName string `protobuf:"bytes,7,opt,name=hostName,proto3" json:"hostName,omitempty"` // post-resolution field } -func (m *RouteMetadata) Size() (n int) { - var l int - _ = l - l = len(m.Alias) - if l > 0 { - n += 1 + l + sovConnections(uint64(l)) - } - if m.TagIndex != 0 { - n += 1 + sovConnections(uint64(m.TagIndex)) +func (x *Addr) Reset() { + *x = Addr{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_connections_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - if m.TagsModified != 0 { - n += 1 + sovConnections(uint64(m.TagsModified)) - } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - l = len(s) - n += 1 + l + sovConnections(uint64(l)) +} + +func (x *Addr) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Addr) ProtoMessage() {} + +func (x *Addr) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_connections_proto_msgTypes[12] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - return n + return mi.MessageOf(x) } -func (m *IPTranslation) Size() (n int) { - var l int - _ = l - l = len(m.ReplSrcIP) - if l > 0 { - n += 1 + l + sovConnections(uint64(l)) - } - l = len(m.ReplDstIP) - if l > 0 { - n += 1 + l + sovConnections(uint64(l)) - } - if m.ReplSrcPort != 0 { - n += 1 + sovConnections(uint64(m.ReplSrcPort)) - } - if m.ReplDstPort != 0 { - n += 1 + sovConnections(uint64(m.ReplDstPort)) - } - return n +// Deprecated: Use Addr.ProtoReflect.Descriptor instead. +func (*Addr) Descriptor() ([]byte, []int) { + return file_proto_process_connections_proto_rawDescGZIP(), []int{12} } -func (m *Addr) Size() (n int) { - var l int - _ = l - l = len(m.Ip) - if l > 0 { - n += 1 + l + sovConnections(uint64(l)) +func (x *Addr) GetIp() string { + if x != nil { + return x.Ip } - if m.Port != 0 { - n += 1 + sovConnections(uint64(m.Port)) + return "" +} + +func (x *Addr) GetPort() int32 { + if x != nil { + return x.Port } - l = len(m.ContainerId) - if l > 0 { - n += 1 + l + sovConnections(uint64(l)) + return 0 +} + +func (x *Addr) GetContainerId() string { + if x != nil { + return x.ContainerId } - l = len(m.HostName) - if l > 0 { - n += 1 + l + sovConnections(uint64(l)) + return "" +} + +func (x *Addr) GetHostName() string { + if x != nil { + return x.HostName } - return n + return "" } -func (m *ProtocolStack) Size() (n int) { - var l int - _ = l - if len(m.Stack) > 0 { - for _, e := range m.Stack { - n += 1 + sovConnections(uint64(e)) - } +type ProtocolStack struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Stack []ProtocolType `protobuf:"varint,1,rep,packed,name=stack,proto3,enum=datadog.process_agent.ProtocolType" json:"stack,omitempty"` +} + +func (x *ProtocolStack) Reset() { + *x = ProtocolStack{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_connections_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return n } -func (m *DNSEntry) Size() (n int) { - var l int - _ = l - if len(m.Names) > 0 { - for _, s := range m.Names { - l = len(s) - n += 1 + l + sovConnections(uint64(l)) +func (x *ProtocolStack) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ProtocolStack) ProtoMessage() {} + +func (x *ProtocolStack) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_connections_proto_msgTypes[13] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - return n + return mi.MessageOf(x) } -func (m *DNSStats) Size() (n int) { - var l int - _ = l - if m.DnsTimeouts != 0 { - n += 1 + sovConnections(uint64(m.DnsTimeouts)) - } - if m.DnsSuccessLatencySum != 0 { - n += 1 + sovConnections(uint64(m.DnsSuccessLatencySum)) - } - if m.DnsFailureLatencySum != 0 { - n += 1 + sovConnections(uint64(m.DnsFailureLatencySum)) - } - if len(m.DnsCountByRcode) > 0 { - for k, v := range m.DnsCountByRcode { - _ = k - _ = v - mapEntrySize := 1 + sovConnections(uint64(k)) + 1 + sovConnections(uint64(v)) - n += mapEntrySize + 1 + sovConnections(uint64(mapEntrySize)) - } +// Deprecated: Use ProtocolStack.ProtoReflect.Descriptor instead. +func (*ProtocolStack) Descriptor() ([]byte, []int) { + return file_proto_process_connections_proto_rawDescGZIP(), []int{13} +} + +func (x *ProtocolStack) GetStack() []ProtocolType { + if x != nil { + return x.Stack } - return n + return nil } -func (m *DNSStatsByQueryType) Size() (n int) { - var l int - _ = l - if len(m.DnsStatsByQueryType) > 0 { - for k, v := range m.DnsStatsByQueryType { - _ = k - _ = v - l = 0 - if v != nil { - l = v.Size() - l += 1 + sovConnections(uint64(l)) - } - mapEntrySize := 1 + sovConnections(uint64(k)) + l - n += mapEntrySize + 1 + sovConnections(uint64(mapEntrySize)) - } +type DNSEntry struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Names []string `protobuf:"bytes,1,rep,name=names,proto3" json:"names,omitempty"` +} + +func (x *DNSEntry) Reset() { + *x = DNSEntry{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_connections_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return n } -func sovConnections(x uint64) (n int) { - for { - n++ - x >>= 7 - if x == 0 { - break +func (x *DNSEntry) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DNSEntry) ProtoMessage() {} + +func (x *DNSEntry) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_connections_proto_msgTypes[14] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - return n + return mi.MessageOf(x) } -func sozConnections(x uint64) (n int) { - return sovConnections(uint64((x << 1) ^ uint64((int64(x) >> 63)))) + +// Deprecated: Use DNSEntry.ProtoReflect.Descriptor instead. +func (*DNSEntry) Descriptor() ([]byte, []int) { + return file_proto_process_connections_proto_rawDescGZIP(), []int{14} } -func (m *CollectorConnections) Unmarshal(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 ErrIntOverflowConnections - } - 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: CollectorConnections: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CollectorConnections: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field HostName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - 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 ErrInvalidLengthConnections - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.HostName = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Connections", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthConnections - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Connections = append(m.Connections, &Connection{}) - if err := m.Connections[len(m.Connections)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) - } - m.GroupId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.GroupId |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupSize", wireType) - } - m.GroupSize = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.GroupSize |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ResolvedResources", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthConnections - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - var keykey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - keykey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - 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 ErrInvalidLengthConnections - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey := string(data[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - if m.ResolvedResources == nil { - m.ResolvedResources = make(map[string]*ResourceMetadata) - } - if iNdEx < postIndex { - var valuekey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - valuekey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - mapmsglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return ErrInvalidLengthConnections - } - postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { - return ErrInvalidLengthConnections - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue := &ResourceMetadata{} - if err := mapvalue.Unmarshal(data[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - m.ResolvedResources[mapkey] = mapvalue - } else { - var mapvalue *ResourceMetadata - m.ResolvedResources[mapkey] = mapvalue - } - iNdEx = postIndex - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContainerForPid", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthConnections - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - var keykey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - keykey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - var mapkey int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - mapkey |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if m.ContainerForPid == nil { - m.ContainerForPid = make(map[int32]string) - } - if iNdEx < postIndex { - var valuekey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - valuekey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - stringLenmapvalue |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthConnections - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue := string(data[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - m.ContainerForPid[mapkey] = mapvalue - } else { - var mapvalue string - m.ContainerForPid[mapkey] = mapvalue - } - iNdEx = postIndex - case 11: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EncodedTags", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - byteLen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthConnections - } - postIndex := iNdEx + byteLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.EncodedTags = append(m.EncodedTags[:0], data[iNdEx:postIndex]...) - if m.EncodedTags == nil { - m.EncodedTags = []byte{} - } - iNdEx = postIndex - case 12: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NetworkId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - 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 ErrInvalidLengthConnections - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NetworkId = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 14: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EncodedDNS", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - byteLen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthConnections - } - postIndex := iNdEx + byteLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.EncodedDNS = append(m.EncodedDNS[:0], data[iNdEx:postIndex]...) - if m.EncodedDNS == nil { - m.EncodedDNS = []byte{} - } - iNdEx = postIndex - case 15: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ContainerHostType", wireType) - } - m.ContainerHostType = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.ContainerHostType |= (ContainerHostType(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 16: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ConnTelemetry", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthConnections - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ConnTelemetry == nil { - m.ConnTelemetry = &CollectorConnectionsTelemetry{} - } - if err := m.ConnTelemetry.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 17: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Architecture", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - 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 ErrInvalidLengthConnections - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Architecture = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 18: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field KernelVersion", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - 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 ErrInvalidLengthConnections - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.KernelVersion = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 19: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Platform", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - 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 ErrInvalidLengthConnections - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Platform = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 20: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PlatformVersion", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - 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 ErrInvalidLengthConnections - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PlatformVersion = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 21: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CompilationTelemetryByAsset", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthConnections - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - var keykey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - keykey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - 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 ErrInvalidLengthConnections - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey := string(data[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - if m.CompilationTelemetryByAsset == nil { - m.CompilationTelemetryByAsset = make(map[string]*RuntimeCompilationTelemetry) - } - if iNdEx < postIndex { - var valuekey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - valuekey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - mapmsglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return ErrInvalidLengthConnections - } - postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { - return ErrInvalidLengthConnections - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue := &RuntimeCompilationTelemetry{} - if err := mapvalue.Unmarshal(data[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - m.CompilationTelemetryByAsset[mapkey] = mapvalue - } else { - var mapvalue *RuntimeCompilationTelemetry - m.CompilationTelemetryByAsset[mapkey] = mapvalue - } - iNdEx = postIndex - case 30: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Domains", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - 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 ErrInvalidLengthConnections - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Domains = append(m.Domains, string(data[iNdEx:postIndex])) - iNdEx = postIndex - case 31: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Routes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthConnections - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Routes = append(m.Routes, &Route{}) - if err := m.Routes[len(m.Routes)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 34: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RouteMetadata", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthConnections - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RouteMetadata = append(m.RouteMetadata, &RouteMetadata{}) - if err := m.RouteMetadata[len(m.RouteMetadata)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 35: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AgentConfiguration", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthConnections - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.AgentConfiguration == nil { - m.AgentConfiguration = &AgentConfiguration{} - } - if err := m.AgentConfiguration.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 36: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EncodedDomainDatabase", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - byteLen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthConnections - } - postIndex := iNdEx + byteLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.EncodedDomainDatabase = append(m.EncodedDomainDatabase[:0], data[iNdEx:postIndex]...) - if m.EncodedDomainDatabase == nil { - m.EncodedDomainDatabase = []byte{} - } - iNdEx = postIndex - case 37: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EncodedDnsLookups", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - byteLen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthConnections - } - postIndex := iNdEx + byteLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.EncodedDnsLookups = append(m.EncodedDnsLookups[:0], data[iNdEx:postIndex]...) - if m.EncodedDnsLookups == nil { - m.EncodedDnsLookups = []byte{} - } - iNdEx = postIndex - case 38: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EncodedConnectionsTags", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - byteLen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthConnections - } - postIndex := iNdEx + byteLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.EncodedConnectionsTags = append(m.EncodedConnectionsTags[:0], data[iNdEx:postIndex]...) - if m.EncodedConnectionsTags == nil { - m.EncodedConnectionsTags = []byte{} - } - iNdEx = postIndex - case 39: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ConnTelemetryMap", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthConnections - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - var keykey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - keykey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - 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 ErrInvalidLengthConnections - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey := string(data[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - if m.ConnTelemetryMap == nil { - m.ConnTelemetryMap = make(map[string]int64) - } - if iNdEx < postIndex { - var valuekey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - valuekey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - var mapvalue int64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - mapvalue |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.ConnTelemetryMap[mapkey] = mapvalue - } else { - var mapvalue int64 - m.ConnTelemetryMap[mapkey] = mapvalue - } - iNdEx = postIndex - case 40: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ResolvedHostsByName", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthConnections - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - var keykey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - keykey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - 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 ErrInvalidLengthConnections - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey := string(data[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - if m.ResolvedHostsByName == nil { - m.ResolvedHostsByName = make(map[string]*Host) - } - if iNdEx < postIndex { - var valuekey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - valuekey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - mapmsglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return ErrInvalidLengthConnections - } - postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { - return ErrInvalidLengthConnections - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue := &Host{} - if err := mapvalue.Unmarshal(data[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - m.ResolvedHostsByName[mapkey] = mapvalue - } else { - var mapvalue *Host - m.ResolvedHostsByName[mapkey] = mapvalue - } - iNdEx = postIndex - case 41: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field KernelHeaderFetchResult", wireType) - } - m.KernelHeaderFetchResult = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.KernelHeaderFetchResult |= (KernelHeaderFetchResult(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 42: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CORETelemetryByAsset", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthConnections - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - var keykey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - keykey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - 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 ErrInvalidLengthConnections - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey := string(data[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - if m.CORETelemetryByAsset == nil { - m.CORETelemetryByAsset = make(map[string]COREResult) - } - if iNdEx < postIndex { - var valuekey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - valuekey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - var mapvalue COREResult - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - mapvalue |= (COREResult(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.CORETelemetryByAsset[mapkey] = mapvalue - } else { - var mapvalue COREResult - m.CORETelemetryByAsset[mapkey] = mapvalue - } - iNdEx = postIndex - case 44: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PrebuiltEBPFAssets", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - 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 ErrInvalidLengthConnections - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PrebuiltEBPFAssets = append(m.PrebuiltEBPFAssets, string(data[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipConnections(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthConnections - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Connections) Unmarshal(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 ErrIntOverflowConnections - } - 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: Connections: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Connections: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Conns", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthConnections - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Conns = append(m.Conns, &Connection{}) - if err := m.Conns[len(m.Conns)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Dns", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthConnections - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - var keykey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - keykey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - 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 ErrInvalidLengthConnections - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey := string(data[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - if m.Dns == nil { - m.Dns = make(map[string]*DNSEntry) - } - if iNdEx < postIndex { - var valuekey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - valuekey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - mapmsglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return ErrInvalidLengthConnections - } - postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { - return ErrInvalidLengthConnections - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue := &DNSEntry{} - if err := mapvalue.Unmarshal(data[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - m.Dns[mapkey] = mapvalue - } else { - var mapvalue *DNSEntry - m.Dns[mapkey] = mapvalue - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ConnTelemetry", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthConnections - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ConnTelemetry == nil { - m.ConnTelemetry = &ConnectionsTelemetry{} - } - if err := m.ConnTelemetry.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Domains", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - 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 ErrInvalidLengthConnections - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Domains = append(m.Domains, string(data[iNdEx:postIndex])) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Routes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthConnections - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Routes = append(m.Routes, &Route{}) - if err := m.Routes[len(m.Routes)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CompilationTelemetryByAsset", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthConnections - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - var keykey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - keykey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - 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 ErrInvalidLengthConnections - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey := string(data[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - if m.CompilationTelemetryByAsset == nil { - m.CompilationTelemetryByAsset = make(map[string]*RuntimeCompilationTelemetry) - } - if iNdEx < postIndex { - var valuekey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - valuekey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - mapmsglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return ErrInvalidLengthConnections - } - postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { - return ErrInvalidLengthConnections - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue := &RuntimeCompilationTelemetry{} - if err := mapvalue.Unmarshal(data[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - m.CompilationTelemetryByAsset[mapkey] = mapvalue - } else { - var mapvalue *RuntimeCompilationTelemetry - m.CompilationTelemetryByAsset[mapkey] = mapvalue - } - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AgentConfiguration", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthConnections - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.AgentConfiguration == nil { - m.AgentConfiguration = &AgentConfiguration{} - } - if err := m.AgentConfiguration.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 8: - 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 ErrIntOverflowConnections - } - 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 ErrInvalidLengthConnections - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Tags = append(m.Tags, string(data[iNdEx:postIndex])) - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ConnTelemetryMap", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthConnections - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - var keykey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - keykey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - 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 ErrInvalidLengthConnections - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey := string(data[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - if m.ConnTelemetryMap == nil { - m.ConnTelemetryMap = make(map[string]int64) - } - if iNdEx < postIndex { - var valuekey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - valuekey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - var mapvalue int64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - mapvalue |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.ConnTelemetryMap[mapkey] = mapvalue - } else { - var mapvalue int64 - m.ConnTelemetryMap[mapkey] = mapvalue - } - iNdEx = postIndex - case 10: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field KernelHeaderFetchResult", wireType) - } - m.KernelHeaderFetchResult = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.KernelHeaderFetchResult |= (KernelHeaderFetchResult(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 11: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CORETelemetryByAsset", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthConnections - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - var keykey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - keykey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - 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 ErrInvalidLengthConnections - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey := string(data[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - if m.CORETelemetryByAsset == nil { - m.CORETelemetryByAsset = make(map[string]COREResult) - } - if iNdEx < postIndex { - var valuekey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - valuekey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - var mapvalue COREResult - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - mapvalue |= (COREResult(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.CORETelemetryByAsset[mapkey] = mapvalue - } else { - var mapvalue COREResult - m.CORETelemetryByAsset[mapkey] = mapvalue - } - iNdEx = postIndex - case 12: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PrebuiltEBPFAssets", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - 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 ErrInvalidLengthConnections - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PrebuiltEBPFAssets = append(m.PrebuiltEBPFAssets, string(data[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipConnections(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthConnections - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Connection) Unmarshal(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 ErrIntOverflowConnections - } - 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: Connection: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Connection: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Pid", wireType) - } - m.Pid = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.Pid |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Laddr", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthConnections - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Laddr == nil { - m.Laddr = &Addr{} - } - if err := m.Laddr.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Raddr", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthConnections - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Raddr == nil { - m.Raddr = &Addr{} - } - if err := m.Raddr.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 10: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Family", wireType) - } - m.Family = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.Family |= (ConnectionFamily(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 11: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - m.Type = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.Type |= (ConnectionType(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 16: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field LastBytesSent", wireType) - } - m.LastBytesSent = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.LastBytesSent |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 17: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field LastBytesReceived", wireType) - } - m.LastBytesReceived = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.LastBytesReceived |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 18: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field LastRetransmits", wireType) - } - m.LastRetransmits = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.LastRetransmits |= (uint32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 19: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Direction", wireType) - } - m.Direction = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.Direction |= (ConnectionDirection(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 20: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NetNS", wireType) - } - m.NetNS = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.NetNS |= (uint32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 21: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field IpTranslation", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthConnections - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.IpTranslation == nil { - m.IpTranslation = &IPTranslation{} - } - if err := m.IpTranslation.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 22: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Rtt", wireType) - } - m.Rtt = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.Rtt |= (uint32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 23: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RttVar", wireType) - } - m.RttVar = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.RttVar |= (uint32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 24: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IntraHost", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - v |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.IntraHost = bool(v != 0) - case 25: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DnsSuccessfulResponses", wireType) - } - m.DnsSuccessfulResponses = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.DnsSuccessfulResponses |= (uint32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 26: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DnsFailedResponses", wireType) - } - m.DnsFailedResponses = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.DnsFailedResponses |= (uint32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 27: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DnsTimeouts", wireType) - } - m.DnsTimeouts = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.DnsTimeouts |= (uint32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 28: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DnsSuccessLatencySum", wireType) - } - m.DnsSuccessLatencySum = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.DnsSuccessLatencySum |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 29: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DnsFailureLatencySum", wireType) - } - m.DnsFailureLatencySum = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.DnsFailureLatencySum |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 30: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field LastTcpEstablished", wireType) - } - m.LastTcpEstablished = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.LastTcpEstablished |= (uint32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 31: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field LastTcpClosed", wireType) - } - m.LastTcpClosed = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.LastTcpClosed |= (uint32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 32: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RemoteNetworkId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - 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 ErrInvalidLengthConnections - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RemoteNetworkId = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 33: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DnsCountByRcode", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthConnections - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - var keykey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - keykey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - var mapkey uint32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - mapkey |= (uint32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if m.DnsCountByRcode == nil { - m.DnsCountByRcode = make(map[uint32]uint32) - } - if iNdEx < postIndex { - var valuekey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - valuekey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - var mapvalue uint32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - mapvalue |= (uint32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.DnsCountByRcode[mapkey] = mapvalue - } else { - var mapvalue uint32 - m.DnsCountByRcode[mapkey] = mapvalue - } - iNdEx = postIndex - case 34: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DnsStatsByDomain", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthConnections - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - var keykey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - keykey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - var mapkey int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - mapkey |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if m.DnsStatsByDomain == nil { - m.DnsStatsByDomain = make(map[int32]*DNSStats) - } - if iNdEx < postIndex { - var valuekey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - valuekey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - mapmsglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return ErrInvalidLengthConnections - } - postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { - return ErrInvalidLengthConnections - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue := &DNSStats{} - if err := mapvalue.Unmarshal(data[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - m.DnsStatsByDomain[mapkey] = mapvalue - } else { - var mapvalue *DNSStats - m.DnsStatsByDomain[mapkey] = mapvalue - } - iNdEx = postIndex - case 36: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RouteIdx", wireType) - } - m.RouteIdx = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.RouteIdx |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 37: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field HttpAggregations", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - byteLen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthConnections - } - postIndex := iNdEx + byteLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.HttpAggregations = append(m.HttpAggregations[:0], data[iNdEx:postIndex]...) - if m.HttpAggregations == nil { - m.HttpAggregations = []byte{} - } - iNdEx = postIndex - case 38: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field LastPacketsSent", wireType) - } - m.LastPacketsSent = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.LastPacketsSent |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 39: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field LastPacketsReceived", wireType) - } - m.LastPacketsReceived = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.LastPacketsReceived |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 40: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RouteTargetIdx", wireType) - } - m.RouteTargetIdx = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.RouteTargetIdx |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 41: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsLocalPortEphemeral", wireType) - } - m.IsLocalPortEphemeral = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.IsLocalPortEphemeral |= (EphemeralPortState(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 42: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DnsStatsByDomainByQueryType", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthConnections - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - var keykey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - keykey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - var mapkey int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - mapkey |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if m.DnsStatsByDomainByQueryType == nil { - m.DnsStatsByDomainByQueryType = make(map[int32]*DNSStatsByQueryType) - } - if iNdEx < postIndex { - var valuekey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - valuekey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - mapmsglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return ErrInvalidLengthConnections - } - postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { - return ErrInvalidLengthConnections - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue := &DNSStatsByQueryType{} - if err := mapvalue.Unmarshal(data[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - m.DnsStatsByDomainByQueryType[mapkey] = mapvalue - } else { - var mapvalue *DNSStatsByQueryType - m.DnsStatsByDomainByQueryType[mapkey] = mapvalue - } - iNdEx = postIndex - case 43: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DnsStatsByDomainOffsetByQueryType", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthConnections - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - var keykey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - keykey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - var mapkey int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - mapkey |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if m.DnsStatsByDomainOffsetByQueryType == nil { - m.DnsStatsByDomainOffsetByQueryType = make(map[int32]*DNSStatsByQueryType) - } - if iNdEx < postIndex { - var valuekey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - valuekey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - mapmsglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return ErrInvalidLengthConnections - } - postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { - return ErrInvalidLengthConnections - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue := &DNSStatsByQueryType{} - if err := mapvalue.Unmarshal(data[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - m.DnsStatsByDomainOffsetByQueryType[mapkey] = mapvalue - } else { - var mapvalue *DNSStatsByQueryType - m.DnsStatsByDomainOffsetByQueryType[mapkey] = mapvalue - } - iNdEx = postIndex - case 44: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Tags", wireType) - } - var v uint32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - v |= (uint32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.Tags = append(m.Tags, v) - case 45: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TagsIdx", wireType) - } - m.TagsIdx = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.TagsIdx |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 46: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field StateIndex", wireType) - } - m.StateIndex = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.StateIndex |= (uint32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 47: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TagsChecksum", wireType) - } - m.TagsChecksum = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.TagsChecksum |= (uint32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 48: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Protocol", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthConnections - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Protocol == nil { - m.Protocol = &ProtocolStack{} - } - if err := m.Protocol.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 49: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DataStreamsAggregations", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - byteLen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthConnections - } - postIndex := iNdEx + byteLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DataStreamsAggregations = append(m.DataStreamsAggregations[:0], data[iNdEx:postIndex]...) - if m.DataStreamsAggregations == nil { - m.DataStreamsAggregations = []byte{} - } - iNdEx = postIndex - case 50: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Http2Aggregations", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - byteLen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthConnections - } - postIndex := iNdEx + byteLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Http2Aggregations = append(m.Http2Aggregations[:0], data[iNdEx:postIndex]...) - if m.Http2Aggregations == nil { - m.Http2Aggregations = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipConnections(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthConnections - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ResourceMetadata) Unmarshal(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 ErrIntOverflowConnections - } - 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: ResourceMetadata: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ResourceMetadata: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - 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 ErrInvalidLengthConnections - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Id = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) - } - m.Key = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.Key |= (uint32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ByteKey", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - byteLen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthConnections - } - postIndex := iNdEx + byteLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ByteKey = append(m.ByteKey[:0], data[iNdEx:postIndex]...) - if m.ByteKey == nil { - m.ByteKey = []byte{} - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Tags", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - 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 ErrInvalidLengthConnections - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Tags = append(m.Tags, string(data[iNdEx:postIndex])) - iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TagIndex", wireType) - } - m.TagIndex = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.TagIndex |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TagsModified", wireType) - } - m.TagsModified = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.TagsModified |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipConnections(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthConnections - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ConnectionsTelemetry) Unmarshal(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 ErrIntOverflowConnections - } - 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: ConnectionsTelemetry: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ConnectionsTelemetry: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MonotonicKprobesTriggered", wireType) - } - m.MonotonicKprobesTriggered = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.MonotonicKprobesTriggered |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MonotonicKprobesMissed", wireType) - } - m.MonotonicKprobesMissed = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.MonotonicKprobesMissed |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MonotonicConntrackRegisters", wireType) - } - m.MonotonicConntrackRegisters = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.MonotonicConntrackRegisters |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MonotonicConntrackRegistersDropped", wireType) - } - m.MonotonicConntrackRegistersDropped = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.MonotonicConntrackRegistersDropped |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MonotonicDnsPacketsProcessed", wireType) - } - m.MonotonicDnsPacketsProcessed = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.MonotonicDnsPacketsProcessed |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MonotonicConnsClosed", wireType) - } - m.MonotonicConnsClosed = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.MonotonicConnsClosed |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ConnsBpfMapSize", wireType) - } - m.ConnsBpfMapSize = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.ConnsBpfMapSize |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MonotonicUdpSendsProcessed", wireType) - } - m.MonotonicUdpSendsProcessed = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.MonotonicUdpSendsProcessed |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 9: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MonotonicUdpSendsMissed", wireType) - } - m.MonotonicUdpSendsMissed = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.MonotonicUdpSendsMissed |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 10: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ConntrackSamplingPercent", wireType) - } - m.ConntrackSamplingPercent = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.ConntrackSamplingPercent |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 11: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DnsStatsDropped", wireType) - } - m.DnsStatsDropped = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.DnsStatsDropped |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipConnections(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthConnections - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *CollectorConnectionsTelemetry) Unmarshal(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 ErrIntOverflowConnections - } - 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: CollectorConnectionsTelemetry: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CollectorConnectionsTelemetry: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field KprobesTriggered", wireType) - } - m.KprobesTriggered = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.KprobesTriggered |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field KprobesMissed", wireType) - } - m.KprobesMissed = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.KprobesMissed |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ConntrackRegisters", wireType) - } - m.ConntrackRegisters = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.ConntrackRegisters |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ConntrackRegistersDropped", wireType) - } - m.ConntrackRegistersDropped = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.ConntrackRegistersDropped |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DnsPacketsProcessed", wireType) - } - m.DnsPacketsProcessed = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.DnsPacketsProcessed |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ConnsClosed", wireType) - } - m.ConnsClosed = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.ConnsClosed |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ConnsBpfMapSize", wireType) - } - m.ConnsBpfMapSize = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.ConnsBpfMapSize |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field UdpSendsProcessed", wireType) - } - m.UdpSendsProcessed = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.UdpSendsProcessed |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 9: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field UdpSendsMissed", wireType) - } - m.UdpSendsMissed = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.UdpSendsMissed |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 10: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ConntrackSamplingPercent", wireType) - } - m.ConntrackSamplingPercent = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.ConntrackSamplingPercent |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 11: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DnsStatsDropped", wireType) - } - m.DnsStatsDropped = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.DnsStatsDropped |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipConnections(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthConnections - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *DNSEntry) GetNames() []string { + if x != nil { + return x.Names } return nil } -func (m *RuntimeCompilationTelemetry) Unmarshal(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 ErrIntOverflowConnections - } - 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: RuntimeCompilationTelemetry: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RuntimeCompilationTelemetry: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RuntimeCompilationEnabled", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - v |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.RuntimeCompilationEnabled = bool(v != 0) - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RuntimeCompilationResult", wireType) - } - m.RuntimeCompilationResult = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.RuntimeCompilationResult |= (RuntimeCompilationResult(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RuntimeCompilationDuration", wireType) - } - m.RuntimeCompilationDuration = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.RuntimeCompilationDuration |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field KernelHeaderFetchResult", wireType) - } - m.KernelHeaderFetchResult = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.KernelHeaderFetchResult |= (KernelHeaderFetchResult(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipConnections(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthConnections - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil +type DNSStats struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + DnsTimeouts uint32 `protobuf:"varint,1,opt,name=dnsTimeouts,proto3" json:"dnsTimeouts,omitempty"` + DnsSuccessLatencySum uint64 `protobuf:"varint,2,opt,name=dnsSuccessLatencySum,proto3" json:"dnsSuccessLatencySum,omitempty"` + DnsFailureLatencySum uint64 `protobuf:"varint,3,opt,name=dnsFailureLatencySum,proto3" json:"dnsFailureLatencySum,omitempty"` + DnsCountByRcode map[uint32]uint32 `protobuf:"bytes,4,rep,name=dnsCountByRcode,proto3" json:"dnsCountByRcode,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` } -func (m *AgentConfiguration) Unmarshal(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 ErrIntOverflowConnections - } - 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: AgentConfiguration: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AgentConfiguration: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NpmEnabled", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - v |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.NpmEnabled = bool(v != 0) - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field UsmEnabled", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - v |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.UsmEnabled = bool(v != 0) - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DsmEnabled", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - v |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.DsmEnabled = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipConnections(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthConnections - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *DNSStats) Reset() { + *x = DNSStats{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_connections_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -func (m *Route) Unmarshal(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 ErrIntOverflowConnections - } - 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: Route: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Route: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Subnet", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthConnections - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Subnet == nil { - m.Subnet = &Subnet{} - } - if err := m.Subnet.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipConnections(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthConnections - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil +func (x *DNSStats) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Subnet) Unmarshal(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 ErrIntOverflowConnections - } - 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: Subnet: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Subnet: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Alias", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - 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 ErrInvalidLengthConnections - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Alias = string(data[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipConnections(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthConnections - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy + +func (*DNSStats) ProtoMessage() {} + +func (x *DNSStats) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_connections_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) +} - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil +// Deprecated: Use DNSStats.ProtoReflect.Descriptor instead. +func (*DNSStats) Descriptor() ([]byte, []int) { + return file_proto_process_connections_proto_rawDescGZIP(), []int{15} } -func (m *RouteMetadata) Unmarshal(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 ErrIntOverflowConnections - } - 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: RouteMetadata: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RouteMetadata: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Alias", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - 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 ErrInvalidLengthConnections - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Alias = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TagIndex", wireType) - } - m.TagIndex = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.TagIndex |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TagsModified", wireType) - } - m.TagsModified = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.TagsModified |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Tags", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - 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 ErrInvalidLengthConnections - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Tags = append(m.Tags, string(data[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipConnections(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthConnections - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *DNSStats) GetDnsTimeouts() uint32 { + if x != nil { + return x.DnsTimeouts } - return nil + return 0 } -func (m *IPTranslation) Unmarshal(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 ErrIntOverflowConnections - } - 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: IPTranslation: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: IPTranslation: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ReplSrcIP", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - 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 ErrInvalidLengthConnections - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ReplSrcIP = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ReplDstIP", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - 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 ErrInvalidLengthConnections - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ReplDstIP = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReplSrcPort", wireType) - } - m.ReplSrcPort = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.ReplSrcPort |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReplDstPort", wireType) - } - m.ReplDstPort = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.ReplDstPort |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipConnections(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthConnections - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *DNSStats) GetDnsSuccessLatencySum() uint64 { + if x != nil { + return x.DnsSuccessLatencySum } - return nil + return 0 } -func (m *Addr) Unmarshal(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 ErrIntOverflowConnections - } - 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: Addr: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Addr: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Ip", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - 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 ErrInvalidLengthConnections - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Ip = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Port", wireType) - } - m.Port = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.Port |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContainerId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - 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 ErrInvalidLengthConnections - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ContainerId = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field HostName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - 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 ErrInvalidLengthConnections - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.HostName = string(data[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipConnections(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthConnections - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *DNSStats) GetDnsFailureLatencySum() uint64 { + if x != nil { + return x.DnsFailureLatencySum } - return nil + return 0 } -func (m *ProtocolStack) Unmarshal(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 ErrIntOverflowConnections - } - 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: ProtocolStack: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ProtocolStack: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Stack", wireType) - } - var v ProtocolType - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - v |= (ProtocolType(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.Stack = append(m.Stack, v) - default: - iNdEx = preIndex - skippy, err := skipConnections(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthConnections - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *DNSStats) GetDnsCountByRcode() map[uint32]uint32 { + if x != nil { + return x.DnsCountByRcode } return nil } -func (m *DNSEntry) Unmarshal(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 ErrIntOverflowConnections - } - 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: DNSEntry: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DNSEntry: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Names", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - 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 ErrInvalidLengthConnections - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Names = append(m.Names, string(data[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipConnections(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthConnections - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil +type DNSStatsByQueryType struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + DnsStatsByQueryType map[int32]*DNSStats `protobuf:"bytes,1,rep,name=dnsStatsByQueryType,proto3" json:"dnsStatsByQueryType,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` } -func (m *DNSStats) Unmarshal(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 ErrIntOverflowConnections - } - 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: DNSStats: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DNSStats: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DnsTimeouts", wireType) - } - m.DnsTimeouts = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.DnsTimeouts |= (uint32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DnsSuccessLatencySum", wireType) - } - m.DnsSuccessLatencySum = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.DnsSuccessLatencySum |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DnsFailureLatencySum", wireType) - } - m.DnsFailureLatencySum = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.DnsFailureLatencySum |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DnsCountByRcode", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthConnections - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - var keykey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - keykey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - var mapkey uint32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - mapkey |= (uint32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if m.DnsCountByRcode == nil { - m.DnsCountByRcode = make(map[uint32]uint32) - } - if iNdEx < postIndex { - var valuekey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - valuekey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - var mapvalue uint32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - mapvalue |= (uint32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.DnsCountByRcode[mapkey] = mapvalue - } else { - var mapvalue uint32 - m.DnsCountByRcode[mapkey] = mapvalue - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipConnections(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthConnections - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *DNSStatsByQueryType) Reset() { + *x = DNSStatsByQueryType{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_connections_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -func (m *DNSStatsByQueryType) Unmarshal(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 ErrIntOverflowConnections - } - 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: DNSStatsByQueryType: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DNSStatsByQueryType: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DnsStatsByQueryType", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthConnections - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - var keykey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - keykey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - var mapkey int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - mapkey |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if m.DnsStatsByQueryType == nil { - m.DnsStatsByQueryType = make(map[int32]*DNSStats) - } - if iNdEx < postIndex { - var valuekey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - valuekey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowConnections - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - mapmsglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return ErrInvalidLengthConnections - } - postmsgIndex := iNdEx + mapmsglen - if mapmsglen < 0 { - return ErrInvalidLengthConnections - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue := &DNSStats{} - if err := mapvalue.Unmarshal(data[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - m.DnsStatsByQueryType[mapkey] = mapvalue - } else { - var mapvalue *DNSStats - m.DnsStatsByQueryType[mapkey] = mapvalue - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipConnections(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthConnections - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy + +func (x *DNSStatsByQueryType) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DNSStatsByQueryType) ProtoMessage() {} + +func (x *DNSStatsByQueryType) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_connections_proto_msgTypes[16] + 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 DNSStatsByQueryType.ProtoReflect.Descriptor instead. +func (*DNSStatsByQueryType) Descriptor() ([]byte, []int) { + return file_proto_process_connections_proto_rawDescGZIP(), []int{16} +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *DNSStatsByQueryType) GetDnsStatsByQueryType() map[int32]*DNSStats { + if x != nil { + return x.DnsStatsByQueryType } return nil } -func skipConnections(data []byte) (n int, err error) { - l := len(data) - iNdEx := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowConnections - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowConnections - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if data[iNdEx-1] < 0x80 { - break - } - } - return iNdEx, nil - case 1: - iNdEx += 8 - return iNdEx, nil - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowConnections - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - iNdEx += length - if length < 0 { - return 0, ErrInvalidLengthConnections - } - return iNdEx, nil - case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowConnections - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipConnections(data[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - } - return iNdEx, nil - case 4: - return iNdEx, nil - case 5: - iNdEx += 4 - return iNdEx, nil - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - } - panic("unreachable") + +var File_proto_process_connections_proto protoreflect.FileDescriptor + +var file_proto_process_connections_proto_rawDesc = []byte{ + 0x0a, 0x1f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x2f, + 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x12, 0x15, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, + 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x1a, 0x19, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, + 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x2f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x22, 0xc9, 0x13, 0x0a, 0x14, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f, + 0x72, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1a, 0x0a, 0x08, + 0x68, 0x6f, 0x73, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, + 0x68, 0x6f, 0x73, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x65, 0x74, 0x77, + 0x6f, 0x72, 0x6b, 0x49, 0x64, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x65, 0x74, + 0x77, 0x6f, 0x72, 0x6b, 0x49, 0x64, 0x12, 0x43, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x64, 0x61, + 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, + 0x65, 0x6e, 0x74, 0x2e, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0b, + 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x67, + 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x67, 0x72, + 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x69, + 0x7a, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x53, + 0x69, 0x7a, 0x65, 0x12, 0x70, 0x0a, 0x11, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x64, 0x52, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x42, + 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, + 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, + 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x52, 0x65, 0x73, 0x6f, + 0x6c, 0x76, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x45, 0x6e, 0x74, + 0x72, 0x79, 0x52, 0x11, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x73, 0x12, 0x6a, 0x0a, 0x0f, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, + 0x65, 0x72, 0x46, 0x6f, 0x72, 0x50, 0x69, 0x64, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x40, + 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, + 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, + 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x43, 0x6f, 0x6e, 0x74, + 0x61, 0x69, 0x6e, 0x65, 0x72, 0x46, 0x6f, 0x72, 0x50, 0x69, 0x64, 0x45, 0x6e, 0x74, 0x72, 0x79, + 0x52, 0x0f, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x46, 0x6f, 0x72, 0x50, 0x69, + 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x65, 0x64, 0x54, 0x61, 0x67, 0x73, + 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x65, 0x64, 0x54, + 0x61, 0x67, 0x73, 0x12, 0x36, 0x0a, 0x16, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x65, 0x64, 0x43, 0x6f, + 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x54, 0x61, 0x67, 0x73, 0x18, 0x26, 0x20, + 0x01, 0x28, 0x0c, 0x52, 0x16, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x65, 0x64, 0x43, 0x6f, 0x6e, 0x6e, + 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x54, 0x61, 0x67, 0x73, 0x12, 0x56, 0x0a, 0x11, 0x63, + 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x48, 0x6f, 0x73, 0x74, 0x54, 0x79, 0x70, 0x65, + 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x28, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, + 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x43, + 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x48, 0x6f, 0x73, 0x74, 0x54, 0x79, 0x70, 0x65, + 0x52, 0x11, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x48, 0x6f, 0x73, 0x74, 0x54, + 0x79, 0x70, 0x65, 0x12, 0x5a, 0x0a, 0x0d, 0x63, 0x6f, 0x6e, 0x6e, 0x54, 0x65, 0x6c, 0x65, 0x6d, + 0x65, 0x74, 0x72, 0x79, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x64, 0x61, 0x74, + 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, + 0x6e, 0x74, 0x2e, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x43, 0x6f, 0x6e, 0x6e, + 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x54, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, + 0x52, 0x0d, 0x63, 0x6f, 0x6e, 0x6e, 0x54, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x12, + 0x6d, 0x0a, 0x10, 0x63, 0x6f, 0x6e, 0x6e, 0x54, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, + 0x4d, 0x61, 0x70, 0x18, 0x27, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x41, 0x2e, 0x64, 0x61, 0x74, 0x61, + 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, + 0x74, 0x2e, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x43, 0x6f, 0x6e, 0x6e, 0x65, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x43, 0x6f, 0x6e, 0x6e, 0x54, 0x65, 0x6c, 0x65, 0x6d, + 0x65, 0x74, 0x72, 0x79, 0x4d, 0x61, 0x70, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x10, 0x63, 0x6f, + 0x6e, 0x6e, 0x54, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x4d, 0x61, 0x70, 0x12, 0x22, + 0x0a, 0x0c, 0x61, 0x72, 0x63, 0x68, 0x69, 0x74, 0x65, 0x63, 0x74, 0x75, 0x72, 0x65, 0x18, 0x11, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x61, 0x72, 0x63, 0x68, 0x69, 0x74, 0x65, 0x63, 0x74, 0x75, + 0x72, 0x65, 0x12, 0x24, 0x0a, 0x0d, 0x6b, 0x65, 0x72, 0x6e, 0x65, 0x6c, 0x56, 0x65, 0x72, 0x73, + 0x69, 0x6f, 0x6e, 0x18, 0x12, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6b, 0x65, 0x72, 0x6e, 0x65, + 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x6c, 0x61, 0x74, + 0x66, 0x6f, 0x72, 0x6d, 0x18, 0x13, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x6c, 0x61, 0x74, + 0x66, 0x6f, 0x72, 0x6d, 0x12, 0x28, 0x0a, 0x0f, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, + 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x14, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x70, + 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x8e, + 0x01, 0x0a, 0x1b, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x65, + 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x42, 0x79, 0x41, 0x73, 0x73, 0x65, 0x74, 0x18, 0x15, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x4c, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, + 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x43, 0x6f, 0x6c, + 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x65, 0x6c, + 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x42, 0x79, 0x41, 0x73, 0x73, 0x65, 0x74, 0x45, 0x6e, 0x74, + 0x72, 0x79, 0x52, 0x1b, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, + 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x42, 0x79, 0x41, 0x73, 0x73, 0x65, 0x74, 0x12, + 0x68, 0x0a, 0x17, 0x6b, 0x65, 0x72, 0x6e, 0x65, 0x6c, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x46, + 0x65, 0x74, 0x63, 0x68, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x29, 0x20, 0x01, 0x28, 0x0e, + 0x32, 0x2e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, + 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x4b, 0x65, 0x72, 0x6e, 0x65, 0x6c, 0x48, + 0x65, 0x61, 0x64, 0x65, 0x72, 0x46, 0x65, 0x74, 0x63, 0x68, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, + 0x52, 0x17, 0x6b, 0x65, 0x72, 0x6e, 0x65, 0x6c, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x46, 0x65, + 0x74, 0x63, 0x68, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x79, 0x0a, 0x14, 0x43, 0x4f, 0x52, + 0x45, 0x54, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x42, 0x79, 0x41, 0x73, 0x73, 0x65, + 0x74, 0x18, 0x2a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x45, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, + 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, + 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x43, 0x4f, 0x52, 0x45, 0x54, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, + 0x72, 0x79, 0x42, 0x79, 0x41, 0x73, 0x73, 0x65, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x14, + 0x43, 0x4f, 0x52, 0x45, 0x54, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x42, 0x79, 0x41, + 0x73, 0x73, 0x65, 0x74, 0x12, 0x2e, 0x0a, 0x12, 0x50, 0x72, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x74, + 0x45, 0x42, 0x50, 0x46, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x18, 0x2c, 0x20, 0x03, 0x28, 0x09, + 0x52, 0x12, 0x50, 0x72, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x74, 0x45, 0x42, 0x50, 0x46, 0x41, 0x73, + 0x73, 0x65, 0x74, 0x73, 0x12, 0x34, 0x0a, 0x06, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x18, 0x1f, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, + 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x52, 0x6f, 0x75, + 0x74, 0x65, 0x52, 0x06, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x12, 0x4a, 0x0a, 0x0d, 0x72, 0x6f, + 0x75, 0x74, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x22, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x24, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, + 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x4d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x0d, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x4d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x59, 0x0a, 0x12, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x43, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x23, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, + 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x41, 0x67, 0x65, 0x6e, 0x74, + 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x12, 0x61, + 0x67, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x12, 0x1e, 0x0a, 0x0a, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x65, 0x64, 0x44, 0x4e, 0x53, 0x18, + 0x0e, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0a, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x65, 0x64, 0x44, 0x4e, + 0x53, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x18, 0x1e, 0x20, 0x03, + 0x28, 0x09, 0x52, 0x07, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x12, 0x34, 0x0a, 0x15, 0x65, + 0x6e, 0x63, 0x6f, 0x64, 0x65, 0x64, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x44, 0x61, 0x74, 0x61, + 0x62, 0x61, 0x73, 0x65, 0x18, 0x24, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x15, 0x65, 0x6e, 0x63, 0x6f, + 0x64, 0x65, 0x64, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, + 0x65, 0x12, 0x2c, 0x0a, 0x11, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x65, 0x64, 0x44, 0x6e, 0x73, 0x4c, + 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x73, 0x18, 0x25, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x11, 0x65, 0x6e, + 0x63, 0x6f, 0x64, 0x65, 0x64, 0x44, 0x6e, 0x73, 0x4c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x73, 0x12, + 0x76, 0x0a, 0x13, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x64, 0x48, 0x6f, 0x73, 0x74, 0x73, + 0x42, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x28, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x44, 0x2e, 0x64, + 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, + 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x43, 0x6f, + 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, + 0x65, 0x64, 0x48, 0x6f, 0x73, 0x74, 0x73, 0x42, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x45, 0x6e, 0x74, + 0x72, 0x79, 0x52, 0x13, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x64, 0x48, 0x6f, 0x73, 0x74, + 0x73, 0x42, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x1a, 0x6d, 0x0a, 0x16, 0x52, 0x65, 0x73, 0x6f, 0x6c, + 0x76, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 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, 0x3d, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, + 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x05, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x42, 0x0a, 0x14, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, + 0x6e, 0x65, 0x72, 0x46, 0x6f, 0x72, 0x50, 0x69, 0x64, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, + 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 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, 0x1a, 0x43, 0x0a, 0x15, 0x43, 0x6f, + 0x6e, 0x6e, 0x54, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x4d, 0x61, 0x70, 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, 0x03, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, + 0x82, 0x01, 0x0a, 0x20, 0x43, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, + 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x42, 0x79, 0x41, 0x73, 0x73, 0x65, 0x74, 0x45, + 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x48, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, + 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x52, 0x75, + 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x43, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x54, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x6a, 0x0a, 0x19, 0x43, 0x4f, 0x52, 0x45, 0x54, 0x65, 0x6c, 0x65, + 0x6d, 0x65, 0x74, 0x72, 0x79, 0x42, 0x79, 0x41, 0x73, 0x73, 0x65, 0x74, 0x45, 0x6e, 0x74, 0x72, + 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, + 0x6b, 0x65, 0x79, 0x12, 0x37, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, + 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x43, 0x4f, 0x52, 0x45, 0x52, + 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, + 0x1a, 0x63, 0x0a, 0x18, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x64, 0x48, 0x6f, 0x73, 0x74, + 0x73, 0x42, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, + 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x31, + 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, + 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, + 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x48, 0x6f, 0x73, 0x74, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x3a, 0x02, 0x38, 0x01, 0x4a, 0x04, 0x08, 0x01, 0x10, 0x02, 0x4a, 0x04, 0x08, 0x04, 0x10, + 0x05, 0x4a, 0x04, 0x08, 0x07, 0x10, 0x08, 0x4a, 0x04, 0x08, 0x09, 0x10, 0x0a, 0x4a, 0x04, 0x08, + 0x0d, 0x10, 0x0e, 0x4a, 0x04, 0x08, 0x20, 0x10, 0x21, 0x4a, 0x04, 0x08, 0x21, 0x10, 0x22, 0x22, + 0xa0, 0x0a, 0x0a, 0x0b, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, + 0x37, 0x0a, 0x05, 0x63, 0x6f, 0x6e, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, + 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, + 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x52, 0x05, 0x63, 0x6f, 0x6e, 0x6e, 0x73, 0x12, 0x3d, 0x0a, 0x03, 0x64, 0x6e, 0x73, 0x18, + 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, + 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x43, 0x6f, + 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x44, 0x6e, 0x73, 0x45, 0x6e, 0x74, + 0x72, 0x79, 0x52, 0x03, 0x64, 0x6e, 0x73, 0x12, 0x51, 0x0a, 0x0d, 0x63, 0x6f, 0x6e, 0x6e, 0x54, + 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, + 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, + 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x54, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x52, 0x0d, 0x63, 0x6f, 0x6e, + 0x6e, 0x54, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x6f, + 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x64, 0x6f, 0x6d, + 0x61, 0x69, 0x6e, 0x73, 0x12, 0x34, 0x0a, 0x06, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x18, 0x05, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, + 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x52, 0x6f, 0x75, + 0x74, 0x65, 0x52, 0x06, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x12, 0x85, 0x01, 0x0a, 0x1b, 0x63, + 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x65, 0x6c, 0x65, 0x6d, 0x65, + 0x74, 0x72, 0x79, 0x42, 0x79, 0x41, 0x73, 0x73, 0x65, 0x74, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x43, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, + 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x54, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x42, 0x79, 0x41, 0x73, 0x73, 0x65, 0x74, + 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x1b, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x54, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x42, 0x79, 0x41, 0x73, 0x73, + 0x65, 0x74, 0x12, 0x59, 0x0a, 0x12, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, + 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, + 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x12, 0x61, 0x67, 0x65, 0x6e, 0x74, + 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, + 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x74, 0x61, 0x67, + 0x73, 0x12, 0x64, 0x0a, 0x10, 0x63, 0x6f, 0x6e, 0x6e, 0x54, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, + 0x72, 0x79, 0x4d, 0x61, 0x70, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x38, 0x2e, 0x64, 0x61, + 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, + 0x65, 0x6e, 0x74, 0x2e, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, + 0x43, 0x6f, 0x6e, 0x6e, 0x54, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x4d, 0x61, 0x70, + 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x10, 0x63, 0x6f, 0x6e, 0x6e, 0x54, 0x65, 0x6c, 0x65, 0x6d, + 0x65, 0x74, 0x72, 0x79, 0x4d, 0x61, 0x70, 0x12, 0x68, 0x0a, 0x17, 0x6b, 0x65, 0x72, 0x6e, 0x65, + 0x6c, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x46, 0x65, 0x74, 0x63, 0x68, 0x52, 0x65, 0x73, 0x75, + 0x6c, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, + 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, + 0x2e, 0x4b, 0x65, 0x72, 0x6e, 0x65, 0x6c, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x46, 0x65, 0x74, + 0x63, 0x68, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x17, 0x6b, 0x65, 0x72, 0x6e, 0x65, 0x6c, + 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x46, 0x65, 0x74, 0x63, 0x68, 0x52, 0x65, 0x73, 0x75, 0x6c, + 0x74, 0x12, 0x70, 0x0a, 0x14, 0x43, 0x4f, 0x52, 0x45, 0x54, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, + 0x72, 0x79, 0x42, 0x79, 0x41, 0x73, 0x73, 0x65, 0x74, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x3c, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, + 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x2e, 0x43, 0x4f, 0x52, 0x45, 0x54, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, + 0x79, 0x42, 0x79, 0x41, 0x73, 0x73, 0x65, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x14, 0x43, + 0x4f, 0x52, 0x45, 0x54, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x42, 0x79, 0x41, 0x73, + 0x73, 0x65, 0x74, 0x12, 0x2e, 0x0a, 0x12, 0x50, 0x72, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x74, 0x45, + 0x42, 0x50, 0x46, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x18, 0x0c, 0x20, 0x03, 0x28, 0x09, 0x52, + 0x12, 0x50, 0x72, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x74, 0x45, 0x42, 0x50, 0x46, 0x41, 0x73, 0x73, + 0x65, 0x74, 0x73, 0x1a, 0x57, 0x0a, 0x08, 0x44, 0x6e, 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, 0x35, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1f, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, + 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x44, 0x4e, 0x53, 0x45, 0x6e, 0x74, 0x72, + 0x79, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x82, 0x01, 0x0a, + 0x20, 0x43, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x65, 0x6c, 0x65, + 0x6d, 0x65, 0x74, 0x72, 0x79, 0x42, 0x79, 0x41, 0x73, 0x73, 0x65, 0x74, 0x45, 0x6e, 0x74, 0x72, + 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, + 0x6b, 0x65, 0x79, 0x12, 0x48, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, + 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x52, 0x75, 0x6e, 0x74, 0x69, + 0x6d, 0x65, 0x43, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x65, 0x6c, + 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, + 0x01, 0x1a, 0x43, 0x0a, 0x15, 0x43, 0x6f, 0x6e, 0x6e, 0x54, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, + 0x72, 0x79, 0x4d, 0x61, 0x70, 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, 0x03, 0x52, 0x05, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x6a, 0x0a, 0x19, 0x43, 0x4f, 0x52, 0x45, 0x54, 0x65, + 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x42, 0x79, 0x41, 0x73, 0x73, 0x65, 0x74, 0x45, 0x6e, + 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x37, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, + 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x43, 0x4f, 0x52, + 0x45, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, + 0x38, 0x01, 0x22, 0xfd, 0x13, 0x0a, 0x0a, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x70, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, + 0x70, 0x69, 0x64, 0x12, 0x31, 0x0a, 0x05, 0x6c, 0x61, 0x64, 0x64, 0x72, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, + 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x52, + 0x05, 0x6c, 0x61, 0x64, 0x64, 0x72, 0x12, 0x31, 0x0a, 0x05, 0x72, 0x61, 0x64, 0x64, 0x72, 0x18, + 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, + 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x41, 0x64, + 0x64, 0x72, 0x52, 0x05, 0x72, 0x61, 0x64, 0x64, 0x72, 0x12, 0x3f, 0x0a, 0x06, 0x66, 0x61, 0x6d, + 0x69, 0x6c, 0x79, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x27, 0x2e, 0x64, 0x61, 0x74, 0x61, + 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, + 0x74, 0x2e, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x61, 0x6d, 0x69, + 0x6c, 0x79, 0x52, 0x06, 0x66, 0x61, 0x6d, 0x69, 0x6c, 0x79, 0x12, 0x39, 0x0a, 0x04, 0x74, 0x79, + 0x70, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x25, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, + 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, + 0x2e, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, + 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x5d, 0x0a, 0x14, 0x69, 0x73, 0x4c, 0x6f, 0x63, 0x61, 0x6c, + 0x50, 0x6f, 0x72, 0x74, 0x45, 0x70, 0x68, 0x65, 0x6d, 0x65, 0x72, 0x61, 0x6c, 0x18, 0x29, 0x20, + 0x01, 0x28, 0x0e, 0x32, 0x29, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, + 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x45, 0x70, 0x68, 0x65, + 0x6d, 0x65, 0x72, 0x61, 0x6c, 0x50, 0x6f, 0x72, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x14, + 0x69, 0x73, 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x50, 0x6f, 0x72, 0x74, 0x45, 0x70, 0x68, 0x65, 0x6d, + 0x65, 0x72, 0x61, 0x6c, 0x12, 0x24, 0x0a, 0x0d, 0x6c, 0x61, 0x73, 0x74, 0x42, 0x79, 0x74, 0x65, + 0x73, 0x53, 0x65, 0x6e, 0x74, 0x18, 0x10, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x6c, 0x61, 0x73, + 0x74, 0x42, 0x79, 0x74, 0x65, 0x73, 0x53, 0x65, 0x6e, 0x74, 0x12, 0x2c, 0x0a, 0x11, 0x6c, 0x61, + 0x73, 0x74, 0x42, 0x79, 0x74, 0x65, 0x73, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x18, + 0x11, 0x20, 0x01, 0x28, 0x04, 0x52, 0x11, 0x6c, 0x61, 0x73, 0x74, 0x42, 0x79, 0x74, 0x65, 0x73, + 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x12, 0x28, 0x0a, 0x0f, 0x6c, 0x61, 0x73, 0x74, + 0x52, 0x65, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x6d, 0x69, 0x74, 0x73, 0x18, 0x12, 0x20, 0x01, 0x28, + 0x0d, 0x52, 0x0f, 0x6c, 0x61, 0x73, 0x74, 0x52, 0x65, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x6d, 0x69, + 0x74, 0x73, 0x12, 0x48, 0x0a, 0x09, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, + 0x13, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2a, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, + 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x43, 0x6f, + 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x52, 0x09, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x28, 0x0a, 0x0f, + 0x6c, 0x61, 0x73, 0x74, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x53, 0x65, 0x6e, 0x74, 0x18, + 0x26, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0f, 0x6c, 0x61, 0x73, 0x74, 0x50, 0x61, 0x63, 0x6b, 0x65, + 0x74, 0x73, 0x53, 0x65, 0x6e, 0x74, 0x12, 0x30, 0x0a, 0x13, 0x6c, 0x61, 0x73, 0x74, 0x50, 0x61, + 0x63, 0x6b, 0x65, 0x74, 0x73, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x18, 0x27, 0x20, + 0x01, 0x28, 0x04, 0x52, 0x13, 0x6c, 0x61, 0x73, 0x74, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x73, + 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x12, 0x40, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x30, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x64, 0x61, 0x74, + 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, + 0x6e, 0x74, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x53, 0x74, 0x61, 0x63, 0x6b, + 0x52, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x65, + 0x74, 0x4e, 0x53, 0x18, 0x14, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x6e, 0x65, 0x74, 0x4e, 0x53, + 0x12, 0x28, 0x0a, 0x0f, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, + 0x6b, 0x49, 0x64, 0x18, 0x20, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x72, 0x65, 0x6d, 0x6f, 0x74, + 0x65, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x49, 0x64, 0x12, 0x4a, 0x0a, 0x0d, 0x69, 0x70, + 0x54, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x15, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x24, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, + 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x49, 0x50, 0x54, 0x72, 0x61, 0x6e, + 0x73, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0d, 0x69, 0x70, 0x54, 0x72, 0x61, 0x6e, 0x73, + 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x72, 0x74, 0x74, 0x18, 0x16, 0x20, + 0x01, 0x28, 0x0d, 0x52, 0x03, 0x72, 0x74, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x74, 0x74, 0x56, + 0x61, 0x72, 0x18, 0x17, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x72, 0x74, 0x74, 0x56, 0x61, 0x72, + 0x12, 0x1c, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x72, 0x61, 0x48, 0x6f, 0x73, 0x74, 0x18, 0x18, 0x20, + 0x01, 0x28, 0x08, 0x52, 0x09, 0x69, 0x6e, 0x74, 0x72, 0x61, 0x48, 0x6f, 0x73, 0x74, 0x12, 0x36, + 0x0a, 0x16, 0x64, 0x6e, 0x73, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x66, 0x75, 0x6c, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x18, 0x19, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x16, + 0x64, 0x6e, 0x73, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x66, 0x75, 0x6c, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x12, 0x2e, 0x0a, 0x12, 0x64, 0x6e, 0x73, 0x46, 0x61, 0x69, + 0x6c, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x18, 0x1a, 0x20, 0x01, + 0x28, 0x0d, 0x52, 0x12, 0x64, 0x6e, 0x73, 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x6e, 0x73, 0x54, 0x69, 0x6d, + 0x65, 0x6f, 0x75, 0x74, 0x73, 0x18, 0x1b, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0b, 0x64, 0x6e, 0x73, + 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x73, 0x12, 0x32, 0x0a, 0x14, 0x64, 0x6e, 0x73, 0x53, + 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x61, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x53, 0x75, 0x6d, + 0x18, 0x1c, 0x20, 0x01, 0x28, 0x04, 0x52, 0x14, 0x64, 0x6e, 0x73, 0x53, 0x75, 0x63, 0x63, 0x65, + 0x73, 0x73, 0x4c, 0x61, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x53, 0x75, 0x6d, 0x12, 0x32, 0x0a, 0x14, + 0x64, 0x6e, 0x73, 0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x4c, 0x61, 0x74, 0x65, 0x6e, 0x63, + 0x79, 0x53, 0x75, 0x6d, 0x18, 0x1d, 0x20, 0x01, 0x28, 0x04, 0x52, 0x14, 0x64, 0x6e, 0x73, 0x46, + 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x4c, 0x61, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x53, 0x75, 0x6d, + 0x12, 0x60, 0x0a, 0x0f, 0x64, 0x6e, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x79, 0x52, 0x63, + 0x6f, 0x64, 0x65, 0x18, 0x21, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x36, 0x2e, 0x64, 0x61, 0x74, 0x61, + 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, + 0x74, 0x2e, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x44, 0x6e, 0x73, + 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x79, 0x52, 0x63, 0x6f, 0x64, 0x65, 0x45, 0x6e, 0x74, 0x72, + 0x79, 0x52, 0x0f, 0x64, 0x6e, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x79, 0x52, 0x63, 0x6f, + 0x64, 0x65, 0x12, 0x2e, 0x0a, 0x12, 0x6c, 0x61, 0x73, 0x74, 0x54, 0x63, 0x70, 0x45, 0x73, 0x74, + 0x61, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x64, 0x18, 0x1e, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x12, + 0x6c, 0x61, 0x73, 0x74, 0x54, 0x63, 0x70, 0x45, 0x73, 0x74, 0x61, 0x62, 0x6c, 0x69, 0x73, 0x68, + 0x65, 0x64, 0x12, 0x24, 0x0a, 0x0d, 0x6c, 0x61, 0x73, 0x74, 0x54, 0x63, 0x70, 0x43, 0x6c, 0x6f, + 0x73, 0x65, 0x64, 0x18, 0x1f, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0d, 0x6c, 0x61, 0x73, 0x74, 0x54, + 0x63, 0x70, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x64, 0x12, 0x63, 0x0a, 0x10, 0x64, 0x6e, 0x73, 0x53, + 0x74, 0x61, 0x74, 0x73, 0x42, 0x79, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x22, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, + 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x43, 0x6f, 0x6e, 0x6e, 0x65, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x44, 0x6e, 0x73, 0x53, 0x74, 0x61, 0x74, 0x73, 0x42, 0x79, + 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x10, 0x64, 0x6e, 0x73, + 0x53, 0x74, 0x61, 0x74, 0x73, 0x42, 0x79, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x84, 0x01, + 0x0a, 0x1b, 0x64, 0x6e, 0x73, 0x53, 0x74, 0x61, 0x74, 0x73, 0x42, 0x79, 0x44, 0x6f, 0x6d, 0x61, + 0x69, 0x6e, 0x42, 0x79, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x79, 0x70, 0x65, 0x18, 0x2a, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x42, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, + 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x43, 0x6f, 0x6e, 0x6e, + 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x44, 0x6e, 0x73, 0x53, 0x74, 0x61, 0x74, 0x73, 0x42, + 0x79, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x42, 0x79, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x79, + 0x70, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x1b, 0x64, 0x6e, 0x73, 0x53, 0x74, 0x61, 0x74, + 0x73, 0x42, 0x79, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x42, 0x79, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x54, 0x79, 0x70, 0x65, 0x12, 0x96, 0x01, 0x0a, 0x21, 0x64, 0x6e, 0x73, 0x53, 0x74, 0x61, 0x74, + 0x73, 0x42, 0x79, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x42, + 0x79, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x79, 0x70, 0x65, 0x18, 0x2b, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x48, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, + 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x2e, 0x44, 0x6e, 0x73, 0x53, 0x74, 0x61, 0x74, 0x73, 0x42, 0x79, 0x44, 0x6f, + 0x6d, 0x61, 0x69, 0x6e, 0x4f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x42, 0x79, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x54, 0x79, 0x70, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x21, 0x64, 0x6e, 0x73, 0x53, + 0x74, 0x61, 0x74, 0x73, 0x42, 0x79, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4f, 0x66, 0x66, 0x73, + 0x65, 0x74, 0x42, 0x79, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1a, 0x0a, + 0x08, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x49, 0x64, 0x78, 0x18, 0x24, 0x20, 0x01, 0x28, 0x05, 0x52, + 0x08, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x49, 0x64, 0x78, 0x12, 0x26, 0x0a, 0x0e, 0x72, 0x6f, 0x75, + 0x74, 0x65, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x49, 0x64, 0x78, 0x18, 0x28, 0x20, 0x01, 0x28, + 0x05, 0x52, 0x0e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x49, 0x64, + 0x78, 0x12, 0x2a, 0x0a, 0x10, 0x68, 0x74, 0x74, 0x70, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x25, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x10, 0x68, 0x74, 0x74, + 0x70, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x12, 0x0a, + 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x2c, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x04, 0x74, 0x61, 0x67, + 0x73, 0x12, 0x18, 0x0a, 0x07, 0x74, 0x61, 0x67, 0x73, 0x49, 0x64, 0x78, 0x18, 0x2d, 0x20, 0x01, + 0x28, 0x05, 0x52, 0x07, 0x74, 0x61, 0x67, 0x73, 0x49, 0x64, 0x78, 0x12, 0x22, 0x0a, 0x0c, 0x74, + 0x61, 0x67, 0x73, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, 0x18, 0x2f, 0x20, 0x01, 0x28, + 0x0d, 0x52, 0x0c, 0x74, 0x61, 0x67, 0x73, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, 0x12, + 0x1e, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x2e, 0x20, + 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x73, 0x74, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, + 0x38, 0x0a, 0x17, 0x64, 0x61, 0x74, 0x61, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x73, 0x41, 0x67, + 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x31, 0x20, 0x01, 0x28, 0x0c, + 0x52, 0x17, 0x64, 0x61, 0x74, 0x61, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x73, 0x41, 0x67, 0x67, + 0x72, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x2c, 0x0a, 0x11, 0x68, 0x74, 0x74, + 0x70, 0x32, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x32, + 0x20, 0x01, 0x28, 0x0c, 0x52, 0x11, 0x68, 0x74, 0x74, 0x70, 0x32, 0x41, 0x67, 0x67, 0x72, 0x65, + 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x42, 0x0a, 0x14, 0x44, 0x6e, 0x73, 0x43, 0x6f, + 0x75, 0x6e, 0x74, 0x42, 0x79, 0x52, 0x63, 0x6f, 0x64, 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, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, + 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x64, 0x0a, 0x15, 0x44, + 0x6e, 0x73, 0x53, 0x74, 0x61, 0x74, 0x73, 0x42, 0x79, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x45, + 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x05, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x35, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, + 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x44, 0x4e, + 0x53, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, + 0x01, 0x1a, 0x7a, 0x0a, 0x20, 0x44, 0x6e, 0x73, 0x53, 0x74, 0x61, 0x74, 0x73, 0x42, 0x79, 0x44, + 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x42, 0x79, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x79, 0x70, 0x65, + 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x05, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x40, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, + 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x44, + 0x4e, 0x53, 0x53, 0x74, 0x61, 0x74, 0x73, 0x42, 0x79, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x79, + 0x70, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x80, 0x01, + 0x0a, 0x26, 0x44, 0x6e, 0x73, 0x53, 0x74, 0x61, 0x74, 0x73, 0x42, 0x79, 0x44, 0x6f, 0x6d, 0x61, + 0x69, 0x6e, 0x4f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x42, 0x79, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, + 0x79, 0x70, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x40, 0x0a, 0x05, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x64, 0x61, 0x74, 0x61, + 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, + 0x74, 0x2e, 0x44, 0x4e, 0x53, 0x53, 0x74, 0x61, 0x74, 0x73, 0x42, 0x79, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x54, 0x79, 0x70, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, + 0x4a, 0x04, 0x08, 0x02, 0x10, 0x03, 0x4a, 0x04, 0x08, 0x03, 0x10, 0x04, 0x4a, 0x04, 0x08, 0x04, + 0x10, 0x05, 0x4a, 0x04, 0x08, 0x07, 0x10, 0x08, 0x4a, 0x04, 0x08, 0x08, 0x10, 0x09, 0x4a, 0x04, + 0x08, 0x09, 0x10, 0x0a, 0x4a, 0x04, 0x08, 0x0c, 0x10, 0x0d, 0x4a, 0x04, 0x08, 0x0d, 0x10, 0x0e, + 0x4a, 0x04, 0x08, 0x0e, 0x10, 0x0f, 0x4a, 0x04, 0x08, 0x0f, 0x10, 0x10, 0x4a, 0x04, 0x08, 0x23, + 0x10, 0x24, 0x22, 0xa2, 0x01, 0x0a, 0x10, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x62, 0x79, 0x74, + 0x65, 0x4b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x62, 0x79, 0x74, 0x65, + 0x4b, 0x65, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, + 0x09, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x74, 0x61, 0x67, 0x49, 0x6e, + 0x64, 0x65, 0x78, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x74, 0x61, 0x67, 0x49, 0x6e, + 0x64, 0x65, 0x78, 0x12, 0x22, 0x0a, 0x0c, 0x74, 0x61, 0x67, 0x73, 0x4d, 0x6f, 0x64, 0x69, 0x66, + 0x69, 0x65, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x74, 0x61, 0x67, 0x73, 0x4d, + 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, 0x22, 0xa0, 0x05, 0x0a, 0x14, 0x43, 0x6f, 0x6e, 0x6e, + 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x54, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, + 0x12, 0x3c, 0x0a, 0x19, 0x6d, 0x6f, 0x6e, 0x6f, 0x74, 0x6f, 0x6e, 0x69, 0x63, 0x4b, 0x70, 0x72, + 0x6f, 0x62, 0x65, 0x73, 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x65, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x03, 0x52, 0x19, 0x6d, 0x6f, 0x6e, 0x6f, 0x74, 0x6f, 0x6e, 0x69, 0x63, 0x4b, 0x70, + 0x72, 0x6f, 0x62, 0x65, 0x73, 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x65, 0x64, 0x12, 0x36, + 0x0a, 0x16, 0x6d, 0x6f, 0x6e, 0x6f, 0x74, 0x6f, 0x6e, 0x69, 0x63, 0x4b, 0x70, 0x72, 0x6f, 0x62, + 0x65, 0x73, 0x4d, 0x69, 0x73, 0x73, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x16, + 0x6d, 0x6f, 0x6e, 0x6f, 0x74, 0x6f, 0x6e, 0x69, 0x63, 0x4b, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x73, + 0x4d, 0x69, 0x73, 0x73, 0x65, 0x64, 0x12, 0x40, 0x0a, 0x1b, 0x6d, 0x6f, 0x6e, 0x6f, 0x74, 0x6f, + 0x6e, 0x69, 0x63, 0x43, 0x6f, 0x6e, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x6b, 0x52, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x65, 0x72, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x1b, 0x6d, 0x6f, 0x6e, + 0x6f, 0x74, 0x6f, 0x6e, 0x69, 0x63, 0x43, 0x6f, 0x6e, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x6b, 0x52, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x73, 0x12, 0x4e, 0x0a, 0x22, 0x6d, 0x6f, 0x6e, 0x6f, + 0x74, 0x6f, 0x6e, 0x69, 0x63, 0x43, 0x6f, 0x6e, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x6b, 0x52, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x73, 0x44, 0x72, 0x6f, 0x70, 0x70, 0x65, 0x64, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x22, 0x6d, 0x6f, 0x6e, 0x6f, 0x74, 0x6f, 0x6e, 0x69, 0x63, 0x43, + 0x6f, 0x6e, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x6b, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, + 0x73, 0x44, 0x72, 0x6f, 0x70, 0x70, 0x65, 0x64, 0x12, 0x42, 0x0a, 0x1c, 0x6d, 0x6f, 0x6e, 0x6f, + 0x74, 0x6f, 0x6e, 0x69, 0x63, 0x44, 0x6e, 0x73, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x50, + 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x1c, + 0x6d, 0x6f, 0x6e, 0x6f, 0x74, 0x6f, 0x6e, 0x69, 0x63, 0x44, 0x6e, 0x73, 0x50, 0x61, 0x63, 0x6b, + 0x65, 0x74, 0x73, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x65, 0x64, 0x12, 0x32, 0x0a, 0x14, + 0x6d, 0x6f, 0x6e, 0x6f, 0x74, 0x6f, 0x6e, 0x69, 0x63, 0x43, 0x6f, 0x6e, 0x6e, 0x73, 0x43, 0x6c, + 0x6f, 0x73, 0x65, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x14, 0x6d, 0x6f, 0x6e, 0x6f, + 0x74, 0x6f, 0x6e, 0x69, 0x63, 0x43, 0x6f, 0x6e, 0x6e, 0x73, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x64, + 0x12, 0x28, 0x0a, 0x0f, 0x63, 0x6f, 0x6e, 0x6e, 0x73, 0x42, 0x70, 0x66, 0x4d, 0x61, 0x70, 0x53, + 0x69, 0x7a, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x63, 0x6f, 0x6e, 0x6e, 0x73, + 0x42, 0x70, 0x66, 0x4d, 0x61, 0x70, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x3e, 0x0a, 0x1a, 0x6d, 0x6f, + 0x6e, 0x6f, 0x74, 0x6f, 0x6e, 0x69, 0x63, 0x55, 0x64, 0x70, 0x53, 0x65, 0x6e, 0x64, 0x73, 0x50, + 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x65, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x1a, + 0x6d, 0x6f, 0x6e, 0x6f, 0x74, 0x6f, 0x6e, 0x69, 0x63, 0x55, 0x64, 0x70, 0x53, 0x65, 0x6e, 0x64, + 0x73, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x65, 0x64, 0x12, 0x38, 0x0a, 0x17, 0x6d, 0x6f, + 0x6e, 0x6f, 0x74, 0x6f, 0x6e, 0x69, 0x63, 0x55, 0x64, 0x70, 0x53, 0x65, 0x6e, 0x64, 0x73, 0x4d, + 0x69, 0x73, 0x73, 0x65, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x03, 0x52, 0x17, 0x6d, 0x6f, 0x6e, + 0x6f, 0x74, 0x6f, 0x6e, 0x69, 0x63, 0x55, 0x64, 0x70, 0x53, 0x65, 0x6e, 0x64, 0x73, 0x4d, 0x69, + 0x73, 0x73, 0x65, 0x64, 0x12, 0x3a, 0x0a, 0x18, 0x63, 0x6f, 0x6e, 0x6e, 0x74, 0x72, 0x61, 0x63, + 0x6b, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x69, 0x6e, 0x67, 0x50, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, + 0x18, 0x0a, 0x20, 0x01, 0x28, 0x03, 0x52, 0x18, 0x63, 0x6f, 0x6e, 0x6e, 0x74, 0x72, 0x61, 0x63, + 0x6b, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x69, 0x6e, 0x67, 0x50, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, + 0x12, 0x28, 0x0a, 0x0f, 0x64, 0x6e, 0x73, 0x53, 0x74, 0x61, 0x74, 0x73, 0x44, 0x72, 0x6f, 0x70, + 0x70, 0x65, 0x64, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x64, 0x6e, 0x73, 0x53, 0x74, + 0x61, 0x74, 0x73, 0x44, 0x72, 0x6f, 0x70, 0x70, 0x65, 0x64, 0x22, 0x99, 0x04, 0x0a, 0x1d, 0x43, + 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x54, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x12, 0x2a, 0x0a, 0x10, + 0x6b, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x73, 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x65, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x6b, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x73, 0x54, + 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x65, 0x64, 0x12, 0x24, 0x0a, 0x0d, 0x6b, 0x70, 0x72, 0x6f, + 0x62, 0x65, 0x73, 0x4d, 0x69, 0x73, 0x73, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, + 0x0d, 0x6b, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x73, 0x4d, 0x69, 0x73, 0x73, 0x65, 0x64, 0x12, 0x2e, + 0x0a, 0x12, 0x63, 0x6f, 0x6e, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x6b, 0x52, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x65, 0x72, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x12, 0x63, 0x6f, 0x6e, 0x6e, + 0x74, 0x72, 0x61, 0x63, 0x6b, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x73, 0x12, 0x3c, + 0x0a, 0x19, 0x63, 0x6f, 0x6e, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x6b, 0x52, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x65, 0x72, 0x73, 0x44, 0x72, 0x6f, 0x70, 0x70, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x19, 0x63, 0x6f, 0x6e, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x6b, 0x52, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x65, 0x72, 0x73, 0x44, 0x72, 0x6f, 0x70, 0x70, 0x65, 0x64, 0x12, 0x30, 0x0a, 0x13, + 0x64, 0x6e, 0x73, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, + 0x73, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x13, 0x64, 0x6e, 0x73, 0x50, 0x61, + 0x63, 0x6b, 0x65, 0x74, 0x73, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x65, 0x64, 0x12, 0x20, + 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x6e, 0x73, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x64, 0x18, 0x06, 0x20, + 0x01, 0x28, 0x03, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x6e, 0x73, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x64, + 0x12, 0x28, 0x0a, 0x0f, 0x63, 0x6f, 0x6e, 0x6e, 0x73, 0x42, 0x70, 0x66, 0x4d, 0x61, 0x70, 0x53, + 0x69, 0x7a, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x63, 0x6f, 0x6e, 0x6e, 0x73, + 0x42, 0x70, 0x66, 0x4d, 0x61, 0x70, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x2c, 0x0a, 0x11, 0x75, 0x64, + 0x70, 0x53, 0x65, 0x6e, 0x64, 0x73, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x65, 0x64, 0x18, + 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x11, 0x75, 0x64, 0x70, 0x53, 0x65, 0x6e, 0x64, 0x73, 0x50, + 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x65, 0x64, 0x12, 0x26, 0x0a, 0x0e, 0x75, 0x64, 0x70, 0x53, + 0x65, 0x6e, 0x64, 0x73, 0x4d, 0x69, 0x73, 0x73, 0x65, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x03, + 0x52, 0x0e, 0x75, 0x64, 0x70, 0x53, 0x65, 0x6e, 0x64, 0x73, 0x4d, 0x69, 0x73, 0x73, 0x65, 0x64, + 0x12, 0x3a, 0x0a, 0x18, 0x63, 0x6f, 0x6e, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x6b, 0x53, 0x61, 0x6d, + 0x70, 0x6c, 0x69, 0x6e, 0x67, 0x50, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x18, 0x0a, 0x20, 0x01, + 0x28, 0x03, 0x52, 0x18, 0x63, 0x6f, 0x6e, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x6b, 0x53, 0x61, 0x6d, + 0x70, 0x6c, 0x69, 0x6e, 0x67, 0x50, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x12, 0x28, 0x0a, 0x0f, + 0x64, 0x6e, 0x73, 0x53, 0x74, 0x61, 0x74, 0x73, 0x44, 0x72, 0x6f, 0x70, 0x70, 0x65, 0x64, 0x18, + 0x0b, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x64, 0x6e, 0x73, 0x53, 0x74, 0x61, 0x74, 0x73, 0x44, + 0x72, 0x6f, 0x70, 0x70, 0x65, 0x64, 0x22, 0xf2, 0x02, 0x0a, 0x1b, 0x52, 0x75, 0x6e, 0x74, 0x69, + 0x6d, 0x65, 0x43, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x65, 0x6c, + 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x12, 0x3c, 0x0a, 0x19, 0x72, 0x75, 0x6e, 0x74, 0x69, 0x6d, + 0x65, 0x43, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x61, 0x62, + 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x19, 0x72, 0x75, 0x6e, 0x74, 0x69, + 0x6d, 0x65, 0x43, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x61, + 0x62, 0x6c, 0x65, 0x64, 0x12, 0x6b, 0x0a, 0x18, 0x72, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x43, + 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2f, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, + 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x52, + 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x43, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x18, 0x72, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, + 0x43, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, + 0x74, 0x12, 0x3e, 0x0a, 0x1a, 0x72, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x43, 0x6f, 0x6d, 0x70, + 0x69, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x1a, 0x72, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x43, 0x6f, + 0x6d, 0x70, 0x69, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x12, 0x68, 0x0a, 0x17, 0x6b, 0x65, 0x72, 0x6e, 0x65, 0x6c, 0x48, 0x65, 0x61, 0x64, 0x65, + 0x72, 0x46, 0x65, 0x74, 0x63, 0x68, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x0e, 0x32, 0x2e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, + 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x4b, 0x65, 0x72, 0x6e, 0x65, + 0x6c, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x46, 0x65, 0x74, 0x63, 0x68, 0x52, 0x65, 0x73, 0x75, + 0x6c, 0x74, 0x52, 0x17, 0x6b, 0x65, 0x72, 0x6e, 0x65, 0x6c, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, + 0x46, 0x65, 0x74, 0x63, 0x68, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x74, 0x0a, 0x12, 0x41, + 0x67, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x12, 0x1e, 0x0a, 0x0a, 0x6e, 0x70, 0x6d, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x6e, 0x70, 0x6d, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, + 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x75, 0x73, 0x6d, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x75, 0x73, 0x6d, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, + 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x64, 0x73, 0x6d, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x64, 0x73, 0x6d, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, + 0x64, 0x22, 0x3e, 0x0a, 0x05, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x12, 0x35, 0x0a, 0x06, 0x73, 0x75, + 0x62, 0x6e, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x64, 0x61, 0x74, + 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, + 0x6e, 0x74, 0x2e, 0x53, 0x75, 0x62, 0x6e, 0x65, 0x74, 0x52, 0x06, 0x73, 0x75, 0x62, 0x6e, 0x65, + 0x74, 0x22, 0x1e, 0x0a, 0x06, 0x53, 0x75, 0x62, 0x6e, 0x65, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x61, + 0x6c, 0x69, 0x61, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x6c, 0x69, 0x61, + 0x73, 0x22, 0x79, 0x0a, 0x0d, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x05, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x74, 0x61, 0x67, 0x49, + 0x6e, 0x64, 0x65, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x74, 0x61, 0x67, 0x49, + 0x6e, 0x64, 0x65, 0x78, 0x12, 0x22, 0x0a, 0x0c, 0x74, 0x61, 0x67, 0x73, 0x4d, 0x6f, 0x64, 0x69, + 0x66, 0x69, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x74, 0x61, 0x67, 0x73, + 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, + 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x22, 0x8f, 0x01, 0x0a, + 0x0d, 0x49, 0x50, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1c, + 0x0a, 0x09, 0x72, 0x65, 0x70, 0x6c, 0x53, 0x72, 0x63, 0x49, 0x50, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x09, 0x72, 0x65, 0x70, 0x6c, 0x53, 0x72, 0x63, 0x49, 0x50, 0x12, 0x1c, 0x0a, 0x09, + 0x72, 0x65, 0x70, 0x6c, 0x44, 0x73, 0x74, 0x49, 0x50, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x09, 0x72, 0x65, 0x70, 0x6c, 0x44, 0x73, 0x74, 0x49, 0x50, 0x12, 0x20, 0x0a, 0x0b, 0x72, 0x65, + 0x70, 0x6c, 0x53, 0x72, 0x63, 0x50, 0x6f, 0x72, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, + 0x0b, 0x72, 0x65, 0x70, 0x6c, 0x53, 0x72, 0x63, 0x50, 0x6f, 0x72, 0x74, 0x12, 0x20, 0x0a, 0x0b, + 0x72, 0x65, 0x70, 0x6c, 0x44, 0x73, 0x74, 0x50, 0x6f, 0x72, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x05, 0x52, 0x0b, 0x72, 0x65, 0x70, 0x6c, 0x44, 0x73, 0x74, 0x50, 0x6f, 0x72, 0x74, 0x22, 0x7a, + 0x0a, 0x04, 0x41, 0x64, 0x64, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x70, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x02, 0x69, 0x70, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, + 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, + 0x68, 0x6f, 0x73, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, + 0x68, 0x6f, 0x73, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x4a, 0x04, 0x08, 0x01, 0x10, 0x02, 0x4a, 0x04, + 0x08, 0x04, 0x10, 0x05, 0x4a, 0x04, 0x08, 0x06, 0x10, 0x07, 0x22, 0x4a, 0x0a, 0x0d, 0x50, 0x72, + 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x12, 0x39, 0x0a, 0x05, 0x73, + 0x74, 0x61, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x23, 0x2e, 0x64, 0x61, 0x74, + 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, + 0x6e, 0x74, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x52, + 0x05, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x22, 0x20, 0x0a, 0x08, 0x44, 0x4e, 0x53, 0x45, 0x6e, 0x74, + 0x72, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x09, 0x52, 0x05, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x22, 0xb8, 0x02, 0x0a, 0x08, 0x44, 0x4e, 0x53, + 0x53, 0x74, 0x61, 0x74, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x6e, 0x73, 0x54, 0x69, 0x6d, 0x65, + 0x6f, 0x75, 0x74, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0b, 0x64, 0x6e, 0x73, 0x54, + 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x73, 0x12, 0x32, 0x0a, 0x14, 0x64, 0x6e, 0x73, 0x53, 0x75, + 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x61, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x53, 0x75, 0x6d, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x14, 0x64, 0x6e, 0x73, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, + 0x73, 0x4c, 0x61, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x53, 0x75, 0x6d, 0x12, 0x32, 0x0a, 0x14, 0x64, + 0x6e, 0x73, 0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x4c, 0x61, 0x74, 0x65, 0x6e, 0x63, 0x79, + 0x53, 0x75, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x14, 0x64, 0x6e, 0x73, 0x46, 0x61, + 0x69, 0x6c, 0x75, 0x72, 0x65, 0x4c, 0x61, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x53, 0x75, 0x6d, 0x12, + 0x5e, 0x0a, 0x0f, 0x64, 0x6e, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x79, 0x52, 0x63, 0x6f, + 0x64, 0x65, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, + 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, + 0x2e, 0x44, 0x4e, 0x53, 0x53, 0x74, 0x61, 0x74, 0x73, 0x2e, 0x44, 0x6e, 0x73, 0x43, 0x6f, 0x75, + 0x6e, 0x74, 0x42, 0x79, 0x52, 0x63, 0x6f, 0x64, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0f, + 0x64, 0x6e, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x79, 0x52, 0x63, 0x6f, 0x64, 0x65, 0x1a, + 0x42, 0x0a, 0x14, 0x44, 0x6e, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x79, 0x52, 0x63, 0x6f, + 0x64, 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, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, + 0x02, 0x38, 0x01, 0x22, 0xf5, 0x01, 0x0a, 0x13, 0x44, 0x4e, 0x53, 0x53, 0x74, 0x61, 0x74, 0x73, + 0x42, 0x79, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x79, 0x70, 0x65, 0x12, 0x75, 0x0a, 0x13, 0x64, + 0x6e, 0x73, 0x53, 0x74, 0x61, 0x74, 0x73, 0x42, 0x79, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x79, + 0x70, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x43, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, + 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, + 0x2e, 0x44, 0x4e, 0x53, 0x53, 0x74, 0x61, 0x74, 0x73, 0x42, 0x79, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x54, 0x79, 0x70, 0x65, 0x2e, 0x44, 0x6e, 0x73, 0x53, 0x74, 0x61, 0x74, 0x73, 0x42, 0x79, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x54, 0x79, 0x70, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x13, 0x64, + 0x6e, 0x73, 0x53, 0x74, 0x61, 0x74, 0x73, 0x42, 0x79, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x79, + 0x70, 0x65, 0x1a, 0x67, 0x0a, 0x18, 0x44, 0x6e, 0x73, 0x53, 0x74, 0x61, 0x74, 0x73, 0x42, 0x79, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x79, 0x70, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, + 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x6b, 0x65, 0x79, + 0x12, 0x35, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1f, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, + 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x44, 0x4e, 0x53, 0x53, 0x74, 0x61, 0x74, 0x73, + 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x2a, 0x92, 0x02, 0x0a, 0x18, + 0x52, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x43, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x10, 0x0a, 0x0c, 0x4e, 0x6f, 0x74, 0x41, + 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x65, 0x64, 0x10, 0x00, 0x12, 0x16, 0x0a, 0x12, 0x43, 0x6f, + 0x6d, 0x70, 0x69, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, + 0x10, 0x01, 0x12, 0x14, 0x0a, 0x10, 0x4b, 0x65, 0x72, 0x6e, 0x65, 0x6c, 0x56, 0x65, 0x72, 0x73, + 0x69, 0x6f, 0x6e, 0x45, 0x72, 0x72, 0x10, 0x02, 0x12, 0x15, 0x0a, 0x11, 0x56, 0x65, 0x72, 0x69, + 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x10, 0x03, 0x12, + 0x10, 0x0a, 0x0c, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x44, 0x69, 0x72, 0x45, 0x72, 0x72, 0x10, + 0x04, 0x12, 0x11, 0x0a, 0x0d, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x46, 0x69, 0x6c, 0x65, 0x45, + 0x72, 0x72, 0x10, 0x05, 0x12, 0x12, 0x0a, 0x0e, 0x4e, 0x65, 0x77, 0x43, 0x6f, 0x6d, 0x70, 0x69, + 0x6c, 0x65, 0x72, 0x45, 0x72, 0x72, 0x10, 0x06, 0x12, 0x12, 0x0a, 0x0e, 0x43, 0x6f, 0x6d, 0x70, + 0x69, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x72, 0x72, 0x10, 0x07, 0x12, 0x11, 0x0a, 0x0d, + 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x65, 0x61, 0x64, 0x45, 0x72, 0x72, 0x10, 0x08, 0x12, + 0x12, 0x0a, 0x0e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x46, 0x65, 0x74, 0x63, 0x68, 0x45, 0x72, + 0x72, 0x10, 0x09, 0x12, 0x17, 0x0a, 0x13, 0x43, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x64, 0x4f, + 0x75, 0x74, 0x70, 0x75, 0x74, 0x46, 0x6f, 0x75, 0x6e, 0x64, 0x10, 0x0a, 0x12, 0x12, 0x0a, 0x0e, + 0x49, 0x6e, 0x70, 0x75, 0x74, 0x48, 0x61, 0x73, 0x68, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x10, 0x0b, + 0x2a, 0xa9, 0x02, 0x0a, 0x17, 0x4b, 0x65, 0x72, 0x6e, 0x65, 0x6c, 0x48, 0x65, 0x61, 0x64, 0x65, + 0x72, 0x46, 0x65, 0x74, 0x63, 0x68, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x15, 0x0a, 0x11, + 0x46, 0x65, 0x74, 0x63, 0x68, 0x4e, 0x6f, 0x74, 0x41, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x65, + 0x64, 0x10, 0x00, 0x12, 0x16, 0x0a, 0x12, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x48, 0x65, 0x61, + 0x64, 0x65, 0x72, 0x73, 0x46, 0x6f, 0x75, 0x6e, 0x64, 0x10, 0x01, 0x12, 0x17, 0x0a, 0x13, 0x44, + 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x46, 0x6f, 0x75, + 0x6e, 0x64, 0x10, 0x02, 0x12, 0x15, 0x0a, 0x11, 0x53, 0x79, 0x73, 0x66, 0x73, 0x48, 0x65, 0x61, + 0x64, 0x65, 0x72, 0x73, 0x46, 0x6f, 0x75, 0x6e, 0x64, 0x10, 0x03, 0x12, 0x1a, 0x0a, 0x16, 0x44, + 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x65, 0x64, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, + 0x46, 0x6f, 0x75, 0x6e, 0x64, 0x10, 0x04, 0x12, 0x13, 0x0a, 0x0f, 0x44, 0x6f, 0x77, 0x6e, 0x6c, + 0x6f, 0x61, 0x64, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x10, 0x05, 0x12, 0x12, 0x0a, 0x0e, + 0x48, 0x6f, 0x73, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x45, 0x72, 0x72, 0x10, 0x06, + 0x12, 0x13, 0x0a, 0x0f, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x46, 0x61, 0x69, 0x6c, + 0x75, 0x72, 0x65, 0x10, 0x07, 0x12, 0x15, 0x0a, 0x11, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x10, 0x08, 0x12, 0x19, 0x0a, 0x15, + 0x52, 0x65, 0x70, 0x6f, 0x73, 0x44, 0x69, 0x72, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x46, 0x61, + 0x69, 0x6c, 0x75, 0x72, 0x65, 0x10, 0x09, 0x12, 0x23, 0x0a, 0x1f, 0x48, 0x65, 0x61, 0x64, 0x65, + 0x72, 0x73, 0x4e, 0x6f, 0x74, 0x46, 0x6f, 0x75, 0x6e, 0x64, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, + 0x61, 0x64, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x10, 0x0a, 0x2a, 0x9a, 0x01, 0x0a, + 0x0a, 0x43, 0x4f, 0x52, 0x45, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x14, 0x0a, 0x10, 0x53, + 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x42, 0x54, 0x46, 0x10, + 0x00, 0x12, 0x16, 0x0a, 0x12, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x45, 0x6d, 0x62, 0x65, + 0x64, 0x64, 0x65, 0x64, 0x42, 0x54, 0x46, 0x10, 0x01, 0x12, 0x15, 0x0a, 0x11, 0x53, 0x75, 0x63, + 0x63, 0x65, 0x73, 0x73, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x42, 0x54, 0x46, 0x10, 0x02, + 0x12, 0x0f, 0x0a, 0x0b, 0x42, 0x74, 0x66, 0x4e, 0x6f, 0x74, 0x46, 0x6f, 0x75, 0x6e, 0x64, 0x10, + 0x03, 0x12, 0x12, 0x0a, 0x0e, 0x41, 0x73, 0x73, 0x65, 0x74, 0x52, 0x65, 0x61, 0x64, 0x45, 0x72, + 0x72, 0x6f, 0x72, 0x10, 0x04, 0x12, 0x11, 0x0a, 0x0d, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, + 0x72, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x10, 0x05, 0x12, 0x0f, 0x0a, 0x0b, 0x4c, 0x6f, 0x61, 0x64, + 0x65, 0x72, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x10, 0x06, 0x2a, 0x22, 0x0a, 0x10, 0x43, 0x6f, 0x6e, + 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x61, 0x6d, 0x69, 0x6c, 0x79, 0x12, 0x06, 0x0a, + 0x02, 0x76, 0x34, 0x10, 0x00, 0x12, 0x06, 0x0a, 0x02, 0x76, 0x36, 0x10, 0x01, 0x2a, 0x57, 0x0a, + 0x13, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x69, 0x72, 0x65, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0f, 0x0a, 0x0b, 0x75, 0x6e, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, + 0x69, 0x65, 0x64, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x69, 0x6e, 0x63, 0x6f, 0x6d, 0x69, 0x6e, + 0x67, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x6f, 0x75, 0x74, 0x67, 0x6f, 0x69, 0x6e, 0x67, 0x10, + 0x02, 0x12, 0x09, 0x0a, 0x05, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x10, 0x03, 0x12, 0x08, 0x0a, 0x04, + 0x6e, 0x6f, 0x6e, 0x65, 0x10, 0x04, 0x2a, 0x55, 0x0a, 0x12, 0x45, 0x70, 0x68, 0x65, 0x6d, 0x65, + 0x72, 0x61, 0x6c, 0x50, 0x6f, 0x72, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x18, 0x0a, 0x14, + 0x65, 0x70, 0x68, 0x65, 0x6d, 0x65, 0x72, 0x61, 0x6c, 0x55, 0x6e, 0x73, 0x70, 0x65, 0x63, 0x69, + 0x66, 0x69, 0x65, 0x64, 0x10, 0x00, 0x12, 0x11, 0x0a, 0x0d, 0x65, 0x70, 0x68, 0x65, 0x6d, 0x65, + 0x72, 0x61, 0x6c, 0x54, 0x72, 0x75, 0x65, 0x10, 0x01, 0x12, 0x12, 0x0a, 0x0e, 0x65, 0x70, 0x68, + 0x65, 0x6d, 0x65, 0x72, 0x61, 0x6c, 0x46, 0x61, 0x6c, 0x73, 0x65, 0x10, 0x02, 0x2a, 0xf9, 0x01, + 0x0a, 0x0c, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x12, 0x18, + 0x0a, 0x14, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x55, 0x6e, 0x63, 0x6c, 0x61, 0x73, + 0x73, 0x69, 0x66, 0x69, 0x65, 0x64, 0x10, 0x00, 0x12, 0x13, 0x0a, 0x0f, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x63, 0x6f, 0x6c, 0x55, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x10, 0x01, 0x12, 0x10, 0x0a, + 0x0c, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x48, 0x54, 0x54, 0x50, 0x10, 0x02, 0x12, + 0x11, 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x48, 0x54, 0x54, 0x50, 0x32, + 0x10, 0x03, 0x12, 0x0f, 0x0a, 0x0b, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x54, 0x4c, + 0x53, 0x10, 0x04, 0x12, 0x11, 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x4b, + 0x61, 0x66, 0x6b, 0x61, 0x10, 0x05, 0x12, 0x11, 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, + 0x6f, 0x6c, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x10, 0x06, 0x12, 0x14, 0x0a, 0x10, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, 0x10, 0x07, 0x12, + 0x10, 0x0a, 0x0c, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x41, 0x4d, 0x51, 0x50, 0x10, + 0x08, 0x12, 0x11, 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x52, 0x65, 0x64, + 0x69, 0x73, 0x10, 0x09, 0x12, 0x11, 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, + 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x10, 0x0a, 0x12, 0x10, 0x0a, 0x0c, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x63, 0x6f, 0x6c, 0x47, 0x52, 0x50, 0x43, 0x10, 0x0b, 0x42, 0x2d, 0x5a, 0x2b, 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, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - ErrInvalidLengthConnections = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowConnections = fmt.Errorf("proto: integer overflow") + file_proto_process_connections_proto_rawDescOnce sync.Once + file_proto_process_connections_proto_rawDescData = file_proto_process_connections_proto_rawDesc ) -func init() { proto.RegisterFile("proto/process/connections.proto", fileDescriptorConnections) } - -var fileDescriptorConnections = []byte{ - // 3155 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x5a, 0x5b, 0x73, 0xdb, 0xc6, - 0xbd, 0x37, 0x48, 0x4a, 0x22, 0xff, 0xd4, 0x05, 0x5a, 0x49, 0x36, 0x2c, 0x3b, 0x32, 0x4d, 0x3b, - 0xb6, 0xa2, 0x24, 0x72, 0xa2, 0xe3, 0x5c, 0x27, 0xc9, 0xb1, 0x24, 0x4a, 0x47, 0x92, 0x6d, 0x99, - 0x06, 0x65, 0x67, 0x4e, 0x66, 0xce, 0x69, 0x21, 0x60, 0x45, 0x21, 0x02, 0xb1, 0x98, 0xdd, 0x85, - 0x1d, 0xe6, 0xa9, 0xd3, 0x69, 0x5f, 0xdb, 0x4e, 0x1f, 0x3a, 0xd3, 0x3e, 0x65, 0xfa, 0xd6, 0x6f, - 0xd0, 0x8f, 0xd0, 0xbe, 0xf5, 0x23, 0x74, 0xd2, 0x6f, 0xd0, 0x99, 0x3e, 0xf4, 0xa1, 0x33, 0x9d, - 0xdd, 0x05, 0x48, 0x80, 0x04, 0x44, 0x2a, 0x75, 0x33, 0x7d, 0x22, 0xf0, 0xfb, 0xdf, 0xf6, 0xf2, - 0xdf, 0xfd, 0x5f, 0x40, 0xb8, 0x11, 0x50, 0xc2, 0xc9, 0xbd, 0x80, 0x12, 0x1b, 0x33, 0x76, 0xcf, - 0x26, 0xbe, 0x8f, 0x6d, 0xee, 0x12, 0x9f, 0xad, 0x4b, 0x0a, 0x5a, 0x72, 0x2c, 0x6e, 0x39, 0xa4, - 0xbd, 0x1e, 0xb1, 0xfc, 0xc0, 0x6a, 0x63, 0x9f, 0x2f, 0x5f, 0x4d, 0xcb, 0x49, 0x50, 0x49, 0xd4, - 0xff, 0xb8, 0x00, 0x8b, 0xdb, 0xc4, 0xf3, 0xb0, 0xcd, 0x09, 0xdd, 0xee, 0x2b, 0x44, 0xcb, 0x50, - 0x3e, 0x25, 0x8c, 0x1f, 0x5a, 0x1d, 0x6c, 0x14, 0x6a, 0xda, 0x6a, 0xc5, 0xec, 0xbd, 0xa3, 0x6d, - 0xa8, 0x26, 0x6c, 0x1b, 0xc5, 0x5a, 0x71, 0xb5, 0xba, 0x71, 0x73, 0x3d, 0xd3, 0xf8, 0x7a, 0x5f, - 0xa9, 0x99, 0x94, 0x42, 0x06, 0x4c, 0xb5, 0x29, 0x09, 0x83, 0x7d, 0xc7, 0x98, 0xa8, 0x69, 0xab, - 0x13, 0x66, 0xfc, 0x8a, 0xae, 0x43, 0x45, 0x3e, 0xb6, 0xdc, 0xaf, 0xb1, 0x31, 0x29, 0x69, 0x7d, - 0x00, 0x05, 0x30, 0x4f, 0x31, 0x23, 0xde, 0x0b, 0xec, 0x98, 0x98, 0x91, 0x90, 0xda, 0x98, 0x19, - 0x65, 0x39, 0x84, 0xad, 0xdc, 0x21, 0x0c, 0x4f, 0x70, 0xdd, 0x1c, 0x54, 0xb2, 0xe3, 0x73, 0xda, - 0x35, 0x87, 0x95, 0xa3, 0x2f, 0x61, 0xce, 0x26, 0x3e, 0xb7, 0x5c, 0x1f, 0xd3, 0x5d, 0x42, 0x9b, - 0xae, 0x63, 0x80, 0xb4, 0xf7, 0xe0, 0x22, 0xf6, 0xb6, 0xd3, 0x2a, 0x94, 0xb5, 0x41, 0xc5, 0xa8, - 0x06, 0x55, 0xec, 0xdb, 0xc4, 0xc1, 0xce, 0x91, 0xd5, 0x66, 0x46, 0xb5, 0xa6, 0xad, 0x4e, 0x9b, - 0x49, 0x48, 0xac, 0x8e, 0x8f, 0xf9, 0x4b, 0x42, 0xcf, 0xf6, 0x1d, 0x63, 0x5a, 0xee, 0x4c, 0x1f, - 0x40, 0x2b, 0x00, 0x11, 0x73, 0xe3, 0xb0, 0x65, 0xcc, 0x4a, 0xf1, 0x04, 0x82, 0x9e, 0xc3, 0x7c, - 0xcf, 0xe4, 0x1e, 0x61, 0xfc, 0xa8, 0x1b, 0x60, 0x63, 0xae, 0xa6, 0xad, 0xce, 0x6e, 0xac, 0xe6, - 0x6f, 0x60, 0x9a, 0xdf, 0x1c, 0x56, 0x81, 0xbe, 0x80, 0x19, 0xb1, 0xb9, 0x47, 0xd8, 0xc3, 0x1d, - 0xcc, 0x69, 0xd7, 0xd0, 0x6b, 0xda, 0x6a, 0x75, 0xe3, 0xfe, 0x05, 0x56, 0xa8, 0x27, 0x6b, 0xa6, - 0x55, 0xa1, 0x3a, 0x4c, 0x5b, 0xd4, 0x3e, 0x75, 0x39, 0xb6, 0x79, 0x48, 0xb1, 0x31, 0x2f, 0x27, - 0x9d, 0xc2, 0xd0, 0x6d, 0x98, 0x39, 0xc3, 0xd4, 0xc7, 0xde, 0x73, 0x4c, 0x99, 0x4b, 0x7c, 0x03, - 0x49, 0xa6, 0x34, 0x28, 0x9c, 0x3a, 0xf0, 0x2c, 0x7e, 0x42, 0x68, 0xc7, 0x58, 0x50, 0x4e, 0x1d, - 0xbf, 0xa3, 0x55, 0x98, 0x8b, 0x9f, 0x63, 0x1d, 0x8b, 0x92, 0x65, 0x10, 0x46, 0x3f, 0xd3, 0xe0, - 0x9a, 0x4d, 0x3a, 0x81, 0xeb, 0x59, 0x62, 0xe0, 0xbd, 0x81, 0x6e, 0x75, 0x37, 0x19, 0xc3, 0xdc, - 0x58, 0x92, 0xce, 0xf1, 0xe8, 0x62, 0xce, 0x91, 0xab, 0x4e, 0x39, 0xca, 0x79, 0x06, 0xc5, 0x51, - 0x72, 0x48, 0xc7, 0x72, 0x7d, 0x66, 0xac, 0xd4, 0x8a, 0xab, 0x15, 0x33, 0x7e, 0x45, 0xf7, 0x61, - 0x92, 0x92, 0x90, 0x63, 0x66, 0xdc, 0x90, 0x83, 0xba, 0x9e, 0x33, 0x28, 0x53, 0x30, 0x99, 0x11, - 0x2f, 0x3a, 0x80, 0x19, 0xf9, 0xf4, 0x18, 0x73, 0x4b, 0xf0, 0x1b, 0x75, 0x29, 0x7c, 0xfb, 0x3c, - 0xe1, 0x98, 0xd7, 0x4c, 0x8b, 0xa2, 0xff, 0x05, 0x24, 0xb9, 0xb6, 0x89, 0x7f, 0xe2, 0xb6, 0x43, - 0x2a, 0x67, 0x60, 0xdc, 0x92, 0xde, 0xf1, 0x46, 0x8e, 0xc2, 0xcd, 0x21, 0x01, 0x33, 0x43, 0x09, - 0xba, 0x0f, 0x4b, 0xb1, 0x67, 0xcb, 0xe9, 0x36, 0x2c, 0x6e, 0x1d, 0x5b, 0x0c, 0x1b, 0xb7, 0xa5, - 0xdb, 0x67, 0x13, 0xd1, 0x5b, 0x30, 0x1f, 0x13, 0x7c, 0xf6, 0x88, 0x90, 0xb3, 0x30, 0x60, 0xc6, - 0xeb, 0x52, 0x62, 0x98, 0x80, 0xde, 0x87, 0xcb, 0x11, 0x98, 0xf4, 0x54, 0x71, 0x34, 0xef, 0x48, - 0x91, 0x1c, 0x2a, 0xea, 0x80, 0x9e, 0x72, 0xe2, 0xc7, 0x56, 0x60, 0xdc, 0x95, 0xab, 0xb8, 0x79, - 0xc1, 0x4b, 0x23, 0xa5, 0x43, 0x39, 0xc3, 0x90, 0x6a, 0xf4, 0x02, 0x16, 0xe2, 0x7b, 0x4b, 0x1c, - 0x49, 0xb6, 0xd5, 0x95, 0x17, 0xf7, 0xaa, 0xb4, 0xd8, 0xf8, 0x2e, 0xd7, 0x62, 0x42, 0x8d, 0x32, - 0x9a, 0x65, 0x00, 0x9d, 0xc2, 0x15, 0x75, 0xc2, 0xf6, 0xb0, 0xe5, 0x60, 0xba, 0x8b, 0xb9, 0x7d, - 0x6a, 0x62, 0x16, 0x7a, 0xdc, 0x78, 0x43, 0x5e, 0x2a, 0xeb, 0x39, 0xb6, 0x1f, 0x66, 0x4b, 0x99, - 0x79, 0xea, 0x50, 0x17, 0x16, 0xb7, 0x9f, 0x98, 0x3b, 0x43, 0x87, 0x6d, 0x4d, 0x4e, 0x71, 0xe7, - 0x42, 0x8b, 0x9a, 0xa1, 0x47, 0xcd, 0x31, 0xd3, 0x04, 0x5a, 0x07, 0xd4, 0xa4, 0xf8, 0x38, 0x74, - 0x3d, 0xbe, 0xb3, 0xd5, 0xdc, 0x95, 0x20, 0x33, 0xde, 0x92, 0x27, 0x2d, 0x83, 0xb2, 0xdc, 0x81, - 0xcb, 0xd9, 0xc1, 0x05, 0xe9, 0x50, 0x3c, 0xc3, 0x5d, 0x43, 0x93, 0xf7, 0x8a, 0x78, 0x44, 0x9f, - 0xc2, 0xc4, 0x0b, 0xcb, 0x0b, 0x55, 0x8c, 0xad, 0x6e, 0xdc, 0xcd, 0x3b, 0x62, 0x91, 0x9e, 0xde, - 0x29, 0x53, 0x52, 0x1f, 0x17, 0x3e, 0xd4, 0x96, 0xb7, 0x44, 0x04, 0x1f, 0x8e, 0x2d, 0x49, 0x63, - 0x13, 0xca, 0xd8, 0x62, 0xd2, 0x58, 0x25, 0xa9, 0x63, 0x1b, 0x96, 0x32, 0x5d, 0x2d, 0x63, 0xc4, - 0x29, 0x25, 0xc5, 0xa4, 0x92, 0x1f, 0x6b, 0x50, 0x1b, 0x75, 0x91, 0x65, 0x28, 0xdc, 0x4b, 0x2f, - 0xc1, 0x46, 0xde, 0x12, 0x84, 0x3e, 0x77, 0x3b, 0x38, 0xcb, 0x40, 0x72, 0x10, 0x5f, 0xc2, 0xd5, - 0xdc, 0xfd, 0xcd, 0x30, 0xfe, 0x41, 0xd2, 0xf8, 0x6c, 0x7e, 0x12, 0xf3, 0xc4, 0xdc, 0x89, 0x3c, - 0x34, 0x61, 0xcb, 0x06, 0x23, 0xef, 0xb8, 0x64, 0x98, 0x7a, 0x37, 0x3d, 0xcf, 0x6b, 0x39, 0xa6, - 0x84, 0xa6, 0x84, 0x91, 0x83, 0x52, 0x59, 0xd3, 0x0b, 0x07, 0xa5, 0x72, 0x49, 0x9f, 0x38, 0x28, - 0x95, 0xa7, 0xf4, 0xf2, 0x41, 0xa9, 0x5c, 0xd1, 0xe1, 0xa0, 0x54, 0x9e, 0xd1, 0x67, 0x0f, 0x4a, - 0xe5, 0x9a, 0x7e, 0xf3, 0xa0, 0x54, 0xbe, 0xa9, 0xd7, 0xeb, 0xdf, 0x00, 0x54, 0x93, 0x29, 0xdc, - 0x07, 0x30, 0x21, 0x2e, 0x0a, 0x66, 0x68, 0xe3, 0x26, 0x68, 0x8a, 0x1f, 0x7d, 0x0a, 0x45, 0xc7, - 0x67, 0x46, 0x41, 0x8a, 0xbd, 0x39, 0x52, 0x8c, 0xad, 0x37, 0xfc, 0x28, 0x7b, 0x12, 0x72, 0xe8, - 0xe9, 0x60, 0x2e, 0x50, 0x94, 0x13, 0x1e, 0x43, 0x51, 0x6e, 0x0a, 0x90, 0x88, 0x70, 0xa5, 0xbc, - 0x08, 0x37, 0x71, 0x81, 0x08, 0xf7, 0xd3, 0x11, 0x21, 0x7c, 0x52, 0xea, 0xda, 0x1e, 0x63, 0xea, - 0xff, 0x5a, 0xe4, 0xce, 0x8e, 0x8e, 0x53, 0xaf, 0x22, 0x3a, 0x22, 0x28, 0x71, 0x11, 0xa7, 0xca, - 0x72, 0xbd, 0xe4, 0x33, 0x72, 0x32, 0xa2, 0x52, 0x45, 0x4e, 0xf5, 0xc3, 0xb1, 0xa6, 0x3a, 0x5e, - 0x30, 0x3a, 0x27, 0x28, 0xc0, 0xab, 0x0d, 0x0a, 0x41, 0x4e, 0x50, 0xa8, 0xca, 0x39, 0x7d, 0x32, - 0xce, 0x9c, 0x5e, 0x49, 0x2c, 0x98, 0xce, 0x8d, 0x05, 0x9f, 0x43, 0x39, 0x3e, 0x1c, 0x19, 0x57, - 0xc2, 0x7b, 0xe9, 0x2b, 0xe1, 0x46, 0xce, 0x80, 0x1b, 0x87, 0x2d, 0x35, 0xa6, 0xff, 0xb4, 0xcb, - 0xf6, 0x95, 0x84, 0x8d, 0xef, 0xf1, 0xc6, 0xae, 0xff, 0x63, 0x01, 0xa0, 0xbf, 0xfd, 0x42, 0x7b, - 0xe0, 0x3a, 0x71, 0x88, 0x0c, 0x5c, 0x47, 0x5c, 0xd2, 0x9e, 0xe5, 0x38, 0x54, 0xd6, 0xa4, 0xf9, - 0x97, 0xf4, 0xa6, 0xe3, 0x50, 0x53, 0x71, 0x0a, 0x11, 0x2a, 0x45, 0x26, 0xc7, 0x10, 0x91, 0x9c, - 0xe8, 0xbf, 0x61, 0xf2, 0xc4, 0xea, 0xb8, 0x5e, 0x37, 0x3a, 0x10, 0x77, 0x47, 0x7a, 0xea, 0xae, - 0x64, 0x37, 0x23, 0x31, 0xf4, 0x11, 0x94, 0xb8, 0xa8, 0xdc, 0xaa, 0x52, 0xfc, 0xf5, 0x91, 0xe2, - 0xb2, 0x6c, 0x93, 0x22, 0xa2, 0x52, 0xf2, 0x2c, 0xc6, 0xb7, 0xba, 0x1c, 0xb3, 0x16, 0xf6, 0xb9, - 0xac, 0xd4, 0x4a, 0x66, 0x1a, 0x14, 0x59, 0x72, 0x0f, 0x30, 0xb1, 0x8d, 0xdd, 0x17, 0xd8, 0x91, - 0x85, 0x57, 0xc9, 0x1c, 0x26, 0x88, 0xda, 0x49, 0x80, 0x26, 0xe6, 0xd4, 0xf2, 0x59, 0xc7, 0xe5, - 0x4c, 0xd6, 0x5f, 0x33, 0xe6, 0x20, 0x8c, 0xf6, 0xa0, 0xe2, 0xb8, 0x54, 0x0d, 0x4a, 0x96, 0x60, - 0xb3, 0x1b, 0x6b, 0x23, 0x47, 0xdf, 0x88, 0x25, 0xcc, 0xbe, 0xb0, 0x70, 0x28, 0x1f, 0xf3, 0xc3, - 0x96, 0xac, 0xd2, 0x66, 0x4c, 0xf5, 0x22, 0x4a, 0x17, 0x37, 0x38, 0x12, 0xe6, 0x94, 0xdb, 0x1a, - 0x4b, 0x72, 0x53, 0xf2, 0x4a, 0x97, 0xfd, 0x66, 0x82, 0xd7, 0x4c, 0x8b, 0x0a, 0xef, 0xa0, 0x9c, - 0x1b, 0x97, 0xa5, 0x7e, 0xf1, 0x88, 0x2e, 0xc3, 0x24, 0xe5, 0xfc, 0xb9, 0x45, 0x8d, 0x2b, 0x12, - 0x8c, 0xde, 0x44, 0x4d, 0xee, 0xfa, 0x9c, 0x5a, 0x22, 0x76, 0x1b, 0x46, 0x4d, 0x5b, 0x2d, 0x9b, - 0x7d, 0x40, 0xd4, 0x10, 0x8e, 0xcf, 0x5a, 0xa1, 0x2d, 0x0c, 0x9f, 0x84, 0x9e, 0x89, 0x59, 0x40, - 0x7c, 0x86, 0x99, 0x71, 0x55, 0x6a, 0xc9, 0xa1, 0x8a, 0xbb, 0xc6, 0xf1, 0xd9, 0xae, 0xe5, 0x7a, - 0x32, 0x91, 0x8c, 0x64, 0x96, 0xa5, 0x4c, 0x06, 0x05, 0xd5, 0xa0, 0xea, 0xf8, 0xec, 0xc8, 0xed, - 0x60, 0x12, 0x72, 0x66, 0x5c, 0x93, 0x8c, 0x49, 0x08, 0x6d, 0xc0, 0x62, 0xdf, 0xd6, 0x23, 0x8b, - 0x63, 0xdf, 0xee, 0xb6, 0xc2, 0x8e, 0x71, 0x5d, 0x6e, 0x6c, 0x26, 0x2d, 0x92, 0x11, 0xb6, 0x42, - 0x8a, 0x13, 0x32, 0xaf, 0xf5, 0x64, 0x86, 0x68, 0x62, 0xe4, 0x62, 0xe3, 0x8f, 0xec, 0x60, 0x87, - 0x71, 0xeb, 0xd8, 0x73, 0xd9, 0x29, 0x76, 0x8c, 0x15, 0x35, 0xf2, 0x61, 0x4a, 0xec, 0x93, 0x47, - 0x76, 0xb0, 0xed, 0x11, 0x86, 0x1d, 0xe3, 0x86, 0x64, 0x4d, 0x83, 0xc2, 0xcb, 0x28, 0xee, 0x10, - 0x8e, 0x0f, 0x7b, 0xfd, 0x8f, 0x9a, 0xaa, 0xd0, 0x07, 0x60, 0xf4, 0x43, 0x98, 0x73, 0x7c, 0xb6, - 0x4d, 0x42, 0x9f, 0x6f, 0x75, 0x4d, 0x51, 0xa0, 0x19, 0x37, 0x65, 0x48, 0x78, 0x7f, 0xa4, 0xaf, - 0x89, 0x5c, 0x26, 0x29, 0x18, 0xf5, 0x69, 0x06, 0xd4, 0x21, 0x1b, 0x74, 0xb1, 0x5a, 0xdc, 0x12, - 0x59, 0x9f, 0xaa, 0x30, 0xa3, 0x2a, 0xf9, 0x83, 0xb1, 0x4c, 0xa4, 0x24, 0xa3, 0x40, 0x3a, 0xa8, - 0x10, 0x2d, 0x43, 0x59, 0xe6, 0x2b, 0xfb, 0xce, 0x57, 0xb2, 0xa6, 0x9d, 0x30, 0x7b, 0xef, 0x68, - 0x0d, 0xf4, 0x53, 0xce, 0x83, 0xcd, 0x76, 0x9b, 0xe2, 0xb6, 0xa5, 0x1a, 0x71, 0xaa, 0x8a, 0x1d, - 0xc2, 0xe3, 0xe3, 0xd9, 0xb4, 0xec, 0x33, 0xcc, 0xd5, 0xa1, 0xbf, 0x23, 0x77, 0x6f, 0x10, 0x46, - 0xef, 0xc0, 0x42, 0x02, 0xea, 0x1d, 0xfc, 0xbb, 0x92, 0x3b, 0x8b, 0x84, 0xee, 0xc0, 0xac, 0x1c, - 0xd3, 0x91, 0x45, 0xdb, 0x98, 0x8b, 0x91, 0xae, 0xca, 0x91, 0x0e, 0xa0, 0xe8, 0xff, 0x60, 0xd1, - 0x65, 0x8f, 0x88, 0x6d, 0x79, 0x4d, 0x42, 0xf9, 0x4e, 0x70, 0x8a, 0x3b, 0x98, 0x5a, 0x5e, 0x54, - 0x26, 0xe6, 0xe5, 0x3a, 0x3d, 0x3e, 0x21, 0x24, 0x16, 0x07, 0x9b, 0x99, 0x6a, 0xd0, 0x4f, 0x34, - 0xb8, 0x36, 0xb8, 0x7e, 0x5b, 0xdd, 0xa7, 0x21, 0xa6, 0x5d, 0xd9, 0xe2, 0x5a, 0x1b, 0xd1, 0x20, - 0xcc, 0xdd, 0x9b, 0x84, 0x92, 0x28, 0x9f, 0x3b, 0xc7, 0x0c, 0xfa, 0x95, 0x06, 0x37, 0x07, 0xe9, - 0x4f, 0x4e, 0x4e, 0x18, 0xe6, 0xc9, 0xc1, 0xbc, 0x29, 0x07, 0xb3, 0x77, 0xf1, 0xc1, 0x0c, 0xa9, - 0x52, 0x43, 0x1a, 0x6d, 0xb2, 0x97, 0x0d, 0x8a, 0xaa, 0x75, 0x26, 0xca, 0x06, 0x0d, 0x98, 0x12, - 0xbf, 0x62, 0xcf, 0xde, 0x56, 0x1d, 0xd8, 0xe8, 0x15, 0xad, 0x00, 0x30, 0xb1, 0xd8, 0xfb, 0xbe, - 0x83, 0xbf, 0x32, 0xd6, 0xe5, 0x61, 0x4c, 0x20, 0xa8, 0x0e, 0xd3, 0x82, 0x75, 0xfb, 0x14, 0xdb, - 0x67, 0x2c, 0xec, 0x18, 0xf7, 0x24, 0x47, 0x0a, 0x43, 0x0f, 0xa0, 0x2c, 0x5b, 0xcc, 0x36, 0xf1, - 0x8c, 0x77, 0xce, 0xbd, 0x84, 0x9b, 0x11, 0x5b, 0x8b, 0x5b, 0xf6, 0x99, 0xd9, 0x93, 0x42, 0x1f, - 0xc2, 0x15, 0x21, 0xd0, 0xe2, 0x14, 0x5b, 0x1d, 0x96, 0xf2, 0xf4, 0x77, 0xa5, 0xa7, 0xe7, 0x91, - 0x45, 0xf4, 0x12, 0x87, 0x60, 0x23, 0x25, 0xb3, 0xa1, 0x7a, 0x3c, 0x43, 0x04, 0x51, 0x40, 0x67, - 0x1d, 0xfa, 0x64, 0xee, 0x31, 0x93, 0x91, 0xc4, 0xcc, 0x24, 0x93, 0x18, 0x07, 0x96, 0x32, 0x4f, - 0x75, 0x46, 0x15, 0x3e, 0x7e, 0xd2, 0x27, 0xd5, 0x25, 0xad, 0x7c, 0x0d, 0xb5, 0x51, 0xfe, 0x99, - 0x61, 0xf0, 0x41, 0xda, 0xe0, 0xda, 0x08, 0x83, 0x09, 0x8d, 0x49, 0xdb, 0x3f, 0xd2, 0xe0, 0xce, - 0x78, 0xfe, 0xf8, 0xef, 0x1a, 0xc2, 0x41, 0xa9, 0x5c, 0xd0, 0x8b, 0x07, 0xa5, 0x72, 0x51, 0x2f, - 0x0d, 0x14, 0xc4, 0x65, 0xbd, 0xd2, 0x2b, 0x8b, 0xa7, 0xf5, 0x99, 0x5e, 0x71, 0x3c, 0xab, 0xcf, - 0x1d, 0x94, 0xca, 0x73, 0xba, 0x7e, 0x50, 0x2a, 0xdf, 0xd2, 0x6f, 0xd7, 0x7f, 0xab, 0x81, 0x3e, - 0xd8, 0x4b, 0x41, 0xb3, 0x50, 0x88, 0x92, 0xc0, 0x8a, 0x59, 0x70, 0x9d, 0x78, 0xf8, 0x85, 0xfe, - 0xbe, 0x1b, 0x30, 0x75, 0xdc, 0xe5, 0xf8, 0x21, 0x56, 0xb5, 0xec, 0xb4, 0x19, 0xbf, 0xf6, 0xce, - 0x55, 0x29, 0x51, 0x65, 0x2d, 0x43, 0x99, 0x5b, 0x6d, 0x75, 0x76, 0xd4, 0xa7, 0x8d, 0xde, 0x7b, - 0x7c, 0x72, 0x1e, 0x13, 0xc7, 0x3d, 0x71, 0xb1, 0x23, 0x73, 0xc6, 0xa2, 0x99, 0xc2, 0xea, 0xdf, - 0x4c, 0xc8, 0x8e, 0xce, 0x50, 0x51, 0x8c, 0x3e, 0x81, 0xab, 0x1d, 0xe2, 0x13, 0x4e, 0x7c, 0xd7, - 0x7e, 0x18, 0x50, 0x72, 0x8c, 0xd9, 0x11, 0x75, 0xdb, 0x6d, 0x4c, 0xb1, 0x1a, 0x7f, 0xd1, 0xcc, - 0x67, 0x10, 0x69, 0xc8, 0x20, 0xf1, 0xb1, 0xcb, 0x44, 0xb4, 0x55, 0x29, 0x79, 0x0e, 0x15, 0x3d, - 0x80, 0x6b, 0x3d, 0x8a, 0x18, 0x16, 0xa7, 0xe2, 0x98, 0xe2, 0xb6, 0xcb, 0x38, 0xa6, 0x4c, 0x2e, - 0x48, 0xd1, 0x3c, 0x8f, 0x05, 0x1d, 0x42, 0xfd, 0x1c, 0x72, 0x83, 0x92, 0x20, 0xc0, 0x8e, 0x51, - 0x92, 0x8a, 0xc6, 0xe0, 0x44, 0x5b, 0x70, 0xbd, 0xc7, 0xd5, 0xf0, 0x59, 0x14, 0x92, 0x9a, 0xca, - 0x95, 0xb0, 0xfa, 0x9e, 0x54, 0x34, 0xcf, 0xe5, 0x11, 0x69, 0x4d, 0xca, 0x12, 0x8b, 0x32, 0x0f, - 0xb5, 0x21, 0x99, 0x34, 0x11, 0x47, 0x65, 0x83, 0x64, 0x2b, 0x38, 0x79, 0x6c, 0xa9, 0xcf, 0x53, - 0x53, 0x92, 0x7d, 0x10, 0x46, 0x9f, 0xc1, 0x72, 0x4f, 0xc3, 0x33, 0x27, 0x68, 0x61, 0xdf, 0x49, - 0x8c, 0xaf, 0x2c, 0x85, 0xce, 0xe1, 0x10, 0x57, 0xdf, 0x10, 0x35, 0xda, 0xac, 0x8a, 0x14, 0xce, - 0x23, 0xa3, 0x8f, 0xc1, 0xb0, 0xe3, 0x85, 0x6b, 0x59, 0x9d, 0xc0, 0x73, 0xfd, 0x76, 0x13, 0x53, - 0x5b, 0x04, 0x7d, 0x90, 0xa2, 0xb9, 0x74, 0x31, 0xbf, 0x38, 0x92, 0xc4, 0x9b, 0x52, 0x55, 0xf3, - 0x1b, 0x80, 0xeb, 0xbf, 0x2e, 0xc1, 0x6b, 0xe7, 0x7e, 0xc3, 0x11, 0xf9, 0xc9, 0x59, 0xb6, 0x8b, - 0x0e, 0xe1, 0xf2, 0xe3, 0x4d, 0x86, 0x43, 0xa6, 0x41, 0x91, 0x54, 0xda, 0x79, 0xee, 0x97, 0x41, - 0x11, 0xa7, 0xc5, 0x1e, 0xe1, 0x6c, 0xf9, 0x0c, 0x22, 0x13, 0x72, 0x72, 0x5d, 0x2b, 0x8b, 0x24, - 0xd2, 0x6f, 0x7b, 0xc8, 0x91, 0x92, 0xd0, 0x05, 0xfc, 0xe7, 0x2d, 0x98, 0x0f, 0x73, 0xdc, 0x66, - 0x98, 0x20, 0x72, 0xb0, 0x30, 0xcb, 0x49, 0x06, 0xd0, 0xef, 0xc9, 0x37, 0xfe, 0x5a, 0x80, 0x6b, - 0xe7, 0xf4, 0x0f, 0xc4, 0xbe, 0xd0, 0x21, 0xf2, 0x8e, 0x6f, 0x1d, 0x7b, 0x91, 0x8b, 0x94, 0xcd, - 0x7c, 0x06, 0x74, 0x06, 0xc6, 0x30, 0x31, 0xea, 0x2e, 0xa9, 0x8e, 0xc0, 0xbd, 0xb1, 0x7b, 0x1a, - 0x51, 0x7f, 0x20, 0x57, 0xa1, 0x38, 0xc6, 0xc3, 0xb4, 0x46, 0xdc, 0xa6, 0x53, 0xae, 0x77, 0x0e, - 0xc7, 0x79, 0x9d, 0xb0, 0xd2, 0x2b, 0xed, 0x84, 0xd5, 0x39, 0xa0, 0xe1, 0xbe, 0xa0, 0xc8, 0xe3, - 0xfc, 0xa0, 0x93, 0x5e, 0xdb, 0x04, 0x22, 0xe8, 0x21, 0xeb, 0xd1, 0x0b, 0x8a, 0xde, 0x47, 0x04, - 0xdd, 0xe9, 0xd3, 0x8b, 0x8a, 0xde, 0x47, 0xea, 0x9f, 0xc1, 0x84, 0xec, 0xab, 0xa2, 0xf7, 0x60, - 0x92, 0x85, 0xc7, 0x3e, 0xe6, 0xd2, 0x48, 0x75, 0xe3, 0xb5, 0x9c, 0x79, 0xb5, 0x24, 0x93, 0x19, - 0x31, 0xd7, 0x57, 0x60, 0x52, 0x21, 0x22, 0xb3, 0xb2, 0x3c, 0xd7, 0x62, 0x51, 0x18, 0x56, 0x2f, - 0xf5, 0x2e, 0xcc, 0xa4, 0x3e, 0x2e, 0x66, 0xb3, 0xa5, 0x02, 0x6e, 0x61, 0x44, 0xc0, 0x2d, 0x0e, - 0x07, 0xdc, 0xac, 0x20, 0x5e, 0xff, 0xb9, 0x06, 0x33, 0xa9, 0xee, 0x80, 0x28, 0xf2, 0x29, 0x0e, - 0xbc, 0x16, 0xb5, 0xf7, 0x9b, 0x91, 0xfd, 0x3e, 0x10, 0x53, 0x1b, 0x8c, 0xef, 0x37, 0xa3, 0xef, - 0x2b, 0x7d, 0x40, 0xdc, 0x0d, 0x11, 0xab, 0x28, 0x5b, 0xe4, 0x20, 0x26, 0xcc, 0x24, 0x14, 0x73, - 0x34, 0x18, 0x97, 0x1c, 0xa5, 0x3e, 0x47, 0x04, 0xd5, 0xbf, 0x86, 0xd2, 0xa6, 0xe3, 0x50, 0x99, - 0xae, 0x04, 0x91, 0x89, 0x82, 0x1b, 0x88, 0xd1, 0x07, 0x7d, 0xa5, 0xf2, 0x39, 0xba, 0x8b, 0xd4, - 0x37, 0xa1, 0xe8, 0x0f, 0x16, 0x15, 0x33, 0x09, 0xa5, 0xfe, 0xdf, 0x31, 0x95, 0xfe, 0x7f, 0xc7, - 0xc0, 0x27, 0x87, 0x49, 0x7d, 0xaa, 0x7e, 0x00, 0x33, 0xa9, 0x2c, 0x1d, 0x7d, 0x04, 0x13, 0x4c, - 0x3c, 0xc8, 0x6f, 0x0b, 0xb3, 0x1b, 0xb7, 0x46, 0xa4, 0xf6, 0x2a, 0x93, 0x93, 0x12, 0xf5, 0x1a, - 0x94, 0xe3, 0x86, 0xa6, 0x6c, 0xe2, 0x58, 0x1d, 0xac, 0x3e, 0x51, 0x54, 0x4c, 0xf5, 0x52, 0xff, - 0x7d, 0x41, 0xb2, 0xc8, 0x5b, 0x65, 0xb0, 0xab, 0xa1, 0x8d, 0xdf, 0xd5, 0x28, 0x7c, 0x87, 0xae, - 0x46, 0xf1, 0x9c, 0xae, 0xc6, 0xff, 0x0f, 0x77, 0x15, 0x4a, 0xb2, 0x92, 0xbb, 0x3f, 0x22, 0x9d, - 0x1d, 0xaf, 0xa7, 0xf0, 0x2a, 0xea, 0x90, 0xfa, 0xdf, 0x34, 0x58, 0xc8, 0xc8, 0xa2, 0x51, 0x28, - 0xc3, 0xd9, 0x20, 0x1c, 0x7d, 0x19, 0xda, 0x1e, 0x3f, 0x1d, 0x4f, 0x94, 0xa4, 0x03, 0x45, 0x68, - 0x96, 0xfe, 0xe5, 0x36, 0x18, 0x79, 0x02, 0xaf, 0xb4, 0x32, 0x5a, 0xfb, 0x65, 0x01, 0x8c, 0xbc, - 0x0b, 0x1e, 0xe9, 0x30, 0x7d, 0x48, 0xf8, 0x26, 0xe7, 0xb8, 0x13, 0x70, 0xec, 0xe8, 0x97, 0xd0, - 0x65, 0x40, 0x09, 0xb6, 0xc8, 0x3d, 0x74, 0x0d, 0x2d, 0x82, 0xfe, 0x30, 0xf9, 0x8f, 0x91, 0x1d, - 0x4a, 0xf5, 0x02, 0x5a, 0x82, 0xf9, 0xe7, 0x98, 0xba, 0x27, 0xae, 0xad, 0x42, 0x11, 0xa5, 0x84, - 0xea, 0x45, 0xa1, 0xf6, 0x49, 0xc8, 0x83, 0x90, 0x37, 0x5c, 0x2a, 0x18, 0x4b, 0x68, 0x1e, 0x66, - 0x14, 0xb2, 0xeb, 0x7a, 0x58, 0x40, 0x13, 0x08, 0xc1, 0xec, 0x21, 0x7e, 0xa9, 0x8c, 0x61, 0xc9, - 0x36, 0x29, 0xb0, 0x64, 0x64, 0xa3, 0x54, 0x9f, 0x12, 0xa2, 0xd1, 0x1d, 0x8f, 0x2d, 0x47, 0x40, - 0x65, 0xc1, 0x96, 0xb8, 0xe8, 0x05, 0x56, 0x41, 0x57, 0x60, 0x21, 0xd2, 0xe5, 0x44, 0x96, 0x48, - 0xe8, 0x3b, 0x3a, 0x08, 0xe6, 0x7d, 0x3f, 0x08, 0xf9, 0x9e, 0xc5, 0x4e, 0xd5, 0x00, 0xab, 0x6b, - 0xbf, 0x2b, 0xc0, 0x95, 0x9c, 0x48, 0x22, 0xe6, 0x24, 0x5f, 0x33, 0x16, 0x26, 0x64, 0x9c, 0x74, - 0x94, 0x04, 0x53, 0xea, 0x35, 0x61, 0xb7, 0x81, 0x4f, 0xac, 0xd0, 0xe3, 0x29, 0x82, 0x5c, 0x9b, - 0x56, 0x97, 0x9d, 0xb0, 0x14, 0x5c, 0x44, 0xcb, 0x70, 0xb9, 0x41, 0x5e, 0xfa, 0x1e, 0xb1, 0x1c, - 0xec, 0xa4, 0x68, 0x25, 0xb4, 0x00, 0x73, 0x31, 0x2d, 0x5e, 0x79, 0xb9, 0x4e, 0x7b, 0x84, 0xf1, - 0xc4, 0xba, 0x4f, 0x26, 0x19, 0xa3, 0xd3, 0xa8, 0x4f, 0xc9, 0xcd, 0xb0, 0x3c, 0xd7, 0xb1, 0x54, - 0x5b, 0x5c, 0xc1, 0x65, 0x74, 0x15, 0x96, 0x4c, 0x1c, 0x10, 0xd6, 0x70, 0xe9, 0xa6, 0xd4, 0x19, - 0x93, 0x2a, 0xe8, 0x16, 0xdc, 0x88, 0x46, 0x70, 0x48, 0xd4, 0x7a, 0xc5, 0x5a, 0x1b, 0x2e, 0x93, - 0x81, 0x4c, 0x87, 0xb5, 0xdf, 0x68, 0x00, 0xfd, 0x6f, 0x06, 0xc2, 0x11, 0xa2, 0xb1, 0xa9, 0xe5, - 0xd8, 0x3a, 0xda, 0x55, 0xab, 0x13, 0xa1, 0x3b, 0x9d, 0x63, 0xec, 0x38, 0xd8, 0x11, 0xb8, 0x26, - 0x17, 0x41, 0xe1, 0xd1, 0x22, 0x09, 0xb8, 0x80, 0xe6, 0xa0, 0xba, 0xc5, 0x4f, 0x62, 0xa3, 0x7a, - 0x51, 0x4c, 0x52, 0x7e, 0xdb, 0x88, 0xf6, 0x98, 0x44, 0x3e, 0xa3, 0x9c, 0x4b, 0x7a, 0x07, 0x11, - 0x3e, 0x33, 0x07, 0xd5, 0x47, 0x62, 0xe1, 0x22, 0x60, 0x72, 0xad, 0x0e, 0xfa, 0xe0, 0xa7, 0x00, - 0x34, 0x09, 0x85, 0x17, 0xf7, 0xf5, 0x4b, 0xf2, 0xf7, 0x7d, 0x5d, 0x5b, 0xfb, 0x5c, 0x78, 0xc6, - 0x50, 0xc7, 0x5c, 0xe8, 0x0a, 0x7d, 0x16, 0x60, 0x5b, 0x86, 0x3a, 0xfd, 0x12, 0x9a, 0x86, 0xb2, - 0xeb, 0xdb, 0xa4, 0xe3, 0xfa, 0x6d, 0x5d, 0x13, 0x6f, 0x24, 0xe4, 0x6d, 0x22, 0xde, 0x0a, 0xa8, - 0x02, 0x13, 0x1e, 0xb1, 0x2d, 0x4f, 0x2f, 0xa2, 0x32, 0x94, 0x7c, 0xe2, 0x63, 0xbd, 0xb4, 0xf6, - 0x0c, 0xd0, 0x70, 0x1b, 0x0e, 0x19, 0xb0, 0x88, 0x63, 0xf4, 0x59, 0xca, 0xc0, 0x3c, 0xcc, 0xf4, - 0x28, 0x47, 0x34, 0xc4, 0xba, 0x26, 0xe6, 0xdd, 0x83, 0x76, 0x2d, 0x8f, 0x61, 0xbd, 0xb0, 0xf6, - 0x77, 0x0d, 0xa6, 0x93, 0xe1, 0x41, 0x68, 0x8c, 0x5b, 0x3f, 0xcf, 0x7c, 0xdb, 0xb3, 0x18, 0x8b, - 0x35, 0x2e, 0xc0, 0x5c, 0x9f, 0x72, 0xe6, 0x93, 0x97, 0xbe, 0xae, 0x89, 0xd3, 0x17, 0x83, 0x7b, - 0x47, 0x47, 0x4d, 0xbd, 0x20, 0x0c, 0x27, 0x91, 0x0d, 0xbd, 0x28, 0x66, 0x1f, 0x43, 0x47, 0x8f, - 0x5a, 0x6a, 0xb5, 0x63, 0xe0, 0xa1, 0x75, 0x72, 0x66, 0xe9, 0x13, 0x49, 0xe8, 0x31, 0xf1, 0xdb, - 0x44, 0x9f, 0x14, 0xbb, 0x1f, 0x43, 0x4d, 0xc2, 0x78, 0x9b, 0x62, 0xa6, 0x4f, 0x25, 0x2d, 0x6e, - 0x3e, 0x7e, 0xda, 0xd4, 0xcb, 0x49, 0x51, 0x13, 0x3b, 0x2e, 0xd3, 0x2b, 0x29, 0x6d, 0xdd, 0xd6, - 0xd3, 0x47, 0x3a, 0x24, 0xe5, 0xfe, 0xc7, 0x6c, 0x6e, 0xeb, 0xd5, 0xad, 0x4f, 0xff, 0xf0, 0xed, - 0x8a, 0xf6, 0xa7, 0x6f, 0x57, 0xb4, 0x3f, 0x7f, 0xbb, 0xa2, 0xfd, 0xe2, 0x2f, 0x2b, 0x97, 0xbe, - 0x78, 0xb3, 0xed, 0xf2, 0xd3, 0xf0, 0x78, 0xdd, 0x26, 0x9d, 0x7b, 0x0d, 0x8b, 0x5b, 0x0d, 0xd2, - 0x56, 0xff, 0xd3, 0x7c, 0x3b, 0xb0, 0xba, 0xc2, 0x55, 0xef, 0xbd, 0x78, 0x2f, 0xfe, 0x03, 0xe7, - 0xf1, 0xa4, 0x54, 0xf7, 0x5f, 0xff, 0x0c, 0x00, 0x00, 0xff, 0xff, 0xfe, 0x30, 0xef, 0xba, 0x10, - 0x2a, 0x00, 0x00, +func file_proto_process_connections_proto_rawDescGZIP() []byte { + file_proto_process_connections_proto_rawDescOnce.Do(func() { + file_proto_process_connections_proto_rawDescData = protoimpl.X.CompressGZIP(file_proto_process_connections_proto_rawDescData) + }) + return file_proto_process_connections_proto_rawDescData +} + +var file_proto_process_connections_proto_enumTypes = make([]protoimpl.EnumInfo, 7) +var file_proto_process_connections_proto_msgTypes = make([]protoimpl.MessageInfo, 33) +var file_proto_process_connections_proto_goTypes = []interface{}{ + (RuntimeCompilationResult)(0), // 0: datadog.process_agent.RuntimeCompilationResult + (KernelHeaderFetchResult)(0), // 1: datadog.process_agent.KernelHeaderFetchResult + (COREResult)(0), // 2: datadog.process_agent.COREResult + (ConnectionFamily)(0), // 3: datadog.process_agent.ConnectionFamily + (ConnectionDirection)(0), // 4: datadog.process_agent.ConnectionDirection + (EphemeralPortState)(0), // 5: datadog.process_agent.EphemeralPortState + (ProtocolType)(0), // 6: datadog.process_agent.ProtocolType + (*CollectorConnections)(nil), // 7: datadog.process_agent.CollectorConnections + (*Connections)(nil), // 8: datadog.process_agent.Connections + (*Connection)(nil), // 9: datadog.process_agent.Connection + (*ResourceMetadata)(nil), // 10: datadog.process_agent.ResourceMetadata + (*ConnectionsTelemetry)(nil), // 11: datadog.process_agent.ConnectionsTelemetry + (*CollectorConnectionsTelemetry)(nil), // 12: datadog.process_agent.CollectorConnectionsTelemetry + (*RuntimeCompilationTelemetry)(nil), // 13: datadog.process_agent.RuntimeCompilationTelemetry + (*AgentConfiguration)(nil), // 14: datadog.process_agent.AgentConfiguration + (*Route)(nil), // 15: datadog.process_agent.Route + (*Subnet)(nil), // 16: datadog.process_agent.Subnet + (*RouteMetadata)(nil), // 17: datadog.process_agent.RouteMetadata + (*IPTranslation)(nil), // 18: datadog.process_agent.IPTranslation + (*Addr)(nil), // 19: datadog.process_agent.Addr + (*ProtocolStack)(nil), // 20: datadog.process_agent.ProtocolStack + (*DNSEntry)(nil), // 21: datadog.process_agent.DNSEntry + (*DNSStats)(nil), // 22: datadog.process_agent.DNSStats + (*DNSStatsByQueryType)(nil), // 23: datadog.process_agent.DNSStatsByQueryType + nil, // 24: datadog.process_agent.CollectorConnections.ResolvedResourcesEntry + nil, // 25: datadog.process_agent.CollectorConnections.ContainerForPidEntry + nil, // 26: datadog.process_agent.CollectorConnections.ConnTelemetryMapEntry + nil, // 27: datadog.process_agent.CollectorConnections.CompilationTelemetryByAssetEntry + nil, // 28: datadog.process_agent.CollectorConnections.CORETelemetryByAssetEntry + nil, // 29: datadog.process_agent.CollectorConnections.ResolvedHostsByNameEntry + nil, // 30: datadog.process_agent.Connections.DnsEntry + nil, // 31: datadog.process_agent.Connections.CompilationTelemetryByAssetEntry + nil, // 32: datadog.process_agent.Connections.ConnTelemetryMapEntry + nil, // 33: datadog.process_agent.Connections.CORETelemetryByAssetEntry + nil, // 34: datadog.process_agent.Connection.DnsCountByRcodeEntry + nil, // 35: datadog.process_agent.Connection.DnsStatsByDomainEntry + nil, // 36: datadog.process_agent.Connection.DnsStatsByDomainByQueryTypeEntry + nil, // 37: datadog.process_agent.Connection.DnsStatsByDomainOffsetByQueryTypeEntry + nil, // 38: datadog.process_agent.DNSStats.DnsCountByRcodeEntry + nil, // 39: datadog.process_agent.DNSStatsByQueryType.DnsStatsByQueryTypeEntry + (ContainerHostType)(0), // 40: datadog.process_agent.ContainerHostType + (ConnectionType)(0), // 41: datadog.process_agent.ConnectionType + (*Host)(nil), // 42: datadog.process_agent.Host +} +var file_proto_process_connections_proto_depIdxs = []int32{ + 9, // 0: datadog.process_agent.CollectorConnections.connections:type_name -> datadog.process_agent.Connection + 24, // 1: datadog.process_agent.CollectorConnections.resolvedResources:type_name -> datadog.process_agent.CollectorConnections.ResolvedResourcesEntry + 25, // 2: datadog.process_agent.CollectorConnections.containerForPid:type_name -> datadog.process_agent.CollectorConnections.ContainerForPidEntry + 40, // 3: datadog.process_agent.CollectorConnections.containerHostType:type_name -> datadog.process_agent.ContainerHostType + 12, // 4: datadog.process_agent.CollectorConnections.connTelemetry:type_name -> datadog.process_agent.CollectorConnectionsTelemetry + 26, // 5: datadog.process_agent.CollectorConnections.connTelemetryMap:type_name -> datadog.process_agent.CollectorConnections.ConnTelemetryMapEntry + 27, // 6: datadog.process_agent.CollectorConnections.compilationTelemetryByAsset:type_name -> datadog.process_agent.CollectorConnections.CompilationTelemetryByAssetEntry + 1, // 7: datadog.process_agent.CollectorConnections.kernelHeaderFetchResult:type_name -> datadog.process_agent.KernelHeaderFetchResult + 28, // 8: datadog.process_agent.CollectorConnections.CORETelemetryByAsset:type_name -> datadog.process_agent.CollectorConnections.CORETelemetryByAssetEntry + 15, // 9: datadog.process_agent.CollectorConnections.routes:type_name -> datadog.process_agent.Route + 17, // 10: datadog.process_agent.CollectorConnections.routeMetadata:type_name -> datadog.process_agent.RouteMetadata + 14, // 11: datadog.process_agent.CollectorConnections.agentConfiguration:type_name -> datadog.process_agent.AgentConfiguration + 29, // 12: datadog.process_agent.CollectorConnections.resolvedHostsByName:type_name -> datadog.process_agent.CollectorConnections.ResolvedHostsByNameEntry + 9, // 13: datadog.process_agent.Connections.conns:type_name -> datadog.process_agent.Connection + 30, // 14: datadog.process_agent.Connections.dns:type_name -> datadog.process_agent.Connections.DnsEntry + 11, // 15: datadog.process_agent.Connections.connTelemetry:type_name -> datadog.process_agent.ConnectionsTelemetry + 15, // 16: datadog.process_agent.Connections.routes:type_name -> datadog.process_agent.Route + 31, // 17: datadog.process_agent.Connections.compilationTelemetryByAsset:type_name -> datadog.process_agent.Connections.CompilationTelemetryByAssetEntry + 14, // 18: datadog.process_agent.Connections.agentConfiguration:type_name -> datadog.process_agent.AgentConfiguration + 32, // 19: datadog.process_agent.Connections.connTelemetryMap:type_name -> datadog.process_agent.Connections.ConnTelemetryMapEntry + 1, // 20: datadog.process_agent.Connections.kernelHeaderFetchResult:type_name -> datadog.process_agent.KernelHeaderFetchResult + 33, // 21: datadog.process_agent.Connections.CORETelemetryByAsset:type_name -> datadog.process_agent.Connections.CORETelemetryByAssetEntry + 19, // 22: datadog.process_agent.Connection.laddr:type_name -> datadog.process_agent.Addr + 19, // 23: datadog.process_agent.Connection.raddr:type_name -> datadog.process_agent.Addr + 3, // 24: datadog.process_agent.Connection.family:type_name -> datadog.process_agent.ConnectionFamily + 41, // 25: datadog.process_agent.Connection.type:type_name -> datadog.process_agent.ConnectionType + 5, // 26: datadog.process_agent.Connection.isLocalPortEphemeral:type_name -> datadog.process_agent.EphemeralPortState + 4, // 27: datadog.process_agent.Connection.direction:type_name -> datadog.process_agent.ConnectionDirection + 20, // 28: datadog.process_agent.Connection.protocol:type_name -> datadog.process_agent.ProtocolStack + 18, // 29: datadog.process_agent.Connection.ipTranslation:type_name -> datadog.process_agent.IPTranslation + 34, // 30: datadog.process_agent.Connection.dnsCountByRcode:type_name -> datadog.process_agent.Connection.DnsCountByRcodeEntry + 35, // 31: datadog.process_agent.Connection.dnsStatsByDomain:type_name -> datadog.process_agent.Connection.DnsStatsByDomainEntry + 36, // 32: datadog.process_agent.Connection.dnsStatsByDomainByQueryType:type_name -> datadog.process_agent.Connection.DnsStatsByDomainByQueryTypeEntry + 37, // 33: datadog.process_agent.Connection.dnsStatsByDomainOffsetByQueryType:type_name -> datadog.process_agent.Connection.DnsStatsByDomainOffsetByQueryTypeEntry + 0, // 34: datadog.process_agent.RuntimeCompilationTelemetry.runtimeCompilationResult:type_name -> datadog.process_agent.RuntimeCompilationResult + 1, // 35: datadog.process_agent.RuntimeCompilationTelemetry.kernelHeaderFetchResult:type_name -> datadog.process_agent.KernelHeaderFetchResult + 16, // 36: datadog.process_agent.Route.subnet:type_name -> datadog.process_agent.Subnet + 6, // 37: datadog.process_agent.ProtocolStack.stack:type_name -> datadog.process_agent.ProtocolType + 38, // 38: datadog.process_agent.DNSStats.dnsCountByRcode:type_name -> datadog.process_agent.DNSStats.DnsCountByRcodeEntry + 39, // 39: datadog.process_agent.DNSStatsByQueryType.dnsStatsByQueryType:type_name -> datadog.process_agent.DNSStatsByQueryType.DnsStatsByQueryTypeEntry + 10, // 40: datadog.process_agent.CollectorConnections.ResolvedResourcesEntry.value:type_name -> datadog.process_agent.ResourceMetadata + 13, // 41: datadog.process_agent.CollectorConnections.CompilationTelemetryByAssetEntry.value:type_name -> datadog.process_agent.RuntimeCompilationTelemetry + 2, // 42: datadog.process_agent.CollectorConnections.CORETelemetryByAssetEntry.value:type_name -> datadog.process_agent.COREResult + 42, // 43: datadog.process_agent.CollectorConnections.ResolvedHostsByNameEntry.value:type_name -> datadog.process_agent.Host + 21, // 44: datadog.process_agent.Connections.DnsEntry.value:type_name -> datadog.process_agent.DNSEntry + 13, // 45: datadog.process_agent.Connections.CompilationTelemetryByAssetEntry.value:type_name -> datadog.process_agent.RuntimeCompilationTelemetry + 2, // 46: datadog.process_agent.Connections.CORETelemetryByAssetEntry.value:type_name -> datadog.process_agent.COREResult + 22, // 47: datadog.process_agent.Connection.DnsStatsByDomainEntry.value:type_name -> datadog.process_agent.DNSStats + 23, // 48: datadog.process_agent.Connection.DnsStatsByDomainByQueryTypeEntry.value:type_name -> datadog.process_agent.DNSStatsByQueryType + 23, // 49: datadog.process_agent.Connection.DnsStatsByDomainOffsetByQueryTypeEntry.value:type_name -> datadog.process_agent.DNSStatsByQueryType + 22, // 50: datadog.process_agent.DNSStatsByQueryType.DnsStatsByQueryTypeEntry.value:type_name -> datadog.process_agent.DNSStats + 51, // [51:51] is the sub-list for method output_type + 51, // [51:51] is the sub-list for method input_type + 51, // [51:51] is the sub-list for extension type_name + 51, // [51:51] is the sub-list for extension extendee + 0, // [0:51] is the sub-list for field type_name +} + +func init() { file_proto_process_connections_proto_init() } +func file_proto_process_connections_proto_init() { + if File_proto_process_connections_proto != nil { + return + } + file_proto_process_agent_proto_init() + if !protoimpl.UnsafeEnabled { + file_proto_process_connections_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CollectorConnections); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_connections_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Connections); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_connections_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Connection); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_connections_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ResourceMetadata); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_connections_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ConnectionsTelemetry); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_connections_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CollectorConnectionsTelemetry); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_connections_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RuntimeCompilationTelemetry); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_connections_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AgentConfiguration); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_connections_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Route); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_connections_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Subnet); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_connections_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RouteMetadata); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_connections_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*IPTranslation); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_connections_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Addr); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_connections_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ProtocolStack); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_connections_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DNSEntry); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_connections_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DNSStats); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_connections_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DNSStatsByQueryType); 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_process_connections_proto_rawDesc, + NumEnums: 7, + NumMessages: 33, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_proto_process_connections_proto_goTypes, + DependencyIndexes: file_proto_process_connections_proto_depIdxs, + EnumInfos: file_proto_process_connections_proto_enumTypes, + MessageInfos: file_proto_process_connections_proto_msgTypes, + }.Build() + File_proto_process_connections_proto = out.File + file_proto_process_connections_proto_rawDesc = nil + file_proto_process_connections_proto_goTypes = nil + file_proto_process_connections_proto_depIdxs = nil } diff --git a/process/connections_vtproto.pb.go b/process/connections_vtproto.pb.go new file mode 100644 index 00000000..9f1c6f0c --- /dev/null +++ b/process/connections_vtproto.pb.go @@ -0,0 +1,9374 @@ +// Code generated by protoc-gen-go-vtproto. DO NOT EDIT. +// protoc-gen-go-vtproto version: v0.4.0 +// source: proto/process/connections.proto + +package process + +import ( + fmt "fmt" + proto "google.golang.org/protobuf/proto" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + io "io" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +func (this *CollectorConnections) EqualVT(that *CollectorConnections) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.HostName != that.HostName { + return false + } + if len(this.Connections) != len(that.Connections) { + return false + } + for i, vx := range this.Connections { + vy := that.Connections[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &Connection{} + } + if q == nil { + q = &Connection{} + } + if !p.EqualVT(q) { + return false + } + } + } + if this.GroupId != that.GroupId { + return false + } + if this.GroupSize != that.GroupSize { + return false + } + if len(this.ResolvedResources) != len(that.ResolvedResources) { + return false + } + for i, vx := range this.ResolvedResources { + vy, ok := that.ResolvedResources[i] + if !ok { + return false + } + if p, q := vx, vy; p != q { + if p == nil { + p = &ResourceMetadata{} + } + if q == nil { + q = &ResourceMetadata{} + } + if !p.EqualVT(q) { + return false + } + } + } + if len(this.ContainerForPid) != len(that.ContainerForPid) { + return false + } + for i, vx := range this.ContainerForPid { + vy, ok := that.ContainerForPid[i] + if !ok { + return false + } + if vx != vy { + return false + } + } + if string(this.EncodedTags) != string(that.EncodedTags) { + return false + } + if this.NetworkId != that.NetworkId { + return false + } + if string(this.EncodedDNS) != string(that.EncodedDNS) { + return false + } + if this.ContainerHostType != that.ContainerHostType { + return false + } + if !this.ConnTelemetry.EqualVT(that.ConnTelemetry) { + return false + } + if this.Architecture != that.Architecture { + return false + } + if this.KernelVersion != that.KernelVersion { + return false + } + if this.Platform != that.Platform { + return false + } + if this.PlatformVersion != that.PlatformVersion { + return false + } + if len(this.CompilationTelemetryByAsset) != len(that.CompilationTelemetryByAsset) { + return false + } + for i, vx := range this.CompilationTelemetryByAsset { + vy, ok := that.CompilationTelemetryByAsset[i] + if !ok { + return false + } + if p, q := vx, vy; p != q { + if p == nil { + p = &RuntimeCompilationTelemetry{} + } + if q == nil { + q = &RuntimeCompilationTelemetry{} + } + if !p.EqualVT(q) { + return false + } + } + } + if len(this.Domains) != len(that.Domains) { + return false + } + for i, vx := range this.Domains { + vy := that.Domains[i] + if vx != vy { + return false + } + } + if len(this.Routes) != len(that.Routes) { + return false + } + for i, vx := range this.Routes { + vy := that.Routes[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &Route{} + } + if q == nil { + q = &Route{} + } + if !p.EqualVT(q) { + return false + } + } + } + if len(this.RouteMetadata) != len(that.RouteMetadata) { + return false + } + for i, vx := range this.RouteMetadata { + vy := that.RouteMetadata[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &RouteMetadata{} + } + if q == nil { + q = &RouteMetadata{} + } + if !p.EqualVT(q) { + return false + } + } + } + if !this.AgentConfiguration.EqualVT(that.AgentConfiguration) { + return false + } + if string(this.EncodedDomainDatabase) != string(that.EncodedDomainDatabase) { + return false + } + if string(this.EncodedDnsLookups) != string(that.EncodedDnsLookups) { + return false + } + if string(this.EncodedConnectionsTags) != string(that.EncodedConnectionsTags) { + return false + } + if len(this.ConnTelemetryMap) != len(that.ConnTelemetryMap) { + return false + } + for i, vx := range this.ConnTelemetryMap { + vy, ok := that.ConnTelemetryMap[i] + if !ok { + return false + } + if vx != vy { + return false + } + } + if len(this.ResolvedHostsByName) != len(that.ResolvedHostsByName) { + return false + } + for i, vx := range this.ResolvedHostsByName { + vy, ok := that.ResolvedHostsByName[i] + if !ok { + return false + } + if p, q := vx, vy; p != q { + if p == nil { + p = &Host{} + } + if q == nil { + q = &Host{} + } + if !p.EqualVT(q) { + return false + } + } + } + if this.KernelHeaderFetchResult != that.KernelHeaderFetchResult { + return false + } + if len(this.CORETelemetryByAsset) != len(that.CORETelemetryByAsset) { + return false + } + for i, vx := range this.CORETelemetryByAsset { + vy, ok := that.CORETelemetryByAsset[i] + if !ok { + return false + } + if vx != vy { + return false + } + } + if len(this.PrebuiltEBPFAssets) != len(that.PrebuiltEBPFAssets) { + return false + } + for i, vx := range this.PrebuiltEBPFAssets { + vy := that.PrebuiltEBPFAssets[i] + if vx != vy { + return false + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *CollectorConnections) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*CollectorConnections) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *Connections) EqualVT(that *Connections) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if len(this.Conns) != len(that.Conns) { + return false + } + for i, vx := range this.Conns { + vy := that.Conns[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &Connection{} + } + if q == nil { + q = &Connection{} + } + if !p.EqualVT(q) { + return false + } + } + } + if len(this.Dns) != len(that.Dns) { + return false + } + for i, vx := range this.Dns { + vy, ok := that.Dns[i] + if !ok { + return false + } + if p, q := vx, vy; p != q { + if p == nil { + p = &DNSEntry{} + } + if q == nil { + q = &DNSEntry{} + } + if !p.EqualVT(q) { + return false + } + } + } + if !this.ConnTelemetry.EqualVT(that.ConnTelemetry) { + return false + } + if len(this.Domains) != len(that.Domains) { + return false + } + for i, vx := range this.Domains { + vy := that.Domains[i] + if vx != vy { + return false + } + } + if len(this.Routes) != len(that.Routes) { + return false + } + for i, vx := range this.Routes { + vy := that.Routes[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &Route{} + } + if q == nil { + q = &Route{} + } + if !p.EqualVT(q) { + return false + } + } + } + if len(this.CompilationTelemetryByAsset) != len(that.CompilationTelemetryByAsset) { + return false + } + for i, vx := range this.CompilationTelemetryByAsset { + vy, ok := that.CompilationTelemetryByAsset[i] + if !ok { + return false + } + if p, q := vx, vy; p != q { + if p == nil { + p = &RuntimeCompilationTelemetry{} + } + if q == nil { + q = &RuntimeCompilationTelemetry{} + } + if !p.EqualVT(q) { + return false + } + } + } + if !this.AgentConfiguration.EqualVT(that.AgentConfiguration) { + return false + } + if len(this.Tags) != len(that.Tags) { + return false + } + for i, vx := range this.Tags { + vy := that.Tags[i] + if vx != vy { + return false + } + } + if len(this.ConnTelemetryMap) != len(that.ConnTelemetryMap) { + return false + } + for i, vx := range this.ConnTelemetryMap { + vy, ok := that.ConnTelemetryMap[i] + if !ok { + return false + } + if vx != vy { + return false + } + } + if this.KernelHeaderFetchResult != that.KernelHeaderFetchResult { + return false + } + if len(this.CORETelemetryByAsset) != len(that.CORETelemetryByAsset) { + return false + } + for i, vx := range this.CORETelemetryByAsset { + vy, ok := that.CORETelemetryByAsset[i] + if !ok { + return false + } + if vx != vy { + return false + } + } + if len(this.PrebuiltEBPFAssets) != len(that.PrebuiltEBPFAssets) { + return false + } + for i, vx := range this.PrebuiltEBPFAssets { + vy := that.PrebuiltEBPFAssets[i] + if vx != vy { + return false + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *Connections) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*Connections) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *Connection) EqualVT(that *Connection) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.Pid != that.Pid { + return false + } + if !this.Laddr.EqualVT(that.Laddr) { + return false + } + if !this.Raddr.EqualVT(that.Raddr) { + return false + } + if this.Family != that.Family { + return false + } + if this.Type != that.Type { + return false + } + if this.LastBytesSent != that.LastBytesSent { + return false + } + if this.LastBytesReceived != that.LastBytesReceived { + return false + } + if this.LastRetransmits != that.LastRetransmits { + return false + } + if this.Direction != that.Direction { + return false + } + if this.NetNS != that.NetNS { + return false + } + if !this.IpTranslation.EqualVT(that.IpTranslation) { + return false + } + if this.Rtt != that.Rtt { + return false + } + if this.RttVar != that.RttVar { + return false + } + if this.IntraHost != that.IntraHost { + return false + } + if this.DnsSuccessfulResponses != that.DnsSuccessfulResponses { + return false + } + if this.DnsFailedResponses != that.DnsFailedResponses { + return false + } + if this.DnsTimeouts != that.DnsTimeouts { + return false + } + if this.DnsSuccessLatencySum != that.DnsSuccessLatencySum { + return false + } + if this.DnsFailureLatencySum != that.DnsFailureLatencySum { + return false + } + if this.LastTcpEstablished != that.LastTcpEstablished { + return false + } + if this.LastTcpClosed != that.LastTcpClosed { + return false + } + if this.RemoteNetworkId != that.RemoteNetworkId { + return false + } + if len(this.DnsCountByRcode) != len(that.DnsCountByRcode) { + return false + } + for i, vx := range this.DnsCountByRcode { + vy, ok := that.DnsCountByRcode[i] + if !ok { + return false + } + if vx != vy { + return false + } + } + if len(this.DnsStatsByDomain) != len(that.DnsStatsByDomain) { + return false + } + for i, vx := range this.DnsStatsByDomain { + vy, ok := that.DnsStatsByDomain[i] + if !ok { + return false + } + if p, q := vx, vy; p != q { + if p == nil { + p = &DNSStats{} + } + if q == nil { + q = &DNSStats{} + } + if !p.EqualVT(q) { + return false + } + } + } + if this.RouteIdx != that.RouteIdx { + return false + } + if string(this.HttpAggregations) != string(that.HttpAggregations) { + return false + } + if this.LastPacketsSent != that.LastPacketsSent { + return false + } + if this.LastPacketsReceived != that.LastPacketsReceived { + return false + } + if this.RouteTargetIdx != that.RouteTargetIdx { + return false + } + if this.IsLocalPortEphemeral != that.IsLocalPortEphemeral { + return false + } + if len(this.DnsStatsByDomainByQueryType) != len(that.DnsStatsByDomainByQueryType) { + return false + } + for i, vx := range this.DnsStatsByDomainByQueryType { + vy, ok := that.DnsStatsByDomainByQueryType[i] + if !ok { + return false + } + if p, q := vx, vy; p != q { + if p == nil { + p = &DNSStatsByQueryType{} + } + if q == nil { + q = &DNSStatsByQueryType{} + } + if !p.EqualVT(q) { + return false + } + } + } + if len(this.DnsStatsByDomainOffsetByQueryType) != len(that.DnsStatsByDomainOffsetByQueryType) { + return false + } + for i, vx := range this.DnsStatsByDomainOffsetByQueryType { + vy, ok := that.DnsStatsByDomainOffsetByQueryType[i] + if !ok { + return false + } + if p, q := vx, vy; p != q { + if p == nil { + p = &DNSStatsByQueryType{} + } + if q == nil { + q = &DNSStatsByQueryType{} + } + if !p.EqualVT(q) { + return false + } + } + } + if len(this.Tags) != len(that.Tags) { + return false + } + for i, vx := range this.Tags { + vy := that.Tags[i] + if vx != vy { + return false + } + } + if this.TagsIdx != that.TagsIdx { + return false + } + if this.StateIndex != that.StateIndex { + return false + } + if this.TagsChecksum != that.TagsChecksum { + return false + } + if !this.Protocol.EqualVT(that.Protocol) { + return false + } + if string(this.DataStreamsAggregations) != string(that.DataStreamsAggregations) { + return false + } + if string(this.Http2Aggregations) != string(that.Http2Aggregations) { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *Connection) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*Connection) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *ResourceMetadata) EqualVT(that *ResourceMetadata) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.Id != that.Id { + return false + } + if this.Key != that.Key { + return false + } + if string(this.ByteKey) != string(that.ByteKey) { + return false + } + if len(this.Tags) != len(that.Tags) { + return false + } + for i, vx := range this.Tags { + vy := that.Tags[i] + if vx != vy { + return false + } + } + if this.TagIndex != that.TagIndex { + return false + } + if this.TagsModified != that.TagsModified { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *ResourceMetadata) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*ResourceMetadata) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *ConnectionsTelemetry) EqualVT(that *ConnectionsTelemetry) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.MonotonicKprobesTriggered != that.MonotonicKprobesTriggered { + return false + } + if this.MonotonicKprobesMissed != that.MonotonicKprobesMissed { + return false + } + if this.MonotonicConntrackRegisters != that.MonotonicConntrackRegisters { + return false + } + if this.MonotonicConntrackRegistersDropped != that.MonotonicConntrackRegistersDropped { + return false + } + if this.MonotonicDnsPacketsProcessed != that.MonotonicDnsPacketsProcessed { + return false + } + if this.MonotonicConnsClosed != that.MonotonicConnsClosed { + return false + } + if this.ConnsBpfMapSize != that.ConnsBpfMapSize { + return false + } + if this.MonotonicUdpSendsProcessed != that.MonotonicUdpSendsProcessed { + return false + } + if this.MonotonicUdpSendsMissed != that.MonotonicUdpSendsMissed { + return false + } + if this.ConntrackSamplingPercent != that.ConntrackSamplingPercent { + return false + } + if this.DnsStatsDropped != that.DnsStatsDropped { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *ConnectionsTelemetry) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*ConnectionsTelemetry) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *CollectorConnectionsTelemetry) EqualVT(that *CollectorConnectionsTelemetry) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.KprobesTriggered != that.KprobesTriggered { + return false + } + if this.KprobesMissed != that.KprobesMissed { + return false + } + if this.ConntrackRegisters != that.ConntrackRegisters { + return false + } + if this.ConntrackRegistersDropped != that.ConntrackRegistersDropped { + return false + } + if this.DnsPacketsProcessed != that.DnsPacketsProcessed { + return false + } + if this.ConnsClosed != that.ConnsClosed { + return false + } + if this.ConnsBpfMapSize != that.ConnsBpfMapSize { + return false + } + if this.UdpSendsProcessed != that.UdpSendsProcessed { + return false + } + if this.UdpSendsMissed != that.UdpSendsMissed { + return false + } + if this.ConntrackSamplingPercent != that.ConntrackSamplingPercent { + return false + } + if this.DnsStatsDropped != that.DnsStatsDropped { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *CollectorConnectionsTelemetry) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*CollectorConnectionsTelemetry) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *RuntimeCompilationTelemetry) EqualVT(that *RuntimeCompilationTelemetry) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.RuntimeCompilationEnabled != that.RuntimeCompilationEnabled { + return false + } + if this.RuntimeCompilationResult != that.RuntimeCompilationResult { + return false + } + if this.RuntimeCompilationDuration != that.RuntimeCompilationDuration { + return false + } + if this.KernelHeaderFetchResult != that.KernelHeaderFetchResult { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *RuntimeCompilationTelemetry) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*RuntimeCompilationTelemetry) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *AgentConfiguration) EqualVT(that *AgentConfiguration) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.NpmEnabled != that.NpmEnabled { + return false + } + if this.UsmEnabled != that.UsmEnabled { + return false + } + if this.DsmEnabled != that.DsmEnabled { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *AgentConfiguration) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*AgentConfiguration) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *Route) EqualVT(that *Route) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if !this.Subnet.EqualVT(that.Subnet) { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *Route) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*Route) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *Subnet) EqualVT(that *Subnet) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.Alias != that.Alias { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *Subnet) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*Subnet) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *RouteMetadata) EqualVT(that *RouteMetadata) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.Alias != that.Alias { + return false + } + if this.TagIndex != that.TagIndex { + return false + } + if this.TagsModified != that.TagsModified { + return false + } + if len(this.Tags) != len(that.Tags) { + return false + } + for i, vx := range this.Tags { + vy := that.Tags[i] + if vx != vy { + return false + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *RouteMetadata) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*RouteMetadata) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *IPTranslation) EqualVT(that *IPTranslation) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.ReplSrcIP != that.ReplSrcIP { + return false + } + if this.ReplDstIP != that.ReplDstIP { + return false + } + if this.ReplSrcPort != that.ReplSrcPort { + return false + } + if this.ReplDstPort != that.ReplDstPort { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *IPTranslation) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*IPTranslation) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *Addr) EqualVT(that *Addr) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.Ip != that.Ip { + return false + } + if this.Port != that.Port { + return false + } + if this.ContainerId != that.ContainerId { + return false + } + if this.HostName != that.HostName { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *Addr) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*Addr) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *ProtocolStack) EqualVT(that *ProtocolStack) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if len(this.Stack) != len(that.Stack) { + return false + } + for i, vx := range this.Stack { + vy := that.Stack[i] + if vx != vy { + return false + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *ProtocolStack) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*ProtocolStack) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *DNSEntry) EqualVT(that *DNSEntry) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if len(this.Names) != len(that.Names) { + return false + } + for i, vx := range this.Names { + vy := that.Names[i] + if vx != vy { + return false + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *DNSEntry) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*DNSEntry) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *DNSStats) EqualVT(that *DNSStats) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.DnsTimeouts != that.DnsTimeouts { + return false + } + if this.DnsSuccessLatencySum != that.DnsSuccessLatencySum { + return false + } + if this.DnsFailureLatencySum != that.DnsFailureLatencySum { + return false + } + if len(this.DnsCountByRcode) != len(that.DnsCountByRcode) { + return false + } + for i, vx := range this.DnsCountByRcode { + vy, ok := that.DnsCountByRcode[i] + if !ok { + return false + } + if vx != vy { + return false + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *DNSStats) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*DNSStats) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *DNSStatsByQueryType) EqualVT(that *DNSStatsByQueryType) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if len(this.DnsStatsByQueryType) != len(that.DnsStatsByQueryType) { + return false + } + for i, vx := range this.DnsStatsByQueryType { + vy, ok := that.DnsStatsByQueryType[i] + if !ok { + return false + } + if p, q := vx, vy; p != q { + if p == nil { + p = &DNSStats{} + } + if q == nil { + q = &DNSStats{} + } + if !p.EqualVT(q) { + return false + } + } + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *DNSStatsByQueryType) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*DNSStatsByQueryType) + if !ok { + return false + } + return this.EqualVT(that) +} +func (m *CollectorConnections) 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 *CollectorConnections) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *CollectorConnections) 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.PrebuiltEBPFAssets) > 0 { + for iNdEx := len(m.PrebuiltEBPFAssets) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.PrebuiltEBPFAssets[iNdEx]) + copy(dAtA[i:], m.PrebuiltEBPFAssets[iNdEx]) + i = encodeVarint(dAtA, i, uint64(len(m.PrebuiltEBPFAssets[iNdEx]))) + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0xe2 + } + } + if len(m.CORETelemetryByAsset) > 0 { + for k := range m.CORETelemetryByAsset { + v := m.CORETelemetryByAsset[k] + baseI := i + i = encodeVarint(dAtA, i, uint64(v)) + i-- + dAtA[i] = 0x10 + 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] = 0x2 + i-- + dAtA[i] = 0xd2 + } + } + if m.KernelHeaderFetchResult != 0 { + i = encodeVarint(dAtA, i, uint64(m.KernelHeaderFetchResult)) + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0xc8 + } + if len(m.ResolvedHostsByName) > 0 { + for k := range m.ResolvedHostsByName { + v := m.ResolvedHostsByName[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] = 0x2 + i-- + dAtA[i] = 0xc2 + } + } + if len(m.ConnTelemetryMap) > 0 { + for k := range m.ConnTelemetryMap { + v := m.ConnTelemetryMap[k] + baseI := i + i = encodeVarint(dAtA, i, uint64(v)) + i-- + dAtA[i] = 0x10 + 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] = 0x2 + i-- + dAtA[i] = 0xba + } + } + if len(m.EncodedConnectionsTags) > 0 { + i -= len(m.EncodedConnectionsTags) + copy(dAtA[i:], m.EncodedConnectionsTags) + i = encodeVarint(dAtA, i, uint64(len(m.EncodedConnectionsTags))) + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0xb2 + } + if len(m.EncodedDnsLookups) > 0 { + i -= len(m.EncodedDnsLookups) + copy(dAtA[i:], m.EncodedDnsLookups) + i = encodeVarint(dAtA, i, uint64(len(m.EncodedDnsLookups))) + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0xaa + } + if len(m.EncodedDomainDatabase) > 0 { + i -= len(m.EncodedDomainDatabase) + copy(dAtA[i:], m.EncodedDomainDatabase) + i = encodeVarint(dAtA, i, uint64(len(m.EncodedDomainDatabase))) + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0xa2 + } + if m.AgentConfiguration != nil { + size, err := m.AgentConfiguration.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0x9a + } + if len(m.RouteMetadata) > 0 { + for iNdEx := len(m.RouteMetadata) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.RouteMetadata[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0x92 + } + } + if len(m.Routes) > 0 { + for iNdEx := len(m.Routes) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Routes[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xfa + } + } + if len(m.Domains) > 0 { + for iNdEx := len(m.Domains) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Domains[iNdEx]) + copy(dAtA[i:], m.Domains[iNdEx]) + i = encodeVarint(dAtA, i, uint64(len(m.Domains[iNdEx]))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xf2 + } + } + if len(m.CompilationTelemetryByAsset) > 0 { + for k := range m.CompilationTelemetryByAsset { + v := m.CompilationTelemetryByAsset[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] = 0x1 + i-- + dAtA[i] = 0xaa + } + } + if len(m.PlatformVersion) > 0 { + i -= len(m.PlatformVersion) + copy(dAtA[i:], m.PlatformVersion) + i = encodeVarint(dAtA, i, uint64(len(m.PlatformVersion))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xa2 + } + if len(m.Platform) > 0 { + i -= len(m.Platform) + copy(dAtA[i:], m.Platform) + i = encodeVarint(dAtA, i, uint64(len(m.Platform))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x9a + } + if len(m.KernelVersion) > 0 { + i -= len(m.KernelVersion) + copy(dAtA[i:], m.KernelVersion) + i = encodeVarint(dAtA, i, uint64(len(m.KernelVersion))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x92 + } + if len(m.Architecture) > 0 { + i -= len(m.Architecture) + copy(dAtA[i:], m.Architecture) + i = encodeVarint(dAtA, i, uint64(len(m.Architecture))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x8a + } + if m.ConnTelemetry != nil { + size, err := m.ConnTelemetry.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x82 + } + if m.ContainerHostType != 0 { + i = encodeVarint(dAtA, i, uint64(m.ContainerHostType)) + i-- + dAtA[i] = 0x78 + } + if len(m.EncodedDNS) > 0 { + i -= len(m.EncodedDNS) + copy(dAtA[i:], m.EncodedDNS) + i = encodeVarint(dAtA, i, uint64(len(m.EncodedDNS))) + i-- + dAtA[i] = 0x72 + } + if len(m.NetworkId) > 0 { + i -= len(m.NetworkId) + copy(dAtA[i:], m.NetworkId) + i = encodeVarint(dAtA, i, uint64(len(m.NetworkId))) + i-- + dAtA[i] = 0x62 + } + if len(m.EncodedTags) > 0 { + i -= len(m.EncodedTags) + copy(dAtA[i:], m.EncodedTags) + i = encodeVarint(dAtA, i, uint64(len(m.EncodedTags))) + i-- + dAtA[i] = 0x5a + } + if len(m.ContainerForPid) > 0 { + for k := range m.ContainerForPid { + v := m.ContainerForPid[k] + baseI := i + i -= len(v) + copy(dAtA[i:], v) + i = encodeVarint(dAtA, i, uint64(len(v))) + i-- + dAtA[i] = 0x12 + i = encodeVarint(dAtA, i, uint64(k)) + i-- + dAtA[i] = 0x8 + i = encodeVarint(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0x52 + } + } + if len(m.ResolvedResources) > 0 { + for k := range m.ResolvedResources { + v := m.ResolvedResources[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] = 0x42 + } + } + if m.GroupSize != 0 { + i = encodeVarint(dAtA, i, uint64(m.GroupSize)) + i-- + dAtA[i] = 0x30 + } + if m.GroupId != 0 { + i = encodeVarint(dAtA, i, uint64(m.GroupId)) + i-- + dAtA[i] = 0x28 + } + if len(m.Connections) > 0 { + for iNdEx := len(m.Connections) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Connections[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x1a + } + } + if len(m.HostName) > 0 { + i -= len(m.HostName) + copy(dAtA[i:], m.HostName) + i = encodeVarint(dAtA, i, uint64(len(m.HostName))) + i-- + dAtA[i] = 0x12 + } + return len(dAtA) - i, nil +} + +func (m *Connections) 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 *Connections) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *Connections) 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.PrebuiltEBPFAssets) > 0 { + for iNdEx := len(m.PrebuiltEBPFAssets) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.PrebuiltEBPFAssets[iNdEx]) + copy(dAtA[i:], m.PrebuiltEBPFAssets[iNdEx]) + i = encodeVarint(dAtA, i, uint64(len(m.PrebuiltEBPFAssets[iNdEx]))) + i-- + dAtA[i] = 0x62 + } + } + if len(m.CORETelemetryByAsset) > 0 { + for k := range m.CORETelemetryByAsset { + v := m.CORETelemetryByAsset[k] + baseI := i + i = encodeVarint(dAtA, i, uint64(v)) + i-- + dAtA[i] = 0x10 + 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] = 0x5a + } + } + if m.KernelHeaderFetchResult != 0 { + i = encodeVarint(dAtA, i, uint64(m.KernelHeaderFetchResult)) + i-- + dAtA[i] = 0x50 + } + if len(m.ConnTelemetryMap) > 0 { + for k := range m.ConnTelemetryMap { + v := m.ConnTelemetryMap[k] + baseI := i + i = encodeVarint(dAtA, i, uint64(v)) + i-- + dAtA[i] = 0x10 + 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] = 0x4a + } + } + 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] = 0x42 + } + } + if m.AgentConfiguration != nil { + size, err := m.AgentConfiguration.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x3a + } + if len(m.CompilationTelemetryByAsset) > 0 { + for k := range m.CompilationTelemetryByAsset { + v := m.CompilationTelemetryByAsset[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] = 0x32 + } + } + if len(m.Routes) > 0 { + for iNdEx := len(m.Routes) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Routes[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x2a + } + } + if len(m.Domains) > 0 { + for iNdEx := len(m.Domains) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Domains[iNdEx]) + copy(dAtA[i:], m.Domains[iNdEx]) + i = encodeVarint(dAtA, i, uint64(len(m.Domains[iNdEx]))) + i-- + dAtA[i] = 0x22 + } + } + if m.ConnTelemetry != nil { + size, err := m.ConnTelemetry.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x1a + } + if len(m.Dns) > 0 { + for k := range m.Dns { + v := m.Dns[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] = 0x12 + } + } + if len(m.Conns) > 0 { + for iNdEx := len(m.Conns) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Conns[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *Connection) 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 *Connection) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *Connection) 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.Http2Aggregations) > 0 { + i -= len(m.Http2Aggregations) + copy(dAtA[i:], m.Http2Aggregations) + i = encodeVarint(dAtA, i, uint64(len(m.Http2Aggregations))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x92 + } + if len(m.DataStreamsAggregations) > 0 { + i -= len(m.DataStreamsAggregations) + copy(dAtA[i:], m.DataStreamsAggregations) + i = encodeVarint(dAtA, i, uint64(len(m.DataStreamsAggregations))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x8a + } + if m.Protocol != nil { + size, err := m.Protocol.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x82 + } + if m.TagsChecksum != 0 { + i = encodeVarint(dAtA, i, uint64(m.TagsChecksum)) + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0xf8 + } + if m.StateIndex != 0 { + i = encodeVarint(dAtA, i, uint64(m.StateIndex)) + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0xf0 + } + if m.TagsIdx != 0 { + i = encodeVarint(dAtA, i, uint64(m.TagsIdx)) + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0xe8 + } + if len(m.Tags) > 0 { + var pksize2 int + for _, num := range m.Tags { + pksize2 += sov(uint64(num)) + } + i -= pksize2 + j1 := i + for _, num := range m.Tags { + for num >= 1<<7 { + dAtA[j1] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j1++ + } + dAtA[j1] = uint8(num) + j1++ + } + i = encodeVarint(dAtA, i, uint64(pksize2)) + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0xe2 + } + if len(m.DnsStatsByDomainOffsetByQueryType) > 0 { + for k := range m.DnsStatsByDomainOffsetByQueryType { + v := m.DnsStatsByDomainOffsetByQueryType[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 = encodeVarint(dAtA, i, uint64(k)) + i-- + dAtA[i] = 0x8 + i = encodeVarint(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0xda + } + } + if len(m.DnsStatsByDomainByQueryType) > 0 { + for k := range m.DnsStatsByDomainByQueryType { + v := m.DnsStatsByDomainByQueryType[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 = encodeVarint(dAtA, i, uint64(k)) + i-- + dAtA[i] = 0x8 + i = encodeVarint(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0xd2 + } + } + if m.IsLocalPortEphemeral != 0 { + i = encodeVarint(dAtA, i, uint64(m.IsLocalPortEphemeral)) + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0xc8 + } + if m.RouteTargetIdx != 0 { + i = encodeVarint(dAtA, i, uint64(m.RouteTargetIdx)) + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0xc0 + } + if m.LastPacketsReceived != 0 { + i = encodeVarint(dAtA, i, uint64(m.LastPacketsReceived)) + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0xb8 + } + if m.LastPacketsSent != 0 { + i = encodeVarint(dAtA, i, uint64(m.LastPacketsSent)) + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0xb0 + } + if len(m.HttpAggregations) > 0 { + i -= len(m.HttpAggregations) + copy(dAtA[i:], m.HttpAggregations) + i = encodeVarint(dAtA, i, uint64(len(m.HttpAggregations))) + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0xaa + } + if m.RouteIdx != 0 { + i = encodeVarint(dAtA, i, uint64(m.RouteIdx)) + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0xa0 + } + if len(m.DnsStatsByDomain) > 0 { + for k := range m.DnsStatsByDomain { + v := m.DnsStatsByDomain[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 = encodeVarint(dAtA, i, uint64(k)) + i-- + dAtA[i] = 0x8 + i = encodeVarint(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0x92 + } + } + if len(m.DnsCountByRcode) > 0 { + for k := range m.DnsCountByRcode { + v := m.DnsCountByRcode[k] + baseI := i + i = encodeVarint(dAtA, i, uint64(v)) + i-- + dAtA[i] = 0x10 + i = encodeVarint(dAtA, i, uint64(k)) + i-- + dAtA[i] = 0x8 + i = encodeVarint(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0x8a + } + } + if len(m.RemoteNetworkId) > 0 { + i -= len(m.RemoteNetworkId) + copy(dAtA[i:], m.RemoteNetworkId) + i = encodeVarint(dAtA, i, uint64(len(m.RemoteNetworkId))) + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0x82 + } + if m.LastTcpClosed != 0 { + i = encodeVarint(dAtA, i, uint64(m.LastTcpClosed)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xf8 + } + if m.LastTcpEstablished != 0 { + i = encodeVarint(dAtA, i, uint64(m.LastTcpEstablished)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xf0 + } + if m.DnsFailureLatencySum != 0 { + i = encodeVarint(dAtA, i, uint64(m.DnsFailureLatencySum)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xe8 + } + if m.DnsSuccessLatencySum != 0 { + i = encodeVarint(dAtA, i, uint64(m.DnsSuccessLatencySum)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xe0 + } + if m.DnsTimeouts != 0 { + i = encodeVarint(dAtA, i, uint64(m.DnsTimeouts)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xd8 + } + if m.DnsFailedResponses != 0 { + i = encodeVarint(dAtA, i, uint64(m.DnsFailedResponses)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xd0 + } + if m.DnsSuccessfulResponses != 0 { + i = encodeVarint(dAtA, i, uint64(m.DnsSuccessfulResponses)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xc8 + } + if m.IntraHost { + i-- + if m.IntraHost { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xc0 + } + if m.RttVar != 0 { + i = encodeVarint(dAtA, i, uint64(m.RttVar)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xb8 + } + if m.Rtt != 0 { + i = encodeVarint(dAtA, i, uint64(m.Rtt)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xb0 + } + if m.IpTranslation != nil { + size, err := m.IpTranslation.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xaa + } + if m.NetNS != 0 { + i = encodeVarint(dAtA, i, uint64(m.NetNS)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xa0 + } + if m.Direction != 0 { + i = encodeVarint(dAtA, i, uint64(m.Direction)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x98 + } + if m.LastRetransmits != 0 { + i = encodeVarint(dAtA, i, uint64(m.LastRetransmits)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x90 + } + if m.LastBytesReceived != 0 { + i = encodeVarint(dAtA, i, uint64(m.LastBytesReceived)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x88 + } + if m.LastBytesSent != 0 { + i = encodeVarint(dAtA, i, uint64(m.LastBytesSent)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x80 + } + if m.Type != 0 { + i = encodeVarint(dAtA, i, uint64(m.Type)) + i-- + dAtA[i] = 0x58 + } + if m.Family != 0 { + i = encodeVarint(dAtA, i, uint64(m.Family)) + i-- + dAtA[i] = 0x50 + } + if m.Raddr != nil { + size, err := m.Raddr.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x32 + } + if m.Laddr != nil { + size, err := m.Laddr.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x2a + } + if m.Pid != 0 { + i = encodeVarint(dAtA, i, uint64(m.Pid)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *ResourceMetadata) 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 *ResourceMetadata) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *ResourceMetadata) 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.TagsModified != 0 { + i = encodeVarint(dAtA, i, uint64(m.TagsModified)) + i-- + dAtA[i] = 0x30 + } + if m.TagIndex != 0 { + i = encodeVarint(dAtA, i, uint64(m.TagIndex)) + i-- + dAtA[i] = 0x28 + } + if len(m.Tags) > 0 { + for iNdEx := len(m.Tags) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Tags[iNdEx]) + copy(dAtA[i:], m.Tags[iNdEx]) + i = encodeVarint(dAtA, i, uint64(len(m.Tags[iNdEx]))) + i-- + dAtA[i] = 0x22 + } + } + if len(m.ByteKey) > 0 { + i -= len(m.ByteKey) + copy(dAtA[i:], m.ByteKey) + i = encodeVarint(dAtA, i, uint64(len(m.ByteKey))) + i-- + dAtA[i] = 0x1a + } + if m.Key != 0 { + i = encodeVarint(dAtA, i, uint64(m.Key)) + i-- + dAtA[i] = 0x10 + } + if len(m.Id) > 0 { + i -= len(m.Id) + copy(dAtA[i:], m.Id) + i = encodeVarint(dAtA, i, uint64(len(m.Id))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ConnectionsTelemetry) 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 *ConnectionsTelemetry) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *ConnectionsTelemetry) 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.DnsStatsDropped != 0 { + i = encodeVarint(dAtA, i, uint64(m.DnsStatsDropped)) + i-- + dAtA[i] = 0x58 + } + if m.ConntrackSamplingPercent != 0 { + i = encodeVarint(dAtA, i, uint64(m.ConntrackSamplingPercent)) + i-- + dAtA[i] = 0x50 + } + if m.MonotonicUdpSendsMissed != 0 { + i = encodeVarint(dAtA, i, uint64(m.MonotonicUdpSendsMissed)) + i-- + dAtA[i] = 0x48 + } + if m.MonotonicUdpSendsProcessed != 0 { + i = encodeVarint(dAtA, i, uint64(m.MonotonicUdpSendsProcessed)) + i-- + dAtA[i] = 0x40 + } + if m.ConnsBpfMapSize != 0 { + i = encodeVarint(dAtA, i, uint64(m.ConnsBpfMapSize)) + i-- + dAtA[i] = 0x38 + } + if m.MonotonicConnsClosed != 0 { + i = encodeVarint(dAtA, i, uint64(m.MonotonicConnsClosed)) + i-- + dAtA[i] = 0x30 + } + if m.MonotonicDnsPacketsProcessed != 0 { + i = encodeVarint(dAtA, i, uint64(m.MonotonicDnsPacketsProcessed)) + i-- + dAtA[i] = 0x28 + } + if m.MonotonicConntrackRegistersDropped != 0 { + i = encodeVarint(dAtA, i, uint64(m.MonotonicConntrackRegistersDropped)) + i-- + dAtA[i] = 0x20 + } + if m.MonotonicConntrackRegisters != 0 { + i = encodeVarint(dAtA, i, uint64(m.MonotonicConntrackRegisters)) + i-- + dAtA[i] = 0x18 + } + if m.MonotonicKprobesMissed != 0 { + i = encodeVarint(dAtA, i, uint64(m.MonotonicKprobesMissed)) + i-- + dAtA[i] = 0x10 + } + if m.MonotonicKprobesTriggered != 0 { + i = encodeVarint(dAtA, i, uint64(m.MonotonicKprobesTriggered)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *CollectorConnectionsTelemetry) 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 *CollectorConnectionsTelemetry) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *CollectorConnectionsTelemetry) 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.DnsStatsDropped != 0 { + i = encodeVarint(dAtA, i, uint64(m.DnsStatsDropped)) + i-- + dAtA[i] = 0x58 + } + if m.ConntrackSamplingPercent != 0 { + i = encodeVarint(dAtA, i, uint64(m.ConntrackSamplingPercent)) + i-- + dAtA[i] = 0x50 + } + if m.UdpSendsMissed != 0 { + i = encodeVarint(dAtA, i, uint64(m.UdpSendsMissed)) + i-- + dAtA[i] = 0x48 + } + if m.UdpSendsProcessed != 0 { + i = encodeVarint(dAtA, i, uint64(m.UdpSendsProcessed)) + i-- + dAtA[i] = 0x40 + } + if m.ConnsBpfMapSize != 0 { + i = encodeVarint(dAtA, i, uint64(m.ConnsBpfMapSize)) + i-- + dAtA[i] = 0x38 + } + if m.ConnsClosed != 0 { + i = encodeVarint(dAtA, i, uint64(m.ConnsClosed)) + i-- + dAtA[i] = 0x30 + } + if m.DnsPacketsProcessed != 0 { + i = encodeVarint(dAtA, i, uint64(m.DnsPacketsProcessed)) + i-- + dAtA[i] = 0x28 + } + if m.ConntrackRegistersDropped != 0 { + i = encodeVarint(dAtA, i, uint64(m.ConntrackRegistersDropped)) + i-- + dAtA[i] = 0x20 + } + if m.ConntrackRegisters != 0 { + i = encodeVarint(dAtA, i, uint64(m.ConntrackRegisters)) + i-- + dAtA[i] = 0x18 + } + if m.KprobesMissed != 0 { + i = encodeVarint(dAtA, i, uint64(m.KprobesMissed)) + i-- + dAtA[i] = 0x10 + } + if m.KprobesTriggered != 0 { + i = encodeVarint(dAtA, i, uint64(m.KprobesTriggered)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *RuntimeCompilationTelemetry) 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 *RuntimeCompilationTelemetry) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *RuntimeCompilationTelemetry) 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.KernelHeaderFetchResult != 0 { + i = encodeVarint(dAtA, i, uint64(m.KernelHeaderFetchResult)) + i-- + dAtA[i] = 0x20 + } + if m.RuntimeCompilationDuration != 0 { + i = encodeVarint(dAtA, i, uint64(m.RuntimeCompilationDuration)) + i-- + dAtA[i] = 0x18 + } + if m.RuntimeCompilationResult != 0 { + i = encodeVarint(dAtA, i, uint64(m.RuntimeCompilationResult)) + i-- + dAtA[i] = 0x10 + } + if m.RuntimeCompilationEnabled { + i-- + if m.RuntimeCompilationEnabled { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *AgentConfiguration) 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 *AgentConfiguration) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *AgentConfiguration) 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.DsmEnabled { + i-- + if m.DsmEnabled { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + } + if m.UsmEnabled { + i-- + if m.UsmEnabled { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x10 + } + if m.NpmEnabled { + i-- + if m.NpmEnabled { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *Route) 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 *Route) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *Route) 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.Subnet != nil { + size, err := m.Subnet.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Subnet) 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 *Subnet) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *Subnet) 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.Alias) > 0 { + i -= len(m.Alias) + copy(dAtA[i:], m.Alias) + i = encodeVarint(dAtA, i, uint64(len(m.Alias))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RouteMetadata) 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 *RouteMetadata) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *RouteMetadata) 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.Tags) > 0 { + for iNdEx := len(m.Tags) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Tags[iNdEx]) + copy(dAtA[i:], m.Tags[iNdEx]) + i = encodeVarint(dAtA, i, uint64(len(m.Tags[iNdEx]))) + i-- + dAtA[i] = 0x22 + } + } + if m.TagsModified != 0 { + i = encodeVarint(dAtA, i, uint64(m.TagsModified)) + i-- + dAtA[i] = 0x18 + } + if m.TagIndex != 0 { + i = encodeVarint(dAtA, i, uint64(m.TagIndex)) + i-- + dAtA[i] = 0x10 + } + if len(m.Alias) > 0 { + i -= len(m.Alias) + copy(dAtA[i:], m.Alias) + i = encodeVarint(dAtA, i, uint64(len(m.Alias))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *IPTranslation) 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 *IPTranslation) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *IPTranslation) 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.ReplDstPort != 0 { + i = encodeVarint(dAtA, i, uint64(m.ReplDstPort)) + i-- + dAtA[i] = 0x20 + } + if m.ReplSrcPort != 0 { + i = encodeVarint(dAtA, i, uint64(m.ReplSrcPort)) + i-- + dAtA[i] = 0x18 + } + if len(m.ReplDstIP) > 0 { + i -= len(m.ReplDstIP) + copy(dAtA[i:], m.ReplDstIP) + i = encodeVarint(dAtA, i, uint64(len(m.ReplDstIP))) + i-- + dAtA[i] = 0x12 + } + if len(m.ReplSrcIP) > 0 { + i -= len(m.ReplSrcIP) + copy(dAtA[i:], m.ReplSrcIP) + i = encodeVarint(dAtA, i, uint64(len(m.ReplSrcIP))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Addr) 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 *Addr) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *Addr) 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.HostName) > 0 { + i -= len(m.HostName) + copy(dAtA[i:], m.HostName) + i = encodeVarint(dAtA, i, uint64(len(m.HostName))) + i-- + dAtA[i] = 0x3a + } + if len(m.ContainerId) > 0 { + i -= len(m.ContainerId) + copy(dAtA[i:], m.ContainerId) + i = encodeVarint(dAtA, i, uint64(len(m.ContainerId))) + i-- + dAtA[i] = 0x2a + } + if m.Port != 0 { + i = encodeVarint(dAtA, i, uint64(m.Port)) + i-- + dAtA[i] = 0x18 + } + if len(m.Ip) > 0 { + i -= len(m.Ip) + copy(dAtA[i:], m.Ip) + i = encodeVarint(dAtA, i, uint64(len(m.Ip))) + i-- + dAtA[i] = 0x12 + } + return len(dAtA) - i, nil +} + +func (m *ProtocolStack) 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 *ProtocolStack) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *ProtocolStack) 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.Stack) > 0 { + var pksize2 int + for _, num := range m.Stack { + pksize2 += sov(uint64(num)) + } + i -= pksize2 + j1 := i + for _, num1 := range m.Stack { + num := uint64(num1) + for num >= 1<<7 { + dAtA[j1] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j1++ + } + dAtA[j1] = uint8(num) + j1++ + } + i = encodeVarint(dAtA, i, uint64(pksize2)) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *DNSEntry) 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 *DNSEntry) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *DNSEntry) 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.Names) > 0 { + for iNdEx := len(m.Names) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Names[iNdEx]) + copy(dAtA[i:], m.Names[iNdEx]) + i = encodeVarint(dAtA, i, uint64(len(m.Names[iNdEx]))) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *DNSStats) 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 *DNSStats) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *DNSStats) 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.DnsCountByRcode) > 0 { + for k := range m.DnsCountByRcode { + v := m.DnsCountByRcode[k] + baseI := i + i = encodeVarint(dAtA, i, uint64(v)) + i-- + dAtA[i] = 0x10 + i = encodeVarint(dAtA, i, uint64(k)) + i-- + dAtA[i] = 0x8 + i = encodeVarint(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0x22 + } + } + if m.DnsFailureLatencySum != 0 { + i = encodeVarint(dAtA, i, uint64(m.DnsFailureLatencySum)) + i-- + dAtA[i] = 0x18 + } + if m.DnsSuccessLatencySum != 0 { + i = encodeVarint(dAtA, i, uint64(m.DnsSuccessLatencySum)) + i-- + dAtA[i] = 0x10 + } + if m.DnsTimeouts != 0 { + i = encodeVarint(dAtA, i, uint64(m.DnsTimeouts)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *DNSStatsByQueryType) 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 *DNSStatsByQueryType) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *DNSStatsByQueryType) 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.DnsStatsByQueryType) > 0 { + for k := range m.DnsStatsByQueryType { + v := m.DnsStatsByQueryType[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 = encodeVarint(dAtA, i, uint64(k)) + i-- + dAtA[i] = 0x8 + i = encodeVarint(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *CollectorConnections) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.HostName) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if len(m.Connections) > 0 { + for _, e := range m.Connections { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + if m.GroupId != 0 { + n += 1 + sov(uint64(m.GroupId)) + } + if m.GroupSize != 0 { + n += 1 + sov(uint64(m.GroupSize)) + } + if len(m.ResolvedResources) > 0 { + for k, v := range m.ResolvedResources { + _ = 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)) + } + } + if len(m.ContainerForPid) > 0 { + for k, v := range m.ContainerForPid { + _ = k + _ = v + mapEntrySize := 1 + sov(uint64(k)) + 1 + len(v) + sov(uint64(len(v))) + n += mapEntrySize + 1 + sov(uint64(mapEntrySize)) + } + } + l = len(m.EncodedTags) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.NetworkId) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.EncodedDNS) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.ContainerHostType != 0 { + n += 1 + sov(uint64(m.ContainerHostType)) + } + if m.ConnTelemetry != nil { + l = m.ConnTelemetry.SizeVT() + n += 2 + l + sov(uint64(l)) + } + l = len(m.Architecture) + if l > 0 { + n += 2 + l + sov(uint64(l)) + } + l = len(m.KernelVersion) + if l > 0 { + n += 2 + l + sov(uint64(l)) + } + l = len(m.Platform) + if l > 0 { + n += 2 + l + sov(uint64(l)) + } + l = len(m.PlatformVersion) + if l > 0 { + n += 2 + l + sov(uint64(l)) + } + if len(m.CompilationTelemetryByAsset) > 0 { + for k, v := range m.CompilationTelemetryByAsset { + _ = 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 + 2 + sov(uint64(mapEntrySize)) + } + } + if len(m.Domains) > 0 { + for _, s := range m.Domains { + l = len(s) + n += 2 + l + sov(uint64(l)) + } + } + if len(m.Routes) > 0 { + for _, e := range m.Routes { + l = e.SizeVT() + n += 2 + l + sov(uint64(l)) + } + } + if len(m.RouteMetadata) > 0 { + for _, e := range m.RouteMetadata { + l = e.SizeVT() + n += 2 + l + sov(uint64(l)) + } + } + if m.AgentConfiguration != nil { + l = m.AgentConfiguration.SizeVT() + n += 2 + l + sov(uint64(l)) + } + l = len(m.EncodedDomainDatabase) + if l > 0 { + n += 2 + l + sov(uint64(l)) + } + l = len(m.EncodedDnsLookups) + if l > 0 { + n += 2 + l + sov(uint64(l)) + } + l = len(m.EncodedConnectionsTags) + if l > 0 { + n += 2 + l + sov(uint64(l)) + } + if len(m.ConnTelemetryMap) > 0 { + for k, v := range m.ConnTelemetryMap { + _ = k + _ = v + mapEntrySize := 1 + len(k) + sov(uint64(len(k))) + 1 + sov(uint64(v)) + n += mapEntrySize + 2 + sov(uint64(mapEntrySize)) + } + } + if len(m.ResolvedHostsByName) > 0 { + for k, v := range m.ResolvedHostsByName { + _ = 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 + 2 + sov(uint64(mapEntrySize)) + } + } + if m.KernelHeaderFetchResult != 0 { + n += 2 + sov(uint64(m.KernelHeaderFetchResult)) + } + if len(m.CORETelemetryByAsset) > 0 { + for k, v := range m.CORETelemetryByAsset { + _ = k + _ = v + mapEntrySize := 1 + len(k) + sov(uint64(len(k))) + 1 + sov(uint64(v)) + n += mapEntrySize + 2 + sov(uint64(mapEntrySize)) + } + } + if len(m.PrebuiltEBPFAssets) > 0 { + for _, s := range m.PrebuiltEBPFAssets { + l = len(s) + n += 2 + l + sov(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *Connections) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Conns) > 0 { + for _, e := range m.Conns { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + if len(m.Dns) > 0 { + for k, v := range m.Dns { + _ = 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)) + } + } + if m.ConnTelemetry != nil { + l = m.ConnTelemetry.SizeVT() + n += 1 + l + sov(uint64(l)) + } + if len(m.Domains) > 0 { + for _, s := range m.Domains { + l = len(s) + n += 1 + l + sov(uint64(l)) + } + } + if len(m.Routes) > 0 { + for _, e := range m.Routes { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + if len(m.CompilationTelemetryByAsset) > 0 { + for k, v := range m.CompilationTelemetryByAsset { + _ = 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)) + } + } + if m.AgentConfiguration != nil { + l = m.AgentConfiguration.SizeVT() + n += 1 + l + sov(uint64(l)) + } + if len(m.Tags) > 0 { + for _, s := range m.Tags { + l = len(s) + n += 1 + l + sov(uint64(l)) + } + } + if len(m.ConnTelemetryMap) > 0 { + for k, v := range m.ConnTelemetryMap { + _ = k + _ = v + mapEntrySize := 1 + len(k) + sov(uint64(len(k))) + 1 + sov(uint64(v)) + n += mapEntrySize + 1 + sov(uint64(mapEntrySize)) + } + } + if m.KernelHeaderFetchResult != 0 { + n += 1 + sov(uint64(m.KernelHeaderFetchResult)) + } + if len(m.CORETelemetryByAsset) > 0 { + for k, v := range m.CORETelemetryByAsset { + _ = k + _ = v + mapEntrySize := 1 + len(k) + sov(uint64(len(k))) + 1 + sov(uint64(v)) + n += mapEntrySize + 1 + sov(uint64(mapEntrySize)) + } + } + if len(m.PrebuiltEBPFAssets) > 0 { + for _, s := range m.PrebuiltEBPFAssets { + l = len(s) + n += 1 + l + sov(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *Connection) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Pid != 0 { + n += 1 + sov(uint64(m.Pid)) + } + if m.Laddr != nil { + l = m.Laddr.SizeVT() + n += 1 + l + sov(uint64(l)) + } + if m.Raddr != nil { + l = m.Raddr.SizeVT() + n += 1 + l + sov(uint64(l)) + } + if m.Family != 0 { + n += 1 + sov(uint64(m.Family)) + } + if m.Type != 0 { + n += 1 + sov(uint64(m.Type)) + } + if m.LastBytesSent != 0 { + n += 2 + sov(uint64(m.LastBytesSent)) + } + if m.LastBytesReceived != 0 { + n += 2 + sov(uint64(m.LastBytesReceived)) + } + if m.LastRetransmits != 0 { + n += 2 + sov(uint64(m.LastRetransmits)) + } + if m.Direction != 0 { + n += 2 + sov(uint64(m.Direction)) + } + if m.NetNS != 0 { + n += 2 + sov(uint64(m.NetNS)) + } + if m.IpTranslation != nil { + l = m.IpTranslation.SizeVT() + n += 2 + l + sov(uint64(l)) + } + if m.Rtt != 0 { + n += 2 + sov(uint64(m.Rtt)) + } + if m.RttVar != 0 { + n += 2 + sov(uint64(m.RttVar)) + } + if m.IntraHost { + n += 3 + } + if m.DnsSuccessfulResponses != 0 { + n += 2 + sov(uint64(m.DnsSuccessfulResponses)) + } + if m.DnsFailedResponses != 0 { + n += 2 + sov(uint64(m.DnsFailedResponses)) + } + if m.DnsTimeouts != 0 { + n += 2 + sov(uint64(m.DnsTimeouts)) + } + if m.DnsSuccessLatencySum != 0 { + n += 2 + sov(uint64(m.DnsSuccessLatencySum)) + } + if m.DnsFailureLatencySum != 0 { + n += 2 + sov(uint64(m.DnsFailureLatencySum)) + } + if m.LastTcpEstablished != 0 { + n += 2 + sov(uint64(m.LastTcpEstablished)) + } + if m.LastTcpClosed != 0 { + n += 2 + sov(uint64(m.LastTcpClosed)) + } + l = len(m.RemoteNetworkId) + if l > 0 { + n += 2 + l + sov(uint64(l)) + } + if len(m.DnsCountByRcode) > 0 { + for k, v := range m.DnsCountByRcode { + _ = k + _ = v + mapEntrySize := 1 + sov(uint64(k)) + 1 + sov(uint64(v)) + n += mapEntrySize + 2 + sov(uint64(mapEntrySize)) + } + } + if len(m.DnsStatsByDomain) > 0 { + for k, v := range m.DnsStatsByDomain { + _ = k + _ = v + l = 0 + if v != nil { + l = v.SizeVT() + } + l += 1 + sov(uint64(l)) + mapEntrySize := 1 + sov(uint64(k)) + l + n += mapEntrySize + 2 + sov(uint64(mapEntrySize)) + } + } + if m.RouteIdx != 0 { + n += 2 + sov(uint64(m.RouteIdx)) + } + l = len(m.HttpAggregations) + if l > 0 { + n += 2 + l + sov(uint64(l)) + } + if m.LastPacketsSent != 0 { + n += 2 + sov(uint64(m.LastPacketsSent)) + } + if m.LastPacketsReceived != 0 { + n += 2 + sov(uint64(m.LastPacketsReceived)) + } + if m.RouteTargetIdx != 0 { + n += 2 + sov(uint64(m.RouteTargetIdx)) + } + if m.IsLocalPortEphemeral != 0 { + n += 2 + sov(uint64(m.IsLocalPortEphemeral)) + } + if len(m.DnsStatsByDomainByQueryType) > 0 { + for k, v := range m.DnsStatsByDomainByQueryType { + _ = k + _ = v + l = 0 + if v != nil { + l = v.SizeVT() + } + l += 1 + sov(uint64(l)) + mapEntrySize := 1 + sov(uint64(k)) + l + n += mapEntrySize + 2 + sov(uint64(mapEntrySize)) + } + } + if len(m.DnsStatsByDomainOffsetByQueryType) > 0 { + for k, v := range m.DnsStatsByDomainOffsetByQueryType { + _ = k + _ = v + l = 0 + if v != nil { + l = v.SizeVT() + } + l += 1 + sov(uint64(l)) + mapEntrySize := 1 + sov(uint64(k)) + l + n += mapEntrySize + 2 + sov(uint64(mapEntrySize)) + } + } + if len(m.Tags) > 0 { + l = 0 + for _, e := range m.Tags { + l += sov(uint64(e)) + } + n += 2 + sov(uint64(l)) + l + } + if m.TagsIdx != 0 { + n += 2 + sov(uint64(m.TagsIdx)) + } + if m.StateIndex != 0 { + n += 2 + sov(uint64(m.StateIndex)) + } + if m.TagsChecksum != 0 { + n += 2 + sov(uint64(m.TagsChecksum)) + } + if m.Protocol != nil { + l = m.Protocol.SizeVT() + n += 2 + l + sov(uint64(l)) + } + l = len(m.DataStreamsAggregations) + if l > 0 { + n += 2 + l + sov(uint64(l)) + } + l = len(m.Http2Aggregations) + if l > 0 { + n += 2 + l + sov(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *ResourceMetadata) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Id) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.Key != 0 { + n += 1 + sov(uint64(m.Key)) + } + l = len(m.ByteKey) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if len(m.Tags) > 0 { + for _, s := range m.Tags { + l = len(s) + n += 1 + l + sov(uint64(l)) + } + } + if m.TagIndex != 0 { + n += 1 + sov(uint64(m.TagIndex)) + } + if m.TagsModified != 0 { + n += 1 + sov(uint64(m.TagsModified)) + } + n += len(m.unknownFields) + return n +} + +func (m *ConnectionsTelemetry) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.MonotonicKprobesTriggered != 0 { + n += 1 + sov(uint64(m.MonotonicKprobesTriggered)) + } + if m.MonotonicKprobesMissed != 0 { + n += 1 + sov(uint64(m.MonotonicKprobesMissed)) + } + if m.MonotonicConntrackRegisters != 0 { + n += 1 + sov(uint64(m.MonotonicConntrackRegisters)) + } + if m.MonotonicConntrackRegistersDropped != 0 { + n += 1 + sov(uint64(m.MonotonicConntrackRegistersDropped)) + } + if m.MonotonicDnsPacketsProcessed != 0 { + n += 1 + sov(uint64(m.MonotonicDnsPacketsProcessed)) + } + if m.MonotonicConnsClosed != 0 { + n += 1 + sov(uint64(m.MonotonicConnsClosed)) + } + if m.ConnsBpfMapSize != 0 { + n += 1 + sov(uint64(m.ConnsBpfMapSize)) + } + if m.MonotonicUdpSendsProcessed != 0 { + n += 1 + sov(uint64(m.MonotonicUdpSendsProcessed)) + } + if m.MonotonicUdpSendsMissed != 0 { + n += 1 + sov(uint64(m.MonotonicUdpSendsMissed)) + } + if m.ConntrackSamplingPercent != 0 { + n += 1 + sov(uint64(m.ConntrackSamplingPercent)) + } + if m.DnsStatsDropped != 0 { + n += 1 + sov(uint64(m.DnsStatsDropped)) + } + n += len(m.unknownFields) + return n +} + +func (m *CollectorConnectionsTelemetry) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.KprobesTriggered != 0 { + n += 1 + sov(uint64(m.KprobesTriggered)) + } + if m.KprobesMissed != 0 { + n += 1 + sov(uint64(m.KprobesMissed)) + } + if m.ConntrackRegisters != 0 { + n += 1 + sov(uint64(m.ConntrackRegisters)) + } + if m.ConntrackRegistersDropped != 0 { + n += 1 + sov(uint64(m.ConntrackRegistersDropped)) + } + if m.DnsPacketsProcessed != 0 { + n += 1 + sov(uint64(m.DnsPacketsProcessed)) + } + if m.ConnsClosed != 0 { + n += 1 + sov(uint64(m.ConnsClosed)) + } + if m.ConnsBpfMapSize != 0 { + n += 1 + sov(uint64(m.ConnsBpfMapSize)) + } + if m.UdpSendsProcessed != 0 { + n += 1 + sov(uint64(m.UdpSendsProcessed)) + } + if m.UdpSendsMissed != 0 { + n += 1 + sov(uint64(m.UdpSendsMissed)) + } + if m.ConntrackSamplingPercent != 0 { + n += 1 + sov(uint64(m.ConntrackSamplingPercent)) + } + if m.DnsStatsDropped != 0 { + n += 1 + sov(uint64(m.DnsStatsDropped)) + } + n += len(m.unknownFields) + return n +} + +func (m *RuntimeCompilationTelemetry) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.RuntimeCompilationEnabled { + n += 2 + } + if m.RuntimeCompilationResult != 0 { + n += 1 + sov(uint64(m.RuntimeCompilationResult)) + } + if m.RuntimeCompilationDuration != 0 { + n += 1 + sov(uint64(m.RuntimeCompilationDuration)) + } + if m.KernelHeaderFetchResult != 0 { + n += 1 + sov(uint64(m.KernelHeaderFetchResult)) + } + n += len(m.unknownFields) + return n +} + +func (m *AgentConfiguration) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.NpmEnabled { + n += 2 + } + if m.UsmEnabled { + n += 2 + } + if m.DsmEnabled { + n += 2 + } + n += len(m.unknownFields) + return n +} + +func (m *Route) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Subnet != nil { + l = m.Subnet.SizeVT() + n += 1 + l + sov(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *Subnet) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Alias) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *RouteMetadata) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Alias) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.TagIndex != 0 { + n += 1 + sov(uint64(m.TagIndex)) + } + if m.TagsModified != 0 { + n += 1 + sov(uint64(m.TagsModified)) + } + 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 *IPTranslation) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ReplSrcIP) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.ReplDstIP) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.ReplSrcPort != 0 { + n += 1 + sov(uint64(m.ReplSrcPort)) + } + if m.ReplDstPort != 0 { + n += 1 + sov(uint64(m.ReplDstPort)) + } + n += len(m.unknownFields) + return n +} + +func (m *Addr) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Ip) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.Port != 0 { + n += 1 + sov(uint64(m.Port)) + } + l = len(m.ContainerId) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + l = len(m.HostName) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *ProtocolStack) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Stack) > 0 { + l = 0 + for _, e := range m.Stack { + l += sov(uint64(e)) + } + n += 1 + sov(uint64(l)) + l + } + n += len(m.unknownFields) + return n +} + +func (m *DNSEntry) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Names) > 0 { + for _, s := range m.Names { + l = len(s) + n += 1 + l + sov(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *DNSStats) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.DnsTimeouts != 0 { + n += 1 + sov(uint64(m.DnsTimeouts)) + } + if m.DnsSuccessLatencySum != 0 { + n += 1 + sov(uint64(m.DnsSuccessLatencySum)) + } + if m.DnsFailureLatencySum != 0 { + n += 1 + sov(uint64(m.DnsFailureLatencySum)) + } + if len(m.DnsCountByRcode) > 0 { + for k, v := range m.DnsCountByRcode { + _ = k + _ = v + mapEntrySize := 1 + sov(uint64(k)) + 1 + sov(uint64(v)) + n += mapEntrySize + 1 + sov(uint64(mapEntrySize)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *DNSStatsByQueryType) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.DnsStatsByQueryType) > 0 { + for k, v := range m.DnsStatsByQueryType { + _ = 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)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *CollectorConnections) 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: CollectorConnections: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CollectorConnections: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HostName", 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.HostName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Connections", 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.Connections = append(m.Connections, &Connection{}) + if err := m.Connections[len(m.Connections)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) + } + m.GroupId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.GroupId |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GroupSize", wireType) + } + m.GroupSize = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.GroupSize |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResolvedResources", 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.ResolvedResources == nil { + m.ResolvedResources = make(map[string]*ResourceMetadata) + } + var mapkey string + var mapvalue *ResourceMetadata + 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 = &ResourceMetadata{} + 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 + } + } + m.ResolvedResources[mapkey] = mapvalue + iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContainerForPid", 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.ContainerForPid == nil { + m.ContainerForPid = make(map[int32]string) + } + var mapkey int32 + var mapvalue string + for iNdEx < postIndex { + entryPreIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + if fieldNum == 1 { + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + mapkey |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + } else if fieldNum == 2 { + var stringLenmapvalue uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapvalue |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapvalue := int(stringLenmapvalue) + if intStringLenmapvalue < 0 { + return ErrInvalidLength + } + postStringIndexmapvalue := iNdEx + intStringLenmapvalue + if postStringIndexmapvalue < 0 { + return ErrInvalidLength + } + if postStringIndexmapvalue > l { + return io.ErrUnexpectedEOF + } + mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) + iNdEx = postStringIndexmapvalue + } else { + iNdEx = entryPreIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + m.ContainerForPid[mapkey] = mapvalue + iNdEx = postIndex + case 11: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EncodedTags", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.EncodedTags = append(m.EncodedTags[:0], dAtA[iNdEx:postIndex]...) + if m.EncodedTags == nil { + m.EncodedTags = []byte{} + } + iNdEx = postIndex + case 12: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NetworkId", 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.NetworkId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 14: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EncodedDNS", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.EncodedDNS = append(m.EncodedDNS[:0], dAtA[iNdEx:postIndex]...) + if m.EncodedDNS == nil { + m.EncodedDNS = []byte{} + } + iNdEx = postIndex + case 15: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ContainerHostType", wireType) + } + m.ContainerHostType = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ContainerHostType |= ContainerHostType(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 16: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ConnTelemetry", 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.ConnTelemetry == nil { + m.ConnTelemetry = &CollectorConnectionsTelemetry{} + } + if err := m.ConnTelemetry.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 17: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Architecture", 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.Architecture = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 18: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field KernelVersion", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.KernelVersion = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 19: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Platform", 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.Platform = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 20: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PlatformVersion", 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.PlatformVersion = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 21: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CompilationTelemetryByAsset", 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.CompilationTelemetryByAsset == nil { + m.CompilationTelemetryByAsset = make(map[string]*RuntimeCompilationTelemetry) + } + var mapkey string + var mapvalue *RuntimeCompilationTelemetry + 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 = &RuntimeCompilationTelemetry{} + 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 + } + } + m.CompilationTelemetryByAsset[mapkey] = mapvalue + iNdEx = postIndex + case 30: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Domains", 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.Domains = append(m.Domains, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 31: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Routes", 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.Routes = append(m.Routes, &Route{}) + if err := m.Routes[len(m.Routes)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 34: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RouteMetadata", 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.RouteMetadata = append(m.RouteMetadata, &RouteMetadata{}) + if err := m.RouteMetadata[len(m.RouteMetadata)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 35: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AgentConfiguration", 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.AgentConfiguration == nil { + m.AgentConfiguration = &AgentConfiguration{} + } + if err := m.AgentConfiguration.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 36: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EncodedDomainDatabase", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.EncodedDomainDatabase = append(m.EncodedDomainDatabase[:0], dAtA[iNdEx:postIndex]...) + if m.EncodedDomainDatabase == nil { + m.EncodedDomainDatabase = []byte{} + } + iNdEx = postIndex + case 37: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EncodedDnsLookups", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.EncodedDnsLookups = append(m.EncodedDnsLookups[:0], dAtA[iNdEx:postIndex]...) + if m.EncodedDnsLookups == nil { + m.EncodedDnsLookups = []byte{} + } + iNdEx = postIndex + case 38: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EncodedConnectionsTags", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.EncodedConnectionsTags = append(m.EncodedConnectionsTags[:0], dAtA[iNdEx:postIndex]...) + if m.EncodedConnectionsTags == nil { + m.EncodedConnectionsTags = []byte{} + } + iNdEx = postIndex + case 39: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ConnTelemetryMap", 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.ConnTelemetryMap == nil { + m.ConnTelemetryMap = make(map[string]int64) + } + var mapkey string + var mapvalue int64 + 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 { + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + mapvalue |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + } else { + iNdEx = entryPreIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + m.ConnTelemetryMap[mapkey] = mapvalue + iNdEx = postIndex + case 40: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResolvedHostsByName", 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.ResolvedHostsByName == nil { + m.ResolvedHostsByName = make(map[string]*Host) + } + var mapkey string + var mapvalue *Host + 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 = &Host{} + 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 + } + } + m.ResolvedHostsByName[mapkey] = mapvalue + iNdEx = postIndex + case 41: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field KernelHeaderFetchResult", wireType) + } + m.KernelHeaderFetchResult = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.KernelHeaderFetchResult |= KernelHeaderFetchResult(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 42: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CORETelemetryByAsset", 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.CORETelemetryByAsset == nil { + m.CORETelemetryByAsset = make(map[string]COREResult) + } + var mapkey string + var mapvalue COREResult + 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 { + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + mapvalue |= COREResult(b&0x7F) << shift + if b < 0x80 { + break + } + } + } else { + iNdEx = entryPreIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + m.CORETelemetryByAsset[mapkey] = mapvalue + iNdEx = postIndex + case 44: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PrebuiltEBPFAssets", 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.PrebuiltEBPFAssets = append(m.PrebuiltEBPFAssets, 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 *Connections) 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: Connections: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Connections: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Conns", 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.Conns = append(m.Conns, &Connection{}) + if err := m.Conns[len(m.Conns)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Dns", 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.Dns == nil { + m.Dns = make(map[string]*DNSEntry) + } + var mapkey string + var mapvalue *DNSEntry + 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 = &DNSEntry{} + 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 + } + } + m.Dns[mapkey] = mapvalue + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ConnTelemetry", 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.ConnTelemetry == nil { + m.ConnTelemetry = &ConnectionsTelemetry{} + } + if err := m.ConnTelemetry.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Domains", 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.Domains = append(m.Domains, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Routes", 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.Routes = append(m.Routes, &Route{}) + if err := m.Routes[len(m.Routes)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CompilationTelemetryByAsset", 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.CompilationTelemetryByAsset == nil { + m.CompilationTelemetryByAsset = make(map[string]*RuntimeCompilationTelemetry) + } + var mapkey string + var mapvalue *RuntimeCompilationTelemetry + 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 = &RuntimeCompilationTelemetry{} + 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 + } + } + m.CompilationTelemetryByAsset[mapkey] = mapvalue + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AgentConfiguration", 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.AgentConfiguration == nil { + m.AgentConfiguration = &AgentConfiguration{} + } + if err := m.AgentConfiguration.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Tags", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Tags = append(m.Tags, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ConnTelemetryMap", 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.ConnTelemetryMap == nil { + m.ConnTelemetryMap = make(map[string]int64) + } + var mapkey string + var mapvalue int64 + 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 { + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + mapvalue |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + } else { + iNdEx = entryPreIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + m.ConnTelemetryMap[mapkey] = mapvalue + iNdEx = postIndex + case 10: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field KernelHeaderFetchResult", wireType) + } + m.KernelHeaderFetchResult = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.KernelHeaderFetchResult |= KernelHeaderFetchResult(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 11: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CORETelemetryByAsset", 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.CORETelemetryByAsset == nil { + m.CORETelemetryByAsset = make(map[string]COREResult) + } + var mapkey string + var mapvalue COREResult + 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 { + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + mapvalue |= COREResult(b&0x7F) << shift + if b < 0x80 { + break + } + } + } else { + iNdEx = entryPreIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + m.CORETelemetryByAsset[mapkey] = mapvalue + iNdEx = postIndex + case 12: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PrebuiltEBPFAssets", 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.PrebuiltEBPFAssets = append(m.PrebuiltEBPFAssets, 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 *Connection) 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: Connection: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Connection: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Pid", wireType) + } + m.Pid = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Pid |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Laddr", 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.Laddr == nil { + m.Laddr = &Addr{} + } + if err := m.Laddr.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Raddr", 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.Raddr == nil { + m.Raddr = &Addr{} + } + if err := m.Raddr.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 10: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Family", wireType) + } + m.Family = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Family |= ConnectionFamily(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 11: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + m.Type = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Type |= ConnectionType(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 16: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LastBytesSent", wireType) + } + m.LastBytesSent = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.LastBytesSent |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 17: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LastBytesReceived", wireType) + } + m.LastBytesReceived = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.LastBytesReceived |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 18: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LastRetransmits", wireType) + } + m.LastRetransmits = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.LastRetransmits |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 19: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Direction", wireType) + } + m.Direction = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Direction |= ConnectionDirection(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 20: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NetNS", wireType) + } + m.NetNS = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.NetNS |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 21: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IpTranslation", 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.IpTranslation == nil { + m.IpTranslation = &IPTranslation{} + } + if err := m.IpTranslation.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 22: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Rtt", wireType) + } + m.Rtt = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Rtt |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 23: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RttVar", wireType) + } + m.RttVar = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.RttVar |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 24: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IntraHost", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IntraHost = bool(v != 0) + case 25: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DnsSuccessfulResponses", wireType) + } + m.DnsSuccessfulResponses = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.DnsSuccessfulResponses |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 26: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DnsFailedResponses", wireType) + } + m.DnsFailedResponses = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.DnsFailedResponses |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 27: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DnsTimeouts", wireType) + } + m.DnsTimeouts = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.DnsTimeouts |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 28: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DnsSuccessLatencySum", wireType) + } + m.DnsSuccessLatencySum = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.DnsSuccessLatencySum |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 29: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DnsFailureLatencySum", wireType) + } + m.DnsFailureLatencySum = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.DnsFailureLatencySum |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 30: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LastTcpEstablished", wireType) + } + m.LastTcpEstablished = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.LastTcpEstablished |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 31: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LastTcpClosed", wireType) + } + m.LastTcpClosed = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.LastTcpClosed |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 32: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RemoteNetworkId", 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.RemoteNetworkId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 33: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DnsCountByRcode", 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.DnsCountByRcode == nil { + m.DnsCountByRcode = make(map[uint32]uint32) + } + var mapkey uint32 + var mapvalue uint32 + 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 { + 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 { + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + mapvalue |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + } else { + iNdEx = entryPreIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + m.DnsCountByRcode[mapkey] = mapvalue + iNdEx = postIndex + case 34: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DnsStatsByDomain", 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.DnsStatsByDomain == nil { + m.DnsStatsByDomain = make(map[int32]*DNSStats) + } + var mapkey int32 + var mapvalue *DNSStats + 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 { + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + mapkey |= int32(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 = &DNSStats{} + 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 + } + } + m.DnsStatsByDomain[mapkey] = mapvalue + iNdEx = postIndex + case 36: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RouteIdx", wireType) + } + m.RouteIdx = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.RouteIdx |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 37: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HttpAggregations", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.HttpAggregations = append(m.HttpAggregations[:0], dAtA[iNdEx:postIndex]...) + if m.HttpAggregations == nil { + m.HttpAggregations = []byte{} + } + iNdEx = postIndex + case 38: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LastPacketsSent", wireType) + } + m.LastPacketsSent = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.LastPacketsSent |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 39: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LastPacketsReceived", wireType) + } + m.LastPacketsReceived = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.LastPacketsReceived |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 40: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RouteTargetIdx", wireType) + } + m.RouteTargetIdx = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.RouteTargetIdx |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 41: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsLocalPortEphemeral", wireType) + } + m.IsLocalPortEphemeral = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.IsLocalPortEphemeral |= EphemeralPortState(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 42: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DnsStatsByDomainByQueryType", 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.DnsStatsByDomainByQueryType == nil { + m.DnsStatsByDomainByQueryType = make(map[int32]*DNSStatsByQueryType) + } + var mapkey int32 + var mapvalue *DNSStatsByQueryType + 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 { + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + mapkey |= int32(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 = &DNSStatsByQueryType{} + 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 + } + } + m.DnsStatsByDomainByQueryType[mapkey] = mapvalue + iNdEx = postIndex + case 43: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DnsStatsByDomainOffsetByQueryType", 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.DnsStatsByDomainOffsetByQueryType == nil { + m.DnsStatsByDomainOffsetByQueryType = make(map[int32]*DNSStatsByQueryType) + } + var mapkey int32 + var mapvalue *DNSStatsByQueryType + 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 { + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + mapkey |= int32(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 = &DNSStatsByQueryType{} + 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 + } + } + m.DnsStatsByDomainOffsetByQueryType[mapkey] = mapvalue + iNdEx = postIndex + case 44: + if wireType == 0 { + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Tags = append(m.Tags, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.Tags) == 0 { + m.Tags = make([]uint32, 0, elementCount) + } + for iNdEx < postIndex { + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Tags = append(m.Tags, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field Tags", wireType) + } + case 45: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TagsIdx", wireType) + } + m.TagsIdx = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TagsIdx |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 46: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field StateIndex", wireType) + } + m.StateIndex = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.StateIndex |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 47: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TagsChecksum", wireType) + } + m.TagsChecksum = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TagsChecksum |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 48: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Protocol", 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.Protocol == nil { + m.Protocol = &ProtocolStack{} + } + if err := m.Protocol.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 49: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DataStreamsAggregations", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DataStreamsAggregations = append(m.DataStreamsAggregations[:0], dAtA[iNdEx:postIndex]...) + if m.DataStreamsAggregations == nil { + m.DataStreamsAggregations = []byte{} + } + iNdEx = postIndex + case 50: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Http2Aggregations", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Http2Aggregations = append(m.Http2Aggregations[:0], dAtA[iNdEx:postIndex]...) + if m.Http2Aggregations == nil { + m.Http2Aggregations = []byte{} + } + 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 *ResourceMetadata) 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: ResourceMetadata: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ResourceMetadata: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", 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.Id = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) + } + m.Key = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Key |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ByteKey", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ByteKey = append(m.ByteKey[:0], dAtA[iNdEx:postIndex]...) + if m.ByteKey == nil { + m.ByteKey = []byte{} + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Tags", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Tags = append(m.Tags, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TagIndex", wireType) + } + m.TagIndex = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TagIndex |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TagsModified", wireType) + } + m.TagsModified = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TagsModified |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ConnectionsTelemetry) 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: ConnectionsTelemetry: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ConnectionsTelemetry: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MonotonicKprobesTriggered", wireType) + } + m.MonotonicKprobesTriggered = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MonotonicKprobesTriggered |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MonotonicKprobesMissed", wireType) + } + m.MonotonicKprobesMissed = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MonotonicKprobesMissed |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MonotonicConntrackRegisters", wireType) + } + m.MonotonicConntrackRegisters = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MonotonicConntrackRegisters |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MonotonicConntrackRegistersDropped", wireType) + } + m.MonotonicConntrackRegistersDropped = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MonotonicConntrackRegistersDropped |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MonotonicDnsPacketsProcessed", wireType) + } + m.MonotonicDnsPacketsProcessed = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MonotonicDnsPacketsProcessed |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MonotonicConnsClosed", wireType) + } + m.MonotonicConnsClosed = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MonotonicConnsClosed |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ConnsBpfMapSize", wireType) + } + m.ConnsBpfMapSize = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ConnsBpfMapSize |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MonotonicUdpSendsProcessed", wireType) + } + m.MonotonicUdpSendsProcessed = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MonotonicUdpSendsProcessed |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MonotonicUdpSendsMissed", wireType) + } + m.MonotonicUdpSendsMissed = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MonotonicUdpSendsMissed |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 10: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ConntrackSamplingPercent", wireType) + } + m.ConntrackSamplingPercent = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ConntrackSamplingPercent |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 11: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DnsStatsDropped", wireType) + } + m.DnsStatsDropped = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.DnsStatsDropped |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CollectorConnectionsTelemetry) 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: CollectorConnectionsTelemetry: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CollectorConnectionsTelemetry: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field KprobesTriggered", wireType) + } + m.KprobesTriggered = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.KprobesTriggered |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field KprobesMissed", wireType) + } + m.KprobesMissed = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.KprobesMissed |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ConntrackRegisters", wireType) + } + m.ConntrackRegisters = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ConntrackRegisters |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ConntrackRegistersDropped", wireType) + } + m.ConntrackRegistersDropped = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ConntrackRegistersDropped |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DnsPacketsProcessed", wireType) + } + m.DnsPacketsProcessed = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.DnsPacketsProcessed |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ConnsClosed", wireType) + } + m.ConnsClosed = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ConnsClosed |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ConnsBpfMapSize", wireType) + } + m.ConnsBpfMapSize = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ConnsBpfMapSize |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UdpSendsProcessed", wireType) + } + m.UdpSendsProcessed = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.UdpSendsProcessed |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UdpSendsMissed", wireType) + } + m.UdpSendsMissed = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.UdpSendsMissed |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 10: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ConntrackSamplingPercent", wireType) + } + m.ConntrackSamplingPercent = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ConntrackSamplingPercent |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 11: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DnsStatsDropped", wireType) + } + m.DnsStatsDropped = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.DnsStatsDropped |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RuntimeCompilationTelemetry) 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: RuntimeCompilationTelemetry: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RuntimeCompilationTelemetry: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RuntimeCompilationEnabled", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RuntimeCompilationEnabled = bool(v != 0) + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RuntimeCompilationResult", wireType) + } + m.RuntimeCompilationResult = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.RuntimeCompilationResult |= RuntimeCompilationResult(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RuntimeCompilationDuration", wireType) + } + m.RuntimeCompilationDuration = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.RuntimeCompilationDuration |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field KernelHeaderFetchResult", wireType) + } + m.KernelHeaderFetchResult = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.KernelHeaderFetchResult |= KernelHeaderFetchResult(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AgentConfiguration) 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: AgentConfiguration: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AgentConfiguration: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NpmEnabled", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NpmEnabled = bool(v != 0) + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UsmEnabled", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.UsmEnabled = bool(v != 0) + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DsmEnabled", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DsmEnabled = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Route) 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: Route: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Route: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Subnet", 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.Subnet == nil { + m.Subnet = &Subnet{} + } + if err := m.Subnet.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Subnet) 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: Subnet: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Subnet: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Alias", 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.Alias = 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 *RouteMetadata) 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: RouteMetadata: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RouteMetadata: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Alias", 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.Alias = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TagIndex", wireType) + } + m.TagIndex = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TagIndex |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TagsModified", wireType) + } + m.TagsModified = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TagsModified |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Tags", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Tags = append(m.Tags, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + 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 *IPTranslation) 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: IPTranslation: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: IPTranslation: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ReplSrcIP", 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.ReplSrcIP = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ReplDstIP", 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.ReplDstIP = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ReplSrcPort", wireType) + } + m.ReplSrcPort = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ReplSrcPort |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ReplDstPort", wireType) + } + m.ReplDstPort = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ReplDstPort |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Addr) 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: Addr: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Addr: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ip", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Ip = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Port", wireType) + } + m.Port = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Port |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContainerId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContainerId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HostName", 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.HostName = 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 *ProtocolStack) 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: ProtocolStack: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ProtocolStack: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType == 0 { + var v ProtocolType + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= ProtocolType(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Stack = append(m.Stack, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var elementCount int + if elementCount != 0 && len(m.Stack) == 0 { + m.Stack = make([]ProtocolType, 0, elementCount) + } + for iNdEx < postIndex { + var v ProtocolType + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= ProtocolType(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Stack = append(m.Stack, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field Stack", wireType) + } + 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 *DNSEntry) 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: DNSEntry: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DNSEntry: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Names", 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.Names = append(m.Names, 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 *DNSStats) 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: DNSStats: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DNSStats: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DnsTimeouts", wireType) + } + m.DnsTimeouts = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.DnsTimeouts |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DnsSuccessLatencySum", wireType) + } + m.DnsSuccessLatencySum = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.DnsSuccessLatencySum |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DnsFailureLatencySum", wireType) + } + m.DnsFailureLatencySum = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.DnsFailureLatencySum |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DnsCountByRcode", 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.DnsCountByRcode == nil { + m.DnsCountByRcode = make(map[uint32]uint32) + } + var mapkey uint32 + var mapvalue uint32 + 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 { + 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 { + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + mapvalue |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + } else { + iNdEx = entryPreIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + m.DnsCountByRcode[mapkey] = mapvalue + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DNSStatsByQueryType) 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: DNSStatsByQueryType: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DNSStatsByQueryType: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DnsStatsByQueryType", 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.DnsStatsByQueryType == nil { + m.DnsStatsByQueryType = make(map[int32]*DNSStats) + } + var mapkey int32 + var mapvalue *DNSStats + 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 { + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + mapkey |= int32(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 = &DNSStats{} + 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 + } + } + m.DnsStatsByQueryType[mapkey] = mapvalue + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} diff --git a/process/events.pb.go b/process/events.pb.go index 4393e90e..2ca7c59a 100644 --- a/process/events.pb.go +++ b/process/events.pb.go @@ -1,19 +1,24 @@ -// Code generated by protoc-gen-gogo. +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.31.0 +// protoc v3.21.12 // source: proto/process/events.proto -// DO NOT EDIT! package process -import proto "github.com/gogo/protobuf/proto" -import fmt "fmt" -import math "math" - -import io "io" +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) // ProcEventType is a type of process lifecycle event collected by the process-agent type ProcEventType int32 @@ -23,1466 +28,581 @@ const ( ProcEventType_exit ProcEventType = 1 ) -var ProcEventType_name = map[int32]string{ - 0: "exec", - 1: "exit", -} -var ProcEventType_value = map[string]int32{ - "exec": 0, - "exit": 1, -} +// Enum value maps for ProcEventType. +var ( + ProcEventType_name = map[int32]string{ + 0: "exec", + 1: "exit", + } + ProcEventType_value = map[string]int32{ + "exec": 0, + "exit": 1, + } +) -func (x ProcEventType) String() string { - return proto.EnumName(ProcEventType_name, int32(x)) +func (x ProcEventType) Enum() *ProcEventType { + p := new(ProcEventType) + *p = x + return p } -func (ProcEventType) EnumDescriptor() ([]byte, []int) { return fileDescriptorEvents, []int{0} } -// CollectorProcEvent is a payload used to send a batch of process lifecycle events -type CollectorProcEvent struct { - Hostname string `protobuf:"bytes,1,opt,name=hostname,proto3" json:"hostname,omitempty"` - Host *Host `protobuf:"bytes,2,opt,name=host" json:"host,omitempty"` - Info *SystemInfo `protobuf:"bytes,3,opt,name=info" json:"info,omitempty"` - Events []*ProcessEvent `protobuf:"bytes,4,rep,name=events" json:"events,omitempty"` - GroupId int32 `protobuf:"varint,5,opt,name=groupId,proto3" json:"groupId,omitempty"` - GroupSize int32 `protobuf:"varint,6,opt,name=groupSize,proto3" json:"groupSize,omitempty"` +func (x ProcEventType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (m *CollectorProcEvent) Reset() { *m = CollectorProcEvent{} } -func (m *CollectorProcEvent) String() string { return proto.CompactTextString(m) } -func (*CollectorProcEvent) ProtoMessage() {} -func (*CollectorProcEvent) Descriptor() ([]byte, []int) { return fileDescriptorEvents, []int{0} } - -func (m *CollectorProcEvent) GetHost() *Host { - if m != nil { - return m.Host - } - return nil +func (ProcEventType) Descriptor() protoreflect.EnumDescriptor { + return file_proto_process_events_proto_enumTypes[0].Descriptor() } -func (m *CollectorProcEvent) GetInfo() *SystemInfo { - if m != nil { - return m.Info - } - return nil +func (ProcEventType) Type() protoreflect.EnumType { + return &file_proto_process_events_proto_enumTypes[0] } -func (m *CollectorProcEvent) GetEvents() []*ProcessEvent { - if m != nil { - return m.Events - } - return nil +func (x ProcEventType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } -// ProcessEvent holds information about a process lifeycle event -type ProcessEvent struct { - Type ProcEventType `protobuf:"varint,1,opt,name=type,proto3,enum=datadog.process_agent.ProcEventType" json:"type,omitempty"` - CollectionTime int64 `protobuf:"varint,2,opt,name=collectionTime,proto3" json:"collectionTime,omitempty"` - Pid uint32 `protobuf:"varint,3,opt,name=pid,proto3" json:"pid,omitempty"` - Command *Command `protobuf:"bytes,4,opt,name=command" json:"command,omitempty"` - User *ProcessUser `protobuf:"bytes,5,opt,name=user" json:"user,omitempty"` - Host *Host `protobuf:"bytes,6,opt,name=host" json:"host,omitempty"` - ContainerId string `protobuf:"bytes,7,opt,name=containerId,proto3" json:"containerId,omitempty"` - // Types that are valid to be assigned to TypedEvent: - // *ProcessEvent_Exec - // *ProcessEvent_Exit - TypedEvent isProcessEvent_TypedEvent `protobuf_oneof:"typedEvent"` +// Deprecated: Use ProcEventType.Descriptor instead. +func (ProcEventType) EnumDescriptor() ([]byte, []int) { + return file_proto_process_events_proto_rawDescGZIP(), []int{0} } -func (m *ProcessEvent) Reset() { *m = ProcessEvent{} } -func (m *ProcessEvent) String() string { return proto.CompactTextString(m) } -func (*ProcessEvent) ProtoMessage() {} -func (*ProcessEvent) Descriptor() ([]byte, []int) { return fileDescriptorEvents, []int{1} } +// CollectorProcEvent is a payload used to send a batch of process lifecycle events +type CollectorProcEvent struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -type isProcessEvent_TypedEvent interface { - isProcessEvent_TypedEvent() - MarshalTo([]byte) (int, error) - Size() int + Hostname string `protobuf:"bytes,1,opt,name=hostname,proto3" json:"hostname,omitempty"` + Host *Host `protobuf:"bytes,2,opt,name=host,proto3" json:"host,omitempty"` + Info *SystemInfo `protobuf:"bytes,3,opt,name=info,proto3" json:"info,omitempty"` + Events []*ProcessEvent `protobuf:"bytes,4,rep,name=events,proto3" json:"events,omitempty"` + GroupId int32 `protobuf:"varint,5,opt,name=groupId,proto3" json:"groupId,omitempty"` + GroupSize int32 `protobuf:"varint,6,opt,name=groupSize,proto3" json:"groupSize,omitempty"` } -type ProcessEvent_Exec struct { - Exec *ProcessExec `protobuf:"bytes,8,opt,name=exec,oneof"` +func (x *CollectorProcEvent) Reset() { + *x = CollectorProcEvent{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_events_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -type ProcessEvent_Exit struct { - Exit *ProcessExit `protobuf:"bytes,9,opt,name=exit,oneof"` + +func (x *CollectorProcEvent) String() string { + return protoimpl.X.MessageStringOf(x) } -func (*ProcessEvent_Exec) isProcessEvent_TypedEvent() {} -func (*ProcessEvent_Exit) isProcessEvent_TypedEvent() {} +func (*CollectorProcEvent) ProtoMessage() {} -func (m *ProcessEvent) GetTypedEvent() isProcessEvent_TypedEvent { - if m != nil { - return m.TypedEvent +func (x *CollectorProcEvent) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_events_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -func (m *ProcessEvent) GetCommand() *Command { - if m != nil { - return m.Command - } - return nil +// Deprecated: Use CollectorProcEvent.ProtoReflect.Descriptor instead. +func (*CollectorProcEvent) Descriptor() ([]byte, []int) { + return file_proto_process_events_proto_rawDescGZIP(), []int{0} } -func (m *ProcessEvent) GetUser() *ProcessUser { - if m != nil { - return m.User +func (x *CollectorProcEvent) GetHostname() string { + if x != nil { + return x.Hostname } - return nil + return "" } -func (m *ProcessEvent) GetHost() *Host { - if m != nil { - return m.Host +func (x *CollectorProcEvent) GetHost() *Host { + if x != nil { + return x.Host } return nil } -func (m *ProcessEvent) GetExec() *ProcessExec { - if x, ok := m.GetTypedEvent().(*ProcessEvent_Exec); ok { - return x.Exec +func (x *CollectorProcEvent) GetInfo() *SystemInfo { + if x != nil { + return x.Info } return nil } -func (m *ProcessEvent) GetExit() *ProcessExit { - if x, ok := m.GetTypedEvent().(*ProcessEvent_Exit); ok { - return x.Exit +func (x *CollectorProcEvent) GetEvents() []*ProcessEvent { + if x != nil { + return x.Events } return nil } -// XXX_OneofFuncs is for the internal use of the proto package. -func (*ProcessEvent) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { - return _ProcessEvent_OneofMarshaler, _ProcessEvent_OneofUnmarshaler, _ProcessEvent_OneofSizer, []interface{}{ - (*ProcessEvent_Exec)(nil), - (*ProcessEvent_Exit)(nil), +func (x *CollectorProcEvent) GetGroupId() int32 { + if x != nil { + return x.GroupId } + return 0 } -func _ProcessEvent_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { - m := msg.(*ProcessEvent) - // typedEvent - switch x := m.TypedEvent.(type) { - case *ProcessEvent_Exec: - _ = b.EncodeVarint(8<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.Exec); err != nil { - return err - } - case *ProcessEvent_Exit: - _ = b.EncodeVarint(9<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.Exit); err != nil { - return err - } - case nil: - default: - return fmt.Errorf("ProcessEvent.TypedEvent has unexpected type %T", x) +func (x *CollectorProcEvent) GetGroupSize() int32 { + if x != nil { + return x.GroupSize } - return nil + return 0 } -func _ProcessEvent_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { - m := msg.(*ProcessEvent) - switch tag { - case 8: // typedEvent.exec - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(ProcessExec) - err := b.DecodeMessage(msg) - m.TypedEvent = &ProcessEvent_Exec{msg} - return true, err - case 9: // typedEvent.exit - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(ProcessExit) - err := b.DecodeMessage(msg) - m.TypedEvent = &ProcessEvent_Exit{msg} - return true, err - default: - return false, nil - } +// ProcessEvent holds information about a process lifeycle event +type ProcessEvent struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Type ProcEventType `protobuf:"varint,1,opt,name=type,proto3,enum=datadog.process_agent.ProcEventType" json:"type,omitempty"` + CollectionTime int64 `protobuf:"varint,2,opt,name=collectionTime,proto3" json:"collectionTime,omitempty"` + Pid uint32 `protobuf:"varint,3,opt,name=pid,proto3" json:"pid,omitempty"` + Command *Command `protobuf:"bytes,4,opt,name=command,proto3" json:"command,omitempty"` + User *ProcessUser `protobuf:"bytes,5,opt,name=user,proto3" json:"user,omitempty"` + Host *Host `protobuf:"bytes,6,opt,name=host,proto3" json:"host,omitempty"` // post-resolution + ContainerId string `protobuf:"bytes,7,opt,name=containerId,proto3" json:"containerId,omitempty"` + // Types that are assignable to TypedEvent: + // *ProcessEvent_Exec + // *ProcessEvent_Exit + TypedEvent isProcessEvent_TypedEvent `protobuf_oneof:"typedEvent"` } -func _ProcessEvent_OneofSizer(msg proto.Message) (n int) { - m := msg.(*ProcessEvent) - // typedEvent - switch x := m.TypedEvent.(type) { - case *ProcessEvent_Exec: - s := proto.Size(x.Exec) - n += proto.SizeVarint(8<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *ProcessEvent_Exit: - s := proto.Size(x.Exit) - n += proto.SizeVarint(9<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case nil: - default: - panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) +func (x *ProcessEvent) Reset() { + *x = ProcessEvent{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_events_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return n } -// ProcessExec holds information specific to exec events -type ProcessExec struct { - ForkTime int64 `protobuf:"varint,1,opt,name=forkTime,proto3" json:"forkTime,omitempty"` - ExecTime int64 `protobuf:"varint,2,opt,name=execTime,proto3" json:"execTime,omitempty"` +func (x *ProcessEvent) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ProcessExec) Reset() { *m = ProcessExec{} } -func (m *ProcessExec) String() string { return proto.CompactTextString(m) } -func (*ProcessExec) ProtoMessage() {} -func (*ProcessExec) Descriptor() ([]byte, []int) { return fileDescriptorEvents, []int{2} } +func (*ProcessEvent) ProtoMessage() {} -// ProcessExit holds information specific to exit events -type ProcessExit struct { - ExecTime int64 `protobuf:"varint,1,opt,name=execTime,proto3" json:"execTime,omitempty"` - ExitTime int64 `protobuf:"varint,2,opt,name=exitTime,proto3" json:"exitTime,omitempty"` - ExitCode int32 `protobuf:"varint,3,opt,name=exitCode,proto3" json:"exitCode,omitempty"` +func (x *ProcessEvent) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_events_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (m *ProcessExit) Reset() { *m = ProcessExit{} } -func (m *ProcessExit) String() string { return proto.CompactTextString(m) } -func (*ProcessExit) ProtoMessage() {} -func (*ProcessExit) Descriptor() ([]byte, []int) { return fileDescriptorEvents, []int{3} } - -func init() { - proto.RegisterType((*CollectorProcEvent)(nil), "datadog.process_agent.CollectorProcEvent") - proto.RegisterType((*ProcessEvent)(nil), "datadog.process_agent.ProcessEvent") - proto.RegisterType((*ProcessExec)(nil), "datadog.process_agent.ProcessExec") - proto.RegisterType((*ProcessExit)(nil), "datadog.process_agent.ProcessExit") - proto.RegisterEnum("datadog.process_agent.ProcEventType", ProcEventType_name, ProcEventType_value) -} -func (m *CollectorProcEvent) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err - } - return data[:n], nil +// Deprecated: Use ProcessEvent.ProtoReflect.Descriptor instead. +func (*ProcessEvent) Descriptor() ([]byte, []int) { + return file_proto_process_events_proto_rawDescGZIP(), []int{1} } -func (m *CollectorProcEvent) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Hostname) > 0 { - data[i] = 0xa - i++ - i = encodeVarintEvents(data, i, uint64(len(m.Hostname))) - i += copy(data[i:], m.Hostname) - } - if m.Host != nil { - data[i] = 0x12 - i++ - i = encodeVarintEvents(data, i, uint64(m.Host.Size())) - n1, err := m.Host.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n1 - } - if m.Info != nil { - data[i] = 0x1a - i++ - i = encodeVarintEvents(data, i, uint64(m.Info.Size())) - n2, err := m.Info.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n2 - } - if len(m.Events) > 0 { - for _, msg := range m.Events { - data[i] = 0x22 - i++ - i = encodeVarintEvents(data, i, uint64(msg.Size())) - n, err := msg.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if m.GroupId != 0 { - data[i] = 0x28 - i++ - i = encodeVarintEvents(data, i, uint64(m.GroupId)) - } - if m.GroupSize != 0 { - data[i] = 0x30 - i++ - i = encodeVarintEvents(data, i, uint64(m.GroupSize)) +func (x *ProcessEvent) GetType() ProcEventType { + if x != nil { + return x.Type } - return i, nil + return ProcEventType_exec } -func (m *ProcessEvent) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err +func (x *ProcessEvent) GetCollectionTime() int64 { + if x != nil { + return x.CollectionTime } - return data[:n], nil + return 0 } -func (m *ProcessEvent) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Type != 0 { - data[i] = 0x8 - i++ - i = encodeVarintEvents(data, i, uint64(m.Type)) - } - if m.CollectionTime != 0 { - data[i] = 0x10 - i++ - i = encodeVarintEvents(data, i, uint64(m.CollectionTime)) - } - if m.Pid != 0 { - data[i] = 0x18 - i++ - i = encodeVarintEvents(data, i, uint64(m.Pid)) - } - if m.Command != nil { - data[i] = 0x22 - i++ - i = encodeVarintEvents(data, i, uint64(m.Command.Size())) - n3, err := m.Command.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n3 - } - if m.User != nil { - data[i] = 0x2a - i++ - i = encodeVarintEvents(data, i, uint64(m.User.Size())) - n4, err := m.User.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n4 - } - if m.Host != nil { - data[i] = 0x32 - i++ - i = encodeVarintEvents(data, i, uint64(m.Host.Size())) - n5, err := m.Host.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n5 - } - if len(m.ContainerId) > 0 { - data[i] = 0x3a - i++ - i = encodeVarintEvents(data, i, uint64(len(m.ContainerId))) - i += copy(data[i:], m.ContainerId) +func (x *ProcessEvent) GetPid() uint32 { + if x != nil { + return x.Pid } - if m.TypedEvent != nil { - nn6, err := m.TypedEvent.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += nn6 - } - return i, nil + return 0 } -func (m *ProcessEvent_Exec) MarshalTo(data []byte) (int, error) { - i := 0 - if m.Exec != nil { - data[i] = 0x42 - i++ - i = encodeVarintEvents(data, i, uint64(m.Exec.Size())) - n7, err := m.Exec.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n7 +func (x *ProcessEvent) GetCommand() *Command { + if x != nil { + return x.Command } - return i, nil + return nil } -func (m *ProcessEvent_Exit) MarshalTo(data []byte) (int, error) { - i := 0 - if m.Exit != nil { - data[i] = 0x4a - i++ - i = encodeVarintEvents(data, i, uint64(m.Exit.Size())) - n8, err := m.Exit.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n8 + +func (x *ProcessEvent) GetUser() *ProcessUser { + if x != nil { + return x.User } - return i, nil + return nil } -func (m *ProcessExec) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err + +func (x *ProcessEvent) GetHost() *Host { + if x != nil { + return x.Host } - return data[:n], nil + return nil } -func (m *ProcessExec) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.ForkTime != 0 { - data[i] = 0x8 - i++ - i = encodeVarintEvents(data, i, uint64(m.ForkTime)) - } - if m.ExecTime != 0 { - data[i] = 0x10 - i++ - i = encodeVarintEvents(data, i, uint64(m.ExecTime)) +func (x *ProcessEvent) GetContainerId() string { + if x != nil { + return x.ContainerId } - return i, nil + return "" } -func (m *ProcessExit) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalTo(data) - if err != nil { - return nil, err +func (m *ProcessEvent) GetTypedEvent() isProcessEvent_TypedEvent { + if m != nil { + return m.TypedEvent } - return data[:n], nil + return nil } -func (m *ProcessExit) MarshalTo(data []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.ExecTime != 0 { - data[i] = 0x8 - i++ - i = encodeVarintEvents(data, i, uint64(m.ExecTime)) - } - if m.ExitTime != 0 { - data[i] = 0x10 - i++ - i = encodeVarintEvents(data, i, uint64(m.ExitTime)) - } - if m.ExitCode != 0 { - data[i] = 0x18 - i++ - i = encodeVarintEvents(data, i, uint64(m.ExitCode)) +func (x *ProcessEvent) GetExec() *ProcessExec { + if x, ok := x.GetTypedEvent().(*ProcessEvent_Exec); ok { + return x.Exec } - return i, nil + return nil } -func encodeFixed64Events(data []byte, offset int, v uint64) int { - data[offset] = uint8(v) - data[offset+1] = uint8(v >> 8) - data[offset+2] = uint8(v >> 16) - data[offset+3] = uint8(v >> 24) - data[offset+4] = uint8(v >> 32) - data[offset+5] = uint8(v >> 40) - data[offset+6] = uint8(v >> 48) - data[offset+7] = uint8(v >> 56) - return offset + 8 -} -func encodeFixed32Events(data []byte, offset int, v uint32) int { - data[offset] = uint8(v) - data[offset+1] = uint8(v >> 8) - data[offset+2] = uint8(v >> 16) - data[offset+3] = uint8(v >> 24) - return offset + 4 -} -func encodeVarintEvents(data []byte, offset int, v uint64) int { - for v >= 1<<7 { - data[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ +func (x *ProcessEvent) GetExit() *ProcessExit { + if x, ok := x.GetTypedEvent().(*ProcessEvent_Exit); ok { + return x.Exit } - data[offset] = uint8(v) - return offset + 1 + return nil } -func (m *CollectorProcEvent) Size() (n int) { - var l int - _ = l - l = len(m.Hostname) - if l > 0 { - n += 1 + l + sovEvents(uint64(l)) - } - if m.Host != nil { - l = m.Host.Size() - n += 1 + l + sovEvents(uint64(l)) - } - if m.Info != nil { - l = m.Info.Size() - n += 1 + l + sovEvents(uint64(l)) - } - if len(m.Events) > 0 { - for _, e := range m.Events { - l = e.Size() - n += 1 + l + sovEvents(uint64(l)) - } - } - if m.GroupId != 0 { - n += 1 + sovEvents(uint64(m.GroupId)) - } - if m.GroupSize != 0 { - n += 1 + sovEvents(uint64(m.GroupSize)) - } - return n + +type isProcessEvent_TypedEvent interface { + isProcessEvent_TypedEvent() } -func (m *ProcessEvent) Size() (n int) { - var l int - _ = l - if m.Type != 0 { - n += 1 + sovEvents(uint64(m.Type)) - } - if m.CollectionTime != 0 { - n += 1 + sovEvents(uint64(m.CollectionTime)) - } - if m.Pid != 0 { - n += 1 + sovEvents(uint64(m.Pid)) - } - if m.Command != nil { - l = m.Command.Size() - n += 1 + l + sovEvents(uint64(l)) - } - if m.User != nil { - l = m.User.Size() - n += 1 + l + sovEvents(uint64(l)) - } - if m.Host != nil { - l = m.Host.Size() - n += 1 + l + sovEvents(uint64(l)) - } - l = len(m.ContainerId) - if l > 0 { - n += 1 + l + sovEvents(uint64(l)) - } - if m.TypedEvent != nil { - n += m.TypedEvent.Size() - } - return n +type ProcessEvent_Exec struct { + Exec *ProcessExec `protobuf:"bytes,8,opt,name=exec,proto3,oneof"` } -func (m *ProcessEvent_Exec) Size() (n int) { - var l int - _ = l - if m.Exec != nil { - l = m.Exec.Size() - n += 1 + l + sovEvents(uint64(l)) - } - return n +type ProcessEvent_Exit struct { + Exit *ProcessExit `protobuf:"bytes,9,opt,name=exit,proto3,oneof"` } -func (m *ProcessEvent_Exit) Size() (n int) { - var l int - _ = l - if m.Exit != nil { - l = m.Exit.Size() - n += 1 + l + sovEvents(uint64(l)) - } - return n + +func (*ProcessEvent_Exec) isProcessEvent_TypedEvent() {} + +func (*ProcessEvent_Exit) isProcessEvent_TypedEvent() {} + +// ProcessExec holds information specific to exec events +type ProcessExec struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ForkTime int64 `protobuf:"varint,1,opt,name=forkTime,proto3" json:"forkTime,omitempty"` + ExecTime int64 `protobuf:"varint,2,opt,name=execTime,proto3" json:"execTime,omitempty"` } -func (m *ProcessExec) Size() (n int) { - var l int - _ = l - if m.ForkTime != 0 { - n += 1 + sovEvents(uint64(m.ForkTime)) - } - if m.ExecTime != 0 { - n += 1 + sovEvents(uint64(m.ExecTime)) + +func (x *ProcessExec) Reset() { + *x = ProcessExec{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_events_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return n } -func (m *ProcessExit) Size() (n int) { - var l int - _ = l - if m.ExecTime != 0 { - n += 1 + sovEvents(uint64(m.ExecTime)) - } - if m.ExitTime != 0 { - n += 1 + sovEvents(uint64(m.ExitTime)) - } - if m.ExitCode != 0 { - n += 1 + sovEvents(uint64(m.ExitCode)) - } - return n +func (x *ProcessExec) String() string { + return protoimpl.X.MessageStringOf(x) } -func sovEvents(x uint64) (n int) { - for { - n++ - x >>= 7 - if x == 0 { - break +func (*ProcessExec) ProtoMessage() {} + +func (x *ProcessExec) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_events_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - return n + return mi.MessageOf(x) } -func sozEvents(x uint64) (n int) { - return sovEvents(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *CollectorProcEvent) Unmarshal(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 ErrIntOverflowEvents - } - 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: CollectorProcEvent: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CollectorProcEvent: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Hostname", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - 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 ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Hostname = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Host", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Host == nil { - m.Host = &Host{} - } - if err := m.Host.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Info == nil { - m.Info = &SystemInfo{} - } - if err := m.Info.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Events", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Events = append(m.Events, &ProcessEvent{}) - if err := m.Events[len(m.Events)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) - } - m.GroupId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.GroupId |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupSize", wireType) - } - m.GroupSize = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.GroupSize |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipEvents(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthEvents - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil +// Deprecated: Use ProcessExec.ProtoReflect.Descriptor instead. +func (*ProcessExec) Descriptor() ([]byte, []int) { + return file_proto_process_events_proto_rawDescGZIP(), []int{2} } -func (m *ProcessEvent) Unmarshal(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 ErrIntOverflowEvents - } - 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: ProcessEvent: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ProcessEvent: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - m.Type = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.Type |= (ProcEventType(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CollectionTime", wireType) - } - m.CollectionTime = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.CollectionTime |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Pid", wireType) - } - m.Pid = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.Pid |= (uint32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Command", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Command == nil { - m.Command = &Command{} - } - if err := m.Command.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field User", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.User == nil { - m.User = &ProcessUser{} - } - if err := m.User.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Host", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Host == nil { - m.Host = &Host{} - } - if err := m.Host.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContainerId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - 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 ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ContainerId = string(data[iNdEx:postIndex]) - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Exec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &ProcessExec{} - if err := v.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - m.TypedEvent = &ProcessEvent_Exec{v} - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Exit", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &ProcessExit{} - if err := v.Unmarshal(data[iNdEx:postIndex]); err != nil { - return err - } - m.TypedEvent = &ProcessEvent_Exit{v} - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEvents(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthEvents - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *ProcessExec) GetForkTime() int64 { + if x != nil { + return x.ForkTime } - return nil + return 0 } -func (m *ProcessExec) Unmarshal(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 ErrIntOverflowEvents - } - 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: ProcessExec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ProcessExec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ForkTime", wireType) - } - m.ForkTime = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.ForkTime |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ExecTime", wireType) - } - m.ExecTime = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.ExecTime |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipEvents(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthEvents - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *ProcessExec) GetExecTime() int64 { + if x != nil { + return x.ExecTime } - return nil + return 0 } -func (m *ProcessExit) Unmarshal(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 ErrIntOverflowEvents - } - 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: ProcessExit: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ProcessExit: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ExecTime", wireType) - } - m.ExecTime = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.ExecTime |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ExitTime", wireType) - } - m.ExitTime = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.ExitTime |= (int64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ExitCode", wireType) - } - m.ExitCode = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - m.ExitCode |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipEvents(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthEvents - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil +// ProcessExit holds information specific to exit events +type ProcessExit struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ExecTime int64 `protobuf:"varint,1,opt,name=execTime,proto3" json:"execTime,omitempty"` + ExitTime int64 `protobuf:"varint,2,opt,name=exitTime,proto3" json:"exitTime,omitempty"` + ExitCode int32 `protobuf:"varint,3,opt,name=exitCode,proto3" json:"exitCode,omitempty"` } -func skipEvents(data []byte) (n int, err error) { - l := len(data) - iNdEx := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowEvents - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowEvents - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if data[iNdEx-1] < 0x80 { - break - } - } - return iNdEx, nil - case 1: - iNdEx += 8 - return iNdEx, nil - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowEvents - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - iNdEx += length - if length < 0 { - return 0, ErrInvalidLengthEvents - } - return iNdEx, nil - case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowEvents - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipEvents(data[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - } - return iNdEx, nil - case 4: - return iNdEx, nil - case 5: - iNdEx += 4 - return iNdEx, nil - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - } - panic("unreachable") + +func (x *ProcessExit) Reset() { + *x = ProcessExit{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_process_events_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ProcessExit) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ProcessExit) ProtoMessage() {} + +func (x *ProcessExit) ProtoReflect() protoreflect.Message { + mi := &file_proto_process_events_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 ProcessExit.ProtoReflect.Descriptor instead. +func (*ProcessExit) Descriptor() ([]byte, []int) { + return file_proto_process_events_proto_rawDescGZIP(), []int{3} +} + +func (x *ProcessExit) GetExecTime() int64 { + if x != nil { + return x.ExecTime + } + return 0 +} + +func (x *ProcessExit) GetExitTime() int64 { + if x != nil { + return x.ExitTime + } + return 0 +} + +func (x *ProcessExit) GetExitCode() int32 { + if x != nil { + return x.ExitCode + } + return 0 +} + +var File_proto_process_events_proto protoreflect.FileDescriptor + +var file_proto_process_events_proto_rawDesc = []byte{ + 0x0a, 0x1a, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x2f, + 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x64, 0x61, + 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, + 0x65, 0x6e, 0x74, 0x1a, 0x19, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x70, 0x72, 0x6f, 0x63, 0x65, + 0x73, 0x73, 0x2f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x8d, + 0x02, 0x0a, 0x12, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x63, + 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x68, 0x6f, 0x73, 0x74, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x68, 0x6f, 0x73, 0x74, 0x6e, 0x61, 0x6d, + 0x65, 0x12, 0x2f, 0x0a, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1b, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, + 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x48, 0x6f, 0x73, 0x74, 0x52, 0x04, 0x68, 0x6f, + 0x73, 0x74, 0x12, 0x35, 0x0a, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x21, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, + 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x49, + 0x6e, 0x66, 0x6f, 0x52, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x12, 0x3b, 0x0a, 0x06, 0x65, 0x76, 0x65, + 0x6e, 0x74, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x64, 0x61, 0x74, 0x61, + 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, + 0x74, 0x2e, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x06, + 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, + 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, + 0x12, 0x1c, 0x0a, 0x09, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x06, 0x20, + 0x01, 0x28, 0x05, 0x52, 0x09, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x69, 0x7a, 0x65, 0x22, 0xc9, + 0x03, 0x0a, 0x0c, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, + 0x38, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x24, 0x2e, + 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, + 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x72, 0x6f, 0x63, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x54, + 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x26, 0x0a, 0x0e, 0x63, 0x6f, 0x6c, + 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x0e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x69, 0x6d, + 0x65, 0x12, 0x10, 0x0a, 0x03, 0x70, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, + 0x70, 0x69, 0x64, 0x12, 0x38, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, + 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x43, 0x6f, 0x6d, + 0x6d, 0x61, 0x6e, 0x64, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x12, 0x36, 0x0a, + 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x64, 0x61, + 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, + 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x55, 0x73, 0x65, 0x72, 0x52, + 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x2f, 0x0a, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x06, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, + 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x48, 0x6f, 0x73, 0x74, + 0x52, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, + 0x6e, 0x65, 0x72, 0x49, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, + 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x12, 0x38, 0x0a, 0x04, 0x65, 0x78, 0x65, 0x63, + 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, + 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x50, + 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x45, 0x78, 0x65, 0x63, 0x48, 0x00, 0x52, 0x04, 0x65, 0x78, + 0x65, 0x63, 0x12, 0x38, 0x0a, 0x04, 0x65, 0x78, 0x69, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x22, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x63, 0x65, + 0x73, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, + 0x45, 0x78, 0x69, 0x74, 0x48, 0x00, 0x52, 0x04, 0x65, 0x78, 0x69, 0x74, 0x42, 0x0c, 0x0a, 0x0a, + 0x74, 0x79, 0x70, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x22, 0x45, 0x0a, 0x0b, 0x50, 0x72, + 0x6f, 0x63, 0x65, 0x73, 0x73, 0x45, 0x78, 0x65, 0x63, 0x12, 0x1a, 0x0a, 0x08, 0x66, 0x6f, 0x72, + 0x6b, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x66, 0x6f, 0x72, + 0x6b, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x65, 0x78, 0x65, 0x63, 0x54, 0x69, 0x6d, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x65, 0x78, 0x65, 0x63, 0x54, 0x69, 0x6d, + 0x65, 0x22, 0x61, 0x0a, 0x0b, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x45, 0x78, 0x69, 0x74, + 0x12, 0x1a, 0x0a, 0x08, 0x65, 0x78, 0x65, 0x63, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x03, 0x52, 0x08, 0x65, 0x78, 0x65, 0x63, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, + 0x65, 0x78, 0x69, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, + 0x65, 0x78, 0x69, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x65, 0x78, 0x69, 0x74, + 0x43, 0x6f, 0x64, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x65, 0x78, 0x69, 0x74, + 0x43, 0x6f, 0x64, 0x65, 0x2a, 0x23, 0x0a, 0x0d, 0x50, 0x72, 0x6f, 0x63, 0x45, 0x76, 0x65, 0x6e, + 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x08, 0x0a, 0x04, 0x65, 0x78, 0x65, 0x63, 0x10, 0x00, 0x12, + 0x08, 0x0a, 0x04, 0x65, 0x78, 0x69, 0x74, 0x10, 0x01, 0x42, 0x2d, 0x5a, 0x2b, 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, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - ErrInvalidLengthEvents = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowEvents = fmt.Errorf("proto: integer overflow") + file_proto_process_events_proto_rawDescOnce sync.Once + file_proto_process_events_proto_rawDescData = file_proto_process_events_proto_rawDesc ) -func init() { proto.RegisterFile("proto/process/events.proto", fileDescriptorEvents) } - -var fileDescriptorEvents = []byte{ - // 516 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x53, 0x5d, 0x6b, 0x13, 0x41, - 0x14, 0xcd, 0x34, 0x9b, 0xaf, 0x49, 0x5b, 0xc2, 0x80, 0x30, 0x46, 0x09, 0x31, 0x15, 0x09, 0x8a, - 0x59, 0x88, 0x54, 0x0a, 0xe2, 0x4b, 0xd3, 0x40, 0xf3, 0x56, 0xa6, 0xf5, 0xc5, 0x17, 0x99, 0xee, - 0x4e, 0xb6, 0x83, 0xd9, 0xbd, 0xcb, 0xee, 0xa4, 0x34, 0xfe, 0x07, 0xc1, 0x9f, 0xa5, 0x6f, 0xfe, - 0x04, 0x89, 0x7f, 0x44, 0xf6, 0x4e, 0xb3, 0xee, 0x8a, 0x29, 0x79, 0x9b, 0x73, 0xef, 0x39, 0x77, - 0x66, 0xce, 0x99, 0xa1, 0xdd, 0x38, 0x01, 0x03, 0x6e, 0x9c, 0x80, 0xa7, 0xd2, 0xd4, 0x55, 0xb7, - 0x2a, 0x32, 0xe9, 0x08, 0x8b, 0xec, 0x91, 0x2f, 0x8d, 0xf4, 0x21, 0x18, 0xdd, 0x77, 0x3f, 0xc9, - 0x40, 0x45, 0xa6, 0xfb, 0xb8, 0x2c, 0xc1, 0xa2, 0x55, 0x0c, 0xbe, 0xee, 0x51, 0x36, 0x81, 0xc5, - 0x42, 0x79, 0x06, 0x92, 0x8b, 0x04, 0xbc, 0x69, 0x36, 0x8f, 0x75, 0x69, 0xf3, 0x06, 0x52, 0x13, - 0xc9, 0x50, 0x71, 0xd2, 0x27, 0xc3, 0x96, 0xc8, 0x31, 0x73, 0xa9, 0x93, 0xad, 0xf9, 0x5e, 0x9f, - 0x0c, 0xdb, 0xe3, 0x27, 0xa3, 0xff, 0xee, 0x39, 0x3a, 0x87, 0xd4, 0x08, 0x24, 0xb2, 0x63, 0xea, - 0xe8, 0x68, 0x0e, 0xbc, 0x8a, 0x82, 0x67, 0x5b, 0x04, 0x97, 0xab, 0xd4, 0xa8, 0x70, 0x16, 0xcd, - 0x41, 0x20, 0x9d, 0xbd, 0xa3, 0x75, 0x7b, 0x39, 0xee, 0xf4, 0xab, 0xc3, 0xf6, 0xf8, 0x68, 0x8b, - 0xf0, 0xc2, 0x22, 0x3c, 0xb8, 0xb8, 0x97, 0x30, 0x4e, 0x1b, 0x41, 0x02, 0xcb, 0x78, 0xe6, 0xf3, - 0x5a, 0x9f, 0x0c, 0x6b, 0x62, 0x03, 0xd9, 0x53, 0xda, 0xc2, 0xe5, 0xa5, 0xfe, 0xa2, 0x78, 0x1d, - 0x7b, 0x7f, 0x0b, 0x83, 0x1f, 0x55, 0xba, 0x5f, 0x1c, 0xc8, 0x4e, 0xa8, 0x63, 0x56, 0xb1, 0x75, - 0xe1, 0x70, 0xfc, 0xfc, 0x81, 0x33, 0x20, 0xff, 0x6a, 0x15, 0x2b, 0x81, 0x0a, 0xf6, 0x82, 0x1e, - 0x7a, 0xd6, 0x59, 0x0d, 0xd1, 0x95, 0x0e, 0x15, 0x3a, 0x56, 0x15, 0xff, 0x54, 0x59, 0x87, 0x56, - 0x63, 0xed, 0xa3, 0x3b, 0x07, 0x22, 0x5b, 0xb2, 0x13, 0xda, 0xf0, 0x20, 0x0c, 0x65, 0xe4, 0x73, - 0x07, 0x3d, 0xeb, 0x6d, 0xd9, 0x76, 0x62, 0x59, 0x62, 0x43, 0x67, 0x6f, 0xa9, 0xb3, 0x4c, 0x55, - 0x82, 0x77, 0x6e, 0x8f, 0x07, 0x0f, 0x3b, 0xf6, 0x21, 0x55, 0x89, 0x40, 0x7e, 0x9e, 0x69, 0x7d, - 0xd7, 0x4c, 0xfb, 0xb4, 0xed, 0x41, 0x64, 0xa4, 0x8e, 0x54, 0x32, 0xf3, 0x79, 0x03, 0xdf, 0x48, - 0xb1, 0x94, 0x19, 0xa7, 0xee, 0x94, 0xc7, 0x9b, 0xbb, 0x1c, 0x65, 0x7a, 0xa7, 0xbc, 0xf3, 0x8a, - 0x40, 0x85, 0x55, 0x6a, 0xc3, 0x5b, 0xbb, 0x29, 0xb5, 0xb1, 0x4a, 0x6d, 0x4e, 0xf7, 0x29, 0xcd, - 0xac, 0xf7, 0x31, 0x8a, 0xc1, 0x94, 0xb6, 0x0b, 0xe3, 0xb3, 0x37, 0x3d, 0x87, 0xe4, 0x33, 0x26, - 0x41, 0x30, 0x89, 0x1c, 0x67, 0xbd, 0x6c, 0xeb, 0x42, 0x4a, 0x39, 0x1e, 0xc8, 0xc2, 0x18, 0x6d, - 0x4a, 0x54, 0x52, 0xa6, 0xda, 0x9e, 0x36, 0xe5, 0x31, 0x16, 0x6f, 0x7a, 0x13, 0xf0, 0x15, 0x66, - 0x5d, 0x13, 0x39, 0x7e, 0x79, 0x44, 0x0f, 0x4a, 0x2f, 0x88, 0x35, 0xad, 0x79, 0x9d, 0x8a, 0x5d, - 0x69, 0xd3, 0x21, 0xa7, 0xef, 0xbf, 0xaf, 0x7b, 0xe4, 0xe7, 0xba, 0x47, 0x7e, 0xad, 0x7b, 0xe4, - 0xdb, 0xef, 0x5e, 0xe5, 0xe3, 0xab, 0x40, 0x9b, 0x9b, 0xe5, 0xf5, 0xc8, 0x83, 0xd0, 0x3d, 0x93, - 0x46, 0x9e, 0x41, 0x60, 0x3f, 0xf7, 0xeb, 0x58, 0xae, 0x16, 0x20, 0x7d, 0xf7, 0xf6, 0x78, 0xf3, - 0xeb, 0xaf, 0xeb, 0xf8, 0xe1, 0xdf, 0xfc, 0x09, 0x00, 0x00, 0xff, 0xff, 0x35, 0xd4, 0x8d, 0x0f, - 0x40, 0x04, 0x00, 0x00, +func file_proto_process_events_proto_rawDescGZIP() []byte { + file_proto_process_events_proto_rawDescOnce.Do(func() { + file_proto_process_events_proto_rawDescData = protoimpl.X.CompressGZIP(file_proto_process_events_proto_rawDescData) + }) + return file_proto_process_events_proto_rawDescData +} + +var file_proto_process_events_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_proto_process_events_proto_msgTypes = make([]protoimpl.MessageInfo, 4) +var file_proto_process_events_proto_goTypes = []interface{}{ + (ProcEventType)(0), // 0: datadog.process_agent.ProcEventType + (*CollectorProcEvent)(nil), // 1: datadog.process_agent.CollectorProcEvent + (*ProcessEvent)(nil), // 2: datadog.process_agent.ProcessEvent + (*ProcessExec)(nil), // 3: datadog.process_agent.ProcessExec + (*ProcessExit)(nil), // 4: datadog.process_agent.ProcessExit + (*Host)(nil), // 5: datadog.process_agent.Host + (*SystemInfo)(nil), // 6: datadog.process_agent.SystemInfo + (*Command)(nil), // 7: datadog.process_agent.Command + (*ProcessUser)(nil), // 8: datadog.process_agent.ProcessUser +} +var file_proto_process_events_proto_depIdxs = []int32{ + 5, // 0: datadog.process_agent.CollectorProcEvent.host:type_name -> datadog.process_agent.Host + 6, // 1: datadog.process_agent.CollectorProcEvent.info:type_name -> datadog.process_agent.SystemInfo + 2, // 2: datadog.process_agent.CollectorProcEvent.events:type_name -> datadog.process_agent.ProcessEvent + 0, // 3: datadog.process_agent.ProcessEvent.type:type_name -> datadog.process_agent.ProcEventType + 7, // 4: datadog.process_agent.ProcessEvent.command:type_name -> datadog.process_agent.Command + 8, // 5: datadog.process_agent.ProcessEvent.user:type_name -> datadog.process_agent.ProcessUser + 5, // 6: datadog.process_agent.ProcessEvent.host:type_name -> datadog.process_agent.Host + 3, // 7: datadog.process_agent.ProcessEvent.exec:type_name -> datadog.process_agent.ProcessExec + 4, // 8: datadog.process_agent.ProcessEvent.exit:type_name -> datadog.process_agent.ProcessExit + 9, // [9:9] is the sub-list for method output_type + 9, // [9:9] is the sub-list for method input_type + 9, // [9:9] is the sub-list for extension type_name + 9, // [9:9] is the sub-list for extension extendee + 0, // [0:9] is the sub-list for field type_name +} + +func init() { file_proto_process_events_proto_init() } +func file_proto_process_events_proto_init() { + if File_proto_process_events_proto != nil { + return + } + file_proto_process_agent_proto_init() + if !protoimpl.UnsafeEnabled { + file_proto_process_events_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CollectorProcEvent); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_events_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ProcessEvent); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_events_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ProcessExec); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_process_events_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ProcessExit); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_proto_process_events_proto_msgTypes[1].OneofWrappers = []interface{}{ + (*ProcessEvent_Exec)(nil), + (*ProcessEvent_Exit)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_proto_process_events_proto_rawDesc, + NumEnums: 1, + NumMessages: 4, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_proto_process_events_proto_goTypes, + DependencyIndexes: file_proto_process_events_proto_depIdxs, + EnumInfos: file_proto_process_events_proto_enumTypes, + MessageInfos: file_proto_process_events_proto_msgTypes, + }.Build() + File_proto_process_events_proto = out.File + file_proto_process_events_proto_rawDesc = nil + file_proto_process_events_proto_goTypes = nil + file_proto_process_events_proto_depIdxs = nil } diff --git a/process/events_vtproto.pb.go b/process/events_vtproto.pb.go new file mode 100644 index 00000000..1ac536cb --- /dev/null +++ b/process/events_vtproto.pb.go @@ -0,0 +1,1404 @@ +// Code generated by protoc-gen-go-vtproto. DO NOT EDIT. +// protoc-gen-go-vtproto version: v0.4.0 +// source: proto/process/events.proto + +package process + +import ( + fmt "fmt" + proto "google.golang.org/protobuf/proto" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + io "io" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +func (this *CollectorProcEvent) EqualVT(that *CollectorProcEvent) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.Hostname != that.Hostname { + return false + } + if !this.Host.EqualVT(that.Host) { + return false + } + if !this.Info.EqualVT(that.Info) { + return false + } + if len(this.Events) != len(that.Events) { + return false + } + for i, vx := range this.Events { + vy := that.Events[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &ProcessEvent{} + } + if q == nil { + q = &ProcessEvent{} + } + if !p.EqualVT(q) { + return false + } + } + } + if this.GroupId != that.GroupId { + return false + } + if this.GroupSize != that.GroupSize { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *CollectorProcEvent) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*CollectorProcEvent) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *ProcessEvent) EqualVT(that *ProcessEvent) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.TypedEvent == nil && that.TypedEvent != nil { + return false + } else if this.TypedEvent != nil { + if that.TypedEvent == nil { + return false + } + if !this.TypedEvent.(interface { + EqualVT(isProcessEvent_TypedEvent) bool + }).EqualVT(that.TypedEvent) { + return false + } + } + if this.Type != that.Type { + return false + } + if this.CollectionTime != that.CollectionTime { + return false + } + if this.Pid != that.Pid { + return false + } + if !this.Command.EqualVT(that.Command) { + return false + } + if !this.User.EqualVT(that.User) { + return false + } + if !this.Host.EqualVT(that.Host) { + return false + } + if this.ContainerId != that.ContainerId { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *ProcessEvent) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*ProcessEvent) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *ProcessEvent_Exec) EqualVT(thatIface isProcessEvent_TypedEvent) bool { + that, ok := thatIface.(*ProcessEvent_Exec) + if !ok { + return false + } + if this == that { + return true + } + if this == nil && that != nil || this != nil && that == nil { + return false + } + if p, q := this.Exec, that.Exec; p != q { + if p == nil { + p = &ProcessExec{} + } + if q == nil { + q = &ProcessExec{} + } + if !p.EqualVT(q) { + return false + } + } + return true +} + +func (this *ProcessEvent_Exit) EqualVT(thatIface isProcessEvent_TypedEvent) bool { + that, ok := thatIface.(*ProcessEvent_Exit) + if !ok { + return false + } + if this == that { + return true + } + if this == nil && that != nil || this != nil && that == nil { + return false + } + if p, q := this.Exit, that.Exit; p != q { + if p == nil { + p = &ProcessExit{} + } + if q == nil { + q = &ProcessExit{} + } + if !p.EqualVT(q) { + return false + } + } + return true +} + +func (this *ProcessExec) EqualVT(that *ProcessExec) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.ForkTime != that.ForkTime { + return false + } + if this.ExecTime != that.ExecTime { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *ProcessExec) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*ProcessExec) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *ProcessExit) EqualVT(that *ProcessExit) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.ExecTime != that.ExecTime { + return false + } + if this.ExitTime != that.ExitTime { + return false + } + if this.ExitCode != that.ExitCode { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *ProcessExit) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*ProcessExit) + if !ok { + return false + } + return this.EqualVT(that) +} +func (m *CollectorProcEvent) 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 *CollectorProcEvent) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *CollectorProcEvent) 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.GroupSize != 0 { + i = encodeVarint(dAtA, i, uint64(m.GroupSize)) + i-- + dAtA[i] = 0x30 + } + if m.GroupId != 0 { + i = encodeVarint(dAtA, i, uint64(m.GroupId)) + i-- + dAtA[i] = 0x28 + } + if len(m.Events) > 0 { + for iNdEx := len(m.Events) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Events[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x22 + } + } + if m.Info != nil { + size, err := m.Info.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x1a + } + if m.Host != nil { + size, err := m.Host.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 + } + if len(m.Hostname) > 0 { + i -= len(m.Hostname) + copy(dAtA[i:], m.Hostname) + i = encodeVarint(dAtA, i, uint64(len(m.Hostname))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ProcessEvent) 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 *ProcessEvent) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *ProcessEvent) 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 vtmsg, ok := m.TypedEvent.(interface { + MarshalToSizedBufferVT([]byte) (int, error) + }); ok { + size, err := vtmsg.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + } + if len(m.ContainerId) > 0 { + i -= len(m.ContainerId) + copy(dAtA[i:], m.ContainerId) + i = encodeVarint(dAtA, i, uint64(len(m.ContainerId))) + i-- + dAtA[i] = 0x3a + } + if m.Host != nil { + size, err := m.Host.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x32 + } + if m.User != nil { + size, err := m.User.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x2a + } + if m.Command != nil { + size, err := m.Command.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x22 + } + if m.Pid != 0 { + i = encodeVarint(dAtA, i, uint64(m.Pid)) + i-- + dAtA[i] = 0x18 + } + if m.CollectionTime != 0 { + i = encodeVarint(dAtA, i, uint64(m.CollectionTime)) + i-- + dAtA[i] = 0x10 + } + if m.Type != 0 { + i = encodeVarint(dAtA, i, uint64(m.Type)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *ProcessEvent_Exec) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *ProcessEvent_Exec) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Exec != nil { + size, err := m.Exec.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x42 + } + return len(dAtA) - i, nil +} +func (m *ProcessEvent_Exit) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *ProcessEvent_Exit) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Exit != nil { + size, err := m.Exit.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x4a + } + return len(dAtA) - i, nil +} +func (m *ProcessExec) 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 *ProcessExec) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *ProcessExec) 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.ExecTime != 0 { + i = encodeVarint(dAtA, i, uint64(m.ExecTime)) + i-- + dAtA[i] = 0x10 + } + if m.ForkTime != 0 { + i = encodeVarint(dAtA, i, uint64(m.ForkTime)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *ProcessExit) 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 *ProcessExit) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *ProcessExit) 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.ExitCode != 0 { + i = encodeVarint(dAtA, i, uint64(m.ExitCode)) + i-- + dAtA[i] = 0x18 + } + if m.ExitTime != 0 { + i = encodeVarint(dAtA, i, uint64(m.ExitTime)) + i-- + dAtA[i] = 0x10 + } + if m.ExecTime != 0 { + i = encodeVarint(dAtA, i, uint64(m.ExecTime)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *CollectorProcEvent) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Hostname) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.Host != nil { + l = m.Host.SizeVT() + n += 1 + l + sov(uint64(l)) + } + if m.Info != nil { + l = m.Info.SizeVT() + n += 1 + l + sov(uint64(l)) + } + if len(m.Events) > 0 { + for _, e := range m.Events { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + if m.GroupId != 0 { + n += 1 + sov(uint64(m.GroupId)) + } + if m.GroupSize != 0 { + n += 1 + sov(uint64(m.GroupSize)) + } + n += len(m.unknownFields) + return n +} + +func (m *ProcessEvent) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Type != 0 { + n += 1 + sov(uint64(m.Type)) + } + if m.CollectionTime != 0 { + n += 1 + sov(uint64(m.CollectionTime)) + } + if m.Pid != 0 { + n += 1 + sov(uint64(m.Pid)) + } + if m.Command != nil { + l = m.Command.SizeVT() + n += 1 + l + sov(uint64(l)) + } + if m.User != nil { + l = m.User.SizeVT() + n += 1 + l + sov(uint64(l)) + } + if m.Host != nil { + l = m.Host.SizeVT() + n += 1 + l + sov(uint64(l)) + } + l = len(m.ContainerId) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if vtmsg, ok := m.TypedEvent.(interface{ SizeVT() int }); ok { + n += vtmsg.SizeVT() + } + n += len(m.unknownFields) + return n +} + +func (m *ProcessEvent_Exec) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Exec != nil { + l = m.Exec.SizeVT() + n += 1 + l + sov(uint64(l)) + } + return n +} +func (m *ProcessEvent_Exit) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Exit != nil { + l = m.Exit.SizeVT() + n += 1 + l + sov(uint64(l)) + } + return n +} +func (m *ProcessExec) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ForkTime != 0 { + n += 1 + sov(uint64(m.ForkTime)) + } + if m.ExecTime != 0 { + n += 1 + sov(uint64(m.ExecTime)) + } + n += len(m.unknownFields) + return n +} + +func (m *ProcessExit) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ExecTime != 0 { + n += 1 + sov(uint64(m.ExecTime)) + } + if m.ExitTime != 0 { + n += 1 + sov(uint64(m.ExitTime)) + } + if m.ExitCode != 0 { + n += 1 + sov(uint64(m.ExitCode)) + } + n += len(m.unknownFields) + return n +} + +func (m *CollectorProcEvent) 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: CollectorProcEvent: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CollectorProcEvent: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Hostname", 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.Hostname = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Host", 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.Host == nil { + m.Host = &Host{} + } + if err := m.Host.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Info", 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.Info == nil { + m.Info = &SystemInfo{} + } + if err := m.Info.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Events", 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.Events = append(m.Events, &ProcessEvent{}) + if err := m.Events[len(m.Events)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) + } + m.GroupId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.GroupId |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GroupSize", wireType) + } + m.GroupSize = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.GroupSize |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ProcessEvent) 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: ProcessEvent: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ProcessEvent: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + m.Type = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Type |= ProcEventType(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CollectionTime", wireType) + } + m.CollectionTime = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.CollectionTime |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Pid", wireType) + } + m.Pid = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Pid |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Command", 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.Command == nil { + m.Command = &Command{} + } + if err := m.Command.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field User", 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.User == nil { + m.User = &ProcessUser{} + } + if err := m.User.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Host", 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.Host == nil { + m.Host = &Host{} + } + if err := m.Host.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContainerId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContainerId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Exec", 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 oneof, ok := m.TypedEvent.(*ProcessEvent_Exec); ok { + if err := oneof.Exec.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + } else { + v := &ProcessExec{} + if err := v.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.TypedEvent = &ProcessEvent_Exec{Exec: v} + } + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Exit", 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 oneof, ok := m.TypedEvent.(*ProcessEvent_Exit); ok { + if err := oneof.Exit.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + } else { + v := &ProcessExit{} + if err := v.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.TypedEvent = &ProcessEvent_Exit{Exit: v} + } + 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 *ProcessExec) 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: ProcessExec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ProcessExec: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ForkTime", wireType) + } + m.ForkTime = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ForkTime |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ExecTime", wireType) + } + m.ExecTime = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ExecTime |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ProcessExit) 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: ProcessExit: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ProcessExit: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ExecTime", wireType) + } + m.ExecTime = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ExecTime |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ExitTime", wireType) + } + m.ExitTime = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ExitTime |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ExitCode", wireType) + } + m.ExitCode = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ExitCode |= int32(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 +} diff --git a/process/message.go b/process/message.go index d1c9bcf4..2f01b084 100644 --- a/process/message.go +++ b/process/message.go @@ -196,7 +196,6 @@ type MessageBody interface { ProtoMessage() Reset() String() string - Size() int } // DecodeMessage decodes raw message bytes into a specific type that satisfies